{"ast":null,"code":"import * as React from 'react';\nvar useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\n/**\n * https://github.com/facebook/react/issues/14099#issuecomment-440013892\n *\n * @param {function} fn\n */\n\nexport default function useEventCallback(fn) {\n var ref = React.useRef(fn);\n useEnhancedEffect(function () {\n ref.current = fn;\n });\n return React.useCallback(function () {\n return (0, ref.current).apply(void 0, arguments);\n }, []);\n}","map":{"version":3,"sources":["/app/node_modules/@material-ui/core/esm/utils/useEventCallback.js"],"names":["React","useEnhancedEffect","window","useLayoutEffect","useEffect","useEventCallback","fn","ref","useRef","current","useCallback","apply","arguments"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,IAAIC,iBAAiB,GAAG,OAAOC,MAAP,KAAkB,WAAlB,GAAgCF,KAAK,CAACG,eAAtC,GAAwDH,KAAK,CAACI,SAAtF;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,SAASC,gBAAT,CAA0BC,EAA1B,EAA8B;AAC3C,MAAIC,GAAG,GAAGP,KAAK,CAACQ,MAAN,CAAaF,EAAb,CAAV;AACAL,EAAAA,iBAAiB,CAAC,YAAY;AAC5BM,IAAAA,GAAG,CAACE,OAAJ,GAAcH,EAAd;AACD,GAFgB,CAAjB;AAGA,SAAON,KAAK,CAACU,WAAN,CAAkB,YAAY;AACnC,WAAO,CAAC,GAAGH,GAAG,CAACE,OAAR,EAAiBE,KAAjB,CAAuB,KAAK,CAA5B,EAA+BC,SAA/B,CAAP;AACD,GAFM,EAEJ,EAFI,CAAP;AAGD","sourcesContent":["import * as React from 'react';\nvar useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\n/**\n * https://github.com/facebook/react/issues/14099#issuecomment-440013892\n *\n * @param {function} fn\n */\n\nexport default function useEventCallback(fn) {\n var ref = React.useRef(fn);\n useEnhancedEffect(function () {\n ref.current = fn;\n });\n return React.useCallback(function () {\n return (0, ref.current).apply(void 0, arguments);\n }, []);\n}"]},"metadata":{},"sourceType":"module"}