PageSourceSearch

https://minasidor.k2a.se/571.03d742eec8a927fd.js

js k2a.se collected 2026-09-24 20:00:08 UTC 14,408 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktaiga=self.webpackChunktaiga||[]).push([[571,679],{1301:(O,v,i)=>{i.d(v,{A:()=>C});var n=i(1360),t=i(2881),u=i(8834),M=i(1517);function R(_,D){1&_&&n.nrm(0,"taiga-spinner",7),2&_&&n.Y8G("diameter",15)}function f(_,D){if(1&_){const d=n.RV6();n.qex(0),n.j41(1,"button",2),n.bIt("click",function(){n.eBV(d);const h=n.XpG();return n.Njj(h.click())}),n.j41(2,"div",3)(3,"div",4),n.EFF(4),n.k0s(),n.nrm(5,"div",5),n.k0s()(),n.DNE(6,R,1,1,"taiga-spinner",6),n.bVm()}if(2&_){const d=n.XpG();n.R7$(),n.Y8G("disabled",d.disabled),n.R7$(3),n.JRh(d.text),n.R7$(),n.AVh("hide-spinner-void",!d.spin),n.R7$(),n.Y8G("ngIf",d.spin)}}function F(_,D){if(1&_){const d=n.RV6();n.qex(0),n.j41(1,"button",8),n.bIt("click",function(){n.eBV(d);const h=n.XpG();return n.Njj(h.click())}),n.EFF(2),n.k0s(),n.bVm()}if(2&_){const d=n.XpG();n.R7$(2),n.SpI(" ",d.text," ")}}let C=(()=>{class _{constructor(){this.clicked=new n.bkB,this.readonly="true"===sessionStorage.getItem("READONLY")}click(){this.clicked.emit()}static{this.\u0275fac=function(E){return new(E||_)}}static{this.\u0275cmp=n.VBU({type:_,selectors:[["taiga-loading-button"]],inputs:{text:"text",spin:"spin",disabled:"disabled"},outputs:{clicked:"clicked"},standalone:!1,decls:3,vars:2,consts:[[1,"wrapper"],[4,"ngIf"],["color","primary","mat-raised-button","",1,"loading-button",3,"click","disabled"],[1,"container"],[1,"text"],[1,"spinner-void"],["class","spinner","color","accent","aria-label","Progress spinner",3,"diameter",4,"ngIf"],["color","accent","aria-label","Progress spinner",1,"spinner",3,"diameter"],["color","primary","mat-raised-button","",3,"click"]],template:function(E,h){1&E&&(n.j41(0,"div",0),n.DNE(1,f,7,5,"ng-container",1)(2,F,3,1,"ng-container",1),n.k0s()),2&E&&(n.R7$(),n.Y8G("ngIf",!h.readonly),n.R7$(),n.Y8G("ngIf",h.readonly))},dependencies:[t.bT,u.$z,M.t],styles:[".loading-button[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding-left:16px;padding-right:8px}.spinner-void[_ngcontent-%COMP%]{transition:width .2s ease;width:15px;height:15px}.text[_ngcontent-%COMP%]{margin-right:8px}.hide-spinner-void[_ngcontent-%COMP%]{width:0px!important}.spinner[_ngcontent-%COMP%]{position:absolute;top:11px;right:10px}.wrapper[_ngcontent-%COMP%]{position:relative;display:inline-block}"]})}}return _})()},1336:(O,v,i)=>{i.d(v,{q:()=>R});var n=i(7052),t=i(1360),u=i(8875),M=i(2155);let R=(()=>{class f{constructor(C,_){this.signInService=C,this.router=_,this.homeLink=`${n.i.HOME}`,this.signInLink=`${n.t.SIGN_IN}`}canActivate(C,_){return this.signInService.routerStateUrl=_.url||this.homeLink,!!(this.signInService&&this.signInService.isAuth||this.signInService.isRefreshTokenValid)||(this.router.navigate([this.signInLink],{queryParams:{returnUrl:_.url||this.homeLink}}),!1)}static{this.\u0275fac=function(_){return new(_||f)(t.KVO(u.W),t.KVO(M.Ix))}}static{this.\u0275prov=t.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})()},4317:(O,v,i)=>{i.d(v,{P:()=>V});var n=i(467),t=i(1360),u=i(9417),M=i(7586),R=i.n(M),f=i(3718),F=i(226),C=i(7342),_=i(8018),D=i(2881),d=i(9213),E=i(4506),h=i(100),b=i(2928),r=i(7403),I=i(7575),s=i(3881);const p=()=>({standalone:!0}),c=o=>({invalidChars:o});function k(o,g){if(1&o&&(t.j41(0,"div",9),t.EFF(1),t.k0s()),2&o){const e=t.XpG();t.R7$(),t.SpI("",e.text," ")}}function B(o,g){if(1&o){const e=t.RV6();t.j41(0,"input",10,0),t.bIt("change",function(){t.eBV(e);const a=t.sdS(1),m=t.XpG();return t.Njj(m.processFile(a))}),t.k0s()}if(2&o){const e=t.XpG();t.Y8G("accept",e.accept)}}function L(o,g){if(1&o){const e=t.RV6();t.j41(0,"input",11,0),t.bIt("change",function(){t.eBV(e);const a=t.sdS(1),m=t.XpG();return t.Njj(m.processFile(a))}),t.k0s()}if(2&o){const e=t.XpG();t.Y8G("accept",e.accept)("formControlName",e.controlName)("required",e.required)}}function U(o,g){if(1&o&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&o){const e=t.XpG().$implicit,l=t.XpG(2);t.R7$(),t.JRh(l.formatDate(e.uploaded))}}function j(o,g){if(1&o&&t.nrm(0,"mat-progress-bar",19),2&o){const e=t.XpG(3);t.Y8G("value",e.progressBarPercentDone)}}function A(o,g){1&o&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&o&&(t.R
17$(),t.JRh(t.bMT(2,1,"ADDNOTE")))}function N(o,g){1&o&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&o&&(t.R7$(),t.JRh(t.bMT(2,1,"NOTE")))}function G(o,g){if(1&o){const e=t.RV6();t.j41(0,"mat-form-field",20)(1,"mat-label"),t.DNE(2,A,3,3,"span",8)(3,N,3,3,"span",8),t.k0s(),t.j41(4,"textarea",21,1),t.mxI("ngModelChange",function(a){t.eBV(e);const m=t.XpG().$implicit;return t.DH7(m.note,a)||(m.note=a),t.Njj(a)}),t.bIt("keydown.enter",function(){return t.eBV(e),t.XpG(3).nop(),t.Njj(!1)}),t.k0s(),t.j41(7,"mat-error"),t.EFF(8),t.nI1(9,"translate"),t.k0s()()}if(2&o){const e=t.sdS(6),l=t.XpG().$implicit;t.R7$(2),t.Y8G("ngIf",!l.disableNote),t.R7$(),t.Y8G("ngIf",l.disableNote),t.R7$(),t.R50("ngModel",l.note),t.Y8G("ngModelOptions",t.lJ4(10,p))("disabled",l.disableNote)("maxLength",20),t.R7$(4),t.JRh(t.i5U(9,7,"INVALIDCHARACTERS",t.eq3(11,c,null==e.errors||null==e.errors.allowedCharacters?null:e.errors.allowedCharacters.invalidChars)))}}function S(o,g){if(1&o){const e=t.RV6();t.j41(0,"div")(1,"div",13)(2,"div",14)(3,"div"),t.EFF(4),t.k0s(),t.DNE(5,U,2,1,"div",8),t.k0s(),t.j41(6,"button",15),t.nI1(7,"translate"),t.bIt("click",function(){const a=t.eBV(e).$implicit,m=t.XpG(2);return t.Njj(m.delete(a))}),t.j41(8,"mat-icon",16),t.EFF(9,"delete_outline"),t.k0s()()(),t.DNE(10,j,1,1,"mat-progress-bar",17)(11,G,10,13,"mat-form-field",18),t.k0s()}if(2&o){const e=g.$implicit,l=g.index,a=t.XpG(2);t.R7$(4),t.JRh(e.file.name),t.R7$(),t.Y8G("ngIf",e.uploaded),t.R7$(),t.BMQ("aria-label",t.bMT(7,5,"DELETEFILE")),t.R7$(4),t.Y8G("ngIf",a.showProgressBar&&a.anyFiles.length-1===l),t.R7$(),t.Y8G("ngIf",a.showNoteField)}}function $(o,g){if(1&o&&(t.j41(0,"div"),t.DNE(1,S,12,7,"div",12),t.k0s()),2&o){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",e.anyFiles)}}class Y{constructor(g,e,l,a,m){this.src=g,this.file=e,this.note=l,this.disableNote=a,this.uploaded=m}}let V=(()=>{class o{constructor(e,l,a){this.loadingService=e,this.snackbarService=l,this.translate=a,this.anyFiles=[],this.fileLoaded=new t.bkB,this.fileDeleted=new t.bkB}ngOnInit(){if(this.inputAnyFiles?.length>0)for(const e of this.inputAnyFiles)this.anyFiles.push(e)}nop(){}processFile(e){var l=this;if("function"!=typeof FileReader)return void this.snackbarService.error(this.translate.instant("FILEUPLOADNOTSUPPORTED"));let a=e.files[0];if(a){const m=new FileReader,P=f.Q.generateUniqueId();this.loadingService.open(P),m.onloadend=(0,n.A)(function*(){let T=m.result;if(a.type.match(/image.*/)&&a.size>6e6){const y=yield f.Q.resizeImage(T,a,6e6);T=y.src,a=y.file}const x=new Y(T,a,"");l.useSingleFile&&(l.anyFiles=[]),l.anyFiles.push(x),l.fileLoaded.emit(x),l.loadingService.close(P)}),m.readAsDataURL(a),e.value=null}}delete(e){const l=this.anyFiles.indexOf(e,0);l>-1&&(this.anyFiles.splice(l,1),this.fileDeleted.emit(e))}clickInput(e){e.target.click()}formatDate(e){return R()(e).format("YYYY-MM-DD")}static{this.\u0275fac=function(l){return new(l||o)(t.rXU(F.U),t.rXU(C.z),t.rXU(_.c$))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["taiga-file-upload"]],inputs:{text:"text",accept:"accept",useSingleFile:"useSingleFile",controlName:"controlName",inputAnyFiles:"inputAnyFiles",required:"required",showNoteField:"showNoteField",showProgressBar:"showProgressBar",progressBarPercentDone:"progressBarPercentDone"},outputs:{anyFiles:"anyFiles",fileLoaded:"fileLoaded",fileDeleted:"fileDeleted"},standalone:!1,features:[t.Jv_([],[{provide:u.ZU,useExisting:u.j4}])],decls:9,vars:9,consts:[["fileInput",""],["textarea","","noteModel","ngModel"],[1,"file-upload"],[1,"file-upload-container"],["class","mat-h4","style","margin:0;","data-mom-test","MinaSidor_FiluppladdningV\xe4ljaFil",4,"ngIf"],["color","primary",1,"icon"],["type","file","autocomplete","off",3,"accept","change",4,"ngIf"],["type","file","autocomplete","off",3,"accept","formControlName","required","change",4,"ngIf"],[4,"ngIf"],["data-mom-test","MinaSidor_FiluppladdningV\xe4ljaFil",1,"mat-h4",2,"margin","0"],["type","file","autocomplete","off",3,"change","accept"],["type","file","autocomplete","off",3,"change","accept","formControlName","required"],[4,"ngFor","ngForOf"],[1,"file-list"],["data-mom-test","MinaSidor_FiluppladdningValdFil"],["mat-icon-button","","color","primary",2,"margin-left","5px",3,"click"],[1,"icon"],["mode","determinate",3,"value",4,"ngIf"],["class","full-width",4,"ngIf"],["mode","determinate",3,"value"],[1,"full-width"],["cdkTextareaAutosize","","matInput","","taigaAllowedCharacters","","autocomplete","off",2,"height","22px",3,"ngModelChange","keydown.enter","ngModel","ngModelOptions","disabled","maxLength"]],template:function(l,a){1&l&&(t.j41(0,"div",2)(1,"label",3),t.nI1(2,"translate"),t.DNE(3,k,2,1,"div",4),t.j41(4,"mat-icon",5),t.EFF(5,"attachment"),t.k0s(),t.DNE(6,B,2,1,"input",6)(7,L,2,3,"input",7),t.k0s()(),t.DNE(8,$,2,1,"div",8)),2&l&&(t.R7$(),t.AVh("hide",a.useSingleFile&&(null==a.anyFiles?null:a.anyFiles.length)>0),t.BMQ("aria-label",t.bMT(2,7,"ADDATTACHMENT")),t.R7$(2),t.Y8G("ngIf",a.text),t.R7$(3),t.Y8G("ngIf",!a.controlName),t.R7$(),t.Y8G("ngIf",a.controlName),t.R7$(),t.Y8G("ngIf",a.anyFiles))},dependencies:[D.Sq,D.bT,u.me,u.BC,u.YS,u.vS,u.JD,d.An,E.M,h.fg,b.j,b.M,b.b,r.xb,I.HM,s.S,_.D9],styles:["input[_ngcontent-%COMP%]{position:absolute;width:0;height:0}.file-upload-container[_ngcontent-%COMP%]:focus-within{outline-width:2px!important;outline-style:solid!important;outline-offset:3px!important}.file-upload-container[_ngcontent-%COMP%]{padding-top:4px;padding-bottom:4px;display:flex;flex-direction:row;justify-content:space-between;cursor:pointer}.file-upload[_ngcontent-%COMP%], .icon[_ngcontent-%COMP%]{cursor:pointer}.file-list[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-top:4px;padding-bottom:4px;word-break:break-all}.full-width[_ngcontent-%COMP%]{width:100%}.hide[_ngcontent-%COMP%]{display:none}"]})}}return o}
1)()},6090:(O,v,i)=>{i.d(v,{$:()=>n});var n=function(t){return t[t.Ok=0]="Ok",t[t.YesNo=1]="YesNo",t[t.YesNoCancel=2]="YesNoCancel",t[t.Custom=3]="Custom",t[t.CustomClose=4]="CustomClose",t}(n||{})},8709:(O,v,i)=>{i.d(v,{w:()=>b});var n=i(5565),t=i(1360),u=i(2881),M=i(8834),R=i(1843),f=i(6112),F=i(8018);function C(r,I){if(1&r&&(t.j41(0,"h1",7),t.EFF(1),t.k0s()),2&r){const s=t.XpG();t.R7$(),t.JRh(s.data.heading)}}function _(r,I){if(1&r){const s=t.RV6();t.j41(0,"button",8),t.bIt("click",function(){t.eBV(s);const c=t.XpG();return t.Njj(c.onClose())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&r&&(t.R7$(),t.JRh(t.bMT(2,1,"CLOSE")))}function D(r,I){if(1&r){const s=t.RV6();t.j41(0,"button",12),t.bIt("click",function(){t.eBV(s);const c=t.XpG(2);return t.Njj(c.onCancel())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&r){const s=t.XpG(2);t.FS9("eventLabel",s.data.text),t.FS9("eventCategory",s.data.heading),t.R7$(),t.JRh(t.bMT(2,3,"CANCEL"))}}function d(r,I){if(1&r){const s=t.RV6();t.j41(0,"button",13),t.bIt("click",function(){t.eBV(s);const c=t.XpG(2);return t.Njj(c.onNo())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&r){const s=t.XpG(2);t.FS9("eventLabel",s.data.text),t.FS9("eventCategory",s.data.heading),t.R7$(),t.JRh(t.bMT(2,3,"NO"))}}function E(r,I){if(1&r){const s=t.RV6();t.qex(0),t.DNE(1,D,3,5,"button",9),t.j41(2,"button",10),t.bIt("click",function(){t.eBV(s);const c=t.XpG();return t.Njj(c.onYes())}),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,d,3,5,"button",11),t.bVm()}if(2&r){const s=t.XpG();t.R7$(),t.Y8G("ngIf",2===s.dialogAnswer),t.R7$(),t.FS9("eventLabel",s.data.text),t.FS9("eventCategory",s.data.heading),t.R7$(),t.JRh(t.bMT(4,5,"YES")),t.R7$(2),t.Y8G("ngIf",0!==s.dialogAnswer)}}function h(r,I){if(1&r){const s=t.RV6();t.j41(0,"button",14),t.bIt("click",function(){t.eBV(s);const c=t.XpG();return t.Njj(c.onCustom())}),t.EFF(1),t.k0s()}if(2&r){const s=t.XpG();t.R7$(),t.JRh(s.data.customButtonText)}}let b=(()=>{class r{constructor(s,p){this.dialogRef=s,this.data=p,this.dialogAnswer=p.dialogChoices}onYes(){this.dialogRef.close("yes")}onNo(){this.dialogRef.close("no")}onCancel(){this.dialogRef.close("cancel")}onCustom(){this.dialogRef.close("custom")}onClose(){this.dialogRef.close("close")}static{this.\u0275fac=function(p){return new(p||r)(t.rXU(n.m),t.rXU(n.e))}}static{this.\u0275cmp=t.VBU({type:r,selectors:[["taiga-confirm-dialog"]],standalone:!1,decls:7,vars:5,consts:[["mat-dialog-title","",4,"ngIf"],["data-mom-test","MinaSidor_DialogRuta"],[3,"markdown"],["align","end"],["mat-raised-button","","data-mom-test","MinaSidor_DialogRuta_St\xe4ng",3,"click",4,"ngIf"],[4,"ngIf"],["mat-raised-button","","color","primary","data-mom-test","MinaSidor_DialogRuta_Custom",3,"click",4,"ngIf"],["mat-dialog-title",""],["mat-raised-button","","data-mom-test","MinaSidor_DialogRuta_St\xe4ng",3,"click"],["mat-raised-button","","class","btn-cancel","taigaEventTracker","","data-mom-test","MinaSidor_DialogRuta_Avbryt",3,"eventLabel","eventCategory","click",4,"ngIf"],["color","primary","mat-raised-button","","taigaEventTracker","","data-mom-test","MinaSidor_DialogRuta_Ja",1,"btn-yes",3,"click","eventLabel","eventCategory"],["color","primary","mat-raised-button","","class","btn-no","taigaEventTracker","","data-mom-test","MinaSidor_DialogRuta_Nej",3,"eventLabel","eventCategory","click",4,"ngIf"],["mat-raised-button","","taigaEventTracker","","data-mom-test","MinaSidor_DialogRuta_Avbryt",1,"btn-cancel",3,"click","eventLabel","eventCategory"],["color","primary","mat-raised-button","","taigaEventTracker","","data-mom-test","MinaSidor_DialogRuta_Nej",1,"btn-no",3,"click","eventLabel","eventCategory"],["mat-raised-button","","color","primary","data-mom-test","MinaSidor_DialogRuta_Custom",3,"click"]],template:function(p,c){1&p&&(t.DNE(0,C,2,1,"h1",0),t.j41(1,"mat-dialog-content",1),t.nrm(2,"taiga-markdown",2),t.k0s(),t.j41(3,"mat-dialog-actions",3),t.DNE(4,_,3,3,"button",4)(5,E,6,7,"ng-container",5)(6,h,2,1,"button",6),t.k0s()),2&p&&(t.Y8G("ngIf",c.data.heading&&!c.data.hideHeading),t.R7$(2),t.Y8G("markdown",c.data.text),t.R7$(2),t.Y8G("ngIf",4===c.dialogAnswer),t.R7$(),t.Y8G("ngIf",3!==c.dialogAnswer&&4!==c.dialogAnswer),t.R7$(),t.Y8G("ngIf",3===c.dialogAnswer||4===c.dialogAnswer))},dependencies:[u.bT,M.$z,n.b,n.M,n.c,R.u,f.N,F.D9],encapsulation:2})}}return r})()}}]);

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.