g(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","__webpack_require__.p = \"/to-do-list-on-react/\";","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (null != _i) {\n var _s,\n _e,\n _x,\n _r,\n _arr = [],\n _n = !0,\n _d = !1;\n try {\n if (_x = (_i = _i.call(arr)).next, 0 === i) {\n if (Object(_i) !== _i) return;\n _n = !1;\n } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);\n } catch (err) {\n _d = !0, _e = err;\n } finally {\n try {\n if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return;\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n return keys;\n}\nexport default function _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}","var _defs, _style, _use, _use2;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgDeleteIcon(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 512 512\",\n width: 512,\n height: 512,\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title === undefined ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, \"delete_icon\") : title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"image\", {\n width: 512,\n height: 512,\n id: \"img1\",\n href: \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAAAAXNSR0IB2cksfwAAAIpQTFRFRERARERARERAAAAAOjo3DAwLBQUFAgICAwMCBgYFAQEBBAQDLi4rBAQEHBwaDg4NBQUEEREQCAgIAwMDAQEABgYGEhIRFhYUJiYkAgIBKCglMjIvCwsKCgoKBwcHFBQTDAwMICAeCQkIGRkXDQ0MKionLCwqCwsLNDQxExMSIyMhFxcWCAgHDw8PHVjAeAAAAC50Uk5TBgUAAAAAAAA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MoU5wAKZwhxggSyiCYQJsYAmEKbE2jeBMCnWvAmEabHWTSBMjSnMARbIFOYAC2QKc4DFMZrAwRlN4OCMJnBwRhM4OKMJHJzRBA7OaAIHZzSBg7NJYA6wQKYwB1ggU5gDLJApzAEWyGgCB2c0gYMzmsDBGU3g4IwmcHSmMAdYIFOYAyyQKcwBFsdoAgdnNIGDs/8CaZ8+rih+Zl8AAAAASUVORK5CYII=\"\n }), /*#__PURE__*/React.createElement(\"image\", {\n width: 225,\n height: 225,\n id: \"img2\",\n href: \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAYAAAA+s9J6AAAQqElEQVR4Xu2dS+w8RRHHp2d/vJFIgPhICJGgxMdFExXFVzR69IIcFDEmHCBexAN6MOJB5KAnT3LRkzfhIOAJOfrioIFoDGBMwBiICSjIm99vx6p9/J67O9Uz3dNV1d9Nlv+P3Zruqk/Vd7pnenamafACARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARCojUCoLeB88c4ubJr2gqYJM3ofrPo5vwnNuYd9dpt63/hhj5u926z7P9XOOt0df7+tkQ2fh/2jhg6/5j/my8+7dtne/nP5+KJlEDgi8D4S250htI+sCpmLEe8lg0dpB/RFFAsI5CJwAzX8OAQn2uHwCHlLrkSg3foIfJRCfgriE4nv9IyAuV1bX8kg4pQEfgjxDRLfcTHyqHhTyqSgrUoI0DHfAxDgaAEeF+OdlZQOwkxBIIRwPwSYVIBrMX43RX7Qhn8CvMfG2c58DL7qv4QQ4RgCH4MAs++A+Bjx6jFJ8rYtFutPZpQLJBWT3hV1J8U0hNefKfYPOYl/dBh7o1vw08BtAwRIQgsPt6F9gaT7vyWKwEPJK13X/fcsmlO67Jo3aNb3Ktm9mAHj+TvaPLqK54RROOfUNnT1z8bXeasZA/0zv5L+c3Mkuw+SPS/q87E3XiBwSIBHQemxINveSu+LwW9B4AP0jl1LZXu8QOCQwCciBEiXZkF8m2unvSeCI+/IrkMNgsCCQBvC3cLi4cK5CN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+kNIfFo0LHKLI46C1XDp6vR0320P+V40Vxb0E13nIXA1NbvrFo2n6yKPF2i1+aNEiG3b/h2s3BH4kyT3iwEzhPvdRa8ooM9JE9G2swcV+Q1XRhCg52bcJ837yu76Ed1hUwEBvjN035R0/T1PXz4paBMmOgl8PHIKynlXeOfw3XAtHuTeQCHdG1Mz9NSjB7pu/it6HNg59F5d97Q+4T3ohFvfRhKufW3EhFjKVhLnJt84dtp2uflRI8u/6Ms36fDvU/Tn1wYEdmNsfQzoI+kmQyEmdWJAY8/QNm8fsJ32TUoIs0QNrONM3fcTlOBrtSf5tH+pIUwV/3upI36cmFX/p+JUUz8s7Gvo/Q9rQVtdJ/wbgb7NGmz4m40AC5CnoeYEmI3IdA23P10eQuBdOYNvT1dz6OkMgdDMflZ5Ada+E7oTstBB4A5yI+ZqitoL10P8nO+bdJQfvFgT4OsKIcQ6pua8FvgelL5eAt+EGN0eI/NO9la9pQfPThPgRf3HcbxoXpAsPF4XvoXeZp5DHyPHGtbZ+BcV56zEWEO8MfnXZMu52XSxwj59/rQmR+ELCIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIwl8H/lwAl8uvx0MgAAAABJRU5ErkJggg==\"\n }))), _style || (_style = /*#__PURE__*/React.createElement(\"style\", null)), _use || (_use = /*#__PURE__*/React.createElement(\"use\", {\n id: \"Background\",\n href: \"#img1\",\n x: 0,\n y: 0\n })), _use2 || (_use2 = /*#__PURE__*/React.createElement(\"use\", {\n id: \"images-removebg-preview\",\n href: \"#img2\",\n transform: \"matrix(2.427,0,0,2.427,-17,-17)\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgDeleteIcon);\nexport default __webpack_public_path__ + \"static/media/delete_icon.bcba3f6e7a8b71ce50514cd3228b14ec.svg\";\nexport { ForwardRef as ReactComponent };","import React, {Dispatch, FC, KeyboardEventHandler, SetStateAction, useEffect} from 'react';\r\nimport Button from \"./UI/Button/Button\";\r\n\r\ninterface ModalDeleteProps {\r\n isModalOpened: boolean;\r\n setIsModalOpened: Dispatch>;\r\n deleteTodo : (id:number) => void;\r\n id: number;\r\n}\r\n\r\nconst ModalDelete: FC = ({isModalOpened, setIsModalOpened, deleteTodo, id}) => {\r\n\r\n useEffect(() => {\r\n const disableScroll = () => {\r\n document.body.classList.add('modal-open');\r\n };\r\n const enableScroll = () => {\r\n document.body.classList.remove('modal-open');\r\n };\r\n\r\n if (isModalOpened) {\r\n disableScroll();\r\n } else {\r\n enableScroll();\r\n }\r\n return () => {\r\n enableScroll();\r\n };\r\n }, [isModalOpened]);\r\n\r\n const handleKeyDownInDiv: KeyboardEventHandler = (e) => {\r\n if (e.key === 'Escape') setIsModalOpened(false);\r\n if (e.key === 'Enter') handleDeleteTodo();\r\n };\r\n\r\n const handleDeleteTodo = (): void => {\r\n deleteTodo(id);\r\n setIsModalOpened(false);\r\n }\r\n\r\n return (\r\n \r\n
\r\n
Are you sure you want to delete the note?
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default ModalDelete;","import React, {Dispatch, SetStateAction} from 'react';\r\nimport {ITodo} from \"../types/data\";\r\n// @ts-ignore\r\nimport editIcon from \"../assets/edit_icon.png\";\r\n// @ts-ignore\r\nimport deleteIcon from \"../assets/delete_icon.svg\";\r\nimport ModalDelete from \"./ModalDelete\";\r\n\r\n\r\ninterface ITodoItem extends ITodo {\r\n toggleTodo : (id : number) => void;\r\n deleteTodo : (id:number) => void;\r\n isDeleteModalOpened: boolean;\r\n setIsDeleteModalOpened: Dispatch>\r\n}\r\n\r\nconst ToDoItem :React.FC = (props) => {\r\n\r\n const {\r\n id,\r\n title,\r\n note,\r\n complete,\r\n toggleTodo,\r\n deleteTodo,\r\n isDeleteModalOpened,\r\n setIsDeleteModalOpened\r\n } = props;\r\n \r\n return (\r\n \r\n
\r\n
\r\n
{title}
\r\n
\r\n {/*
*/}\r\n
\r\n
\r\n
\r\n
\r\n
{note}
\r\n
\r\n
\r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nexport default ToDoItem;","import React, {Dispatch, SetStateAction} from 'react';\r\nimport {ITodo} from \"../types/data\";\r\nimport ToDoItem from \"./ToDoItem\";\r\nimport {Simulate} from \"react-dom/test-utils\";\r\nimport toggle = Simulate.toggle;\r\ninterface ITodoList {\r\n items : ITodo[];\r\n toggleTodo : (id:number) => void;\r\n deleteTodo : (id:number) => void;\r\n isDeleteModalOpened: boolean;\r\n setIsDeleteModalOpened: Dispatch>\r\n}\r\n\r\nconst ToDoList:React.FC = (props) => {\r\n\r\n const {\r\n items,\r\n toggleTodo,\r\n deleteTodo,\r\n isDeleteModalOpened,\r\n setIsDeleteModalOpened\r\n } = props;\r\n\r\n return (\r\n \r\n {\r\n props.items.map(item =>\r\n \r\n )\r\n }\r\n
\r\n );\r\n};\r\n\r\nexport default ToDoList;","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","// extracted by mini-css-extract-plugin\nexport default {\"button\":\"Button_button__OdBUH\"};","import React, { ButtonHTMLAttributes, FC } from 'react';\r\n// @ts-ignore\r\nimport styles from \"./Button.module.css\"\r\n\r\ninterface ButtonProps extends ButtonHTMLAttributes {\r\n children: string;\r\n}\r\n\r\nconst Button: FC = ({children, ...props}) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default Button;","// extracted by mini-css-extract-plugin\nexport default {\"wrapper\":\"Modal_wrapper__DmD+P\",\"header\":\"Modal_header__OcD7h\",\"modal\":\"Modal_modal__Vm9u9\",\"closeButton\":\"Modal_closeButton__TYObM\",\"title\":\"Modal_title__XEx2V\",\"opened\":\"Modal_opened__4Wi3I\",\"closed\":\"Modal_closed__NRTs0\",\"error\":\"Modal_error__4SYes\",\"noError\":\"Modal_noError__SO8RG\"};","export default function _objectDestructuringEmpty(obj) {\n if (obj == null) throw new TypeError(\"Cannot destructure \" + obj);\n}","// extracted by mini-css-extract-plugin\nexport default {\"input\":\"Input_input__P5Esx\"};","import React, {FC, InputHTMLAttributes} from 'react'\r\n// @ts-ignore\r\nimport styles from \"./Input.module.css\";\r\n\r\n\r\nconst Input: FC> = ({...props}) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default Input;","// extracted by mini-css-extract-plugin\nexport default {\"textarea\":\"TextArea_textarea__RMn3T\"};","import React, {FC, TextareaHTMLAttributes} from 'react';\r\n// @ts-ignore\r\nimport styles from \"./TextArea.module.css\"\r\n\r\nconst TextArea: FC> = ({...props}) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default TextArea;","import React, {ChangeEvent, ChangeEventHandler, FC, KeyboardEventHandler, useEffect, useState} from 'react';\r\n// @ts-ignore\r\nimport styles from \"./Modal.module.css\";\r\nimport Input from \"../Input/Input\";\r\nimport TextArea from \"../TextArea/TextArea\";\r\nimport Button from \"../Button/Button\";\r\nimport {ITodo} from \"../../../types/data\";\r\n\r\ninterface ModalProps {\r\n isModalOpened: boolean;\r\n closeModal: () => void;\r\n allTodos: ITodo[];\r\n uncompletedTodos: ITodo[];\r\n setAllTodos: (todos: ITodo[]) => void;\r\n setUncompletedTodos: (todos: ITodo[]) => void;\r\n}\r\n\r\nconst Modal: FC =\r\n ({\r\n isModalOpened,\r\n closeModal,\r\n allTodos,\r\n uncompletedTodos,\r\n setAllTodos,\r\n setUncompletedTodos\r\n }) => {\r\n\r\n const [title, setTitle] = useState('');\r\n const [note, setNote] = useState('');\r\n const [isError, setIsError] = useState(false);\r\n useEffect(() => {\r\n const disableScroll = () => {\r\n document.body.classList.add('modal-open');\r\n };\r\n const enableScroll = () => {\r\n document.body.classList.remove('modal-open');\r\n };\r\n\r\n if (isModalOpened) {\r\n disableScroll();\r\n } else {\r\n enableScroll();\r\n }\r\n return () => {\r\n enableScroll();\r\n };\r\n }, [isModalOpened]);\r\n\r\n\r\n\r\n const handleTitle: React.ChangeEventHandler = (e: ChangeEvent) => {\r\n setTitle(e.target.value);\r\n };\r\n\r\n const handleNote: ChangeEventHandler = (e: ChangeEvent) => {\r\n setNote(e.target.value);\r\n };\r\n\r\n const handleKeyDownInText: KeyboardEventHandler = (e) => {\r\n if (e.key === 'Enter') addTodo();\r\n };\r\n\r\n const handleKeyDownInDiv: KeyboardEventHandler = (e) => {\r\n if (e.key === 'Escape') closeModal();\r\n };\r\n\r\n const addTodo = () => {\r\n if (title && note) {\r\n const id = Date.now();\r\n setAllTodos([...allTodos, {\r\n id:id,\r\n title: title,\r\n note: note,\r\n complete:false\r\n }]);\r\n setUncompletedTodos([...uncompletedTodos, {\r\n id:id,\r\n title: title,\r\n note: note,\r\n complete:false\r\n }]);\r\n // localStorage.setItem('allTodos', JSON.stringify(allTodos));\r\n // localStorage.setItem('uncompletedTodos', JSON.stringify(uncompletedTodos));\r\n setTitle('');\r\n setNote('');\r\n closeModal();\r\n setIsError(false);\r\n }\r\n else {\r\n setIsError(true);\r\n }\r\n };\r\n return (\r\n \r\n
e.stopPropagation()}>\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default Modal;","import React, {useEffect, useRef} from 'react';\r\nimport {useState} from \"react\";\r\nimport {ITodo} from \"../types/data\";\r\nimport ToDoList from \"./ToDoList\";\r\nimport \"../styles/style.css\"\r\nimport Button from \"./UI/Button/Button\";\r\nimport Modal from \"./UI/Modal/Modal\";\r\n\r\n\r\nconst App: React.FC = () => {\r\n\r\n const [allTodos, setAllTodos] = useState([]);\r\n const [uncompletedTodos, setUncompletedTodos] = useState([]);\r\n const [isModalOpened, setIsModalOpened] = useState(false);\r\n const [completedTodos, setCompletedTodos] = useState([]);\r\n const [isDeleteModalOpened, setIsDeleteModalOpened] = useState(false);\r\n\r\n useEffect(() => {\r\n const savedUncompletedTodos = localStorage.getItem('uncompletedTodos');\r\n const savedCompletedTodos = localStorage.getItem('completedTodos');\r\n\r\n if (savedUncompletedTodos) setUncompletedTodos(JSON.parse(savedUncompletedTodos));\r\n if (savedCompletedTodos) setCompletedTodos(JSON.parse(savedCompletedTodos));\r\n }, []);\r\n\r\n useEffect(() => {\r\n localStorage.setItem('uncompletedTodos', JSON.stringify(uncompletedTodos));\r\n }, [uncompletedTodos]);\r\n\r\n useEffect(() => {\r\n localStorage.setItem('completedTodos', JSON.stringify(completedTodos));\r\n }, [completedTodos]);\r\n\r\n const toggleTodo = (id: number): void => {\r\n const todoToToggle = allTodos.find(todo => todo.id === id);\r\n if (todoToToggle) {\r\n if (!todoToToggle.complete) {\r\n todoToToggle.complete = true;\r\n setUncompletedTodos(prevTodos => prevTodos.filter(todo => todo.id !== id));\r\n setCompletedTodos(prevCompletedTodos => [...prevCompletedTodos, todoToToggle]);\r\n // localStorage.setItem('uncompletedTodos', JSON.stringify(uncompletedTodos));\r\n // localStorage.setItem('completedTodos', JSON.stringify(completedTodos));\r\n }\r\n else if (todoToToggle.complete) {\r\n todoToToggle.complete = false;\r\n setCompletedTodos(prevCompletedTodos => prevCompletedTodos.filter(todo => todo.id !== id));\r\n setUncompletedTodos(prevTodos => [...prevTodos, todoToToggle]);\r\n // localStorage.setItem('uncompletedTodos', JSON.stringify(uncompletedTodos));\r\n // localStorage.setItem('completedTodos', JSON.stringify(completedTodos));\r\n }\r\n }\r\n };\r\n\r\n const deleteTodo =(id: number): void => {\r\n setAllTodos(prevAllTodos => prevAllTodos.filter(todo => todo.id !== id));\r\n setUncompletedTodos(prevUncompletedTodos => prevUncompletedTodos.filter(todo => todo.id !== id));\r\n setCompletedTodos(prevCompletedTodos => prevCompletedTodos.filter(todo => todo.id !== id));\r\n }\r\n\r\n const openModal = (): void => {\r\n setIsModalOpened(true);\r\n };\r\n const closeModal = (): void => {\r\n setIsModalOpened(false);\r\n };\r\n\r\n\r\n return (\r\n \r\n
\r\n To Do List\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n {\r\n uncompletedTodos.length\r\n ?
\r\n
Uncompleted:
\r\n \r\n \r\n : \"\"\r\n }\r\n {\r\n completedTodos.length\r\n ?
\r\n
Completed:
\r\n \r\n \r\n : \"\"\r\n }\r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default App;","import React from 'react';\nimport ReactDOM from 'react-dom/client';\nimport App from './components/App';\n\nconst root = ReactDOM.createRoot(\n document.getElementById('root') as HTMLElement\n);\nroot.render(\n \n);\n"],"names":["k","require","l","m","a","b","c","alternate","return","flags","tag","n","Error","q","Object","assign","r","keyCode","charCode","t","u","v","f","g","e","d","this","_reactName","_targetInst","type","nativeEvent","target","currentTarget","hasOwnProperty","isDefaultPrevented","defaultPrevented","returnValue","isPropagationStopped","prototype","preventDefault","stopPropagation","cancelBubble","persist","isPersistent","w","eventPhase","bubbles","cancelable","timeStamp","Date","now","isTrusted","x","y","view","detail","z","A","B","D","screenX","screenY","clientX","clientY","pageX","pageY","ctrlKey","shiftKey","altKey","metaKey","getModifierState","C","button","buttons","relatedTarget","fromElement","srcElement","toElement","movementX","movementY","dataTransfer","animationName","elapsedTime","pseudoElement","clipboardData","window","data","da","Esc","Spacebar","Left","Up","Right","Down","Del","Win","Menu","Apps","Scroll","MozPrintableKey","ea","fa","Alt","Control","Meta","Shift","ha","na","h","N","G","Array","slice","call","arguments","apply","oa","onError","key","String","fromCharCode","code","location","repeat","locale","which","pointerId","width","height","pressure","tangentialPressure","tiltX","tiltY","twist","pointerType","isPrimary","touches","targetTouches","changedTouches","propertyName","deltaX","wheelDeltaX","deltaY","wheelDeltaY","wheelDelta","deltaZ","deltaMode","H","I","J","K","pa","qa","L","isArray","M","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","Events","sa","ta","ua","va","wa","xa","unstable_act","ya","za","child","sibling","stateNode","current","p","push","O","_reactInternals","nodeType","tagName","keys","join","P","Q","render","setState","R","S","T","className","getAttribute","split","every","indexOf","U","toUpperCase","V","W","ra","X","length","Y","disabled","Ba","_dispatchListeners","_dispatchInstances","Z","Ca","Set","Da","isValidElement","toLowerCase","has","Aa","unstable_batchedUpdates","constructor","release","forEach","exports","Simulate","aa","ca","encodeURIComponent","add","ia","document","createElement","ja","ka","la","ma","acceptsBooleans","attributeName","attributeNamespace","mustUseProperty","sanitizeURL","removeEmptyString","isNaN","test","removeAttribute","setAttribute","setAttributeNS","replace","xlinkHref","Symbol","for","Ea","Fa","Ga","Ha","Ia","Ja","iterator","Ka","La","Ma","stack","trim","match","Na","Oa","prepareStackTrace","defineProperty","set","Reflect","construct","displayName","includes","name","Pa","Qa","$$typeof","_context","_payload","_init","Ra","Sa","Ta","nodeName","Va","_valueTracker","getOwnPropertyDescriptor","get","configurable","enumerable","getValue","setValue","stopTracking","Ua","Wa","checked","value","Xa","activeElement","body","Ya","defaultChecked","defaultValue","_wrapperState","initialChecked","Za","initialValue","controlled","ab","bb","cb","db","ownerDocument","eb","fb","options","selected","defaultSelected","gb","dangerouslySetInnerHTML","children","hb","ib","jb","textContent","kb","lb","mb","nb","namespaceURI","innerHTML","valueOf","toString","firstChild","removeChild","appendChild","MSApp","execUnsafeLocalFunction","ob","lastChild","nodeValue","pb","animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","qb","rb","sb","style","setProperty","charAt","substring","tb","menuitem","area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","ub","vb","is","wb","xb","correspondingUseElement","parentNode","yb","zb","Ab","Bb","Cb","Db","Eb","Fb","Gb","Hb","Ib","Jb","Kb","Lb","Mb","addEventListener","removeEventListener","Nb","Ob","Pb","Qb","Rb","Sb","Tb","Vb","Wb","memoizedState","dehydrated","Xb","Zb","Yb","$b","ac","unstable_scheduleCallback","bc","unstable_cancelCallback","cc","unstable_shouldYield","dc","unstable_requestPaint","unstable_now","ec","unstable_getCurrentPriorityLevel","fc","unstable_ImmediatePriority","gc","unstable_UserBlockingPriority","hc","unstable_NormalPriority","ic","unstable_LowPriority","jc","unstable_IdlePriority","kc","lc","oc","Math","clz32","pc","qc","log","LN2","rc","sc","tc","uc","pendingLanes","suspendedLanes","pingedLanes","entangledLanes","entanglements","vc","xc","yc","zc","Ac","eventTimes","Cc","Dc","Ec","Fc","Gc","Hc","Ic","Jc","Kc","Lc","Mc","Nc","Oc","Map","Pc","Qc","Rc","Sc","delete","Tc","blockedOn","domEventName","eventSystemFlags","targetContainers","Vc","Wc","priority","isDehydrated","containerInfo","Xc","Yc","dispatchEvent","shift","Zc","$c","ad","bd","cd","ReactCurrentBatchConfig","dd","ed","transition","fd","gd","hd","id","Uc","jd","kd","ld","md","nd","od","pd","qd","rd","wd","xd","yd","sd","td","ud","vd","Ad","zd","Bd","Dd","Fd","Hd","Id","Jd","Ld","Md","Nd","Od","Pd","Qd","Rd","Td","Vd","Xd","Yd","Zd","$d","ae","be","documentMode","ce","de","ee","fe","ge","he","ie","le","color","date","datetime","email","month","number","password","range","search","tel","text","time","url","week","me","ne","oe","event","listeners","pe","qe","re","se","te","ue","ve","we","xe","ye","ze","oninput","Ae","detachEvent","Be","Ce","attachEvent","De","Ee","Fe","He","Ie","Je","Ke","node","offset","nextSibling","Le","contains","compareDocumentPosition","Me","HTMLIFrameElement","contentWindow","href","Ne","contentEditable","Oe","focusedElem","selectionRange","documentElement","start","end","selectionStart","selectionEnd","min","defaultView","getSelection","extend","rangeCount","anchorNode","anchorOffset","focusNode","focusOffset","createRange","setStart","removeAllRanges","addRange","setEnd","element","left","scrollLeft","top","scrollTop","focus","Pe","Qe","Re","Se","Te","Ue","Ve","We","animationend","animationiteration","animationstart","transitionend","Xe","Ye","Ze","animation","$e","af","bf","cf","df","ef","ff","gf","hf","lf","mf","concat","nf","Ub","instance","listener","of","pf","qf","rf","random","sf","bind","capture","passive","F","tf","uf","parentWindow","vf","wf","$a","ba","je","char","ke","unshift","xf","yf","zf","Af","Bf","Cf","Df","Ef","__html","Ff","setTimeout","Gf","clearTimeout","Hf","Promise","Jf","queueMicrotask","resolve","then","catch","If","Kf","Lf","Mf","previousSibling","Nf","Of","Pf","Qf","Rf","Sf","Tf","Uf","E","Vf","Wf","Xf","Yf","contextTypes","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","Zf","childContextTypes","$f","ag","bg","getChildContext","cg","__reactInternalMemoizedMergedChildContext","dg","eg","fg","gg","hg","jg","kg","lg","mg","ng","og","pg","qg","rg","sg","tg","ug","vg","wg","xg","yg","zg","Ag","Bg","elementType","deletions","Cg","pendingProps","overflow","treeContext","retryLane","Dg","mode","Eg","Fg","Gg","memoizedProps","Hg","Ig","Jg","Kg","Lg","defaultProps","Mg","Ng","Og","Pg","Qg","Rg","_currentValue","Sg","childLanes","Tg","dependencies","firstContext","lanes","Ug","Vg","context","memoizedValue","next","Wg","Xg","Yg","interleaved","Zg","$g","ah","updateQueue","baseState","firstBaseUpdate","lastBaseUpdate","shared","pending","effects","bh","ch","eventTime","lane","payload","callback","dh","eh","fh","gh","hh","ih","jh","Component","refs","kh","nh","isMounted","enqueueSetState","lh","mh","enqueueReplaceState","enqueueForceUpdate","oh","shouldComponentUpdate","isPureReactComponent","ph","contextType","state","updater","qh","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","rh","props","getDerivedStateFromProps","getSnapshotBeforeUpdate","UNSAFE_componentWillMount","componentWillMount","componentDidMount","sh","ref","_owner","_stringRef","th","uh","vh","index","wh","xh","yh","implementation","zh","Ah","done","Bh","Ch","Dh","Eh","Fh","Gh","Hh","Ih","Jh","Kh","Lh","Mh","revealOrder","Nh","Oh","_workInProgressVersionPrimary","Ph","ReactCurrentDispatcher","Qh","Rh","Sh","Th","Uh","Vh","Wh","Xh","Yh","Zh","$h","ai","bi","ci","baseQueue","queue","di","ei","fi","lastRenderedReducer","action","hasEagerState","eagerState","lastRenderedState","dispatch","gi","hi","ii","ji","ki","getSnapshot","li","mi","ni","lastEffect","stores","oi","pi","qi","ri","create","destroy","deps","si","ti","ui","vi","wi","xi","yi","zi","Ai","Bi","Ci","Di","Ei","Fi","Gi","Hi","Ii","Ji","readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","identifierPrefix","Ki","message","digest","Li","Mi","console","error","Ni","WeakMap","Oi","Pi","Qi","Ri","getDerivedStateFromError","componentDidCatch","Si","componentStack","Ti","pingCache","Ui","Vi","Wi","Xi","ReactCurrentOwner","Yi","Zi","$i","aj","bj","compare","cj","dj","ej","baseLanes","cachePool","transitions","fj","gj","hj","ij","jj","UNSAFE_componentWillUpdate","componentWillUpdate","componentDidUpdate","kj","lj","pendingContext","mj","Aj","Bj","Cj","Dj","nj","oj","pj","fallback","qj","rj","tj","dataset","dgst","uj","vj","_reactRetry","sj","subtreeFlags","wj","xj","isBackwards","rendering","renderingStartTime","last","tail","tailMode","yj","Ej","Fj","Gj","wasMultiple","multiple","suppressHydrationWarning","onClick","onclick","size","createElementNS","autoFocus","createTextNode","Hj","Ij","Jj","Kj","Lj","WeakSet","Mj","Nj","Oj","Qj","Rj","Sj","Tj","Uj","Vj","Wj","insertBefore","_reactRootContainer","Xj","Yj","Zj","ak","onCommitFiberUnmount","componentWillUnmount","bk","ck","dk","ek","fk","isHidden","gk","hk","display","ik","jk","kk","lk","__reactInternalSnapshotBeforeUpdate","src","Wk","mk","ceil","nk","ok","pk","qk","rk","sk","tk","uk","Infinity","vk","wk","xk","yk","zk","Ak","Bk","Ck","Dk","Ek","callbackNode","expirationTimes","expiredLanes","wc","callbackPriority","ig","Fk","Gk","Hk","Ik","Jk","Kk","Lk","Mk","Nk","Ok","Pk","finishedWork","finishedLanes","Qk","timeoutHandle","Rk","Sk","Tk","Uk","Vk","mutableReadLanes","Bc","Pj","onCommitFiberRoot","mc","onRecoverableError","Xk","onPostCommitFiberRoot","Yk","Zk","al","isReactComponent","pendingChildren","bl","mutableSourceEagerHydrationData","cl","cache","pendingSuspenseBoundaries","el","fl","gl","hl","il","jl","zj","$k","ll","reportError","ml","_internalRoot","nl","ol","pl","ql","sl","rl","unmount","unstable_scheduleHydration","splice","querySelectorAll","JSON","stringify","form","tl","usingClientEntryPoint","ul","findFiberByHostInstance","bundleType","version","rendererPackageName","vl","rendererConfig","overrideHookState","overrideHookStateDeletePath","overrideHookStateRenamePath","overrideProps","overridePropsDeletePath","overridePropsRenamePath","setErrorHandler","setSuspenseHandler","scheduleUpdate","currentDispatcherRef","findHostInstanceByFiber","findHostInstancesForRefresh","scheduleRefresh","scheduleRoot","setRefreshHandler","getCurrentFiber","reconcilerVersion","__REACT_DEVTOOLS_GLOBAL_HOOK__","wl","isDisabled","supportsFiber","inject","createPortal","dl","createRoot","unstable_strictMode","findDOMNode","flushSync","hydrate","hydrateRoot","hydratedSources","_getVersion","_source","unmountComponentAtNode","unstable_renderSubtreeIntoContainer","checkDCE","err","module","__self","__source","jsx","jsxs","forceUpdate","escape","_status","_result","default","Children","map","count","toArray","only","Fragment","Profiler","PureComponent","StrictMode","Suspense","cloneElement","createContext","_currentValue2","_threadCount","Provider","Consumer","_defaultValue","_globalName","createFactory","createRef","forwardRef","lazy","memo","startTransition","pop","sortIndex","performance","setImmediate","startTime","expirationTime","priorityLevel","navigator","scheduling","isInputPending","MessageChannel","port2","port1","onmessage","postMessage","unstable_Profiling","unstable_continueExecution","unstable_forceFrameRate","floor","unstable_getFirstCallbackNode","unstable_next","unstable_pauseExecution","unstable_runWithPriority","delay","unstable_wrapCallback","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","_arrayLikeToArray","arr","len","i","arr2","_unsupportedIterableToArray","o","minLen","from","_toConsumableArray","iter","TypeError","_slicedToArray","_i","_s","_e","_x","_r","_arr","_n","_d","_typeof","obj","_toPropertyKey","arg","hint","prim","toPrimitive","res","Number","_defineProperty","writable","ownKeys","object","enumerableOnly","getOwnPropertySymbols","symbols","filter","sym","_objectSpread2","getOwnPropertyDescriptors","defineProperties","_ref","isModalOpened","setIsModalOpened","deleteTodo","enableScroll","classList","remove","handleKeyDownInDiv","handleDeleteTodo","_jsx","onKeyDown","_jsxs","title","note","complete","toggleTodo","isDeleteModalOpened","setIsDeleteModalOpened","deleteIcon","alt","onChange","ModalDelete","toggle","items","item","ToDoItem","_objectSpread","excluded","sourceKeys","sourceSymbolKeys","propertyIsEnumerable","_objectWithoutProperties","_excluded","styles","_objectDestructuringEmpty","closeModal","allTodos","uncompletedTodos","setAllTodos","setUncompletedTodos","_useState2","setTitle","_useState4","setNote","_useState6","isError","setIsError","handleKeyDownInText","addTodo","Input","placeholder","TextArea","Button","_useState8","completedTodos","setCompletedTodos","_useState10","savedUncompletedTodos","localStorage","getItem","savedCompletedTodos","parse","setItem","todoToToggle","find","todo","prevCompletedTodos","prevTodos","prevAllTodos","prevUncompletedTodos","Modal","ToDoList","ReactDOM","getElementById","App"],"sourceRoot":""}
\ No newline at end of file