@chrryai/chrry 1.6.65 → 1.6.68
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 +113 -85
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +116 -87
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3129,7 +3129,7 @@ var init_utils = __esm({
|
|
|
3129
3129
|
};
|
|
3130
3130
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
3131
3131
|
config = getSiteConfig(getClientHostname());
|
|
3132
|
-
VERSION = config.version || "1.6.
|
|
3132
|
+
VERSION = config.version || "1.6.68";
|
|
3133
3133
|
getSlugFromPathname = (path) => {
|
|
3134
3134
|
return getAppAndStoreSlugs(path, {
|
|
3135
3135
|
defaultAppSlug: config.slug,
|
|
@@ -23887,7 +23887,11 @@ function AuthProvider({
|
|
|
23887
23887
|
return true;
|
|
23888
23888
|
}
|
|
23889
23889
|
});
|
|
23890
|
-
const
|
|
23890
|
+
const threadIdRef = (0, import_react20.useRef)(getThreadId(pathname));
|
|
23891
|
+
const threadId = threadIdRef.current;
|
|
23892
|
+
const setThreadId = (id) => {
|
|
23893
|
+
threadIdRef.current = id;
|
|
23894
|
+
};
|
|
23891
23895
|
(0, import_react20.useEffect)(() => {
|
|
23892
23896
|
const id = getThreadId(pathname);
|
|
23893
23897
|
if (id) {
|
|
@@ -24242,7 +24246,7 @@ function AuthProvider({
|
|
|
24242
24246
|
const setApp = (0, import_react20.useCallback)(
|
|
24243
24247
|
(item) => {
|
|
24244
24248
|
if (!item) return;
|
|
24245
|
-
|
|
24249
|
+
setLastAppId(item?.id);
|
|
24246
24250
|
setAppInternal((prevApp) => {
|
|
24247
24251
|
const newApp2 = item ? {
|
|
24248
24252
|
...item,
|
|
@@ -24261,7 +24265,13 @@ function AuthProvider({
|
|
|
24261
24265
|
},
|
|
24262
24266
|
[setColorScheme, setAppTheme, baseApp, mergeApps]
|
|
24263
24267
|
);
|
|
24264
|
-
const [thread2,
|
|
24268
|
+
const [thread2, setThreadInternal] = (0, import_react20.useState)(
|
|
24269
|
+
props.thread?.thread
|
|
24270
|
+
);
|
|
24271
|
+
const setThread = (thread3) => {
|
|
24272
|
+
setThreadInternal(thread3);
|
|
24273
|
+
setThreadId(thread3?.id);
|
|
24274
|
+
};
|
|
24265
24275
|
const [tasks, setTasks] = (0, import_react20.useState)(void 0);
|
|
24266
24276
|
(0, import_react20.useEffect)(() => {
|
|
24267
24277
|
if (!threadId) {
|
|
@@ -24446,6 +24456,13 @@ function AuthProvider({
|
|
|
24446
24456
|
showAccountStatusRef.current = true;
|
|
24447
24457
|
}
|
|
24448
24458
|
}, [isLoggedOut, isWelcome]);
|
|
24459
|
+
const auth_token = searchParams.get("auth_token");
|
|
24460
|
+
(0, import_react20.useEffect)(() => {
|
|
24461
|
+
const params = new URLSearchParams(window.location.search);
|
|
24462
|
+
if (auth_token) {
|
|
24463
|
+
removeParams("auth_token");
|
|
24464
|
+
}
|
|
24465
|
+
}, [searchParams]);
|
|
24449
24466
|
return /* @__PURE__ */ import_react20.default.createElement(
|
|
24450
24467
|
AuthContext.Provider,
|
|
24451
24468
|
{
|
|
@@ -24658,12 +24675,12 @@ function DataProvider({ children, ...rest }) {
|
|
|
24658
24675
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24659
24676
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24660
24677
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24661
|
-
const VERSION4 = "1.6.
|
|
24678
|
+
const VERSION4 = "1.6.68";
|
|
24662
24679
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24663
24680
|
const {
|
|
24664
24681
|
API_URL: API_URL2,
|
|
24665
24682
|
WS_URL: WS_URL2,
|
|
24666
|
-
FRONTEND_URL:
|
|
24683
|
+
FRONTEND_URL: FRONTEND_URL3,
|
|
24667
24684
|
PROD_FRONTEND_URL: PROD_FRONTEND_URL2,
|
|
24668
24685
|
env,
|
|
24669
24686
|
setEnv,
|
|
@@ -24905,7 +24922,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24905
24922
|
WS_URL: WS_URL2,
|
|
24906
24923
|
TEST_GUEST_FINGERPRINTS,
|
|
24907
24924
|
TEST_MEMBER_FINGERPRINTS,
|
|
24908
|
-
FRONTEND_URL:
|
|
24925
|
+
FRONTEND_URL: FRONTEND_URL3,
|
|
24909
24926
|
PROMPT_LIMITS: PROMPT_LIMITS2,
|
|
24910
24927
|
setPromptLimits,
|
|
24911
24928
|
setToken,
|
|
@@ -24963,7 +24980,7 @@ function Toast({ containerStyle, toastOptions }) {
|
|
|
24963
24980
|
return null;
|
|
24964
24981
|
}
|
|
24965
24982
|
function VexToast() {
|
|
24966
|
-
const { FRONTEND_URL:
|
|
24983
|
+
const { FRONTEND_URL: FRONTEND_URL3 } = useData();
|
|
24967
24984
|
const toastConfig = {
|
|
24968
24985
|
containerStyle: {
|
|
24969
24986
|
zIndex: 1e4
|
|
@@ -24981,7 +24998,7 @@ function VexToast() {
|
|
|
24981
24998
|
icon: /* @__PURE__ */ import_react22.default.createElement(
|
|
24982
24999
|
"img",
|
|
24983
25000
|
{
|
|
24984
|
-
src: `${
|
|
25001
|
+
src: `${FRONTEND_URL3}/frog.png`,
|
|
24985
25002
|
width: 24,
|
|
24986
25003
|
height: 24,
|
|
24987
25004
|
alt: "Success"
|
|
@@ -24993,7 +25010,7 @@ function VexToast() {
|
|
|
24993
25010
|
icon: /* @__PURE__ */ import_react22.default.createElement(
|
|
24994
25011
|
"img",
|
|
24995
25012
|
{
|
|
24996
|
-
src: `${
|
|
25013
|
+
src: `${FRONTEND_URL3}/hamster.png`,
|
|
24997
25014
|
width: 24,
|
|
24998
25015
|
height: 24,
|
|
24999
25016
|
alt: "Error"
|
|
@@ -26587,6 +26604,7 @@ function ChatProvider({
|
|
|
26587
26604
|
setCollaborationStep(0);
|
|
26588
26605
|
setThread(void 0);
|
|
26589
26606
|
setProfile(void 0);
|
|
26607
|
+
setThreadId(void 0);
|
|
26590
26608
|
setMessages([]);
|
|
26591
26609
|
setStatus(null);
|
|
26592
26610
|
isIncognito && setWasIncognito(true);
|
|
@@ -26848,14 +26866,12 @@ function ChatProvider({
|
|
|
26848
26866
|
setIsLoading(!!threadId);
|
|
26849
26867
|
}, [threadId]);
|
|
26850
26868
|
const [status, setStatus] = (0, import_react29.useState)(null);
|
|
26851
|
-
const keyParts = { threadId, liked, until };
|
|
26852
|
-
const finalKey = Object.entries(keyParts).filter(([_, value]) => value !== void 0 && value !== null).map(([key, value]) => `${key}-${value}`).join("-") || "thread";
|
|
26853
26869
|
const {
|
|
26854
26870
|
data: threadSWR,
|
|
26855
26871
|
mutate,
|
|
26856
26872
|
error
|
|
26857
26873
|
} = (0, import_swr3.default)(
|
|
26858
|
-
shouldFetchThread && token && threadId ? [
|
|
26874
|
+
shouldFetchThread && token && threadId ? [threadId, liked, until] : null,
|
|
26859
26875
|
async () => {
|
|
26860
26876
|
if (!threadId) return;
|
|
26861
26877
|
const threadData2 = await actions.getThread({
|
|
@@ -31083,9 +31099,9 @@ function Logo({
|
|
|
31083
31099
|
app
|
|
31084
31100
|
}) {
|
|
31085
31101
|
const { isExtension: isExtension2 } = usePlatform();
|
|
31086
|
-
const { FRONTEND_URL:
|
|
31087
|
-
const logoSrc = isLifeOS ? `${
|
|
31088
|
-
const appImage = slug ? `${
|
|
31102
|
+
const { FRONTEND_URL: FRONTEND_URL3 } = useData();
|
|
31103
|
+
const logoSrc = isLifeOS ? `${FRONTEND_URL3}/icons/lifeOS-128.png` : isExtension2 ? `/icons/icon-128${isMagenta ? "-m" : ""}${isVivid ? "-v" : ""}.png` : `${FRONTEND_URL3}/icons/icon-128${isMagenta ? "-m" : ""}${isVivid ? "-v" : ""}.png`;
|
|
31104
|
+
const appImage = slug ? `${FRONTEND_URL3}/images/apps/${slug.toLowerCase()}.png` : app && ["atlas", "bloom", "vault", "peach"].includes(app.slug) ? `${FRONTEND_URL3}/images/apps/${app.slug}.png` : app?.images?.[0]?.url ? app?.images?.[0]?.url : app ? `${FRONTEND_URL3}/images/pacman/space-invader.png` : logoSrc;
|
|
31089
31105
|
return /* @__PURE__ */ import_react40.default.createElement(
|
|
31090
31106
|
Img,
|
|
31091
31107
|
{
|
|
@@ -33999,16 +34015,16 @@ function Anchor({
|
|
|
33999
34015
|
preventDefault,
|
|
34000
34016
|
...props
|
|
34001
34017
|
}) {
|
|
34002
|
-
const { FRONTEND_URL:
|
|
34018
|
+
const { FRONTEND_URL: FRONTEND_URL3 } = useData();
|
|
34003
34019
|
const { addHapticFeedback } = useTheme2();
|
|
34004
34020
|
const { isExtension: isExtension2, BrowserInstance: BrowserInstance3 } = usePlatform();
|
|
34005
34021
|
const router = useNavigation();
|
|
34006
34022
|
const isExternalUrl = (url) => {
|
|
34007
34023
|
if (openInNewTab) return true;
|
|
34008
34024
|
if (!url) return false;
|
|
34009
|
-
return (url.startsWith("http://") || url.startsWith("https://") || url.startsWith("mailto:") || url.startsWith("//")) && !url.startsWith(
|
|
34025
|
+
return (url.startsWith("http://") || url.startsWith("https://") || url.startsWith("mailto:") || url.startsWith("//")) && !url.startsWith(FRONTEND_URL3);
|
|
34010
34026
|
};
|
|
34011
|
-
const href = !openInNewTab && props.href?.startsWith(
|
|
34027
|
+
const href = !openInNewTab && props.href?.startsWith(FRONTEND_URL3) ? props.href.replace(FRONTEND_URL3, "") || "/" : props.href;
|
|
34012
34028
|
return /* @__PURE__ */ import_react49.default.createElement(
|
|
34013
34029
|
A,
|
|
34014
34030
|
{
|
|
@@ -35532,7 +35548,7 @@ function App({
|
|
|
35532
35548
|
hasStoreApps,
|
|
35533
35549
|
setLoadingApp
|
|
35534
35550
|
} = useAuth();
|
|
35535
|
-
const { FRONTEND_URL:
|
|
35551
|
+
const { FRONTEND_URL: FRONTEND_URL3, API_URL: API_URL2 } = useData();
|
|
35536
35552
|
const { router, getStoreSlug } = useNavigationContext();
|
|
35537
35553
|
const { setInput, setIsWebSearchEnabled, setIsNewAppChat } = useChat();
|
|
35538
35554
|
const { addHapticFeedback } = useTheme2();
|
|
@@ -36143,7 +36159,7 @@ function App({
|
|
|
36143
36159
|
), !isManagingApp && /* @__PURE__ */ import_react53.default.createElement(
|
|
36144
36160
|
Anchor,
|
|
36145
36161
|
{
|
|
36146
|
-
href: `${
|
|
36162
|
+
href: `${FRONTEND_URL3}/calendar`,
|
|
36147
36163
|
title: t5("Organize your life"),
|
|
36148
36164
|
openInNewTab: isExtension2 && isFirefox2,
|
|
36149
36165
|
className: "button transparent",
|
|
@@ -37335,7 +37351,7 @@ function Chat({
|
|
|
37335
37351
|
track,
|
|
37336
37352
|
deviceId,
|
|
37337
37353
|
API_URL: API_URL2,
|
|
37338
|
-
FRONTEND_URL:
|
|
37354
|
+
FRONTEND_URL: FRONTEND_URL3,
|
|
37339
37355
|
chrry,
|
|
37340
37356
|
app,
|
|
37341
37357
|
sushiAgent,
|
|
@@ -39213,7 +39229,7 @@ function Chat({
|
|
|
39213
39229
|
needsReview ? /* @__PURE__ */ React.createElement(Span, { "data-testid": "chat-accept-button" }, /* @__PURE__ */ React.createElement(icons_exports.CircleCheck, { size: 30, color: "var(--accent-6)" })) : /* @__PURE__ */ React.createElement(Div, { title: t5("Sound"), style: styles4.videoContainer.style }, needsReview ? /* @__PURE__ */ React.createElement(Span, { "data-testid": "chat-accept-button" }, /* @__PURE__ */ React.createElement(icons_exports.CircleCheck, { size: 30, color: "var(--accent-6)" })) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
39214
39230
|
Video_web_default,
|
|
39215
39231
|
{
|
|
39216
|
-
src: `${
|
|
39232
|
+
src: `${FRONTEND_URL3}/video/blob.mp4`,
|
|
39217
39233
|
style: styles4.video.style,
|
|
39218
39234
|
loop: true,
|
|
39219
39235
|
autoPlay: true,
|
|
@@ -42344,7 +42360,7 @@ function Account({ style }) {
|
|
|
42344
42360
|
signInContext,
|
|
42345
42361
|
signOutContext,
|
|
42346
42362
|
isExtensionRedirect,
|
|
42347
|
-
FRONTEND_URL:
|
|
42363
|
+
FRONTEND_URL: FRONTEND_URL3,
|
|
42348
42364
|
API_URL: API_URL2
|
|
42349
42365
|
} = useAuth();
|
|
42350
42366
|
const { isAccountVisible: isModalOpen, setIsAccountVisible: setIsModalOpen } = useNavigationContext();
|
|
@@ -42431,12 +42447,12 @@ function Account({ style }) {
|
|
|
42431
42447
|
await signOut();
|
|
42432
42448
|
BrowserInstance?.runtime?.sendMessage({
|
|
42433
42449
|
action: "openInSameTab",
|
|
42434
|
-
url: `${
|
|
42450
|
+
url: `${FRONTEND_URL3}?account=true&logout=true&extension=true`
|
|
42435
42451
|
});
|
|
42436
42452
|
}
|
|
42437
42453
|
await signOut();
|
|
42438
42454
|
!isExtension2 && signOutContext?.({
|
|
42439
|
-
callbackUrl: `${
|
|
42455
|
+
callbackUrl: `${FRONTEND_URL3}/?loggedOut=true${isExtensionRedirect ? "&extension=true" : ""}`
|
|
42440
42456
|
});
|
|
42441
42457
|
const searchParams2 = new URLSearchParams(window.location.search);
|
|
42442
42458
|
searchParams2.delete("account");
|
|
@@ -42550,7 +42566,7 @@ function Account({ style }) {
|
|
|
42550
42566
|
Img,
|
|
42551
42567
|
{
|
|
42552
42568
|
showLoading: false,
|
|
42553
|
-
src: `${
|
|
42569
|
+
src: `${FRONTEND_URL3}/images/pacman/space-invader.png`,
|
|
42554
42570
|
alt: "Space Invader",
|
|
42555
42571
|
width: 40,
|
|
42556
42572
|
height: 40
|
|
@@ -42771,7 +42787,7 @@ function SignIn({
|
|
|
42771
42787
|
};
|
|
42772
42788
|
const { t: t5 } = useAppContext();
|
|
42773
42789
|
const {
|
|
42774
|
-
FRONTEND_URL:
|
|
42790
|
+
FRONTEND_URL: FRONTEND_URL3,
|
|
42775
42791
|
isE2E: isE2E3,
|
|
42776
42792
|
isCI: isCI2,
|
|
42777
42793
|
API_URL: API_URL2,
|
|
@@ -42812,7 +42828,7 @@ function SignIn({
|
|
|
42812
42828
|
if (isExtension2) {
|
|
42813
42829
|
BrowserInstance?.runtime?.sendMessage({
|
|
42814
42830
|
action: "openInSameTab",
|
|
42815
|
-
url: `${
|
|
42831
|
+
url: `${FRONTEND_URL3}?signIn=${part2}&extension=true`
|
|
42816
42832
|
});
|
|
42817
42833
|
return;
|
|
42818
42834
|
}
|
|
@@ -42830,7 +42846,7 @@ function SignIn({
|
|
|
42830
42846
|
isCallbackUrlURI = false;
|
|
42831
42847
|
}
|
|
42832
42848
|
}
|
|
42833
|
-
const baseUrl = isDevelopment ?
|
|
42849
|
+
const baseUrl = isDevelopment ? FRONTEND_URL3 : "https://chrry.ai";
|
|
42834
42850
|
const errorUrl = new URL(baseUrl + "/?signIn=login&error");
|
|
42835
42851
|
const successUrl = new URL(
|
|
42836
42852
|
callbackUrl ? isCallbackUrlURI ? callbackUrl : baseUrl + callbackUrl : baseUrl
|
|
@@ -43001,7 +43017,7 @@ function SignIn({
|
|
|
43001
43017
|
if (isExtension2) {
|
|
43002
43018
|
BrowserInstance?.runtime?.sendMessage({
|
|
43003
43019
|
action: "openInSameTab",
|
|
43004
|
-
url: `${
|
|
43020
|
+
url: `${FRONTEND_URL3}?subscribe=true&plan=${plan}`
|
|
43005
43021
|
});
|
|
43006
43022
|
return;
|
|
43007
43023
|
}
|
|
@@ -43026,7 +43042,7 @@ function SignIn({
|
|
|
43026
43042
|
"video",
|
|
43027
43043
|
{
|
|
43028
43044
|
className: import_SignIn_module.default.video,
|
|
43029
|
-
src: `${
|
|
43045
|
+
src: `${FRONTEND_URL3}/video/blob.mp4`,
|
|
43030
43046
|
autoPlay: true,
|
|
43031
43047
|
loop: true,
|
|
43032
43048
|
muted: true,
|
|
@@ -43074,7 +43090,7 @@ function SignIn({
|
|
|
43074
43090
|
"a",
|
|
43075
43091
|
{
|
|
43076
43092
|
target: "_blank",
|
|
43077
|
-
href: `${
|
|
43093
|
+
href: `${FRONTEND_URL3}/privacy`,
|
|
43078
43094
|
className: "button small transparent",
|
|
43079
43095
|
onClick: (e) => {
|
|
43080
43096
|
if (e.metaKey || e.ctrlKey) {
|
|
@@ -43084,11 +43100,11 @@ function SignIn({
|
|
|
43084
43100
|
if (checkIsExtension()) {
|
|
43085
43101
|
BrowserInstance?.runtime?.sendMessage({
|
|
43086
43102
|
action: "openInSameTab",
|
|
43087
|
-
url: `${
|
|
43103
|
+
url: `${FRONTEND_URL3}/privacy`
|
|
43088
43104
|
});
|
|
43089
43105
|
return;
|
|
43090
43106
|
}
|
|
43091
|
-
window.open(`${
|
|
43107
|
+
window.open(`${FRONTEND_URL3}/privacy`, "_blank");
|
|
43092
43108
|
}
|
|
43093
43109
|
},
|
|
43094
43110
|
/* @__PURE__ */ import_react64.default.createElement(icons_exports.LinkIcon, { size: 16 }),
|
|
@@ -43625,7 +43641,7 @@ function Subscribe({
|
|
|
43625
43641
|
const {
|
|
43626
43642
|
affiliateCode,
|
|
43627
43643
|
API_URL: API_URL2,
|
|
43628
|
-
FRONTEND_URL:
|
|
43644
|
+
FRONTEND_URL: FRONTEND_URL3,
|
|
43629
43645
|
ADDITIONAL_CREDITS: ADDITIONAL_CREDITS2,
|
|
43630
43646
|
CREDITS_PRICE: CREDITS_PRICE2,
|
|
43631
43647
|
FREE_DAYS: FREE_DAYS2,
|
|
@@ -43669,11 +43685,11 @@ function Subscribe({
|
|
|
43669
43685
|
const checkoutSuccessUrl = (() => {
|
|
43670
43686
|
params.set("checkout", "success");
|
|
43671
43687
|
params.set("purchaseType", part2);
|
|
43672
|
-
return `${
|
|
43688
|
+
return `${FRONTEND_URL3}/?${params.toString()}&session_id={CHECKOUT_SESSION_ID}`;
|
|
43673
43689
|
})();
|
|
43674
43690
|
const checkoutCancelUrl = (() => {
|
|
43675
43691
|
params.set("checkout", "cancel");
|
|
43676
|
-
return `${
|
|
43692
|
+
return `${FRONTEND_URL3}/?${params.toString()}`;
|
|
43677
43693
|
})();
|
|
43678
43694
|
console.log("Checkout success URL:", checkoutSuccessUrl);
|
|
43679
43695
|
console.log("Checkout cancel URL:", checkoutCancelUrl);
|
|
@@ -43718,7 +43734,6 @@ function Subscribe({
|
|
|
43718
43734
|
const [giftedFingerPrint, setGiftedFingerPrint] = (0, import_react65.useState)(
|
|
43719
43735
|
null
|
|
43720
43736
|
);
|
|
43721
|
-
console.log(`\u{1F680} ~ giftedFingerPrint:`, giftedFingerPrint);
|
|
43722
43737
|
const handlePlanChange = async (newPlan) => {
|
|
43723
43738
|
setLoading(true);
|
|
43724
43739
|
try {
|
|
@@ -44366,7 +44381,7 @@ function Subscribe({
|
|
|
44366
44381
|
if (isExtension2) {
|
|
44367
44382
|
BrowserInstance3?.runtime?.sendMessage({
|
|
44368
44383
|
action: "openInSameTab",
|
|
44369
|
-
url: `${
|
|
44384
|
+
url: `${FRONTEND_URL3}?subscribe=true&extension=true&plan=${subs.plan}`
|
|
44370
44385
|
});
|
|
44371
44386
|
return;
|
|
44372
44387
|
}
|
|
@@ -44398,7 +44413,7 @@ function Subscribe({
|
|
|
44398
44413
|
if (isExtension2) {
|
|
44399
44414
|
BrowserInstance3?.runtime?.sendMessage({
|
|
44400
44415
|
action: "openInSameTab",
|
|
44401
|
-
url: `${
|
|
44416
|
+
url: `${FRONTEND_URL3}?subscribe=true&extension=true`
|
|
44402
44417
|
});
|
|
44403
44418
|
return;
|
|
44404
44419
|
}
|
|
@@ -44613,7 +44628,7 @@ function Version() {
|
|
|
44613
44628
|
const { showAddToHomeScreen, setShowAddToHomeScreen } = useNavigationContext();
|
|
44614
44629
|
const { t: t5 } = (0, import_react_i18next6.useTranslation)();
|
|
44615
44630
|
const { os, isStandalone: isStandalone2, isFirefox: isFirefox2, isExtension: isExtension2, BrowserInstance: BrowserInstance3 } = usePlatform();
|
|
44616
|
-
const { FRONTEND_URL:
|
|
44631
|
+
const { FRONTEND_URL: FRONTEND_URL3 } = useData();
|
|
44617
44632
|
const styles4 = useVersionStyles();
|
|
44618
44633
|
const { utilities } = useStyles();
|
|
44619
44634
|
return /* @__PURE__ */ import_react67.default.createElement(Div, null, needsUpdateModalOpen && versions && /* @__PURE__ */ import_react67.default.createElement(
|
|
@@ -44629,7 +44644,7 @@ function Version() {
|
|
|
44629
44644
|
Video_web_default,
|
|
44630
44645
|
{
|
|
44631
44646
|
style: styles4.video.style,
|
|
44632
|
-
src: `${
|
|
44647
|
+
src: `${FRONTEND_URL3}/video/blob.mp4`,
|
|
44633
44648
|
autoPlay: true,
|
|
44634
44649
|
loop: true,
|
|
44635
44650
|
muted: true,
|
|
@@ -44638,7 +44653,7 @@ function Version() {
|
|
|
44638
44653
|
),
|
|
44639
44654
|
title: /* @__PURE__ */ import_react67.default.createElement(Div, null, t5("Thinking"), "...")
|
|
44640
44655
|
},
|
|
44641
|
-
/* @__PURE__ */ import_react67.default.createElement(Div, { style: styles4.updateModalDescription.style }, /* @__PURE__ */ import_react67.default.createElement(Img, { src: `${
|
|
44656
|
+
/* @__PURE__ */ import_react67.default.createElement(Div, { style: styles4.updateModalDescription.style }, /* @__PURE__ */ import_react67.default.createElement(Img, { src: `${FRONTEND_URL3}/hamster.png`, width: 24, height: 24 }), /* @__PURE__ */ import_react67.default.createElement(Span, null, t5("Let's update your app to the latest version"), " ", isStandalone2 ? null : isFirefox2 ? versions.firefoxVersion : versions.chromeVersion)),
|
|
44642
44657
|
/* @__PURE__ */ import_react67.default.createElement(Div, { style: styles4.updateModalButtons.style }, os && ["ios", "android"].includes(os) ? /* @__PURE__ */ import_react67.default.createElement(
|
|
44643
44658
|
Button,
|
|
44644
44659
|
{
|
|
@@ -44922,9 +44937,8 @@ function Skeleton({
|
|
|
44922
44937
|
const { isEmpty } = useChat();
|
|
44923
44938
|
const { pathname, setIsNewChat, hasNotification } = useNavigationContext();
|
|
44924
44939
|
const { isDrawerOpen, setIsDrawerOpen, isSmallDevice, isMobileDevice } = useTheme2();
|
|
44925
|
-
console.log(`\u{1F680} ~ isSmallDevice:`, isSmallDevice);
|
|
44926
44940
|
const { isStandalone: isStandalone2 } = usePlatform();
|
|
44927
|
-
const { FRONTEND_URL:
|
|
44941
|
+
const { FRONTEND_URL: FRONTEND_URL3 } = useData();
|
|
44928
44942
|
const { app, isRemovingApp, isSavingApp } = useApp();
|
|
44929
44943
|
const { addHapticFeedback } = useTheme2();
|
|
44930
44944
|
const toggleMenu = () => {
|
|
@@ -44935,8 +44949,8 @@ function Skeleton({
|
|
|
44935
44949
|
const isHome = pathname === "/" || pathname === "";
|
|
44936
44950
|
(0, import_react70.useEffect)(() => {
|
|
44937
44951
|
const preloadImages = [
|
|
44938
|
-
`${
|
|
44939
|
-
`${
|
|
44952
|
+
`${FRONTEND_URL3}/frog.png`,
|
|
44953
|
+
`${FRONTEND_URL3}/hamster.png`
|
|
44940
44954
|
];
|
|
44941
44955
|
if (typeof Image !== "undefined") {
|
|
44942
44956
|
preloadImages.forEach((src) => {
|
|
@@ -45094,7 +45108,7 @@ function Store({
|
|
|
45094
45108
|
slug,
|
|
45095
45109
|
...rest
|
|
45096
45110
|
}) {
|
|
45097
|
-
const { FRONTEND_URL:
|
|
45111
|
+
const { FRONTEND_URL: FRONTEND_URL3 } = useData();
|
|
45098
45112
|
const { isMobileDevice } = useTheme2();
|
|
45099
45113
|
const { utilities } = useStyles();
|
|
45100
45114
|
const { router, searchParams } = useNavigationContext();
|
|
@@ -45193,7 +45207,7 @@ function Store({
|
|
|
45193
45207
|
ImageComponent,
|
|
45194
45208
|
{
|
|
45195
45209
|
showLoading: false,
|
|
45196
|
-
src: `${
|
|
45210
|
+
src: `${FRONTEND_URL3}/images/pacman/space-invader.png`,
|
|
45197
45211
|
alt: "Space Invader",
|
|
45198
45212
|
size: 28
|
|
45199
45213
|
}
|
|
@@ -45201,7 +45215,7 @@ function Store({
|
|
|
45201
45215
|
ImageComponent,
|
|
45202
45216
|
{
|
|
45203
45217
|
showLoading: false,
|
|
45204
|
-
src: `${
|
|
45218
|
+
src: `${FRONTEND_URL3}/images/pacman/pacman.png`,
|
|
45205
45219
|
alt: "Pacman",
|
|
45206
45220
|
size: 28
|
|
45207
45221
|
}
|
|
@@ -45210,7 +45224,7 @@ function Store({
|
|
|
45210
45224
|
{
|
|
45211
45225
|
style: { marginLeft: "auto" },
|
|
45212
45226
|
showLoading: false,
|
|
45213
|
-
src: `${
|
|
45227
|
+
src: `${FRONTEND_URL3}/images/pacman/heart.png`,
|
|
45214
45228
|
alt: "Heart",
|
|
45215
45229
|
size: 28
|
|
45216
45230
|
}
|
|
@@ -45335,7 +45349,7 @@ function Store({
|
|
|
45335
45349
|
ImageComponent,
|
|
45336
45350
|
{
|
|
45337
45351
|
showLoading: false,
|
|
45338
|
-
src: `${
|
|
45352
|
+
src: `${FRONTEND_URL3}/images/pacman/tetris1.png`,
|
|
45339
45353
|
alt: "Tetris 1",
|
|
45340
45354
|
width: 28,
|
|
45341
45355
|
height: 28
|
|
@@ -45344,7 +45358,7 @@ function Store({
|
|
|
45344
45358
|
ImageComponent,
|
|
45345
45359
|
{
|
|
45346
45360
|
showLoading: false,
|
|
45347
|
-
src: `${
|
|
45361
|
+
src: `${FRONTEND_URL3}/images/pacman/tetris2.png`,
|
|
45348
45362
|
alt: "Tetris 2",
|
|
45349
45363
|
width: 28,
|
|
45350
45364
|
height: 28
|
|
@@ -46080,7 +46094,7 @@ function Message({
|
|
|
46080
46094
|
user,
|
|
46081
46095
|
guest,
|
|
46082
46096
|
API_URL: API_URL2,
|
|
46083
|
-
FRONTEND_URL:
|
|
46097
|
+
FRONTEND_URL: FRONTEND_URL3,
|
|
46084
46098
|
setUser,
|
|
46085
46099
|
setGuest,
|
|
46086
46100
|
deviceId,
|
|
@@ -46510,7 +46524,7 @@ function Message({
|
|
|
46510
46524
|
ImageComponent,
|
|
46511
46525
|
{
|
|
46512
46526
|
showLoading: false,
|
|
46513
|
-
src: `${
|
|
46527
|
+
src: `${FRONTEND_URL3}/images/pacman/space-invader.png`,
|
|
46514
46528
|
alt: "Space Invader",
|
|
46515
46529
|
width: 35,
|
|
46516
46530
|
height: 35
|
|
@@ -46553,7 +46567,7 @@ function Message({
|
|
|
46553
46567
|
ImageComponent,
|
|
46554
46568
|
{
|
|
46555
46569
|
showLoading: false,
|
|
46556
|
-
src: `${
|
|
46570
|
+
src: `${FRONTEND_URL3}/images/pacman/space-invader.png`,
|
|
46557
46571
|
alt: "Space Invader",
|
|
46558
46572
|
width: 35,
|
|
46559
46573
|
height: 35
|
|
@@ -46741,7 +46755,7 @@ function Message({
|
|
|
46741
46755
|
ImageComponent,
|
|
46742
46756
|
{
|
|
46743
46757
|
showLoading: false,
|
|
46744
|
-
src: `${
|
|
46758
|
+
src: `${FRONTEND_URL3}/images/pacman/space-invader.png`,
|
|
46745
46759
|
alt: "Space Invader",
|
|
46746
46760
|
size: 35
|
|
46747
46761
|
}
|
|
@@ -46812,7 +46826,7 @@ function Message({
|
|
|
46812
46826
|
message2.message.isStreaming && message2.message.content.trim() === "" ? /* @__PURE__ */ React.createElement(Div, { style: styles4.thinking.style }, /* @__PURE__ */ React.createElement(
|
|
46813
46827
|
ImageComponent,
|
|
46814
46828
|
{
|
|
46815
|
-
src: `${
|
|
46829
|
+
src: `${FRONTEND_URL3}/${evenChance ? "frog" : "hamster"}.png`,
|
|
46816
46830
|
width: 21,
|
|
46817
46831
|
height: 21
|
|
46818
46832
|
}
|
|
@@ -47125,7 +47139,7 @@ var init_Messages = __esm({
|
|
|
47125
47139
|
user,
|
|
47126
47140
|
guest,
|
|
47127
47141
|
setShowCharacterProfiles,
|
|
47128
|
-
FRONTEND_URL:
|
|
47142
|
+
FRONTEND_URL: FRONTEND_URL3
|
|
47129
47143
|
} = useAuth();
|
|
47130
47144
|
const { threadId, scrollToBottom } = useChat();
|
|
47131
47145
|
const { router } = useNavigationContext();
|
|
@@ -47249,7 +47263,7 @@ var init_Messages = __esm({
|
|
|
47249
47263
|
Video_web_default,
|
|
47250
47264
|
{
|
|
47251
47265
|
style: { ...styles4.video.style },
|
|
47252
|
-
src: `${
|
|
47266
|
+
src: `${FRONTEND_URL3}/video/blob.mp4`,
|
|
47253
47267
|
autoPlay: true,
|
|
47254
47268
|
loop: true,
|
|
47255
47269
|
muted: true,
|
|
@@ -47667,13 +47681,13 @@ function Share3({
|
|
|
47667
47681
|
const [isOpen, setIsOpen] = (0, import_react78.useState)(false);
|
|
47668
47682
|
const [copied, setCopied] = (0, import_react78.useState)(false);
|
|
47669
47683
|
const { collaborationStep } = useNavigationContext();
|
|
47670
|
-
const { token, FRONTEND_URL:
|
|
47684
|
+
const { token, FRONTEND_URL: FRONTEND_URL3, API_URL: API_URL2 } = useAuth();
|
|
47671
47685
|
const { t: t5 } = useAppContext();
|
|
47672
47686
|
const [visibility, setVisibility] = (0, import_react78.useState)(thread2.visibility);
|
|
47673
47687
|
const copyToClipboard = async () => {
|
|
47674
47688
|
try {
|
|
47675
47689
|
await navigator.clipboard.writeText(
|
|
47676
|
-
`${
|
|
47690
|
+
`${FRONTEND_URL3}/threads/${thread2.id}`
|
|
47677
47691
|
);
|
|
47678
47692
|
setCopied(true);
|
|
47679
47693
|
import_react_hot_toast18.default.success(t5("Copied"));
|
|
@@ -47756,7 +47770,11 @@ function Share3({
|
|
|
47756
47770
|
if (!search) return;
|
|
47757
47771
|
try {
|
|
47758
47772
|
setIsAdding(true);
|
|
47759
|
-
const result = await apiFetch(`${API_URL2}/users?search=${search}
|
|
47773
|
+
const result = await apiFetch(`${API_URL2}/users?search=${search}`, {
|
|
47774
|
+
headers: {
|
|
47775
|
+
Authorization: `Bearer ${token}`
|
|
47776
|
+
}
|
|
47777
|
+
});
|
|
47760
47778
|
if (!result.ok) {
|
|
47761
47779
|
setIsAdding(false);
|
|
47762
47780
|
if (result.status === 404) {
|
|
@@ -47928,7 +47946,7 @@ function Share3({
|
|
|
47928
47946
|
"data-testid": `${dataTestId}share-input`,
|
|
47929
47947
|
style: styles4.shareModalInput.style,
|
|
47930
47948
|
type: "text",
|
|
47931
|
-
value: `${
|
|
47949
|
+
value: `${FRONTEND_URL3}/threads/${thread2.id}`
|
|
47932
47950
|
}
|
|
47933
47951
|
), /* @__PURE__ */ import_react78.default.createElement(
|
|
47934
47952
|
Button,
|
|
@@ -48061,7 +48079,7 @@ function Share3({
|
|
|
48061
48079
|
{
|
|
48062
48080
|
style: styles4.shareModalInput.style,
|
|
48063
48081
|
type: "text",
|
|
48064
|
-
value: `${
|
|
48082
|
+
value: `${FRONTEND_URL3}/threads/${thread2.id}`
|
|
48065
48083
|
}
|
|
48066
48084
|
), /* @__PURE__ */ import_react78.default.createElement(
|
|
48067
48085
|
Button,
|
|
@@ -63604,7 +63622,7 @@ function About2() {
|
|
|
63604
63622
|
const {
|
|
63605
63623
|
ADDITIONAL_CREDITS: ADDITIONAL_CREDITS2,
|
|
63606
63624
|
CREDITS_PRICE: CREDITS_PRICE2,
|
|
63607
|
-
FRONTEND_URL:
|
|
63625
|
+
FRONTEND_URL: FRONTEND_URL3,
|
|
63608
63626
|
PLUS_PRICE: PLUS_PRICE2,
|
|
63609
63627
|
PRO_PRICE: PRO_PRICE2
|
|
63610
63628
|
} = useData();
|
|
@@ -63652,21 +63670,21 @@ function About2() {
|
|
|
63652
63670
|
e.preventDefault();
|
|
63653
63671
|
router.push("/why");
|
|
63654
63672
|
},
|
|
63655
|
-
href: isStandalone2 ? void 0 : `${
|
|
63673
|
+
href: isStandalone2 ? void 0 : `${FRONTEND_URL3}/why`
|
|
63656
63674
|
},
|
|
63657
63675
|
t5("why_vex")
|
|
63658
63676
|
), config2.mode === "vex" && /* @__PURE__ */ import_react94.default.createElement(import_react94.default.Fragment, null, ", ", /* @__PURE__ */ import_react94.default.createElement(
|
|
63659
63677
|
Anchor,
|
|
63660
63678
|
{
|
|
63661
63679
|
openInNewTab: true,
|
|
63662
|
-
href: `${
|
|
63680
|
+
href: `${FRONTEND_URL3}/blog`,
|
|
63663
63681
|
onClick: (e) => {
|
|
63664
63682
|
addHapticFeedback();
|
|
63665
63683
|
if (e.metaKey || e.ctrlKey) {
|
|
63666
63684
|
return;
|
|
63667
63685
|
}
|
|
63668
63686
|
e.preventDefault();
|
|
63669
|
-
window.location.href = `${
|
|
63687
|
+
window.location.href = `${FRONTEND_URL3}/blog`;
|
|
63670
63688
|
}
|
|
63671
63689
|
},
|
|
63672
63690
|
t5("Blog")
|
|
@@ -63681,7 +63699,7 @@ function About2() {
|
|
|
63681
63699
|
e.preventDefault();
|
|
63682
63700
|
router.push("/terms");
|
|
63683
63701
|
},
|
|
63684
|
-
href: isStandalone2 ? void 0 : `${
|
|
63702
|
+
href: isStandalone2 ? void 0 : `${FRONTEND_URL3}/terms`
|
|
63685
63703
|
},
|
|
63686
63704
|
t5("Terms of Use")
|
|
63687
63705
|
), ", ", /* @__PURE__ */ import_react94.default.createElement(
|
|
@@ -63695,7 +63713,7 @@ function About2() {
|
|
|
63695
63713
|
e.preventDefault();
|
|
63696
63714
|
router.push("/privacy");
|
|
63697
63715
|
},
|
|
63698
|
-
href: isStandalone2 ? void 0 : `${
|
|
63716
|
+
href: isStandalone2 ? void 0 : `${FRONTEND_URL3}/privacy`
|
|
63699
63717
|
},
|
|
63700
63718
|
t5("Privacy Policy")
|
|
63701
63719
|
), ", ", /* @__PURE__ */ import_react94.default.createElement("a", { href: "https://x.com/askvexai" }, "@askvexAI"), ", ", /* @__PURE__ */ import_react94.default.createElement("a", { href: "mailto:iliyan@chrry.ai" }, "iliyan@chrry.ai"))),
|
|
@@ -63739,7 +63757,7 @@ function About2() {
|
|
|
63739
63757
|
if (checkIsExtension()) {
|
|
63740
63758
|
BrowserInstance?.runtime?.sendMessage({
|
|
63741
63759
|
action: "openInSameTab",
|
|
63742
|
-
url: `${
|
|
63760
|
+
url: `${FRONTEND_URL3}/about?signIn=register`
|
|
63743
63761
|
});
|
|
63744
63762
|
return;
|
|
63745
63763
|
}
|
|
@@ -63757,7 +63775,7 @@ function About2() {
|
|
|
63757
63775
|
if (checkIsExtension()) {
|
|
63758
63776
|
BrowserInstance?.runtime?.sendMessage({
|
|
63759
63777
|
action: "openInSameTab",
|
|
63760
|
-
url: `${
|
|
63778
|
+
url: `${FRONTEND_URL3}/about?subscribe=true&plan=credits`
|
|
63761
63779
|
});
|
|
63762
63780
|
return;
|
|
63763
63781
|
}
|
|
@@ -63794,7 +63812,7 @@ function About2() {
|
|
|
63794
63812
|
if (checkIsExtension()) {
|
|
63795
63813
|
BrowserInstance?.runtime?.sendMessage({
|
|
63796
63814
|
action: "openInSameTab",
|
|
63797
|
-
url: `${
|
|
63815
|
+
url: `${FRONTEND_URL3}/about?subscribe=true&plan=plus`
|
|
63798
63816
|
});
|
|
63799
63817
|
return;
|
|
63800
63818
|
}
|
|
@@ -63819,7 +63837,7 @@ function About2() {
|
|
|
63819
63837
|
if (checkIsExtension()) {
|
|
63820
63838
|
BrowserInstance?.runtime?.sendMessage({
|
|
63821
63839
|
action: "openInSameTab",
|
|
63822
|
-
url: `${
|
|
63840
|
+
url: `${FRONTEND_URL3}/about?subscribe=true&plan=pro`
|
|
63823
63841
|
});
|
|
63824
63842
|
return;
|
|
63825
63843
|
}
|
|
@@ -63999,7 +64017,7 @@ function About2() {
|
|
|
63999
64017
|
"Claude"
|
|
64000
64018
|
))
|
|
64001
64019
|
)),
|
|
64002
|
-
/* @__PURE__ */ import_react94.default.createElement(Div, { style: styles4.lastUpdated.style }, /* @__PURE__ */ import_react94.default.createElement(ImageComponent, { src: `${
|
|
64020
|
+
/* @__PURE__ */ import_react94.default.createElement(Div, { style: styles4.lastUpdated.style }, /* @__PURE__ */ import_react94.default.createElement(ImageComponent, { src: `${FRONTEND_URL3}/hamster.png`, width: 24, height: 24 }), t5("about.last_updated", { date: "September 29, 2025" }))
|
|
64003
64021
|
));
|
|
64004
64022
|
}
|
|
64005
64023
|
var import_react94, import_ri, import_bi, import_si, import_fa7;
|
|
@@ -64615,7 +64633,7 @@ var init_Collaborate = __esm({
|
|
|
64615
64633
|
init_Collaborate_styles();
|
|
64616
64634
|
Collaborate = ({ withUser }) => {
|
|
64617
64635
|
const { addParams } = useNavigationContext();
|
|
64618
|
-
const { token, user, API_URL: API_URL2, FRONTEND_URL:
|
|
64636
|
+
const { token, user, API_URL: API_URL2, FRONTEND_URL: FRONTEND_URL3 } = useAuth();
|
|
64619
64637
|
const { t: t5 } = useAppContext();
|
|
64620
64638
|
const { addHapticFeedback } = useTheme2();
|
|
64621
64639
|
const [isOpen, setIsOpen] = (0, import_react97.useState)(false);
|
|
@@ -64631,7 +64649,7 @@ var init_Collaborate = __esm({
|
|
|
64631
64649
|
if (checkIsExtension()) {
|
|
64632
64650
|
BrowserInstance?.runtime?.sendMessage({
|
|
64633
64651
|
action: "openInSameTab",
|
|
64634
|
-
url: `${
|
|
64652
|
+
url: `${FRONTEND_URL3}/?signIn=register`
|
|
64635
64653
|
});
|
|
64636
64654
|
return;
|
|
64637
64655
|
}
|
|
@@ -65269,7 +65287,7 @@ var init_Affiliate_styles = __esm({
|
|
|
65269
65287
|
|
|
65270
65288
|
// affiliate/Affiliate.tsx
|
|
65271
65289
|
function Affiliate() {
|
|
65272
|
-
const { user, token, API_URL: API_URL2, FRONTEND_URL:
|
|
65290
|
+
const { user, token, API_URL: API_URL2, FRONTEND_URL: FRONTEND_URL3 } = useAuth();
|
|
65273
65291
|
const router = useNavigation();
|
|
65274
65292
|
const { t: t5 } = useAppContext();
|
|
65275
65293
|
const styles4 = useAffiliateStyles();
|
|
@@ -65309,7 +65327,7 @@ function Affiliate() {
|
|
|
65309
65327
|
ImageComponent,
|
|
65310
65328
|
{
|
|
65311
65329
|
showLoading: false,
|
|
65312
|
-
src: `${
|
|
65330
|
+
src: `${FRONTEND_URL3}/images/pacman/heart.png`,
|
|
65313
65331
|
alt: "Heart",
|
|
65314
65332
|
width: 50,
|
|
65315
65333
|
height: 50
|
|
@@ -65702,7 +65720,7 @@ function AffiliateDashboard() {
|
|
|
65702
65720
|
const styles4 = useAffiliateDashboardStyles();
|
|
65703
65721
|
const { affiliateStats, refetchAffiliateData, loadingAffiliateStats } = useData();
|
|
65704
65722
|
const { addHapticFeedback } = useTheme2();
|
|
65705
|
-
const { user, token, API_URL: API_URL2, FRONTEND_URL:
|
|
65723
|
+
const { user, token, API_URL: API_URL2, FRONTEND_URL: FRONTEND_URL3 } = useAuth();
|
|
65706
65724
|
const { router, setIsNewChat } = useNavigationContext();
|
|
65707
65725
|
const copyLink = () => {
|
|
65708
65726
|
if (affiliateStats?.affiliateLink) {
|
|
@@ -65808,7 +65826,7 @@ ${affiliateStats.affiliateLink}`
|
|
|
65808
65826
|
})), /* @__PURE__ */ import_react100.default.createElement(P, { style: styles4.infoUlLi.style }, t5("Cookie Duration {{duration}}", { duration: "30 days" })), /* @__PURE__ */ import_react100.default.createElement(P, { style: styles4.infoUlLi.style }, t5("Minimum Payout {{payout}}", { payout: "\u20AC50" })))), /* @__PURE__ */ import_react100.default.createElement(Div, { style: styles4.footer.style }, /* @__PURE__ */ import_react100.default.createElement(
|
|
65809
65827
|
"a",
|
|
65810
65828
|
{
|
|
65811
|
-
href: `${
|
|
65829
|
+
href: `${FRONTEND_URL3}`,
|
|
65812
65830
|
className: (0, import_clsx13.default)("link", styles4.logo),
|
|
65813
65831
|
onClick: (e) => {
|
|
65814
65832
|
if (e.metaKey || e.ctrlKey) {
|
|
@@ -65866,7 +65884,6 @@ var init_Hey = __esm({
|
|
|
65866
65884
|
import_react101 = require("react");
|
|
65867
65885
|
init_Image();
|
|
65868
65886
|
init_AuthProvider();
|
|
65869
|
-
init_ChatProvider();
|
|
65870
65887
|
init_NavigationProvider();
|
|
65871
65888
|
init_platform();
|
|
65872
65889
|
init_Sidebar_styles();
|
|
@@ -65874,6 +65891,7 @@ var init_Hey = __esm({
|
|
|
65874
65891
|
init_ErrorBoundary();
|
|
65875
65892
|
init_Thread();
|
|
65876
65893
|
init_Home();
|
|
65894
|
+
init_utils();
|
|
65877
65895
|
init_providers();
|
|
65878
65896
|
Store2 = (0, import_react101.lazy)(() => Promise.resolve().then(() => (init_Store(), Store_exports)));
|
|
65879
65897
|
Calendar3 = (0, import_react101.lazy)(() => Promise.resolve().then(() => (init_Calendar(), Calendar_exports)));
|
|
@@ -65912,7 +65930,17 @@ var init_Hey = __esm({
|
|
|
65912
65930
|
setPathnameLocal(pathname);
|
|
65913
65931
|
}
|
|
65914
65932
|
}, [pathname, isExtension2]);
|
|
65915
|
-
const
|
|
65933
|
+
const threadIdRef = (0, import_react101.useRef)(getThreadId(pathname));
|
|
65934
|
+
const threadId = threadIdRef.current;
|
|
65935
|
+
const setThreadId = (id) => {
|
|
65936
|
+
threadIdRef.current = id;
|
|
65937
|
+
};
|
|
65938
|
+
(0, import_react101.useEffect)(() => {
|
|
65939
|
+
const id = getThreadId(pathname);
|
|
65940
|
+
if (id) {
|
|
65941
|
+
setThreadId(id);
|
|
65942
|
+
}
|
|
65943
|
+
}, [pathname]);
|
|
65916
65944
|
const { app, isSplash, setIsSplash, storeApps } = useAuth();
|
|
65917
65945
|
const { currentStore } = useApp();
|
|
65918
65946
|
const lastPathSegment = pathname.split("/").pop()?.split("?")[0];
|