Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6800 | Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
6795 stevensc 1
"use strict";(self.webpackChunkleaderslinked=self.webpackChunkleaderslinked||[]).push([[244],{46907:(e,t,a)=>{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},99609:(e,t,a)=>{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:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"}),"EditOutlined");t.default=u},96506:(e,t,a)=>{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)=>{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)=>{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=N(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=o(a(30488)),m=a(76689),v=a(43635),p=a(28216),E=a(88409),_=o(a(99609)),g=o(a(20763)),b=o(a(17546)),h=o(a(54674)),y=o(a(3880));function N(e){if("function"!=typeof l)return null;var t=new l,a=new l;return(N=function(e){return e?a:t})(e)}var w=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,m=t.total_connections,N=t.show_contact,w=void 0!==N&&N,k=t.experiences,C=void 0===k?[]:k,x=t.link_inmail,O=void 0===x?"":x,M=t.link_cancel,S=void 0===M?"":M,j=t.link_request,F=void 0===j?"":j,L=t.image,A=void 0===L?"":L,I=t.cover,P=void 0===I?"":I,z=t.user_profile_id,B=t.follower,T=t.following,H=t.facebook,R=t.twitter,D=t.instagram,V=t.sizes,q=t.view_following,G=t.view_total_connections,W=(0,s.useState)(!F),U=(0,d.default)(W,2),K=U[0],J=U[1],Q=(0,s.useState)(F||S),X=(0,d.default)(Q,2),Y=X[0],Z=X[1],$=(0,s.useState)(!1),ee=(0,d.default)($,2),te=ee[0],ae=ee[1],ne=(0,p.useSelector)((function(e){return e.intl.labels})),le=(0,p.useDispatch)(),re=window.location.pathname,ue=(0,s.useState)(null),oe=(0,d.default)(ue,2),ce=oe[0],ie=oe[1],de=(0,s.useState)(r),se=(0,d.default)(de,2),fe=se[0],me=se[1],ve=(0,s.useState)(A),pe=(0,d.default)(ve,2),Ee=pe[0],_e=pe[1],ge=(0,s.useState)(P),be=(0,d.default)(ge,2),he=be[0],ye=be[1],Ne=function(){return ae(!te)},we=function(){var e=(0,i.default)(c.default.mark((function e(){var t,a;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.axios.get(window.location.href);case 3:if(t=e.sent,!(a=t.data).link_request){e.next=7;break}return e.abrupt("return",Z(a.link_request));case 7:return e.abrupt("return",Z(a.link_cancel));case 10:return e.prev=10,e.t0=e.catch(0),console.log(e.t0),e.abrupt("return",le((0,E.addNotification)({style:"danger",msg:"Ha ocurrido un error"})));case 14:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),ke=function(){var e=(0,i.default)(c.default.mark((function e(){var t,a;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.axios.post(Y);case 3:if(t=e.sent,(a=t.data).success){e.next=7;break}return e.abrupt("return",le((0,E.addNotification)({style:"danger",msg:a.data})));case 7:return a.success&&te&&Ne(),e.next=10,we();case 10:le((0,E.addNotification)({style:"success",msg:a.data})),J(!K),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),le((0,E.addNotification)({style:"danger",msg:"Error: ".concat(e.t0)}));case 17:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(){return e.apply(this,arguments)}}(),Ce=function(){return ie(null)};return 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:he}),re.includes("edit")&&s.default.createElement("button",{className:"button-icon cover__edit-btn",onClick:function(){return ie("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(re.includes("edit")&&"cursor-pointer"),src:Ee,onClick:function(){return re.includes("edit")&&ie("image")}}),re.includes("edit")&&s.default.createElement("button",{className:"button-icon",onClick:function(){return ie("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),(0,f.default)(fe.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("a",{href:"",onClick:function(e){e.preventDefault(),ie("info")}},ne.PERSONAL_INFO)),s.default.createElement("div",{className:"d-inline-flex align-items-center mt-2",style:{gap:"1rem"}},Boolean(m)&&G&&s.default.createElement("a",{href:"/connection/my-connections",target:"_blank"},"".concat(m," ").concat(ne.CONNECTIONS)),Boolean(B)&&q&&s.default.createElement("a",{href:"",className:"cursor-auto",onClick:function(e){return e.preventDefault()}},"".concat(B," ").concat(ne.FOLLOWERS)),Boolean(T)&&q&&s.default.createElement("a",{href:"/company/following-companies",target:"_blank"},"".concat(T," ").concat(ne.FOLLOWING))),s.default.createElement("div",{className:"button-actions mt-2"},Y&&K&&s.default.createElement("button",{className:"btn button btn-primary",onClick:function(){return Ne()}},ne.CANCEL),Y&&!K&&s.default.createElement("button",{className:"btn button btn-primary",onClick:function(){return ke()}},ne.CONNECT),w&&s.default.createElement("a",{href:O,className:"btn button btn-secondary"},ne.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)))}))))))),s.default.createElement(h.default,{isOpen:"overview"===ce,overview:fe,id:z,closeModal:function(){return Ce()},onComplete:function(e){return me(e)}}),s.default.createElement(b.default,{isOpen:"cover"===ce,size:V.cover,onClose:function(){return Ce()},onComplete:function(e){return ye(e)}}),s.default.createElement(g.default,{show:"image"===ce,id:z,sizes:V.image,onClose:function(){return Ce()},onComplete:function(e){return _e(e)}}),s.default.createElement(e.Modal,{show:"info"===ce,closeModal:function(){return Ce()},fullName:n,facebook:H,twitter:R,instagram:D,following:T,formatted_address:o,overview:r,total_connections:m,follower:B}),s.default.createElement(y.default,{show:te,onClose:function(){return ae(!1)},onAccept:function(){return ke()}}))};w.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,v=e.follower,E=(0,p.useSelector)((function(e){return e.intl.labels}));return s.default.createElement(m.Modal,{show:t,onHide:a},s.default.createElement(m.Modal.Header,{closeButton:!0},s.default.createElement("h2",null,E.ABOUT_GROUP)),s.default.createElement(m.Modal.Body,null,s.default.createElement("div",{className:"description__label"},s.default.createElement("label",{htmlFor:"name"},E.FIRST_NAME),s.default.createElement("p",null,u)),c&&s.default.createElement("div",{className:"description__label"},s.default.createElement("label",{htmlFor:"name"},E.DESCRIPTION),(0,f.default)(c)),r&&s.default.createElement("div",{className:"description__label"},s.default.createElement("label",{htmlFor:"name"},E.LOCATION),s.default.createElement("p",null,r)),i&&s.default.createElement("div",{className:"description__label"},s.default.createElement("label",{htmlFor:"name"},E.CONNECTIONS),s.default.createElement("p",null,i)),v&&s.default.createElement("div",{className:"description__label"},s.default.createElement("label",{htmlFor:"name"},E.FOLLOWERS),s.default.createElement("p",null,v)),l&&s.default.createElement("div",{className:"description__label"},s.default.createElement("label",{htmlFor:"name"},E.FOLLOWING),s.default.createElement("p",null,l)),s.default.createElement("div",{className:"description__label"},s.default.createElement("label",{htmlFor:"name"},E.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 k=w;t.default=k},17889:(e,t,a)=>{var n=a(26771),l=a(82569);n(t,"__esModule",{value:!0}),t.default=void 0;var r=l(a(67294)),u=l(a(99609)),o=l(a(96540)),c=function(e){var t=e.title,a=void 0===t?"":t,n=e.addUrl,l=void 0===n?"":n,c=e.onAdd,i=void 0===c?function(){}:c,d=e.onEdit,s=void 0===d?function(){}:d,f=e.justEdit,m=void 0!==f&&f,v=e.children,p=window.location.pathname;return r.default.createElement("section",{className:"experience__user-card"},r.default.createElement("div",{className:"card__options-container"},r.default.createElement("h2",null,a),p.includes("edit")&&r.default.createElement("div",{className:"card__options-icons"},!m&&r.default.createElement("button",{className:"button-icon",onClick:function(){return i(a,l)}},r.default.createElement(o.default,null)),r.default.createElement("button",{className:"button-icon",onClick:s},r.default.createElement(u.default,null)))),v)};t.default=c},12071:(e,t,a)=>{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 g=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),g=(0,d.default)(_,2),b=g[0],h=g[1],y=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 h(!0)}},s.default.createElement(p.default,null)),s.default.createElement(E.default,{show:b,onClose:function(){return h(!1)},onAccept:y}))),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=g},31431:(e,t,a)=>{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(63207)),d=o(a(69690)),s=o(a(82191)),f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var a=b(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)),m=a(43635),v=a(53827),p=o(a(30488)),E=o(a(99609)),_=o(a(46907)),g=o(a(96506));function b(e){if("function"!=typeof l)return null;var t=new l,a=new l;return(b=function(e){return e?a:t})(e)}var h=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.setExperiences,o=void 0===u?function(){}:u,b=(0,f.useState)(!1),h=(0,s.default)(b,2),y=h[0],N=h[1],w=function(){var e=(0,d.default)(c.default.mark((function e(){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.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 f.default.createElement("div",{className:"card__items"},f.default.createElement("div",{className:"card__options-container"},f.default.createElement("h4",null,t.title),n&&f.default.createElement("div",{className:"card__options-icons position-relative"},f.default.createElement("button",{className:"button-icon",onClick:function(){return r("Experiencia",t.link_edit,t.description||" ")}},f.default.createElement(E.default,null)),f.default.createElement("button",{className:"button-icon",onClick:function(){return N(!0)}},f.default.createElement(_.default,null)),f.default.createElement(g.default,{show:y,onClose:function(){return N(!1)},onAccept:w}))),f.default.createElement("p",null,t.company),f.default.createElement("span",null,"".concat("object"===(0,i.default)(t.industry)?t.industry.name:t.industry," / ").concat(t.size)),f.default.createElement("span",null,"".concat((0,v.getMonthName)(t.from_month)," ").concat(t.from_year)," -"," ",t.to_year?"".concat((0,v.getMonthName)(t.to_month)," ").concat(t.to_year):"Actual"),f.default.createElement("p",null,t.formatted_adress),t.description&&(0,p.default)(t.description))};t.default=h},83804:(e,t,a)=>{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},20763:(e,t,a)=>{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(43562)),i=o(a(78149)),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=h(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(76689),m=a(23470),v=a(43635),p=a(88409),E=a(28216),_=o(a(36618)),g=o(a(91277)),b=o(a(59358));function h(e){if("function"!=typeof l)return null;var t=new l,a=new l;return(h=function(e){return e?a:t})(e)}var y=function(e){var t=e.show,a=e.onClose,n=e.sizes,l=e.id,r=e.onComplete,u=(0,s.useState)(!1),o=(0,d.default)(u,2),h=o[0],y=o[1],N=(0,E.useDispatch)(),w=(0,m.useForm)(),k=w.register,C=w.errors,x=w.handleSubmit,O=w.setValue,M=w.clearErrors,S=w.setError,j=w.getValues;return(0,s.useEffect)((function(){k("image",{required:{value:"true",message:"El campo es requerido"}})}),[]),s.default.createElement(f.Modal,{show:t,onHide:a},s.default.createElement(f.Modal.Header,{closeButton:!0},s.default.createElement(f.Modal.Title,null,"Imagen")),s.default.createElement("form",{encType:"multipart/form-data",onSubmit:x((function(e){var t=e.image,n=window.location.pathname.split("/")[1],u={profile:"/profile/my-profiles/image/".concat(l,"/operation/upload"),company:"/my-company/".concat(l,"/profile/image/upload"),group:"/group/my-groups/image/".concat(l,"/operation/upload")};y(!0);var o=new FormData;o.append("image",t),v.axios.post(u[n],o).then((function(e){var t,n=e.data,l=n.data;if(!n.success){var u=l;"Object"===u.constructor.name?(0,c.default)(u).map((function(e){var t=(0,d.default)(e,2),a=t[0],n=t[1];a in j()&&S(a,{type:"manual",message:(0,i.default)(n)?n[0]:n})})):N((0,p.addNotification)({style:"danger",msg:u}))}var o=null!==(t=l.profile)&&void 0!==t?t:l;l.update_navbar&&sessionStorage.setItem("user_session_image",l.user),r(o),O("image",""),N((0,p.addNotification)({style:"success",msg:"Registro actualizado"})),a()})).finally((function(){return y(!1)}))}))},s.default.createElement(f.Modal.Body,null,s.default.createElement(b.default,{modalType:"IMAGE",onUploaded:function(e){O("image",e),M("image")},recomendationText:"Imágenes recomendadas de ".concat(n)}),C.image&&s.default.createElement(g.default,null,C.image.message)),s.default.createElement(f.Modal.Footer,null,s.default.createElement(f.Button,{type:"submit"},"Enviar"),s.default.createElement(f.Button,{variant:"danger",onClick:a},"Cancelar"))),h&&s.default.createElement(_.default,null))};t.default=y},93471:(e,t,a)=>{a(26771)(t,"__esModule",{value:!0}),t.default=void 0;var n=a(67294),l=function(e,t){(0,n.useEffect)((function(){var a=function(a){var n;null==e||!e.current||null!==(n=e.current)&&void 0!==n&&n.contains(a.target)||t()};return document.addEventListener("mousedown",a),function(){document.removeEventListener("mousedown",a)}}),[e])};t.default=l},10244:(e,t,a)=>{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(43562)),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=y(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(4655),f=a(28216),m=a(21634),v=o(a(96354)),p=o(a(17889)),E=o(a(31431)),_=o(a(12071)),g=o(a(41322)),b=o(a(83804)),h=o(a(81735));function y(e){if("function"!=typeof l)return null;var t=new l,a=new l;return(y=function(e){return e?a:t})(e)}a(16446);var N={user_experiences:[],user_educations:[],user_hobbies_and_interests:[],user_skills:[],user_aptitudes:[],user_languages:[]},w=function(){var e=(0,d.useState)(N),t=(0,i.default)(e,2),a=t[0],n=t[1],l=(0,f.useSelector)((function(e){return e.intl.labels})),r=(0,s.useParams)().uuid;return(0,d.useEffect)((function(){(0,m.getBackendVars)("/profile/view/".concat(r)).then((function(e){["user_hobbies_and_interests","user_skills","user_aptitudes","user_languages"].forEach((function(t){e[t]=(0,c.default)(e[t]).map((function(e){var t=(0,i.default)(e,2),a=t[0];return{name:t[1],value:a}}))})),n(e)})).catch((function(e){throw console.log("Error: ".concat(e)),new Error(e)}))}),[]),d.default.createElement("main",{className:"w-100"},d.default.createElement("div",{className:"container profile__layout"},d.default.createElement("div",{className:"main d-flex flex-column",style:{gap:".5rem"}},d.default.createElement(v.default,a),d.default.createElement(p.default,{title:l.experience},a.user_experiences.length?a.user_experiences.map((function(e,t){return d.default.createElement(E.default,{key:t,experience:e})})):d.default.createElement(g.default,{align:"left",message:l.empty})),d.default.createElement(p.default,{title:l.education},a.user_educations.length?a.user_educations.map((function(e,t){return d.default.createElement(_.default,{key:t,education:e})})):d.default.createElement(g.default,{align:"left",message:l.empty})),d.default.createElement(p.default,{title:l.languages},a.user_languages.length?d.default.createElement(b.default,{value:a.user_languages}):d.default.createElement(g.default,{align:"left",message:l.empty})),d.default.createElement(p.default,{title:l.skills},a.user_skills.length?d.default.createElement(b.default,{value:a.user_skills}):d.default.createElement(g.default,{align:"left",message:l.empty})),d.default.createElement(p.default,{title:l.aptitudes},a.user_aptitudes.length?d.default.createElement(b.default,{value:a.user_aptitudes}):d.default.createElement(g.default,{align:"left",message:l.empty})),d.default.createElement(p.default,{title:l.hobbies_and_interests},a.user_hobbies_and_interests.length?d.default.createElement(b.default,{value:a.user_hobbies_and_interests}):d.default.createElement(g.default,{align:"left",message:l.empty}))),d.default.createElement("div",{className:"aside"},d.default.createElement(h.default,{url:"/helpers/people-viewed-profile/".concat(a.user_profile_id),title:l.who_has_seen_this_profile}))))};t.default=w},16446:(e,t,a)=>{a.r(t)}}]);