@chrryai/chrry 1.4.64 → 1.4.65
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 +48 -85
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -87
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1899,7 +1899,7 @@ var init_utils = __esm({
|
|
|
1899
1899
|
};
|
|
1900
1900
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
1901
1901
|
config = getSiteConfig(getClientHostname());
|
|
1902
|
-
VERSION = config.version || "1.4.
|
|
1902
|
+
VERSION = config.version || "1.4.65";
|
|
1903
1903
|
getSlugFromPathname = (path) => {
|
|
1904
1904
|
return getAppAndStoreSlugs(path, {
|
|
1905
1905
|
defaultAppSlug: config.slug,
|
|
@@ -2551,7 +2551,7 @@ function PlatformProvider({
|
|
|
2551
2551
|
const platform = detectPlatform();
|
|
2552
2552
|
const browser2 = getBrowser();
|
|
2553
2553
|
const isChrome = browser2 === "chrome";
|
|
2554
|
-
const
|
|
2554
|
+
const isFirefox2 = browser2 === "firefox";
|
|
2555
2555
|
const isSafari = browser2 === "safari";
|
|
2556
2556
|
const isEdge = browser2 === "edge";
|
|
2557
2557
|
const supportsHover = isWeb() || isBrowserExtension();
|
|
@@ -2702,7 +2702,7 @@ function PlatformProvider({
|
|
|
2702
2702
|
if (isWeb() && options.web !== void 0) return options.web;
|
|
2703
2703
|
return options.default;
|
|
2704
2704
|
};
|
|
2705
|
-
const
|
|
2705
|
+
const BrowserInstance4 = (() => {
|
|
2706
2706
|
if (typeof window === "undefined") return null;
|
|
2707
2707
|
if (typeof chrome !== "undefined" && chrome.runtime) return chrome;
|
|
2708
2708
|
const firefoxBrowser = globalThis.browser;
|
|
@@ -2719,8 +2719,8 @@ function PlatformProvider({
|
|
|
2719
2719
|
}
|
|
2720
2720
|
const checkStorageReady = async () => {
|
|
2721
2721
|
try {
|
|
2722
|
-
if (
|
|
2723
|
-
await
|
|
2722
|
+
if (BrowserInstance4?.storage?.local) {
|
|
2723
|
+
await BrowserInstance4.storage.local.get("_storage_check");
|
|
2724
2724
|
setIsStorageReady(true);
|
|
2725
2725
|
}
|
|
2726
2726
|
} catch (error) {
|
|
@@ -2729,7 +2729,7 @@ function PlatformProvider({
|
|
|
2729
2729
|
}
|
|
2730
2730
|
};
|
|
2731
2731
|
checkStorageReady();
|
|
2732
|
-
}, [
|
|
2732
|
+
}, [BrowserInstance4]);
|
|
2733
2733
|
const value = {
|
|
2734
2734
|
platform: platform === "native" ? "android" : platform,
|
|
2735
2735
|
browser: browser2,
|
|
@@ -2742,7 +2742,7 @@ function PlatformProvider({
|
|
|
2742
2742
|
isExtension: isBrowserExtension(),
|
|
2743
2743
|
isStandalone: isStandalone(),
|
|
2744
2744
|
isChrome,
|
|
2745
|
-
isFirefox:
|
|
2745
|
+
isFirefox: isFirefox2,
|
|
2746
2746
|
isSafari,
|
|
2747
2747
|
isEdge,
|
|
2748
2748
|
supportsHover,
|
|
@@ -2757,7 +2757,7 @@ function PlatformProvider({
|
|
|
2757
2757
|
isStorageReady,
|
|
2758
2758
|
styleRegistry,
|
|
2759
2759
|
updateStyleRegistry,
|
|
2760
|
-
BrowserInstance:
|
|
2760
|
+
BrowserInstance: BrowserInstance4,
|
|
2761
2761
|
orientation: "portrait",
|
|
2762
2762
|
viewPortWidth,
|
|
2763
2763
|
viewPortHeight,
|
|
@@ -23151,7 +23151,7 @@ function AuthProvider({
|
|
|
23151
23151
|
import_react_hot_toast.default.error(error);
|
|
23152
23152
|
}
|
|
23153
23153
|
}, [error]);
|
|
23154
|
-
const { isExtension: isExtension2, isStandalone: isStandalone2, isFirefox:
|
|
23154
|
+
const { isExtension: isExtension2, isStandalone: isStandalone2, isFirefox: isFirefox2, device, os, browser: browser2 } = usePlatform();
|
|
23155
23155
|
const isProduction4 = process.env.NODE_ENV === "production" || process.env.NEXT_PUBLIC_NODE_ENV === "production";
|
|
23156
23156
|
const extensionId2 = getExtensionId();
|
|
23157
23157
|
const isDevelopment3 = isExtension2 ? ["ihkpepnfnhmdkmpgfdnfbllldbgabbad"].includes(extensionId2 || "") : !isProduction4;
|
|
@@ -23268,7 +23268,7 @@ function AuthProvider({
|
|
|
23268
23268
|
isPWA
|
|
23269
23269
|
}) {
|
|
23270
23270
|
const canAdd = isPWA !== void 0 && os2 !== void 0 && browser3 !== void 0;
|
|
23271
|
-
const u = url || isExtension2 ? `/extension/${
|
|
23271
|
+
const u = url || isExtension2 ? `/extension/${isFirefox2 ? "firefox" : "chrome"}${window.location.pathname}` : typeof window !== "undefined" ? canAdd ? `${isPWA ? `${os2}/${browser3}` : ""}${window?.location?.pathname || ""}` : window?.location?.pathname || "" : "/";
|
|
23272
23272
|
fetch("https://a.chrry.dev/api/data", {
|
|
23273
23273
|
method: "POST",
|
|
23274
23274
|
headers: { "Content-Type": "application/json" },
|
|
@@ -24260,7 +24260,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24260
24260
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24261
24261
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24262
24262
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24263
|
-
const VERSION4 = "1.4.
|
|
24263
|
+
const VERSION4 = "1.4.65";
|
|
24264
24264
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24265
24265
|
const {
|
|
24266
24266
|
API_URL: API_URL2,
|
|
@@ -24336,7 +24336,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24336
24336
|
}),
|
|
24337
24337
|
[API_URL2, token]
|
|
24338
24338
|
);
|
|
24339
|
-
const { isStandalone: isStandalone2, isExtension: isExtension2, isFirefox:
|
|
24339
|
+
const { isStandalone: isStandalone2, isExtension: isExtension2, isFirefox: isFirefox2 } = usePlatform();
|
|
24340
24340
|
const { searchParams, pathname } = useNavigation();
|
|
24341
24341
|
const { data: affiliateData, mutate: refetchAffiliateData } = (0, import_swr2.default)(
|
|
24342
24342
|
user && token && pathname.startsWith("/affiliate") ? ["affiliate"] : null,
|
|
@@ -24467,7 +24467,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24467
24467
|
});
|
|
24468
24468
|
}
|
|
24469
24469
|
}, [weatherData]);
|
|
24470
|
-
const
|
|
24470
|
+
const isE2E2 = process.env.NEXT_PUBLIC_TESTING_ENV === "e2e";
|
|
24471
24471
|
const [aiAgents, setAiAgents] = (0, import_react21.useState)(session2?.aiAgents || []);
|
|
24472
24472
|
const { data: aiAgentsData } = (0, import_swr2.default)(
|
|
24473
24473
|
token && siteConfig.mode !== "chrryDev" && aiAgents?.length > 0 ? null : ["aiAgents", token, app?.id],
|
|
@@ -24491,10 +24491,10 @@ function DataProvider({ children, ...rest }) {
|
|
|
24491
24491
|
}
|
|
24492
24492
|
}, [aiAgentsData]);
|
|
24493
24493
|
(0, import_react21.useEffect)(() => {
|
|
24494
|
-
const update = !versions ? false : isExtension2 ?
|
|
24494
|
+
const update = !versions ? false : isExtension2 ? isFirefox2 ? toVersionNumber(versions.firefoxVersion) > toVersionNumber(VERSION4) : toVersionNumber(versions.chromeVersion) > toVersionNumber(VERSION4) : isStandalone2 && createdOn ? new Date(createdOn).getTime() < new Date(RELEASE_TIMESTAMP).getTime() : false;
|
|
24495
24495
|
setNeedsUpdate(update);
|
|
24496
24496
|
setNeedsUpdateModalOpen(update);
|
|
24497
|
-
}, [versions, createdOn, isStandalone2, isExtension2,
|
|
24497
|
+
}, [versions, createdOn, isStandalone2, isExtension2, isFirefox2]);
|
|
24498
24498
|
const FREE_DAYS2 = 5;
|
|
24499
24499
|
const PLUS_PRICE2 = 9.99;
|
|
24500
24500
|
const PRO_PRICE2 = 19.99;
|
|
@@ -24535,7 +24535,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24535
24535
|
PROD_FRONTEND_URL: PROD_FRONTEND_URL2,
|
|
24536
24536
|
MONTHLY_GUEST_CREDITS,
|
|
24537
24537
|
actions,
|
|
24538
|
-
isE2E:
|
|
24538
|
+
isE2E: isE2E2,
|
|
24539
24539
|
pageSizes: pageSizes3,
|
|
24540
24540
|
setNeedsUpdateModalOpen,
|
|
24541
24541
|
needsUpdateModalOpen,
|
|
@@ -26810,8 +26810,8 @@ function ChatProvider({
|
|
|
26810
26810
|
if (!a) return;
|
|
26811
26811
|
setSelectedAgent(a);
|
|
26812
26812
|
}, [app, aiAgents]);
|
|
26813
|
-
const { isDevelopment: isDevelopment3, isE2E:
|
|
26814
|
-
const hourlyLimit = isDevelopment3 && !
|
|
26813
|
+
const { isDevelopment: isDevelopment3, isE2E: isE2E2, actions } = useData();
|
|
26814
|
+
const hourlyLimit = isDevelopment3 && !isE2E2 ? 5e4 : getHourlyLimit({
|
|
26815
26815
|
member: user,
|
|
26816
26816
|
guest
|
|
26817
26817
|
});
|
|
@@ -28181,12 +28181,12 @@ var init_AppContext = __esm({
|
|
|
28181
28181
|
}) => {
|
|
28182
28182
|
const { t: i18nT } = (0, import_react_i18next5.useTranslation)();
|
|
28183
28183
|
const { user, allApps, atlas } = useAuth();
|
|
28184
|
-
const
|
|
28184
|
+
const isE2E2 = process.env.NEXT_PUBLIC_TESTING_ENV === "e2e";
|
|
28185
28185
|
const isCI2 = process.env.NEXT_PUBLIC_CI === "true";
|
|
28186
28186
|
const config2 = getSiteConfig();
|
|
28187
28187
|
const t6 = (key, values, autoAdd = true) => {
|
|
28188
28188
|
const result = i18nT(key, values);
|
|
28189
|
-
if (autoAdd && !isCI2 &&
|
|
28189
|
+
if (autoAdd && !isCI2 && isE2E2 && user?.role === "admin" && typeof window !== "undefined" && !checkedKeys.has(key)) {
|
|
28190
28190
|
checkedKeys.add(key);
|
|
28191
28191
|
if (result === key && !reportedMissingKeys.has(key)) {
|
|
28192
28192
|
reportedMissingKeys.add(key);
|
|
@@ -33795,7 +33795,7 @@ function Anchor({
|
|
|
33795
33795
|
}) {
|
|
33796
33796
|
const { FRONTEND_URL: FRONTEND_URL2 } = useData();
|
|
33797
33797
|
const { addHapticFeedback } = useTheme2();
|
|
33798
|
-
const { isExtension: isExtension2, BrowserInstance:
|
|
33798
|
+
const { isExtension: isExtension2, BrowserInstance: BrowserInstance4 } = usePlatform();
|
|
33799
33799
|
const router = useNavigation();
|
|
33800
33800
|
const isExternalUrl = (url) => {
|
|
33801
33801
|
if (openInNewTab) return true;
|
|
@@ -33818,9 +33818,9 @@ function Anchor({
|
|
|
33818
33818
|
}
|
|
33819
33819
|
if (isExternalUrl(href)) {
|
|
33820
33820
|
addHapticFeedback();
|
|
33821
|
-
if (isExtension2 &&
|
|
33821
|
+
if (isExtension2 && BrowserInstance4 && href) {
|
|
33822
33822
|
e.preventDefault();
|
|
33823
|
-
|
|
33823
|
+
BrowserInstance4.runtime?.sendMessage({
|
|
33824
33824
|
action: "openInSameTab",
|
|
33825
33825
|
url: href
|
|
33826
33826
|
});
|
|
@@ -34185,12 +34185,11 @@ function Instructions({
|
|
|
34185
34185
|
...rest
|
|
34186
34186
|
}) {
|
|
34187
34187
|
const { t: t6 } = useAppContext();
|
|
34188
|
-
const {
|
|
34189
|
-
const { FRONTEND_URL: FRONTEND_URL2, API_URL: API_URL2 } = useData();
|
|
34188
|
+
const { API_URL: API_URL2 } = useData();
|
|
34190
34189
|
const styles4 = useInstructionsStyles();
|
|
34191
34190
|
const { utilities } = useStyles();
|
|
34192
34191
|
const { defaultInstructions, isAppInstructions } = useApp();
|
|
34193
|
-
const { token, language, user, guest, app, focus
|
|
34192
|
+
const { token, language, user, guest, app, focus } = useAuth();
|
|
34194
34193
|
const {
|
|
34195
34194
|
selectedAgent,
|
|
34196
34195
|
setSelectedAgent,
|
|
@@ -35319,7 +35318,7 @@ var init_useAppReorder = __esm({
|
|
|
35319
35318
|
// App.tsx
|
|
35320
35319
|
function FocusButton({ time }) {
|
|
35321
35320
|
const { appStyles, utilities } = useStyles();
|
|
35322
|
-
const { isExtension: isExtension2, isFirefox:
|
|
35321
|
+
const { isExtension: isExtension2, isFirefox: isFirefox2, isWeb: isWeb2 } = usePlatform();
|
|
35323
35322
|
const { app, focus, getAppSlug, setShowFocus } = useAuth();
|
|
35324
35323
|
const [currentTime, setCurrentTime] = (0, import_react57.useState)(/* @__PURE__ */ new Date());
|
|
35325
35324
|
(0, import_react57.useEffect)(() => {
|
|
@@ -35347,7 +35346,7 @@ function FocusButton({ time }) {
|
|
|
35347
35346
|
{
|
|
35348
35347
|
onClick: () => setShowFocus(true),
|
|
35349
35348
|
href: `${getAppSlug(focus)}`,
|
|
35350
|
-
openInNewTab: isExtension2 &&
|
|
35349
|
+
openInNewTab: isExtension2 && isFirefox2,
|
|
35351
35350
|
style: {
|
|
35352
35351
|
...appStyles.focus.style
|
|
35353
35352
|
}
|
|
@@ -35460,7 +35459,7 @@ function App({
|
|
|
35460
35459
|
setImageDimensionWarning(null);
|
|
35461
35460
|
}
|
|
35462
35461
|
}, [app, app?.image]);
|
|
35463
|
-
const { isExtension: isExtension2, isFirefox:
|
|
35462
|
+
const { isExtension: isExtension2, isFirefox: isFirefox2, isWeb: isWeb2 } = usePlatform();
|
|
35464
35463
|
const handleFileChange = async (e) => {
|
|
35465
35464
|
const target = e.target;
|
|
35466
35465
|
if (!target.files || !target.files[0]) return;
|
|
@@ -36004,7 +36003,7 @@ function App({
|
|
|
36004
36003
|
{
|
|
36005
36004
|
href: `${FRONTEND_URL2}/calendar`,
|
|
36006
36005
|
title: t6("Organize your life"),
|
|
36007
|
-
openInNewTab: isExtension2 &&
|
|
36006
|
+
openInNewTab: isExtension2 && isFirefox2,
|
|
36008
36007
|
className: "button transparent",
|
|
36009
36008
|
style: {
|
|
36010
36009
|
...utilities.button.style,
|
|
@@ -37231,15 +37230,7 @@ function Chat({
|
|
|
37231
37230
|
isIncognito,
|
|
37232
37231
|
addParams
|
|
37233
37232
|
} = useNavigationContext();
|
|
37234
|
-
const {
|
|
37235
|
-
slug,
|
|
37236
|
-
suggestSaveApp,
|
|
37237
|
-
saveApp,
|
|
37238
|
-
apps,
|
|
37239
|
-
appStatus,
|
|
37240
|
-
appFormWatcher,
|
|
37241
|
-
setApp
|
|
37242
|
-
} = useApp();
|
|
37233
|
+
const { slug, suggestSaveApp, saveApp, apps, appStatus, appFormWatcher } = useApp();
|
|
37243
37234
|
const threadIdRef = (0, import_react59.useRef)(threadId);
|
|
37244
37235
|
(0, import_react59.useEffect)(() => {
|
|
37245
37236
|
threadIdRef.current = threadId;
|
|
@@ -37250,14 +37241,7 @@ function Chat({
|
|
|
37250
37241
|
const { captureException } = useError();
|
|
37251
37242
|
const { device, os, isStandalone: isStandalone2, isExtension: isExtension2, viewPortWidth, isWeb: isWeb2 } = usePlatform();
|
|
37252
37243
|
const inputRef = (0, import_react59.useRef)(text2 || "");
|
|
37253
|
-
const {
|
|
37254
|
-
addHapticFeedback,
|
|
37255
|
-
reduceMotion,
|
|
37256
|
-
playNotification,
|
|
37257
|
-
isDrawerOpen,
|
|
37258
|
-
isSmallDevice,
|
|
37259
|
-
isMobileDevice
|
|
37260
|
-
} = useTheme2();
|
|
37244
|
+
const { addHapticFeedback, playNotification, isDrawerOpen, isSmallDevice } = useTheme2();
|
|
37261
37245
|
const setSelectedAgent = (agent) => {
|
|
37262
37246
|
setSelectedAgentInternal(agent);
|
|
37263
37247
|
setShouldFocus(true);
|
|
@@ -42610,7 +42594,7 @@ function SignIn({
|
|
|
42610
42594
|
const { t: t6 } = useAppContext();
|
|
42611
42595
|
const {
|
|
42612
42596
|
FRONTEND_URL: FRONTEND_URL2,
|
|
42613
|
-
isE2E:
|
|
42597
|
+
isE2E: isE2E2,
|
|
42614
42598
|
isCI: isCI2,
|
|
42615
42599
|
API_URL: API_URL2,
|
|
42616
42600
|
TEST_GUEST_FINGERPRINTS,
|
|
@@ -42642,7 +42626,7 @@ function SignIn({
|
|
|
42642
42626
|
window.removeEventListener("keydown", handleKeyDown);
|
|
42643
42627
|
};
|
|
42644
42628
|
}, [part]);
|
|
42645
|
-
const E2E =
|
|
42629
|
+
const E2E = isE2E2 || fingerprint && (TEST_GUEST_FINGERPRINTS.includes(fingerprint) || TEST_MEMBER_FINGERPRINTS.includes(fingerprint));
|
|
42646
42630
|
const handleSignIn = async (part2) => {
|
|
42647
42631
|
if (E2E) {
|
|
42648
42632
|
part2 = "credentials";
|
|
@@ -42710,7 +42694,7 @@ function SignIn({
|
|
|
42710
42694
|
return;
|
|
42711
42695
|
} else {
|
|
42712
42696
|
const redirectUrl2 = signInResult?.url || successUrl.toString();
|
|
42713
|
-
if (
|
|
42697
|
+
if (isE2E2) {
|
|
42714
42698
|
setRedirectUrl(redirectUrl2);
|
|
42715
42699
|
!isCI2 && setTimeout(() => {
|
|
42716
42700
|
window.location.href = redirectUrl2;
|
|
@@ -43488,7 +43472,7 @@ function Subscribe({
|
|
|
43488
43472
|
PRO_PRICE: PRO_PRICE2,
|
|
43489
43473
|
actions
|
|
43490
43474
|
} = useData();
|
|
43491
|
-
const { isExtension: isExtension2, BrowserInstance:
|
|
43475
|
+
const { isExtension: isExtension2, BrowserInstance: BrowserInstance4 } = usePlatform();
|
|
43492
43476
|
const { plusFeatures, memberFeatures, proFeatures, creditsFeatures } = getFeatures({
|
|
43493
43477
|
t: t6,
|
|
43494
43478
|
ADDITIONAL_CREDITS: ADDITIONAL_CREDITS2,
|
|
@@ -44205,7 +44189,7 @@ function Subscribe({
|
|
|
44205
44189
|
{
|
|
44206
44190
|
onClick: () => {
|
|
44207
44191
|
if (isExtension2) {
|
|
44208
|
-
|
|
44192
|
+
BrowserInstance4?.runtime?.sendMessage({
|
|
44209
44193
|
action: "openInSameTab",
|
|
44210
44194
|
url: `${FRONTEND_URL2}?subscribe=true&extension=true&plan=${subs.plan}`
|
|
44211
44195
|
});
|
|
@@ -44237,7 +44221,7 @@ function Subscribe({
|
|
|
44237
44221
|
onClick: () => {
|
|
44238
44222
|
addHapticFeedback();
|
|
44239
44223
|
if (isExtension2) {
|
|
44240
|
-
|
|
44224
|
+
BrowserInstance4?.runtime?.sendMessage({
|
|
44241
44225
|
action: "openInSameTab",
|
|
44242
44226
|
url: `${FRONTEND_URL2}?subscribe=true&extension=true`
|
|
44243
44227
|
});
|
|
@@ -44445,7 +44429,7 @@ function Version() {
|
|
|
44445
44429
|
} = useData();
|
|
44446
44430
|
const { showAddToHomeScreen, setShowAddToHomeScreen } = useNavigationContext();
|
|
44447
44431
|
const { t: t6 } = (0, import_react_i18next7.useTranslation)();
|
|
44448
|
-
const { os, isStandalone: isStandalone2, isFirefox:
|
|
44432
|
+
const { os, isStandalone: isStandalone2, isFirefox: isFirefox2, isExtension: isExtension2, BrowserInstance: BrowserInstance4 } = usePlatform();
|
|
44449
44433
|
const { FRONTEND_URL: FRONTEND_URL2 } = useData();
|
|
44450
44434
|
const styles4 = useVersionStyles();
|
|
44451
44435
|
const { utilities } = useStyles();
|
|
@@ -44471,7 +44455,7 @@ function Version() {
|
|
|
44471
44455
|
),
|
|
44472
44456
|
title: /* @__PURE__ */ import_react71.default.createElement(Div, null, t6("Thinking"), "...")
|
|
44473
44457
|
},
|
|
44474
|
-
/* @__PURE__ */ import_react71.default.createElement(Div, { style: styles4.updateModalDescription.style }, /* @__PURE__ */ import_react71.default.createElement(Img, { src: `${FRONTEND_URL2}/hamster.png`, width: 24, height: 24 }), /* @__PURE__ */ import_react71.default.createElement(Span, null, t6("Let's update your app to the latest version"), " ", isStandalone2 ? null :
|
|
44458
|
+
/* @__PURE__ */ import_react71.default.createElement(Div, { style: styles4.updateModalDescription.style }, /* @__PURE__ */ import_react71.default.createElement(Img, { src: `${FRONTEND_URL2}/hamster.png`, width: 24, height: 24 }), /* @__PURE__ */ import_react71.default.createElement(Span, null, t6("Let's update your app to the latest version"), " ", isStandalone2 ? null : isFirefox2 ? versions.firefoxVersion : versions.chromeVersion)),
|
|
44475
44459
|
/* @__PURE__ */ import_react71.default.createElement(Div, { style: styles4.updateModalButtons.style }, os && ["ios", "android"].includes(os) ? /* @__PURE__ */ import_react71.default.createElement(
|
|
44476
44460
|
Button,
|
|
44477
44461
|
{
|
|
@@ -44495,12 +44479,12 @@ function Version() {
|
|
|
44495
44479
|
) : /* @__PURE__ */ import_react71.default.createElement(import_fa4.FaAndroid, { size: 18 }),
|
|
44496
44480
|
" ",
|
|
44497
44481
|
t6("Install")
|
|
44498
|
-
) : !
|
|
44482
|
+
) : !isFirefox2 ? /* @__PURE__ */ import_react71.default.createElement(
|
|
44499
44483
|
Anchor,
|
|
44500
44484
|
{
|
|
44501
44485
|
onClick: (e) => {
|
|
44502
44486
|
if (isExtension2) {
|
|
44503
|
-
|
|
44487
|
+
BrowserInstance4?.runtime?.sendMessage({
|
|
44504
44488
|
action: "openInSameTab",
|
|
44505
44489
|
url: "https://chromewebstore.google.com/detail/vex/odgdgbbddopmblglebfngmaebmnhegfc"
|
|
44506
44490
|
});
|
|
@@ -44516,7 +44500,7 @@ function Version() {
|
|
|
44516
44500
|
},
|
|
44517
44501
|
/* @__PURE__ */ import_react71.default.createElement(import_fa4.FaChrome, { size: 18 }),
|
|
44518
44502
|
t6("Install")
|
|
44519
|
-
) :
|
|
44503
|
+
) : isFirefox2 ? /* @__PURE__ */ import_react71.default.createElement(
|
|
44520
44504
|
Anchor,
|
|
44521
44505
|
{
|
|
44522
44506
|
className: "button",
|
|
@@ -45900,9 +45884,8 @@ function Message({
|
|
|
45900
45884
|
const { isAccountVisible, setIsAccountVisible } = useNavigationContext();
|
|
45901
45885
|
const { refetchThread, messages: messages2 } = useChat();
|
|
45902
45886
|
const { router, addParams } = useNavigationContext();
|
|
45903
|
-
const { slug, apps,
|
|
45887
|
+
const { slug, apps, app } = useApp();
|
|
45904
45888
|
const { captureException } = useError();
|
|
45905
|
-
const { os } = usePlatform();
|
|
45906
45889
|
const { addHapticFeedback, isMobileDevice } = useTheme2();
|
|
45907
45890
|
const ownerId = user?.id || guest?.id;
|
|
45908
45891
|
const { typingUsers, onlineUsers } = useThreadPresence({
|
|
@@ -47899,8 +47882,7 @@ var init_MemoryConsent_styles = __esm({
|
|
|
47899
47882
|
|
|
47900
47883
|
// MemoryConsent.tsx
|
|
47901
47884
|
function MemoryConsent({
|
|
47902
|
-
style: style2
|
|
47903
|
-
...props
|
|
47885
|
+
style: style2
|
|
47904
47886
|
}) {
|
|
47905
47887
|
const styles4 = useMemoryConsentStyles();
|
|
47906
47888
|
const { utilities } = useStyles();
|
|
@@ -53798,7 +53780,7 @@ function getTrueOffsetParent(element) {
|
|
|
53798
53780
|
return element.offsetParent;
|
|
53799
53781
|
}
|
|
53800
53782
|
function getContainingBlock(element) {
|
|
53801
|
-
var
|
|
53783
|
+
var isFirefox2 = /firefox/i.test(getUAString());
|
|
53802
53784
|
var isIE = /Trident/i.test(getUAString());
|
|
53803
53785
|
if (isIE && isHTMLElement3(element)) {
|
|
53804
53786
|
var elementCss = getComputedStyle3(element);
|
|
@@ -53812,7 +53794,7 @@ function getContainingBlock(element) {
|
|
|
53812
53794
|
}
|
|
53813
53795
|
while (isHTMLElement3(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0) {
|
|
53814
53796
|
var css = getComputedStyle3(currentNode);
|
|
53815
|
-
if (css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].indexOf(css.willChange) !== -1 ||
|
|
53797
|
+
if (css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].indexOf(css.willChange) !== -1 || isFirefox2 && css.willChange === "filter" || isFirefox2 && css.filter && css.filter !== "none") {
|
|
53816
53798
|
return currentNode;
|
|
53817
53799
|
} else {
|
|
53818
53800
|
currentNode = currentNode.parentNode;
|
|
@@ -79278,33 +79260,14 @@ __export(About_exports, {
|
|
|
79278
79260
|
default: () => About2
|
|
79279
79261
|
});
|
|
79280
79262
|
function About2() {
|
|
79281
|
-
const {
|
|
79282
|
-
// track,
|
|
79283
|
-
// isStandalone,
|
|
79284
|
-
// addHapticFeedback,
|
|
79285
|
-
chrry,
|
|
79286
|
-
// captureException,
|
|
79287
|
-
user,
|
|
79288
|
-
track,
|
|
79289
|
-
baseApp,
|
|
79290
|
-
setApp
|
|
79291
|
-
} = useAuth();
|
|
79263
|
+
const { chrry, track, baseApp, setApp, user } = useAuth();
|
|
79292
79264
|
const config2 = getSiteConfig();
|
|
79293
79265
|
const styles4 = useAboutStyles();
|
|
79294
79266
|
const { utilities } = useStyles();
|
|
79295
79267
|
const isChrryAI = config2.mode === "chrryAI";
|
|
79296
79268
|
const apps = isChrryAI ? chrry?.store?.apps : baseApp?.store?.apps;
|
|
79297
79269
|
const { t: t6 } = useAppContext();
|
|
79298
|
-
const {
|
|
79299
|
-
// isDrawerOpen,
|
|
79300
|
-
// router,
|
|
79301
|
-
// t,
|
|
79302
|
-
// track,
|
|
79303
|
-
isStandalone: isStandalone2
|
|
79304
|
-
// addHapticFeedback,
|
|
79305
|
-
// captureException,
|
|
79306
|
-
// user,
|
|
79307
|
-
} = usePlatform();
|
|
79270
|
+
const { isStandalone: isStandalone2 } = usePlatform();
|
|
79308
79271
|
const { router } = useNavigationContext();
|
|
79309
79272
|
const { isDrawerOpen, addHapticFeedback, isMobileDevice } = useTheme2();
|
|
79310
79273
|
const { captureException } = useError();
|