PageSourceSearch

https://www.globkurier.pl/default-src_app_shared_components_case-d…ponent_ts-src_sh-982cfd.b5220cab144852bd.js

js globkurier.pl collected 2026-10-02 05:04:39 UTC 45,353 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkariadna=self.webpackChunkariadna||[]).push([["default-src_app_shared_components_case-details-dialog_case-details-dialog_component_ts-src_sh-982cfd"],{30996:(N,D,r)=>{r.d(D,{w:()=>Et});var t=r(54438),A=r(60177),_=r(89417),g=r(73955),m=r(77880),f=r(51221),O=r(20382),h=r(82745),d=r(17780),b=r(78147),M=r(17032),x=r(62316),W=r(18286),B=r(35118),z=r(54257),X=r(39122),U=r(92114);const K=()=>[];function V(o,u){if(1&o){const e=t.RV6();t.j41(0,"input",6,0),t.bIt("change",function(a){t.eBV(e);const c=t.XpG(2);return t.Njj(c.onFilesSelected(a))}),t.k0s(),t.j41(2,"div",7),t.bIt("dragover",function(a){t.eBV(e);const c=t.XpG(2);return t.Njj(c.onDragOver(a))})("dragleave",function(){t.eBV(e);const a=t.XpG(2);return t.Njj(a.onDragLeave())})("drop",function(a){t.eBV(e);const c=t.XpG(2);return t.Njj(c.onDrop(a))})("click",function(){t.eBV(e);const a=t.sdS(1);return t.Njj(a.click())}),t.nrm(3,"i",8),t.j41(4,"span",9),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"p"),t.EFF(8),t.nI1(9,"translate"),t.k0s()()}if(2&o){const e=t.XpG(2);t.R7$(2),t.AVh("is-dragging",e.dragOver()),t.R7$(3),t.JRh(t.bMT(6,4,"DASHBOARD_PAGE.SUBMISSION_COMPLAINTS_PSC_PAGE.DOCUMENTS.ADD_TITLE")),t.R7$(3),t.JRh(t.bMT(9,6,"DASHBOARD_PAGE.SUBMISSION_COMPLAINTS_PSC_PAGE.DOCUMENTS.DROPZONE_HINT"))}}function k(o,u){1&o&&(t.j41(0,"span",3),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&o&&(t.R
17$(),t.JRh(t.bMT(2,1,"DASHBOARD_PAGE.SUBMISSION_COMPLAINTS_PSC_PAGE.DOCUMENTS.SENT_LIST_HEADER")))}function L(o,u){1&o&&t.nrm(0,"ardn-spinner",10)}function Y(o,u){1&o&&t.nrm(0,"i",11)}function J(o,u){1&o&&t.nrm(0,"i",12)}function j(o,u){if(1&o){const e=t.RV6();t.j41(0,"div",5),t.DNE(1,L,1,0,"ardn-spinner",10)(2,Y,1,0,"i",11)(3,J,1,0,"i",12),t.j41(4,"a",13),t.bIt("click",function(){const a=t.eBV(e).$implicit,c=t.XpG(2);return t.Njj(!c.isLoading(a.id)&&c.downloadAttachment(a))}),t.EFF(5),t.k0s()()}if(2&o){const e=u.$implicit,i=t.XpG(2);t.R7$(),t.vxM(i.isLoading(e.id)?1:i.hasError(e.id)?2:3),t.R7$(4),t.SpI(" ",e.File_Name," ")}}function Q(o,u){1&o&&t.nrm(0,"ardn-spinner",10)}function G(o,u){1&o&&t.nrm(0,"i",11)}function Z(o,u){1&o&&t.nrm(0,"i",14)}function $(o,u){1&o&&t.nrm(0,"i",12)}function q(o,u){if(1&o&&(t.j41(0,"span",16),t.EFF(1),t.k0s()),2&o){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.message)}}function tt(o,u){if(1&o&&(t.j41(0,"span",17),t.EFF(1),t.k0s()),2&o){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.message)}}function et(o,u){if(1&o){const e=t.RV6();t.j41(0,"button",19),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const a=t.XpG().$implicit,c=t.XpG(3);return t.Njj(c.removeComplaintDocument(a))}),t.nrm(3,"i",20),t.k0s()}2&o&&(t.Y8G("ardnTooltipster",t.bMT(1,2,"COMMON.REMOVE")),t.BMQ("aria-label",t.bMT(2,4,"COMMON.REMOVE")))}function nt(o,u){if(1&o&&(t.j41(0,"div",5),t.DNE(1,Q,1,0,"ardn-spinner",10)(2,G,1,0,"i",11)(3,Z,1,0,"i",14)(4,$,1,0,"i",12),t.j41(5,"span",15),t.EFF(6),t.k0s(),t.DNE(7,q,2,1,"span",16)(8,tt,2,1,"span",17)(9,et,4,6,"button",18),t.k0s()),2&o){const e=u.$implicit;t.R7$(),t.vxM("uploading"===e.status?1:"error"===e.status||"invalid"===e.status?2:"duplicate"===e.status?3:4),t.R7$(5),t.JRh(e.file.name),t.R7$(),t.vxM("error"===e.status||"invalid"===e.status?7:"duplicate"===e.status?8:-1),t.R7$(2),t.vxM("uploading"!==e.status?9:-1)}}function it(o,u){if(1&o&&(t.j41(0,"span",3),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"div",4),t.Z7z(4,nt,10,4,"div",5,t.BUC().trackByComplaintDocumentId,!0),t.k0s()),2&o){const e=t.XpG(2);t.R7$(),t.JRh(t.bMT(2,1,"DASHBOARD_PAGE.SUBMISSION_COMPLAINTS_PSC_PAGE.DOCUMENTS.TO_SEND_LIST_HEADER")),t.R7$(3),t.Dyx(e.complaintDocuments())}}function ut(o,u){if(1&o&&(t.j41(0,"div",1)(1,"label",2),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,V,10,8)(5,k,3,3,"span",3),t.j41(6,"div",4),t.Z7z(7,j,6,2,"div",5,t.BUC().trackByAttachmentId,!0),t.k0s(),t.DNE(9,it,6,3),t.k0s()),2&o){let e,i;const a=t.XpG();t.R7$(2),t.JRh(t.bMT(3,4,"DASHBOARD_PAGE.SUBMISSION_PAGE.SUBMISSION_ATTACHMENTS")),t.R7$(2),t.vxM(a.isComplaint()?4:-1),t.R7$(),t.vxM(a.isComplaint()&&null!=(e=a.attachments())&&e.length?5:-1),t.R7$(2),t.Dyx(null!==(i=a.attachments())&&void 0!==i?i:t.lJ4(6,K)),t.R7$(2),t.vxM(a.isComplaint()&&a.complaintDocuments().length?9:-1)}}const H=4e3,mt=["pdf","jpg","jpeg","png","heic","tif","tiff","gif","bmp","doc","docx","xls","xlsx","csv","txt"],P="DASHBOARD_PAGE.SUBMISSION_COMPLAINTS_PSC_PAGE.DOCUMENTS";let ot=(()=>{class o{constructor(e,i,a,c){this.submissionsManagementService=e,this.fileDownloaderService=i,this.snackbarService=a,this.translateService=c,this.attachments=(0,t.hFB)(null),this.module=(0,t.hFB)(null),this.submissionsNumber=(0,t.hFB)(),this.reclamationNumber=(0,t.hFB)(),this.documentsUploaded=(0,t.CGW)(),this.complaintDocuments=(0,t.vPA)([]),this.dragOver=(0,t.vPA)(!1),this.isSending=(0,t.vPA)(!1),this.isComplaint=(0,t.EWP)(()=>this.module()===B.z.COMPLAINTS_PSC),this.hasSendableDocuments=(0,t.EWP)(()=>this.complaintDocuments().some(R=>"pending"===R.status||"error"===R.status)),this.loadingAttachmentIds=(0,t.vPA)(new Set),this.failedAttachmentIds=(0,t.vPA)(new Set),this.trackByAttachmentId=(R,T)=>T.id,this.trackByComplaintDocumentId=(R,T)=>T.id}isLoading(e){return this.loadingAttachmentIds().has(e)}hasError(e){return this.failedAttachmentIds().has(e)}downloadAttachment(e){if(this.isLoading(e.id))return;this.setLoading(e.id,!0),this.setError(e.id,!1);const i={module:this.module(),name:e.File_Name,leadId:this.submissionsNumber(),attachmentId:e.id};this.submissionsManagementService.getAttachment(i).subscribe({next:a=>{this.fileDownloaderService.createBlobLink(a,e.File_Name),this.setLoading(e.id,!1),this.snackbarService.open(this.translateService.instant("DASHBOARD_PAGE.SUBMISSION_PAGE.SUBMISSION_ATTACHMENTS_DOWNLOAD_SUCCESS"),{duration:H})},error:()=>{this.setLoading(e.id,!1),this.setError(e.id,!0),this.snackbarService.open(this.translateService.instant("DASHBOARD_PAGE.SUBMISSION_PAGE.SUBMISSION_ATTACHMENTS_DOWNLOAD_ERROR"),{duration:H,panelClass:"snackbar--error"})}})}onFilesSelected(e){const i=e.target;i.files&&this.addComplaintDocuments(i.files),i.value=""}onDragOver(e){e.preventDefault(),this.dragOver.set(!0)}onDragLeave(){this.dragOver.set(!1)}onDrop(e){e.preventDefault(),this.dragOver.set(!1),e.dataTransfer?.files&&this.addComplaintDocuments(e.dataTransfer.files)}
1removeComplaintDocument(e){this.complaintDocuments.update(i=>i.filter(a=>a.id!==e.id))}sendComplaintDocuments(){const e=this.complaintDocuments().filter(T=>"pending"===T.status||"error"===T.status);if(!e.length||this.isSending())return;const i=this.reclamationNumber();if(!i)return void e.forEach(T=>this.updateComplaintDocument(T.id,{status:"error",message:this.translateService.instant(`${P}.ERROR.GENERIC`)}));this.isSending.set(!0),e.forEach(T=>this.updateComplaintDocument(T.id,{status:"uploading",message:void 0}));let a=e.length;const c=[],R=()=>{a--,!(a>0)&&(this.isSending.set(!1),this.notifySendResult(c),c.length&&this.documentsUploaded.emit())};e.forEach(T=>{this.submissionsManagementService.uploadAttachment(i,T.file).subscribe({next:_t=>{_t.duplicate?this.updateComplaintDocument(T.id,{status:"duplicate",message:this.translateService.instant(`${P}.STATUS_DUPLICATE`)}):(c.push(T.file.name),this.complaintDocuments.update(Tt=>Tt.filter(Pt=>Pt.id!==T.id))),R()},error:_t=>{this.updateComplaintDocument(T.id,{status:"error",message:this.resolveComplaintDocumentErrorMessage(_t)}),R()}})})}notifySendResult(e){e.length&&this.snackbarService.open(this.translateService.instant(`${P}.STATUS_SUCCESS`,{fileNames:e.join(", ")}),{duration:H})}setLoading(e,i){this.loadingAttachmentIds.update(a=>this.toggleInSet(a,e,i))}setError(e,i){this.failedAttachmentIds.update(a=>this.toggleInSet(a,e,i))}toggleInSet(e,i,a){const c=new Set(e);return a?c.add(i):c.delete(i),c}addComplaintDocuments(e){Array.from(e).forEach(i=>this.addComplaintDocument(i))}addComplaintDocument(e){const i=crypto.randomUUID(),a=e.name.split(".").pop()?.toLowerCase();a&&mt.includes(a)?this.complaintDocuments.update(e.size>10485760?c=>[...c,{id:i,file:e,status:"invalid",message:this.translateService.instant(`${P}.ERROR.FILE_TOO_LARGE`)}]:c=>[...c,{id:i,file:e,status:"pending"}]):this.complaintDocuments.update(c=>[...c,{id:i,file:e,status:"invalid",message:this.translateService.instant(`${P}.ERROR.INVALID_FORMAT`)}])}resolveComplaintDocumentErrorMessage(e){switch(e.status){case 400:{const i=e.error?.fields?.file;return"string"==typeof i?i:this.translateService.instant(`${P}.ERROR.GENERIC`)}case 404:return this.translateService.instant(`${P}.ERROR.NOT_FOUND`);case 409:return this.translateService.instant(`${P}.ERROR.LIMIT_REACHED`);case 422:return this.translateService.instant(`${P}.ERROR.CLOSED`);case 503:return this.translateService.instant(`${P}.ERROR.UNAVAILABLE`);default:return this.translateService.instant(`${P}.ERROR.GENERIC`)}}updateComplaintDocument(e,i){this.complaintDocuments.update(a=>a.map(c=>c.id===e?{...c,...i}:c))}static{this.\u0275fac=function(i){return new(i||o)(t.rXU(U.w),t.rXU(M.D),t.rXU(x.z),t.rXU(g.c$))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["ardn-submissions-attachments"]],inputs:{attachments:[1,"attachments"],module:[1,"module"],submissionsNumber:[1,"submissionsNumber"],reclamationNumber:[1,"reclamationNumber"]},outputs:{documentsUploaded:"documentsUploaded"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[["complaintDocumentsInput",""],[1,"field"],[1,"label"],[1,"sublabel"],[1,"items-list"],[1,"item"],["type","file","multiple","",1,"hidden-input",3,"change"],[1,"dropzone",3,"dragover","dragleave","drop","click"],["aria-hidden","true",1,"fas","fa-upload"],[1,"add-title"],["size","sm",1,"icon"],["aria-hidden","true",1,"fas","fa-triangle-exclamation","icon","icon--error"],["aria-hidden","true",1,"far","fa-file","icon"],[1,"link",3,"click"],["aria-hidden","true",1,"fas","fa-circle-info","icon","icon--info"],[1,"name"],[1,"status","status--error"],[1,"status","status--info"],["type","button",1,"remove",3,"ardnTooltipster"],["type","button",1,"remove",3,"click","ardnTooltipster"],["aria-hidden","true",1,"fas","fa-xmark"]],template:function(i,a){1&i&&t.DNE(0,ut,10,7,"div",1),2&i&&t.vxM(a.attachments()||a.isComplaint()?0:-1)},dependencies:[g.h,g.D9,z.t,X.d],styles:[".hidden-input[_ngcontent-%COMP%]{display:none}.dropzone[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;min-height:120px;background:#fafbfc;border:2px dashed rgba(28,39,76,.5);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;transition:border-color .2s,background .2s;padding:12px;margin-bottom:8px;color:#1c274ccc}.dropzone[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:22px}.dropzone[_ngcontent-%COMP%]   .add-title[_ngcontent-%COMP%]{display:block;font-weight:600}.dropzone[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;text-align:center;font-size:.87em;font-style:italic}.dropzone[_ngcontent-%COMP%]:hover{border-color:#1c274cb3;background-color:#1c274c0a}.dropzone.is-dragging[_ngcontent-%COMP%]{border-color:#96c21f;background:#96c21f0d}.sublabel[_ngcontent-%COMP%]{display:block;margin:8px 0 4px;font-size:.85em;font-weight:600;color:#9b9b9b}.item[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:42px;gap:8px}.item[_ngcontent-%COMP%]   ardn-spinner[_ngcontent-%COMP%]{margin-bottom:15px}.item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:1.8em;margin-right:10px}.item[_ngcontent-%COMP%]   .icon--error[_ngcontent-%COMP%]{color:#f72323;cursor:pointer}.item[_ngcontent-%COMP%]   .icon--success[_ngcontent-%COMP%]{color:#5bbd2c}.item[_ngcontent-%COMP%]   .icon--info[_ngcontent-%COMP%]{color:#42bfff}.item[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{cursor:pointer;word-break:break-all;color:#7bc244;font-weight:500}.item[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{word-break:break-all;font-weight:500}.item[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{color:#9b9b9b;font-size:.9em}.item[_ngcontent-%COMP%]   .status--error[_ngcontent-%COMP%]{color:#f72323}.item[_ngcontent-%COMP%]   .status--info[_ngcontent-%COMP%]{color:#42bfff}.item[_ngcontent-%COMP%]   .remove[_ngcontent-%COMP%]{margin:0 0 0 auto;background:none;border:none;padding:0;line-height:1;color:#9b9b9b;cursor:pointer}.item[_ngcontent-%COMP%]   .remove[_ngcontent-%COMP%]:hover{color:#f72323}"]})}}return o}
1)();var st=r(42740),at=r(23738),y=r(13945),rt=r(77208),lt=r(85802);const ct=()=>[];function ht(o,u){1&o&&(t.EFF(0),t.nI1(1,"translate")),2&o&&t.SpI(" ",t.bMT(1,1,"COMMON.SUBMISSION_APPEAL_MODAL.TITLE")," ")}function n(o,u){1&o&&(t.EFF(0),t.nI1(1,"translate")),2&o&&t.SpI(" ",t.bMT(1,1,"DASHBOARD_PAGE.SUBMISSION_COMPLAINTS_PSC_PAGE.HEADER")," ")}function s(o,u){1&o&&(t.EFF(0),t.nI1(1,"translate")),2&o&&t.SpI(" ",t.bMT(1,1,"DASHBOARD_PAGE.SUBMISSION_CASES_DETAILS_PAGE.HEADER")," ")}function l(o,u){if(1&o&&(t.j41(0,"ardn-data-row",7),t.nI1(1,"translate"),t.EFF(2),t.k0s(),t.j41(3,"ardn-data-row",7),t.nI1(4,"translate"),t.EFF(5),t.k0s(),t.j41(6,"ardn-data-row",11),t.nI1(7,"translate"),t.EFF(8),t.nI1(9,"ardnLocaleDate"),t.k0s(),t.j41(10,"ardn-data-row",12),t.nI1(11,"translate"),t.EFF(12),t.nI1(13,"ardnLocaleDate"),t.k0s()),2&o){const e=t.XpG(2);t.Y8G("label",t.bMT(1,8,"DASHBOARD_PAGE.SUBMISSION_COMPLAINTS_PSC_PAGE.FORM.COMPLAINTS_NUMBER")+":"),t.R7$(2),t.SpI(" ",e.complaintData.Numer_wen_reklamacji||"\u2014"," "),t.R7$(),t.Y8G("label",t.bMT(4,10,"DASHBOARD_PAGE.SUBMISSION_CASES_DETAILS_PAGE.FORM.SUBMISSION_REASON")+":"),t.R7$(2),t.SpI(" ",e.complaintData.Pow_d_reklamacji_WWW||"\u2014"," "),t.R7$(),t.Y8G("label",t.bMT(7,12,"DASHBOARD_PAGE.SUBMISSION_COMPLAINTS_PSC_PAGE.FORM.SUBMISSION_DATE")),t.R7$(2),t.SpI(" ",t.bMT(9,14,e.complaintData.Data_utworzenia)||"\u2014"," "),t.R7$(2),t.Y8G("label",t.bMT(11,16,"DASHBOARD_PAGE.SUBMISSION_COMPLAINTS_PSC_PAGE.FORM.CREATE_DATE")),t.R7$(2),t.SpI(" ",t.bMT(13,18,e.submission().Created_Time)||"\u2014"," ")}}function p(o,u){if(1&o&&(t.j41(0,"ardn-data-row",7),t.nI1(1,"translate"),t.EFF(2),t.nI1(3,"ardnLocaleDate"),t.k0s(),t.j41(4,"ardn-data-row",7),t.nI1(5,"translate"),t.EFF(6),t.nI1(7,"ardnLocaleDate"),t.k0s(),t.j41(8,"ardn-data-row",7),t.nI1(9,"translate"),t.EFF(10),t.k0s()),2&o){const e=t.XpG(2);t.Y8G("label",t.bMT(1,6,"DASHBOARD_PAGE.SUBMISSION_CASES_DETAILS_PAGE.FORM.CREATE_DATE")+":"),t.R7$(2),t.SpI(" ",t.bMT(3,8,e.submission().Created_Time)||"\u2014"," "),t.R7$(2),t.Y8G("label",t.bMT(5,10,"DASHBOARD_PAGE.SUBMISSION_CASES_DETAILS_PAGE.FORM.UPDATE_DATE")+":"),t.R7$(2),t.SpI(" ",t.bMT(7,12,e.caseData.Modified_Time)||"\u2014"," "),t.R7$(2),t.Y8G("label",t.bMT(9,14,"DASHBOARD_PAGE.SUBMISSION_CASES_DETAILS_PAGE.FORM.SUBMISSION_REASON")+":"),t.R7$(2),t.SpI(" ",e.caseData.Type||"\u2014"," ")}}function S(o,u){1&o&&t.nrm(0,"i",20)}function C(o,u){if(1&o){const e=t.RV6();t.j41(0,"div",14)(1,"div",15)(2,"span",16),t.EFF(3,"*"),t.k0s(),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"div",15)(7,"span",16),t.EFF(8,"**"),t.k0s(),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.nrm(11,"div",17),t.nI1(12,"translate"),t.k0s(),t.j41(13,"div",18)(14,"button",19),t.bIt("click",function(){t.eBV(e),t.XpG();const a=t.sdS(1);return t.Njj(a.sendComplaintDocuments())}),t.DNE(15,S,1,0,"i",20),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.j41(18,"button",21),t.bIt("click",function(){t.eBV(e);const a=t.XpG(3);return t.Njj(a.openAppeal())}),t.EFF(19),t.nI1(20,"translate"),t.k0s()()}if(2&o){t.XpG();const e=t.sdS(1),i=t.XpG(2);t.R7$(4),t.SpI(" ",t.bMT(5,8,"DASHBOARD_PAGE.SUBMISSION_COMPLAINTS_PSC_PAGE.FORM.SUBMISSION_DATE_DISCLAIMER"),""),t.R7$(5),t.SpI(" ",t.bMT(10,10,"DASHBOARD_PAGE.SUBMISSION_COMPLAINTS_PSC_PAGE.FORM.CREATE_DATE_DISCLAIMER"),""),t.R7$(2),t.Y8G("innerHTML",t.bMT(12,12,"DASHBOARD_PAGE.SUBMISSION_COMPLAINTS_PSC_PAGE.FORM.SUBMISSION_CONTACT_EMAIL"),t.npT),t.R7$(3),t.Y8G("disabled",!e.hasSendableDocuments()||e.isSending()),t.R7$(),t.vxM(e.isSe
1nding()?15:-1),t.R7$(),t.SpI(" ",t.bMT(17,14,"DASHBOARD_PAGE.SUBMISSION_COMPLAINTS_PSC_PAGE.DOCUMENTS.SEND_BUTTON")," "),t.R7$(2),t.Y8G("disabled","Zako\u0144czona"!==i.complaintData.Status_PK),t.R7$(),t.SpI(" ",t.bMT(20,16,"DASHBOARD_PAGE.SUBMISSION_CASES_DETAILS_PAGE.FORM.SUBMISSIONS_APPEAL")," ")}}function E(o,u){if(1&o){const e=t.RV6();t.j41(0,"ardn-submissions-attachments",13,0),t.bIt("documentsUploaded",function(){t.eBV(e);const a=t.XpG(2);return t.Njj(a.onDocumentsUploaded())}),t.k0s(),t.DNE(2,C,21,18)}if(2&o){const e=t.XpG(2);t.Y8G("module",e.data.module)("submissionsNumber",e.submission().id)("attachments",e.submission().Attachments)("reclamationNumber",e.isComplaint?e.complaintData.Numer_wen_reklamacji:void 0),t.R7$(2),t.vxM(e.isComplaint?2:-1)}}function v(o,u){if(1&o&&(t.j41(0,"div",6)(1,"ardn-data-row",7),t.nI1(2,"translate"),t.EFF(3),t.k0s(),t.j41(4,"ardn-data-row",7),t.nI1(5,"translate"),t.j41(6,"span",8),t.EFF(7),t.k0s()(),t.DNE(8,l,14,20)(9,p,11,16),t.j41(10,"ardn-data-row",9),t.nI1(11,"translate"),t.EFF(12),t.k0s(),t.j41(13,"ardn-data-row",10),t.nI1(14,"translate"),t.EFF(15),t.k0s()(),t.DNE(16,E,3,5)),2&o){let e;const i=t.XpG();t.R7$(),t.Y8G("label",t.bMT(2,13,"DASHBOARD_PAGE.SUBMISSION_CASES_DETAILS_PAGE.FORM.NUMBER_GK")+":"),t.R7$(2),t.SpI(" ",(i.isComplaint?i.complaintData.Numer_zlecenia:i.caseData.Numer_GK)||"\u2014"," "),t.R7$(),t.Y8G("label",t.bMT(5,15,"DASHBOARD_PAGE.SUBMISSION_CASES_DETAILS_PAGE.FORM.STATUS")+":"),t.R7$(2),t.Y8G("ngClass",i.statusClass),t.R7$(),t.JRh(i.submission().Status_PK),t.R7$(),t.vxM(i.isComplaint?8:9),t.R7$(2),t.Y8G("fullWidth",!0)("label",t.bMT(11,17,"DASHBOARD_PAGE.SUBMISSION_CASES_DETAILS_PAGE.FORM.SUBMISSION_CONTENT")+":"),t.R7$(2),t.SpI(" ",(i.isComplaint?i.complaintData.Opis:i.caseData.Description)||"\u2014"," "),t.R7$(),t.Y8G("fullWidth",!0)("label",t.bMT(14,19,"DASHBOARD_PAGE.SUBMISSION_CASES_DETAILS_PAGE.FORM.SUBMISSIONS_RESPONSE")+":"),t.R7$(2),t.SpI(" ",i.submission().Wiadomo_do_klienta||"\u2014"," "),t.R7$(),t.vxM(i.isComplaint||null!=(e=i.submission().Attachments)&&e.length?16:-1)}}function F(o,u){if(1&o){const e=t.RV6();t.j41(0,"div",28)(1,"button",31),t.bIt("click",function(){t.eBV(e);const a=t.XpG(2);return t.Njj(a.removeAppealFile())}),t.nrm(2,"i",5),t.k0s(),t.nrm(3,"i",32),t.j41(4,"span",33),t.EFF(5),t.k0s()()}2&o&&(t.R7$(5),t.JRh(u.name))}function I(o,u){if(1&o){const e=t.RV6();t.j41(0,"div",34),t.bIt("dragover",function(a){t.eBV(e);const c=t.XpG(2);return t.Njj(c.onDragOver(a))})("dragleave",function(){t.eBV(e);const a=t.XpG(2);return t.Njj(a.onDragLeave())})("drop",function(a){t.eBV(e);const c=t.XpG(2);return t.Njj(c.onDrop(a))})("click",function(){t.eBV(e),t.XpG();const a=t.sdS(13);return t.Njj(a.click())}),t.nrm(1,"i",35),t.j41(2,"p"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&o){const e=t.XpG(2);t.AVh("is-dragging",e.dragOver()),t.R7$(3),t.JRh(t.bMT(4,3,"COMMON.SUBMISSION_APPEAL_MODAL.DROPZONE_HINT"))}}function w(o,u){if(1&o&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&o){const e=u.$implicit;t.R7$(),t.JRh(e)}}function dt(o,u){if(1&o&&(t.j41(0,"div",30)(1,"p",36),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"ul"),t.Z7z(5,w,2,1,"li",null,t.fX1),t.k0s()()),2&o){let e;const i=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,1,"COMMON.ERRORS.TITLE")),t.R7$(3),t.Dyx(null!==(e=i.serverErrors().general)&&void 0!==e?e:t.lJ4(3,ct))}}function gt(o,u){if(1&o){const e=t.RV6();t.j41(0,"p",22),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"form",23)(4,"ardn-form-field")(5,"span",24),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.nrm(8,"textarea",25),t.k0s(),t.j41(9,"span",26),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"input",27,1),t.bIt("change",function(a){t.eBV(e);const c=t.XpG();return t.Njj(c.onFileSelected(a))}),t.k0s(),t.DNE(14,F,6,1,"div",28)(15,I,5,5,"div",29)(16,dt,7,4,"div",30),t.k0s()}if(2&o){let e,i;const a=t.XpG();t.R7$(),t.JRh(t.bMT(2,6,"COMMON.SUBMISSION_APPEAL_MODAL.MAIL_DESC")),t.R7$(2),t.Y8G("formGroup",a.appealForm),t.R7$(3),t.JRh(t.bMT(7,8,"COMMON.SUBMISSION_APPEAL_MODAL.MAIL_COMMENTS")),t.R7$(4),t.JRh(t.bMT(11,10,"COMMON.SUBMISSION_APPEAL_MODAL.MAIL_ATTACHMENT")),t.R7$(4),t.vxM((e=a.stagedFile())?14:15,e),t.R7$(2),t.vxM(null!=(i=a.serverErrors().general)&&i.length?16:-1)}}function St(o,u){1&o&&(t.nrm(0,"i",20),t.EFF(1),t.nI1(2,"translate")),2&o&&(t.R
17$(),t.SpI(" ",t.bMT(2,1,"COMMON.SUBMISSION_APPEAL_MODAL.MAIL_BUTTON_SENDING")," "))}function Ct(o,u){1&o&&(t.EFF(0),t.nI1(1,"translate")),2&o&&t.SpI(" ",t.bMT(1,1,"COMMON.SUBMISSION_APPEAL_MODAL.MAIL_BUTTON_APPEAL")," ")}function Ot(o,u){if(1&o){const e=t.RV6();t.j41(0,"footer")(1,"button",37),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return t.Njj(a.submitAppeal())}),t.DNE(2,St,3,3)(3,Ct,2,3),t.k0s(),t.j41(4,"button",38),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return t.Njj(a.backToDetails())}),t.EFF(5),t.nI1(6,"translate"),t.k0s()()}if(2&o){const e=t.XpG();t.R7$(),t.Y8G("disabled",!e.stagedFile()||e.isSubmittingAppeal()),t.R7$(),t.vxM(e.isSubmittingAppeal()?2:3),t.R7$(3),t.SpI(" ",t.bMT(6,3,"COMMON.BACK")," ")}}const Mt=["pending","in-progress","completed"],At=["pending","warning","in-progress","completed","appeal"],bt=["pdf","txt","png","jpg","gif","bmp","tif","rtf","doc","docx","xls","xlsx"],pt={general:[],fields:{}};let Et=(()=>{class o{constructor(){this.data=(0,t.WQX)(f.Q),this.submission=(0,t.vPA)(this.data.submission),this.step=(0,t.vPA)("details"),this.stagedFile=(0,t.vPA)(null),this.dragOver=(0,t.vPA)(!1),this.isSubmittingAppeal=(0,t.vPA)(!1),this.serverErrors=(0,t.vPA)(pt),this.appealForm=new _.gE({description:new _.MJ("",{nonNullable:!0})}),this.translateService=(0,t.WQX)(g.c$),this.dialogRef=(0,t.WQX)(m.c),this.apiClientService=(0,t.WQX)(W.f),this.fileDownloaderService=(0,t.WQX)(M.D),this.snackbarService=(0,t.WQX)(x.z),this.submissionsManagementService=(0,t.WQX)(U.w),this.statusClassMap=this.buildStatusClassMap()}get isComplaint(){return this.data.module===B.z.COMPLAINTS_PSC}get caseData(){return this.submission()}get complaintData(){return this.submission()}get statusClass(){return this.statusClassMap[this.submission().Status_PK]??"unknown"}close(){this.dialogRef.close()}openAppeal(){this.step.set("appeal")}backToDetails(){this.step.set("details"),this.resetAppealForm()}onFileSelected(e){const i=e.target,a=i.files?.[0];a&&this.stageAppealFile(a),i.value=""}onDragOver(e){e.preventDefault(),this.dragOver.set(!0)}onDragLeave(){this.dragOver.set(!1)}onDrop(e){e.preventDefault(),this.dragOver.set(!1);const i=e.dataTransfer?.files?.[0];i&&this.stageAppealFile(i)}removeAppealFile(){this.stagedFile.set(null)}submitAppeal(){const e=this.stagedFile();!e||this.isSubmittingAppeal()||(this.isSubmittingAppeal.set(!0),this.serverErrors.set(pt),this.fileDownloaderService.fileToBase64(e).subscribe({next:i=>{const a={module:this.data.module,leadId:this.submission().id,data:{id:this.submission().id,Status_reklamacji:B.X.COMPLAINTS_PSC,INFORMACJE_DO_ODWO_ANIA:this.appealForm.controls.description.value},file:{content:i,name:e.name}};this.apiClientService.post("zoho/cases",!0,a).subscribe({next:()=>this.refetchAfterAppealSuccess(),error:c=>{this.isSubmittingAppeal.set(!1),this.serverErrors.set(this.resolveAppealErrors(c))}})},error:()=>{this.isSubmittingAppeal.set(!1),this.serverErrors.set({fields:{},general:[this.translateService.instant("DASHBOARD_PAGE.ORDER_DOCUMENTS.ERROR_UPLOADING_DOCUMENT")]})}}))}resolveAppealErrors(e){const i=e.error;if(i?.general?.length)return i;const a=Object.values(i?.fields??{}).map(c=>"string"==typeof c?c:c.map(R=>R.message).join(", ")).filter(c=>!!c);return{fields:i?.fields??{},general:a.length?a:[this.translateService.instant("COMMON.ERRORS.API_ERROR")]}}onDocumentsUploaded(){this.refreshSubmission()}refetchAfterAppealSuccess(){this.refreshSubmission(()=>this.finishAppealSuccess())}refreshSubmission(e){const i=this.complaintData;this.submissionsManagementService.getResult({module:this.data.module,id:i.id,email:i.Email}).subscribe({next:a=>{const c=a.results[0];c&&this.submission.set(c),e?.()},error:()=>e?.()})}finishAppealSuccess(){this.isSubmittingAppeal.set(!1),this.step.set("details"),this.resetAppealForm(),this.snackbarService.open(this.translateService.instant("COMMON.SUBMISSION_APPEAL_MODAL.MAIL_SUCCESS"),{duration:4e3})}stageAppealFile(e){const i=e.name.split(".").pop()?.toLowerCase();i&&bt.includes(i)?e.size>5242880?this.showFileError("DASHBOARD_PAGE.ORDER_DOCUMENTS.FILE_TOO_LARGE"):this.stagedFile.set(e):this.show
1FileError("DASHBOARD_PAGE.ORDER_DOCUMENTS.WRONG_FORMAT")}showFileError(e){this.snackbarService.open(this.translateService.instant(e),{duration:4e3,panelClass:"snackbar--error"})}resetAppealForm(){this.appealForm.reset({description:""}),this.stagedFile.set(null),this.serverErrors.set(pt)}buildStatusClassMap(){const e=this.isComplaint?"DASHBOARD_PAGE.SUBMISSION_COMPLAINTS_PSC_PAGE.FILTERS.STATUS_SELECT_OPTIONS":"DASHBOARD_PAGE.SUBMISSION_PAGE.FILTERS.STATUS_SELECT_OPTIONS",i=this.isComplaint?At:Mt;return Object.fromEntries((this.isComplaint?["STAT1","STAT2","STAT3","STAT4","STAT5"]:["STAT1","STAT2","STAT3"]).map((c,R)=>[this.translateService.instant(`${e}.${c}`),i[R]]))}static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["ardn-case-details-dialog"]],standalone:!0,features:[t.aNF],decls:14,vars:7,consts:[["attachmentsComponent",""],["appealFileInput",""],[1,"dialog-title"],[1,"submission-number"],["ardnMiniIconButton","","type","button","color","secondary",1,"close-btn",3,"click"],["aria-hidden","true",1,"fas","fa-xmark"],[1,"fields-grid"],[3,"label"],[1,"status-badge",3,"ngClass"],[3,"fullWidth","label"],[1,"accent-label",3,"fullWidth","label"],["labelMarker","*",3,"label"],["labelMarker","**",3,"label"],[3,"documentsUploaded","module","submissionsNumber","attachments","reclamationNumber"],[1,"disclaimers"],[1,"disclaimer"],[1,"disclaimer-marker"],[1,"disclaimer",3,"innerHTML"],[1,"appeal-action"],["ardnButton","","type","button","color","outline-secondary",1,"send-attachments-btn",3,"click","disabled"],["aria-hidden","true",1,"fas","fa-spinner","fa-spin"],["ardnButton","","type","button","color","accent",1,"appeal-btn",3,"click","disabled"],[1,"appeal-description"],[1,"appeal-form",3,"formGroup"],["label",""],["ardnInput","","formControlName","description","rows","4"],[1,"appeal-form__label"],["type","file",1,"hidden-input",3,"change"],[1,"uploaded-file"],[1,"dropzone",3,"is-dragging"],[1,"api-errors"],["ardnMiniIconButton","","type","button","color","secondary",1,"remove-btn",3,"click"],["aria-hidden","true",1,"fas","fa-file"],[1,"uploaded-file__name"],[1,"dropzone",3,"dragover","dragleave","drop","click"],["aria-hidden","true",1,"fas","fa-upload"],[1,"api-errors-title"],["ardnButton","","color","accent","type","button",3,"click","disabled"],["ardnButton","","color","outline-secondary","type","button",3,"click"]],template:function(i,a){1&i&&(t.j41(0,"header")(1,"h2",2),t.DNE(2,ht,2,3)(3,n,2,3)(4,s,2,3),t.j41(5,"span",3),t.EFF(6),t.k0s()(),t.j41(7,"button",4),t.nI1(8,"translate"),t.bIt("click",function(){return a.close()}),t.nrm(9,"i",5),t.k0s()(),t.j41(10,"main"),t.DNE(11,v,17,21)(12,gt,17,12),t.k0s(),t.DNE(13,Ot,7,5,"footer")),2&i&&(t.R7$(2),t.vxM("appeal"===a.step()?2:a.isComplaint?3:4),t.R7$(4),t.JRh(a.submission().id),t.R7$(),t.BMQ("aria-label",t.bMT(8,5,"COMMON.CLOSE_WINDOW")),t.R7$(4),t.vxM("details"===a.step()?11:12),t.R7$(2),t.vxM("appeal"===a.step()?13:-1))},dependencies:[A.YU,_.X1,_.qT,_.me,_.BC,_.cb,_.j4,_.JD,g.h,g.D9,O.t,st.H,at.R,h.W,d.L,y.K,rt.k,lt.s,b.c,ot],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:24px;font-size:var(--main-font-size);color:#1c274c;max-width:100%}header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-start;gap:16px}header[_ngcontent-%COMP%]   .dialog-title[_ngcontent-%COMP%]{flex:1;margin:0;font-weight:600;font-size:1.5em;display:flex;align-items:baseline;gap:8px}header[_ngcontent-%COMP%]   .submission-number[_ngcontent-%COMP%]{color:#7bc244;font-weight:700}.close-btn[_ngcontent-%COMP%]{color:#1c274c;flex-shrink:0;transition:all .2s ease-in-out;display:flex;align-items:center;justify-content:center;margin:0}.close-btn[_ngcontent-%COMP%]:hover{transform:rotate(90deg)}.close-btn[_ngcontent-%COMP%]:active{transform:translateY(2px) rotate(90deg)!important}main[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.fields-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:16px 32px;--data-row-label-width: 190px;--data-row-gap: 8px;--data-row-padding: 0}@media (max-width: 480px){.fields-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.disclaimers[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.disclaimers[_ngcontent-%COMP%]   .disclaimer[_ngcontent-%COMP%]{font-size:.9em}.disclaimers[_ngcontent-%COMP%]   .disclaimer[_ngcontent-%COMP%]     a{font-weight:500;letter-spacing:.5px;color:#7bc244!important}.disclaimer-marker[_ngcontent-%COMP%]{font-weight:700}.appeal-action[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
1gap:12px}.status-badge[_ngcontent-%COMP%]{display:inline-block;padding:2px 10px;border-radius:12px;font-size:.86em;font-weight:500;border:1px solid currentcolor;white-space:nowrap;letter-spacing:1px}.status-badge.pending[_ngcontent-%COMP%]{color:#ff8f33;background-color:#ff8f331a}.status-badge.warning[_ngcontent-%COMP%]{color:#f72323;background-color:#f723231a}.status-badge.in-progress[_ngcontent-%COMP%]{color:#3b4e88;background-color:#3b4e881a}.status-badge.completed[_ngcontent-%COMP%]{color:#7bc244;background-color:#7bc2441a}.status-badge.appeal[_ngcontent-%COMP%]{color:#3b6ba5;background-color:#3b6ba51a}.status-badge.unknown[_ngcontent-%COMP%]{color:#5b5b5b;background-color:#5b5b5b14}.appeal-description[_ngcontent-%COMP%]{margin:0;color:#9b9b9b}.appeal-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.appeal-form__label[_ngcontent-%COMP%]{font-weight:600;color:#5b5b5b}.hidden-input[_ngcontent-%COMP%]{display:none}.dropzone[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;min-height:120px;background:#fafbfc;border:2px dashed rgba(28,39,76,.5);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;cursor:pointer;transition:border-color .2s,background .2s;padding:16px;color:#1c274ccc}.dropzone[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:28px}.dropzone[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;text-align:center;font-size:.87em;font-style:italic}.dropzone[_ngcontent-%COMP%]:hover{border-color:#1c274cb3;background-color:#1c274c0a}.dropzone.is-dragging[_ngcontent-%COMP%]{border-color:#96c21f;background:#96c21f0d}.uploaded-file[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;width:100%;min-height:120px;background:#5bbd2c14;border:1px solid #5BBD2C;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px}.uploaded-file[_ngcontent-%COMP%]   i.fa-file[_ngcontent-%COMP%]{font-size:32px;color:#7bc244}.uploaded-file__name[_ngcontent-%COMP%]{font-size:1.05em;font-weight:600;word-break:break-all;text-align:center}.uploaded-file[_ngcontent-%COMP%]   .remove-btn[_ngcontent-%COMP%]{position:absolute!important;top:8px!important;right:8px!important}footer[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;gap:12px;justify-content:center}footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-width:140px}  .accent-label .data-label{color:#7bc244!important}.api-errors[_ngcontent-%COMP%]{margin-top:12px;padding:10px 16px;background-color:#f723230f;border:1px solid rgba(247,35,35,.3);border-radius:8px;color:#f72323;font-size:.92em}.api-errors[_ngcontent-%COMP%]   .api-errors-title[_ngcontent-%COMP%]{margin:0 0 4px;font-weight:600}.api-errors[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin:0;padding-left:16px}.api-errors[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:4px 0;list-style:disc;line-height:1.3em}"],changeDetection:0})}}return o})()},82745:(N,D,r)=>{r.d(D,{W:()=>g});var t=r(54438);const A=["*"];function _(m,f){if(1&m&&(t.j41(0,"sup",2),t.EFF(1),t.k0s(),t.EFF(2,":")),2&m){const O=t.XpG();t.R7$(),t.JRh(O.labelMarker())}}let g=(()=>{class m{constructor(){this.layout=(0,t.hFB)("row"),this.label=t.hFB.required(),this.fullWidth=(0,t.hFB)(!1),this.compact=(0,t.hFB)(!1),this.withAction=(0,t.hFB)(!1),this.multiLine=(0,t.hFB)(!1),this.labelMarker=(0,t.hFB)(null)}static{this.\u0275fac=function(h){return new(h||m)}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["ardn-data-row"]],hostVars:6,hostBindings:function(h,d){2&h&&t.AVh("data-row--column","column"===d.layout())("data-row--full-width",d.fullWidth())("data-row--with-action",d.withAction())},inputs:{layout:[1,"layout"],label:[1,"label"],fullWidth:[1,"fullWidth"],compact:[1,"compact"],withAction:[1,"withAction"],multiLine:[1,"multiLine"],labelMarker:[1,"labelMarker"]},standalone:!0,features:[t.aNF],ngContentSelectors:A,decls:5,vars:6,consts:[[1,"data-label"],[1,"data-value"],[1,"data-label-marker"]],template:function(h,d){1&h&&(t.NAR(),t.j41(0,"span",0),t.EFF(1),t.DNE(2,_,3,1),t.k0s(),t.j41(3,"span",1),t.SdG(4),t.k0s()),2&h&&(t.AVh("compact",d.compact()),t.R7$(),t.JRh(d.label()),t.R7$(),t.vxM(d.labelMarker()?2:-1),t.R7$(),t.AVh("multi-line",d.multiLine()))},styles:["[_nghost-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--data-row-gap, 16px);padding:var(--data-row-padding, 10px 20px);min-width:0}.data-row--column[_nghost-%COMP%]{flex-direction:column;align-items:flex-start;gap:4px;padding:0}.data-row--full-width[_nghost-%COMP%]{grid-column:1/-1}.data-label[_ngcontent-%COMP%]{flex-shrink:0;width:var(--data-row-label-width, 140px);min-width:var(--data-row-label-width, 140px);color:#5b5b5b;font-weight:400}.data-label.compact[_ngcontent-%COMP%]{width:var(--data-row-label-width-compact, 8em);min-width:var(--data-row-label-width-compact, 8em)}.data-label-marker[_ngcontent-%COMP%]{color:#1c274c;font-weight:700}.data-row--column[_nghost-%COMP%]   .data-label[_ngcontent-%COMP%]{width:auto;min-width:0;font-size:.93em}.data-value[_ngcontent-%COMP%]{flex:1;min-width:auto;color:#1c274c;font-weight:500;word-break:break-word}.data-value.multi-line[_ngcontent-%COMP%]{display:flex;flex-flow:column;gap:.7em}.data-row--with-action[_nghost-%COMP%]   .data-value[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px}"],changeDetection:0})}}return m})()},22614:(N,D,r)=>{r.d(D,{R:()=>m});var t=r(54438),A=r(44668),_=r(21626);let g=(()=>{class f{constructor(h){this.http=h,this.cache=new Map}getSvg(h){if(!this.cache.has(h)){const d=this.http.get(h,{responseType:"text"}).pipe((0,A.t)({bufferSize:1,refCount:!1}));this.cache.set(h,d)}return this.cache.get(h)}static{this.\u0275fac=function(d){return new(d||f)(t.KVO(_.Qq))}}static{this.\u0275prov=t.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})(),m=(()=>{class f{constructor(h,d,b){this.iconService=h,this.el=d,this.renderer=b}ngOnInit(){this.iconService.getSvg(this.path).subscribe(h=>{const M=(new DOMParser).parseFromString(h,"image/svg+xml").querySelector("svg");M&&(this.size&&(this.renderer.setStyle(M,"width",this.size),this.renderer.setStyle(M,"height",this.size)),this.renderer.appendChild(this.el.nativeElement,M))})}static{this.\u0275fac=function(d){return new(d||f)(t.rXU(g),t.rXU(t.aKT),t.rXU(t.sFG))}}static{this.\u0275cmp=t.VBU({type:f,selectors:[["ardn-icon"]],inputs:{path:"path",size:"size"},decls:0,vars:0,template:function(d,b){},styles:["[_nghost-%COMP%]{display:inline-flex;line-height:0;color:inherit;width:auto;height:auto;align-items:center;justify-content:center}[_nghost-%COMP%]   svg[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}"]})}}return f})()},56725:(N,D,r)=>{r.d(D,{t:()=>A});var t=r(54438);let A=(()=>{class _{static{this.\u0275fac=function(f){return new(f||_)}}static{this.\u0275cmp=t.VBU({type:_,selectors:[["ardn-infinite-progress"]],standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[[1,"bar"]],template:function(f,O){1&f&&t.nrm(0,"div",0)},styles:["[_nghost-%COMP%]{display:block;position:relative;min-height:5px;background-color:#7bc24426;overflow:hidden}.bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:40%;background-color:#7bc244;animation:_ngcontent-%COMP%_progress-slide 1s ease-in-out infinite}@keyframes _ngcontent-%COMP%_progress-slide{0%{transform:translate(-250%)}to{transform:translate(250%)}}"],changeDetection:0})}}return _})()},78147:(N,D,r)=>{r.d(D,{c:()=>m});var t=r(60177),A=r(10244),_=r(54438),g=r(59141);let m=(()=>{class f{constructor(h){this.locationService=h}transform(h,d="shortDate"){return h?new t.vh(this.locationService.getLocationId()).transform((new A.W).parse(h),d):""}static{this.\u0275fac=function(d){return new(d||f)(_.rXU(g.N,16))}}static{this.\u0275pipe=_.EJ8({name:"ardnLocaleDate",type:f,pure:!0,standalone:!0})}static{this.\u0275prov=_.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})()},92114:(N,D,r)=>{r.d(D,{w:()=>f});var t=r(18810),A=r(99437),_=r(96354),g=r(54438),m=r(18286);let f=(()=>{class O{constructor(d){this.apiClientService=d}
1getResult(d){return this.getSubmission(d)}getSubmission(d){return this.createRequest(d,!1)}getResults(d){return this.getSubmissions(d)}getSubmissions(d){return this.createRequest(d,!0)}getAttachment(d,b=!1){return this.apiClientService.get("zoho/cases/getAttachment",b,d,!1,"blob").pipe((0,A.W)(M=>(0,t.$)(()=>M.error)))}uploadAttachment(d,b,M){const x=new FormData;return x.append("file",b,b.name),M&&x.append("description",M),this.apiClientService.post(`complaints/${encodeURIComponent(d)}/documents`,!0,x)}createRequest(d,b){return this.apiClientService.get("zoho/cases",b,d).pipe((0,_.T)(M=>({...M,results:this.mapOrder(M.results)})))}mapOrder(d){return d.map(b=>({...b}))}static{this.\u0275fac=function(b){return new(b||O)(g.KVO(m.f))}}static{this.\u0275prov=g.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},79825:(N,D,r)=>{r.d(D,{f:()=>A});var t=r(96354);class A{constructor(g,m){this.sourceService=g,this.inOutDto=m}getResponse(g){return this.sourceService.getResults(this.convertToApiPaginationConfig(g)).pipe((0,t.T)(m=>({page:Math.floor(m.offset/m.limit),total:m.total,itemsPerPage:m.limit,results:m.results})))}convertToApiPaginationConfig(g){const m={module:g.module,limit:g.limit,offset:g.offset};return g.filters&&Object.entries(this.prepareKeyValueObject(g.filters)).forEach(([f,O],h)=>{m["filters["+h+"][name]"]=f,m["filters["+h+"][value]"]=O}),m}prepareKeyValueObject(g){const m={};return Object.entries(g).forEach(([f,O])=>{m[this.inOutDto[f]]=O}),m}}},35118:(N,D,r)=>{r.d(D,{X:()=>A,z:()=>t});var t=function(_){return _.CASES="Cases",_.COMPLAINTS_PSC="Reklamacje_PSC",_.COMPLAINTS_INVOICES="Reklamacje_Faktur",_}(t||{}),A=function(_){return _.COMPLAINTS_PSC="Odwo\u0142anie do przewo\u017anika",_.COMPLAINTS_INVOICES="Odwo\u0142anie",_}(A||{})},77540:(N,D,r)=>{r.d(D,{D:()=>lt});var t=r(54438),A=r(7673),_=r(33726),g=r(31397),m=r(96354),f=r(88141),O=r(5964),h=r(23386);function d(n,s,l,p){const S=window&&!!window.document&&window.document.documentElement;let C=S&&s?window:l;if(n&&(C=n&&S&&"string"==typeof n?function b(n,s,l){return(l?window.document:s).querySelector(n)}(n,l.nativeElement,p):n,!C))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return C}function M(n){return n&&!n.firstChange}const W={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},B={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class z{constructor(s=!0){this.vertical=s,this.propsMap=s?W:B}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function V(n){return["Window","global"].some(l=>Object.prototype.toString.call(n).includes(l))}function k(n,s){return n?s.document.documentElement:null}function L(n,s){const l=function Q({container:n,isWindow:s,axis:l}){const{offsetHeightKey:p,clientHeightKey:S}=j(l);return G(n,s,p,S)}(s);return s.isWindow?function Y(n,s,l){const{axis:p,container:S,isWindow:C}=l,{offsetHeightKey:E,clientHeightKey:v}=j(p),F=n+$(k(C,S),p,C),I=G(s.nativeElement,C,E,v),w=function Z(n,s,l){const p=s.topKey();if(n.getBoundingClientRect)return n.getBoundingClientRect()[p]+$(n,s,l)}(s.nativeElement,p,C)+I;return{height:n,scrolled:F,totalToScroll:w,isWindow:C}}(l,n,s):function J(n,s,l){const{axis:p,container:S}=l;return{height:n,scrolled:S[p.scrollTopKey()],totalToScroll:S[p.scrollHeightKey()],isWindow:!1}}(l,0,s)}function j(n){return{offsetHeightKey:n.offsetHeightKey(),clientHeightKey:n.clientHeightKey()}}function G(n,s,l,p){if(isNaN(n[l])){const S=k(s,n);return S?S[p]:0}return n[l]}function $(n,s,l){const p=s.pageYOffsetKey(),S=s.scrollTopKey(),C=s.offsetTopKey();
1return isNaN(window.pageYOffset)?k(l,n)[S]:n.ownerDocument?n.ownerDocument.defaultView[p]:n[C]}function q(n,s={down:0,up:0},l){let p,S;if(n.totalToScroll<=0)return!1;const C=n.isWindow?n.scrolled:n.height+n.scrolled;return l?(p=(n.totalToScroll-C)/n.totalToScroll,S=(s?.down?s.down:0)/10):(p=n.scrolled/(n.scrolled+(n.totalToScroll-C)),S=(s?.up?s.up:0)/10),p<=S}class P{constructor(s){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},Object.assign(this,s)}updateScrollPosition(s){return this.lastScrollPosition=s}updateTotalToScroll(s){this.lastTotalToScroll!==s&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=s)}updateScroll(s,l){this.updateScrollPosition(s),this.updateTotalToScroll(l)}updateTriggeredFlag(s,l){l?this.triggered.down=s:this.triggered.up=s}isTriggeredScroll(s,l){return l?this.triggered.down===s:this.triggered.up===s}}const y={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function rt(n){const{scrollDown:s,stats:{scrolled:l}}=n;return{type:s?y.DOWN:y.UP,payload:{currentScrollPosition:l}}}let lt=(()=>{class n{constructor(l,p){this.element=l,this.zone=p,this.scrolled=new t.bkB,this.scrolledUp=new t.bkB,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:l,infiniteScrollDisabled:p,infiniteScrollDistance:S}){const C=M(l),E=M(p),v=M(S),F=!E&&!this.infiniteScrollDisabled||E&&!p.currentValue||v;(C||E||v)&&(this.destroyScroller(),F&&this.setup())}ngOnDestroy(){this.destroyScroller()}setup(){(function x(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=function ot(n){const{scrollContainer:s,scrollWindow:l,element:p,fromRoot:S}=n,C=function U({windowElement:n,axis:s}){return function K(n,s){const l=n.isWindow||s&&!s.nativeElement?s:s.nativeElement;return{...n,container:l}}({axis:s,isWindow:V(n)},n)}({axis:new z(!n.horizontal),windowElement:d(s,l,p,S)}),E=new P({totalToScroll:L(p,C).totalToScroll}),F={up:n.upDistance,down:n.downDistance};return function st(n){let s=(0,_.R)(n.container,"scroll");return n.throttle&&(s=s.pipe((0,h.c)(n.throttle,void 0,{leading:!0,trailing:!0}))),s}({container:C.container,throttle:n.throttle}).pipe((0,g.Z)(()=>(0,A.of)(L(p,C))),(0,m.T)(I=>function at(n,s,l){const{scrollDown:p,fire:S}=function et(n,s,l){const p=function tt(n,s){return n<s.scrolled}(n,s);return{fire:q(s,l,p),scrollDown:p}}(n,s,l);return{scrollDown:p,fire:S,stats:s}}(E.lastScrollPosition,I,F)),(0,f.M)(({stats:I})=>E.updateScroll(I.scrolled,I.totalToScroll)),(0,O.p)(({fire:I,scrollDown:w,stats:{totalToScroll:dt}})=>function X(n,s,l){return!!(n&&s||!l&&s)}(n.alwaysCallback,I,E.isTriggeredScroll(dt,w))),(0,f.M)(({scrollDown:I,stats:{totalToScroll:w}})=>{E.updateTriggeredFlag(w,I)}),(0,m.T)(rt))}({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollC
1ontainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(l=>this.handleOnScroll(l))})}handleOnScroll({type:l,payload:p}){const S=l===y.DOWN?this.scrolled:this.scrolledUp;(function ct(n){return n.observed??n.observers.length>0})(S)&&this.zone.run(()=>S.emit(p))}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static{this.\u0275fac=function(p){return new(p||n)(t.rXU(t.aKT),t.rXU(t.SKi))}}static{this.\u0275dir=t.FsC({type:n,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},standalone:!0,features:[t.OA$]})}}return n})()}}]);

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.