@flamingo-stack/openframe-frontend-core 0.0.510 → 0.0.511
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/{chunk-GE3JUTW2.js → chunk-27OKD7ZV.js} +44 -14
- package/dist/chunk-27OKD7ZV.js.map +1 -0
- package/dist/{chunk-2RLI5XVI.cjs → chunk-2CE725NN.cjs} +16 -16
- package/dist/{chunk-2RLI5XVI.cjs.map → chunk-2CE725NN.cjs.map} +1 -1
- package/dist/{chunk-Q4K3TGNP.cjs → chunk-3NECEXDF.cjs} +74 -44
- package/dist/chunk-3NECEXDF.cjs.map +1 -0
- package/dist/{chunk-RJ3D3PE2.cjs → chunk-4SG55XVA.cjs} +9 -9
- package/dist/{chunk-RJ3D3PE2.cjs.map → chunk-4SG55XVA.cjs.map} +1 -1
- package/dist/{chunk-SYZFFRVD.cjs → chunk-5BAGE7AI.cjs} +13 -13
- package/dist/{chunk-SYZFFRVD.cjs.map → chunk-5BAGE7AI.cjs.map} +1 -1
- package/dist/{chunk-6FIDTXYC.js → chunk-7AQSXQEL.js} +3 -3
- package/dist/{chunk-6TL5XIAW.cjs → chunk-7YV67K3I.cjs} +119 -119
- package/dist/{chunk-6TL5XIAW.cjs.map → chunk-7YV67K3I.cjs.map} +1 -1
- package/dist/{chunk-5CDPRCPS.cjs → chunk-A5YZUV6B.cjs} +23 -23
- package/dist/{chunk-5CDPRCPS.cjs.map → chunk-A5YZUV6B.cjs.map} +1 -1
- package/dist/{chunk-WSAPKKDU.cjs → chunk-C4EUXZSA.cjs} +9 -9
- package/dist/{chunk-WSAPKKDU.cjs.map → chunk-C4EUXZSA.cjs.map} +1 -1
- package/dist/{chunk-5AZZQQYS.cjs → chunk-DPLXHG7H.cjs} +40 -40
- package/dist/{chunk-5AZZQQYS.cjs.map → chunk-DPLXHG7H.cjs.map} +1 -1
- package/dist/{chunk-BTUHMCYW.js → chunk-FS3YSNSU.js} +193 -6
- package/dist/chunk-FS3YSNSU.js.map +1 -0
- package/dist/{chunk-RB2EW6IZ.cjs → chunk-GHXTF35X.cjs} +3231 -3165
- package/dist/chunk-GHXTF35X.cjs.map +1 -0
- package/dist/{chunk-7VUKIWF6.cjs → chunk-HIV2GIFP.cjs} +3 -3
- package/dist/{chunk-7VUKIWF6.cjs.map → chunk-HIV2GIFP.cjs.map} +1 -1
- package/dist/{chunk-R4HKB3YD.cjs → chunk-IIPBTWQR.cjs} +22 -22
- package/dist/{chunk-R4HKB3YD.cjs.map → chunk-IIPBTWQR.cjs.map} +1 -1
- package/dist/{chunk-JMBIGH4H.cjs → chunk-IUZMWMVX.cjs} +83 -83
- package/dist/{chunk-JMBIGH4H.cjs.map → chunk-IUZMWMVX.cjs.map} +1 -1
- package/dist/{chunk-XJVRAKEX.cjs → chunk-IXCBVJRU.cjs} +56 -33
- package/dist/chunk-IXCBVJRU.cjs.map +1 -0
- package/dist/{chunk-TBGSQTJK.js → chunk-J4VB4EHW.js} +6 -6
- package/dist/{chunk-UWPT23SA.js → chunk-JXMNLH7F.js} +3 -3
- package/dist/{chunk-A62C4C4V.cjs → chunk-KI4EGKNV.cjs} +3 -2
- package/dist/chunk-KI4EGKNV.cjs.map +1 -0
- package/dist/{chunk-RHQ7BJKK.cjs → chunk-LEWQRAZ4.cjs} +73 -73
- package/dist/{chunk-RHQ7BJKK.cjs.map → chunk-LEWQRAZ4.cjs.map} +1 -1
- package/dist/{chunk-DBR5JLX3.js → chunk-LVAJK2U2.js} +46 -23
- package/dist/chunk-LVAJK2U2.js.map +1 -0
- package/dist/{chunk-OB7YDOTK.cjs → chunk-NJADHL2G.cjs} +8 -8
- package/dist/{chunk-OB7YDOTK.cjs.map → chunk-NJADHL2G.cjs.map} +1 -1
- package/dist/{chunk-HCZJZMU7.js → chunk-NKA3O4L6.js} +3 -3
- package/dist/{chunk-SRYV4H3M.js → chunk-NNWSGOUP.js} +3 -3
- package/dist/{chunk-EYTXD62B.cjs → chunk-OGVIGAMZ.cjs} +232 -45
- package/dist/chunk-OGVIGAMZ.cjs.map +1 -0
- package/dist/{chunk-EJ3EBYNV.cjs → chunk-OMN7A6RP.cjs} +32 -32
- package/dist/{chunk-EJ3EBYNV.cjs.map → chunk-OMN7A6RP.cjs.map} +1 -1
- package/dist/{chunk-WNOGR5AA.js → chunk-PRMR6WKC.js} +3 -3
- package/dist/{chunk-J2JUAS4C.cjs → chunk-PXQQFRUD.cjs} +11 -11
- package/dist/{chunk-J2JUAS4C.cjs.map → chunk-PXQQFRUD.cjs.map} +1 -1
- package/dist/{chunk-VDJF4ZAU.js → chunk-RU3SCECX.js} +3 -3
- package/dist/{chunk-53JKCFFE.cjs → chunk-RXFBW2EJ.cjs} +12 -12
- package/dist/{chunk-53JKCFFE.cjs.map → chunk-RXFBW2EJ.cjs.map} +1 -1
- package/dist/{chunk-JOCFPAS6.js → chunk-TNZOUHHN.js} +6 -6
- package/dist/{chunk-HX4CJYXL.js → chunk-TR7AMHGB.js} +10 -10
- package/dist/{chunk-MLGGF24T.js → chunk-TYVHM67X.js} +8 -8
- package/dist/{chunk-Z35QWWJH.cjs → chunk-U4WPFX5K.cjs} +34 -34
- package/dist/{chunk-Z35QWWJH.cjs.map → chunk-U4WPFX5K.cjs.map} +1 -1
- package/dist/{chunk-M4MKQKFF.js → chunk-UBTOOE55.js} +2 -2
- package/dist/{chunk-FEGEC6FY.js → chunk-X7AJ3J42.js} +5170 -5104
- package/dist/chunk-X7AJ3J42.js.map +1 -0
- package/dist/{chunk-SZMA65OW.js → chunk-XURRAFIB.js} +2 -2
- package/dist/{chunk-CTMLY2GN.js → chunk-YGS7BLSN.js} +5 -5
- package/dist/{chunk-RG2WRBPT.js → chunk-Z3ADCYC5.js} +2 -2
- package/dist/{chunk-2AASLY6D.js → chunk-ZBQV7WH7.js} +3 -3
- package/dist/{chunk-4GPWLGKT.js → chunk-ZRILYK5U.js} +2 -1
- package/dist/{chunk-LBOWSKGM.js → chunk-ZSIEM7CL.js} +5 -5
- package/dist/components/calendar.cjs +4 -4
- package/dist/components/calendar.js +3 -3
- package/dist/components/case-studies/index.cjs +17 -17
- package/dist/components/case-studies/index.js +7 -7
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +13 -7
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +12 -6
- package/dist/components/chat/remark-mention-chips.d.ts +5 -2
- package/dist/components/chat/remark-mention-chips.d.ts.map +1 -1
- package/dist/components/chat/utils/discuss-ref-prompt.d.ts +48 -0
- package/dist/components/chat/utils/discuss-ref-prompt.d.ts.map +1 -0
- package/dist/components/chat/utils/index.d.ts +2 -0
- package/dist/components/chat/utils/index.d.ts.map +1 -1
- package/dist/components/chat/utils/resolve-fetched-card-href.d.ts +63 -0
- package/dist/components/chat/utils/resolve-fetched-card-href.d.ts.map +1 -0
- package/dist/components/chat/utils/source-row-cta.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/contact/index.js +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/docs/index.js +9 -9
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/embeds/index.js +7 -7
- package/dist/components/faq/index.cjs +9 -9
- package/dist/components/faq/index.js +8 -8
- package/dist/components/features/index.cjs +7 -7
- package/dist/components/features/index.js +6 -6
- package/dist/components/help-center-pages/index.cjs +28 -28
- package/dist/components/help-center-pages/index.js +19 -19
- package/dist/components/icons/index.cjs +3 -3
- package/dist/components/icons/index.js +2 -2
- package/dist/components/index.cjs +253 -247
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +23 -17
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +92 -92
- package/dist/components/meeting-scheduler/index.js +9 -9
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/navigation/index.js +6 -6
- package/dist/components/onboarding-guides/index.cjs +11 -11
- package/dist/components/onboarding-guides/index.js +10 -10
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/related-content/index.js +8 -8
- package/dist/components/shared/doc-search/resolve-search-result-action.d.ts +11 -3
- package/dist/components/shared/doc-search/resolve-search-result-action.d.ts.map +1 -1
- package/dist/components/shared/doc-search/use-doc-search.d.ts +7 -0
- package/dist/components/shared/doc-search/use-doc-search.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/tickets/index.js +10 -10
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/file-manager/index.cjs +70 -70
- package/dist/components/ui/file-manager/index.js +3 -3
- package/dist/components/ui/index.cjs +13 -7
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +12 -6
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/overlay-open-registry.d.ts +50 -0
- package/dist/components/ui/overlay-open-registry.d.ts.map +1 -0
- package/dist/components/ui/portal-container.d.ts +24 -0
- package/dist/components/ui/portal-container.d.ts.map +1 -1
- package/dist/hooks/index.cjs +4 -4
- package/dist/hooks/index.js +3 -3
- package/dist/index.cjs +20 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -14
- package/dist/utils/anchor-id.d.ts +32 -0
- package/dist/utils/anchor-id.d.ts.map +1 -0
- package/dist/utils/content-href.d.ts +27 -6
- package/dist/utils/content-href.d.ts.map +1 -1
- package/dist/utils/index.cjs +213 -152
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +212 -153
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/list-url.d.ts.map +1 -1
- package/dist/utils/same-page-hash-nav.d.ts +17 -6
- package/dist/utils/same-page-hash-nav.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/__tests__/remark-mention-chips.test.ts +67 -0
- package/src/components/chat/chat-message-enhanced.tsx +3 -2
- package/src/components/chat/chat-message-list.tsx +49 -5
- package/src/components/chat/embeddable-chat.tsx +19 -2
- package/src/components/chat/entity-cards/dispatch.tsx +65 -4
- package/src/components/chat/hooks/use-nats-chat-adapter.ts +28 -4
- package/src/components/chat/hooks/use-sse-chat-adapter.ts +5 -3
- package/src/components/chat/remark-mention-chips.ts +6 -3
- package/src/components/chat/utils/__tests__/discuss-ref-prompt.test.ts +67 -0
- package/src/components/chat/utils/__tests__/resolve-fetched-card-href.test.ts +156 -0
- package/src/components/chat/utils/discuss-ref-prompt.ts +63 -0
- package/src/components/chat/utils/index.ts +16 -0
- package/src/components/chat/utils/resolve-fetched-card-href.ts +104 -0
- package/src/components/chat/utils/source-row-cta.ts +5 -1
- package/src/components/shared/doc-search/__tests__/resolve-search-result-action.test.ts +145 -0
- package/src/components/shared/doc-search/resolve-search-result-action.ts +46 -10
- package/src/components/shared/doc-search/use-doc-search.ts +50 -14
- package/src/components/ui/__tests__/overlay-open-registry.test.tsx +87 -0
- package/src/components/ui/actions-menu.tsx +65 -2
- package/src/components/ui/dropdown-menu.tsx +62 -12
- package/src/components/ui/markdown/base-components.tsx +26 -0
- package/src/components/ui/overlay-open-registry.tsx +99 -0
- package/src/components/ui/portal-container.tsx +31 -0
- package/src/utils/__tests__/anchor-id.test.ts +139 -0
- package/src/utils/__tests__/content-href.test.ts +74 -0
- package/src/utils/__tests__/list-url.test.ts +11 -1
- package/src/utils/anchor-id.ts +106 -0
- package/src/utils/content-href.ts +113 -13
- package/src/utils/index.ts +8 -0
- package/src/utils/list-url.ts +6 -1
- package/src/utils/same-page-hash-nav.ts +28 -9
- package/dist/chunk-A62C4C4V.cjs.map +0 -1
- package/dist/chunk-BTUHMCYW.js.map +0 -1
- package/dist/chunk-DBR5JLX3.js.map +0 -1
- package/dist/chunk-EYTXD62B.cjs.map +0 -1
- package/dist/chunk-FEGEC6FY.js.map +0 -1
- package/dist/chunk-GE3JUTW2.js.map +0 -1
- package/dist/chunk-Q4K3TGNP.cjs.map +0 -1
- package/dist/chunk-RB2EW6IZ.cjs.map +0 -1
- package/dist/chunk-XJVRAKEX.cjs.map +0 -1
- /package/dist/{chunk-6FIDTXYC.js.map → chunk-7AQSXQEL.js.map} +0 -0
- /package/dist/{chunk-TBGSQTJK.js.map → chunk-J4VB4EHW.js.map} +0 -0
- /package/dist/{chunk-UWPT23SA.js.map → chunk-JXMNLH7F.js.map} +0 -0
- /package/dist/{chunk-HCZJZMU7.js.map → chunk-NKA3O4L6.js.map} +0 -0
- /package/dist/{chunk-SRYV4H3M.js.map → chunk-NNWSGOUP.js.map} +0 -0
- /package/dist/{chunk-WNOGR5AA.js.map → chunk-PRMR6WKC.js.map} +0 -0
- /package/dist/{chunk-VDJF4ZAU.js.map → chunk-RU3SCECX.js.map} +0 -0
- /package/dist/{chunk-JOCFPAS6.js.map → chunk-TNZOUHHN.js.map} +0 -0
- /package/dist/{chunk-HX4CJYXL.js.map → chunk-TR7AMHGB.js.map} +0 -0
- /package/dist/{chunk-MLGGF24T.js.map → chunk-TYVHM67X.js.map} +0 -0
- /package/dist/{chunk-M4MKQKFF.js.map → chunk-UBTOOE55.js.map} +0 -0
- /package/dist/{chunk-SZMA65OW.js.map → chunk-XURRAFIB.js.map} +0 -0
- /package/dist/{chunk-CTMLY2GN.js.map → chunk-YGS7BLSN.js.map} +0 -0
- /package/dist/{chunk-RG2WRBPT.js.map → chunk-Z3ADCYC5.js.map} +0 -0
- /package/dist/{chunk-2AASLY6D.js.map → chunk-ZBQV7WH7.js.map} +0 -0
- /package/dist/{chunk-4GPWLGKT.js.map → chunk-ZRILYK5U.js.map} +0 -0
- /package/dist/{chunk-LBOWSKGM.js.map → chunk-ZSIEM7CL.js.map} +0 -0
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkGHXTF35Xcjs = require('./chunk-GHXTF35X.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkUTVOBFXRcjs = require('./chunk-UTVOBFXR.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkIIPBTWQRcjs = require('./chunk-IIPBTWQR.cjs');
|
|
15
15
|
|
|
16
16
|
// src/components/embeds/pdf-viewer.tsx
|
|
17
17
|
var _lucidereact = require('lucide-react');
|
|
@@ -25,13 +25,13 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
25
25
|
] });
|
|
26
26
|
}
|
|
27
27
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28
|
-
|
|
28
|
+
_chunkGHXTF35Xcjs.EmbedViewerFrame,
|
|
29
29
|
{
|
|
30
30
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.AdobePdfIcon, { className: "w-5 h-5 shrink-0" }),
|
|
31
31
|
title: displayName,
|
|
32
32
|
actions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2 w-full sm:w-auto", children: [
|
|
33
33
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34
|
-
|
|
34
|
+
_chunkIIPBTWQRcjs.Button,
|
|
35
35
|
{
|
|
36
36
|
variant: "outline",
|
|
37
37
|
size: "small-legacy",
|
|
@@ -44,7 +44,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
46
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
47
|
-
|
|
47
|
+
_chunkIIPBTWQRcjs.Button,
|
|
48
48
|
{
|
|
49
49
|
variant: "outline",
|
|
50
50
|
size: "small-legacy",
|
|
@@ -75,16 +75,16 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
75
75
|
] });
|
|
76
76
|
}
|
|
77
77
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
78
|
-
|
|
78
|
+
_chunkGHXTF35Xcjs.EmbedViewerFrame,
|
|
79
79
|
{
|
|
80
80
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.GoogleSheetsIcon, { className: "w-5 h-5 shrink-0" }),
|
|
81
81
|
title: displayName,
|
|
82
82
|
actions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
83
|
-
|
|
83
|
+
_chunkIIPBTWQRcjs.Button,
|
|
84
84
|
{
|
|
85
85
|
variant: "outline",
|
|
86
86
|
size: "small-legacy",
|
|
87
|
-
href:
|
|
87
|
+
href: _chunkGHXTF35Xcjs.toGoogleSheetsOriginalUrl.call(void 0, externalUrl),
|
|
88
88
|
openInNewTab: true,
|
|
89
89
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.GoogleSheetsIcon, { className: "w-4 h-4" }),
|
|
90
90
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "w-4 h-4" }),
|
|
@@ -92,7 +92,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
92
92
|
children: "Open in Google Sheets"
|
|
93
93
|
}
|
|
94
94
|
),
|
|
95
|
-
src:
|
|
95
|
+
src: _chunkGHXTF35Xcjs.toGoogleSheetsEmbedUrl.call(void 0, externalUrl),
|
|
96
96
|
height
|
|
97
97
|
}
|
|
98
98
|
);
|
|
@@ -113,11 +113,11 @@ function FileDownloadCard({
|
|
|
113
113
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-h3 text-ods-text-primary", children: fileName || "File" }),
|
|
114
114
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-center gap-3 mt-2 text-h6 text-ods-text-secondary", children: [
|
|
115
115
|
mimeType && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: mimeType }),
|
|
116
|
-
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children:
|
|
116
|
+
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkGHXTF35Xcjs.formatFileSize.call(void 0, fileSize) })
|
|
117
117
|
] })
|
|
118
118
|
] }),
|
|
119
119
|
fileUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
120
|
-
|
|
120
|
+
_chunkIIPBTWQRcjs.Button,
|
|
121
121
|
{
|
|
122
122
|
variant: "accent",
|
|
123
123
|
href: fileUrl,
|
|
@@ -134,4 +134,4 @@ function FileDownloadCard({
|
|
|
134
134
|
|
|
135
135
|
|
|
136
136
|
exports.PdfViewer = PdfViewer; exports.GoogleSheetsViewer = GoogleSheetsViewer; exports.FileDownloadCard = FileDownloadCard;
|
|
137
|
-
//# sourceMappingURL=chunk-
|
|
137
|
+
//# sourceMappingURL=chunk-RXFBW2EJ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-RXFBW2EJ.cjs","../src/components/embeds/pdf-viewer.tsx","../src/components/embeds/google-sheets-viewer.tsx","../src/components/embeds/file-download-card.tsx"],"names":["jsxs","jsx","Download"],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACXA,2CAA8B;AAkBxB,+CAAA;AANC,SAAS,SAAA,CAAU,EAAE,GAAA,EAAK,QAAA,EAAU,SAA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AAAA,QACR,IAAA,EAAM,OAAA;AAAA,QACN,YAAA,EAAY,IAAA;AAAA,QACZ,QAAA,kBAAUA,6BAAAA,qBAACC,EAAA,EAAS,SAAA,EAAU,UAAA,CAAU,CAAA;AAAA,QACzC,QAAA,EAAA;AAAA,MAAA;AAAA,IAED;AAAA,EAAA,EAAA,CAEJ,EAAA,CACF,CAAA;AAEJ;AH6EA;AACA;AACE;AACA;AACA;AACF,4HAAC","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-RXFBW2EJ.cjs","sourcesContent":[null,"\"use client\"\n\nimport React from 'react'\nimport { Button } from '../ui'\nimport { Download, Eye } from 'lucide-react'\nimport { AdobePdfIcon } from '../icons-v2-generated'\nimport { EmbedViewerFrame } from './embed-viewer-frame'\n\nexport interface PdfViewerProps {\n src: string\n fileName?: string\n onPreview?: () => void\n onDownload?: () => void\n height?: string\n}\n\nexport function PdfViewer({ src, fileName, onPreview, onDownload, height }: PdfViewerProps) {\n const displayName = fileName || 'PDF Document'\n\n // Historical shape: no src at all → standalone empty state with NO header.\n if (!src) {\n return (\n <div className=\"flex flex-col items-center justify-center py-16 text-center\">\n <AdobePdfIcon className=\"w-16 h-16 text-ods-text-secondary mb-4\" />\n <p className=\"text-ods-text-secondary\">PDF file not available</p>\n </div>\n )\n }\n\n return (\n <EmbedViewerFrame\n icon={<AdobePdfIcon className=\"w-5 h-5 shrink-0\" />}\n title={displayName}\n actions={\n <div className=\"flex items-center gap-2 w-full sm:w-auto\">\n <Button\n variant=\"outline\"\n size=\"small-legacy\"\n href={onPreview ? undefined : src}\n openInNewTab={!onPreview}\n onClick={onPreview}\n leftIcon={<Eye className=\"w-4 h-4\" />}\n className=\"flex-1 sm:flex-initial\"\n >\n Preview\n </Button>\n <Button\n variant=\"outline\"\n size=\"small-legacy\"\n href={onDownload ? undefined : src}\n openInNewTab={!onDownload}\n onClick={onDownload}\n leftIcon={<Download className=\"w-4 h-4\" />}\n className=\"flex-1 sm:flex-initial\"\n >\n Download\n </Button>\n </div>\n }\n src={src}\n height={height}\n />\n )\n}\n","\"use client\"\n\nimport React from 'react'\nimport { Button } from '../ui'\nimport { ExternalLink } from 'lucide-react'\nimport { GoogleSheetsIcon } from '../icons-v2-generated'\nimport { EmbedViewerFrame } from './embed-viewer-frame'\nimport { toGoogleSheetsEmbedUrl, toGoogleSheetsOriginalUrl } from '../../utils/embed-url-converters'\n\nexport interface GoogleSheetsViewerProps {\n externalUrl: string\n fileName?: string\n height?: string\n}\n\nexport function GoogleSheetsViewer({ externalUrl, fileName, height }: GoogleSheetsViewerProps) {\n const displayName = fileName || 'Google Sheet'\n\n // Historical shape: no URL at all → standalone empty state with NO header\n // (the frame's empty body keeps the header — that's the figma behavior).\n if (!externalUrl) {\n return (\n <div className=\"flex flex-col items-center justify-center py-16 text-center\">\n <GoogleSheetsIcon className=\"w-16 h-16 text-ods-text-secondary mb-4\" />\n <p className=\"text-ods-text-secondary\">Google Sheet URL not configured</p>\n </div>\n )\n }\n\n return (\n <EmbedViewerFrame\n icon={<GoogleSheetsIcon className=\"w-5 h-5 shrink-0\" />}\n title={displayName}\n actions={\n <Button\n variant=\"outline\"\n size=\"small-legacy\"\n href={toGoogleSheetsOriginalUrl(externalUrl)}\n openInNewTab\n leftIcon={<GoogleSheetsIcon className=\"w-4 h-4\" />}\n rightIcon={<ExternalLink className=\"w-4 h-4\" />}\n className=\"w-full sm:w-auto\"\n >\n Open in Google Sheets\n </Button>\n }\n src={toGoogleSheetsEmbedUrl(externalUrl)}\n height={height}\n />\n )\n}\n","import React from 'react'\nimport { Button } from '../ui'\nimport { FileText, Download } from 'lucide-react'\nimport { formatFileSize } from '../../utils'\n\nexport interface FileDownloadCardProps {\n fileName?: string\n mimeType?: string\n fileSize?: number\n fileUrl?: string\n}\n\n/**\n * Generic downloadable-file card for the `file` document type. Used by\n * `<DocsHubPage>`'s default `documentTypeRenderers.file`. Embedders can\n * override the default by passing their own `file` renderer.\n *\n * When `fileUrl` is missing, the Download button is omitted (the card still\n * renders the filename + type + size so the user knows what they were\n * about to download).\n */\nexport function FileDownloadCard({\n fileName,\n mimeType,\n fileSize,\n fileUrl,\n}: FileDownloadCardProps) {\n return (\n <div className=\"flex flex-col items-center justify-center py-16\">\n <div className=\"bg-ods-card border border-ods-border rounded-xl p-8 max-w-md w-full text-center space-y-4\">\n <FileText className=\"w-16 h-16 text-ods-text-secondary mx-auto\" />\n <div>\n <h3 className=\"text-h3 text-ods-text-primary\">\n {fileName || 'File'}\n </h3>\n <div className=\"flex items-center justify-center gap-3 mt-2 text-h6 text-ods-text-secondary\">\n {mimeType && <span>{mimeType}</span>}\n {typeof fileSize === 'number' && <span>{formatFileSize(fileSize)}</span>}\n </div>\n </div>\n {fileUrl && (\n <Button\n variant=\"accent\"\n href={fileUrl}\n openInNewTab\n leftIcon={<Download className=\"w-4 h-4\" />}\n >\n Download File\n </Button>\n )}\n </div>\n </div>\n )\n}\n"]}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ArticleAuthorByline,
|
|
4
4
|
DetailPageSkeleton
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZBQV7WH7.js";
|
|
6
6
|
import {
|
|
7
7
|
DocSearchBar,
|
|
8
8
|
useDocSearch
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LVAJK2U2.js";
|
|
10
10
|
import {
|
|
11
11
|
useSelfFetch
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Z3ADCYC5.js";
|
|
13
13
|
import {
|
|
14
14
|
EntityAuthorCard,
|
|
15
15
|
EntityTagBadges,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
resolveContentHref,
|
|
27
27
|
toStripProfile,
|
|
28
28
|
useVideoWarmup
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-X7AJ3J42.js";
|
|
30
30
|
import {
|
|
31
31
|
buildOgPlaceholderUrl
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-FS3YSNSU.js";
|
|
33
33
|
import {
|
|
34
34
|
useRouter,
|
|
35
35
|
useSearchParams
|
|
@@ -396,4 +396,4 @@ export {
|
|
|
396
396
|
useOnboardingGuide,
|
|
397
397
|
useOnboardingGuideSections
|
|
398
398
|
};
|
|
399
|
-
//# sourceMappingURL=chunk-
|
|
399
|
+
//# sourceMappingURL=chunk-TNZOUHHN.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PersistentPaginationWrapper
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NKA3O4L6.js";
|
|
5
5
|
import {
|
|
6
6
|
DeliveryRow
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JXMNLH7F.js";
|
|
8
8
|
import {
|
|
9
9
|
EmptyState
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PRMR6WKC.js";
|
|
11
11
|
import {
|
|
12
12
|
DetailPageSkeleton
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZBQV7WH7.js";
|
|
14
14
|
import {
|
|
15
15
|
useSelfFetch
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Z3ADCYC5.js";
|
|
17
17
|
import {
|
|
18
18
|
Accordion,
|
|
19
19
|
AccordionContent,
|
|
@@ -45,12 +45,12 @@ import {
|
|
|
45
45
|
resolveContentHref,
|
|
46
46
|
toStripProfile,
|
|
47
47
|
useEntityCardLink
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-X7AJ3J42.js";
|
|
49
49
|
import {
|
|
50
50
|
STICKY_HEADER_OFFSET_PX,
|
|
51
51
|
contentFetch,
|
|
52
52
|
useScrollToHash
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-FS3YSNSU.js";
|
|
54
54
|
import {
|
|
55
55
|
init_next_navigation,
|
|
56
56
|
usePathname,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
} from "./chunk-ZJJERZUA.js";
|
|
60
60
|
import {
|
|
61
61
|
GitHubIcon
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-XURRAFIB.js";
|
|
63
63
|
import {
|
|
64
64
|
useChatRuntime
|
|
65
65
|
} from "./chunk-Y2HKHGEW.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
import {
|
|
71
71
|
cn,
|
|
72
72
|
init_cn
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-ZRILYK5U.js";
|
|
74
74
|
|
|
75
75
|
// src/components/shared/product-release/product-releases-view.tsx
|
|
76
76
|
init_cn();
|
|
@@ -1303,4 +1303,4 @@ export {
|
|
|
1303
1303
|
useLegalDocs,
|
|
1304
1304
|
LegalDocumentPage
|
|
1305
1305
|
};
|
|
1306
|
-
//# sourceMappingURL=chunk-
|
|
1306
|
+
//# sourceMappingURL=chunk-TR7AMHGB.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
ContactForm
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YGS7BLSN.js";
|
|
5
5
|
import {
|
|
6
6
|
DeliveryRow,
|
|
7
7
|
DevCardRowContent,
|
|
8
8
|
DevCardRowSkeletonList,
|
|
9
9
|
DevSectionPage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JXMNLH7F.js";
|
|
11
11
|
import {
|
|
12
12
|
EmptyState,
|
|
13
13
|
UnifiedPagination,
|
|
14
14
|
init_unified_pagination
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PRMR6WKC.js";
|
|
16
16
|
import {
|
|
17
17
|
AlertDialog,
|
|
18
18
|
AlertDialogAction,
|
|
@@ -46,14 +46,14 @@ import {
|
|
|
46
46
|
useChatAttachments,
|
|
47
47
|
useChatIdentity,
|
|
48
48
|
useOptionalTicketLive
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-X7AJ3J42.js";
|
|
50
50
|
import {
|
|
51
51
|
STICKY_HEADER_OFFSET_PX,
|
|
52
52
|
embedAuthedFetch,
|
|
53
53
|
scrollElementIntoView,
|
|
54
54
|
toast,
|
|
55
55
|
useScrollToHash
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-FS3YSNSU.js";
|
|
57
57
|
import {
|
|
58
58
|
usePathname,
|
|
59
59
|
useRouter,
|
|
@@ -65,11 +65,11 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
Input,
|
|
67
67
|
Skeleton
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-27OKD7ZV.js";
|
|
69
69
|
import {
|
|
70
70
|
Button,
|
|
71
71
|
init_button2 as init_button
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-UBTOOE55.js";
|
|
73
73
|
|
|
74
74
|
// src/components/tickets/ticket-center.tsx
|
|
75
75
|
import { useCallback as useCallback4, useState as useState4 } from "react";
|
|
@@ -1938,4 +1938,4 @@ export {
|
|
|
1938
1938
|
HelpCenterCreateForm,
|
|
1939
1939
|
HelpCenterList
|
|
1940
1940
|
};
|
|
1941
|
-
//# sourceMappingURL=chunk-
|
|
1941
|
+
//# sourceMappingURL=chunk-TYVHM67X.js.map
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkGHXTF35Xcjs = require('./chunk-GHXTF35X.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkOGVIGAMZcjs = require('./chunk-OGVIGAMZ.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk3NECEXDFcjs = require('./chunk-3NECEXDF.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkIIPBTWQRcjs = require('./chunk-IIPBTWQR.cjs');
|
|
26
26
|
|
|
27
27
|
// src/components/contact/contact-form.tsx
|
|
28
28
|
var _react = require('react');
|
|
@@ -111,14 +111,14 @@ function ContactForm({
|
|
|
111
111
|
successRedirectUrl = "/blog#community",
|
|
112
112
|
successToastMessage = "Redirecting you to join our community..."
|
|
113
113
|
} = {}) {
|
|
114
|
-
const attachments =
|
|
115
|
-
const builtInSubmission =
|
|
114
|
+
const attachments = _chunkGHXTF35Xcjs.useChatAttachments.call(void 0, );
|
|
115
|
+
const builtInSubmission = _chunkOGVIGAMZcjs.useContactSubmission.call(void 0, {
|
|
116
116
|
userId,
|
|
117
117
|
successRedirectUrl,
|
|
118
118
|
successToastMessage
|
|
119
119
|
});
|
|
120
120
|
const [customSubmitting, setCustomSubmitting] = _react.useState.call(void 0, false);
|
|
121
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
121
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkOGVIGAMZcjs.useHumanitySignals.call(void 0, );
|
|
122
122
|
const isSubmitting = onCustomSubmit ? customSubmitting : builtInSubmission.isSubmitting;
|
|
123
123
|
const isSuccess = onCustomSubmit ? false : builtInSubmission.isSuccess;
|
|
124
124
|
const {
|
|
@@ -173,7 +173,7 @@ function ContactForm({
|
|
|
173
173
|
className: `h-full flex flex-col ${!noBorder ? "border border-ods-border rounded-2xl md:rounded-3xl" : ""} ${!noPadding ? "p-6 md:p-8 lg:p-10" : ""}`,
|
|
174
174
|
children: [
|
|
175
175
|
(title || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-6 md:mb-8", children: [
|
|
176
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
176
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkGHXTF35Xcjs.SECTION_HEADING_CLASS} mb-3 md:mb-4`, children: title }),
|
|
177
177
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4 text-ods-text-primary", children: subtitle })
|
|
178
178
|
] }),
|
|
179
179
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -193,16 +193,16 @@ function ContactForm({
|
|
|
193
193
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
194
194
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
195
195
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
196
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
196
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGHXTF35Xcjs.HoneypotField, { ...honeypotInputProps }),
|
|
197
197
|
extraTopField,
|
|
198
198
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6", children: [
|
|
199
199
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
200
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
200
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGHXTF35Xcjs.Label, { htmlFor: "name", children: [
|
|
201
201
|
"Your Name",
|
|
202
202
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: "*" })
|
|
203
203
|
] }),
|
|
204
204
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
205
|
-
|
|
205
|
+
_chunk3NECEXDFcjs.Input,
|
|
206
206
|
{
|
|
207
207
|
id: "name",
|
|
208
208
|
type: "text",
|
|
@@ -216,12 +216,12 @@ function ContactForm({
|
|
|
216
216
|
errors.name && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "name-error", className: "text-ods-error text-h6 mt-1", children: errors.name.message })
|
|
217
217
|
] }),
|
|
218
218
|
showEmail && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
219
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
219
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGHXTF35Xcjs.Label, { htmlFor: "email", children: [
|
|
220
220
|
"Email",
|
|
221
221
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: "*" })
|
|
222
222
|
] }),
|
|
223
223
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
224
|
-
|
|
224
|
+
_chunk3NECEXDFcjs.Input,
|
|
225
225
|
{
|
|
226
226
|
id: "email",
|
|
227
227
|
type: "email",
|
|
@@ -237,46 +237,46 @@ function ContactForm({
|
|
|
237
237
|
] }),
|
|
238
238
|
(showCompanySize || showReferralSource) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6", children: [
|
|
239
239
|
showCompanySize && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
240
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
240
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGHXTF35Xcjs.Label, { htmlFor: "companySize", children: "Company Size" }),
|
|
241
241
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
242
242
|
_reacthookform.Controller,
|
|
243
243
|
{
|
|
244
244
|
control,
|
|
245
245
|
name: "companySize",
|
|
246
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
246
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGHXTF35Xcjs.Select, { onValueChange: field.onChange, defaultValue: field.value, children: [
|
|
247
247
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
248
|
-
|
|
248
|
+
_chunkGHXTF35Xcjs.SelectTrigger,
|
|
249
249
|
{
|
|
250
250
|
id: "companySize",
|
|
251
251
|
"aria-label": "Company Size",
|
|
252
252
|
className: "bg-ods-card border-ods-border text-ods-text-primary h-12 px-3",
|
|
253
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
253
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGHXTF35Xcjs.SelectValue, { placeholder: "Select company size" })
|
|
254
254
|
}
|
|
255
255
|
),
|
|
256
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
256
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGHXTF35Xcjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGHXTF35Xcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
257
257
|
] })
|
|
258
258
|
}
|
|
259
259
|
),
|
|
260
260
|
errors.companySize && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "companySize-error", className: "text-ods-error text-h6 mt-1", children: errors.companySize.message })
|
|
261
261
|
] }),
|
|
262
262
|
showReferralSource && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
263
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
263
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGHXTF35Xcjs.Label, { htmlFor: "referralSource", children: "How did you hear about us?" }),
|
|
264
264
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
265
265
|
_reacthookform.Controller,
|
|
266
266
|
{
|
|
267
267
|
control,
|
|
268
268
|
name: "referralSource",
|
|
269
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
269
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGHXTF35Xcjs.Select, { onValueChange: field.onChange, defaultValue: field.value, children: [
|
|
270
270
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
271
|
-
|
|
271
|
+
_chunkGHXTF35Xcjs.SelectTrigger,
|
|
272
272
|
{
|
|
273
273
|
id: "referralSource",
|
|
274
274
|
"aria-label": "Referral Source",
|
|
275
275
|
className: "bg-ods-card border-ods-border text-ods-text-primary h-12 px-3",
|
|
276
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
276
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGHXTF35Xcjs.SelectValue, { placeholder: "Select an option" })
|
|
277
277
|
}
|
|
278
278
|
),
|
|
279
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
279
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGHXTF35Xcjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGHXTF35Xcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
280
280
|
] })
|
|
281
281
|
}
|
|
282
282
|
),
|
|
@@ -284,7 +284,7 @@ function ContactForm({
|
|
|
284
284
|
] })
|
|
285
285
|
] }),
|
|
286
286
|
showHelpCategory && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
287
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
287
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGHXTF35Xcjs.Label, { htmlFor: "helpCategory", children: [
|
|
288
288
|
"Choose your main interest",
|
|
289
289
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: "*" })
|
|
290
290
|
] }),
|
|
@@ -293,29 +293,29 @@ function ContactForm({
|
|
|
293
293
|
{
|
|
294
294
|
control,
|
|
295
295
|
name: "helpCategory",
|
|
296
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
296
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGHXTF35Xcjs.Select, { onValueChange: field.onChange, defaultValue: field.value, children: [
|
|
297
297
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
298
|
-
|
|
298
|
+
_chunkGHXTF35Xcjs.SelectTrigger,
|
|
299
299
|
{
|
|
300
300
|
id: "helpCategory",
|
|
301
301
|
"aria-label": "Help Category",
|
|
302
302
|
className: "bg-ods-card border-ods-border text-ods-text-primary h-12 px-3",
|
|
303
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
303
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGHXTF35Xcjs.SelectValue, { placeholder: "Choose your main interest" })
|
|
304
304
|
}
|
|
305
305
|
),
|
|
306
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
306
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGHXTF35Xcjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGHXTF35Xcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
307
307
|
] })
|
|
308
308
|
}
|
|
309
309
|
),
|
|
310
310
|
errors.helpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "helpCategory-error", className: "text-ods-error text-h6 mt-1", children: errors.helpCategory.message })
|
|
311
311
|
] }),
|
|
312
312
|
showMessage && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col flex-grow", children: [
|
|
313
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
313
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGHXTF35Xcjs.Label, { htmlFor: "message", children: [
|
|
314
314
|
"Your Message",
|
|
315
315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: "*" })
|
|
316
316
|
] }),
|
|
317
317
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
318
|
-
|
|
318
|
+
_chunkGHXTF35Xcjs.Textarea,
|
|
319
319
|
{
|
|
320
320
|
id: "message",
|
|
321
321
|
...register("message"),
|
|
@@ -329,7 +329,7 @@ function ContactForm({
|
|
|
329
329
|
] }),
|
|
330
330
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
331
331
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
332
|
-
|
|
332
|
+
_chunkGHXTF35Xcjs.ChatAttachmentChipStrip,
|
|
333
333
|
{
|
|
334
334
|
attachments: attachments.attachments,
|
|
335
335
|
onRemove: attachments.removeAttachment,
|
|
@@ -338,7 +338,7 @@ function ContactForm({
|
|
|
338
338
|
),
|
|
339
339
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
340
340
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
341
|
-
|
|
341
|
+
_chunkGHXTF35Xcjs.ChatAttachmentAddButton,
|
|
342
342
|
{
|
|
343
343
|
attachmentsEnabled: true,
|
|
344
344
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -352,7 +352,7 @@ function ContactForm({
|
|
|
352
352
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col md:flex-row gap-4 md:gap-6 items-center justify-end w-full pt-2 mt-auto", children: [
|
|
353
353
|
footerText && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h6 text-ods-text-secondary text-center md:text-left", children: footerText }),
|
|
354
354
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
355
|
-
|
|
355
|
+
_chunkIIPBTWQRcjs.Button,
|
|
356
356
|
{
|
|
357
357
|
type: "submit",
|
|
358
358
|
loading: isSubmitting,
|
|
@@ -374,4 +374,4 @@ function ContactForm({
|
|
|
374
374
|
|
|
375
375
|
|
|
376
376
|
exports.ContactForm = ContactForm;
|
|
377
|
-
//# sourceMappingURL=chunk-
|
|
377
|
+
//# sourceMappingURL=chunk-U4WPFX5K.cjs.map
|