1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6985],{7140:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/projects/indexProjects",function(){return n(87052)}])},85952:function(e,t){"use strict";t.Z={src:"/_next/static/media/logoASP_blanco_recortado.fbe4db27.png",height:301,width:684,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAGFBMVEX+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7f5Q07AAAACHRSTlMmMAF4CzsNVur643UAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAgSURBVAiZDcTBAQAABAOx01L7b0weQZLWNukEZqgC/gMD/AA9bS38ywAAAABJRU5ErkJggg=="}},98796:function(e,t){"use strict";t.Z={src:"/_next/static/media/logoASP_color_recortado.c595a1e8.png",height:301,width:684,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAG1BMVEUep60fp6tNV1osmpsYnas4q5pGpYpRoXgSh54PxiubAAAACXRSTlMKLgE4JyN1VYWNqmjuAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAIElEQVQImWNgYmJiYmfjYGMAARZWZmYGRkZGRhZWZhYAA/sAR+RPE84AAAAASUVORK5CYII="}},88269:function(e,t,n){"use strict";var s=n(35666),r=n.n(s),i=n(85893),c=n(23271),o=n(10682),a=n(86434),l=n(93371),d=n(85952),u=n(25675),h=n(11163);function p(e,t,n,s,r,i,c){try{var o=e[i](c),a=o.value}catch(l){return void n(l)}o.done?t(a):Promise.resolve(a).then(s,r)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(s,r){var i=e.apply(t,n);function c(e){p(i,s,r,c,o,"next",e)}function o(e){p(i,s,r,c,o,"throw",e)}c(void 0)}))}}t.Z=function(){function e(){return(e=f(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat("https://www.asp.com.hn","/api/login/logout"),{method:"POST",headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});case 2:200==e.sent.status&&h.default.replace("/users/login");case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,i.jsx)("div",{children:(0,i.jsx)("div",{children:(0,i.jsx)(c.Z,{collapseOnSelect:!0,expand:"lg",style:{backgroundColor:"rgba(0, 168, 176, 100)"},variant:"dark",children:(0,i.jsxs)(o.Z,{children:[(0,i.jsx)(c.Z.Brand,{href:"#home",children:(0,i.jsx)(u.default,{src:d.Z,width:110,height:45,alt:""})}),(0,i.jsx)(c.Z.Toggle,{"aria-controls":"responsive-navbar-nav"}),(0,i.jsxs)(c.Z.Collapse,{id:"responsive-navbar-nav",children:[(0,i.jsxs)(a.Z,{className:"me-auto",children:[(0,i.jsxs)(l.Z,{title:"Usuarios",id:"collasible-nav-dropdown",children:[(0,i.jsx)(l.Z.Item,{onClick:function(){h.default.push("/users/indexUsuarios")},children:"Ver Usuarios"}),(0,i.jsx)(l.Z.Divider,{}),(0,i.jsx)(l.Z.Item,{onClick:function(){h.default.push("/users/crearUsuario")},children:"Crear Usuario"})]}),(0,i.jsxs)(l.Z,{title:"Publicaciones",id:"collasible-nav-dropdown",children:[(0,i.jsx)(l.Z.Item,{onClick:function(){h.default.push("/publicaciones/indexArticulos")},children:"Ver Publicaciones"}),(0,i.jsx)(l.Z.Divider,{}),(0,i.jsx)(l.Z.Item,{onClick:function(){h.default.push("/publicaciones/crearArticulo")},children:"Crear Publicaci\xf3n"})]}),(0,i.jsxs)(l.Z,{title:"Mantenimientos",id:"collasible-nav-dropdown",children:[(0,i.jsx)(l.Z.Item,{onClick:function(){h.default.push("/mantenimientos/categoryPost/categoryPost")},children:"Categorias Publicaciones"}),(0,i.jsx)(l.Z.Item,{onClick:function(){h.default.push("/mantenimientos/categoryProject/categoryProject")},children:"Categorias Proyectos"})]}),(0,i.jsx)(l.Z,{title:"Proyectos",id:"collasible-nav-dropdown",children:(0,i.jsx)(l.Z.Item,{onClick:function(){h.default.push("/projects/indexProjects")},children:"Ver Proyectos"})})]}),(0,i.jsx)(a.Z,{children:(0,i.jsxs)(l.Z,{title:"Perfil",id:"collasible-nav-dropdown",children:[(0,i.jsx)(l.Z.Item,{href:"#action/3.1",children:"Editar Perfil"}),(0,i.jsx)(l.Z.Item,{onClick:function(){return e.apply(this,arguments)},children:"Cerrar Sesi\xf3n"})]})})]})]})})})})}},42469:function(e,t,n){"use strict";var s=n(85893),r=(n(67294),n(9008)),i=n(4298);t.Z=function(e){return(0,s.jsxs)("div",{children:[(0,s.jsxs)(r.default,{children:[(0,s.jsx)("title",{children:e.pageTitle}),(0,s.jsx)("meta",{charSet:"UTF-8"}),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,s.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"ie=edge"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"})]}),(0,s.jsxs)("div",{children:[e.chat?(0,s.jsx)(i.default,{src:"https://ucontact.asp.com.hn/Chat_Pg_Servicio/script.
1js"}):"",e.children]})]})}},14381:function(e,t,n){"use strict";var s=n(35666),r=n.n(s),i=n(85893),c=n(67294),o=n(40979),a=n(45155),l=n(11163),d=n(41664),u=n(85952),h=n(25675),p=n(80471);function f(e,t,n,s,r,i,c){try{var o=e[i](c),a=o.value}catch(l){return void n(l)}o.done?t(a):Promise.resolve(a).then(s,r)}function x(e){return function(){var t=this,n=arguments;return new Promise((function(s,r){var i=e.apply(t,n);function c(e){f(i,s,r,c,o,"next",e)}function o(e){f(i,s,r,c,o,"throw",e)}c(void 0)}))}}t.Z=function(e){var t=e.isAdmin;function n(){return(n=x(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/login/logout",{method:"POST",headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});case 2:200==e.sent.status&&l.default.replace("/users/login");case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var s=(0,c.useState)(null),f=s[0],j=s[1];return(0,c.useEffect)((function(){j(window.innerWidth)}),[f]),(0,i.jsx)(o.M7,{collapsed:f<=720,collapsedWidth:60,children:(0,i.jsxs)("div",{id:"ProSiderBar",style:{height:"100vh"},children:[(0,i.jsx)(d.default,{href:"/admin/home",passHref:!0,children:(0,i.jsx)(o.$l,{className:"p-4",children:(0,i.jsx)(h.default,{src:u.Z,width:200,height:100,alt:""})})}),(0,i.jsxs)(o.v2,{iconShape:"square",children:[(0,i.jsx)(o.sN,{}),1===t?(0,i.jsxs)(o.Wd,{title:"Usuarios",icon:(0,i.jsx)(a.xnQ,{size:"25px",color:"red"}),children:[(0,i.jsx)(d.default,{href:"/users/indexUsuarios",passHref:!0,children:(0,i.jsx)(o.sN,{children:" Ver Usuarios"})}),(0,i.jsx)(d.default,{href:"/users/crearUsuario",passHref:!0,children:(0,i.jsx)(o.sN,{children:"Crear Usuario"})})]}):"",(0,i.jsxs)(o.Wd,{title:"Publicaciones",icon:(0,i.jsx)(a.c7o,{size:"25px",color:"red"}),children:[(0,i.jsx)(d.default,{href:"/publicaciones/indexArticulos",passHref:!0,children:(0,i.jsx)(o.sN,{children:" Ver Publicaciones "})}),(0,i.jsx)(d.default,{href:"/publicaciones/crearArticulo",passHref:!0,children:(0,i.jsx)(o.sN,{children:" Crear Publicaci\xf3n "})})]}),(0,i.jsxs)(o.Wd,{title:"Proyectos",icon:(0,i.jsx)(a.t$s,{size:"25px",color:"red"}),children:[(0,i.jsx)(d.default,{href:"/projects/indexProjects",passHref:!0,children:(0,i.jsx)(o.sN,{children:" Ver Proyectos "})}),(0,i.jsx)(d.default,{href:"/projects/createProject",passHref:!0,children:(0,i.jsx)(o.sN,{children:" Crear Proyecto "})})]}),1===t?(0,i.jsxs)(o.Wd,{title:"Mantenimientos",icon:(0,i.jsx)(a.ew4,{size:"25px",color:"red"}),children:[(0,i.jsx)(d.default,{href:"/mantenimientos/categoryPost/categoryPost",passHref:!0,children:(0,i.jsx)(o.sN,{children:"Tipos de Publicaciones"})}),(0,i.jsx)(d.default,{href:"/mantenimientos/categoryProject/categoryProject",passHref:!0,children:(0,i.jsx)(o.sN,{children:"Tipos de Proyectos"})})]}):"",(0,i.jsx)(d.default,{href:"/users/editProfile/",passHref:!0,children:(0,i.jsx)(o.sN,{title:"Cerrar Sesi\xf3n",icon:(0,i.jsx)(p.Mdg,{size:"25px",color:"black"}),children:"Editar Mi Perfil"})}),(0,i.jsx)(o.sN,{title:"Cerrar Sesi\xf3n",icon:(0,i.jsx)(a.qB,{size:"25px",color:"red"}),onClick:function(){return n.apply(this,arguments)},children:"Cerrar Sesi\xf3n"})]}),(0,i.jsx)(o.ZW,{})]})})}},87052:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return P},IndexProjects:function(){return y}});var s=n(35666),r=n.n(s),i=n(85893),c=n(42469),o=(n(88269),n(67294),n(41664),n(11163)),a=n(25675),l=(n(98796),n(22004),n(34051)),d=n(31555),u=n(14381),h=n(86455),p=n.n(h),f=n(77630),x=n.n(f),j=n(9669),m=n.n(j),A=n(8193),v=n(88357);function b(e,t,n,s,r,i,c){try{var o=e[i](c),a=o.value}catch(l){return void n(l)}o.done?t(a):Promise.resolve(a).then(s,r)}var g=x()(p()),P=!0;function y(e){var t,n=e.projects,s=e.infoCookie,h=(0,o.useRouter)(),p=(t=r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m().delete("/api/projects/"+t);case 2:204===e.sent.status&&(n="success",s="Se elimin\xf3 correctamente el projecto.",g.fire({icon:"".concat(n),title:"Edici\xf3n de publicaci\xf3n.",text:"".concat(s)}),h.replace(h.asPath));case 4:case"end":return e.stop()}var n,s}),e)})),function(){var e=this,n=arguments;return new Promise((function(s,r){var i=t.apply(e,n);function c(e){b(i,s,r,c,o,"next",e)}function o(e){b(i,s,r,c,o,"throw",e)}c(void 0)}))});return(0,i.jsx)(c.Z,{pageTittle:"Lista Articulos",children:(0,i.jsxs)(l.Z,{children:[(0,i.jsx)(d.Z,{xs:2,id:"sidebar-wrapper",children:(0,i.jsx)(u.Z,{isAdmin:s.isAdmin})}),(0,i.jsx)(d.Z,{xs:10,children:(0,i.jsxs)("div",{className:"cuadro-aqua",children:[(0,i.jsx)("div",{className:"px-5 text-center",children:(0,i.jsx)("div",{className:"row justify-content-center",style:{color:"black"},children:n.map((function(e){return(0,i.jsx)("div",{className:"col d-flex justify-content-center",children:(0,i.jsxs)("div",{className:"cardArticulos p-0",children:[(0,i.jsx)("div",{className:"pt-3"}),(0,i.jsxs)("div",{className:"card-body",children:[(0,i.jsx)(a.default,{unoptimized:!0,src:"/api/images/".concat(e.path_Imagen),height:150,width:220,alt:""}),(0,i.jsx)("span",{className:"d-flex m-1",style:{backgroundColor:"rgba(175, 203, 55, 100)",color:"white",fontWeight:"bolder"},children:e.category}),(0,i.jsx)("div",{className:"box-2lines",children:(0,i.jsxs)("h6",{className:"card-title",children:["Nombre: ",e.name]})}),(0,i.jsxs)("h6",{className:"card-title",children:["Duraci\xf3n: ",e.duration]}),(0,i.jsxs)("div",{className:"btn-group",children:[(0,i.jsx)("button",{"data-toggle":"tooltip","data-
1placement":"bottom",title:"Visualizar",className:"btn btn-warning btn-xl",onClick:function(){return t=e.id,void o.default.push("/clients/projects/".concat(t));var t},style:{color:"white"},children:(0,i.jsx)(v.Pd.Provider,{value:{style:{color:"white",fontSize:"30px"}},children:(0,i.jsx)("div",{children:(0,i.jsx)(A.w8I,{})})})}),(0,i.jsx)("button",{"data-toggle":"tooltip","data-placement":"bottom",title:"Editar",className:"btn btn-info btn-xl",onClick:function(){return t=e.id,void o.default.push("/projects/".concat(t));var t},style:{color:"white"},children:(0,i.jsx)(v.Pd.Provider,{value:{style:{color:"white",fontSize:"30px"}},children:(0,i.jsx)("div",{children:(0,i.jsx)(A.QML,{})})})}),(0,i.jsx)("button",{"data-toggle":"tooltip","data-placement":"bottom",title:"Eliminar",className:"btn btn-danger btn-xl",onClick:function(){return p(e.id)},style:{color:"white"},children:(0,i.jsx)(v.Pd.Provider,{value:{style:{color:"white",fontSize:"30px"}},children:(0,i.jsx)("div",{children:(0,i.jsx)(A.YK6,{})})})})]})]})]})},e.id)}))})}),(0,i.jsx)("div",{className:"fab-wrapper",children:(0,i.jsx)("button",{type:"button",className:"btn btn-primary btn-circle btn-xl",onClick:function(){o.default.push("/projects/createProject")},children:(0,i.jsx)("p",{style:{fontSize:"40px"},children:"+"})})})]})})]})})}t.default=y},9008:function(e,t,n){e.exports=n(5443)},92703:function(e,t,n){"use strict";var s=n(50414);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,c){if(c!==s){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},31555:function(e,t,n){"use strict";var s=n(44036),r=n.n(s),i=n(67294),c=n(76792),o=n(85893);const a=["xxl","xl","lg","md","sm","xs"];const l=i.forwardRef(((e,t)=>{const[{className:n,...s},{as:i="div",bsPrefix:l,spans:d}]=function({as:e,bsPrefix:t,className:n,...s}){t=(0,c.vE)(t,"col");const i=[],o=[];return a.forEach((e=>{const n=s[e];let r,c,a;delete s[e],"object"===typeof n&&null!=n?({span:r,offset:c,order:a}=n):r=n;const l="xs"!==e?`-${e}`:"";r&&i.push(!0===r?`${t}${l}`:`${t}${l}-${r}`),null!=a&&o.push(`order${l}-${a}`),null!=c&&o.push(`offset${l}-${c}`)})),[{...s,className:r()(n,...i,...o)},{as:e,bsPrefix:t,spans:i}]}(e);return(0,o.jsx)(i,{...s,ref:t,className:r()(n,!d.length&&l)})}));l.displayName="Col",t.Z=l},34051:function(e,t,n){"use strict";var s=n(44036),r=n.n(s),i=n(67294),c=n(76792),o=n(85893);const a=["xxl","xl","lg","md","sm","xs"],l=i.forwardRef((({bsPrefix:e,className:t,as:n="div",...s},i)=>{const l=(0,c.vE)(e,"row"),d=`${l}-cols`,u=[];return a.forEach((e=>{const t=s[e];let n;delete s[e],null!=t&&"object"===typeof t?({cols:n}=t):n=t;const r="xs"!==e?`-${e}`:"";null!=n&&u.push(`${d}${r}-${n}`)})),(0,o.jsx)(n,{ref:i,...s,className:r()(t,l,...u)})}));l.displayName="Row",t.Z=l}},function(e){e.O(0,[6158,955,4617,3986,6062,4711,9669,662,2004,3371,9774,2888,179],(function(){return t=7140,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.