@willphan1712000/frontend 1.6.0 → 1.7.0

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/index.js CHANGED
@@ -80,6 +80,7 @@ __export(index_exports, {
80
80
  InputFile: () => InputFile_default,
81
81
  InputGoogle: () => InputGoogle_default,
82
82
  LinearAlgebra: () => LinearAlgebra_default,
83
+ ModernButton: () => Modern_default,
83
84
  MultiSelect: () => MultiSelect_default,
84
85
  OptionSlider: () => OptionSlider_default,
85
86
  RangeSlider: () => RangeSlider_default,
@@ -1122,7 +1123,7 @@ var import_framer_motion = require("framer-motion");
1122
1123
  // src/components/Buttons/gradient/styles.ts
1123
1124
  var borderRadius = "20px";
1124
1125
  var styles6 = (first, second) => {
1125
- const styles11 = {
1126
+ const styles12 = {
1126
1127
  container: {
1127
1128
  position: "relative",
1128
1129
  borderRadius,
@@ -1197,7 +1198,7 @@ var styles6 = (first, second) => {
1197
1198
  width: "100%"
1198
1199
  }
1199
1200
  };
1200
- return styles11;
1201
+ return styles12;
1201
1202
  };
1202
1203
  var styles_default6 = styles6;
1203
1204
 
@@ -1205,26 +1206,26 @@ var styles_default6 = styles6;
1205
1206
  var import_jsx_runtime10 = require("react/jsx-runtime");
1206
1207
  var Gradient = () => {
1207
1208
  const data = useButtonContext();
1208
- const styles11 = styles_default6(data.first, data.second);
1209
+ const styles12 = styles_default6(data.first, data.second);
1209
1210
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1210
1211
  "div",
1211
1212
  {
1212
- style: __spreadProps(__spreadValues({}, styles11.container), {
1213
+ style: __spreadProps(__spreadValues({}, styles12.container), {
1213
1214
  overflow: data.isLoading ? "hidden" : ""
1214
1215
  }),
1215
1216
  children: [
1216
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", __spreadProps(__spreadValues({ style: styles11.btn }, data.props), { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { style: { position: "relative" }, children: [
1217
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: styles11.labelBefore }),
1217
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", __spreadProps(__spreadValues({ style: styles12.btn }, data.props), { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { style: { position: "relative" }, children: [
1218
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: styles12.labelBefore }),
1218
1219
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1219
1220
  "div",
1220
1221
  {
1221
- style: __spreadProps(__spreadValues({}, styles11.label), {
1222
+ style: __spreadProps(__spreadValues({}, styles12.label), {
1222
1223
  backgroundColor: data.main
1223
1224
  }),
1224
1225
  children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1225
1226
  "p",
1226
1227
  {
1227
- style: __spreadProps(__spreadValues({}, styles11.p), {
1228
+ style: __spreadProps(__spreadValues({}, styles12.p), {
1228
1229
  color: `${data.text}`
1229
1230
  }),
1230
1231
  children: [
@@ -1236,13 +1237,13 @@ var Gradient = () => {
1236
1237
  )
1237
1238
  }
1238
1239
  ),
1239
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: styles11.labelAfter })
1240
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: styles12.labelAfter })
1240
1241
  ] }) })),
1241
- !data.isLoading && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: styles11.btnAfter }),
1242
+ !data.isLoading && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: styles12.btnAfter }),
1242
1243
  data.isLoading && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1243
1244
  import_framer_motion.motion.div,
1244
1245
  {
1245
- style: styles11.btnAfter,
1246
+ style: styles12.btnAfter,
1246
1247
  animate: { rotate: 360 },
1247
1248
  transition: {
1248
1249
  ease: "linear",
@@ -1259,7 +1260,7 @@ var Gradient_default = Gradient;
1259
1260
 
1260
1261
  // src/components/Buttons/solid/styles.ts
1261
1262
  var styles7 = (first) => {
1262
- const styles11 = {
1263
+ const styles12 = {
1263
1264
  btn: {
1264
1265
  cursor: "pointer",
1265
1266
  position: "relative",
@@ -1316,7 +1317,7 @@ var styles7 = (first) => {
1316
1317
  margin: 0
1317
1318
  }
1318
1319
  };
1319
- return styles11;
1320
+ return styles12;
1320
1321
  };
1321
1322
  var styles_default7 = styles7;
1322
1323
 
@@ -1324,7 +1325,7 @@ var styles_default7 = styles7;
1324
1325
  var import_jsx_runtime11 = require("react/jsx-runtime");
1325
1326
  var Solid = () => {
1326
1327
  const data = useButtonContext();
1327
- const styles11 = styles_default7(data.first);
1328
+ const styles12 = styles_default7(data.first);
1328
1329
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1329
1330
  "div",
1330
1331
  {
@@ -1332,18 +1333,18 @@ var Solid = () => {
1332
1333
  position: "relative"
1333
1334
  },
1334
1335
  children: [
1335
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("button", __spreadProps(__spreadValues({ style: styles11.btn }, data.props), { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { position: "relative" }, children: [
1336
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: styles11.labelBefore }),
1336
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("button", __spreadProps(__spreadValues({ style: styles12.btn }, data.props), { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { position: "relative" }, children: [
1337
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: styles12.labelBefore }),
1337
1338
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1338
1339
  "div",
1339
1340
  {
1340
- style: __spreadProps(__spreadValues({}, styles11.label), {
1341
+ style: __spreadProps(__spreadValues({}, styles12.label), {
1341
1342
  backgroundColor: data.main
1342
1343
  }),
1343
1344
  children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1344
1345
  "p",
1345
1346
  {
1346
- style: __spreadProps(__spreadValues({}, styles11.p), {
1347
+ style: __spreadProps(__spreadValues({}, styles12.p), {
1347
1348
  color: `${data.text}`
1348
1349
  }),
1349
1350
  children: [
@@ -1355,9 +1356,9 @@ var Solid = () => {
1355
1356
  )
1356
1357
  }
1357
1358
  ),
1358
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: styles11.labelAfter })
1359
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: styles12.labelAfter })
1359
1360
  ] }) })),
1360
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: styles11.btnAfter })
1361
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: styles12.btnAfter })
1361
1362
  ]
1362
1363
  }
