@flamingo-stack/openframe-frontend-core 0.0.812 → 0.0.814
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/build/export-map.json +1 -1
- package/dist/case-study-card-NLT2JVI7.cjs +23 -0
- package/dist/{chunk-5QLDHPPU.cjs → chunk-25HBH4J6.cjs} +15 -15
- package/dist/{chunk-WFJDKP2Q.cjs → chunk-2H7XPKKT.cjs} +37 -37
- package/dist/{chunk-LKQ33CMY.cjs → chunk-2XCORRJV.cjs} +3 -3
- package/dist/{chunk-JTIGKLKJ.cjs → chunk-2XLPRW7V.cjs} +23 -23
- package/dist/{chunk-4WIJI4AK.cjs → chunk-3TOWCFIK.cjs} +20 -26
- package/dist/{chunk-KUXHXLJQ.cjs → chunk-3V5JWG27.cjs} +5 -5
- package/dist/{chunk-CUDJP7R7.cjs → chunk-467T3LCG.cjs} +63 -63
- package/dist/{chunk-COTJLBOS.cjs → chunk-4PMD3JUC.cjs} +19 -19
- package/dist/{chunk-YR74H7Z3.cjs → chunk-5SZ4ILU3.cjs} +7 -7
- package/dist/{chunk-7JWFMAQB.cjs → chunk-63A4GZMB.cjs} +18 -2
- package/dist/{chunk-ZD6SZLO2.cjs → chunk-6CZVQ72C.cjs} +3 -3
- package/dist/{chunk-PQ76VC2P.cjs → chunk-7ERD34HQ.cjs} +1073 -825
- package/dist/{chunk-VEN6MGNX.cjs → chunk-7O7EX7HQ.cjs} +45 -45
- package/dist/{chunk-FCFLZPID.cjs → chunk-AYMKG55T.cjs} +51 -51
- package/dist/{chunk-U2MHQBL4.cjs → chunk-BOS7OIC4.cjs} +30 -30
- package/dist/{chunk-NEDFRRLM.cjs → chunk-CVPHODOE.cjs} +171 -171
- package/dist/{chunk-JMRO7CK2.cjs → chunk-D23VVC3K.cjs} +45 -45
- package/dist/{chunk-D2EPUQ35.cjs → chunk-E5VF3IXO.cjs} +4 -4
- package/dist/{chunk-SFUNXMY3.cjs → chunk-EHANO6UE.cjs} +16 -16
- package/dist/{chunk-4ZTGCCNI.cjs → chunk-F4ZJRMMM.cjs} +20 -20
- package/dist/{chunk-AHBTZ7DN.cjs → chunk-FCZAUK4D.cjs} +52 -50
- package/dist/{chunk-RSLLS6C4.cjs → chunk-G2B6EA4J.cjs} +62 -62
- package/dist/{chunk-XB7VPJNY.cjs → chunk-G5CCYMCU.cjs} +3 -3
- package/dist/{chunk-VT2ACO3Z.cjs → chunk-GAR2IIU6.cjs} +349 -349
- package/dist/{chunk-743MM5B6.cjs → chunk-HM7VCQSX.cjs} +10 -10
- package/dist/{chunk-DA2TWDGJ.cjs → chunk-IBYT5I7K.cjs} +13 -13
- package/dist/{chunk-D322VUSH.cjs → chunk-IDEOLXY6.cjs} +2050 -2078
- package/dist/{chunk-VYLBW6ZV.cjs → chunk-IJCSQFLD.cjs} +209 -209
- package/dist/{chunk-XZKYU57A.cjs → chunk-IKB6AZPV.cjs} +8 -8
- package/dist/{chunk-VPYGK4AV.cjs → chunk-ILV243HM.cjs} +31 -31
- package/dist/{chunk-TS4PKCG3.cjs → chunk-JOKOQOLJ.cjs} +22 -22
- package/dist/{chunk-TCMUVY3M.cjs → chunk-KINBPFAC.cjs} +199 -199
- package/dist/{chunk-2IZHRVKD.cjs → chunk-KNGULKOU.cjs} +46 -46
- package/dist/{chunk-JMAKYJ3Q.cjs → chunk-LUR2ED43.cjs} +6 -6
- package/dist/{chunk-EPMAMFQE.cjs → chunk-M6VLEXN3.cjs} +119 -119
- package/dist/{chunk-GD47ZGOU.cjs → chunk-N3MBQRCQ.cjs} +3 -3
- package/dist/{chunk-ZFUNSXSH.cjs → chunk-NONMZ5WJ.cjs} +5 -5
- package/dist/{chunk-E64HJMY6.cjs → chunk-OBQ5WUNG.cjs} +67 -67
- package/dist/{chunk-6LZ4BI7Z.cjs → chunk-PAI4A3UM.cjs} +60 -60
- package/dist/{chunk-4IU462LR.cjs → chunk-QDDBOCG3.cjs} +2 -2
- package/dist/{chunk-5DBW6ERF.cjs → chunk-QOAA7ZHB.cjs} +2 -2
- package/dist/{chunk-7Q2PFKU3.cjs → chunk-QQT23JJ7.cjs} +4 -4
- package/dist/{chunk-4SZKJPQJ.cjs → chunk-RD66AGUI.cjs} +6 -6
- package/dist/{chunk-NL3G642U.cjs → chunk-S3QXLD4X.cjs} +10 -10
- package/dist/{chunk-7RM4NM2C.cjs → chunk-SWF6TNZ3.cjs} +14 -14
- package/dist/{chunk-P4B6PVSG.cjs → chunk-USUVHAQ7.cjs} +7 -7
- package/dist/{chunk-K7IX2NAG.cjs → chunk-UTRRECPV.cjs} +110 -110
- package/dist/{chunk-7HNZHENA.cjs → chunk-WJPEDREU.cjs} +13 -13
- package/dist/{chunk-SC3I3YWM.cjs → chunk-Y6MJMPHV.cjs} +126 -126
- package/dist/{chunk-OKI5KSUV.cjs → chunk-ZNZ6453J.cjs} +44 -44
- package/dist/{chunk-7TBXHZLB.cjs → chunk-ZRDVFADQ.cjs} +61 -61
- package/dist/{cloud-tenants-CW3I7AIM.cjs → cloud-tenants-JSH6AQMZ.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +8 -1
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +34 -2
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts +93 -0
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/chat-card-disclosure.js +126 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts +5 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +82 -55
- package/dist/components/chat/entity-cards/index.d.ts +1 -0
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.js +14 -0
- package/dist/components/chat/index.cjs +42 -26
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +3 -0
- package/dist/components/chat/inline-app-link-chip.d.ts +35 -0
- package/dist/components/chat/inline-app-link-chip.d.ts.map +1 -0
- package/dist/components/chat/inline-app-link-chip.js +37 -0
- package/dist/components/chat/source-action-button.d.ts +15 -1
- package/dist/components/chat/source-action-button.d.ts.map +1 -1
- package/dist/components/chat/source-action-button.js +40 -2
- 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/features/scripts/schedule-form/schedule-script-picker-card.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +4 -2
- package/dist/components/features/select-button.js +1 -1
- package/dist/components/help-center-pages/index.cjs +165 -165
- package/dist/components/index.cjs +238 -220
- package/dist/components/meeting-scheduler/index.cjs +196 -196
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/platform/ScriptArguments.d.ts +2 -0
- package/dist/components/platform/ScriptArguments.d.ts.map +1 -1
- package/dist/components/platform/ScriptArguments.js +3 -2
- 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/button/button-styles.d.ts +8 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +8 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +6 -4
- package/dist/components/ui/button/split-button.d.ts.map +1 -1
- package/dist/components/ui/button/split-button.js +3 -2
- package/dist/components/ui/checkbox-block.d.ts.map +1 -1
- package/dist/components/ui/checkbox-block.js +3 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +52 -34
- package/dist/components/ui/input-styles.d.ts +2 -0
- package/dist/components/ui/input-styles.d.ts.map +1 -1
- package/dist/components/ui/input-styles.js +2 -0
- package/dist/{devices-KKRAB4Q2.cjs → devices-OCEOO6OW.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-5UO66U4F.cjs → embeddable-chat-YRKMPFDY.cjs} +150 -117
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +68 -50
- package/dist/{knowledge-Z2PTGBA3.cjs → knowledge-3GEE4LPY.cjs} +33 -33
- package/dist/{logs-6T5VK2TY.cjs → logs-7GGUZSDB.cjs} +41 -41
- package/dist/{policies-JPIC5YDE.cjs → policies-S74WTNL4.cjs} +36 -36
- package/dist/{remote-session-VBVUMIUP.cjs → remote-session-BQMTIQTU.cjs} +17 -17
- package/dist/{scripts-BSYJJFBQ.cjs → scripts-G4QAT4NZ.cjs} +39 -39
- package/dist/{software-update-KVEYYORC.cjs → software-update-IYHJABLP.cjs} +36 -36
- package/dist/{tickets-board-YRZ54JJS.cjs → tickets-board-TRXOX77R.cjs} +17 -17
- package/dist/{video-file-player-4QMVTOBE.cjs → video-file-player-IAMWBKEQ.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/chat/chat-message-enhanced.tsx +24 -1
- package/src/components/chat/embeddable-chat.tsx +61 -1
- package/src/components/chat/entity-cards/chat-card-disclosure.tsx +233 -0
- package/src/components/chat/entity-cards/dispatch.tsx +104 -63
- package/src/components/chat/entity-cards/index.ts +9 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/inline-app-link-chip.tsx +79 -0
- package/src/components/chat/source-action-button.tsx +53 -2
- package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +4 -2
- package/src/components/features/select-button.tsx +1 -1
- package/src/components/platform/ScriptArguments.tsx +8 -1
- package/src/components/ui/button/button-styles.ts +18 -1
- package/src/components/ui/button/button.tsx +7 -4
- package/src/components/ui/button/split-button.tsx +3 -2
- package/src/components/ui/checkbox-block.tsx +3 -1
- package/src/components/ui/input-styles.ts +2 -0
- package/dist/case-study-card-3XLKCGLV.cjs +0 -23
|
@@ -1,61 +1,61 @@
|
|
|
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 _chunkJOKOQOLJcjs = require('./chunk-JOKOQOLJ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkWJPEDREUcjs = require('./chunk-WJPEDREU.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkIDEOLXY6cjs = require('./chunk-IDEOLXY6.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkKINBPFACcjs = require('./chunk-KINBPFAC.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk7ERD34HQcjs = require('./chunk-7ERD34HQ.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunk6CZVQ72Ccjs = require('./chunk-6CZVQ72C.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkF4ZJRMMMcjs = require('./chunk-F4ZJRMMM.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkGAR2IIU6cjs = require('./chunk-GAR2IIU6.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkY6MJMPHVcjs = require('./chunk-Y6MJMPHV.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _chunkRD66AGUIcjs = require('./chunk-RD66AGUI.cjs');
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
var
|
|
53
|
+
var _chunk3TOWCFIKcjs = require('./chunk-3TOWCFIK.cjs');
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
|
|
59
59
|
|
|
60
60
|
// src/components/onboarding-guides/onboarding-guides-catalog-view.tsx
|
|
61
61
|
var _lucidereact = require('lucide-react');
|
|
@@ -72,10 +72,10 @@ var ONBOARDING_CATALOG_SKELETON_CARDS = 3;
|
|
|
72
72
|
function OnboardingCatalogSectionsSkeleton() {
|
|
73
73
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CATALOG_SECTIONS_CLASS, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { className: CATALOG_SECTION_CLASS, "data-loading-item": true, children: [
|
|
74
74
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h2", { className: CATALOG_SECTION_HEADING_CLASS, children: [
|
|
75
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
76
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CATALOG_SECTION_COUNT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
75
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }),
|
|
76
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CATALOG_SECTION_COUNT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-3" }) })
|
|
77
77
|
] }),
|
|
78
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
78
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: ONBOARDING_CATALOG_SKELETON_CARDS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.OnboardingGuideCard, { loading: true, size: "catalog" }) }) }) })
|
|
79
79
|
] }) });
|
|
80
80
|
}
|
|
81
81
|
function OnboardingGuidesCatalogView({
|
|
@@ -91,15 +91,15 @@ function OnboardingGuidesCatalogView({
|
|
|
91
91
|
const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
|
|
92
92
|
const [isPending, startTransition] = _react.useTransition.call(void 0, );
|
|
93
93
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
94
|
-
const scoped =
|
|
94
|
+
const scoped = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
95
95
|
const selfFetch = !scoped && initialGuides === void 0 && guidesEndpoint !== void 0;
|
|
96
96
|
const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
|
|
97
97
|
const activeSection = sectionValue || "all";
|
|
98
98
|
const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
|
|
99
|
-
const guidesRes =
|
|
99
|
+
const guidesRes = _chunkF4ZJRMMMcjs.useSelfFetch.call(void 0,
|
|
100
100
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
101
101
|
);
|
|
102
|
-
const sectionsRes =
|
|
102
|
+
const sectionsRes = _chunkF4ZJRMMMcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
|
|
103
103
|
const guides = _react.useMemo.call(void 0, () => _nullishCoalesce(_nullishCoalesce(initialGuides, () => ( _optionalChain([guidesRes, 'access', _2 => _2.data, 'optionalAccess', _3 => _3.data]))), () => ( [])), [initialGuides, _optionalChain([guidesRes, 'access', _4 => _4.data, 'optionalAccess', _5 => _5.data])]);
|
|
104
104
|
const sections = _react.useMemo.call(void 0,
|
|
105
105
|
() => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
|
|
@@ -143,25 +143,25 @@ function OnboardingGuidesCatalogView({
|
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
145
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
146
|
-
const docSearch =
|
|
146
|
+
const docSearch = _chunkWJPEDREUcjs.useDocSearch.call(void 0, {
|
|
147
147
|
source,
|
|
148
148
|
baseRoute: basePath,
|
|
149
149
|
onNavigate: (path) => router.push(path),
|
|
150
150
|
tableIds: ["onboarding-guides"]
|
|
151
151
|
});
|
|
152
152
|
const defaultRenderCard = (guide) => {
|
|
153
|
-
const cta =
|
|
153
|
+
const cta = _chunkKINBPFACcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
154
154
|
type: "onboarding_guide",
|
|
155
155
|
slug: guide.slug,
|
|
156
156
|
basePath,
|
|
157
157
|
platforms: guide.onboarding_guide_platforms
|
|
158
158
|
});
|
|
159
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
159
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
|
|
160
160
|
};
|
|
161
161
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
162
162
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_CONTROLS_CLASS, children: [
|
|
163
163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
164
|
-
|
|
164
|
+
_chunkWJPEDREUcjs.DocSearchBar,
|
|
165
165
|
{
|
|
166
166
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
167
167
|
query: docSearch.query,
|
|
@@ -173,7 +173,7 @@ function OnboardingGuidesCatalogView({
|
|
|
173
173
|
}
|
|
174
174
|
),
|
|
175
175
|
(loading || sections.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
176
|
-
|
|
176
|
+
_chunkIDEOLXY6cjs.FilterPillRow,
|
|
177
177
|
{
|
|
178
178
|
label: "Section",
|
|
179
179
|
selectedValue: activeSection,
|
|
@@ -184,7 +184,7 @@ function OnboardingGuidesCatalogView({
|
|
|
184
184
|
)
|
|
185
185
|
] });
|
|
186
186
|
if (!loading && selfFetch && guidesRes.error) {
|
|
187
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIDEOLXY6cjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
188
188
|
}
|
|
189
189
|
const view = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_VIEW_CLASS, children: [
|
|
190
190
|
preControls,
|
|
@@ -200,7 +200,7 @@ function OnboardingGuidesCatalogView({
|
|
|
200
200
|
)
|
|
201
201
|
] });
|
|
202
202
|
if (!loading) return view;
|
|
203
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
203
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ERD34HQcjs.LoadingFallback, { label: "Loading onboarding guides", children: view });
|
|
204
204
|
}
|
|
205
205
|
function OnboardingCatalogSections({
|
|
206
206
|
grouped,
|
|
@@ -209,7 +209,7 @@ function OnboardingCatalogSections({
|
|
|
209
209
|
allSections,
|
|
210
210
|
renderCard
|
|
211
211
|
}) {
|
|
212
|
-
if (
|
|
212
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OnboardingCatalogSectionsSkeleton, {});
|
|
213
213
|
if (grouped.length === 0) {
|
|
214
214
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "py-16 text-center", children: [
|
|
215
215
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.GraduationCap, { className: "mx-auto mb-4 h-12 w-12 text-ods-text-secondary" }),
|
|
@@ -217,7 +217,7 @@ function OnboardingCatalogSections({
|
|
|
217
217
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: allSections ? "We're working on the onboarding library. Check back soon." : "No guides in this section yet." })
|
|
218
218
|
] });
|
|
219
219
|
}
|
|
220
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
220
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, CATALOG_SECTIONS_CLASS, dimmed && "opacity-60 transition-opacity"), children: grouped.map((sec) => (
|
|
221
221
|
// A section is the data's group: how many there are is the record's (`data-loading-item`).
|
|
222
222
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { className: CATALOG_SECTION_CLASS, "data-loading-item": true, children: [
|
|
223
223
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h2", { className: CATALOG_SECTION_HEADING_CLASS, children: [
|
|
@@ -281,7 +281,7 @@ function RelatedGuides({
|
|
|
281
281
|
related,
|
|
282
282
|
renderCard
|
|
283
283
|
}) {
|
|
284
|
-
const loading =
|
|
284
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
285
285
|
const guides = loading ? Array.from({ length: ONBOARDING_GUIDE_RELATED_SKELETON_COUNT }, (_, i) => ({
|
|
286
286
|
...EMPTY_ONBOARDING_GUIDE,
|
|
287
287
|
id: `skeleton-${i}`
|
|
@@ -291,7 +291,7 @@ function RelatedGuides({
|
|
|
291
291
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h2", { className: RELATED_HEADING_CLASS, children: [
|
|
292
292
|
"More in",
|
|
293
293
|
" ",
|
|
294
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
294
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "inline-block w-32 align-middle" }) : section
|
|
295
295
|
] }),
|
|
296
296
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: RELATED_LIST_CLASS, children: guides.map((guide) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-loading-item": true, children: renderCard(guide) }, guide.id)) })
|
|
297
297
|
] });
|
|
@@ -304,7 +304,7 @@ function OnboardingGuideDetailView({
|
|
|
304
304
|
slug,
|
|
305
305
|
guideEndpoint,
|
|
306
306
|
related = [],
|
|
307
|
-
MarkdownRenderer =
|
|
307
|
+
MarkdownRenderer = _chunkIDEOLXY6cjs.RichMarkdownRenderer,
|
|
308
308
|
renderRelatedCard,
|
|
309
309
|
backHref,
|
|
310
310
|
backLabel = "Back to Getting Started",
|
|
@@ -314,47 +314,47 @@ function OnboardingGuideDetailView({
|
|
|
314
314
|
}) {
|
|
315
315
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
316
316
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
317
|
-
const captions =
|
|
317
|
+
const captions = _chunk7ERD34HQcjs.useCaptions.call(void 0, );
|
|
318
318
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
319
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIDEOLXY6cjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
320
320
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
321
|
-
const scoped =
|
|
321
|
+
const scoped = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
322
322
|
const {
|
|
323
323
|
data: guide,
|
|
324
324
|
isLoading,
|
|
325
325
|
error,
|
|
326
326
|
reload
|
|
327
|
-
} =
|
|
327
|
+
} = _chunkF4ZJRMMMcjs.useSelfFetch.call(void 0, scoped ? null : url, {
|
|
328
328
|
initialData
|
|
329
329
|
});
|
|
330
|
-
const { ref: videoWarmupRef } =
|
|
330
|
+
const { ref: videoWarmupRef } = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, {
|
|
331
331
|
videoUrl: _optionalChain([guide, 'optionalAccess', _8 => _8.main_video_url]),
|
|
332
332
|
supabaseStorageOrigin: _optionalChain([runtime, 'optionalAccess', _9 => _9.endpoints, 'access', _10 => _10.supabaseStorageOrigin])
|
|
333
333
|
});
|
|
334
334
|
const backCfg = { label: backLabel, onClick: () => router.push(resolvedBackHref) };
|
|
335
335
|
const loading = scoped || !guide && isLoading;
|
|
336
336
|
if (!loading && (error || !guide)) {
|
|
337
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIDEOLXY6cjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
338
338
|
}
|
|
339
339
|
const view = _nullishCoalesce(guide, () => ( EMPTY_ONBOARDING_GUIDE));
|
|
340
340
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", view);
|
|
341
341
|
const videoPoster = view.main_video_thumbnail || view.featured_image || view.og_image_url || // `buildOgPlaceholderUrl` always returns a usable string (relative route at
|
|
342
342
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
343
|
-
|
|
343
|
+
_chunkRD66AGUIcjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), view.title, { aspect: "wide" });
|
|
344
344
|
const defaultRenderRelatedCard = (g) => {
|
|
345
|
-
const cta =
|
|
345
|
+
const cta = _chunkKINBPFACcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
346
346
|
type: "onboarding_guide",
|
|
347
347
|
slug: g.slug,
|
|
348
348
|
basePath,
|
|
349
349
|
platforms: g.onboarding_guide_platforms
|
|
350
350
|
});
|
|
351
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
351
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
352
352
|
};
|
|
353
353
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
354
|
-
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
355
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
354
|
+
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIJCSQFLDcjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
|
|
355
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIDEOLXY6cjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
|
|
356
356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
357
|
-
|
|
357
|
+
_chunkGAR2IIU6cjs.EntityAuthorCard,
|
|
358
358
|
{
|
|
359
359
|
author: view.author,
|
|
360
360
|
authorHref,
|
|
@@ -370,7 +370,7 @@ function OnboardingGuideDetailView({
|
|
|
370
370
|
),
|
|
371
371
|
!loading && (view.main_video_url || view.youtube_url) && // A guide's video is optional: the loading state leaves it out.
|
|
372
372
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
373
|
-
|
|
373
|
+
_chunk7ERD34HQcjs.EntityVideoSection,
|
|
374
374
|
{
|
|
375
375
|
mainVideoUrl: view.main_video_url,
|
|
376
376
|
youtubeUrl: view.youtube_url || void 0,
|
|
@@ -387,17 +387,17 @@ function OnboardingGuideDetailView({
|
|
|
387
387
|
) }),
|
|
388
388
|
(loading || view.content) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: BODY_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: _nullishCoalesce(view.content, () => ( "")) }) }),
|
|
389
389
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
390
|
-
|
|
390
|
+
_chunk7ERD34HQcjs.VideoBitesStrip,
|
|
391
391
|
{
|
|
392
392
|
bites: _nullishCoalesce(view.video_bites, () => ( [])),
|
|
393
393
|
filterPublished: true,
|
|
394
394
|
showTitle: false,
|
|
395
|
-
profile:
|
|
395
|
+
profile: _chunkY6MJMPHVcjs.toStripProfile.call(void 0, view.author),
|
|
396
396
|
href: `/onboarding-guides/${view.slug}`
|
|
397
397
|
}
|
|
398
398
|
) }),
|
|
399
399
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
400
|
-
|
|
400
|
+
_chunkJOKOQOLJcjs.ArticleAuthorByline,
|
|
401
401
|
{
|
|
402
402
|
author: _nullishCoalesce(_optionalChain([view, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
|
|
403
403
|
avatar: _optionalChain([view, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
|
|
@@ -410,7 +410,7 @@ function OnboardingGuideDetailView({
|
|
|
410
410
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RelatedGuides, { section: view.section, related, renderCard: renderRelatedCardFn }),
|
|
411
411
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: relatedContent }, "related-content")
|
|
412
412
|
] });
|
|
413
|
-
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
413
|
+
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ERD34HQcjs.LoadingFallback, { label: "Loading the guide", children: page }) : page);
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
// src/components/onboarding-guides/hooks/use-onboarding-guides.ts
|
|
@@ -430,7 +430,7 @@ var onboardingGuideKeys = {
|
|
|
430
430
|
}
|
|
431
431
|
};
|
|
432
432
|
function useOnboardingGuides(filters) {
|
|
433
|
-
const held =
|
|
433
|
+
const held = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
434
434
|
return _reactquery.useQuery.call(void 0, {
|
|
435
435
|
enabled: !held,
|
|
436
436
|
queryKey: onboardingGuideKeys.list(filters || {}),
|
|
@@ -448,7 +448,7 @@ function useOnboardingGuides(filters) {
|
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
450
|
function useOnboardingGuide(slug) {
|
|
451
|
-
const held =
|
|
451
|
+
const held = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
452
452
|
return _reactquery.useQuery.call(void 0, {
|
|
453
453
|
queryKey: onboardingGuideKeys.detail(slug || ""),
|
|
454
454
|
queryFn: async () => {
|
|
@@ -460,7 +460,7 @@ function useOnboardingGuide(slug) {
|
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
462
|
function useOnboardingGuideSections() {
|
|
463
|
-
const held =
|
|
463
|
+
const held = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
464
464
|
return _reactquery.useQuery.call(void 0, {
|
|
465
465
|
enabled: !held,
|
|
466
466
|
queryKey: onboardingGuideKeys.sections(),
|
|
@@ -8,20 +8,20 @@ var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
|
8
8
|
var _chunkLC65AC6Mcjs = require('./chunk-LC65AC6M.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk3V5JWG27cjs = require('./chunk-3V5JWG27.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk3TOWCFIKcjs = require('./chunk-3TOWCFIK.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkFCZAUK4Dcjs = require('./chunk-FCZAUK4D.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
|
|
25
25
|
|
|
26
26
|
// src/components/ui/floating-tooltip.tsx
|
|
27
27
|
|
|
@@ -58,7 +58,7 @@ function parseColoredText(text) {
|
|
|
58
58
|
const coloredText = match[2];
|
|
59
59
|
const colorClass = color === "yellow" ? "text-ods-accent" : color === "green" ? "text-ods-success" : color === "red" ? "text-ods-error" : color === "blue" ? "text-ods-info" : color === "pink" ? "text-ods-accent" : color === "cyan" ? "text-ods-info" : "text-ods-accent";
|
|
60
60
|
parts.push(
|
|
61
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
61
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "font-semibold", colorClass), children: coloredText }, `color-${keyIndex++}`)
|
|
62
62
|
);
|
|
63
63
|
lastIndex = match.index + match[0].length;
|
|
64
64
|
}
|
|
@@ -142,7 +142,7 @@ function FloatingTooltip({
|
|
|
142
142
|
zIndex: 2147483647
|
|
143
143
|
},
|
|
144
144
|
...getFloatingProps(),
|
|
145
|
-
className:
|
|
145
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
146
146
|
// ODS Design System tooltip styling. `flex flex-col` + `overflow-hidden`
|
|
147
147
|
// let the inner wrapper own the scroll while the rounded corners clip it.
|
|
148
148
|
"flex max-w-xs flex-col overflow-hidden rounded-md",
|
|
@@ -162,7 +162,7 @@ function FloatingTooltip({
|
|
|
162
162
|
top: arrowY != null ? `${arrowY}px` : "",
|
|
163
163
|
...staticSide && { [staticSide]: "-4px" }
|
|
164
164
|
},
|
|
165
|
-
className:
|
|
165
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "absolute h-2 w-2 rotate-45", "border-ods-border bg-ods-card", {
|
|
166
166
|
"border-b border-r": staticSide === "left",
|
|
167
167
|
"border-r border-t": staticSide === "bottom",
|
|
168
168
|
// `right` and `top` were separate keys spelling the same two
|
|
@@ -258,7 +258,7 @@ function TagLabel({ label, labelClassName }) {
|
|
|
258
258
|
const isString = typeof label === "string";
|
|
259
259
|
const { ref, isTruncated } = _chunkLC65AC6Mcjs.useIsTruncated.call(void 0, isString ? label : null);
|
|
260
260
|
if (!isString) {
|
|
261
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
261
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "truncate", labelClassName), children: label });
|
|
262
262
|
}
|
|
263
263
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
264
264
|
FloatingTooltip,
|
|
@@ -269,7 +269,7 @@ function TagLabel({ label, labelClassName }) {
|
|
|
269
269
|
as: "span",
|
|
270
270
|
triggerClassName: "min-w-0 max-w-full",
|
|
271
271
|
className: "max-w-xs whitespace-pre-line [overflow-wrap:anywhere]",
|
|
272
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { ref, className:
|
|
272
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "block truncate", labelClassName), children: label })
|
|
273
273
|
}
|
|
274
274
|
);
|
|
275
275
|
}
|
|
@@ -286,20 +286,20 @@ function Tag({
|
|
|
286
286
|
loading,
|
|
287
287
|
...props
|
|
288
288
|
}) {
|
|
289
|
-
const inScope =
|
|
289
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
290
290
|
if (!!loading || inScope && isEmptyTagLabel(label))
|
|
291
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TagSkeleton, { size: _nullishCoalesce(size2, () => ( "default")), className, ...
|
|
291
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TagSkeleton, { size: _nullishCoalesce(size2, () => ( "default")), className, ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props) });
|
|
292
292
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
293
293
|
Comp,
|
|
294
294
|
{
|
|
295
|
-
className:
|
|
295
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, tagVariants({ variant, size: size2 }), disabled && disabledTagClasses, className),
|
|
296
296
|
"aria-disabled": disabled || void 0,
|
|
297
297
|
...props,
|
|
298
298
|
children: [
|
|
299
|
-
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
299
|
+
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex shrink-0 items-center justify-center", size2 === "large" ? "size-6" : "size-5"), children: icon }),
|
|
300
300
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TagLabel, { label, labelClassName }),
|
|
301
301
|
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
302
|
-
|
|
302
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
303
303
|
{
|
|
304
304
|
variant: "transparent",
|
|
305
305
|
size: "icon-inline",
|
|
@@ -326,11 +326,11 @@ function TagSkeleton({
|
|
|
326
326
|
...props
|
|
327
327
|
}) {
|
|
328
328
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
329
|
-
|
|
329
|
+
_chunk3TOWCFIKcjs.UnifiedSkeleton,
|
|
330
330
|
{
|
|
331
331
|
as: "span",
|
|
332
|
-
className:
|
|
333
|
-
...
|
|
332
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, TAG_FRAME_CLASS, TAG_SIZE_CLASS[size2], "w-16 shrink-0", className),
|
|
333
|
+
..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props)
|
|
334
334
|
}
|
|
335
335
|
);
|
|
336
336
|
}
|
|
@@ -873,7 +873,7 @@ var SquareAvatar = _react3.memo.call(void 0,
|
|
|
873
873
|
style,
|
|
874
874
|
...props
|
|
875
875
|
}, ref) => {
|
|
876
|
-
const inScope =
|
|
876
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
877
877
|
const held = inScope || !!loading;
|
|
878
878
|
const authedSrc = _chunkLC65AC6Mcjs.useAuthedImageSrc.call(void 0, held ? void 0 : src);
|
|
879
879
|
if (held) {
|
|
@@ -884,18 +884,18 @@ var SquareAvatar = _react3.memo.call(void 0,
|
|
|
884
884
|
sizePx,
|
|
885
885
|
variant,
|
|
886
886
|
className,
|
|
887
|
-
...
|
|
887
|
+
..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props)
|
|
888
888
|
}
|
|
889
889
|
);
|
|
890
890
|
}
|
|
891
891
|
const resolvedSrc = authedSrc;
|
|
892
|
-
const sizeClasses =
|
|
893
|
-
const sizePxBySize =
|
|
892
|
+
const sizeClasses = _chunk3TOWCFIKcjs.AVATAR_SIZE;
|
|
893
|
+
const sizePxBySize = _chunk3TOWCFIKcjs.AVATAR_SIZE_PX;
|
|
894
894
|
const variantClasses = SQUARE_AVATAR_VARIANT_CLASS;
|
|
895
895
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
896
896
|
"div",
|
|
897
897
|
{
|
|
898
|
-
className:
|
|
898
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
899
899
|
"relative flex shrink-0 items-center justify-center overflow-hidden border border-ods-border bg-ods-bg",
|
|
900
900
|
sizePx === void 0 && sizeClasses[size2],
|
|
901
901
|
variantClasses[variant],
|
|
@@ -908,7 +908,7 @@ var SquareAvatar = _react3.memo.call(void 0,
|
|
|
908
908
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
909
909
|
"div",
|
|
910
910
|
{
|
|
911
|
-
className:
|
|
911
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
912
912
|
// Initials default to `--color-text-primary` (the old
|
|
913
913
|
// `text-ods-text-primary` value) so they stay readable on the default
|
|
914
914
|
// `bg-ods-bg` AND on the brand accent fills (`bg-ods-flamingo-pink`
|
|
@@ -927,13 +927,13 @@ var SquareAvatar = _react3.memo.call(void 0,
|
|
|
927
927
|
}
|
|
928
928
|
),
|
|
929
929
|
resolvedSrc && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
930
|
-
|
|
930
|
+
_chunk3V5JWG27cjs.next_image_default,
|
|
931
931
|
{
|
|
932
|
-
className:
|
|
932
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
933
933
|
"absolute max-w-none",
|
|
934
934
|
fit === "contain" ? (
|
|
935
935
|
// A LOGO or crest must fit whole; cover would slice its edges.
|
|
936
|
-
|
|
936
|
+
_chunk63A4GZMBcjs.cn.call(void 0, "inset-0 h-full w-full object-contain", padded && "p-1")
|
|
937
937
|
) : (
|
|
938
938
|
// A portrait fills the frame; the 1px overscan hides edge seams.
|
|
939
939
|
"-inset-px h-[calc(100%+2px)] w-[calc(100%+2px)] object-cover"
|
|
@@ -967,12 +967,12 @@ function SquareAvatarSkeleton({
|
|
|
967
967
|
...props
|
|
968
968
|
}) {
|
|
969
969
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
970
|
-
|
|
970
|
+
_chunk3TOWCFIKcjs.UnifiedSkeleton,
|
|
971
971
|
{
|
|
972
|
-
...
|
|
973
|
-
className:
|
|
972
|
+
..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props),
|
|
973
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
974
974
|
"shrink-0",
|
|
975
|
-
sizePx === void 0 &&
|
|
975
|
+
sizePx === void 0 && _chunk3TOWCFIKcjs.AVATAR_SIZE[size2],
|
|
976
976
|
SQUARE_AVATAR_VARIANT_CLASS[variant],
|
|
977
977
|
className
|
|
978
978
|
),
|