@willphan1712000/frontend 1.6.0 → 1.7.1

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,77 @@ 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({
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
+ }, props), {
1507
+ children
1508
+ })
1509
+ );
1510
+ };
1511
+ var Modern_default = Modern;
1512
+
1441
1513
  // src/components/Avatar/Avatar.tsx
1442
1514
  var import_io5 = require("react-icons/io5");
1443
1515
  var import_fa6 = require("react-icons/fa6");
@@ -1460,7 +1532,7 @@ var button = {
1460
1532
  position: "absolute",
1461
1533
  backgroundColor: "white"
1462
1534
  };
1463
- var styles8 = {
1535
+ var styles9 = {
1464
1536
  container: {
1465
1537
  width: "100%",
1466
1538
  height: "100%",
@@ -1491,20 +1563,20 @@ var styles8 = {
1491
1563
  }),
1492
1564
  edit: __spreadValues({}, button)
1493
1565
  };
1494
- var styles_default8 = styles8;
1566
+ var styles_default9 = styles9;
1495
1567
 
1496
1568
  // src/components/Avatar/Avatar.tsx
1497
- var import_react10 = require("react");
1498
- var import_jsx_runtime13 = require("react/jsx-runtime");
1569
+ var import_react11 = require("react");
1570
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1499
1571
  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);
1572
+ const [isOpen, setOpen] = (0, import_react11.useState)(false);
1573
+ const [isNew, setNew] = (0, import_react11.useState)(false);
1574
+ const defaultImage = (0, import_react11.useRef)(void 0);
1575
+ const initialImage = (0, import_react11.useRef)(void 0);
1576
+ const uploadImageRef = (0, import_react11.useRef)(null);
1505
1577
  const isAbleToEdit = initialImage.current ? src !== defaultImage.current && src !== initialImage.current : false;
1506
1578
  const isAbleToRemove = initialImage.current ? src !== defaultImage.current : false;
1507
- (0, import_react10.useEffect)(() => {
1579
+ (0, import_react11.useEffect)(() => {
1508
1580
  (function setSrc() {
1509
1581
  return __async(this, null, function* () {
1510
1582
  var _a, _b;
@@ -1517,8 +1589,8 @@ var Avatar = ({ src, setValue, options }) => {
1517
1589
  });
1518
1590
  })();
1519
1591
  }, []);
1520
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { style: styles_default8.container, children: [
1521
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1592
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: styles_default9.container, children: [
1593
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1522
1594
  ImageEditor_default,
1523
1595
  {
1524
1596
  src,
@@ -1528,22 +1600,22 @@ var Avatar = ({ src, setValue, options }) => {
1528
1600
  isNew
1529
1601
  }
1530
1602
  ),
1531
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Image_default, { src, style: styles_default8.image }),
1532
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1603
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Image_default, { src, style: styles_default9.image }),
1604
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1533
1605
  Button_default,
1534
1606
  {
1535
- style: styles_default8.upload,
1607
+ style: styles_default9.upload,
1536
1608
  onClick: () => {
1537
1609
  var _a;
1538
1610
  return (_a = uploadImageRef.current) == null ? void 0 : _a.click();
1539
1611
  },
1540
1612
  children: [
1541
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_io5.IoCloudUploadOutline, { size: others.iconSize }),
1613
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_io5.IoCloudUploadOutline, { size: others.iconSize }),
1542
1614
  "Upload"
1543
1615
  ]
1544
1616
  }
1545
1617
  ),
1546
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1618
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1547
1619
  UploadImage_default,
1548
1620
  {
1549
1621
  ref: uploadImageRef,
@@ -1554,28 +1626,28 @@ var Avatar = ({ src, setValue, options }) => {
1554
1626
  }
1555
1627
  }
1556
1628
  ),
1557
- isAbleToRemove && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1629
+ isAbleToRemove && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1558
1630
  Button_default,
