@retinalabsllc/zairusjs 21.2.9 → 21.3.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 +13 -6
- package/dist/index.mjs +69 -62
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -688,6 +688,10 @@ var ReusableOptions = ({
|
|
|
688
688
|
showSearch = false
|
|
689
689
|
}) => {
|
|
690
690
|
const [searchQuery, setSearchQuery] = (0, import_react11.useState)("");
|
|
691
|
+
const [pendingOption, setPendingOption] = (0, import_react11.useState)(selectedOption);
|
|
692
|
+
(0, import_react11.useEffect)(() => {
|
|
693
|
+
if (isOpen) setPendingOption(selectedOption);
|
|
694
|
+
}, [isOpen, selectedOption]);
|
|
691
695
|
if (!isOpen) return null;
|
|
692
696
|
const filteredOptions = options.filter(
|
|
693
697
|
(opt) => opt.toLowerCase().includes(searchQuery.toLowerCase())
|
|
@@ -702,20 +706,23 @@ var ReusableOptions = ({
|
|
|
702
706
|
className: "w-full pl-10 pr-4 py-2.5 bg-stone-100 rounded-full text-sm text-black placeholder-stone-400 outline-none focus:bg-stone-50 transition-colors"
|
|
703
707
|
}
|
|
704
708
|
))), /* @__PURE__ */ import_react11.default.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-2" }, filteredOptions.length === 0 ? /* @__PURE__ */ import_react11.default.createElement("div", { className: "p-6 text-center text-xs text-stone-400" }, "No options found.") : filteredOptions.map((opt) => {
|
|
705
|
-
const isSelected =
|
|
709
|
+
const isSelected = pendingOption === opt;
|
|
706
710
|
return /* @__PURE__ */ import_react11.default.createElement(
|
|
707
711
|
"button",
|
|
708
712
|
{
|
|
709
713
|
key: opt,
|
|
710
|
-
onClick: () =>
|
|
714
|
+
onClick: () => setPendingOption(opt),
|
|
711
715
|
className: `w-full text-left p-4 text-xs tracking-tight rounded-full transition-colors outline-none ${isSelected ? "text-[#d97757] bg-[#d97757]/10" : "text-stone-600 hover:bg-stone-50/50"}`
|
|
712
716
|
},
|
|
713
717
|
opt.charAt(0).toUpperCase() + opt.slice(1).toLowerCase()
|
|
714
718
|
);
|
|
715
|
-
})), /* @__PURE__ */ import_react11.default.createElement("div", { className: "p-4 flex items-center justify-
|
|
719
|
+
})), /* @__PURE__ */ import_react11.default.createElement("div", { className: "p-4 flex items-center justify-center shrink-0 bg-white" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
716
720
|
"button",
|
|
717
721
|
{
|
|
718
|
-
onClick:
|
|
722
|
+
onClick: () => {
|
|
723
|
+
onSelect(pendingOption);
|
|
724
|
+
onClose();
|
|
725
|
+
},
|
|
719
726
|
className: "text-[#d97757] outline-none text-sm tracking-wide hover:opacity-80 transition-opacity"
|
|
720
727
|
},
|
|
721
728
|
"Done"
|
|
@@ -2880,7 +2887,7 @@ var HeroSection = ({
|
|
|
2880
2887
|
className: "leading-[0.85] tracking-[-0.07em] text-[18.2vw] sm:text-[16.8vw] md:text-[15.4vw] lg:text-[14vw] xl:text-[13.3vw] 2xl:text-[14vw] text-[#ffffff]"
|
|
2881
2888
|
},
|
|
2882
2889
|
/* @__PURE__ */ import_react45.default.createElement("div", { className: "inline-flex flex-wrap" }, /* @__PURE__ */ import_react45.default.createElement("span", { className: `inline-block relative transition-all duration-1000 ${isAnimating ? "opacity-100 translate-y-0" : "opacity-0 translate-y-10"}` }, titlePrefix, titlePrefix && /* @__PURE__ */ import_react45.default.createElement("br", null), highlightText, /* @__PURE__ */ import_react45.default.createElement("span", { className: "absolute top-[0.65em] right-[-0.3em] text-[0.31em] text-[#ffffff]/70" }, "*")))
|
|
2883
|
-
)), /* @__PURE__ */ import_react45.default.createElement("div", { className: "col-span-12 flex flex-col gap-5 pb-6 lg:col-span-4 lg:pb-10" }, subtitle && /* @__PURE__ */ import_react45.default.createElement("p", { className: "text-
|
|
2890
|
+
)), /* @__PURE__ */ import_react45.default.createElement("div", { className: "col-span-12 flex flex-col gap-5 pb-6 lg:col-span-4 lg:pb-10" }, subtitle && /* @__PURE__ */ import_react45.default.createElement("p", { className: "text-sm text-[#ffffff]/70 sm:text-sm md:text-xs leading-[1.2] max-w-md transition-opacity duration-1000 delay-300" }, subtitle), /* @__PURE__ */ import_react45.default.createElement("div", { className: "flex flex-col sm:flex-row items-start sm:items-center gap-4" }, ctaText && /* @__PURE__ */ import_react45.default.createElement(
|
|
2884
2891
|
import_link6.default,
|
|
2885
2892
|
{
|
|
2886
2893
|
href: isWaitlist ? "#" : ctaHref || "#",
|
|
@@ -6570,7 +6577,7 @@ var UniversalHome3 = ({
|
|
|
6570
6577
|
},
|
|
6571
6578
|
/* @__PURE__ */ import_react97.default.createElement(import_react98.HugeiconsIcon, { icon: import_core_free_icons38.Logout01Icon, size: 15 }),
|
|
6572
6579
|
"Log Out"
|
|
6573
|
-
)))), showNotifDialog && /* @__PURE__ */ import_react97.default.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ import_react97.default.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowNotifDialog(false) }), /* @__PURE__ */ import_react97.default.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 max-h-[80vh] h-auto" }, /* @__PURE__ */ import_react97.default.createElement("div", { className: "flex items-center justify-between p-5 shrink-0" }, selectedNotif ? /* @__PURE__ */ import_react97.default.createElement("button", { onClick: () => setSelectedNotif(null), disabled: isResolving, className: "text-[#d97757] hover:text-[#d97757] transition-colors outline-none flex items-center gap-2 text-xs tracking-widest disabled:opacity-50" }, /* @__PURE__ */ import_react97.default.createElement(import_react98.HugeiconsIcon, { icon: import_core_free_icons38.ArrowLeft01Icon, size: 14 }), " Back") : /* @__PURE__ */ import_react97.default.createElement("h3", { className: "text-sm text-black tracking-tight flex items-center gap-2" }, "Notifications"), /* @__PURE__ */ import_react97.default.createElement("button", { onClick: () => setShowNotifDialog(false), disabled: isResolving, className: "text-stone-400 hover:text-black transition-colors outline-none disabled:opacity-50" }, /* @__PURE__ */ import_react97.default.createElement(import_react98.HugeiconsIcon, { icon: import_core_free_icons38.CancelCircleIcon, size: 18 }))), /* @__PURE__ */ import_react97.default.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-2 relative" }, isNotifsLoading && !selectedNotif && /* @__PURE__ */ import_react97.default.createElement("div", { className: "absolute inset-0 z-10 flex items-center justify-center" }, /* @__PURE__ */ import_react97.default.createElement(import_react98.HugeiconsIcon, { icon: import_core_free_icons38.Loading03Icon, size: 28, className: "animate-spin text-black" })), selectedNotif ? /* @__PURE__ */ import_react97.default.createElement("div", { className: "p-4 text-left" }, selectedNotif.type === "
|
|
6580
|
+
)))), showNotifDialog && /* @__PURE__ */ import_react97.default.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ import_react97.default.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowNotifDialog(false) }), /* @__PURE__ */ import_react97.default.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 max-h-[80vh] h-auto" }, /* @__PURE__ */ import_react97.default.createElement("div", { className: "flex items-center justify-between p-5 shrink-0" }, selectedNotif ? /* @__PURE__ */ import_react97.default.createElement("button", { onClick: () => setSelectedNotif(null), disabled: isResolving, className: "text-[#d97757] hover:text-[#d97757] transition-colors outline-none flex items-center gap-2 text-xs tracking-widest disabled:opacity-50" }, /* @__PURE__ */ import_react97.default.createElement(import_react98.HugeiconsIcon, { icon: import_core_free_icons38.ArrowLeft01Icon, size: 14 }), " Back") : /* @__PURE__ */ import_react97.default.createElement("h3", { className: "text-sm text-black tracking-tight flex items-center gap-2" }, "Notifications"), /* @__PURE__ */ import_react97.default.createElement("button", { onClick: () => setShowNotifDialog(false), disabled: isResolving, className: "text-stone-400 hover:text-black transition-colors outline-none disabled:opacity-50" }, /* @__PURE__ */ import_react97.default.createElement(import_react98.HugeiconsIcon, { icon: import_core_free_icons38.CancelCircleIcon, size: 18 }))), /* @__PURE__ */ import_react97.default.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-2 relative" }, isNotifsLoading && !selectedNotif && /* @__PURE__ */ import_react97.default.createElement("div", { className: "absolute inset-0 z-10 flex items-center justify-center" }, /* @__PURE__ */ import_react97.default.createElement(import_react98.HugeiconsIcon, { icon: import_core_free_icons38.Loading03Icon, size: 28, className: "animate-spin text-black" })), selectedNotif ? /* @__PURE__ */ import_react97.default.createElement("div", { className: "p-4 text-left" }, selectedNotif.type === "ORG_INVITE" && selectedNotif.meta_json?.action === "RESOLVE_INVITE" && selectedNotif.meta_json?.completed ? /* @__PURE__ */ import_react97.default.createElement("div", { className: "" }) : /* @__PURE__ */ import_react97.default.createElement("h4", { className: "text-sm text-black mb-1" }, selectedNotif.title), /* @__PURE__ */ import_react97.default.createElement("span", { className: "text-xs text-stone-400 tracking-widest mb-4 block" }, formatNotifDate(selectedNotif.createdAt)), /* @__PURE__ */ import_react97.default.createElement("p", { className: "text-xs text-stone-600 leading-relaxed whitespace-pre-wrap" }, selectedNotif.message), selectedNotif.type === "ORG_INVITE" && selectedNotif.meta_json?.action === "RESOLVE_INVITE" && /* @__PURE__ */ import_react97.default.createElement("div", { className: `mt-8 flex gap-3 pt-6 ${selectedNotif.meta_json?.completed ? "opacity-40 pointer-events-none cursor-not-allowed" : ""}` }, /* @__PURE__ */ import_react97.default.createElement(
|
|
6574
6581
|
"button",
|
|
6575
6582
|
{
|
|
6576
6583
|
onClick: () => handleResolve("ACCEPTED"),
|
package/dist/index.mjs
CHANGED
|
@@ -540,7 +540,7 @@ var Footer = ({
|
|
|
540
540
|
};
|
|
541
541
|
|
|
542
542
|
// src/components/UniversalHuddleDetails.tsx
|
|
543
|
-
import React11, { useState as useState7, useEffect as
|
|
543
|
+
import React11, { useState as useState7, useEffect as useEffect6, useRef as useRef3 } from "react";
|
|
544
544
|
import { HugeiconsIcon as HugeiconsIcon7 } from "@hugeicons/react";
|
|
545
545
|
import {
|
|
546
546
|
ArrowLeft01Icon as ArrowLeft01Icon2,
|
|
@@ -589,7 +589,7 @@ var ManagedToaster = () => {
|
|
|
589
589
|
};
|
|
590
590
|
|
|
591
591
|
// src/components/ReusableOptions.tsx
|
|
592
|
-
import React8, { useState as useState5 } from "react";
|
|
592
|
+
import React8, { useEffect as useEffect4, useState as useState5 } from "react";
|
|
593
593
|
import { HugeiconsIcon as HugeiconsIcon4 } from "@hugeicons/react";
|
|
594
594
|
import { CancelCircleIcon, Search01Icon } from "@hugeicons/core-free-icons";
|
|
595
595
|
var ReusableOptions = ({
|
|
@@ -602,6 +602,10 @@ var ReusableOptions = ({
|
|
|
602
602
|
showSearch = false
|
|
603
603
|
}) => {
|
|
604
604
|
const [searchQuery, setSearchQuery] = useState5("");
|
|
605
|
+
const [pendingOption, setPendingOption] = useState5(selectedOption);
|
|
606
|
+
useEffect4(() => {
|
|
607
|
+
if (isOpen) setPendingOption(selectedOption);
|
|
608
|
+
}, [isOpen, selectedOption]);
|
|
605
609
|
if (!isOpen) return null;
|
|
606
610
|
const filteredOptions = options.filter(
|
|
607
611
|
(opt) => opt.toLowerCase().includes(searchQuery.toLowerCase())
|
|
@@ -616,20 +620,23 @@ var ReusableOptions = ({
|
|
|
616
620
|
className: "w-full pl-10 pr-4 py-2.5 bg-stone-100 rounded-full text-sm text-black placeholder-stone-400 outline-none focus:bg-stone-50 transition-colors"
|
|
617
621
|
}
|
|
618
622
|
))), /* @__PURE__ */ React8.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-2" }, filteredOptions.length === 0 ? /* @__PURE__ */ React8.createElement("div", { className: "p-6 text-center text-xs text-stone-400" }, "No options found.") : filteredOptions.map((opt) => {
|
|
619
|
-
const isSelected =
|
|
623
|
+
const isSelected = pendingOption === opt;
|
|
620
624
|
return /* @__PURE__ */ React8.createElement(
|
|
621
625
|
"button",
|
|
622
626
|
{
|
|
623
627
|
key: opt,
|
|
624
|
-
onClick: () =>
|
|
628
|
+
onClick: () => setPendingOption(opt),
|
|
625
629
|
className: `w-full text-left p-4 text-xs tracking-tight rounded-full transition-colors outline-none ${isSelected ? "text-[#d97757] bg-[#d97757]/10" : "text-stone-600 hover:bg-stone-50/50"}`
|
|
626
630
|
},
|
|
627
631
|
opt.charAt(0).toUpperCase() + opt.slice(1).toLowerCase()
|
|
628
632
|
);
|
|
629
|
-
})), /* @__PURE__ */ React8.createElement("div", { className: "p-4 flex items-center justify-
|
|
633
|
+
})), /* @__PURE__ */ React8.createElement("div", { className: "p-4 flex items-center justify-center shrink-0 bg-white" }, /* @__PURE__ */ React8.createElement(
|
|
630
634
|
"button",
|
|
631
635
|
{
|
|
632
|
-
onClick:
|
|
636
|
+
onClick: () => {
|
|
637
|
+
onSelect(pendingOption);
|
|
638
|
+
onClose();
|
|
639
|
+
},
|
|
633
640
|
className: "text-[#d97757] outline-none text-sm tracking-wide hover:opacity-80 transition-opacity"
|
|
634
641
|
},
|
|
635
642
|
"Done"
|
|
@@ -637,7 +644,7 @@ var ReusableOptions = ({
|
|
|
637
644
|
};
|
|
638
645
|
|
|
639
646
|
// src/components/CalendarPicker.tsx
|
|
640
|
-
import React9, { useState as useState6, useEffect as
|
|
647
|
+
import React9, { useState as useState6, useEffect as useEffect5 } from "react";
|
|
641
648
|
import { HugeiconsIcon as HugeiconsIcon5 } from "@hugeicons/react";
|
|
642
649
|
import {
|
|
643
650
|
CancelCircleIcon as CancelCircleIcon2,
|
|
@@ -666,7 +673,7 @@ var CalendarPicker = ({
|
|
|
666
673
|
const [hour, setHour] = useState6(initialDate.getHours() % 12 || 12);
|
|
667
674
|
const [minute, setMinute] = useState6(initialDate.getMinutes());
|
|
668
675
|
const [ampm, setAmpm] = useState6(initialDate.getHours() >= 12 ? "PM" : "AM");
|
|
669
|
-
|
|
676
|
+
useEffect5(() => {
|
|
670
677
|
if (isOpen) {
|
|
671
678
|
setMode(defaultMode);
|
|
672
679
|
setViewMonth(initialDate.getMonth());
|
|
@@ -884,7 +891,7 @@ var UniversalHuddleDetails = ({
|
|
|
884
891
|
const [showMembersModal, setShowMembersModal] = useState7(false);
|
|
885
892
|
const [liveStatus, setLiveStatus] = useState7(huddle.status);
|
|
886
893
|
const [timeRemaining, setTimeRemaining] = useState7("");
|
|
887
|
-
|
|
894
|
+
useEffect6(() => {
|
|
888
895
|
if (liveStatus !== "SCHEDULED") return;
|
|
889
896
|
const interval = setInterval(() => {
|
|
890
897
|
const now = (/* @__PURE__ */ new Date()).getTime();
|
|
@@ -1061,7 +1068,7 @@ var MobileNav = ({ items, hideMobileNav = false }) => {
|
|
|
1061
1068
|
};
|
|
1062
1069
|
|
|
1063
1070
|
// src/components/UniversalOrganizationPage.tsx
|
|
1064
|
-
import React15, { useState as useState10, useEffect as
|
|
1071
|
+
import React15, { useState as useState10, useEffect as useEffect7 } from "react";
|
|
1065
1072
|
import toast2 from "react-hot-toast";
|
|
1066
1073
|
|
|
1067
1074
|
// src/components/TextInput.tsx
|
|
@@ -1204,7 +1211,7 @@ var UniversalOrganizationPage = ({
|
|
|
1204
1211
|
const [isCheckingSlug, setIsCheckingSlug] = useState10(false);
|
|
1205
1212
|
const [slugAvailable, setSlugAvailable] = useState10(null);
|
|
1206
1213
|
const [isSubmitting, setIsSubmitting] = useState10(false);
|
|
1207
|
-
|
|
1214
|
+
useEffect7(() => {
|
|
1208
1215
|
setWeb3Name(initialOrgName || "");
|
|
1209
1216
|
setSlug(initialSlug || "");
|
|
1210
1217
|
setUsername(initialUsername || initialSlug || "");
|
|
@@ -1218,7 +1225,7 @@ var UniversalOrganizationPage = ({
|
|
|
1218
1225
|
const handleSlugChange = (val) => {
|
|
1219
1226
|
setSlug(val.toLowerCase().replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").substring(0, 50));
|
|
1220
1227
|
};
|
|
1221
|
-
|
|
1228
|
+
useEffect7(() => {
|
|
1222
1229
|
if (!slug || slug === initialSlug) {
|
|
1223
1230
|
setSlugAvailable(null);
|
|
1224
1231
|
setIsCheckingSlug(false);
|
|
@@ -1338,7 +1345,7 @@ var UniversalOrganizationPage = ({
|
|
|
1338
1345
|
};
|
|
1339
1346
|
|
|
1340
1347
|
// src/components/UniversalProfileSettings.tsx
|
|
1341
|
-
import React16, { useState as useState11, useEffect as
|
|
1348
|
+
import React16, { useState as useState11, useEffect as useEffect8 } from "react";
|
|
1342
1349
|
import toast3 from "react-hot-toast";
|
|
1343
1350
|
import { HugeiconsIcon as HugeiconsIcon11 } from "@hugeicons/react";
|
|
1344
1351
|
import {
|
|
@@ -1373,7 +1380,7 @@ var UniversalProfileSettings = ({
|
|
|
1373
1380
|
const [newPasscode, setNewPasscode] = useState11("");
|
|
1374
1381
|
const [confirmPasscode, setConfirmPasscode] = useState11("");
|
|
1375
1382
|
const [isPasscodeSubmitting, setIsPasscodeSubmitting] = useState11(false);
|
|
1376
|
-
|
|
1383
|
+
useEffect8(() => {
|
|
1377
1384
|
setFirstName(initialFirstName || "");
|
|
1378
1385
|
setLastName(initialLastName || "");
|
|
1379
1386
|
}, [initialFirstName, initialLastName]);
|
|
@@ -1636,7 +1643,7 @@ var UniversalErrorView = ({
|
|
|
1636
1643
|
};
|
|
1637
1644
|
|
|
1638
1645
|
// src/components/UniversalTransactionPage.tsx
|
|
1639
|
-
import React19, { useState as useState12, useEffect as
|
|
1646
|
+
import React19, { useState as useState12, useEffect as useEffect9, useRef as useRef4 } from "react";
|
|
1640
1647
|
import { HugeiconsIcon as HugeiconsIcon14 } from "@hugeicons/react";
|
|
1641
1648
|
import toast4 from "react-hot-toast";
|
|
1642
1649
|
import {
|
|
@@ -1706,7 +1713,7 @@ var UniversalTransactionPage = ({
|
|
|
1706
1713
|
const [isTypeModalOpen, setIsTypeModalOpen] = useState12(false);
|
|
1707
1714
|
const directionDropdownRef = useRef4(null);
|
|
1708
1715
|
const typeDropdownRef = useRef4(null);
|
|
1709
|
-
|
|
1716
|
+
useEffect9(() => {
|
|
1710
1717
|
function handleClickOutside(event) {
|
|
1711
1718
|
if (directionDropdownRef.current && !directionDropdownRef.current.contains(event.target)) {
|
|
1712
1719
|
setIsDirectionModalOpen(false);
|
|
@@ -1718,7 +1725,7 @@ var UniversalTransactionPage = ({
|
|
|
1718
1725
|
document.addEventListener("mousedown", handleClickOutside);
|
|
1719
1726
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
1720
1727
|
}, []);
|
|
1721
|
-
|
|
1728
|
+
useEffect9(() => {
|
|
1722
1729
|
setIsTyping(true);
|
|
1723
1730
|
const handler = setTimeout(() => {
|
|
1724
1731
|
onSearchChange(localSearchQuery);
|
|
@@ -1726,7 +1733,7 @@ var UniversalTransactionPage = ({
|
|
|
1726
1733
|
}, 600);
|
|
1727
1734
|
return () => clearTimeout(handler);
|
|
1728
1735
|
}, [localSearchQuery, onSearchChange]);
|
|
1729
|
-
|
|
1736
|
+
useEffect9(() => {
|
|
1730
1737
|
if (searchQuery === "" && localSearchQuery !== "") {
|
|
1731
1738
|
setLocalSearchQuery("");
|
|
1732
1739
|
}
|
|
@@ -2235,7 +2242,7 @@ var UniversalWalletPage = ({
|
|
|
2235
2242
|
};
|
|
2236
2243
|
|
|
2237
2244
|
// src/components/UniversalCardPage.tsx
|
|
2238
|
-
import React22, { useState as useState15, useEffect as
|
|
2245
|
+
import React22, { useState as useState15, useEffect as useEffect10 } from "react";
|
|
2239
2246
|
import { useRouter as useRouter2 } from "next/navigation";
|
|
2240
2247
|
import toast6 from "react-hot-toast";
|
|
2241
2248
|
import { HugeiconsIcon as HugeiconsIcon17 } from "@hugeicons/react";
|
|
@@ -2271,7 +2278,7 @@ var UniversalCardPage = ({
|
|
|
2271
2278
|
const [isFreezing, setIsFreezing] = useState15(false);
|
|
2272
2279
|
const [showDeleteDialog, setShowDeleteDialog] = useState15(false);
|
|
2273
2280
|
const [isDeleting, setIsDeleting] = useState15(false);
|
|
2274
|
-
|
|
2281
|
+
useEffect10(() => {
|
|
2275
2282
|
setIsBgLoaded(false);
|
|
2276
2283
|
if (!activeCard?.cardBgSrc) return;
|
|
2277
2284
|
const img = new Image();
|
|
@@ -2412,7 +2419,7 @@ var CardInfoDialog = ({ isOpen, onClose, cardDetails }) => {
|
|
|
2412
2419
|
var FundCardDialog = ({ isOpen, onClose, onSubmit }) => {
|
|
2413
2420
|
const [amount, setAmount] = useState15("");
|
|
2414
2421
|
const [isProcessing, setIsProcessing] = useState15(false);
|
|
2415
|
-
|
|
2422
|
+
useEffect10(() => {
|
|
2416
2423
|
if (isOpen) {
|
|
2417
2424
|
setAmount("");
|
|
2418
2425
|
}
|
|
@@ -2692,7 +2699,7 @@ var UniversalSidebar = ({
|
|
|
2692
2699
|
};
|
|
2693
2700
|
|
|
2694
2701
|
// src/components/HeroSection.tsx
|
|
2695
|
-
import React26, { useState as useState19, useEffect as
|
|
2702
|
+
import React26, { useState as useState19, useEffect as useEffect11, useRef as useRef5 } from "react";
|
|
2696
2703
|
import Link6 from "next/link";
|
|
2697
2704
|
import Image3 from "next/image";
|
|
2698
2705
|
|
|
@@ -2807,7 +2814,7 @@ var HeroSection = ({
|
|
|
2807
2814
|
const [isAnimating, setIsAnimating] = useState19(false);
|
|
2808
2815
|
const [isWaitlistOpen, setIsWaitlistOpen] = useState19(false);
|
|
2809
2816
|
const titleRef = useRef5(null);
|
|
2810
|
-
|
|
2817
|
+
useEffect11(() => {
|
|
2811
2818
|
const observer = new IntersectionObserver(
|
|
2812
2819
|
([entry]) => {
|
|
2813
2820
|
if (entry.isIntersecting) {
|
|
@@ -2864,7 +2871,7 @@ var HeroSection = ({
|
|
|
2864
2871
|
className: "leading-[0.85] tracking-[-0.07em] text-[18.2vw] sm:text-[16.8vw] md:text-[15.4vw] lg:text-[14vw] xl:text-[13.3vw] 2xl:text-[14vw] text-[#ffffff]"
|
|
2865
2872
|
},
|
|
2866
2873
|
/* @__PURE__ */ React26.createElement("div", { className: "inline-flex flex-wrap" }, /* @__PURE__ */ React26.createElement("span", { className: `inline-block relative transition-all duration-1000 ${isAnimating ? "opacity-100 translate-y-0" : "opacity-0 translate-y-10"}` }, titlePrefix, titlePrefix && /* @__PURE__ */ React26.createElement("br", null), highlightText, /* @__PURE__ */ React26.createElement("span", { className: "absolute top-[0.65em] right-[-0.3em] text-[0.31em] text-[#ffffff]/70" }, "*")))
|
|
2867
|
-
)), /* @__PURE__ */ React26.createElement("div", { className: "col-span-12 flex flex-col gap-5 pb-6 lg:col-span-4 lg:pb-10" }, subtitle && /* @__PURE__ */ React26.createElement("p", { className: "text-
|
|
2874
|
+
)), /* @__PURE__ */ React26.createElement("div", { className: "col-span-12 flex flex-col gap-5 pb-6 lg:col-span-4 lg:pb-10" }, subtitle && /* @__PURE__ */ React26.createElement("p", { className: "text-sm text-[#ffffff]/70 sm:text-sm md:text-xs leading-[1.2] max-w-md transition-opacity duration-1000 delay-300" }, subtitle), /* @__PURE__ */ React26.createElement("div", { className: "flex flex-col sm:flex-row items-start sm:items-center gap-4" }, ctaText && /* @__PURE__ */ React26.createElement(
|
|
2868
2875
|
Link6,
|
|
2869
2876
|
{
|
|
2870
2877
|
href: isWaitlist ? "#" : ctaHref || "#",
|
|
@@ -2900,12 +2907,12 @@ var HeroSection = ({
|
|
|
2900
2907
|
};
|
|
2901
2908
|
|
|
2902
2909
|
// src/components/AppBento2.tsx
|
|
2903
|
-
import React27, { useState as useState20, useEffect as
|
|
2910
|
+
import React27, { useState as useState20, useEffect as useEffect12, useRef as useRef6 } from "react";
|
|
2904
2911
|
import { HugeiconsIcon as HugeiconsIcon20 } from "@hugeicons/react";
|
|
2905
2912
|
var AppBento2 = ({ tagline, headline, features }) => {
|
|
2906
2913
|
const [isAnimating, setIsAnimating] = useState20(false);
|
|
2907
2914
|
const titleRef = useRef6(null);
|
|
2908
|
-
|
|
2915
|
+
useEffect12(() => {
|
|
2909
2916
|
const observer = new IntersectionObserver(
|
|
2910
2917
|
([entry]) => {
|
|
2911
2918
|
if (entry.isIntersecting) {
|
|
@@ -3181,7 +3188,7 @@ var MenuRow3 = ({
|
|
|
3181
3188
|
);
|
|
3182
3189
|
|
|
3183
3190
|
// src/components/FeatureScroll.tsx
|
|
3184
|
-
import React29, { useRef as useRef7, useState as useState22, useEffect as
|
|
3191
|
+
import React29, { useRef as useRef7, useState as useState22, useEffect as useEffect13 } from "react";
|
|
3185
3192
|
import Image4 from "next/image";
|
|
3186
3193
|
import { HugeiconsIcon as HugeiconsIcon22 } from "@hugeicons/react";
|
|
3187
3194
|
import { ArrowLeft01Icon as ArrowLeft01Icon9, ArrowRight01Icon as ArrowRight01Icon8, Loading03Icon as Loading03Icon13 } from "@hugeicons/core-free-icons";
|
|
@@ -3246,7 +3253,7 @@ var FeatureScroll = ({ tagline, headline, features, expand = false }) => {
|
|
|
3246
3253
|
setCanScrollRight(scrollLeft < scrollWidth - clientWidth - 2);
|
|
3247
3254
|
}
|
|
3248
3255
|
};
|
|
3249
|
-
|
|
3256
|
+
useEffect13(() => {
|
|
3250
3257
|
checkScroll();
|
|
3251
3258
|
window.addEventListener("resize", checkScroll);
|
|
3252
3259
|
return () => window.removeEventListener("resize", checkScroll);
|
|
@@ -3338,7 +3345,7 @@ var PlatformFeatures = ({
|
|
|
3338
3345
|
};
|
|
3339
3346
|
|
|
3340
3347
|
// src/components/ManagedDocument.tsx
|
|
3341
|
-
import React31, { useState as useState23, useEffect as
|
|
3348
|
+
import React31, { useState as useState23, useEffect as useEffect14, useRef as useRef8 } from "react";
|
|
3342
3349
|
var ManagedDocument = ({
|
|
3343
3350
|
tagline,
|
|
3344
3351
|
title,
|
|
@@ -3348,7 +3355,7 @@ var ManagedDocument = ({
|
|
|
3348
3355
|
}) => {
|
|
3349
3356
|
const [isAnimating, setIsAnimating] = useState23(false);
|
|
3350
3357
|
const titleRef = useRef8(null);
|
|
3351
|
-
|
|
3358
|
+
useEffect14(() => {
|
|
3352
3359
|
const observer = new IntersectionObserver(
|
|
3353
3360
|
([entry]) => {
|
|
3354
3361
|
if (entry.isIntersecting) {
|
|
@@ -3584,7 +3591,7 @@ var ManagedContactBlock = ({
|
|
|
3584
3591
|
};
|
|
3585
3592
|
|
|
3586
3593
|
// src/components/ManagedPricingBlock.tsx
|
|
3587
|
-
import React33, { useState as useState25, useEffect as
|
|
3594
|
+
import React33, { useState as useState25, useEffect as useEffect15, useRef as useRef9 } from "react";
|
|
3588
3595
|
import Link7 from "next/link";
|
|
3589
3596
|
import Image5 from "next/image";
|
|
3590
3597
|
var CheckIcon = ({ className = "" }) => /* @__PURE__ */ React33.createElement("svg", { viewBox: "0 0 24 24", fill: "none", className: `w-4 h-4 shrink-0 ${className}`, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React33.createElement("circle", { cx: "12", cy: "12", r: "10", fill: "black" }), /* @__PURE__ */ React33.createElement("path", { d: "M8 12L11 15L16 9", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
@@ -3598,7 +3605,7 @@ var ManagedPricingBlock = ({
|
|
|
3598
3605
|
const [isAnimating, setIsAnimating] = useState25(false);
|
|
3599
3606
|
const [activeTabIndex, setActiveTabIndex] = useState25(0);
|
|
3600
3607
|
const titleRef = useRef9(null);
|
|
3601
|
-
|
|
3608
|
+
useEffect15(() => {
|
|
3602
3609
|
const observer = new IntersectionObserver(
|
|
3603
3610
|
([entry]) => {
|
|
3604
3611
|
if (entry.isIntersecting) {
|
|
@@ -3813,12 +3820,12 @@ var ManagedNewsletterSplitBlock = ({
|
|
|
3813
3820
|
};
|
|
3814
3821
|
|
|
3815
3822
|
// src/components/PortfolioHero.tsx
|
|
3816
|
-
import React37, { useEffect as
|
|
3823
|
+
import React37, { useEffect as useEffect16, useRef as useRef10 } from "react";
|
|
3817
3824
|
import Link8 from "next/link";
|
|
3818
3825
|
import Image8 from "next/image";
|
|
3819
3826
|
var useScrollAnimation = () => {
|
|
3820
3827
|
const elementRef = useRef10(null);
|
|
3821
|
-
|
|
3828
|
+
useEffect16(() => {
|
|
3822
3829
|
const el = elementRef.current;
|
|
3823
3830
|
if (!el) return;
|
|
3824
3831
|
const observer = new IntersectionObserver(
|
|
@@ -3945,7 +3952,7 @@ var GifFeatureCard = ({
|
|
|
3945
3952
|
};
|
|
3946
3953
|
|
|
3947
3954
|
// src/components/MedicalFeatureStatsBlock.tsx
|
|
3948
|
-
import React39, { useState as useState27, useEffect as
|
|
3955
|
+
import React39, { useState as useState27, useEffect as useEffect17, useRef as useRef11 } from "react";
|
|
3949
3956
|
import Image10 from "next/image";
|
|
3950
3957
|
var MedicalFeatureStatsBlock = ({
|
|
3951
3958
|
bottomHeadline,
|
|
@@ -3956,7 +3963,7 @@ var MedicalFeatureStatsBlock = ({
|
|
|
3956
3963
|
}) => {
|
|
3957
3964
|
const [isAnimating, setIsAnimating] = useState27(false);
|
|
3958
3965
|
const titleRef = useRef11(null);
|
|
3959
|
-
|
|
3966
|
+
useEffect17(() => {
|
|
3960
3967
|
const observer = new IntersectionObserver(
|
|
3961
3968
|
([entry]) => {
|
|
3962
3969
|
if (entry.isIntersecting) {
|
|
@@ -4679,7 +4686,7 @@ var UniversalCardActionPage = ({
|
|
|
4679
4686
|
};
|
|
4680
4687
|
|
|
4681
4688
|
// src/components/PinDialerBottomSheet.tsx
|
|
4682
|
-
import React47, { useState as useState33, useEffect as
|
|
4689
|
+
import React47, { useState as useState33, useEffect as useEffect18 } from "react";
|
|
4683
4690
|
import { HugeiconsIcon as HugeiconsIcon33 } from "@hugeicons/react";
|
|
4684
4691
|
import { CancelCircleIcon as CancelCircleIcon12 } from "@hugeicons/core-free-icons";
|
|
4685
4692
|
var PinDialerBottomSheet = ({
|
|
@@ -4690,7 +4697,7 @@ var PinDialerBottomSheet = ({
|
|
|
4690
4697
|
onComplete
|
|
4691
4698
|
}) => {
|
|
4692
4699
|
const [pin, setPin] = useState33("");
|
|
4693
|
-
|
|
4700
|
+
useEffect18(() => {
|
|
4694
4701
|
setPin("");
|
|
4695
4702
|
}, [isOpen]);
|
|
4696
4703
|
const handleSubmit = (e) => {
|
|
@@ -4741,7 +4748,7 @@ var PinDialerBottomSheet = ({
|
|
|
4741
4748
|
};
|
|
4742
4749
|
|
|
4743
4750
|
// src/components/UniversalBuyCryptoPage.tsx
|
|
4744
|
-
import React48, { useState as useState34, useEffect as
|
|
4751
|
+
import React48, { useState as useState34, useEffect as useEffect19, useRef as useRef12, useCallback } from "react";
|
|
4745
4752
|
import toast12 from "react-hot-toast";
|
|
4746
4753
|
import { HugeiconsIcon as HugeiconsIcon34 } from "@hugeicons/react";
|
|
4747
4754
|
import {
|
|
@@ -4826,7 +4833,7 @@ var UniversalBuyCryptoPage = ({
|
|
|
4826
4833
|
const [isNetworkDialogOpen, setIsNetworkDialogOpen] = useState34(false);
|
|
4827
4834
|
const [isSubmitting, setIsSubmitting] = useState34(false);
|
|
4828
4835
|
const debounceTimerRef = useRef12(null);
|
|
4829
|
-
|
|
4836
|
+
useEffect19(() => {
|
|
4830
4837
|
if (selectedCrypto?.networks?.length > 0) {
|
|
4831
4838
|
const exists = selectedCrypto.networks.find((n) => n.id === selectedNetwork.id);
|
|
4832
4839
|
if (!exists) {
|
|
@@ -4834,7 +4841,7 @@ var UniversalBuyCryptoPage = ({
|
|
|
4834
4841
|
}
|
|
4835
4842
|
}
|
|
4836
4843
|
}, [selectedCrypto]);
|
|
4837
|
-
|
|
4844
|
+
useEffect19(() => {
|
|
4838
4845
|
if (!recipientAddress.trim()) {
|
|
4839
4846
|
setIsAddressValid(false);
|
|
4840
4847
|
return;
|
|
@@ -5104,7 +5111,7 @@ var UniversalHuddlesPage = ({
|
|
|
5104
5111
|
};
|
|
5105
5112
|
|
|
5106
5113
|
// src/components/UniversalMembersPage.tsx
|
|
5107
|
-
import React50, { useState as useState35, useEffect as
|
|
5114
|
+
import React50, { useState as useState35, useEffect as useEffect20, useRef as useRef13 } from "react";
|
|
5108
5115
|
import { HugeiconsIcon as HugeiconsIcon36 } from "@hugeicons/react";
|
|
5109
5116
|
import toast13 from "react-hot-toast";
|
|
5110
5117
|
import {
|
|
@@ -5178,7 +5185,7 @@ var UniversalMembersPage = ({
|
|
|
5178
5185
|
const statusDropdownRef = useRef13(null);
|
|
5179
5186
|
const roleDropdownRef = useRef13(null);
|
|
5180
5187
|
const cleanEmailId = (val) => val.toLowerCase().replace(/[^a-z0-9@._-]/g, "");
|
|
5181
|
-
|
|
5188
|
+
useEffect20(() => {
|
|
5182
5189
|
function handleClickOutside(event) {
|
|
5183
5190
|
if (statusDropdownRef.current && !statusDropdownRef.current.contains(event.target)) {
|
|
5184
5191
|
setIsStatusModalOpen(false);
|
|
@@ -5190,7 +5197,7 @@ var UniversalMembersPage = ({
|
|
|
5190
5197
|
document.addEventListener("mousedown", handleClickOutside);
|
|
5191
5198
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
5192
5199
|
}, []);
|
|
5193
|
-
|
|
5200
|
+
useEffect20(() => {
|
|
5194
5201
|
setIsTyping(true);
|
|
5195
5202
|
const handler = setTimeout(() => {
|
|
5196
5203
|
onSearchChange(localSearchQuery);
|
|
@@ -5198,7 +5205,7 @@ var UniversalMembersPage = ({
|
|
|
5198
5205
|
}, 600);
|
|
5199
5206
|
return () => clearTimeout(handler);
|
|
5200
5207
|
}, [localSearchQuery, onSearchChange]);
|
|
5201
|
-
|
|
5208
|
+
useEffect20(() => {
|
|
5202
5209
|
if (searchQuery === "" && localSearchQuery !== "") {
|
|
5203
5210
|
setLocalSearchQuery("");
|
|
5204
5211
|
}
|
|
@@ -5598,7 +5605,7 @@ var UniversalHome2 = ({
|
|
|
5598
5605
|
};
|
|
5599
5606
|
|
|
5600
5607
|
// src/components/UniversalSettings.tsx
|
|
5601
|
-
import React52, { useState as useState37, useEffect as
|
|
5608
|
+
import React52, { useState as useState37, useEffect as useEffect21, useRef as useRef14 } from "react";
|
|
5602
5609
|
import toast15 from "react-hot-toast";
|
|
5603
5610
|
import { HugeiconsIcon as HugeiconsIcon38 } from "@hugeicons/react";
|
|
5604
5611
|
import {
|
|
@@ -5728,7 +5735,7 @@ var UniversalSettings = ({
|
|
|
5728
5735
|
const [pendingUserAvatar, setPendingUserAvatar] = useState37(null);
|
|
5729
5736
|
const [isUploadingOrgAvatar, setIsUploadingOrgAvatar] = useState37(false);
|
|
5730
5737
|
const [isUploadingUserAvatar, setIsUploadingUserAvatar] = useState37(false);
|
|
5731
|
-
|
|
5738
|
+
useEffect21(() => {
|
|
5732
5739
|
setOrgName(initialOrgName || "");
|
|
5733
5740
|
setOrgSlug(initialOrgSlug || "");
|
|
5734
5741
|
setOrgAvatarUrl(initialOrgAvatarUrl || "");
|
|
@@ -5763,7 +5770,7 @@ var UniversalSettings = ({
|
|
|
5763
5770
|
}
|
|
5764
5771
|
e.target.value = "";
|
|
5765
5772
|
};
|
|
5766
|
-
|
|
5773
|
+
useEffect21(() => {
|
|
5767
5774
|
if (activeTab !== "MEMBERS") return;
|
|
5768
5775
|
if (isFirstSearchMount.current) {
|
|
5769
5776
|
isFirstSearchMount.current = false;
|
|
@@ -5820,7 +5827,7 @@ var UniversalSettings = ({
|
|
|
5820
5827
|
}
|
|
5821
5828
|
};
|
|
5822
5829
|
const activeExpandedMember = expandedId ? members.find((m) => m.id === expandedId) : null;
|
|
5823
|
-
|
|
5830
|
+
useEffect21(() => {
|
|
5824
5831
|
if (!isOrg || !orgSlug || orgSlug === initialOrgSlug) {
|
|
5825
5832
|
setSlugAvailable(null);
|
|
5826
5833
|
setIsCheckingSlug(false);
|
|
@@ -5974,7 +5981,7 @@ var UniversalSettings = ({
|
|
|
5974
5981
|
};
|
|
5975
5982
|
|
|
5976
5983
|
// src/components/UniversalCreateHuddle.tsx
|
|
5977
|
-
import React53, { useState as useState38, useEffect as
|
|
5984
|
+
import React53, { useState as useState38, useEffect as useEffect22, useRef as useRef15 } from "react";
|
|
5978
5985
|
import toast16 from "react-hot-toast";
|
|
5979
5986
|
import { HugeiconsIcon as HugeiconsIcon39 } from "@hugeicons/react";
|
|
5980
5987
|
import {
|
|
@@ -6041,7 +6048,7 @@ var UniversalCreateHuddle = ({
|
|
|
6041
6048
|
const [title, setTitle] = useState38("");
|
|
6042
6049
|
const [isPrivate, setIsPrivate] = useState38(false);
|
|
6043
6050
|
const [timezone, setTimezone] = useState38("UTC");
|
|
6044
|
-
|
|
6051
|
+
useEffect22(() => {
|
|
6045
6052
|
try {
|
|
6046
6053
|
setTimezone(Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
6047
6054
|
} catch (e) {
|
|
@@ -6214,7 +6221,7 @@ var UniversalCreateHuddle = ({
|
|
|
6214
6221
|
};
|
|
6215
6222
|
|
|
6216
6223
|
// src/components/HomeHuddleCalendar.tsx
|
|
6217
|
-
import React54, { useState as useState39, useRef as useRef16, useEffect as
|
|
6224
|
+
import React54, { useState as useState39, useRef as useRef16, useEffect as useEffect23 } from "react";
|
|
6218
6225
|
import { useRouter as useRouter4 } from "next/navigation";
|
|
6219
6226
|
import { HugeiconsIcon as HugeiconsIcon40 } from "@hugeicons/react";
|
|
6220
6227
|
import {
|
|
@@ -6268,7 +6275,7 @@ var HomeHuddleCalendar = ({
|
|
|
6268
6275
|
const [isStatusModalOpen, setIsStatusModalOpen] = useState39(false);
|
|
6269
6276
|
const typingTimer = useRef16(null);
|
|
6270
6277
|
const isSearching = localSearch.trim().length > 0;
|
|
6271
|
-
|
|
6278
|
+
useEffect23(() => {
|
|
6272
6279
|
setLocalSearch(searchQuery);
|
|
6273
6280
|
}, [searchQuery]);
|
|
6274
6281
|
const handleSearchInput = (e) => {
|
|
@@ -6646,7 +6653,7 @@ var UniversalHome3 = ({
|
|
|
6646
6653
|
},
|
|
6647
6654
|
/* @__PURE__ */ React56.createElement(HugeiconsIcon42, { icon: Logout01Icon2, size: 15 }),
|
|
6648
6655
|
"Log Out"
|
|
6649
|
-
)))), showNotifDialog && /* @__PURE__ */ React56.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ React56.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowNotifDialog(false) }), /* @__PURE__ */ React56.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 max-h-[80vh] h-auto" }, /* @__PURE__ */ React56.createElement("div", { className: "flex items-center justify-between p-5 shrink-0" }, selectedNotif ? /* @__PURE__ */ React56.createElement("button", { onClick: () => setSelectedNotif(null), disabled: isResolving, className: "text-[#d97757] hover:text-[#d97757] transition-colors outline-none flex items-center gap-2 text-xs tracking-widest disabled:opacity-50" }, /* @__PURE__ */ React56.createElement(HugeiconsIcon42, { icon: ArrowLeft01Icon22, size: 14 }), " Back") : /* @__PURE__ */ React56.createElement("h3", { className: "text-sm text-black tracking-tight flex items-center gap-2" }, "Notifications"), /* @__PURE__ */ React56.createElement("button", { onClick: () => setShowNotifDialog(false), disabled: isResolving, className: "text-stone-400 hover:text-black transition-colors outline-none disabled:opacity-50" }, /* @__PURE__ */ React56.createElement(HugeiconsIcon42, { icon: CancelCircleIcon14, size: 18 }))), /* @__PURE__ */ React56.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-2 relative" }, isNotifsLoading && !selectedNotif && /* @__PURE__ */ React56.createElement("div", { className: "absolute inset-0 z-10 flex items-center justify-center" }, /* @__PURE__ */ React56.createElement(HugeiconsIcon42, { icon: Loading03Icon30, size: 28, className: "animate-spin text-black" })), selectedNotif ? /* @__PURE__ */ React56.createElement("div", { className: "p-4 text-left" }, selectedNotif.type === "
|
|
6656
|
+
)))), showNotifDialog && /* @__PURE__ */ React56.createElement("div", { className: "fixed inset-0 z-120 flex items-center justify-center p-4 pointer-events-auto" }, /* @__PURE__ */ React56.createElement("div", { className: "absolute inset-0 bg-black/30", onClick: () => setShowNotifDialog(false) }), /* @__PURE__ */ React56.createElement("div", { className: "relative w-full max-w-sm bg-white rounded-2xl flex flex-col overflow-hidden shadow-2xl animate-in zoom-in-95 duration-200 max-h-[80vh] h-auto" }, /* @__PURE__ */ React56.createElement("div", { className: "flex items-center justify-between p-5 shrink-0" }, selectedNotif ? /* @__PURE__ */ React56.createElement("button", { onClick: () => setSelectedNotif(null), disabled: isResolving, className: "text-[#d97757] hover:text-[#d97757] transition-colors outline-none flex items-center gap-2 text-xs tracking-widest disabled:opacity-50" }, /* @__PURE__ */ React56.createElement(HugeiconsIcon42, { icon: ArrowLeft01Icon22, size: 14 }), " Back") : /* @__PURE__ */ React56.createElement("h3", { className: "text-sm text-black tracking-tight flex items-center gap-2" }, "Notifications"), /* @__PURE__ */ React56.createElement("button", { onClick: () => setShowNotifDialog(false), disabled: isResolving, className: "text-stone-400 hover:text-black transition-colors outline-none disabled:opacity-50" }, /* @__PURE__ */ React56.createElement(HugeiconsIcon42, { icon: CancelCircleIcon14, size: 18 }))), /* @__PURE__ */ React56.createElement("div", { className: "flex-1 overflow-y-auto custom-scrollbar p-2 relative" }, isNotifsLoading && !selectedNotif && /* @__PURE__ */ React56.createElement("div", { className: "absolute inset-0 z-10 flex items-center justify-center" }, /* @__PURE__ */ React56.createElement(HugeiconsIcon42, { icon: Loading03Icon30, size: 28, className: "animate-spin text-black" })), selectedNotif ? /* @__PURE__ */ React56.createElement("div", { className: "p-4 text-left" }, selectedNotif.type === "ORG_INVITE" && selectedNotif.meta_json?.action === "RESOLVE_INVITE" && selectedNotif.meta_json?.completed ? /* @__PURE__ */ React56.createElement("div", { className: "" }) : /* @__PURE__ */ React56.createElement("h4", { className: "text-sm text-black mb-1" }, selectedNotif.title), /* @__PURE__ */ React56.createElement("span", { className: "text-xs text-stone-400 tracking-widest mb-4 block" }, formatNotifDate(selectedNotif.createdAt)), /* @__PURE__ */ React56.createElement("p", { className: "text-xs text-stone-600 leading-relaxed whitespace-pre-wrap" }, selectedNotif.message), selectedNotif.type === "ORG_INVITE" && selectedNotif.meta_json?.action === "RESOLVE_INVITE" && /* @__PURE__ */ React56.createElement("div", { className: `mt-8 flex gap-3 pt-6 ${selectedNotif.meta_json?.completed ? "opacity-40 pointer-events-none cursor-not-allowed" : ""}` }, /* @__PURE__ */ React56.createElement(
|
|
6650
6657
|
"button",
|
|
6651
6658
|
{
|
|
6652
6659
|
onClick: () => handleResolve("ACCEPTED"),
|
|
@@ -6825,7 +6832,7 @@ function RootSidebar({
|
|
|
6825
6832
|
}
|
|
6826
6833
|
|
|
6827
6834
|
// src/components/UniversalSettings2.tsx
|
|
6828
|
-
import React58, { useState as useState42, useEffect as
|
|
6835
|
+
import React58, { useState as useState42, useEffect as useEffect24, useRef as useRef17 } from "react";
|
|
6829
6836
|
import toast18 from "react-hot-toast";
|
|
6830
6837
|
import { HugeiconsIcon as HugeiconsIcon44 } from "@hugeicons/react";
|
|
6831
6838
|
import {
|
|
@@ -6937,7 +6944,7 @@ var UniversalSettings2 = ({
|
|
|
6937
6944
|
const [pendingUserAvatar, setPendingUserAvatar] = useState42(null);
|
|
6938
6945
|
const [isUploadingOrgAvatar, setIsUploadingOrgAvatar] = useState42(false);
|
|
6939
6946
|
const [isUploadingUserAvatar, setIsUploadingUserAvatar] = useState42(false);
|
|
6940
|
-
|
|
6947
|
+
useEffect24(() => {
|
|
6941
6948
|
setOrgName(initialOrgName || "");
|
|
6942
6949
|
setOrgSlug(initialOrgSlug || "");
|
|
6943
6950
|
setOrgAvatarUrl(initialOrgAvatarUrl || "");
|
|
@@ -6972,7 +6979,7 @@ var UniversalSettings2 = ({
|
|
|
6972
6979
|
}
|
|
6973
6980
|
e.target.value = "";
|
|
6974
6981
|
};
|
|
6975
|
-
|
|
6982
|
+
useEffect24(() => {
|
|
6976
6983
|
if (activeTab !== "MEMBERS") return;
|
|
6977
6984
|
if (isFirstSearchMount.current) {
|
|
6978
6985
|
isFirstSearchMount.current = false;
|
|
@@ -7029,7 +7036,7 @@ var UniversalSettings2 = ({
|
|
|
7029
7036
|
}
|
|
7030
7037
|
};
|
|
7031
7038
|
const activeExpandedMember = expandedId ? members.find((m) => m.id === expandedId) : null;
|
|
7032
|
-
|
|
7039
|
+
useEffect24(() => {
|
|
7033
7040
|
if (!isOrg || !orgSlug || orgSlug === initialOrgSlug) {
|
|
7034
7041
|
setSlugAvailable(null);
|
|
7035
7042
|
setIsCheckingSlug(false);
|
|
@@ -7211,7 +7218,7 @@ var UniversalSettings2 = ({
|
|
|
7211
7218
|
};
|
|
7212
7219
|
|
|
7213
7220
|
// src/components/UniversalDeveloperSettings.tsx
|
|
7214
|
-
import React59, { useState as useState43, useEffect as
|
|
7221
|
+
import React59, { useState as useState43, useEffect as useEffect25 } from "react";
|
|
7215
7222
|
import toast19 from "react-hot-toast";
|
|
7216
7223
|
import { HugeiconsIcon as HugeiconsIcon45 } from "@hugeicons/react";
|
|
7217
7224
|
import {
|
|
@@ -7233,7 +7240,7 @@ var UniversalDeveloperSettings = ({
|
|
|
7233
7240
|
const [isGenerating, setIsGenerating] = useState43(false);
|
|
7234
7241
|
const [isSavingWebhook, setIsSavingWebhook] = useState43(false);
|
|
7235
7242
|
const [isRollModalOpen, setIsRollModalOpen] = useState43(false);
|
|
7236
|
-
|
|
7243
|
+
useEffect25(() => {
|
|
7237
7244
|
setPublicKey(initialPublicKey || "");
|
|
7238
7245
|
setWebhookUrl(initialWebhookUrl || "");
|
|
7239
7246
|
}, [initialPublicKey, initialWebhookUrl]);
|
|
@@ -7488,7 +7495,7 @@ var UniversalApplicationDetails = ({
|
|
|
7488
7495
|
};
|
|
7489
7496
|
|
|
7490
7497
|
// src/components/UniversalCreateApplication.tsx
|
|
7491
|
-
import React62, { useState as useState46, useRef as useRef19, useEffect as
|
|
7498
|
+
import React62, { useState as useState46, useRef as useRef19, useEffect as useEffect26 } from "react";
|
|
7492
7499
|
import toast20 from "react-hot-toast";
|
|
7493
7500
|
import { HugeiconsIcon as HugeiconsIcon48 } from "@hugeicons/react";
|
|
7494
7501
|
import {
|
|
@@ -7532,7 +7539,7 @@ var UniversalCreateApplication = ({
|
|
|
7532
7539
|
const [creationMode, setCreationMode] = useState46("EXISTING");
|
|
7533
7540
|
const defaultTypeKey = applicationTypesMeta.length > 0 ? applicationTypesMeta[0].key : "";
|
|
7534
7541
|
const [selectedTypeKey, setSelectedTypeKey] = useState46(defaultTypeKey);
|
|
7535
|
-
|
|
7542
|
+
useEffect26(() => {
|
|
7536
7543
|
if (!selectedTypeKey && applicationTypesMeta.length > 0) {
|
|
7537
7544
|
setSelectedTypeKey(applicationTypesMeta[0].key);
|
|
7538
7545
|
}
|