PageSourceSearch

https://miportal.empatiza.es/_next/static/chunks/pages/tickets/[id]-31af0e66fd9d315c.js

js empatiza.es collected 2026-10-06 13:19:24 UTC 8,224 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[217],{59575:function(e,t,n){"use strict";var i=n(77191),s=(n(67294),n(47045)),r=n.n(s),a=n(85893);t.Z=function(e){return(0,i.Z)(e),(0,a.jsx)("div",{className:r().container,children:(0,a.jsxs)("div",{className:r()["lds-ring"],children:[(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{})]})})}},56670:function(e,t,n){"use strict";n.d(t,{$d:function(){return a},FI:function(){return l},GA:function(){return i},b1:function(){return _},c2:function(){return d},fk:function(){return c},ho:function(){return s},iA:function(){return o},wd:function(){return r}});var i=function(e){return e.split("-").reverse().join("/")},s=function(e){var t=e.toTimeString();return t.split(":")[0]+":"+t.split(":")[1]},r=function(e){var t=new Date(e),n=t.getDate()+"/";t.getDate()<10&&(n="0"+n);var i=t.getMonth()+1;return i<10&&(n+="0"),n+=i.toString(),"".concat(n,"/").concat(t.getFullYear())},a=function(e){var t=new Date(e),n=t.getDate()+"/";t.getDate()<10&&(n="0"+n);var i=t.getMonth()+1;return i<10&&(n+="0"),n+=i.toString(),"".concat(n,"/").concat(t.getFullYear()," ").concat(t.getHours(),":").concat(t.getMinutes())},c=function(e){return e.setHours(0,0,0,0),e.setDate(e.getDate()+1),e.getDay()},o=function(e){return u[e]},l=function(e){return e.toISOString().split("T")[0]},d=function(e){var t=new Date(e);return"\n        ".concat(t.getDate().toString().padStart(2,"0"),"/").concat((t.getMonth()+1).toString().padStart(2,"0"),"/").concat(t.getFullYear().toString().padStart(4,"0")," \n        ").concat(t.getHours().toString().padStart(2,"0"),":").concat(t.getMinutes().toString().padStart(2,"0"),":").concat(t.getSeconds().toString().padStart(2,"0"))},_=function(e,t){return new Date(t,e+1,0).getDate()},u=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]},15250:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return T}});var i,s=n(11163),r=n(41664),a=n.n(r),c=n(6812),o=n(67421),l=n(67814),d=n(51436),_=n(38672),u=n(59575),p=n(71383),k=(0,n(75063).Ps)(i||(i=(0,p.Z)(["\n    query MyTicket ($id: Int!) {\n        myTicket(id: $id) {\n            ticketID\n            title\n            description\n            creationDate\n            exitDate\n            merged\n            mergedInto\n            senderAddress\n            statusID\n            status { id key label }\n            priority { id key label }\n            type { id key label }\n            category { id key name }\n            subcategory { id key name }\n            responses {\n                responseID\n                text\n                createdAt\n                type\n                toRecipients\n                ccRecipients\n                fromEmail\n            }\n        }\n    }"]))),m=n(56670),h=n(74575),g=n.n(h),v=n(85893),x=function(){var e,t,n,i,r,p,h=(0,o.$G)().t,x=(0,s.useRouter)().query.id,T=Array.isArray(x)?Number(x[0]):Number(x),f=!Number.isNaN(T)&&T>0,b=(0,c.aM)(k,{variables:{id:T},skip:!f,fetchPolicy:"cache-and-network"}),D=b.data,N=b.loading,y=b.error,I=null===D||void 0===D?void 0:D.myTicket;return(0,v.jsx)(_.Z,{title:"Empatiza - ".concat(h("tickets")).concat(I?" #".concat(I.ticketID):""),children:(0,v.jsxs)("div",{className:g().container,children:[(0,v.jsx)(a(),{href:"/tickets",children:(0,v.jsxs)("a",{className:g().backLink,children:[(0,v.jsx)(l.G,{icon:d.acZ})," ",h("ticket_back_to_list")]})}),N&&(0,v.jsx)("div",{className:g().loadingWrap,children:(0,v.jsx)(u.Z,{})}),y&&(0,v.jsx)("div",{className:g().error,children:y.message}),I&&(0,v.jsxs)(v.Fragment,{children:[I.merged&&I.mergedInto&&(0,v.jsxs)("div",{className:g().mergedBanner,children:[(0,v.jsx)(l.G,{icon:d.mh3}),(0,v.jsx)(a(),{href:"/tickets/".concat(I.mergedInto),children:(0,v.jsx)("a",{children:h("ticket_merged_into",{id:I.mergedInto})})})]}),(0,v.jsxs)("div",{className:g().detailHeader,children:[(0,v.jsxs)("h1",{className:g().titulo,children:["#",I.ticketID," \u2014 ",I.title]}),(0,v.jsxs)("div",{className:g().metaGrid,children:[(0,v.jsx)(j,{label:h("ticket_status"),value:null===(e=I.status)||void 0===e?void 0:e.label}),(0,v.jsx)(j,{label:h("ticket_priority"),value:null===(t=I.priority)||void 0===t?void 0:t.label}),(0,v.jsx)(j,{label:h("ticket_type"),value:null===(n=I.type)||void 0===n?void 0:n.label}),(0,v.jsx)(j,{label:h("ticket_category"),value:null===(i=I.category)||void 0===i?void 0:i.name}),(0,v.jsx)(j,{label:h("ticket_subcategory"),value:null===(r=I.subcategory)||void 0===r?void 0:r.name}
1),(0,v.jsx)(j,{label:h("ticket_creation_date"),value:I.creationDate?(0,m.$d)(I.creationDate):"-"}),(0,v.jsx)(j,{label:h("ticket_exit_date"),value:I.exitDate?(0,m.$d)(I.exitDate):"-"}),(0,v.jsx)(j,{label:h("email"),value:I.senderAddress})]})]}),I.description&&(0,v.jsxs)("div",{className:g().descriptionBlock,children:[(0,v.jsx)("h3",{className:g().subtitle,children:h("ticket_description")}),(0,v.jsx)("div",{className:g().descriptionHtml,dangerouslySetInnerHTML:{__html:I.description}})]}),(0,v.jsxs)("div",{className:g().conversationBlock,children:[(0,v.jsx)("h3",{className:g().subtitle,children:h("ticket_conversation")}),(!I.responses||0===I.responses.length)&&(0,v.jsx)("p",{className:g().noData,children:h("ticket_no_responses")}),null===(p=I.responses)||void 0===p?void 0:p.map((function(e){return(0,v.jsxs)("article",{className:g().responseCard,children:[(0,v.jsxs)("header",{className:g().responseHeader,children:[(0,v.jsxs)("div",{children:[(0,v.jsx)(l.G,{icon:d.FU$,className:g().responseIcon}),(0,v.jsx)("strong",{children:e.fromEmail||"-"})]}),(0,v.jsx)("span",{className:g().responseDate,children:e.createdAt?(0,m.$d)(e.createdAt):""})]}),e.toRecipients&&e.toRecipients.length>0&&(0,v.jsxs)("p",{className:g().responseRecipients,children:[(0,v.jsxs)("strong",{children:[h("ticket_to_recipients"),":"]})," ",e.toRecipients.join(", ")]}),e.ccRecipients&&e.ccRecipients.length>0&&(0,v.jsxs)("p",{className:g().responseRecipients,children:[(0,v.jsx)("strong",{children:"CC:"})," ",e.ccRecipients.join(", ")]}),(0,v.jsx)("div",{className:g().responseBody,dangerouslySetInnerHTML:{__html:e.text}})]},e.responseID)}))]})]})]})})},j=function(e){var t=e.label,n=e.value;return(0,v.jsxs)("div",{className:g().metaItem,children:[(0,v.jsx)("span",{className:g().metaLabel,children:t}),(0,v.jsx)("span",{className:g().metaValue,children:n||"-"})]})};x.requireAuth=!0;var T=x},61642:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tickets/[id]",function(){return n(15250)}])},47045:function(e){e.exports={container:"LoadingSpinner_container__htbli","lds-ring":"LoadingSpinner_lds-ring__0BEvr"}},74575:function(e){e.exports={container:"Tickets_container___oDjF",titulo:"Tickets_titulo__y88ss",subtitle:"Tickets_subtitle__ueHtv",filtersBox:"Tickets_filtersBox__Van4x",topBar:"Tickets_topBar__6fKM7",searchWrap:"Tickets_searchWrap__8YlOw",dateWrap:"Tickets_dateWrap__OMoQB",dateSep:"Tickets_dateSep__eCpD4",filterRow:"Tickets_filterRow__sXDqp",filterTitle:"Tickets_filterTitle__Jcvo5",chipsRow:"Tickets_chipsRow__akEvK",chip:"Tickets_chip__yej4C",chipActive:"Tickets_chipActive__hIBxK",dateInput:"Tickets_dateInput__ZLRPw",clearBtn:"Tickets_clearBtn__Hb_wL",ellipsis:"Tickets_ellipsis__r5QIV",noData:"Tickets_noData___I7Zw",loadingWrap:"Tickets_loadingWrap__lhEMB",error:"Tickets_error__ujRRj",backLink:"Tickets_backLink__KVa3h",detailHeader:"Tickets_detailHeader__76Ekt",metaGrid:"Tickets_metaGrid__3cbea",metaItem:"Tickets_metaItem__BbkoZ",metaLabel:"Tickets_metaLabel__YYc9_",metaValue:"Tickets_metaValue__apGxB",descriptionBlock:"Tickets_descriptionBlock__hwMmu",conversationBlock:"Tickets_conversationBlock__MwhDH",descriptionHtml:"Tickets_descriptionHtml__0th2t",responseCard:"Tickets_responseCard___tbm5",responseHeader:"Tickets_responseHeader__T1rXL",responseIcon:"Tickets_responseIcon__00z14",responseDate:"Tickets_responseDate__J8797",responseRecipients:"Tickets_responseRecipients__tdMOZ",responseBody:"Tickets_responseBody__DwIFF",titleCell:"Tickets_titleCell__s6Uj6",mergedBadge:"Tickets_mergedBadge__L6POe",mergedBanner:"Tickets_mergedBanner__R7Zhu"}}},function(e){e.O(0,[774,888,179],(function(){return t=61642,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.