Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 7114 | Rev 7279 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

(self.webpackChunkleaderslinked=self.webpackChunkleaderslinked||[]).push([[6938],{96540:(e,t,a)=>{"use strict";var n=a(91941);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(64938)),r=a(85893),u=(0,l.default)((0,r.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.default=u},46907:(e,t,a)=>{"use strict";var n=a(91941);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(64938)),r=a(85893),u=(0,l.default)((0,r.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");t.default=u},96506:(e,t,a)=>{"use strict";var n=a(63207),l=a(83977),r=a(26771),u=a(95366),o=a(82569);r(t,"__esModule",{value:!0}),t.default=void 0;var c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var a=d(t);if(a&&a.has(e))return a.get(e);var l={},o=r&&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)?r(l,c,i):l[c]=e[c]}l.default=e,a&&a.set(e,l);return l}(a(67294)),i=o(a(93471));function d(e){if("function"!=typeof l)return null;var t=new l,a=new l;return(d=function(e){return e?a:t})(e)}var s=function(e){var t=e.show,a=e.onClose,n=e.onAccept,l=(0,c.useRef)();return(0,i.default)(l,(function(){return a()})),c.default.createElement("div",{className:"popover confirmation fade bs-popover-top show",id:"confirmation937427",style:{position:"absolute",top:"-2.5rem",left:"50%",transform:"translate(-50%, -100%)",width:"120px",display:t?"block":"none"},ref:l},c.default.createElement("div",{className:"arrow",style:{left:"46px"}}),c.default.createElement("p",{className:"popover-header"},"¿Está seguro?"),c.default.createElement("div",{className:"popover-body"},c.default.createElement("p",{className:"confirmation-content",style:{display:"none"}}),c.default.createElement("div",{className:"confirmation-buttons text-center"},c.default.createElement("div",{className:"btn-group"},c.default.createElement("button",{type:"button",className:"h-100 d-flex align-items-center btn btn-sm btn-primary",onClick:function(){n(),a()}},"Si"),c.default.createElement("button",{type:"button",className:"h-100 d-flex align-items-center btn btn-sm btn-secondary",onClick:function(){a()}},"No")))))};t.default=s},74250:(e,t,a)=>{"use strict";var n=a(26771),l=a(82569);n(t,"__esModule",{value:!0}),t.default=void 0;var r=l(a(67294)),u=function(e){var t=e.onClick,a=void 0===t?function(){}:t,n=e.variant,l=void 0===n?"primary":n,u=e.label,o=void 0===u?"Confirmar":u,c=e.icon,i=void 0===c?null:c;return r.default.createElement("button",{className:"button btn btn-".concat(l),onClick:function(){return a()}},i,o)};t.default=u},96354:(e,t,a)=>{"use strict";var n=a(63207),l=a(83977),r=a(26771),u=a(95366),o=a(82569);r(t,"__esModule",{value:!0}),t.default=void 0;var c=o(a(33453)),i=o(a(69690)),d=o(a(82191)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var a=w(t);if(a&&a.has(e))return a.get(e);var l={},o=r&&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)?r(l,c,i):l[c]=e[c]}l.default=e,a&&a.set(e,l);return l}(a(67294)),f=a(27325),m=a(43635),v=a(28216),p=a(88409),E=o(a(30488)),_=o(a(99609)),b=o(a(20763)),h=o(a(17546)),y=o(a(54674)),g=o(a(3880)),N=a(4655);function w(e){if("function"!=typeof l)return null;var t=new l,a=new l;return(w=function(e){return e?a:t})(e)}var k=function e(t){var a=t.full_name,n=void 0===a?"":a,l=t.overview,r=void 0===l?"":l,u=t.formatted_address,o=void 0===u?"":u,f=t.total_connections,w=t.show_contact,k=void 0!==w&&w,x=t.experiences,C=void 0===x?[]:x,M=t.link_inmail,j=void 0===M?"":M,O=t.link_cancel,S=void 0===O?"":O,z=t.link_request,A=void 0===z?"":z,F=t.image,L=void 0===F?"":F,P=t.cover,B=void 0===P?"":P,H=t.user_profile_uuid,D=t.uuid,V=t.follower,q=t.following,I=t.facebook,R=t.twitter,U=t.instagram,G=t.sizes,J=t.view_following,K=t.view_total_connections,Q=(0,s.useState)(!1),T=(0,d.default)(Q,2),W=T[0],X=T[1],Y=(0,s.useState)(""),Z=(0,d.default)(Y,2),$=Z[0],ee=Z[1],te=(0,s.useState)(null),ae=(0,d.default)(te,2),ne=ae[0],le=ae[1],re=(0,s.useState)(""),ue=(0,d.default)(re,2),oe=ue[0],ce=ue[1],ie=(0,s.useState)("/storage/type/user-profile/code/".concat(D,"/")),de=(0,d.default)(ie,2),se=de[0],fe=de[1],me=(0,s.useState)("/storage/type/user-cover/code/".concat(D,"}/")),ve=(0,d.default)(me,2),pe=ve[0],Ee=ve[1],_e=(0,s.useState)(!1),be=(0,d.default)(_e,2),he=be[0],ye=be[1],ge=(0,s.useState)(!1),Ne=(0,d.default)(ge,2),we=Ne[0],ke=Ne[1],xe=(0,v.useSelector)((function(e){return e.intl.labels})),Ce=(0,N.useLocation)().pathname,Me=(0,v.useDispatch)(),je=function(){ye(!he)},Oe=function(){var e=(0,i.default)(c.default.mark((function e(){var t,a,n,l;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.axios.get(window.location.href);case 3:if(t=e.sent,a=t.data,n=a.link_request,l=a.link_cancel,!n){e.next=9;break}return ee(n),e.abrupt("return");case 9:ee(l),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),Me((0,p.addNotification)({style:"danger",msg:e.t0}));case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),Se=function(){var e=(0,i.default)(c.default.mark((function e(){var t,a,n,l;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.axios.post($);case 3:if(t=e.sent,a=t.data,n=a.data,l=a.success){e.next=8;break}return e.abrupt("return",Me((0,p.addNotification)({style:"danger",msg:n})));case 8:return l&&he&&je(),e.next=11,Oe();case 11:Me((0,p.addNotification)({style:"success",msg:n})),X(!W),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),Me((0,p.addNotification)({style:"danger",msg:"Error: ".concat(e.t0)}));case 18:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(){return e.apply(this,arguments)}}(),ze=function(){le(null)};return(0,s.useEffect)((function(){X(!A),ce(r),fe(L),Ee(B),ee(A&&S?"":A||S)}),[A,S,r,L,B]),(0,s.useEffect)((function(){ke(Ce.includes("edit"))}),[Ce]),s.default.createElement(s.default.Fragment,null,s.default.createElement("section",{className:"profile__user-card"},s.default.createElement("div",{className:"cover__image-container"},s.default.createElement("img",{alt:"Background Image",src:pe}),we&&s.default.createElement("button",{className:"button-icon cover__edit-btn",onClick:function(){return le("cover")}},s.default.createElement(_.default,null))),s.default.createElement("section",{className:"px-4 pb-4"},s.default.createElement("div",{className:"card__image-options"},s.default.createElement("img",{alt:"Profile Image",className:"img ".concat(we&&"cursor-pointer"),src:se,onClick:function(){return we&&le("image")}}),we&&s.default.createElement("button",{className:"button-icon",onClick:function(){return le("overview")}},s.default.createElement(_.default,null))),s.default.createElement("div",{className:"card-content"},s.default.createElement("div",{className:"card-info"},s.default.createElement("h1",null,n),oe&&(0,E.default)(oe.replaceAll("h1","p")),s.default.createElement("div",{className:"d-inline-flex align-items-center mt-2",style:{gap:"1rem"}},s.default.createElement("span",null,o),s.default.createElement(N.Link,{onClick:function(e){e.preventDefault(),le("info")}},xe.personal_info)),s.default.createElement("div",{className:"d-inline-flex align-items-center mt-2",style:{gap:"1rem"}},Boolean(f)&&K&&s.default.createElement(N.Link,{to:"/connection/my-connections"},"".concat(f," ").concat(xe.connections)),Boolean(V)&&J&&s.default.createElement(N.Link,{className:"cursor-auto",onClick:function(e){return e.preventDefault()}},"".concat(V," ").concat(xe.followers)),Boolean(q)&&J&&s.default.createElement(N.Link,{to:"/company/following-companies"},"".concat(q," ").concat(xe.following))),s.default.createElement("div",{className:"button-actions mt-2"},$&&W&&s.default.createElement("button",{className:"btn button btn-primary",onClick:function(){return je()}},xe.cancel),$&&!W&&s.default.createElement("button",{className:"btn button btn-primary",onClick:Se},xe.connect),k&&s.default.createElement(N.Link,{to:j,className:"btn button btn-secondary"},xe.message))),s.default.createElement("div",{className:"card-experiences"},s.default.createElement("ul",null,C.map((function(e,t){var a=e.company,n=e.title,l=e.industry,r=e.size;return s.default.createElement("li",{key:t},s.default.createElement("span",null,"".concat(a," - ").concat(n)),s.default.createElement("p",null,"".concat(l," / ").concat(r)))}))))))),we&&s.default.createElement(s.default.Fragment,null,s.default.createElement(y.default,{isOpen:"overview"===ne,overview:oe,id:H,closeModal:function(){return ze()},onComplete:function(e){return ce(e)}}),s.default.createElement(h.default,{isOpen:"cover"===ne,sizes:null==G?void 0:G.cover,onClose:function(){return ze()},onComplete:function(e){return Ee(e)}}),s.default.createElement(b.default,{show:"image"===ne,id:H,sizes:null==G?void 0:G.image,onClose:function(){return ze()},onComplete:function(e){return fe(e)}})),s.default.createElement(e.Modal,{show:"info"===ne,closeModal:function(){return ze()},fullName:n,facebook:I,twitter:R,instagram:U,following:q,formatted_address:o,overview:r,total_connections:f,follower:V}),s.default.createElement(g.default,{show:he,onClose:function(){return ye(!1)},onAccept:function(){return Se()}}))};k.Modal=function(e){var t=e.show,a=e.closeModal,n=e.facebook,l=e.following,r=e.formatted_address,u=e.fullName,o=e.instagram,c=e.overview,i=e.total_connections,d=e.twitter,m=e.follower,p=(0,v.useSelector)((function(e){return e.intl.labels}));return s.default.createElement(f.Modal,{show:t,onHide:a},s.default.createElement(f.Modal.Header,{closeButton:!0},s.default.createElement("h2",null,p.about_group)),s.default.createElement(f.Modal.Body,null,s.default.createElement("div",{className:"description__label"},s.default.createElement("label",{htmlFor:"name"},p.first_name),s.default.createElement("p",null,u)),c&&s.default.createElement("div",{className:"description__label"},s.default.createElement("label",{htmlFor:"name"},p.description),c&&(0,E.default)(c)),r&&s.default.createElement("div",{className:"description__label"},s.default.createElement("label",{htmlFor:"name"},p.location),s.default.createElement("p",null,r)),i&&s.default.createElement("div",{className:"description__label"},s.default.createElement("label",{htmlFor:"name"},p.connections),s.default.createElement("p",null,i)),m&&s.default.createElement("div",{className:"description__label"},s.default.createElement("label",{htmlFor:"name"},p.followers),s.default.createElement("p",null,m)),l&&s.default.createElement("div",{className:"description__label"},s.default.createElement("label",{htmlFor:"name"},p.following),s.default.createElement("p",null,l)),s.default.createElement("div",{className:"description__label"},s.default.createElement("label",{htmlFor:"name"},p.social_networks),n&&s.default.createElement("a",{href:n,target:"_blank",rel:"noreferrer"},s.default.createElement("p",{className:"mb-1"},n)),o&&s.default.createElement("a",{href:o,target:"_blank",rel:"noreferrer"},s.default.createElement("p",{className:"mb-1"},o)),d&&s.default.createElement("a",{href:d,target:"_blank",rel:"noreferrer"},s.default.createElement("p",{className:"mb-1"},d)))))};var x=k;t.default=x},17889:(e,t,a)=>{"use strict";var n=a(26771),l=a(82569);n(t,"__esModule",{value:!0}),t.default=void 0;var r=l(a(67294)),u=a(4655),o=l(a(96540)),c=l(a(99609)),i=l(a(74113)),d=function(e){var t=e.title,a=void 0===t?"":t,n=e.addUrl,l=void 0===n?"":n,d=e.onAdd,s=void 0===d?function(){}:d,f=e.onEdit,m=void 0===f?function(){}:f,v=e.justEdit,p=void 0!==v&&v,E=e.children,_=(0,u.useLocation)().pathname;return r.default.createElement("section",{className:"experience__user-card"},r.default.createElement("div",{className:"card__options-container"},r.default.createElement("h2",null,a),_.includes("edit")&&r.default.createElement("div",{className:"card__options-icons"},!p&&r.default.createElement(i.default,{onClick:function(){return s(a,l)}},r.default.createElement(o.default,null)),r.default.createElement(i.default,{onClick:m},r.default.createElement(c.default,null)))),E)};t.default=d},12071:(e,t,a)=>{"use strict";var n=a(63207),l=a(83977),r=a(26771),u=a(95366),o=a(82569);r(t,"__esModule",{value:!0}),t.default=void 0;var c=o(a(33453)),i=o(a(69690)),d=o(a(82191)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var a=_(t);if(a&&a.has(e))return a.get(e);var l={},o=r&&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)?r(l,c,i):l[c]=e[c]}l.default=e,a&&a.set(e,l);return l}(a(67294)),f=a(43635),m=o(a(30488)),v=o(a(99609)),p=o(a(46907)),E=o(a(96506));function _(e){if("function"!=typeof l)return null;var t=new l,a=new l;return(_=function(e){return e?a:t})(e)}var b=function(e){var t=e.education,a=e.isEdit,n=void 0!==a&&a,l=e.onEdit,r=void 0===l?function(){}:l,u=e.setEducations,o=void 0===u?function(){}:u,_=(0,s.useState)(!1),b=(0,d.default)(_,2),h=b[0],y=b[1],g=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,f.axios.post(t.link_delete).then((function(e){var t=e.data;if(t.success)return o(t.data)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return s.default.createElement("div",{className:"card__items"},s.default.createElement("div",{className:"card__options-container"},s.default.createElement("h4",null,t.university),n&&s.default.createElement("div",{className:"card__options-icons position-relative"},s.default.createElement("button",{className:"button-icon",onClick:function(){return r("Educación",t.link_edit,t.description||" ")}},s.default.createElement(v.default,null)),s.default.createElement("button",{className:"button-icon",onClick:function(){return y(!0)}},s.default.createElement(p.default,null)),s.default.createElement(E.default,{show:h,onClose:function(){return y(!1)},onAccept:g}))),s.default.createElement("p",null,"".concat(t.field_of_study," - ").concat(t.degree)),s.default.createElement("span",null,"".concat(t.from_year," -  ").concat(t.to_year||"Actual")),s.default.createElement("span",null,t.formatted_address),s.default.createElement("p",null,t.formatted_adress),t.description&&(0,m.default)(t.description))};t.default=b},31431:(e,t,a)=>{"use strict";var n=a(63207),l=a(83977),r=a(26771),u=a(95366),o=a(82569);r(t,"__esModule",{value:!0}),t.default=void 0;var c=o(a(63207)),i=o(a(82191)),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var a=_(t);if(a&&a.has(e))return a.get(e);var l={},o=r&&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)?r(l,c,i):l[c]=e[c]}l.default=e,a&&a.set(e,l);return l}(a(67294)),s=a(43635),f=a(53827),m=o(a(30488)),v=o(a(99609)),p=o(a(46907)),E=o(a(96506));function _(e){if("function"!=typeof l)return null;var t=new l,a=new l;return(_=function(e){return e?a:t})(e)}var b=function(e){var t=e.experience,a=e.isEdit,n=void 0!==a&&a,l=e.onEdit,r=void 0===l?function(){}:l,u=e.onDelete,o=void 0===u?function(){}:u,_=(0,d.useState)(!1),b=(0,i.default)(_,2),h=b[0],y=b[1];return d.default.createElement("div",{className:"card__items"},d.default.createElement("div",{className:"card__options-container"},d.default.createElement("h4",null,t.title),n&&d.default.createElement("div",{className:"card__options-icons position-relative"},d.default.createElement("button",{className:"button-icon",onClick:function(){return r("Experiencia",t.link_edit,t.description||" ")}},d.default.createElement(v.default,null)),d.default.createElement("button",{className:"button-icon",onClick:function(){return y(!0)}},d.default.createElement(p.default,null)),d.default.createElement(E.default,{show:h,onClose:function(){return y(!1)},onAccept:function(){s.axios.post(t.link_delete).then((function(e){var t=e.data;return t.success&&o(t.data)}))}}))),d.default.createElement("p",null,t.company),d.default.createElement("span",null,"".concat("object"===(0,c.default)(t.industry)?t.industry.name:t.industry," / ").concat(t.size)),d.default.createElement("span",null,"".concat((0,f.getMonthName)(t.from_month)," ").concat(t.from_year)," -"," ",t.to_year?"".concat((0,f.getMonthName)(t.to_month)," ").concat(t.to_year):"Actual"),d.default.createElement("p",null,t.formatted_adress),t.description&&(0,m.default)(t.description))};t.default=b},83804:(e,t,a)=>{"use strict";var n=a(26771),l=a(82569);n(t,"__esModule",{value:!0}),t.default=void 0;var r=l(a(67294)),u=l(a(74250)),o=function(e){var t=e.value;return r.default.createElement("div",{className:"d-flex align-items-center flex-wrap",style:{gap:".5rem"}},t.map((function(e){var t=e.value,a=e.name;return r.default.createElement(u.default,{label:a,key:t,variant:"secondary cursor-auto"})})))};t.default=o},27921:(e,t,a)=>{e.exports=a(47185)}}]);