// Module ID: 333 // Function ID: 334 // Name: set // Dependencies: [19, 334] // Exports: unstable_getImageComponentDecorator, unstable_registerImageAttachedCallback, unstable_setImageComponentDecorator, unstable_unregisterImageAttachedCallback, useWrapRefWithImageAttachedCallbacks // Module 333 (set) import noopAll from "noop" /* 19 */; import useMergeRefsDefault from "useMergeRefs" /* 334 */; import { useRef } from "noop" /* 19 */; noopAll; const set = new Set(); export function unstable_setImageComponentDecorator(arg0) { closure_2 = arg0; } export function unstable_getImageComponentDecorator() { return closure_2; } export const unstable_registerImageAttachedCallback = function unstable_registerImageAttachedCallback(arg0) { set.add(arg0); }; export const unstable_unregisterImageAttachedCallback = function unstable_unregisterImageAttachedCallback(arg0) { set.delete(arg0); }; export const useWrapRefWithImageAttachedCallbacks = function useWrapRefWithImageAttachedCallbacks(ref) { importDefault = useRef([]); let tmp = useRef(null); if (null == tmp.current) { tmp.current = (arg0) => { if (null == arg0) { if (ref.current.length > 0) { let current = tmp3.current; const item = current.forEach((arg0) => arg0()); tmp3.current = []; } } else { const item1 = closure_1_4.forEach((arg0) => { const tmp = arg0(ref); if (null != tmp) { const current = ref.current; current.push(tmp); } }); } }; } return useMergeRefsDefault(ref, tmp.current); };