@nice2dev/ui-presentations 1.1.5 → 1.1.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/CHANGELOG.md +52 -0
- package/dist/__tests__/PresentationModel.test.d.ts +0 -1
- package/dist/__tests__/brandKit.test.d.ts +0 -1
- package/dist/__tests__/businessTemplates.test.d.ts +0 -1
- package/dist/__tests__/chartRenderer.test.d.ts +0 -1
- package/dist/__tests__/exportEngine.test.d.ts +0 -1
- package/dist/__tests__/i18n-locales.test.d.ts +0 -1
- package/dist/__tests__/puppetShow.test.d.ts +0 -1
- package/dist/__tests__/serialization.test.d.ts +0 -1
- package/dist/__tests__/setup.d.ts +0 -1
- package/dist/__tests__/slideAnimationEngine.test.d.ts +0 -1
- package/dist/__tests__/sprint24-presentations.test.d.ts +0 -1
- package/dist/collaborative/collaborativePresentation.d.ts +0 -1
- package/dist/components/NicePresentationEditor.d.ts +0 -1
- package/dist/components/NicePresentationPlayer.d.ts +0 -1
- package/dist/components/PresentationToolbar.d.ts +0 -1
- package/dist/components/SlideCanvas.d.ts +0 -1
- package/dist/components/SlidePropertyPanel.d.ts +0 -1
- package/dist/components/SlideThumbnailList.d.ts +0 -1
- package/dist/components/interactive/InteractiveButton.d.ts +0 -1
- package/dist/components/interactive/InteractiveCountdown.d.ts +0 -1
- package/dist/components/interactive/InteractivePoll.d.ts +0 -1
- package/dist/components/interactive/InteractiveQnA.d.ts +0 -1
- package/dist/components/interactive/InteractiveQuiz.d.ts +0 -1
- package/dist/components/interactive/index.d.ts +0 -1
- package/dist/core/PresentationModel.d.ts +0 -1
- package/dist/core/brandKit.d.ts +0 -1
- package/dist/core/chartRenderer.d.ts +0 -1
- package/dist/core/customTransitions.d.ts +0 -1
- package/dist/core/dashboardSlide.d.ts +0 -1
- package/dist/core/dataGridSlide.d.ts +0 -1
- package/dist/core/exportEngine.d.ts +0 -1
- package/dist/core/i18n.d.ts +0 -1
- package/dist/core/liveDataSlides.d.ts +0 -1
- package/dist/core/qrCodeSlide.d.ts +0 -1
- package/dist/core/querySlide.d.ts +0 -1
- package/dist/core/recordingMode.d.ts +0 -1
- package/dist/core/serialization.d.ts +0 -1
- package/dist/core/slideAnimationEngine.d.ts +0 -1
- package/dist/core/slideLibrary.d.ts +0 -1
- package/dist/core/versionHistory.d.ts +0 -1
- package/dist/hooks/usePresentationEditor.d.ts +0 -1
- package/dist/index.cjs +11 -11
- package/dist/index.d.ts +12 -13
- package/dist/index.mjs +1148 -485
- package/dist/puppetShow/gameEngineIntegration.d.ts +0 -1
- package/dist/puppetShow/index.d.ts +1 -2
- package/dist/puppetShow/puppetCharacter.d.ts +0 -1
- package/dist/puppetShow/puppetPlayer.d.ts +0 -1
- package/dist/puppetShow/puppetShowConverter.d.ts +0 -1
- package/dist/puppetShow/puppetShowTypes.d.ts +0 -1
- package/dist/puppetShow/puppetStage.d.ts +0 -1
- package/dist/puppetShow/puppetTimeline.d.ts +0 -1
- package/dist/templates/ArchitectureOverviewTemplate.d.ts +0 -1
- package/dist/templates/IncidentReportTemplate.d.ts +0 -1
- package/dist/templates/InvestorDeckTemplate.d.ts +0 -1
- package/dist/templates/OnboardingTemplate.d.ts +0 -1
- package/dist/templates/ProductPitchTemplate.d.ts +0 -1
- package/dist/templates/QuarterlyReportTemplate.d.ts +0 -1
- package/dist/templates/SprintReviewTemplate.d.ts +0 -1
- package/dist/templates/index.d.ts +6 -7
- package/dist/types/presentationTypes.d.ts +0 -1
- package/dist/ui-presentations.css +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -348,7 +348,7 @@ const De = {
|
|
|
348
348
|
function _e() {
|
|
349
349
|
return $e(He);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function zr(e) {
|
|
352
352
|
let t;
|
|
353
353
|
try {
|
|
354
354
|
t = JSON.parse(e);
|
|
@@ -749,7 +749,14 @@ function Ee(e) {
|
|
|
749
749
|
})) : [];
|
|
750
750
|
}
|
|
751
751
|
function pt(e, t, n) {
|
|
752
|
-
const i = e.data, o = e.options ?? {}, r = o.colors ?? [
|
|
752
|
+
const i = e.data, o = e.options ?? {}, r = o.colors ?? [
|
|
753
|
+
"var(--nice-info, #6366f1)",
|
|
754
|
+
"var(--nice-info, #06b6d4)",
|
|
755
|
+
"var(--nice-success, #10b981)",
|
|
756
|
+
"var(--nice-warning, #f59e0b)",
|
|
757
|
+
"var(--nice-danger, #ef4444)",
|
|
758
|
+
"var(--nice-accent, #8b5cf6)"
|
|
759
|
+
];
|
|
753
760
|
switch (e.chartType) {
|
|
754
761
|
case "bar":
|
|
755
762
|
return Ne(i, t, n, r, o);
|
|
@@ -825,9 +832,9 @@ function mt(e, t, n, i, o) {
|
|
|
825
832
|
return a.forEach((y, h) => {
|
|
826
833
|
const v = y / s * Math.PI * 2, w = u + v, g = v > Math.PI ? 1 : 0, x = i[h % i.length], T = c + p * Math.cos(u), _ = l + p * Math.sin(u), L = c + p * Math.cos(w), K = l + p * Math.sin(w);
|
|
827
834
|
if (o) {
|
|
828
|
-
const
|
|
835
|
+
const M = c + d * Math.cos(u), b = l + d * Math.sin(u), I = c + d * Math.cos(w), R = l + d * Math.sin(w);
|
|
829
836
|
f.push(
|
|
830
|
-
`<path d="M ${T} ${_} A ${p} ${p} 0 ${g} 1 ${L} ${K} L ${I} ${R} A ${d} ${d} 0 ${g} 0 ${
|
|
837
|
+
`<path d="M ${T} ${_} A ${p} ${p} 0 ${g} 1 ${L} ${K} L ${I} ${R} A ${d} ${d} 0 ${g} 0 ${M} ${b} Z" fill="${x}" />`
|
|
831
838
|
);
|
|
832
839
|
} else
|
|
833
840
|
f.push(
|
|
@@ -886,14 +893,14 @@ const ye = ({
|
|
|
886
893
|
), T = A(
|
|
887
894
|
(E) => {
|
|
888
895
|
if (u && a) {
|
|
889
|
-
const O = (E.clientX - u.startX) / i, B = (E.clientY - u.startY) / i, F = w(u.elStartX + O / t.width * 100),
|
|
890
|
-
a(u.id, F,
|
|
896
|
+
const O = (E.clientX - u.startX) / i, B = (E.clientY - u.startY) / i, F = w(u.elStartX + O / t.width * 100), M = w(u.elStartY + B / t.height * 100);
|
|
897
|
+
a(u.id, F, M);
|
|
891
898
|
}
|
|
892
899
|
if (h && s) {
|
|
893
900
|
const O = (E.clientX - h.startX) / i / t.width * 100, B = (E.clientY - h.startY) / i / t.height * 100, F = h.elPos;
|
|
894
|
-
let { x:
|
|
901
|
+
let { x: M, y: b, width: I, height: R } = F;
|
|
895
902
|
const j = h.handle;
|
|
896
|
-
j.includes("e") && (I = w(Math.max(2, F.width + O))), j.includes("w") && (I = w(Math.max(2, F.width - O)),
|
|
903
|
+
j.includes("e") && (I = w(Math.max(2, F.width + O))), j.includes("w") && (I = w(Math.max(2, F.width - O)), M = w(F.x + (F.width - I))), j.includes("s") && (R = w(Math.max(2, F.height + B))), j.includes("n") && (R = w(Math.max(2, F.height - B)), b = w(F.y + (F.height - R))), s(h.id, I, R, M, b);
|
|
897
904
|
}
|
|
898
905
|
},
|
|
899
906
|
[u, h, a, s, i, t, w]
|
|
@@ -1201,7 +1208,17 @@ function xt(e, t, n, i, o) {
|
|
|
1201
1208
|
);
|
|
1202
1209
|
}
|
|
1203
1210
|
default:
|
|
1204
|
-
return /* @__PURE__ */ m(
|
|
1211
|
+
return /* @__PURE__ */ m(
|
|
1212
|
+
"div",
|
|
1213
|
+
{
|
|
1214
|
+
style: {
|
|
1215
|
+
width: "100%",
|
|
1216
|
+
height: "100%",
|
|
1217
|
+
background: "var(--nice-bg-secondary, #f0f0f0)",
|
|
1218
|
+
borderRadius: 4
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
);
|
|
1205
1222
|
}
|
|
1206
1223
|
}
|
|
1207
1224
|
ye.displayName = "SlideCanvas";
|
|
@@ -1398,7 +1415,18 @@ const bt = [
|
|
|
1398
1415
|
}
|
|
1399
1416
|
)
|
|
1400
1417
|
] })
|
|
1401
|
-
] }) : /* @__PURE__ */ m("div", { className: `nice-pres-panel nice-pres-panel--empty ${r ?? ""}`, children: /* @__PURE__ */ m(
|
|
1418
|
+
] }) : /* @__PURE__ */ m("div", { className: `nice-pres-panel nice-pres-panel--empty ${r ?? ""}`, children: /* @__PURE__ */ m(
|
|
1419
|
+
"p",
|
|
1420
|
+
{
|
|
1421
|
+
style: {
|
|
1422
|
+
color: "var(--nice-text-muted, #999)",
|
|
1423
|
+
fontStyle: "italic",
|
|
1424
|
+
textAlign: "center",
|
|
1425
|
+
padding: 16
|
|
1426
|
+
},
|
|
1427
|
+
children: a("panel.noSelection")
|
|
1428
|
+
}
|
|
1429
|
+
) });
|
|
1402
1430
|
};
|
|
1403
1431
|
Ue.displayName = "SlidePropertyPanel";
|
|
1404
1432
|
const wt = 180, je = ({
|
|
@@ -1433,11 +1461,22 @@ const wt = 180, je = ({
|
|
|
1433
1461
|
},
|
|
1434
1462
|
children: [
|
|
1435
1463
|
/* @__PURE__ */ m("div", { style: { pointerEvents: "none" }, children: /* @__PURE__ */ m(ye, { slide: d, slideSize: t, theme: n, scale: p }) }),
|
|
1436
|
-
/* @__PURE__ */ k(
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1464
|
+
/* @__PURE__ */ k(
|
|
1465
|
+
"div",
|
|
1466
|
+
{
|
|
1467
|
+
style: {
|
|
1468
|
+
fontSize: 10,
|
|
1469
|
+
textAlign: "center",
|
|
1470
|
+
padding: "2px 0",
|
|
1471
|
+
color: "var(--nice-text-secondary, #666)"
|
|
1472
|
+
},
|
|
1473
|
+
children: [
|
|
1474
|
+
f + 1,
|
|
1475
|
+
". ",
|
|
1476
|
+
d.title
|
|
1477
|
+
]
|
|
1478
|
+
}
|
|
1479
|
+
),
|
|
1441
1480
|
(a || s) && /* @__PURE__ */ k(
|
|
1442
1481
|
"div",
|
|
1443
1482
|
{
|
|
@@ -1468,7 +1507,11 @@ const wt = 180, je = ({
|
|
|
1468
1507
|
u.stopPropagation(), s(d.id);
|
|
1469
1508
|
},
|
|
1470
1509
|
title: l("toolbar.deleteSlide"),
|
|
1471
|
-
style: {
|
|
1510
|
+
style: {
|
|
1511
|
+
fontSize: 10,
|
|
1512
|
+
padding: "1px 4px",
|
|
1513
|
+
color: "var(--nice-danger-dark, #d32f2f)"
|
|
1514
|
+
},
|
|
1472
1515
|
children: "×"
|
|
1473
1516
|
}
|
|
1474
1517
|
)
|
|
@@ -1614,7 +1657,7 @@ const It = ({
|
|
|
1614
1657
|
(N) => {
|
|
1615
1658
|
if (!x)
|
|
1616
1659
|
return;
|
|
1617
|
-
const { content: G, position:
|
|
1660
|
+
const { content: G, position: z } = kt(N), $ = d.addElement(x.id, { type: N, position: z, content: G });
|
|
1618
1661
|
$ && u($.id);
|
|
1619
1662
|
},
|
|
1620
1663
|
[x, d]
|
|
@@ -1629,22 +1672,22 @@ const It = ({
|
|
|
1629
1672
|
},
|
|
1630
1673
|
[d]
|
|
1631
1674
|
), O = A(
|
|
1632
|
-
(N, G,
|
|
1675
|
+
(N, G, z) => {
|
|
1633
1676
|
if (!x)
|
|
1634
1677
|
return;
|
|
1635
1678
|
const $ = x.elements.find((q) => q.id === N);
|
|
1636
|
-
$ && d.moveElement(x.id, N, { ...$.position, x: G, y:
|
|
1679
|
+
$ && d.moveElement(x.id, N, { ...$.position, x: G, y: z });
|
|
1637
1680
|
},
|
|
1638
1681
|
[x, d]
|
|
1639
1682
|
), B = A(
|
|
1640
|
-
(N, G,
|
|
1683
|
+
(N, G, z, $, q) => {
|
|
1641
1684
|
if (!x)
|
|
1642
1685
|
return;
|
|
1643
1686
|
const U = x.elements.find((J) => J.id === N);
|
|
1644
1687
|
U && d.moveElement(x.id, N, {
|
|
1645
1688
|
...U.position,
|
|
1646
1689
|
width: G,
|
|
1647
|
-
height:
|
|
1690
|
+
height: z,
|
|
1648
1691
|
...$ != null ? { x: $ } : {},
|
|
1649
1692
|
...q != null ? { y: q } : {}
|
|
1650
1693
|
});
|
|
@@ -1655,7 +1698,7 @@ const It = ({
|
|
|
1655
1698
|
return;
|
|
1656
1699
|
const N = Math.max(0, ...x.elements.map((G) => G.zIndex ?? 0));
|
|
1657
1700
|
d.updateElement(x.id, f, { zIndex: N + 1 });
|
|
1658
|
-
}, [x, f, d]),
|
|
1701
|
+
}, [x, f, d]), M = A(() => {
|
|
1659
1702
|
if (!x || !f)
|
|
1660
1703
|
return;
|
|
1661
1704
|
const N = Math.min(0, ...x.elements.map((G) => G.zIndex ?? 0));
|
|
@@ -1663,16 +1706,16 @@ const It = ({
|
|
|
1663
1706
|
}, [x, f, d]), b = A(
|
|
1664
1707
|
(N) => {
|
|
1665
1708
|
const G = d.document;
|
|
1666
|
-
let
|
|
1709
|
+
let z;
|
|
1667
1710
|
switch (N) {
|
|
1668
1711
|
case "ndp":
|
|
1669
|
-
|
|
1712
|
+
z = ct(G, !0);
|
|
1670
1713
|
break;
|
|
1671
1714
|
case "html":
|
|
1672
|
-
|
|
1715
|
+
z = ot(G);
|
|
1673
1716
|
break;
|
|
1674
1717
|
}
|
|
1675
|
-
n == null || n(N,
|
|
1718
|
+
n == null || n(N, z);
|
|
1676
1719
|
},
|
|
1677
1720
|
[d, n]
|
|
1678
1721
|
), I = A(() => {
|
|
@@ -1696,7 +1739,7 @@ const It = ({
|
|
|
1696
1739
|
display: "flex",
|
|
1697
1740
|
gap: 4,
|
|
1698
1741
|
padding: "2px 8px",
|
|
1699
|
-
borderBottom: "1px solid var(--border-color, #eee)",
|
|
1742
|
+
borderBottom: "1px solid var(--nice-border-color, #eee)",
|
|
1700
1743
|
alignItems: "center",
|
|
1701
1744
|
fontSize: "0.85em",
|
|
1702
1745
|
flexWrap: "wrap"
|
|
@@ -1713,7 +1756,7 @@ const It = ({
|
|
|
1713
1756
|
),
|
|
1714
1757
|
T && /* @__PURE__ */ k(he, { children: [
|
|
1715
1758
|
/* @__PURE__ */ m(te, { size: "sm", variant: "ghost", onClick: F, title: "Bring to front", children: "↑ Front" }),
|
|
1716
|
-
/* @__PURE__ */ m(te, { size: "sm", variant: "ghost", onClick:
|
|
1759
|
+
/* @__PURE__ */ m(te, { size: "sm", variant: "ghost", onClick: M, title: "Send to back", children: "↓ Back" }),
|
|
1717
1760
|
/* @__PURE__ */ m(
|
|
1718
1761
|
te,
|
|
1719
1762
|
{
|
|
@@ -1747,8 +1790,8 @@ const It = ({
|
|
|
1747
1790
|
style: {
|
|
1748
1791
|
width: 200,
|
|
1749
1792
|
flexShrink: 0,
|
|
1750
|
-
borderRight: "1px solid var(--border-color, #ddd)",
|
|
1751
|
-
background: "var(--bg-secondary, #fafafa)",
|
|
1793
|
+
borderRight: "1px solid var(--nice-border-color, #ddd)",
|
|
1794
|
+
background: "var(--nice-bg-secondary, #fafafa)",
|
|
1752
1795
|
overflowY: "auto"
|
|
1753
1796
|
},
|
|
1754
1797
|
children: /* @__PURE__ */ m(
|
|
@@ -1772,8 +1815,8 @@ const It = ({
|
|
|
1772
1815
|
style: {
|
|
1773
1816
|
width: 180,
|
|
1774
1817
|
flexShrink: 0,
|
|
1775
|
-
borderRight: "1px solid var(--border-color, #ddd)",
|
|
1776
|
-
background: "var(--bg-secondary, #fafafa)",
|
|
1818
|
+
borderRight: "1px solid var(--nice-border-color, #ddd)",
|
|
1819
|
+
background: "var(--nice-bg-secondary, #fafafa)",
|
|
1777
1820
|
overflowY: "auto",
|
|
1778
1821
|
fontSize: "0.85em"
|
|
1779
1822
|
},
|
|
@@ -1785,10 +1828,10 @@ const It = ({
|
|
|
1785
1828
|
style: {
|
|
1786
1829
|
padding: "8px 10px",
|
|
1787
1830
|
fontWeight: 600,
|
|
1788
|
-
borderBottom: "1px solid var(--border-color, #ddd)",
|
|
1831
|
+
borderBottom: "1px solid var(--nice-border-color, #ddd)",
|
|
1789
1832
|
position: "sticky",
|
|
1790
1833
|
top: 0,
|
|
1791
|
-
background: "var(--bg-secondary, #fafafa)"
|
|
1834
|
+
background: "var(--nice-bg-secondary, #fafafa)"
|
|
1792
1835
|
},
|
|
1793
1836
|
children: [
|
|
1794
1837
|
"Elements (",
|
|
@@ -1800,12 +1843,16 @@ const It = ({
|
|
|
1800
1843
|
x.elements.length === 0 ? /* @__PURE__ */ m(
|
|
1801
1844
|
"div",
|
|
1802
1845
|
{
|
|
1803
|
-
style: {
|
|
1846
|
+
style: {
|
|
1847
|
+
padding: 10,
|
|
1848
|
+
color: "var(--nice-text-secondary, #888)",
|
|
1849
|
+
fontStyle: "italic"
|
|
1850
|
+
},
|
|
1804
1851
|
children: "No elements yet."
|
|
1805
1852
|
}
|
|
1806
1853
|
) : /* @__PURE__ */ m("ul", { style: { listStyle: "none", margin: 0, padding: 0 }, children: x.elements.map((N, G) => {
|
|
1807
1854
|
var q;
|
|
1808
|
-
const
|
|
1855
|
+
const z = N.id === f, $ = N.content && N.content.text ? `“${N.content.text.slice(0, 20)}”` : ((q = N.content) == null ? void 0 : q.kind) || N.type;
|
|
1809
1856
|
return /* @__PURE__ */ m("li", { children: /* @__PURE__ */ k(
|
|
1810
1857
|
"button",
|
|
1811
1858
|
{
|
|
@@ -1815,10 +1862,10 @@ const It = ({
|
|
|
1815
1862
|
width: "100%",
|
|
1816
1863
|
textAlign: "left",
|
|
1817
1864
|
padding: "6px 10px",
|
|
1818
|
-
background:
|
|
1819
|
-
color:
|
|
1865
|
+
background: z ? "var(--nice-color-primary, #6366f1)" : "transparent",
|
|
1866
|
+
color: z ? "var(--nice-bg, #fff)" : "inherit",
|
|
1820
1867
|
border: "none",
|
|
1821
|
-
borderBottom: "1px solid var(--border-color, #eee)",
|
|
1868
|
+
borderBottom: "1px solid var(--nice-border-color, #eee)",
|
|
1822
1869
|
cursor: "pointer",
|
|
1823
1870
|
display: "flex",
|
|
1824
1871
|
justifyContent: "space-between",
|
|
@@ -1855,9 +1902,9 @@ const It = ({
|
|
|
1855
1902
|
style: {
|
|
1856
1903
|
width: 260,
|
|
1857
1904
|
height: "100%",
|
|
1858
|
-
borderLeft: "1px solid var(--border-color, #ddd)",
|
|
1905
|
+
borderLeft: "1px solid var(--nice-border-color, #ddd)",
|
|
1859
1906
|
overflowY: "auto",
|
|
1860
|
-
background: "var(--bg-secondary, #fafafa)"
|
|
1907
|
+
background: "var(--nice-bg-secondary, #fafafa)"
|
|
1861
1908
|
},
|
|
1862
1909
|
children: /* @__PURE__ */ m(
|
|
1863
1910
|
Ue,
|
|
@@ -1880,8 +1927,8 @@ const It = ({
|
|
|
1880
1927
|
height: "100%",
|
|
1881
1928
|
maxWidth: "100%",
|
|
1882
1929
|
overflow: "hidden",
|
|
1883
|
-
background: "var(--bg-primary, #fff)",
|
|
1884
|
-
color: "var(--text-primary, #111)",
|
|
1930
|
+
background: "var(--nice-bg-primary, #fff)",
|
|
1931
|
+
color: "var(--nice-text-primary, #111)",
|
|
1885
1932
|
...l
|
|
1886
1933
|
},
|
|
1887
1934
|
children: [
|
|
@@ -1902,7 +1949,7 @@ const It = ({
|
|
|
1902
1949
|
display: "flex",
|
|
1903
1950
|
alignItems: "center",
|
|
1904
1951
|
justifyContent: "center",
|
|
1905
|
-
background: "var(--bg-tertiary, #e8e8e8)",
|
|
1952
|
+
background: "var(--nice-bg-tertiary, #e8e8e8)",
|
|
1906
1953
|
overflow: "auto",
|
|
1907
1954
|
padding: 24,
|
|
1908
1955
|
minWidth: 0
|
|
@@ -1958,7 +2005,7 @@ const Oe = {
|
|
|
1958
2005
|
filter: "",
|
|
1959
2006
|
visible: !0
|
|
1960
2007
|
};
|
|
1961
|
-
function
|
|
2008
|
+
function Mr(e, t, n) {
|
|
1962
2009
|
if (!e)
|
|
1963
2010
|
return { ...Ie };
|
|
1964
2011
|
const i = e.entrance;
|
|
@@ -1970,9 +2017,9 @@ function Cr(e, t, n) {
|
|
|
1970
2017
|
if (r < 0)
|
|
1971
2018
|
return { ...Ie, opacity: 0, visible: !1 };
|
|
1972
2019
|
const a = Math.min(r / i.durationMs, 1), s = (Oe[i.easing ?? "linear"] ?? Oe.linear)(a);
|
|
1973
|
-
return
|
|
2020
|
+
return zt(i.effect, s);
|
|
1974
2021
|
}
|
|
1975
|
-
function
|
|
2022
|
+
function zt(e, t) {
|
|
1976
2023
|
const n = { opacity: 1, transform: "", filter: "", visible: !0 };
|
|
1977
2024
|
switch (e) {
|
|
1978
2025
|
case "fadeIn":
|
|
@@ -2035,7 +2082,7 @@ function Mt(e, t) {
|
|
|
2035
2082
|
}
|
|
2036
2083
|
return n;
|
|
2037
2084
|
}
|
|
2038
|
-
function
|
|
2085
|
+
function Mt(e, t, n = "left") {
|
|
2039
2086
|
const i = {}, o = {};
|
|
2040
2087
|
switch (e) {
|
|
2041
2088
|
case "fade":
|
|
@@ -2058,7 +2105,7 @@ function Ct(e, t, n = "left") {
|
|
|
2058
2105
|
}
|
|
2059
2106
|
return { outgoing: i, incoming: o };
|
|
2060
2107
|
}
|
|
2061
|
-
const
|
|
2108
|
+
const Cr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar = { width: 2560, height: 1440 }, Ct = {
|
|
2062
2109
|
name: "Corporate",
|
|
2063
2110
|
backgroundColor: "var(--nice-bg, #fff)",
|
|
2064
2111
|
primaryColor: "var(--nice-primary-dark, #1a365d)",
|
|
@@ -2114,28 +2161,28 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2114
2161
|
autoFullscreen: l = !1,
|
|
2115
2162
|
className: p
|
|
2116
2163
|
}) => {
|
|
2117
|
-
const [d, f] = H(t), [u, y] = H(0), [h, v] = H(!1), [w, g] = H(0), [x, T] = H(null), [_, L] = H(!1), [K, E] = H(0), O = ie(null), B = ie(0), F = ie(null),
|
|
2164
|
+
const [d, f] = H(t), [u, y] = H(0), [h, v] = H(!1), [w, g] = H(0), [x, T] = H(null), [_, L] = H(!1), [K, E] = H(0), O = ie(null), B = ie(0), F = ie(null), M = ie(null), b = e.slides, I = b[d] ?? null, R = x !== null ? b[x] ?? null : null, j = e.theme ?? Ct, D = e.slideSize, Y = b.length, N = ae(() => {
|
|
2118
2165
|
if (!I)
|
|
2119
2166
|
return 0;
|
|
2120
|
-
const
|
|
2167
|
+
const C = I.elements.filter((W) => {
|
|
2121
2168
|
var X;
|
|
2122
2169
|
return (X = W.animation) == null ? void 0 : X.entrance;
|
|
2123
2170
|
}).map((W) => {
|
|
2124
2171
|
var X;
|
|
2125
2172
|
return ((X = W.animation) == null ? void 0 : X.buildOrder) ?? 0;
|
|
2126
2173
|
});
|
|
2127
|
-
return
|
|
2174
|
+
return C.length > 0 ? Math.max(...C) + 1 : 0;
|
|
2128
2175
|
}, [I]), G = A(
|
|
2129
|
-
(
|
|
2176
|
+
(C) => {
|
|
2130
2177
|
var pe, fe;
|
|
2131
|
-
if (
|
|
2178
|
+
if (C < 0 || C >= Y || C === d || h)
|
|
2132
2179
|
return;
|
|
2133
|
-
const W = b[
|
|
2180
|
+
const W = b[C];
|
|
2134
2181
|
if ((((pe = W == null ? void 0 : W.transition) == null ? void 0 : pe.effect) ?? "none") === "none") {
|
|
2135
|
-
T(null), f(
|
|
2182
|
+
T(null), f(C), y(0);
|
|
2136
2183
|
return;
|
|
2137
2184
|
}
|
|
2138
|
-
T(d), f(
|
|
2185
|
+
T(d), f(C), y(0), v(!0);
|
|
2139
2186
|
const V = ((fe = W == null ? void 0 : W.transition) == null ? void 0 : fe.durationMs) ?? $t, se = performance.now(), de = (ke) => {
|
|
2140
2187
|
const Pe = Math.min(1, (ke - se) / V);
|
|
2141
2188
|
g(Pe), Pe < 1 ? B.current = requestAnimationFrame(de) : (v(!1), T(null));
|
|
@@ -2143,27 +2190,27 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2143
2190
|
B.current = requestAnimationFrame(de);
|
|
2144
2191
|
},
|
|
2145
2192
|
[d, Y, h, b]
|
|
2146
|
-
),
|
|
2193
|
+
), z = A(() => {
|
|
2147
2194
|
if (u < N) {
|
|
2148
|
-
y((
|
|
2195
|
+
y((C) => C + 1);
|
|
2149
2196
|
return;
|
|
2150
2197
|
}
|
|
2151
2198
|
d < Y - 1 && G(d + 1);
|
|
2152
2199
|
}, [u, N, d, Y, G]), $ = A(() => {
|
|
2153
2200
|
if (u > 0) {
|
|
2154
|
-
y((
|
|
2201
|
+
y((C) => C - 1);
|
|
2155
2202
|
return;
|
|
2156
2203
|
}
|
|
2157
2204
|
d > 0 && G(d - 1);
|
|
2158
2205
|
}, [u, d, G]);
|
|
2159
2206
|
ne(() => {
|
|
2160
|
-
const
|
|
2207
|
+
const C = (W) => {
|
|
2161
2208
|
switch (W.key) {
|
|
2162
2209
|
case "ArrowRight":
|
|
2163
2210
|
case "ArrowDown":
|
|
2164
2211
|
case " ":
|
|
2165
2212
|
case "Enter":
|
|
2166
|
-
W.preventDefault(),
|
|
2213
|
+
W.preventDefault(), z();
|
|
2167
2214
|
break;
|
|
2168
2215
|
case "ArrowLeft":
|
|
2169
2216
|
case "ArrowUp":
|
|
@@ -2181,70 +2228,70 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2181
2228
|
break;
|
|
2182
2229
|
}
|
|
2183
2230
|
};
|
|
2184
|
-
return window.addEventListener("keydown",
|
|
2185
|
-
}, [
|
|
2231
|
+
return window.addEventListener("keydown", C), () => window.removeEventListener("keydown", C);
|
|
2232
|
+
}, [z, $, n, G, Y]);
|
|
2186
2233
|
const q = A(
|
|
2187
|
-
(
|
|
2234
|
+
(C) => {
|
|
2188
2235
|
if (!c)
|
|
2189
2236
|
return;
|
|
2190
|
-
const W =
|
|
2237
|
+
const W = C.touches[0];
|
|
2191
2238
|
F.current = { x: W.clientX, y: W.clientY, time: Date.now() };
|
|
2192
2239
|
},
|
|
2193
2240
|
[c]
|
|
2194
2241
|
), U = A(
|
|
2195
|
-
(
|
|
2242
|
+
(C) => {
|
|
2196
2243
|
if (!c || !F.current)
|
|
2197
2244
|
return;
|
|
2198
|
-
const W =
|
|
2245
|
+
const W = C.changedTouches[0], X = W.clientX - F.current.x, V = W.clientY - F.current.y, se = Date.now() - F.current.time;
|
|
2199
2246
|
if (F.current = null, se > 500 || Math.abs(X) < 30 && Math.abs(V) < 30) {
|
|
2200
|
-
|
|
2247
|
+
z();
|
|
2201
2248
|
return;
|
|
2202
2249
|
}
|
|
2203
|
-
Math.abs(X) > Math.abs(V) && (X < -30 ?
|
|
2250
|
+
Math.abs(X) > Math.abs(V) && (X < -30 ? z() : X > 30 && $());
|
|
2204
2251
|
},
|
|
2205
|
-
[c,
|
|
2252
|
+
[c, z, $]
|
|
2206
2253
|
);
|
|
2207
2254
|
ne(() => {
|
|
2208
2255
|
if (s)
|
|
2209
|
-
return
|
|
2210
|
-
|
|
2256
|
+
return M.current = setInterval(() => E((C) => C + 1e3), 1e3), () => {
|
|
2257
|
+
M.current && clearInterval(M.current);
|
|
2211
2258
|
};
|
|
2212
2259
|
}, [s]);
|
|
2213
|
-
const J = (
|
|
2214
|
-
const W = Math.floor(
|
|
2260
|
+
const J = (C) => {
|
|
2261
|
+
const W = Math.floor(C / 1e3), X = Math.floor(W / 60), V = Math.floor(X / 60);
|
|
2215
2262
|
return V > 0 ? `${V}:${String(X % 60).padStart(2, "0")}:${String(W % 60).padStart(2, "0")}` : `${X}:${String(W % 60).padStart(2, "0")}`;
|
|
2216
2263
|
};
|
|
2217
2264
|
ne(() => {
|
|
2218
|
-
const
|
|
2265
|
+
const C = (W) => {
|
|
2219
2266
|
(W.key === "g" || W.key === "G") && L((X) => !X);
|
|
2220
2267
|
};
|
|
2221
|
-
return window.addEventListener("keydown",
|
|
2268
|
+
return window.addEventListener("keydown", C), () => window.removeEventListener("keydown", C);
|
|
2222
2269
|
}, []), ne(() => {
|
|
2223
2270
|
if (i <= 0 || h)
|
|
2224
2271
|
return;
|
|
2225
|
-
const
|
|
2226
|
-
return () => clearTimeout(
|
|
2227
|
-
}, [i,
|
|
2272
|
+
const C = setTimeout(z, i);
|
|
2273
|
+
return () => clearTimeout(C);
|
|
2274
|
+
}, [i, z, h, d, u]), ne(() => {
|
|
2228
2275
|
var W;
|
|
2229
|
-
const
|
|
2230
|
-
return l &&
|
|
2276
|
+
const C = O.current;
|
|
2277
|
+
return l && C && !window.document.fullscreenElement && ((W = C.requestFullscreen) == null || W.call(C).catch(() => {
|
|
2231
2278
|
})), () => {
|
|
2232
2279
|
var X, V;
|
|
2233
2280
|
l && window.document.fullscreenElement && ((V = (X = window.document).exitFullscreen) == null || V.call(X).catch(() => {
|
|
2234
2281
|
})), B.current && cancelAnimationFrame(B.current);
|
|
2235
2282
|
};
|
|
2236
2283
|
}, []);
|
|
2237
|
-
const Z = ae(() => I ? I.elements.filter((
|
|
2284
|
+
const Z = ae(() => I ? I.elements.filter((C) => {
|
|
2238
2285
|
var X;
|
|
2239
|
-
return (X =
|
|
2286
|
+
return (X = C.animation) != null && X.entrance ? (C.animation.buildOrder ?? 0) <= u : !0;
|
|
2240
2287
|
}) : [], [I, u]), Q = ae(() => {
|
|
2241
2288
|
if (!h || !I)
|
|
2242
2289
|
return { outgoing: {}, incoming: {} };
|
|
2243
|
-
const
|
|
2244
|
-
return
|
|
2290
|
+
const C = I.transition ?? { effect: "fade" };
|
|
2291
|
+
return Mt(C.effect, w, C.direction);
|
|
2245
2292
|
}, [h, I, w]), [ee, le] = H(1), [oe, ce] = H(!1);
|
|
2246
2293
|
ne(() => {
|
|
2247
|
-
const
|
|
2294
|
+
const C = () => {
|
|
2248
2295
|
const X = D.width, V = D.height, se = !!window.document.fullscreenElement;
|
|
2249
2296
|
ce(se);
|
|
2250
2297
|
const de = O.current;
|
|
@@ -2258,17 +2305,17 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2258
2305
|
pe = X, fe = V;
|
|
2259
2306
|
le(Math.min(pe / X, fe / V));
|
|
2260
2307
|
};
|
|
2261
|
-
|
|
2262
|
-
const W = typeof ResizeObserver < "u" && O.current ? new ResizeObserver(
|
|
2263
|
-
return W && O.current && W.observe(O.current), window.addEventListener("resize",
|
|
2264
|
-
window.removeEventListener("resize",
|
|
2308
|
+
C();
|
|
2309
|
+
const W = typeof ResizeObserver < "u" && O.current ? new ResizeObserver(C) : null;
|
|
2310
|
+
return W && O.current && W.observe(O.current), window.addEventListener("resize", C), window.document.addEventListener("fullscreenchange", C), () => {
|
|
2311
|
+
window.removeEventListener("resize", C), window.document.removeEventListener("fullscreenchange", C), W == null || W.disconnect();
|
|
2265
2312
|
};
|
|
2266
2313
|
}, [D, l]);
|
|
2267
2314
|
const ge = A(() => {
|
|
2268
2315
|
var W, X, V;
|
|
2269
|
-
const
|
|
2270
|
-
|
|
2271
|
-
}) : (V =
|
|
2316
|
+
const C = O.current;
|
|
2317
|
+
C && (window.document.fullscreenElement ? (X = (W = window.document).exitFullscreen) == null || X.call(W).catch(() => {
|
|
2318
|
+
}) : (V = C.requestFullscreen) == null || V.call(C).catch(() => {
|
|
2272
2319
|
}));
|
|
2273
2320
|
}, []), Se = l || oe;
|
|
2274
2321
|
return /* @__PURE__ */ k(
|
|
@@ -2297,9 +2344,9 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2297
2344
|
justifyContent: "center",
|
|
2298
2345
|
overflow: "hidden"
|
|
2299
2346
|
},
|
|
2300
|
-
onClick:
|
|
2301
|
-
onContextMenu: (
|
|
2302
|
-
|
|
2347
|
+
onClick: z,
|
|
2348
|
+
onContextMenu: (C) => {
|
|
2349
|
+
C.preventDefault(), $();
|
|
2303
2350
|
},
|
|
2304
2351
|
onTouchStart: q,
|
|
2305
2352
|
onTouchEnd: U,
|
|
@@ -2319,8 +2366,8 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2319
2366
|
padding: 24,
|
|
2320
2367
|
alignContent: "start"
|
|
2321
2368
|
},
|
|
2322
|
-
onClick: (
|
|
2323
|
-
children: b.map((
|
|
2369
|
+
onClick: (C) => C.stopPropagation(),
|
|
2370
|
+
children: b.map((C, W) => /* @__PURE__ */ k(
|
|
2324
2371
|
"div",
|
|
2325
2372
|
{
|
|
2326
2373
|
style: {
|
|
@@ -2336,7 +2383,7 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2336
2383
|
/* @__PURE__ */ m(
|
|
2337
2384
|
ye,
|
|
2338
2385
|
{
|
|
2339
|
-
slide:
|
|
2386
|
+
slide: C,
|
|
2340
2387
|
slideSize: D,
|
|
2341
2388
|
theme: j,
|
|
2342
2389
|
scale: 240 / D.width,
|
|
@@ -2355,13 +2402,13 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2355
2402
|
children: [
|
|
2356
2403
|
W + 1,
|
|
2357
2404
|
". ",
|
|
2358
|
-
|
|
2405
|
+
C.title
|
|
2359
2406
|
]
|
|
2360
2407
|
}
|
|
2361
2408
|
)
|
|
2362
2409
|
]
|
|
2363
2410
|
},
|
|
2364
|
-
|
|
2411
|
+
C.id
|
|
2365
2412
|
))
|
|
2366
2413
|
}
|
|
2367
2414
|
),
|
|
@@ -2497,11 +2544,11 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2497
2544
|
gap: 8,
|
|
2498
2545
|
opacity: 0.3
|
|
2499
2546
|
},
|
|
2500
|
-
onMouseEnter: (
|
|
2501
|
-
|
|
2547
|
+
onMouseEnter: (C) => {
|
|
2548
|
+
C.currentTarget.style.opacity = "0.9", C.currentTarget.style.cursor = "pointer";
|
|
2502
2549
|
},
|
|
2503
|
-
onMouseLeave: (
|
|
2504
|
-
|
|
2550
|
+
onMouseLeave: (C) => {
|
|
2551
|
+
C.currentTarget.style.opacity = "0.3";
|
|
2505
2552
|
},
|
|
2506
2553
|
children: [
|
|
2507
2554
|
/* @__PURE__ */ m(
|
|
@@ -2509,8 +2556,8 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2509
2556
|
{
|
|
2510
2557
|
variant: "ghost",
|
|
2511
2558
|
size: "sm",
|
|
2512
|
-
onClick: (
|
|
2513
|
-
|
|
2559
|
+
onClick: (C) => {
|
|
2560
|
+
C.stopPropagation(), $();
|
|
2514
2561
|
},
|
|
2515
2562
|
style: {
|
|
2516
2563
|
background: "var(--nice-overlay-light-15, rgba(255, 255, 255, 0.15))",
|
|
@@ -2529,8 +2576,8 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2529
2576
|
{
|
|
2530
2577
|
variant: "ghost",
|
|
2531
2578
|
size: "sm",
|
|
2532
|
-
onClick: (
|
|
2533
|
-
|
|
2579
|
+
onClick: (C) => {
|
|
2580
|
+
C.stopPropagation(), z();
|
|
2534
2581
|
},
|
|
2535
2582
|
style: {
|
|
2536
2583
|
background: "var(--nice-overlay-light-15, rgba(255, 255, 255, 0.15))",
|
|
@@ -2549,8 +2596,8 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2549
2596
|
{
|
|
2550
2597
|
variant: "ghost",
|
|
2551
2598
|
size: "sm",
|
|
2552
|
-
onClick: (
|
|
2553
|
-
|
|
2599
|
+
onClick: (C) => {
|
|
2600
|
+
C.stopPropagation(), n == null || n();
|
|
2554
2601
|
},
|
|
2555
2602
|
style: {
|
|
2556
2603
|
background: "var(--nice-overlay-light-15, rgba(255, 255, 255, 0.15))",
|
|
@@ -2569,8 +2616,8 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2569
2616
|
{
|
|
2570
2617
|
variant: "ghost",
|
|
2571
2618
|
size: "sm",
|
|
2572
|
-
onClick: (
|
|
2573
|
-
|
|
2619
|
+
onClick: (C) => {
|
|
2620
|
+
C.stopPropagation(), L((W) => !W);
|
|
2574
2621
|
},
|
|
2575
2622
|
style: {
|
|
2576
2623
|
background: "var(--nice-overlay-light-15, rgba(255, 255, 255, 0.15))",
|
|
@@ -2589,8 +2636,8 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2589
2636
|
{
|
|
2590
2637
|
variant: "ghost",
|
|
2591
2638
|
size: "sm",
|
|
2592
|
-
onClick: (
|
|
2593
|
-
|
|
2639
|
+
onClick: (C) => {
|
|
2640
|
+
C.stopPropagation(), ge();
|
|
2594
2641
|
},
|
|
2595
2642
|
style: {
|
|
2596
2643
|
background: "var(--nice-overlay-light-15, rgba(255, 255, 255, 0.15))",
|
|
@@ -2612,7 +2659,7 @@ const zr = { width: 1920, height: 1080 }, $r = { width: 1024, height: 768 }, Ar
|
|
|
2612
2659
|
);
|
|
2613
2660
|
};
|
|
2614
2661
|
At.displayName = "NicePresentationPlayer";
|
|
2615
|
-
const _t = "
|
|
2662
|
+
const _t = "_interactiveElement_6bz7w_13", Tt = "_interactiveButton_6bz7w_27", Et = "_disabled_6bz7w_57", Rt = "_variant_primary_6bz7w_87", Pt = "_variant_secondary_6bz7w_97", Dt = "_variant_outline_6bz7w_107", Nt = "_variant_ghost_6bz7w_119", Ot = "_size_small_6bz7w_139", Ft = "_size_medium_6bz7w_149", qt = "_size_large_6bz7w_159", Wt = "_buttonIcon_6bz7w_169", Lt = "_buttonLabel_6bz7w_177", Bt = "_interactivePoll_6bz7w_189", Ht = "_pollQuestion_6bz7w_209", Vt = "_pollOptions_6bz7w_223", Ut = "_pollOption_6bz7w_223", jt = "_pollOptionDisabled_6bz7w_261", Qt = "_pollOptionSelected_6bz7w_271", Yt = "_pollOptionContent_6bz7w_289", Xt = "_pollOptionIcon_6bz7w_305", Kt = "_pollOptionText_6bz7w_313", Gt = "_pollCheckbox_6bz7w_321", Jt = "_pollResultBar_6bz7w_331", Zt = "_pollResultFill_6bz7w_353", en = "_pollResultPercent_6bz7w_365", tn = "_pollResultCount_6bz7w_381", nn = "_pollSubmitBtn_6bz7w_395", on = "_pollTotalVotes_6bz7w_431", rn = "_pollVotedMessage_6bz7w_443", an = "_interactiveQuiz_6bz7w_485", sn = "_quizHeader_6bz7w_505", cn = "_quizQuestion_6bz7w_519", ln = "_quizTimer_6bz7w_537", dn = "_quizTimerWarning_6bz7w_555", un = "_timerPulse_6bz7w_1", pn = "_quizPoints_6bz7w_587", fn = "_quizAnswers_6bz7w_605", mn = "_quizAnswer_6bz7w_605", hn = "_quizAnswerDisabled_6bz7w_643", yn = "_quizAnswerSelected_6bz7w_653", gn = "_quizAnswerCorrect_6bz7w_671", vn = "_quizAnswerIncorrect_6bz7w_681", xn = "_quizAnswerMarker_6bz7w_691", bn = "_quizAnswerText_6bz7w_701", wn = "_quizCorrectMark_6bz7w_713", Sn = "_quizIncorrectMark_6bz7w_725", kn = "_quizSubmitBtn_6bz7w_737", In = "_quizFeedback_6bz7w_785", zn = "_quizFeedbackMessage_6bz7w_793", Mn = "_quizFeedbackCorrect_6bz7w_807", Cn = "_quizFeedbackIncorrect_6bz7w_817", $n = "_quizExplanation_6bz7w_827", An = "_interactiveCountdown_6bz7w_851", _n = "_countdownWarning_6bz7w_867", Tn = "_countdownPulse_6bz7w_1", En = "_countdownComplete_6bz7w_895", Rn = "_countdownDigital_6bz7w_905", Pn = "_countdownSeparator_6bz7w_923", Dn = "_countdownDigit_6bz7w_905", Nn = "_countdownCircular_6bz7w_943", On = "_countdownCircleSvg_6bz7w_955", Fn = "_countdownProgressRing_6bz7w_967", qn = "_countdownCircleText_6bz7w_975", Wn = "_countdownLargeSeconds_6bz7w_995", Ln = "_countdownFlip_6bz7w_1005", Bn = "_flipCardContainer_6bz7w_1017", Hn = "_flipCard_6bz7w_1017", Vn = "_flipLabel_6bz7w_1053", Un = "_flipSeparator_6bz7w_1067", jn = "_countdownMinimal_6bz7w_1083", Qn = "_countdownCompleteMessage_6bz7w_1095", Yn = "_interactiveQnA_6bz7w_1113", Xn = "_qnaHeader_6bz7w_1137", Kn = "_qnaTitle_6bz7w_1153", Gn = "_qnaCount_6bz7w_1167", Jn = "_qnaInputForm_6bz7w_1177", Zn = "_qnaInputWrapper_6bz7w_1189", ei = "_qnaInput_6bz7w_1177", ti = "_qnaCharCount_6bz7w_1239", ni = "_qnaInputActions_6bz7w_1255", ii = "_qnaAnonymousToggle_6bz7w_1269", oi = "_qnaSubmitBtn_6bz7w_1299", ri = "_qnaClosedMessage_6bz7w_1341", ai = "_qnaQuestionsList_6bz7w_1359", si = "_qnaQuestion_6bz7w_1359", ci = "_qnaQuestionAnswered_6bz7w_1401", li = "_qnaQuestionContent_6bz7w_1411", di = "_qnaQuestionText_6bz7w_1425", ui = "_qnaQuestionMeta_6bz7w_1437", pi = "_qnaAuthor_6bz7w_1451", fi = "_qnaQuestionActions_6bz7w_1459", mi = "_qnaUpvoteBtn_6bz7w_1473", hi = "_qnaUpvoted_6bz7w_1509", yi = "_qnaUpvoteIcon_6bz7w_1529", gi = "_qnaUpvoteCount_6bz7w_1537", vi = "_qnaAnsweredBtn_6bz7w_1547", xi = "_qnaMarkedAnswered_6bz7w_1575", bi = "_qnaEmptyState_6bz7w_1587", wi = "_qnaMoreQuestions_6bz7w_1601", Si = "_qnaStyle_stack_6bz7w_1619", ki = "_qnaStyle_floating_6bz7w_1629", S = {
|
|
2616
2663
|
interactiveElement: _t,
|
|
2617
2664
|
interactiveButton: Tt,
|
|
2618
2665
|
disabled: Et,
|
|
@@ -2642,7 +2689,7 @@ const _t = "_interactiveElement_1hnm5_13", Tt = "_interactiveButton_1hnm5_27", E
|
|
|
2642
2689
|
pollSubmitBtn: nn,
|
|
2643
2690
|
pollTotalVotes: on,
|
|
2644
2691
|
pollVotedMessage: rn,
|
|
2645
|
-
"pollStyle_horizontal-bar": "_pollStyle_horizontal-
|
|
2692
|
+
"pollStyle_horizontal-bar": "_pollStyle_horizontal-bar_6bz7w_463",
|
|
2646
2693
|
interactiveQuiz: an,
|
|
2647
2694
|
quizHeader: sn,
|
|
2648
2695
|
quizQuestion: cn,
|
|
@@ -2662,9 +2709,9 @@ const _t = "_interactiveElement_1hnm5_13", Tt = "_interactiveButton_1hnm5_27", E
|
|
|
2662
2709
|
quizIncorrectMark: Sn,
|
|
2663
2710
|
quizSubmitBtn: kn,
|
|
2664
2711
|
quizFeedback: In,
|
|
2665
|
-
quizFeedbackMessage:
|
|
2666
|
-
quizFeedbackCorrect:
|
|
2667
|
-
quizFeedbackIncorrect:
|
|
2712
|
+
quizFeedbackMessage: zn,
|
|
2713
|
+
quizFeedbackCorrect: Mn,
|
|
2714
|
+
quizFeedbackIncorrect: Cn,
|
|
2668
2715
|
quizExplanation: $n,
|
|
2669
2716
|
interactiveCountdown: An,
|
|
2670
2717
|
countdownWarning: _n,
|
|
@@ -2795,7 +2842,7 @@ const Pr = ({
|
|
|
2795
2842
|
displayStyle: f = "buttons",
|
|
2796
2843
|
resultColors: u,
|
|
2797
2844
|
results: y = {}
|
|
2798
|
-
} = e, [h, v] = H(o ?? []), [w, g] = H(!!(o != null && o.length)), [x, T] = H(y), _ = ae(() => Object.values(x).reduce((
|
|
2845
|
+
} = e, [h, v] = H(o ?? []), [w, g] = H(!!(o != null && o.length)), [x, T] = H(y), _ = ae(() => Object.values(x).reduce((M, b) => M + b, 0), [x]), L = [
|
|
2799
2846
|
(a == null ? void 0 : a.primaryColor) ?? "var(--nice-info, #6366f1)",
|
|
2800
2847
|
"var(--nice-accent, #8b5cf6)",
|
|
2801
2848
|
"var(--nice-info, #06b6d4)",
|
|
@@ -2803,19 +2850,19 @@ const Pr = ({
|
|
|
2803
2850
|
"var(--nice-warning, #f59e0b)",
|
|
2804
2851
|
"var(--nice-danger, #ef4444)"
|
|
2805
2852
|
], K = u ?? L, E = A(
|
|
2806
|
-
(
|
|
2807
|
-
w || i || v((b) => l ? b.includes(
|
|
2853
|
+
(M) => {
|
|
2854
|
+
w || i || v((b) => l ? b.includes(M) ? b.filter((I) => I !== M) : [...b, M] : [M]);
|
|
2808
2855
|
},
|
|
2809
2856
|
[w, i, l]
|
|
2810
2857
|
), O = A(() => {
|
|
2811
2858
|
if (h.length === 0 || w)
|
|
2812
2859
|
return;
|
|
2813
|
-
const
|
|
2860
|
+
const M = { ...x };
|
|
2814
2861
|
h.forEach((b) => {
|
|
2815
|
-
|
|
2816
|
-
}), T(
|
|
2817
|
-
}, [h, w, x, t, n]), B = d || p && w, F = (
|
|
2818
|
-
const I = h.includes(
|
|
2862
|
+
M[b] = (M[b] ?? 0) + 1;
|
|
2863
|
+
}), T(M), g(!0), t == null || t(h), n == null || n(M);
|
|
2864
|
+
}, [h, w, x, t, n]), B = d || p && w, F = (M, b) => {
|
|
2865
|
+
const I = h.includes(M.id), R = x[M.id] ?? 0, j = _ > 0 ? R / _ * 100 : 0, D = M.color ?? K[b % K.length], Y = [
|
|
2819
2866
|
S.pollOption,
|
|
2820
2867
|
S[`pollStyle_${f}`],
|
|
2821
2868
|
I ? S.pollOptionSelected : "",
|
|
@@ -2825,7 +2872,7 @@ const Pr = ({
|
|
|
2825
2872
|
"button",
|
|
2826
2873
|
{
|
|
2827
2874
|
className: Y,
|
|
2828
|
-
onClick: () => E(
|
|
2875
|
+
onClick: () => E(M.id),
|
|
2829
2876
|
disabled: w || i,
|
|
2830
2877
|
type: "button",
|
|
2831
2878
|
style: {
|
|
@@ -2834,8 +2881,8 @@ const Pr = ({
|
|
|
2834
2881
|
},
|
|
2835
2882
|
children: [
|
|
2836
2883
|
/* @__PURE__ */ k("div", { className: S.pollOptionContent, children: [
|
|
2837
|
-
|
|
2838
|
-
/* @__PURE__ */ m("span", { className: S.pollOptionText, children:
|
|
2884
|
+
M.icon && /* @__PURE__ */ m("span", { className: S.pollOptionIcon, children: /* @__PURE__ */ m(re, { name: M.icon, size: 16 }) }),
|
|
2885
|
+
/* @__PURE__ */ m("span", { className: S.pollOptionText, children: M.text }),
|
|
2839
2886
|
l && !w && /* @__PURE__ */ m("span", { className: S.pollCheckbox, children: /* @__PURE__ */ m(re, { name: I ? "check-square" : "square", size: 16 }) })
|
|
2840
2887
|
] }),
|
|
2841
2888
|
B && /* @__PURE__ */ k("div", { className: S.pollResultBar, children: [
|
|
@@ -2861,12 +2908,12 @@ const Pr = ({
|
|
|
2861
2908
|
] })
|
|
2862
2909
|
]
|
|
2863
2910
|
},
|
|
2864
|
-
|
|
2911
|
+
M.id
|
|
2865
2912
|
);
|
|
2866
2913
|
};
|
|
2867
2914
|
return /* @__PURE__ */ k("div", { className: `${S.interactivePoll} ${r ?? ""}`, children: [
|
|
2868
2915
|
/* @__PURE__ */ m("h3", { className: S.pollQuestion, style: { fontFamily: a == null ? void 0 : a.fontFamily }, children: s }),
|
|
2869
|
-
/* @__PURE__ */ m("div", { className: S.pollOptions, children: c.map((
|
|
2916
|
+
/* @__PURE__ */ m("div", { className: S.pollOptions, children: c.map((M, b) => F(M, b)) }),
|
|
2870
2917
|
!w && !i && h.length > 0 && /* @__PURE__ */ m(
|
|
2871
2918
|
"button",
|
|
2872
2919
|
{
|
|
@@ -2918,27 +2965,27 @@ const Pr = ({
|
|
|
2918
2965
|
}, [T, l, v]);
|
|
2919
2966
|
const K = A(
|
|
2920
2967
|
(F) => {
|
|
2921
|
-
v || n || h((
|
|
2968
|
+
v || n || h((M) => s === "single" || s === "true-false" ? [F] : M.includes(F) ? M.filter((b) => b !== F) : [...M, F]);
|
|
2922
2969
|
},
|
|
2923
2970
|
[v, n, s]
|
|
2924
2971
|
), E = A(() => {
|
|
2925
2972
|
if (v || y.length === 0)
|
|
2926
2973
|
return;
|
|
2927
2974
|
L.current && clearInterval(L.current);
|
|
2928
|
-
const F = a.filter((j) => j.isCorrect).map((j) => j.id),
|
|
2975
|
+
const F = a.filter((j) => j.isCorrect).map((j) => j.id), M = new Set(y), b = new Set(F), I = M.size === b.size && [...M].every((j) => b.has(j));
|
|
2929
2976
|
x(I), w(!0);
|
|
2930
2977
|
const R = I ? p : 0;
|
|
2931
2978
|
t == null || t(y, I, R);
|
|
2932
2979
|
}, [v, y, a, p, t]), O = (F) => {
|
|
2933
|
-
const
|
|
2934
|
-
return
|
|
2980
|
+
const M = Math.floor(F / 60), b = F % 60;
|
|
2981
|
+
return M > 0 ? `${M}:${b.toString().padStart(2, "0")}` : `${b}s`;
|
|
2935
2982
|
}, B = (F) => {
|
|
2936
|
-
const
|
|
2983
|
+
const M = y.includes(F.id), b = v && c, I = [
|
|
2937
2984
|
S.quizAnswer,
|
|
2938
|
-
|
|
2985
|
+
M ? S.quizAnswerSelected : "",
|
|
2939
2986
|
v ? S.quizAnswerDisabled : "",
|
|
2940
2987
|
b && F.isCorrect ? S.quizAnswerCorrect : "",
|
|
2941
|
-
b &&
|
|
2988
|
+
b && M && !F.isCorrect ? S.quizAnswerIncorrect : ""
|
|
2942
2989
|
].filter(Boolean).join(" ");
|
|
2943
2990
|
return /* @__PURE__ */ k(
|
|
2944
2991
|
"button",
|
|
@@ -2950,12 +2997,12 @@ const Pr = ({
|
|
|
2950
2997
|
style: { fontFamily: o == null ? void 0 : o.fontFamily },
|
|
2951
2998
|
children: [
|
|
2952
2999
|
/* @__PURE__ */ k("span", { className: S.quizAnswerMarker, children: [
|
|
2953
|
-
s === "multiple" && /* @__PURE__ */ m(re, { name:
|
|
2954
|
-
(s === "single" || s === "true-false") && /* @__PURE__ */ m(re, { name:
|
|
3000
|
+
s === "multiple" && /* @__PURE__ */ m(re, { name: M ? "check-square" : "square", size: 16 }),
|
|
3001
|
+
(s === "single" || s === "true-false") && /* @__PURE__ */ m(re, { name: M ? "check" : "circle", size: 16 })
|
|
2955
3002
|
] }),
|
|
2956
3003
|
/* @__PURE__ */ m("span", { className: S.quizAnswerText, children: F.text }),
|
|
2957
3004
|
b && F.isCorrect && /* @__PURE__ */ m("span", { className: S.quizCorrectMark, children: /* @__PURE__ */ m(re, { name: "check", size: 14 }) }),
|
|
2958
|
-
b &&
|
|
3005
|
+
b && M && !F.isCorrect && /* @__PURE__ */ m("span", { className: S.quizIncorrectMark, children: /* @__PURE__ */ m(re, { name: "close", size: 14 }) })
|
|
2959
3006
|
]
|
|
2960
3007
|
},
|
|
2961
3008
|
F.id
|
|
@@ -3019,8 +3066,8 @@ const Pr = ({
|
|
|
3019
3066
|
} = e, [y, h] = H(() => {
|
|
3020
3067
|
if (typeof r == "number")
|
|
3021
3068
|
return r;
|
|
3022
|
-
const
|
|
3023
|
-
return Math.max(0, Math.floor((
|
|
3069
|
+
const M = new Date(r), b = /* @__PURE__ */ new Date();
|
|
3070
|
+
return Math.max(0, Math.floor((M.getTime() - b.getTime()) / 1e3));
|
|
3024
3071
|
}), [v, w] = H(!1), g = ie(null);
|
|
3025
3072
|
ne(() => {
|
|
3026
3073
|
if (n || v) {
|
|
@@ -3028,7 +3075,7 @@ const Pr = ({
|
|
|
3028
3075
|
return;
|
|
3029
3076
|
}
|
|
3030
3077
|
return g.current = setInterval(() => {
|
|
3031
|
-
h((
|
|
3078
|
+
h((M) => M <= 1 ? (clearInterval(g.current), w(!0), 0) : M - 1);
|
|
3032
3079
|
}, 1e3), () => {
|
|
3033
3080
|
g.current && clearInterval(g.current);
|
|
3034
3081
|
};
|
|
@@ -3036,17 +3083,17 @@ const Pr = ({
|
|
|
3036
3083
|
v && (t == null || t(l));
|
|
3037
3084
|
}, [v, t, l]);
|
|
3038
3085
|
const x = ae(() => {
|
|
3039
|
-
const
|
|
3040
|
-
return { hours:
|
|
3041
|
-
}, [y]), T = y <= f && y > 0, _ = (
|
|
3042
|
-
const { hours:
|
|
3086
|
+
const M = Math.floor(y / 3600), b = Math.floor(y % 3600 / 60), I = y % 60;
|
|
3087
|
+
return { hours: M, minutes: b, seconds: I };
|
|
3088
|
+
}, [y]), T = y <= f && y > 0, _ = (M, b = 2) => M.toString().padStart(b, "0"), L = () => {
|
|
3089
|
+
const { hours: M, minutes: b, seconds: I } = x;
|
|
3043
3090
|
let R = [];
|
|
3044
|
-
return a === "hh:mm:ss" ||
|
|
3091
|
+
return a === "hh:mm:ss" || M > 0 ? R = [_(M), _(b), _(I)] : a === "mm:ss" ? R = [_(b), _(I)] : R = [I.toString()], /* @__PURE__ */ m("div", { className: S.countdownDigital, children: R.map((j, D) => /* @__PURE__ */ k(P.Fragment, { children: [
|
|
3045
3092
|
D > 0 && /* @__PURE__ */ m("span", { className: S.countdownSeparator, children: ":" }),
|
|
3046
3093
|
/* @__PURE__ */ m("span", { className: S.countdownDigit, children: j })
|
|
3047
3094
|
] }, D)) });
|
|
3048
3095
|
}, K = () => {
|
|
3049
|
-
const { hours:
|
|
3096
|
+
const { hours: M, minutes: b, seconds: I } = x, R = typeof r == "number" ? r : y, j = R > 0 ? y / R : 0, D = 2 * Math.PI * 45;
|
|
3050
3097
|
return /* @__PURE__ */ k("div", { className: S.countdownCircular, children: [
|
|
3051
3098
|
/* @__PURE__ */ k("svg", { viewBox: "0 0 100 100", className: S.countdownCircleSvg, children: [
|
|
3052
3099
|
/* @__PURE__ */ m(
|
|
@@ -3079,8 +3126,8 @@ const Pr = ({
|
|
|
3079
3126
|
)
|
|
3080
3127
|
] }),
|
|
3081
3128
|
/* @__PURE__ */ m("div", { className: S.countdownCircleText, children: a !== "ss" ? /* @__PURE__ */ k(he, { children: [
|
|
3082
|
-
|
|
3083
|
-
_(
|
|
3129
|
+
M > 0 && /* @__PURE__ */ k("span", { children: [
|
|
3130
|
+
_(M),
|
|
3084
3131
|
":"
|
|
3085
3132
|
] }),
|
|
3086
3133
|
/* @__PURE__ */ k("span", { children: [
|
|
@@ -3091,13 +3138,13 @@ const Pr = ({
|
|
|
3091
3138
|
] }) : /* @__PURE__ */ m("span", { className: S.countdownLargeSeconds, children: I }) })
|
|
3092
3139
|
] });
|
|
3093
3140
|
}, E = () => {
|
|
3094
|
-
const { hours:
|
|
3141
|
+
const { hours: M, minutes: b, seconds: I } = x, R = (j, D) => /* @__PURE__ */ k("div", { className: S.flipCardContainer, children: [
|
|
3095
3142
|
/* @__PURE__ */ m("div", { className: S.flipCard, children: /* @__PURE__ */ m("span", { children: j }) }),
|
|
3096
3143
|
c && /* @__PURE__ */ m("span", { className: S.flipLabel, children: D })
|
|
3097
3144
|
] });
|
|
3098
3145
|
return /* @__PURE__ */ k("div", { className: S.countdownFlip, children: [
|
|
3099
|
-
(a === "hh:mm:ss" ||
|
|
3100
|
-
R(_(
|
|
3146
|
+
(a === "hh:mm:ss" || M > 0) && /* @__PURE__ */ k(he, { children: [
|
|
3147
|
+
R(_(M), "godz."),
|
|
3101
3148
|
/* @__PURE__ */ m("span", { className: S.flipSeparator, children: ":" })
|
|
3102
3149
|
] }),
|
|
3103
3150
|
a !== "ss" && /* @__PURE__ */ k(he, { children: [
|
|
@@ -3107,14 +3154,14 @@ const Pr = ({
|
|
|
3107
3154
|
R(_(I), "sek.")
|
|
3108
3155
|
] });
|
|
3109
3156
|
}, O = () => {
|
|
3110
|
-
const { hours:
|
|
3157
|
+
const { hours: M, minutes: b, seconds: I } = x;
|
|
3111
3158
|
if (a === "ss")
|
|
3112
3159
|
return /* @__PURE__ */ k("span", { className: S.countdownMinimal, children: [
|
|
3113
3160
|
I,
|
|
3114
3161
|
"s"
|
|
3115
3162
|
] });
|
|
3116
3163
|
let R = "";
|
|
3117
|
-
return
|
|
3164
|
+
return M > 0 && (R += `${M}h `), (b > 0 || M > 0) && (R += `${b}m `), R += `${I}s`, /* @__PURE__ */ m("span", { className: S.countdownMinimal, children: R.trim() });
|
|
3118
3165
|
}, B = {
|
|
3119
3166
|
color: T ? u : p,
|
|
3120
3167
|
backgroundColor: d,
|
|
@@ -3175,7 +3222,7 @@ const Pr = ({
|
|
|
3175
3222
|
});
|
|
3176
3223
|
},
|
|
3177
3224
|
[T, r, L, t, n]
|
|
3178
|
-
),
|
|
3225
|
+
), M = A(
|
|
3179
3226
|
(D) => {
|
|
3180
3227
|
!u || E.has(D) || (x(
|
|
3181
3228
|
(Y) => Y.map((N) => N.id === D ? { ...N, upvotes: N.upvotes + 1 } : N)
|
|
@@ -3249,7 +3296,7 @@ const Pr = ({
|
|
|
3249
3296
|
/* @__PURE__ */ m(re, { name: "user", size: 14 }),
|
|
3250
3297
|
" Anonim"
|
|
3251
3298
|
] }) }),
|
|
3252
|
-
/* @__PURE__ */ m("span", { className: S.qnaTimestamp, children:
|
|
3299
|
+
/* @__PURE__ */ m("span", { className: S.qnaTimestamp, children: zi(D.timestamp) })
|
|
3253
3300
|
] })
|
|
3254
3301
|
] }),
|
|
3255
3302
|
/* @__PURE__ */ k("div", { className: S.qnaQuestionActions, children: [
|
|
@@ -3257,7 +3304,7 @@ const Pr = ({
|
|
|
3257
3304
|
"button",
|
|
3258
3305
|
{
|
|
3259
3306
|
className: `${S.qnaUpvoteBtn} ${Y ? S.qnaUpvoted : ""}`,
|
|
3260
|
-
onClick: () =>
|
|
3307
|
+
onClick: () => M(D.id),
|
|
3261
3308
|
disabled: Y,
|
|
3262
3309
|
title: Y ? "Już zagłosowałeś" : "Zagłosuj",
|
|
3263
3310
|
children: [
|
|
@@ -3305,7 +3352,7 @@ const Pr = ({
|
|
|
3305
3352
|
] })
|
|
3306
3353
|
] });
|
|
3307
3354
|
};
|
|
3308
|
-
function
|
|
3355
|
+
function zi(e) {
|
|
3309
3356
|
const t = new Date(e), i = (/* @__PURE__ */ new Date()).getTime() - t.getTime(), o = Math.floor(i / 6e4);
|
|
3310
3357
|
if (o < 1)
|
|
3311
3358
|
return "Teraz";
|
|
@@ -3314,7 +3361,7 @@ function Mi(e) {
|
|
|
3314
3361
|
const r = Math.floor(o / 60);
|
|
3315
3362
|
return r < 24 ? `${r}h temu` : t.toLocaleDateString("pl-PL", { day: "numeric", month: "short" });
|
|
3316
3363
|
}
|
|
3317
|
-
const
|
|
3364
|
+
const Mi = {
|
|
3318
3365
|
id: "fade",
|
|
3319
3366
|
name: "Fade",
|
|
3320
3367
|
description: "Smooth fade between slides",
|
|
@@ -3329,7 +3376,7 @@ const Ci = {
|
|
|
3329
3376
|
defaultDuration: 500,
|
|
3330
3377
|
defaultEasing: "ease-in-out",
|
|
3331
3378
|
category: "basic"
|
|
3332
|
-
},
|
|
3379
|
+
}, Ci = {
|
|
3333
3380
|
id: "slide-left",
|
|
3334
3381
|
name: "Slide Left",
|
|
3335
3382
|
description: "Slide to the left",
|
|
@@ -3598,8 +3645,8 @@ const Ci = {
|
|
|
3598
3645
|
defaultEasing: "ease-in-out",
|
|
3599
3646
|
category: "creative"
|
|
3600
3647
|
}, Hi = [
|
|
3648
|
+
Mi,
|
|
3601
3649
|
Ci,
|
|
3602
|
-
zi,
|
|
3603
3650
|
$i,
|
|
3604
3651
|
Ai,
|
|
3605
3652
|
_i,
|
|
@@ -3744,10 +3791,10 @@ function we(e) {
|
|
|
3744
3791
|
maximumFractionDigits: 0
|
|
3745
3792
|
}).format(e);
|
|
3746
3793
|
}
|
|
3747
|
-
function
|
|
3794
|
+
function ze(e) {
|
|
3748
3795
|
return `${e >= 0 ? "+" : ""}${e.toFixed(1)}%`;
|
|
3749
3796
|
}
|
|
3750
|
-
function
|
|
3797
|
+
function Me(e) {
|
|
3751
3798
|
return e >= 0 ? "var(--nice-success, #10b981)" : "var(--nice-danger, #ef4444)";
|
|
3752
3799
|
}
|
|
3753
3800
|
function ji(e) {
|
|
@@ -3857,7 +3904,12 @@ function Qi(e) {
|
|
|
3857
3904
|
content: {
|
|
3858
3905
|
type: "text",
|
|
3859
3906
|
text: "Revenue",
|
|
3860
|
-
style: {
|
|
3907
|
+
style: {
|
|
3908
|
+
fontSize: 14,
|
|
3909
|
+
color: "var(--nice-text-secondary, #6b7280)",
|
|
3910
|
+
textAlign: "center",
|
|
3911
|
+
fontWeight: 500
|
|
3912
|
+
}
|
|
3861
3913
|
}
|
|
3862
3914
|
},
|
|
3863
3915
|
{
|
|
@@ -3867,7 +3919,12 @@ function Qi(e) {
|
|
|
3867
3919
|
content: {
|
|
3868
3920
|
type: "text",
|
|
3869
3921
|
text: we(e.kpis.revenue.value),
|
|
3870
|
-
style: {
|
|
3922
|
+
style: {
|
|
3923
|
+
fontSize: 28,
|
|
3924
|
+
fontWeight: 700,
|
|
3925
|
+
color: "var(--nice-text, #1f2937)",
|
|
3926
|
+
textAlign: "center"
|
|
3927
|
+
}
|
|
3871
3928
|
}
|
|
3872
3929
|
},
|
|
3873
3930
|
{
|
|
@@ -3876,11 +3933,11 @@ function Qi(e) {
|
|
|
3876
3933
|
position: { x: 7, y: 46, width: 17, height: 4, unit: "percent" },
|
|
3877
3934
|
content: {
|
|
3878
3935
|
type: "text",
|
|
3879
|
-
text:
|
|
3936
|
+
text: ze(e.kpis.revenue.change),
|
|
3880
3937
|
style: {
|
|
3881
3938
|
fontSize: 16,
|
|
3882
3939
|
fontWeight: 600,
|
|
3883
|
-
color:
|
|
3940
|
+
color: Me(e.kpis.revenue.change),
|
|
3884
3941
|
textAlign: "center"
|
|
3885
3942
|
}
|
|
3886
3943
|
}
|
|
@@ -3917,7 +3974,12 @@ function Qi(e) {
|
|
|
3917
3974
|
content: {
|
|
3918
3975
|
type: "text",
|
|
3919
3976
|
text: "Profit",
|
|
3920
|
-
style: {
|
|
3977
|
+
style: {
|
|
3978
|
+
fontSize: 14,
|
|
3979
|
+
color: "var(--nice-text-secondary, #6b7280)",
|
|
3980
|
+
textAlign: "center",
|
|
3981
|
+
fontWeight: 500
|
|
3982
|
+
}
|
|
3921
3983
|
}
|
|
3922
3984
|
},
|
|
3923
3985
|
{
|
|
@@ -3927,7 +3989,12 @@ function Qi(e) {
|
|
|
3927
3989
|
content: {
|
|
3928
3990
|
type: "text",
|
|
3929
3991
|
text: we(e.kpis.profit.value),
|
|
3930
|
-
style: {
|
|
3992
|
+
style: {
|
|
3993
|
+
fontSize: 28,
|
|
3994
|
+
fontWeight: 700,
|
|
3995
|
+
color: "var(--nice-text, #1f2937)",
|
|
3996
|
+
textAlign: "center"
|
|
3997
|
+
}
|
|
3931
3998
|
}
|
|
3932
3999
|
},
|
|
3933
4000
|
{
|
|
@@ -3936,11 +4003,11 @@ function Qi(e) {
|
|
|
3936
4003
|
position: { x: 30, y: 46, width: 17, height: 4, unit: "percent" },
|
|
3937
4004
|
content: {
|
|
3938
4005
|
type: "text",
|
|
3939
|
-
text:
|
|
4006
|
+
text: ze(e.kpis.profit.change),
|
|
3940
4007
|
style: {
|
|
3941
4008
|
fontSize: 16,
|
|
3942
4009
|
fontWeight: 600,
|
|
3943
|
-
color:
|
|
4010
|
+
color: Me(e.kpis.profit.change),
|
|
3944
4011
|
textAlign: "center"
|
|
3945
4012
|
}
|
|
3946
4013
|
}
|
|
@@ -3977,7 +4044,12 @@ function Qi(e) {
|
|
|
3977
4044
|
content: {
|
|
3978
4045
|
type: "text",
|
|
3979
4046
|
text: "Customers",
|
|
3980
|
-
style: {
|
|
4047
|
+
style: {
|
|
4048
|
+
fontSize: 14,
|
|
4049
|
+
color: "var(--nice-text-secondary, #6b7280)",
|
|
4050
|
+
textAlign: "center",
|
|
4051
|
+
fontWeight: 500
|
|
4052
|
+
}
|
|
3981
4053
|
}
|
|
3982
4054
|
},
|
|
3983
4055
|
{
|
|
@@ -3987,7 +4059,12 @@ function Qi(e) {
|
|
|
3987
4059
|
content: {
|
|
3988
4060
|
type: "text",
|
|
3989
4061
|
text: e.kpis.customers.value.toLocaleString(),
|
|
3990
|
-
style: {
|
|
4062
|
+
style: {
|
|
4063
|
+
fontSize: 28,
|
|
4064
|
+
fontWeight: 700,
|
|
4065
|
+
color: "var(--nice-text, #1f2937)",
|
|
4066
|
+
textAlign: "center"
|
|
4067
|
+
}
|
|
3991
4068
|
}
|
|
3992
4069
|
},
|
|
3993
4070
|
{
|
|
@@ -3996,11 +4073,11 @@ function Qi(e) {
|
|
|
3996
4073
|
position: { x: 53, y: 46, width: 17, height: 4, unit: "percent" },
|
|
3997
4074
|
content: {
|
|
3998
4075
|
type: "text",
|
|
3999
|
-
text:
|
|
4076
|
+
text: ze(e.kpis.customers.change),
|
|
4000
4077
|
style: {
|
|
4001
4078
|
fontSize: 16,
|
|
4002
4079
|
fontWeight: 600,
|
|
4003
|
-
color:
|
|
4080
|
+
color: Me(e.kpis.customers.change),
|
|
4004
4081
|
textAlign: "center"
|
|
4005
4082
|
}
|
|
4006
4083
|
}
|
|
@@ -4037,7 +4114,12 @@ function Qi(e) {
|
|
|
4037
4114
|
content: {
|
|
4038
4115
|
type: "text",
|
|
4039
4116
|
text: "Satisfaction",
|
|
4040
|
-
style: {
|
|
4117
|
+
style: {
|
|
4118
|
+
fontSize: 14,
|
|
4119
|
+
color: "var(--nice-text-secondary, #6b7280)",
|
|
4120
|
+
textAlign: "center",
|
|
4121
|
+
fontWeight: 500
|
|
4122
|
+
}
|
|
4041
4123
|
}
|
|
4042
4124
|
},
|
|
4043
4125
|
{
|
|
@@ -4047,7 +4129,12 @@ function Qi(e) {
|
|
|
4047
4129
|
content: {
|
|
4048
4130
|
type: "text",
|
|
4049
4131
|
text: `${e.kpis.satisfaction.value}%`,
|
|
4050
|
-
style: {
|
|
4132
|
+
style: {
|
|
4133
|
+
fontSize: 28,
|
|
4134
|
+
fontWeight: 700,
|
|
4135
|
+
color: "var(--nice-text, #1f2937)",
|
|
4136
|
+
textAlign: "center"
|
|
4137
|
+
}
|
|
4051
4138
|
}
|
|
4052
4139
|
},
|
|
4053
4140
|
{
|
|
@@ -4056,11 +4143,11 @@ function Qi(e) {
|
|
|
4056
4143
|
position: { x: 76, y: 46, width: 17, height: 4, unit: "percent" },
|
|
4057
4144
|
content: {
|
|
4058
4145
|
type: "text",
|
|
4059
|
-
text:
|
|
4146
|
+
text: ze(e.kpis.satisfaction.change),
|
|
4060
4147
|
style: {
|
|
4061
4148
|
fontSize: 16,
|
|
4062
4149
|
fontWeight: 600,
|
|
4063
|
-
color:
|
|
4150
|
+
color: Me(e.kpis.satisfaction.change),
|
|
4064
4151
|
textAlign: "center"
|
|
4065
4152
|
}
|
|
4066
4153
|
}
|
|
@@ -4108,11 +4195,13 @@ function Yi(e) {
|
|
|
4108
4195
|
data: e.financials.revenueByMonth.map((i) => i.value),
|
|
4109
4196
|
backgroundColor: "var(--nice-primary, #3b82f6)"
|
|
4110
4197
|
},
|
|
4111
|
-
...((n = e.financials.revenueByMonth[0]) == null ? void 0 : n.lastYear) !== void 0 ? [
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4198
|
+
...((n = e.financials.revenueByMonth[0]) == null ? void 0 : n.lastYear) !== void 0 ? [
|
|
4199
|
+
{
|
|
4200
|
+
label: `${e.year - 1}`,
|
|
4201
|
+
data: e.financials.revenueByMonth.map((i) => i.lastYear || 0),
|
|
4202
|
+
backgroundColor: "var(--nice-primary-light, #93c5fd)"
|
|
4203
|
+
}
|
|
4204
|
+
] : []
|
|
4116
4205
|
]
|
|
4117
4206
|
},
|
|
4118
4207
|
options: {
|
|
@@ -4162,20 +4251,22 @@ function Xi(e) {
|
|
|
4162
4251
|
title: "Cost Breakdown",
|
|
4163
4252
|
data: {
|
|
4164
4253
|
labels: e.financials.costBreakdown.map((n) => n.category),
|
|
4165
|
-
datasets: [
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4254
|
+
datasets: [
|
|
4255
|
+
{
|
|
4256
|
+
label: "Cost Distribution",
|
|
4257
|
+
data: e.financials.costBreakdown.map((n) => n.value),
|
|
4258
|
+
backgroundColor: [
|
|
4259
|
+
"var(--nice-primary, #3b82f6)",
|
|
4260
|
+
"var(--nice-success, #10b981)",
|
|
4261
|
+
"var(--nice-warning, #f59e0b)",
|
|
4262
|
+
"var(--nice-danger, #ef4444)",
|
|
4263
|
+
"var(--nice-accent, #8b5cf6)",
|
|
4264
|
+
"var(--nice-accent-pink, #ec4899)",
|
|
4265
|
+
"var(--nice-info, #14b8a6)",
|
|
4266
|
+
"var(--nice-info, #6366f1)"
|
|
4267
|
+
]
|
|
4268
|
+
}
|
|
4269
|
+
]
|
|
4179
4270
|
},
|
|
4180
4271
|
options: {
|
|
4181
4272
|
showLegend: !0,
|
|
@@ -4324,7 +4415,11 @@ function Ki(e) {
|
|
|
4324
4415
|
};
|
|
4325
4416
|
}
|
|
4326
4417
|
function Gi(e) {
|
|
4327
|
-
const t = {
|
|
4418
|
+
const t = {
|
|
4419
|
+
high: "var(--nice-danger, #ef4444)",
|
|
4420
|
+
medium: "var(--nice-warning, #f59e0b)",
|
|
4421
|
+
low: "var(--nice-success, #10b981)"
|
|
4422
|
+
}, n = e.risks.slice(0, 5).flatMap((i, o) => [
|
|
4328
4423
|
{
|
|
4329
4424
|
id: `risk-card-${o}`,
|
|
4330
4425
|
type: "shape",
|
|
@@ -4557,7 +4652,12 @@ function Zi(e) {
|
|
|
4557
4652
|
content: {
|
|
4558
4653
|
type: "text",
|
|
4559
4654
|
text: t.headcount.toString(),
|
|
4560
|
-
style: {
|
|
4655
|
+
style: {
|
|
4656
|
+
fontSize: 36,
|
|
4657
|
+
fontWeight: 700,
|
|
4658
|
+
color: "var(--nice-text, #1f2937)",
|
|
4659
|
+
textAlign: "center"
|
|
4660
|
+
}
|
|
4561
4661
|
}
|
|
4562
4662
|
},
|
|
4563
4663
|
{
|
|
@@ -4567,7 +4667,11 @@ function Zi(e) {
|
|
|
4567
4667
|
content: {
|
|
4568
4668
|
type: "text",
|
|
4569
4669
|
text: "Total Headcount",
|
|
4570
|
-
style: {
|
|
4670
|
+
style: {
|
|
4671
|
+
fontSize: 12,
|
|
4672
|
+
color: "var(--nice-text-secondary, #6b7280)",
|
|
4673
|
+
textAlign: "center"
|
|
4674
|
+
}
|
|
4571
4675
|
}
|
|
4572
4676
|
},
|
|
4573
4677
|
// New hires card
|
|
@@ -4598,7 +4702,12 @@ function Zi(e) {
|
|
|
4598
4702
|
content: {
|
|
4599
4703
|
type: "text",
|
|
4600
4704
|
text: `+${t.newHires || 0}`,
|
|
4601
|
-
style: {
|
|
4705
|
+
style: {
|
|
4706
|
+
fontSize: 36,
|
|
4707
|
+
fontWeight: 700,
|
|
4708
|
+
color: "var(--nice-success, #10b981)",
|
|
4709
|
+
textAlign: "center"
|
|
4710
|
+
}
|
|
4602
4711
|
}
|
|
4603
4712
|
},
|
|
4604
4713
|
{
|
|
@@ -4608,7 +4717,11 @@ function Zi(e) {
|
|
|
4608
4717
|
content: {
|
|
4609
4718
|
type: "text",
|
|
4610
4719
|
text: "New Hires",
|
|
4611
|
-
style: {
|
|
4720
|
+
style: {
|
|
4721
|
+
fontSize: 12,
|
|
4722
|
+
color: "var(--nice-text-secondary, #6b7280)",
|
|
4723
|
+
textAlign: "center"
|
|
4724
|
+
}
|
|
4612
4725
|
}
|
|
4613
4726
|
},
|
|
4614
4727
|
// Departures card
|
|
@@ -4639,7 +4752,12 @@ function Zi(e) {
|
|
|
4639
4752
|
content: {
|
|
4640
4753
|
type: "text",
|
|
4641
4754
|
text: `-${t.departures || 0}`,
|
|
4642
|
-
style: {
|
|
4755
|
+
style: {
|
|
4756
|
+
fontSize: 36,
|
|
4757
|
+
fontWeight: 700,
|
|
4758
|
+
color: "var(--nice-warning, #f59e0b)",
|
|
4759
|
+
textAlign: "center"
|
|
4760
|
+
}
|
|
4643
4761
|
}
|
|
4644
4762
|
},
|
|
4645
4763
|
{
|
|
@@ -4649,7 +4767,11 @@ function Zi(e) {
|
|
|
4649
4767
|
content: {
|
|
4650
4768
|
type: "text",
|
|
4651
4769
|
text: "Departures",
|
|
4652
|
-
style: {
|
|
4770
|
+
style: {
|
|
4771
|
+
fontSize: 12,
|
|
4772
|
+
color: "var(--nice-text-secondary, #6b7280)",
|
|
4773
|
+
textAlign: "center"
|
|
4774
|
+
}
|
|
4653
4775
|
}
|
|
4654
4776
|
},
|
|
4655
4777
|
// Highlights
|
|
@@ -4836,16 +4958,49 @@ function Vr() {
|
|
|
4836
4958
|
]
|
|
4837
4959
|
},
|
|
4838
4960
|
risks: [
|
|
4839
|
-
{
|
|
4840
|
-
|
|
4841
|
-
|
|
4961
|
+
{
|
|
4962
|
+
name: "Supply chain delays",
|
|
4963
|
+
impact: "high",
|
|
4964
|
+
probability: "medium",
|
|
4965
|
+
mitigation: "Diversifying suppliers and increasing inventory buffer",
|
|
4966
|
+
owner: "Operations"
|
|
4967
|
+
},
|
|
4968
|
+
{
|
|
4969
|
+
name: "Key talent retention",
|
|
4970
|
+
impact: "high",
|
|
4971
|
+
probability: "low",
|
|
4972
|
+
mitigation: "Competitive compensation review and career development programs",
|
|
4973
|
+
owner: "HR"
|
|
4974
|
+
},
|
|
4975
|
+
{
|
|
4976
|
+
name: "Market competition",
|
|
4977
|
+
impact: "medium",
|
|
4978
|
+
probability: "high",
|
|
4979
|
+
mitigation: "Accelerating product innovation and customer loyalty programs",
|
|
4980
|
+
owner: "Product"
|
|
4981
|
+
}
|
|
4842
4982
|
],
|
|
4843
4983
|
plan: [
|
|
4844
|
-
{
|
|
4984
|
+
{
|
|
4985
|
+
goal: "Launch v2.0 platform",
|
|
4986
|
+
status: "on-track",
|
|
4987
|
+
dueDate: "Q1 2025",
|
|
4988
|
+
owner: "Engineering"
|
|
4989
|
+
},
|
|
4845
4990
|
{ goal: "Expand to EMEA market", status: "at-risk", dueDate: "Q2 2025", owner: "Sales" },
|
|
4846
4991
|
{ goal: "Achieve SOC2 certification", status: "completed", owner: "Security" },
|
|
4847
|
-
{
|
|
4848
|
-
|
|
4992
|
+
{
|
|
4993
|
+
goal: "Implement AI-powered support",
|
|
4994
|
+
status: "on-track",
|
|
4995
|
+
dueDate: "Q1 2025",
|
|
4996
|
+
owner: "Support"
|
|
4997
|
+
},
|
|
4998
|
+
{
|
|
4999
|
+
goal: "Reduce customer churn by 15%",
|
|
5000
|
+
status: "on-track",
|
|
5001
|
+
dueDate: "Q4 2024",
|
|
5002
|
+
owner: "Customer Success"
|
|
5003
|
+
}
|
|
4849
5004
|
],
|
|
4850
5005
|
team: {
|
|
4851
5006
|
headcount: 156,
|
|
@@ -4951,7 +5106,12 @@ function no(e) {
|
|
|
4951
5106
|
content: {
|
|
4952
5107
|
type: "text",
|
|
4953
5108
|
text: n.title,
|
|
4954
|
-
style: {
|
|
5109
|
+
style: {
|
|
5110
|
+
fontSize: 20,
|
|
5111
|
+
fontWeight: 600,
|
|
5112
|
+
color: "var(--nice-text, #1f2937)",
|
|
5113
|
+
textAlign: "center"
|
|
5114
|
+
}
|
|
4955
5115
|
}
|
|
4956
5116
|
},
|
|
4957
5117
|
{
|
|
@@ -4961,7 +5121,12 @@ function no(e) {
|
|
|
4961
5121
|
content: {
|
|
4962
5122
|
type: "text",
|
|
4963
5123
|
text: n.description,
|
|
4964
|
-
style: {
|
|
5124
|
+
style: {
|
|
5125
|
+
fontSize: 14,
|
|
5126
|
+
color: "var(--nice-text-secondary, #6b7280)",
|
|
5127
|
+
textAlign: "center",
|
|
5128
|
+
lineHeight: 1.4
|
|
5129
|
+
}
|
|
4965
5130
|
}
|
|
4966
5131
|
}
|
|
4967
5132
|
]);
|
|
@@ -5208,22 +5373,29 @@ function ro(e) {
|
|
|
5208
5373
|
},
|
|
5209
5374
|
animation: { effect: "slideInUp", durationMs: 500, delayMs: 200 + i * 150 }
|
|
5210
5375
|
},
|
|
5211
|
-
...o ? [
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5376
|
+
...o ? [
|
|
5377
|
+
{
|
|
5378
|
+
id: `pricing-badge-${i}`,
|
|
5379
|
+
type: "text",
|
|
5380
|
+
position: {
|
|
5381
|
+
x: 10 + i * 32,
|
|
5382
|
+
y: r + 2,
|
|
5383
|
+
width: 19,
|
|
5384
|
+
height: 4,
|
|
5385
|
+
unit: "percent"
|
|
5386
|
+
},
|
|
5387
|
+
content: {
|
|
5388
|
+
type: "text",
|
|
5389
|
+
text: "⭐ POPULAR",
|
|
5390
|
+
style: {
|
|
5391
|
+
fontSize: 12,
|
|
5392
|
+
fontWeight: 700,
|
|
5393
|
+
color: "var(--nice-warning-light, #fcd34d)",
|
|
5394
|
+
textAlign: "center"
|
|
5395
|
+
}
|
|
5396
|
+
}
|
|
5225
5397
|
}
|
|
5226
|
-
|
|
5398
|
+
] : [],
|
|
5227
5399
|
{
|
|
5228
5400
|
id: `pricing-name-${i}`,
|
|
5229
5401
|
type: "text",
|
|
@@ -5380,22 +5552,24 @@ function ao(e) {
|
|
|
5380
5552
|
},
|
|
5381
5553
|
animation: { effect: "zoomIn", durationMs: 700, delayMs: 0 }
|
|
5382
5554
|
},
|
|
5383
|
-
...e.cta.subheadline ? [
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
position: { x: 15, y: 48, width: 70, height: 10, unit: "percent" },
|
|
5387
|
-
content: {
|
|
5555
|
+
...e.cta.subheadline ? [
|
|
5556
|
+
{
|
|
5557
|
+
id: "cta-subheadline",
|
|
5388
5558
|
type: "text",
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5559
|
+
position: { x: 15, y: 48, width: 70, height: 10, unit: "percent" },
|
|
5560
|
+
content: {
|
|
5561
|
+
type: "text",
|
|
5562
|
+
text: e.cta.subheadline,
|
|
5563
|
+
style: {
|
|
5564
|
+
fontSize: 24,
|
|
5565
|
+
color: "var(--nice-primary-bg, #bfdbfe)",
|
|
5566
|
+
textAlign: "center",
|
|
5567
|
+
lineHeight: 1.4
|
|
5568
|
+
}
|
|
5569
|
+
},
|
|
5570
|
+
animation: { effect: "fadeIn", durationMs: 500, delayMs: 500 }
|
|
5571
|
+
}
|
|
5572
|
+
] : [],
|
|
5399
5573
|
{
|
|
5400
5574
|
id: "cta-button",
|
|
5401
5575
|
type: "shape",
|
|
@@ -5423,28 +5597,40 @@ function ao(e) {
|
|
|
5423
5597
|
}
|
|
5424
5598
|
}
|
|
5425
5599
|
},
|
|
5426
|
-
...e.cta.contactEmail ? [
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
position: { x: 20, y: 82, width: 60, height: 6, unit: "percent" },
|
|
5430
|
-
content: {
|
|
5600
|
+
...e.cta.contactEmail ? [
|
|
5601
|
+
{
|
|
5602
|
+
id: "cta-contact",
|
|
5431
5603
|
type: "text",
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5604
|
+
position: { x: 20, y: 82, width: 60, height: 6, unit: "percent" },
|
|
5605
|
+
content: {
|
|
5606
|
+
type: "text",
|
|
5607
|
+
text: `📧 ${e.cta.contactEmail}`,
|
|
5608
|
+
style: {
|
|
5609
|
+
fontSize: 18,
|
|
5610
|
+
color: "var(--nice-primary-light, #93c5fd)",
|
|
5611
|
+
textAlign: "center"
|
|
5612
|
+
}
|
|
5613
|
+
},
|
|
5614
|
+
animation: { effect: "fadeIn", durationMs: 400, delayMs: 1e3 }
|
|
5615
|
+
}
|
|
5616
|
+
] : [],
|
|
5617
|
+
...e.cta.websiteUrl ? [
|
|
5618
|
+
{
|
|
5619
|
+
id: "cta-website",
|
|
5442
5620
|
type: "text",
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5621
|
+
position: { x: 20, y: 88, width: 60, height: 5, unit: "percent" },
|
|
5622
|
+
content: {
|
|
5623
|
+
type: "text",
|
|
5624
|
+
text: `🌐 ${e.cta.websiteUrl}`,
|
|
5625
|
+
style: {
|
|
5626
|
+
fontSize: 16,
|
|
5627
|
+
color: "var(--nice-primary-light, #93c5fd)",
|
|
5628
|
+
textAlign: "center"
|
|
5629
|
+
}
|
|
5630
|
+
},
|
|
5631
|
+
animation: { effect: "fadeIn", durationMs: 400, delayMs: 1100 }
|
|
5632
|
+
}
|
|
5633
|
+
] : []
|
|
5448
5634
|
],
|
|
5449
5635
|
notes: "Strong call to action. Make it easy for them to take the next step.",
|
|
5450
5636
|
durationMs: 6e4
|
|
@@ -5581,9 +5767,21 @@ function jr() {
|
|
|
5581
5767
|
headline: "Automate in minutes, not months",
|
|
5582
5768
|
description: "FlowSync connects your existing tools and automates workflows with AI-powered intelligence. No coding required.",
|
|
5583
5769
|
keyBenefits: [
|
|
5584
|
-
{
|
|
5585
|
-
|
|
5586
|
-
|
|
5770
|
+
{
|
|
5771
|
+
title: "Easy Setup",
|
|
5772
|
+
description: "Connect apps in seconds with 200+ integrations",
|
|
5773
|
+
icon: "🔌"
|
|
5774
|
+
},
|
|
5775
|
+
{
|
|
5776
|
+
title: "AI-Powered",
|
|
5777
|
+
description: "Smart automation that learns from your workflows",
|
|
5778
|
+
icon: "🧠"
|
|
5779
|
+
},
|
|
5780
|
+
{
|
|
5781
|
+
title: "Real-time Insights",
|
|
5782
|
+
description: "Dashboard with live metrics and bottleneck detection",
|
|
5783
|
+
icon: "📊"
|
|
5784
|
+
}
|
|
5587
5785
|
]
|
|
5588
5786
|
},
|
|
5589
5787
|
demo: {
|
|
@@ -5596,10 +5794,19 @@ function jr() {
|
|
|
5596
5794
|
]
|
|
5597
5795
|
},
|
|
5598
5796
|
features: [
|
|
5599
|
-
{
|
|
5797
|
+
{
|
|
5798
|
+
name: "Visual Builder",
|
|
5799
|
+
description: "Intuitive drag-and-drop workflow design",
|
|
5800
|
+
icon: "🎨",
|
|
5801
|
+
highlight: !0
|
|
5802
|
+
},
|
|
5600
5803
|
{ name: "200+ Integrations", description: "Connect to popular apps instantly", icon: "🔗" },
|
|
5601
5804
|
{ name: "AI Suggestions", description: "Get smart automation recommendations", icon: "🤖" },
|
|
5602
|
-
{
|
|
5805
|
+
{
|
|
5806
|
+
name: "Real-time Monitoring",
|
|
5807
|
+
description: "Track all workflows in one dashboard",
|
|
5808
|
+
icon: "📈"
|
|
5809
|
+
},
|
|
5603
5810
|
{ name: "Enterprise Security", description: "SOC2 compliant, encrypted data", icon: "🔒" },
|
|
5604
5811
|
{ name: "24/7 Support", description: "Expert help whenever you need it", icon: "💬" }
|
|
5605
5812
|
],
|
|
@@ -5617,7 +5824,13 @@ function jr() {
|
|
|
5617
5824
|
name: "Professional",
|
|
5618
5825
|
price: 99,
|
|
5619
5826
|
period: "month",
|
|
5620
|
-
features: [
|
|
5827
|
+
features: [
|
|
5828
|
+
"Unlimited workflows",
|
|
5829
|
+
"50,000 runs/month",
|
|
5830
|
+
"All integrations",
|
|
5831
|
+
"Priority support",
|
|
5832
|
+
"AI suggestions"
|
|
5833
|
+
],
|
|
5621
5834
|
highlighted: !0,
|
|
5622
5835
|
cta: "Try 14 Days Free"
|
|
5623
5836
|
},
|
|
@@ -5625,7 +5838,13 @@ function jr() {
|
|
|
5625
5838
|
name: "Enterprise",
|
|
5626
5839
|
price: "custom",
|
|
5627
5840
|
period: "month",
|
|
5628
|
-
features: [
|
|
5841
|
+
features: [
|
|
5842
|
+
"Everything in Pro",
|
|
5843
|
+
"Unlimited runs",
|
|
5844
|
+
"Dedicated support",
|
|
5845
|
+
"Custom integrations",
|
|
5846
|
+
"SLA guarantee"
|
|
5847
|
+
],
|
|
5629
5848
|
cta: "Contact Sales"
|
|
5630
5849
|
}
|
|
5631
5850
|
]
|
|
@@ -5640,7 +5859,9 @@ function jr() {
|
|
|
5640
5859
|
};
|
|
5641
5860
|
}
|
|
5642
5861
|
function co(e) {
|
|
5643
|
-
const t = Math.round(
|
|
5862
|
+
const t = Math.round(
|
|
5863
|
+
e.completed.totalPoints / e.completed.committedPoints * 100
|
|
5864
|
+
);
|
|
5644
5865
|
return {
|
|
5645
5866
|
id: "slide-title",
|
|
5646
5867
|
title: "Sprint Review",
|
|
@@ -5661,7 +5882,12 @@ function co(e) {
|
|
|
5661
5882
|
content: {
|
|
5662
5883
|
type: "text",
|
|
5663
5884
|
text: `Sprint ${e.sprint.number} Review`,
|
|
5664
|
-
style: {
|
|
5885
|
+
style: {
|
|
5886
|
+
fontSize: 64,
|
|
5887
|
+
fontWeight: 700,
|
|
5888
|
+
color: "var(--nice-bg, #fff)",
|
|
5889
|
+
textAlign: "center"
|
|
5890
|
+
}
|
|
5665
5891
|
},
|
|
5666
5892
|
animation: { effect: "fadeIn", durationMs: 600, delayMs: 0 }
|
|
5667
5893
|
},
|
|
@@ -5799,7 +6025,13 @@ function uo(e) {
|
|
|
5799
6025
|
return {
|
|
5800
6026
|
id: `story-${i}`,
|
|
5801
6027
|
type: "text",
|
|
5802
|
-
position: {
|
|
6028
|
+
position: {
|
|
6029
|
+
x: 5 + r * 48,
|
|
6030
|
+
y: 22 + o * 9,
|
|
6031
|
+
width: 44,
|
|
6032
|
+
height: 7,
|
|
6033
|
+
unit: "percent"
|
|
6034
|
+
},
|
|
5803
6035
|
content: {
|
|
5804
6036
|
type: "text",
|
|
5805
6037
|
text: `${a} ${n.key}: ${n.title}`,
|
|
@@ -5836,7 +6068,12 @@ function uo(e) {
|
|
|
5836
6068
|
content: {
|
|
5837
6069
|
type: "text",
|
|
5838
6070
|
text: `${e.completed.totalPoints} / ${e.completed.committedPoints} pts`,
|
|
5839
|
-
style: {
|
|
6071
|
+
style: {
|
|
6072
|
+
fontSize: 32,
|
|
6073
|
+
fontWeight: 700,
|
|
6074
|
+
color: "var(--nice-success, #059669)",
|
|
6075
|
+
textAlign: "right"
|
|
6076
|
+
}
|
|
5840
6077
|
},
|
|
5841
6078
|
animation: { effect: "zoomIn", durationMs: 500, delayMs: 200 }
|
|
5842
6079
|
},
|
|
@@ -5848,7 +6085,11 @@ function uo(e) {
|
|
|
5848
6085
|
content: {
|
|
5849
6086
|
type: "text",
|
|
5850
6087
|
text: "✨ Feature | 🐛 Bug Fix | 🔧 Tech Debt | 🔬 Spike",
|
|
5851
|
-
style: {
|
|
6088
|
+
style: {
|
|
6089
|
+
fontSize: 14,
|
|
6090
|
+
color: "var(--nice-text-secondary, #6b7280)",
|
|
6091
|
+
textAlign: "center"
|
|
6092
|
+
}
|
|
5852
6093
|
},
|
|
5853
6094
|
animation: { effect: "fadeIn", durationMs: 400, delayMs: 1200 }
|
|
5854
6095
|
}
|
|
@@ -5858,12 +6099,21 @@ function uo(e) {
|
|
|
5858
6099
|
};
|
|
5859
6100
|
}
|
|
5860
6101
|
function po(e) {
|
|
5861
|
-
const t = Math.max(
|
|
6102
|
+
const t = Math.max(
|
|
6103
|
+
...e.velocity.history.map((o) => o.points),
|
|
6104
|
+
e.velocity.current
|
|
6105
|
+
), n = e.velocity.history.slice(-5).map((o, r) => {
|
|
5862
6106
|
const a = o.points / t * 45;
|
|
5863
6107
|
return {
|
|
5864
6108
|
id: `bar-${r}`,
|
|
5865
6109
|
type: "shape",
|
|
5866
|
-
position: {
|
|
6110
|
+
position: {
|
|
6111
|
+
x: 10 + r * 16,
|
|
6112
|
+
y: 75 - a,
|
|
6113
|
+
width: 12,
|
|
6114
|
+
height: a,
|
|
6115
|
+
unit: "percent"
|
|
6116
|
+
},
|
|
5867
6117
|
content: {
|
|
5868
6118
|
type: "shape",
|
|
5869
6119
|
shape: "roundedRect",
|
|
@@ -5894,7 +6144,13 @@ function po(e) {
|
|
|
5894
6144
|
{
|
|
5895
6145
|
id: "current-bar",
|
|
5896
6146
|
type: "shape",
|
|
5897
|
-
position: {
|
|
6147
|
+
position: {
|
|
6148
|
+
x: 10 + e.velocity.history.slice(-5).length * 16,
|
|
6149
|
+
y: 75 - i,
|
|
6150
|
+
width: 12,
|
|
6151
|
+
height: i,
|
|
6152
|
+
unit: "percent"
|
|
6153
|
+
},
|
|
5898
6154
|
content: {
|
|
5899
6155
|
type: "shape",
|
|
5900
6156
|
shape: "roundedRect",
|
|
@@ -5906,21 +6162,43 @@ function po(e) {
|
|
|
5906
6162
|
{
|
|
5907
6163
|
id: "current-label",
|
|
5908
6164
|
type: "text",
|
|
5909
|
-
position: {
|
|
6165
|
+
position: {
|
|
6166
|
+
x: 10 + e.velocity.history.slice(-5).length * 16,
|
|
6167
|
+
y: 77,
|
|
6168
|
+
width: 12,
|
|
6169
|
+
height: 6,
|
|
6170
|
+
unit: "percent"
|
|
6171
|
+
},
|
|
5910
6172
|
content: {
|
|
5911
6173
|
type: "text",
|
|
5912
6174
|
text: `S${e.sprint.number}`,
|
|
5913
|
-
style: {
|
|
6175
|
+
style: {
|
|
6176
|
+
fontSize: 14,
|
|
6177
|
+
color: "var(--nice-primary-dark, #1E3A8A)",
|
|
6178
|
+
fontWeight: 600,
|
|
6179
|
+
textAlign: "center"
|
|
6180
|
+
}
|
|
5914
6181
|
}
|
|
5915
6182
|
},
|
|
5916
6183
|
{
|
|
5917
6184
|
id: "current-value",
|
|
5918
6185
|
type: "text",
|
|
5919
|
-
position: {
|
|
6186
|
+
position: {
|
|
6187
|
+
x: 10 + e.velocity.history.slice(-5).length * 16,
|
|
6188
|
+
y: 70 - i,
|
|
6189
|
+
width: 12,
|
|
6190
|
+
height: 5,
|
|
6191
|
+
unit: "percent"
|
|
6192
|
+
},
|
|
5920
6193
|
content: {
|
|
5921
6194
|
type: "text",
|
|
5922
6195
|
text: `${e.velocity.current}`,
|
|
5923
|
-
style: {
|
|
6196
|
+
style: {
|
|
6197
|
+
fontSize: 18,
|
|
6198
|
+
color: "var(--nice-primary, #3b82f6)",
|
|
6199
|
+
fontWeight: 700,
|
|
6200
|
+
textAlign: "center"
|
|
6201
|
+
}
|
|
5924
6202
|
}
|
|
5925
6203
|
},
|
|
5926
6204
|
{
|
|
@@ -5994,7 +6272,11 @@ function fo(e) {
|
|
|
5994
6272
|
content: {
|
|
5995
6273
|
type: "text",
|
|
5996
6274
|
text: "✅ Resolved | 🔄 Ongoing | 🚨 Escalated",
|
|
5997
|
-
style: {
|
|
6275
|
+
style: {
|
|
6276
|
+
fontSize: 14,
|
|
6277
|
+
color: "var(--nice-text-secondary, #6b7280)",
|
|
6278
|
+
textAlign: "center"
|
|
6279
|
+
}
|
|
5998
6280
|
}
|
|
5999
6281
|
}
|
|
6000
6282
|
],
|
|
@@ -6078,7 +6360,12 @@ function mo(e) {
|
|
|
6078
6360
|
content: {
|
|
6079
6361
|
type: "text",
|
|
6080
6362
|
text: `Capacity: ${e.nextSprint.capacity} pts`,
|
|
6081
|
-
style: {
|
|
6363
|
+
style: {
|
|
6364
|
+
fontSize: 20,
|
|
6365
|
+
fontWeight: 600,
|
|
6366
|
+
color: "var(--nice-success, #059669)",
|
|
6367
|
+
textAlign: "right"
|
|
6368
|
+
}
|
|
6082
6369
|
},
|
|
6083
6370
|
animation: { effect: "fadeIn", durationMs: 400, delayMs: 200 }
|
|
6084
6371
|
}
|
|
@@ -6148,22 +6435,61 @@ function Yr() {
|
|
|
6148
6435
|
},
|
|
6149
6436
|
completed: {
|
|
6150
6437
|
stories: [
|
|
6151
|
-
{
|
|
6152
|
-
|
|
6153
|
-
|
|
6438
|
+
{
|
|
6439
|
+
key: "AUTH-123",
|
|
6440
|
+
title: "OAuth2 integration",
|
|
6441
|
+
points: 8,
|
|
6442
|
+
assignee: "Sarah",
|
|
6443
|
+
type: "feature",
|
|
6444
|
+
demo: !0
|
|
6445
|
+
},
|
|
6446
|
+
{
|
|
6447
|
+
key: "AUTH-124",
|
|
6448
|
+
title: "Password reset flow",
|
|
6449
|
+
points: 5,
|
|
6450
|
+
assignee: "Mike",
|
|
6451
|
+
type: "feature",
|
|
6452
|
+
demo: !0
|
|
6453
|
+
},
|
|
6454
|
+
{
|
|
6455
|
+
key: "DASH-45",
|
|
6456
|
+
title: "Query optimization",
|
|
6457
|
+
points: 8,
|
|
6458
|
+
assignee: "Sarah",
|
|
6459
|
+
type: "tech-debt"
|
|
6460
|
+
},
|
|
6154
6461
|
{ key: "DASH-46", title: "Caching layer", points: 5, assignee: "Mike", type: "feature" },
|
|
6155
6462
|
{ key: "BUG-89", title: "Login timeout issue", points: 3, assignee: "Emily", type: "bug" },
|
|
6156
|
-
{
|
|
6463
|
+
{
|
|
6464
|
+
key: "BUG-90",
|
|
6465
|
+
title: "Memory leak in charts",
|
|
6466
|
+
points: 5,
|
|
6467
|
+
assignee: "Emily",
|
|
6468
|
+
type: "bug"
|
|
6469
|
+
}
|
|
6157
6470
|
],
|
|
6158
6471
|
totalPoints: 34,
|
|
6159
6472
|
committedPoints: 40
|
|
6160
6473
|
},
|
|
6161
6474
|
notCompleted: [
|
|
6162
|
-
{
|
|
6475
|
+
{
|
|
6476
|
+
key: "AUTH-125",
|
|
6477
|
+
title: "MFA implementation",
|
|
6478
|
+
points: 6,
|
|
6479
|
+
reason: "Blocked by security review"
|
|
6480
|
+
}
|
|
6163
6481
|
],
|
|
6164
6482
|
demos: [
|
|
6165
|
-
{
|
|
6166
|
-
|
|
6483
|
+
{
|
|
6484
|
+
title: "OAuth2 Login",
|
|
6485
|
+
description: "Full OAuth2 flow with Google and GitHub",
|
|
6486
|
+
presenter: "Sarah"
|
|
6487
|
+
},
|
|
6488
|
+
{
|
|
6489
|
+
title: "Password Reset",
|
|
6490
|
+
description: "Email-based password reset with security tokens",
|
|
6491
|
+
presenter: "Mike"
|
|
6492
|
+
}
|
|
6167
6493
|
],
|
|
6168
6494
|
velocity: {
|
|
6169
6495
|
current: 34,
|
|
@@ -6183,7 +6509,11 @@ function Yr() {
|
|
|
6183
6509
|
cycleTime: 4.2
|
|
6184
6510
|
},
|
|
6185
6511
|
impediments: [
|
|
6186
|
-
{
|
|
6512
|
+
{
|
|
6513
|
+
description: "Security review delayed MFA implementation",
|
|
6514
|
+
status: "ongoing",
|
|
6515
|
+
owner: "Security Team"
|
|
6516
|
+
},
|
|
6187
6517
|
{ description: "CI pipeline slow - 45min builds", status: "resolved", owner: "DevOps" }
|
|
6188
6518
|
],
|
|
6189
6519
|
nextSprint: {
|
|
@@ -6219,7 +6549,12 @@ function ho(e) {
|
|
|
6219
6549
|
content: {
|
|
6220
6550
|
type: "text",
|
|
6221
6551
|
text: e.project.name,
|
|
6222
|
-
style: {
|
|
6552
|
+
style: {
|
|
6553
|
+
fontSize: 64,
|
|
6554
|
+
fontWeight: 700,
|
|
6555
|
+
color: "var(--nice-bg, #fff)",
|
|
6556
|
+
textAlign: "center"
|
|
6557
|
+
}
|
|
6223
6558
|
},
|
|
6224
6559
|
animation: { effect: "fadeIn", durationMs: 600, delayMs: 0 }
|
|
6225
6560
|
},
|
|
@@ -6252,7 +6587,12 @@ function ho(e) {
|
|
|
6252
6587
|
content: {
|
|
6253
6588
|
type: "text",
|
|
6254
6589
|
text: e.project.description,
|
|
6255
|
-
style: {
|
|
6590
|
+
style: {
|
|
6591
|
+
fontSize: 18,
|
|
6592
|
+
color: "var(--nice-border, #cbd5e1)",
|
|
6593
|
+
textAlign: "center",
|
|
6594
|
+
lineHeight: 1.5
|
|
6595
|
+
}
|
|
6256
6596
|
},
|
|
6257
6597
|
animation: { effect: "fadeIn", durationMs: 400, delayMs: 700 }
|
|
6258
6598
|
},
|
|
@@ -6264,7 +6604,11 @@ function ho(e) {
|
|
|
6264
6604
|
content: {
|
|
6265
6605
|
type: "text",
|
|
6266
6606
|
text: `Team: ${e.project.team}`,
|
|
6267
|
-
style: {
|
|
6607
|
+
style: {
|
|
6608
|
+
fontSize: 16,
|
|
6609
|
+
color: "var(--nice-text-secondary, #64748b)",
|
|
6610
|
+
textAlign: "center"
|
|
6611
|
+
}
|
|
6268
6612
|
}
|
|
6269
6613
|
}
|
|
6270
6614
|
] : []
|
|
@@ -6296,7 +6640,12 @@ function yo(e) {
|
|
|
6296
6640
|
content: {
|
|
6297
6641
|
type: "text",
|
|
6298
6642
|
text: n.value,
|
|
6299
|
-
style: {
|
|
6643
|
+
style: {
|
|
6644
|
+
fontSize: 32,
|
|
6645
|
+
fontWeight: 700,
|
|
6646
|
+
color: "var(--nice-primary-light, #60a5fa)",
|
|
6647
|
+
textAlign: "center"
|
|
6648
|
+
}
|
|
6300
6649
|
}
|
|
6301
6650
|
},
|
|
6302
6651
|
{
|
|
@@ -6306,7 +6655,11 @@ function yo(e) {
|
|
|
6306
6655
|
content: {
|
|
6307
6656
|
type: "text",
|
|
6308
6657
|
text: n.label,
|
|
6309
|
-
style: {
|
|
6658
|
+
style: {
|
|
6659
|
+
fontSize: 14,
|
|
6660
|
+
color: "var(--nice-text-muted, #94a3b8)",
|
|
6661
|
+
textAlign: "center"
|
|
6662
|
+
}
|
|
6310
6663
|
}
|
|
6311
6664
|
}
|
|
6312
6665
|
]).flat();
|
|
@@ -6359,7 +6712,11 @@ function yo(e) {
|
|
|
6359
6712
|
content: {
|
|
6360
6713
|
type: "text",
|
|
6361
6714
|
text: "📊 System Diagram",
|
|
6362
|
-
style: {
|
|
6715
|
+
style: {
|
|
6716
|
+
fontSize: 18,
|
|
6717
|
+
color: "var(--nice-text-secondary, #64748b)",
|
|
6718
|
+
textAlign: "center"
|
|
6719
|
+
}
|
|
6363
6720
|
}
|
|
6364
6721
|
},
|
|
6365
6722
|
...t
|
|
@@ -6502,7 +6859,12 @@ function vo(e) {
|
|
|
6502
6859
|
{ key: "frontend", label: "Frontend", icon: "🖥️", color: "var(--nice-primary, #3b82f6)" },
|
|
6503
6860
|
{ key: "backend", label: "Backend", icon: "⚙️", color: "var(--nice-success, #10b981)" },
|
|
6504
6861
|
{ key: "database", label: "Database", icon: "🗄️", color: "var(--nice-warning, #f59e0b)" },
|
|
6505
|
-
{
|
|
6862
|
+
{
|
|
6863
|
+
key: "infrastructure",
|
|
6864
|
+
label: "Infrastructure",
|
|
6865
|
+
icon: "☁️",
|
|
6866
|
+
color: "var(--nice-accent, #8b5cf6)"
|
|
6867
|
+
}
|
|
6506
6868
|
].flatMap((i, o) => {
|
|
6507
6869
|
const r = e.techStack[i.key];
|
|
6508
6870
|
if (!r || r.length === 0)
|
|
@@ -6589,7 +6951,12 @@ function xo(e) {
|
|
|
6589
6951
|
type: "text",
|
|
6590
6952
|
text: `${n.icon || "☁️"} ${n.name}
|
|
6591
6953
|
${n.purpose}`,
|
|
6592
|
-
style: {
|
|
6954
|
+
style: {
|
|
6955
|
+
fontSize: 14,
|
|
6956
|
+
color: "var(--nice-border, #cbd5e1)",
|
|
6957
|
+
textAlign: "center",
|
|
6958
|
+
lineHeight: 1.4
|
|
6959
|
+
}
|
|
6593
6960
|
},
|
|
6594
6961
|
animation: { effect: "zoomIn", durationMs: 300, delayMs: 400 + i * 80 }
|
|
6595
6962
|
};
|
|
@@ -6637,7 +7004,11 @@ ${n.purpose}`,
|
|
|
6637
7004
|
content: {
|
|
6638
7005
|
type: "text",
|
|
6639
7006
|
text: `🌍 Regions: ${e.infrastructure.regions.join(", ")}`,
|
|
6640
|
-
style: {
|
|
7007
|
+
style: {
|
|
7008
|
+
fontSize: 18,
|
|
7009
|
+
color: "var(--nice-text-muted, #94a3b8)",
|
|
7010
|
+
textAlign: "right"
|
|
7011
|
+
}
|
|
6641
7012
|
},
|
|
6642
7013
|
animation: { effect: "fadeIn", durationMs: 400, delayMs: 300 }
|
|
6643
7014
|
}
|
|
@@ -6663,7 +7034,11 @@ ${n.purpose}`,
|
|
|
6663
7034
|
content: {
|
|
6664
7035
|
type: "text",
|
|
6665
7036
|
text: "🏗️ Infrastructure Diagram",
|
|
6666
|
-
style: {
|
|
7037
|
+
style: {
|
|
7038
|
+
fontSize: 16,
|
|
7039
|
+
color: "var(--nice-text-secondary, #64748b)",
|
|
7040
|
+
textAlign: "center"
|
|
7041
|
+
}
|
|
6667
7042
|
}
|
|
6668
7043
|
},
|
|
6669
7044
|
...t
|
|
@@ -6687,7 +7062,11 @@ function bo(e) {
|
|
|
6687
7062
|
content: {
|
|
6688
7063
|
type: "text",
|
|
6689
7064
|
text: "Security details to be added",
|
|
6690
|
-
style: {
|
|
7065
|
+
style: {
|
|
7066
|
+
fontSize: 24,
|
|
7067
|
+
color: "var(--nice-text-secondary, #64748b)",
|
|
7068
|
+
textAlign: "center"
|
|
7069
|
+
}
|
|
6691
7070
|
}
|
|
6692
7071
|
}
|
|
6693
7072
|
],
|
|
@@ -6954,7 +7333,12 @@ function wo(e) {
|
|
|
6954
7333
|
content: {
|
|
6955
7334
|
type: "text",
|
|
6956
7335
|
text: `Welcome to ${e.company.name}! 🎉`,
|
|
6957
|
-
style: {
|
|
7336
|
+
style: {
|
|
7337
|
+
fontSize: 56,
|
|
7338
|
+
fontWeight: 700,
|
|
7339
|
+
color: "var(--nice-bg, #fff)",
|
|
7340
|
+
textAlign: "center"
|
|
7341
|
+
}
|
|
6958
7342
|
},
|
|
6959
7343
|
animation: { effect: "zoomIn", durationMs: 700, delayMs: 0 }
|
|
6960
7344
|
},
|
|
@@ -6965,7 +7349,12 @@ function wo(e) {
|
|
|
6965
7349
|
content: {
|
|
6966
7350
|
type: "text",
|
|
6967
7351
|
text: e.newHire.name,
|
|
6968
|
-
style: {
|
|
7352
|
+
style: {
|
|
7353
|
+
fontSize: 48,
|
|
7354
|
+
fontWeight: 600,
|
|
7355
|
+
color: "var(--nice-bg, #fff)",
|
|
7356
|
+
textAlign: "center"
|
|
7357
|
+
}
|
|
6969
7358
|
},
|
|
6970
7359
|
animation: { effect: "fadeIn", durationMs: 600, delayMs: 400 }
|
|
6971
7360
|
},
|
|
@@ -7002,16 +7391,23 @@ function wo(e) {
|
|
|
7002
7391
|
},
|
|
7003
7392
|
animation: { effect: "fadeIn", durationMs: 400, delayMs: 900 }
|
|
7004
7393
|
},
|
|
7005
|
-
...e.company.tagline ? [
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
position: { x: 15, y: 88, width: 70, height: 5, unit: "percent" },
|
|
7009
|
-
content: {
|
|
7394
|
+
...e.company.tagline ? [
|
|
7395
|
+
{
|
|
7396
|
+
id: "welcome-tagline",
|
|
7010
7397
|
type: "text",
|
|
7011
|
-
|
|
7012
|
-
|
|
7398
|
+
position: { x: 15, y: 88, width: 70, height: 5, unit: "percent" },
|
|
7399
|
+
content: {
|
|
7400
|
+
type: "text",
|
|
7401
|
+
text: `"${e.company.tagline}"`,
|
|
7402
|
+
style: {
|
|
7403
|
+
fontSize: 18,
|
|
7404
|
+
fontStyle: "italic",
|
|
7405
|
+
color: "var(--nice-accent-bg, #ede9fe)",
|
|
7406
|
+
textAlign: "center"
|
|
7407
|
+
}
|
|
7408
|
+
}
|
|
7013
7409
|
}
|
|
7014
|
-
|
|
7410
|
+
] : []
|
|
7015
7411
|
],
|
|
7016
7412
|
notes: "Warm welcome! Make the new hire feel excited to join.",
|
|
7017
7413
|
durationMs: 3e4
|
|
@@ -7024,7 +7420,13 @@ function So(e) {
|
|
|
7024
7420
|
{
|
|
7025
7421
|
id: `value-card-${i}`,
|
|
7026
7422
|
type: "shape",
|
|
7027
|
-
position: {
|
|
7423
|
+
position: {
|
|
7424
|
+
x: 5 + o * 48,
|
|
7425
|
+
y: 45 + r * 27,
|
|
7426
|
+
width: 44,
|
|
7427
|
+
height: 24,
|
|
7428
|
+
unit: "percent"
|
|
7429
|
+
},
|
|
7028
7430
|
content: {
|
|
7029
7431
|
type: "shape",
|
|
7030
7432
|
shape: "roundedRect",
|
|
@@ -7038,7 +7440,13 @@ function So(e) {
|
|
|
7038
7440
|
{
|
|
7039
7441
|
id: `value-icon-${i}`,
|
|
7040
7442
|
type: "text",
|
|
7041
|
-
position: {
|
|
7443
|
+
position: {
|
|
7444
|
+
x: 8 + o * 48,
|
|
7445
|
+
y: 48 + r * 27,
|
|
7446
|
+
width: 8,
|
|
7447
|
+
height: 10,
|
|
7448
|
+
unit: "percent"
|
|
7449
|
+
},
|
|
7042
7450
|
content: {
|
|
7043
7451
|
type: "text",
|
|
7044
7452
|
text: n.icon || "✨",
|
|
@@ -7048,7 +7456,13 @@ function So(e) {
|
|
|
7048
7456
|
{
|
|
7049
7457
|
id: `value-name-${i}`,
|
|
7050
7458
|
type: "text",
|
|
7051
|
-
position: {
|
|
7459
|
+
position: {
|
|
7460
|
+
x: 17 + o * 48,
|
|
7461
|
+
y: 49 + r * 27,
|
|
7462
|
+
width: 30,
|
|
7463
|
+
height: 6,
|
|
7464
|
+
unit: "percent"
|
|
7465
|
+
},
|
|
7052
7466
|
content: {
|
|
7053
7467
|
type: "text",
|
|
7054
7468
|
text: n.name,
|
|
@@ -7058,7 +7472,13 @@ function So(e) {
|
|
|
7058
7472
|
{
|
|
7059
7473
|
id: `value-desc-${i}`,
|
|
7060
7474
|
type: "text",
|
|
7061
|
-
position: {
|
|
7475
|
+
position: {
|
|
7476
|
+
x: 8 + o * 48,
|
|
7477
|
+
y: 58 + r * 27,
|
|
7478
|
+
width: 38,
|
|
7479
|
+
height: 10,
|
|
7480
|
+
unit: "percent"
|
|
7481
|
+
},
|
|
7062
7482
|
content: {
|
|
7063
7483
|
type: "text",
|
|
7064
7484
|
text: n.description,
|
|
@@ -7118,13 +7538,24 @@ function ko(e) {
|
|
|
7118
7538
|
return {
|
|
7119
7539
|
id: `member-${i}`,
|
|
7120
7540
|
type: "text",
|
|
7121
|
-
position: {
|
|
7541
|
+
position: {
|
|
7542
|
+
x: 5 + o * 24,
|
|
7543
|
+
y: 40 + r * 25,
|
|
7544
|
+
width: 22,
|
|
7545
|
+
height: 22,
|
|
7546
|
+
unit: "percent"
|
|
7547
|
+
},
|
|
7122
7548
|
content: {
|
|
7123
7549
|
type: "text",
|
|
7124
7550
|
text: `👤
|
|
7125
7551
|
${n.name}
|
|
7126
7552
|
${n.role}`,
|
|
7127
|
-
style: {
|
|
7553
|
+
style: {
|
|
7554
|
+
fontSize: 14,
|
|
7555
|
+
color: "var(--nice-text, #374151)",
|
|
7556
|
+
textAlign: "center",
|
|
7557
|
+
lineHeight: 1.6
|
|
7558
|
+
}
|
|
7128
7559
|
},
|
|
7129
7560
|
animation: { effect: "zoomIn", durationMs: 300, delayMs: 400 + i * 80 }
|
|
7130
7561
|
};
|
|
@@ -7157,26 +7588,30 @@ ${n.role}`,
|
|
|
7157
7588
|
},
|
|
7158
7589
|
animation: { effect: "fadeIn", durationMs: 400, delayMs: 200 }
|
|
7159
7590
|
},
|
|
7160
|
-
...e.newHire.manager ? [
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
position: { x: 5, y: 32, width: 45, height: 6, unit: "percent" },
|
|
7164
|
-
content: {
|
|
7591
|
+
...e.newHire.manager ? [
|
|
7592
|
+
{
|
|
7593
|
+
id: "team-manager",
|
|
7165
7594
|
type: "text",
|
|
7166
|
-
|
|
7167
|
-
|
|
7595
|
+
position: { x: 5, y: 32, width: 45, height: 6, unit: "percent" },
|
|
7596
|
+
content: {
|
|
7597
|
+
type: "text",
|
|
7598
|
+
text: `📋 Manager: ${e.newHire.manager}`,
|
|
7599
|
+
style: { fontSize: 18, color: "var(--nice-success, #059669)" }
|
|
7600
|
+
}
|
|
7168
7601
|
}
|
|
7169
|
-
|
|
7170
|
-
...e.newHire.buddy ? [
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
position: { x: 50, y: 32, width: 45, height: 6, unit: "percent" },
|
|
7174
|
-
content: {
|
|
7602
|
+
] : [],
|
|
7603
|
+
...e.newHire.buddy ? [
|
|
7604
|
+
{
|
|
7605
|
+
id: "team-buddy",
|
|
7175
7606
|
type: "text",
|
|
7176
|
-
|
|
7177
|
-
|
|
7607
|
+
position: { x: 50, y: 32, width: 45, height: 6, unit: "percent" },
|
|
7608
|
+
content: {
|
|
7609
|
+
type: "text",
|
|
7610
|
+
text: `🤝 Onboarding Buddy: ${e.newHire.buddy}`,
|
|
7611
|
+
style: { fontSize: 18, color: "var(--nice-success, #059669)" }
|
|
7612
|
+
}
|
|
7178
7613
|
}
|
|
7179
|
-
|
|
7614
|
+
] : [],
|
|
7180
7615
|
...t
|
|
7181
7616
|
],
|
|
7182
7617
|
notes: "Introduce team members. Share their roles and how to reach them.",
|
|
@@ -7253,7 +7688,11 @@ function Io(e) {
|
|
|
7253
7688
|
content: {
|
|
7254
7689
|
type: "text",
|
|
7255
7690
|
text: "💡 IT will help set up your accounts. Contact IT Support if you have issues.",
|
|
7256
|
-
style: {
|
|
7691
|
+
style: {
|
|
7692
|
+
fontSize: 16,
|
|
7693
|
+
color: "var(--nice-text-secondary, #6b7280)",
|
|
7694
|
+
textAlign: "center"
|
|
7695
|
+
}
|
|
7257
7696
|
},
|
|
7258
7697
|
animation: { effect: "fadeIn", durationMs: 400, delayMs: 1e3 }
|
|
7259
7698
|
}
|
|
@@ -7262,7 +7701,7 @@ function Io(e) {
|
|
|
7262
7701
|
durationMs: 6e4
|
|
7263
7702
|
};
|
|
7264
7703
|
}
|
|
7265
|
-
function
|
|
7704
|
+
function zo(e) {
|
|
7266
7705
|
const t = e.firstTasks.slice(0, 5).flatMap((n, i) => [
|
|
7267
7706
|
{
|
|
7268
7707
|
id: `day-header-${i}`,
|
|
@@ -7271,7 +7710,12 @@ function Mo(e) {
|
|
|
7271
7710
|
content: {
|
|
7272
7711
|
type: "text",
|
|
7273
7712
|
text: `Day ${n.day}`,
|
|
7274
|
-
style: {
|
|
7713
|
+
style: {
|
|
7714
|
+
fontSize: 20,
|
|
7715
|
+
fontWeight: 700,
|
|
7716
|
+
color: "var(--nice-accent-dark, #6d28d9)",
|
|
7717
|
+
textAlign: "center"
|
|
7718
|
+
}
|
|
7275
7719
|
},
|
|
7276
7720
|
animation: { effect: "fadeIn", durationMs: 400, delayMs: 200 + i * 100 }
|
|
7277
7721
|
},
|
|
@@ -7292,7 +7736,13 @@ function Mo(e) {
|
|
|
7292
7736
|
...n.tasks.slice(0, 4).map((o, r) => ({
|
|
7293
7737
|
id: `task-${i}-${r}`,
|
|
7294
7738
|
type: "text",
|
|
7295
|
-
position: {
|
|
7739
|
+
position: {
|
|
7740
|
+
x: 6 + i * 19,
|
|
7741
|
+
y: 35 + r * 12,
|
|
7742
|
+
width: 15,
|
|
7743
|
+
height: 10,
|
|
7744
|
+
unit: "percent"
|
|
7745
|
+
},
|
|
7296
7746
|
content: {
|
|
7297
7747
|
type: "text",
|
|
7298
7748
|
text: `☐ ${o.task}`,
|
|
@@ -7323,7 +7773,7 @@ function Mo(e) {
|
|
|
7323
7773
|
durationMs: 9e4
|
|
7324
7774
|
};
|
|
7325
7775
|
}
|
|
7326
|
-
function
|
|
7776
|
+
function Mo(e) {
|
|
7327
7777
|
const t = [];
|
|
7328
7778
|
let n = 0;
|
|
7329
7779
|
return e.contacts.hr && (t.push({
|
|
@@ -7335,7 +7785,12 @@ function Co(e) {
|
|
|
7335
7785
|
text: `👥 HR
|
|
7336
7786
|
${e.contacts.hr.name}
|
|
7337
7787
|
${e.contacts.hr.email}`,
|
|
7338
|
-
style: {
|
|
7788
|
+
style: {
|
|
7789
|
+
fontSize: 18,
|
|
7790
|
+
color: "var(--nice-text, #374151)",
|
|
7791
|
+
textAlign: "center",
|
|
7792
|
+
lineHeight: 1.8
|
|
7793
|
+
}
|
|
7339
7794
|
},
|
|
7340
7795
|
animation: { effect: "zoomIn", durationMs: 400, delayMs: 400 }
|
|
7341
7796
|
}), n++), e.contacts.it && (t.push({
|
|
@@ -7347,7 +7802,12 @@ ${e.contacts.hr.email}`,
|
|
|
7347
7802
|
text: `💻 IT Support
|
|
7348
7803
|
${e.contacts.it.name}
|
|
7349
7804
|
${e.contacts.it.email}`,
|
|
7350
|
-
style: {
|
|
7805
|
+
style: {
|
|
7806
|
+
fontSize: 18,
|
|
7807
|
+
color: "var(--nice-text, #374151)",
|
|
7808
|
+
textAlign: "center",
|
|
7809
|
+
lineHeight: 1.8
|
|
7810
|
+
}
|
|
7351
7811
|
},
|
|
7352
7812
|
animation: { effect: "zoomIn", durationMs: 400, delayMs: 500 }
|
|
7353
7813
|
}), n++), e.contacts.facilities && t.push({
|
|
@@ -7359,7 +7819,12 @@ ${e.contacts.it.email}`,
|
|
|
7359
7819
|
text: `🏢 Facilities
|
|
7360
7820
|
${e.contacts.facilities.name}
|
|
7361
7821
|
${e.contacts.facilities.email}`,
|
|
7362
|
-
style: {
|
|
7822
|
+
style: {
|
|
7823
|
+
fontSize: 18,
|
|
7824
|
+
color: "var(--nice-text, #374151)",
|
|
7825
|
+
textAlign: "center",
|
|
7826
|
+
lineHeight: 1.8
|
|
7827
|
+
}
|
|
7363
7828
|
},
|
|
7364
7829
|
animation: { effect: "zoomIn", durationMs: 400, delayMs: 600 }
|
|
7365
7830
|
}), {
|
|
@@ -7405,7 +7870,12 @@ ${e.contacts.facilities.email}`,
|
|
|
7405
7870
|
content: {
|
|
7406
7871
|
type: "text",
|
|
7407
7872
|
text: "We're excited to have you on the team! 🚀",
|
|
7408
|
-
style: {
|
|
7873
|
+
style: {
|
|
7874
|
+
fontSize: 28,
|
|
7875
|
+
fontWeight: 600,
|
|
7876
|
+
color: "var(--nice-bg, #fff)",
|
|
7877
|
+
textAlign: "center"
|
|
7878
|
+
}
|
|
7409
7879
|
},
|
|
7410
7880
|
animation: { effect: "zoomIn", durationMs: 600, delayMs: 800 }
|
|
7411
7881
|
}
|
|
@@ -7425,8 +7895,8 @@ function Gr(e) {
|
|
|
7425
7895
|
So(e),
|
|
7426
7896
|
ko(e),
|
|
7427
7897
|
Io(e),
|
|
7428
|
-
|
|
7429
|
-
|
|
7898
|
+
zo(e),
|
|
7899
|
+
Mo(e)
|
|
7430
7900
|
],
|
|
7431
7901
|
theme: {
|
|
7432
7902
|
colors: {
|
|
@@ -7474,10 +7944,26 @@ function Jr() {
|
|
|
7474
7944
|
culture: {
|
|
7475
7945
|
mission: "To empower developers worldwide with tools that make their work more productive, enjoyable, and impactful.",
|
|
7476
7946
|
values: [
|
|
7477
|
-
{
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
|
|
7947
|
+
{
|
|
7948
|
+
name: "Innovation",
|
|
7949
|
+
description: "We embrace new ideas and technologies to solve problems in creative ways.",
|
|
7950
|
+
icon: "💡"
|
|
7951
|
+
},
|
|
7952
|
+
{
|
|
7953
|
+
name: "Collaboration",
|
|
7954
|
+
description: "Great things happen when we work together. We value every voice.",
|
|
7955
|
+
icon: "🤝"
|
|
7956
|
+
},
|
|
7957
|
+
{
|
|
7958
|
+
name: "Quality",
|
|
7959
|
+
description: "We take pride in our craft and deliver excellence in everything we do.",
|
|
7960
|
+
icon: "⭐"
|
|
7961
|
+
},
|
|
7962
|
+
{
|
|
7963
|
+
name: "Growth",
|
|
7964
|
+
description: "We invest in learning and support each other's professional development.",
|
|
7965
|
+
icon: "🌱"
|
|
7966
|
+
}
|
|
7481
7967
|
]
|
|
7482
7968
|
},
|
|
7483
7969
|
team: {
|
|
@@ -7506,24 +7992,78 @@ function Jr() {
|
|
|
7506
7992
|
{ name: "Zoom", purpose: "Video meetings", icon: "📹", priority: "recommended" }
|
|
7507
7993
|
],
|
|
7508
7994
|
processes: [
|
|
7509
|
-
{
|
|
7995
|
+
{
|
|
7996
|
+
name: "Daily Standup",
|
|
7997
|
+
description: "15min sync every morning at 9:30am",
|
|
7998
|
+
frequency: "Daily"
|
|
7999
|
+
},
|
|
7510
8000
|
{ name: "Sprint Planning", description: "Plan upcoming sprint work", frequency: "Bi-weekly" },
|
|
7511
8001
|
{ name: "Code Review", description: "All PRs require 2 approvals", frequency: "Per PR" },
|
|
7512
|
-
{
|
|
8002
|
+
{
|
|
8003
|
+
name: "1:1 with Manager",
|
|
8004
|
+
description: "Regular check-in with your manager",
|
|
8005
|
+
frequency: "Weekly"
|
|
8006
|
+
}
|
|
7513
8007
|
],
|
|
7514
8008
|
firstTasks: [
|
|
7515
|
-
{
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
8009
|
+
{
|
|
8010
|
+
day: 1,
|
|
8011
|
+
tasks: [
|
|
8012
|
+
{ task: "Complete HR paperwork" },
|
|
8013
|
+
{ task: "Set up laptop" },
|
|
8014
|
+
{ task: "Join Slack channels" },
|
|
8015
|
+
{ task: "Meet your buddy" }
|
|
8016
|
+
]
|
|
8017
|
+
},
|
|
8018
|
+
{
|
|
8019
|
+
day: 2,
|
|
8020
|
+
tasks: [
|
|
8021
|
+
{ task: "Dev environment setup" },
|
|
8022
|
+
{ task: "Read team docs" },
|
|
8023
|
+
{ task: "Shadow code review" },
|
|
8024
|
+
{ task: "Team lunch 🍕" }
|
|
8025
|
+
]
|
|
8026
|
+
},
|
|
8027
|
+
{
|
|
8028
|
+
day: 3,
|
|
8029
|
+
tasks: [
|
|
8030
|
+
{ task: "First small PR" },
|
|
8031
|
+
{ task: "Attend standup" },
|
|
8032
|
+
{ task: "Architecture overview" },
|
|
8033
|
+
{ task: "1:1 with manager" }
|
|
8034
|
+
]
|
|
8035
|
+
},
|
|
8036
|
+
{
|
|
8037
|
+
day: 4,
|
|
8038
|
+
tasks: [
|
|
8039
|
+
{ task: "Deep-dive session" },
|
|
8040
|
+
{ task: "Continue coding" },
|
|
8041
|
+
{ task: "Ask questions!" }
|
|
8042
|
+
]
|
|
8043
|
+
},
|
|
8044
|
+
{
|
|
8045
|
+
day: 5,
|
|
8046
|
+
tasks: [
|
|
8047
|
+
{ task: "Week 1 retro" },
|
|
8048
|
+
{ task: "Set goals for week 2" },
|
|
8049
|
+
{ task: "Friday demo" }
|
|
8050
|
+
]
|
|
8051
|
+
}
|
|
7520
8052
|
],
|
|
7521
8053
|
resources: [
|
|
7522
8054
|
{
|
|
7523
8055
|
category: "Engineering",
|
|
7524
8056
|
items: [
|
|
7525
|
-
{
|
|
7526
|
-
|
|
8057
|
+
{
|
|
8058
|
+
name: "Engineering Handbook",
|
|
8059
|
+
url: "notion.so/engineering",
|
|
8060
|
+
description: "Our engineering practices"
|
|
8061
|
+
},
|
|
8062
|
+
{
|
|
8063
|
+
name: "Architecture Docs",
|
|
8064
|
+
url: "notion.so/architecture",
|
|
8065
|
+
description: "System design docs"
|
|
8066
|
+
}
|
|
7527
8067
|
]
|
|
7528
8068
|
}
|
|
7529
8069
|
],
|
|
@@ -7534,7 +8074,7 @@ function Jr() {
|
|
|
7534
8074
|
}
|
|
7535
8075
|
};
|
|
7536
8076
|
}
|
|
7537
|
-
function
|
|
8077
|
+
function Co(e) {
|
|
7538
8078
|
return {
|
|
7539
8079
|
P1: "var(--nice-danger-dark, #dc2626)",
|
|
7540
8080
|
P2: "var(--nice-warning, #f59e0b)",
|
|
@@ -7551,7 +8091,7 @@ function $o(e) {
|
|
|
7551
8091
|
}[e] || "Unknown";
|
|
7552
8092
|
}
|
|
7553
8093
|
function Ao(e) {
|
|
7554
|
-
const t =
|
|
8094
|
+
const t = Co(e.incident.severity);
|
|
7555
8095
|
return {
|
|
7556
8096
|
id: "slide-title",
|
|
7557
8097
|
title: "Incident Report",
|
|
@@ -7577,7 +8117,12 @@ function Ao(e) {
|
|
|
7577
8117
|
content: {
|
|
7578
8118
|
type: "text",
|
|
7579
8119
|
text: `${e.incident.severity} - ${$o(e.incident.severity)}`,
|
|
7580
|
-
style: {
|
|
8120
|
+
style: {
|
|
8121
|
+
fontSize: 24,
|
|
8122
|
+
fontWeight: 700,
|
|
8123
|
+
color: "var(--nice-bg, #fff)",
|
|
8124
|
+
textAlign: "center"
|
|
8125
|
+
}
|
|
7581
8126
|
}
|
|
7582
8127
|
},
|
|
7583
8128
|
{
|
|
@@ -7588,7 +8133,13 @@ function Ao(e) {
|
|
|
7588
8133
|
type: "text",
|
|
7589
8134
|
text: `Incident Report:
|
|
7590
8135
|
${e.incident.title}`,
|
|
7591
|
-
style: {
|
|
8136
|
+
style: {
|
|
8137
|
+
fontSize: 44,
|
|
8138
|
+
fontWeight: 700,
|
|
8139
|
+
color: "var(--nice-bg-secondary, #f8fafc)",
|
|
8140
|
+
textAlign: "center",
|
|
8141
|
+
lineHeight: 1.3
|
|
8142
|
+
}
|
|
7592
8143
|
},
|
|
7593
8144
|
animation: { effect: "fadeIn", durationMs: 600, delayMs: 200 }
|
|
7594
8145
|
},
|
|
@@ -7630,16 +8181,22 @@ ${e.incident.title}`,
|
|
|
7630
8181
|
},
|
|
7631
8182
|
animation: { effect: "fadeIn", durationMs: 400, delayMs: 600 }
|
|
7632
8183
|
},
|
|
7633
|
-
...e.incident.commander ? [
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
position: { x: 30, y: 80, width: 40, height: 5, unit: "percent" },
|
|
7637
|
-
content: {
|
|
8184
|
+
...e.incident.commander ? [
|
|
8185
|
+
{
|
|
8186
|
+
id: "title-commander",
|
|
7638
8187
|
type: "text",
|
|
7639
|
-
|
|
7640
|
-
|
|
8188
|
+
position: { x: 30, y: 80, width: 40, height: 5, unit: "percent" },
|
|
8189
|
+
content: {
|
|
8190
|
+
type: "text",
|
|
8191
|
+
text: `Incident Commander: ${e.incident.commander}`,
|
|
8192
|
+
style: {
|
|
8193
|
+
fontSize: 16,
|
|
8194
|
+
color: "var(--nice-text-secondary, #64748b)",
|
|
8195
|
+
textAlign: "center"
|
|
8196
|
+
}
|
|
8197
|
+
}
|
|
7641
8198
|
}
|
|
7642
|
-
|
|
8199
|
+
] : []
|
|
7643
8200
|
],
|
|
7644
8201
|
notes: "Set the context. State severity and basic facts.",
|
|
7645
8202
|
durationMs: 3e4
|
|
@@ -7820,7 +8377,11 @@ function To(e) {
|
|
|
7820
8377
|
content: {
|
|
7821
8378
|
type: "text",
|
|
7822
8379
|
text: "🔍 Detection | 🚨 Escalation | ⚡ Action | ✅ Resolution | 📢 Communication",
|
|
7823
|
-
style: {
|
|
8380
|
+
style: {
|
|
8381
|
+
fontSize: 12,
|
|
8382
|
+
color: "var(--nice-text-secondary, #64748b)",
|
|
8383
|
+
textAlign: "center"
|
|
8384
|
+
}
|
|
7824
8385
|
}
|
|
7825
8386
|
}
|
|
7826
8387
|
],
|
|
@@ -7840,7 +8401,12 @@ function Eo(e) {
|
|
|
7840
8401
|
text: `👥
|
|
7841
8402
|
${e.impact.usersAffected}
|
|
7842
8403
|
Users Affected`,
|
|
7843
|
-
style: {
|
|
8404
|
+
style: {
|
|
8405
|
+
fontSize: 18,
|
|
8406
|
+
color: "var(--nice-danger-light, #f87171)",
|
|
8407
|
+
textAlign: "center",
|
|
8408
|
+
lineHeight: 1.8
|
|
8409
|
+
}
|
|
7844
8410
|
},
|
|
7845
8411
|
animation: { effect: "zoomIn", durationMs: 400, delayMs: 300 + n * 100 }
|
|
7846
8412
|
}), n++), e.impact.revenueImpact && (t.push({
|
|
@@ -7852,7 +8418,12 @@ Users Affected`,
|
|
|
7852
8418
|
text: `💰
|
|
7853
8419
|
${e.impact.revenueImpact}
|
|
7854
8420
|
Revenue Impact`,
|
|
7855
|
-
style: {
|
|
8421
|
+
style: {
|
|
8422
|
+
fontSize: 18,
|
|
8423
|
+
color: "var(--nice-warning-light, #fbbf24)",
|
|
8424
|
+
textAlign: "center",
|
|
8425
|
+
lineHeight: 1.8
|
|
8426
|
+
}
|
|
7856
8427
|
},
|
|
7857
8428
|
animation: { effect: "zoomIn", durationMs: 400, delayMs: 300 + n * 100 }
|
|
7858
8429
|
}), n++), e.impact.slaViolation !== void 0 && (t.push({
|
|
@@ -7864,14 +8435,25 @@ Revenue Impact`,
|
|
|
7864
8435
|
text: `📋
|
|
7865
8436
|
${e.impact.slaViolation ? "Yes" : "No"}
|
|
7866
8437
|
SLA Violation`,
|
|
7867
|
-
style: {
|
|
8438
|
+
style: {
|
|
8439
|
+
fontSize: 18,
|
|
8440
|
+
color: e.impact.slaViolation ? "var(--nice-danger-light, #f87171)" : "var(--nice-success-light, #4ade80)",
|
|
8441
|
+
textAlign: "center",
|
|
8442
|
+
lineHeight: 1.8
|
|
8443
|
+
}
|
|
7868
8444
|
},
|
|
7869
8445
|
animation: { effect: "zoomIn", durationMs: 400, delayMs: 300 + n * 100 }
|
|
7870
8446
|
}), n++);
|
|
7871
8447
|
const i = e.impact.affectedServices.slice(0, 6).map((o, r) => ({
|
|
7872
8448
|
id: `impact-svc-${r}`,
|
|
7873
8449
|
type: "text",
|
|
7874
|
-
position: {
|
|
8450
|
+
position: {
|
|
8451
|
+
x: 5 + r % 3 * 32,
|
|
8452
|
+
y: 55 + Math.floor(r / 3) * 10,
|
|
8453
|
+
width: 30,
|
|
8454
|
+
height: 8,
|
|
8455
|
+
unit: "percent"
|
|
8456
|
+
},
|
|
7875
8457
|
content: {
|
|
7876
8458
|
type: "text",
|
|
7877
8459
|
text: `⚠️ ${o}`,
|
|
@@ -7909,17 +8491,19 @@ SLA Violation`,
|
|
|
7909
8491
|
animation: { effect: "fadeIn", durationMs: 400, delayMs: 500 }
|
|
7910
8492
|
},
|
|
7911
8493
|
...i,
|
|
7912
|
-
...e.impact.dataLoss ? [
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
position: { x: 5, y: 80, width: 90, height: 10, unit: "percent" },
|
|
7916
|
-
content: {
|
|
8494
|
+
...e.impact.dataLoss ? [
|
|
8495
|
+
{
|
|
8496
|
+
id: "impact-dataloss",
|
|
7917
8497
|
type: "text",
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
8498
|
+
position: { x: 5, y: 80, width: 90, height: 10, unit: "percent" },
|
|
8499
|
+
content: {
|
|
8500
|
+
type: "text",
|
|
8501
|
+
text: `📊 Data Loss: ${e.impact.dataLoss}`,
|
|
8502
|
+
style: { fontSize: 18, color: "var(--nice-danger-light, #f87171)" }
|
|
8503
|
+
},
|
|
8504
|
+
animation: { effect: "fadeIn", durationMs: 400, delayMs: 900 }
|
|
8505
|
+
}
|
|
8506
|
+
] : []
|
|
7923
8507
|
],
|
|
7924
8508
|
notes: "Quantify the impact. Be specific about affected users and services.",
|
|
7925
8509
|
durationMs: 6e4
|
|
@@ -8093,7 +8677,11 @@ function Po(e) {
|
|
|
8093
8677
|
content: {
|
|
8094
8678
|
type: "text",
|
|
8095
8679
|
text: "✅ Done | 🔄 In Progress | 📋 Planned || 🔴 High | 🟡 Medium | 🟢 Low",
|
|
8096
|
-
style: {
|
|
8680
|
+
style: {
|
|
8681
|
+
fontSize: 12,
|
|
8682
|
+
color: "var(--nice-text-secondary, #64748b)",
|
|
8683
|
+
textAlign: "center"
|
|
8684
|
+
}
|
|
8097
8685
|
}
|
|
8098
8686
|
}
|
|
8099
8687
|
],
|
|
@@ -8203,7 +8791,11 @@ function ea() {
|
|
|
8203
8791
|
resolution: "Database connection pool limits were increased, and a connection leak in the payment service was identified and fixed."
|
|
8204
8792
|
},
|
|
8205
8793
|
timeline: [
|
|
8206
|
-
{
|
|
8794
|
+
{
|
|
8795
|
+
time: "14:23",
|
|
8796
|
+
event: "Automated alert: Payment service error rate >5%",
|
|
8797
|
+
type: "detection"
|
|
8798
|
+
},
|
|
8207
8799
|
{ time: "14:25", event: "On-call engineer acknowledges alert", type: "action" },
|
|
8208
8800
|
{ time: "14:32", event: "Incident declared, Emily Chen as IC", type: "escalation" },
|
|
8209
8801
|
{ time: "14:35", event: "Status page updated", type: "communication" },
|
|
@@ -8248,14 +8840,42 @@ function ea() {
|
|
|
8248
8840
|
remediation: {
|
|
8249
8841
|
immediate: [
|
|
8250
8842
|
{ action: "Increase connection pool size", owner: "Platform Team", status: "done" },
|
|
8251
|
-
{
|
|
8252
|
-
|
|
8843
|
+
{
|
|
8844
|
+
action: "Fix connection leak in payment service",
|
|
8845
|
+
owner: "Payments Team",
|
|
8846
|
+
status: "done"
|
|
8847
|
+
},
|
|
8848
|
+
{
|
|
8849
|
+
action: "Add connection pool metrics to dashboard",
|
|
8850
|
+
owner: "SRE Team",
|
|
8851
|
+
status: "in-progress"
|
|
8852
|
+
}
|
|
8253
8853
|
],
|
|
8254
8854
|
longTerm: [
|
|
8255
|
-
{
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8855
|
+
{
|
|
8856
|
+
action: "Implement automated connection leak detection",
|
|
8857
|
+
owner: "Platform Team",
|
|
8858
|
+
priority: "high",
|
|
8859
|
+
dueDate: "Q2 2024"
|
|
8860
|
+
},
|
|
8861
|
+
{
|
|
8862
|
+
action: "Update code review checklist",
|
|
8863
|
+
owner: "Engineering Leads",
|
|
8864
|
+
priority: "medium",
|
|
8865
|
+
dueDate: "April 2024"
|
|
8866
|
+
},
|
|
8867
|
+
{
|
|
8868
|
+
action: "Improve runbooks for database issues",
|
|
8869
|
+
owner: "SRE Team",
|
|
8870
|
+
priority: "medium",
|
|
8871
|
+
dueDate: "April 2024"
|
|
8872
|
+
},
|
|
8873
|
+
{
|
|
8874
|
+
action: "Add integration tests for connection handling",
|
|
8875
|
+
owner: "Payments Team",
|
|
8876
|
+
priority: "high",
|
|
8877
|
+
dueDate: "Q2 2024"
|
|
8878
|
+
}
|
|
8259
8879
|
]
|
|
8260
8880
|
},
|
|
8261
8881
|
lessons: [
|
|
@@ -8354,7 +8974,13 @@ const ia = {
|
|
|
8354
8974
|
background: "var(--nice-text, #0f172a)",
|
|
8355
8975
|
text: "var(--nice-border, #e2e8f0)",
|
|
8356
8976
|
heading: "var(--nice-bg, #fff)",
|
|
8357
|
-
palette: [
|
|
8977
|
+
palette: [
|
|
8978
|
+
"var(--nice-info, #6366f1)",
|
|
8979
|
+
"var(--nice-accent, #8b5cf6)",
|
|
8980
|
+
"var(--nice-info, #06b6d4)",
|
|
8981
|
+
"var(--nice-success, #10b981)",
|
|
8982
|
+
"var(--nice-warning, #f59e0b)"
|
|
8983
|
+
]
|
|
8358
8984
|
},
|
|
8359
8985
|
fonts: {
|
|
8360
8986
|
heading: "Inter, sans-serif",
|
|
@@ -8371,7 +8997,13 @@ const ia = {
|
|
|
8371
8997
|
background: "var(--nice-bg, #fff)",
|
|
8372
8998
|
text: "var(--nice-bg-secondary, #2d3748)",
|
|
8373
8999
|
heading: "var(--nice-primary-dark, #1a365d)",
|
|
8374
|
-
palette: [
|
|
9000
|
+
palette: [
|
|
9001
|
+
"var(--nice-primary-dark, #1a365d)",
|
|
9002
|
+
"var(--nice-primary, #2b6cb0)",
|
|
9003
|
+
"#4299E1",
|
|
9004
|
+
"var(--nice-warning, #ed8936)",
|
|
9005
|
+
"#48BB78"
|
|
9006
|
+
]
|
|
8375
9007
|
},
|
|
8376
9008
|
fonts: {
|
|
8377
9009
|
heading: "Georgia, serif",
|
|
@@ -8388,7 +9020,13 @@ const ia = {
|
|
|
8388
9020
|
background: "var(--nice-bg-secondary, #fafafa)",
|
|
8389
9021
|
text: "var(--nice-text, #374151)",
|
|
8390
9022
|
heading: "var(--nice-text, #111827)",
|
|
8391
|
-
palette: [
|
|
9023
|
+
palette: [
|
|
9024
|
+
"var(--nice-accent, #7c3aed)",
|
|
9025
|
+
"var(--nice-accent-pink, #ec4899)",
|
|
9026
|
+
"var(--nice-success-light, #34d399)",
|
|
9027
|
+
"var(--nice-warning, #f59e0b)",
|
|
9028
|
+
"var(--nice-primary, #3b82f6)"
|
|
9029
|
+
]
|
|
8392
9030
|
},
|
|
8393
9031
|
fonts: {
|
|
8394
9032
|
heading: "Poppins, sans-serif",
|
|
@@ -8718,7 +9356,9 @@ function Wo({
|
|
|
8718
9356
|
case "gradient": {
|
|
8719
9357
|
const o = e.gradient;
|
|
8720
9358
|
if (!o)
|
|
8721
|
-
return P.createElement("div", {
|
|
9359
|
+
return P.createElement("div", {
|
|
9360
|
+
style: { ...i, backgroundColor: "var(--nice-text, #000000)" }
|
|
9361
|
+
});
|
|
8722
9362
|
const r = o.stops.map((s) => `${s.color} ${s.position * 100}%`).join(", "), a = o.type === "radial" ? `radial-gradient(circle, ${r})` : `linear-gradient(${o.angle || 180}deg, ${r})`;
|
|
8723
9363
|
return P.createElement("div", {
|
|
8724
9364
|
style: { ...i, background: a }
|
|
@@ -8771,7 +9411,9 @@ function Wo({
|
|
|
8771
9411
|
);
|
|
8772
9412
|
}
|
|
8773
9413
|
default:
|
|
8774
|
-
return P.createElement("div", {
|
|
9414
|
+
return P.createElement("div", {
|
|
9415
|
+
style: { ...i, backgroundColor: "var(--nice-text, #000000)" }
|
|
9416
|
+
});
|
|
8775
9417
|
}
|
|
8776
9418
|
}
|
|
8777
9419
|
function Lo({
|
|
@@ -9103,7 +9745,13 @@ function Uo({
|
|
|
9103
9745
|
{ style: f },
|
|
9104
9746
|
t && P.createElement(
|
|
9105
9747
|
"div",
|
|
9106
|
-
{
|
|
9748
|
+
{
|
|
9749
|
+
style: {
|
|
9750
|
+
fontWeight: "bold",
|
|
9751
|
+
marginBottom: 8,
|
|
9752
|
+
color: "var(--nice-primary-light, #60a5fa)"
|
|
9753
|
+
}
|
|
9754
|
+
},
|
|
9107
9755
|
t
|
|
9108
9756
|
),
|
|
9109
9757
|
P.createElement("div", null, d)
|
|
@@ -9667,8 +10315,8 @@ function Ko(e) {
|
|
|
9667
10315
|
return R;
|
|
9668
10316
|
const j = R.currentTime + I * R.playbackSpeed, D = (v == null ? void 0 : v.duration) ?? 0;
|
|
9669
10317
|
if (j >= D) {
|
|
9670
|
-
const
|
|
9671
|
-
return
|
|
10318
|
+
const z = R.currentSceneIndex + 1;
|
|
10319
|
+
return z >= t.scenes.length ? R.loop ? ((Y = e.onSceneChange) == null || Y.call(e, 0, t.scenes[0]), {
|
|
9672
10320
|
...R,
|
|
9673
10321
|
currentSceneIndex: 0,
|
|
9674
10322
|
currentTime: 0
|
|
@@ -9677,9 +10325,9 @@ function Ko(e) {
|
|
|
9677
10325
|
isPlaying: !1,
|
|
9678
10326
|
isPaused: !1,
|
|
9679
10327
|
currentTime: D
|
|
9680
|
-
}) : ((G = e.onSceneChange) == null || G.call(e,
|
|
10328
|
+
}) : ((G = e.onSceneChange) == null || G.call(e, z, t.scenes[z]), {
|
|
9681
10329
|
...R,
|
|
9682
|
-
currentSceneIndex:
|
|
10330
|
+
currentSceneIndex: z,
|
|
9683
10331
|
currentTime: 0
|
|
9684
10332
|
});
|
|
9685
10333
|
}
|
|
@@ -9778,7 +10426,7 @@ function Ko(e) {
|
|
|
9778
10426
|
L(a.currentSceneIndex + 1);
|
|
9779
10427
|
}, [a.currentSceneIndex, L]), F = A(() => {
|
|
9780
10428
|
L(a.currentSceneIndex - 1);
|
|
9781
|
-
}, [a.currentSceneIndex, L]),
|
|
10429
|
+
}, [a.currentSceneIndex, L]), M = A((b) => {
|
|
9782
10430
|
s((I) => ({
|
|
9783
10431
|
...I,
|
|
9784
10432
|
loop: b
|
|
@@ -9798,7 +10446,7 @@ function Ko(e) {
|
|
|
9798
10446
|
toggleMute: O,
|
|
9799
10447
|
nextScene: B,
|
|
9800
10448
|
previousScene: F,
|
|
9801
|
-
setLoop:
|
|
10449
|
+
setLoop: M
|
|
9802
10450
|
};
|
|
9803
10451
|
}
|
|
9804
10452
|
function Go({
|
|
@@ -10055,7 +10703,10 @@ function Jo({
|
|
|
10055
10703
|
P.createElement(
|
|
10056
10704
|
"button",
|
|
10057
10705
|
{
|
|
10058
|
-
style: {
|
|
10706
|
+
style: {
|
|
10707
|
+
...v,
|
|
10708
|
+
color: e.loop ? "var(--nice-primary-light, #60a5fa)" : "var(--nice-bg, #fff)"
|
|
10709
|
+
},
|
|
10059
10710
|
onClick: f,
|
|
10060
10711
|
title: "Loop"
|
|
10061
10712
|
},
|
|
@@ -10234,7 +10885,7 @@ function tr(e, t) {
|
|
|
10234
10885
|
anchor: { x: 0.5, y: 0.5 }
|
|
10235
10886
|
};
|
|
10236
10887
|
}
|
|
10237
|
-
function
|
|
10888
|
+
function za(e, t) {
|
|
10238
10889
|
const n = [];
|
|
10239
10890
|
for (const i of e.sprites)
|
|
10240
10891
|
n.push(Zo(i, e));
|
|
@@ -10244,7 +10895,7 @@ function Ma(e, t) {
|
|
|
10244
10895
|
}
|
|
10245
10896
|
return n;
|
|
10246
10897
|
}
|
|
10247
|
-
function
|
|
10898
|
+
function Ma(e, t) {
|
|
10248
10899
|
const n = [];
|
|
10249
10900
|
for (const i of e.assets) {
|
|
10250
10901
|
const o = tr(i);
|
|
@@ -10294,7 +10945,7 @@ function nr(e) {
|
|
|
10294
10945
|
animations: t
|
|
10295
10946
|
};
|
|
10296
10947
|
}
|
|
10297
|
-
function
|
|
10948
|
+
function Ca(e, t) {
|
|
10298
10949
|
var i;
|
|
10299
10950
|
const n = nr(e);
|
|
10300
10951
|
return {
|
|
@@ -11536,11 +12187,17 @@ function Ga(e) {
|
|
|
11536
12187
|
conditionalFormat: [
|
|
11537
12188
|
{
|
|
11538
12189
|
condition: { operator: "greaterThan", value: 1e5 },
|
|
11539
|
-
style: {
|
|
12190
|
+
style: {
|
|
12191
|
+
backgroundColor: "var(--nice-success-bg, #e8f5e9)",
|
|
12192
|
+
color: "var(--nice-success-dark, #2e7d32)"
|
|
12193
|
+
}
|
|
11540
12194
|
},
|
|
11541
12195
|
{
|
|
11542
12196
|
condition: { operator: "lessThan", value: 5e4 },
|
|
11543
|
-
style: {
|
|
12197
|
+
style: {
|
|
12198
|
+
backgroundColor: "var(--nice-danger-bg, #ffebee)",
|
|
12199
|
+
color: "var(--nice-danger-dark, #c62828)"
|
|
12200
|
+
}
|
|
11544
12201
|
}
|
|
11545
12202
|
]
|
|
11546
12203
|
},
|
|
@@ -11713,7 +12370,13 @@ function os(e, t) {
|
|
|
11713
12370
|
yAxis: a,
|
|
11714
12371
|
showLegend: Array.isArray(a) && a.length > 1,
|
|
11715
12372
|
showGrid: !0,
|
|
11716
|
-
colorScheme: [
|
|
12373
|
+
colorScheme: [
|
|
12374
|
+
"var(--nice-primary-hover, #1976d2)",
|
|
12375
|
+
"var(--nice-success, #43a047)",
|
|
12376
|
+
"var(--nice-warning-dark, #fb8c00)",
|
|
12377
|
+
"var(--nice-danger, #e53935)",
|
|
12378
|
+
"#8e24aa"
|
|
12379
|
+
]
|
|
11717
12380
|
};
|
|
11718
12381
|
}
|
|
11719
12382
|
function rs() {
|
|
@@ -12633,9 +13296,9 @@ function yr(e) {
|
|
|
12633
13296
|
case "presentation-link":
|
|
12634
13297
|
return xr(t);
|
|
12635
13298
|
case "feedback-form":
|
|
12636
|
-
return `${
|
|
13299
|
+
return `${Ce()}/feedback/${t.formId}?p=${t.presentationId}`;
|
|
12637
13300
|
case "poll":
|
|
12638
|
-
return `${
|
|
13301
|
+
return `${Ce()}/poll/${t.pollId}`;
|
|
12639
13302
|
default:
|
|
12640
13303
|
return String(t);
|
|
12641
13304
|
}
|
|
@@ -12672,12 +13335,12 @@ function vr(e) {
|
|
|
12672
13335
|
`);
|
|
12673
13336
|
}
|
|
12674
13337
|
function xr(e) {
|
|
12675
|
-
const t = `${
|
|
13338
|
+
const t = `${Ce()}/present/${e.presentationId}`, n = new URLSearchParams();
|
|
12676
13339
|
e.slideIndex !== void 0 && n.set("slide", String(e.slideIndex)), e.accessCode && n.set("code", e.accessCode), e.allowDownload && n.set("download", "1");
|
|
12677
13340
|
const i = n.toString();
|
|
12678
13341
|
return i ? `${t}?${i}` : t;
|
|
12679
13342
|
}
|
|
12680
|
-
function
|
|
13343
|
+
function Ce() {
|
|
12681
13344
|
return typeof window < "u" ? window.location.origin : "https://app.nice2dev.com";
|
|
12682
13345
|
}
|
|
12683
13346
|
function ds(e) {
|
|
@@ -12992,19 +13655,19 @@ function gs(e) {
|
|
|
12992
13655
|
var J, Z;
|
|
12993
13656
|
if (!c)
|
|
12994
13657
|
return;
|
|
12995
|
-
const
|
|
12996
|
-
d.current =
|
|
12997
|
-
const $ =
|
|
12998
|
-
if (i && Be(i, $, q,
|
|
12999
|
-
const Q = p(
|
|
13658
|
+
const z = c();
|
|
13659
|
+
d.current = z;
|
|
13660
|
+
const $ = z.getArray("slides"), q = z.getMap("meta");
|
|
13661
|
+
if (i && Be(i, $, q, z), p) {
|
|
13662
|
+
const Q = p(z, [$, q]);
|
|
13000
13663
|
u.current = Q, h((ee) => ({ ...ee, undoManager: Q }));
|
|
13001
13664
|
}
|
|
13002
13665
|
const U = () => {
|
|
13003
13666
|
const Q = wr($, q);
|
|
13004
13667
|
h((ee) => ({ ...ee, document: Q })), o == null || o(Q);
|
|
13005
13668
|
};
|
|
13006
|
-
if (
|
|
13007
|
-
const Q = l(
|
|
13669
|
+
if (z.on("update", U), t && l) {
|
|
13670
|
+
const Q = l(z, t);
|
|
13008
13671
|
f.current = Q, Q.on("sync", (oe) => {
|
|
13009
13672
|
h((ce) => ({ ...ce, isSynced: oe })), oe && U();
|
|
13010
13673
|
}), Q.on("connection-error", () => {
|
|
@@ -13018,7 +13681,7 @@ function gs(e) {
|
|
|
13018
13681
|
currentSlideId: (Z = (J = i == null ? void 0 : i.slides) == null ? void 0 : J[0]) == null ? void 0 : Z.id
|
|
13019
13682
|
});
|
|
13020
13683
|
const le = (oe) => {
|
|
13021
|
-
const ce = ee.getStates(), ge = [], Se = /* @__PURE__ */ new Map(),
|
|
13684
|
+
const ce = ee.getStates(), ge = [], Se = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map();
|
|
13022
13685
|
ce.forEach((V, se) => {
|
|
13023
13686
|
if (se === ee.clientID || !(V != null && V.user))
|
|
13024
13687
|
return;
|
|
@@ -13028,12 +13691,12 @@ function gs(e) {
|
|
|
13028
13691
|
color: V.user.color || br(ge.length),
|
|
13029
13692
|
avatar: V.user.avatar
|
|
13030
13693
|
};
|
|
13031
|
-
ge.push(de), V.currentSlideId && Se.set(de.id, V.currentSlideId), V.editingElementId !== void 0 &&
|
|
13694
|
+
ge.push(de), V.currentSlideId && Se.set(de.id, V.currentSlideId), V.editingElementId !== void 0 && C.set(de.id, V.editingElementId), V.cursor && W.set(de.id, { x: V.cursor.x, y: V.cursor.y }), V.selection && X.set(de.id, V.selection);
|
|
13032
13695
|
}), h((V) => ({
|
|
13033
13696
|
...V,
|
|
13034
13697
|
collaborators: ge,
|
|
13035
13698
|
collaboratorSlides: Se,
|
|
13036
|
-
collaboratorEditing:
|
|
13699
|
+
collaboratorEditing: C,
|
|
13037
13700
|
cursors: W,
|
|
13038
13701
|
selections: X,
|
|
13039
13702
|
isConnected: Q.connected
|
|
@@ -13049,67 +13712,67 @@ function gs(e) {
|
|
|
13049
13712
|
}
|
|
13050
13713
|
return () => {
|
|
13051
13714
|
var Q, ee;
|
|
13052
|
-
|
|
13715
|
+
z.off("update", U), (Q = f.current) == null || Q.destroy(), (ee = d.current) == null || ee.destroy(), u.current = null, d.current = null, f.current = null;
|
|
13053
13716
|
};
|
|
13054
13717
|
}, []);
|
|
13055
|
-
const v = A((
|
|
13718
|
+
const v = A((z, $) => {
|
|
13056
13719
|
const q = d.current;
|
|
13057
13720
|
if (!q)
|
|
13058
13721
|
return;
|
|
13059
13722
|
const U = q.getArray("slides");
|
|
13060
13723
|
q.transact(() => {
|
|
13061
|
-
$ !== void 0 && $ < U.length ? U.insert($, [
|
|
13724
|
+
$ !== void 0 && $ < U.length ? U.insert($, [z]) : U.push([z]);
|
|
13062
13725
|
});
|
|
13063
|
-
}, []), w = A((
|
|
13726
|
+
}, []), w = A((z, $) => {
|
|
13064
13727
|
const q = d.current;
|
|
13065
13728
|
if (!q)
|
|
13066
13729
|
return;
|
|
13067
13730
|
const U = q.getArray("slides");
|
|
13068
13731
|
q.transact(() => {
|
|
13069
|
-
const J = U.toArray(), Z = J.findIndex((ee) => ee.id ===
|
|
13732
|
+
const J = U.toArray(), Z = J.findIndex((ee) => ee.id === z);
|
|
13070
13733
|
if (Z === -1)
|
|
13071
13734
|
return;
|
|
13072
13735
|
const Q = { ...J[Z], ...$ };
|
|
13073
13736
|
U.delete(Z, 1), U.insert(Z, [Q]);
|
|
13074
13737
|
});
|
|
13075
|
-
}, []), g = A((
|
|
13738
|
+
}, []), g = A((z) => {
|
|
13076
13739
|
const $ = d.current;
|
|
13077
13740
|
if (!$)
|
|
13078
13741
|
return;
|
|
13079
13742
|
const q = $.getArray("slides");
|
|
13080
13743
|
$.transact(() => {
|
|
13081
|
-
const J = q.toArray().findIndex((Z) => Z.id ===
|
|
13744
|
+
const J = q.toArray().findIndex((Z) => Z.id === z);
|
|
13082
13745
|
J !== -1 && q.delete(J, 1);
|
|
13083
13746
|
});
|
|
13084
|
-
}, []), x = A((
|
|
13747
|
+
}, []), x = A((z) => {
|
|
13085
13748
|
const $ = d.current;
|
|
13086
13749
|
if (!$)
|
|
13087
13750
|
return;
|
|
13088
13751
|
const q = $.getArray("slides");
|
|
13089
13752
|
$.transact(() => {
|
|
13090
|
-
const U = q.toArray(), J =
|
|
13753
|
+
const U = q.toArray(), J = z.map((Z) => U.find((Q) => Q.id === Z)).filter(Boolean);
|
|
13091
13754
|
J.length === U.length && (q.delete(0, q.length), q.push(J));
|
|
13092
13755
|
});
|
|
13093
|
-
}, []), T = A((
|
|
13756
|
+
}, []), T = A((z, $) => {
|
|
13094
13757
|
const q = d.current;
|
|
13095
13758
|
if (!q)
|
|
13096
13759
|
return;
|
|
13097
13760
|
const U = q.getArray("slides");
|
|
13098
13761
|
q.transact(() => {
|
|
13099
|
-
const J = U.toArray(), Z = J.findIndex((le) => le.id ===
|
|
13762
|
+
const J = U.toArray(), Z = J.findIndex((le) => le.id === z);
|
|
13100
13763
|
if (Z === -1)
|
|
13101
13764
|
return;
|
|
13102
13765
|
const Q = J[Z], ee = { ...Q, elements: [...Q.elements, $] };
|
|
13103
13766
|
U.delete(Z, 1), U.insert(Z, [ee]);
|
|
13104
13767
|
});
|
|
13105
13768
|
}, []), _ = A(
|
|
13106
|
-
(
|
|
13769
|
+
(z, $, q) => {
|
|
13107
13770
|
const U = d.current;
|
|
13108
13771
|
if (!U)
|
|
13109
13772
|
return;
|
|
13110
13773
|
const J = U.getArray("slides");
|
|
13111
13774
|
U.transact(() => {
|
|
13112
|
-
const Z = J.toArray(), Q = Z.findIndex((ce) => ce.id ===
|
|
13775
|
+
const Z = J.toArray(), Q = Z.findIndex((ce) => ce.id === z);
|
|
13113
13776
|
if (Q === -1)
|
|
13114
13777
|
return;
|
|
13115
13778
|
const ee = Z[Q], le = ee.elements.map(
|
|
@@ -13119,13 +13782,13 @@ function gs(e) {
|
|
|
13119
13782
|
});
|
|
13120
13783
|
},
|
|
13121
13784
|
[]
|
|
13122
|
-
), L = A((
|
|
13785
|
+
), L = A((z, $) => {
|
|
13123
13786
|
const q = d.current;
|
|
13124
13787
|
if (!q)
|
|
13125
13788
|
return;
|
|
13126
13789
|
const U = q.getArray("slides");
|
|
13127
13790
|
q.transact(() => {
|
|
13128
|
-
const J = U.toArray(), Z = J.findIndex((le) => le.id ===
|
|
13791
|
+
const J = U.toArray(), Z = J.findIndex((le) => le.id === z);
|
|
13129
13792
|
if (Z === -1)
|
|
13130
13793
|
return;
|
|
13131
13794
|
const Q = J[Z], ee = {
|
|
@@ -13134,67 +13797,67 @@ function gs(e) {
|
|
|
13134
13797
|
};
|
|
13135
13798
|
U.delete(Z, 1), U.insert(Z, [ee]);
|
|
13136
13799
|
});
|
|
13137
|
-
}, []), K = A((
|
|
13800
|
+
}, []), K = A((z) => {
|
|
13138
13801
|
const $ = d.current;
|
|
13139
13802
|
if (!$)
|
|
13140
13803
|
return;
|
|
13141
13804
|
const q = $.getMap("meta");
|
|
13142
13805
|
$.transact(() => {
|
|
13143
13806
|
const U = q.get("theme") || {};
|
|
13144
|
-
q.set("theme", { ...U, ...
|
|
13807
|
+
q.set("theme", { ...U, ...z });
|
|
13145
13808
|
});
|
|
13146
|
-
}, []), E = A((
|
|
13809
|
+
}, []), E = A((z) => {
|
|
13147
13810
|
const $ = d.current;
|
|
13148
13811
|
if (!$)
|
|
13149
13812
|
return;
|
|
13150
13813
|
const q = $.getMap("meta");
|
|
13151
13814
|
$.transact(() => {
|
|
13152
13815
|
const U = q.get("metadata") || {};
|
|
13153
|
-
q.set("metadata", { ...U, ...
|
|
13816
|
+
q.set("metadata", { ...U, ...z, updatedAt: (/* @__PURE__ */ new Date()).toISOString() });
|
|
13154
13817
|
});
|
|
13155
|
-
}, []), O = A((
|
|
13818
|
+
}, []), O = A((z) => {
|
|
13156
13819
|
const $ = d.current;
|
|
13157
13820
|
if (!$)
|
|
13158
13821
|
return;
|
|
13159
13822
|
const q = $.getMap("meta");
|
|
13160
13823
|
$.transact(() => {
|
|
13161
|
-
q.set("title",
|
|
13824
|
+
q.set("title", z);
|
|
13162
13825
|
});
|
|
13163
|
-
}, []), B = A((
|
|
13826
|
+
}, []), B = A((z) => {
|
|
13164
13827
|
var $;
|
|
13165
|
-
($ = f.current) == null || $.awareness.setLocalStateField("currentSlideId",
|
|
13166
|
-
}, []), F = A((
|
|
13828
|
+
($ = f.current) == null || $.awareness.setLocalStateField("currentSlideId", z);
|
|
13829
|
+
}, []), F = A((z) => {
|
|
13167
13830
|
var $;
|
|
13168
|
-
($ = f.current) == null || $.awareness.setLocalStateField("editingElementId",
|
|
13169
|
-
}, []),
|
|
13831
|
+
($ = f.current) == null || $.awareness.setLocalStateField("editingElementId", z);
|
|
13832
|
+
}, []), M = A((z) => {
|
|
13170
13833
|
var $, q;
|
|
13171
|
-
|
|
13172
|
-
...
|
|
13834
|
+
z ? ($ = f.current) == null || $.awareness.setLocalStateField("cursor", {
|
|
13835
|
+
...z,
|
|
13173
13836
|
timestamp: Date.now()
|
|
13174
13837
|
}) : (q = f.current) == null || q.awareness.setLocalStateField("cursor", null);
|
|
13175
|
-
}, []), b = A((
|
|
13838
|
+
}, []), b = A((z) => {
|
|
13176
13839
|
var $;
|
|
13177
|
-
($ = f.current) == null || $.awareness.setLocalStateField("selection",
|
|
13840
|
+
($ = f.current) == null || $.awareness.setLocalStateField("selection", z);
|
|
13178
13841
|
}, []), I = A(() => {
|
|
13179
|
-
var
|
|
13180
|
-
(
|
|
13842
|
+
var z;
|
|
13843
|
+
(z = u.current) == null || z.undo();
|
|
13181
13844
|
}, []), R = A(() => {
|
|
13182
|
-
var
|
|
13183
|
-
(
|
|
13845
|
+
var z;
|
|
13846
|
+
(z = u.current) == null || z.redo();
|
|
13184
13847
|
}, []), j = A(() => {
|
|
13185
|
-
var
|
|
13186
|
-
(
|
|
13848
|
+
var z;
|
|
13849
|
+
(z = f.current) == null || z.connect();
|
|
13187
13850
|
}, []), D = A(() => {
|
|
13188
|
-
var
|
|
13189
|
-
(
|
|
13190
|
-
}, []), Y = A((
|
|
13851
|
+
var z;
|
|
13852
|
+
(z = f.current) == null || z.disconnect();
|
|
13853
|
+
}, []), Y = A((z) => {
|
|
13191
13854
|
const $ = d.current;
|
|
13192
13855
|
if (!$) {
|
|
13193
|
-
h((J) => ({ ...J, document:
|
|
13856
|
+
h((J) => ({ ...J, document: z }));
|
|
13194
13857
|
return;
|
|
13195
13858
|
}
|
|
13196
13859
|
const q = $.getArray("slides"), U = $.getMap("meta");
|
|
13197
|
-
Be(
|
|
13860
|
+
Be(z, q, U, $);
|
|
13198
13861
|
}, []), N = A(() => y.document, [y.document]);
|
|
13199
13862
|
return { state: y, actions: {
|
|
13200
13863
|
addSlide: v,
|
|
@@ -13209,7 +13872,7 @@ function gs(e) {
|
|
|
13209
13872
|
setTitle: O,
|
|
13210
13873
|
setCurrentSlide: B,
|
|
13211
13874
|
setEditingElement: F,
|
|
13212
|
-
setCursor:
|
|
13875
|
+
setCursor: M,
|
|
13213
13876
|
setSelection: b,
|
|
13214
13877
|
undo: I,
|
|
13215
13878
|
redo: R,
|
|
@@ -13250,28 +13913,28 @@ export {
|
|
|
13250
13913
|
Ia as PuppetShowMiniPlayer,
|
|
13251
13914
|
Go as PuppetShowPlayer,
|
|
13252
13915
|
Bo as PuppetStage,
|
|
13253
|
-
|
|
13916
|
+
Cr as SLIDE_16_9,
|
|
13254
13917
|
$r as SLIDE_4_3,
|
|
13255
13918
|
Ar as SLIDE_WIDESCREEN,
|
|
13256
13919
|
ye as SlideCanvas,
|
|
13257
13920
|
ls as SlideLibraryManager,
|
|
13258
13921
|
Ue as SlidePropertyPanel,
|
|
13259
13922
|
je as SlideThumbnailList,
|
|
13260
|
-
|
|
13923
|
+
Ct as THEME_CORPORATE,
|
|
13261
13924
|
Tr as THEME_MINIMAL,
|
|
13262
13925
|
_r as THEME_MODERN_DARK,
|
|
13263
13926
|
Er as THEME_NICE2DEV,
|
|
13264
13927
|
Oi as TRANSITION_BLUR_FADE,
|
|
13265
13928
|
Wi as TRANSITION_CIRCLE_REVEAL,
|
|
13266
13929
|
Di as TRANSITION_CUBE_LEFT,
|
|
13267
|
-
|
|
13930
|
+
Mi as TRANSITION_FADE,
|
|
13268
13931
|
Ri as TRANSITION_FLIP_HORIZONTAL,
|
|
13269
13932
|
Pi as TRANSITION_FLIP_VERTICAL,
|
|
13270
13933
|
Li as TRANSITION_GLITCH,
|
|
13271
13934
|
Bi as TRANSITION_MORPH,
|
|
13272
13935
|
Ni as TRANSITION_ROTATE_IN,
|
|
13273
13936
|
_i as TRANSITION_SLIDE_DOWN,
|
|
13274
|
-
|
|
13937
|
+
Ci as TRANSITION_SLIDE_LEFT,
|
|
13275
13938
|
$i as TRANSITION_SLIDE_RIGHT,
|
|
13276
13939
|
Ai as TRANSITION_SLIDE_UP,
|
|
13277
13940
|
Fi as TRANSITION_WIPE_LEFT,
|
|
@@ -13290,9 +13953,9 @@ export {
|
|
|
13290
13953
|
Ya as calculateSummaryRow,
|
|
13291
13954
|
ga as cloneTimeline,
|
|
13292
13955
|
Fr as computeCustomTransitionState,
|
|
13293
|
-
|
|
13956
|
+
Mr as computeElementState,
|
|
13294
13957
|
Na as computeKPIStatus,
|
|
13295
|
-
|
|
13958
|
+
Mt as computeTransitionState,
|
|
13296
13959
|
Oa as computeTrend,
|
|
13297
13960
|
da as createCharacterFromSpriteSheet,
|
|
13298
13961
|
Ba as createComparisonWidget,
|
|
@@ -13329,7 +13992,7 @@ export {
|
|
|
13329
13992
|
is as detectBestVisualization,
|
|
13330
13993
|
be as easingFunctions,
|
|
13331
13994
|
yr as encodeQRContent,
|
|
13332
|
-
|
|
13995
|
+
Ca as exportCharacterToEntity,
|
|
13333
13996
|
nr as exportCharacterToSprite,
|
|
13334
13997
|
ot as exportToHtml,
|
|
13335
13998
|
es as extractQueryParameters,
|
|
@@ -13350,14 +14013,14 @@ export {
|
|
|
13350
14013
|
Yo as getTrackDuration,
|
|
13351
14014
|
tr as importAssetAsProp,
|
|
13352
14015
|
er as importEntityAsCharacter,
|
|
13353
|
-
|
|
13354
|
-
|
|
14016
|
+
za as importProjectCharacters,
|
|
14017
|
+
Ma as importProjectProps,
|
|
13355
14018
|
Zo as importSpriteAsCharacter,
|
|
13356
14019
|
me as lerp,
|
|
13357
14020
|
We as lerpPosition,
|
|
13358
14021
|
qr as mapTransitionEffectToId,
|
|
13359
14022
|
Pa as mergePuppetShows,
|
|
13360
|
-
|
|
14023
|
+
zr as parseNdpJson,
|
|
13361
14024
|
Aa as parseSpriteSheetGrid,
|
|
13362
14025
|
Sa as parseTime,
|
|
13363
14026
|
Ea as presentationToPuppetShow,
|