@flamingo-stack/openframe-frontend-core 0.0.796 → 0.0.797
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-K6HYMHL6.cjs +23 -0
- package/dist/{chunk-QVC5CMC5.cjs → chunk-2JCY5KQL.cjs} +4 -4
- package/dist/{chunk-Y3IMXLLL.cjs → chunk-3H3CQ7BQ.cjs} +541 -538
- package/dist/{chunk-IONS6HDF.cjs → chunk-3NGJ7NPT.cjs} +61 -61
- package/dist/{chunk-ZRME3A2D.cjs → chunk-4M5JIVAH.cjs} +3 -3
- package/dist/{chunk-AT4C2YMA.cjs → chunk-4WIJI4AK.cjs} +17 -17
- package/dist/{chunk-UYOGZJPE.cjs → chunk-5CEXT3V7.cjs} +37 -37
- package/dist/{chunk-75PJ2SAZ.cjs → chunk-5RGGUQ4Y.cjs} +2 -2
- package/dist/{chunk-UCHO4BOS.cjs → chunk-6GCXQIUU.cjs} +5 -5
- package/dist/{chunk-GP7NV6BK.cjs → chunk-6UKH22NQ.cjs} +29 -29
- package/dist/{chunk-CC7NRWRF.cjs → chunk-7AMU2ZD2.cjs} +60 -60
- package/dist/{chunk-JC43ULIC.cjs → chunk-7GFKJGWH.cjs} +116 -116
- package/dist/{chunk-6YZNUHXT.cjs → chunk-7JWFMAQB.cjs} +8 -2
- package/dist/{chunk-PALMLL5T.cjs → chunk-7MLK7BGF.cjs} +10 -10
- package/dist/{chunk-TUD7BV6O.cjs → chunk-7MV23NNT.cjs} +54 -54
- package/dist/{chunk-K7I3YYYU.cjs → chunk-AHBTZ7DN.cjs} +44 -44
- package/dist/{chunk-ZMWSN2BD.cjs → chunk-BUCCV72E.cjs} +13 -13
- package/dist/{chunk-CWA6J7KC.cjs → chunk-BWR5ACK3.cjs} +45 -45
- package/dist/{chunk-VUP7ZGZS.cjs → chunk-CHF6PHOR.cjs} +46 -46
- package/dist/{chunk-6JCTKXHX.cjs → chunk-CO6FB4DR.cjs} +31 -31
- package/dist/{chunk-G24OX7AC.cjs → chunk-DTBIIFZG.cjs} +63 -63
- package/dist/{chunk-F64GLU75.cjs → chunk-E56LN23H.cjs} +205 -205
- package/dist/{chunk-QMDXG3VF.cjs → chunk-FFEE2ON2.cjs} +2015 -2015
- package/dist/{chunk-W4QITOT7.cjs → chunk-GAFNJDZV.cjs} +13 -13
- package/dist/{chunk-JRTDBPJT.cjs → chunk-GD47ZGOU.cjs} +3 -3
- package/dist/{chunk-HBAVHYXO.cjs → chunk-HATRCNXJ.cjs} +2 -2
- package/dist/{chunk-OKAHKZP2.cjs → chunk-IS77JFF6.cjs} +17 -17
- package/dist/{chunk-QVKWKY4O.cjs → chunk-JTIGKLKJ.cjs} +23 -23
- package/dist/{chunk-DRWPSN3A.cjs → chunk-KUXHXLJQ.cjs} +5 -5
- package/dist/{chunk-VYXNGADV.cjs → chunk-KWINW3FC.cjs} +44 -44
- package/dist/{chunk-XVVQJXOA.cjs → chunk-LAJNO2EW.cjs} +171 -171
- package/dist/{chunk-GD6RPLHX.cjs → chunk-LKQ33CMY.cjs} +3 -3
- package/dist/{chunk-N3J4U7ML.cjs → chunk-NBUHCGGG.cjs} +8 -8
- package/dist/{chunk-HJBJHQKE.cjs → chunk-NG3RKTQU.cjs} +16 -16
- package/dist/{chunk-HYF4LPXF.cjs → chunk-NL3G642U.cjs} +10 -10
- package/dist/{chunk-XFJ7BZDJ.cjs → chunk-NX4QOEPJ.cjs} +22 -22
- package/dist/{chunk-7SEY3FDF.cjs → chunk-OZUUCVDZ.cjs} +19 -19
- package/dist/{chunk-JXQNECXM.cjs → chunk-P4B6PVSG.cjs} +7 -7
- package/dist/{chunk-7VU4HHUR.cjs → chunk-PBL66EVT.cjs} +51 -51
- package/dist/{chunk-JGURZROB.cjs → chunk-QKXXHOOD.cjs} +321 -321
- package/dist/{chunk-NAJ24ODA.cjs → chunk-RD57WBJK.cjs} +4 -4
- package/dist/{chunk-HCXNFMLO.cjs → chunk-TTZEDDR5.cjs} +14 -14
- package/dist/{chunk-YFHKBIZT.cjs → chunk-UKLSEI7S.cjs} +6 -6
- package/dist/{chunk-QCN46LDL.cjs → chunk-VFCPLZFY.cjs} +110 -110
- package/dist/{chunk-CFXCCQ6T.cjs → chunk-VVLL37EM.cjs} +12 -12
- package/dist/{chunk-LL6PXI6C.cjs → chunk-XR323UBY.cjs} +4 -4
- package/dist/{chunk-UN6LC5PK.cjs → chunk-YBTORXFY.cjs} +110 -110
- package/dist/{chunk-6WXP5IKR.cjs → chunk-YHCC3BLP.cjs} +42 -42
- package/dist/{chunk-NRAH3M66.cjs → chunk-YMWK7GOC.cjs} +197 -197
- package/dist/{chunk-RFIBRGXG.cjs → chunk-YR74H7Z3.cjs} +7 -7
- package/dist/{chunk-RKWEFZ6P.cjs → chunk-ZD6SZLO2.cjs} +3 -3
- package/dist/{chunk-II4A2RUG.cjs → chunk-ZPTHTGHK.cjs} +62 -62
- package/dist/{cloud-tenants-BQUWLMYY.cjs → cloud-tenants-THCY3N2P.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/help-center-pages/index.cjs +163 -163
- package/dist/components/index.cjs +204 -204
- package/dist/components/meeting-scheduler/index.cjs +191 -191
- 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/button/button-styles.d.ts +6 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +7 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +32 -32
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +6 -3
- package/dist/{devices-BFQOLI3D.cjs → devices-N4EF5QDS.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-INYF23ST.cjs → embeddable-chat-7Z2OQK3X.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +48 -48
- package/dist/{knowledge-GGYWTYTP.cjs → knowledge-TL4DSXYQ.cjs} +33 -33
- package/dist/{logs-NO55PTIO.cjs → logs-4VRUBGKE.cjs} +41 -41
- package/dist/{policies-AAFYTVOJ.cjs → policies-TLNVCQGG.cjs} +36 -36
- package/dist/{remote-session-2CNWLF3P.cjs → remote-session-4LYKEZSY.cjs} +17 -17
- package/dist/{scripts-H4ECJ65X.cjs → scripts-4LFWHIMH.cjs} +39 -39
- package/dist/{software-update-NEEGQBK3.cjs → software-update-J4ZXQABW.cjs} +36 -36
- package/dist/{tickets-board-CXYRAMDL.cjs → tickets-board-3FBVYSXR.cjs} +17 -17
- package/dist/{video-file-player-HZPMCCYF.cjs → video-file-player-2FMFCGXE.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/ui/button/button-styles.ts +11 -1
- package/src/components/ui/tabs.tsx +5 -2
- package/dist/case-study-card-KU4ZIONR.cjs +0 -23
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk7JWFMAQBcjs = require('./chunk-7JWFMAQB.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -31,16 +31,16 @@ var buttonVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
31
31
|
{
|
|
32
32
|
variants: {
|
|
33
33
|
variant: {
|
|
34
|
-
accent:
|
|
35
|
-
outline:
|
|
36
|
-
transparent:
|
|
37
|
-
destructive:
|
|
38
|
-
warning:
|
|
39
|
-
inverted:
|
|
40
|
-
glyph:
|
|
41
|
-
overlay:
|
|
42
|
-
link:
|
|
43
|
-
bare:
|
|
34
|
+
accent: _chunk7JWFMAQBcjs.buttonSurfaceClasses.accent,
|
|
35
|
+
outline: _chunk7JWFMAQBcjs.cn.call(void 0, _chunk7JWFMAQBcjs.buttonSurfaceClasses.outline, _chunk7JWFMAQBcjs.outlineBorderClasses),
|
|
36
|
+
transparent: _chunk7JWFMAQBcjs.buttonSurfaceClasses.transparent,
|
|
37
|
+
destructive: _chunk7JWFMAQBcjs.buttonSurfaceClasses.destructive,
|
|
38
|
+
warning: _chunk7JWFMAQBcjs.buttonSurfaceClasses.warning,
|
|
39
|
+
inverted: _chunk7JWFMAQBcjs.buttonSurfaceClasses.inverted,
|
|
40
|
+
glyph: _chunk7JWFMAQBcjs.buttonSurfaceClasses.glyph,
|
|
41
|
+
overlay: _chunk7JWFMAQBcjs.buttonSurfaceClasses.overlay,
|
|
42
|
+
link: _chunk7JWFMAQBcjs.buttonSurfaceClasses.link,
|
|
43
|
+
bare: _chunk7JWFMAQBcjs.buttonSurfaceClasses.bare,
|
|
44
44
|
// The kinds that are not a plain push button own their whole box (`BUTTON_KIND_CLASS`); resolved
|
|
45
45
|
// before this map is read, so `size` never reaches them. The entries only type the prop.
|
|
46
46
|
field: "",
|
|
@@ -53,7 +53,7 @@ var buttonVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
53
53
|
cell: "",
|
|
54
54
|
stepper: ""
|
|
55
55
|
},
|
|
56
|
-
size:
|
|
56
|
+
size: _chunk7JWFMAQBcjs.BUTTON_SIZE_CLASS,
|
|
57
57
|
// Label typography axis (Figma 133-740). `bold` is the classic h3-bold
|
|
58
58
|
// label; `regular` swaps the DEFAULT size's label to the h4 step
|
|
59
59
|
// (DM Sans 500, neutral tracking) — added for navigation buttons.
|
|
@@ -88,17 +88,17 @@ var buttonVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
88
88
|
{
|
|
89
89
|
attach: "end",
|
|
90
90
|
variant: "accent",
|
|
91
|
-
class:
|
|
91
|
+
class: _chunk7JWFMAQBcjs.cn.call(void 0, "border-l", _chunk7JWFMAQBcjs.splitDividerColorClasses.accent, "disabled:border-ods-disabled")
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
attach: "end",
|
|
95
95
|
variant: "destructive",
|
|
96
|
-
class:
|
|
96
|
+
class: _chunk7JWFMAQBcjs.cn.call(void 0, "border-l", _chunk7JWFMAQBcjs.splitDividerColorClasses.destructive, "disabled:border-ods-disabled")
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
attach: "end",
|
|
100
100
|
variant: "warning",
|
|
101
|
-
class:
|
|
101
|
+
class: _chunk7JWFMAQBcjs.cn.call(void 0, "border-l", _chunk7JWFMAQBcjs.splitDividerColorClasses.warning, "disabled:border-ods-disabled")
|
|
102
102
|
},
|
|
103
103
|
{ size: "small", class: "[&_svg]:h-4 [&_svg]:w-4" },
|
|
104
104
|
// Comes after the size classes, so cn()'s tailwind-merge resolves the
|
|
@@ -125,11 +125,11 @@ var splitShellVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
125
125
|
{
|
|
126
126
|
variants: {
|
|
127
127
|
variant: {
|
|
128
|
-
accent:
|
|
129
|
-
outline:
|
|
130
|
-
transparent:
|
|
131
|
-
destructive:
|
|
132
|
-
warning:
|
|
128
|
+
accent: _chunk7JWFMAQBcjs.buttonSurfaceClasses.accent,
|
|
129
|
+
outline: _chunk7JWFMAQBcjs.cn.call(void 0, _chunk7JWFMAQBcjs.buttonSurfaceClasses.outline, _chunk7JWFMAQBcjs.outlineBorderClasses),
|
|
130
|
+
transparent: _chunk7JWFMAQBcjs.buttonSurfaceClasses.transparent,
|
|
131
|
+
destructive: _chunk7JWFMAQBcjs.buttonSurfaceClasses.destructive,
|
|
132
|
+
warning: _chunk7JWFMAQBcjs.buttonSurfaceClasses.warning
|
|
133
133
|
},
|
|
134
134
|
size: {
|
|
135
135
|
default: "h-12",
|
|
@@ -158,7 +158,7 @@ var splitSlotVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
158
158
|
main: "gap-[var(--spacing-system-xsf)]",
|
|
159
159
|
icon: "border-l"
|
|
160
160
|
},
|
|
161
|
-
size:
|
|
161
|
+
size: _chunk7JWFMAQBcjs.splitGlyphSizeBySize,
|
|
162
162
|
variant: { accent: "", outline: "", transparent: "", destructive: "", warning: "" },
|
|
163
163
|
fullWidth: { true: "", false: "" }
|
|
164
164
|
},
|
|
@@ -178,26 +178,26 @@ var splitSlotVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
178
178
|
{
|
|
179
179
|
slot: "icon",
|
|
180
180
|
variant: "accent",
|
|
181
|
-
class:
|
|
182
|
-
|
|
181
|
+
class: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
182
|
+
_chunk7JWFMAQBcjs.splitDividerColorClasses.accent,
|
|
183
183
|
"group-disabled:border-ods-disabled group-aria-disabled:border-ods-disabled"
|
|
184
184
|
)
|
|
185
185
|
},
|
|
186
|
-
{ slot: "icon", variant: "outline", class:
|
|
187
|
-
{ slot: "icon", variant: "transparent", class:
|
|
186
|
+
{ slot: "icon", variant: "outline", class: _chunk7JWFMAQBcjs.splitDividerColorClasses.outline },
|
|
187
|
+
{ slot: "icon", variant: "transparent", class: _chunk7JWFMAQBcjs.splitDividerColorClasses.transparent },
|
|
188
188
|
{
|
|
189
189
|
slot: "icon",
|
|
190
190
|
variant: "destructive",
|
|
191
|
-
class:
|
|
192
|
-
|
|
191
|
+
class: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
192
|
+
_chunk7JWFMAQBcjs.splitDividerColorClasses.destructive,
|
|
193
193
|
"group-disabled:border-ods-disabled group-aria-disabled:border-ods-disabled"
|
|
194
194
|
)
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
slot: "icon",
|
|
198
198
|
variant: "warning",
|
|
199
|
-
class:
|
|
200
|
-
|
|
199
|
+
class: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
200
|
+
_chunk7JWFMAQBcjs.splitDividerColorClasses.warning,
|
|
201
201
|
"group-disabled:border-ods-disabled group-aria-disabled:border-ods-disabled"
|
|
202
202
|
)
|
|
203
203
|
}
|
|
@@ -240,16 +240,16 @@ var Button = _react2.default.forwardRef(function ButtonImpl({
|
|
|
240
240
|
...props
|
|
241
241
|
}, ref) {
|
|
242
242
|
const isDisabled = disabled || loading;
|
|
243
|
-
const kind = variant && variant in
|
|
243
|
+
const kind = variant && variant in _chunk7JWFMAQBcjs.BUTTON_KIND_CLASS ? variant : null;
|
|
244
244
|
const useSplitLayout = !kind && !!splitIcon && (size === "default" || size === "small" || size === void 0);
|
|
245
245
|
if (useSplitLayout) {
|
|
246
246
|
const safeSize = _nullishCoalesce(size, () => ( "default"));
|
|
247
247
|
const safeVariant = _nullishCoalesce(variant, () => ( "accent"));
|
|
248
|
-
const shellClasses =
|
|
248
|
+
const shellClasses = _chunk7JWFMAQBcjs.cn.call(void 0, splitShellVariants({ variant: safeVariant, size: safeSize, font, fullWidth }), className);
|
|
249
249
|
const mainSlotClass = splitSlotVariants({ slot: "main", size: safeSize, variant: safeVariant, fullWidth });
|
|
250
250
|
const iconSlotClass = splitSlotVariants({ slot: "icon", size: safeSize, variant: safeVariant });
|
|
251
251
|
const splitContent = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
252
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
252
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "contents", loading && "invisible"), children: [
|
|
253
253
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: mainSlotClass, children: [
|
|
254
254
|
leftIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex items-center", children: leftIcon }),
|
|
255
255
|
children,
|
|
@@ -265,9 +265,9 @@ var Button = _react2.default.forwardRef(function ButtonImpl({
|
|
|
265
265
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
266
266
|
"span",
|
|
267
267
|
{
|
|
268
|
-
className:
|
|
268
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
269
269
|
"absolute inset-0 inline-flex items-center justify-center text-ods-text-primary",
|
|
270
|
-
|
|
270
|
+
_chunk7JWFMAQBcjs.splitGlyphSizeBySize[safeSize]
|
|
271
271
|
),
|
|
272
272
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Spinner, {})
|
|
273
273
|
}
|
|
@@ -280,10 +280,10 @@ var Button = _react2.default.forwardRef(function ButtonImpl({
|
|
|
280
280
|
href,
|
|
281
281
|
download,
|
|
282
282
|
prefetch: false,
|
|
283
|
-
className:
|
|
283
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, shellClasses, isDisabled && "pointer-events-none"),
|
|
284
284
|
onClick,
|
|
285
285
|
"aria-label": props["aria-label"],
|
|
286
|
-
...
|
|
286
|
+
..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props),
|
|
287
287
|
children: splitContent
|
|
288
288
|
}
|
|
289
289
|
);
|
|
@@ -305,21 +305,21 @@ var Button = _react2.default.forwardRef(function ButtonImpl({
|
|
|
305
305
|
"aria-label": props["aria-label"],
|
|
306
306
|
"aria-disabled": isDisabled || void 0,
|
|
307
307
|
tabIndex: isDisabled ? -1 : void 0,
|
|
308
|
-
className:
|
|
308
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, shellClasses, isDisabled && "pointer-events-none"),
|
|
309
309
|
onClick: splitAnchor.onClick,
|
|
310
|
-
...
|
|
310
|
+
..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props),
|
|
311
311
|
children: splitContent
|
|
312
312
|
}
|
|
313
313
|
);
|
|
314
314
|
}
|
|
315
315
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { ref, className: shellClasses, disabled: isDisabled, onClick, ...props, children: splitContent });
|
|
316
316
|
}
|
|
317
|
-
const classes = kind ?
|
|
317
|
+
const classes = kind ? _chunk7JWFMAQBcjs.cn.call(void 0, _chunk7JWFMAQBcjs.BUTTON_KIND_CLASS[kind], loading && "relative", fullWidth && "w-full", className) : _chunk7JWFMAQBcjs.cn.call(void 0, buttonVariants({ variant, size, font, fullWidth, noPaddingX, attach }), className);
|
|
318
318
|
if (asChild) {
|
|
319
319
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactslot.Slot, { ref, className: classes, ...props, children });
|
|
320
320
|
}
|
|
321
321
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
322
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
322
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "contents", loading && "invisible"), children: [
|
|
323
323
|
leftIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex items-center", children: leftIcon }),
|
|
324
324
|
children,
|
|
325
325
|
rightIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex items-center", children: rightIcon })
|
|
@@ -333,7 +333,7 @@ var Button = _react2.default.forwardRef(function ButtonImpl({
|
|
|
333
333
|
href,
|
|
334
334
|
download,
|
|
335
335
|
prefetch: false,
|
|
336
|
-
className:
|
|
336
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, classes, isDisabled && "pointer-events-none"),
|
|
337
337
|
onClick,
|
|
338
338
|
"aria-label": props["aria-label"],
|
|
339
339
|
children: content
|
|
@@ -357,7 +357,7 @@ var Button = _react2.default.forwardRef(function ButtonImpl({
|
|
|
357
357
|
"aria-label": props["aria-label"],
|
|
358
358
|
"aria-disabled": isDisabled || void 0,
|
|
359
359
|
tabIndex: isDisabled ? -1 : void 0,
|
|
360
|
-
className:
|
|
360
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, classes, isDisabled && "pointer-events-none"),
|
|
361
361
|
onClick: anchor.onClick,
|
|
362
362
|
children: content
|
|
363
363
|
}
|
|
@@ -398,7 +398,7 @@ function Half({
|
|
|
398
398
|
disabled,
|
|
399
399
|
"aria-label": ariaLabel,
|
|
400
400
|
onClick,
|
|
401
|
-
className:
|
|
401
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, grow && "flex-1", side === "icon" && soloOnMobile && "max-md:hidden"),
|
|
402
402
|
children
|
|
403
403
|
}
|
|
404
404
|
);
|
|
@@ -429,7 +429,7 @@ var SplitButton = _react2.default.forwardRef(function SplitButtonImpl({
|
|
|
429
429
|
ref,
|
|
430
430
|
role: "group",
|
|
431
431
|
"aria-label": groupAriaLabel,
|
|
432
|
-
className:
|
|
432
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, "inline-flex items-stretch", fullWidth && "w-full", className),
|
|
433
433
|
children: [
|
|
434
434
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
435
435
|
Half,
|
|
@@ -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 _chunkFFEE2ON2cjs = require('./chunk-FFEE2ON2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk3H3CQ7BQcjs = require('./chunk-3H3CQ7BQ.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkOJZBZH56cjs = require('./chunk-OJZBZH56.cjs');
|
|
@@ -18,10 +18,10 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkQKXXHOODcjs = require('./chunk-QKXXHOOD.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkYBTORXFYcjs = require('./chunk-YBTORXFY.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunk7PNRXJX2cjs = require('./chunk-7PNRXJX2.cjs');
|
|
@@ -42,7 +42,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
42
42
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
43
43
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
44
44
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
45
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
45
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunk3H3CQ7BQcjs.resolveSourceIcon.call(void 0, {
|
|
46
46
|
sourceRepo,
|
|
47
47
|
documentType: docType
|
|
48
48
|
});
|
|
@@ -72,7 +72,7 @@ function DocSearchBar({
|
|
|
72
72
|
renderResult
|
|
73
73
|
}) {
|
|
74
74
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
75
|
-
|
|
75
|
+
_chunkFFEE2ON2cjs.SearchInput,
|
|
76
76
|
{
|
|
77
77
|
placeholder,
|
|
78
78
|
value: query,
|
|
@@ -122,7 +122,7 @@ function mapDocSearchResults(docs) {
|
|
|
122
122
|
results.push({
|
|
123
123
|
id: `group-${entry.repo}`,
|
|
124
124
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
125
|
-
title: `${
|
|
125
|
+
title: `${_chunk3H3CQ7BQcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunk3H3CQ7BQcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
126
126
|
path: rows[0].path,
|
|
127
127
|
type: "file",
|
|
128
128
|
metadata: {
|
|
@@ -185,7 +185,7 @@ function resolveSearchResultAction(result, source, runtimeMode, composeContentUr
|
|
|
185
185
|
if (composed && !isAbsoluteHref(href)) {
|
|
186
186
|
return { kind: "navigate-same-tab", href };
|
|
187
187
|
}
|
|
188
|
-
const isNewTab =
|
|
188
|
+
const isNewTab = _chunkYBTORXFYcjs.decideNewTab.call(void 0, {
|
|
189
189
|
href,
|
|
190
190
|
targetPlatform: composed ? composed.targetPlatform : targetPlatform,
|
|
191
191
|
surface: "useUnifiedNav",
|
|
@@ -314,31 +314,31 @@ function useDocSearch(config) {
|
|
|
314
314
|
case "navigate-same-tab": {
|
|
315
315
|
if (wantsNewTab) {
|
|
316
316
|
setKeepOpen(true);
|
|
317
|
-
window.open(action.href, "_blank",
|
|
317
|
+
window.open(action.href, "_blank", _chunkQKXXHOODcjs.NEW_TAB_FEATURES);
|
|
318
318
|
return;
|
|
319
319
|
}
|
|
320
320
|
setKeepOpen(false);
|
|
321
321
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
322
322
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
323
|
-
router.push(
|
|
323
|
+
router.push(_chunkQKXXHOODcjs.stripSameOriginToPath.call(void 0, action.href));
|
|
324
324
|
return;
|
|
325
325
|
}
|
|
326
326
|
case "navigate-new-tab":
|
|
327
327
|
setKeepOpen(true);
|
|
328
328
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
329
329
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
330
|
-
|
|
330
|
+
_chunkQKXXHOODcjs.resolveExternalNavigation.call(void 0, {
|
|
331
331
|
href: action.href,
|
|
332
332
|
targetPlatform,
|
|
333
333
|
runtime
|
|
334
334
|
}).open();
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
|
-
window.open(action.href, "_blank",
|
|
337
|
+
window.open(action.href, "_blank", _chunkQKXXHOODcjs.NEW_TAB_FEATURES);
|
|
338
338
|
return;
|
|
339
339
|
case "ask-ai":
|
|
340
340
|
setKeepOpen(false);
|
|
341
|
-
window.dispatchEvent(new CustomEvent(
|
|
341
|
+
window.dispatchEvent(new CustomEvent(_chunk3H3CQ7BQcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
342
342
|
return;
|
|
343
343
|
case "route":
|
|
344
344
|
setKeepOpen(false);
|
|
@@ -29,7 +29,7 @@ var _chunkMZ4KBSH7cjs = require('./chunk-MZ4KBSH7.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk6GCXQIUUcjs = require('./chunk-6GCXQIUU.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -41,7 +41,7 @@ var _chunkUCHO4BOScjs = require('./chunk-UCHO4BOS.cjs');
|
|
|
41
41
|
var _chunkOJZBZH56cjs = require('./chunk-OJZBZH56.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkHATRCNXJcjs = require('./chunk-HATRCNXJ.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 _chunkAHBTZ7DNcjs = require('./chunk-AHBTZ7DN.cjs');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _chunk7JWFMAQBcjs = require('./chunk-7JWFMAQB.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 = _chunk6GCXQIUUcjs.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: _chunk7JWFMAQBcjs.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: _chunk7JWFMAQBcjs.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
|
+
_chunkAHBTZ7DNcjs.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: _chunk7JWFMAQBcjs.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: _chunk7JWFMAQBcjs.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: _chunk7JWFMAQBcjs.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, _chunkHATRCNXJcjs.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
|
+
_chunkAHBTZ7DNcjs.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
|
+
_chunkAHBTZ7DNcjs.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, _chunkAHBTZ7DNcjs.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 = _chunk7JWFMAQBcjs.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 = _chunk6GCXQIUUcjs.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 = _chunk6GCXQIUUcjs.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 _chunk6GCXQIUUcjs.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 _chunk6GCXQIUUcjs.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 _chunk6GCXQIUUcjs.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 = _chunk6GCXQIUUcjs.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
|
+
[_chunk6GCXQIUUcjs.HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _34 => _34.current, 'optionalAccess', _35 => _35.value]), () => ( "")),
|
|
2782
|
+
[_chunk6GCXQIUUcjs.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: _chunk6GCXQIUUcjs.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 (!_chunk6GCXQIUUcjs.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: _chunk6GCXQIUUcjs.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
|
+
_chunk6GCXQIUUcjs.captureFormRescueEvent.call(void 0, _chunk6GCXQIUUcjs.FORM_RESCUE_EVENTS.submitted, {
|
|
2826
2826
|
form_id: form.id,
|
|
2827
|
-
attempt_id:
|
|
2827
|
+
attempt_id: _chunk6GCXQIUUcjs.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
|
+
_chunk6GCXQIUUcjs.captureFormRescueEvent.call(void 0, _chunk6GCXQIUUcjs.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(_chunk6GCXQIUUcjs.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 (_chunk6GCXQIUUcjs.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(_chunk6GCXQIUUcjs.sanitizeRescueValues.call(void 0, data.values))]);
|
|
2917
|
+
_chunk6GCXQIUUcjs.captureFormRescueEvent.call(void 0, _chunk6GCXQIUUcjs.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
|
+
_chunk6GCXQIUUcjs.captureFormRescueEvent.call(void 0, _chunk6GCXQIUUcjs.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 = _chunk6GCXQIUUcjs.filledRescueFields.call(void 0, visible, names);
|
|
2962
2962
|
if (!filled.length) return;
|
|
2963
2963
|
if (!startedRef.current) {
|
|
2964
2964
|
startedRef.current = true;
|
|
2965
|
-
|
|
2965
|
+
_chunk6GCXQIUUcjs.captureFormRescueEvent.call(void 0, _chunk6GCXQIUUcjs.FORM_RESCUE_EVENTS.started, { form_id: formId, attempt_id: attemptId() });
|
|
2966
2966
|
}
|
|
2967
|
-
const clean =
|
|
2968
|
-
if (!leadCapturedRef.current &&
|
|
2967
|
+
const clean = _chunk6GCXQIUUcjs.sanitizeRescueValues.call(void 0, visible);
|
|
2968
|
+
if (!leadCapturedRef.current && _chunk6GCXQIUUcjs.isRescueEmail.call(void 0, clean.email)) {
|
|
2969
2969
|
leadCapturedRef.current = true;
|
|
2970
|
-
|
|
2970
|
+
_chunk6GCXQIUUcjs.captureFormRescueEvent.call(void 0, _chunk6GCXQIUUcjs.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: _chunk6GCXQIUUcjs.sanitizeRescueFieldName.call(void 0, lastField),
|
|
2976
|
+
completion_pct: _chunk6GCXQIUUcjs.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
|
+
}, _chunk6GCXQIUUcjs.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
|
+
[_chunk6GCXQIUUcjs.FORM_RESCUE_ATTEMPT_FIELD]: attemptId(),
|
|
2992
|
+
...resumeTokenRef.current ? { [_chunk6GCXQIUUcjs.FORM_RESCUE_RESUME_FIELD]: resumeTokenRef.current } : {}
|
|
2993
2993
|
};
|
|
2994
2994
|
}, [attemptId, formId]);
|
|
2995
2995
|
const complete = _react.useCallback.call(void 0, () => {
|