PageSourceSearch

https://minasidor.k2a.se/701.46228a80841f0918.js

js k2a.se collected 2026-09-24 20:00:12 UTC 30,653 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktaiga=self.webpackChunktaiga||[]).push([[701],{1580:(k,I,s)=>{s.d(I,{E:()=>S});var d=s(1360),v=s(5850);let S=(()=>{class _{constructor(c){this.requestService=c}saveBlob(c,m){const f=new Blob([c],{type:m});if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(f);else{const h=window.URL.createObjectURL(f);window.open(h,"_blank"),setTimeout(()=>{window.URL.revokeObjectURL(h)},100)}}saveBlobWithFilename(c,m){const f=m.split(".").pop(),h=this.getMimeType(f),u=new Blob([c],{type:h});if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(u,m);else{const E=window.URL.createObjectURL(u),l=document.createElement("a");typeof l.download>"u"?window.open(E,"_blank"):(l.href=E,l.download=m,document.body.appendChild(l),l.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))),setTimeout(()=>{window.URL.revokeObjectURL(E),l&&l.remove()},100)}}getMimeType(c){switch(c=c.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(c){switch(c){case"application/pdf":case"image/jpeg":case"image/png":case"image/bmp":case"image/gif":return!0;default:return!1}}getValidImageMediaType(c){switch(c){case"image/jpeg":case"image/png":case"image/bmp":case"image/gif":return!0;default:return!1}}getBlobFromUrl(c){return this.requestService.getBlobFromUrl(c)}static{this.\u0275fac=function(m){return new(m||_)(d.KVO(v.B))}}static{this.\u0275prov=d.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})()},1701:(k,I,s)=>{s.r(I),s.d(I,{SigningModule:()=>Dn});var d=s(2881),v=s(5207),S=s(1413),_=s(1584),M=s(7786),c=s(8810),m=s(9437),f=s(274),h=s(6977),u=function(e){return e.pending="pending",e.completed="completed",e.failed="failed",e}(u||{}),E=s(7586),l=s.n(E),n=s(1360),T=s(4069),F=s(2043),y=s(2155),b=s(8018),D=s(345),N=s(7342),O=s(9968),$=s(9509),G=s(9213),j=s(9297),w=s(1580),B=s(5665),C=s(8834),p=s(5596),P=s(2765),x=s(9417),A=s(3013),R=s(9454),U=s(7575),Y=s(1517);function X(e,o){if(1&e&&(n.qex(0),n.EFF(1),n.bVm()),2&e){const t=n.XpG(3);n.R7$(),n.JRh(t.timeRemaingDisplay)}}function V(e,o){if(1&e){const t=n.RV6();n.j41(0,"button",14),n.bIt("click",function(){n.eBV(t);const a=n.XpG(3);return n.Njj(a.extendTime())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}2&e&&(n.R7$(),n.JRh(n.bMT(2,1,"EXTEND")))}function L(e,o){if(1&e&&(n.j41(0,"div",9),n.nrm(1,"img",10),n.nI1(2,"translate"),n.nrm(3,"mat-progress-bar",11),n.nI1(4,"translate"),n.j41(5,"div",12),n.DNE(6,X,2,1,"ng-container",6),n.k0s(),n.DNE(7,V,3,3,"button",13),n.k0s()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("src",t.qrCode,n.B4B)("alt",n.bMT(2,6,"BANKIDQRCODE")),n.R7$(2),n.Y8G("value",t.timeRemainingpercentage),n.BMQ("aria-label",n.bMT(4,8,"COUNTDOWNTIMER")),n.R7$(3),n.Y8G("ngIf",t.timeRemaingDisplay),n.R7$(),n.Y8G("ngIf",t.showExtendTimeButton)}}function J(e,o){1&e&&(n.j41(0,"div",15),n.nrm(1,"taiga-spinner"),n.k0s())}function W(e,o){1&e&&(n.j41(0,"mat-accordion")(1,"mat-expansion-panel",16)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),n.EFF(4),n.nI1(5,"translate"),n.k0s()(),n.j41(6,"ol",17)(7,"li",17),n.EFF(8),n.nI1(9,"translate"),n.k0s(),n.j41(10,"li",17),n.EFF(11),n.nI1(12,"translate"),n.k0s(),n.j41(13,"li",17),n.EFF(14),n.nI1(15,"translate"),n.k0s(),n.j41(16,"li",17),n.EFF(17),n.nI1(18,"translate"),n.k0s()(),n.j41(19,"p"),n.EFF(20),n.nI1(21,"translate"),n.k0s()(),n.j41(22,"mat-expansion-panel",16)(23,"mat-expansion-panel-header")(24,"mat-panel-title"),n.EFF(25),n.nI1(26,"translate"),n.k0s()(),n.j41(27,"p"),n.EFF(28),n.nI1(29,"translate"),n.k0s(),n.j41(30,"ul")(31,"li"),n.EFF(32),n.nI1(33,"translate"),n.k0s(),n.j41(34,"li"),n.EFF(35),n.nI1(36,"translate"),n.k0s(),n.j41(37,"li"),n.EFF(38),n.nI1(39,"translate"),n.k0s(),n.j41(40,"li"),n.EFF(41),n.nI1(42,"translate"),n.k0s(),n.j41(43,"ul")(44,"li"),n.EFF(45),n.n
1I1(46,"translate"),n.k0s(),n.j41(47,"li"),n.EFF(48),n.nI1(49,"translate"),n.k0s(),n.j41(50,"ul")(51,"li"),n.EFF(52),n.nI1(53,"translate"),n.k0s(),n.j41(54,"li"),n.EFF(55),n.nI1(56,"translate"),n.k0s()()(),n.j41(57,"li"),n.EFF(58),n.nI1(59,"translate"),n.k0s()()()()),2&e&&(n.R7$(4),n.JRh(n.bMT(5,17,"SCANQRCODEGUIDETITLE")),n.R7$(4),n.JRh(n.bMT(9,19,"SCANQRCODEGUIDESTEP1")),n.R7$(3),n.JRh(n.bMT(12,21,"SCANQRCODEGUIDESTEP2")),n.R7$(3),n.JRh(n.bMT(15,23,"SCANQRCODEGUIDESTEP3")),n.R7$(3),n.JRh(n.bMT(18,25,"SCANQRCODEGUIDESTEP4")),n.R7$(3),n.SpI(" ",n.bMT(21,27,"SCANQRCODEGUIDEINFO")," "),n.R7$(5),n.JRh(n.bMT(26,29,"SCREENREADERGUIDETITLE")),n.R7$(3),n.SpI(" ",n.bMT(29,31,"SCREENREADERGUIDEINFO")," "),n.R7$(4),n.SpI(" ",n.bMT(33,33,"SCREENREADERGUIDESTEP1")," "),n.R7$(3),n.JRh(n.bMT(36,35,"SCREENREADERGUIDESTEP2")),n.R7$(3),n.JRh(n.bMT(39,37,"SCREENREADERGUIDESTEP3")),n.R7$(3),n.JRh(n.bMT(42,39,"SCREENREADERGUIDESTEP4")),n.R7$(4),n.JRh(n.bMT(46,41,"SCREENREADERGUIDESTEP4INNERSTEP1")),n.R7$(3),n.JRh(n.bMT(49,43,"SCREENREADERGUIDESTEP4INNERSTEP2")),n.R7$(4),n.JRh(n.bMT(53,45,"SCREENREADERGUIDESTEP4INNERSTEP2INNERSTEP1")),n.R7$(3),n.JRh(n.bMT(56,47,"SCREENREADERGUIDESTEP4INNERSTEP2INNERSTEP2")),n.R7$(3),n.SpI(" ",n.bMT(59,49,"SCREENREADERGUIDESTEP5")," "))}function H(e,o){if(1&e){const t=n.RV6();n.j41(0,"button",18),n.bIt("click",function(){n.eBV(t);const a=n.XpG(2);return n.Njj(a.openBankId())}),n.EFF(1),n.k0s()}if(2&e){const t=n.XpG(2);n.R7$(),n.JRh(t.deviceText)}}function Q(e,o){if(1&e){const t=n.RV6();n.j41(0,"div",0)(1,"div"),n.EFF(2),n.k0s(),n.DNE(3,L,8,10,"div",3)(4,J,2,0,"div",4),n.j41(5,"div",5),n.DNE(6,W,60,51,"mat-accordion",6)(7,H,2,1,"button",7),n.j41(8,"button",8),n.bIt("click",function(){n.eBV(t);const a=n.XpG();return n.Njj(a.cancel())}),n.EFF(9),n.nI1(10,"translate"),n.k0s()()()}if(2&e){const t=n.XpG();n.R7$(2),n.JRh(t.userMessage),n.R7$(),n.Y8G("ngIf",!t.showSpinner),n.R7$(),n.Y8G("ngIf",t.showSpinner),n.R7$(2),n.Y8G("ngIf",!t.showSpinner),n.R7$(),n.Y8G("ngIf",!t.showSpinner),n.R7$(2),n.JRh(n.bMT(10,6,"CANCEL"))}}let K=(()=>{class e{constructor(){this.openBankIdClicked=new n.bkB,this.cancelClicked=new n.bkB,this.extendTimeClicked=new n.bkB}cancel(){this.cancelClicked.emit()}openBankId(){this.openBankIdClicked.emit()}extendTime(){this.extendTimeClicked.emit()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=n.VBU({type:e,selectors:[["taiga-signing-bankid"]],inputs:{qrCode:"qrCode",userMe
1ssage:"userMessage",showSpinner:"showSpinner",deviceText:"deviceText",timeRemaingDisplay:"timeRemaingDisplay",timeRemainingpercentage:"timeRemainingpercentage",showExtendTimeButton:"showExtendTimeButton"},outputs:{openBankIdClicked:"openBankIdClicked",cancelClicked:"cancelClicked",extendTimeClicked:"extendTimeClicked"},standalone:!1,decls:5,vars:4,consts:[[1,"centered"],[1,"mat-headline-6"],["class","centered",4,"ngIf"],["class","qr-code-container","style","display: flex; flex-direction: column; align-items: center;",4,"ngIf"],["style","margin-top: 15px;",4,"ngIf"],[1,"centered",2,"max-width","340px"],[4,"ngIf"],["style","text-align: left; margin-top: 16px; width: 100%;","mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary",2,"text-align","left","margin-top","8px","width","100%",3,"click"],[1,"qr-code-container",2,"display","flex","flex-direction","column","align-items","center"],["width","160","height","160",2,"margin-top","15px",3,"src","alt"],["mode","determinate",3,"value"],[1,"time-remaining"],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",3,"click"],[2,"margin-top","15px"],[1,"mat-elevation-z0"],[1,""],["mat-raised-button","","color","primary",2,"text-align","left","margin-top","16px","width","100%",3,"click"]],template:function(i,a){1&i&&(n.j41(0,"div",0)(1,"div",1),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.DNE(4,Q,11,8,"div",2),n.k0s()),2&i&&(n.R7$(2),n.JRh(n.bMT(3,2,"SIGNWITHBANKID")),n.R7$(2),n.Y8G("ngIf",a.qrCode))},dependencies:[d.bT,C.$z,R.BS,R.GK,R.Z2,R.WN,U.HM,Y.t,b.D9],styles:[".centered[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.time-remaining[_ngcontent-%COMP%]{height:24px;margin:4px 0}[_nghost-%COMP%]     .mdc-linear-progress__bar-inner{border-color:var(--palette-primary-500)}"]})}}return e})();function z(e,o){if(1&e&&(n.j41(0,"div",9)(1,"div",10)(2,"span",11),n.EFF(3),n.k0s()(),n.j41(4,"div",12)(5,"span"),n.EFF(6),n.k0s(),n.j41(7,"span"),n.EFF(8),n.k0s()()()),2&e){const t=o.$implicit;n.R7$(3),n.SpI("",t.description," "),n.R7$(3),n.SpI("",t.value," "),n.R7$(2),n.JRh(t.unit)}}function Z(e,o){if(1&e){const t=n.RV6();n.j41(0,"button",17),n.nI1(1,"translate"),n.bIt("click",function(){n.eBV(t);const a=n.XpG(4);return n.Njj(a.getPdf())}),n.j41(2,"mat-icon",18),n.EFF(3,"picture_as_pdf"),n.k0s(),n.EFF(4),n.nI1(5,"translate"),n.k0s()}2&e&&(n.BMQ("aria-label",n.bMT(1,2,"DOWNLOADNOTICEASPDF")),n.R7$(4),n.SpI(" ",n.bMT(5,4,"DOWNLOADNOTICE")," "))}function q(e,o){if(1&e){const t=n.RV6();n.j41(0,"button",17),n.nI1(1,"translate"),n.bIt("click",function(){n.eBV(t);const a=n.XpG(4);return n.Njj(a.getPdf())}),n.j41(2,"mat-icon",18),n.EFF(3,"picture_as_pdf"),n.k0s(),n.EFF(4),n.nI1(5,"translate"),n.k0s()}2&e&&(n.BMQ("aria-label",n.bMT(1,2,"DOWNLOADKEYRECEIPTASPDF")),n.R7$(4),n.SpI(" ",n.bMT(5,4,"DOWNLOADKEYRECEIPT")," "))}function nn(e,o){if(1&e){const t=n.RV6();n.j41(0,"button",17),n.nI1(1,"translate"),n.bIt("click",function(){n.eBV(t);const a=n.XpG(4);return n.Njj(a.getPdf())}),n.j41(2,"mat-icon",18),n.EFF(3,"picture_as_pdf"),n.k0s(),n.EFF(4),n.nI1(5,"translate"),n.k0s()}2&e&&(n.BMQ("aria-label",n.bMT(1,2,"DOWNLOADERRANDASPDF")),n.R7$(4),n.SpI(" ",n.bMT(5,4,"DOWNLOADERRAND")," "))}function tn(e,o){if(1&e){const t=n.RV6();n.j41(0,"button",17),n.nI1(1,"translate"),n.bIt("click",function(){n.eBV(t);const a=n.XpG(4);return n.Njj(a.getPdf())}),n.j41(2,"mat-icon",18),n.EFF(3,"picture_as_pdf"),n.k0s(),n.EFF(4),n.nI1(5,"translate"),n.k0s()}2&e&&(n.BMQ("aria-label",n.bMT(1,2,"DOWNLOADCONTRACTASPDF")),n.R7$(4),n.SpI(" ",n.bMT(5,4,"DOWNLOADCONTRACT")," "))}function en(e,o){if(1&e){const t=n.RV6();n.j41(0,"button",17),n.nI1(1,"translate"),n.bIt("click",function(){n.eBV(t);const a=n.XpG(4);return n.Njj(a.getPdf())}),n.j41(2,"mat-icon",18),n.EFF(3,"picture_as_pdf"),n.k0s(),n.EFF(4),n.nI1(5,"translate"),n.k0s()}2&e&&(n.BMQ("aria-label",n.bMT(1,2,"DOWNLOADINSPECTIONREPORTASPDF")),n.R7$(4),n.SpI(" ",n.bMT(5,4,"DOWNLOADINSPECTIONREPORT")," "))}function an(e,o){if(1&e&&(n.j41(0,"div",13),n.qex(1,14),n.DNE(2,Z,6,6,"button",15)(3,q,6,6,"button",15)(4,nn,6,6,"button",15)(5,tn,6,6,"button",16)(6,en,6,6,"button",15),n.bVm(),n.k0s()),2&e){const t=n.XpG(3);n.R7$(),n.Y8G("ngSwitch",!0),n.R7$(),n.Y8G("ngSwitchCase","contractNotice"===t.signingsItem.type.id),n.R7$(),n.Y8G("ngSwitchCase","key"===t.signingsItem.type.id||"key.return"===t.signingsItem.type.id),n.R7$(),n.Y8G("ngSwitchCase","errand"===t.signingsItem.type.id),n.R7$(2),n.Y8G("ngSwitchCase","currentCustomer"===t.signingsItem.type.id||"comingCustomer"===t.signingsItem.type.id)}}function sn(e,o){1&e&&(n.j41(0,"div")(1,"div",22),n.EFF(2),n.nI1(3,"translate"),n.j41(4,"mat-icon",23),n.EFF(5,"done"),n.k0s()()()),2&e&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"SIGNED")," "))}function on(e,o){1&e&&(n.j41(0,"div")(1,"div",24),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&e&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"NOTSIGNED")," "))}function rn(e,o){1&e&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&e&&(n.R7$(),n.Sp
1I(" ",n.bMT(2,1,"IAGREETOKEYRECEIPT")," "))}function cn(e,o){1&e&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&e&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"IAGREETOCONTRACTNOTICE")," "))}function gn(e,o){1&e&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&e&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"IAGREETOERRAND")," "))}function ln(e,o){1&e&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&e&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"IAGREETOINSPECTIONREPORT")," "))}function dn(e,o){1&e&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&e&&(n.R7$(),n.JRh(n.bMT(2,1,"IAGREETOCONTRACT")))}function mn(e,o){if(1&e){const t=n.RV6();n.qex(0),n.j41(1,"div",26)(2,"mat-checkbox",27),n.mxI("ngModelChange",function(a){n.eBV(t);const r=n.XpG(6);return n.DH7(r.iHaveRead,a)||(r.iHaveRead=a),n.Njj(a)}),n.qex(3,14),n.DNE(4,rn,3,3,"span",28)(5,cn,3,3,"span",28)(6,gn,3,3,"span",28)(7,ln,3,3,"span",28)(8,dn,3,3,"span",29),n.bVm(),n.k0s()(),n.bVm()}if(2&e){const t=n.XpG(6);n.R7$(2),n.R50("ngModel",t.iHaveRead),n.R7$(),n.Y8G("ngSwitch",!0),n.R7$(),n.Y8G("ngSwitchCase","key"===t.signingsItem.type.id||"key.return"===t.signingsItem.type.id),n.R7$(),n.Y8G("ngSwitchCase","contractNotice"===t.signingsItem.type.id),n.R7$(),n.Y8G("ngSwitchCase","errand"===t.signingsItem.type.id),n.R7$(),n.Y8G("ngSwitchCase","currentCustomer"===t.signingsItem.type.id||"comingCustomer"===t.signingsItem.type.id)}}function pn(e,o){1&e&&n.nrm(0,"mat-icon",34)}function _n(e,o){if(1&e&&(n.j41(0,"button",32),n.EFF(1),n.nI1(2,"translate"),n.DNE(3,pn,1,0,"mat-icon",33),n.k0s()),2&e){const t=n.XpG().$implicit;n.AVh("bankid","digital"===t.type.id),n.Y8G("color","link"===t.type.id?"primary":""),n.R7$(),n.SpI(" ",n.bMT(2,5,"SIGN")," "),n.R7$(2),n.Y8G("ngIf","digital"===t.type.id)}}function un(e,o){1&e&&n.nrm(0,"mat-icon",34)}function fn(e,o){if(1&e){const t=n.RV6();n.j41(0,"button",35),n.bIt("click",function(){n.eBV(t);const a=n.XpG().$implicit,r=n.XpG(2).$implicit,g=n.XpG(4);return g.postSigningsItemParticipantsItemSignature(g.signingId,r.id,a.type.id),n.Njj(g.startTimer(5))}),n.EFF(1),n.nI1(2,"translate"),n.DNE(3,un,1,0,"mat-icon",33),n.k0s()}if(2&e){const t=n.XpG().$implicit,i=n.XpG(6);n.AVh("bankid","digital"===t.type.id),n.Y8G("color","link"===t.type.id?"primary":"")("disabled",!i.iHaveRead),n.R7$(),n.SpI(" ",n.bMT(2,6,"SIGN")," "),n.R7$(2),n.Y8G("ngIf","digital"===t.type.id)}}function hn(e,o){if(1&e&&(n.qex(0),n.DNE(1,_n,4,7,"button",30)(2,fn,4,8,"button",31),n.bVm()),2&e){const t=o.$implicit,i=n.XpG(6);n.R7$(),n.Y8G("ngIf",!i.iHaveRead&&("link"===t.type.id||"digital"===t.type.id)&&t.canSave),n.R7$(),n.Y8G("ngIf",i.iHaveRead&&("link"===t.type.id||"digital"===t.type.id)&&t.canSave)}}function vn(e,o){1&e&&(n.qex(0),n.j41(1,"div",36)(2,"mat-icon",37),n.EFF(3,"info"),n.k0s(),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.bVm()),2&e&&(n.R7$(4),n.SpI("",n.bMT(5,1,"MISSINGSIGNATUREMETHODS")," "))}function Sn(e,o){if(1&e&&(n.j41(0,"div"),n.DNE(1,mn,9,6,"ng-container",0),n.j41(2,"div",25),n.DNE(3,hn,3,2,"ng-container",8),n.k0s(),n.DNE(4,vn,6,3,"ng-container",0),n.k0s()),2&e){const t=n.XpG().$implicit,i=n.XpG().$implicit,a=n.XpG(3);n.R7$(),n.Y8G("ngIf",!a.signingsItem.status.selfCompleted&&a.showIAgree(t)),n.R7$(2),n.Y8G("ngForOf",t.signatureMethods),n.R7$(),n.Y8G("ngIf","kund"===(null==i||null==i.type||null==i.type.id?null:i.type.id.toLowerCase())&&a.missingSignatureMethods(t))}}function En(e,o){if(1&e&&(n.qex(0),n.j41(1,"mat-card",19)(2,"mat-card-content")(3,"div",20)(4,"div")(5,"div",21),n.EFF(6),n.k0s(),n.j41(7,"div"),n.EFF(8),n.k0s()(),n.DNE(9,sn,6,3,"div",0)(10,on,4,3,"div",0),n.k0s(),n.DNE(11,Sn,5,3,"div",0),n.k0s()(),n.bVm()),2&e){const t=o.$implicit,i=n.XpG().$implicit;n.R7$(6),n.SpI(" ",t.displayName,""),n.R7$(2),n.JRh(i.type.displayName),n.R7$(),n.Y8G("ngIf",t.completed),n.R7$(),n.Y8G("ngIf",!t.completed),n.R7$(),n.Y8G("ngIf",!t.completed)}}function In(e,o){if(1&e&&(n.qex(0),n.DNE(1,En,12,5,"ng-container",8),n.bVm()),2&e){const t=o.$implicit;n.R7$(),n.Y8G("ngForOf",t.participants)}}function bn(e,o){if(1&e&&(n.qex(0),n.j41(1,"mat-card",2)(2,"div",3)(3,"mat-card-title")(4,"div"),n.EFF(5),n.k0s()(),n.nrm(6,"taiga-pill-badge",4),n.k0s(),n.j41(7,"mat-card-content"),n.DNE(8,z,9,3,"div",5),n.nrm(9,"p",6),n.DNE(10,an,7,5,"div",7),n.k0s()(),n.DNE(11,In,2,1,"ng-container",8),n.bVm()),2&e){const t=n.XpG(2);n.R7$(5),n.SpI(" ",t.signingsItem.type.displayName," "),n.R7$(),n.HbH(t.getStatusClass()),n.FS9("text",t.getStatusText()),n.R7$(2),n.Y8G("ngForOf",t.signingsItem.presentation.keyFigures),n.R7$(),n.Y8G("innerText",t.signingsItem.document.text),n.R7$(),n.Y8G("ngIf",t.signingsItem.document.file),n.R7$(),n.Y8G("ngForOf",t.signingsItem.roles)}}function Rn(e,o){if(1&e){const t=n.RV6();n.qex(0),n.j41(1,"mat-card")(2,"taiga-signing-bankid",38),n.bIt("openBankIdClicked",function(){n.eBV(t);const a=n.XpG(2);return n.Njj(a.openBankId())})("cancelClicked",function(){n.eBV(t);const a=n.XpG(2);return n.Njj(a.cancel())})("extendTimeClicked",function(){n.eBV(t);const a=n.XpG(2);return n.Njj(a.extendTimer(5))}),n.k0s()(),n.bVm()}if(2&e){const t=n.XpG(2);n.R7$(2),n.Y8G("qrCode",t.qrCode)("showSpinner",t.showSpinner)("userMessage",t.userMe
1ssage)("timeRemaingDisplay",t.timeRemaingDisplay)("timeRemainingpercentage",t.timeRemainingpercentage)("showExtendTimeButton",t.showExtendTimeButton)("deviceText",t.deviceText)}}function Cn(e,o){if(1&e&&(n.j41(0,"div"),n.nrm(1,"taiga-medium-header",1),n.DNE(2,bn,12,9,"ng-container",0)(3,Rn,3,7,"ng-container",0),n.k0s()),2&e){const t=n.XpG();n.R7$(),n.Y8G("text",t.signingsItem.presentation.heading)("subText",t.signingsItem.status.description),n.R7$(),n.Y8G("ngIf",!t.processId),n.R7$(),n.Y8G("ngIf",t.processId)}}const Tn=[{path:"",component:(()=>{class e{constructor(){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=n.VBU({type:e,selectors:[["taiga-signings"]],standalone:!1,decls:2,vars:0,template:function(i,a){1&i&&(n.j41(0,"p"),n.EFF(1,"signings works!"),n.k0s())},styles:[".is-desktop[_ngcontent-%COMP%]{padding:30px}.is-mobile[_ngcontent-%COMP%]{padding:20px}"]})}}return e})()},{path:":id",component:(()=>{class e{constructor(t,i,a,r,g,Nn,On,$n,Gn,jn){this.signingService=t,this.mediaQueryService=i,this.route=a,this.translate=r,this.sanitizer=g,this.snackbarService=Nn,this.logService=On,this.matIconRegistry=$n,this.menuService=Gn,this.fileService=jn,this.iHaveRead=!1,this.pollInterval=2e3,this.cancelEvent=new S.B,this.completeEvent=new S.B,this.componentDestroyed=new S.B,this.timeRemainingpercentage="100",this.matIconRegistry.addSvgIcon("bankidLogo",this.sanitizer.bypassSecurityTrustResourceUrl("assets/img/bankid.svg")),document.getElementById("footer").style.display="block"}ngOnInit(){this.signingId=this.route.snapshot.paramMap.get("id"),this.getSigningsItem()}ngOnDestroy(){this.componentDestroyed.next(!0),this.componentDestroyed.complete(),this.timerInterval&&clearInterval(this.timerInterval),document.getElementById("footer").style.display="none"}getSigningsItem(){this.signingService.getSigningsItem(this.signingId).subscribe(t=>{this.signingsItem=t})}getPdf(){this.signingsItem.status.completed?this.signingService.getSigningsItemSignatureFile(this.signingId).pipe((0,m.W)(t=>{throw t})).subscribe(t=>{this.fileService.getBlobFromUrl(t.address).subscribe(i=>{if(i){const r=t.mimeType?.split("/").pop();this.fileService.saveBlobWithFilename(i,`${t.name}.${r}`)}})}):this.signingService.getSigningsItemDocumentFile(this.signingId).pipe((0,m.W)(t=>{throw t})).subscribe(t=>{this.fileService.getBlobFromUrl(t.address).subscribe(i=>{if(i){const r=t.mimeType?.split("/").pop();this.fileService.saveBlobWithFilename(i,`${t.name}.${r}`)}})})}postSigningsItemParticipantsItemSignature(t,i,a){this.signatureParams={id:t,participantId:i,type:a},this.signingService.postSigningsItemParticipantsItemSignature(t,i,a).subscribe(r=>{r.completed?(this.getSigningsItem(),this.menuService.refreshMenu(5e3)):r.process&&(this.processId=r.process.id,this.deviceText=r.process.openOnDeviceText,this.openOnDeviceUrl=r.process.openOnDeviceUrl,this.qrCode=this.sanitizer.bypassSecurityTrustResourceUrl(r.process.imageData),this.startPolling())})}getStatusClass(){return this.signingsItem.status.completed?"badge-success":this.signingsItem.status.pending?"badge-info":this.signingsItem.status.cancelled?"badge-warn":"badge-info"}getStatusText(){return this.translate.instant(this.signingsItem.status.completed?"FINISHED":this.signingsItem.status.pending?"PENDING":this.signingsItem.status.cancelled?"CANCELED":"UNKNOWN")}startPolling(){(0,_.O)(0,this.pollInterval).pipe((0,f.H)(t=>this.signingService.processes(this.processId))).pipe((0,h.Q)((0,M.h)(this.cancelEvent,this.completeEvent,this.componentDestroyed)),(0,m.W)(t=>(this.cancel(),(0,c.$)(t)))).subscribe(t=>{this.processResponse(t)})}processResponse(t){if(t)switch(this.showSpinner="userSign"===t.originalStatusCode,"userSign"===t.originalStatusCode&&(this.showSpinner=!0,clearInterval(this.timerInterval)),t.imageData&&(this.qrCode=this.sanitizer.bypassSecurityTrustResourceUrl(t.imageData)),t.status){case u.failed:"startFailed"===t.originalStatusCode?(this.userFailedMessage=t.message,this.cancelEvent.next(!0),this.postSigningsItemParticipantsItemSignature(this.signatureParams.id,this.signatureParams.participantId,this.signatureParam
1s.type)):(this.userMessage=t.message,this.cancel(),this.snackbarService.info(t.message));break;case u.pending:this.userMessage=t.message;break;case u.completed:this.userMessage=t.message,this.completeEvent.next(!0),this.completeEvent.complete(),this.processId=null,this.getSigningsItem(),this.menuService.refreshMenu(5e3)}}cancel(){this.cancelEvent.next(!0),this.signingService.processesDelete(this.processId).subscribe(),this.processId=null,this.qrCode=null,this.timerInterval&&(this.timeRemaingDisplay=null,clearInterval(this.timerInterval))}openBankId(){try{window.open(this.openOnDeviceUrl,"_parent")}catch(t){this.logService.error({isClientError:!0,message:"Failed to open BankId on device",stack:t.message}).subscribe(()=>{console.log(t)})}}showIAgree(t){return t?.signatureMethods?.filter(i=>i.canSave)?.length>0}missingSignatureMethods(t){return 0===t?.signatureMethods?.filter(i=>"digital"===i?.type.id||"link"===i?.type.id)?.length}startTimer(t){this.showExtendTimeButton=!1,this.totalSeconds=60*t,this.countDownDate=l()().add(t,"minutes"),this.timerInterval=setInterval(()=>{const i=l()(),a=l().duration(this.countDownDate.diff(i)),r=Math.ceil(a.asSeconds());if(r<=0)return clearInterval(this.timerInterval),this.snackbarService.info(this.userFailedMessage),void this.cancel();const g=Math.floor(a.asMinutes());g>=1?this.timeRemaingDisplay=`${g+1} ${g+1>1?this.translate.instant("MINUTES").toLowerCase():this.translate.instant("MINUTE").toLowerCase()} ${this.translate.instant("LEFT").toLowerCase()}`:(this.timeRemaingDisplay=`${r} ${1!==r?this.translate.instant("SECONDS").toLowerCase():this.translate.instant("SECOND").toLowerCase()} ${this.translate.instant("LEFT").toLowerCase()}`,r<31&&(this.showExtendTimeButton=!0)),this.timeRemainingpercentage=`${Math.round(r/this.totalSeconds*100)}`},1e3)}extendTimer(t){this.countDownDate=l()().add(t,"minutes"),this.totalSeconds=60*t,this.showExtendTimeButton=!1}static{this.\u0275fac=function(i){return new(i||e)(n.rXU(T.l),n.rXU(F.M),n.rXU(y.nX),n.rXU(b.c$),n.rXU(D.up),n.rXU(N.z),n.rXU(O.K),n.rXU($.M),n.rXU(j.$),n.rXU(w.E))}}static{this.\u0275cmp=n.VBU({type:e,selectors:[["taiga-signing"]],standalone:!1,decls:2,vars:5,consts:[[4,"ngIf"],[3,"text","subText"],[1,"sign-card"],[1,"card-title"],[3,"text"],["class","key-figure-container",4,"ngFor","ngForOf"],[1,"text-container",3,"innerText"],["class","document-button-container",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"key-figure-container"],[1,"key-figure-description"],[1,"mat-body-strong"],[1,"key-figure-value"],[1,"document-button-container"],[3,"ngSwitch"],["mat-raised-button","","color","primary","class","pdf-button","data-mom-test","MinaSidor_Signering_PDF",3,"click",4,"ngSwitchCase"],["mat-raised-button","","color","primary","class","pdf-button","data-mom-test","MinaSidor_Signering_PDF",3,"click",4,"ngSwitchDefault"],["mat-raised-button","","color","primary","data-mom-test","MinaSidor_Signering_PDF",1,"pdf-button",3,"click"],[1,"pdf-icon"],["data-mom-test","MinaSidor_SigneringspartKort",1,"participant-card"],[1,"participant-container"],["data-mom-test","MinaSidor_Signering_SigneringspartNamn",1,"mat-body-strong"],["data-mom-test","MinaSidor_Signering_SigneringspartStatusSignerat",1,"completed-container"],["color","primary",1,"icon"],["data-mom-test","MinaSidor_Signering_SigneringspartStatusEjSignerat",1,"completed-container"],[1,"methods-buttons-container"],[1,"checkbox-container"],["color","primary","data-mom-test","MinaSidor_Signering_SigneringspartGodk\xe4nnanderuta",1,"",3,"ngModelChange","ngModel"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","sign-button","mat-raised-button","","disabled","",3,"bankid","color",4,"ngIf"],["class","sign-button","mat-raised-button","","data-mom-test","MinaSidor_Signering_SigneringspartSigneraknapp",3,"bankid","color","disabled","click",4,"ngIf"],["mat-raised-button","","disabled","",1,"sign-button",3,"color"],["class","bankid-logo","svgIcon","bankidLogo",4,"ngIf"],["svgIcon","bankidLogo",1,"bankid-logo"],["mat-raised-button","","data-mom-test","MinaSidor_Signering_SigneringspartSigneraknapp",1,"sign-button",3,"click","color","disabled"],[1,"missing-signature-methods-container"],["color","primary",1,"info-icon"],[3,"openBankIdClicked","cancelClicked","extendTimeClicked","qrCode","showSpinner","userMessage","timeRemaingDisplay","timeRemainingpercentage","showExtendTimeButton","deviceText"]],template:function(i,a){1&i&&(n.j41(0,"div"),n.DNE(1,Cn,4,4,"div",0),n.k0s()),2&i&&(n.AVh("is-mobile",a.mediaQueryService.isMobile())("is-desktop",!a.mediaQueryService.isMobile()),n.R7$(),n.Y8G("ngIf",a.signingsItem))},dependencies:[d.Sq,d.bT,d.ux,d.e1,d.fG,B.Y,G.An,C.$z,p.RN,p.m2,p.dh,P.So,x.BC,x.vS,A.o,K,b.D9],styles:[".is-desktop[_ngcontent-%COMP%]{padding:30px}.is-mobile[_ngcontent-%COMP%]{padding:20px}.text-container[_ngcontent-%COMP%]{word-break:break-word;margin-top:10px}.sign-card[_ngcontent-%COMP%]{margin-bottom:20px}.participant-card[_ngcontent-%COMP%]{margin-bottom:5px}.methods-buttons-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:15px}.is-desktop[_ngcontent-%COMP%]   .methods-buttons-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(:first-of-type){margin-left:5px}.participant-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.participant-container[_ngcontent-%COMP%]:not(:first-of-type){margin-top:15px}.completed-container[_ngcontent-%COMP%]{align-items:center;display:flex}.icon[_ngcontent-%COMP%]{margin-left:5px}.document-button-container[_ngcontent-%COMP%]{display:flex;align-items:center}.is-mobile[_ngcontent-%COMP%]   .sign-button[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]   .pdf-button[_ngcontent-%COMP%]{width:100%}.is-mobile[_ngcontent-%COMP%]   .key-figure-value[_ngcontent-%COMP%]{flex:1}.is-desktop[_ngcontent-%COMP%]   .key-figure-value[_ngcontent-%COMP%]{flex:4}.key-figure-container[_ngcontent-%COMP%]{display:flex}.key-figure-description[_ngcontent-%COMP%]{flex:1}.checkbox-container[_ngcontent-%COMP%]{margin-top:15px}.card-title[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.pdf-icon[_ngcontent-%COMP%]{margin-right:10px}.missing-signature-methods-container[_ngcontent-%COMP%]{margin-top:15px;
1display:flex;align-items:center}.info-icon[_ngcontent-%COMP%]{margin-right:10px}.bankid-logo[_ngcontent-%COMP%]{margin-left:10px;margin-bottom:2px;transform:scale(2)}.methods-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center}"]})}}return e})(),title:"SIGNING"}];let xn=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=n.$C({type:e})}static{this.\u0275inj=n.G2t({imports:[v.iI.forChild(Tn),v.iI]})}}return e})();const kn=e=>["/signings",e];function Mn(e,o){if(1&e&&(n.j41(0,"mat-card",1)(1,"mat-card-title"),n.EFF(2),n.k0s(),n.j41(3,"mat-card-subtitle",2),n.EFF(4),n.k0s(),n.j41(5,"mat-card-content")(6,"p"),n.EFF(7),n.k0s(),n.j41(8,"mat-card-actions",3)(9,"button",4),n.EFF(10),n.nI1(11,"translate"),n.k0s()()()()),2&e){const t=o.$implicit;n.R7$(2),n.JRh(null==t.presentation?null:t.presentation.heading),n.R7$(2),n.JRh(null==t.presentation?null:t.presentation.subject),n.R7$(3),n.SpI(" ",null==t||null==t.status?null:t.status.description," "),n.R7$(2),n.Y8G("routerLink",n.eq3(7,kn,t.id)),n.R7$(),n.JRh(n.bMT(11,5,"SIGN"))}}let Fn=(()=>{class e{constructor(t){this.signingService=t}ngOnInit(){this.signingService.getSignings().subscribe(t=>{this.signings=t})}static{this.\u0275fac=function(i){return new(i||e)(n.rXU(T.l))}}static{this.\u0275cmp=n.VBU({type:e,selectors:[["taiga-signings-messages"]],standalone:!1,decls:1,vars:1,consts:[["class","signing-message-card","data-mom-test","MinaSidor_Hemsk\xe4rm_SigneraKort",4,"ngFor","ngForOf"],["data-mom-test","MinaSidor_Hemsk\xe4rm_SigneraKort",1,"signing-message-card"],["data-mom-test","MinaSidor_Hemsk\xe4rm_SigneraAdress"],[1,"card-actions"],["mat-raised-button","","color","primary","data-mom-test","MinaSidor_Hemsk\xe4rm_SigneraKnapp",3,"routerLink"]],template:function(i,a){1&i&&n.DNE(0,Mn,12,9,"mat-card",0),2&i&&n.Y8G("ngForOf",null==a.signings?null:a.signings.items)},dependencies:[d.Sq,v.Wk,C.$z,p.RN,p.YY,p.m2,p.Lc,p.dh,b.D9],styles:[".card-actions[_ngcontent-%COMP%]{margin:0;padding:0}.signing-message-card[_ngcontent-%COMP%]{margin:10px 0}"]})}}return e})();var yn=s(5974);let Dn=(()=>{class e{static{this.components={SigningsMessagesComponent:Fn}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=n.$C({type:e})}static{this.\u0275inj=n.G2t({imports:[d.MD,xn,yn.G]})}}return e})()}}]);

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.