246 lines
9.1 KiB
TypeScript
246 lines
9.1 KiB
TypeScript
// Module ID: 9341
|
|
// Function ID: 9342
|
|
// Name: withEqualityFn
|
|
// Dependencies: [700, 4058, 705, 2]
|
|
// Exports: default
|
|
|
|
// Module 9341 (withEqualityFn)
|
|
import identity from "identity";
|
|
import createJSONStorage from "createJSONStorage";
|
|
import identity from "identity";
|
|
import createJSONStorage from "createJSONStorage";
|
|
import identity from "identity";
|
|
import createJSONStorage from "createJSONStorage";
|
|
import identity from "identity";
|
|
import createJSONStorage from "createJSONStorage";
|
|
|
|
let c0 = require;
|
|
let closure_2 = Object.freeze({ inspectedExpressionPosition: { rowIndex: 0, columnIndex: 0 }, hasInteracted: false, activeCategoryIndex: 0, searchPlaceholder: null, bottomPosition: null, analyticsId: null });
|
|
c0 = undefined;
|
|
identity = identity.createWithEqualityFn();
|
|
let withEqualityFnResult = identity(createJSONStorage.subscribeWithSelector(() => closure_2));
|
|
c0 = withEqualityFnResult;
|
|
let obj = {
|
|
useStore: withEqualityFnResult,
|
|
getState() {
|
|
return withEqualityFnResult.getState();
|
|
},
|
|
subscribe(arg0, arg1) {
|
|
return withEqualityFnResult.subscribe(arg0, arg1);
|
|
},
|
|
setInspectedExpressionPosition(arg0, arg1, arg2) {
|
|
let closure_0 = arg0;
|
|
let closure_1 = arg1;
|
|
let closure_2 = arg2;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => {
|
|
const inspectedExpressionPosition = { rowIndex: closure_1, columnIndex: state, source: closure_2 };
|
|
return state.setState({ inspectedExpressionPosition, hasInteracted: true });
|
|
});
|
|
},
|
|
setActiveCategoryIndex(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ activeCategoryIndex: state }));
|
|
},
|
|
setSearchPlaceholder(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ searchPlaceholder: state }));
|
|
},
|
|
resetStoreState() {
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState(outer1_2));
|
|
},
|
|
setBottomPosition(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ bottomPosition: state }));
|
|
},
|
|
setAnalyticsId(replaced) {
|
|
let closure_0 = replaced;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ analyticsId: state }));
|
|
},
|
|
getAnalyticsId() {
|
|
return withEqualityFnResult.getState().analyticsId;
|
|
}
|
|
};
|
|
c0 = undefined;
|
|
identity = identity.createWithEqualityFn();
|
|
const withEqualityFn1Result = identity(createJSONStorage.subscribeWithSelector(() => closure_2));
|
|
c0 = withEqualityFn1Result;
|
|
obj = {
|
|
useStore: withEqualityFn1Result,
|
|
getState() {
|
|
return withEqualityFnResult.getState();
|
|
},
|
|
subscribe(arg0, arg1) {
|
|
return withEqualityFnResult.subscribe(arg0, arg1);
|
|
},
|
|
setInspectedExpressionPosition(arg0, arg1, arg2) {
|
|
let closure_0 = arg0;
|
|
let closure_1 = arg1;
|
|
let closure_2 = arg2;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => {
|
|
const inspectedExpressionPosition = { rowIndex: closure_1, columnIndex: state, source: closure_2 };
|
|
return state.setState({ inspectedExpressionPosition, hasInteracted: true });
|
|
});
|
|
},
|
|
setActiveCategoryIndex(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ activeCategoryIndex: state }));
|
|
},
|
|
setSearchPlaceholder(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ searchPlaceholder: state }));
|
|
},
|
|
resetStoreState() {
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState(outer1_2));
|
|
},
|
|
setBottomPosition(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ bottomPosition: state }));
|
|
},
|
|
setAnalyticsId(replaced) {
|
|
let closure_0 = replaced;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ analyticsId: state }));
|
|
},
|
|
getAnalyticsId() {
|
|
return withEqualityFnResult.getState().analyticsId;
|
|
}
|
|
};
|
|
c0 = undefined;
|
|
identity = identity.createWithEqualityFn();
|
|
const withEqualityFn2Result = identity(createJSONStorage.subscribeWithSelector(() => closure_2));
|
|
c0 = withEqualityFn2Result;
|
|
c0 = undefined;
|
|
identity = identity.createWithEqualityFn();
|
|
const withEqualityFn3Result = identity(createJSONStorage.subscribeWithSelector(() => closure_2));
|
|
c0 = withEqualityFn3Result;
|
|
const result = require("batchUpdates").fileFinishedImporting("modules/expression_picker/ExpressionPickerGridStores.tsx");
|
|
|
|
export default function createStore() {
|
|
let obj = _undefined(700);
|
|
const withEqualityFn = obj.createWithEqualityFn();
|
|
const withEqualityFnResult = withEqualityFn(_undefined(4058).subscribeWithSelector(() => closure_2));
|
|
_undefined = withEqualityFnResult;
|
|
obj = {
|
|
useStore: withEqualityFnResult,
|
|
getState() {
|
|
return withEqualityFnResult.getState();
|
|
},
|
|
subscribe(arg0, arg1) {
|
|
return withEqualityFnResult.subscribe(arg0, arg1);
|
|
},
|
|
setInspectedExpressionPosition(arg0, arg1, arg2) {
|
|
let closure_0 = arg0;
|
|
let closure_1 = arg1;
|
|
let closure_2 = arg2;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => {
|
|
const inspectedExpressionPosition = { rowIndex: closure_1, columnIndex: state, source: closure_2 };
|
|
return state.setState({ inspectedExpressionPosition, hasInteracted: true });
|
|
});
|
|
},
|
|
setActiveCategoryIndex(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ activeCategoryIndex: state }));
|
|
},
|
|
setSearchPlaceholder(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ searchPlaceholder: state }));
|
|
},
|
|
resetStoreState() {
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState(outer1_2));
|
|
},
|
|
setBottomPosition(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ bottomPosition: state }));
|
|
},
|
|
setAnalyticsId(replaced) {
|
|
let closure_0 = replaced;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ analyticsId: state }));
|
|
},
|
|
getAnalyticsId() {
|
|
return withEqualityFnResult.getState().analyticsId;
|
|
}
|
|
};
|
|
return obj;
|
|
};
|
|
export const INACTIVE_CATEGORY_INDEX = -1;
|
|
export const EmojiPickerStore = obj;
|
|
export const StickerPickerStore = obj;
|
|
export const SoundboardPickerStore = {
|
|
useStore: withEqualityFn2Result,
|
|
getState() {
|
|
return withEqualityFnResult.getState();
|
|
},
|
|
subscribe(arg0, arg1) {
|
|
return withEqualityFnResult.subscribe(arg0, arg1);
|
|
},
|
|
setInspectedExpressionPosition(arg0, arg1, arg2) {
|
|
let closure_0 = arg0;
|
|
let closure_1 = arg1;
|
|
let closure_2 = arg2;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => {
|
|
const inspectedExpressionPosition = { rowIndex: closure_1, columnIndex: state, source: closure_2 };
|
|
return state.setState({ inspectedExpressionPosition, hasInteracted: true });
|
|
});
|
|
},
|
|
setActiveCategoryIndex(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ activeCategoryIndex: state }));
|
|
},
|
|
setSearchPlaceholder(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ searchPlaceholder: state }));
|
|
},
|
|
resetStoreState() {
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState(outer1_2));
|
|
},
|
|
setBottomPosition(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ bottomPosition: state }));
|
|
},
|
|
setAnalyticsId(replaced) {
|
|
let closure_0 = replaced;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ analyticsId: state }));
|
|
},
|
|
getAnalyticsId() {
|
|
return withEqualityFnResult.getState().analyticsId;
|
|
}
|
|
};
|
|
export const ApplicationCommandDiscoveryPickerStore = {
|
|
useStore: withEqualityFn3Result,
|
|
getState() {
|
|
return withEqualityFnResult.getState();
|
|
},
|
|
subscribe(arg0, arg1) {
|
|
return withEqualityFnResult.subscribe(arg0, arg1);
|
|
},
|
|
setInspectedExpressionPosition(arg0, arg1, arg2) {
|
|
let closure_0 = arg0;
|
|
let closure_1 = arg1;
|
|
let closure_2 = arg2;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => {
|
|
const inspectedExpressionPosition = { rowIndex: closure_1, columnIndex: state, source: closure_2 };
|
|
return state.setState({ inspectedExpressionPosition, hasInteracted: true });
|
|
});
|
|
},
|
|
setActiveCategoryIndex(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ activeCategoryIndex: state }));
|
|
},
|
|
setSearchPlaceholder(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ searchPlaceholder: state }));
|
|
},
|
|
resetStoreState() {
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState(outer1_2));
|
|
},
|
|
setBottomPosition(arg0) {
|
|
let closure_0 = arg0;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ bottomPosition: state }));
|
|
},
|
|
setAnalyticsId(replaced) {
|
|
let closure_0 = replaced;
|
|
withEqualityFnResult(outer1_1[2]).batchUpdates(() => state.setState({ analyticsId: state }));
|
|
},
|
|
getAnalyticsId() {
|
|
return withEqualityFnResult.getState().analyticsId;
|
|
}
|
|
};
|