1559
1631
  {
1560
- style: styles_default8.remove,
1632
+ style: styles_default9.remove,
1561
1633
  onClick: () => {
1562
1634
  var _a;
1563
1635
  setValue((_a = defaultImage.current) != null ? _a : void 0);
1564
1636
  setNew((prev) => !prev);
1565
1637
  },
1566
1638
  children: [
1567
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_fa6.FaTrashCan, { size: others.iconSize, color: "red" }),
1639
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_fa6.FaTrashCan, { size: others.iconSize, color: "red" }),
1568
1640
  "Remove"
1569
1641
  ]
1570
1642
  }
1571
1643
  ),
1572
- isAbleToEdit && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1644
+ isAbleToEdit && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1573
1645
  Button_default,
1574
1646
  {
1575
- style: styles_default8.edit,
1647
+ style: styles_default9.edit,
1576
1648
  onClick: () => setOpen((prev) => !prev),
1577
1649
  children: [
1578
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_ri.RiEditLine, { size: others.iconSize }),
1650
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_ri.RiEditLine, { size: others.iconSize }),
1579
1651
  "Edit"
1580
1652
  ]
1581
1653
  }
@@ -1585,7 +1657,7 @@ var Avatar = ({ src, setValue, options }) => {
1585
1657
  var Avatar_default = Avatar;
1586
1658
 
1587
1659
  // src/components/Input/InputGoogle/InputGoogle.tsx
1588
- var import_react11 = require("react");
1660
+ var import_react12 = require("react");
1589
1661
 
1590
1662
  // src/components/Input/InputGoogle/InputGoogle.styles.ts
1591
1663
  var others2 = {
@@ -1599,7 +1671,7 @@ var others2 = {
1599
1671
  textFocus: "#0957d0",
1600
1672
  border: "solid 2px"
1601
1673
  };
1602
- var styles9 = {
1674
+ var styles10 = {
1603
1675
  input: {
1604
1676
  boxSizing: "border-box",
1605
1677
  height: "40px",
@@ -1624,10 +1696,10 @@ var styles9 = {
1624
1696
  backgroundColor: "white"
1625
1697
  }
1626
1698
  };
1627
- var InputGoogle_styles_default = styles9;
1699
+ var InputGoogle_styles_default = styles10;
1628
1700
 
1629
1701
  // src/components/Input/InputGoogle/InputGoogle.tsx
1630
- var import_jsx_runtime14 = require("react/jsx-runtime");
1702
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1631
1703
  var InputGoogle = (_a) => {
1632
1704
  var _b = _a, {
1633
1705
  value = "",
@@ -1641,9 +1713,9 @@ var InputGoogle = (_a) => {
1641
1713
  "label",
1642
1714
  "options"
1643
1715
  ]);
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);
1716
+ const [isFocus, setFocus] = (0, import_react12.useState)(false);
1717
+ const spanRef = (0, import_react12.useRef)(null);
1718
+ const inputRef = (0, import_react12.useRef)(null);
1647
1719
  function transitionOnFocus() {
1648
1720
  setFocus(true);
1649
1721
  if (spanRef.current) {
@@ -1665,12 +1737,12 @@ var InputGoogle = (_a) => {
1665
1737
  }
1666
1738
  const inputBorder = isFocus ? `${others2.border} ${options ? options.focusColor : others2.borderFocus}` : `${others2.border} ${others2.borderRelease}`;
1667
1739
  const labelTextColor = isFocus ? `${options ? options.focusColor : others2.textFocus}` : `${others2.textRelease}`;
1668
- (0, import_react11.useEffect)(() => {
1740
+ (0, import_react12.useEffect)(() => {
1669
1741
  transitionOnFocus();
1670
1742
  transitionOffFocus();
1671
1743
  }, []);
1672
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: InputGoogle_styles_default.container, children: [
1673
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1744
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: InputGoogle_styles_default.container, children: [
1745
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1674
1746
  "input",
1675
1747
  __spreadValues({
1676
1748
  id: crypto.randomUUID(),
@@ -1686,7 +1758,7 @@ var InputGoogle = (_a) => {
1686
1758
  onBlur: transitionOffFocus
1687
1759
  }, props)
1688
1760
  ),
1689
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1761
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1690
1762
  "span",
1691
1763
  {
1692
1764
  ref: spanRef,
@@ -1702,7 +1774,7 @@ var InputGoogle = (_a) => {
1702
1774
  var InputGoogle_default = InputGoogle;
1703
1775
 
1704
1776
  // src/components/Input/TextArea/TextArea.tsx
1705
- var import_react12 = require("react");
1777
+ var import_react13 = require("react");
1706
1778
 
1707
1779
  // src/components/Input/TextArea/TextArea.styles.ts
1708
1780
  var labelHeight = 20;
@@ -1717,7 +1789,7 @@ var others3 = {
1717
1789
  textFocus: "#0957d0",
1718
1790
  border: "solid 2px"
1719
1791
  };
1720
- var styles10 = {
1792
+ var styles11 = {
1721
1793
  input: {
1722
1794
  boxSizing: "border-box",
1723
1795
  height: "100%",
@@ -1745,10 +1817,10 @@ var styles10 = {
1745
1817
  backgroundColor: "white"
1746
1818
  }
1747
1819
  };
1748
- var TextArea_styles_default = styles10;
1820
+ var TextArea_styles_default = styles11;
1749
1821
 
1750
1822
  // src/components/Input/TextArea/TextArea.tsx
1751
- var import_jsx_runtime15 = require("react/jsx-runtime");
1823
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1752
1824
  var TextArea = (_a) => {
1753
1825
  var _b = _a, {
1754
1826
  value = "",
@@ -1762,9 +1834,9 @@ var TextArea = (_a) => {
1762
1834
  "label",
1763
1835
  "options"
1764
1836
  ]);
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);
1837
+ const [isFocus, setFocus] = (0, import_react13.useState)(false);
1838
+ const spanRef = (0, import_react13.useRef)(null);
1839
+ const inputRef = (0, import_react13.useRef)(null);
1768
1840
  function transitionOnFocus() {
1769
1841
  setFocus(true);
1770
1842
  if (spanRef.current) {
@@ -1786,12 +1858,12 @@ var TextArea = (_a) => {
1786
1858
  }
1787
1859
  const inputBorder = isFocus ? `${others3.border} ${options ? options.focusColor : others3.borderFocus}` : `${others3.border} ${others3.borderRelease}`;
1788
1860
  const labelTextColor = isFocus ? `${options ? options.focusColor : others3.textFocus}` : `${others3.textRelease}`;
1789
- (0, import_react12.useEffect)(() => {
1861
+ (0, import_react13.useEffect)(() => {
1790
1862
  transitionOnFocus();
1791
1863
  transitionOffFocus();
1792
1864
  }, []);
1793
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: TextArea_styles_default.container, children: [
1794
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1865
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { style: TextArea_styles_default.container, children: [
1866
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1795
1867
  "textarea",
1796
1868
  __spreadValues({
1797
1869
  id: crypto.randomUUID(),
@@ -1806,7 +1878,7 @@ var TextArea = (_a) => {
1806
1878
  onBlur: transitionOffFocus
1807
1879
  }, props)
1808
1880
  ),
1809
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1881
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1810
1882
  "span",
1811
1883
  {
1812
1884
  ref: spanRef,
@@ -1822,8 +1894,8 @@ var TextArea = (_a) => {
1822
1894
  var TextArea_default = TextArea;
1823
1895
 
1824
1896
  // src/components/Input/InputFile.tsx
1825
- var import_react13 = require("react");
1826
- var import_jsx_runtime16 = require("react/jsx-runtime");
1897
+ var import_react14 = require("react");
1898
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1827
1899
  var InputFile = (_a) => {
1828
1900
  var _b = _a, {
1829
1901
  file,
@@ -1837,8 +1909,8 @@ var InputFile = (_a) => {
1837
1909
  "onCancel",
1838
1910
  "acceptType"
1839
1911
  ]);
1840
- const [key, setKey] = (0, import_react13.useState)(Date.now());
1841
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1912
+ const [key, setKey] = (0, import_react14.useState)(Date.now());
1913
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1842
1914
  "input",
1843
1915
  __spreadValues({
1844
1916
  id: crypto.randomUUID(),
@@ -1862,7 +1934,7 @@ var InputFile = (_a) => {
1862
1934
  var InputFile_default = InputFile;
1863
1935
 
1864
1936
  // src/components/Image/UploadImage.tsx
1865
- var import_jsx_runtime17 = require("react/jsx-runtime");
1937
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1866
1938
  var UploadImage = (_a) => {
1867
1939
  var _b = _a, {
1868
1940
  setSrc = () => {
@@ -1877,7 +1949,7 @@ var UploadImage = (_a) => {
1877
1949
  setSrc(src);
1878
1950
  });
1879
1951
  }
1880
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1952
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1881
1953
  InputFile_default,
1882
1954
  __spreadProps(__spreadValues({
1883
1955
  onChoose: handleSetSrc,
@@ -1890,10 +1962,10 @@ var UploadImage = (_a) => {
1890
1962
  var UploadImage_default = UploadImage;
1891
1963
 
1892
1964
  // src/components/Image/Image.tsx
1893
- var import_jsx_runtime18 = require("react/jsx-runtime");
1965
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1894
1966
  var Image = (_a) => {
1895
1967
  var props = __objRest(_a, []);
1896
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1968
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1897
1969
  "img",
1898
1970
  __spreadProps(__spreadValues({
1899
1971
  style: { width: "100%", height: "100%" }
@@ -1906,7 +1978,7 @@ var Image = (_a) => {
1906
1978
  var Image_default = Image;
1907
1979
 
1908
1980
  // src/components/Image/ImageEditor/ImageEditor.tsx
1909
- var import_react17 = require("react");
1981
+ var import_react18 = require("react");
1910
1982
 
1911
1983
  // src/components/Image/ImageEditor/ImageEditor.styles.ts
1912
1984
  var imageEditorStyles = {
@@ -2325,13 +2397,13 @@ var WTouchEvent = class {
2325
2397
  };
2326
2398
 
2327
2399
  // src/components/Image/ImageEditor/MainElements/MainElements.tsx
2328
- var import_react16 = require("react");
2400
+ var import_react17 = require("react");
2329
2401
 
2330
2402
  // src/components/Image/ImageEditor/context.ts
2331
- var import_react14 = require("react");
2332
- var MyContext3 = (0, import_react14.createContext)(void 0);
2403
+ var import_react15 = require("react");
2404
+ var MyContext3 = (0, import_react15.createContext)(void 0);
2333
2405
  function useMyContext3() {
2334
- const data = (0, import_react14.useContext)(MyContext3);
2406
+ const data = (0, import_react15.useContext)(MyContext3);
2335
2407
  if (data === void 0) throw new Error("Context is undefined");
2336
2408
  return data;
2337
2409
  }
@@ -2462,11 +2534,11 @@ var MainElementStyles = {
2462
2534
  var MainElements_styles_default = MainElementStyles;
2463
2535
 
2464
2536
  // src/components/Image/ImageEditor/MainElements/Rotate.tsx
2465
- var import_react15 = require("react");
2537
+ var import_react16 = require("react");
2466
2538
  var import_fa62 = require("react-icons/fa6");
2467
- var import_jsx_runtime19 = require("react/jsx-runtime");
2539
+ var import_jsx_runtime20 = require("react/jsx-runtime");
2468
2540
  var Rotate = () => {
2469
- const [rotate, setRotate] = (0, import_react15.useState)(false);
2541
+ const [rotate, setRotate] = (0, import_react16.useState)(false);
2470
2542
  const { transformOperation: transformOperation2, refs } = useMyContext3();
2471
2543
  const mouseEvent = new WMouseEvent(transformOperation2);
2472
2544
  const touchEvent = new WTouchEvent(transformOperation2);
@@ -2474,7 +2546,7 @@ var Rotate = () => {
2474
2546
  const handleBackground = (value) => {
2475
2547
  return value ? MainElements_styles_default.buttonBackgroundDown : MainElements_styles_default.buttonBackground;
2476
2548
  };
2477
- (0, import_react15.useEffect)(() => {
2549
+ (0, import_react16.useEffect)(() => {
2478
2550
  const controller = new AbortController();
2479
2551
  const handler = () => {
2480
2552
  setRotate(false);
@@ -2497,8 +2569,8 @@ var Rotate = () => {
2497
2569
  controller.abort();
2498
2570
  };
2499
2571
  }, []);
2500
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
2501
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2572
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
2573
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2502
2574
  "div",
2503
2575
  {
2504
2576
  ref: refs.rotate,
@@ -2512,9 +2584,9 @@ var Rotate = () => {
2512
2584
  touchEvent.rotate(e, { top: true });
2513
2585
  },
2514
2586
  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)(
2587
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: handleBackground(rotate) }),
2588
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_fa62.FaArrowRotateLeft, { size: "15" }),
2589
+ rotate && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2518
2590
  "p",
2519
2591
  {
2520
2592
  style: __spreadProps(__spreadValues({}, MainElements_styles_default.label), {
@@ -2529,7 +2601,7 @@ var Rotate = () => {
2529
2601
  ]
2530
2602
  }
2531
2603
  ),
2532
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2604
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2533
2605
  "div",
2534
2606
  {
2535
2607
  ref: refs.rotateBottom,
@@ -2543,9 +2615,9 @@ var Rotate = () => {
2543
2615
  touchEvent.rotate(e, { bottom: true });
2544
2616
  },
2545
2617
  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)(
2618
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: handleBackground(rotate) }),
2619
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_fa62.FaArrowRotateLeft, { size: "15" }),
2620
+ rotate && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2549
2621
  "p",
2550
2622
  {
2551
2623
  style: __spreadProps(__spreadValues({}, MainElements_styles_default.label), {
@@ -2567,7 +2639,7 @@ var Rotate = () => {
2567
2639
  var Rotate_default = Rotate;
2568
2640
 
2569
2641
  // src/components/Image/ImageEditor/MainElements/MainElements.tsx
2570
- var import_jsx_runtime20 = require("react/jsx-runtime");
2642
+ var import_jsx_runtime21 = require("react/jsx-runtime");
2571
2643
  var MainElements = () => {
2572
2644
  const {
2573
2645
  refs,
@@ -2577,16 +2649,16 @@ var MainElements = () => {
2577
2649
  } = useMyContext3();
2578
2650
  const mouseEvent = new WMouseEvent(transformOperation2);
2579
2651
  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);
2652
+ const [topLeft, settopLeft] = (0, import_react17.useState)(false);
2653
+ const [topRight, settopRight] = (0, import_react17.useState)(false);
2654
+ const [bottomLeft, setbottomLeft] = (0, import_react17.useState)(false);
2655
+ const [bottomRight, setbottomRight] = (0, import_react17.useState)(false);
2656
+ const [reRender, triggierReRender] = (0, import_react17.useState)(false);
2585
2657
  const { angle, width, height } = transformOperation2.getDimension();
2586
2658
  const handleBackground = (value) => {
2587
2659
  return value ? MainElements_styles_default.buttonBackgroundDown : MainElements_styles_default.buttonBackground;
2588
2660
  };
2589
- (0, import_react16.useEffect)(() => {
2661
+ (0, import_react17.useEffect)(() => {
2590
2662
  const controller = new AbortController();
2591
2663
  const handler = () => {
2592
2664
  settopLeft(false);
@@ -2626,9 +2698,9 @@ var MainElements = () => {
2626
2698
  controller.abort();
2627
2699
  };
2628
2700
  }, [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)(
2701
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { ref: refs.container, style: MainElements_styles_default.container, children: [
2702
+ /* @__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 }) }),
2703
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2632
2704
  "div",
2633
2705
  {
2634
2706
  style: MainElements_styles_default.controller,
@@ -2636,7 +2708,7 @@ var MainElements = () => {
2636
2708
  onMouseDown: (e) => mouseEvent.drag(e),
2637
2709
  onTouchStart: (e) => touchEvent.drag(e),
2638
2710
  children: [
2639
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2711
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2640
2712
  "div",
2641
2713
  {
2642
2714
  ref: refs.topLeft,
@@ -2653,10 +2725,10 @@ var MainElements = () => {
2653
2725
  topLeft: true
2654
2726
  });
2655
2727
  },
2656
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: handleBackground(topLeft) })
2728
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: handleBackground(topLeft) })
2657
2729
  }
2658
2730
  ),
2659
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2731
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2660
2732
  "div",
2661
2733
  {
2662
2734
  ref: refs.topRight,
@@ -2673,10 +2745,10 @@ var MainElements = () => {
2673
2745
  topRight: true
2674
2746
  });
2675
2747
  },
2676
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: handleBackground(topRight) })
2748
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: handleBackground(topRight) })
2677
2749
  }
2678
2750
  ),
2679
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2751
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2680
2752
  "div",
2681
2753
  {
2682
2754
  ref: refs.bottomLeft,
@@ -2693,10 +2765,10 @@ var MainElements = () => {
2693
2765
  bottomLeft: true
2694
2766
  });
2695
2767
  },
2696
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: handleBackground(bottomLeft) })
2768
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: handleBackground(bottomLeft) })
2697
2769
  }
2698
2770
  ),
2699
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2771
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2700
2772
  "div",
2701
2773
  {
2702
2774
  ref: refs.bottomRight,
@@ -2713,11 +2785,11 @@ var MainElements = () => {
2713
2785
  bottomRight: true
2714
2786
  });
2715
2787
  },
2716
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: handleBackground(bottomRight) })
2788
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: handleBackground(bottomRight) })
2717
2789
  }
2718
2790
  ),
2719
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Rotate_default, {}),
2720
- (topLeft || topRight || bottomLeft || bottomRight) && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2791
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Rotate_default, {}),
2792
+ (topLeft || topRight || bottomLeft || bottomRight) && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2721
2793
  "p",
2722
2794
  {
2723
2795
  style: __spreadProps(__spreadValues({}, MainElements_styles_default.label), {
@@ -2740,9 +2812,9 @@ var MainElements = () => {
2740
2812
  var MainElements_default = MainElements;
2741
2813
 
2742
2814
  // src/components/Image/ImageEditor/Instruction.tsx
2743
- var import_jsx_runtime21 = require("react/jsx-runtime");
2815
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2744
2816
  var Instruction = () => {
2745
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { style: ImageEditor_styles_default.instruction, children: "Drag, Zoom, or Rotate image" });
2817
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { style: ImageEditor_styles_default.instruction, children: "Drag, Zoom, or Rotate image" });
2746
2818
  };
2747
2819
  var Instruction_default = Instruction;
2748
2820
 
@@ -2862,7 +2934,7 @@ var TransformOperation = class extends TransformOperationExtension {
2862
2934
  var TransformOperation_default = TransformOperation;
2863
2935
 
2864
2936
  // src/components/Image/ImageEditor/ImageEditor.tsx
2865
- var import_jsx_runtime22 = require("react/jsx-runtime");
2937
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2866
2938
  var transformOperation = new TransformOperation_default();
2867
2939
  var ImageEditor = ({
2868
2940
  src,
@@ -2873,21 +2945,21 @@ var ImageEditor = ({
2873
2945
  },
2874
2946
  isNew = false
2875
2947
  }) => {
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)(
2948
+ const container = (0, import_react18.useRef)(null);
2949
+ const frame = (0, import_react18.useRef)(null);
2950
+ const img = (0, import_react18.useRef)(null);
2951
+ const controller = (0, import_react18.useRef)(null);
2952
+ const topLeft = (0, import_react18.useRef)(null);
2953
+ const topRight = (0, import_react18.useRef)(null);
2954
+ const bottomLeft = (0, import_react18.useRef)(null);
2955
+ const bottomRight = (0, import_react18.useRef)(null);
2956
+ const rotate = (0, import_react18.useRef)(null);
2957
+ const rotateBottom = (0, import_react18.useRef)(null);
2958
+ const [transform, setTransform] = (0, import_react18.useState)(
2887
2959
  void 0
2888
2960
  );
2889
- const transformState = (0, import_react17.useRef)(void 0);
2890
- const originalSrc = (0, import_react17.useMemo)(() => {
2961
+ const transformState = (0, import_react18.useRef)(void 0);
2962
+ const originalSrc = (0, import_react18.useMemo)(() => {
2891
2963
  transformState.current = void 0;
2892
2964
  return src;
2893
2965
  }, [isNew]);
@@ -2946,7 +3018,7 @@ var ImageEditor = ({
2946
3018
  function handleWindowScroll(isOpen2) {
2947
3019
  document.body.style.overflow = isOpen2 ? "hidden" : "auto";
2948
3020
  }
2949
- (0, import_react17.useEffect)(() => {
3021
+ (0, import_react18.useEffect)(() => {
2950
3022
  isOpen ? createTransform() : setTransform(void 0);
2951
3023
  handleWindowScroll(isOpen);
2952
3024
  return () => {
@@ -2954,7 +3026,7 @@ var ImageEditor = ({
2954
3026
  };
2955
3027
  }, [isOpen]);
2956
3028
  if (!isOpen) return;
2957
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3029
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2958
3030
  MyContext3.Provider,
2959
3031
  {
2960
3032
  value: {
@@ -2975,11 +3047,11 @@ var ImageEditor = ({
2975
3047
  src: originalSrc,
2976
3048
  transformOperation
2977
3049
  },
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)(
3050
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { style: ImageEditor_styles_default.imageEditor, children: [
3051
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Instruction_default, {}),
3052
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(MainElements_default, {}),
3053
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { style: ImageEditor_styles_default.buttons, children: [
3054
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2983
3055
  Button_default,
2984
3056
  {
2985
3057
  buttonType: "solid",
@@ -2987,7 +3059,7 @@ var ImageEditor = ({
2987
3059
  onClick: handleAccept
2988
3060
  }
2989
3061
  ),
2990
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3062
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2991
3063
  Button_default,
2992
3064
  {
2993
3065
  buttonType: "solid",
@@ -2995,7 +3067,7 @@ var ImageEditor = ({
2995
3067
  onClick: handleCancel
2996
3068
  }
2997
3069
  ),
2998
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3070
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2999
3071
  Button_default,
3000
3072
  {
3001
3073
  buttonType: "solid",
@@ -3480,32 +3552,32 @@ var tools = {
3480
3552
  var tools_default = tools;
3481
3553
 
3482
3554
  // src/auth/react/context.tsx
3483
- var import_react18 = require("react");
3484
- var SessionContext = (0, import_react18.createContext)(
3555
+ var import_react19 = require("react");
3556
+ var SessionContext = (0, import_react19.createContext)(
3485
3557
  void 0
3486
3558
  );
3487
3559
  function useSession() {
3488
- const data = (0, import_react18.useContext)(SessionContext);
3560
+ const data = (0, import_react19.useContext)(SessionContext);
3489
3561
  if (data === void 0) throw new Error("Session context is undefined");
3490
3562
  return data;
3491
3563
  }
3492
3564
 
3493
3565
  // src/auth/react/SessionProvider.tsx
3494
- var import_jsx_runtime23 = require("react/jsx-runtime");
3566
+ var import_jsx_runtime24 = require("react/jsx-runtime");
3495
3567
  var SessionProvider = ({
3496
3568
  value,
3497
3569
  children
3498
3570
  }) => {
3499
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SessionContext.Provider, { value, children });
3571
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SessionContext.Provider, { value, children });
3500
3572
  };
3501
3573
  var SessionProvider_default = SessionProvider;
3502
3574
 
3503
3575
  // src/auth/react/useAuthClient.ts
3504
- var import_react19 = require("react");
3576
+ var import_react20 = require("react");
3505
3577
  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)(() => {
3578
+ const [isLoading, setLoading] = (0, import_react20.useState)(false);
3579
+ const sessionRef = (0, import_react20.useRef)(void 0);
3580
+ (0, import_react20.useEffect)(() => {
3509
3581
  let is = true;
3510
3582
  const getSession = () => __async(null, null, function* () {
3511
3583
  setLoading(true);
@@ -3672,6 +3744,7 @@ var LinearAlgebra_default = LinearAlgebra;
3672
3744
  InputFile,
3673
3745
  InputGoogle,
3674
3746
  LinearAlgebra,
3747
+ ModernButton,
3675
3748
  MultiSelect,
3676
3749
  OptionSlider,
3677
3750
  RangeSlider,