text: (this.webpackJsonpclient=this.webpackJsonpclient||[]).push([[0],{12:function(e,a,t){e.exports={flex:"style_flex__qTiME",respTable:"style_respTable__3aFWU",respTableCaption:"style_respTableCaption__1TExK",tableHeaderCell:"style_tableHeaderCell__23DED",respTableBody:"style_respTableBody__2xyn5",respTableRow:"style_respTableRow__4NB0a",tableBodyCell:"style_tableBodyCell__QYZhA",input:"style_input__1kGzF"}},17:function(e,a,t){e.exports={container:"style_container__mROwC",respTable:"style_respTable__QyK4P",respTableCaption:"style_respTableCaption__3OOip",h5:"style_h5__VtEFs",respTableBody:"style_respTableBody__2uLj0",respTableRow:"style_respTableRow__11A9f",tableBodyCell:"style_tableBodyCell__pgvyU",input:"style_input__3IREr"}},19:function(e,a,t){e.exports={container:"style_container__lbqJQ",boxPhoto:"style_boxPhoto__2bPYW",photoIcon:"style_photoIcon__2pHEv",input:"style_input__Z8EEH",folder:"style_folder__1rKXF",icon:"style_icon__1myO2",label:"style_label__1SlVX"}},33:function(e,a,t){e.exports={container:"style_container__VuN4M",docList:"style_docList__2RIfJ"}},36:function(e,a,t){e.exports={container:"style_container__KNTHb",settings:"style_settings__1fISt"}},38:function(e,a,t){e.exports={container:"style_container__12nJQ",docList:"style_docList__kEE56"}},39:function(e,a,t){e.exports={flex:"style_flex__EzO9K"}},49:function(e,a,t){},50:function(e,a,t){},57:function(e,a,t){"use strict";t.r(a);var s=t(0),c=t.n(s),l=t(21),r=t.n(l),n=(t(49),t(50),t(19)),i=t.n(n),o=t(24),d=t.n(o),b=t(1);var u=function(){return Object(b.jsxs)("div",{className:i.a.container,children:[Object(b.jsxs)("div",{className:i.a.boxPhoto,children:[Object(b.jsx)("i",{className:"fas fa-camera fa-2x ".concat(d()(i.a.photoIcon))}),Object(b.jsxs)("div",{className:"custom-file ".concat(d()(i.a.input)),children:[Object(b.jsx)("input",{type:"file",capture:"user",accept:"image/*",className:"custom-file-input",id:"customFile"}),Object(b.jsx)("label",{className:"custom-file-label ".concat(i.a.label),for:"customFile",children:"Choose file"})]})]}),Object(b.jsx)("div",{className:i.a.folder,children:Object(b.jsx)("i",{className:"fas fa-folder-plus fa-2x ".concat(d()(i.a.icon))})})]})},j=t(38),m=t.n(j),O=[{id:{status:!1,id:1},document:{status:!1,document:"passport"},name:{status:!1,name:"\u0418\u0432\u0430\u043d \u0418\u0432\u0430\u043d\u043e\u0432\u0438\u0447"},surname:{status:!1,surname:"\u0418\u0432\u0430\u043d\u043e\u0432"},dateOfBirth:{status:!1,dateOfBirth:"23.05.1990"},placeOfBirth:{status:!1,placeOfBirth:"\u041c\u043e\u0441\u043a\u0432\u0430"},gender:{status:!1,gender:"\u043c\u0443\u0436."},serialNumber:{status:!1,serialNumber:"50 09 2190806"},dateOfIssue:{status:!1,dateOfIssue:"24.10.2010"},departmentCode:{status:!1,departmentCode:"540-513"},registration:{status:!1,registration:"\u041c\u043e\u0441\u043a\u0432\u0430, \u0412\u0430\u0440\u0448\u0430\u0432\u0441\u043a\u043e\u0435 \u0448\u043e\u0441\u0441\u0435, \u0434\u043e\u043c 5, \u043a\u0432. 25"}},{id:{status:!1,id:2},document:{status:!1,document:"passport"},name:{status:!1,name:"\u041a\u0441\u0435\u043d\u0438\u044f \u0418\u0432\u0430\u043d\u043e\u0432\u043d\u0430"},surname:{status:!1,surname:"\u0418\u0432\u0430\u043d\u043e\u0432\u0430"},dateOfBirth:{status:!1,dateOfBirth:"23.05.1990"},placeOfBirth:{status:!1,placeOfBirth:"\u041c\u043e\u0441\u043a\u0432\u0430"},gender:{status:!1,gender:"\u0436\u0435\u043d."},serialNumber:{status:!1,serialNumber:"50 09 2197007"},dateOfIssue:{status:!1,dateOfIssue:"24.10.2010"},departmentCode:{status:!1,departmentCode:"540-513"},registration:{status:!1,registration:"\u041c\u043e\u0441\u043a\u0432\u0430, \u0412\u0430\u0440\u0448\u0430\u0432\u0441\u043a\u043e\u0435 \u0448\u043e\u0441\u0441\u0435, \u0434\u043e\u043c 5, \u043a\u0432. 25"}},{id:{status:!1,id:3},document:{status:!1,document:"passport"},name:{status:!1,name:"\u041c\u0430\u0440\u0438\u044f \u0418\u0432\u0430\u043d\u043e\u0432\u043d\u0430"},surname:{status:!1,surname:"\u0418\u0432\u0430\u043d\u043e\u0432\u0430"},dateOfBirth:{status:!1,dateOfBirth:"23.05.1995"},placeOfBirth:{status:!1,placeOfBirth:"\u041c\u043e\u0441\u043a\u0432\u0430"},gender:{status:!1,gender:"\u0436\u0435\u043d."},serialNumber:{status:!1,serialNumber:"50 09 2190507"},dateOfIssue:{dateOfIssue:"24.10.2015",status:!1},departmentCode:{status:!1,departmentCode:"540-513"},registration:{status:!1,registration:"\u041c\u043e\u0441\u043a\u0432\u0430, \u0412\u0430\u0440\u0448\u0430\u0432\u0441\u043a\u043e\u0435 \u0448\u043e\u0441\u0441\u0435, \u0434\u043e\u043c 5, \u043a\u0432. 25"}},{id:{status:!1,id:4},document:{status:!1,document:"passport"},name:{status:!1,name:"\u0418\u0433\u043e\u0440\u044c \u0410\u043b\u0435\u043a\u0441\u0435\u0435\u0432\u0438\u0447"},surname:{status:!1,surname:"\u0418\u0432\u0430\u043d\u043e\u0432"},dateOfBirth:{status:!1,dateOfBirth:"23.05.1967"},placeOfBirth:{place:"\u041c\u043e\u0441\u043a\u0432\u0430",placeOfBirth:!1},gender:{gender:"\u043c\u0443\u0436.",status:!1},serialNumber:{serialNumber:"50 09 2190557",status:!1},dateOfIssue:{dateOfIssue:"24.10.2000",status:!1},departmentCode:{code:"540-513",departmentCode:!1},registration:{registration:"\u041c\u043e\u0441\u043a\u0432\u0430, \u0412\u0430\u0440\u0448\u0430\u0432\u0441\u043a\u043e\u0435 \u0448\u043e\u0441\u0441\u0435, \u0434\u043e\u043c 5, \u043a\u0432. 25",status:!1}},{id:{status:!1,id:1},document:{status:!1,document:"passport"},name:{status:!1,name:"\u0418\u0432\u0430\u043d \u0418\u0432\u0430\u043d\u043e\u0432\u0438\u0447"},surname:{status:!1,surname:"\u0418\u0432\u0430\u043d\u043e\u0432"},dateOfBirth:{status:!1,dateOfBirth:"23.05.1990"},placeOfBirth:{status:!1,placeOfBirth:"\u041c\u043e\u0441\u043a\u0432\u0430"},gender:{status:!1,gender:"\u043c\u0443\u0436."},serialNumber:{status:!1,serialNumber:"50 09 2190806"},dateOfIssue:{status:!1,dateOfIssue:"24.10.2010"},departmentCode:{status:!1,departmentCode:"540-513"},registration:{status:!1,registration:"\u041c\u043e\u0441\u043a\u0432\u0430, \u0412\u0430\u0440\u0448\u0430\u0432\u0441\u043a\u043e\u0435 \u0448\u043e\u0441\u0441\u0435, \u0434\u043e\u043c 5, \u043a\u0432. 25"}}],p=t(33),h=t.n(p),x=t(25);var f=function(e){var a=e.id,t=e.document,s=e.name,c=e.surname;return Object(b.jsx)("div",{className:h.a.container,children:Object(b.jsx)(x.b,{to:"/info/".concat(a),children:Object(b.jsxs)("div",{className:h.a.docList,children:[Object(b.jsx)("i",{class:"fas fa-id-card-alt fa-2x"}),Object(b.jsxs)("p",{children:[t.document,"        ",s," ",c]})]})})},a)};var _=function(){return Object(b.jsx)("div",{className:m.a.container,children:O&&O.map((function(e){return Object(b.jsx)(f,{id:e.id.id,document:e.document,name:e.name.name,surname:e.surname.surname})}))})},y=t(36),v=t.n(y);var C=function(){return Object(b.jsxs)("div",{className:v.a.container,children:[Object(b.jsx)("i",{className:"fas fa-cogs fa-2x ".concat(d()(v.a.settings))}),Object(b.jsx)(u,{}),Object(b.jsx)(_,{})]})},B=t(4),g=t(22),N=t(20),k=t(76),T=t(12),I=t.n(T),P=t(77),R=t(8),w=t(31),E=Object(R.a)({root:{color:w.a[400],"&$checked":{color:w.a[600]}},checked:{}})((function(e){return Object(b.jsx)(k.a,Object(N.a)({color:"default"},e))}));var F=function(e){var a=e.infoCard,t=Object(s.useState)(a),c=Object(g.a)(t,2),l=c[0],r=c[1],n=Object.keys(l[0]),i=function(e){var a=e.target.value;r((function(e){return e.map((function(e){for(var t in e)if(t==a)return Object(N.a)(Object(N.a)({},e),e[a].status=!e[a].status)}))}))};return Object(b.jsx)("div",{className:I.a.flex,children:Object(b.jsx)("div",{id:I.a.respTable,children:Object(b.jsxs)("div",{id:I.a.respTableCaption,children:[Object(b.jsxs)("div",{id:I.a.respTableBody,children:[Object(b.jsx)("h5",{children:"Checks document"}),Object(b.jsxs)("div",{className:I.a.respTableRow,children:[Object(b.jsx)("div",{className:I.a.tableBodyCell,children:Object(b.jsx)(P.a,{control:Object(b.jsx)(E,{value:n[2],checked:l[0].name.status,onChange:i,color:"default",inputProps:{"aria-label":"primary checkbox"},name:"checkedG"}),label:l[0].name.name})}),Object(b.jsx)("div",{className:I.a.tableBodyCell,children:Object(b.jsx)(P.a,{control:Object(b.jsx)(E,{value:n[3],checked:l[0].surname.status,onChange:i,color:"default",inputProps:{"aria-label":"primary checkbox"},name:"checkedG"}),label:l[0].surname.surname})})]}),Object(b.jsxs)("div",{className:I.a.respTableRow,children:[Object(b.jsx)("div",{className:I.a.tableBodyCell,children:Object(b.jsx)(P.a,{control:Object(b.jsx)(E,{value:n[1],checked:l[0].document.status,onChange:i,color:"default",inputProps:{"aria-label":"primary checkbox"},name:"checkedG"}),label:l[0].document.document})}),Object(b.jsx)("div",{className:I.a.tableBodyCell,children:Object(b.jsx)(P.a,{control:Object(b.jsx)(E,{value:n[4],checked:l[0].dateOfBirth.status,onChange:i,color:"default",inputProps:{"aria-label":"primary checkbox"},name:"checkedG"}),label:l[0].dateOfBirth.dateOfBirth})})]}),Object(b.jsxs)("div",{className:I.a.respTableRow,children:[Object(b.jsx)("div",{className:I.a.tableBodyCell,children:Object(b.jsx)(P.a,{control:Object(b.jsx)(E,{value:n[5],checked:l[0].placeOfBirth.status,onChange:i,color:"default",inputProps:{"aria-label":"primary checkbox"},name:"checkedG"}),label:l[0].placeOfBirth.placeOfBirth})}),Object(b.jsx)("div",{className:I.a.tableBodyCell,children:Object(b.jsx)(P.a,{control:Object(b.jsx)(E,{value:n[6],checked:l[0].gender.status,onChange:i,color:"default",inputProps:{"aria-label":"primary checkbox"},name:"checkedG"}),label:l[0].gender.gender})})]})]}),Object(b.jsx)("h5",{children:"Images"})]})})})},G=t(17),D=t.n(G),H=t.p+"static/media/docImage.57fbc111.png";var L=function(){return Object(b.jsx)(b.Fragment,{children:Object(b.jsx)("div",{className:D.a.container,children:Object(b.jsxs)("div",{id:D.a.respTableCaption,children:[Object(b.jsxs)("div",{className:D.a.respTableRow,children:[Object(b.jsx)("div",{className:D.a.tableBodyCell,children:Object(b.jsx)("img",{src:H,alt:"imageDoc"})}),Object(b.jsx)("div",{className:D.a.tableBodyCell,children:Object(b.jsx)("img",{src:H,alt:"imageDoc"})})]}),Object(b.jsx)("div",{className:D.a.tableBodyCell,children:Object(b.jsx)("img",{src:H,alt:"imageDoc"})}),Object(b.jsx)("div",{className:D.a.tableBodyCell,children:Object(b.jsx)("img",{src:H,alt:"imageDoc"})}),Object(b.jsxs)("div",{className:D.a.respTableRow,children:[Object(b.jsx)("div",{className:D.a.tableBodyCell,children:Object(b.jsx)("img",{src:H,alt:"imageDoc"})}),Object(b.jsx)("div",{className:D.a.tableBodyCell,children:Object(b.jsx)("img",{src:H,alt:"imageDoc"})})]})]})})})},S=t(9),J=t.n(S);var K=function(e){var a=e.infoCard,t=Object(s.useState)(a),c=Object(g.a)(t,2),l=c[0],r=c[1],n=Object.keys(l[0]),i=function(e){var a=e.target.value;r((function(e){return e.map((function(e){for(var t in e)if(t==a)return Object(N.a)(Object(N.a)({},e),e[a].status=!e[a].status)}))}))};return Object(b.jsx)("div",{id:J.a.respTable,children:Object(b.jsx)("div",{id:J.a.respTableCaption,children:Object(b.jsxs)("div",{id:J.a.respTableBody,children:[Object(b.jsxs)("div",{className:J.a.respTableRow,children:[Object(b.jsx)("div",{className:J.a.tableBodyCell,children:Object(b.jsx)(P.a,{control:Object(b.jsx)(k.a,{value:n[1],checked:l[0].document.status,onChange:i,color:"default"}),label:l[0].document.document})}),Object(b.jsx)("div",{className:J.a.tableBodyCell,children:Object(b.jsx)(P.a,{control:Object(b.jsx)(k.a,{value:n[2],checked:l[0].name.status,onChange:i,color:"default",inputProps:{"aria-label":"primary checkbox"}}),label:l[0].name.name})})]}),Object(b.jsxs)("div",{className:J.a.respTableRow,children:[Object(b.jsx)("div",{className:J.a.tableBodyCell,children:Object(b.jsx)(P.a,{control:Object(b.jsx)(k.a,{value:n[3],checked:l[0].surname.status,onChange:i,color:"default",inputProps:{"aria-label":"primary checkbox"}}),label:l[0].surname.surname})}),Object(b.jsx)("div",{className:J.a.tableBodyCell,children:Object(b.jsx)(P.a,{control:Object(b.jsx)(k.a,{value:n[4],checked:l[0].dateOfBirth.status,onChange:i,color:"default",inputProps:{"aria-label":"primary checkbox"}}),label:l[0].dateOfBirth.dateOfBirth})})]}),Object(b.jsxs)("div",{className:J.a.respTableRow,children:[Object(b.jsxs)("div",{className:J.a.tableBodyCell,children:[Object(b.jsx)(P.a,{control:Object(b.jsx)(k.a,{value:n[5],checked:l[0].placeOfBirth.status,onChange:i,color:"default",inputProps:{"aria-label":"primary checkbox"}}),label:l[0].placeOfBirth.placeOfBirth})," "]}),Object(b.jsx)("div",{className:J.a.tableBodyCell.tableBodyCell,children:Object(b.jsx)(P.a,{control:Object(b.jsx)(k.a,{value:n[9],checked:l[0].departmentCode.status,onChange:i,color:"default",inputProps:{"aria-label":"primary checkbox"}}),label:l[0].departmentCode.departmentCode})})]}),Object(b.jsxs)("div",{className:J.a.respTableRow,children:[Object(b.jsx)("div",{className:J.a.tableBodyCell,children:Object(b.jsx)(P.a,{control:Object(b.jsx)(k.a,{value:n[7],checked:l[0].serialNumber.status,onChange:i,color:"default",inputProps:{"aria-label":"primary checkbox"}}),label:l[0].serialNumber.serialNumber})}),Object(b.jsxs)("div",{className:J.a.tableBodyCell,children:[Object(b.jsx)(P.a,{control:Object(b.jsx)(k.a,{value:n[8],checked:l[0].dateOfIssue.status,onChange:i,color:"default",inputProps:{"aria-label":"primary checkbox"}}),label:l[0].dateOfIssue.dateOfIssue})," "]})]})]})})})},z=t(39),Q=t.n(z);var M=function(){var e=Object(B.f)().id,a=Object(s.useState)(O.filter((function(a){return a.id.id==e}))),t=Object(g.a)(a,2),c=t[0];return t[1],Object(b.jsxs)("div",{className:Q.a.flex,children:[c&&Object(b.jsx)(b.Fragment,{children:Object(b.jsx)(K,{infoCard:c})}),c&&Object(b.jsx)(b.Fragment,{children:Object(b.jsx)(F,{infoCard:c})}),Object(b.jsx)(L,{})]})};var V=function(){return Object(b.jsx)(x.a,{children:Object(b.jsxs)(B.c,{children:[Object(b.jsx)(B.a,{exact:!0,path:"/info/:id",component:M}),Object(b.jsx)(B.a,{path:"/",component:C})]})})};r.a.render(Object(b.jsx)(c.a.StrictMode,{children:Object(b.jsx)(V,{})}),document.getElementById("root"))},9:function(e,a,t){e.exports={flex:"style_flex__1Hl1s",respTable:"style_respTable__PRazH",respTableCaption:"style_respTableCaption__zIckG",respTableBody:"style_respTableBody__1Oymh",respTableRow:"style_respTableRow__yPH3G",tableBodyCell:"style_tableBodyCell__Wm2xd"}}},[[57,1,2]]]);
  //# sourceMappingURL=main.6c5bebfb.chunk.js.map