1363
1364
  );
@@ -1438,6 +1439,76 @@ var Button = (_a) => {
1438
1439
  };
1439
1440
  var Button_default = Button;
1440
1441
 
1442
+ // src/components/Buttons/modern/Modern.tsx
1443
+ var import_react10 = require("react");
1444
+
1445
+ // src/components/Buttons/modern/styles.ts
1446
+ var styles8 = (first) => {
1447
+ const styles12 = {
1448
+ btn: {
1449
+ cursor: "pointer",
1450
+ display: "flex",
1451
+ justifyContent: "center",
1452
+ alignItems: "center",
1453
+ paddingTop: "5px",
1454
+ paddingBottom: "5px",
1455
+ paddingLeft: "10px",
1456
+ paddingRight: "10px",
1457
+ borderRadius: "10px",
1458
+ color: first,
1459
+ backgroundColor: `color-mix(in srgb, ${first} 20%, transparent)`,
1460
+ fontSize: "15px",
1461
+ transition: "all .1s linear"
1462
+ }
1463
+ };
1464
+ return styles12;
1465
+ };
1466
+ var styles_default8 = styles8;
1467
+
1468
+ // src/components/Buttons/modern/Modern.tsx
1469
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1470
+ var Modern = (_a) => {
1471
+ var _b = _a, {
1472
+ first = "#fff",
1473
+ children,
1474
+ style,
1475
+ hover = false,
1476
+ shadow = false
1477
+ } = _b, props = __objRest(_b, [
1478
+ "first",
1479
+ "children",
1480
+ "style",
1481
+ "hover",
1482
+ "shadow"
1483
+ ]);
1484
+ const [isHover, setHover] = (0, import_react10.useState)(false);
1485
+ const handleEnter = () => {
1486
+ if (!hover) return;
1487
+ setHover(true);
1488
+ };
1489
+ const handleLeave = () => {
1490
+ if (!hover) return;
1491
+ setHover(false);
1492
+ };
1493
+ const transparentColor = `color-mix(in srgb, ${first} 20%, transparent)`;
1494
+ const borderFirst = `solid 1px ${first}`;
1495
+ const shadowTransparent = `${transparentColor} 0px 0px 15px 2px`;
1496
+ const borderTransparent = `solid 1px ${transparentColor}`;
1497
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1498
+ "a",
1499
+ __spreadProps(__spreadValues({}, props), {
1500
+ style: __spreadValues(__spreadProps(__spreadValues({}, styles_default8(first).btn), {
1501
+ border: hover ? isHover ? `${borderFirst}` : `${borderTransparent}` : `${borderFirst}`,
1502
+ boxShadow: hover ? isHover ? `${shadowTransparent}` : `` : shadow ? `${shadowTransparent}` : ""
1503
+ }), style),
1504
+ onMouseEnter: handleEnter,
1505
+ onMouseLeave: handleLeave,
1506
+ children
1507
+ })
1508
+ );
1509
+ };
1510
+ var Modern_default = Modern;
1511
+
1441
1512
  // src/components/Avatar/Avatar.tsx
1442
1513
  var import_io5 = require("react-icons/io5");
1443
1514
  var import_fa6 = require("react-icons/fa6");
@@ -1460,7 +1531,7 @@ var button = {
1460
1531
  position: "absolute",
1461
1532
  backgroundColor: "white"
1462
1533
  };
