diff --git a/components/app/app.d.ts b/components/app/app.d.ts deleted file mode 100644 index b2af4a3..0000000 --- a/components/app/app.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export default function App(): import("react/jsx-runtime").JSX.Element; -//# sourceMappingURL=app.d.ts.map \ No newline at end of file diff --git a/components/app/app.d.ts.map b/components/app/app.d.ts.map deleted file mode 100644 index 58ea87f..0000000 --- a/components/app/app.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/components/app/app.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,GAAG,4CAoC1B"} \ No newline at end of file diff --git a/components/footer/footer.d.ts b/components/footer/footer.d.ts deleted file mode 100644 index 13443bf..0000000 --- a/components/footer/footer.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export default function Footer(): import("react/jsx-runtime").JSX.Element; -//# sourceMappingURL=footer.d.ts.map \ No newline at end of file diff --git a/components/footer/footer.d.ts.map b/components/footer/footer.d.ts.map deleted file mode 100644 index 636a6af..0000000 --- a/components/footer/footer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../../src/components/footer/footer.tsx"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,UAAU,MAAM,4CAyC7B"} \ No newline at end of file diff --git a/components/header/header.d.ts b/components/header/header.d.ts deleted file mode 100644 index 707daa4..0000000 --- a/components/header/header.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export default function Header(): import("react/jsx-runtime").JSX.Element; -//# sourceMappingURL=header.d.ts.map \ No newline at end of file diff --git a/components/header/header.d.ts.map b/components/header/header.d.ts.map deleted file mode 100644 index ccd3b3d..0000000 --- a/components/header/header.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/components/header/header.tsx"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,MAAM,4CA8C7B"} \ No newline at end of file diff --git a/custom.d.d.ts b/custom.d.d.ts deleted file mode 100644 index b68aa33..0000000 --- a/custom.d.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -declare module '*.module.css' { - const classes: Record; - export default classes; -} -declare module '*.module.scss' { - const classes: Record; - export default classes; -} -declare module '*.module.sass' { - const classes: Record; - export default classes; -} -declare module '*.svg' { - import * as React from 'react'; - export const ReactComponent: React.FunctionComponent>; - const src: string; - export default src; -} -declare module '*.png' { - const content: unknown; - export default content; -} -declare module '*.jpg' { - const content: unknown; - export default content; -} -declare module '*.json' { - const content: unknown; - export default content; -} -//# sourceMappingURL=custom.d.d.ts.map \ No newline at end of file diff --git a/custom.d.d.ts.map b/custom.d.d.ts.map deleted file mode 100644 index 178d9a9..0000000 --- a/custom.d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"custom.d.d.ts","sourceRoot":"","sources":["../src/custom.d.tsx"],"names":[],"mappings":"AAAA,OAAO,QAAQ,cAAc,CAAC;IAC7B,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAErC,eAAe,OAAO,CAAA;CACtB;AAED,OAAO,QAAQ,eAAe,CAAC;IAC9B,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAErC,eAAe,OAAO,CAAA;CACtB;AAED,OAAO,QAAQ,eAAe,CAAC;IAC9B,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAErC,eAAe,OAAO,CAAA;CACtB;AAED,OAAO,QAAQ,OAAO,CAAC;IACtB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;IAE9B,MAAM,CAAC,MAAM,cAAc,EAAE,KAAK,CAAC,iBAAiB,CACnD,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAC7B,CAAA;IACD,MAAM,GAAG,EAAE,MAAM,CAAA;IAEjB,eAAe,GAAG,CAAA;CAClB;AAED,OAAO,QAAQ,OAAO,CAAC;IACtB,MAAM,OAAO,EAAE,OAAO,CAAA;IAEtB,eAAe,OAAO,CAAA;CACtB;AAED,OAAO,QAAQ,OAAO,CAAC;IACtB,MAAM,OAAO,EAAE,OAAO,CAAA;IAEtB,eAAe,OAAO,CAAA;CACtB;AAED,OAAO,QAAQ,QAAQ,CAAC;IACvB,MAAM,OAAO,EAAE,OAAO,CAAA;IAEtB,eAAe,OAAO,CAAA;CACtB"} \ No newline at end of file diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index a6748f9..0000000 --- a/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import './assets/styles/reset.scss'; -import './assets/styles/globals.scss'; -import './assets/styles/index.scss'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/index.d.ts.map b/index.d.ts.map deleted file mode 100644 index 59b20b2..0000000 --- a/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,8BAA8B,CAAA;AACrC,OAAO,4BAA4B,CAAA"} \ No newline at end of file diff --git a/index.html b/index.html index 770933c..cf9d7f7 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Document - +
diff --git a/pages/main-page/main-page.d.ts b/pages/main-page/main-page.d.ts deleted file mode 100644 index 1195534..0000000 --- a/pages/main-page/main-page.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export default function MainPage(): import("react/jsx-runtime").JSX.Element; -//# sourceMappingURL=main-page.d.ts.map \ No newline at end of file diff --git a/pages/main-page/main-page.d.ts.map b/pages/main-page/main-page.d.ts.map deleted file mode 100644 index 41c4ab8..0000000 --- a/pages/main-page/main-page.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"main-page.d.ts","sourceRoot":"","sources":["../../../src/pages/main-page/main-page.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,QAAQ,4CAoC/B"} \ No newline at end of file diff --git a/pages/page-2/second-page.d.ts b/pages/page-2/second-page.d.ts deleted file mode 100644 index 55dee5a..0000000 --- a/pages/page-2/second-page.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export default function SecondPage(): import("react/jsx-runtime").JSX.Element; -//# sourceMappingURL=second-page.d.ts.map \ No newline at end of file diff --git a/pages/page-2/second-page.d.ts.map b/pages/page-2/second-page.d.ts.map deleted file mode 100644 index 42a19eb..0000000 --- a/pages/page-2/second-page.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"second-page.d.ts","sourceRoot":"","sources":["../../../src/pages/page-2/second-page.tsx"],"names":[],"mappings":"AAYA,MAAM,CAAC,OAAO,UAAU,UAAU,4CA8EjC"} \ No newline at end of file diff --git a/services/slices/counter-slice.d.ts b/services/slices/counter-slice.d.ts deleted file mode 100644 index 5a57134..0000000 --- a/services/slices/counter-slice.d.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { PayloadAction } from '@reduxjs/toolkit'; -import { ICounter, ICounters } from '../../utils/interfaces/counter-interface'; -export declare const fetсhGetCounters: import("@reduxjs/toolkit").AsyncThunk; - extra?: unknown; - rejectValue?: unknown; - serializedErrorType?: unknown; - pendingMeta?: unknown; - fulfilledMeta?: unknown; - rejectedMeta?: unknown; -}>; -export declare const fetсhGetCounter: import("@reduxjs/toolkit").AsyncThunk; - extra?: unknown; - rejectValue?: unknown; - serializedErrorType?: unknown; - pendingMeta?: unknown; - fulfilledMeta?: unknown; - rejectedMeta?: unknown; -}>; -export declare const fetсhSetCount: import("@reduxjs/toolkit").AsyncThunk; - extra?: unknown; - rejectValue?: unknown; - serializedErrorType?: unknown; - pendingMeta?: unknown; - fulfilledMeta?: unknown; - rejectedMeta?: unknown; -}>; -export declare const fetсhAddNewCounter: import("@reduxjs/toolkit").AsyncThunk; - extra?: unknown; - rejectValue?: unknown; - serializedErrorType?: unknown; - pendingMeta?: unknown; - fulfilledMeta?: unknown; - rejectedMeta?: unknown; -}>; -export declare const fetсhDeleteCounter: import("@reduxjs/toolkit").AsyncThunk; - extra?: unknown; - rejectValue?: unknown; - serializedErrorType?: unknown; - pendingMeta?: unknown; - fulfilledMeta?: unknown; - rejectedMeta?: unknown; -}>; -export declare const counterSlice: import("@reduxjs/toolkit").Slice) => void; - decrementCountAction: (state: import("immer").WritableDraft) => void; - setCountAction: (state: import("immer").WritableDraft, action: PayloadAction) => void; -}, "counters", "counters", { - allApiCountersSelector: (state: ICounters) => ICounter[]; - apiCounterSelector: (state: ICounters) => ICounter | null; - localCounterSelector: (state: ICounters) => number; - isLoadingSelector: (state: ICounters) => boolean; - isChangedSelector: (state: ICounters) => boolean; - errorSelector: (state: ICounters) => string | undefined; -}>; -export declare const counterActions: import("@reduxjs/toolkit").CaseReducerActions<{ - incrementCountAction: (state: import("immer").WritableDraft) => void; - decrementCountAction: (state: import("immer").WritableDraft) => void; - setCountAction: (state: import("immer").WritableDraft, action: PayloadAction) => void; -}, "counters">; -export declare const counterSelectors: { - allApiCountersSelector: import("reselect").Selector<{ - counters: ICounters; - }, ICounter[], []> & { - unwrapped: (state: ICounters) => ICounter[]; - }; - apiCounterSelector: import("reselect").Selector<{ - counters: ICounters; - }, ICounter | null, []> & { - unwrapped: (state: ICounters) => ICounter | null; - }; - localCounterSelector: import("reselect").Selector<{ - counters: ICounters; - }, number, []> & { - unwrapped: (state: ICounters) => number; - }; - isLoadingSelector: import("reselect").Selector<{ - counters: ICounters; - }, boolean, []> & { - unwrapped: (state: ICounters) => boolean; - }; - isChangedSelector: import("reselect").Selector<{ - counters: ICounters; - }, boolean, []> & { - unwrapped: (state: ICounters) => boolean; - }; - errorSelector: import("reselect").Selector<{ - counters: ICounters; - }, string | undefined, []> & { - unwrapped: (state: ICounters) => string | undefined; - }; -}; -//# sourceMappingURL=counter-slice.d.ts.map \ No newline at end of file diff --git a/services/slices/counter-slice.d.ts.map b/services/slices/counter-slice.d.ts.map deleted file mode 100644 index 7b53cb8..0000000 --- a/services/slices/counter-slice.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"counter-slice.d.ts","sourceRoot":"","sources":["../../../src/services/slices/counter-slice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiC,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAE/E,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAA;AAO9E,eAAO,MAAM,gBAAgB;;;;;;;;;EAO5B,CAAA;AAGD,eAAO,MAAM,eAAe;;;;;;;;;EAS3B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;;;;;;EAgBzB,CAAA;AAGD,eAAO,MAAM,kBAAkB;;;;;;;;;EAgB9B,CAAA;AAGD,eAAO,MAAM,kBAAkB;;;;;;;;;EAe9B,CAAA;AAeD,eAAO,MAAM,YAAY;;;8EAcS,aAAa,CAAC,MAAM,CAAC;;;;;;;;EA0ErD,CAAA;AAEF,eAAO,MAAM,cAAc;;;8EA5EO,aAAa,CAAC,MAAM,CAAC;cA4EL,CAAA;AAClD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyB,CAAA"} \ No newline at end of file diff --git a/services/store.d.ts b/services/store.d.ts deleted file mode 100644 index 7514c3b..0000000 --- a/services/store.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { TypedUseSelectorHook } from 'react-redux'; -export declare const store: import("@reduxjs/toolkit").EnhancedStore<{ - counters: import("../utils/interfaces/counter-interface").ICounters; -}, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{ - dispatch: import("redux-thunk").ThunkDispatch<{ - counters: import("../utils/interfaces/counter-interface").ICounters; - }, undefined, import("redux").UnknownAction>; -}>, import("redux").StoreEnhancer]>>; -export type RootState = ReturnType; -export type AppDispatch = typeof store.dispatch; -export declare const useAppDispatch: () => AppDispatch; -export declare const useAppSelector: TypedUseSelectorHook; -//# sourceMappingURL=store.d.ts.map \ No newline at end of file diff --git a/services/store.d.ts.map b/services/store.d.ts.map deleted file mode 100644 index 65198ae..0000000 --- a/services/store.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/services/store.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAyCvD,eAAO,MAAM,KAAK;;;;;;oCAIhB,CAAA;AAQF,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAA;AACzD,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC,QAAQ,CAAA;AAE/C,eAAO,MAAM,cAAc,EAAE,MAAM,WAA0B,CAAA;AAC7D,eAAO,MAAM,cAAc,EAAE,oBAAoB,CAAC,SAAS,CAAgB,CAAA"} \ No newline at end of file diff --git a/static/scripts/main.2bfcc9578d2ec31a0534.js b/static/scripts/main.66e5c7a12529c81e843e.js similarity index 99% rename from static/scripts/main.2bfcc9578d2ec31a0534.js rename to static/scripts/main.66e5c7a12529c81e843e.js index b9a2213..6559b25 100644 --- a/static/scripts/main.2bfcc9578d2ec31a0534.js +++ b/static/scripts/main.66e5c7a12529c81e843e.js @@ -396,7 +396,7 @@ eval("//\n\nmodule.exports = function shallowEqual(objA, objB, compare, compareC /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ App)\n/* harmony export */ });\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-router */ \"./node_modules/react-router/dist/development/chunk-WFMEQ3WA.mjs\");\n/* harmony import */ var react_helmet_async__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-helmet-async */ \"./node_modules/react-helmet-async/lib/index.esm.js\");\n/* harmony import */ var _header_header__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../header/header */ \"./src/components/header/header.tsx\");\n/* harmony import */ var _footer_footer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../footer/footer */ \"./src/components/footer/footer.tsx\");\n/* harmony import */ var _services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/slices/counter-slice */ \"./src/services/slices/counter-slice.ts\");\n\n\n\n\n\n\n\nfunction App() {\n (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {\n (0,_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__[\"fetсhGetCounters\"])();\n }, []);\n /* Разметка */\n return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_helmet_async__WEBPACK_IMPORTED_MODULE_5__.Helmet, { prioritizeSeoTags: true, children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"title\", { children: \"Webpack + React-SPA + TS\" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"meta\", { name: 'description', content: '\\u041E\\u043F\\u0438\\u0441\\u0430\\u043D\\u0438\\u0435 \\u0441\\u0442\\u0440\\u0430\\u043D\\u0438\\u0446\\u044B' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"meta\", { name: 'keywords', content: '[\\u043A\\u043B\\u044E\\u0447\\u0435\\u0432\\u044B\\u0435, \\u0441\\u043B\\u043E\\u0432\\u0430, \\u0434\\u043B\\u044F, \\u0441\\u0442\\u0440\\u0430\\u043D\\u0438\\u0446\\u044B, \\u0447\\u0435\\u0440\\u0435\\u0437, \\u0437\\u0430\\u043F\\u044F\\u0442\\u0443\\u044E]' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"meta\", { name: 'author', content: '\\u0410\\u0432\\u0442\\u043E\\u0440 \\u0441\\u0442\\u0440\\u0430\\u043D\\u0438\\u0446\\u044B' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"link\", { rel: 'canonical', href: '[https://example.com]' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"meta\", { property: 'og:title', content: '\\u0428\\u0430\\u0431\\u043B\\u043E\\u043D Webpack-\\u0441\\u0431\\u043E\\u0440\\u043A\\u0438 React-SPA-\\u043F\\u0440\\u0438\\u043B\\u043E\\u0436\\u0435\\u043D\\u0438\\u044F \\u043D\\u0430 TypeScript' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"meta\", { property: 'og:description', content: '[\\u041E\\u043F\\u0438\\u0441\\u0430\\u043D\\u0438\\u0435 \\u0434\\u043B\\u044F \\u0441\\u043E\\u0446\\u0438\\u0430\\u043B\\u044C\\u043D\\u044B\\u0445 \\u0441\\u0435\\u0442\\u0435\\u0439]' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"meta\", { property: 'og:image', content: '[URL \\u0438\\u0437\\u043E\\u0431\\u0440\\u0430\\u0436\\u0435\\u043D\\u0438\\u044F \\u0434\\u043B\\u044F \\u0441\\u043E\\u0446\\u0438\\u0430\\u043B\\u044C\\u043D\\u044B\\u0445 \\u0441\\u0435\\u0442\\u0435\\u0439]' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"meta\", { property: 'og:url', content: '[https://example.com]' })] }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_header_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {}), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_6__.Outlet, {}), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_footer_footer__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {})] }));\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29tcG9uZW50cy9hcHAvYXBwLnRzeCIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQWlDO0FBQ0k7QUFDTTtBQUVOO0FBQ0E7QUFDaUM7QUFFdkQsU0FBUyxHQUFHO0lBQzFCLGdEQUFTLENBQUMsR0FBRyxFQUFFO1FBQ2QsbUZBQWdCLEVBQUU7SUFDbkIsQ0FBQyxFQUFFLEVBQUUsQ0FBQztJQUVOLGNBQWM7SUFDZCxPQUFPLENBQ04sOEhBQ0Msd0RBQUMsc0RBQU0sSUFBQyxpQkFBaUIsbUJBQ3hCLHlHQUF1QyxFQUN2QyxpRUFBTSxJQUFJLEVBQUMsYUFBYSxFQUFDLE9BQU8sRUFBQyxtR0FBbUIsR0FBRyxFQUN2RCxpRUFDQyxJQUFJLEVBQUMsVUFBVSxFQUNmLE9BQU8sRUFBQyxzT0FBa0QsR0FDekQsRUFDRixpRUFBTSxJQUFJLEVBQUMsUUFBUSxFQUFDLE9BQU8sRUFBQyxpRkFBZ0IsR0FBRyxFQUMvQyxpRUFBTSxHQUFHLEVBQUMsV0FBVyxFQUFDLElBQUksRUFBQyx1QkFBdUIsR0FBRyxFQUNyRCxpRUFDQyxRQUFRLEVBQUMsVUFBVSxFQUNuQixPQUFPLE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x0XHRcdFx0XHRjb250ZW50PSdbVVJMINC40LfQvtCx0YDQsNC20LXQvdC40Y8g0LTQu9GPINGB0L7RhtC40LDQu9GM0L3Ri9GFINGB0LXRgtC10LldJ1xuXHRcdFx0XHQvPlxuXHRcdFx0XHQ8bWV0YSBwcm9wZXJ0eT0nb2c6dXJsJyBjb250ZW50PSdbaHR0cHM6Ly9leGFtcGxlLmNvbV0nIC8+XG5cdFx0XHQ8L0hlbG1ldD5cblx0XHRcdDxIZWFkZXIgLz5cblx0XHRcdDxPdXRsZXQgLz5cblx0XHRcdDxGb290ZXIgLz5cblx0XHQ8Lz5cblx0KVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/components/app/app.tsx\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ App)\n/* harmony export */ });\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-router */ \"./node_modules/react-router/dist/development/chunk-WFMEQ3WA.mjs\");\n/* harmony import */ var react_helmet_async__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-helmet-async */ \"./node_modules/react-helmet-async/lib/index.esm.js\");\n/* harmony import */ var _header_header__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../header/header */ \"./src/components/header/header.tsx\");\n/* harmony import */ var _footer_footer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../footer/footer */ \"./src/components/footer/footer.tsx\");\n/* harmony import */ var _services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/slices/counter-slice */ \"./src/services/slices/counter-slice.ts\");\n\n\n\n\n\n\n\nfunction App() {\n (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {\n (0,_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__[\"fetсhGetCounters\"])();\n }, []);\n /* Разметка */\n return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_helmet_async__WEBPACK_IMPORTED_MODULE_5__.Helmet, { prioritizeSeoTags: true, children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"title\", { children: \"Webpack + React-SPA + TS\" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"meta\", { name: 'description', content: '\\u041E\\u043F\\u0438\\u0441\\u0430\\u043D\\u0438\\u0435 \\u0441\\u0442\\u0440\\u0430\\u043D\\u0438\\u0446\\u044B' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"meta\", { name: 'keywords', content: '[\\u043A\\u043B\\u044E\\u0447\\u0435\\u0432\\u044B\\u0435, \\u0441\\u043B\\u043E\\u0432\\u0430, \\u0434\\u043B\\u044F, \\u0441\\u0442\\u0440\\u0430\\u043D\\u0438\\u0446\\u044B, \\u0447\\u0435\\u0440\\u0435\\u0437, \\u0437\\u0430\\u043F\\u044F\\u0442\\u0443\\u044E]' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"meta\", { name: 'author', content: '\\u0410\\u0432\\u0442\\u043E\\u0440 \\u0441\\u0442\\u0440\\u0430\\u043D\\u0438\\u0446\\u044B' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"link\", { rel: 'canonical', href: '[https://example.com]' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"meta\", { property: 'og:title', content: '\\u0428\\u0430\\u0431\\u043B\\u043E\\u043D Webpack-\\u0441\\u0431\\u043E\\u0440\\u043A\\u0438 React-SPA-\\u043F\\u0440\\u0438\\u043B\\u043E\\u0436\\u0435\\u043D\\u0438\\u044F \\u043D\\u0430 TypeScript' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"meta\", { property: 'og:description', content: '[\\u041E\\u043F\\u0438\\u0441\\u0430\\u043D\\u0438\\u0435 \\u0434\\u043B\\u044F \\u0441\\u043E\\u0446\\u0438\\u0430\\u043B\\u044C\\u043D\\u044B\\u0445 \\u0441\\u0435\\u0442\\u0435\\u0439]' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"meta\", { property: 'og:image', content: '[URL \\u0438\\u0437\\u043E\\u0431\\u0440\\u0430\\u0436\\u0435\\u043D\\u0438\\u044F \\u0434\\u043B\\u044F \\u0441\\u043E\\u0446\\u0438\\u0430\\u043B\\u044C\\u043D\\u044B\\u0445 \\u0441\\u0435\\u0442\\u0435\\u0439]' }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"meta\", { property: 'og:url', content: '[https://example.com]' })] }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_header_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {}), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_6__.Outlet, {}), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_footer_footer__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {})] }));\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozL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XFx1MDQ0NlxcdTA0MzhcXHUwNDMwXFx1MDQzQlxcdTA0NENcXHUwNDNEXFx1MDQ0QlxcdTA0NDUgXFx1MDQ0MVxcdTA0MzVcXHUwNDQyXFx1MDQzNVxcdTA0MzldJyB9KSwgX2pzeChcIm1ldGFcIiwgeyBwcm9wZXJ0eTogJ29nOmltYWdlJywgY29udGVudDogJ1tVUkwgXFx1MDQzOFxcdTA0MzdcXHUwNDNFXFx1MDQzMVxcdTA0NDBcXHUwNDMwXFx1MDQzNlxcdTA0MzVcXHUwNDNEXFx1MDQzOFxcdTA0NEYgXFx1MDQzNFxcdTA0M0JcXHUwNDRGIFxcdTA0NDFcXHUwNDNFXFx1MDQ0NlxcdTA0MzhcXHUwNDMwXFx1MDQzQlxcdTA0NENcXHUwNDNEXFx1MDQ0QlxcdTA0NDUgXFx1MDQ0MVxcdTA0MzVcXHUwNDQyXFx1MDQzNVxcdTA0MzldJyB9KSwgX2pzeChcIm1ldGFcIiwgeyBwcm9wZXJ0eTogJ29nOnVybCcsIGNvbnRlbnQ6ICdbaHR0cHM6Ly9leGFtcGxlLmNvbV0nIH0pXSB9KSwgX2pzeChIZWFkZXIsIHt9KSwgX2pzeChPdXRsZXQsIHt9KSwgX2pzeChGb290ZXIsIHt9KV0gfSkpO1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/components/app/app.tsx\n"); /***/ }), @@ -407,7 +407,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Footer)\n/* harmony export */ });\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/* harmony import */ var _footer_module_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./footer.module.scss */ \"./src/components/footer/footer.module.scss\");\n/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-router */ \"./node_modules/react-router/dist/development/chunk-WFMEQ3WA.mjs\");\n/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! clsx */ \"./node_modules/clsx/dist/clsx.mjs\");\n/* harmony import */ var _assets_images_logo_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../assets/images/logo.svg */ \"./src/assets/images/logo.svg\");\n\n\n\n\n\nfunction Footer() {\n /* Разметка */\n return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"footer\", { className: 'footer', children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"nav\", { className: `navigation container ${_footer_module_scss__WEBPACK_IMPORTED_MODULE_1__[\"default\"].navigation}`, children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_4__.Link, { to: '/', children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets_images_logo_svg__WEBPACK_IMPORTED_MODULE_3__.ReactComponent, { className: 'logo' }) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"ul\", { className: `navigation__menu ${_footer_module_scss__WEBPACK_IMPORTED_MODULE_1__[\"default\"].navigationMenu}`, children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"li\", { className: 'navigation__menu-item', children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_4__.NavLink, { to: '/', className: ({ isActive }) => (0,clsx__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('link', 'navigation__link', isActive ? 'navigation__link_active' : ''), children: \"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\" }) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"li\", { className: 'navigation__menu-item', children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_4__.NavLink, { to: '/page-2', className: ({ isActive }) => (0,clsx__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('link', 'navigation__link', isActive ? 'navigation__link_active' : ''), children: \"\\u0421\\u0442\\u0440\\u0430\\u043D\\u0438\\u0446\\u0430 2\" }) })] })] }) }));\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29tcG9uZW50cy9mb290ZXIvZm9vdGVyLnRzeCIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQXlDO0FBRUc7QUFDckI7QUFFOEM7QUFFdEQsU0FBUyxNQUFNO0lBQzdCLGNBQWM7SUFDZCxPQUFPLENBQ04sbUVBQVEsU0FBUyxFQUFFLFFBQVEsWUFDMUIsaUVBQUssU0FBUyxFQUFFLHdCQUF3QiwyREFBTSxDQUFDLFVBQVUsRUFBRSxhQUMxRCx1REFBQyw4Q0FBSSxJQUFDLEVBQUUsRUFBRSxHQUFHLFlBQ1osdURBQUMsbUVBQUksSUFBQyxTQUFTLEVBQUMsTUFBTSxHQUFHLEdBQ25CLEVBQ1AsZ0VBQUksU0FBUyxFQUFFLG9CQUFvQiwyREFBTSxDQUFDLGNBQWMsRUFBRSxhQUN6RCwrREFBSSxTQUFTLEVBQUUsdUJBQXVCLFlBQ3JDLHVEQUFDLGlEQUFPLElBQ1AsRUFBRSxFQUFFLEdBQUcsRUFDUCxTQUFTLEVBQUUsQ0FBQyxFQUFFLFFBQVEsRUFBRSxFQUFFLEVBQUUsQ0FDM0IsZ0RBQUksQ0FDSCxNQUFNLEVBQ04sa0JBQWtCLEVBQ2x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cdFx0XHRcdFx0XHRcdFx0XHRpc0FjdGl2ZSA/ICduYXZpZ2F0aW9uX19saW5rX2FjdGl2ZScgOiAnJ1xuXHRcdFx0XHRcdFx0XHRcdClcblx0XHRcdFx0XHRcdFx0fVxuXHRcdFx0XHRcdFx0PlxuXHRcdFx0XHRcdFx0XHTQodGC0YDQsNC90LjRhtCwIDJcblx0XHRcdFx0XHRcdDwvTmF2TGluaz5cblx0XHRcdFx0XHQ8L2xpPlxuXHRcdFx0XHQ8L3VsPlxuXHRcdFx0PC9uYXY+XG5cdFx0PC9mb290ZXI+XG5cdClcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/components/footer/footer.tsx\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Footer)\n/* harmony export */ });\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/* harmony import */ var _footer_module_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./footer.module.scss */ \"./src/components/footer/footer.module.scss\");\n/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-router */ \"./node_modules/react-router/dist/development/chunk-WFMEQ3WA.mjs\");\n/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! clsx */ \"./node_modules/clsx/dist/clsx.mjs\");\n/* harmony import */ var _assets_images_logo_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../assets/images/logo.svg */ \"./src/assets/images/logo.svg\");\n\n\n\n\n\nfunction Footer() {\n /* Разметка */\n return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"footer\", { className: 'footer', children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"nav\", { className: `navigation container ${_footer_module_scss__WEBPACK_IMPORTED_MODULE_1__[\"default\"].navigation}`, children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_4__.Link, { to: '/', children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets_images_logo_svg__WEBPACK_IMPORTED_MODULE_3__.ReactComponent, { className: 'logo' }) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"ul\", { className: `navigation__menu ${_footer_module_scss__WEBPACK_IMPORTED_MODULE_1__[\"default\"].navigationMenu}`, children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"li\", { className: 'navigation__menu-item', children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_4__.NavLink, { to: '/', className: ({ isActive }) => (0,clsx__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('link', 'navigation__link', isActive ? 'navigation__link_active' : ''), children: \"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\" }) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"li\", { className: 'navigation__menu-item', children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_4__.NavLink, { to: '/page-2', className: ({ isActive }) => (0,clsx__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('link', 'navigation__link', isActive ? 'navigation__link_active' : ''), children: \"\\u0421\\u0442\\u0440\\u0430\\u043D\\u0438\\u0446\\u0430 2\" }) })] })] }) }));\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29tcG9uZW50cy9mb290ZXIvZm9vdGVyLnRzeCIsIm1hcHBpbmdzIjoiO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HUwNDNEXFx1MDQzOFxcdTA0NDZcXHUwNDMwIDJcIiB9KSB9KV0gfSldIH0pIH0pKTtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/components/footer/footer.tsx\n"); /***/ }), @@ -418,7 +418,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Header)\n/* harmony export */ });\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-router */ \"./node_modules/react-router/dist/development/chunk-WFMEQ3WA.mjs\");\n/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! clsx */ \"./node_modules/clsx/dist/clsx.mjs\");\n/* harmony import */ var _assets_images_logo_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../assets/images/logo.svg */ \"./src/assets/images/logo.svg\");\n\n\n\n\nfunction Header() {\n /* Разметка */\n return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"header\", { className: 'header', children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"nav\", { className: 'navigation container', children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_router__WEBPACK_IMPORTED_MODULE_3__.Link, { to: '/', className: 'navigation__logo', children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets_images_logo_svg__WEBPACK_IMPORTED_MODULE_2__.ReactComponent, { className: 'logo' }), \"Webpack + React-SPA + TS\"] }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"ul\", { className: 'navigation__menu', children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"li\", { className: 'navigation__menu-item', children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_3__.NavLink, { to: '/', className: ({ isActive }) => (0,clsx__WEBPACK_IMPORTED_MODULE_1__[\"default\"])('link', 'navigation__link', isActive ? 'navigation__link_active' : ''), children: \"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\" }) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"li\", { className: 'navigation__menu-item', children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_3__.NavLink, { to: '/page-2', className: ({ isActive }) => (0,clsx__WEBPACK_IMPORTED_MODULE_1__[\"default\"])('link', 'navigation__link', isActive ? 'navigation__link_active' : ''), children: \"\\u0421\\u0442\\u0440\\u0430\\u043D\\u0438\\u0446\\u0430 2\" }) })] }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"div\", { className: `navigation__container`, children: [\"\\u0422\\u0435\\u043A\\u0441\\u0442\", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"button\", { className: 'button', children: \"\\u041A\\u043D\\u043E\\u043F\\u043A\\u0430\" })] })] }) }));\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29tcG9uZW50cy9oZWFkZXIvaGVhZGVyLnRzeCIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBNEM7QUFDckI7QUFFOEM7QUFFdEQsU0FBUyxNQUFNO0lBQzdCLGNBQWM7SUFDZCxPQUFPLENBQ04sbUVBQVEsU0FBUyxF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VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/components/header/header.tsx\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Header)\n/* harmony export */ });\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-router */ \"./node_modules/react-router/dist/development/chunk-WFMEQ3WA.mjs\");\n/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! clsx */ \"./node_modules/clsx/dist/clsx.mjs\");\n/* harmony import */ var _assets_images_logo_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../assets/images/logo.svg */ \"./src/assets/images/logo.svg\");\n\n\n\n\nfunction Header() {\n /* Разметка */\n return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"header\", { className: 'header', children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"nav\", { className: 'navigation container', children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_router__WEBPACK_IMPORTED_MODULE_3__.Link, { to: '/', className: 'navigation__logo', children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets_images_logo_svg__WEBPACK_IMPORTED_MODULE_2__.ReactComponent, { className: 'logo' }), \"Webpack + React-SPA + TS\"] }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"ul\", { className: 'navigation__menu', children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"li\", { className: 'navigation__menu-item', children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_3__.NavLink, { to: '/', className: ({ isActive }) => (0,clsx__WEBPACK_IMPORTED_MODULE_1__[\"default\"])('link', 'navigation__link', isActive ? 'navigation__link_active' : ''), children: \"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\" }) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"li\", { className: 'navigation__menu-item', children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_3__.NavLink, { to: '/page-2', className: ({ isActive }) => (0,clsx__WEBPACK_IMPORTED_MODULE_1__[\"default\"])('link', 'navigation__link', isActive ? 'navigation__link_active' : ''), children: \"\\u0421\\u0442\\u0440\\u0430\\u043D\\u0438\\u0446\\u0430 2\" }) })] }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"div\", { className: `navigation__container`, children: [\"\\u0422\\u0435\\u043A\\u0441\\u0442\", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"button\", { className: 'button', children: \"\\u041A\\u043D\\u043E\\u043F\\u043A\\u0430\" })] })] }) }));\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29tcG9uZW50cy9oZWFkZXIvaGVhZGVyLnRzeCIsIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUErRDtBQUNsQjtBQUNyQjtBQUM4QztBQUN2RDtBQUNmO0FBQ0EsWUFBWSxzREFBSSxhQUFhLCtCQUErQix1REFBSyxVQUFVLDhDQUE4Qyx1REFBSyxDQUFDLDhDQUFJLElBQUksbURBQW1ELHNEQUFJLENBQUMsbUVBQUksSUFBSSxtQkFBbUIsZ0NBQWdDLEdBQUcsdURBQUssU0FBUywwQ0FBMEMsc0RBQUksU0FBUyw4Q0FBOEMsc0RBQUksQ0FBQyxpREFBTyxJQUFJLHVCQUF1QixVQUFVLEtBQUssZ0RBQ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ldIH0pIH0pKTtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/components/header/header.tsx\n"); /***/ }), @@ -429,7 +429,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/* harmony import */ var _assets_styles_reset_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assets/styles/reset.scss */ \"./src/assets/styles/reset.scss\");\n/* harmony import */ var _assets_styles_globals_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./assets/styles/globals.scss */ \"./src/assets/styles/globals.scss\");\n/* harmony import */ var _assets_styles_index_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./assets/styles/index.scss */ \"./src/assets/styles/index.scss\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-dom/client */ \"./node_modules/react-dom/client.js\");\n/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-redux */ \"./node_modules/react-redux/dist/react-redux.mjs\");\n/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-router */ \"./node_modules/react-router/dist/development/chunk-WFMEQ3WA.mjs\");\n/* harmony import */ var react_helmet_async__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-helmet-async */ \"./node_modules/react-helmet-async/lib/index.esm.js\");\n/* harmony import */ var _services_store__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./services/store */ \"./src/services/store.ts\");\n/* harmony import */ var _components_app_app__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/app/app */ \"./src/components/app/app.tsx\");\n/* harmony import */ var _pages_main_page_main_page__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pages/main-page/main-page */ \"./src/pages/main-page/main-page.tsx\");\n/* harmony import */ var _pages_page_2_second_page__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./pages/page-2/second-page */ \"./src/pages/page-2/second-page.tsx\");\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst router = (0,react_router__WEBPACK_IMPORTED_MODULE_10__.createBrowserRouter)((0,react_router__WEBPACK_IMPORTED_MODULE_10__.createRoutesFromChildren)((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_router__WEBPACK_IMPORTED_MODULE_10__.Route, { path: '/', element: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_app_app__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {}), children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_10__.Route, { index: true, element: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_pages_main_page_main_page__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {}) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_10__.Route, { path: '/page-2', element: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_pages_page_2_second_page__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {}) })] })));\n(0,react_dom_client__WEBPACK_IMPORTED_MODULE_5__.createRoot)(document.querySelector('#root')).render((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react__WEBPACK_IMPORTED_MODULE_4__.StrictMode, { children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_redux__WEBPACK_IMPORTED_MODULE_11__.Provider, { store: _services_store__WEBPACK_IMPORTED_MODULE_6__.store, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_helmet_async__WEBPACK_IMPORTED_MODULE_12__.HelmetProvider, { children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_10__.RouterProvider, { router: router }) }) }) }));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaW5kZXgudHN4IiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBbUM7QUFDRTtBQUNGO0FBRUQ7QUFDVztBQUNQO0FBTWpCO0FBQzhCO0FBRVg7QUFFRjtBQUNZO0FBQ0M7QUFFbkQsTUFBTSxNQUFNLEdBQUcsa0VBQW1CLENBQ2pDLHVFQUF3QixDQUN2Qix3REFBQyxnREFBSyxJQUFDLElBQUksRUFBQyxHQUFHLEVBQUMsT0FBTyxFQUFFLHVEQUFDLDJEQUFHLEtBQUcsYUFDL0IsdURBQUMsZ0RBQUssSUFBQyxLQUFLLFFBQUMsT0FBTyxFQUFFLHVEQUFDLGtFQUFRLEtBQUcsR0FBSSxFQUN0Qyx1REFBQyxnREFBSyxJQUFDLElBQUksRUFBQyxTQUFTLEVBQUMsT0FBTyxFQUFFLHVEQUFDLGlFQUFVLEtBQUcsR0FBSSxJQUMxQyxDQUNSLENBQ0Q7QUFFRCw0REFBVSxDQUFDLFFBQVEsQ0FBQyxhQUFhLENBQUMsT0FBTyxDQUFtQixDQUFDLENBQUMsTUFBTSxDQUNuRSx1REFBQyw2Q0FBVSxjQUNWLHVEQUFDLGtEQUFR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Z2UnXG5cbmNvbnN0IHJvdXRlciA9IGNyZWF0ZUJyb3dzZXJSb3V0ZXIoXG5cdGNyZWF0ZVJvdXRlc0Zyb21FbGVtZW50cyhcblx0XHQ8Um91dGUgcGF0aD0nLycgZWxlbWVudD17PEFwcCAvPn0+XG5cdFx0XHQ8Um91dGUgaW5kZXggZWxlbWVudD17PE1haW5QYWdlIC8+fSAvPlxuXHRcdFx0PFJvdXRlIHBhdGg9Jy9wYWdlLTInIGVsZW1lbnQ9ezxTZWNvbmRQYWdlIC8+fSAvPlxuXHRcdDwvUm91dGU+XG5cdClcbilcblxuY3JlYXRlUm9vdChkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCcjcm9vdCcpIGFzIEhUTUxEaXZFbGVtZW50KS5yZW5kZXIoXG5cdDxTdHJpY3RNb2RlPlxuXHRcdDxQcm92aWRlciBzdG9yZT17c3RvcmV9PlxuXHRcdFx0PEhlbG1ldFByb3ZpZGVyPlxuXHRcdFx0XHQ8Um91dGVyUHJvdmlkZXIgcm91dGVyPXtyb3V0ZXJ9IC8+XG5cdFx0XHQ8L0hlbG1ldFByb3ZpZGVyPlxuXHRcdDwvUHJvdmlkZXI+XG5cdDwvU3RyaWN0TW9kZT5cbilcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/index.tsx\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/* harmony import */ var _assets_styles_reset_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assets/styles/reset.scss */ \"./src/assets/styles/reset.scss\");\n/* harmony import */ var _assets_styles_globals_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./assets/styles/globals.scss */ \"./src/assets/styles/globals.scss\");\n/* harmony import */ var _assets_styles_index_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./assets/styles/index.scss */ \"./src/assets/styles/index.scss\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-dom/client */ \"./node_modules/react-dom/client.js\");\n/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-redux */ \"./node_modules/react-redux/dist/react-redux.mjs\");\n/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-router */ \"./node_modules/react-router/dist/development/chunk-WFMEQ3WA.mjs\");\n/* harmony import */ var react_helmet_async__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-helmet-async */ \"./node_modules/react-helmet-async/lib/index.esm.js\");\n/* harmony import */ var _services_store__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./services/store */ \"./src/services/store.ts\");\n/* harmony import */ var _components_app_app__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/app/app */ \"./src/components/app/app.tsx\");\n/* harmony import */ var _pages_main_page_main_page__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pages/main-page/main-page */ \"./src/pages/main-page/main-page.tsx\");\n/* harmony import */ var _pages_page_2_second_page__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./pages/page-2/second-page */ \"./src/pages/page-2/second-page.tsx\");\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst router = (0,react_router__WEBPACK_IMPORTED_MODULE_10__.createHashRouter)((0,react_router__WEBPACK_IMPORTED_MODULE_10__.createRoutesFromChildren)((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_router__WEBPACK_IMPORTED_MODULE_10__.Route, { path: '/', element: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_app_app__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {}), children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_10__.Route, { index: true, element: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_pages_main_page_main_page__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {}) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_10__.Route, { path: '/page-2', element: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_pages_page_2_second_page__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {}) })] })));\n(0,react_dom_client__WEBPACK_IMPORTED_MODULE_5__.createRoot)(document.querySelector('#root')).render((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react__WEBPACK_IMPORTED_MODULE_4__.StrictMode, { children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_redux__WEBPACK_IMPORTED_MODULE_11__.Provider, { store: _services_store__WEBPACK_IMPORTED_MODULE_6__.store, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_helmet_async__WEBPACK_IMPORTED_MODULE_12__.HelmetProvider, { children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router__WEBPACK_IMPORTED_MODULE_10__.RouterProvider, { router: router }) }) }) }));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaW5kZXgudHN4IiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQUErRDtBQUMzQjtBQUNFO0FBQ0Y7QUFDRDtBQUNXO0FBQ1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SB9KSB9KSk7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/index.tsx\n"); /***/ }), @@ -440,7 +440,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var reac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MainPage)\n/* harmony export */ });\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/* harmony import */ var _main_page_module_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./main-page.module.scss */ \"./src/pages/main-page/main-page.module.scss\");\n/* harmony import */ var _services_store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/store */ \"./src/services/store.ts\");\n/* harmony import */ var _services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/slices/counter-slice */ \"./src/services/slices/counter-slice.ts\");\n\n\n\n\nfunction MainPage() {\n /* Стейты */\n const localCounter = (0,_services_store__WEBPACK_IMPORTED_MODULE_2__.useAppSelector)(_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_3__.counterSelectors.localCounterSelector);\n /* Хуки */\n const dispatch = (0,_services_store__WEBPACK_IMPORTED_MODULE_2__.useAppDispatch)();\n /* Константы */\n const handleIncrement = () => dispatch(_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_3__.counterActions.incrementCountAction());\n const handleDecrement = () => dispatch(_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_3__.counterActions.decrementCountAction());\n /* Разметка */\n return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"main\", { className: `main ${_main_page_module_scss__WEBPACK_IMPORTED_MODULE_1__[\"default\"].main}`, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"section\", { className: 'section', children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"h1\", { className: 'section__title', children: \"\\u0421\\u0447\\u0451\\u0442\\u0447\\u0438\\u043A\" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"div\", { className: 'counter', children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"button\", { onClick: handleDecrement, className: 'button counter__button', children: \"-\" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"p\", { className: 'counter__', children: localCounter }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"button\", { onClick: handleIncrement, className: 'button counter__button', children: \"+\" })] })] }) }));\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcGFnZXMvbWFpbi1wYWdlL21haW4tcGFnZS50c3giLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQTRDO0FBRXlCO0FBSXpCO0FBRTdCLFNBQVMsUUFBUTtJQUMvQixZQUFZO0lBQ1osTUFBTSxZQUFZLEdBQUcsK0RBQWMsQ0FDbEMsNEVBQWdCLENBQUMsb0JBQW9CLENBQ3JDO0lBRUQsVUFBVTtJQUNWLE1BQU0sUUFBUSxHQUFHLCtEQUFjLEVBQUU7SUFFakMsZUFBZTtJQUNmLE1BQU0sZUFBZSxHQUFHLEdBQUcsRUFBRSxDQUFDLFFBQVEsQ0FBQywwRUFBYyxDQUFDLG9CQUFvQixFQUFFLENBQUM7SUFDN0UsTUFBTSxlQUFlLEdBQUcsR0FBRyxFQUFFLENBQUMsUUFBUSxDQUFDLDBFQUFjLENBQUMsb0JBQW9CLEVBQUUsQ0FBQztJQUU3RSxjQUFjO0lBQ2QsT0FBTyxDQUNOL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x0XHRcdD5cblx0XHRcdFx0XHRcdCtcblx0XHRcdFx0XHQ8L2J1dHRvbj5cblx0XHRcdFx0PC9kaXY+XG5cdFx0XHQ8L3NlY3Rpb24+XG5cdFx0PC9tYWluPlxuXHQpXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/pages/main-page/main-page.tsx\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MainPage)\n/* harmony export */ });\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/* harmony import */ var _main_page_module_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./main-page.module.scss */ \"./src/pages/main-page/main-page.module.scss\");\n/* harmony import */ var _services_store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/store */ \"./src/services/store.ts\");\n/* harmony import */ var _services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/slices/counter-slice */ \"./src/services/slices/counter-slice.ts\");\n\n\n\n\nfunction MainPage() {\n /* Стейты */\n const localCounter = (0,_services_store__WEBPACK_IMPORTED_MODULE_2__.useAppSelector)(_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_3__.counterSelectors.localCounterSelector);\n /* Хуки */\n const dispatch = (0,_services_store__WEBPACK_IMPORTED_MODULE_2__.useAppDispatch)();\n /* Константы */\n const handleIncrement = () => dispatch(_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_3__.counterActions.incrementCountAction());\n const handleDecrement = () => dispatch(_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_3__.counterActions.decrementCountAction());\n /* Разметка */\n return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"main\", { className: `main ${_main_page_module_scss__WEBPACK_IMPORTED_MODULE_1__[\"default\"].main}`, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"section\", { className: 'section', children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"h1\", { className: 'section__title', children: \"\\u0421\\u0447\\u0451\\u0442\\u0447\\u0438\\u043A\" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"div\", { className: 'counter', children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"button\", { onClick: handleDecrement, className: 'button counter__button', children: \"-\" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"p\", { className: 'counter__', children: localCounter }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"button\", { onClick: handleIncrement, className: 'button counter__button', children: \"+\" })] })] }) }));\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcGFnZXMvbWFpbi1wYWdlL21haW4tcGFnZS50c3giLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBK0Q7QUFDbEI7QUFDeUI7QUFDa0I7QUFDekU7QUFDZjtBQUNBLHlCQUF5QiwrREFBYyxDQUFDLDRFQUFnQjtBQUN4RDtBQUNBLHFCQUFxQiwrREFBYztBQUNuQztBQUNBLDJDQUEyQywwRUFBYztBQUN6RCwyQ0FBMkMsMEVBQWM7QUFDekQ7QUFDQSxZQUFZLHNEQUFJLFdBQVcsbUJBQW1CLDhEQUFNLE1BQU0sYUFBYSx1REFBSyxjQUFjLGlDQUFpQyxzREFBSSxTQUFTLHFGQUFxRixHQUFHLHVEQUFLLFVBQVUsaUNBQWlDLHNEQUFJLGFBQWEsOEVBQThFLEdBQUcsc0RBQUksUUFBUSxnREFBZ0QsR0FBRyxzREFBSSxhQUFhLDhFQUE4RSxJQUFJLElBQ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tdGC0LrQsCAqL1xuICAgIHJldHVybiAoX2pzeChcIm1haW5cIiwgeyBjbGFzc05hbWU6IGBtYWluICR7c3R5bGVzLm1haW59YCwgY2hpbGRyZW46IF9qc3hzKFwic2VjdGlvblwiLCB7IGNsYXNzTmFtZTogJ3NlY3Rpb24nLCBjaGlsZHJlbjogW19qc3goXCJoMVwiLCB7IGNsYXNzTmFtZTogJ3NlY3Rpb25fX3RpdGxlJywgY2hpbGRyZW46IFwiXFx1MDQyMVxcdTA0NDdcXHUwNDUxXFx1MDQ0MlxcdTA0NDdcXHUwNDM4XFx1MDQzQVwiIH0pLCBfanN4cyhcImRpdlwiLCB7IGNsYXNzTmFtZTogJ2NvdW50ZXInLCBjaGlsZHJlbjogW19qc3goXCJidXR0b25cIiwgeyBvbkNsaWNrOiBoYW5kbGVEZWNyZW1lbnQsIGNsYXNzTmFtZTogJ2J1dHRvbiBjb3VudGVyX19idXR0b24nLCBjaGlsZHJlbjogXCItXCIgfSksIF9qc3goXCJwXCIsIHsgY2xhc3NOYW1lOiAnY291bnRlcl9fJywgY2hpbGRyZW46IGxvY2FsQ291bnRlciB9KSwgX2pzeChcImJ1dHRvblwiLCB7IG9uQ2xpY2s6IGhhbmRsZUluY3JlbWVudCwgY2xhc3NOYW1lOiAnYnV0dG9uIGNvdW50ZXJfX2J1dHRvbicsIGNoaWxkcmVuOiBcIitcIiB9KV0gfSldIH0pIH0pKTtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/pages/main-page/main-page.tsx\n"); /***/ }), @@ -451,7 +451,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SecondPage)\n/* harmony export */ });\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/* harmony import */ var _second_page_module_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./second-page.module.scss */ \"./src/pages/page-2/second-page.module.scss\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _services_store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/store */ \"./src/services/store.ts\");\n/* harmony import */ var _services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/slices/counter-slice */ \"./src/services/slices/counter-slice.ts\");\n\n\n\n\n\nfunction SecondPage() {\n /* Стейты */\n const counter = (0,_services_store__WEBPACK_IMPORTED_MODULE_3__.useAppSelector)(_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__.counterSelectors.apiCounterSelector);\n const isLoading = (0,_services_store__WEBPACK_IMPORTED_MODULE_3__.useAppSelector)(_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__.counterSelectors.isLoadingSelector);\n const isChanged = (0,_services_store__WEBPACK_IMPORTED_MODULE_3__.useAppSelector)(_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__.counterSelectors.isChangedSelector);\n const error = (0,_services_store__WEBPACK_IMPORTED_MODULE_3__.useAppSelector)(_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__.counterSelectors.errorSelector);\n const [formValue, setFormValue] = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)({\n id: '1',\n count: counter?.count || 0,\n });\n /* Хуки */\n const dispatch = (0,_services_store__WEBPACK_IMPORTED_MODULE_3__.useAppDispatch)();\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(() => {\n dispatch((0,_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__[\"fetсhGetCounter\"])('1'));\n setFormValue((prev) => ({\n ...prev,\n count: counter?.count || 0,\n }));\n }, [counter?.count, dispatch]);\n /* Константы */\n const handleSubmit = (e) => {\n e.preventDefault();\n try {\n dispatch((0,_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__[\"fetсhSetCount\"])(formValue));\n }\n catch (error) {\n console.log(error);\n }\n };\n const handleChange = (e) => {\n setFormValue((prev) => ({\n ...prev,\n [e.target.name]: Number(e.target.value),\n }));\n };\n /* Разметка */\n return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"main\", { className: `main ${_second_page_module_scss__WEBPACK_IMPORTED_MODULE_1__[\"default\"].main}`, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"section\", { className: 'section', children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"h1\", { className: 'section__title', children: \"\\u0421\\u0447\\u0451\\u0442\\u0447\\u0438\\u043A\" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"form\", { className: `form ${_second_page_module_scss__WEBPACK_IMPORTED_MODULE_1__[\"default\"].form}`, children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"fieldset\", { className: 'fieldset', children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"label\", { htmlFor: 'count', className: '', children: \"\\u0412\\u0432\\u0435\\u0434\\u0438 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435 \\u0441\\u0447\\u0435\\u0442\\u0447\\u0438\\u043A\\u0430 \\u0438 \\u043F\\u043E\\u0434\\u0442\\u0432\\u0435\\u0440\\u0434\\u0438 \\u0438\\u0437\\u043C\\u0435\\u043D\\u0435\\u043D\\u0438\\u0435\" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"input\", { disabled: isLoading, name: 'count', type: 'number', value: formValue.count, onChange: handleChange, className: 'input' }), error && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"p\", { className: 'error-text', children: [\"\\u041E\\u0448\\u0438\\u0431\\u043A\\u0430 \\u0438\\u0437\\u043C\\u0435\\u043D\\u0435\\u043D\\u0438\\u044F: \", error] }), isChanged && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"p\", { className: 'success-text', children: \"\\u0421\\u0447\\u0435\\u0442\\u0447\\u0438\\u043A \\u0443\\u0441\\u043F\\u0435\\u0448\\u043D\\u043E \\u0438\\u0437\\u043C\\u0435\\u043D\\u0435\\u043D! \\u041C\\u043E\\u0436\\u043D\\u043E \\u043F\\u0435\\u0440\\u0435\\u0437\\u0430\\u0433\\u0440\\u0443\\u0437\\u0438\\u0442\\u044C \\u0441\\u0442\\u0440\\u0430\\u043D\\u0438\\u0446\\u0443\" }))] }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"button\", { disabled: isLoading, onClick: handleSubmit, className: 'button counter__button', children: isLoading ? 'Загрузка' : 'Сохранить' })] })] }) }));\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcGFnZXMvcGFnZS0yL3NlY29uZC1wYWdlLnRzeCIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUE4QztBQUUwQjtBQUVIO0FBS3pCO0FBRzdCLFNBQVMsVUFBVTtJQUNqQyxZQUFZO0lBQ1osTUFBTSxPQUFPLEdBQUcsK0RBQWMsQ0FDN0IsNEVBQWdCLENBQUMsa0JBQWtCLENBQ25DO0lBQ0QsTUFBTSxTQUFTLEdBQUcsK0RBQWMsQ0FBVSw0RUFBZ0IsQ0FBQyxpQkFBaUIsQ0FBQztJQUM3RSxNQUFNLF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RcdFx0Lz5cblx0XHRcdFx0XHRcdHtlcnJvciAmJiA8cCBjbGFzc05hbWU9eydlcnJvci10ZXh0J30+0J7RiNC40LHQutCwINC40LfQvNC10L3QtdC90LjRjzoge2Vycm9yfTwvcD59XG5cdFx0XHRcdFx0XHR7aXNDaGFuZ2VkICYmIChcblx0XHRcdFx0XHRcdFx0PHAgY2xhc3NOYW1lPXsnc3VjY2Vzcy10ZXh0J30+XG5cdFx0XHRcdFx0XHRcdFx00KHRh9C10YLRh9C40Log0YPRgdC/0LXRiNC90L4g0LjQt9C80LXQvdC10L0hINCc0L7QttC90L4g0L/QtdGA0LXQt9Cw0LPRgNGD0LfQuNGC0Ywg0YHRgtGA0LDQvdC40YbRg1xuXHRcdFx0XHRcdFx0XHQ8L3A+XG5cdFx0XHRcdFx0XHQpfVxuXHRcdFx0XHRcdDwvZmllbGRzZXQ+XG5cdFx0XHRcdFx0PGJ1dHRvblxuXHRcdFx0XHRcdFx0ZGlzYWJsZWQ9e2lzTG9hZGluZ31cblx0XHRcdFx0XHRcdG9uQ2xpY2s9e2hhbmRsZVN1Ym1pdH1cblx0XHRcdFx0XHRcdGNsYXNzTmFtZT17J2J1dHRvbiBjb3VudGVyX19idXR0b24nfVxuXHRcdFx0XHRcdD5cblx0XHRcdFx0XHRcdHtpc0xvYWRpbmcgPyAn0JfQsNCz0YDRg9C30LrQsCcgOiAn0KHQvtGF0YDQsNC90LjRgtGMJ31cblx0XHRcdFx0XHQ8L2J1dHRvbj5cblx0XHRcdFx0PC9mb3JtPlxuXHRcdFx0PC9zZWN0aW9uPlxuXHRcdDwvbWFpbj5cblx0KVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/pages/page-2/second-page.tsx\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SecondPage)\n/* harmony export */ });\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/* harmony import */ var _second_page_module_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./second-page.module.scss */ \"./src/pages/page-2/second-page.module.scss\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _services_store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/store */ \"./src/services/store.ts\");\n/* harmony import */ var _services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/slices/counter-slice */ \"./src/services/slices/counter-slice.ts\");\n\n\n\n\n\nfunction SecondPage() {\n /* Стейты */\n const counter = (0,_services_store__WEBPACK_IMPORTED_MODULE_3__.useAppSelector)(_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__.counterSelectors.apiCounterSelector);\n const isLoading = (0,_services_store__WEBPACK_IMPORTED_MODULE_3__.useAppSelector)(_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__.counterSelectors.isLoadingSelector);\n const isChanged = (0,_services_store__WEBPACK_IMPORTED_MODULE_3__.useAppSelector)(_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__.counterSelectors.isChangedSelector);\n const error = (0,_services_store__WEBPACK_IMPORTED_MODULE_3__.useAppSelector)(_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__.counterSelectors.errorSelector);\n const [formValue, setFormValue] = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)({\n id: '1',\n count: counter?.count || 0,\n });\n /* Хуки */\n const dispatch = (0,_services_store__WEBPACK_IMPORTED_MODULE_3__.useAppDispatch)();\n (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(() => {\n dispatch((0,_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__[\"fetсhGetCounter\"])('1'));\n setFormValue((prev) => ({\n ...prev,\n count: counter?.count || 0,\n }));\n }, [counter?.count, dispatch]);\n /* Константы */\n const handleSubmit = (e) => {\n e.preventDefault();\n try {\n dispatch((0,_services_slices_counter_slice__WEBPACK_IMPORTED_MODULE_4__[\"fetсhSetCount\"])(formValue));\n }\n catch (error) {\n console.log(error);\n }\n };\n const handleChange = (e) => {\n setFormValue((prev) => ({\n ...prev,\n [e.target.name]: Number(e.target.value),\n }));\n };\n /* Разметка */\n return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"main\", { className: `main ${_second_page_module_scss__WEBPACK_IMPORTED_MODULE_1__[\"default\"].main}`, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"section\", { className: 'section', children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"h1\", { className: 'section__title', children: \"\\u0421\\u0447\\u0451\\u0442\\u0447\\u0438\\u043A\" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"form\", { className: `form ${_second_page_module_scss__WEBPACK_IMPORTED_MODULE_1__[\"default\"].form}`, children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"fieldset\", { className: 'fieldset', children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"label\", { htmlFor: 'count', className: '', children: \"\\u0412\\u0432\\u0435\\u0434\\u0438 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435 \\u0441\\u0447\\u0435\\u0442\\u0447\\u0438\\u043A\\u0430 \\u0438 \\u043F\\u043E\\u0434\\u0442\\u0432\\u0435\\u0440\\u0434\\u0438 \\u0438\\u0437\\u043C\\u0435\\u043D\\u0435\\u043D\\u0438\\u0435\" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"input\", { disabled: isLoading, name: 'count', type: 'number', value: formValue.count, onChange: handleChange, className: 'input' }), error && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"p\", { className: 'error-text', children: [\"\\u041E\\u0448\\u0438\\u0431\\u043A\\u0430 \\u0438\\u0437\\u043C\\u0435\\u043D\\u0435\\u043D\\u0438\\u044F: \", error] }), isChanged && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"p\", { className: 'success-text', children: \"\\u0421\\u0447\\u0435\\u0442\\u0447\\u0438\\u043A \\u0443\\u0441\\u043F\\u0435\\u0448\\u043D\\u043E \\u0438\\u0437\\u043C\\u0435\\u043D\\u0435\\u043D! \\u041C\\u043E\\u0436\\u043D\\u043E \\u043F\\u0435\\u0440\\u0435\\u0437\\u0430\\u0433\\u0440\\u0443\\u0437\\u0438\\u0442\\u044C \\u0441\\u0442\\u0440\\u0430\\u043D\\u0438\\u0446\\u0443\" }))] }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"button\", { disabled: isLoading, onClick: handleSubmit, className: 'button counter__button', children: isLoading ? 'Загрузка' : 'Сохранить' })] })] }) }));\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcGFnZXMvcGFnZS0yL3NlY29uZC1wYWdlLnRzeCIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQStEO0FBQ2hCO0FBQ0g7QUFDMEI7QUFDa0M7QUFDekY7QUFDZjtBQUNBLG9CQUFvQiwrREFBYyxDQUFDLDRFQUFnQjtBQUNuRCxzQkFBc0IsK0RBQWMsQ0FBQyw0RUFBZ0I7QUFDckQsc0JBQXNCLCtEQUFjLENBQUMsNEVBQWdCO0FBQ3JELGtCQUFrQiwrREFBYyxDQUFDLDRFQUFnQjtBQUNqRCxzQ0FB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U6ICdzdWNjZXNzLXRleHQnLCBjaGlsZHJlbjogXCJcXHUwNDIxXFx1MDQ0N1xcdTA0MzVcXHUwNDQyXFx1MDQ0N1xcdTA0MzhcXHUwNDNBIFxcdTA0NDNcXHUwNDQxXFx1MDQzRlxcdTA0MzVcXHUwNDQ4XFx1MDQzRFxcdTA0M0UgXFx1MDQzOFxcdTA0MzdcXHUwNDNDXFx1MDQzNVxcdTA0M0RcXHUwNDM1XFx1MDQzRCEgXFx1MDQxQ1xcdTA0M0VcXHUwNDM2XFx1MDQzRFxcdTA0M0UgXFx1MDQzRlxcdTA0MzVcXHUwNDQwXFx1MDQzNVxcdTA0MzdcXHUwNDMwXFx1MDQzM1xcdTA0NDBcXHUwNDQzXFx1MDQzN1xcdTA0MzhcXHUwNDQyXFx1MDQ0QyBcXHUwNDQxXFx1MDQ0MlxcdTA0NDBcXHUwNDMwXFx1MDQzRFxcdTA0MzhcXHUwNDQ2XFx1MDQ0M1wiIH0pKV0gfSksIF9qc3goXCJidXR0b25cIiwgeyBkaXNhYmxlZDogaXNMb2FkaW5nLCBvbkNsaWNrOiBoYW5kbGVTdWJtaXQsIGNsYXNzTmFtZTogJ2J1dHRvbiBjb3VudGVyX19idXR0b24nLCBjaGlsZHJlbjogaXNMb2FkaW5nID8gJ9CX0LDQs9GA0YPQt9C60LAnIDogJ9Ch0L7RhdGA0LDQvdC40YLRjCcgfSldIH0pXSB9KSB9KSk7XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/pages/page-2/second-page.tsx\n"); /***/ }), @@ -462,7 +462,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ counterActions: () => (/* binding */ counterActions),\n/* harmony export */ counterSelectors: () => (/* binding */ counterSelectors),\n/* harmony export */ counterSlice: () => (/* binding */ counterSlice),\n/* harmony export */ \"fetсhAddNewCounter\": () => (/* binding */ fetсhAddNewCounter),\n/* harmony export */ \"fetсhDeleteCounter\": () => (/* binding */ fetсhDeleteCounter),\n/* harmony export */ \"fetсhGetCounter\": () => (/* binding */ fetсhGetCounter),\n/* harmony export */ \"fetсhGetCounters\": () => (/* binding */ fetсhGetCounters),\n/* harmony export */ \"fetсhSetCount\": () => (/* binding */ fetсhSetCount)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @reduxjs/toolkit */ \"./node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs\");\n/* harmony import */ var _utils_check_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/check-response */ \"./src/utils/check-response.ts\");\n/* Пример реализации глобального хранилища для счетчика */\n\n\n/* API-запросы */\n// Получение всех счётчиков\nconst fetсhGetCounters = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createAsyncThunk)('counter/fetсhGetCounters', async () => {\n const response = await fetch(`${\"https://67375059aafa2ef222335ff9.mockapi.io\"}/api/number-counter`);\n return (0,_utils_check_response__WEBPACK_IMPORTED_MODULE_0__.checkResponse)(response);\n});\n// Получение одного конкретного счётчика по его id\nconst fetсhGetCounter = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createAsyncThunk)('counter/fetсhGetCounter', async (id) => {\n const response = await fetch(`${\"https://67375059aafa2ef222335ff9.mockapi.io\"}/api/number-counter/${id}`);\n return (0,_utils_check_response__WEBPACK_IMPORTED_MODULE_0__.checkResponse)(response);\n});\n// Изменение счётчика по его id\nconst fetсhSetCount = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createAsyncThunk)('counter/fetсhSetCount', async ({ id, count }) => {\n const response = await fetch(`${\"https://67375059aafa2ef222335ff9.mockapi.io\"}/api/number-counter/${id}`, {\n method: 'PATCH',\n headers: {\n 'Content-Type': 'application/json;charset=utf-8',\n },\n body: JSON.stringify({ count: count }),\n });\n return (0,_utils_check_response__WEBPACK_IMPORTED_MODULE_0__.checkResponse)(response);\n});\n// Добавление конкретного счётчика по его id\nconst fetсhAddNewCounter = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createAsyncThunk)('counter/fetсhAddNewCounter', async ({ id, count }) => {\n const response = await fetch(`${\"https://67375059aafa2ef222335ff9.mockapi.io\"}/api/number-counter/${id}`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json;charset=utf-8',\n },\n body: JSON.stringify({ count: count }),\n });\n return (0,_utils_check_response__WEBPACK_IMPORTED_MODULE_0__.checkResponse)(response);\n});\n// Удаление конкретного счётчика по его id\nconst fetсhDeleteCounter = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createAsyncThunk)('counter/fetсhDeleteCounter', async ({ id }) => {\n const response = await fetch(`${\"https://67375059aafa2ef222335ff9.mockapi.io\"}/api/number-counter/${id}`, {\n method: 'DELETE',\n headers: {\n 'Content-Type': 'application/json;charset=utf-8',\n },\n });\n return (0,_utils_check_response__WEBPACK_IMPORTED_MODULE_0__.checkResponse)(response);\n});\n/* Слайс */\n// Исходные данные для слайса\nconst initialState = {\n allApiCounters: [],\n apiCounter: null,\n localCounter: 0,\n isLoading: false,\n isChanged: false,\n error: undefined,\n};\n// Сам слайс\nconst counterSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createSlice)({\n name: 'counters',\n initialState,\n reducers: {\n // Функции (экшены) работают НЕ напрямую через APi, а посредством взаимодлействия с локальными данными, полученными из API\n // функция (экшен) увеличения локального счетчика\n incrementCountAction: (state) => {\n state.localCounter += 1;\n },\n // функция (экшен) увеличения локального счетчика\n decrementCountAction: (state) => {\n state.localCounter -= 1;\n },\n // функция (экшен) увеличения локального счетчика (не из API)\n setCountAction: (state, action) => {\n state.localCounter = action.payload;\n },\n },\n selectors: {\n // хранилище всех счетчиков из API\n allApiCountersSelector: (state) => state.allApiCounters,\n // храненилище одного счетчика из API\n apiCounterSelector: (state) => state.apiCounter,\n // хранилище локального счетчика (не из API)\n localCounterSelector: (state) => state.localCounter,\n // хранилище статуса обработки запроса\n isLoadingSelector: (state) => state.isLoading,\n // хранилище статуса изменения\n isChangedSelector: (state) => state.isChanged,\n // хранилище статуса ошибки\n errorSelector: (state) => state.error,\n },\n extraReducers: (builder) => {\n builder\n // Обработка запроса получения всех счётчиков (процесс загрузки, успешный ответ и ошибка запроса соответственно)\n .addCase(fetсhGetCounters.pending, (state) => {\n state.isLoading = true;\n })\n .addCase(fetсhGetCounters.fulfilled, (state, action) => {\n state.allApiCounters = action.payload;\n state.isLoading = false;\n state.error = initialState.error;\n })\n .addCase(fetсhGetCounters.rejected, (state, action) => {\n state.error = action.error.message;\n state.isLoading = false;\n })\n // Обработка запроса получения одного счётчика (процесс загрузки, успешный ответ и ошибка запроса соответственно)\n .addCase(fetсhGetCounter.pending, (state) => {\n state.isLoading = true;\n })\n .addCase(fetсhGetCounter.fulfilled, (state, action) => {\n state.apiCounter = action.payload;\n state.isLoading = false;\n state.error = initialState.error;\n })\n .addCase(fetсhGetCounter.rejected, (state, action) => {\n state.error = action.error.message;\n state.isLoading = false;\n })\n // Обработка запроса изменения счётчика (процесс загрузки, успешный ответ и ошибка запроса соответственно)\n .addCase(fetсhSetCount.pending, (state) => {\n state.isLoading = true;\n state.isChanged = initialState.isChanged;\n })\n .addCase(fetсhSetCount.fulfilled, (state, action) => {\n state.apiCounter = action.payload;\n state.isLoading = false;\n state.isChanged = true;\n state.error = initialState.error;\n })\n .addCase(fetсhSetCount.rejected, (state, action) => {\n state.isLoading = false;\n state.isChanged = false;\n state.error = action.error.message;\n });\n },\n});\nconst counterActions = counterSlice.actions;\nconst counterSelectors = counterSlice.selectors;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9u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5cdH0sXG59KVxuXG5leHBvcnQgY29uc3QgY291bnRlckFjdGlvbnMgPSBjb3VudGVyU2xpY2UuYWN0aW9uc1xuZXhwb3J0IGNvbnN0IGNvdW50ZXJTZWxlY3RvcnMgPSBjb3VudGVyU2xpY2Uuc2VsZWN0b3JzXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/services/slices/counter-slice.ts\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ counterActions: () => (/* binding */ counterActions),\n/* harmony export */ counterSelectors: () => (/* binding */ counterSelectors),\n/* harmony export */ counterSlice: () => (/* binding */ counterSlice),\n/* harmony export */ \"fetсhAddNewCounter\": () => (/* binding */ fetсhAddNewCounter),\n/* harmony export */ \"fetсhDeleteCounter\": () => (/* binding */ fetсhDeleteCounter),\n/* harmony export */ \"fetсhGetCounter\": () => (/* binding */ fetсhGetCounter),\n/* harmony export */ \"fetсhGetCounters\": () => (/* binding */ fetсhGetCounters),\n/* harmony export */ \"fetсhSetCount\": () => (/* binding */ fetсhSetCount)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @reduxjs/toolkit */ \"./node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs\");\n/* harmony import */ var _utils_check_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/check-response */ \"./src/utils/check-response.ts\");\n/* Пример реализации глобального хранилища для счетчика */\n\n\n/* API-запросы */\n// Получение всех счётчиков\nconst fetсhGetCounters = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createAsyncThunk)('counter/fetсhGetCounters', async () => {\n const response = await fetch(`${\"https://67375059aafa2ef222335ff9.mockapi.io\"}/api/number-counter`);\n return (0,_utils_check_response__WEBPACK_IMPORTED_MODULE_0__.checkResponse)(response);\n});\n// Получение одного конкретного счётчика по его id\nconst fetсhGetCounter = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createAsyncThunk)('counter/fetсhGetCounter', async (id) => {\n const response = await fetch(`${\"https://67375059aafa2ef222335ff9.mockapi.io\"}/api/number-counter/${id}`);\n return (0,_utils_check_response__WEBPACK_IMPORTED_MODULE_0__.checkResponse)(response);\n});\n// Изменение счётчика по его id\nconst fetсhSetCount = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createAsyncThunk)('counter/fetсhSetCount', async ({ id, count }) => {\n const response = await fetch(`${\"https://67375059aafa2ef222335ff9.mockapi.io\"}/api/number-counter/${id}`, {\n method: 'PATCH',\n headers: {\n 'Content-Type': 'application/json;charset=utf-8',\n },\n body: JSON.stringify({ count: count }),\n });\n return (0,_utils_check_response__WEBPACK_IMPORTED_MODULE_0__.checkResponse)(response);\n});\n// Добавление конкретного счётчика по его id\nconst fetсhAddNewCounter = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createAsyncThunk)('counter/fetсhAddNewCounter', async ({ id, count }) => {\n const response = await fetch(`${\"https://67375059aafa2ef222335ff9.mockapi.io\"}/api/number-counter/${id}`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json;charset=utf-8',\n },\n body: JSON.stringify({ count: count }),\n });\n return (0,_utils_check_response__WEBPACK_IMPORTED_MODULE_0__.checkResponse)(response);\n});\n// Удаление конкретного счётчика по его id\nconst fetсhDeleteCounter = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createAsyncThunk)('counter/fetсhDeleteCounter', async ({ id }) => {\n const response = await fetch(`${\"https://67375059aafa2ef222335ff9.mockapi.io\"}/api/number-counter/${id}`, {\n method: 'DELETE',\n headers: {\n 'Content-Type': 'application/json;charset=utf-8',\n },\n });\n return (0,_utils_check_response__WEBPACK_IMPORTED_MODULE_0__.checkResponse)(response);\n});\n/* Слайс */\n// Исходные данные для слайса\nconst initialState = {\n allApiCounters: [],\n apiCounter: null,\n localCounter: 0,\n isLoading: false,\n isChanged: false,\n error: undefined,\n};\n// Сам слайс\nconst counterSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.createSlice)({\n name: 'counters',\n initialState,\n reducers: {\n // Функции (экшены) работают НЕ напрямую через APi, а посредством взаимодлействия с локальными данными, полученными из API\n // функция (экшен) увеличения локального счетчика\n incrementCountAction: (state) => {\n state.localCounter += 1;\n },\n // функция (экшен) увеличения локального счетчика\n decrementCountAction: (state) => {\n state.localCounter -= 1;\n },\n // функция (экшен) увеличения локального счетчика (не из API)\n setCountAction: (state, action) => {\n state.localCounter = action.payload;\n },\n },\n selectors: {\n // хранилище всех счетчиков из API\n allApiCountersSelector: (state) => state.allApiCounters,\n // храненилище одного счетчика из API\n apiCounterSelector: (state) => state.apiCounter,\n // хранилище локального счетчика (не из API)\n localCounterSelector: (state) => state.localCounter,\n // хранилище статуса обработки запроса\n isLoadingSelector: (state) => state.isLoading,\n // хранилище статуса изменения\n isChangedSelector: (state) => state.isChanged,\n // хранилище статуса ошибки\n errorSelector: (state) => state.error,\n },\n extraReducers: (builder) => {\n builder\n // Обработка запроса получения всех счётчиков (процесс загрузки, успешный ответ и ошибка запроса соответственно)\n .addCase(fetсhGetCounters.pending, (state) => {\n state.isLoading = true;\n })\n .addCase(fetсhGetCounters.fulfilled, (state, action) => {\n state.allApiCounters = action.payload;\n state.isLoading = false;\n state.error = initialState.error;\n })\n .addCase(fetсhGetCounters.rejected, (state, action) => {\n state.error = action.error.message;\n state.isLoading = false;\n })\n // Обработка запроса получения одного счётчика (процесс загрузки, успешный ответ и ошибка запроса соответственно)\n .addCase(fetсhGetCounter.pending, (state) => {\n state.isLoading = true;\n })\n .addCase(fetсhGetCounter.fulfilled, (state, action) => {\n state.apiCounter = action.payload;\n state.isLoading = false;\n state.error = initialState.error;\n })\n .addCase(fetсhGetCounter.rejected, (state, action) => {\n state.error = action.error.message;\n state.isLoading = false;\n })\n // Обработка запроса изменения счётчика (процесс загрузки, успешный ответ и ошибка запроса соответственно)\n .addCase(fetсhSetCount.pending, (state) => {\n state.isLoading = true;\n state.isChanged = initialState.isChanged;\n })\n .addCase(fetсhSetCount.fulfilled, (state, action) => {\n state.apiCounter = action.payload;\n state.isLoading = false;\n state.isChanged = true;\n state.error = initialState.error;\n })\n .addCase(fetсhSetCount.rejected, (state, action) => {\n state.isLoading = false;\n state.isChanged = false;\n state.error = action.error.message;\n });\n },\n});\nconst counterActions = counterSlice.actions;\nconst counterSelectors = counterSlice.selectors;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2VydmljZXMvc2xpY2VzL2NvdW50ZXItc2xpY2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ2lFO0FBQ047QUFDM0Q7QUFDQTtBQUNPLHlCQUF5QixrRUFBZ0I7QUFDaEQsb0NBQW9DLDZDQUFvQixDQUFDO0FBQ3pELFdBQVcsb0VBQWE7QUFDeEIsQ0FBQztBQUNEO0FBQ08sd0JBQXdCLGtFQUFnQjtBQUMvQyxvQ0FBb0MsNkNBQW9CLENBQUMsc0JBQXNCLEdBQUc7QUFDbEYsV0FBVyxvRUFBYTtBQUN4QixDQUFDO0FBQ0Q7QUFDTyxzQkFBc0Isa0VBQWdCLG1DQUFtQyxXQUFXO0FBQzNGLG9DQUFvQyw2Q0FBb0IsQ0FBQyxzQkFBc0IsR0FBRztBQUNsRjtBQUNBO0FBQ0EsOENBQThDO0FBQzlDLFNBQVM7QUFDVCwrQkFBK0IsY0FBYztBQUM3QyxLQUFLO0FBQ0wsV0FBVyxvRUFBYTtBQUN4QixDQUFDO0FBQ0Q7QUFDTywyQkFBMkIsa0VBQWdCLHdDQUF3QyxXQUFXO0FBQ3JHLG9DQUFvQyw2Q0FBb0IsQ0FBQyxzQkFBc0IsR0FBRztBQUNsRjtBQUNBO0FBQ0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ZCA9IGZhbHNlO1xuICAgICAgICAgICAgc3RhdGUuZXJyb3IgPSBhY3Rpb24uZXJyb3IubWVzc2FnZTtcbiAgICAgICAgfSk7XG4gICAgfSxcbn0pO1xuZXhwb3J0IGNvbnN0IGNvdW50ZXJBY3Rpb25zID0gY291bnRlclNsaWNlLmFjdGlvbnM7XG5leHBvcnQgY29uc3QgY291bnRlclNlbGVjdG9ycyA9IGNvdW50ZXJTbGljZS5zZWxlY3RvcnM7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/services/slices/counter-slice.ts\n"); /***/ }), @@ -473,7 +473,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ store: () => (/* binding */ store),\n/* harmony export */ useAppDispatch: () => (/* binding */ useAppDispatch),\n/* harmony export */ useAppSelector: () => (/* binding */ useAppSelector)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @reduxjs/toolkit */ \"./node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs\");\n/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-redux */ \"./node_modules/react-redux/dist/react-redux.mjs\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/debounce */ \"./node_modules/lodash/debounce.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _slices_counter_slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slices/counter-slice */ \"./src/services/slices/counter-slice.ts\");\n\n\n\n\nconst saveToLocalStorage = (state) => {\n try {\n const counters = state.counters;\n if (!counters.error) {\n const data = JSON.stringify({\n allApiCounters: counters.allApiCounters,\n });\n localStorage.setItem('localData', data);\n }\n else\n localStorage.removeItem('localData');\n }\n catch (e) {\n console.warn('Could not save state', e);\n }\n};\nconst loadFromLocalStorage = () => {\n try {\n const appData = localStorage.getItem('localData');\n if (appData === null)\n return undefined;\n const { savedData } = JSON.parse(appData);\n return savedData;\n }\n catch (e) {\n console.warn('Could not load state', e);\n return undefined;\n }\n};\nconst preloadedState = loadFromLocalStorage();\nconst rootReducer = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_2__.combineSlices)(_slices_counter_slice__WEBPACK_IMPORTED_MODULE_1__.counterSlice);\nconst store = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_2__.configureStore)({\n reducer: rootReducer,\n preloadedState,\n middleware: (getDefaultMiddleware) => getDefaultMiddleware(),\n});\nstore.subscribe(lodash_debounce__WEBPACK_IMPORTED_MODULE_0___default()(() => {\n saveToLocalStorage(store.getState());\n}, 500));\nconst useAppDispatch = react_redux__WEBPACK_IMPORTED_MODULE_3__.useDispatch;\nconst useAppSelector = react_redux__WEBPACK_IMPORTED_MODULE_3__.useSelector;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2VydmljZXMvc3RvcmUudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBZ0U7QUFJNUM7QUFFa0I7QUFFZTtBQUVyRCxNQUFNLGtCQUFrQixHQUFHLENBQUMsS0FBZ0IsRUFBRSxFQUFFO0lBQy9DLElBQUksQ0FBQztRQUNKLE1BQU0sUUFBUSxHQUFHLEtBQUssQ0FBQyxRQUFRO1FBRS9CLElBQUksQ0FBQyxRQUFRLENBQUMsS0FBSyxFQUFFLENBQUM7WUFDckIsTUFBTSxJQUFJLEdBQUcsS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x0ZGVib3VuY2UoKCkgPT4ge1xuXHRcdHNhdmVUb0xvY2FsU3RvcmFnZShzdG9yZS5nZXRTdGF0ZSgpKVxuXHR9LCA1MDApXG4pXG5cbmV4cG9ydCB0eXBlIFJvb3RTdGF0ZSA9IFJldHVyblR5cGU8dHlwZW9mIHN0b3JlLmdldFN0YXRlPlxuZXhwb3J0IHR5cGUgQXBwRGlzcGF0Y2ggPSB0eXBlb2Ygc3RvcmUuZGlzcGF0Y2hcblxuZXhwb3J0IGNvbnN0IHVzZUFwcERpc3BhdGNoOiAoKSA9PiBBcHBEaXNwYXRjaCA9IGRpc3BhdGNoSG9va1xuZXhwb3J0IGNvbnN0IHVzZUFwcFNlbGVjdG9yOiBUeXBlZFVzZVNlbGVjdG9ySG9vazxSb290U3RhdGU+ID0gc2VsZWN0b3JIb29rXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/services/store.ts\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ store: () => (/* binding */ store),\n/* harmony export */ useAppDispatch: () => (/* binding */ useAppDispatch),\n/* harmony export */ useAppSelector: () => (/* binding */ useAppSelector)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @reduxjs/toolkit */ \"./node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs\");\n/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-redux */ \"./node_modules/react-redux/dist/react-redux.mjs\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/debounce */ \"./node_modules/lodash/debounce.js\");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _slices_counter_slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slices/counter-slice */ \"./src/services/slices/counter-slice.ts\");\n\n\n\n\nconst saveToLocalStorage = (state) => {\n try {\n const counters = state.counters;\n if (!counters.error) {\n const data = JSON.stringify({\n allApiCounters: counters.allApiCounters,\n });\n localStorage.setItem('localData', data);\n }\n else\n localStorage.removeItem('localData');\n }\n catch (e) {\n console.warn('Could not save state', e);\n }\n};\nconst loadFromLocalStorage = () => {\n try {\n const appData = localStorage.getItem('localData');\n if (appData === null)\n return undefined;\n const { savedData } = JSON.parse(appData);\n return savedData;\n }\n catch (e) {\n console.warn('Could not load state', e);\n return undefined;\n }\n};\nconst preloadedState = loadFromLocalStorage();\nconst rootReducer = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_2__.combineSlices)(_slices_counter_slice__WEBPACK_IMPORTED_MODULE_1__.counterSlice);\nconst store = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_2__.configureStore)({\n reducer: rootReducer,\n preloadedState,\n middleware: (getDefaultMiddleware) => getDefaultMiddleware(),\n});\nstore.subscribe(lodash_debounce__WEBPACK_IMPORTED_MODULE_0___default()(() => {\n saveToLocalStorage(store.getState());\n}, 500));\nconst useAppDispatch = react_redux__WEBPACK_IMPORTED_MODULE_3__.useDispatch;\nconst useAppSelector = react_redux__WEBPACK_IMPORTED_MODULE_3__.useSelector;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2VydmljZXMvc3RvcmUudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBaUU7QUFDdUI7QUFDakQ7QUFDZTtBQUN0RDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxhQUFhO0FBQ2I7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0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ZWZhdWx0TWlkZGxld2FyZSgpLFxufSk7XG5zdG9yZS5zdWJzY3JpYmUoZGVib3VuY2UoKCkgPT4ge1xuICAgIHNhdmVUb0xvY2FsU3RvcmFnZShzdG9yZS5nZXRTdGF0ZSgpKTtcbn0sIDUwMCkpO1xuZXhwb3J0IGNvbnN0IHVzZUFwcERpc3BhdGNoID0gZGlzcGF0Y2hIb29rO1xuZXhwb3J0IGNvbnN0IHVzZUFwcFNlbGVjdG9yID0gc2VsZWN0b3JIb29rO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/services/store.ts\n"); /***/ }), @@ -484,7 +484,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ checkResponse: () => (/* binding */ checkResponse)\n/* harmony export */ });\nconst createEmptyResponse = () => {\n return {};\n};\nconst checkResponse = async (result) => {\n if (result.ok) {\n const text = await result.text();\n if (!text)\n return createEmptyResponse();\n try {\n const data = JSON.parse(text);\n if (Object.keys(data).length === 0)\n return createEmptyResponse();\n return data;\n }\n catch {\n return Promise.reject(new Error('Ошибка парсинга JSON'));\n }\n }\n return Promise.reject(new Error(`Ошибка: ${result.status}`));\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvY2hlY2stcmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE1BQU0sbUJBQW1CLEdBQUcsR0FBd0IsRUFBRTtJQUNyRCxPQUFPLEVBQWtCO0FBQzFCLENBQUM7QUFFTSxNQUFNLGFBQWEsR0FBRyxLQUFLLEVBQ2pDLE1BQWdCLEVBQ0gsRUFBRTtJQUNmLElBQUksTUF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IGF3YWl0IHJlc3VsdC50ZXh0KClcblxuXHRcdGlmICghdGV4dCkgcmV0dXJuIGNyZWF0ZUVtcHR5UmVzcG9uc2U8VD4oKVxuXG5cdFx0dHJ5IHtcblx0XHRcdGNvbnN0IGRhdGEgPSBKU09OLnBhcnNlKHRleHQpIGFzIFRcblxuXHRcdFx0aWYgKE9iamVjdC5rZXlzKGRhdGEpLmxlbmd0aCA9PT0gMCkgcmV0dXJuIGNyZWF0ZUVtcHR5UmVzcG9uc2U8VD4oKVxuXG5cdFx0XHRyZXR1cm4gZGF0YVxuXHRcdH0gY2F0Y2gge1xuXHRcdFx0cmV0dXJuIFByb21pc2UucmVqZWN0KG5ldyBFcnJvcign0J7RiNC40LHQutCwINC/0LDRgNGB0LjQvdCz0LAgSlNPTicpKVxuXHRcdH1cblx0fVxuXG5cdHJldHVybiBQcm9taXNlLnJlamVjdChuZXcgRXJyb3IoYNCe0YjQuNCx0LrQsDogJHtyZXN1bHQuc3RhdHVzfWApKVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/utils/check-response.ts\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ checkResponse: () => (/* binding */ checkResponse)\n/* harmony export */ });\nconst createEmptyResponse = () => {\n return {};\n};\nconst checkResponse = async (result) => {\n if (result.ok) {\n const text = await result.text();\n if (!text)\n return createEmptyResponse();\n try {\n const data = JSON.parse(text);\n if (Object.keys(data).length === 0)\n return createEmptyResponse();\n return data;\n }\n catch {\n return Promise.reject(new Error('Ошибка парсинга JSON'));\n }\n }\n return Promise.reject(new Error(`Ошибка: ${result.status}`));\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvY2hlY2stcmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7OztBQU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GF0dXN9YCkpO1xufTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/utils/check-response.ts\n"); /***/ }), diff --git a/utils/check-response.d.ts b/utils/check-response.d.ts deleted file mode 100644 index 2ce9b37..0000000 --- a/utils/check-response.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const checkResponse: (result: Response) => Promise; -//# sourceMappingURL=check-response.d.ts.map \ No newline at end of file diff --git a/utils/check-response.d.ts.map b/utils/check-response.d.ts.map deleted file mode 100644 index ab6b5d5..0000000 --- a/utils/check-response.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"check-response.d.ts","sourceRoot":"","sources":["../../src/utils/check-response.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,GAAU,CAAC,SAAS,MAAM,UAC3C,QAAQ,KACd,OAAO,CAAC,CAAC,CAkBX,CAAA"} \ No newline at end of file diff --git a/utils/cookie.d.ts b/utils/cookie.d.ts deleted file mode 100644 index 1dda2bd..0000000 --- a/utils/cookie.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare const getCookie: (name: string) => string | undefined; -export declare const setCookie: (name: string, value: string, props?: Record) => void; -export declare const deleteCookie: (name: string) => void; -//# sourceMappingURL=cookie.d.ts.map \ No newline at end of file diff --git a/utils/cookie.d.ts.map b/utils/cookie.d.ts.map deleted file mode 100644 index c4e4fa8..0000000 --- a/utils/cookie.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cookie.d.ts","sourceRoot":"","sources":["../../src/utils/cookie.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,SAAU,MAAM,KAAG,MAAM,GAAG,SAUjD,CAAA;AAED,eAAO,MAAM,SAAS,SACf,MAAM,SACL,MAAM,UACN,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,SA6BvD,CAAA;AAED,eAAO,MAAM,YAAY,SAAU,MAAM,SACJ,CAAA"} \ No newline at end of file diff --git a/utils/interfaces/counter-interface.d.ts b/utils/interfaces/counter-interface.d.ts deleted file mode 100644 index 81208b4..0000000 --- a/utils/interfaces/counter-interface.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export interface ICounter { - id: string; - count: number; -} -export interface ICounters { - allApiCounters: ICounter[]; - apiCounter: ICounter | null; - localCounter: number; - isLoading: boolean; - isChanged: boolean; - error: string | undefined; -} -//# sourceMappingURL=counter-interface.d.ts.map \ No newline at end of file diff --git a/utils/interfaces/counter-interface.d.ts.map b/utils/interfaces/counter-interface.d.ts.map deleted file mode 100644 index 110e58a..0000000 --- a/utils/interfaces/counter-interface.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"counter-interface.d.ts","sourceRoot":"","sources":["../../../src/utils/interfaces/counter-interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,SAAS;IACzB,cAAc,EAAE,QAAQ,EAAE,CAAA;IAC1B,UAAU,EAAE,QAAQ,GAAG,IAAI,CAAA;IAC3B,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB"} \ No newline at end of file