Rev 5790 | Rev 5792 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
"use strict";(self.webpackChunkleaderslinked=self.webpackChunkleaderslinked||[]).push([[199],{1199:(e,t,n)=>{var a=n(3207),r=n(3977),l=n(6771),u=n(5366),o=n(2569);l(t,"__esModule",{value:!0}),t.default=void 0;var c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},o=l&&u;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var i=o?u(e,c):null;i&&(i.get||i.set)?l(r,c,i):r[c]=e[c]}r.default=e,n&&n.set(e,r);return r}(n(7294)),i=n(8216),f=n(7901),d=o(n(3824)),s=o(n(1650)),m=o(n(2055));function p(e){if("function"!=typeof r)return null;var t=new r,n=new r;return(p=function(e){return e?n:t})(e)}var v=c.default.lazy((function(){return Promise.all([n.e(800),n.e(911)]).then(n.t.bind(n,2911,23))})),E=c.default.lazy((function(){return n.e(627).then(n.t.bind(n,1627,23))})),_=window.location.pathname.includes("dashboard"),g=window.innerWidth<768,h=function(e){var t=e.feed,a=e.image,r=(
0,i.useSelector)((function(e){return e.feed})),l=r.allFeeds,u=r.timelineUrl,o=r.pages,p=r.currentPage,h=r.loading,w=(0,i.useDispatch)(),y=(0,i.useSelector)((function(e){return e.labels}));(0,c.useEffect)((function(){return w(t?(0,f.fetchFeeds)(u+"/feed/"+t,1):(0,f.fetchFeeds)(u,p))}),[]);return h?c.default.createElement(s.default,null):c.default.createElement(c.default.Fragment,null,l.length?l.map((function(e,t){if(g&&_&&5===t){var r=c.default.lazy((function(){return Promise.resolve().then(n.t.bind(n,1024,23))}));return c.default.createElement(c.default.Fragment,null,c.default.createElement(c.Suspense,{fallback:null},c.default.createElement(r,null)),c.default.createElement(m.default,{feed:e,key:e.feed_unique,owner_shared:e.owner_shared,image:a}))}if(g&&_&&8===t){var l=c.default.lazy((function(){return Promise.resolve().then(n.t.bind(n,1146,23))}));return c.default.createElement(c.default.Fragment,null,c.default.createElement(c.Suspense,{fallback:null},c.default.createElement(l,null)),c.default.createElement(
m.default,{feed:e,key:e.feed_unique,owner_shared:e.owner_shared,image:a}))}return c.default.createElement(m.default,{feed:e,key:e.feed_unique,owner_shared:e.owner_shared,image:a})})):c.default.createElement(d.default,{message:y.NOT_AVAILABLE_FEEDS}),c.default.createElement(c.Suspense,{fallback:null},c.default.createElement(v,{timelineUrl:u,currentPage:p})),c.default.createElement(c.Suspense,{fallback:null},c.default.createElement(E,{onChangePage:function(e){w((0,f.setCurrentPage)(e)),w((0,f.fetchFeeds)(u,e)),window.scrollTo(0,0)},pages:o,isRow:!0,currentActivePage:p})))},w=c.default.memo(h);t.default=w},470:(e,t,n)=>{var a=n(6771),r=n(2569);a(t,"__esModule",{value:!0}),t.default=void 0;var l=r(n(7294)),u=r(n(4434)),o=r(n(4733)),c=function(e){var t=e.showDescription,n=void 0===t||t,a=e.ownerFileImage,r=e.ownerFileVideo,c=e.ownerFileImagePreview,i=e.ownerFileDocument,f=e.ownerDescription,d=e.isShare,s=e.sharedItem;return l.default.createElement("div",{className:"job_descp"},n&&l.default.createElement(o.default
,{ownerDescription:f}),a&&l.default.createElement("img",{src:a,className:"Entradas",loading:"lazy"}),r&&l.default.createElement("video",{src:r,controls:!0,poster:c,preload:"none"}),i&&l.default.createElement("a",{href:i,target:"_blank",rel:"noreferrer"},"Descargar"),d&&l.default.createElement(u.default,{name:s.name,image:s.image,timeElapse:s.time_elapse,description:s.description,fileVideo:s.file_video,fileImagePreview:s.file_image_preview,fileImage:s.file_image,fileDocument:s.file_document}))};t.default=c},4733:(e,t,n)=>{var a=n(3207),r=n(3977),l=n(6771),u=n(5366),o=n(2569);l(t,"__esModule",{value:!0}),t.default=void 0;var c=o(n(2191)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},o=l&&u;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var i=o?u(e,c):null;i&&(i.get||i.set)?l(r,c,i):r[c]=e[c]}r.default=e,n&&n.set(e,r);return r}(n(7294)),f=o(n(488));function d(e){
if("function"!=typeof r)return null;var t=new r,n=new r;return(d=function(e){return e?n:t})(e)}var s=function(e){var t=e.ownerDescription,n=(0,i.useState)(!1),a=(0,c.default)(n,2),r=a[0],l=a[1],u=function(){return l(!r)};return i.default.createElement("div",{className:"show-read-more"},function(e){var t=(0,f.default)(e);if(e.length>500){var n=e.substr(0,500),a=(0,f.default)("".concat(n,"... "));return i.default.createElement("p",null,r?t:a,i.default.createElement("span",{className:"cursor-pointer",onClick:u},r?" Leer menos":" Leer más"))}return i.default.createElement("p",null,t)}(t))};t.default=s},1430:(e,t,n)=>{var a=n(3207),r=n(3977),l=n(6771),u=n(5366),o=n(2569);l(t,"__esModule",{value:!0}),t.default=void 0;var c=o(n(2191)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var r={},o=l&&u;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var i=o?u(e,c):null;i&&(i.get||i.
set)?l(r,c,i):r[c]=e[c]}r.default=e,n&&n.set(e,r);return r}(n(7294)),f=n(9592),d=n(7901),s=n(8216),m=n(186),p=o(n(1787)),v=o(n(3864));function E(e){if("function"!=typeof r)return null;var t=new r,n=new r;return(E=function(e){return e?n:t})(e)}var _=function(e){var t=e.ownerName,n=e.ownerImage,a=e.ownerTimeElapse,r=e.ownerUrl,l=e.feedDeleteUrl,u=e.feedUnique,o=e.feedType,E=(0,i.useState)(!1),_=(0,c.default)(E,2),g=_[0],h=_[1],w=(0,i.useState)(!1),y=(0,c.default)(w,2),b=y[0],N=y[1],S=(0,i.useRef)(),D=(0,s.useDispatch)(),C=function(){return h(!g)};return(0,i.useEffect)((function(){var e=function(e){S.current&&!S.current.contains(e.target)&&N(!1)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[S]),i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{className:"post_topbar"},i.default.createElement("div",{className:"usy-dt"},i.default.createElement("a",{href:r},i.default.createElement("img",{src:n,alt:"",style:{width:"50px",heig
ht:"auto"}})),i.default.createElement("div",{className:"usy-name"},i.default.createElement("a",{href:r},i.default.createElement("h3",null,t)),i.default.createElement("span",null,"g"===o&&i.default.createElement(v.default,null),a))),l&&i.default.createElement("div",{className:"cursor-pointer d-flex align-items-center"},i.default.createElement("img",{src:"/images/icons/options.png",className:"cursor-pointer img-icon options",onClick:function(){return N(!b)}}),i.default.createElement("div",{className:"feed-options ".concat(b?"active":"")},i.default.createElement("ul",null,i.default.createElement("li",null,i.default.createElement("button",{className:"option-btn",onClick:C,ref:S},i.default.createElement("i",{className:"fa fa-trash-o mr-1"}),LABELS.DELETE)))),i.default.createElement(p.default,{show:g,onClose:function(){return C()},onAccept:function(){f.axios.post(l).then((function(e){var t=e.data;t.success?(D((0,m.addNotification)({style:"success",msg:t.data})),C(),D((0,d.deleteFeed)(u))):D((0,m.addNotification)({
style:"danger",msg:t.data}))}))},acceptLabel:"Aceptar"}))))};t.default=_},1:(e,t,n)=>{var a=n(6771),r=n(2569);a(t,"__esModule",{value:!0}),t.default=void 0;var l=r(n(7294)),u=n(5554),o=r(n(470)),c=r(n(4733)),i=r(n(1430)),f=function(e){var t=e.isShow,n=e.handleClose,a=e.feed,r=a.owner_file_image,f=a.owner_file_video,d=a.owner_file_image_preview,s=a.owner_file_document,m=a.owner_description,p=a.shared_name,v=a.shared_image,E=a.shared_time_elapse,_=a.shared_description,g=a.shared_file_video,h=a.shared_file_image_preview,w=a.shared_file_image,y=a.shared_file_document,b=a.owner_name,N=a.owner_image,S=a.owner_time_elapse,D=a.owner_url,C=a.feed_delete_url,k=a.feed_unique;return l.default.createElement(u.Modal,{show:t,onHide:n,dialogClassName:"modal-lg"},l.default.createElement(u.Modal.Header,{closeButton:!0}),l.default.createElement(u.Modal.Body,null,l.default.createElement("div",{className:"d-flex flex-column-reverse flex-md-row"},l.default.createElement("div",{className:"col-md-8 col-sm-12 col-12"},l.default.crea
teElement(o.default,{showDescription:!1,isShare:!!p,ownerFileImage:r,ownerFileVideo:f,ownerFileImagePreview:d,ownerFileDocument:s,ownerDescription:m,sharedItem:{name:p,image:v,time_elapse:E,description:_,file_video:g,file_image_preview:h,file_image:w,file_document:y}})),l.default.createElement("div",{className:"col-md-4 col-sm-12 col-12"},l.default.createElement(i.default,{ownerName:b,ownerImage:N,ownerTimeElapse:S,ownerUrl:D,feedDeleteUrl:C,feedUnique:k}),l.default.createElement(c.default,{ownerDescription:m})))))};t.default=f},2055:(e,t,n)=>{var a=n(3207),r=n(3977),l=n(6771),u=n(5366),o=n(2569);l(t,"__esModule",{value:!0}),t.default=void 0;var c=o(n(3453)),i=o(n(3473)),f=o(n(9690)),d=o(n(2191)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=O(t);if(n&&n.has(e))return n.get(e);var r={},o=l&&u;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var i=o?u(e,c):null;i&&(i.get||i.set)?l(r,c,i):r[c]=e[c]}r.default
=e,n&&n.set(e,r);return r}(n(7294)),m=o(n(488)),p=n(8216),v=n(9592),E=n(9782),_=n(8861),g=n(5966),h=n(477),w=n(186),y=o(n(9688)),b=o(n(1)),N=o(n(1430)),S=o(n(3710)),D=o(n(8433)),C=o(n(3734)),k=o(n(3867)),F=o(n(9547)),I=o(n(8852)),L=n(4730);function O(e){if("function"!=typeof r)return null;var t=new r,n=new r;return(O=function(e){return e?n:t})(e)}var M=function e(t){var n=t.feed,a=t.owner_shared,r=t.image,l=n.feed_unique,u=n.owner_name,o=n.owner_url,m=n.owner_image,O=n.owner_time_elapse,M=n.owner_file_image,x=n.owner_file_video,A=n.owner_file_document,P=n.owner_feed_type,B=n.feed_highlighted,R=n.feed_share_url,T=n.feed_delete_url,j=n.comments,z=n.comment_add_url,q=n.feed_share_external_url,U=(0,s.useState)(j.length),V=(0,d.default)(U,2),H=V[0],W=V[1],G=(0,s.useState)(n.feed_reactions),J=(0,d.default)(G,2),K=J[0],Q=J[1],X=(0,s.useState)(0),Y=(0,d.default)(X,2),Z=Y[0],$=Y[1],ee=(0,s.useState)(a),te=(0,d.default)(ee,2),ne=te[0],ae=te[1],re=(0,s.useState)(""),le=(0,d.default)(re,2),ue=le[0],oe=le[1],ce=(0,s.useS
tate)(!1),ie=(0,d.default)(ce,2),fe=ie[0],de=ie[1],se=(0,s.useState)(!1),me=(0,d.default)(se,2),pe=me[0],ve=me[1],Ee=(0,s.useState)(!1),_e=(0,d.default)(Ee,2),ge=_e[0],he=_e[1],we=(0,s.useRef)(null),ye=(0,p.useDispatch)(),be=(0,y.default)(we),Ne=[{type:"r",icon:s.default.createElement(D.default,{style:{color:"#7405f9"}})},{type:"s",icon:s.default.createElement(k.default,{style:{color:"#6495ED"}})},{type:"l",icon:s.default.createElement(C.default,{style:{color:"#DF704D"}})},{type:"i",icon:s.default.createElement(I.default,{style:{color:"#F5BB5C",transform:"rotate(180deg)"}})},{type:"f",icon:s.default.createElement(F.default,{style:{color:"#FF7F50"}})}],Se=new i.default((function(e,t){pe&&v.axios.get(q).then((function(n){var a=n.data;return a.success?(oe(a.data),e(a.data)):(ye((0,w.addNotification)({style:"danger",msg:a.data})),ve(!1),t(a.data))})).catch((function(e){return t(e)}))})),De=function(){var e=(0,f.default)(c.default.mark((function e(t){var a;return c.default.wrap((function(e){for(;;)switch(e.prev=e
.next){case 0:return a={r:n.feed_save_reaction_recommended_url,s:n.feed_save_reaction_support_url,l:n.feed_save_reaction_love_url,i:n.feed_save_reaction_interest_url,f:n.feed_save_reaction_fun_url},e.next=3,v.axios.post(a[t]).then((function(e){var t=e.data,n=t.success,a=t.data;return n||ye((0,w.addNotification)({style:"danger",msg:a})),Q(a.reactions),!0}));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ce=function(){var e=(0,f.default)(c.default.mark((function e(){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.axios.post(n.feed_delete_reaction_url).then((function(e){var t=e.data,n=t.success,a=t.data;if(n)return Q(a.reactions),!0;ye((0,w.addNotification)({style:"danger",msg:a}))}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,s.useEffect)((function(){return ae(a)}),[a]),(0,s.useEffect)((function(){return be&&ve(!1)}),[be]),(0,s.useEffect)((function(){var e=K.r
educe((function(e,t){return e+Number(t.total)}),0);$(e)}),[K]),s.default.createElement(s.default.Fragment,null,s.default.createElement(b.default,{isShow:ge,handleClose:function(){return he(!1)},feed:n}),s.default.createElement("div",{className:"feed ".concat(B?"highlighted":"")},s.default.createElement(N.default,{ownerName:u,ownerImage:m,ownerTimeElapse:O,ownerUrl:o,feedDeleteUrl:T,feedUnique:l,feedType:P}),s.default.createElement("div",{onClick:function(){return(M||x||A)&&he(!0)}},s.default.createElement(e.Content,{isShare:!!n.shared_name,ownerFileImage:n.owner_file_image,ownerFileVideo:n.owner_file_video,ownerFileImagePreview:n.owner_file_image_preview,ownerFileDocument:n.owner_file_document,ownerDescription:n.owner_description,sharedItem:{name:n.shared_name,image:n.shared_image,time_elapse:n.shared_time_elapse,description:n.shared_description,file_video:n.shared_file_video,file_image_preview:n.shared_file_image_preview,file_image:n.shared_file_image,file_document:n.shared_file_document}})),s.default.creat
eElement("div",{className:"reactions-counter"},Ne.filter((function(e){return K.find((function(t){return t.reaction===e.type}))})).map((function(e){return e.icon})),s.default.createElement("span",null,Z," reacciones")),s.default.createElement("ul",{className:"reactions-list"},s.default.createElement("li",null,s.default.createElement(L.ReactionButton,{onSelect:De,onDelete:Ce,myReaction:n.feed_my_reaction})),s.default.createElement("li",null,s.default.createElement("button",{type:"button",id:"btn-comments-".concat(l),className:"btn-indicator",onClick:function(){return de(!fe)}},s.default.createElement("img",{src:"/images/icons/message.png",className:"mr-1 img-icon"}),H)),s.default.createElement("li",null,s.default.createElement("button",{type:"button",id:"btn-share-".concat(l),className:"btn-indicator",onClick:function(){ye((0,h.openShareModal)(R,g.shareModalTypes.SHARE,_.feedTypes.DASHBOARD,l))}},s.default.createElement("img",{src:"/images/icons/share.png",className:"mr-1 img-icon"}),ne)),s.default.createEleme
nt("li",{className:"position-relative"},s.default.createElement("button",{type:"button",className:"btn-indicator",onClick:function(){return ve(!pe)}},s.default.createElement("i",{className:"mr-1 far fa-share-square"})),pe&&s.default.createElement("div",{className:"ext_share",ref:we},s.default.createElement(E.FacebookShareButton,{beforeOnClick:function(){return Se},url:ue},s.default.createElement(E.FacebookIcon,{size:32,round:!0})),s.default.createElement(E.TwitterShareButton,{beforeOnClick:function(){return Se},url:ue},s.default.createElement(E.TwitterIcon,{size:32,round:!0})),s.default.createElement(E.TelegramShareButton,{beforeOnClick:function(){return Se},url:ue},s.default.createElement(E.TelegramIcon,{size:32,round:!0})),s.default.createElement(E.WhatsappShareButton,{beforeOnClick:function(){return Se},url:ue},s.default.createElement(E.WhatsappIcon,{size:32,round:!0})),s.default.createElement(E.RedditShareButton,{beforeOnClick:function(){return Se},url:ue},s.default.createElement(E.RedditIcon,{size:32,ro
und:!0})),s.default.createElement(E.EmailShareButton,{beforeOnClick:function(){return Se},url:ue},s.default.createElement(E.EmailIcon,{size:32,round:!0}))))),s.default.createElement(S.default,{feedId:n.feed_unique,image:r,addUrl:z,updateTotalComments:function(e){return W(e)},currentComments:j,isShow:fe})))};M.SharedContent=function(e){var t=e.name,n=e.image,a=e.timeElapse,r=e.description,l=e.fileVideo,u=e.fileImagePreview,o=e.fileImage,c=e.fileDocument,i=(0,s.useState)(!1),f=(0,d.default)(i,2),v=f[0],E=f[1],_=(0,p.useSelector)((function(e){return e.labels})),g=function(){return E(!v)};return s.default.createElement("div",{className:"shared-post-bar"},s.default.createElement("div",{className:"post-bar"},s.default.createElement("div",{className:"post_topbar"},s.default.createElement("div",{className:"usy-dt"},s.default.createElement("img",{src:n,alt:"",style:{width:"50px",height:"auto"}}),s.default.createElement("div",{className:"usy-name"},s.default.createElement("h3",null,t),s.default.createElement("span",nu
ll,a)))),s.default.createElement("div",{className:"job_descp"},s.default.createElement("div",{className:"show-read-more"},function(e){var t=(0,m.default)(e);if(e.length>500){var n=e.substr(0,500),a=(0,m.default)("".concat(n,"... "));return s.default.createElement("p",null,v?t:a,s.default.createElement("span",{className:"cursor-pointer",onClick:g},v?_.READ_LESS:_.READ_MORE))}return s.default.createElement("p",null,t)}(r)),o&&s.default.createElement("img",{src:o,className:"Entradas",loading:"lazy"}),l&&s.default.createElement("video",{src:l,controls:!0,poster:u,preload:"none"}),c&&s.default.createElement("a",{href:c,target:"_blank",rel:"noreferrer"},_.DOWNLOAD))))},M.Description=function(e){var t=e.ownerDescription,n=(0,s.useState)(!1),a=(0,d.default)(n,2),r=a[0],l=a[1],u=(0,p.useSelector)((function(e){return e.labels})),o=function(){return l(!r)};return s.default.createElement("div",{className:"show-read-more"},function(e){var t=(0,m.default)(e);if(e.length>500){var n=e.substr(0,500),a=(0,m.default)("".concat
(n,"... "));return s.default.createElement("p",null,r?t:a,s.default.createElement("span",{className:"cursor-pointer",onClick:o},r?u.READ_LESS:u.READ_MORE))}return s.default.createElement("p",null,t)}(t))},M.Content=function(e){var t=e.showDescription,n=void 0===t||t,a=e.ownerFileImage,r=e.ownerFileVideo,l=e.ownerFileImagePreview,u=e.ownerFileDocument,o=e.ownerDescription,c=e.isShare,i=e.sharedItem,f=(0,p.useSelector)((function(e){return e.labels}));return s.default.createElement("div",{className:"job_descp"},n&&s.default.createElement(M.Description,{ownerDescription:o}),a&&s.default.createElement("img",{src:a,className:"Entradas",loading:"lazy"}),r&&s.default.createElement("video",{src:r,controls:!0,poster:l,preload:"none"}),u&&s.default.createElement("a",{href:u,target:"_blank",rel:"noreferrer"},f.DOWNLOAD),c&&s.default.createElement(M.SharedContent,{name:i.name,image:i.image,timeElapse:i.time_elapse,description:i.description,fileVideo:i.file_video,fileImagePreview:i.file_image_preview,fileImage:i.file_imag
e,fileDocument:i.file_document}))};var x=s.default.memo(M);t.default=x},4434:(e,t,n)=>{var a=n(3207),r=n(3977),l=n(6771),u=n(5366),o=n(2569);l(t,"__esModule",{value:!0}),t.default=void 0;var c=o(n(2191)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},o=l&&u;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var i=o?u(e,c):null;i&&(i.get||i.set)?l(r,c,i):r[c]=e[c]}r.default=e,n&&n.set(e,r);return r}(n(7294)),f=o(n(488));function d(e){if("function"!=typeof r)return null;var t=new r,n=new r;return(d=function(e){return e?n:t})(e)}var s=function(e){var t=e.name,n=e.image,a=e.timeElapse,r=e.description,l=e.fileVideo,u=e.fileImagePreview,o=e.fileImage,d=e.fileDocument,s=(0,i.useState)(!1),m=(0,c.default)(s,2),p=m[0],v=m[1],E=function(){return v(!p)};return i.default.createElement("div",{className:"shared-post-bar"},i.default.createElement("div",{className:"post-bar"},i.de
fault.createElement("div",{className:"post_topbar"},i.default.createElement("div",{className:"usy-dt"},i.default.createElement("img",{src:n,alt:"",style:{width:"50px",height:"auto"}}),i.default.createElement("div",{className:"usy-name"},i.default.createElement("h3",null,t),i.default.createElement("span",null,a)))),i.default.createElement("div",{className:"job_descp"},i.default.createElement("div",{className:"show-read-more"},function(e){var t=(0,f.default)(e);if(e.length>500){var n=e.substr(0,500),a=(0,f.default)("".concat(n,"... "));return i.default.createElement("p",null,p?t:a,i.default.createElement("span",{className:"cursor-pointer",onClick:E},p?" Leer menos":" Leer más"))}return i.default.createElement("p",null,t)}(r)),o&&i.default.createElement("img",{src:o,className:"Entradas",loading:"lazy"}),l&&i.default.createElement("video",{src:l,controls:!0,poster:u,preload:"none"}),d&&i.default.createElement("a",{href:d,target:"_blank",rel:"noreferrer"},"Descargar"))))};t.default=s},3710:(e,t,n)=>{var a=n(3207
),r=n(3977),l=n(6771),u=n(5366),o=n(2569);l(t,"__esModule",{value:!0}),t.default=void 0;var c=o(n(3562)),i=o(n(3420)),f=o(n(2191)),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},o=l&&u;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var i=o?u(e,c):null;i&&(i.get||i.set)?l(r,c,i):r[c]=e[c]}r.default=e,n&&n.set(e,r);return r}(n(7294)),s=n(9592),m=n(3470),p=n(8216),v=n(186),E=o(n(1787)),_=o(n(2495));function g(e){if("function"!=typeof r)return null;var t=new r,n=new r;return(g=function(e){return e?n:t})(e)}var h=function e(t){var n=t.isShow,a=void 0===n||n,r=t.image,l=void 0===r?"":r,u=t.addUrl,o=void 0===u?"":u,p=t.updateTotalComments,v=void 0===p?function(){}:p,E=t.currentComments,g=void 0===E?[]:E,h=t.addNotification,w=(0,m.useForm)(),y=w.register,b=w.handleSubmit,N=w.errors,S=w.reset,D=(0,d.useState)(g),C=(0,f.default)(D,2),k=C[0],F=C[1];return(0,d.useEffect)((
function(){F(g)}),[g]),d.default.createElement("div",{className:"comments-container ".concat(a?"show":"hidden")},d.default.createElement("form",{className:"feedCommentContainer",onSubmit:b((function(e){var t=new FormData;(0,c.default)(e).forEach((function(e){var n=(0,f.default)(e,2),a=n[0],r=n[1];return t.append(a,r)})),s.axios.post(o,t).then((function(e){var t=e.data,n=t.success,a=t.data,r=t.total_comments;n?(v(r),F((function(e){return[].concat((0,i.default)(e),[a])})),S()):h({style:"danger",msg:a})}))}))},l&&d.default.createElement("img",{src:l,alt:"User profile image"}),d.default.createElement("input",{className:"commentInput",type:"text",name:"comment",maxLength:"256",placeholder:LABELS.WRITE_A_COMMENT,ref:y({required:"El campo es requerido"})}),d.default.createElement("button",{className:"shareIconContainer iconActive"},d.default.createElement("img",{src:"/images/icons/send.png",className:"fa img-icon"}))),N.comment&&d.default.createElement(_.default,null,N.comment.message),d.default.createElement(e.Lis
t,{comments:k,onDelete:function(e,t){s.axios.post(t).then((function(t){var n=t.data,a=n.success,r=n.data,l=n.total_comments;if(!a)return h({style:"danger",msg:r});v(l),F((function(t){return t.filter((function(t){return t.unique!==e}))})),h({style:"success",msg:r})})).catch((function(e){return h({style:"danger",msg:e.message})}))}}))},w=function e(t){var n=t.comments,a=t.onDelete;return d.default.createElement("ul",{className:"comment-list"},n.map((function(t){return d.default.createElement(e.Item,{comment:t,onDelete:a,key:t.unique})})))};h.List=w,w.Item=function(e){var t=e.onDelete,n=e.comment,a=n.unique,r=n.user_url,l=n.user_name,u=n.user_image,o=n.time_elapsed,c=n.comment,i=n.link_delete,s=(0,d.useState)(!1),m=(0,f.default)(s,2),p=m[0],v=m[1],_=(0,d.useState)(!1),g=(0,f.default)(_,2),h=g[0],w=g[1],y=(0,d.useRef)(),b=function(){return v(!p)};return(0,d.useEffect)((function(){var e=function(e){y.current&&!y.current.contains(e.target)&&w(!1)};return document.addEventListener("mousedown",e),function(){document
.removeEventListener("mousedown",e)}}),[y]),d.default.createElement("li",null,d.default.createElement("div",{className:"comment-container"},u&&d.default.createElement("img",{src:u,alt:"user-image",className:"user-image"}),d.default.createElement("div",{className:"comment-content"},d.default.createElement("div",{className:"info"},d.default.createElement("a",{href:r},d.default.createElement("h3",null,l)),d.default.createElement("span",null,o,n.link_delete&&d.default.createElement(d.default.Fragment,null,d.default.createElement("img",{src:"/images/icons/options.png",className:"cursor-pointer img-icon options-sm",onClick:function(){return w(!h)}}),d.default.createElement("div",{className:"comments-options ".concat(h?"active":"")},d.default.createElement("ul",null,d.default.createElement("li",null,d.default.createElement("button",{className:"option-btn",onClick:b,ref:y},d.default.createElement("i",{className:"fa fa-trash-o mr-1"}),LABELS.DELETE))))))),d.default.createElement("p",null,c))),d.default.createElement(
E.default,{show:p,onClose:b,onAccept:function(){return t(a,i)},acceptLabel:LABELS.ACCEPT}))};var y={addNotification:function(e){return(0,v.addNotification)(e)}},b=(0,p.connect)(null,y)(h);t.default=b},4730:(e,t,n)=>{var a=n(3207),r=n(3977),l=n(6771),u=n(5366),o=n(2569);l(t,"__esModule",{value:!0}),t.ReactionButton=void 0;var c=o(n(3453)),i=o(n(9690)),f=o(n(2191)),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={},o=l&&u;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var i=o?u(e,c):null;i&&(i.get||i.set)?l(r,c,i):r[c]=e[c]}r.default=e,n&&n.set(e,r);return r}(n(7294)),s=o(n(8433)),m=o(n(3734)),p=o(n(3867)),v=o(n(9547)),E=o(n(8852)),_=n(9592),g=o(n(9688));function h(e){if("function"!=typeof r)return null;var t=new r,n=new r;return(h=function(e){return e?n:t})(e)}t.ReactionButton=function(e){var t=e.onSelect,n=e.onDelete,a=e.myReaction,r=(0,d.useState)(a),l=(0,f.defaul
t)(r,2),u=l[0],o=l[1],h=(0,d.useState)(!1),w=(0,f.default)(h,2),y=w[0],b=w[1],N=(0,d.useRef)(null),S=(0,g.default)(N),D=[{type:"r",icon:d.default.createElement(s.default,{style:{color:"#7405f9"}})},{type:"s",icon:d.default.createElement(p.default,{style:{color:"#6495ED"}})},{type:"l",icon:d.default.createElement(m.default,{style:{color:"#DF704D"}})},{type:"i",icon:d.default.createElement(E.default,{style:{color:"#F5BB5C",transform:"rotate(180deg)"}})},{type:"f",icon:d.default.createElement(v.default,{style:{color:"#FF7F50"}})}],C=function(){var e=(0,i.default)(c.default.mark((function e(n){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(n);case 2:e.sent&&o(n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=(0,i.default)(c.default.mark((function e(){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n();case 2:e.sent&&o("");case 4:case"end":return e.stop()}}),e)})));
return function(){return e.apply(this,arguments)}}(),F=(0,_.debounce)((function(){return b(!0)}),500),I=(0,_.debounce)((function(){return b(!1)}),500);return(0,d.useEffect)((function(){S&&b(!1)}),[S]),d.default.createElement("button",{type:"button",className:"reaction-btn",onMouseOver:F,onMouseOut:I,onClick:function(){u?k():C(D[0].type)},ref:N},u?D.find((function(e){return e.type===u})).icon:d.default.createElement(s.default,{style:{color:"#626d7a"}}),d.default.createElement("div",{className:"reactions ".concat(y?"active":"")},D.map((function(e){return d.default.createElement("button",{key:e.type,onClick:function(t){t.stopPropagation(),C(e.type)}},e.icon)}))))}},9688:(e,t,n)=>{var a=n(6771),r=n(2569);a(t,"__esModule",{value:!0}),t.default=void 0;var l=r(n(2191)),u=n(7294),o=function(e){var t=(0,u.useState)(!1),n=(0,l.default)(t,2),a=n[0],r=n[1];return(0,u.useEffect)((function(){var t=function(t){null!=e&&e.current&&!e.current.contains(t.target)&&r(!0),r(!1)};return document.addEventListener("mousedown",t),fu
nction(){document.removeEventListener("mousedown",t)}}),[e]),a};t.default=o},1787:(e,t,n)=>{var a=n(6771),r=n(2569);a(t,"__esModule",{value:!0}),t.default=void 0;var l=r(n(7294)),u=r(n(5005)),o=r(n(4041)),c=r(n(1650)),i=n(8216),f=function(e){var t=e.show,n=void 0!==t&&t,a=e.title,r=void 0===a?"¿Estás seguro?":a,f=e.message,d=void 0===f?"":f,s=e.acceptLabel,m=void 0===s?"Enviar":s,p=e.onClose,v=void 0===p?function(){return null}:p,E=e.onAccept,_=void 0===E?function(){return null}:E,g=e.loading,h=void 0!==g&&g,w=(0,i.useSelector)((function(e){return e.labels}));return l.default.createElement(o.default,{size:"sm",show:n,onHide:v},l.default.createElement(o.default.Header,{closeButton:!0},l.default.createElement(o.default.Title,null,r)),l.default.createElement(o.default.Body,null,d&&l.default.createElement("p",null,d),h&&l.default.createElement(c.default,null)),l.default.createElement(o.default.Footer,null,l.default.createElement(u.default,{size:"lg",type:"submit",onClick:_},m),l.default.createElement(u.default
,{size:"lg",onClick:v},w.CANCEL)))};t.default=f},2495:(e,t,n)=>{var a=n(6771),r=n(2569);a(t,"__esModule",{value:!0}),t.default=void 0;var l,u=r(n(9117)),o=r(n(7294)),c=r(n(8117)).default.p(l||(l=(0,u.default)(["\n color: #ff0000;\n font-size: 0.9rem;\n margin: 0.2rem 0;\n"]))),i=function(e){var t=e.children;return o.default.createElement(c,null,t)};t.default=i}}]);