@flamingo-stack/openframe-frontend-core 0.0.783 → 0.0.785
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/case-study-card-236RTB5D.cjs +23 -0
- package/dist/{chunk-TS6TISIF.cjs → chunk-2JDK4FWV.cjs} +209 -209
- package/dist/{chunk-AFSVWR3X.cjs → chunk-2PMLX52X.cjs} +46 -46
- package/dist/{chunk-CBKXU77H.cjs → chunk-2U4H74KS.cjs} +45 -45
- package/dist/{chunk-WS7IDGEL.cjs → chunk-3ITHC2Y4.cjs} +6 -6
- package/dist/{chunk-ODDUGLYF.cjs → chunk-3SENOTWT.cjs} +110 -110
- package/dist/{chunk-5WMRVMXH.cjs → chunk-4ZHLORL3.cjs} +5 -5
- package/dist/{chunk-BAJB3JF3.cjs → chunk-55KZW2P2.cjs} +31 -31
- package/dist/{chunk-4MQASMIU.cjs → chunk-5CAQZRVN.cjs} +7 -7
- package/dist/{chunk-LGISRUGF.cjs → chunk-5PVYYZEK.cjs} +37 -37
- package/dist/{chunk-UPQMFK5B.cjs → chunk-5Z77NJZF.cjs} +7 -7
- package/dist/{chunk-H3RHAN6B.cjs → chunk-7FCOQCAK.cjs} +61 -61
- package/dist/{chunk-EFCWHAYC.cjs → chunk-7QK4R7UU.cjs} +8 -8
- package/dist/{chunk-YXZOP726.cjs → chunk-7W3NVU4V.cjs} +10 -10
- package/dist/{chunk-MKF6XX5A.cjs → chunk-BP7GLDRJ.cjs} +63 -63
- package/dist/{chunk-6NEWJ6I2.cjs → chunk-BQDO7PU7.cjs} +51 -51
- package/dist/{chunk-RL45AU2C.cjs → chunk-DGUZUOWN.cjs} +42 -42
- package/dist/{chunk-A3UZFFR3.cjs → chunk-DNB5DELQ.cjs} +3 -3
- package/dist/{chunk-PQSTPJQQ.cjs → chunk-EIXFIGLX.cjs} +13 -13
- package/dist/{chunk-5XAWVXNI.cjs → chunk-EOZ23WOY.cjs} +320 -320
- package/dist/{chunk-7OJMOG34.cjs → chunk-EQKMFQ5J.cjs} +535 -535
- package/dist/{chunk-URFAMWCA.cjs → chunk-FDPAD7GS.cjs} +44 -44
- package/dist/{chunk-N5TPRCSS.cjs → chunk-FFW3IY5E.cjs} +60 -60
- package/dist/{chunk-4DKPNN2A.cjs → chunk-G7COLTR6.cjs} +17 -17
- package/dist/{chunk-3INHO6GP.cjs → chunk-GX6YLDAS.cjs} +22 -22
- package/dist/{chunk-BE4OUWTA.cjs → chunk-HAAQUV3O.cjs} +54 -54
- package/dist/{chunk-4DQ4CNAG.cjs → chunk-HE6UVP6R.cjs} +10 -10
- package/dist/{chunk-FLS6DZEN.cjs → chunk-IZXVGIQX.cjs} +44 -44
- package/dist/{chunk-LUWYWYNC.cjs → chunk-J4ZNQ55O.cjs} +2 -2
- package/dist/{chunk-OMTH355I.cjs → chunk-JHY6H2XR.cjs} +3 -3
- package/dist/{chunk-WSBWP7IW.cjs → chunk-JSNLMPXN.cjs} +3 -3
- package/dist/{chunk-KRXHRL3W.cjs → chunk-JZUBBNTT.cjs} +110 -110
- package/dist/{chunk-ZJS45HQZ.cjs → chunk-KKD7XV5A.cjs} +29 -29
- package/dist/{chunk-ZFOMRALU.cjs → chunk-L4ORB5RP.cjs} +16 -16
- package/dist/{chunk-3PKORICR.cjs → chunk-LCPJNG5M.cjs} +115 -115
- package/dist/{chunk-NNNRN4OF.cjs → chunk-LCSYTFFO.cjs} +14 -14
- package/dist/{chunk-N2SVJJLU.cjs → chunk-MZOODES3.cjs} +5 -5
- package/dist/{chunk-THOGSAFH.cjs → chunk-NVWROBPF.cjs} +2014 -2014
- package/dist/{chunk-MGEUZRNQ.cjs → chunk-NWNC22IZ.cjs} +4 -3
- package/dist/{chunk-WHNI4QTG.cjs → chunk-NXUL4W7Q.cjs} +13 -13
- package/dist/{chunk-YU23M33V.cjs → chunk-OOSSOL7E.cjs} +172 -174
- package/dist/{chunk-F2FFJWOQ.cjs → chunk-PCBKE6LA.cjs} +4 -4
- package/dist/{chunk-XKDJ5ISQ.cjs → chunk-Q73MAT62.cjs} +3 -3
- package/dist/{chunk-DYF6XB27.cjs → chunk-QWVVXXFG.cjs} +4 -4
- package/dist/{chunk-CS5SZJFV.cjs → chunk-RU37NNZG.cjs} +2 -2
- package/dist/{chunk-EHQ2UGT4.cjs → chunk-TC2T5Q7M.cjs} +15 -15
- package/dist/{chunk-E2ZZOYSM.cjs → chunk-TRV5GGOH.cjs} +76 -64
- package/dist/{chunk-FS7CBRF4.cjs → chunk-UVPV6TUI.cjs} +23 -23
- package/dist/{chunk-RT6QATX4.cjs → chunk-WLHHXAT7.cjs} +19 -19
- package/dist/{chunk-APO7GMZQ.cjs → chunk-WNKOWR3E.cjs} +4 -4
- package/dist/{chunk-XAA5LUHC.cjs → chunk-Y6KZFPZN.cjs} +12 -12
- package/dist/{chunk-62TMGBRO.cjs → chunk-YCSX7MCG.cjs} +197 -197
- package/dist/{cloud-tenants-QYW3MPPP.cjs → cloud-tenants-TJSSGC5O.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/board/board-column.d.ts +1 -1
- package/dist/components/features/board/board-column.d.ts.map +1 -1
- package/dist/components/features/board/ticket-card.d.ts +1 -1
- package/dist/components/features/board/ticket-card.d.ts.map +1 -1
- 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/media-carousel.d.ts +1 -1
- package/dist/components/media-carousel.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +187 -187
- package/dist/components/navigation/app-header.d.ts +1 -1
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/navigation/mobile-burger-menu.d.ts +1 -1
- package/dist/components/navigation/mobile-burger-menu.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar-item.d.ts +1 -1
- package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar-item.js +1 -3
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/product-demo/index.cjs +45 -45
- package/dist/components/related-content/index.cjs +17 -17
- package/dist/components/tickets/index.cjs +39 -39
- package/dist/components/ui/autocomplete.js +1 -1
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +4 -3
- package/dist/components/ui/date-picker.js +1 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +32 -32
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/markdown/engine.d.ts +1 -1
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/components/ui/modal-v2.d.ts.map +1 -1
- package/dist/components/ui/modal-v2.js +16 -4
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/tag-search-input.js +1 -1
- package/dist/components/ui/textarea.js +1 -1
- package/dist/{devices-DMMMEO2B.cjs → devices-RQ7OSCJZ.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-OSSPL7L4.cjs → embeddable-chat-SYWOS6YZ.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +48 -48
- package/dist/{knowledge-XQQXVV6C.cjs → knowledge-5QKXKQ4Q.cjs} +33 -33
- package/dist/{logs-BHKMDCBP.cjs → logs-GBKJZHMC.cjs} +41 -41
- package/dist/{policies-5IY7QUED.cjs → policies-WAYKWIZM.cjs} +36 -36
- package/dist/{remote-session-IEOWFBF7.cjs → remote-session-AXKWTU4I.cjs} +17 -17
- package/dist/{scripts-ZQXRBGVK.cjs → scripts-L46FQYCQ.cjs} +39 -39
- package/dist/{software-update-RGFRYL3N.cjs → software-update-2HMC5XIV.cjs} +36 -36
- package/dist/{tickets-board-EYKLSB36.cjs → tickets-board-SXETISNL.cjs} +17 -17
- package/dist/{video-file-player-ZU666VUY.cjs → video-file-player-XWZIO3YN.cjs} +14 -14
- package/package.json +3 -3
- package/src/components/navigation/navigation-sidebar-item.tsx +2 -3
- package/src/components/ui/autocomplete.tsx +1 -1
- package/src/components/ui/button/button-styles.ts +4 -3
- package/src/components/ui/date-picker.tsx +1 -1
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/modal-v2.tsx +22 -4
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/tag-search-input.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/dist/case-study-card-WYZPBDDM.cjs +0 -23
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _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 _chunk7W3NVU4Vcjs = require('./chunk-7W3NVU4V.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk55KZW2P2cjs = require('./chunk-55KZW2P2.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -15,13 +15,13 @@ var _chunkHEVW75L3cjs = require('./chunk-HEVW75L3.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkNVWROBPFcjs = require('./chunk-NVWROBPF.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk2JDK4FWVcjs = require('./chunk-2JDK4FWV.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkYCSX7MCGcjs = require('./chunk-YCSX7MCG.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -30,22 +30,22 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkEOZ23WOYcjs = require('./chunk-EOZ23WOY.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunk3SENOTWTcjs = require('./chunk-3SENOTWT.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkY6KZFPZNcjs = require('./chunk-Y6KZFPZN.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkLCSYTFFOcjs = require('./chunk-LCSYTFFO.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkNWNC22IZcjs = require('./chunk-NWNC22IZ.cjs');
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -55,7 +55,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
55
55
|
function ListEmptyState({ isFiltered, filtered, onClearFilters, empty }) {
|
|
56
56
|
if (isFiltered) {
|
|
57
57
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
58
|
-
|
|
58
|
+
_chunk7W3NVU4Vcjs.EmptyState,
|
|
59
59
|
{
|
|
60
60
|
type: "search",
|
|
61
61
|
title: filtered.title,
|
|
@@ -68,7 +68,7 @@ function ListEmptyState({ isFiltered, filtered, onClearFilters, empty }) {
|
|
|
68
68
|
}
|
|
69
69
|
const hasCta = Boolean(empty.ctaText && (empty.onCtaClick || empty.ctaHref));
|
|
70
70
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
71
|
-
|
|
71
|
+
_chunk7W3NVU4Vcjs.EmptyState,
|
|
72
72
|
{
|
|
73
73
|
type: "generic",
|
|
74
74
|
title: empty.title,
|
|
@@ -105,7 +105,7 @@ function PageDataSyncProvider({
|
|
|
105
105
|
function PageDataSyncRow({ inline = false }) {
|
|
106
106
|
const context = _react.useContext.call(void 0, PageDataSyncContext);
|
|
107
107
|
if (!context) return null;
|
|
108
|
-
const line = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
108
|
+
const line = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNVWROBPFcjs.DataSyncLine, { sync: context.state.sync, loading: context.state.loading, stated: context.stated, inline });
|
|
109
109
|
return context.stated ? line : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: line });
|
|
110
110
|
}
|
|
111
111
|
function usePageDataSync(sync, loading) {
|
|
@@ -124,7 +124,7 @@ function usePageDataSync(sync, loading) {
|
|
|
124
124
|
// src/components/shared/dev-section/dev-section-view.tsx
|
|
125
125
|
|
|
126
126
|
function DevSectionView({ sectionKey, preControls, children, showHeading = true }) {
|
|
127
|
-
const section =
|
|
127
|
+
const section = _chunkYCSX7MCGcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
|
|
128
128
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
129
129
|
const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
130
130
|
const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
|
|
@@ -162,11 +162,11 @@ function DevSectionView({ sectionKey, preControls, children, showHeading = true
|
|
|
162
162
|
router.replace(`${pathname}?${params.toString()}`, { scroll: false });
|
|
163
163
|
};
|
|
164
164
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageDataSyncProvider, { stated: section.mirrored, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
|
|
165
|
-
showHeading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
165
|
+
showHeading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEOZ23WOYcjs.SectionHeading, { title: section.hero.title, punctuation: ":", action: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageDataSyncRow, { inline: true }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageDataSyncRow, {}),
|
|
166
166
|
preControls,
|
|
167
167
|
(search || filter) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
168
168
|
search && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
169
|
-
|
|
169
|
+
_chunkNVWROBPFcjs.SearchInput,
|
|
170
170
|
{
|
|
171
171
|
showDropdown: false,
|
|
172
172
|
placeholder: search.placeholder,
|
|
@@ -176,7 +176,7 @@ function DevSectionView({ sectionKey, preControls, children, showHeading = true
|
|
|
176
176
|
}
|
|
177
177
|
),
|
|
178
178
|
filter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
179
|
-
|
|
179
|
+
_chunkNVWROBPFcjs.StatusFilterComponent,
|
|
180
180
|
{
|
|
181
181
|
selectedStatus: currentFilterValue,
|
|
182
182
|
onStatusChange: handleFilterChange,
|
|
@@ -201,7 +201,7 @@ function DevSectionPage({
|
|
|
201
201
|
shell = true
|
|
202
202
|
}) {
|
|
203
203
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
204
|
-
const section =
|
|
204
|
+
const section = _chunkYCSX7MCGcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
|
|
205
205
|
const backCfg = backButton === false ? void 0 : {
|
|
206
206
|
label: _nullishCoalesce((backButton ? backButton.label : void 0), () => ( "Back to home")),
|
|
207
207
|
onClick: () => router.push(_nullishCoalesce((backButton ? backButton.href : void 0), () => ( "/")))
|
|
@@ -214,7 +214,7 @@ function DevSectionPage({
|
|
|
214
214
|
// duplicate title. (The hero icon is intentionally dropped: TitleBlock is
|
|
215
215
|
// frozen and renders title-only.)
|
|
216
216
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
217
|
-
|
|
217
|
+
_chunk2JDK4FWVcjs.PageLayout,
|
|
218
218
|
{
|
|
219
219
|
title: _nullishCoalesce(title, () => ( section.hero.title)),
|
|
220
220
|
subtitle: _nullishCoalesce(subtitle, () => ( section.hero.description)),
|
|
@@ -223,26 +223,26 @@ function DevSectionPage({
|
|
|
223
223
|
backButton: backCfg,
|
|
224
224
|
children: [
|
|
225
225
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DevSectionView, { sectionKey, showHeading: false, preControls, children }),
|
|
226
|
-
faq && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
226
|
+
faq && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk55KZW2P2cjs.FaqSection, { ..._chunk55KZW2P2cjs.pageFaqProps.call(void 0, faq) })
|
|
227
227
|
]
|
|
228
228
|
}
|
|
229
229
|
)
|
|
230
230
|
);
|
|
231
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
231
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNVWROBPFcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
// src/components/shared/dev-section/dev-card-row.tsx
|
|
235
235
|
|
|
236
236
|
var ROW_INNER_CLASS = "flex w-full flex-col items-start justify-between gap-[12px] content-md:flex-row content-md:gap-[16px]";
|
|
237
237
|
var ROW_TEXT_COLUMN_CLASS = "flex w-full min-w-0 flex-1 flex-col gap-[12px] content-md:w-auto content-md:gap-[16px]";
|
|
238
|
-
var ROW_TITLE_LINE_CLASS = `flex items-center text-h3 ${
|
|
239
|
-
var ROW_SUBTITLE_LINE_CLASS = `flex items-center text-h5 ${
|
|
240
|
-
var ROW_DESCRIPTION_LINE_CLASS = `flex items-center text-h4 ${
|
|
238
|
+
var ROW_TITLE_LINE_CLASS = `flex items-center text-h3 ${_chunkLCSYTFFOcjs.TEXT_LINES_MIN[1]}`;
|
|
239
|
+
var ROW_SUBTITLE_LINE_CLASS = `flex items-center text-h5 ${_chunkLCSYTFFOcjs.TEXT_LINES_MIN[1]}`;
|
|
240
|
+
var ROW_DESCRIPTION_LINE_CLASS = `flex items-center text-h4 ${_chunkLCSYTFFOcjs.TEXT_LINES_MIN[3]}`;
|
|
241
241
|
var ROW_BADGES_CLASS = "flex flex-shrink-0 flex-col gap-2 self-start";
|
|
242
242
|
function DevCardRowContent(props) {
|
|
243
243
|
const { title, subtitle, description, emptyDescription = "No description provided", rightBadges } = props;
|
|
244
|
-
if (
|
|
245
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_INNER_CLASS, ...
|
|
244
|
+
if (_chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || props.loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DevCardRowContentSkeleton, { ..._chunkNWNC22IZcjs.loadingItemProps.call(void 0, props) });
|
|
245
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_INNER_CLASS, ..._chunkNWNC22IZcjs.loadingItemProps.call(void 0, props), children: [
|
|
246
246
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_TEXT_COLUMN_CLASS, children: [
|
|
247
247
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_TITLE_LINE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "line-clamp-2 flex-1 break-words tracking-[-0.36px] text-ods-text-primary text-h3 content-md:truncate", children: title }) }),
|
|
248
248
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_SUBTITLE_LINE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate uppercase tracking-[-0.28px] text-ods-text-secondary text-h5", children: subtitle }) }),
|
|
@@ -252,13 +252,13 @@ function DevCardRowContent(props) {
|
|
|
252
252
|
] });
|
|
253
253
|
}
|
|
254
254
|
function DevCardRowContentSkeleton(props) {
|
|
255
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_INNER_CLASS, "aria-hidden": true, ...
|
|
255
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_INNER_CLASS, "aria-hidden": true, ..._chunkNWNC22IZcjs.loadingItemProps.call(void 0, props), children: [
|
|
256
256
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_TEXT_COLUMN_CLASS, children: [
|
|
257
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_TITLE_LINE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
258
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_SUBTITLE_LINE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
259
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_DESCRIPTION_LINE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
257
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_TITLE_LINE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h3", className: "w-full" }) }),
|
|
258
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_SUBTITLE_LINE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h5", className: "w-1/2" }) }),
|
|
259
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_DESCRIPTION_LINE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h4", lines: 3, className: "w-full" }) })
|
|
260
260
|
] }),
|
|
261
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_BADGES_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
261
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_BADGES_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3SENOTWTcjs.StatusBadge, { loading: true, text: "", variant: "card" }) })
|
|
262
262
|
] });
|
|
263
263
|
}
|
|
264
264
|
|
|
@@ -279,18 +279,18 @@ function getRelativeTime(timestamp) {
|
|
|
279
279
|
var ROW_INNER_CLASS2 = "flex w-full flex-col items-start justify-between gap-[12px] content-md:flex-row content-md:gap-[16px]";
|
|
280
280
|
var ROW_TEXT_COLUMN_CLASS2 = "flex w-full min-w-0 flex-1 flex-col gap-[12px] content-md:w-auto content-md:gap-[16px]";
|
|
281
281
|
var ROW_CAPTION_CLASS = "text-ods-text-secondary text-h5";
|
|
282
|
-
var ROW_TITLE_LINE_CLASS2 = `flex items-center text-h3 ${
|
|
283
|
-
var ROW_SUBTITLE_LINE_CLASS2 = `flex items-center text-h5 ${
|
|
284
|
-
var ROW_DESCRIPTION_LINE_CLASS2 = `flex items-center text-h4 ${
|
|
282
|
+
var ROW_TITLE_LINE_CLASS2 = `flex items-center text-h3 ${_chunkLCSYTFFOcjs.TEXT_LINES_MIN[1]}`;
|
|
283
|
+
var ROW_SUBTITLE_LINE_CLASS2 = `flex items-center text-h5 ${_chunkLCSYTFFOcjs.TEXT_LINES_MIN[1]}`;
|
|
284
|
+
var ROW_DESCRIPTION_LINE_CLASS2 = `flex items-center text-h4 ${_chunkLCSYTFFOcjs.TEXT_LINES_MIN[3]}`;
|
|
285
285
|
var ROW_META_CLASS = "flex w-full flex-shrink-0 flex-row items-center gap-2 self-stretch content-md:w-auto content-md:flex-col content-md:items-end content-md:self-start";
|
|
286
286
|
var ROW_BASE_CLASS = "block p-[12px] text-inherit no-underline transition-colors duration-150 content-md:p-[16px]";
|
|
287
287
|
function DeliveryRow({ item, loading, href, target, caption, id, className }) {
|
|
288
|
-
const inScope =
|
|
288
|
+
const inScope = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
|
|
289
289
|
if (inScope || loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliveryRowSkeleton, { caption, className });
|
|
290
290
|
const taskType = item.taskType;
|
|
291
291
|
const typeBadgeLabel = _chunkHEVW75L3cjs.TASK_TYPE_LABELS[taskType] || "TASK";
|
|
292
292
|
const typeBadgeTextColor = _chunkHEVW75L3cjs.TASK_TYPE_TEXT_COLORS[taskType] || "";
|
|
293
|
-
const statusBadgeScheme =
|
|
293
|
+
const statusBadgeScheme = _chunkEOZ23WOYcjs.getStatusColorScheme.call(void 0, item.status);
|
|
294
294
|
const relativeTime = getRelativeTime(item.dateUpdated);
|
|
295
295
|
const subtitle = `ACTIVE ${relativeTime}${item.listNames.length > 0 ? `, ${item.listNames.join(", ")}` : ""}, ${item.id}`;
|
|
296
296
|
const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_INNER_CLASS2, children: [
|
|
@@ -302,7 +302,7 @@ function DeliveryRow({ item, loading, href, target, caption, id, className }) {
|
|
|
302
302
|
] }),
|
|
303
303
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_META_CLASS, children: [
|
|
304
304
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
305
|
-
|
|
305
|
+
_chunk3SENOTWTcjs.StatusBadge,
|
|
306
306
|
{
|
|
307
307
|
text: item.status.toUpperCase(),
|
|
308
308
|
colorScheme: statusBadgeScheme,
|
|
@@ -311,7 +311,7 @@ function DeliveryRow({ item, loading, href, target, caption, id, className }) {
|
|
|
311
311
|
}
|
|
312
312
|
),
|
|
313
313
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
314
|
-
|
|
314
|
+
_chunk3SENOTWTcjs.StatusBadge,
|
|
315
315
|
{
|
|
316
316
|
text: typeBadgeLabel,
|
|
317
317
|
variant: "card",
|
|
@@ -319,7 +319,7 @@ function DeliveryRow({ item, loading, href, target, caption, id, className }) {
|
|
|
319
319
|
}
|
|
320
320
|
),
|
|
321
321
|
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
322
|
-
|
|
322
|
+
_chunkY6KZFPZNcjs.AvatarStack,
|
|
323
323
|
{
|
|
324
324
|
size: "xs",
|
|
325
325
|
className: "ml-auto content-md:ml-0",
|
|
@@ -332,7 +332,7 @@ function DeliveryRow({ item, loading, href, target, caption, id, className }) {
|
|
|
332
332
|
) : null
|
|
333
333
|
] })
|
|
334
334
|
] });
|
|
335
|
-
const baseClass =
|
|
335
|
+
const baseClass = _chunkNWNC22IZcjs.cn.call(void 0,
|
|
336
336
|
ROW_BASE_CLASS,
|
|
337
337
|
// `scroll-mt-24` is paid for whether `id` is set or not (it's a
|
|
338
338
|
// single Tailwind utility, no runtime cost). Keeping it
|
|
@@ -351,16 +351,16 @@ function DeliveryRow({ item, loading, href, target, caption, id, className }) {
|
|
|
351
351
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id, className: baseClass, children: inner });
|
|
352
352
|
}
|
|
353
353
|
function DeliveryRowSkeleton({ caption, className }) {
|
|
354
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
354
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, ROW_BASE_CLASS, "scroll-mt-24", className), "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_INNER_CLASS2, children: [
|
|
355
355
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_TEXT_COLUMN_CLASS2, children: [
|
|
356
356
|
caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: ROW_CAPTION_CLASS, children: caption }),
|
|
357
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_TITLE_LINE_CLASS2, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
358
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_SUBTITLE_LINE_CLASS2, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
359
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_DESCRIPTION_LINE_CLASS2, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
357
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_TITLE_LINE_CLASS2, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h3", className: "w-3/5" }) }),
|
|
358
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_SUBTITLE_LINE_CLASS2, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h5", className: "w-2/5" }) }),
|
|
359
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_DESCRIPTION_LINE_CLASS2, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h4", lines: 2, className: "w-full" }) })
|
|
360
360
|
] }),
|
|
361
361
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_META_CLASS, children: [
|
|
362
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
363
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
362
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3SENOTWTcjs.StatusBadge, { loading: true, text: "", variant: "card" }),
|
|
363
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3SENOTWTcjs.StatusBadge, { loading: true, text: "", variant: "card" })
|
|
364
364
|
] })
|
|
365
365
|
] }) });
|
|
366
366
|
}
|
|
@@ -29,7 +29,7 @@ var _chunkMZ4KBSH7cjs = require('./chunk-MZ4KBSH7.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkMZOODES3cjs = require('./chunk-MZOODES3.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -41,7 +41,7 @@ var _chunkN2SVJJLUcjs = require('./chunk-N2SVJJLU.cjs');
|
|
|
41
41
|
var _chunkOJZBZH56cjs = require('./chunk-OJZBZH56.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkJ4ZNQ55Ocjs = require('./chunk-J4ZNQ55O.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -67,11 +67,11 @@ var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
|
67
67
|
var _chunk7PNRXJX2cjs = require('./chunk-7PNRXJX2.cjs');
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkIZXVGIQXcjs = require('./chunk-IZXVGIQX.cjs');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _chunkNWNC22IZcjs = require('./chunk-NWNC22IZ.cjs');
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
var _chunkKHKPLOU4cjs = require('./chunk-KHKPLOU4.cjs');
|
|
@@ -808,7 +808,7 @@ function usePlatformConfig() {
|
|
|
808
808
|
label: platform.label
|
|
809
809
|
}))
|
|
810
810
|
];
|
|
811
|
-
const selectableOptions =
|
|
811
|
+
const selectableOptions = _chunkMZOODES3cjs.transformPlatformConfigsToOptions.call(void 0, platforms);
|
|
812
812
|
return {
|
|
813
813
|
platforms,
|
|
814
814
|
platformOptions,
|
|
@@ -857,8 +857,8 @@ function ToastHeader({
|
|
|
857
857
|
className,
|
|
858
858
|
showProgress = true
|
|
859
859
|
}) {
|
|
860
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
861
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex size-6 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
860
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, "relative flex w-full items-start gap-2 overflow-hidden bg-ods-card p-3", className), children: [
|
|
861
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex size-6 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkNWNC22IZcjs.cn.call(void 0, "size-[9px] rounded-full", dotColorByVariant[variant]) }) }),
|
|
862
862
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
863
863
|
title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
864
864
|
"p",
|
|
@@ -878,7 +878,7 @@ function ToastHeader({
|
|
|
878
878
|
) : null
|
|
879
879
|
] }),
|
|
880
880
|
dismissible ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
881
|
-
|
|
881
|
+
_chunkIZXVGIQXcjs.Button,
|
|
882
882
|
{
|
|
883
883
|
variant: "bare",
|
|
884
884
|
size: "icon-sm",
|
|
@@ -892,7 +892,7 @@ function ToastHeader({
|
|
|
892
892
|
showProgress && duration !== Infinity && duration > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
893
893
|
"div",
|
|
894
894
|
{
|
|
895
|
-
className:
|
|
895
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "absolute inset-x-0 bottom-0 h-1 origin-left", progressColorByVariant[variant]),
|
|
896
896
|
style: {
|
|
897
897
|
animation: `toast-progress ${duration}ms linear forwards`
|
|
898
898
|
}
|
|
@@ -913,7 +913,7 @@ function ToastCard({
|
|
|
913
913
|
"div",
|
|
914
914
|
{
|
|
915
915
|
role: "status",
|
|
916
|
-
className:
|
|
916
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
917
917
|
"w-[368px] max-w-[calc(100vw-32px)] overflow-hidden rounded-md border border-ods-border bg-ods-card shadow-lg",
|
|
918
918
|
className
|
|
919
919
|
),
|
|
@@ -961,7 +961,7 @@ function CommandApprovalToast({
|
|
|
961
961
|
"div",
|
|
962
962
|
{
|
|
963
963
|
role: "status",
|
|
964
|
-
className:
|
|
964
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
965
965
|
"flex w-[368px] max-w-[calc(100vw-32px)] flex-col overflow-hidden rounded-md border border-ods-border bg-ods-bg shadow-lg",
|
|
966
966
|
className
|
|
967
967
|
),
|
|
@@ -988,13 +988,13 @@ function CommandApprovalToast({
|
|
|
988
988
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "overflow-hidden", children: [
|
|
989
989
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-11 w-full items-center gap-2 border-b border-ods-border bg-ods-card px-3 py-2", children: [
|
|
990
990
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h6", title: command, children: command }),
|
|
991
|
-
toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
991
|
+
toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ4ZNQ55Ocjs.ToolIcon, { toolType, size: 16 }) : null
|
|
992
992
|
] }),
|
|
993
993
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 bg-ods-bg p-3", children: [
|
|
994
994
|
approvalDescription ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: approvalDescription }) : null,
|
|
995
995
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4", children: [
|
|
996
996
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
997
|
-
|
|
997
|
+
_chunkIZXVGIQXcjs.Button,
|
|
998
998
|
{
|
|
999
999
|
variant: "accent",
|
|
1000
1000
|
size: "small",
|
|
@@ -1006,7 +1006,7 @@ function CommandApprovalToast({
|
|
|
1006
1006
|
}
|
|
1007
1007
|
),
|
|
1008
1008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1009
|
-
|
|
1009
|
+
_chunkIZXVGIQXcjs.Button,
|
|
1010
1010
|
{
|
|
1011
1011
|
variant: "outline",
|
|
1012
1012
|
size: "small",
|
|
@@ -1022,7 +1022,7 @@ function CommandApprovalToast({
|
|
|
1022
1022
|
] })
|
|
1023
1023
|
}
|
|
1024
1024
|
),
|
|
1025
|
-
expanded ? null : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1025
|
+
expanded ? null : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "row", type: "button", onClick: () => setExpanded(true), "aria-expanded": false, children: [
|
|
1026
1026
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex-1", children: "Show Command" }),
|
|
1027
1027
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSKI6NKOEcjs.Chevron02DownIcon, { size: 16 })
|
|
1028
1028
|
] })
|
|
@@ -1290,7 +1290,7 @@ function useDownloads({
|
|
|
1290
1290
|
initialData,
|
|
1291
1291
|
enabled: enabledGiven = true
|
|
1292
1292
|
} = {}) {
|
|
1293
|
-
const held =
|
|
1293
|
+
const held = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
|
|
1294
1294
|
const enabled = enabledGiven && !held;
|
|
1295
1295
|
const entry = entryFor(endpoint);
|
|
1296
1296
|
if (initialData && entry.state.data !== initialData && !entry.request) {
|
|
@@ -1323,10 +1323,10 @@ function useDownloads({
|
|
|
1323
1323
|
}
|
|
1324
1324
|
function useVisitorDesktopDownload(options = {}) {
|
|
1325
1325
|
const enabled = _nullishCoalesce(options.enabled, () => ( true));
|
|
1326
|
-
const visitor =
|
|
1326
|
+
const visitor = _chunkMZOODES3cjs.useVisitorOs.call(void 0, );
|
|
1327
1327
|
const { data, error } = useDownloads(options);
|
|
1328
1328
|
if (!enabled || !visitor.known || !data && !error) return { known: false, download: null };
|
|
1329
|
-
const os =
|
|
1329
|
+
const os = _chunkMZOODES3cjs.desktopOsOf.call(void 0, visitor.os);
|
|
1330
1330
|
const download = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _22 => _22.desktop, 'access', _23 => _23.find, 'call', _24 => _24((row) => row.kind === "binary" && row.url && row.os === os)]), () => ( null));
|
|
1331
1331
|
return { known: true, download };
|
|
1332
1332
|
}
|
|
@@ -2628,7 +2628,7 @@ function useAccessCodeIntegration() {
|
|
|
2628
2628
|
const validate = async (email, code) => {
|
|
2629
2629
|
setIsValidating(true);
|
|
2630
2630
|
try {
|
|
2631
|
-
return await
|
|
2631
|
+
return await _chunkMZOODES3cjs.validateAccessCode.call(void 0, email, code, endpoints);
|
|
2632
2632
|
} finally {
|
|
2633
2633
|
setIsValidating(false);
|
|
2634
2634
|
}
|
|
@@ -2636,7 +2636,7 @@ function useAccessCodeIntegration() {
|
|
|
2636
2636
|
const consume = async (email, code) => {
|
|
2637
2637
|
setIsConsuming(true);
|
|
2638
2638
|
try {
|
|
2639
|
-
return await
|
|
2639
|
+
return await _chunkMZOODES3cjs.consumeAccessCode.call(void 0, email, code, endpoints);
|
|
2640
2640
|
} finally {
|
|
2641
2641
|
setIsConsuming(false);
|
|
2642
2642
|
}
|
|
@@ -2645,7 +2645,7 @@ function useAccessCodeIntegration() {
|
|
|
2645
2645
|
setIsValidating(true);
|
|
2646
2646
|
setIsConsuming(true);
|
|
2647
2647
|
try {
|
|
2648
|
-
return await
|
|
2648
|
+
return await _chunkMZOODES3cjs.validateAndConsumeAccessCode.call(void 0, email, code, endpoints);
|
|
2649
2649
|
} finally {
|
|
2650
2650
|
setIsValidating(false);
|
|
2651
2651
|
setIsConsuming(false);
|
|
@@ -2675,7 +2675,7 @@ async function revalidateMirror(mirrorPath) {
|
|
|
2675
2675
|
}
|
|
2676
2676
|
function useClaudeMirrorSrc(url) {
|
|
2677
2677
|
const endpoints = _chunkMZ4KBSH7cjs.useEndpointsRuntime.call(void 0, );
|
|
2678
|
-
const mirrorPath =
|
|
2678
|
+
const mirrorPath = _chunkMZOODES3cjs.toClaudeMirrorPath.call(void 0, url, _optionalChain([endpoints, 'optionalAccess', _32 => _32.storageViewBaseUrl]));
|
|
2679
2679
|
const [resolved, setResolved] = _react.useState.call(void 0, null);
|
|
2680
2680
|
const state = resolved && resolved.key === mirrorPath ? resolved.value : { src: null, status: mirrorPath ? "probing" : "absent" };
|
|
2681
2681
|
_react.useEffect.call(void 0, () => {
|
|
@@ -2778,8 +2778,8 @@ function useHumanitySignals() {
|
|
|
2778
2778
|
const startedAtRef = _react.useRef.call(void 0, mountedAt);
|
|
2779
2779
|
const getSignals = _react.useCallback.call(void 0,
|
|
2780
2780
|
() => ({
|
|
2781
|
-
[
|
|
2782
|
-
[
|
|
2781
|
+
[_chunkMZOODES3cjs.HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _34 => _34.current, 'optionalAccess', _35 => _35.value]), () => ( "")),
|
|
2782
|
+
[_chunkMZOODES3cjs.ELAPSED_MS_FIELD]: typeof performance !== "undefined" ? Math.round(performance.now() - startedAtRef.current) : 0
|
|
2783
2783
|
}),
|
|
2784
2784
|
[]
|
|
2785
2785
|
);
|
|
@@ -2787,7 +2787,7 @@ function useHumanitySignals() {
|
|
|
2787
2787
|
if (ref.current) ref.current.value = "";
|
|
2788
2788
|
if (typeof performance !== "undefined") startedAtRef.current = performance.now();
|
|
2789
2789
|
}, []);
|
|
2790
|
-
return { honeypotInputProps: { ref, name:
|
|
2790
|
+
return { honeypotInputProps: { ref, name: _chunkMZOODES3cjs.HONEYPOT_FIELD }, getSignals, resetSignals };
|
|
2791
2791
|
}
|
|
2792
2792
|
|
|
2793
2793
|
// src/hooks/use-form-rescue.ts
|
|
@@ -2800,9 +2800,9 @@ function readLocalDraft(formId) {
|
|
|
2800
2800
|
const raw = window.localStorage.getItem(STORAGE_PREFIX + formId);
|
|
2801
2801
|
if (!raw) return null;
|
|
2802
2802
|
const parsed = JSON.parse(raw);
|
|
2803
|
-
if (!
|
|
2803
|
+
if (!_chunkMZOODES3cjs.isFormAttemptId.call(void 0, parsed.attemptId) || typeof parsed.savedAt !== "number") return null;
|
|
2804
2804
|
if (Date.now() - parsed.savedAt > LOCAL_DRAFT_TTL_MS) return null;
|
|
2805
|
-
return { attemptId: parsed.attemptId, values:
|
|
2805
|
+
return { attemptId: parsed.attemptId, values: _chunkMZOODES3cjs.sanitizeRescueValues.call(void 0, parsed.values), savedAt: parsed.savedAt };
|
|
2806
2806
|
} catch (e8) {
|
|
2807
2807
|
return null;
|
|
2808
2808
|
}
|
|
@@ -2822,9 +2822,9 @@ function clearLocalDraft(formId) {
|
|
|
2822
2822
|
function completeFormRescue(form, attemptId) {
|
|
2823
2823
|
if (!form || typeof window === "undefined") return;
|
|
2824
2824
|
const local = readLocalDraft(form.id);
|
|
2825
|
-
|
|
2825
|
+
_chunkMZOODES3cjs.captureFormRescueEvent.call(void 0, _chunkMZOODES3cjs.FORM_RESCUE_EVENTS.submitted, {
|
|
2826
2826
|
form_id: form.id,
|
|
2827
|
-
attempt_id:
|
|
2827
|
+
attempt_id: _chunkMZOODES3cjs.isFormAttemptId.call(void 0, attemptId) ? attemptId : _nullishCoalesce(_optionalChain([local, 'optionalAccess', _36 => _36.attemptId]), () => ( null))
|
|
2828
2828
|
});
|
|
2829
2829
|
clearLocalDraft(form.id);
|
|
2830
2830
|
}
|
|
@@ -2885,7 +2885,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2885
2885
|
}).catch(() => void 0);
|
|
2886
2886
|
} catch (e12) {
|
|
2887
2887
|
}
|
|
2888
|
-
|
|
2888
|
+
_chunkMZOODES3cjs.captureFormRescueEvent.call(void 0, _chunkMZOODES3cjs.FORM_RESCUE_EVENTS.progress, {
|
|
2889
2889
|
form_id: formId,
|
|
2890
2890
|
attempt_id: attemptId(),
|
|
2891
2891
|
fields_filled: body.fields_filled,
|
|
@@ -2898,14 +2898,14 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2898
2898
|
_react.useEffect.call(void 0, () => {
|
|
2899
2899
|
if (!formId || typeof window === "undefined") return void 0;
|
|
2900
2900
|
let cancelled = false;
|
|
2901
|
-
const token = new URLSearchParams(window.location.search).get(
|
|
2901
|
+
const token = new URLSearchParams(window.location.search).get(_chunkMZOODES3cjs.FORM_RESCUE_RESUME_PARAM);
|
|
2902
2902
|
const restoreLocal = () => {
|
|
2903
2903
|
const local = readLocalDraft(formId);
|
|
2904
2904
|
if (!local) return;
|
|
2905
2905
|
attemptIdRef.current = local.attemptId;
|
|
2906
2906
|
if (Object.keys(local.values).length) _optionalChain([onRestoreRef, 'access', _41 => _41.current, 'optionalCall', _42 => _42(local.values)]);
|
|
2907
2907
|
};
|
|
2908
|
-
if (
|
|
2908
|
+
if (_chunkMZOODES3cjs.isResumeToken.call(void 0, token) && draftsUrl) {
|
|
2909
2909
|
_chunk7PNRXJX2cjs.contentFetch.call(void 0, `${draftsUrl}/resume/${encodeURIComponent(token)}`).then(async (res) => res.ok ? await res.json() : null).then((data) => {
|
|
2910
2910
|
if (cancelled) return;
|
|
2911
2911
|
if (!data || data.form_id !== formId) {
|
|
@@ -2913,8 +2913,8 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2913
2913
|
return;
|
|
2914
2914
|
}
|
|
2915
2915
|
resumeTokenRef.current = token;
|
|
2916
|
-
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(
|
|
2917
|
-
|
|
2916
|
+
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(_chunkMZOODES3cjs.sanitizeRescueValues.call(void 0, data.values))]);
|
|
2917
|
+
_chunkMZOODES3cjs.captureFormRescueEvent.call(void 0, _chunkMZOODES3cjs.FORM_RESCUE_EVENTS.resumed, { form_id: formId, attempt_id: attemptId() });
|
|
2918
2918
|
}).catch(() => {
|
|
2919
2919
|
if (!cancelled) restoreLocal();
|
|
2920
2920
|
});
|
|
@@ -2934,7 +2934,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2934
2934
|
timerRef.current = null;
|
|
2935
2935
|
}
|
|
2936
2936
|
send(true);
|
|
2937
|
-
|
|
2937
|
+
_chunkMZOODES3cjs.captureFormRescueEvent.call(void 0, _chunkMZOODES3cjs.FORM_RESCUE_EVENTS.abandoned, {
|
|
2938
2938
|
form_id: formId,
|
|
2939
2939
|
attempt_id: attemptId(),
|
|
2940
2940
|
last_field: _nullishCoalesce(_optionalChain([latestRef, 'access', _45 => _45.current, 'optionalAccess', _46 => _46.last_field]), () => ( null)),
|
|
@@ -2958,22 +2958,22 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2958
2958
|
const names = fieldNamesRef.current;
|
|
2959
2959
|
const visible = {};
|
|
2960
2960
|
for (const name of names) visible[name] = values[name];
|
|
2961
|
-
const filled =
|
|
2961
|
+
const filled = _chunkMZOODES3cjs.filledRescueFields.call(void 0, visible, names);
|
|
2962
2962
|
if (!filled.length) return;
|
|
2963
2963
|
if (!startedRef.current) {
|
|
2964
2964
|
startedRef.current = true;
|
|
2965
|
-
|
|
2965
|
+
_chunkMZOODES3cjs.captureFormRescueEvent.call(void 0, _chunkMZOODES3cjs.FORM_RESCUE_EVENTS.started, { form_id: formId, attempt_id: attemptId() });
|
|
2966
2966
|
}
|
|
2967
|
-
const clean =
|
|
2968
|
-
if (!leadCapturedRef.current &&
|
|
2967
|
+
const clean = _chunkMZOODES3cjs.sanitizeRescueValues.call(void 0, visible);
|
|
2968
|
+
if (!leadCapturedRef.current && _chunkMZOODES3cjs.isRescueEmail.call(void 0, clean.email)) {
|
|
2969
2969
|
leadCapturedRef.current = true;
|
|
2970
|
-
|
|
2970
|
+
_chunkMZOODES3cjs.captureFormRescueEvent.call(void 0, _chunkMZOODES3cjs.FORM_RESCUE_EVENTS.leadCaptured, { form_id: formId, attempt_id: attemptId() });
|
|
2971
2971
|
}
|
|
2972
2972
|
latestRef.current = {
|
|
2973
2973
|
values: clean,
|
|
2974
2974
|
fields_filled: filled,
|
|
2975
|
-
last_field:
|
|
2976
|
-
completion_pct:
|
|
2975
|
+
last_field: _chunkMZOODES3cjs.sanitizeRescueFieldName.call(void 0, lastField),
|
|
2976
|
+
completion_pct: _chunkMZOODES3cjs.rescueCompletionPct.call(void 0, filled.length, names.length)
|
|
2977
2977
|
};
|
|
2978
2978
|
dirtyRef.current = true;
|
|
2979
2979
|
writeLocalDraft(formId, { attemptId: attemptId(), values: clean, savedAt: Date.now() });
|
|
@@ -2981,15 +2981,15 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2981
2981
|
timerRef.current = setTimeout(() => {
|
|
2982
2982
|
timerRef.current = null;
|
|
2983
2983
|
send(false);
|
|
2984
|
-
},
|
|
2984
|
+
}, _chunkMZOODES3cjs.FORM_RESCUE_DEBOUNCE_MS);
|
|
2985
2985
|
},
|
|
2986
2986
|
[attemptId, formId, send]
|
|
2987
2987
|
);
|
|
2988
2988
|
const submitFields = _react.useCallback.call(void 0, () => {
|
|
2989
2989
|
if (!formId) return {};
|
|
2990
2990
|
return {
|
|
2991
|
-
[
|
|
2992
|
-
...resumeTokenRef.current ? { [
|
|
2991
|
+
[_chunkMZOODES3cjs.FORM_RESCUE_ATTEMPT_FIELD]: attemptId(),
|
|
2992
|
+
...resumeTokenRef.current ? { [_chunkMZOODES3cjs.FORM_RESCUE_RESUME_FIELD]: resumeTokenRef.current } : {}
|
|
2993
2993
|
};
|
|
2994
2994
|
}, [attemptId, formId]);
|
|
2995
2995
|
const complete = _react.useCallback.call(void 0, () => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk55KZW2P2cjs = require('./chunk-55KZW2P2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkNVWROBPFcjs = require('./chunk-NVWROBPF.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk2JDK4FWVcjs = require('./chunk-2JDK4FWV.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
@@ -36,8 +36,8 @@ function FaqDocumentPage({
|
|
|
36
36
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _ => _.label]), () => ( "Back to home")),
|
|
37
37
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
|
|
38
38
|
};
|
|
39
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
-
|
|
39
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2JDK4FWVcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
+
_chunk55KZW2P2cjs.FaqSection,
|
|
41
41
|
{
|
|
42
42
|
initialFaqs,
|
|
43
43
|
heading: null,
|
|
@@ -53,7 +53,7 @@ function FaqDocumentPage({
|
|
|
53
53
|
skeletonNav
|
|
54
54
|
}
|
|
55
55
|
) });
|
|
56
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNVWROBPFcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
|