1463
- var styles8 = {
1534
+ var styles9 = {
1464
1535
  container: {
1465
1536
  width: "100%",
1466
1537
  height: "100%",
@@ -1491,20 +1562,20 @@ var styles8 = {
1491
1562
  }),
1492
1563
  edit: __spreadValues({}, button)
1493
1564
  };
1494
- var styles_default8 = styles8;
1565
+ var styles_default9 = styles9;
1495
1566
 
1496
1567
  // src/components/Avatar/Avatar.tsx
1497
- var import_react10 = require("react");
1498
- var import_jsx_runtime13 = require("react/jsx-runtime");
1568
+ var import_react11 = require("react");
1569
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1499
1570
  var Avatar = ({ src, setValue, options }) => {
1500
- const [isOpen, setOpen] = (0, import_react10.useState)(false);
1501
- const [isNew, setNew] = (0, import_react10.useState)(false);
1502
- const defaultImage = (0, import_react10.useRef)(void 0);
1503
- const initialImage = (0, import_react10.useRef)(void 0);
1504
- const uploadImageRef = (0, import_react10.useRef)(null);
1571
+ const [isOpen, setOpen] = (0, import_react11.useState)(false);
1572
+ const [isNew, setNew] = (0, import_react11.useState)(false);
1573
+ const defaultImage = (0, import_react11.useRef)(void 0);
1574
+ const initialImage = (0, import_react11.useRef)(void 0);
1575
+ const uploadImageRef = (0, import_react11.useRef)(null);
1505
1576
  const isAbleToEdit = initialImage.current ? src !== defaultImage.current && src !== initialImage.current : false;
1506
1577
  const isAbleToRemove = initialImage.current ? src !== defaultImage.current : false;
1507
- (0, import_react10.useEffect)(() => {
1578
+ (0, import_react11.useEffect)(() => {
1508
1579
  (function setSrc() {
1509
1580
  return __async(this, null, function* () {
1510
1581
  var _a, _b;
@@ -1517,8 +1588,8 @@ var Avatar = ({ src, setValue, options }) => {
1517
1588
  });
1518
1589
  })();
1519
1590
  }, []);
1520
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { style: styles_default8.container, children: [
1521
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1591
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: styles_default9.container, children: [
1592
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1522
1593
  ImageEditor_default,
1523
1594
  {
1524
1595
  src,
@@ -1528,22 +1599,22 @@ var Avatar = ({ src, setValue, options }) => {
1528
1599
  isNew
1529
1600
  }
1530
1601
  ),
1531
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Image_default, { src, style: styles_default8.image }),
1532
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1602
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Image_default, { src, style: styles_default9.image }),
1603
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1533
1604
  Button_default,
1534
1605
  {
1535
- style: styles_default8.upload,
1606
+ style: styles_default9.upload,
1536
1607
  onClick: () => {
1537
1608
  var _a;
1538
1609
  return (_a = uploadImageRef.current) == null ? void 0 : _a.click();
1539
1610
  },
1540
1611
  children: [
1541
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_io5.IoCloudUploadOutline, { size: others.iconSize }),
1612
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_io5.IoCloudUploadOutline, { size: others.iconSize }),
1542
1613
  "Upload"
1543
1614
  ]
1544
1615
  }
1545
1616
  ),
1546
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1617
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1547
1618
  UploadImage_default,
1548
1619
  {
1549
1620
  ref: uploadImageRef,
@@ -1554,28 +1625,28 @@ var Avatar = ({ src, setValue, options }) => {
1554
1625
  }
1555
1626
  }
1556
1627
  ),
1557
- isAbleToRemove && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1628
+ isAbleToRemove && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1558
1629
  Button_default,
1559
1630
  {
1560
- style: styles_default8.remove,
1631
+ style: styles_default9.remove,
1561
1632
  onClick: () => {
1562
1633
  var _a;
1563
1634
  setValue((_a = defaultImage.current) != null ? _a : void 0);
1564
1635
  setNew((prev) => !prev);
1565
1636
  },
1566
1637
  children: [
1567
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_fa6.FaTrashCan, { size: others.iconSize, color: "red" }),
1638
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_fa6.FaTrashCan, { size: others.iconSize, color: "red" }),
1568
1639
  "Remove"
1569
1640
  ]
1570
1641
  }
1571
1642
  ),
1572
- isAbleToEdit && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1643
+ isAbleToEdit && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1573
1644
  Button_default,
1574
1645
  {
1575
- style: styles_default8.edit,
1646
+ style: styles_default9.edit,
1576
1647
  onClick: () => setOpen((prev) => !prev),
1577
1648
  children: [
1578
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_ri.RiEditLine, { size: others.iconSize }),
1649
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_ri.RiEditLine, { size: others.iconSize }),
1579
1650
  "Edit"
1580
1651
  ]
1581
1652
  }
