PageSourceSearch

https://minasidor.k2a.se/325.37eda371d00198c5.js

js k2a.se collected 2026-10-02 06:20:30 UTC 49,853 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktaiga=self.webpackChunktaiga||[]).push([[325],{6325(J,k,o){o.d(k,{ErrorReportModule:()=>xe});var d=o(9417),I=o(1585),b=o(2280),C=o(2709),Z=o(6090),p=o(8709),g=o(467),t=o(3664),_=o(3718),l=o(2615),x=o(226),h=o(7342),R=o(8018),F=o(2200),M=o(9213),G=o(2598),w=o(100),v=o(9588),W=o(3881);const q=n=>({"background-image":n}),tt=n=>({invalidChars:n});function et(n,s){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"div",8),t.nrm(2,"div",9),t.j41(3,"mat-form-field",10)(4,"textarea",11,1),t.nI1(6,"translate"),t.mxI("ngModelChange",function(r){const a=l.eBV(e).$implicit;return t.DH7(a.note,r)||(a.note=r),l.Njj(r)}),t.bIt("keydown.enter",function(){return l.eBV(e),t.XpG(2).nop(),l.Njj(!1)}),t.k0s(),t.j41(7,"mat-error"),t.EFF(8),t.nI1(9,"translate"),t.k0s()(),t.j41(10,"button",12),t.nI1(11,"translate"),t.bIt("click",function(){const r=l.eBV(e).$implicit,a=t.XpG(2);return l.Njj(a.delete(r))}),t.j41(12,"mat-icon",5),t.EFF(13,"delete_outline"),t.k0s()()()()}if(2&n){const e=s.$implicit,i=t.sdS(5);t.R7$(2),t.Y8G("ngStyle",t.eq3(14,q,"url("+e.src+")")),t.R7$(2),t.Y8G("placeholder",t.mNQ(t.bMT(6,7,"ADDNOTE"))),t.R50("ngModel",e.note),t.Y8G("maxLength",20),t.R7$(4),t.JRh(t.i5U(9,9,"INVALIDCHARACTERS",t.eq3(16,tt,null==i.errors||null==i.errors.allowedCharacters?null:i.errors.allowedCharacters.invalidChars))),t.R7$(2),t.BMQ("aria-label",t.bMT(11,12,"DELETEFILE"))}}function nt(n,s){if(1&n&&(t.j41(0,"div",7),t.Z7z(1,et,14,18,"div",null,t.fX1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Dyx(e.imageFiles)}}class it{constructor(s,e,i){this.src=s,this.file=e,this.note=i}}let $=(()=>{class n{constructor(e,i,r){this.loadingService=e,this.snackbarService=i,this.translate=r,this.imageLoaded=new t.bkB,this.imageFiles=[]}nop(){}processFile(e){var i=this;if("function"!=typeof FileReader)return void this.snackbarService.error(this.translate.instant("FILEUPLOADNOTSUPPORTED"));let r=e.files[0];if(r){const a=new FileReader,c=_.Q.generateUniqueId();this.loadingService.open(c),a.onloadend=(0,g.A)(function*(){let m=a.result;if(r.type.match(/image.*/)&&r.size>6e6){const u=yield _.Q.resizeImage(m,r,6e6);m=u.src,r=u.file}const f=new it(m,r,"");i.imageFiles.push(f),i.imageLoaded.emit(!0),i.loadingService.close(c)}),a.readAsDataURL(r)}}delete(e){const i=this.imageFiles.indexOf(e,0);i>-1&&this.imageFiles.splice(i,1)}clear(){this.imageFiles&&this.imageFiles.splice(0,this.imageFiles.length)}clickInput(e){e.target.click()}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(x.U),t.rXU(h.z),t.rXU(R.c$))}}static{this.\u0275cmp=t.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"],[1,"img-preview-container"],[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","","data-mom-test","MyPages_ImageUpload_DeleteButton",3,"click"]],template:function(i,r){if(1&i){const a=t.RV6();t.j41(0,"div",2)(1,"label",3),t.nI1(2,"translate"),t.j41(3,"div",4),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"mat-icon",5),t.EFF(7,"add_photo_alternate"),t.k0s(),t.j41(8,"input",6,0),t.bIt("change",function(){l.eBV(a);const m=t.sdS(9);
1return l.Njj(r.processFile(m))}),t.k0s()()(),t.nVh(10,nt,3,0,"div",7)}2&i&&(t.R7$(),t.BMQ("aria-label",t.bMT(2,3,"ADDIMAGE")),t.R7$(3),t.JRh(t.bMT(5,5,"ADDIMAGE")),t.R7$(6),t.vxM(r.imageFiles.length>0?10:-1))},dependencies:[F.B3,d.me,d.BC,d.vS,M.An,G.iY,w.fg,v.rl,v.TL,W.S,R.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 D=o(1413),B=o(7468),O=o(7673),A=o(6977),rt=o(274),V=o(9437),L=o(9338),at=o(7705),ot=o(2591),N=o(9015),st=o(793),lt=o(666),S=o(8132),ct=o(1997),U=o(8834),dt=o(7403),X=o(5951),pt=o(1975),Q=o(1843),H=o(3013),mt=o(1301),ht=o(6112);const ut=["desc"],P=n=>({invalidChars:n});function gt(n,s){if(1&n&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.classDisplayName)}}function ft(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",13),t.bIt("click",function(){const r=l.eBV(e).$implicit,a=t.XpG(3);return l.Njj(a.removeSelectedGraphItemRelated(r))}),t.j41(1,"div",14)(2,"div",15)(3,"div")(4,"div",16)(5,"div"),t.EFF(6),t.k0s()()(),t.j41(7,"div",17),t.nVh(8,gt,2,1,"div"),t.k0s()(),t.j41(9,"mat-icon",18),t.EFF(10,"clear"),t.k0s()()()}if(2&n){const e=s.$implicit;t.AVh("full-width",e.classDisplayName&&e.displayName!==e.classDisplayName),t.R7$(6),t.E5c(" ",e.number," ",e.displayName," ",e.displayNameAddition," "),t.R7$(2),t.vxM(e.displayName!==e.classDisplayName?8:-1)}}
1function Ct(n,s){if(1&n&&(t.j41(0,"div",11),t.Z7z(1,ft,11,6,"button",12,t.fX1),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Dyx(e.selectedGraphItemRelated)}}function _t(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",20),t.bIt("click",function(){l.eBV(e);const r=t.XpG(3);return l.Njj(r.removeSelectedGraphItemErrandConfigurationFaultDescription())}),t.j41(1,"div",14)(2,"div",15)(3,"div")(4,"div",16),t.EFF(5),t.k0s()(),t.j41(6,"div",17),t.nrm(7,"div"),t.k0s()(),t.j41(8,"mat-icon",18),t.EFF(9,"clear"),t.k0s()()()}if(2&n){const e=s.$implicit;t.R7$(5),t.SpI(" ",e.displayName," ")}}function Rt(n,s){if(1&n&&(t.j41(0,"div",11),t.Z7z(1,_t,10,1,"button",19,t.fX1),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Dyx(e.selectedGraphItemErrandConfigurationFaultDescription)}}function vt(n,s){if(1&n){const e=t.RV6();t.j41(0,"mat-form-field",22)(1,"mat-label"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"input",23),t.bIt("keyup",function(r){l.eBV(e);const a=t.XpG(3);return l.Njj(a.searchGraphItemRelated(r))}),t.k0s(),t.j41(5,"mat-icon",24),t.EFF(6,"search"),t.k0s()()}2&n&&(t.R7$(2),t.JRh(t.bMT(3,1,"SEARCH")))}function It(n,s){if(1&n&&(t.j41(0,"h2",21),t.EFF(1),t.k0s(),t.nVh(2,vt,7,3,"mat-form-field",22)),2&n){const e=t.XpG(2);t.R7$(),t.JRh(e.guideText),t.R7$(),t.vxM(e.graphItemRelatedOriginal.length>=10?2:-1)}}function Et(n,s){if(1&n&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.classDisplayName)}}function bt(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",26),t.bIt("click",function(){const r=l.eBV(e).$implicit,a=t.XpG(3);return l.Njj(a.selectGraphItemRelated(r))}),t.j41(1,"div")(2,"div")(3,"div")(4,"div",16)(5,"div"),t.EFF(6),t.k0s()()(),t.j41(7,"div",17),t.nVh(8,Et,2,1,"div"),t.k0s()()()()}if(2&n){const e=s.$implicit;t.AVh("full-width",e.classDisplayName&&e.displayName!==e.classDisplayName),t.R7$(6),t.E5c(" ",e.number," ",e.displayName," ",e.displayNameAddition," "),t.R7$(2),t.vxM(e.displayName!==e.classDisplayName?8:-1)}}function xt(n,s){if(1&n&&(t.j41(0,"div",11),t.Z7z(1,bt,9,6,"button",25,t.fX1),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Dyx(e.graphItem.related)}}function Tt(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",33),t.bIt("click",function(){const r=l.eBV(e).$implicit,a=t.XpG(4);return l.Njj(a.selectGraphItemErrandConfigurationFaultDescription(r))}),t.j41(1,"div")(2,"div")(3,"div")(4,"div",16),t.EFF(5),t.k0s()(),t.j41(6,"div",17),t.nrm(7,"div"),t.k0s()()()()}if(2&n){const e=s.$implicit;t.R7$(5),t.SpI(" ",e.displayName," ")}}function yt(n,s){if(1&n&&(t.j41(0,"div",11),t.Z7z(1,Tt,8,1,"button",32,t.fX1),t.k0s()),2&n){const e=t.XpG(3);t.R7$(),t.Dyx(e.graphItemErrandConfigurationFault.descriptions)}}function Ft(n,s){if(1&n&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){let e;const i=t.XpG(3);t.R7$(),t.SpI(" ",t.i5U(2,1,"INVALIDCHARACTERS",t.eq3(4,P,null==(e=i.f.specificationText.getError("allowedCharacters"))?null:e.invalidChars))," ")}}
1function kt(n,s){if(1&n&&(t.j41(0,"div",42),t.EFF(1),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",e.externalDescription," ")}}function Mt(n,s){if(1&n){const e=t.RV6();t.j41(0,"mat-radio-button",39),t.bIt("click",function(){l.eBV(e);const r=t.XpG(5);return l.Njj(r.radioFocused())}),t.j41(1,"div",40),t.EFF(2),t.k0s(),t.DNE(3,kt,2,1,"div",41),t.k0s()}if(2&n){const e=s.$implicit;t.Y8G("value",e.id),t.R7$(2),t.SpI(" ",e.externalDisplayName?e.externalDisplayName:e.displayName," "),t.R7$(),t.Y8G("ngIf",e.externalDescription)}}function Ot(n,s){1&n&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"INPUTREQUIRED")," "))}function Nt(n,s){if(1&n&&(t.j41(0,"div",28)(1,"div",36),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"mat-radio-group",37),t.nI1(5,"translate"),t.Z7z(6,Mt,4,3,"mat-radio-button",38,t.fX1),t.k0s(),t.nVh(8,Ot,3,3,"mat-error"),t.k0s()),2&n){const e=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,6,"USEMAINKEY")),t.R7$(2),t.Y8G("eventLabel",t.mNQ(t.bMT(5,8,"USEMAINKEY")))("eventCategory",t.mNQ(e.category)),t.R7$(2),t.Dyx(e.mainKeyChoices),t.R7$(2),t.vxM(e.f.keyChoice.invalid?8:-1)}}function St(n,s){if(1&n&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){let e;const i=t.XpG(5);t.R7$(),t.SpI(" ",t.i5U(2,1,"INVALIDCHARACTERS",t.eq3(4,P,null==(e=i.f.keyNote.getError("allowedCharacters"))?null:e.invalidChars))," ")}}function Pt(n,s){if(1&n&&(t.j41(0,"mat-form-field",28),t.nrm(1,"textarea",43),t.nI1(2,"translate"),t.DNE(3,St,3,6,"mat-error",30),t.j41(4,"mat-hint"),t.EFF(5),t.nI1(6,"translate"),t.k0s()()),2&n){const e=t.XpG(4);t.R7$(),t.Y8G("placeholder",t.mNQ(t.bMT(2,4,"KEYNOTE"))),t.R7$(2),t.Y8G("ngIf",e.f.keyNote.hasError("allowedCharacters")),t.R7$(2),t.SpI("",t.bMT(6,6,"KEYNOTEHINT")," (max 256)")}}function jt(n,s){1&n&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"INPUTREQUIRED")," "))}function Gt(n,s){if(1&n){const e=t.RV6();t.j41(0,"div",35)(1,"div",44),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"mat-radio-group",45),t.nI1(5,"translate"),t.j41(6,"mat-radio-button",46),t.bIt("click",function(){l.eBV(e);const r=t.XpG(4);return l.Njj(r.radioFocused())}),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"mat-radio-button",47),t.bIt("click",function(){l.eBV(e);const r=t.XpG(4);return l.Njj(r.radioFocused())}),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.nVh(12,jt,3,3,"mat-error"),t.k0s()}if(2&n){const e=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,8,"PETQUESTION")),t.R7$(2),t.Y8G("eventLabel",t.mNQ(t.bMT(5,10,"PETQUESTION")))("eventCategory",t.mNQ(e.category)),t.R7$(3),t.SpI("",t.bMT(8,12,"YES")," "),t.R7$(3),t.SpI("",t.bMT(11,14,"NO")," "),t.R7$(2),t.vxM(e.f.petChoice.invalid?12:-1)}}function wt(n,s){if(1&n&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){let e;const i=t.XpG(5);t.R7$(),t.SpI(" ",t.i5U(2,1,"INVALIDCHARACTERS",t.eq3(4,P,null==(e=i.f.petText.getError("allowedCharacters"))?null:e.invalidChars))," ")}}function $t(n,s){if(1&n&&(t.j41(0,"mat-form-field",28),t.nrm(1,"textarea",48),t.nI1(2,"translate"),t.j41(3,"mat-error"),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.DNE(6,wt,3,6,"mat-error",30),t.j41(7,"mat-hint"),t.EFF(8,"(max 128)"),t.k0s()()),2&n){const e=t.XpG(4);t.R7$(),t.Y8G("placeholder",t.mNQ(t.bMT(2,5,"PETIFYES")))("errorStateMatcher",e.matcher),t.R7$(3),t.SpI(" ",t.bMT(5,7,"INPUTREQUIRED")," "),t.R7$(2),t.Y8G("ngIf",e.f.petText.hasError("allowedCharacters"))}}function Dt(n,s){if(1&n&&(t.j41(0,"div",31)(1,"h2",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nVh(4,Nt,9,10,"div",28),t.nVh(5,Pt,7,8,"mat-form-field",28),t.nVh(6,Gt,13,16,"div",35),t.nVh(7,$t,9,9,"mat-form-field",28),t.k0s()),2&n){const e=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,5,"OTHERINFO")),t.R7$(2),t.vxM(e.showKeyInfo?4:-1),t.R7$(),t.vxM(e.showKeyInfo?5:-1),t.R7$(),t.vxM(e.showPetInfo?6:-1),t.R7$(),t.vxM(e.showPetInfo&&"true"===e.f.petChoice.value?7:-1)}}function Bt(n,s){if(1&n&&(t.j41(0,"h2",27),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.nVh(3,yt,3,0,"div",11),t.j41(4,"mat-form-field",28),t.nrm(5,"textarea",29,0),t.nI1(7,"translate"),t.DNE(8,Ft,3,6,"mat-error",30),t.j41(9,"mat-hint"),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.nVh(12,Dt,8,7,"div",31)),2&n){const e=t.XpG(2);t.R7$(),t.JRh(t.bMT(2,7,"ERRORREPORTDESCRIBEERROR")),t.R7$(2),t.vxM(0===(null==e.selectedGraphItemErrandConfigurationFaultDescription?null:e.selectedGraphItemErrandConfigurationFaultDescription.length)&&e.graphItemErrandConfigurationFault&&e.graphItemErrandConfigurationFault.descriptions.length>0?3:-1),t.R7$(2),t.Y8G("placeholder",t.mNQ(t.bMT(7,9,"DESCRIPTION"))),t.R7$(3),t.Y8G("ngIf",e.f.specificationText.hasError("allowedCharacters")),t.R7$(2),t.SpI("",t.bMT(11,11,"EXTRAERRORDESCRIPTION")," (max 512)"),t.R7$(2),t.vxM(e.showExtraInfo&&(e.showKeyInfo||e.showPetInfo)?12:-1)}}
1function At(n,s){if(1&n&&(t.j41(0,"div"),t.nVh(1,Ct,3,0,"div",11),t.nVh(2,Rt,3,0,"div",11),t.nVh(3,It,3,2),t.nVh(4,xt,3,0,"div",11),t.nVh(5,Bt,13,13),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.vxM(e.selectedGraphItemRelated&&e.selectedGraphItemRelated.length>0?1:-1),t.R7$(),t.vxM(e.selectedGraphItemErrandConfigurationFaultDescription&&e.selectedGraphItemErrandConfigurationFaultDescription.length>0?2:-1),t.R7$(),t.vxM(e.graphItemRelatedOriginal&&e.graphItemRelatedOriginal.length>0?3:-1),t.R7$(),t.vxM(e.graphItem&&e.graphItem.related.length>0?4:-1),t.R7$(),t.vxM(e.stepOneDone?5:-1)}}function Vt(n,s){if(1&n){const e=t.RV6();t.j41(0,"div",7)(1,"div"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"mat-divider",49),t.j41(5,"taiga-image-upload",50),t.bIt("imageLoaded",function(){l.eBV(e);const r=t.XpG();return l.Njj(r.imageLoaded())}),t.k0s(),t.nrm(6,"mat-divider",51),t.k0s()}if(2&n){const e=t.XpG();t.Y8G("ngClass",e.orderComplete?"hide":""),t.R7$(2),t.JRh(t.bMT(3,4,"HEADLINEPICTURE")),t.R7$(2),t.Y8G("inset",!0),t.R7$(2),t.Y8G("inset",!0)}}function Lt(n,s){1&n&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"INPUTREQUIRED")," "))}function Ut(n,s){1&n&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"INPUTREQUIRED")," "))}function Xt(n,s){1&n&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"INVALIDPHONENUMBER")," "))}function Qt(n,s){if(1&n&&(t.j41(0,"div")(1,"div"),t.nrm(2,"taiga-markdown",52),t.nI1(3,"translate"),t.k0s(),t.j41(4,"mat-form-field",28)(5,"mat-label"),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.nrm(8,"input",53),t.nVh(9,Lt,3,3,"mat-error"),t.k0s(),t.j41(10,"mat-form-field",28)(11,"mat-label"),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.nrm(14,"input",54),t.nVh(15,Ut,3,3,"mat-error"),t.nVh(16,Xt,3,3,"mat-error"),t.k0s()()),2&n){const e=t.XpG();t.R7$(2),t.Y8G("markdown",t.bMT(3,6,"CHECKPERSONINFO")),t.R7$(4),t.JRh(t.bMT(7,8,"CONTACTPERSON")),t.R7$(3),t.vxM(e.f.contactPerson.invalid?9:-1),t.R7$(3),t.JRh(t.bMT(13,10,"CONTACTPERSONPHONENUMBER")),t.R7$(3),t.vxM(e.f.phoneNumber.hasError("required")?15:-1),t.R7$(),t.vxM(e.f.phoneNumber.hasError("required")?-1:16)}}var E=function(n){return n[n.ReportError=0]="ReportError",n[n.ReportContactInfo=1]="ReportContactInfo",n}(E||{});let Y=(()=>{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(e,i,r,a,c,m,f,u,j,Te){this.changeDetectorRef=e,this.data=i,this.dialog=r,this.formBuilder=a,this.errorReportService=c,this.rightSheetRef=m,this.myInfoService=f,this.translate=u,this.snackBarService=j,this.clientConfigurationService=Te,this.componentDestroyed=new D.B,this.matcher=new C.e,this.objects=i.objects,this.preSelectNodeId=i.preSelectNodeId,this.state=E.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,A.Q)(this.componentDestroyed)).subscribe(e=>{"true"===e?(this.f.petText.enable(),this.f.petText.setValidators(d.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,rt.H)(e=>e?.graphQL?.enabled?(this.useGraphQL=!0,(0,B.p)([this.myInfoService.fetchActorsCommunications(),(0,O.of)(null)])):(0,B.p)([(0,O.of)(null),this.myInfoService.getNameAndContactInfo()]))).subscribe(e=>{this.useGraphQL?(console.log(e[0]),this.customerInfoGQL=e[0]):(console.log(e[1]),this.customerInfo=e[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 e=this.customerInfo.Kontaktuppgifter.f
1ind(i=>"telefon.mobil"===i.KontaktuppgiftsTyp.Systemnamn);e&&(this.f.phoneNumber.setValue(e.V\u00e4rde),this.f.phoneNumber.markAsTouched())}}setContactInfoGQL(){if(this.customerInfoGQL){const e=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(e+" "+i),this.f.contactPerson.markAsTouched(),r&&(this.f.phoneNumber.setValue(r),this.f.phoneNumber.markAsTouched())}}storePendingErrand(e,i,r,a,c){this.pendingErrand||(this.pendingErrand={Avser:e,\u00c4rendeTyp:i,Anv\u00e4ndningTyp:{Referensnamn:r},Husdjur:a,Rader:[],\u00c4rendeK\u00e4llaSystemnamn:c})}storePendingRow(e,i,r,a,c,m,f){this.pendingErrand.Rader.push({Avser:e,Beskrivning:i,NyckelhanteringId:r,Nyckelhanteringsnotering:a,FelbeskrivningstypId:c,Specifikation:m,Media:f})}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=E.ReportError,this.pendingErrand=null}removeBase64Marker(e){const r=e.indexOf(";base64,")+8;return e.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 e=[];if(this.imageUpload.imageFiles)for(const m of this.imageUpload.imageFiles){const u={MediaBase64Str:this.removeBase64Marker(m.src),Notering:m.note};e.push(u)}const i=this.selectedGraphItemRelated.indexOf(this.selectedGraphItemRelated.find(m=>"OTHER"===m.dataType));i&&this.selectedGraphItemRelated.splice(i,i);const a=this.selectedGraphItemRelated[this.selectedGraphItemRelated?.length-1].path,c=this.selectedGraphItemErrandConfigurationFaultDescription[0]?.id;this.storePendingRow(a,"",this.showKeyInfo?this.f.keyChoice.value:null,this.showKeyInfo?this.f.keyNote.value:null,c?parseInt(c,null):null,this.f.specificationText.value,e.length>0?e:null),this.stateContactInfo()}stateContactInfo(){this.showContactInfo(),this.state=E.ReportContactInfo}ok(){switch(this.state){case E.ReportError:this.stateReportError();break;case E.ReportContactInfo:const e=this.createErrorReport();this.disableOkButton=!0,this.errorReportService.postErrorReport(e).pipe((0,V.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(p.w,{data:{heading:null,text:this.translate.instant("CANCELCONFIRM"),dialogChoices:Z.$.YesNo},scrollStrategy:new L.t0,ariaLabel:this.translate.instant("CANCELCONFIRM"),autoFocus:!1}).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,[d.k0.required,(0,I.f)()]],phoneNumber:[null,[d.k0.required]],keyChoice:["",[d.k0.required]],keyNote:["",[(0,I.f)()]],petChoice:["",[d.k0.required]],petText:["",[(0,I.f)()]],specificationText:["",[(0,I.f)()]],imageInputControl:[""]}),this.preSelectNodeId){const e=this.graphItem?.related.find(i=>i.path===this.preSelectNodeId);this.selectGraphItemRelated(e)}}reset(e){switch(e){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(e){let i="";return e?(i=e.ObjektTypBeteckning?e.ObjektTypBeteckning:e.Typbeteckning?e.Typbeteckning:e.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(e){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"!==e.dataType?this.errorReportService.getGraphItem(e.path,0===this.selectedGraphItemRelated.length?"nodeClass":null).subscribe(r=>{this.graphItem=r,this.graphItemRelatedOriginal=r?.related,this.selectedGraphItemRelated.push(e),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(e.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(e){this.graphItemRelatedOriginal&&this.graphItemRelatedOriginal.length>0&&(this.graphItem.related=this.graphItemRelatedOriginal),this.stepOneDone=!1,this.selectedGraphItemErrandConfigurationFaultDescription=[],this.graphItemErrandConfigurationFault=null;const i=this.selectedGraphItemRelated.indexOf(e);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(e){const i=e.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(e){this.selectedGraphItemErrandConfigurationFaultDescription.push(e),this.changeDetectorRef.detectChanges()}removeSelectedGraphItemErrandConfigurationFaultDescription(){this.selectedGraphItemErrandConfigurationFaultDescription=[],this.changeDetectorRef.detectChanges()}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(at.gRc),t.rXU(b.Zu),t.rXU(ot.bZ),t.rXU(d.ze),t.rXU(N.Y),t.rXU(b.rH),t.rXU(st.k),t.rXU(R.c$),t.rXU(h.z),t.rXU(lt.t))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-create-error-report"]],viewQuery:function(i,r){if(1&i&&(t.GBs($,5),t.GBs(ut,5)),2&i){let a;t.mGM(a=t.lsd())&&(r.imageUpload=a.first),t.mGM(a=t.lsd())&&(r.descriptionInput=a.first)}},hostBindings:function(i,r){1&i&&t.bIt("popstate",function(c){return r.onPopState(c)},t.tSv)},standalone:!1,decls:20,vars:27,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","MyPages_ErrorReport_Add_ShowAllErrorReports",2,"padding","0",3,"click"],[3,"formGroup"],[2,"margin-top","12px",3,"ngClass"],[1,"button-action-row"],["matButton","tonal","taigaEventTracker","","data-mom-test","MyPages_ErrorReport_Add_Cancel",3,"click","eventLabel","eventCategory"],["mat-button","","color","primary","taigaEventTracker","","data-mom-test","MyPages_ErrorReport_Add_OK",1,"btn-ok",3,"clicked","spin","disabled","eventLabel","eventCategory","text"],[1,"graph-item-card-container"],["matButton","tonal","data-mom-test","MyPages_ErrorReport_Add_SelectedCard",1,"graph-item-card","mat-elevation-z2",3,"full-width"],["matButton","tonal","data-mom-test","MyPages_ErrorReport_Add_SelectedCard",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"],["matButton","tonal","data-mom-test","MyPages_ErrorReport_Add_SelectedProblem",1,"graph-item-card","mat-elevation-z2"],["matButton","tonal","data-mom-test","MyPages_ErrorReport_Add_SelectedProblem",1,"graph-item-card","mat-elevation-z2",3,"click"],["id","guide-text",1,"mat-h2"],[1,"full-width"],["matInput","","data-mom-test","MyPages_ErrorReport_Add_Search","autocomplete","off",3,"keyup"],["matSuffix",""],["matButton","tonal","data-mom-test","MyPages_ErrorReport_Add_Card",1,"graph-item-card","mat-elevation-z2",3,"full-width"],["matButton","tonal","data-mom-test","MyPages_ErrorReport_Add_Card",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","MyPages_ErrorReport_Add_FreeText","autocomplete","off",3,"placeholder"],[4,"ngIf"],[2,"margin-top","12px"],["matButton","tonal","data-mom-test","MyPages_ErrorReport_Add_Problem",1,"graph-item-card","mat-elevation-z2"],["matButton","tonal","data-mom-test","MyPages_ErrorReport_Add_Problem",1,"graph-item-card","mat-elevation-z2",3,"click"],[1,"mat-h2"],[1,"form-field",2,"margin-top","12px"],["id","main-key-radio-group-label"],["aria-labelledby","main-key-radio-group-label","formControlName","keyChoice","required","","taigaEventTracker","",1,"radio-group",3,"eventLabel","eventCategory"],["data-mom-test","MyPages_ErrorReport_Add_KeyChoice",1,"radio-button",3,"value"],["data-mom-test","MyPages_ErrorReport_Add_KeyChoice",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","MyPages_ErrorReport_Add_KeyNote","autocomplete","off",3,"placeholder"],["id","pet-group-label"],["aria-labelledby","pet-group-label","formControlName","petChoice","required","","taigaEventTracker","",1,"radio-group",3,"eventLabel","eventCategory"],["value","true","data-mom-test","MyPages_ErrorReport_Add_PetYes",1,"radio-button",3,"click"],["value","false","data-mom-test","MyPages_ErrorReport_Add_PetNo",1,"radio-button",3,"click"],["type","text","matInput","","maxlength","128","formControlName","petText","data-mom-test","MyPages_ErrorReport_Add_PetNote","cdkTextareaAutosize","","autocomplete","off",3,"errorStateMatcher","placeholder"],[2,"margin-top","8px",3,"inset"],[3,"imageLoaded"],[3,"inset"],[3,"markdown"],["matInput","","maxlength","100","formControlName","contactPerson","required","","data-mom-test","MyPages_ErrorReport_Add_ContactPerson","autocomplete","given-name"],["matInput","","maxlength","20","type","tel","pattern","[0-9 +\\-]+","formControlName","phoneNumber","required","","data-mom-test","MyPages_ErrorReport_Add_ContactPersonPhone","autocomplete","tel"]],template:function(i,r){1&i&&(t.j41(0,"div",1),t.nrm(1,"taiga-medium-header",2),t.nI1(2,"translate"),t.j41(3,"mat-icon",3),t.EFF(4," build"),t.k0s()(),t.j41(5,"div",4)(6,"a",5),t.bIt("click",function(){return r.cancel()}),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"form",6),t.nVh(10,At,6,5,"div"),t.nVh(11,Vt,7,6,"div",7),t.nVh(12,Qt,17,12,"div"),t.k0s(),t.nrm(13,"br"),t.j41(14,"div",8)(15,"button",9),t.nI1(16,"translate"),t.bIt("click",function(){return r.cancel()}),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"taiga-loading-button",10),t.bIt("clicked",function(){return r.ok()}),t.k0s()()),2&i&&(t.R7$(),t.Y8G("text",t.bMT(2,19,"ERRORREPORT")),t.R7$(2),t.Y8G("matBadge",r.pendingErrand?r.pendingErrand.Rader.length.toString():"0"),t.R7$(4),t.JRh(t.bMT(8,21,"SHOWALLERRORREPORTS")),t.R7$(2),t.Y8G("formGroup",r.errorReportForm),t.R7$(),t.vxM(r.orderComplete?-1:10),t.R7$(),t.vxM(r.stepOneDone?11:-1),t.R7$(),t.vxM(r.orderComplete?12:-1),t.R7$(3),t.Y8G("eventLabel",t.mNQ(t.bMT(16,23,"CANCEL")))("eventCategory",t.mNQ(r.category)),t.R7$(2),t.SpI(" ",t.bMT(18,25,"CANCEL")," "),t.R7$(2),t.Y8G("eventLabel",t.mNQ(r.getOkButtonText()))("eventCategory",t.mNQ(r.category))("spin",r.disableOkButton)("disabled",r.disableOkButton||!r.stepOneDone||!r.errorReportForm.valid||!r.selectedGraphItemRelated||0===r.selectedGraphItemRelated.length)("text",r.getOkButtonText()))},dependencies:[S.Wk,$,ct.q,M.An,U.$z,w.fg,v.rl,v.nJ,v.MV,v.TL,v.yw,dt.xb,X.VT,X._g,pt.k,F.YU,F.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.tU,d.R_,d.j4,d.JD,Q.u,H.o,mt.A,ht.N,R.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-left: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}
1.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 Ht=o(9963),Yt=o(7586),Kt=o.n(Yt),zt=o(5245),K=o(8793),Jt=o(2043),Zt=o(1580),Wt=o(4959),qt=o(2099),te=o(5665),T=o(5596),y=o(9454),z=o(6471),ee=o(7201);function ne(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",6),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){l.eBV(e);const r=t.XpG();return l.Njj(r.addNew())}),t.j41(3,"mat-icon"),t.EFF(4,"add_circle"),t.k0s()()}if(2&n){const e=t.XpG();t.Y8G("eventLabel",t.mNQ(t.bMT(1,5,"CREATEERRORREPORT")))("eventCategory",t.mNQ(e.category)),t.BMQ("aria-label",t.bMT(2,7,"CREATEERRORREPORT"))}}function ie(n,s){if(1&n&&t.eu8(0,3),2&n){t.XpG();const e=t.sdS(1);t.Y8G("ngTemplateOutlet",e)}}function re(n,s){if(1&n&&(t.EFF(0),t.nI1(1,"translate"),t.nI1(2,"translate")),2&n){const e=t.XpG();t.LHq(" ",t.bMT(1,4,"SHOWS")," ",e.visibleRows.length," / ",e.errandRows.length," ",t.bMT(2,6,"PCS"),". ")}}function ae(n,s){if(1&n){const e=t.RV6();t.j41(0,"mat-chip-option",8),t.bIt("click",function(){const r=l.eBV(e).$implicit,a=t.XpG(2);return r.selected=!r.selected,l.Njj(a.changeSelected(a.chips))}),t.EFF(1),t.k0s()}if(2&n){const e=s.$implicit;t.Y8G("selected",e.selected),t.R7$(),t.SpI(" ",e.chipText," ")}}function oe(n,s){if(1&n&&(t.j41(0,"mat-chip-listbox",5),t.nI1(1,"translate"),t.Z7z(2,ae,2,2,"mat-chip-option",7,t.fX1),t.k0s()),2&n){const e=t.XpG();t.Y8G("selectable",!0),t.BMQ("aria-label",t.bMT(1,2,"SELECTOBJECTTYPE")),t.R7$(2),t.Dyx(e.chips)}}function se(n,s){if(1&n&&t.nrm(0,"taiga-pill-badge",16),2&n){const e=t.XpG().$implicit,i=t.XpG();t.HbH(i.getStatusClass(e.Status)),t.Y8G("text",t.mNQ(e.Status.Beteckning))}}function le(n,s){if(1&n&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&n){const e=s.$implicit;t.R7$(),t.SpI(" ",e," ")}}function ce(n,s){1&n&&(t.j41(0,"div")(1,"mat-panel-description")(2,"mat-icon"),t.nI1(3,"translate"),t.EFF(4,"attachment"),t.k0s()()()),2&n&&(t.R7$(2),t.BMQ("aria-label",t.bMT(3,1,"ATTACHMENTSAREAVAIABLE")))}function de(n,s){if(1&n&&(t.j41(0,"div"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG(2).$implicit;t.R7$(),t.Lme("",t.bMT(2,2,"ERRORDESCRIPTION"),": ",e.Felbeskrivning)}}function pe(n,s){if(1&n&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",e.Specifikation," ")}}function me(n,s){1&n&&(t.j41(0,"div"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI("",t.bMT(2,1,"ATTACHEDIMAGES"),":"))}function he(n,s){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"div",19),t.nI1(2,"translate"),t.bIt("click",function(){const r=l.eBV(e).$implicit,a=t.XpG(2).$implicit,c=t.XpG();return l.Njj(c.downloadImage(a.parentId,a.Id,r.Id))}),t.j41(3,"button",20),t.nI1(4,"translate"),t.j41(5,"mat-icon"),t.EFF(6,"photo"),t.k0s()(),t.j41(7,"span"),t.EFF(8),t.k0s()()()}if(2&n){const e=s.$implicit,i=t.XpG(3);t.R7$(),t.Y8G("eventLabel",t.mNQ(t.bMT(2,6,"ATTACHEDIMAGES")))("eventCategory",t.mNQ(i.category)),t.R7$(2),t.BMQ("aria-label",t.bMT(4,8,"IMAGE")),t.R7$(5),t.SpI("",e.Id,".jpg")}}function ue(n,s){if(1&n&&(t.j41(0,"mat-accordion",15)(1,"mat-expansion-panel",17)(2,"mat-expansion-panel-header",18),t.nI1(3,"translate"),t.nI1(4,"translate"),t.j41(5,"mat-panel-title"),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.nVh(8,ce,5,3,"div"),t.k0s(),t.nVh(9,de,3,4,"div"),t.nVh(10,pe,2,1,"div"),t.nrm(11,"br"),t.nVh(12,me,3,3,"div"),t.Z7z(13,he,9,10,"div",null,t.fX1),t.k0s()()),2&n){const e=t.XpG().$implicit,i=t.XpG();t.R7$(2),t.Y8G("eventLabel",t.mNQ(t.bMT(3,10,"DESCRIPTION")))("eventCategory",t.mNQ(i.category)),t.BMQ("aria-label",t.bMT(4,12,"OPENDESCRIPTION")),t.R7$(4),t.SpI(" ",t.bMT(7,14,"DESCRIPTION")," "),t.R7$(2),t.vxM((null==e.Media?null:e.Media.length)>0?8:-1),t.R7$(),t.vxM(e.Felbeskrivning?9:-1),t.R7$(),t.vxM(e.Specifikation?10:-1),t.R7$(2),t.vxM((null==e.Media?null:e.Media.length)>0?12:-1),t.R7$(),t.Dyx(e.Media)}}
1function ge(n,s){if(1&n&&(t.j41(0,"div")(1,"mat-card",9)(2,"mat-card-header",10)(3,"mat-card-title")(4,"div",11),t.EFF(5),t.j41(6,"div",12),t.EFF(7),t.nI1(8,"translate"),t.k0s()()(),t.j41(9,"mat-card-subtitle"),t.EFF(10),t.k0s()(),t.j41(11,"mat-card-content")(12,"div",1)(13,"label",13),t.EFF(14),t.k0s(),t.nVh(15,se,1,4,"taiga-pill-badge",14),t.k0s(),t.nrm(16,"br"),t.Z7z(17,le,2,1,"div",null,t.fX1),t.nVh(19,ue,15,16,"mat-accordion",15),t.k0s()()()),2&n){const e=s.$implicit,i=t.XpG();t.R7$(5),t.SpI(" Order ",e.\u00c4rendeNummer," "),t.R7$(2),t.Lme("",t.bMT(8,7,"ARRIVED")," ",i.formatDate(e.Inkommen)),t.R7$(3),t.SpI(" ",e.Huvudentitet," "),t.R7$(4),t.JRh(i.getNodeTypeText(e)),t.R7$(),t.vxM(null!=e&&null!=e.Status&&e.Status.Beteckning?15:-1),t.R7$(2),t.Dyx(null==e||null==e.Avser||null==e.Avser.Visningstext?null:e.Avser.Visningstext.split("/")),t.R7$(2),t.vxM(e.Felbeskrivning||e.Specifikation||e.Media&&(null==e.Media?null:e.Media.length)>0?19:-1)}}let fe=(()=>{class n{static{this.SORT_FILTER="l\xe4genhet"}constructor(e,i,r,a,c,m,f,u,j){this.errorReportService=e,this.rightSheet=i,this.snackBarService=r,this.route=a,this.mediaQueryService=c,this.fileService=m,this.translate=f,this.chatService=u,this.pageCardsService=j,this.hasPageCards=!1,this.chips=[],this.componentDestroyed=new D.B,this.category=this.translate.instant("ERRORREPORT")}ngOnDestroy(){this.componentDestroyed.next(!0),this.componentDestroyed.complete()}ngOnInit(){this.pageCardsService.hasCardsForCurrentPage().subscribe(e=>this.hasPageCards=e),this.errorReportService.getErrorReportSentState().pipe((0,zt.i)(1),(0,A.Q)(this.componentDestroyed)).subscribe(e=>{e&&this.getData()}),this.route.data.subscribe(e=>{e&&e.portalSession&&this.updateView(e.portalSession?.\u00c4renden?.filter(i=>"Order"===i.Typ))})}updateView(e){this.errandRows=[],this.uniqueTypes=[],this.chips=[];for(const i of e)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(e){return e.HuvudentitetNodKlassBeteckning??e.HuvudEntitetNodTypBeteckning??this.translate.instant("OTHER")}changeSelected(e){this.visibleRows=[];for(const i of e)i.selected&&this.visibleRows.push(...this.errandRows.filter(r=>r.HuvudentitetNodKlassBeteckning===i.chipType||r.HuvudEntitetNodTypBeteckning===i.chipType))}sortByDateDesc(e){return e.sort((i,r)=>+new Date(this.formatDate(r.Inkommen))-+new Date(this.formatDate(i.Inkommen)))}sortData(e){const i=[...e];let r=[];r.push(...i.filter(c=>c.HuvudentitetNodKlassBeteckning&&c.HuvudentitetNodKlassBeteckning.toLowerCase().includes(n.SORT_FILTER))),r=this.sortByDateDesc(r);let a=[];return a.push(...i.filter(c=>!c.HuvudentitetNodKlassBeteckning||!c.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(e=>{e&&e.related?.length>0?this.rightSheet.open(Y,{data:{graphItem:e},panelClass:"custom-rightsheet",scrollStrategy:new L.t0,ariaLabel:this.translate.instant("ERRORREPORT"),autoFocus:!1}):this.snackBarService.info(this.translate.instant("ERRORREPORTNOTAVAILABLE"))})}addNew(){this.openSheet()}formatDate(e){return Kt()(e).format("YYYY-MM-DD")}getData(){this.errorReportService.getErrands().subscribe(e=>{e&&this.updateView(e?.\u00c4renden?.filter(i=>"Order"===i.Typ))})}getStatusClass(e){return"Handlaggs"===e.Referensnamn?"badge-info":"Klar"===e.Referensnamn?"badge-success":"badge-info"}downloadImage(e,i,r){this.errorReportService.getErrorReportImage(e,i,r).subscribe(a=>{this.fileService.saveBlobWithFilename(a,`${r}.jpg`)})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(N.Y),t.rXU(b.c9),t.rXU(h.z),t.rXU(K.nX),t.rXU(Jt.M),t.rXU(Zt.E),t.rXU(R.c$),t.rXU(Wt.m),t.rXU(qt.W))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-error-report"]],standalone:!1,decls:13,vars:14,consts:[["addButton",""],[1,"title"],["data-mom-test","MyPages_ErrorReport_Status_Title",3,"text","subText"],[3,"ngTemplateOutlet"],[3,"actions"],["multiple","","id","chipList",1,"chip-list",3,"selectable"],["matMiniFab","","taigaEventTracker","","data-mom-test","MyPages_ErrorReport_Status_Add",3,"click","eventLabel","eventCategory"],[3,"selected"],[3,"click","
1selected"],[1,"card"],[2,"display","block"],["data-mom-test","MyPages_ErrorReport_Status_ErrandNumber",1,"title-errand"],[1,"title-date"],[2,"font-size","1rem"],[3,"class","text"],["togglePosition","before",1,"headers-align"],[3,"text"],[1,"mat-elevation-z0"],["taigaEventTracker","",3,"eventLabel","eventCategory"],["taigaEventTracker","",1,"link",3,"click","eventLabel","eventCategory"],["mat-icon-button","","color","primary"]],template:function(i,r){if(1&i&&(t.DNE(0,ne,5,9,"ng-template",null,0,t.C5r),t.j41(2,"div")(3,"div",1),t.nrm(4,"taiga-medium-header",2),t.nI1(5,"translate"),t.nI1(6,"translate"),t.nVh(7,ie,1,1,"ng-container",3),t.k0s(),t.nrm(8,"taiga-page-cards",4),t.nVh(9,re,3,8),t.nVh(10,oe,4,4,"mat-chip-listbox",5),t.Z7z(11,ge,20,9,"div",null,t.fX1),t.k0s()),2&i){const a=t.sdS(1);t.R7$(2),t.AVh("is-mobile",r.mediaQueryService.isMobile())("is-desktop",!r.mediaQueryService.isMobile()),t.R7$(2),t.Y8G("text",t.bMT(5,10,"ERRORREPORT"))("subText",t.bMT(6,12,"ERRORREPORTHELP")),t.R7$(3),t.vxM(r.hasPageCards?-1:7),t.R7$(),t.Y8G("actions",a),t.R7$(),t.vxM(r.visibleRows&&r.errandRows?9:-1),t.R7$(),t.vxM((null==r.chips?null:r.chips.length)>0?10:-1),t.R7$(),t.Dyx(r.visibleRows)}},dependencies:[te.Y,M.An,U.$0,G.iY,T.RN,T.m2,T.MM,T.Lc,T.dh,y.BS,y.GK,y.Z2,y.WN,y.Q6,z.uI,z.gq,F.T3,Q.u,H.o,ee.K,R.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.card[_ngcontent-%COMP%]{margin-bottom:16px}.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}.chip-list[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:20px}"]})}}return n})();var Ce=o(1336),_e=o(6380);let Re=(()=>{class n{constructor(e,i,r,a){this.errorReportService=e,this.errorService=i,this.userMessageService=r,this.router=a}resolve(){return this.errorReportService.getErrands().pipe((0,V.W)(e=>{const i=this.errorService.parseError(e);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)(l.KVO(N.Y),l.KVO(_e.I),l.KVO(h.z),l.KVO(K.Ix))}}static{this.\u0275prov=l.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var ve=o(9496);const Ie=[{path:"",component:fe,canActivate:[Ce.q,ve.u],resolve:{portalSession:Re},title:"ERRORREPORT"}];let Ee=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=l.G2t({imports:[S.iI.forChild(Ie),S.iI]})}}return n})();var be=o(6881);let xe=(()=>{class n{static{this.components={CreateErrorReportComponent:Y}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=l.G2t({imports:[R.h.forChild(),Ee,Ht.G,be.p]})}}return n})()},1580(J,k,o){o.d(k,{E:()=>b});var d=o(2615),I=o(5850);let b=(()=>{class C{constructor(p){this.requestService=p}saveBlob(p,g){const t=new Blob([p],{type:g});if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t);else{const _=window.URL.createObjectURL(t);window.open(_,"_blank"),setTimeout(()=>{window.URL.revokeObjectURL(_)},100)}}saveBlobWithFilename(p,g){const t=g.split(".").pop(),_=this.getMimeType(t),l=new Blob([p],{type:_});if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(l,g);else{const x=window.URL.createObjectURL(l),h=document.createElement("a");typeof h.download>"u"?window.open(x,"_blank"):(h.href=x,h.download=g,document.body.appendChild(h),h.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))),setTimeout(()=>{window.URL.revokeObjectURL(x),h&&h.remove()},100)}}getMimeType(p){switch(p=p.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(p){switch(p){case"application/pdf":case"image/jpeg":case"image/png":case"image/bmp":case"image/gif":return!0;default:return!1}}getValidImageMediaType(p){switch(p){case"image/jpeg":case"image/png":case"image/bmp":case"image/gif":return!0;default:return!1}}getBlobFromUrl(p){return this.requestService.getBlobFromUrl(p)}static{this.\u0275fac=function(g){return new(g||C)(d.KVO(I.B))}}
1static{this.\u0275prov=d.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()}}]);

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.