text: (window.webpackJsonp=window.webpackJsonp||[]).push([[6],{821:function(e,t,n){"use strict";n.d(t,"a",function(){return m}),n.d(t,"b",function(){return f});var a=n(827),r=n(826),o=n.n(r),c=n(828),i=n.n(c),u=n(117),l=n(14),s=o()({}),d=i()(),m=Object(a.connectedRouterRedirect)({redirectPath:"/login",AuthenticatingComponent:u.a,wrapperDisplayName:"UserIsAuthenticated",authenticatedSelector:function(e){var t=e.firebase.auth;return!t.isEmpty&&!!t.uid},authenticatingSelector:function(e){var t=e.firebase,n=t.auth,a=t.isInitializing;return!n.isLoaded||a},redirectAction:function(e){return function(t){d.push(e),t({type:"UNAUTHED_REDIRECT",payload:{message:"User is not authenticated."}})}}}),f=Object(a.connectedRouterRedirect)({AuthenticatingComponent:u.a,wrapperDisplayName:"UserIsNotAuthenticated",allowRedirectBack:!1,authenticatedSelector:function(e){return e.firebase.auth.isEmpty},authenticatingSelector:function(e){var t=e.firebase,n=t.auth,a=t.isInitializing;return!n.isLoaded||a},redirectPath:function(e,t){return console.log("state"),console.log(e),console.log("ownProps"),console.log(t),"admin@test.com"===e.firebase.auth.email?(console.log("isAdmin"),l.g):s.getRedirectQueryParam(t)||l.e},redirectAction:function(e){return function(t){d.push(e),t({type:"AUTHED_REDIRECT",payload:{message:"User is not authenticated."}})}}})},822:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return r}),n.d(t,"d",function(){return o}),n.d(t,"c",function(){return c});var a="account",r="login",o="signup",c="newPost"},839:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var a=n(993),r=function(e){a.a.success(e)},o=function(e){a.a.error(e)}},840:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(980),c=n(991),i=o.a.Item;t.a=function(e){var t=e.input,n=e.meta,a=n.touched,o=n.error,u=n.warning,l=e.placeholder,s=e.label,d=e.type,m=e.formItemStyle,f=e.inputStyle,p=e.hasFeedback,b=e.labelCol,h=e.wrapperCol,g=e.disabled,v=(e.hasButton,void 0===p||p),j=b||{span:4},E=h||{span:20},O=null,y=null,w=null;return a&&(o&&(O={validateStatus:"error",help:o}),u&&(y={validateStatus:"warning",help:u}),o||u||!t.value||(w={validateStatus:"success"})),r.a.createElement(i,Object.assign({labelCol:j,wrapperCol:E,colon:!1,label:s,hasFeedback:v,style:m},O||y||w),r.a.createElement(c.a,Object.assign({size:"large",style:f,type:d},t,{placeholder:l,disabled:g})))}},841:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(991),c=n(980),i=o.a.TextArea,u=c.a.Item;t.a=function(e){var t=e.input,n=e.meta,a=n.touched,o=n.error,c=n.warning,l=e.placeholder,s=e.label,d=e.type,m=e.formItemStyle,f=e.inputStyle,p=e.hasFeedback,b=e.labelCol,h=e.wrapperCol,g=e.disabled,v=(e.hasButton,void 0===p||p),j=b||{span:4},E=h||{span:20},O=null,y=null,w=null;return a&&(o&&(O={validateStatus:"error",help:o}),c&&(y={validateStatus:"warning",help:c}),o||c||!t.value||(w={validateStatus:"success"})),r.a.createElement(u,Object.assign({labelCol:j,wrapperCol:E,colon:!1,label:s,hasFeedback:v,style:m},O||y||w),r.a.createElement(i,Object.assign({size:"large",rows:8,style:f,type:d},t,{placeholder:l,disabled:g})))}},975:function(e){e.exports={}},977:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return h});var a=n(162),r=n(163),o=n(182),c=n(164),i=n(183),u=n(0),l=n.n(u),s=(n(829),n(979)),d=(n(975),n(255)),m=n.n(d),f=(n(976),n(854)),p=n.n(f);var b=m.a.initializeApp({apiKey:"AIzaSyCCU2VeOmng3BbpGcDzX79D9lTMmsRs9Gw",authDomain:"lucky-aed54.firebaseapp.com",databaseURL:"https://lucky-aed54.firebaseio.com",projectId:"lucky-aed54",storageBucket:"lucky-aed54.appspot.com",messagingSenderId:"836535631836"},"other"),h=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(c.a)(t).call(this,e))).state={data:[]},n}return Object(i.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=b.database().ref("RANK");console.log("ref"),console.log(t),t.on("value",function(t){e.setState({data:t.val()})})}},{key:"render",value:function(){var e=p.a.map(this.state.data,function(e,t){return[e]});return console.log("array"),console.log(e),e.sort(function(e,t){return e.Average-t.Average}),console.log("Sortedarray"),console.log(e),function(e){for(var t=0;t<e.length;t++)e[t].Ranking=t+1}(e),l.a.createElement("div",{className:"card-body"},console.log("bbb"),console.log(this.state.data),console.log("array"),console.log(e),console.log(Object.keys(this.state.data)),l.a.createElement(s.a,{className:"utils__scrollTable",scroll:{x:"100%"},columns:[{title:"Ranking",dataIndex:"Ranking",key:"Ranking"},{title:"Email",dataIndex:"Email",key:"Email"},{title:"Average",dataIndex:"Average",key:"Average"}],dataSource:e,pagination:!1}))}}]),t}(l.a.PureComponent)},985:function(e,t,n){"use strict";n.r(t);var a=n(40),r=n(0),o=n.n(r),c=n(36),i=(n(829),n(991)),u=n(814),l=n(856),s=n.n(l),d=(n(840),n(841)),m=n(983),f=n(857);function p(){var e=Object(a.a)(["\n  display: flex;\n  flex-direction: row-reverse;\n"]);return p=function(){return e},e}function b(){var e=Object(a.a)(["\n  width: 100%;\n  max-width: 1280px;\n\n  margin-top: 1rem;\n"]);return b=function(){return e},e}i.a.TextArea;var h=c.a.div(b()),g=c.a.div(p()),v=function(e){var t=e.disabled,n=e.submitting,a=e.handleSubmit;return o.a.createElement(h,null,o.a.createElement("form",{onSubmit:a},o.a.createElement("div",null,o.a.createElement(m.a,{name:"answer",label:"\ub2f5\ubcc0",component:d.a,disabled:n||t})),o.a.createElement(g,null,o.a.createElement(f.a,{disabled:t,loading:n,htmlType:"submit",type:"primary"},"\uc644\ub8cc"))))},j=n(27),E=n(978),O=n(822),y=function(e){return function(e){return Object(j.b)(Object(E.a)({form:"".concat(e,"/NEW_ANSWER_FORM_NAME")}))}(e)(v)};function w(){var e=Object(a.a)(["\n"]);return w=function(){return e},e}function S(){var e=Object(a.a)(["\n  width: 100%;\n  max-width: 1280px;\n\n  padding: 2rem;\n"]);return S=function(){return e},e}var x=i.a.TextArea,k=c.a.div(S()),A=c.a.h3(w()),P=function(e){var t=e.uid,n=e.onSubmit,a=e.title,r=e.content,c=e.userEmail,l=e.createdAt,d=e.answer,m=s()(l).format("YYYY-MM-DD. hh:mm"),f=y(t);return o.a.createElement(k,null,o.a.createElement(A,null,"\uc791\uc131\uc790: ".concat(c," (").concat(m,")")),o.a.createElement(i.a,{value:a,disabled:!0}),o.a.createElement(x,{rows:8,value:r,disabled:!0}),o.a.createElement(f,{onSubmit:n,initialValues:{uid:t,answer:d},disabled:d}),o.a.createElement(u.a,null))},D=Object(j.b)(Object(E.a)({form:O.c,onSubmitSuccess:function(e,t,n){return n.reset()}}))(P);function T(){var e=Object(a.a)(["\n"]);return T=function(){return e},e}var C=c.a.div(T());var I=n(59),R=n(92),M=n(818),B=n(50),N=(n(133),n(30)),U=n(821),_=n(839),z=Object(I.d)(U.a,Object(R.connect)(function(e){return{uid:e.firebase.auth.uid}}),Object(N.b)(["uid"]),Object(B.firebaseConnect)(function(e){e.params;return[{path:"posts",queryParams:["orderByChild=createdBy"]}]}),Object(R.connect)(function(e){return{posts:e.firebase.ordered.posts}}),Object(N.b)(["posts"]),M.a,Object(j.h)({updatePost:function(e){return function(t){var n=t.uid,a=t.answer,r=e.firebase;return e.uid?r.update("posts/".concat(n),{answer:a,updatedAt:r.database.ServerValue.TIMESTAMP}).then(function(){Object(_.b)("\ub2f5\ubcc0 \uc644\ub8cc!")}).catch(function(e){return console.error("Error:",e),Object(_.a)(e.message||"\uc2e4\ud328."),Promise.reject(e)}):Object(_.a)("\ub85c\uadf8\uc778\uc774 \ud544\uc694\ud55c \uc791\uc5c5\uc785\ub2c8\ub2e4.")}}}));t.default=z(function(e){var t=e.posts,n=e.updatePost;return o.a.createElement(C,null,t.map(function(e){var t=e.key,a=e.value;return o.a.createElement(D,Object.assign({key:t,onSubmit:n,uid:t},a))}))})},988:function(e,t,n){"use strict";n.r(t);var a=n(40),r=n(0),o=n.n(r),c=n(36),i=(n(829),n(983)),u=n(991),l=n(857),s=n(840),d=n(841);function m(){var e=Object(a.a)(["\n  display: flex;\n  flex-direction: row-reverse;\n"]);return m=function(){return e},e}function f(){var e=Object(a.a)(["\n  width: 100%;\n  max-width: 1280px;\n\n  padding: 2rem;\n"]);return f=function(){return e},e}u.a.TextArea;var p=c.a.div(f()),b=c.a.div(m()),h=function(e){var t=e.submitting,n=e.handleSubmit;return o.a.createElement(p,null,o.a.createElement("form",{onSubmit:n},o.a.createElement("div",null,o.a.createElement(i.a,{name:"title",label:"\uc81c\ubaa9",component:s.a,disabled:t})),o.a.createElement("div",null,o.a.createElement(i.a,{name:"content",label:"\ub0b4\uc6a9",component:d.a,disabled:t})),o.a.createElement(b,null,o.a.createElement(l.a,{loading:t,htmlType:"submit",type:"primary"},"\uc644\ub8cc"))))},g=n(27),v=n(978),j=n(822),E=Object(g.b)(Object(v.a)({form:j.c,onSubmitSuccess:function(e,t,n){return n.reset()}}))(h);function O(){var e=Object(a.a)(["\n"]);return O=function(){return e},e}var y=c.a.div(O());var w=n(49),S=n(59),x=n(92),k=n(818),A=n(50),P=(n(133),n(30)),D=n(821),T=n(839),C=(n(14),Object(S.d)(D.a,Object(x.connect)(function(e){var t=e.firebase.auth;return{uid:t.uid,email:t.email}}),Object(P.b)(["uid"]),Object(A.firebaseConnect)(function(e){e.params;var t=e.uid;return[{path:"posts",queryParams:["orderByChild=createdBy","equalTo=".concat(t)]}]}),k.a,Object(g.h)({addPost:function(e){return function(t){var n=e.firebase,a=e.uid,r=e.email;return a?n.push("posts",Object(w.a)({},t,{userEmail:r,createdBy:a,createdAt:n.database.ServerValue.TIMESTAMP})).then(function(){Object(T.b)("\uc791\uc131\uc744 \uc131\uacf5\uc801\uc73c\ub85c \ub9c8\ubb34\ub9ac\ud588\uc2b5\ub2c8\ub2e4.")}).catch(function(e){return console.error("Error:",e),Object(T.a)(e.message||"\uc2e4\ud328."),Promise.reject(e)}):Object(T.a)("\ub85c\uadf8\uc778\uc774 \ud544\uc694\ud55c \uc791\uc5c5\uc785\ub2c8\ub2e4.")}}})));t.default=C(function(e){var t=e.addPost;return o.a.createElement(y,null,o.a.createElement(E,{onSubmit:t}))})},989:function(e,t,n){"use strict";n.r(t);var a=n(162),r=n(163),o=n(182),c=n(164),i=n(183),u=n(40),l=n(49),s=n(0),d=n.n(s),m=n(36),f=(n(993),n(981)),p=n(48),b=n(829),h=n.n(b),g=n(854),v=n.n(g),j=n(982);function E(){var e=Object(u.a)(["\n  width: 100%;\n"]);return E=function(){return e},e}function O(){var e=Object(u.a)(["\n  word-break: keep-all;\n"]);return O=function(){return e},e}function y(){var e=Object(u.a)(["\n  display: flex;\n  flex-direction: row;\n  padding: 30px;\n  margin-bottom: 30px;\n\n  background: #ECECEC;\n\n  > div {\n    flex: 1;\n\n    margin: 10px;\n  }\n\n  @media screen and (max-width: 576px) {\n    flex-direction: column;\n\n    > div {\n      margin: 10px;\n    }\n  }\n"]);return y=function(){return e},e}var w=j.a.Meta,S=m.a.div(y()),x=m.a.div(O()),k=m.a.img(E());function A(){return d.a.createElement(S,null,d.a.createElement(j.a,{cover:d.a.createElement(k,{alt:"\uc62c\ubc14\ub978 \uc694\uccad",src:"https://post-phinf.pstatic.net/MjAxODAzMTVfMTg5/MDAxNTIxMTEwODcyNDAw.VydowXsV01QXlULeVB0kwkwyS30umKOBsDQH0wRIrq4g.twzyKxF6IfxXxxlzsDIZmUtI43RixX0ypWW1l_1Ru0Yg.JPEG/SmartSelectImage_2018-03-15-19-42-18.jpg?type=w1200"})},d.a.createElement(w,{title:"\uc62c\ubc14\ub978 \uc694\uccad \uc608\uc2dc",description:d.a.createElement(x,null,"\uc815\uba74\uc744 \ubc14\ub77c\ubcf4\ub294 \uc0ac\uc9c4\uc774 \uce21\uc815 \uc798 \ub3fc\uc694.")})),d.a.createElement(j.a,{cover:d.a.createElement(k,{alt:"\uc798\ubabb\ub41c \uc694\uccad1",src:"http://www.siminilbo.co.kr/news/photo/201809/578254_133805_2915.jpg"})},d.a.createElement(w,{title:"\uc798\ubabb\ub41c \uc694\uccad \uc608\uc2dc",description:d.a.createElement(x,null,"\uc5bc\uad74\uc744 \uc54c\uc544\ubcf4\uae30 \ud798\ub4e0 \uc0ac\uc9c4\uc740 \uce21\uc815\uc774 \uc5b4\ub824\uc6cc\uc694.")})),d.a.createElement(j.a,{cover:d.a.createElement(k,{alt:"\uc798\ubabb\ub41c \uc694\uccad2",src:"http://newsimg.hankookilbo.com/2018/03/23/201803231654225331_1.jpg"})},d.a.createElement(w,{title:"\uc798\ubabb\ub41c \uc694\uccad \uc608\uc2dc",description:d.a.createElement(x,null,"\uac01\ub3c4\uac00 \ub3cc\uc544\uac00\ub294 \uc0ac\uc9c4\uc740 \uce21\uc815\uc774 \uc5b4\ub824\uc6cc\uc694.")})))}var P=n(979),D=[{title:"\ub0a0\uc9dc",dataIndex:"date",key:"date,"},{title:"\ud131\ub300\uce6d\ub960",dataIndex:"jaw",key:"jaw"},{title:"\ucf54\ub300\uce6d\ub960",dataIndex:"nose",key:"nose"},{title:"\uc785\uc220\ub300\uce6d\ub960",dataIndex:"lips",key:"lips"}];function T(e){var t=e.dataSource,n=e.loading;return d.a.createElement(P.a,{columns:D,dataSource:t,loading:n,locale:{emptyText:"\uac80\uc0ac\ud558\uae30\ub97c \ub20c\ub7ec\uc11c \ud655\uc778\ud574\ubcf4\uc138\uc694."}})}function C(){var e=Object(u.a)(["\n"]);return C=function(){return e},e}var I="https://skb89qsem5.execute-api.ap-northeast-2.amazonaws.com/dev/test/image",R={currentData:{jaw:9.688786560366793,eye:2.8912695962205643,lips:25.463345061871614},histories:[{jaw:9.588786560366794,eye:2.7912695962205643,lips:23.463345061871614},{jaw:9.888786560366793,eye:2.873269596220564,lips:24.463345061871614}]};var M=m.a.div(C()),B=function(e){function t(){var e,n;Object(a.a)(this,t);for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];return(n=Object(o.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(i)))).state={pristine:!0,loading:!1,error:!1,data:{data:{currentData:{},histories:[],imgData:{}},numOfPeople:""}},n.uploadStart=function(e){h.a.post(I,{data:'"'.concat(e.split(",")[1],'"'),uid:n.props.uid}).then(function(e){console.log("response"),console.log(e),n.setState({loading:!1,data:e.data,message:e.message})}).catch(function(e){n.setState({loading:!1,error:!0,data:R}),console.log(e)})},n.handleChange=function(e){"uploading"!==e.file.status?"done"===e.file.status&&function(e,t){var n=new FileReader;n.addEventListener("load",function(){return t(n.result)}),n.readAsDataURL(e)}(e.file.originFileObj,function(e){return n.uploadStart(e)}):n.setState({pristine:!1,loading:!0,error:!1})},n}return Object(i.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.state,t=e.data,n=(e.pristine,e.loading),a=(e.error,function(e){console.log("data"),console.log(e),console.log("data.histories"),console.log(e.histories);var t=Object.keys(e.currentData).length>0?[Object(l.a)({key:0},e.currentData)]:[],n=v.a.map(e.histories,function(e,t){return[e]});return console.log("historiesArr"),console.log(n),n.reduce(function(e,t,n){return console.log("acc"),console.log(e),console.log("history"),console.log(t),console.log("index"),console.log(n),e.push(Object(l.a)({key:n+1},t)),e},t)}(t.data));return console.log("numOfPeople"),console.log(t.numOfPeople),d.a.createElement(M,null,d.a.createElement(A,null),d.a.createElement(f.a,{name:"avatar",listType:"picture-card",className:"avatar-uploader",showUploadList:!1,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",onChange:this.handleChange},d.a.createElement("div",null,d.a.createElement(p.a,{type:n?"loading":"plus"}),d.a.createElement("div",{className:"ant-upload-text"},"\uac80\uc0ac\ud558\uae30"))),d.a.createElement("div",null,d.a.createElement("h1",null,0!=Object.keys(t.data.currentData).length&&d.a.createElement("img",{src:"data:image/jpeg;base64,"+t.data.imgData.imageBase64}))),d.a.createElement(T,{dataSource:a,loading:n}))}}]),t}(d.a.PureComponent),N=n(59),U=n(92),_=n(27),z=n(818),V=n(50),Y=(n(133),n(30)),q=n(821),F=n(839),L=(n(14),Object(N.d)(q.a,Object(U.connect)(function(e){return{uid:e.firebase.auth.uid}}),Object(Y.b)(["uid"]),Object(V.firebaseConnect)(function(e){e.params;var t=e.uid;return[{path:"posts",queryParams:["orderByChild=createdBy","equalTo=".concat(t)]}]}),z.a,Object(_.h)({addPost:function(e){return function(t){var n=e.firebase,a=e.uid;return a?n.push("posts",Object(l.a)({},t,{createdBy:a,createdAt:n.database.ServerValue.TIMESTAMP})).then(function(){Object(F.b)("\uc791\uc131\uc744 \uc131\uacf5\uc801\uc73c\ub85c \ub9c8\ubb34\ub9ac\ud588\uc2b5\ub2c8\ub2e4.")}).catch(function(e){return console.error("Error:",e),Object(F.a)(e.message||"\uc2e4\ud328."),Promise.reject(e)}):Object(F.a)("\ub85c\uadf8\uc778\uc774 \ud544\uc694\ud55c \uc791\uc5c5\uc785\ub2c8\ub2e4.")}}})));t.default=L(B)},990:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n.n(a),o=n(50),c=n(407),i=n(819),u=n(30),l={path:":postId",component:Object(u.a)({loader:function(){return n.e(5).then(n.bind(null,994))}})},s=n(40),d=n(36),m=n(815),f=n(991),p=n(814),b=n(856),h=n.n(b);function g(){var e=Object(s.a)(["\n  width: 100%;\n\n  margin-bottom: 1rem;\n"]);return g=function(){return e},e}function v(){var e=Object(s.a)(["\n  width: 100%;\n\n  margin-bottom: 1rem;\n"]);return v=function(){return e},e}function j(){var e=Object(s.a)(["\n  display:flex;\n  flex-direction: column;\n\n  width: 100%;\n  max-width: 600px;\n"]);return j=function(){return e},e}var E=m.a.Title,O=f.a.TextArea,y=d.a.div(j()),w=(Object(d.a)(f.a)(v()),Object(d.a)(O)(g()));function S(e){var t=e.content,n=e.title,a=e.answer,o=e.createdAt,c=h()(o).format("YYYY-MM-DD. hh:mm");return r.a.createElement(y,null,r.a.createElement(E,{level:4},"".concat(n," (").concat(c,")")),r.a.createElement(w,{rows:4,value:"-\ub0b4\uc6a9-\n".concat(t),disabled:!0}),r.a.createElement(E,{level:4},"\ub2f5\ubcc0"),a?r.a.createElement(w,{rows:4,value:"-\ub2f5\ubcc0-\n".concat(a),disabled:!0}):r.a.createElement("div",null,"\uc544\uc9c1 \ub2f5\ubcc0\uc774 \uc5c6\uc2b5\ub2c8\ub2e4."),r.a.createElement(p.a,null))}var x=function(e){var t=e.posts,n=e.auth,a=e.match;e.goToPost;return r.a.createElement(i.a,null,function(e,t,n){return e.map(function(e){return r.a.createElement(c.a,{key:"".concat(t.url,"-").concat(e.path),path:"".concat(t.url,"/").concat(e.path),render:function(t){return r.a.createElement(e.component,Object.assign({},n,t))}})})}([l],a,{auth:n}),r.a.createElement(c.a,{exact:!0,path:a.path,render:function(){return r.a.createElement("div",null,!Object(o.isEmpty)(t)&&t.map(function(e){var t=e.key,n=e.value;return r.a.createElement(S,Object.assign({key:t},n))}))}}))},k=n(49),A=n(59),P=n(92),D=n(14),T=n(27),C=n(818),I=n(133),R=n(821),M=Object(A.d)(R.a,Object(P.connect)(function(e){return{uid:e.firebase.auth.uid}}),Object(u.b)(["uid"]),Object(o.firebaseConnect)(function(e){e.params;var t=e.uid;return[{path:"posts",queryParams:["orderByChild=createdBy","equalTo=".concat(t)]}]}),Object(P.connect)(function(e){return{posts:e.firebase.ordered.posts}}),Object(u.b)(["posts"]),C.a,I.c,Object(T.j)(function(e){var t=e.initialDialogOpen;return{newDialogOpen:void 0!==t&&t}},{toggleDialog:function(e){var t=e.newDialogOpen;return function(){return{newDialogOpen:!t}}}}),Object(T.h)({addPost:function(e){return function(t){var n=e.firebase,a=e.uid,r=e.showError,o=e.showSuccess,c=e.toggleDialog;return a?n.push("posts",Object(k.a)({},t,{createdBy:a,createdAt:n.database.ServerValue.TIMESTAMP})).then(function(){c(),o("Post added successfully")}).catch(function(e){return console.error("Error:",e),r(e.message||"Could not add post"),Promise.reject(e)}):r("You must be logged in to create a post")}},deletePost:function(e){return function(t){var n=e.firebase,a=e.showError,r=e.showSuccess;return n.remove("posts/".concat(t)).then(function(){return r("Post deleted successfully")}).catch(function(e){return console.error("Error:",e),a(e.message||"Could not delete post"),Promise.reject(e)})}},goToPost:function(e){var t=e.history;return function(e){t.push("".concat(D.i,"/").concat(e))}}}));t.default=M(x)}}]);
  //# sourceMappingURL=Projects.db2df04a.chunk.js.map