@@ -1585,7 +1656,7 @@ var Avatar = ({ src, setValue, options }) => {
1585
1656
  var Avatar_default = Avatar;
1586
1657
 
1587
1658
  // src/components/Input/InputGoogle/InputGoogle.tsx
1588
- var import_react11 = require("react");
1659
+ var import_react12 = require("react");
1589
1660
 
1590
1661
  // src/components/Input/InputGoogle/InputGoogle.styles.ts
1591
1662
  var others2 = {
@@ -1599,7 +1670,7 @@ var others2 = {
1599
1670
  textFocus: "#0957d0",
1600
1671
  border: "solid 2px"
1601
1672
  };
1602
- var styles9 = {
1673
+ var styles10 = {
1603
1674
  input: {
1604
1675
  boxSizing: "border-box",
1605
1676
  height: "40px",
@@ -1624,10 +1695,10 @@ var styles9 = {
1624
1695
  backgroundColor: "white"
1625
1696
  }
1626
1697
  };
1627
- var InputGoogle_styles_default = styles9;
1698
+ var InputGoogle_styles_default = styles10;
1628
1699
 
1629
1700
  // src/components/Input/InputGoogle/InputGoogle.tsx
1630
- var import_jsx_runtime14 = require("react/jsx-runtime");
1701
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1631
1702
  var InputGoogle = (_a) => {
1632
1703
  var _b = _a, {
1633
1704
  value = "",
@@ -1641,9 +1712,9 @@ var InputGoogle = (_a) => {
1641
1712
  "label",
1642
1713
  "options"
1643
1714
  ]);
1644
- const [isFocus, setFocus] = (0, import_react11.useState)(false);
1645
- const spanRef = (0, import_react11.useRef)(null);
1646
- const inputRef = (0, import_react11.useRef)(null);
1715
+ const [isFocus, setFocus] = (0, import_react12.useState)(false);
1716
+ const spanRef = (0, import_react12.useRef)(null);
1717
+ const inputRef = (0, import_react12.useRef)(null);
1647
1718
  function transitionOnFocus() {
1648
1719
  setFocus(true);
1649
1720
  if (spanRef.current) {
@@ -1665,12 +1736,12 @@ var InputGoogle = (_a) => {
1665
1736
  }
1666
1737
  const inputBorder = isFocus ? `${others2.border} ${options ? options.focusColor : others2.borderFocus}` : `${others2.border} ${others2.borderRelease}`;
1667
1738
  const labelTextColor = isFocus ? `${options ? options.focusColor : others2.textFocus}` : `${others2.textRelease}`;
1668
- (0, import_react11.useEffect)(() => {
1739
+ (0, import_react12.useEffect)(() => {
1669
1740
  transitionOnFocus();
1670
1741
  transitionOffFocus();
1671
1742
  }, []);
1672
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: InputGoogle_styles_default.container, children: [
1673
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1743
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: InputGoogle_styles_default.container, children: [
1744
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1674
1745
  "input",
1675
1746
  __spreadValues({
1676
1747
  id: crypto.randomUUID(),
@@ -1686,7 +1757,7 @@ var InputGoogle = (_a) => {
1686
1757
  onBlur: transitionOffFocus
1687
1758
  }, props)
1688
1759
  ),
1689
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1760
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1690
1761
  "span",
1691
1762
  {
1692
1763
  ref: spanRef,
@@ -1702,7 +1773,7 @@ var InputGoogle = (_a) => {
1702
1773
  var InputGoogle_default = InputGoogle;
1703
1774
 
1704
1775
  // src/components/Input/TextArea/TextArea.tsx
1705
- var import_react12 = require("react");
1776
+ var import_react13 = require("react");
1706
1777
 
1707
1778
  // src/components/Input/TextArea/TextArea.styles.ts
1708
1779
  var labelHeight = 20;
@@ -1717,7 +1788,7 @@ var others3 = {
1717
1788
  textFocus: "#0957d0",
1718
1789
  border: "solid 2px"
1719
1790
  };
1720
- var styles10 = {
1791
+ var styles11 = {
1721
1792
  input: {
1722
1793
  boxSizing: "border-box",
1723
1794
  height: "100%",
@@ -1745,10 +1816,10 @@ var styles10 = {
1745
1816
  backgroundColor: "white"
1746
1817
  }
1747
1818
  };
1748
- var TextArea_styles_default = styles10;
1819
+ var TextArea_styles_default = styles11;
1749
1820
 
1750
1821
  // src/components/Input/TextArea/TextArea.tsx
1751
- var import_jsx_runtime15 = require("react/jsx-runtime");
1822
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1752
1823
  var TextArea = (_a) => {
1753
1824
  var _b = _a, {
1754
1825
  value = "",
@@ -1762,9 +1833,9 @@ var TextArea = (_a) => {
1762
1833
  "label",
1763
1834
  "options"
1764
1835
  ]);
1765
- const [isFocus, setFocus] = (0, import_react12.useState)(false);
1766
- const spanRef = (0, import_react12.useRef)(null);
1767
- const inputRef = (0, import_react12.useRef)(null);
1836
+ const [isFocus, setFocus] = (0, import_react13.useState)(false);
1837
+ const spanRef = (0, import_react13.useRef)(null);
1838
+ const inputRef = (0, import_react13.useRef)(null);
1768
1839
  function transitionOnFocus() {
1769
1840
  setFocus(true);
1770
1841
  if (spanRef.current) {
@@ -1786,12 +1857,12 @@ var TextArea = (_a) => {
1786
1857
  }
1787
1858
  const inputBorder = isFocus ? `${others3.border} ${options ? options.focusColor : others3.borderFocus}` : `${others3.border} ${others3.borderRelease}`;
1788
1859
  const labelTextColor = isFocus ? `${options ? options.focusColor : others3.textFocus}` : `${others3.textRelease}`;
1789
- (0, import_react12.useEffect)(() => {
1860
+ (0, import_react13.useEffect)(() => {
1790
1861
  transitionOnFocus();
1791
1862
  transitionOffFocus();
1792
1863
  }, []);
1793
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: TextArea_styles_default.container, children: [
1794
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1864
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { style: TextArea_styles_default.container, children: [
1865
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1795
1866
  "textarea",
1796
1867
  __spreadValues({
1797
1868
  id: crypto.randomUUID(),
@@ -1806,7 +1877,7 @@ var TextArea = (_a) => {
1806
1877
  onBlur: transitionOffFocus
1807
1878
  }, props)
1808
1879
  ),
1809
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1880
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1810
1881
  "span",
1811
1882
  {
1812
1883
  ref: spanRef,
@@ -1822,8 +1893,8 @@ var TextArea = (_a) => {
1822
1893
  var TextArea_default = TextArea;
1823
1894
 
1824
1895
  // src/components/Input/InputFile.tsx
1825
- var import_react13 = require("react");
1826
- var import_jsx_runtime16 = require("react/jsx-runtime");
1896
+ var import_react14 = require("react");
1897
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1827
1898
  var InputFile = (_a) => {
1828
1899
  var _b = _a, {
1829
1900
  file,
@@ -1837,8 +1908,8 @@ var InputFile = (_a) => {
1837
1908
  "onCancel",
1838
1909
  "acceptType"
1839
1910
  ]);
1840
- const [key, setKey] = (0, import_react13.useState)(Date.now());
1841
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1911
+ const [key, setKey] = (0, import_react14.useState)(Date.now());
1912
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1842
1913
  "input",
1843
1914
  __spreadValues({
1844
1915
  id: crypto.randomUUID(),
@@ -1862,7 +1933,7 @@ var InputFile = (_a) => {
1862
1933
  var InputFile_default = InputFile;
1863
1934
 
1864
1935
  // src/components/Image/UploadImage.tsx
1865
- var import_jsx_runtime17 = require("react/jsx-runtime");
1936
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1866
1937
  var UploadImage = (_a) => {
1867
1938
  var _b = _a, {
1868
1939
  setSrc = () => {
@@ -1877,7 +1948,7 @@ var UploadImage = (_a) => {
1877
1948
  setSrc(src);
1878
1949
  });
1879
1950
  }
1880
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1951
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1881
1952
  InputFile_default,
1882
1953
  __spreadProps(__spreadValues({
1883
1954
  onChoose: handleSetSrc,
@@ -1890,10 +1961,10 @@ var UploadImage = (_a) => {
1890
1961
  var UploadImage_default = UploadImage;
1891
1962
 
1892
1963
  // src/components/Image/Image.tsx
1893
- var import_jsx_runtime18 = require("react/jsx-runtime");
1964
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1894
1965
  var Image = (_a) => {
1895
1966
  var props = __objRest(_a, []);
1896
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1967
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1897
1968
  "img",
1898
1969
  __spreadProps(__spreadValues({
1899
1970
  style: { width: "100%", height: "100%" }
@@ -1906,7 +1977,7 @@ var Image = (_a) => {
1906
1977
  var Image_default = Image;
1907
1978
 
1908
1979
  // src/components/Image/ImageEditor/ImageEditor.tsx
1909
- var import_react17 = require("react");
1980
+ var import_react18 = require("react");
1910
1981
 
1911
1982
  // src/components/Image/ImageEditor/ImageEditor.styles.ts
1912
1983
  var imageEditorStyles = {
@@ -2325,13 +2396,13 @@ var WTouchEvent = class {
2325
2396
  };
2326
2397
 
2327
2398
  // src/components/Image/ImageEditor/MainElements/MainElements.tsx
2328
- var import_react16 = require("react");
2399
+ var import_react17 = require("react");
2329
2400
 
2330
2401
  // src/components/Image/ImageEditor/context.ts
2331
- var import_react14 = require("react");
2332
- var MyContext3 = (0, import_react14.createContext)(void 0);
2402
+ var import_react15 = require("react");
2403
+ var MyContext3 = (0, import_react15.createContext)(void 0);
2333
2404
  function useMyContext3() {
2334
- const data = (0, import_react14.useContext)(MyContext3);
2405
+ const data = (0, import_react15.useContext)(MyContext3);
2335
2406
  if (data === void 0) throw new Error("Context is undefined");
2336
2407
  return data;
2337
2408
  }
@@ -2462,11 +2533,11 @@ var MainElementStyles = {
2462
2533
  var MainElements_styles_default = MainElementStyles;
2463
2534
 
2464
2535
  // src/components/Image/ImageEditor/MainElements/Rotate.tsx
2465
- var import_react15 = require("react");
2536
+ var import_react16 = require("react");
2466
2537
  var import_fa62 = require("react-icons/fa6");
2467
- var import_jsx_runtime19 = require("react/jsx-runtime");
2538
+ var import_jsx_runtime20 = require("react/jsx-runtime");
2468
2539
  var Rotate = () => {
2469
- const [rotate, setRotate] = (0, import_react15.useState)(false);
2540
+ const [rotate, setRotate] = (0, import_react16.useState)(false);
2470
2541
  const { transformOperation: transformOperation2, refs } = useMyContext3();
2471
2542
  const mouseEvent = new WMouseEvent(transformOperation2);
2472
2543
  const touchEvent = new WTouchEvent(transformOperation2);
@@ -2474,7 +2545,7 @@ var Rotate = () => {
2474
2545
  const handleBackground = (value) => {
2475
2546
  return value ? MainElements_styles_default.buttonBackgroundDown : MainElements_styles_default.buttonBackground;
2476
2547
  };
2477
- (0, import_react15.useEffect)(() => {
2548
+ (0, import_react16.useEffect)(() => {
2478
2549
  const controller = new AbortController();
2479
2550
  const handler = () => {
2480
2551
  setRotate(false);
@@ -2497,8 +2568,8 @@ var Rotate = () => {
2497
2568
  controller.abort();
2498
2569
  };
2499
2570
  }, []);
2500
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
2501
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2571
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
2572
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2502
2573
  "div",
2503
2574
  {
2504
2575
  ref: refs.rotate,
@@ -2512,9 +2583,9 @@ var Rotate = () => {
2512
2583
  touchEvent.rotate(e, { top: true });
2513
2584
  },
2514
2585
  children: [
2515
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { style: handleBackground(rotate) }),
2516
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_fa62.FaArrowRotateLeft, { size: "15" }),
2517
- rotate && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2586
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: handleBackground(rotate) }),
2587
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_fa62.FaArrowRotateLeft, { size: "15" }),
2588
+ rotate && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2518
2589
  "p",
2519
2590
  {
2520
2591
  style: __spreadProps(__spreadValues({}, MainElements_styles_default.label), {
@@ -2529,7 +2600,7 @@ var Rotate = () => {
2529
2600
  ]
2530
2601
  }
2531
2602
  ),
2532
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2603
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2533
2604
  "div",
2534
2605
  {
2535
2606
  ref: refs.rotateBottom,
@@ -2543,9 +2614,9 @@ var Rotate = () => {
2543
2614
  touchEvent.rotate(e, { bottom: true });
2544
2615
  },
2545
2616
  children: [
2546
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { style: handleBackground(rotate) }),
2547
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_fa62.FaArrowRotateLeft, { size: "15" }),
2548
- rotate && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2617
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: handleBackground(rotate) }),
2618
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_fa62.FaArrowRotateLeft, { size: "15" }),
2619
+ rotate && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2549
2620
  "p",
2550
2621
  {
2551
2622
  style: __spreadProps(__spreadValues({}, MainElements_styles_default.label), {
@@ -2567,7 +2638,7 @@ var Rotate = () => {
2567
2638
  var Rotate_default = Rotate;
2568
2639
 
2569
2640
  // src/components/Image/ImageEditor/MainElements/MainElements.tsx
2570
- var import_jsx_runtime20 = require("react/jsx-runtime");
2641
+ var import_jsx_runtime21 = require("react/jsx-runtime");
2571
2642
  var MainElements = () => {
2572
2643
  const {
2573
2644
  refs,
@@ -2577,16 +2648,16 @@ var MainElements = () => {
2577
2648
  } = useMyContext3();
2578
2649
  const mouseEvent = new WMouseEvent(transformOperation2);
2579
2650
  const touchEvent = new WTouchEvent(transformOperation2);
2580
- const [topLeft, settopLeft] = (0, import_react16.useState)(false);
2581
- const [topRight, settopRight] = (0, import_react16.useState)(false);
2582
- const [bottomLeft, setbottomLeft] = (0, import_react16.useState)(false);
2583
- const [bottomRight, setbottomRight] = (0, import_react16.useState)(false);
2584
- const [reRender, triggierReRender] = (0, import_react16.useState)(false);
2651
+ const [topLeft, settopLeft] = (0, import_react17.useState)(false);
2652
+ const [topRight, settopRight] = (0, import_react17.useState)(false);
2653
+ const [bottomLeft, setbottomLeft] = (0, import_react17.useState)(false);
2654
+ const [bottomRight, setbottomRight] = (0, import_react17.useState)(false);
2655
+ const [reRender, triggierReRender] = (0, import_react17.useState)(false);
2585
2656
  const { angle, width, height } = transformOperation2.getDimension();
2586
2657
  const handleBackground = (value) => {
2587
2658
  return value ? MainElements_styles_default.buttonBackgroundDown : MainElements_styles_default.buttonBackground;
2588
2659
  };
2589
- (0, import_react16.useEffect)(() => {
2660
+ (0, import_react17.useEffect)(() => {
2590
2661
  const controller = new AbortController();
2591
2662
  const handler = () => {
2592
2663
  settopLeft(false);
@@ -2626,9 +2697,9 @@ var MainElements = () => {
2626
2697
  controller.abort();
2627
2698
  };
2628
2699
  }, [reRender]);
2629
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { ref: refs.container, style: MainElements_styles_default.container, children: [
2630
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { ref: refs.frame, style: MainElements_styles_default.frame, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("img", { src: originalSrc, style: MainElements_styles_default.img, ref: imgRefs.img }) }),
2631
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2700
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { ref: refs.container, style: MainElements_styles_default.container, children: [
2701
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { ref: refs.frame, style: MainElements_styles_default.frame, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("img", { src: originalSrc, style: MainElements_styles_default.img, ref: imgRefs.img }) }),
2702
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2632
2703
  "div",
2633
2704
  {
2634
2705
  style: MainElements_styles_default.controller,
@@ -2636,7 +2707,7 @@ var MainElements = () => {
2636
2707
  onMouseDown: (e) => mouseEvent.drag(e),
2637
2708
  onTouchStart: (e) => touchEvent.drag(e),
2638
2709
  children: [
2639
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2710
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2640
2711
  "div",
2641
2712
  {
2642
2713
  ref: refs.topLeft,
@@ -2653,10 +2724,10 @@ var MainElements = () => {
2653
2724
  topLeft: true
2654
2725
  });
2655
2726
  },
2656
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: handleBackground(topLeft) })
2727
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: handleBackground(topLeft) })
2657
2728
  }
2658
2729
  ),
2659
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2730
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2660
2731
  "div",
2661
2732
  {
2662
2733
  ref: refs.topRight,
@@ -2673,10 +2744,10 @@ var MainElements = () => {
2673
2744
  topRight: true
2674
2745
  });
2675
2746
  },
2676
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: handleBackground(topRight) })
2747
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: handleBackground(topRight) })
2677
2748
  }
2678
2749
  ),
2679
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2750
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2680
2751
  "div",
2681
2752
  {
2682
2753
  ref: refs.bottomLeft,
@@ -2693,10 +2764,10 @@ var MainElements = () => {
2693
2764
  bottomLeft: true
2694
2765
  });
2695
2766
  },
2696
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: handleBackground(bottomLeft) })
2767
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: handleBackground(bottomLeft) })
2697
2768
  }
2698
2769
  ),
2699
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2770
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2700
2771
  "div",
2701
2772
  {
2702
2773
  ref: refs.bottomRight,
@@ -2713,11 +2784,11 @@ var MainElements = () => {
2713
2784
  bottomRight: true
2714
2785
  });
2715
2786
  },
2716
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: handleBackground(bottomRight) })
2787
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: handleBackground(bottomRight) })
2717
2788
  }
2718
2789
  ),
2719
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Rotate_default, {}),
2720
- (topLeft || topRight || bottomLeft || bottomRight) && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2790
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Rotate_default, {}),
2791
+ (topLeft || topRight || bottomLeft || bottomRight) && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2721
2792
  "p",
2722
2793
  {
2723
2794
  style: __spreadProps(__spreadValues({}, MainElements_styles_default.label), {
@@ -2740,9 +2811,9 @@ var MainElements = () => {
2740
2811
  var MainElements_default = MainElements;
2741
2812
 
2742
2813
  // src/components/Image/ImageEditor/Instruction.tsx
2743
- var import_jsx_runtime21 = require("react/jsx-runtime");
2814
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2744
2815
  var Instruction = () => {
2745
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { style: ImageEditor_styles_default.instruction, children: "Drag, Zoom, or Rotate image" });
2816
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { style: ImageEditor_styles_default.instruction, children: "Drag, Zoom, or Rotate image" });
2746
2817
  };
2747
2818
  var Instruction_default = Instruction;
2748
2819
 
@@ -2862,7 +2933,7 @@ var TransformOperation = class extends TransformOperationExtension {
2862
2933
  var TransformOperation_default = TransformOperation;
2863
2934
 
2864
2935
  // src/components/Image/ImageEditor/ImageEditor.tsx
2865
- var import_jsx_runtime22 = require("react/jsx-runtime");
2936
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2866
2937
  var transformOperation = new TransformOperation_default();
2867
2938
  var ImageEditor = ({
2868
2939
  src,
@@ -2873,21 +2944,21 @@ var ImageEditor = ({
2873
2944
  },
2874
2945
  isNew = false
2875
2946
  }) => {
2876
- const container = (0, import_react17.useRef)(null);
2877
- const frame = (0, import_react17.useRef)(null);
2878
- const img = (0, import_react17.useRef)(null);
2879
- const controller = (0, import_react17.useRef)(null);
2880
- const topLeft = (0, import_react17.useRef)(null);
2881
- const topRight = (0, import_react17.useRef)(null);
2882
- const bottomLeft = (0, import_react17.useRef)(null);
2883
- const bottomRight = (0, import_react17.useRef)(null);
2884
- const rotate = (0, import_react17.useRef)(null);
2885
- const rotateBottom = (0, import_react17.useRef)(null);
2886
- const [transform, setTransform] = (0, import_react17.useState)(
2947
+ const container = (0, import_react18.useRef)(null);
2948
+ const frame = (0, import_react18.useRef)(null);
2949
+ const img = (0, import_react18.useRef)(null);
2950
+ const controller = (0, import_react18.useRef)(null);
2951
+ const topLeft = (0, import_react18.useRef)(null);
2952
+ const topRight = (0, import_react18.useRef)(null);
2953
+ const bottomLeft = (0, import_react18.useRef)(null);
2954
+ const bottomRight = (0, import_react18.useRef)(null);
2955
+ const rotate = (0, import_react18.useRef)(null);
2956
+ const rotateBottom = (0, import_react18.useRef)(null);
2957
+ const [transform, setTransform] = (0, import_react18.useState)(
2887
2958
  void 0
2888
2959
  );
2889
- const transformState = (0, import_react17.useRef)(void 0);
2890
- const originalSrc = (0, import_react17.useMemo)(() => {
2960
+ const transformState = (0, import_react18.useRef)(void 0);
2961
+ const originalSrc = (0, import_react18.useMemo)(() => {
2891
2962
  transformState.current = void 0;
2892
2963
  return src;
2893
2964
  }, [isNew]);
@@ -2946,7 +3017,7 @@ var ImageEditor = ({
2946
3017
  function handleWindowScroll(isOpen2) {
2947
3018
  document.body.style.overflow = isOpen2 ? "hidden" : "auto";
2948
3019
  }
2949
- (0, import_react17.useEffect)(() => {
3020
+ (0, import_react18.useEffect)(() => {
2950
3021
  isOpen ? createTransform() : setTransform(void 0);
2951
3022
  handleWindowScroll(isOpen);
2952
3023
  return () => {
@@ -2954,7 +3025,7 @@ var ImageEditor = ({
2954
3025
  };
2955
3026
  }, [isOpen]);
2956
3027
  if (!isOpen) return;
2957
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3028
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2958
3029
  MyContext3.Provider,
2959
3030
  {
2960
3031
  value: {
@@ -2975,11 +3046,11 @@ var ImageEditor = ({
2975
3046
  src: originalSrc,
2976
3047
  transformOperation
2977
3048
  },
2978
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { style: ImageEditor_styles_default.imageEditor, children: [
2979
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Instruction_default, {}),
2980
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(MainElements_default, {}),
2981
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { style: ImageEditor_styles_default.buttons, children: [
2982
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3049
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { style: ImageEditor_styles_default.imageEditor, children: [
3050
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Instruction_default, {}),
3051
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(MainElements_default, {}),
3052
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { style: ImageEditor_styles_default.buttons, children: [
3053
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2983
3054
  Button_default,
2984
3055
  {
2985
3056
  buttonType: "solid",
@@ -2987,7 +3058,7 @@ var ImageEditor = ({
2987
3058
  onClick: handleAccept
2988
3059
  }
2989
3060
  ),
2990
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3061
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2991
3062
  Button_default,
2992
3063
  {
2993
3064
  buttonType: "solid",
@@ -2995,7 +3066,7 @@ var ImageEditor = ({
2995
3066
  onClick: handleCancel
2996
3067
  }
2997
3068
  ),
2998
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3069
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2999
3070
  Button_default,
3000
3071
  {
3001
3072
  buttonType: "solid",
@@ -3480,32 +3551,32 @@ var tools = {
3480
3551
  var tools_default = tools;
3481
3552
 
3482
3553
  // src/auth/react/context.tsx
3483
- var import_react18 = require("react");
3484
- var SessionContext = (0, import_react18.createContext)(
3554
+ var import_react19 = require("react");
3555
+ var SessionContext = (0, import_react19.createContext)(
3485
3556
  void 0
3486
3557
  );
3487
3558
  function useSession() {
3488
- const data = (0, import_react18.useContext)(SessionContext);
3559
+ const data = (0, import_react19.useContext)(SessionContext);
3489
3560
  if (data === void 0) throw new Error("Session context is undefined");
3490
3561
  return data;
3491
3562
  }
3492
3563
 
3493
3564
  // src/auth/react/SessionProvider.tsx
3494
- var import_jsx_runtime23 = require("react/jsx-runtime");
3565
+ var import_jsx_runtime24 = require("react/jsx-runtime");
3495
3566
  var SessionProvider = ({
3496
3567
  value,
3497
3568
  children
3498
3569
  }) => {
3499
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SessionContext.Provider, { value, children });
3570
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SessionContext.Provider, { value, children });
3500
3571
  };
3501
3572
  var SessionProvider_default = SessionProvider;
3502
3573
 
3503
3574
  // src/auth/react/useAuthClient.ts
3504
- var import_react19 = require("react");
3575
+ var import_react20 = require("react");
3505
3576
  var useAuthClient = (auth) => {
3506
- const [isLoading, setLoading] = (0, import_react19.useState)(false);
3507
- const sessionRef = (0, import_react19.useRef)(void 0);
3508
- (0, import_react19.useEffect)(() => {
3577
+ const [isLoading, setLoading] = (0, import_react20.useState)(false);
3578
+ const sessionRef = (0, import_react20.useRef)(void 0);
3579
+ (0, import_react20.useEffect)(() => {
3509
3580
  let is = true;
3510
3581
  const getSession = () => __async(null, null, function* () {
3511
3582
  setLoading(true);
@@ -3672,6 +3743,7 @@ var LinearAlgebra_default = LinearAlgebra;
3672
3743
  InputFile,
3673
3744
  InputGoogle,
3674
3745
  LinearAlgebra,
3746
+ ModernButton,
3675
3747
  MultiSelect,
3676
3748
  OptionSlider,
3677
3749
  RangeSlider,