46570.js.map 2.5 KB

1
  1. {"version":3,"file":"46570.js","mappings":";;;;;;;;;;;;;;;;;AAA8D;AAGd;AAMzC,MAAME,YAAY,GAAkB;IACzCC,eAAe,EAAE,EAAE;CACpB,CAAC;AAEK,MAAMC,cAAc,GAAGJ,6DAAW,CAAC;IACxCK,IAAI,EAAEJ,6FAAoB;IAC1BC,YAAY;IACZK,QAAQ,EAAE;QACRC,iBAAiB,EAAE,CAACC,KAAoB,EAAEC,MAA6B,GAAK;YAC1E,IAAID,KAAK,CAACN,eAAe,CAACQ,QAAQ,CAACD,MAAM,CAACE,OAAO,CAAC,EAAE;gBAClD,OAAOH,KAAK,CAAC;YACf,CAAC;YACD,OAAO;gBACL,GAAGA,KAAK;gBACRN,eAAe,EAAE;uBAAIM,KAAK,CAACN,eAAe;oBAAEO,MAAM,CAACE,OAAO;iBAAC;aAC5D,CAAC;QACJ,CAAC;QACDC,oBAAoB,EAAE,CAACJ,KAAoB,GAAM;gBAC/C,GAAGA,KAAK;gBACRN,eAAe,EAAE,EAAE;aACpB;KACF;CACF,CAAC,CAAC;AAEI,MAAMW,qBAAqB,GAAG,CAACL,KAAgB,GAAKA,KAAK,CAACM,SAAS,CAACZ,eAAe,CAAC;AACpF,MAAM,EAAEK,iBAAiB,GAAEK,oBAAoB,GAAE,GAAGT,cAAc,CAACY,OAAO,CAAC;AAClF,iEAAeZ,cAAc,CAACa,OAAO,EAAC;;;;;;;;;;;ACnCtC,8EAA8E;AAC9E,MAAMC,QAAQ,GAAG,CAAC,CAChB,OACe,IACfC,CAA6B;AAG/B,iEAAeD,QAAQ,EAAC","sources":["webpack://quran.com/./src/redux/slices/QuranReader/font-faces.ts","webpack://quran.com/./src/utils/isClient.ts"],"sourcesContent":["import { createSlice, PayloadAction } from '@reduxjs/toolkit';\n\nimport { RootState } from '@/redux/RootState';\nimport SliceName from '@/redux/types/SliceName';\n\ninterface FontFaceState {\n loadedFontFaces: string[];\n}\n\nexport const initialState: FontFaceState = {\n loadedFontFaces: [],\n};\n\nexport const fontFacesSlice = createSlice({\n name: SliceName.FONT_FACES,\n initialState,\n reducers: {\n addLoadedFontFace: (state: FontFaceState, action: PayloadAction<string>) => {\n if (state.loadedFontFaces.includes(action.payload)) {\n return state;\n }\n return {\n ...state,\n loadedFontFaces: [...state.loadedFontFaces, action.payload],\n };\n },\n resetLoadedFontFaces: (state: FontFaceState) => ({\n ...state,\n loadedFontFaces: [],\n }),\n },\n});\n\nexport const selectLoadedFontFaces = (state: RootState) => state.fontFaces.loadedFontFaces;\nexport const { addLoadedFontFace, resetLoadedFontFaces } = fontFacesSlice.actions;\nexport default fontFacesSlice.reducer;\n","// A utility to check if the code is running on the client (vs. nextjs server)\nconst isClient = !!(\n typeof window !== 'undefined' &&\n window.document &&\n window.document.createElement\n);\n\nexport default isClient;\n"],"names":["createSlice","SliceName","initialState","loadedFontFaces","fontFacesSlice","name","FONT_FACES","reducers","addLoadedFontFace","state","action","includes","payload","resetLoadedFontFaces","selectLoadedFontFaces","fontFaces","actions","reducer","isClient","window","document","createElement"],"sourceRoot":""}