This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,26 @@
// Metro module 12768 (f12769).
import { getCountryCodeByAlpha2, getDefaultCountryCode } from "../../i18n/CountryCodeUtils";
import Module589 from "../../../_bundle/Module589";
import Dispatcher from "../../../Dispatcher";
let defaultCountryCode;
const handleSetLocationMetadata = function handleSetLocationMetadata({ countryCode }) {
if (countryCode != null) {
let r6 = getCountryCodeByAlpha2(countryCode);
if (r6 == null) {
r6 = getDefaultCountryCode();
}
defaultCountryCode = r6;
}
};
defaultCountryCode = null;
class LocationMetadataStore extends Module589.Store {
static displayName = "LocationMetadataStore";
getCountryCode() {
return defaultCountryCode;
}
}
const locationMetadataStore = new LocationMetadataStore(Dispatcher, {
CONNECTION_OPEN: handleSetLocationMetadata,
SET_LOCATION_METADATA: handleSetLocationMetadata
});
export default locationMetadataStore;