decord/source/modules/expression_picker/ExpressionPickerGridStores.tsx

242 lines
8.9 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 8789
// Function ID: 8790
2026-07-29 08:29:29 +00:00
// Name: withEqualityFn
2026-08-25 06:04:03 +00:00
// Dependencies: [700, 4247, 705, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 8789 (withEqualityFn)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import identity from "identity" /* 700 */;
2026-08-25 06:04:03 +00:00
import createJSONStorage from "createJSONStorage" /* 4247 */;
2026-07-29 08:29:29 +00:00
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) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1 = arg1;
closure_2 = arg2;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => {
2026-07-29 08:29:29 +00:00
const inspectedExpressionPosition = { rowIndex: closure_1, columnIndex: state, source: closure_2 };
return state.setState({ inspectedExpressionPosition, hasInteracted: true });
});
},
setActiveCategoryIndex(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ activeCategoryIndex: state }));
2026-07-29 08:29:29 +00:00
},
setSearchPlaceholder(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ searchPlaceholder: state }));
2026-07-29 08:29:29 +00:00
},
resetStoreState() {
2026-08-24 06:08:38 +00:00
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState(closure_1_2));
2026-07-29 08:29:29 +00:00
},
setBottomPosition(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ bottomPosition: state }));
2026-07-29 08:29:29 +00:00
},
setAnalyticsId(replaced) {
2026-08-24 06:08:38 +00:00
closure_0 = replaced;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ analyticsId: state }));
2026-07-29 08:29:29 +00:00
},
getAnalyticsId() {
return withEqualityFnResult.getState().analyticsId;
}
};
c0 = undefined;
identity = identity.createWithEqualityFn();
const withEqualityFn1Result = identity(createJSONStorage.subscribeWithSelector(() => closure_2));
c0 = withEqualityFn1Result;
obj = {
useStore: withEqualityFn1Result,
getState() {
2026-07-20 16:05:17 +00:00
return withEqualityFnResult.getState();
2026-07-29 08:29:29 +00:00
},
subscribe(arg0, arg1) {
return withEqualityFnResult.subscribe(arg0, arg1);
},
setInspectedExpressionPosition(arg0, arg1, arg2) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1 = arg1;
closure_2 = arg2;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => {
2026-07-29 08:29:29 +00:00
const inspectedExpressionPosition = { rowIndex: closure_1, columnIndex: state, source: closure_2 };
return state.setState({ inspectedExpressionPosition, hasInteracted: true });
});
},
setActiveCategoryIndex(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ activeCategoryIndex: state }));
2026-07-29 08:29:29 +00:00
},
setSearchPlaceholder(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ searchPlaceholder: state }));
2026-07-29 08:29:29 +00:00
},
resetStoreState() {
2026-08-24 06:08:38 +00:00
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState(closure_1_2));
2026-07-29 08:29:29 +00:00
},
setBottomPosition(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ bottomPosition: state }));
2026-07-29 08:29:29 +00:00
},
setAnalyticsId(replaced) {
2026-08-24 06:08:38 +00:00
closure_0 = replaced;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ analyticsId: state }));
2026-07-29 08:29:29 +00:00
},
getAnalyticsId() {
return withEqualityFnResult.getState().analyticsId;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
};
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;
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/expression_picker/ExpressionPickerGridStores.tsx");
2026-07-29 08:29:29 +00:00
export default function createStore() {
let obj = _undefined(700);
2026-07-20 16:05:17 +00:00
const withEqualityFn = obj.createWithEqualityFn();
2026-08-25 06:04:03 +00:00
const withEqualityFnResult = withEqualityFn(_undefined(4247).subscribeWithSelector(() => closure_2));
2026-07-29 08:29:29 +00:00
_undefined = withEqualityFnResult;
2026-07-20 16:05:17 +00:00
obj = {
useStore: withEqualityFnResult,
2026-07-29 08:29:29 +00:00
getState() {
return withEqualityFnResult.getState();
},
2026-07-20 16:05:17 +00:00
subscribe(arg0, arg1) {
return withEqualityFnResult.subscribe(arg0, arg1);
},
setInspectedExpressionPosition(arg0, arg1, arg2) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1 = arg1;
closure_2 = arg2;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => {
2026-07-23 10:11:24 +00:00
const inspectedExpressionPosition = { rowIndex: closure_1, columnIndex: state, source: closure_2 };
return state.setState({ inspectedExpressionPosition, hasInteracted: true });
2026-07-20 16:05:17 +00:00
});
},
setActiveCategoryIndex(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ activeCategoryIndex: state }));
2026-07-20 16:05:17 +00:00
},
setSearchPlaceholder(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ searchPlaceholder: state }));
2026-07-20 16:05:17 +00:00
},
resetStoreState() {
2026-08-24 06:08:38 +00:00
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState(closure_1_2));
2026-07-20 16:05:17 +00:00
},
setBottomPosition(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ bottomPosition: state }));
2026-07-20 16:05:17 +00:00
},
setAnalyticsId(replaced) {
2026-08-24 06:08:38 +00:00
closure_0 = replaced;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ analyticsId: state }));
2026-07-20 16:05:17 +00:00
},
getAnalyticsId() {
2026-07-29 08:29:29 +00:00
return withEqualityFnResult.getState().analyticsId;
2026-07-20 16:05:17 +00:00
}
};
return obj;
2026-07-29 08:29:29 +00:00
};
2026-07-20 16:05:17 +00:00
export const INACTIVE_CATEGORY_INDEX = -1;
2026-07-29 08:29:29 +00:00
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) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1 = arg1;
closure_2 = arg2;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => {
2026-07-29 08:29:29 +00:00
const inspectedExpressionPosition = { rowIndex: closure_1, columnIndex: state, source: closure_2 };
return state.setState({ inspectedExpressionPosition, hasInteracted: true });
});
},
setActiveCategoryIndex(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ activeCategoryIndex: state }));
2026-07-29 08:29:29 +00:00
},
setSearchPlaceholder(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ searchPlaceholder: state }));
2026-07-29 08:29:29 +00:00
},
resetStoreState() {
2026-08-24 06:08:38 +00:00
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState(closure_1_2));
2026-07-29 08:29:29 +00:00
},
setBottomPosition(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ bottomPosition: state }));
2026-07-29 08:29:29 +00:00
},
setAnalyticsId(replaced) {
2026-08-24 06:08:38 +00:00
closure_0 = replaced;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ analyticsId: state }));
2026-07-29 08:29:29 +00:00
},
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) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1 = arg1;
closure_2 = arg2;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => {
2026-07-29 08:29:29 +00:00
const inspectedExpressionPosition = { rowIndex: closure_1, columnIndex: state, source: closure_2 };
return state.setState({ inspectedExpressionPosition, hasInteracted: true });
});
},
setActiveCategoryIndex(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ activeCategoryIndex: state }));
2026-07-29 08:29:29 +00:00
},
setSearchPlaceholder(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ searchPlaceholder: state }));
2026-07-29 08:29:29 +00:00
},
resetStoreState() {
2026-08-24 06:08:38 +00:00
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState(closure_1_2));
2026-07-29 08:29:29 +00:00
},
setBottomPosition(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ bottomPosition: state }));
2026-07-29 08:29:29 +00:00
},
setAnalyticsId(replaced) {
2026-08-24 06:08:38 +00:00
closure_0 = replaced;
withEqualityFnResult(closure_1_1[2]).batchUpdates(() => state.setState({ analyticsId: state }));
2026-07-29 08:29:29 +00:00
},
getAnalyticsId() {
return withEqualityFnResult.getState().analyticsId;
}
};