'use strict';
'use client';
import { c } from 'react/compiler-runtime';
import { eventListenerEvents } from '../constants/events.js';
import { useState, useEffect } from 'react';

var __defProp=Object['defineProperty'],__name=(_0x287b31,_0x41742f)=>__defProp(_0x287b31,'name',{'value':_0x41742f,'configurable':!![]});function useMediaQuery(_0x5d32cc){const _0x4489db=c(0x189*0x6+-0x25*0xdb+-0x1674*-0x1),[_0x1ab161,_0x49fe4b]=useState(![]);let _0x5a5fdb,_0x4d9703;return _0x4489db[-0x25f7+-0x9*0x1d+-0x5*-0x7cc]!==_0x5d32cc?(_0x5a5fdb=()=>{const _0x3a03e0=window['matchMedia'](_0x5d32cc),_0x4b0191=__name(()=>_0x49fe4b(_0x3a03e0['matches']),'handleChange');return _0x4b0191(),_0x3a03e0['addEventListener'](eventListenerEvents['change'],_0x4b0191),()=>_0x3a03e0['removeEventListener'](eventListenerEvents['change'],_0x4b0191);},_0x4d9703=[_0x5d32cc],_0x4489db[-0xc75*0x1+0x201b+-0x13a6]=_0x5d32cc,_0x4489db[-0xb*-0x59+0x5fe+-0x9d0]=_0x5a5fdb,_0x4489db[0x4e9+0xa30+-0x1*0xf17]=_0x4d9703):(_0x5a5fdb=_0x4489db[-0x17f8+-0x17d1+0x2fca*0x1],_0x4d9703=_0x4489db[0xa13*0x1+-0x1*-0xe2f+0x1*-0x1840]),useEffect(_0x5a5fdb,_0x4d9703),_0x1ab161;}__name(useMediaQuery,'useMediaQuery');

export { useMediaQuery };
