@flamingo-stack/openframe-frontend-core 0.0.786 → 0.0.788
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-A3ZZQPAR.cjs +23 -0
- package/dist/{chunk-5CAQZRVN.cjs → chunk-3IQSAHNA.cjs} +7 -7
- package/dist/{chunk-WNKOWR3E.cjs → chunk-3L6OTKZS.cjs} +4 -4
- package/dist/{chunk-NWNC22IZ.cjs → chunk-3VBFSRLM.cjs} +7 -4
- package/dist/{chunk-55KZW2P2.cjs → chunk-5E4MQKA2.cjs} +31 -31
- package/dist/{chunk-FFW3IY5E.cjs → chunk-5RFEI4NG.cjs} +60 -60
- package/dist/{chunk-DNB5DELQ.cjs → chunk-5SBZNPAQ.cjs} +3 -3
- package/dist/{chunk-JSNLMPXN.cjs → chunk-5YW4ZQDN.cjs} +3 -3
- package/dist/{chunk-4ZHLORL3.cjs → chunk-6EQMXFYL.cjs} +5 -5
- package/dist/{chunk-YCSX7MCG.cjs → chunk-6XMSR6ZN.cjs} +197 -197
- package/dist/{chunk-7W3NVU4V.cjs → chunk-6ZYMEICP.cjs} +10 -10
- package/dist/{chunk-7FCOQCAK.cjs → chunk-72WOJNJD.cjs} +61 -61
- package/dist/{chunk-2U4H74KS.cjs → chunk-77G4JUKF.cjs} +45 -45
- package/dist/{chunk-MZOODES3.cjs → chunk-7DEIC7SO.cjs} +5 -5
- package/dist/{chunk-3ITHC2Y4.cjs → chunk-7XXVP7JL.cjs} +6 -6
- package/dist/{chunk-HAAQUV3O.cjs → chunk-AG5TL4XB.cjs} +54 -54
- package/dist/{chunk-GX6YLDAS.cjs → chunk-AMVMQQAE.cjs} +22 -22
- package/dist/{chunk-5PVYYZEK.cjs → chunk-B2IZPIDH.cjs} +37 -37
- package/dist/{chunk-LCSYTFFO.cjs → chunk-BRUR5VZK.cjs} +14 -14
- package/dist/{chunk-HE6UVP6R.cjs → chunk-BYV4247W.cjs} +10 -10
- package/dist/{chunk-2JDK4FWV.cjs → chunk-D4ZL66TC.cjs} +207 -207
- package/dist/{chunk-EIXFIGLX.cjs → chunk-DBMF3WYK.cjs} +13 -13
- package/dist/{chunk-NVWROBPF.cjs → chunk-DCV5PT6A.cjs} +2320 -2309
- package/dist/{chunk-JHY6H2XR.cjs → chunk-DIWGL75M.cjs} +3 -3
- package/dist/{chunk-JZUBBNTT.cjs → chunk-DQTIMLNZ.cjs} +110 -110
- package/dist/{chunk-J4ZNQ55O.cjs → chunk-ERSUY46C.cjs} +2 -2
- package/dist/{chunk-WLHHXAT7.cjs → chunk-GMS6JDDE.cjs} +19 -19
- package/dist/{chunk-EQKMFQ5J.cjs → chunk-GXW76CAB.cjs} +536 -536
- package/dist/{chunk-7QK4R7UU.cjs → chunk-HTZ3BUIK.cjs} +8 -8
- package/dist/{chunk-OOSSOL7E.cjs → chunk-I37MWS2S.cjs} +171 -171
- package/dist/{chunk-G7COLTR6.cjs → chunk-KSF4RGDJ.cjs} +17 -17
- package/dist/{chunk-KKD7XV5A.cjs → chunk-KXNG7GJG.cjs} +29 -29
- package/dist/{chunk-QWVVXXFG.cjs → chunk-L275VYUB.cjs} +4 -4
- package/dist/{chunk-FDPAD7GS.cjs → chunk-LZYP5VVZ.cjs} +44 -44
- package/dist/{chunk-RU37NNZG.cjs → chunk-MNQUIS73.cjs} +2 -2
- package/dist/{chunk-DGUZUOWN.cjs → chunk-O4IUGOXL.cjs} +42 -42
- package/dist/{chunk-IZXVGIQX.cjs → chunk-OKGNQPLB.cjs} +44 -44
- package/dist/{chunk-BQDO7PU7.cjs → chunk-OKJKQORU.cjs} +51 -51
- package/dist/{chunk-UVPV6TUI.cjs → chunk-P4ZRVLBR.cjs} +23 -23
- package/dist/{chunk-Q73MAT62.cjs → chunk-PEHK7FUE.cjs} +3 -3
- package/dist/{chunk-PCBKE6LA.cjs → chunk-SEL2L4D6.cjs} +4 -4
- package/dist/{chunk-Y6KZFPZN.cjs → chunk-TF3YPD4H.cjs} +12 -12
- package/dist/{chunk-NXUL4W7Q.cjs → chunk-TRJX7CRZ.cjs} +13 -13
- package/dist/{chunk-3SENOTWT.cjs → chunk-URHI45W6.cjs} +110 -110
- package/dist/{chunk-BP7GLDRJ.cjs → chunk-UV2CIZ4A.cjs} +63 -63
- package/dist/{chunk-TC2T5Q7M.cjs → chunk-V6TTOG2Q.cjs} +14 -14
- package/dist/{chunk-LCPJNG5M.cjs → chunk-VB4HZ22M.cjs} +115 -115
- package/dist/{chunk-L4ORB5RP.cjs → chunk-WAVW3WWL.cjs} +16 -16
- package/dist/{chunk-2PMLX52X.cjs → chunk-X6AZJ2YS.cjs} +46 -46
- package/dist/{chunk-TRV5GGOH.cjs → chunk-XJHFHEIT.cjs} +61 -61
- package/dist/{chunk-EOZ23WOY.cjs → chunk-Y3TAVCEN.cjs} +321 -321
- package/dist/{chunk-5Z77NJZF.cjs → chunk-YBMOEHC2.cjs} +7 -7
- package/dist/{cloud-tenants-TJSSGC5O.cjs → cloud-tenants-2NSZHNUB.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/entity-cards/program-card.js +1 -1
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/chat/mingo-info-card.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/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/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/actions-menu.js +1 -1
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +7 -4
- package/dist/components/ui/data-table/data-table-row.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-row.js +11 -0
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +32 -32
- package/dist/{devices-RQ7OSCJZ.cjs → devices-6P4J4I7L.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-SYWOS6YZ.cjs → embeddable-chat-5LISPJ2K.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +48 -48
- package/dist/{knowledge-5QKXKQ4Q.cjs → knowledge-C6VCTNO3.cjs} +33 -33
- package/dist/{logs-GBKJZHMC.cjs → logs-DHQ3TZ2M.cjs} +41 -41
- package/dist/{policies-WAYKWIZM.cjs → policies-FK3QTLYA.cjs} +36 -36
- package/dist/{remote-session-AXKWTU4I.cjs → remote-session-4KYHC4DN.cjs} +17 -17
- package/dist/{scripts-L46FQYCQ.cjs → scripts-H76VA742.cjs} +39 -39
- package/dist/{software-update-2HMC5XIV.cjs → software-update-WU23LW7Q.cjs} +36 -36
- package/dist/{tickets-board-SXETISNL.cjs → tickets-board-A3PBEURN.cjs} +17 -17
- package/dist/{video-file-player-XWZIO3YN.cjs → video-file-player-RC2QPLNE.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/chat/entity-cards/program-card.tsx +6 -2
- package/src/components/chat/mingo-info-card.tsx +1 -1
- package/src/components/ui/actions-menu.tsx +1 -1
- package/src/components/ui/button/button-styles.ts +7 -4
- package/src/components/ui/data-table/data-table-row.tsx +23 -0
- package/dist/case-study-card-236RTB5D.cjs +0 -23
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkY3TAVCENcjs = require('./chunk-Y3TAVCEN.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkURHI45W6cjs = require('./chunk-URHI45W6.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkKXNG7GJGcjs = require('./chunk-KXNG7GJG.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunk7PNRXJX2cjs = require('./chunk-7PNRXJX2.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk6EQMXFYLcjs = require('./chunk-6EQMXFYL.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk3VBFSRLMcjs = require('./chunk-3VBFSRLM.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -53,7 +53,7 @@ function pickBadgePaletteColor({
|
|
|
53
53
|
var _jsxruntime = require('react/jsx-runtime');
|
|
54
54
|
function PaletteBadge({ text, color, className, variant = "button" }) {
|
|
55
55
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
|
-
|
|
56
|
+
_chunkURHI45W6cjs.StatusBadge,
|
|
57
57
|
{
|
|
58
58
|
text,
|
|
59
59
|
colorScheme: isBadgePaletteKey(color) ? color : "default",
|
|
@@ -142,12 +142,12 @@ var STATUS_BADGE_SCHEME = {
|
|
|
142
142
|
abandoned: "default"
|
|
143
143
|
};
|
|
144
144
|
function EmployeeEntryBadge({ children }) {
|
|
145
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
145
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkURHI45W6cjs.StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
146
146
|
}
|
|
147
147
|
function EmployeeEntryCard(props) {
|
|
148
|
-
if (
|
|
148
|
+
if (_chunk3VBFSRLMcjs.useLoadingScope.call(void 0, ) || props.loading) {
|
|
149
149
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
150
|
-
|
|
150
|
+
_chunkY3TAVCENcjs.AdminContentCard,
|
|
151
151
|
{
|
|
152
152
|
loading: true,
|
|
153
153
|
title: "",
|
|
@@ -169,9 +169,9 @@ function LoadedEmployeeEntryCard({
|
|
|
169
169
|
anchorProps,
|
|
170
170
|
className
|
|
171
171
|
}) {
|
|
172
|
-
const authorAvatar =
|
|
172
|
+
const authorAvatar = _chunkY3TAVCENcjs.useProxiedImageUrl.call(void 0, _optionalChain([entry, 'access', _7 => _7.author, 'optionalAccess', _8 => _8.avatar_url]), { directHttps: false });
|
|
173
173
|
const card = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
174
|
-
|
|
174
|
+
_chunkY3TAVCENcjs.AdminContentCard,
|
|
175
175
|
{
|
|
176
176
|
imageUrl: entry.featured_image || entry.main_video_thumbnail,
|
|
177
177
|
placeholderUrl,
|
|
@@ -179,7 +179,7 @@ function LoadedEmployeeEntryCard({
|
|
|
179
179
|
summary: (_nullishCoalesce(entry.summary, () => ( ""))).slice(0, 140) || "No description",
|
|
180
180
|
badges: entry.status || extraBadges ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
181
181
|
entry.status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
182
|
-
|
|
182
|
+
_chunkURHI45W6cjs.StatusBadge,
|
|
183
183
|
{
|
|
184
184
|
text: entry.status,
|
|
185
185
|
colorScheme: _nullishCoalesce(STATUS_BADGE_SCHEME[entry.status], () => ( "default")),
|
|
@@ -192,7 +192,7 @@ function LoadedEmployeeEntryCard({
|
|
|
192
192
|
meta: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
193
193
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
194
194
|
authorAvatar ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
195
|
-
|
|
195
|
+
_chunk6EQMXFYLcjs.next_image_default,
|
|
196
196
|
{
|
|
197
197
|
src: authorAvatar,
|
|
198
198
|
alt: "",
|
|
@@ -224,7 +224,7 @@ function WhatIShippedCard(props) {
|
|
|
224
224
|
EmployeeEntryCard,
|
|
225
225
|
{
|
|
226
226
|
entry,
|
|
227
|
-
dateLabel:
|
|
227
|
+
dateLabel: _chunkKXNG7GJGcjs.formatEntryMonthUTC.call(void 0, entry.entry_month, "short"),
|
|
228
228
|
placeholderUrl,
|
|
229
229
|
actions,
|
|
230
230
|
anchorProps,
|
|
@@ -245,7 +245,7 @@ function HowIWorkCard(props) {
|
|
|
245
245
|
EmployeeEntryCard,
|
|
246
246
|
{
|
|
247
247
|
entry,
|
|
248
|
-
dateLabel: entry.session_date ?
|
|
248
|
+
dateLabel: entry.session_date ? _chunkKXNG7GJGcjs.formatDateUTC.call(void 0, entry.session_date, { fallback: "" }) || null : null,
|
|
249
249
|
extraBadges: entry.discipline ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: disciplineLabel(entry.discipline) }) : null,
|
|
250
250
|
untitledLabel: "Untitled session",
|
|
251
251
|
placeholderUrl,
|
|
@@ -267,7 +267,7 @@ function AiPromptCard(props) {
|
|
|
267
267
|
EmployeeEntryCard,
|
|
268
268
|
{
|
|
269
269
|
entry,
|
|
270
|
-
dateLabel: entry.published_at ?
|
|
270
|
+
dateLabel: entry.published_at ? _chunkKXNG7GJGcjs.formatDateUTC.call(void 0, entry.published_at, { fallback: "" }) || null : null,
|
|
271
271
|
extraBadges: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
272
272
|
departmentName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepartmentBadge, { department: { name: departmentName, color: _nullishCoalesce(_optionalChain([entry, 'access', _15 => _15.department, 'optionalAccess', _16 => _16.color]), () => ( null)) } }) : null,
|
|
273
273
|
steps > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: `${steps} steps` }) : null
|
|
@@ -284,7 +284,7 @@ function AiPromptCard(props) {
|
|
|
284
284
|
// src/hooks/use-self-fetch.ts
|
|
285
285
|
var _react = require('react');
|
|
286
286
|
function useSelfFetch(givenUrl, options) {
|
|
287
|
-
const held =
|
|
287
|
+
const held = _chunk3VBFSRLMcjs.useLoadingScope.call(void 0, );
|
|
288
288
|
const url = held ? null : givenUrl;
|
|
289
289
|
const initialData = _optionalChain([options, 'optionalAccess', _17 => _17.initialData]);
|
|
290
290
|
const revalidateOnVisibleAfterMs = _optionalChain([options, 'optionalAccess', _18 => _18.revalidateOnVisibleAfterMs]);
|
|
@@ -8,20 +8,20 @@ var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
|
8
8
|
var _chunkV4FXUIMHcjs = require('./chunk-V4FXUIMH.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk6EQMXFYLcjs = require('./chunk-6EQMXFYL.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkBRUR5VZKcjs = require('./chunk-BRUR5VZK.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkOKGNQPLBcjs = require('./chunk-OKGNQPLB.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk3VBFSRLMcjs = require('./chunk-3VBFSRLM.cjs');
|
|
25
25
|
|
|
26
26
|
// src/components/ui/floating-tooltip.tsx
|
|
27
27
|
|
|
@@ -57,7 +57,7 @@ function parseColoredText(text) {
|
|
|
57
57
|
const coloredText = match[2];
|
|
58
58
|
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";
|
|
59
59
|
parts.push(
|
|
60
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
60
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3VBFSRLMcjs.cn.call(void 0, "font-semibold", colorClass), children: coloredText }, `color-${keyIndex++}`)
|
|
61
61
|
);
|
|
62
62
|
lastIndex = match.index + match[0].length;
|
|
63
63
|
}
|
|
@@ -140,7 +140,7 @@ function FloatingTooltip({
|
|
|
140
140
|
zIndex: 2147483647
|
|
141
141
|
},
|
|
142
142
|
...getFloatingProps(),
|
|
143
|
-
className:
|
|
143
|
+
className: _chunk3VBFSRLMcjs.cn.call(void 0,
|
|
144
144
|
// ODS Design System tooltip styling. `flex flex-col` + `overflow-hidden`
|
|
145
145
|
// let the inner wrapper own the scroll while the rounded corners clip it.
|
|
146
146
|
"flex max-w-xs flex-col overflow-hidden rounded-md",
|
|
@@ -160,7 +160,7 @@ function FloatingTooltip({
|
|
|
160
160
|
top: arrowY != null ? `${arrowY}px` : "",
|
|
161
161
|
...staticSide && { [staticSide]: "-4px" }
|
|
162
162
|
},
|
|
163
|
-
className:
|
|
163
|
+
className: _chunk3VBFSRLMcjs.cn.call(void 0, "absolute h-2 w-2 rotate-45", "border-ods-border bg-ods-card", {
|
|
164
164
|
"border-b border-r": staticSide === "left",
|
|
165
165
|
"border-r border-t": staticSide === "bottom",
|
|
166
166
|
// `right` and `top` were separate keys spelling the same two
|
|
@@ -256,7 +256,7 @@ function TagLabel({ label, labelClassName }) {
|
|
|
256
256
|
const isString = typeof label === "string";
|
|
257
257
|
const { ref, isTruncated } = _chunkV4FXUIMHcjs.useIsTruncated.call(void 0, isString ? label : null);
|
|
258
258
|
if (!isString) {
|
|
259
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
259
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3VBFSRLMcjs.cn.call(void 0, "truncate", labelClassName), children: label });
|
|
260
260
|
}
|
|
261
261
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
262
262
|
FloatingTooltip,
|
|
@@ -267,7 +267,7 @@ function TagLabel({ label, labelClassName }) {
|
|
|
267
267
|
as: "span",
|
|
268
268
|
triggerClassName: "min-w-0 max-w-full",
|
|
269
269
|
className: "max-w-xs whitespace-pre-line [overflow-wrap:anywhere]",
|
|
270
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { ref, className:
|
|
270
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { ref, className: _chunk3VBFSRLMcjs.cn.call(void 0, "block truncate", labelClassName), children: label })
|
|
271
271
|
}
|
|
272
272
|
);
|
|
273
273
|
}
|
|
@@ -284,20 +284,20 @@ function Tag({
|
|
|
284
284
|
loading,
|
|
285
285
|
...props
|
|
286
286
|
}) {
|
|
287
|
-
const inScope =
|
|
287
|
+
const inScope = _chunk3VBFSRLMcjs.useLoadingScope.call(void 0, );
|
|
288
288
|
if (!!loading || inScope && isEmptyTagLabel(label))
|
|
289
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TagSkeleton, { size: _nullishCoalesce(size2, () => ( "default")), className, ...
|
|
289
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TagSkeleton, { size: _nullishCoalesce(size2, () => ( "default")), className, ..._chunk3VBFSRLMcjs.loadingItemProps.call(void 0, props) });
|
|
290
290
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
291
291
|
Comp,
|
|
292
292
|
{
|
|
293
|
-
className:
|
|
293
|
+
className: _chunk3VBFSRLMcjs.cn.call(void 0, tagVariants({ variant, size: size2 }), disabled && disabledTagClasses, className),
|
|
294
294
|
"aria-disabled": disabled || void 0,
|
|
295
295
|
...props,
|
|
296
296
|
children: [
|
|
297
|
-
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
297
|
+
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3VBFSRLMcjs.cn.call(void 0, "flex shrink-0 items-center justify-center", size2 === "large" ? "size-6" : "size-5"), children: icon }),
|
|
298
298
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TagLabel, { label, labelClassName }),
|
|
299
299
|
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
300
|
-
|
|
300
|
+
_chunkOKGNQPLBcjs.Button,
|
|
301
301
|
{
|
|
302
302
|
variant: "transparent",
|
|
303
303
|
size: "icon-inline",
|
|
@@ -324,11 +324,11 @@ function TagSkeleton({
|
|
|
324
324
|
...props
|
|
325
325
|
}) {
|
|
326
326
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
327
|
-
|
|
327
|
+
_chunkBRUR5VZKcjs.UnifiedSkeleton,
|
|
328
328
|
{
|
|
329
329
|
as: "span",
|
|
330
|
-
className:
|
|
331
|
-
...
|
|
330
|
+
className: _chunk3VBFSRLMcjs.cn.call(void 0, TAG_FRAME_CLASS, TAG_SIZE_CLASS[size2], "w-16 shrink-0", className),
|
|
331
|
+
..._chunk3VBFSRLMcjs.loadingItemProps.call(void 0, props)
|
|
332
332
|
}
|
|
333
333
|
);
|
|
334
334
|
}
|
|
@@ -870,7 +870,7 @@ var SquareAvatar = _react3.memo.call(void 0,
|
|
|
870
870
|
style,
|
|
871
871
|
...props
|
|
872
872
|
}, ref) => {
|
|
873
|
-
const inScope =
|
|
873
|
+
const inScope = _chunk3VBFSRLMcjs.useLoadingScope.call(void 0, );
|
|
874
874
|
const held = inScope || !!loading;
|
|
875
875
|
const authedSrc = _chunkV4FXUIMHcjs.useAuthedImageSrc.call(void 0, held ? void 0 : src);
|
|
876
876
|
if (held) {
|
|
@@ -881,18 +881,18 @@ var SquareAvatar = _react3.memo.call(void 0,
|
|
|
881
881
|
sizePx,
|
|
882
882
|
variant,
|
|
883
883
|
className,
|
|
884
|
-
...
|
|
884
|
+
..._chunk3VBFSRLMcjs.loadingItemProps.call(void 0, props)
|
|
885
885
|
}
|
|
886
886
|
);
|
|
887
887
|
}
|
|
888
888
|
const resolvedSrc = authedSrc;
|
|
889
|
-
const sizeClasses =
|
|
890
|
-
const sizePxBySize =
|
|
889
|
+
const sizeClasses = _chunkBRUR5VZKcjs.AVATAR_SIZE;
|
|
890
|
+
const sizePxBySize = _chunkBRUR5VZKcjs.AVATAR_SIZE_PX;
|
|
891
891
|
const variantClasses = SQUARE_AVATAR_VARIANT_CLASS;
|
|
892
892
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
893
893
|
"div",
|
|
894
894
|
{
|
|
895
|
-
className:
|
|
895
|
+
className: _chunk3VBFSRLMcjs.cn.call(void 0,
|
|
896
896
|
"relative flex shrink-0 items-center justify-center overflow-hidden border border-ods-border bg-ods-bg",
|
|
897
897
|
sizePx === void 0 && sizeClasses[size2],
|
|
898
898
|
variantClasses[variant],
|
|
@@ -905,7 +905,7 @@ var SquareAvatar = _react3.memo.call(void 0,
|
|
|
905
905
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
906
906
|
"div",
|
|
907
907
|
{
|
|
908
|
-
className:
|
|
908
|
+
className: _chunk3VBFSRLMcjs.cn.call(void 0,
|
|
909
909
|
// Initials default to `--color-text-primary` (the old
|
|
910
910
|
// `text-ods-text-primary` value) so they stay readable on the default
|
|
911
911
|
// `bg-ods-bg` AND on the brand accent fills (`bg-ods-flamingo-pink`
|
|
@@ -924,9 +924,9 @@ var SquareAvatar = _react3.memo.call(void 0,
|
|
|
924
924
|
}
|
|
925
925
|
),
|
|
926
926
|
resolvedSrc && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
927
|
-
|
|
927
|
+
_chunk6EQMXFYLcjs.next_image_default,
|
|
928
928
|
{
|
|
929
|
-
className:
|
|
929
|
+
className: _chunk3VBFSRLMcjs.cn.call(void 0,
|
|
930
930
|
"absolute max-w-none",
|
|
931
931
|
fit === "contain" ? (
|
|
932
932
|
// A LOGO or crest must fit whole; cover would slice its edges.
|
|
@@ -964,12 +964,12 @@ function SquareAvatarSkeleton({
|
|
|
964
964
|
...props
|
|
965
965
|
}) {
|
|
966
966
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
967
|
-
|
|
967
|
+
_chunkBRUR5VZKcjs.UnifiedSkeleton,
|
|
968
968
|
{
|
|
969
|
-
...
|
|
970
|
-
className:
|
|
969
|
+
..._chunk3VBFSRLMcjs.loadingItemProps.call(void 0, props),
|
|
970
|
+
className: _chunk3VBFSRLMcjs.cn.call(void 0,
|
|
971
971
|
"shrink-0",
|
|
972
|
-
sizePx === void 0 &&
|
|
972
|
+
sizePx === void 0 && _chunkBRUR5VZKcjs.AVATAR_SIZE[size2],
|
|
973
973
|
SQUARE_AVATAR_VARIANT_CLASS[variant],
|
|
974
974
|
className
|
|
975
975
|
),
|
|
@@ -8,7 +8,7 @@ var _chunk7PNRXJX2cjs = require('./chunk-7PNRXJX2.cjs');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkMNQUIS73cjs = require('./chunk-MNQUIS73.cjs');
|
|
12
12
|
|
|
13
13
|
// src/utils/color-analysis.ts
|
|
14
14
|
var DESIGN_PALETTE = [
|
|
@@ -243,13 +243,13 @@ function getSemanticColor(semanticName, platform) {
|
|
|
243
243
|
}
|
|
244
244
|
function getPlatformConfig(platform) {
|
|
245
245
|
const currentPlatform = platform || getCurrentPlatform();
|
|
246
|
-
const isDarkTheme =
|
|
246
|
+
const isDarkTheme = _chunkMNQUIS73cjs.PLATFORM_THEME === "dark";
|
|
247
247
|
return {
|
|
248
248
|
platform: currentPlatform,
|
|
249
|
-
accentColor:
|
|
249
|
+
accentColor: _chunkMNQUIS73cjs.getPlatformAccentColor.call(void 0, currentPlatform),
|
|
250
250
|
isDarkTheme,
|
|
251
251
|
isLightTheme: !isDarkTheme,
|
|
252
|
-
brandName:
|
|
252
|
+
brandName: _chunkMNQUIS73cjs.getPlatformDisplayName.call(void 0, currentPlatform)
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
255
|
function usePlatformColors(platform) {
|
|
@@ -2,41 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkDCV5PT6Acjs = require('./chunk-DCV5PT6A.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkD4ZL66TCcjs = require('./chunk-D4ZL66TC.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk77G4JUKFcjs = require('./chunk-77G4JUKF.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk6XMSR6ZNcjs = require('./chunk-6XMSR6ZN.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkGXW76CABcjs = require('./chunk-GXW76CAB.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkY3TAVCENcjs = require('./chunk-Y3TAVCEN.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkV6TTOG2Qcjs = require('./chunk-V6TTOG2Q.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkDIWGL75Mcjs = require('./chunk-DIWGL75M.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkOKGNQPLBcjs = require('./chunk-OKGNQPLB.cjs');
|
|
40
40
|
|
|
41
41
|
// src/components/contact/contact-form.tsx
|
|
42
42
|
var _zod = require('@hookform/resolvers/zod');
|
|
@@ -119,14 +119,14 @@ function ContactForm({
|
|
|
119
119
|
successToastMessage = "Redirecting you to join our community...",
|
|
120
120
|
rescue: rescueForm = null
|
|
121
121
|
} = {}) {
|
|
122
|
-
const attachments =
|
|
123
|
-
const builtInSubmission =
|
|
122
|
+
const attachments = _chunkGXW76CABcjs.useChatAttachments.call(void 0, );
|
|
123
|
+
const builtInSubmission = _chunk77G4JUKFcjs.useContactSubmission.call(void 0, {
|
|
124
124
|
userId,
|
|
125
125
|
successRedirectUrl,
|
|
126
126
|
successToastMessage
|
|
127
127
|
});
|
|
128
128
|
const [customSubmitting, setCustomSubmitting] = _react.useState.call(void 0, false);
|
|
129
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
129
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunk77G4JUKFcjs.useHumanitySignals.call(void 0, );
|
|
130
130
|
const isSubmitting = onCustomSubmit ? customSubmitting : builtInSubmission.isSubmitting;
|
|
131
131
|
const isSuccess = onCustomSubmit ? false : builtInSubmission.isSuccess;
|
|
132
132
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -152,7 +152,7 @@ function ContactForm({
|
|
|
152
152
|
),
|
|
153
153
|
[hideFields]
|
|
154
154
|
);
|
|
155
|
-
const rescue =
|
|
155
|
+
const rescue = _chunk77G4JUKFcjs.useRescuedForm.call(void 0, form, { rescue: rescueForm, fields: rescueFieldNames, getSignals });
|
|
156
156
|
const handleFormSubmit = async (data) => {
|
|
157
157
|
if (isSubmitting) return;
|
|
158
158
|
if (attachmentsEnabled && attachments.hasInflightUploads) return;
|
|
@@ -190,7 +190,7 @@ function ContactForm({
|
|
|
190
190
|
className: `flex h-full flex-col ${!noBorder ? "rounded-2xl border border-ods-border content-md:rounded-3xl" : ""} ${!noPadding ? "p-6 content-md:p-8 content-lg:p-10" : ""}`,
|
|
191
191
|
children: [
|
|
192
192
|
(title || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-6 content-md:mb-8", children: [
|
|
193
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
193
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkY3TAVCENcjs.SECTION_HEADING_CLASS} mb-3 content-md:mb-4`, children: _chunkY3TAVCENcjs.accentSentenceMarks.call(void 0, title) }),
|
|
194
194
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: subtitle })
|
|
195
195
|
] }),
|
|
196
196
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -203,22 +203,22 @@ function ContactForm({
|
|
|
203
203
|
);
|
|
204
204
|
}),
|
|
205
205
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
206
|
-
...
|
|
206
|
+
..._chunk6XMSR6ZNcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
207
207
|
children: [
|
|
208
208
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
209
209
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
210
210
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
211
211
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCV5PT6Acjs.HoneypotField, { ...honeypotInputProps }),
|
|
213
213
|
extraTopField,
|
|
214
214
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
215
215
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
216
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
216
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDIWGL75Mcjs.Label, { htmlFor: "name", children: [
|
|
217
217
|
"Your Name",
|
|
218
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
218
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6TTOG2Qcjs.RequiredMark, {})
|
|
219
219
|
] }),
|
|
220
220
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
221
|
-
|
|
221
|
+
_chunkV6TTOG2Qcjs.Input,
|
|
222
222
|
{
|
|
223
223
|
id: "name",
|
|
224
224
|
type: "text",
|
|
@@ -233,12 +233,12 @@ function ContactForm({
|
|
|
233
233
|
errors.name && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "name-error", className: "mt-1 text-ods-error text-h6", children: errors.name.message })
|
|
234
234
|
] }),
|
|
235
235
|
showEmail && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
236
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
236
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDIWGL75Mcjs.Label, { htmlFor: "email", children: [
|
|
237
237
|
"Email",
|
|
238
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
238
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6TTOG2Qcjs.RequiredMark, {})
|
|
239
239
|
] }),
|
|
240
240
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
241
|
-
|
|
241
|
+
_chunkV6TTOG2Qcjs.Input,
|
|
242
242
|
{
|
|
243
243
|
id: "email",
|
|
244
244
|
type: "email",
|
|
@@ -255,46 +255,46 @@ function ContactForm({
|
|
|
255
255
|
] }),
|
|
256
256
|
(showCompanySize || showReferralSource) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
257
257
|
showCompanySize && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
258
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
258
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDIWGL75Mcjs.Label, { htmlFor: "companySize", children: "Company Size" }),
|
|
259
259
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
260
260
|
_reacthookform.Controller,
|
|
261
261
|
{
|
|
262
262
|
control,
|
|
263
263
|
name: "companySize",
|
|
264
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
264
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkD4ZL66TCcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
265
265
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
266
|
-
|
|
266
|
+
_chunkD4ZL66TCcjs.SelectTrigger,
|
|
267
267
|
{
|
|
268
268
|
id: "companySize",
|
|
269
269
|
"aria-label": "Company Size",
|
|
270
270
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
271
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
271
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD4ZL66TCcjs.SelectValue, { placeholder: "Select company size" })
|
|
272
272
|
}
|
|
273
273
|
),
|
|
274
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
274
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD4ZL66TCcjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD4ZL66TCcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
275
275
|
] })
|
|
276
276
|
}
|
|
277
277
|
),
|
|
278
278
|
errors.companySize && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "companySize-error", className: "mt-1 text-ods-error text-h6", children: errors.companySize.message })
|
|
279
279
|
] }),
|
|
280
280
|
showReferralSource && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
281
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
281
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDIWGL75Mcjs.Label, { htmlFor: "referralSource", children: "How did you hear about us?" }),
|
|
282
282
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
283
283
|
_reacthookform.Controller,
|
|
284
284
|
{
|
|
285
285
|
control,
|
|
286
286
|
name: "referralSource",
|
|
287
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
287
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkD4ZL66TCcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
288
288
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
289
|
-
|
|
289
|
+
_chunkD4ZL66TCcjs.SelectTrigger,
|
|
290
290
|
{
|
|
291
291
|
id: "referralSource",
|
|
292
292
|
"aria-label": "Referral Source",
|
|
293
293
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
294
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
294
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD4ZL66TCcjs.SelectValue, { placeholder: "Select an option" })
|
|
295
295
|
}
|
|
296
296
|
),
|
|
297
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD4ZL66TCcjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD4ZL66TCcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
298
298
|
] })
|
|
299
299
|
}
|
|
300
300
|
),
|
|
@@ -302,39 +302,39 @@ function ContactForm({
|
|
|
302
302
|
] })
|
|
303
303
|
] }),
|
|
304
304
|
showHelpCategory && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
305
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
305
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDIWGL75Mcjs.Label, { htmlFor: "helpCategory", children: [
|
|
306
306
|
"Choose your main interest",
|
|
307
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
307
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6TTOG2Qcjs.RequiredMark, {})
|
|
308
308
|
] }),
|
|
309
309
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
310
310
|
_reacthookform.Controller,
|
|
311
311
|
{
|
|
312
312
|
control,
|
|
313
313
|
name: "helpCategory",
|
|
314
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
314
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkD4ZL66TCcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
315
315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
-
|
|
316
|
+
_chunkD4ZL66TCcjs.SelectTrigger,
|
|
317
317
|
{
|
|
318
318
|
id: "helpCategory",
|
|
319
319
|
"aria-label": "Help Category",
|
|
320
320
|
"aria-required": true,
|
|
321
321
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
322
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
322
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD4ZL66TCcjs.SelectValue, { placeholder: "Choose your main interest" })
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD4ZL66TCcjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD4ZL66TCcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
326
326
|
] })
|
|
327
327
|
}
|
|
328
328
|
),
|
|
329
329
|
errors.helpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "helpCategory-error", className: "mt-1 text-ods-error text-h6", children: errors.helpCategory.message })
|
|
330
330
|
] }),
|
|
331
331
|
showMessage && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-grow flex-col", children: [
|
|
332
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
332
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDIWGL75Mcjs.Label, { htmlFor: "message", children: [
|
|
333
333
|
"Your Message",
|
|
334
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
334
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6TTOG2Qcjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkDCV5PT6Acjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -349,7 +349,7 @@ function ContactForm({
|
|
|
349
349
|
] }),
|
|
350
350
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
351
351
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
352
|
-
|
|
352
|
+
_chunkGXW76CABcjs.ChatAttachmentChipStrip,
|
|
353
353
|
{
|
|
354
354
|
attachments: attachments.attachments,
|
|
355
355
|
onRemove: attachments.removeAttachment,
|
|
@@ -358,7 +358,7 @@ function ContactForm({
|
|
|
358
358
|
),
|
|
359
359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
360
360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
361
|
-
|
|
361
|
+
_chunkGXW76CABcjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -372,7 +372,7 @@ function ContactForm({
|
|
|
372
372
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-auto flex w-full flex-col items-center justify-end gap-4 pt-2 content-md:flex-row content-md:gap-6", children: [
|
|
373
373
|
footerText && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-center text-ods-text-secondary text-h6 content-md:text-left", children: footerText }),
|
|
374
374
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
375
|
-
|
|
375
|
+
_chunkOKGNQPLBcjs.Button,
|
|
376
376
|
{
|
|
377
377
|
type: "submit",
|
|
378
378
|
loading: isSubmitting,
|
|
@@ -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; } } 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 _chunk3VBFSRLMcjs = require('./chunk-3VBFSRLM.cjs');
|
|
5
5
|
|
|
6
6
|
// src/components/chat/utils/icon-loading.tsx
|
|
7
7
|
var _react = require('react');
|
|
@@ -528,7 +528,7 @@ function getDynamicIcon(iconName, size = "md", className) {
|
|
|
528
528
|
return _react.createElement.call(void 0, NamedIcon, { icon: GLOBE, className: SIZE_CLASSES[size] });
|
|
529
529
|
}
|
|
530
530
|
const sizeClass = SIZE_CLASSES[size];
|
|
531
|
-
const finalClassName =
|
|
531
|
+
const finalClassName = _chunk3VBFSRLMcjs.cn.call(void 0, sizeClass, className);
|
|
532
532
|
const canonicalKey = normalizeIconKey(iconName);
|
|
533
533
|
if (Object.prototype.hasOwnProperty.call(ICON_REGISTRY, canonicalKey)) {
|
|
534
534
|
const colorConfig = ICON_COLORS[canonicalKey] || {};
|