{"ast":null,"code":"import _slicedToArray from\"C:/Users/user/Desktop/05mediaSocial/client/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";// import React,{useState,useEffect} from \"react\";\n// import { useDispatch, useSelector } from \"react-redux\";\n// import { upadatePost } from \"../../actions/post.actions\";\n// import FollowHandler from \"../profil/FollowHandler\";\n// import { dateParser, isEmpty } from \"../Utils\";\n// import DeleteCard from \"./DeleteCard\";\n// const Card=({post})=>{\n//     // mettre un loading avant le chargement des posts :\n//     const [isLoading,setIsLoading]= useState(true);\n//     // s'appeler toutes la base de donné des utilistaeurs\n//     const usersData=useSelector((state)=>state.usersReducer)\n//     //data individuelle\n//     const userData=useSelector((state)=>state.usersReducer)\n//     const [isUpdated,setIsUpdated]=useState(true);\n//     const [textUpdate,setTextUpdate]=useState(null)\n//     const dispatch=useDispatch()\n//     const updateItem =async()=>{\n//         if(textUpdate){\n//             dispatch(upadatePost(post._id,textUpdate))\n//         }\n//         setIsUpdated(false)\n//     }\n//     useEffect(()=>{\n//         // si  isEmpty n'est pas vide alors setIsLoading a false\n//     ! isEmpty(usersData[0]) && setIsLoading(false)\n//     },[usersData])\n//     return(\n//       <li className=\"card-container\" key={post._id}>\n//         {/* isLoading est il sur true ? */}\n//         {isLoading ? (\n//             // si oui\n//             <i className=\"fas fa-spinner fa-spin\"></i>\n//             // sinon\n//         ) : (\n//             <>\n//                <div className=\"card-left\">\n//                  < img src={ \n//                     ! isEmpty(usersData[0]) && usersData.map((user)=>{\n//                         if (user._id === post.posterId) return user.picture;\n//                        else return null\n//                     }).join('')\n//                   }\n//                    alt=\"user-pic\"/> \n//                </div>\n//                <div className=\"card-right\">\n//                  <div className=\"card-header\">\n//                     <div className=\"pseudo\">\n//                         <h3>\n//                             {\n//                     ! isEmpty(usersData[0]) && usersData.map((user)=>{\n//                     if (user._id === post.posterId) return user.pseudo;\n//                 }).join('')\n//                         }\n//                         </h3>\n//                         {/* {post.posterId !== userData._id && ( */}\n//                         <FollowHandler idToFollow={post.posterId} type={'card'} />\n//                           {/* ) }  */}\n//                     </div>\n//                     <span> {dateParser(post.createdAt)} </span>\n//                  </div>\n//                  {isUpdated === false && <p>{post.message} </p>}\n//                  {/* si sur true */}\n//                  {isUpdated  && (\n//                     <div className=\"update-post\">\n//                         <textarea\n//                         defaultValue={post.message}\n//                         onChange={(e)=>setTextUpdate(e.target.value)}\n//                         />\n//                         <div className=\"button-container\">\n//                             <button className=\"btn\" onClick={updateItem}>\n//                                 valider modification\n//                             </button>\n//                         </div>\n//                     </div>\n//                  ) }\n//                  {/* si post.picture existe tu affiche... */}\n//                  {post.picture && <img src= {post.picture} alt=\"picPerso\" className=\"card-pic\"/>}\n//                </div>\n//                {/* si video existe alors... */}\n//                { post.video && (\n//                          <iframe\n//                          width=\"500\"\n//                          height=\"300\"\n//                          src={post.video}\n//                          frameBorder=\"0\"\n//                          allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n//                          allowFullScreen\n//                          title={post._id}\n//                          ></iframe>\n//                )}\n//              {userData._id !== post.posterId && (\n//               <div className=\"button-container\">\n//                 <div onClick={() => setIsUpdated(! isUpdated)} >\n//                   <img src=\"./img/icons/edit.svg\" alt=\"edit\" />\n//                 </div>\n//                 <DeleteCard id={post._id} />\n//               </div>\n//             )}\n//                <div className=\"card-footer\">\n//                 <div className=\"comment-icon\">\n//                     <img src=\"./img/icons/message1.svg\" alt=\"commentIcon\"/>\n//                     <span>{post.comments.lenght}</span>\n//                 </div>\n//                 <h6>like bouton</h6>\n//                </div>\n//                </>\n//         )}\n//       </li>\n//     )\n// }\n// export default Card\nimport React,{useEffect,useState}from\"react\";import{useDispatch,useSelector}from\"react-redux\";import{dateParser,isEmpty}from\"../Utils\";import FollowHandler from\"../profil/FollowHandler\";// import LikeButton from \"./LikeButton\";\nimport{upadatePost}from\"../../actions/post.actions\";import DeleteCard from\"./DeleteCard\";import CardComments from\"./CardComments\";// import CardComments from \"./CardComments\";\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{Fragment as _Fragment}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";var Card=function Card(_ref){var post=_ref.post;var _useState=useState(true),_useState2=_slicedToArray(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray(_useState3,2),isUpdated=_useState4[0],setIsUpdated=_useState4[1];var _useState5=useState(null),_useState6=_slicedToArray(_useState5,2),textUpdate=_useState6[0],setTextUpdate=_useState6[1];var _useState7=useState(false),_useState8=_slicedToArray(_useState7,2),showComments=_useState8[0],setShowComments=_useState8[1];var usersData=useSelector(function(state){return state.usersReducer;});var userData=useSelector(function(state){return state.userReducer;});var dispatch=useDispatch();var updateItem=function updateItem(){if(textUpdate){dispatch(upadatePost(post._id,textUpdate));}setIsUpdated(false);};useEffect(function(){!isEmpty(usersData[0])&&setIsLoading(false);},[usersData]);return/*#__PURE__*/_jsx(\"li\",{className:\"card-container\",children:isLoading?/*#__PURE__*/_jsx(\"i\",{className:\"fas fa-spinner fa-spin\"}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{className:\"card-left\",children:/*#__PURE__*/_jsx(\"img\",{src:!isEmpty(usersData[0])&&usersData.map(function(user){if(user._id===post.posterId)return user.picture;else return null;}).join(\"\"),alt:\"poster-pic\"})}),/*#__PURE__*/_jsxs(\"div\",{className:\"card-right\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"card-header\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"pseudo\",children:[/*#__PURE__*/_jsx(\"h3\",{children:!isEmpty(usersData[0])&&usersData.map(function(user){if(user._id===post.posterId)return user.pseudo;else return null;}).join(\"\")}),post.posterId!==userData._id&&/*#__PURE__*/_jsx(FollowHandler,{idToFollow:post.posterId,type:\"card\"})]}),/*#__PURE__*/_jsx(\"span\",{children:dateParser(post.createdAt)})]}),isUpdated===false&&/*#__PURE__*/_jsx(\"p\",{children:post.message}),isUpdated&&/*#__PURE__*/_jsxs(\"div\",{className:\"update-post\",children:[/*#__PURE__*/_jsx(\"textarea\",{defaultValue:post.message,onChange:function onChange(e){return setTextUpdate(e.target.value);}}),/*#__PURE__*/_jsx(\"div\",{className:\"button-container\",children:/*#__PURE__*/_jsx(\"button\",{className:\"btn\",onClick:updateItem,children:\"Valider modification\"})})]}),post.picture&&/*#__PURE__*/_jsx(\"img\",{src:post.picture,alt:\"card-pic\",className:\"card-pic\"}),post.video&&/*#__PURE__*/_jsx(\"iframe\",{width:\"500\",height:\"300\",src:post.video,frameBorder:\"0\",allow:\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\",allowFullScreen:true,title:post._id}),userData._id===post.posterId&&/*#__PURE__*/_jsxs(\"div\",{className:\"button-container\",children:[/*#__PURE__*/_jsx(\"div\",{onClick:function onClick(){return setIsUpdated(!isUpdated);},children:/*#__PURE__*/_jsx(\"img\",{src:\"./img/icons/edit.svg\",alt:\"edit\"})}),/*#__PURE__*/_jsx(DeleteCard,{id:post._id})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"card-footer\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"comment-icon\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"comment-icon\",children:[/*#__PURE__*/_jsx(\"img\",{onClick:function onClick(){return setShowComments(!showComments);},src:\"./img/icons/message1.svg\",alt:\"commentIcon\"}),/*#__PURE__*/_jsx(\"span\",{children:post.comments.lenght})]})}),/*#__PURE__*/_jsx(\"img\",{src:\"./img/icons/share.svg\",alt:\"share\"})]}),showComments&&/*#__PURE__*/_jsx(CardComments,{props:post})]})]})},post._id);};export default Card;","map":{"version":3,"names":["React","useEffect","useState","useDispatch","useSelector","dateParser","isEmpty","FollowHandler","upadatePost","DeleteCard","CardComments","Card","post","isLoading","setIsLoading","isUpdated","setIsUpdated","textUpdate","setTextUpdate","showComments","setShowComments","usersData","state","usersReducer","userData","userReducer","dispatch","updateItem","_id","map","user","posterId","picture","join","pseudo","createdAt","message","e","target","value","video","comments","lenght"],"sources":["C:/Users/user/Desktop/05mediaSocial/client/src/components/Post/Card.js"],"sourcesContent":["// import React,{useState,useEffect} from \"react\";\r\n// import { useDispatch, useSelector } from \"react-redux\";\r\n// import { upadatePost } from \"../../actions/post.actions\";\r\n// import FollowHandler from \"../profil/FollowHandler\";\r\n// import { dateParser, isEmpty } from \"../Utils\";\r\n// import DeleteCard from \"./DeleteCard\";\r\n\r\n\r\n// const Card=({post})=>{\r\n//     // mettre un loading avant le chargement des posts :\r\n//     const [isLoading,setIsLoading]= useState(true);\r\n//     // s'appeler toutes la base de donné des utilistaeurs\r\n//     const usersData=useSelector((state)=>state.usersReducer)\r\n//     //data individuelle\r\n//     const userData=useSelector((state)=>state.usersReducer)\r\n//     const [isUpdated,setIsUpdated]=useState(true);\r\n//     const [textUpdate,setTextUpdate]=useState(null)\r\n//     const dispatch=useDispatch()\r\n\r\n//     const updateItem =async()=>{\r\n//         if(textUpdate){\r\n//             dispatch(upadatePost(post._id,textUpdate))\r\n            \r\n//         }\r\n//         setIsUpdated(false)\r\n\r\n//     }\r\n\r\n//     useEffect(()=>{\r\n//         // si  isEmpty n'est pas vide alors setIsLoading a false\r\n//     ! isEmpty(usersData[0]) && setIsLoading(false)\r\n//     },[usersData])\r\n//     return(\r\n//       <li className=\"card-container\" key={post._id}>\r\n//         {/* isLoading est il sur true ? */}\r\n//         {isLoading ? (\r\n//             // si oui\r\n//             <i className=\"fas fa-spinner fa-spin\"></i>\r\n//             // sinon\r\n//         ) : (\r\n//             <>\r\n//                <div className=\"card-left\">\r\n//                  < img src={ \r\n//                     ! isEmpty(usersData[0]) && usersData.map((user)=>{\r\n//                         if (user._id === post.posterId) return user.picture;\r\n//                        else return null\r\n//                     }).join('')\r\n//                   }\r\n//                    alt=\"user-pic\"/> \r\n//                </div>\r\n//                <div className=\"card-right\">\r\n//                  <div className=\"card-header\">\r\n//                     <div className=\"pseudo\">\r\n//                         <h3>\r\n//                             {\r\n//                     ! isEmpty(usersData[0]) && usersData.map((user)=>{\r\n//                     if (user._id === post.posterId) return user.pseudo;\r\n//                 }).join('')\r\n//                         }\r\n//                         </h3>\r\n//                         {/* {post.posterId !== userData._id && ( */}\r\n\r\n//                         <FollowHandler idToFollow={post.posterId} type={'card'} />\r\n//                           {/* ) }  */}\r\n//                     </div>\r\n//                     <span> {dateParser(post.createdAt)} </span>\r\n\r\n//                  </div>\r\n//                  {isUpdated === false && <p>{post.message} </p>}\r\n//                  {/* si sur true */}\r\n//                  {isUpdated  && (\r\n//                     <div className=\"update-post\">\r\n//                         <textarea\r\n//                         defaultValue={post.message}\r\n//                         onChange={(e)=>setTextUpdate(e.target.value)}\r\n//                         />\r\n//                         <div className=\"button-container\">\r\n//                             <button className=\"btn\" onClick={updateItem}>\r\n//                                 valider modification\r\n//                             </button>\r\n//                         </div>\r\n//                     </div>\r\n//                  ) }\r\n                 \r\n//                  {/* si post.picture existe tu affiche... */}\r\n//                  {post.picture && <img src= {post.picture} alt=\"picPerso\" className=\"card-pic\"/>}\r\n//                </div>\r\n//                {/* si video existe alors... */}\r\n//                { post.video && (\r\n\r\n//                          <iframe\r\n//                          width=\"500\"\r\n//                          height=\"300\"\r\n//                          src={post.video}\r\n//                          frameBorder=\"0\"\r\n//                          allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\r\n//                          allowFullScreen\r\n//                          title={post._id}\r\n//                          ></iframe>\r\n\r\n//                )}\r\n\r\n//              {userData._id !== post.posterId && (\r\n//               <div className=\"button-container\">\r\n//                 <div onClick={() => setIsUpdated(! isUpdated)} >\r\n               \r\n//                   <img src=\"./img/icons/edit.svg\" alt=\"edit\" />\r\n//                 </div>\r\n//                 <DeleteCard id={post._id} />\r\n//               </div>\r\n//             )}\r\n             \r\n//                <div className=\"card-footer\">\r\n//                 <div className=\"comment-icon\">\r\n//                     <img src=\"./img/icons/message1.svg\" alt=\"commentIcon\"/>\r\n//                     <span>{post.comments.lenght}</span>\r\n//                 </div>\r\n//                 <h6>like bouton</h6>\r\n//                </div>\r\n//                </>\r\n//         )}\r\n\r\n       \r\n//       </li>\r\n      \r\n//     )\r\n// }\r\n\r\n// export default Card\r\n\r\nimport React, { useEffect, useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { dateParser, isEmpty } from \"../Utils\";\r\nimport FollowHandler from \"../profil/FollowHandler\";\r\n// import LikeButton from \"./LikeButton\";\r\nimport { upadatePost } from \"../../actions/post.actions\";\r\nimport DeleteCard from \"./DeleteCard\";\r\nimport CardComments from \"./CardComments\";\r\n// import CardComments from \"./CardComments\";\r\n\r\nconst Card = ({ post }) => {\r\n  const [isLoading, setIsLoading] = useState(true);\r\n  const [isUpdated, setIsUpdated] = useState(false);\r\n  const [textUpdate, setTextUpdate] = useState(null);\r\n  const [showComments, setShowComments] = useState(false);\r\n  const usersData = useSelector((state) => state.usersReducer);\r\n  const userData = useSelector((state) => state.userReducer);\r\n  const dispatch = useDispatch();\r\n\r\n  const updateItem = () => {\r\n    if (textUpdate) {\r\n      dispatch(upadatePost(post._id, textUpdate));\r\n    }\r\n    setIsUpdated(false);\r\n  };\r\n\r\n  useEffect(() => {\r\n    !isEmpty(usersData[0]) && setIsLoading(false);\r\n  }, [usersData]);\r\n\r\n  return (\r\n    <li className=\"card-container\" key={post._id}>\r\n      {isLoading ? (\r\n        <i className=\"fas fa-spinner fa-spin\"></i>\r\n      ) : (\r\n        <>\r\n          <div className=\"card-left\">\r\n            <img\r\n              src={\r\n                !isEmpty(usersData[0]) &&\r\n                usersData\r\n                  .map((user) => {\r\n                    if (user._id === post.posterId) return user.picture;\r\n                    else return null;\r\n                  })\r\n                  .join(\"\")\r\n              }\r\n              alt=\"poster-pic\"\r\n            />\r\n          </div>\r\n          <div className=\"card-right\">\r\n            <div className=\"card-header\">\r\n              <div className=\"pseudo\">\r\n                <h3>\r\n                  {!isEmpty(usersData[0]) &&\r\n                    usersData\r\n                      .map((user) => {\r\n                        if (user._id === post.posterId) return user.pseudo;\r\n                        else return null;\r\n                      })\r\n                      .join(\"\")}\r\n                </h3>\r\n                {post.posterId !== userData._id && (\r\n                  <FollowHandler idToFollow={post.posterId} type={\"card\"} />\r\n                )}\r\n              </div>\r\n              <span>{dateParser(post.createdAt)}</span>\r\n            </div>\r\n            {isUpdated === false && <p>{post.message}</p>}\r\n            {isUpdated && (\r\n              <div className=\"update-post\">\r\n                <textarea\r\n                  defaultValue={post.message}\r\n                  onChange={(e) => setTextUpdate(e.target.value)}\r\n                />\r\n                <div className=\"button-container\">\r\n                  <button className=\"btn\" onClick={updateItem}>\r\n                    Valider modification\r\n                  </button>\r\n                </div>\r\n              </div>\r\n            )}\r\n            {post.picture && (\r\n              <img src={post.picture} alt=\"card-pic\" className=\"card-pic\" />\r\n            )}\r\n            {post.video && (\r\n              <iframe\r\n                width=\"500\"\r\n                height=\"300\"\r\n                src={post.video}\r\n                frameBorder=\"0\"\r\n                allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\r\n                allowFullScreen\r\n                title={post._id}\r\n              ></iframe>\r\n            )}\r\n            {userData._id === post.posterId && (\r\n              <div className=\"button-container\">\r\n                <div onClick={() => setIsUpdated(!isUpdated)}>\r\n                  <img src=\"./img/icons/edit.svg\" alt=\"edit\" />\r\n                </div>\r\n                <DeleteCard id={post._id} />\r\n              </div>\r\n            )}\r\n            <div className=\"card-footer\">\r\n              <div className=\"comment-icon\">\r\n                 <div className=\"comment-icon\">\r\n                    <img onClick={()=>setShowComments(!showComments)} src=\"./img/icons/message1.svg\" alt=\"commentIcon\"/>\r\n                   <span>{post.comments.lenght}</span>\r\n               </div>\r\n        \r\n              </div>\r\n            \r\n              <img src=\"./img/icons/share.svg\" alt=\"share\" />\r\n            </div>\r\n        {showComments && <CardComments props={post}/>}\r\n          </div>\r\n        </>\r\n      )}\r\n    </li>\r\n  );\r\n};\r\n\r\nexport default Card;"],"mappings":"gIAAA;AACA;AACA;AACA;AACA;AACA;AA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