{"version":3,"file":"static/js/FetchParamsUpdaterOffset.4dd485c2.chunk.js","mappings":"uMAIA,MAAMA,EAA4BA,KAChC,MAAM,YAAEC,EAAW,oBAAEC,IACnBC,EAAAA,EAAAA,KAUF,OARAC,EAAAA,EAAAA,kBAAgB,KACdF,EAAoB,CAClBG,KAAMC,EAAAA,EAAoCC,IAC1CC,QAAS,CAAEC,OAAQ,IACnB,GACD,CAACR,EAAYS,SAAUT,EAAYU,SAAUV,EAAYW,iBAGrD,IAAI,EAGAC,GAA2BC,EAAAA,EAAAA,MAAKd,E","sources":["newelements/Casino/Games/__partials/fetch-updaters/FetchParamsUpdaterOffset.tsx"],"sourcesContent":["import { memo, useLayoutEffect } from 'react';\nimport { useCasinoGamesFetchParamsValues } from '../providers/CasinoGamesFetchParamsContext';\nimport { CasinoGamesFetchingParamsActionType } from '../state/reducer';\n\nconst _FetchParamsUpdaterOffset = () => {\n const { fetchParams, dispatchFetchParams } =\n useCasinoGamesFetchParamsValues();\n\n useLayoutEffect(() => {\n dispatchFetchParams({\n type: CasinoGamesFetchingParamsActionType.SET,\n payload: { offset: 0 }\n });\n }, [fetchParams.category, fetchParams.provider, fetchParams._fake_category]);\n // _fake_category is used for the promoted games case, because we need to reset the offset when the category changes\n\n return null;\n};\n\nexport const FetchParamsUpdaterOffset = memo(_FetchParamsUpdaterOffset);\n"],"names":["_FetchParamsUpdaterOffset","fetchParams","dispatchFetchParams","useCasinoGamesFetchParamsValues","useLayoutEffect","type","CasinoGamesFetchingParamsActionType","SET","payload","offset","category","provider","_fake_category","FetchParamsUpdaterOffset","memo"],"sourceRoot":""}