PageSourceSearch

https://minasidor.k2a.se/325.fd3ea939eb27a586.js

js k2a.se collected 2026-09-24 20:00:05 UTC 50,683 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktaiga=self.webpackChunktaiga||[]).push([[325],{1580:(Q,F,o)=>{o.d(F,{E:()=>b});var c=o(1360),E=o(5850);let b=(()=>{class v{constructor(d){this.requestService=d}saveBlob(d,u){const e=new Blob([d],{type:u});if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(e);else{const R=window.URL.createObjectURL(e);window.open(R,"_blank"),setTimeout(()=>{window.URL.revokeObjectURL(R)},100)}}saveBlobWithFilename(d,u){const e=u.split(".").pop(),R=this.getMimeType(e),x=new Blob([d],{type:R});if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(x,u);else{const g=window.URL.createObjectURL(x),m=document.createElement("a");typeof m.download>"u"?window.open(g,"_blank"):(m.href=g,m.download=u,document.body.appendChild(m),m.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))),setTimeout(()=>{window.URL.revokeObjectURL(g),m&&m.remove()},100)}}getMimeType(d){switch(d=d.replace(".","")){case"3g2":return"video/3gpp2";case"3gp":return"video/3gpp";case"au":return"audio/basic";case"avi":return"video/x-msvideo";case"bmp":return"image/bmp";case"doc":return"application/msword";case"docx":return"application/vnd.openxmlformats-officedocument.wordprocessingml.document";case"eps":case"ps":return"application/postscript";case"gif":return"image/gif";case"h264":return"video/h264";case"htm":case"html":return"text/html";case"ico":return"image/x-icon";case"jpe":case"jpeg":case"jpg":return"image/jpeg";case"m4v":return"video/x-m4v";case"mkv":return"video/x-matroska";case"mov":case"qt":return"video/quicktime";case"mp3":case"mpga":return"audio/mpeg";case"mp4":case"mpg4":return"video/mp4";case"mpe":case"mpeg":case"mpg":return"video/mpeg";case"ogg":return"application/ogg";case"pdf":return"application/pdf";case"png":return"image/png";case"ppt":return"application/vnd.ms-powerpoint";case"ra":case"ram":return"audio/x-pn-realaudio";case"rm":return"application/vnd.rn-realmedia";case"rtf":return"text/rtf";case"rtx":return"text/richtext";case"svg":return"image/svg+xml";case"swf":return"application/x-shockwave-flash";case"tif":case"tiff":return"image/tiff";case"txt":return"text/plain";case"wav":return"audio/x-wav";case"wbmp":return"image/vnd.wap.wbmp";case"wmv":return"video/x-ms-wmv";case"xhtml":return"application/xhtml+xml";case"xls":return"application/vnd.ms-excel";case"xlsx":return"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";case"xml":return"application/xml";default:return""}}getValidMediaType(d){switch(d){case"application/pdf":case"image/jpeg":case"image/png":case"image/bmp":case"image/gif":return!0;default:return!1}}getValidImageMediaType(d){switch(d){case"image/jpeg":case"image/png":case"image/bmp":case"image/gif":return!0;default:return!1}}getBlobFromUrl(d){return this.requestService.getBlobFromUrl(d)}static{this.\u0275fac=function(u){return new(u||v)(c.KVO(E.B))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},6325:(Q,F,o)=>{o.r(F),o.d(F,{ErrorReportModule:()=>vt});var c=o(9417),E=o(1585),b=o(3687),v=o(4044),z=o(6090),d=o(8709),u=o(467),e=o(1360),R=o(3718),x=o(226),g=o(7342),m=o(8018),f=o(2881),S=o(9213),G=o(4506),j=o(100),I=o(2928),J=o(3881);const W=n=>({"background-image":n}),Z=n=>({invalidChars:n});function q(n,s){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",10),e.nrm(2,"div",11),e.j41(3,"mat-form-field",12)(4,"textarea",13,1),e.nI1(6,"translate"),e.mxI("ngModelChange",function(r){const a=e.eBV(t).$implicit;return e.DH7(a.note,r)||(a.note=r),e.Njj(r)}),e.bIt("keydown.enter",function(){return e.eBV(t),e.XpG(2).nop(),e.Njj(!1)}),e.k0s(),e.j41(7,"mat-error"),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"button",14),e.nI1(11,"translate"),e.bIt("click",function(){const r=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.delete(r))}),e.j41(12,"mat-icon",5),e.EFF(13,"delete_outline"),e.k0s()()()()}if(2&n){const t=s.$implicit,i=e.sdS(5);e.R7$(2),e.Y8G("ngStyle",e.eq3(13,W,"url("+t.src+")")),e.R7$(2),e.FS9("placeholder",e.bMT(6,6,"ADDNOTE")),e.R50("ngModel",t.note),e.Y8G("maxLength",20),e.R7$(4),e.JRh(e.i5U(9,8,"INVALIDCHARACTERS",e.eq3(15,Z,null==i.errors||null==i.errors.allowedCharacters?null:i.errors.allowedCharacters.invalidChars))),e.R7$(2),e.BMQ("aria-label",e.bMT(11,11,"DELETEFILE"))}}
1function ee(n,s){if(1&n&&(e.j41(0,"div",8),e.DNE(1,q,14,17,"div",9),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.imageFiles)}}class te{constructor(s,t,i){this.src=s,this.file=t,this.note=i}}let D=(()=>{class n{constructor(t,i,r){this.loadingService=t,this.snackbarService=i,this.translate=r,this.imageLoaded=new e.bkB,this.imageFiles=[]}nop(){}processFile(t){var i=this;if("function"!=typeof FileReader)return void this.snackbarService.error(this.translate.instant("FILEUPLOADNOTSUPPORTED"));let r=t.files[0];if(r){const a=new FileReader,l=R.Q.generateUniqueId();this.loadingService.open(l),a.onloadend=(0,u.A)(function*(){let p=a.result;if(r.type.match(/image.*/)&&r.size>6e6){const h=yield R.Q.resizeImage(p,r,6e6);p=h.src,r=h.file}const _=new te(p,r,"");i.imageFiles.push(_),i.imageLoaded.emit(!0),i.loadingService.close(l)}),a.readAsDataURL(r)}}delete(t){const i=this.imageFiles.indexOf(t,0);i>-1&&this.imageFiles.splice(i,1)}clear(){this.imageFiles&&this.imageFiles.splice(0,this.imageFiles.length)}clickInput(t){t.target.click()}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(x.U),e.rXU(g.z),e.rXU(m.c$))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-image-upload"]],outputs:{imageLoaded:"imageLoaded"},standalone:!1,decls:11,vars:7,consts:[["imageInput",""],["noteModel","ngModel"],[1,"image-upload"],[1,"image-upload-container"],[1,"mat-h4",2,"margin","0"],[1,"icon"],["type","file","accept","image/*","autocomplete","off",3,"change"],["class","img-preview-container",4,"ngIf"],[1,"img-preview-container"],[4,"ngFor","ngForOf"],[1,"image-list"],[1,"img-preview",3,"ngStyle"],[1,"example-full-width"],["matInput","","taigaAllowedCharacters","","autocomplete","off",2,"height","22px",3,"ngModelChange","keydown.enter","ngModel","placeholder","maxLength"],["mat-icon-button","",3,"click"]],template:function(i,r){if(1&i){const a=e.RV6();e.j41(0,"div",2)(1,"label",3),e.nI1(2,"translate"),e.j41(3,"div",4),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"mat-icon",5),e.EFF(7,"add_photo_alternate"),e.k0s(),e.j41(8,"input",6,0),e.bIt("change",function(){e.eBV(a);const p=e.sdS(9);
1return e.Njj(r.processFile(p))}),e.k0s()()(),e.DNE(10,ee,2,1,"div",7)}2&i&&(e.R7$(),e.BMQ("aria-label",e.bMT(2,3,"ADDIMAGE")),e.R7$(3),e.SpI("",e.bMT(5,5,"ADDIMAGE")," "),e.R7$(6),e.Y8G("ngIf",r.imageFiles.length>0))},dependencies:[f.Sq,f.bT,f.B3,c.me,c.BC,c.vS,S.An,G.M,j.fg,I.j,I.b,J.S,m.D9],styles:["input[_ngcontent-%COMP%]{position:absolute;width:0;height:0}.image-upload-container[_ngcontent-%COMP%]:focus-within{outline-width:2px!important;outline-style:solid!important;outline-offset:3px!important}.image-upload-container[_ngcontent-%COMP%]{padding:4px;display:flex;flex-direction:row;justify-content:space-between;cursor:pointer}.image-upload[_ngcontent-%COMP%]{cursor:pointer}.img-preview-container[_ngcontent-%COMP%]   .img-preview[_ngcontent-%COMP%]{background:center center no-repeat;background-size:contain;height:60px;width:60px;padding:4px}.icon[_ngcontent-%COMP%]{cursor:pointer}.image-list[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:4px}"]})}}return n})();var w=o(1413),$=o(7468),O=o(7673),P=o(6977),ne=o(274),L=o(9437),B=o(44),ie=o(5565),N=o(9015),re=o(793),ae=o(666),M=o(5207),oe=o(1997),A=o(8834),se=o(7403),U=o(5951),le=o(1975),V=o(1843),ce=o(3013),de=o(1301),Y=o(6112);const pe=["desc"],k=n=>({invalidChars:n});function me(n,s){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.JRh(t.classDisplayName)}}function he(n,s){if(1&n){const t=e.RV6();e.j41(0,"button",14),e.bIt("click",function(){const r=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.removeSelectedGraphItemRelated(r))}),e.j41(1,"div",15)(2,"div",16)(3,"div")(4,"div",17)(5,"div"),e.EFF(6),e.k0s()()(),e.j41(7,"div",18),e.DNE(8,me,2,1,"div",7),e.k0s()(),e.j41(9,"mat-icon",19),e.EFF(10,"clear"),e.k0s()()()}if(2&n){const t=s.$implicit;e.AVh("full-width",t.classDisplayName&&t.displayName!==t.classDisplayName),e.R7$(6),e.E5c("",t.number," ",t.displayName," ",t.displayNameAddition,""),e.R7$(2),e.Y8G("ngIf",t.displayName!==t.classDisplayName)}}function ue(n,s){if(1&n&&(e.qex(0),e.j41(1,"div",12),e.DNE(2,he,11,6,"button",13),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.selectedGraphItemRelated)}}function ge(n,s){if(1&n){const t=e.RV6();e.j41(0,"button",21),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.removeSelectedGraphItemErrandConfigurationFaultDescription())}),e.j41(1,"div",15)(2,"div",16)(3,"div")(4,"div",17),e.EFF(5),e.k0s()(),e.j41(6,"div",18),e.nrm(7,"div"),e.k0s()(),e.j41(8,"mat-icon",19),e.EFF(9,"clear"),e.k0s()()()}if(2&n){const t=s.$implicit;e.R7$(5),e.SpI(" ",t.displayName," ")}}function fe(n,s){if(1&n&&(e.qex(0),e.j41(1,"div",12),e.DNE(2,ge,10,1,"button",20),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.selectedGraphItemErrandConfigurationFaultDescription)}}function _e(n,s){if(1&n){const t=e.RV6();e.j41(0,"mat-form-field",24)(1,"mat-label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"input",25),e.bIt("keyup",function(r){e.eBV(t);const a=e.XpG(3);return e.Njj(a.searchGraphItemRelated(r))}),e.k0s(),e.j41(5,"mat-icon",26),e.EFF(6,"search"),e.k0s()()}2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"SEARCH")))}function ve(n,s){if(1&n&&(e.qex(0),e.j41(1,"h2",22),e.EFF(2),e.k0s(),e.DNE(3,_e,7,3,"mat-form-field",23),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.JRh(t.guideText),e.R7$(),e.Y8G("ngIf",t.graphItemRelatedOriginal.length>=10)}}function Re(n,s){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.JRh(t.classDisplayName)}}function Ie(n,s){if(1&n){const t=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){const r=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.selectGraphItemRelated(r))}),e.j41(1,"div")(2,"div")(3,"div")(4,"div",17)(5,"div"),e.EFF(6),e.k0s()()(),e.j41(7,"div",18),e.DNE(8,Re,2,1,"div",7),e.k0s()()()()}if(2&n){const t=s.$implicit;e.AVh("full-width",t.classDisplayName&&t.displayName!==t.classDisplayName),e.R7$(6),e.E5c("",t.number," ",t.displayName," ",t.displayNameAddition,""),e.R7$(2),e.Y8G("ngIf",t.displayName!==t.classDisplayName)}}function Ee(n,s){if(1&n&&(e.qex(0),e.j41(1,"div",12),e.DNE(2,Ie,9,6,"button",27),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.graphItem.related)}}
1function Ce(n,s){if(1&n){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){const r=e.eBV(t).$implicit,a=e.XpG(4);return e.Njj(a.selectGraphItemErrandConfigurationFaultDescription(r))}),e.j41(1,"div")(2,"div")(3,"div")(4,"div",17),e.EFF(5),e.k0s()(),e.j41(6,"div",18),e.nrm(7,"div"),e.k0s()()()()}if(2&n){const t=s.$implicit;e.R7$(5),e.SpI(" ",t.displayName," ")}}function be(n,s){if(1&n&&(e.qex(0),e.j41(1,"div",12),e.DNE(2,Ce,8,1,"button",33),e.k0s(),e.bVm()),2&n){const t=e.XpG(3);e.R7$(2),e.Y8G("ngForOf",t.graphItemErrandConfigurationFault.descriptions)}}function Te(n,s){if(1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){let t;const i=e.XpG(3);e.R7$(),e.SpI(" ",e.i5U(2,1,"INVALIDCHARACTERS",e.eq3(4,k,null==(t=i.f.specificationText.getError("allowedCharacters"))?null:t.invalidChars))," ")}}function Fe(n,s){if(1&n&&(e.j41(0,"div",45),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.externalDescription," ")}}function xe(n,s){if(1&n){const t=e.RV6();e.j41(0,"mat-radio-button",42),e.bIt("click",function(){e.eBV(t);const r=e.XpG(5);return e.Njj(r.radioFocused())}),e.j41(1,"div",43),e.EFF(2),e.k0s(),e.DNE(3,Fe,2,1,"div",44),e.k0s()}if(2&n){const t=s.$implicit;e.Y8G("value",t.id),e.R7$(2),e.SpI(" ",t.externalDisplayName?t.externalDisplayName:t.displayName," "),e.R7$(),e.Y8G("ngIf",t.externalDescription)}}function ke(n,s){1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"INPUTREQUIRED")," "))}function ye(n,s){if(1&n&&(e.j41(0,"div",30)(1,"div",39),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"mat-radio-group",40),e.nI1(5,"translate"),e.DNE(6,xe,4,3,"mat-radio-button",41),e.k0s(),e.DNE(7,ke,3,3,"mat-error",7),e.k0s()),2&n){const t=e.XpG(4);e.R7$(2),e.JRh(e.bMT(3,5,"USEMAINKEY")),e.R7$(2),e.FS9("eventLabel",e.bMT(5,7,"USEMAINKEY")),e.FS9("eventCategory",t.category),e.R7$(2),e.Y8G("ngForOf",t.mainKeyChoices),e.R7$(),e.Y8G("ngIf",t.f.keyChoice.invalid)}}function Se(n,s){if(1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){let t;const i=e.XpG(5);e.R7$(),e.SpI(" ",e.i5U(2,1,"INVALIDCHARACTERS",e.eq3(4,k,null==(t=i.f.keyNote.getError("allowedCharacters"))?null:t.invalidChars))," ")}}function Oe(n,s){if(1&n&&(e.j41(0,"mat-form-field",30),e.nrm(1,"textarea",46),e.nI1(2,"translate"),e.DNE(3,Se,3,6,"mat-error",7),e.j41(4,"mat-hint"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()),2&n){const t=e.XpG(4);e.R7$(),e.FS9("placeholder",e.bMT(2,3,"KEYNOTE")),e.R7$(2),e.Y8G("ngIf",t.f.keyNote.hasError("allowedCharacters")),e.R7$(2),e.SpI("",e.bMT(6,5,"KEYNOTEHINT")," (max 256)")}}function Ne(n,s){1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"INPUTREQUIRED")," "))}function Me(n,s){if(1&n){const t=e.RV6();e.j41(0,"div",47)(1,"div",48),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"mat-radio-group",49),e.nI1(5,"translate"),e.j41(6,"mat-radio-button",50),e.bIt("click",function(){e.eBV(t);const r=e.XpG(4);return e.Njj(r.radioFocused())}),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"mat-radio-button",51),e.bIt("click",function(){e.eBV(t);const r=e.XpG(4);return e.Njj(r.radioFocused())}),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.DNE(12,Ne,3,3,"mat-error",7),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(2),e.JRh(e.bMT(3,6,"PETQUESTION")),e.R7$(2),e.FS9("eventLabel",e.bMT(5,8,"PETQUESTION")),e.FS9("eventCategory",t.category),e.R7$(3),e.SpI("",e.bMT(8,10,"YES")," "),e.R7$(3),e.SpI("",e.bMT(11,12,"NO")," "),e.R7$(2),e.Y8G("ngIf",t.f.petChoice.invalid)}}
1function Ge(n,s){if(1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){let t;const i=e.XpG(5);e.R7$(),e.SpI(" ",e.i5U(2,1,"INVALIDCHARACTERS",e.eq3(4,k,null==(t=i.f.petText.getError("allowedCharacters"))?null:t.invalidChars))," ")}}function je(n,s){if(1&n&&(e.j41(0,"mat-form-field",30),e.nrm(1,"textarea",52),e.nI1(2,"translate"),e.j41(3,"mat-error"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.DNE(6,Ge,3,6,"mat-error",7),e.j41(7,"mat-hint"),e.EFF(8,"(max 128)"),e.k0s()()),2&n){const t=e.XpG(4);e.R7$(),e.FS9("placeholder",e.bMT(2,4,"PETIFYES")),e.Y8G("errorStateMatcher",t.matcher),e.R7$(3),e.SpI(" ",e.bMT(5,6,"INPUTREQUIRED")," "),e.R7$(2),e.Y8G("ngIf",t.f.petText.hasError("allowedCharacters"))}}function De(n,s){if(1&n&&(e.j41(0,"div",35)(1,"h2",36),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,ye,8,9,"div",37)(5,Oe,7,7,"mat-form-field",37)(6,Me,13,14,"div",38)(7,je,9,8,"mat-form-field",37),e.k0s()),2&n){const t=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,5,"OTHERINFO")),e.R7$(2),e.Y8G("ngIf",t.showKeyInfo),e.R7$(),e.Y8G("ngIf",t.showKeyInfo),e.R7$(),e.Y8G("ngIf",t.showPetInfo),e.R7$(),e.Y8G("ngIf",t.showPetInfo&&"true"===t.f.petChoice.value)}}function we(n,s){if(1&n&&(e.qex(0),e.j41(1,"h2",29),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,be,3,1,"ng-container",7),e.j41(5,"mat-form-field",30),e.nrm(6,"textarea",31,0),e.nI1(8,"translate"),e.DNE(9,Te,3,6,"mat-error",7),e.j41(10,"mat-hint"),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.DNE(13,De,8,7,"div",32),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,6,"ERRORREPORTDESCRIBEERROR")),e.R7$(2),e.Y8G("ngIf",0===(null==t.selectedGraphItemErrandConfigurationFaultDescription?null:t.selectedGraphItemErrandConfigurationFaultDescription.length)&&t.graphItemErrandConfigurationFault&&t.graphItemErrandConfigurationFault.descriptions.length>0),e.R7$(2),e.FS9("placeholder",e.bMT(8,8,"DESCRIPTION")),e.R7$(3),e.Y8G("ngIf",t.f.specificationText.hasError("allowedCharacters")),e.R7$(2),e.SpI("",e.bMT(12,10,"EXTRAERRORDESCRIPTION")," (max 512)"),e.R7$(2),e.Y8G("ngIf",t.showExtraInfo&&(t.showKeyInfo||t.showPetInfo))}}
1function $e(n,s){if(1&n&&(e.j41(0,"div"),e.DNE(1,ue,3,1,"ng-container",7)(2,fe,3,1,"ng-container",7)(3,ve,4,2,"ng-container",7)(4,Ee,3,1,"ng-container",7)(5,we,14,12,"ng-container",7),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.selectedGraphItemRelated&&t.selectedGraphItemRelated.length>0),e.R7$(),e.Y8G("ngIf",t.selectedGraphItemErrandConfigurationFaultDescription&&t.selectedGraphItemErrandConfigurationFaultDescription.length>0),e.R7$(),e.Y8G("ngIf",t.graphItemRelatedOriginal&&t.graphItemRelatedOriginal.length>0),e.R7$(),e.Y8G("ngIf",t.graphItem&&t.graphItem.related.length>0),e.R7$(),e.Y8G("ngIf",t.stepOneDone)}}function Pe(n,s){if(1&n){const t=e.RV6();e.j41(0,"div",53)(1,"div"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"mat-divider",54),e.j41(5,"taiga-image-upload",55),e.bIt("imageLoaded",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.imageLoaded())}),e.k0s(),e.nrm(6,"mat-divider",56),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("ngClass",t.orderComplete?"hide":""),e.R7$(2),e.JRh(e.bMT(3,4,"HEADLINEPICTURE")),e.R7$(2),e.Y8G("inset",!0),e.R7$(2),e.Y8G("inset",!0)}}function Le(n,s){1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"INPUTREQUIRED")," "))}function Be(n,s){if(1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){let t;const i=e.XpG(2);e.R7$(),e.SpI(" ",e.i5U(2,1,"INVALIDCHARACTERS",e.eq3(4,k,null==(t=i.f.contactPerson.getError("allowedCharacters"))?null:t.invalidChars))," ")}}function Ae(n,s){1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"INPUTREQUIRED")," "))}function Ue(n,s){1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"INVALIDPHONENUMBER")," "))}function Ve(n,s){if(1&n&&(e.j41(0,"div")(1,"div"),e.nrm(2,"taiga-markdown",57),e.nI1(3,"translate"),e.k0s(),e.j41(4,"mat-form-field",30)(5,"mat-label"),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"input",58),e.DNE(9,Le,3,3,"mat-error",7)(10,Be,3,6,"mat-error",7),e.k0s(),e.j41(11,"mat-form-field",30)(12,"mat-label"),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.nrm(15,"input",59),e.DNE(16,Ae,3,3,"mat-error",7)(17,Ue,3,3,"mat-error",7),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.Y8G("markdown",e.bMT(3,7,"CHECKPERSONINFO")),e.R7$(4),e.JRh(e.bMT(7,9,"CONTACTPERSON")),e.R7$(3),e.Y8G("ngIf",t.f.contactPerson.invalid),e.R7$(),e.Y8G("ngIf",t.f.contactPerson.hasError("allowedCharacters")),e.R7$(3),e.JRh(e.bMT(14,11,"CONTACTPERSONPHONENUMBER")),e.R7$(3),e.Y8G("ngIf",t.f.phoneNumber.hasError("required")),e.R7$(),e.Y8G("ngIf",!t.f.phoneNumber.hasError("required"))}}var C=function(n){return n[n.ReportError=0]="ReportError",n[n.ReportContactInfo=1]="ReportContactInfo",n}(C||{});let X=(()=>{class n{static{this.spacesIndex=0}static{this.equipmentsIndex=1}static{this.componentsIndex=2}static{this.errorDescriptionsIndex=3}get f(){return this.errorReportForm.controls}constructor(t,i,r,a,l,p,_,h,Rt,It){this.changeDetectorRef=t,this.data=i,this.dialog=r,this.formBuilder=a,this.errorReportService=l,this.rightSheetRef=p,this.myInfoService=_,this.translate=h,this.snackBarService=Rt,this.clientConfigurationService=It,this.componentDestroyed=new w.B,this.matcher=new v.E,this.objects=i.objects,this.preSelectNodeId=i.preSelectNodeId,this.state=C.ReportError,this.category=this.translate.instant("ERRORREPORT"),this.graphItem=i.graphItem,this.graphItemRelatedOriginal=i.graphItem?.related,this.selectedGraphItemRelated=[],this.selectedGraphItemErrandConfigurationFaultDescription=[],this.guideText=this.translate.instant("ERRORREPORTQUESTION")}onPopState(){this.cancel()}ngOnInit(){this.rightSheetRef.disableClose=!0,this.buildForm(),this.rightSheetRef.backdropClick().subscribe(()=>{this.cancel()}),this.f.petChoice.valueChanges.pipe((0,P.Q)(this.componentDestroyed)).subscribe(t=>{"true"===t?(this.f.petText.enable(),this.f.petText.setValidators(c.k0.required),this.f.petText.markAsTouched()):(this.f.petText.setValue(null),this.f.petText.disable(),this.f.petText.setValidators(null)),this.f.petText.updateValueAndValidity()}),this.f.contactPerson.disable(),this.f.phoneNumber.disable(),this.clientConfigurationService.getClientConfigurationFeatures().pipe((0,ne.H)(t=>t?.graphQL?.enabled?(this.useGraphQL=!0,(0,$.p)([this.myInfoService.fetchActorsCommunications(),(0,O.of)(null)])):(0,$.p)([(0,O.of)(null),this.myInfoService.getNameAndContactInfo()]))).subscribe(t=>{this.useGraphQL?(console.log(t[0]),this.customerInfoGQL=t[0]):(console.log(t[1]),this.customerInfo=t[1])})}ngOnDestroy(){this.componentDestroyed.next(!0),this.componentDestroyed.complete(),this.changeDetectorRef&&this.changeDetectorRef.detach()}setContactInfo(){if(this.customerInfo&&this.customerInfo.Kundinformation&&(this.f.contactPerson.setValue(this.customerInfo.Kundinformation.F\u00f6rnamn+" "+(this.customerInfo.Kundinformation.Efternamn?this.customerInfo.Kundinformation.Efternamn:"")),this.f.contactPerson.markAsTouched()),this.customerInfo&&this.customerInfo.Kontaktuppgifter){const t=this.customerInfo.Kontaktuppgifter.f
1ind(i=>"telefon.mobil"===i.KontaktuppgiftsTyp.Systemnamn);t&&(this.f.phoneNumber.setValue(t.V\u00e4rde),this.f.phoneNumber.markAsTouched())}}setContactInfoGQL(){if(this.customerInfoGQL){const t=this.customerInfoGQL?.data?.actors?.nodes[0]?.identityName??"",i=this.customerInfoGQL?.data?.actors?.nodes[0]?.identityLastName??"",r=this.customerInfoGQL?.data?.actors?.nodes[0]?.communications?.nodes?.find(a=>"mobile"===a.type.guid)?.value??"";this.f.contactPerson.setValue(t+" "+i),this.f.contactPerson.markAsTouched(),r&&(this.f.phoneNumber.setValue(r),this.f.phoneNumber.markAsTouched())}}storePendingErrand(t,i,r,a,l){this.pendingErrand||(this.pendingErrand={Avser:t,\u00c4rendeTyp:i,Anv\u00e4ndningTyp:{Referensnamn:r},Husdjur:a,Rader:[],\u00c4rendeK\u00e4llaSystemnamn:l})}storePendingRow(t,i,r,a,l,p,_){this.pendingErrand.Rader.push({Avser:t,Beskrivning:i,NyckelhanteringId:r,Nyckelhanteringsnotering:a,FelbeskrivningstypId:l,Specifikation:p,Media:_})}createErrorReport(){return this.pendingErrand.Husdjur=null!=this.pendingErrand.Husdjur&&0===this.pendingErrand.Husdjur.length?null:this.pendingErrand.Husdjur,this.pendingErrand.Spara\u00c4rendeKontakt={Visningsnamn:this.f.contactPerson.value,Mobil:this.f.phoneNumber.value},this.pendingErrand}showContactInfo(){this.f.keyChoice.disable(),this.f.keyNote.disable(),this.f.petChoice.disable(),this.f.petText.disable(),this.f.specificationText.disable(),this.orderComplete=!0,this.f.contactPerson.enable(),this.f.phoneNumber.enable(),this.useGraphQL?this.setContactInfoGQL():this.setContactInfo()}hideContactInfo(){this.showExtraInfo&&this.togglePetAndKeyFields(),this.f.specificationText.enable(),this.orderComplete=!1,this.f.contactPerson.disable(),this.f.phoneNumber.disable(),this.state=C.ReportError,this.pendingErrand=null}removeBase64Marker(t){const r=t.indexOf(";base64,")+8;return t.substring(r)}stateReportError(){this.pendingErrand||this.storePendingErrand(this.selectedGraphItemRelated[0].path,"Order","Felanm\xe4lan","true"===this.f.petChoice.value?this.f.petText.value:null,"MinaSidor"),this.showPetInfo&&(this.pendingErrand.Husdjur="true"===this.f.petChoice.value?this.f.petText.value:null);const t=[];if(this.imageUpload.imageFiles)for(const p of this.imageUpload.imageFiles){const h={MediaBase64Str:this.removeBase64Marker(p.src),Notering:p.note};t.push(h)}const i=this.selectedGraphItemRelated.indexOf(this.selectedGraphItemRelated.find(p=>"OTHER"===p.dataType));i&&this.selectedGraphItemRelated.splice(i,i);const a=this.selectedGraphItemRelated[this.selectedGraphItemRelated?.length-1].path,l=this.selectedGraphItemErrandConfigurationFaultDescription[0]?.id;this.storePendingRow(a,"",this.showKeyInfo?this.f.keyChoice.value:null,this.showKeyInfo?this.f.keyNote.value:null,l?parseInt(l,null):null,this.f.specificationText.value,t.length>0?t:null),this.stateContactInfo()}stateContactInfo(){this.showContactInfo(),this.state=C.ReportContactInfo}ok(){switch(this.state){case C.ReportError:this.stateReportError();break;case C.ReportContactInfo:const t=this.createErrorReport();this.disableOkButton=!0,this.errorReportService.postErrorReport(t).pipe((0,L.W)(i=>{throw this.disableOkButton=!1,i})).subscribe(i=>{i&&null!=i.\u00c4rendeId?(this.snackBarService.success("Felanm\xe4lan inrapporterad!"),this.rightSheetRef.dismiss("SUCCESS")):this.snackBarService.error("Felanm\xe4lan misslyckades!"),this.disableOkButton=!1})}}cancel(){this.graphItemRelatedOriginal&&this.graphItemRelatedOriginal.length>0&&(this.graphItem.related=this.graphItemRelatedOriginal),this.stepOneDone?this.orderComplete?this.hideContactInfo():this.dialog.open(d.w,{data:{heading:null,text:this.translate.instant("CANCELCONFIRM"),dialogChoices:z.$.YesNo},scrollStrategy:new B.N,ariaLabel:this.translate.instant("CANCELCONFIRM")}).afterClosed().subscribe(i=>{if("cancel"!==i){if("no"===i)return;"yes"===i&&this.rightSheetRef.dismiss("cancel")}}):this.rightSheetRef.dismiss("cancel")}buildForm(){if(this.errorReportForm=this.formBuilder.group({contactPerson:[null,[c.k0.required,(0,E.f)()]],phoneNumber:[null,[c.k0.required]],keyChoice:["",[c.k0.required]],keyNote:["",[(0,E.f)()]],petChoice:["",[c.k0.required]],petText:["",[(0,E.f)()]],specificationText:["",[(0,E.f)()]],imageInputControl:[""]}),this.preSelectNodeId){const t=this.graphItem?.related.find(i=>i.path===this.preSelectNodeId);this.selectGraphItemRelated(t)}}reset(t){switch(t){case n.spacesIndex:this.spaces=null,this.f.spacesControl.setValue(null);break;case n.equipmentsIndex:this.equipments=null,this.f.equipmentsControl.setValue(null);break;case n.componentsIndex:this.components=null,this.f.componentsControl.setValue(null);break;case n.errorDescriptionsIndex:this.errorDescriptions=null,this.f.errorDescriptionsControl.setValue(null)}}imageLoaded(){this.changeDetectorRef.markForCheck()}getObjectType(t){let i="";return t?(i=t.ObjektTypBeteckning?t.ObjektTypBeteckning:t.Typbeteckning?t.Typbeteckning:t.Typ,i+" "):i}radioFocused(){this.descriptionInput&&this.descriptionInput.nativeElement&&(this.descriptionInput.nativeElement.focus(),this.descriptionInput.nativeElement.blur())}getOkButtonText(){return this.translate.instant(this.orderComplete?"SEND":"OK")}selectGraphItemRelated(t){if(!this.disableButtons){this.disableButtons=!0,this.graphItemRelatedOriginal&&this.graphItemRelatedOriginal.length>0&&(this.graphItem.related=this.graphItemRelatedOriginal);const i={displayName:this.translate.instant("OTHER"),dataType:"OTHER"};this.stepOneDone=!1,"OTHER"!==t.dataType?this.errorReportService.getGraphItem(t.path,0===this.selectedGraphItemRelated.length?"nodeClass":null).subscribe(r=>{this.graphItem=r,this.graphItemRelatedOriginal=r?.related,this.selectedGraphItemRelated.push(t),this.graphItem.head&&1===this.selectedGraphItemRelated?.length&&this.errorReportService.getGraphItemErrandConfigurationEntry(this.graphItem.path).subscribe(a=>{this.showExtraInfo=a?.keys?.editable||a?.pets?.editable,this.showPetInfo=a?.pets?.editable,this.showKeyInfo=a?.keys?.editable&&a.keys.types?.length>0,this.mainKeyChoices=a?.keys?.types,this.showExtraInfo?this.togglePetAndKeyFields():(this.f.petChoice.disable(),this.f.petText.disable(),this.f.keyChoice.disable(),this.f.keyNote.disable()),this.changeDetectorRef.detectChanges(),this.disableButtons=!1}),this.graphItem.related.length>0?this.graphItem.related.find(a=>"OTHER"===a.dataType)||this.graphItem.related.push(i):this.errorReportService.getGraphItemErrandConfigurationFault(t.path).subscribe(a=>{this.stepOneDone=!0,this.graphItemErrandConfigurationFault=a,this.changeDetectorRef.detectChanges(),this.disableButtons=!1}),this.changeDetectorRef.detectChanges(),this.disableButtons=!1,document.getElementById("guide
1-text")?.scrollIntoView()}):this.errorReportService.getGraphItemErrandConfigurationFault(this.graphItem.path).subscribe(r=>{this.graphItemErrandConfigurationFault=r,this.graphItem=null,this.graphItemRelatedOriginal=null,this.selectedGraphItemRelated.push(i),this.stepOneDone=!0,this.changeDetectorRef.detectChanges(),this.disableButtons=!1})}}togglePetAndKeyFields(){this.showPetInfo?(this.f.petChoice.enable(),this.f.petText.enable()):(this.f.petChoice.disable(),this.f.petText.disable()),this.showKeyInfo?(this.f.keyChoice.enable(),this.f.keyNote.enable()):(this.f.keyChoice.disable(),this.f.keyNote.disable())}removeSelectedGraphItemRelated(t){this.graphItemRelatedOriginal&&this.graphItemRelatedOriginal.length>0&&(this.graphItem.related=this.graphItemRelatedOriginal),this.stepOneDone=!1,this.selectedGraphItemErrandConfigurationFaultDescription=[],this.graphItemErrandConfigurationFault=null;const i=this.selectedGraphItemRelated.indexOf(t);this.selectedGraphItemRelated.splice(i);const r=this.selectedGraphItemRelated[this.selectedGraphItemRelated?.length-1];this.errorReportService.getGraphItem(r?.path,1===this.selectedGraphItemRelated?.length?"nodeClass":null).subscribe(a=>{this.graphItem=a,this.graphItemRelatedOriginal=a?.related,this.graphItem&&0===this.graphItem.related?.length&&(this.allGraphItemRelatedFetched=!0)}),r?.path||(this.showExtraInfo=!1)}searchGraphItemRelated(t){const i=t.target.value.toLowerCase();this.graphItem.related=this.graphItemRelatedOriginal.filter(r=>!!(r?.displayName?.toLowerCase().includes(i)||r?.classDisplayName?.toLowerCase().includes(i)||r?.displayNameAddition?.toLowerCase().includes(i)||r?.number?.toLowerCase().includes(i)||(r?.number?.toLowerCase()+" "+r?.displayName?.toLowerCase()+" "+r?.displayNameAddition?.toLowerCase()).includes(i)))}selectGraphItemErrandConfigurationFaultDescription(t){this.selectedGraphItemErrandConfigurationFaultDescription.push(t),this.changeDetectorRef.detectChanges()}removeSelectedGraphItemErrandConfigurationFaultDescription(){this.selectedGraphItemErrandConfigurationFaultDescription=[],this.changeDetectorRef.detectChanges()}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(e.gRc),e.rXU(b.Zu),e.rXU(ie.j),e.rXU(c.ze),e.rXU(N.Y),e.rXU(b.rH),e.rXU(re.k),e.rXU(m.c$),e.rXU(g.z),e.rXU(ae.t))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-create-error-report"]],viewQuery:function(i,r){if(1&i&&(e.GBs(D,5),e.GBs(pe,5)),2&i){let a;e.mGM(a=e.lsd())&&(r.imageUpload=a.first),e.mGM(a=e.lsd())&&(r.descriptionInput=a.first)}},hostBindings:function(i,r){1&i&&e.bIt("popstate",function(l){return r.onPopState(l)},!1,e.tSv)},standalone:!1,decls:20,vars:23,consts:[["desc",""],[2,"display","flex","flex-direction","row","justify-content","space-between","align-items","center","margin-right","14px"],[3,"text"],["matBadgePosition","above after",3,"matBadge"],[2,"margin-bottom","10px"],["mat-button","","color","accent","routerLink","/mypages/error-report","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_VisaAllaFelanm\xe4lningar",2,"padding","0",3,"click"],[3,"formGroup"],[4,"ngIf"],["style","margin-top: 12px;",3,"ngClass",4,"ngIf"],[1,"button-action-row"],["mat-button","","color","primary","taigaEventTracker","","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_OK",1,"btn-ok",3,"clicked","spin","disabled","eventLabel","eventCategory","text"],["mat-raised-button","","taigaEventTracker","","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_Avbryt",3,"click","eventLabel","eventCategory"],[1,"graph-item-card-container"],["mat-stroked-button","","class","graph-item-card mat-elevation-z2","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_ValtKort",3,"full-width","click",4,"ngFor","ngForOf"],["mat-stroked-button","","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_ValtKort",1,"graph-item-card","mat-elevation-z2",3,"click"],[1,"graph-item-card-title-container"],[1,"width-90"],[1,"graph-item-card-title"],[1,"graph-item-card-subtitle"],["color","warn"],["mat-stroked-button","","class","graph-item-card mat-elevation-z2","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_ValtProblem",3,"click",4,"ngFor","ngForOf"],["mat-stroked-button","","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_V
1altProblem",1,"graph-item-card","mat-elevation-z2",3,"click"],["id","guide-text",1,"mat-h2"],["class","full-width",4,"ngIf"],[1,"full-width"],["matInput","","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_S\xf6k","autocomplete","off",3,"keyup"],["matSuffix",""],["mat-stroked-button","","class","graph-item-card mat-elevation-z2","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_Kort",3,"full-width","click",4,"ngFor","ngForOf"],["mat-stroked-button","","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_Kort",1,"graph-item-card","mat-elevation-z2",3,"click"],["id","desc-title",1,"mat-h2","describe-error-title"],[1,"form-field"],["type","text","matInput","","maxlength","512","cdkTextareaAutosize","","formControlName","specificationText","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_Fritext","autocomplete","off",3,"placeholder"],["style","margin-top: 12px;",4,"ngIf"],["mat-stroked-button","","class","graph-item-card mat-elevation-z2","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_Problem",3,"click",4,"ngFor","ngForOf"],["mat-stroked-button","","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_Problem",1,"graph-item-card","mat-elevation-z2",3,"click"],[2,"margin-top","12px"],[1,"mat-h2"],["class","form-field",4,"ngIf"],["class","form-field","style","margin-top: 12px;",4,"ngIf"],["id","main-key-radio-group-label"],["aria-labelledby","main-key-radio-group-label","formControlName","keyChoice","required","","taigaEventTracker","",1,"radio-group",3,"eventLabel","eventCategory"],["class","radio-button","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_Nyckelval",3,"value","click",4,"ngFor","ngForOf"],["data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_Nyckelval",1,"radio-button",3,"click","value"],[1,"radio-button-display-name"],["class","radio-button-description",4,"ngIf"],[1,"radio-button-description"],["type","text","matInput","","maxlength","256","formControlName","keyNote","cdkTextareaAutosize","","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_Nyckelnotering","autocomplete","off",3,"placeholder"],[1,"form-field",2,"margin-top","12px"],["id","pet-group-label"],["aria-labelledby","pet-group-label","formControlName","petChoice","required","","taigaEventTracker","",1,"radio-group",3,"eventLabel","eventCategory"],["value","true","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_HusdjurJa",1,"radio-button",3,"click"],["value","false","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_HusdjurNej",1,"radio-button",3,"click"],["type","text","matInput","","maxlength","128","formControlName","petText","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_Husdjurnotering","cdkTextareaAutosize","","autocomplete","off",3,"errorStateMatcher","placeholder"],[2,"margin-top","12px",3,"ngClass"],[2,"margin-top","8px",3,"inset"],[3,"imageLoaded"],[3,"inset"],[3,"markdown"],["matInput","","maxlength","100","formControlName","contactPerson","required","","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_Kontaktperson","autocomplete","given-name"],["matInput","","maxlength","20","type","tel","pattern","[0-9 +\\-]+","formControlName","phoneNumber","required","","data-mom-test","MinaSidor_Felanm\xe4lan_L\xe4ggTill_KontaktpersonTelnr","autocomplete","tel"]],template:function(i,r){1&i&&(e.j41(0,"div",1),e.nrm(1,"taiga-medium-header",2),e.nI1(2,"translate"),e.j41(3,"mat-icon",3),e.EFF(4," build"),e.k0s()(),e.j41(5,"div",4)(6,"a",5),e.bIt("click",function(){return r.cancel()}),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"form",6),e.DNE(10,$e,6,5,"div",7)(11,Pe,7,6,"div",8)(12,Ve,18,13,"div",7),e.k0s(),e.nrm(13,"br"),e.j41(14,"div",9)(15,"taiga-loading-button",10),e.bIt("clicked",function(){return r.ok()}),e.k0s(),e.j41(16,"button",11),e.nI1(17,"translate"),e.bIt("click",function(){return r.cancel()}),e.EFF(18),e.nI1(19,"translate"),e.k0s()()),2&i&&(e.R7$(),e.Y8G("text",e.bMT(2,15,"ERRORREPORT")),e.R7$(2),e.Y8G("matBadge",r.pendingErrand?r.pendingErrand.Rader.length.toString():"0"),e.R7$(4),e.JRh(e.bMT(8,17,"SHOWALLERRORREPORTS")),e.R7$(2),e.Y8G("formGroup",r.errorReportForm),e.R7$(),e.Y8G("ngIf",!r.orderComplete),e.R7$(),e.Y8G("ngIf",r.stepOneDone),e.R7$(),e.Y8G("ngIf",r.orderComplete),e.R7$(3),e.FS9("eventLabel",r.getOkButtonText()),e.FS9("eventCategory",r.category),e.Y8G("spin",r.disableOkButton)("disabled",r.disableOkButton||!r.stepOneDone||!r.errorReportForm.valid||!r.selectedGraphItemRelated||0===r.selectedGraphItemRelated.length)("text",r.getOkButtonText()),e.R7$(),e.FS9("eventLabel",e.bMT(17,19,"CANCEL")),e.FS9("eventCategory",r.category),e.R7$(2),e.JRh(e.bMT(19,21,"CANCEL")))},dependencies:[M.Wk,D,oe.q,S.An,A.It,A.$z,j.fg,I.j,I.M,I.c,I.b,I.g,se.xb,U.VT,U._g,le.k,f.YU,f.Sq,f.bT,c.qT,c.me,c.BC,c.cb,c.YS,c.t
1U,c.R_,c.j4,c.JD,V.u,ce.o,de.A,Y.N,m.D9],styles:["[_nghost-%COMP%]{display:block;padding:15px;padding-top:calc(15px + env(safe-area-inset-top));padding-bottom:calc(15px + env(safe-area-inset-bottom))}mat-divider.mat-divider-inset[_ngcontent-%COMP%]{margin-left:0}.form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{margin-bottom:4px;margin-right:12px;width:100%}.radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}.button-action-row[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-end;flex-direction:row;align-items:flex-end}.btn-ok[_ngcontent-%COMP%]{margin-right:5px}.hide[_ngcontent-%COMP%]{display:none}.graph-item-card[_ngcontent-%COMP%]{margin-bottom:8px;margin-left:0;margin-right:5px;display:inline-block;height:inherit}.graph-item-card-title[_ngcontent-%COMP%]{font-size:.8125rem;font-weight:500;text-align:start;line-height:1.25rem;white-space:normal;margin-top:8px;margin-bottom:8px}.graph-item-card-title-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.graph-item-card-subtitle[_ngcontent-%COMP%]{font-size:.8125rem;text-align:start;line-height:1.25rem;white-space:normal;margin-top:8px;margin-bottom:8px}.full-width[_ngcontent-%COMP%]{width:100%}.graph-item-card-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.describe-error-title[_ngcontent-%COMP%], #guide-text[_ngcontent-%COMP%]{margin-top:20px}.radio-button-display-name[_ngcontent-%COMP%]{white-space:normal;word-break:break-word;font-weight:600}.width-90[_ngcontent-%COMP%]{width:90%}.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.radio-button[_ngcontent-%COMP%]{margin-bottom:5px}.radio-button-display-name[_ngcontent-%COMP%], .radio-button-description[_ngcontent-%COMP%]{white-space:normal;word-break:break-word}"]})}}return n})();var Ye=o(5974),Xe=o(7586),He=o.n(Xe),Ke=o(5245),H=o(2155),Qe=o(2043),ze=o(1580),Je=o(4959),We=o(5665),y=o(5596),T=o(9454),K=o(6471);function Ze(n,s){if(1&n&&(e.j41(0,"mat-card-subtitle"),e.nrm(1,"taiga-markdown",8),e.nI1(2,"translate"),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"translate"),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("markdown",e.bMT(2,5,"ERRORREPORTHELP")),e.R7$(2),e.LHq(" ",e.bMT(4,7,"SHOWS")," ",t.visibleRows.length," / ",t.errandRows.length," ",e.bMT(5,9,"PCS"),". ")}}function qe(n,s){if(1&n){const t=e.RV6();e.j41(0,"mat-chip-option",11),e.bIt("click",function(){const r=e.eBV(t).$implicit,a=e.XpG(2);return r.selected=!r.selected,e.Njj(a.changeSelected(a.chips))}),e.EFF(1),e.k0s()}if(2&n){const t=s.$implicit;e.Y8G("selected",t.selected),e.R7$(),e.SpI(" ",t.chipText," ")}}function et(n,s){if(1&n&&(e.j41(0,"mat-chip-listbox",9),e.nI1(1,"translate"),e.DNE(2,qe,2,2,"mat-chip-option",10),e.k0s()),2&n){const t=e.XpG();e.Y8G("selectable",!0),e.BMQ("aria-label",e.bMT(1,3,"SELECTOBJECTTYPE")),e.R7$(2),e.Y8G("ngForOf",t.chips)}}function tt(n,s){if(1&n&&e.nrm(0,"taiga-pill-badge",17),2&n){const t=e.XpG().$implicit,i=e.XpG();e.HbH(i.getStatusClass(t.Status)),e.FS9("text",t.Status.Beteckning)}}function nt(n,s){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=s.$implicit;e.R7$(),e.SpI(" ",t," ")}}function it(n,s){1&n&&(e.j41(0,"div")(1,"mat-panel-description")(2,"mat-icon"),e.nI1(3,"translate"),e.EFF(4,"attachment"),e.k0s()()()),2&n&&(e.R7$(2),e.BMQ("aria-label",e.bMT(3,1,"ATTACHMENTSAREAVAIABLE")))}function rt(n,s){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.Lme(" ",e.bMT(2,2,"ERRORDESCRIPTION"),": ",t.Felbeskrivning," ")}}function at(n,s){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",t.Specifikation," ")}}function ot(n,s){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ATTACHEDIMAGES"),": "))}function st(n,s){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",21),e.nI1(2,"translate"),e.bIt("click",function(){const r=e.eBV(t).$implicit,a=e.XpG(2).$implicit,l=e.XpG();return e.Njj(l.downloadImage(a.parentId,a.Id,r.Id))}),e.j41(3,"button",22),e.nI1(4,"translate"),e.j41(5,"mat-icon"),e.EFF(6,"photo"),e.k0s()(),e.j41(7,"span"),e.EFF(8),e.k0s()()()}if(2&n){const t=s.$implicit,i=e.XpG(3);e.R7$(),e.FS9("eventLabel",e.bMT(2,4,"ATTACHEDIMAGES")),e.FS9("eventCategory",i.category),e.R7$(2),e.BMQ("aria-label",e.bMT(4,6,"IMAGE")),e.R7$(5),e.SpI("",t.Id,".jpg")}}
1function lt(n,s){if(1&n&&(e.j41(0,"mat-accordion",18)(1,"mat-expansion-panel",19)(2,"mat-expansion-panel-header",20),e.nI1(3,"translate"),e.nI1(4,"translate"),e.j41(5,"mat-panel-title"),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.DNE(8,it,5,3,"div",5),e.k0s(),e.DNE(9,rt,3,4,"div",5)(10,at,2,1,"div",5),e.nrm(11,"br"),e.DNE(12,ot,3,3,"div",5)(13,st,9,8,"div",7),e.k0s()()),2&n){const t=e.XpG().$implicit,i=e.XpG();e.R7$(2),e.FS9("eventLabel",e.bMT(3,9,"DESCRIPTION")),e.FS9("eventCategory",i.category),e.BMQ("aria-label",e.bMT(4,11,"OPENDESCRIPTION")),e.R7$(4),e.SpI(" ",e.bMT(7,13,"DESCRIPTION")," "),e.R7$(2),e.Y8G("ngIf",(null==t.Media?null:t.Media.length)>0),e.R7$(),e.Y8G("ngIf",t.Felbeskrivning),e.R7$(),e.Y8G("ngIf",t.Specifikation),e.R7$(2),e.Y8G("ngIf",(null==t.Media?null:t.Media.length)>0),e.R7$(),e.Y8G("ngForOf",t.Media)}}function ct(n,s){if(1&n&&(e.j41(0,"div")(1,"mat-card",0)(2,"mat-card-title")(3,"div",12),e.EFF(4),e.j41(5,"div",13),e.EFF(6),e.nI1(7,"translate"),e.k0s()()(),e.j41(8,"mat-card-subtitle"),e.EFF(9),e.k0s(),e.j41(10,"mat-card-content")(11,"div",1)(12,"label",14),e.EFF(13),e.k0s(),e.DNE(14,tt,1,4,"taiga-pill-badge",15),e.k0s(),e.nrm(15,"br"),e.DNE(16,nt,2,1,"div",7)(17,lt,14,15,"mat-accordion",16),e.k0s()()()),2&n){const t=s.$implicit,i=e.XpG();e.R7$(4),e.SpI(" Order ",t.\u00c4rendeNummer," "),e.R7$(2),e.Lme("",e.bMT(7,8,"ARRIVED")," ",i.formatDate(t.Inkommen),""),e.R7$(3),e.SpI(" ",t.Huvudentitet," "),e.R7$(4),e.JRh(i.getNodeTypeText(t)),e.R7$(),e.Y8G("ngIf",null==t||null==t.Status?null:t.Status.Beteckning),e.R7$(2),e.Y8G("ngForOf",null==t||null==t.Avser||null==t.Avser.Visningstext?null:t.Avser.Visningstext.split("/")),e.R7$(),e.Y8G("ngIf",t.Felbeskrivning||t.Specifikation||t.Media&&(null==t.Media?null:t.Media.length)>0)}}let dt=(()=>{class n{static{this.SORT_FILTER="l\xe4genhet"}constructor(t,i,r,a,l,p,_,h){this.errorReportService=t,this.rightSheet=i,this.snackBarService=r,this.route=a,this.mediaQueryService=l,this.fileService=p,this.translate=_,this.chatService=h,this.chips=[],this.componentDestroyed=new w.B,this.category=this.translate.instant("ERRORREPORT")}ngOnDestroy(){this.componentDestroyed.next(!0),this.componentDestroyed.complete()}ngOnInit(){this.errorReportService.getErrorReportSentState().pipe((0,Ke.i)(1),(0,P.Q)(this.componentDestroyed)).subscribe(t=>{t&&this.getData()}),this.route.data.subscribe(t=>{t&&t.portalSession&&this.updateView(t.portalSession?.\u00c4renden?.filter(i=>"Order"===i.Typ))})}updateView(t){this.errandRows=[],this.uniqueTypes=[],this.chips=[];for(const i of t)for(const r of i.Rader)r.parentId=i.Id,this.errandRows.push(r);this.errandRows=this.sortData(this.errandRows),this.visibleRows=this.errandRows,this.uniqueTypes=[...new Set(this.errandRows.map(i=>i.HuvudentitetNodKlassBeteckning??i.HuvudEntitetNodTypBeteckning))];for(const i of this.uniqueTypes)this.chips.push({chipText:i??this.translate.instant("OTHER"),chipType:i,selected:!0})}getNodeTypeText(t){return t.HuvudentitetNodKlassBeteckning??t.HuvudEntitetNodTypBeteckning??this.translate.instant("OTHER")}changeSelected(t){this.visibleRows=[];for(const i of t)i.selected&&this.visibleRows.push(...this.errandRows.filter(r=>r.HuvudentitetNodKlassBeteckning===i.chipType||r.HuvudEntitetNodTypBeteckning===i.chipType))}sortByDateDesc(t){return t.sort((i,r)=>+new Date(this.formatDate(r.Inkommen))-+new Date(this.formatDate(i.Inkommen)))}sortData(t){const i=[...t];let r=[];r.push(...i.filter(l=>l.HuvudentitetNodKlassBeteckning&&l.HuvudentitetNodKlassBeteckning.toLowerCase().includes(n.SORT_FILTER))),r=this.sortByDateDesc(r);let a=[];return a.push(...i.filter(l=>!l.HuvudentitetNodKlassBeteckning||!l.HuvudentitetNodKlassBeteckning.toLowerCase().includes(n.SORT_FILTER))),a=this.sortByDateDesc(a),r.concat(a)}openSheet(){this.chatService.isChatEnabled()?this.chatService.requestOpenChat():this.errorReportService.getGraphItem(null).subscribe(t=>{t&&t.related?.length>0?this.rightSheet.open(X,{data:{graphItem:t},panelClass:"custom-rightsheet",scrollStrategy:new B.N,ariaLabel:this.translate.instant("ERRORREPORT"),autoFocus:!1}):this.snackBarService.info(this.translate.instant("ERRORREPORTNOTAVAILABLE"))})}addNew(){this.openSheet()}formatDate(t){return He()(t).format("YYYY-MM-DD")}getData(){this.errorReportService.getErrands().subscribe(t=>{t&&this.updateView(t?.\u00c4renden?.filter(i=>"Order"===i.Typ))})}getStatusClass(t){return"Handlaggs"===t.Referensnamn?"badge-info":"Klar"===t.Referensnamn?"badge-success":"badge-info"}downloadImage(t,i,r){this.errorReportService.getErrorReportImage(t,i,r).subscribe(a=>{this.fileService.saveBlobWithFilename(a,`${r}.jpg`)})}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(N.Y),e.rXU(b.c9),e.rXU(g.z),e.rXU(H.nX),e.rXU(Qe.M),e.rXU(ze.E),e.rXU(m.c$),e.rXU(Je.m))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-error-report"]],standalone:!1,decls:15,vars:17,consts:[[1,"card"],[1,"title"],["data-mom-test","MinaSidor_Felanm\xe4lan_Status_Rubrik"],["mat-icon-button","","taigaEventTracker","","data-mom-test","MinaSidor_Felanm\xe4lan_Status_L\xe4ggTill",3,"click","eventLabel","eventCategory"],["color","accent",1,"icon-display"],[4,"ngIf"],["multiple","","id","chipList",3,"selectable",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"markdown"],["multiple","","id","chipList",3,"selectable"],[3,"selected","click",4,"ngFor","ngForOf"],[3,"click","
1selected"],["data-mom-test","MinaSidor_Felanm\xe4lan_Status_\xc4rendenr",1,"title-errand"],[1,"title-date"],[2,"font-size","1rem"],[3,"class","text",4,"ngIf"],["class","headers-align","togglePosition","before",4,"ngIf"],[3,"text"],["togglePosition","before",1,"headers-align"],[1,"mat-elevation-z0"],["taigaEventTracker","",3,"eventLabel","eventCategory"],["taigaEventTracker","",1,"link",3,"click","eventLabel","eventCategory"],["mat-icon-button","","color","primary"]],template:function(i,r){1&i&&(e.j41(0,"div")(1,"mat-card",0)(2,"mat-card-title")(3,"div",1)(4,"div",2),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"button",3),e.nI1(8,"translate"),e.nI1(9,"translate"),e.bIt("click",function(){return r.addNew()}),e.j41(10,"mat-icon",4),e.EFF(11,"add_circle"),e.k0s()()()(),e.DNE(12,Ze,6,11,"mat-card-subtitle",5)(13,et,3,5,"mat-chip-listbox",6),e.k0s(),e.DNE(14,ct,18,10,"div",7),e.k0s()),2&i&&(e.AVh("is-mobile",r.mediaQueryService.isMobile())("is-desktop",!r.mediaQueryService.isMobile()),e.R7$(5),e.SpI(" ",e.bMT(6,11,"ERRORREPORT")," "),e.R7$(2),e.FS9("eventLabel",e.bMT(8,13,"CREATEERRORREPORT")),e.FS9("eventCategory",r.category),e.BMQ("aria-label",e.bMT(9,15,"CREATEERRORREPORT")),e.R7$(5),e.Y8G("ngIf",r.visibleRows&&r.errandRows),e.R7$(),e.Y8G("ngIf",(null==r.chips?null:r.chips.length)>0),e.R7$(),e.Y8G("ngForOf",r.visibleRows))},dependencies:[We.Y,S.An,G.M,y.RN,y.m2,y.Lc,y.dh,T.BS,T.GK,T.Z2,T.WN,T.Q6,K.uI,K.gq,f.Sq,f.bT,V.u,Y.N,m.D9],styles:[".is-desktop[_ngcontent-%COMP%]{padding:30px}.is-mobile[_ngcontent-%COMP%]{padding:20px}.card[_ngcontent-%COMP%]{margin-bottom:8px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between;margin:10px 0}.flex-item[_ngcontent-%COMP%]{margin:0 5px}.title[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.title-errand[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-size:1.125rem}.title-date[_ngcontent-%COMP%]{font-size:.875rem}.mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0 4px}.link[_ngcontent-%COMP%]{display:flex;align-items:center;font-weight:500;cursor:pointer}.headers-align[_ngcontent-%COMP%]   .mat-expansion-panel-header-title[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%]   .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0;align-items:center}.headers-align[_ngcontent-%COMP%]   .mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}mat-form-field[_ngcontent-%COMP%]{margin-right:12px}.icon-display[_ngcontent-%COMP%]{transform:scale(1.5)}mat-chip[_ngcontent-%COMP%]{font-size:.75rem;font-weight:400}.title[_ngcontent-%COMP%]   taiga-pill-badge[_ngcontent-%COMP%]{font-weight:400}"]})}}return n})();var pt=o(1336),mt=o(6380);let ht=(()=>{class n{constructor(t,i,r,a){this.errorReportService=t,this.errorService=i,this.userMessageService=r,this.router=a}resolve(){return this.errorReportService.getErrands().pipe((0,L.W)(t=>{const i=this.errorService.parseError(t);return this.userMessageService.errorWithHeader(i.message,"",i.displayErrorReportNumber?i.errorReportNumber:""),this.router.navigateByUrl("/"),(0,O.of)(null)}))}static{this.\u0275fac=function(i){return new(i||n)(e.KVO(N.Y),e.KVO(mt.I),e.KVO(g.z),e.KVO(H.Ix))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var ut=o(9496);const gt=[{path:"",component:dt,canActivate:[pt.q,ut.u],resolve:{portalSession:ht},title:"ERRORREPORT"}];let ft=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[M.iI.forChild(gt),M.iI]})}}return n})();var _t=o(8296);let vt=(()=>{class n{static{this.components={CreateErrorReportComponent:X}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[m.h.forChild(),ft,Ye.G,_t.M]})}}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.