@conboai/storybook.components 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/interfaces/tab.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as C from "react";
|
|
2
|
-
import mn, { forwardRef as ex, useContext as _u, Children as tx, isValidElement as wa, cloneElement as Ia, createElement as ag, useState as
|
|
2
|
+
import mn, { forwardRef as ex, useContext as _u, Children as tx, isValidElement as wa, cloneElement as Ia, createElement as ag, useState as dt, createContext as nx, useEffect as pr, memo as lg, useMemo as cg, useRef as Da } from "react";
|
|
3
3
|
import * as rx from "react-dom";
|
|
4
4
|
import Xi from "react-dom";
|
|
5
5
|
var Kr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -12766,7 +12766,7 @@ const PI = Kt(/* @__PURE__ */ E.jsx("path", {
|
|
|
12766
12766
|
function LI(t) {
|
|
12767
12767
|
return Oe("MuiChip", t);
|
|
12768
12768
|
}
|
|
12769
|
-
const
|
|
12769
|
+
const ut = we("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorError", "colorInfo", "colorPrimary", "colorSecondary", "colorSuccess", "colorWarning", "disabled", "clickable", "clickableColorPrimary", "clickableColorSecondary", "deletable", "deletableColorPrimary", "deletableColorSecondary", "outlined", "filled", "outlinedPrimary", "outlinedSecondary", "filledPrimary", "filledSecondary", "avatar", "avatarSmall", "avatarMedium", "avatarColorPrimary", "avatarColorSecondary", "icon", "iconSmall", "iconMedium", "iconColorPrimary", "iconColorSecondary", "label", "labelSmall", "labelMedium", "deleteIcon", "deleteIconSmall", "deleteIconMedium", "deleteIconColorPrimary", "deleteIconColorSecondary", "deleteIconOutlinedColorPrimary", "deleteIconOutlinedColorSecondary", "deleteIconFilledColorPrimary", "deleteIconFilledColorSecondary", "focusVisible"]), MI = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant", "tabIndex", "skipFocusWhenDisabled"], _I = (t) => {
|
|
12770
12770
|
const {
|
|
12771
12771
|
classes: e,
|
|
12772
12772
|
disabled: n,
|
|
@@ -12799,25 +12799,25 @@ const dt = we("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorError", "colo
|
|
|
12799
12799
|
variant: c
|
|
12800
12800
|
} = n;
|
|
12801
12801
|
return [{
|
|
12802
|
-
[`& .${
|
|
12802
|
+
[`& .${ut.avatar}`]: e.avatar
|
|
12803
12803
|
}, {
|
|
12804
|
-
[`& .${
|
|
12804
|
+
[`& .${ut.avatar}`]: e[`avatar${be(l)}`]
|
|
12805
12805
|
}, {
|
|
12806
|
-
[`& .${
|
|
12806
|
+
[`& .${ut.avatar}`]: e[`avatarColor${be(r)}`]
|
|
12807
12807
|
}, {
|
|
12808
|
-
[`& .${
|
|
12808
|
+
[`& .${ut.icon}`]: e.icon
|
|
12809
12809
|
}, {
|
|
12810
|
-
[`& .${
|
|
12810
|
+
[`& .${ut.icon}`]: e[`icon${be(l)}`]
|
|
12811
12811
|
}, {
|
|
12812
|
-
[`& .${
|
|
12812
|
+
[`& .${ut.icon}`]: e[`iconColor${be(o)}`]
|
|
12813
12813
|
}, {
|
|
12814
|
-
[`& .${
|
|
12814
|
+
[`& .${ut.deleteIcon}`]: e.deleteIcon
|
|
12815
12815
|
}, {
|
|
12816
|
-
[`& .${
|
|
12816
|
+
[`& .${ut.deleteIcon}`]: e[`deleteIcon${be(l)}`]
|
|
12817
12817
|
}, {
|
|
12818
|
-
[`& .${
|
|
12818
|
+
[`& .${ut.deleteIcon}`]: e[`deleteIconColor${be(r)}`]
|
|
12819
12819
|
}, {
|
|
12820
|
-
[`& .${
|
|
12820
|
+
[`& .${ut.deleteIcon}`]: e[`deleteIcon${be(c)}Color${be(r)}`]
|
|
12821
12821
|
}, e.root, e[`size${be(l)}`], e[`color${be(r)}`], i && e.clickable, i && r !== "default" && e[`clickableColor${be(r)})`], a && e.deletable, a && r !== "default" && e[`deletableColor${be(r)}`], e[c], e[`${c}${be(r)}`]];
|
|
12822
12822
|
}
|
|
12823
12823
|
})(({
|
|
@@ -12849,11 +12849,11 @@ const dt = we("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorError", "colo
|
|
|
12849
12849
|
// Remove `button` padding
|
|
12850
12850
|
verticalAlign: "middle",
|
|
12851
12851
|
boxSizing: "border-box",
|
|
12852
|
-
[`&.${
|
|
12852
|
+
[`&.${ut.disabled}`]: {
|
|
12853
12853
|
opacity: (t.vars || t).palette.action.disabledOpacity,
|
|
12854
12854
|
pointerEvents: "none"
|
|
12855
12855
|
},
|
|
12856
|
-
[`& .${
|
|
12856
|
+
[`& .${ut.avatar}`]: {
|
|
12857
12857
|
marginLeft: 5,
|
|
12858
12858
|
marginRight: -6,
|
|
12859
12859
|
width: 24,
|
|
@@ -12861,22 +12861,22 @@ const dt = we("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorError", "colo
|
|
|
12861
12861
|
color: t.vars ? t.vars.palette.Chip.defaultAvatarColor : n,
|
|
12862
12862
|
fontSize: t.typography.pxToRem(12)
|
|
12863
12863
|
},
|
|
12864
|
-
[`& .${
|
|
12864
|
+
[`& .${ut.avatarColorPrimary}`]: {
|
|
12865
12865
|
color: (t.vars || t).palette.primary.contrastText,
|
|
12866
12866
|
backgroundColor: (t.vars || t).palette.primary.dark
|
|
12867
12867
|
},
|
|
12868
|
-
[`& .${
|
|
12868
|
+
[`& .${ut.avatarColorSecondary}`]: {
|
|
12869
12869
|
color: (t.vars || t).palette.secondary.contrastText,
|
|
12870
12870
|
backgroundColor: (t.vars || t).palette.secondary.dark
|
|
12871
12871
|
},
|
|
12872
|
-
[`& .${
|
|
12872
|
+
[`& .${ut.avatarSmall}`]: {
|
|
12873
12873
|
marginLeft: 4,
|
|
12874
12874
|
marginRight: -4,
|
|
12875
12875
|
width: 18,
|
|
12876
12876
|
height: 18,
|
|
12877
12877
|
fontSize: t.typography.pxToRem(10)
|
|
12878
12878
|
},
|
|
12879
|
-
[`& .${
|
|
12879
|
+
[`& .${ut.icon}`]: T({
|
|
12880
12880
|
marginLeft: 5,
|
|
12881
12881
|
marginRight: -6
|
|
12882
12882
|
}, e.size === "small" && {
|
|
@@ -12888,7 +12888,7 @@ const dt = we("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorError", "colo
|
|
|
12888
12888
|
}, e.color !== "default" && {
|
|
12889
12889
|
color: "inherit"
|
|
12890
12890
|
})),
|
|
12891
|
-
[`& .${
|
|
12891
|
+
[`& .${ut.deleteIcon}`]: T({
|
|
12892
12892
|
WebkitTapHighlightColor: "transparent",
|
|
12893
12893
|
color: t.vars ? `rgba(${t.vars.palette.text.primaryChannel} / 0.26)` : tt(t.palette.text.primary, 0.26),
|
|
12894
12894
|
fontSize: 22,
|
|
@@ -12913,11 +12913,11 @@ const dt = we("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorError", "colo
|
|
|
12913
12913
|
backgroundColor: (t.vars || t).palette[e.color].main,
|
|
12914
12914
|
color: (t.vars || t).palette[e.color].contrastText
|
|
12915
12915
|
}, e.onDelete && {
|
|
12916
|
-
[`&.${
|
|
12916
|
+
[`&.${ut.focusVisible}`]: {
|
|
12917
12917
|
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : tt(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
|
|
12918
12918
|
}
|
|
12919
12919
|
}, e.onDelete && e.color !== "default" && {
|
|
12920
|
-
[`&.${
|
|
12920
|
+
[`&.${ut.focusVisible}`]: {
|
|
12921
12921
|
backgroundColor: (t.vars || t).palette[e.color].dark
|
|
12922
12922
|
}
|
|
12923
12923
|
});
|
|
@@ -12931,14 +12931,14 @@ const dt = we("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorError", "colo
|
|
|
12931
12931
|
"&:hover": {
|
|
12932
12932
|
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : tt(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity)
|
|
12933
12933
|
},
|
|
12934
|
-
[`&.${
|
|
12934
|
+
[`&.${ut.focusVisible}`]: {
|
|
12935
12935
|
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : tt(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
|
|
12936
12936
|
},
|
|
12937
12937
|
"&:active": {
|
|
12938
12938
|
boxShadow: (t.vars || t).shadows[1]
|
|
12939
12939
|
}
|
|
12940
12940
|
}, e.clickable && e.color !== "default" && {
|
|
12941
|
-
[`&:hover, &.${
|
|
12941
|
+
[`&:hover, &.${ut.focusVisible}`]: {
|
|
12942
12942
|
backgroundColor: (t.vars || t).palette[e.color].dark
|
|
12943
12943
|
}
|
|
12944
12944
|
}), ({
|
|
@@ -12947,40 +12947,40 @@ const dt = we("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorError", "colo
|
|
|
12947
12947
|
}) => T({}, e.variant === "outlined" && {
|
|
12948
12948
|
backgroundColor: "transparent",
|
|
12949
12949
|
border: t.vars ? `1px solid ${t.vars.palette.Chip.defaultBorder}` : `1px solid ${t.palette.mode === "light" ? t.palette.grey[400] : t.palette.grey[700]}`,
|
|
12950
|
-
[`&.${
|
|
12950
|
+
[`&.${ut.clickable}:hover`]: {
|
|
12951
12951
|
backgroundColor: (t.vars || t).palette.action.hover
|
|
12952
12952
|
},
|
|
12953
|
-
[`&.${
|
|
12953
|
+
[`&.${ut.focusVisible}`]: {
|
|
12954
12954
|
backgroundColor: (t.vars || t).palette.action.focus
|
|
12955
12955
|
},
|
|
12956
|
-
[`& .${
|
|
12956
|
+
[`& .${ut.avatar}`]: {
|
|
12957
12957
|
marginLeft: 4
|
|
12958
12958
|
},
|
|
12959
|
-
[`& .${
|
|
12959
|
+
[`& .${ut.avatarSmall}`]: {
|
|
12960
12960
|
marginLeft: 2
|
|
12961
12961
|
},
|
|
12962
|
-
[`& .${
|
|
12962
|
+
[`& .${ut.icon}`]: {
|
|
12963
12963
|
marginLeft: 4
|
|
12964
12964
|
},
|
|
12965
|
-
[`& .${
|
|
12965
|
+
[`& .${ut.iconSmall}`]: {
|
|
12966
12966
|
marginLeft: 2
|
|
12967
12967
|
},
|
|
12968
|
-
[`& .${
|
|
12968
|
+
[`& .${ut.deleteIcon}`]: {
|
|
12969
12969
|
marginRight: 5
|
|
12970
12970
|
},
|
|
12971
|
-
[`& .${
|
|
12971
|
+
[`& .${ut.deleteIconSmall}`]: {
|
|
12972
12972
|
marginRight: 3
|
|
12973
12973
|
}
|
|
12974
12974
|
}, e.variant === "outlined" && e.color !== "default" && {
|
|
12975
12975
|
color: (t.vars || t).palette[e.color].main,
|
|
12976
12976
|
border: `1px solid ${t.vars ? `rgba(${t.vars.palette[e.color].mainChannel} / 0.7)` : tt(t.palette[e.color].main, 0.7)}`,
|
|
12977
|
-
[`&.${
|
|
12977
|
+
[`&.${ut.clickable}:hover`]: {
|
|
12978
12978
|
backgroundColor: t.vars ? `rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})` : tt(t.palette[e.color].main, t.palette.action.hoverOpacity)
|
|
12979
12979
|
},
|
|
12980
|
-
[`&.${
|
|
12980
|
+
[`&.${ut.focusVisible}`]: {
|
|
12981
12981
|
backgroundColor: t.vars ? `rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.focusOpacity})` : tt(t.palette[e.color].main, t.palette.action.focusOpacity)
|
|
12982
12982
|
},
|
|
12983
|
-
[`& .${
|
|
12983
|
+
[`& .${ut.deleteIcon}`]: {
|
|
12984
12984
|
color: t.vars ? `rgba(${t.vars.palette[e.color].mainChannel} / 0.7)` : tt(t.palette[e.color].main, 0.7),
|
|
12985
12985
|
"&:hover, &:active": {
|
|
12986
12986
|
color: (t.vars || t).palette[e.color].main
|
|
@@ -27145,7 +27145,7 @@ function Yt({ fill: t = "black", icon: e, width: n, height: r, fillOpacity: o })
|
|
|
27145
27145
|
);
|
|
27146
27146
|
}
|
|
27147
27147
|
const CL = ({ options: t, setValue: e, value: n }) => {
|
|
27148
|
-
const [r, o] =
|
|
27148
|
+
const [r, o] = dt(
|
|
27149
27149
|
t && t[0].value
|
|
27150
27150
|
), i = (c) => {
|
|
27151
27151
|
o(c.target.value);
|
|
@@ -40097,9 +40097,9 @@ const Fy = {
|
|
|
40097
40097
|
setMasterCheckboxStates: o,
|
|
40098
40098
|
masterCheckboxStates: i
|
|
40099
40099
|
}) => {
|
|
40100
|
-
const [a, l] =
|
|
40100
|
+
const [a, l] = dt(
|
|
40101
40101
|
Array(t.length).fill(!1)
|
|
40102
|
-
), [c, u] =
|
|
40102
|
+
), [c, u] = dt(!1), [d, f] = dt(""), [p, g] = dt(!1), [m, h] = dt(!1), [b, y] = dt(
|
|
40103
40103
|
[]
|
|
40104
40104
|
), {
|
|
40105
40105
|
setSelectedValues: x,
|
|
@@ -40349,7 +40349,7 @@ const Fy = {
|
|
|
40349
40349
|
data: n,
|
|
40350
40350
|
setMasterCheckboxStates: r
|
|
40351
40351
|
}) => {
|
|
40352
|
-
const [o, i] =
|
|
40352
|
+
const [o, i] = dt(!1), { helperText: a, setSelectedValues: l, selectedItems: c } = _u(Zd), u = n.map((b) => {
|
|
40353
40353
|
var y;
|
|
40354
40354
|
return (y = b.subItemValues) == null ? void 0 : y.length;
|
|
40355
40355
|
}).reduce((b, y) => b + y, 0), f = (c == null ? void 0 : c.data.length) === n.length && (c == null ? void 0 : c.data.length) !== 0 ? "Unselect all" : "Select all", p = `${u} ${u === 1 ? "item" : "items"}`, g = t.length > 0 && t.length < n.flatMap(
|
|
@@ -40433,7 +40433,7 @@ const Fy = {
|
|
|
40433
40433
|
}
|
|
40434
40434
|
) });
|
|
40435
40435
|
}, Z2 = lg(X2), Q2 = ({ tabs: t, filterKey: e, data: n }) => {
|
|
40436
|
-
const [r, o] =
|
|
40436
|
+
const [r, o] = dt([]), [i, a] = dt(
|
|
40437
40437
|
Array(t.length).fill(!1)
|
|
40438
40438
|
);
|
|
40439
40439
|
return /* @__PURE__ */ E.jsx(mt, { children: t.map((l, c) => /* @__PURE__ */ E.jsxs(Xd, { value: `${c}`, sx: { padding: "0" }, children: [
|
|
@@ -40470,7 +40470,7 @@ const Fy = {
|
|
|
40470
40470
|
isFilterBlock: c
|
|
40471
40471
|
}) => {
|
|
40472
40472
|
var h;
|
|
40473
|
-
const [u, d] =
|
|
40473
|
+
const [u, d] = dt("0"), [f, p] = dt((h = t.criterias[0]) == null ? void 0 : h.value), g = {
|
|
40474
40474
|
width: "398px",
|
|
40475
40475
|
height: "auto",
|
|
40476
40476
|
borderRadius: "4px",
|
|
@@ -40644,7 +40644,7 @@ const Fy = {
|
|
|
40644
40644
|
criterias: c.criterias
|
|
40645
40645
|
}),
|
|
40646
40646
|
[c]
|
|
40647
|
-
), [g, m] =
|
|
40647
|
+
), [g, m] = dt(p), [h, b] = dt(p), [y, x] = dt(p), [S, w] = dt(!1), [v, R] = dt(!1), I = Da(null), D = !g.data.length, $ = !h.data.length || !y.data.length, A = [
|
|
40648
40648
|
{
|
|
40649
40649
|
name: "arrow",
|
|
40650
40650
|
enabled: !0,
|
|
@@ -40825,7 +40825,7 @@ const Fy = {
|
|
|
40825
40825
|
data: n,
|
|
40826
40826
|
readonly: r = !1
|
|
40827
40827
|
}) => {
|
|
40828
|
-
const [o, i] =
|
|
40828
|
+
const [o, i] = dt(null), [a, l] = dt([]), [c, u] = dt([]), [d, f] = dt([]), p = !!o, g = p ? "simple-popper" : void 0, m = (y) => {
|
|
40829
40829
|
const x = iB(
|
|
40830
40830
|
a,
|
|
40831
40831
|
c
|
|
@@ -40901,7 +40901,7 @@ const Fy = {
|
|
|
40901
40901
|
selectedRowId: c,
|
|
40902
40902
|
sx: u
|
|
40903
40903
|
}) => {
|
|
40904
|
-
const [d, f] =
|
|
40904
|
+
const [d, f] = dt(0), [p, g] = dt(r[0]), [m, h] = dt(null), b = (R, I) => {
|
|
40905
40905
|
f(I);
|
|
40906
40906
|
}, y = (R) => {
|
|
40907
40907
|
g(parseInt(R.target.value, 10)), f(0);
|
|
@@ -41062,7 +41062,7 @@ const Fy = {
|
|
|
41062
41062
|
color: gn,
|
|
41063
41063
|
cursor: "pointer",
|
|
41064
41064
|
"&:hover": {
|
|
41065
|
-
backgroundColor: R1,
|
|
41065
|
+
backgroundColor: t ? "" : R1,
|
|
41066
41066
|
"& .MuiTypography-root": {
|
|
41067
41067
|
opacity: 1
|
|
41068
41068
|
}
|
|
@@ -41099,7 +41099,7 @@ const Fy = {
|
|
|
41099
41099
|
color: i = "#ffffff",
|
|
41100
41100
|
isActive: a = !1
|
|
41101
41101
|
}) => {
|
|
41102
|
-
const [l, c] =
|
|
41102
|
+
const [l, c] = dt(!1), [u, d] = dt(t || "Untitled"), f = () => c(!0), p = () => {
|
|
41103
41103
|
u || d(t || "Untitled"), c(!1);
|
|
41104
41104
|
}, g = (b) => {
|
|
41105
41105
|
e(b.target.value), d(b.target.value);
|
|
@@ -41140,33 +41140,40 @@ const Fy = {
|
|
|
41140
41140
|
]
|
|
41141
41141
|
}
|
|
41142
41142
|
);
|
|
41143
|
-
}, t3 = ({
|
|
41144
|
-
|
|
41145
|
-
|
|
41146
|
-
|
|
41147
|
-
|
|
41148
|
-
|
|
41143
|
+
}, t3 = ({
|
|
41144
|
+
tabs: t,
|
|
41145
|
+
activeId: e,
|
|
41146
|
+
onDelete: n,
|
|
41147
|
+
onEdit: r,
|
|
41148
|
+
onAdd: o,
|
|
41149
|
+
onClick: i
|
|
41150
|
+
}) => {
|
|
41151
|
+
const a = () => {
|
|
41152
|
+
o && o();
|
|
41153
|
+
}, l = (u) => {
|
|
41154
|
+
i(u);
|
|
41155
|
+
}, c = () => t.map((u) => /* @__PURE__ */ E.jsx(
|
|
41149
41156
|
pB,
|
|
41150
41157
|
{
|
|
41151
|
-
onEdit: (
|
|
41152
|
-
|
|
41158
|
+
onEdit: (d) => {
|
|
41159
|
+
r(u.id, d);
|
|
41153
41160
|
},
|
|
41154
41161
|
onClick: () => {
|
|
41155
|
-
|
|
41162
|
+
l(u.id);
|
|
41156
41163
|
},
|
|
41157
41164
|
onDelete: () => {
|
|
41158
|
-
|
|
41165
|
+
n(u.id);
|
|
41159
41166
|
},
|
|
41160
|
-
value:
|
|
41161
|
-
color:
|
|
41167
|
+
value: u.title,
|
|
41168
|
+
color: u.color,
|
|
41162
41169
|
showDelete: t.length > 1,
|
|
41163
|
-
isActive:
|
|
41170
|
+
isActive: e === u.id
|
|
41164
41171
|
},
|
|
41165
|
-
|
|
41172
|
+
u.id
|
|
41166
41173
|
));
|
|
41167
41174
|
return /* @__PURE__ */ E.jsxs(at, { container: !0, gap: "6px", width: "100%", children: [
|
|
41168
|
-
|
|
41169
|
-
/* @__PURE__ */ E.jsx(Dn, { onClick:
|
|
41175
|
+
c(),
|
|
41176
|
+
/* @__PURE__ */ E.jsx(Dn, { onClick: a, variant: "text", sx: { minWidth: "40px" }, children: /* @__PURE__ */ E.jsx(Yt, { icon: "add", fill: "white" }) })
|
|
41170
41177
|
] });
|
|
41171
41178
|
}, n3 = ({ children: t }) => /* @__PURE__ */ E.jsx(
|
|
41172
41179
|
at,
|
|
@@ -41201,7 +41208,7 @@ const Fy = {
|
|
|
41201
41208
|
/* @__PURE__ */ E.jsx(hB, { setValue: t, value: e, tabs: n }),
|
|
41202
41209
|
/* @__PURE__ */ E.jsx(mB, { tabsContent: r })
|
|
41203
41210
|
] }), o3 = ({ tabsContent: t, tabs: e }) => {
|
|
41204
|
-
const [n, r] =
|
|
41211
|
+
const [n, r] = dt("0"), o = { background: "none", padding: "20px" };
|
|
41205
41212
|
return /* @__PURE__ */ E.jsx(mt, { sx: o, children: /* @__PURE__ */ E.jsx(
|
|
41206
41213
|
gB,
|
|
41207
41214
|
{
|
|
@@ -58124,7 +58131,7 @@ const _5 = {
|
|
|
58124
58131
|
isHls: n = !1
|
|
58125
58132
|
}) => {
|
|
58126
58133
|
var w, v;
|
|
58127
|
-
const [r, o] =
|
|
58134
|
+
const [r, o] = dt(!1), [i, a] = dt(0), [l, c] = dt(!0), [u, d] = dt(!1), f = Da(null), p = Da(null), g = Da(null);
|
|
58128
58135
|
pr(() => {
|
|
58129
58136
|
if (n && yr.isSupported()) {
|
|
58130
58137
|
const R = new yr();
|
|
@@ -58289,10 +58296,10 @@ const _5 = {
|
|
|
58289
58296
|
isLoading: e,
|
|
58290
58297
|
src: n,
|
|
58291
58298
|
isHls: r,
|
|
58292
|
-
|
|
58299
|
+
isVideoGenerating: o = !1
|
|
58293
58300
|
}) => {
|
|
58294
|
-
const
|
|
58295
|
-
t()
|
|
58301
|
+
const i = () => {
|
|
58302
|
+
t();
|
|
58296
58303
|
};
|
|
58297
58304
|
return /* @__PURE__ */ E.jsx(
|
|
58298
58305
|
at,
|
|
@@ -58302,7 +58309,7 @@ const _5 = {
|
|
|
58302
58309
|
justifyContent: "center",
|
|
58303
58310
|
alignItems: "center",
|
|
58304
58311
|
sx: { display: "flex", backgroundColor: gn },
|
|
58305
|
-
children:
|
|
58312
|
+
children: o ? /* @__PURE__ */ E.jsx(N5, { src: n, isLoading: e, isHls: r }) : /* @__PURE__ */ E.jsx(Yr, { onClick: i, size: "large", children: "Generate video" })
|
|
58306
58313
|
}
|
|
58307
58314
|
);
|
|
58308
58315
|
};
|
|
@@ -58402,7 +58409,7 @@ const $5 = {
|
|
|
58402
58409
|
o && /* @__PURE__ */ E.jsx(ds, { sx: og, children: o })
|
|
58403
58410
|
] });
|
|
58404
58411
|
function g3({ images: t }) {
|
|
58405
|
-
const [e, n] =
|
|
58412
|
+
const [e, n] = dt(0), r = () => {
|
|
58406
58413
|
n((i) => (i + 1) % t.length);
|
|
58407
58414
|
}, o = () => {
|
|
58408
58415
|
n(
|