46570.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. "use strict";
  2. exports.id = 46570;
  3. exports.ids = [46570];
  4. exports.modules = {
  5. /***/ 25742:
  6. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  7. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  8. /* harmony export */ "$Z": () => (/* binding */ selectLoadedFontFaces),
  9. /* harmony export */ "ZP": () => (__WEBPACK_DEFAULT_EXPORT__),
  10. /* harmony export */ "wC": () => (/* binding */ addLoadedFontFace)
  11. /* harmony export */ });
  12. /* unused harmony exports initialState, fontFacesSlice, resetLoadedFontFaces */
  13. /* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75184);
  14. /* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__);
  15. /* harmony import */ var _redux_types_SliceName__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61243);
  16. const initialState = {
  17. loadedFontFaces: []
  18. };
  19. const fontFacesSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createSlice)({
  20. name: _redux_types_SliceName__WEBPACK_IMPORTED_MODULE_1__/* ["default"].FONT_FACES */ .Z.FONT_FACES,
  21. initialState,
  22. reducers: {
  23. addLoadedFontFace: (state, action)=>{
  24. if (state.loadedFontFaces.includes(action.payload)) {
  25. return state;
  26. }
  27. return {
  28. ...state,
  29. loadedFontFaces: [
  30. ...state.loadedFontFaces,
  31. action.payload
  32. ]
  33. };
  34. },
  35. resetLoadedFontFaces: (state)=>({
  36. ...state,
  37. loadedFontFaces: []
  38. })
  39. }
  40. });
  41. const selectLoadedFontFaces = (state)=>state.fontFaces.loadedFontFaces;
  42. const { addLoadedFontFace , resetLoadedFontFaces } = fontFacesSlice.actions;
  43. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (fontFacesSlice.reducer);
  44. /***/ }),
  45. /***/ 7522:
  46. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  47. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  48. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  49. /* harmony export */ });
  50. // A utility to check if the code is running on the client (vs. nextjs server)
  51. const isClient = !!( false && 0);
  52. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isClient);
  53. /***/ })
  54. };
  55. ;
  56. //# sourceMappingURL=46570.js.map