@factorialco/f0-react 1.201.5 → 1.201.7
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/experimental.d.ts +166 -2
- package/dist/experimental.js +10290 -9794
- package/dist/f0.d.ts +581 -12
- package/dist/f0.js +202 -190
- package/dist/{hooks-XMhoGznF.js → hooks-Bg3-9LHc.js} +10766 -10737
- package/dist/styles.css +1 -1
- package/package.json +2 -1
package/dist/f0.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import {
|
|
3
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { C as g, L as me, c as ge, P as H, a as b, f as ve, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as U, i as G, j as Pe, k as W, S as Y, l as M, m as J, n as Se, O as Fe, o as X, p as ke, q as De, F as K, r as Me, s as Te, t as Be, D as Ie, u as Re, v as Oe, w as $e, x as Q, y as w, U as Z, z as Ee, E as _e, G as z, H as je, I as ee, J as ze, K as Ve, M as qe, N as Ae, Q as He, R as Ue, X as Ge, T as We, W as Ye, Y as Je, Z as Xe, _ as Ke } from "./hooks-Bg3-9LHc.js";
|
|
2
|
+
import { az as Ga, $ as Wa, aB as Ya, aK as Ja, a0 as Xa, a1 as Ka, a2 as Qa, a3 as Za, a4 as es, a5 as as, a6 as ss, a7 as rs, a9 as ts, aa as ls, ab as os, ac as ns, aG as is, ae as ds, af as cs, ag as us, ah as fs, ak as hs, al as ps, am as ms, an as gs, ap as vs, ad as bs, ao as xs, aj as Cs, aH as ys, aA as ws, au as Ns, ax as Ls, at as Ps, aL as Ss, as as Fs, ar as ks, a8 as Ds, ai as Ms, aq as Ts, av as Bs, aC as Is, aD as Rs, aE as Os, aM as $s, aw as Es, aF as _s, aJ as js, ay as zs, aI as Vs } from "./hooks-Bg3-9LHc.js";
|
|
3
|
+
import { jsx as e, jsxs as c, Fragment as $ } from "react/jsx-runtime";
|
|
4
4
|
import * as E from "react";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import Qe, { useState as v, forwardRef as B, useRef as ae, useImperativeHandle as Ze, Children as ea, useEffect as se, createContext as aa } from "react";
|
|
6
|
+
const Sa = {
|
|
7
7
|
approvals: {
|
|
8
8
|
history: "Approval history",
|
|
9
9
|
statuses: {
|
|
@@ -78,7 +78,8 @@ const Pa = {
|
|
|
78
78
|
kanban: "Kanban view",
|
|
79
79
|
pagination: {
|
|
80
80
|
of: "of"
|
|
81
|
-
}
|
|
81
|
+
},
|
|
82
|
+
settings: "{%visualizationName} settings"
|
|
82
83
|
},
|
|
83
84
|
itemsCount: "items",
|
|
84
85
|
emptyStates: {
|
|
@@ -187,28 +188,32 @@ const Pa = {
|
|
|
187
188
|
scrollToBottom: "Scroll to bottom",
|
|
188
189
|
welcome: "Ask or create with One",
|
|
189
190
|
initialMessage: "How can I help you today?"
|
|
191
|
+
},
|
|
192
|
+
select: {
|
|
193
|
+
noResults: "No results found",
|
|
194
|
+
loadingMore: "Loading..."
|
|
190
195
|
}
|
|
191
|
-
},
|
|
196
|
+
}, Fa = g(
|
|
192
197
|
{
|
|
193
198
|
name: "Link",
|
|
194
199
|
type: "info"
|
|
195
200
|
},
|
|
196
201
|
me
|
|
197
|
-
),
|
|
198
|
-
var _ = "Progress", j = 100, [
|
|
202
|
+
), ka = ["person", "team", "company", "file"];
|
|
203
|
+
var _ = "Progress", j = 100, [sa, Da] = ge(_), [ra, ta] = sa(_), re = E.forwardRef(
|
|
199
204
|
(a, s) => {
|
|
200
205
|
const {
|
|
201
206
|
__scopeProgress: r,
|
|
202
207
|
value: t = null,
|
|
203
208
|
max: l,
|
|
204
|
-
getValueLabel:
|
|
209
|
+
getValueLabel: d = la,
|
|
205
210
|
...n
|
|
206
211
|
} = a;
|
|
207
|
-
(l || l === 0) && !
|
|
208
|
-
const i =
|
|
209
|
-
t !== null && !q(t, i) && console.error(
|
|
210
|
-
const o = q(t, i) ? t : null, f = T(o) ?
|
|
211
|
-
return /* @__PURE__ */ e(
|
|
212
|
+
(l || l === 0) && !V(l) && console.error(oa(`${l}`, "Progress"));
|
|
213
|
+
const i = V(l) ? l : j;
|
|
214
|
+
t !== null && !q(t, i) && console.error(na(`${t}`, "Progress"));
|
|
215
|
+
const o = q(t, i) ? t : null, f = T(o) ? d(o, i) : void 0;
|
|
216
|
+
return /* @__PURE__ */ e(ra, { scope: r, value: o, max: i, children: /* @__PURE__ */ e(
|
|
212
217
|
H.div,
|
|
213
218
|
{
|
|
214
219
|
"aria-valuemax": i,
|
|
@@ -228,7 +233,7 @@ var _ = "Progress", j = 100, [aa, ka] = ve(_), [sa, ra] = aa(_), re = E.forwardR
|
|
|
228
233
|
re.displayName = _;
|
|
229
234
|
var te = "ProgressIndicator", le = E.forwardRef(
|
|
230
235
|
(a, s) => {
|
|
231
|
-
const { __scopeProgress: r, ...t } = a, l =
|
|
236
|
+
const { __scopeProgress: r, ...t } = a, l = ta(te, r);
|
|
232
237
|
return /* @__PURE__ */ e(
|
|
233
238
|
H.div,
|
|
234
239
|
{
|
|
@@ -242,7 +247,7 @@ var te = "ProgressIndicator", le = E.forwardRef(
|
|
|
242
247
|
}
|
|
243
248
|
);
|
|
244
249
|
le.displayName = te;
|
|
245
|
-
function
|
|
250
|
+
function la(a, s) {
|
|
246
251
|
return `${Math.round(a / s * 100)}%`;
|
|
247
252
|
}
|
|
248
253
|
function oe(a, s) {
|
|
@@ -251,16 +256,16 @@ function oe(a, s) {
|
|
|
251
256
|
function T(a) {
|
|
252
257
|
return typeof a == "number";
|
|
253
258
|
}
|
|
254
|
-
function
|
|
259
|
+
function V(a) {
|
|
255
260
|
return T(a) && !isNaN(a) && a > 0;
|
|
256
261
|
}
|
|
257
262
|
function q(a, s) {
|
|
258
263
|
return T(a) && !isNaN(a) && a <= s && a >= 0;
|
|
259
264
|
}
|
|
260
|
-
function
|
|
265
|
+
function oa(a, s) {
|
|
261
266
|
return `Invalid prop \`max\` of value \`${a}\` supplied to \`${s}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${j}\`.`;
|
|
262
267
|
}
|
|
263
|
-
function
|
|
268
|
+
function na(a, s) {
|
|
264
269
|
return `Invalid prop \`value\` of value \`${a}\` supplied to \`${s}\`. The \`value\` prop must be:
|
|
265
270
|
- a positive number
|
|
266
271
|
- less than the value passed to \`max\` (or ${j} if no \`max\` prop is set)
|
|
@@ -268,7 +273,7 @@ function oa(a, s) {
|
|
|
268
273
|
|
|
269
274
|
Defaulting to \`null\`.`;
|
|
270
275
|
}
|
|
271
|
-
var ne = re,
|
|
276
|
+
var ne = re, ia = le;
|
|
272
277
|
const ie = E.forwardRef(({ className: a, value: s, ...r }, t) => /* @__PURE__ */ e(
|
|
273
278
|
ne,
|
|
274
279
|
{
|
|
@@ -279,7 +284,7 @@ const ie = E.forwardRef(({ className: a, value: s, ...r }, t) => /* @__PURE__ */
|
|
|
279
284
|
),
|
|
280
285
|
...r,
|
|
281
286
|
children: /* @__PURE__ */ e(
|
|
282
|
-
|
|
287
|
+
ia,
|
|
283
288
|
{
|
|
284
289
|
className: "h-full w-full flex-1 transition-all",
|
|
285
290
|
style: {
|
|
@@ -291,13 +296,13 @@ const ie = E.forwardRef(({ className: a, value: s, ...r }, t) => /* @__PURE__ */
|
|
|
291
296
|
}
|
|
292
297
|
));
|
|
293
298
|
ie.displayName = ne.displayName;
|
|
294
|
-
const
|
|
295
|
-
const
|
|
296
|
-
return /* @__PURE__ */
|
|
299
|
+
const da = ({ value: a, max: s = 100, label: r, color: t }, l) => {
|
|
300
|
+
const d = t || be(0), n = a / s * 100;
|
|
301
|
+
return /* @__PURE__ */ c("div", { className: "flex items-center space-x-2", "aria-live": "polite", children: [
|
|
297
302
|
/* @__PURE__ */ e("div", { className: "flex-grow", children: /* @__PURE__ */ e(
|
|
298
303
|
ie,
|
|
299
304
|
{
|
|
300
|
-
color:
|
|
305
|
+
color: d,
|
|
301
306
|
value: n,
|
|
302
307
|
className: "w-full",
|
|
303
308
|
"aria-valuemin": 0,
|
|
@@ -308,63 +313,63 @@ const ia = ({ value: a, max: s = 100, label: r, color: t }, l) => {
|
|
|
308
313
|
) }),
|
|
309
314
|
r && /* @__PURE__ */ e("div", { className: "flex-shrink-0 text-sm font-medium", children: r })
|
|
310
315
|
] });
|
|
311
|
-
}, ca =
|
|
316
|
+
}, ca = ve(da), Ma = g(
|
|
312
317
|
{
|
|
313
318
|
name: "AreaChart",
|
|
314
319
|
type: "info"
|
|
315
320
|
},
|
|
316
321
|
xe
|
|
317
|
-
),
|
|
322
|
+
), Ta = g(
|
|
318
323
|
{
|
|
319
324
|
name: "BarChart",
|
|
320
325
|
type: "info"
|
|
321
326
|
},
|
|
322
327
|
Ce
|
|
323
|
-
),
|
|
328
|
+
), Ba = g(
|
|
324
329
|
{
|
|
325
330
|
name: "CategoryBarChart",
|
|
326
331
|
type: "info"
|
|
327
332
|
},
|
|
328
333
|
ye
|
|
329
|
-
),
|
|
334
|
+
), Ia = g(
|
|
330
335
|
{
|
|
331
336
|
name: "LineChart",
|
|
332
337
|
type: "info"
|
|
333
338
|
},
|
|
334
339
|
we
|
|
335
|
-
),
|
|
340
|
+
), Ra = g(
|
|
336
341
|
{
|
|
337
342
|
name: "PieChart",
|
|
338
343
|
type: "info"
|
|
339
344
|
},
|
|
340
345
|
Ne
|
|
341
|
-
),
|
|
346
|
+
), Oa = g(
|
|
342
347
|
{
|
|
343
348
|
name: "VerticalBarChart",
|
|
344
349
|
type: "info"
|
|
345
350
|
},
|
|
346
351
|
Le
|
|
347
|
-
),
|
|
352
|
+
), $a = g(
|
|
348
353
|
{
|
|
349
354
|
name: "ProgressBarChart",
|
|
350
355
|
type: "info"
|
|
351
356
|
},
|
|
352
357
|
ca
|
|
353
358
|
), O = ({ count: a, list: s }) => {
|
|
354
|
-
const [r, t] =
|
|
355
|
-
return s != null && s.length ? /* @__PURE__ */
|
|
359
|
+
const [r, t] = v(!1), l = /* @__PURE__ */ e(M, { label: `+${a}` });
|
|
360
|
+
return s != null && s.length ? /* @__PURE__ */ c(U, { open: r, onOpenChange: t, children: [
|
|
356
361
|
/* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ e("button", { className: Pe("inline-flex flex-shrink-0 items-center"), children: l }) }),
|
|
357
362
|
/* @__PURE__ */ e(
|
|
358
363
|
W,
|
|
359
364
|
{
|
|
360
365
|
className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
|
|
361
366
|
align: "end",
|
|
362
|
-
children: /* @__PURE__ */
|
|
363
|
-
s.map((
|
|
367
|
+
children: /* @__PURE__ */ c(Y, { className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col", children: [
|
|
368
|
+
s.map((d, n) => /* @__PURE__ */ e(
|
|
364
369
|
"div",
|
|
365
370
|
{
|
|
366
371
|
className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
|
|
367
|
-
children: /* @__PURE__ */ e(M, { ...
|
|
372
|
+
children: /* @__PURE__ */ e(M, { ...d })
|
|
368
373
|
},
|
|
369
374
|
n
|
|
370
375
|
)),
|
|
@@ -381,7 +386,7 @@ const ia = ({ value: a, max: s = 100, label: r, color: t }, l) => {
|
|
|
381
386
|
] }) : l;
|
|
382
387
|
};
|
|
383
388
|
O.displayName = "ChipCounter";
|
|
384
|
-
const
|
|
389
|
+
const de = ({
|
|
385
390
|
chips: a,
|
|
386
391
|
max: s = 4,
|
|
387
392
|
remainingCount: r,
|
|
@@ -406,45 +411,45 @@ const ce = ({
|
|
|
406
411
|
className: "flex-1"
|
|
407
412
|
}
|
|
408
413
|
);
|
|
409
|
-
const l = a.slice(0, s),
|
|
410
|
-
return /* @__PURE__ */
|
|
414
|
+
const l = a.slice(0, s), d = a.slice(s), n = r ?? a.length - s, i = n > 0;
|
|
415
|
+
return /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
|
|
411
416
|
l.map((o, f) => /* @__PURE__ */ e(M, { ...o }, f)),
|
|
412
417
|
i && /* @__PURE__ */ e(
|
|
413
418
|
O,
|
|
414
419
|
{
|
|
415
420
|
count: n,
|
|
416
|
-
list: r ? void 0 :
|
|
421
|
+
list: r ? void 0 : d
|
|
417
422
|
}
|
|
418
423
|
)
|
|
419
424
|
] });
|
|
420
425
|
};
|
|
421
|
-
|
|
422
|
-
const
|
|
426
|
+
de.displayName = "F0ChipList";
|
|
427
|
+
const Ea = Se(
|
|
423
428
|
"F0ChipList",
|
|
424
|
-
|
|
425
|
-
),
|
|
429
|
+
de
|
|
430
|
+
), ua = {
|
|
426
431
|
xs: 1,
|
|
427
432
|
sm: 2,
|
|
428
433
|
md: 2,
|
|
429
434
|
lg: 2
|
|
430
|
-
},
|
|
435
|
+
}, fa = B(function({ widgets: s, children: r }, t) {
|
|
431
436
|
const l = ae(null);
|
|
432
|
-
|
|
433
|
-
const
|
|
434
|
-
return /* @__PURE__ */ e(X, { layout: "home", children: /* @__PURE__ */
|
|
435
|
-
/* @__PURE__ */
|
|
436
|
-
/* @__PURE__ */ e(ke, { columns:
|
|
437
|
+
Ze(t, () => l.current);
|
|
438
|
+
const d = ea.toArray(s).filter((n) => !!n).map((n, i) => /* @__PURE__ */ e("div", { className: "h-full @5xl:h-auto [&>div]:h-full", children: n }, i));
|
|
439
|
+
return /* @__PURE__ */ e(X, { layout: "home", children: /* @__PURE__ */ c("div", { ref: l, className: "@container", children: [
|
|
440
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden", children: [
|
|
441
|
+
/* @__PURE__ */ e(ke, { columns: ua, showArrows: !1, children: d }),
|
|
437
442
|
/* @__PURE__ */ e("main", { children: r })
|
|
438
443
|
] }),
|
|
439
|
-
/* @__PURE__ */
|
|
440
|
-
/* @__PURE__ */ e("div", { className: "col-span-3 flex flex-row gap-5 *:flex-1", children:
|
|
444
|
+
/* @__PURE__ */ c("div", { className: "hidden grid-cols-3 gap-5 px-6 pb-6 pt-2 @5xl:grid", children: [
|
|
445
|
+
/* @__PURE__ */ e("div", { className: "col-span-3 flex flex-row gap-5 *:flex-1", children: d.slice(0, 3) }),
|
|
441
446
|
/* @__PURE__ */ e("main", { className: "col-span-2", children: r }),
|
|
442
|
-
/* @__PURE__ */ e("div", { className: "flex flex-1 flex-col gap-5", children:
|
|
447
|
+
/* @__PURE__ */ e("div", { className: "flex flex-1 flex-col gap-5", children: d.slice(3) })
|
|
443
448
|
] })
|
|
444
449
|
] }) });
|
|
445
|
-
}),
|
|
450
|
+
}), ha = B(
|
|
446
451
|
function({ children: s, sideContent: r, mainColumnPosition: t = "left" }, l) {
|
|
447
|
-
return /* @__PURE__ */ e("div", { ref: l, className: "h-full overflow-auto", children: /* @__PURE__ */
|
|
452
|
+
return /* @__PURE__ */ e("div", { ref: l, className: "h-full overflow-auto", children: /* @__PURE__ */ c(
|
|
448
453
|
"div",
|
|
449
454
|
{
|
|
450
455
|
className: b(
|
|
@@ -468,42 +473,42 @@ const $a = Se(
|
|
|
468
473
|
}
|
|
469
474
|
) });
|
|
470
475
|
}
|
|
471
|
-
), A = ({ children: a }) => /* @__PURE__ */ e("aside", { className: "py-5 pl-2 pr-4 sm:basis-1/4 sm:pb-6", children: a }),
|
|
476
|
+
), A = ({ children: a }) => /* @__PURE__ */ e("aside", { className: "py-5 pl-2 pr-4 sm:basis-1/4 sm:pb-6", children: a }), pa = De({
|
|
472
477
|
base: "relative flex min-h-full w-full flex-col gap-4 place-self-center overflow-y-auto px-6 py-5",
|
|
473
478
|
variants: {
|
|
474
479
|
variant: {
|
|
475
480
|
narrow: "max-w-screen-lg"
|
|
476
481
|
}
|
|
477
482
|
}
|
|
478
|
-
}),
|
|
483
|
+
}), ce = Qe.forwardRef(({ children: a, variant: s, className: r, ...t }, l) => /* @__PURE__ */ e(X, { layout: "standard", children: /* @__PURE__ */ e(
|
|
479
484
|
"section",
|
|
480
485
|
{
|
|
481
486
|
ref: l,
|
|
482
487
|
className: b("relative flex-1 overflow-auto", r),
|
|
483
488
|
...t,
|
|
484
|
-
children: /* @__PURE__ */ e("div", { className: b(
|
|
489
|
+
children: /* @__PURE__ */ e("div", { className: b(pa({ variant: s })), children: a })
|
|
485
490
|
}
|
|
486
491
|
) }));
|
|
487
|
-
|
|
488
|
-
const
|
|
492
|
+
ce.displayName = "StandardLayout";
|
|
493
|
+
const _a = g(
|
|
489
494
|
{
|
|
490
495
|
name: "StandardLayout",
|
|
491
496
|
type: "layout"
|
|
492
497
|
},
|
|
493
|
-
|
|
494
|
-
),
|
|
498
|
+
ce
|
|
499
|
+
), ja = g(
|
|
495
500
|
{
|
|
496
501
|
name: "TwoColumnLayout",
|
|
497
502
|
type: "layout"
|
|
498
503
|
},
|
|
499
|
-
|
|
500
|
-
),
|
|
504
|
+
ha
|
|
505
|
+
), za = g(
|
|
501
506
|
{
|
|
502
507
|
name: "HomeLayout",
|
|
503
508
|
type: "layout"
|
|
504
509
|
},
|
|
505
|
-
|
|
506
|
-
),
|
|
510
|
+
fa
|
|
511
|
+
), ma = ({ benefits: a }) => /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: a.map((s, r) => /* @__PURE__ */ e(ga, { text: s }, r)) }), ga = ({ text: a }) => /* @__PURE__ */ c("div", { className: "flex flex-row items-start gap-2", children: [
|
|
507
512
|
/* @__PURE__ */ e(Te, { icon: Be, size: "md", className: "text-f1-icon-positive" }),
|
|
508
513
|
/* @__PURE__ */ e("span", { children: a })
|
|
509
514
|
] }), ue = B(
|
|
@@ -513,10 +518,10 @@ const Ea = v(
|
|
|
513
518
|
benefits: r,
|
|
514
519
|
actions: t,
|
|
515
520
|
withShadow: l = !0,
|
|
516
|
-
module:
|
|
521
|
+
module: d,
|
|
517
522
|
moduleName: n,
|
|
518
523
|
tag: i
|
|
519
|
-
}, o) => /* @__PURE__ */
|
|
524
|
+
}, o) => /* @__PURE__ */ c(
|
|
520
525
|
"div",
|
|
521
526
|
{
|
|
522
527
|
ref: o,
|
|
@@ -533,17 +538,17 @@ const Ea = v(
|
|
|
533
538
|
className: "h-full w-full rounded-lg object-cover"
|
|
534
539
|
}
|
|
535
540
|
) }),
|
|
536
|
-
/* @__PURE__ */
|
|
537
|
-
/* @__PURE__ */
|
|
538
|
-
/* @__PURE__ */
|
|
539
|
-
/* @__PURE__ */
|
|
540
|
-
|
|
541
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col justify-center gap-8 px-8 py-5", children: [
|
|
542
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col gap-5", children: [
|
|
543
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
|
|
544
|
+
/* @__PURE__ */ c("div", { className: "flex flex-row items-center gap-2", children: [
|
|
545
|
+
d && /* @__PURE__ */ e(K, { module: d }),
|
|
541
546
|
n && /* @__PURE__ */ e("p", { className: "text-base font-medium text-f1-foreground", children: n })
|
|
542
547
|
] }),
|
|
543
548
|
i && /* @__PURE__ */ e("div", { className: "flex justify-start", children: /* @__PURE__ */ e(Me, { icon: i.icon, text: i.label }) }),
|
|
544
549
|
/* @__PURE__ */ e("h2", { className: "font-bold text-xl text-f1-foreground", children: a })
|
|
545
550
|
] }),
|
|
546
|
-
/* @__PURE__ */ e(
|
|
551
|
+
/* @__PURE__ */ e(ma, { benefits: r })
|
|
547
552
|
] }),
|
|
548
553
|
t && /* @__PURE__ */ e("div", { className: "flex gap-3", children: t })
|
|
549
554
|
] })
|
|
@@ -558,21 +563,21 @@ function va({
|
|
|
558
563
|
title: r,
|
|
559
564
|
children: t,
|
|
560
565
|
module: l,
|
|
561
|
-
portalContainer:
|
|
566
|
+
portalContainer: d
|
|
562
567
|
}) {
|
|
563
|
-
const [n, i] =
|
|
568
|
+
const [n, i] = v(a);
|
|
564
569
|
return se(() => {
|
|
565
570
|
i(a);
|
|
566
571
|
}, [a]), /* @__PURE__ */ e(Ie, { open: n, onOpenChange: (f) => {
|
|
567
572
|
i(f), f || s();
|
|
568
|
-
}, modal: !0, children: /* @__PURE__ */
|
|
573
|
+
}, modal: !0, children: /* @__PURE__ */ c(
|
|
569
574
|
Re,
|
|
570
575
|
{
|
|
571
576
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
572
|
-
container:
|
|
577
|
+
container: d,
|
|
573
578
|
children: [
|
|
574
|
-
/* @__PURE__ */
|
|
575
|
-
/* @__PURE__ */
|
|
579
|
+
/* @__PURE__ */ c("div", { className: "flex flex-row items-center justify-between px-4 py-4", children: [
|
|
580
|
+
/* @__PURE__ */ c(Oe, { className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground", children: [
|
|
576
581
|
l && /* @__PURE__ */ e(K, { module: l, size: "lg" }),
|
|
577
582
|
r
|
|
578
583
|
] }),
|
|
@@ -587,7 +592,7 @@ function va({
|
|
|
587
592
|
}
|
|
588
593
|
)
|
|
589
594
|
] }),
|
|
590
|
-
/* @__PURE__ */
|
|
595
|
+
/* @__PURE__ */ c(Y, { className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col", children: [
|
|
591
596
|
t,
|
|
592
597
|
/* @__PURE__ */ e(
|
|
593
598
|
J,
|
|
@@ -607,7 +612,7 @@ function Va({
|
|
|
607
612
|
title: r,
|
|
608
613
|
image: t,
|
|
609
614
|
benefits: l,
|
|
610
|
-
errorMessage:
|
|
615
|
+
errorMessage: d,
|
|
611
616
|
successMessage: n,
|
|
612
617
|
loadingState: i,
|
|
613
618
|
nextSteps: o,
|
|
@@ -619,7 +624,7 @@ function Va({
|
|
|
619
624
|
portalContainer: x,
|
|
620
625
|
tag: S
|
|
621
626
|
}) {
|
|
622
|
-
const [I, F] =
|
|
627
|
+
const [I, F] = v(a), [C, y] = v(null), [P, p] = v(!1), k = async () => {
|
|
623
628
|
if (h != null && h.onClick) {
|
|
624
629
|
p(!0);
|
|
625
630
|
try {
|
|
@@ -633,7 +638,7 @@ function Va({
|
|
|
633
638
|
}, D = () => {
|
|
634
639
|
F(!1), s == null || s();
|
|
635
640
|
}, R = P;
|
|
636
|
-
return /* @__PURE__ */
|
|
641
|
+
return /* @__PURE__ */ c($, { children: [
|
|
637
642
|
/* @__PURE__ */ e(
|
|
638
643
|
va,
|
|
639
644
|
{
|
|
@@ -650,7 +655,7 @@ function Va({
|
|
|
650
655
|
benefits: l,
|
|
651
656
|
withShadow: !1,
|
|
652
657
|
tag: S,
|
|
653
|
-
actions: /* @__PURE__ */
|
|
658
|
+
actions: /* @__PURE__ */ c("div", { className: "flex gap-3", children: [
|
|
654
659
|
h && /* @__PURE__ */ e(
|
|
655
660
|
w,
|
|
656
661
|
{
|
|
@@ -685,7 +690,7 @@ function Va({
|
|
|
685
690
|
D(), y(null);
|
|
686
691
|
},
|
|
687
692
|
success: C === "success",
|
|
688
|
-
errorMessage:
|
|
693
|
+
errorMessage: d,
|
|
689
694
|
successMessage: n,
|
|
690
695
|
nextSteps: o,
|
|
691
696
|
closeLabel: f,
|
|
@@ -694,26 +699,26 @@ function Va({
|
|
|
694
699
|
)
|
|
695
700
|
] });
|
|
696
701
|
}
|
|
697
|
-
function
|
|
702
|
+
function ba({
|
|
698
703
|
mediaUrl: a,
|
|
699
704
|
title: s,
|
|
700
705
|
description: r,
|
|
701
706
|
onClose: t,
|
|
702
707
|
dismissible: l,
|
|
703
|
-
width:
|
|
708
|
+
width: d,
|
|
704
709
|
trackVisibility: n,
|
|
705
710
|
actions: i,
|
|
706
711
|
showConfirmation: o = !0
|
|
707
712
|
}) {
|
|
708
|
-
const [f, h] =
|
|
713
|
+
const [f, h] = v(!1), N = () => {
|
|
709
714
|
h(!0), t && t();
|
|
710
715
|
};
|
|
711
716
|
se(() => {
|
|
712
717
|
n && n(!f);
|
|
713
718
|
}, [n, f]);
|
|
714
719
|
const L = a == null ? void 0 : a.includes(".mp4");
|
|
715
|
-
return /* @__PURE__ */ e($, { children: f ? null : /* @__PURE__ */
|
|
716
|
-
/* @__PURE__ */
|
|
720
|
+
return /* @__PURE__ */ e($, { children: f ? null : /* @__PURE__ */ c(Ee, { style: { width: d }, className: "relative bg-f1-background p-1", children: [
|
|
721
|
+
/* @__PURE__ */ c(_e, { children: [
|
|
717
722
|
l && /* @__PURE__ */ e("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ e(
|
|
718
723
|
w,
|
|
719
724
|
{
|
|
@@ -725,7 +730,7 @@ function ga({
|
|
|
725
730
|
label: "Close"
|
|
726
731
|
}
|
|
727
732
|
) }),
|
|
728
|
-
/* @__PURE__ */
|
|
733
|
+
/* @__PURE__ */ c("div", { children: [
|
|
729
734
|
/* @__PURE__ */ e("div", { children: a && (L ? /* @__PURE__ */ e(
|
|
730
735
|
"video",
|
|
731
736
|
{
|
|
@@ -744,9 +749,9 @@ function ga({
|
|
|
744
749
|
className: "h-full w-full rounded-md"
|
|
745
750
|
}
|
|
746
751
|
)) }),
|
|
747
|
-
/* @__PURE__ */
|
|
748
|
-
/* @__PURE__ */ e(
|
|
749
|
-
/* @__PURE__ */ e(
|
|
752
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col gap-[2px] p-3", children: [
|
|
753
|
+
/* @__PURE__ */ e(z, { className: "text-lg font-medium", children: s }),
|
|
754
|
+
/* @__PURE__ */ e(z, { className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary", children: r })
|
|
750
755
|
] })
|
|
751
756
|
] })
|
|
752
757
|
] }),
|
|
@@ -777,9 +782,9 @@ function ga({
|
|
|
777
782
|
) })
|
|
778
783
|
] }) });
|
|
779
784
|
}
|
|
780
|
-
const
|
|
785
|
+
const xa = B(
|
|
781
786
|
function({ primaryAction: s, secondaryAction: r, ...t }, l) {
|
|
782
|
-
const
|
|
787
|
+
const d = (o) => o.variant === "promote" ? /* @__PURE__ */ e(
|
|
783
788
|
ee,
|
|
784
789
|
{
|
|
785
790
|
label: o.label,
|
|
@@ -805,32 +810,32 @@ const ba = B(
|
|
|
805
810
|
icon: o.icon
|
|
806
811
|
}
|
|
807
812
|
), n = (s == null ? void 0 : s.variant) !== "promote" ? s : void 0, i = (r == null ? void 0 : r.variant) !== "promote" ? r : void 0;
|
|
808
|
-
return /* @__PURE__ */
|
|
809
|
-
|
|
813
|
+
return /* @__PURE__ */ c(
|
|
814
|
+
ze,
|
|
810
815
|
{
|
|
811
816
|
ref: l,
|
|
812
817
|
...t,
|
|
813
818
|
primaryAction: n,
|
|
814
819
|
secondaryAction: i,
|
|
815
820
|
children: [
|
|
816
|
-
(s == null ? void 0 : s.variant) === "promote" &&
|
|
817
|
-
(r == null ? void 0 : r.variant) === "promote" &&
|
|
821
|
+
(s == null ? void 0 : s.variant) === "promote" && d(s),
|
|
822
|
+
(r == null ? void 0 : r.variant) === "promote" && d(r)
|
|
818
823
|
]
|
|
819
824
|
}
|
|
820
825
|
);
|
|
821
826
|
}
|
|
822
827
|
);
|
|
823
|
-
|
|
824
|
-
function
|
|
828
|
+
xa.displayName = "UpsellingBanner";
|
|
829
|
+
function qa({
|
|
825
830
|
isOpen: a,
|
|
826
831
|
setIsOpen: s,
|
|
827
832
|
label: r,
|
|
828
833
|
variant: t = "promote",
|
|
829
834
|
size: l = "md",
|
|
830
|
-
showIcon:
|
|
835
|
+
showIcon: d = !0,
|
|
831
836
|
side: n = "right",
|
|
832
837
|
align: i = "center",
|
|
833
|
-
icon: o =
|
|
838
|
+
icon: o = Ve,
|
|
834
839
|
mediaUrl: f,
|
|
835
840
|
title: h,
|
|
836
841
|
description: N,
|
|
@@ -840,7 +845,7 @@ function za({
|
|
|
840
845
|
onClick: S,
|
|
841
846
|
hideLabel: I = !1
|
|
842
847
|
}) {
|
|
843
|
-
const [F, C] =
|
|
848
|
+
const [F, C] = v(!1), [y, P] = v(null), [p, k] = v(null), D = (m) => {
|
|
844
849
|
s(m), S && S();
|
|
845
850
|
}, R = async (m) => {
|
|
846
851
|
if (m.type === "upsell") {
|
|
@@ -857,15 +862,15 @@ function za({
|
|
|
857
862
|
...m,
|
|
858
863
|
onClick: () => R(m)
|
|
859
864
|
} : m);
|
|
860
|
-
return /* @__PURE__ */
|
|
861
|
-
/* @__PURE__ */
|
|
865
|
+
return /* @__PURE__ */ c($, { children: [
|
|
866
|
+
/* @__PURE__ */ c(U, { open: he, onOpenChange: D, children: [
|
|
862
867
|
/* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ e(
|
|
863
868
|
w,
|
|
864
869
|
{
|
|
865
870
|
variant: t,
|
|
866
871
|
label: r,
|
|
867
872
|
size: l,
|
|
868
|
-
icon:
|
|
873
|
+
icon: d ? o : void 0,
|
|
869
874
|
onClick: () => s(a),
|
|
870
875
|
hideLabel: I
|
|
871
876
|
}
|
|
@@ -877,7 +882,7 @@ function za({
|
|
|
877
882
|
align: i,
|
|
878
883
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
879
884
|
children: /* @__PURE__ */ e(
|
|
880
|
-
|
|
885
|
+
ba,
|
|
881
886
|
{
|
|
882
887
|
mediaUrl: f,
|
|
883
888
|
title: h,
|
|
@@ -908,13 +913,13 @@ function za({
|
|
|
908
913
|
)
|
|
909
914
|
] });
|
|
910
915
|
}
|
|
911
|
-
const
|
|
916
|
+
const Ca = aa(
|
|
912
917
|
null
|
|
913
|
-
),
|
|
914
|
-
const r = ae(null), [t, l] =
|
|
915
|
-
return
|
|
918
|
+
), ya = ({ children: a, fullScreen: s = !0 }) => {
|
|
919
|
+
const r = ae(null), [t, l] = v(r.current);
|
|
920
|
+
return Ke(() => {
|
|
916
921
|
l(r.current);
|
|
917
|
-
}, []), /* @__PURE__ */ e(
|
|
922
|
+
}, []), /* @__PURE__ */ e(Ca.Provider, { value: { element: t }, children: /* @__PURE__ */ e(
|
|
918
923
|
"div",
|
|
919
924
|
{
|
|
920
925
|
ref: r,
|
|
@@ -925,109 +930,116 @@ const xa = ea(
|
|
|
925
930
|
children: a
|
|
926
931
|
}
|
|
927
932
|
) });
|
|
928
|
-
},
|
|
933
|
+
}, wa = ({
|
|
929
934
|
children: a
|
|
930
|
-
}) => /* @__PURE__ */ e(
|
|
935
|
+
}) => /* @__PURE__ */ e(Xe, { reducedMotion: "user", children: a }), Aa = ({
|
|
931
936
|
children: a,
|
|
932
937
|
layout: s,
|
|
933
938
|
link: r,
|
|
934
939
|
privacyModeInitiallyEnabled: t,
|
|
935
940
|
image: l,
|
|
936
|
-
i18n:
|
|
941
|
+
i18n: d,
|
|
937
942
|
l10n: n,
|
|
938
943
|
isDev: i = !1,
|
|
939
|
-
|
|
940
|
-
|
|
944
|
+
dataCollectionStorageHandler: o,
|
|
945
|
+
showExperimentalWarnings: f = !1
|
|
946
|
+
}) => /* @__PURE__ */ e(wa, { children: /* @__PURE__ */ e(
|
|
941
947
|
qe,
|
|
942
948
|
{
|
|
943
949
|
isDev: i,
|
|
944
|
-
showExperimentalWarnings:
|
|
945
|
-
children: /* @__PURE__ */ e(Ae, { ...n, children: /* @__PURE__ */ e(He, { ...
|
|
950
|
+
showExperimentalWarnings: f,
|
|
951
|
+
children: /* @__PURE__ */ e(Ae, { ...n, children: /* @__PURE__ */ e(He, { ...d, children: /* @__PURE__ */ e(Ue, { ...r, children: /* @__PURE__ */ e(ya, { ...s, children: /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
|
|
946
952
|
We,
|
|
947
953
|
{
|
|
948
954
|
initiallyEnabled: t,
|
|
949
|
-
children: /* @__PURE__ */ e(Ye, { ...l, children:
|
|
955
|
+
children: /* @__PURE__ */ e(Ye, { ...l, children: /* @__PURE__ */ e(
|
|
956
|
+
Je,
|
|
957
|
+
{
|
|
958
|
+
handler: o,
|
|
959
|
+
children: a
|
|
960
|
+
}
|
|
961
|
+
) })
|
|
950
962
|
}
|
|
951
963
|
) }) }) }) }) })
|
|
952
964
|
}
|
|
953
965
|
) });
|
|
954
966
|
export {
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
967
|
+
Ma as AreaChart,
|
|
968
|
+
Ga as Await,
|
|
969
|
+
Ta as BarChart,
|
|
958
970
|
w as Button,
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
+
Ba as CategoryBarChart,
|
|
972
|
+
Wa as CopyButton,
|
|
973
|
+
Ya as DndProvider,
|
|
974
|
+
Ja as EmojiImage,
|
|
975
|
+
Xa as F0Avatar,
|
|
976
|
+
Ka as F0AvatarAlert,
|
|
977
|
+
Qa as F0AvatarCompany,
|
|
978
|
+
Za as F0AvatarDate,
|
|
979
|
+
es as F0AvatarEmoji,
|
|
980
|
+
as as F0AvatarFile,
|
|
981
|
+
ss as F0AvatarIcon,
|
|
982
|
+
rs as F0AvatarList,
|
|
971
983
|
K as F0AvatarModule,
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
984
|
+
ts as F0AvatarPerson,
|
|
985
|
+
ls as F0AvatarTeam,
|
|
986
|
+
os as F0Card,
|
|
987
|
+
ns as F0Checkbox,
|
|
988
|
+
Ea as F0ChipList,
|
|
989
|
+
is as F0EventCatcherProvider,
|
|
978
990
|
Te as F0Icon,
|
|
979
|
-
|
|
991
|
+
Aa as F0Provider,
|
|
992
|
+
ds as F0TagAlert,
|
|
980
993
|
cs as F0TagBalance,
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
994
|
+
us as F0TagCompany,
|
|
995
|
+
fs as F0TagDot,
|
|
996
|
+
hs as F0TagList,
|
|
997
|
+
ps as F0TagPerson,
|
|
985
998
|
Me as F0TagRaw,
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
qa as FactorialOneProvider,
|
|
999
|
+
ms as F0TagStatus,
|
|
1000
|
+
gs as F0TagTeam,
|
|
989
1001
|
vs as GROUP_ID_SYMBOL,
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
1002
|
+
za as HomeLayout,
|
|
1003
|
+
Ia as LineChart,
|
|
1004
|
+
Fa as Link,
|
|
1005
|
+
bs as OneFilterPicker,
|
|
1006
|
+
Ra as PieChart,
|
|
995
1007
|
We as PrivacyModeProvider,
|
|
996
1008
|
ue as ProductBlankslate,
|
|
997
|
-
|
|
1009
|
+
xs as ProductCard,
|
|
998
1010
|
Va as ProductModal,
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1011
|
+
ba as ProductWidget,
|
|
1012
|
+
$a as ProgressBarChart,
|
|
1013
|
+
_a as StandardLayout,
|
|
1014
|
+
Cs as TagCounter,
|
|
1015
|
+
ja as TwoColumnLayout,
|
|
1004
1016
|
Z as UpsellRequestResponseDialog,
|
|
1005
|
-
|
|
1017
|
+
xa as UpsellingBanner,
|
|
1006
1018
|
ee as UpsellingButton,
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1019
|
+
qa as UpsellingPopover,
|
|
1020
|
+
Oa as VerticalBarChart,
|
|
1021
|
+
ka as avatarVariants,
|
|
1022
|
+
ys as buildTranslations,
|
|
1023
|
+
ws as createAtlaskitDriver,
|
|
1024
|
+
Ns as createDataSourceDefinition,
|
|
1025
|
+
Sa as defaultTranslations,
|
|
1014
1026
|
Se as experimental,
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1027
|
+
Ls as getAnimationVariants,
|
|
1028
|
+
Ps as getDataSourcePaginationType,
|
|
1029
|
+
Ss as getEmojiLabel,
|
|
1030
|
+
Fs as isInfiniteScrollPagination,
|
|
1031
|
+
ks as isPageBasedPagination,
|
|
1032
|
+
Ds as modules,
|
|
1033
|
+
Ms as tagDotColors,
|
|
1034
|
+
Ts as useData,
|
|
1035
|
+
Bs as useDataSource,
|
|
1036
|
+
Is as useDndEvents,
|
|
1037
|
+
Rs as useDraggable,
|
|
1038
|
+
Os as useDroppableList,
|
|
1039
|
+
$s as useEmojiConfetti,
|
|
1040
|
+
Es as useGroups,
|
|
1041
|
+
_s as usePrivacyMode,
|
|
1042
|
+
js as useReducedMotion,
|
|
1043
|
+
zs as useSelectable,
|
|
1032
1044
|
Vs as useXRay
|
|
1033
1045
|
};
|