PageSourceSearch

https://minasidor.k2a.se/972.a2a22602ece86226.js

js k2a.se collected 2026-10-02 06:20:48 UTC 41,158 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktaiga=self.webpackChunktaiga||[]).push([[972],{7972(U,F,o){o.d(F,{ErrandModule:()=>et});var f=o(2200),x=o(8132),T=o(1336),h=o(7586),M=o.n(h),c=o(9437),e=o(3664),s=o(2615),v=o(7705),E=o(2043),u=o(8793),m=o(1715),R=o(1580),O=o(5665),Y=o(1997),y=o(9213),j=o(2598),p=o(5596),S=o(3013),w=o(7201),k=o(4317),L=o(8709),H=o(6090),P=o(9338),Q=o(7456),_=o(8018),z=o(2591),I=o(8834),$=o(100),b=o(9588),D=o(7403),g=o(9417),W=o(1517),B=o(3881),J=o(455);const K=["editInput"],Z=()=>({standalone:!0}),q=i=>({invalidChars:i});function ee(i,l){if(1&i&&(e.j41(0,"div",3),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.JRh(t.senderDisplayName)}}function te(i,l){if(1&i){const t=e.RV6();e.j41(0,"div",9,0),e.bIt("click",function(){s.eBV(t);const a=e.sdS(1);return s.Njj(a.toggle())}),e.EFF(2),e.nI1(3,"translate"),e.k0s()}if(2&i){const t=e.XpG();e.Y8G("matTooltip",t.formatDateAndTime(t.message.changed)),e.R7$(2),e.SpI(" ",e.bMT(3,2,"EDITED")," ")}}function ne(i,l){if(1&i){const t=e.RV6();e.j41(0,"div",10),e.bIt("focus",function(){s.eBV(t);const a=e.XpG();return s.Njj(a._showEditButton())})("focusout",function(){s.eBV(t);const a=e.XpG();return s.Njj(a.hideEditButton())}),e.k0s()}if(2&i){const t=e.XpG();e.AVh("chip-primary",t.message.self)("chip-secondary",!t.message.self),e.Y8G("innerText",t.message.body)}}function ae(i,l){if(1&i){const t=e.RV6();e.j41(0,"button",13),e.nI1(1,"translate"),e.bIt("focus",function(){s.eBV(t);const a=e.XpG(2);return s.Njj(a._showEditButton())})("focusout",function(){s.eBV(t);const a=e.XpG(2);return s.Njj(a.hideEditButton())})("click",function(){s.eBV(t);const a=e.XpG(2);return s.Njj(a.toggleEdit())}),e.j41(2,"mat-icon"),e.EFF(3,"edit"),e.k0s()()}if(2&i){const t=e.XpG(2);e.AVh("hide-edit-button",!t.showEditButton),e.BMQ("aria-label",e.bMT(1,5,"EDITMESSAGE")),e.R7$(2),e.AVh("hide-edit-button",!t.showEditButton)}}function ie(i,l){if(1&i){const t=e.RV6();e.j41(0,"button",14),e.nI1(1,"translate"),e.bIt("focus",function(){s.eBV(t);const a=e.XpG(2);return s.Njj(a._showEditButton())})("focusout",function(){s.eBV(t);const a=e.XpG(2);return s.Njj(a.hideEditButton())})("click",function(){s.eBV(t);const a=e.XpG(2);return s.Njj(a.deleteClicked.emit(a.message.id))}),e.j41(2,"mat-icon"),e.EFF(3,"delete"),e.k0s()()}if(2&i){const t=e.XpG(2);e.AVh("hide-edit-button",!t.showEditButton),e.BMQ("aria-label",e.bMT(1,5,"DELETEMESSAGE")),e.R7$(2),e.AVh("hide-edit-button",!t.showEditButton)}}function se(i,l){if(1&i&&(e.nVh(0,ae,4,7,"button",11),e.nVh(1,ie,4,7,"button",12)),2&i){const t=e.XpG();e.vxM(t.editMessage?-1:0),e.R7$(),e.vxM(t.editMessage?-1:1)}}function re(i,l){1&i&&(e.j41(0,"button",17),e.nI1(1,"translate"),e.j41(2,"mat-icon"),e.EFF(3,"picture_as_pdf"),e.k0s()(),e.j41(4,"span"),e.EFF(5),e.nI1(6,"translate"),e.k0s()),2&i&&(e.BMQ("aria-label",e.bMT(1,2,"PDFDOCUMENT")),e.R7$(5),e.JRh(e.bMT(6,4,"PDFDOCUMENT")))}function oe(i,l){1&i&&(e.j41(0,"button",17),e.nI1(1,"translate"),e.j41(2,"mat-icon"),e.EFF(3,"image"),e.k0s()(),e.j41(4,"span"),e.EFF(5),e.nI1(6,"translate"),e.k0s()),2&i&&(e.BMQ("aria-label",e.bMT(1,2,"IMAGE")),e.R7$(5),e.JRh(e.bMT(6,4,"IMAGE")))}function le(i,l){1&i&&(e.j41(0,"button",17),e.nI1(1,"translate"),e.j41(2,"mat-icon"),e.EFF(3,"attachment"),e.k0s()(),e.j41(4,"span"),e.EFF(5),e.nI1(6,"translate"),e.k0s()),2&i&&(e.BMQ("aria-label",e.bMT(1,2,"FILE")),e.R7$(5),e.JRh(e.bMT(6,4,"FILE")))}function de(i,l){if(1&i){const t=e.RV6();e.j41(0,"div",16),e.bIt("click",function(){const a=s.eBV(t).$implicit,r=e.XpG(2);return s.Njj(r.downloadFile(a.id,a.contentType))}),e.nVh(1,re,7,6)(2,oe,7,6)(3,le,7,6),e.k0s()}if(2&i){let t;const n=l.$implicit;e.R7$(),e.vxM((t=!0)==("application/pdf"===n.contentType)?1:t===("image/jpeg"===n.contentType||"image/bmp"===n.contentType||"image/png"===n.contentType||"image/gif"===n.contentType)?2:3)}}function ce(i,l){if(1&i&&(e.j41(0,"div",8),e.Z7z(1,de,4,1,"div",15,e.fX1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Dyx(t.message.attachments)}}function me(i,l){if(1&i){const t=e.RV6();e.j41(0,"div")(1,"div")(2,"mat-form-field",18),e.nrm(3,"textarea",19,1),e.j41(6,"mat-error"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()(),e.j41(9,"div",20)(10,"button",21),e.nI1(11,"translate"),e.bIt("click",function(){s.eBV(t);const a=e.XpG();
1return a.patchClicked.emit({id:a.message.id,body:a.editInputRef.nativeElement.value}),a.toggleEdit(),s.Njj(a.hideEditButton())}),e.j41(12,"mat-icon"),e.EFF(13,"done"),e.k0s()(),e.j41(14,"button",22),e.nI1(15,"translate"),e.nI1(16,"translate"),e.bIt("click",function(){s.eBV(t);const a=e.XpG();return s.Njj(a.toggleEdit())}),e.j41(17,"mat-icon"),e.EFF(18,"close"),e.k0s()()()()}if(2&i){const t=e.sdS(5),n=e.XpG();e.R7$(3),e.Y8G("ngModel",n.message.body)("ngModelOptions",e.lJ4(16,Z)),e.R7$(4),e.JRh(e.i5U(8,7,"INVALIDCHARACTERS",e.eq3(17,q,null==t.errors||null==t.errors.allowedCharacters?null:t.errors.allowedCharacters.invalidChars))),e.R7$(3),e.Y8G("disabled",t.hasError("allowedCharacters")),e.BMQ("aria-label",e.bMT(11,10,"SAVEEDITEDMESSAGE")),e.R7$(4),e.BMQ("aria-label",e.bMT(15,12,"DELETEMESSAGE"))("aria-label",e.bMT(16,14,"CLOSEEDITMESSAGE"))}}let pe=(()=>{class i{constructor(t,n,a){this.errandService=t,this.translate=n,this.fileService=a,this.loadMoreMessages=new e.bkB,this.deleteClicked=new e.bkB,this.patchClicked=new e.bkB}ngOnInit(){this.senderDisplayName=this.message.companyDisplayName??this.message.customerDisplayName??this.orgDisplayName}formatDate(t){const n=M()(t);return n.isSame(Date.now(),"day")?n.format("HH:mm"):n.isSame(Date.now(),"week")?n.format("dddd HH:mm"):n.format("YYYY-MM-DD HH:mm")}formatDateAndTime(t){return M()(t).format("YYYY-MM-DD HH:mm")}downloadFile(t,n){this.errandService.getErrandsGeneralItemMessageItemAttachementItemFile(t).subscribe(a=>{const r=n?.split("/").pop(),d=`${this.translate.instant("ATTACHMENT")}.${r}`;this.fileService.saveBlobWithFilename(a,d)})}toggleEdit(){this.editMessage=!this.editMessage}_showEditButton(){this.showEditButton=!0}hideEditButton(){this.showEditButton=!1}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(m.Q),e.rXU(_.c$),e.rXU(R.E))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["taiga-errand-message"]],viewQuery:function(n,a){if(1&n&&e.GBs(K,5),2&n){let r;e.mGM(r=e.lsd())&&(a.editInputRef=r.first)}},inputs:{message:"message",orgDisplayName:"orgDisplayName"},outputs:{loadMoreMessages:"loadMoreMessages",deleteClicked:"deleteClicked",patchClicked:"patchClicked"},standalone:!1,decls:12,vars:10,consts:[["tooltip","matTooltip"],["editInput","","editModel","ngModel"],[1,"message-container"],[1,"username"],[1,"created-date",3,"click","matTooltip"],[1,"edited",3,"matTooltip"],[1,"chip-container",3,"mouseenter","mouseleave"],["tabindex","0","data-mom-test","MyPages_MyErrands_Errand_MessageChip",1,"chip",3,"chip-primary","chip-secondary","innerText"],[1,"download-file-container"],[1,"edited",3,"click","matTooltip"],["tabindex","0","data-mom-test","MyPages_MyErrands_Errand_MessageChip",1,"chip",3,"focus","focusout","innerText"],["mat-icon-button","","color","primary","data-mom-test","MyPages_ErrandMessage_EditButton",1,"edit-button",3,"hide-edit-button"],["mat-icon-button","","color","primary","data-mom-test","MyPages_ErrandMessage_DeleteButton",1,"edit-button",3,"hide-edit-button"],["mat-icon-button","","color","primary","data-mom-test","MyPages_ErrandMessage_EditButton",1,"edit-button",3,"focus","focusout","click"],["mat-icon-button","","color","primary","data-mom-test","MyPages_ErrandMessage_DeleteButton",1,"edit-button",3,"focus","focusout","click"],["data-mom-test","MyPages_MyErrands_MessageFile",1,"download-file-button-container"],["data-mom-test","MyPages_MyErrands_MessageFile",1,"download-file-button-container",3,"click"],["mat-icon-button","","color","primary"],[1,"form-field",2,"padding-top","0"],["matInput","","cdkTextareaAutosize","","taigaAllowedCharacters","","autocomplete","off",2,"margin-top","0",3,"ngModel","ngModelOptions"],[2,"display","flex","justify-content","flex-end","margin-top","-20px"],["mat-icon-button","","color","primary","data-mom-test","MyPages_ErrandMessage_SaveEditButton",1,"edit-button",3,"click","disabled"],["mat-icon-button","","color","primary",1,"edit-button",3,"click"]],template:function(n,a){if(1&n){const r=e.RV6();e.j41(0,"div",2)(1,"div"),e.nVh(2,ee,2,1,"div",3),e.j41(3,"div",4,0),e.bIt("click",function(){s.eBV(r);const C=e.sdS(4);return s.Njj(C.toggle())}),e.EFF(5),e.k0s(),e.nVh(6,te,4,4,"div",5),e.j41(7,"div",6),e.bIt("mouseenter",function(){return s.eBV(r),s.Njj(a._showEditButton())})("mouseleave",function(){return s.eBV(r),s.Njj(a.hideEditButton())}),e.nVh(8,ne,1,5,"div",7),e.nVh(9,se,2,2),e.k0s(),e.nVh(10,ce,3,0,"div",8),e.k0s()(),e.nVh(11,me,19,19,"div")}2&n&&(e.AVh("self-message",a.message.self),e.R7$(2),e.vxM(a.message.self?-1:2),e.R7$(),e.Y8G("matTooltip",a.formatDateAndTime(a.message.created)),e.R7$(2),e.SpI(" ",a.formatDate(a.message.created)," "),e.R7$(),e.vxM(a.message.changed?6:-1),e.R7$(2),e.vxM(a.editMessage?-1:8),e.R7$(),e.vxM(a.message.self?9:-1),e.R7$(),e.vxM(a.message.attachments&&a.message.attachments.length>0?10:-1),e.R7$(),e.vxM(a.editMessage?11:-1))},dependencies:[y.An,j.iY,$.fg,b.rl,b.TL,D.xb,J.oV,g.me,g.BC,g.vS,B.S,_.D9],styles:[".message-container[_ngcontent-%COMP%]{display:flex;margin-top:20px}.chip-container[_ngcontent-%COMP%]{display:flex;align-items:center}.self-message[_ngcontent-%COMP%]{justify-content:flex-end}.self-message[_ngcontent-%COMP%]   .created-date[_ngcontent-%COMP%], .self-message[_ngcontent-%COMP%]   .username[_ngcontent-%COMP%], .self-message[_ngcontent-%COMP%]   .edited[_ngcontent-%COMP%]{text-align:end}.self-message[_ngcontent-%COMP%]   .chip-container[_ngcontent-%COMP%]{justify-content:flex-end}.form-field[_ngcontent-%COMP%]{width:100%}.create-message-container[_ngcontent-%COMP%]{margin-top:50px}.chip[_ngcontent-%COMP%]{display:inline-flex;border-radius:16px;padding:7px 12px;font-size:.875rem;line-height:1.125rem}.send-message-button[_ngcontent-%COMP%]{margin-left:15px}.download-file-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.download-file-button-container[_ngcontent-%COMP%]{display:flex;align-items:center;font-weight:500;cursor:pointer}.load-more[_ngcontent-%COMP%]{display:flex;margin-top:10px;align-items:center;height:36px}.load-more-button[_ngcontent-%COMP%], .spinner[_ngcontent-%COMP%]{margin:0 auto}.send-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.edit-button[_ngcontent-%COMP%]{transition:width .3s ease}.hide-edit-button[_ngcontent-%COMP%]{width:0px!important;padding:0}.hide[_ngcontent-%COMP%]{display:none}.chip-secondary[_ngcontent-%COMP%]{margin-top:7px}.edited[_ngcontent-%COMP%]{font-style:italic}.chip-primary[_ngcontent-%COMP%]{color:var(--mat-sys-on-primary);background-color:var(--mat-sys-primary)}.chip-secondary[_ngcontent-%COMP%]{background-color:var(--mat-sys-surface-container-high)}"]})}}return i})();const ue=()=>({standalone:!0}),ge=i=>({invalidChars:i});function _e(i,l){if(1&i){const t=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){s.eBV(t);const a=e.XpG();return s.Njj(a.loadMore())}),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"mat-icon",2),e.EFF(4,"history"),e.k0s()()}2&i&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"LOADMORE")," "))}function fe(i,l){1&i&&(e.j41(0,"div",4),e.nrm(1,"taiga-spinner",7),e.k0s()),2&i&&(e.R7$(),e.Y8G("diameter",36))}function he(i,l){if(1&i){const t=e.RV6();e.j41(0,"taiga-errand-message",8),e.bIt("deleteClicked",function(a){s.eBV(t);const r=e.XpG();
1return s.Njj(r.deleteMessage(a))})("patchClicked",function(a){s.eBV(t);const r=e.XpG();return s.Njj(r.patchMessage(a))}),e.k0s()}if(2&i){const t=l.$implicit,n=e.XpG();e.Y8G("message",t)("orgDisplayName",n.orgDisplayName)}}function Me(i,l){if(1&i){const t=e.RV6();e.j41(0,"form")(1,"div",9)(2,"mat-form-field",10)(3,"mat-label"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"textarea",11,0),e.j41(9,"mat-error"),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.j41(12,"div",12)(13,"taiga-file-upload",13),e.bIt("fileLoaded",function(){s.eBV(t);const a=e.XpG();return s.Njj(a.fileLoaded())}),e.k0s(),e.j41(14,"button",14),e.bIt("click",function(){s.eBV(t);const a=e.sdS(7),r=e.XpG();return s.Njj(r.sendMessage(a))}),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()}if(2&i){const t=e.sdS(7),n=e.sdS(8);e.R7$(4),e.JRh(e.bMT(5,5,"WRITEAMESSAGE")),e.R7$(2),e.Y8G("ngModelOptions",e.lJ4(12,ue)),e.R7$(4),e.JRh(e.i5U(11,7,"INVALIDCHARACTERS",e.eq3(13,ge,null==n.errors||null==n.errors.allowedCharacters?null:n.errors.allowedCharacters.invalidChars))),e.R7$(4),e.Y8G("disabled",!t.value||n.hasError("allowedCharacters")),e.R7$(),e.SpI(" ",e.bMT(16,10,"SEND")," ")}}let Ce=(()=>{class i{constructor(t,n,a,r,d){this.errandService=t,this.appConfigService=n,this.fileService=a,this.translate=r,this.dialog=d,this.messageSend=new e.bkB,this.loadMoreMessages=new e.bkB,this.orgDisplayName=this.appConfigService.orgDisplayName}ngOnChanges(){if(this.errandsGeneralItemMessage?.items)for(const t of this.errandsGeneralItemMessage?.items)!t.self&&t.id&&!t.read&&this.setMarkedAsRead(t.id)}formatDate(t){const n=M()(t);return n.isSame(Date.now(),"day")?n.format("HH:mm"):n.isSame(Date.now(),"week")?n.format("dddd HH:mm"):n.format("YYYY-MM-DD HH:mm")}formatDateAndTime(t){return M()(t).format("YYYY-MM-DD HH:mm")}sendMessage(t){this.canCreateMessages&&this.id&&t.value&&this.errandService.putErrandsGeneralItemMessageItem(this.id,t.value).subscribe(n=>{if(t.value=null,this.fileUpload?.anyFiles?.length>0&&n?.id)for(const a of this.fileUpload?.anyFiles)this.errandService.putErrandsGeneralItemMessagesItemAttachement(n.id,a.file.name,this.removeBase64Marker(a.src)).pipe((0,c.W)(r=>{throw 0===this.fileUpload?.anyFiles.indexOf(a)&&this.loadMoreMessages.emit({offset:0,limit:1,sent:!0}),r})).subscribe(()=>{0===this.fileUpload?.anyFiles.indexOf(a)&&(this.fileUpload.anyFiles=[],this.loadMoreMessages.emit({offset:0,limit:1,sent:!0}))});else this.loadMoreMessages.emit({offset:0,limit:1,sent:!0})})}downloadFile(t,n){this.errandService.getErrandsGeneralItemMessageItemAttachementItemFile(t).subscribe(a=>{const r=n?.split("/").pop(),d=`${this.translate.instant("ATTACHMENT")}.${r}`;this.fileService.saveBlobWithFilename(a,d)})}loadMore(){this.loadMoreMessages.emit({offset:this.errandsGeneralItemMessage.items.length,limit:4,sent:!1})}setMarkedAsRead(t){this.errandService.patchErrandsGeneralItemMessageItemRead(t).subscribe(n=>{console.log(n)})}fileLoaded(){window.scrollTo(0,document.body.scrollHeight)}removeBase64Marker(t){const a=t.indexOf(";base64,")+8;return t.substring(a)}deleteMessage(t){this.dialog.open(L.w,{data:{heading:null,text:this.translate.instant("CONFIRMDELETEMESSAGE"),dialogChoices:H.$.YesNo},scrollStrategy:new P.t0,ariaLabel:this.translate.instant("CONFIRMDELETEMESSAGE"),autoFocus:!1}).afterClosed().subscribe(a=>{"yes"===a&&this.errandService.deleteErrandsItemMessagesItem(t).subscribe(()=>{this.errandsGeneralItemMessage.items.splice(this.errandsGeneralItemMessage.items.indexOf(this.errandsGeneralItemMessage.items.find(r=>r.id===t)),1)})})}patchMessage(t){this.errandService.patchErrandsGeneralItemMessageItemBody(t.id,t.body).subscribe(()=>{let n=this.errandsGeneralItemMessage.items.find(a=>a.id===t.id);n.body=t.body,n.changed=new Date})}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(m.Q),e.rXU(Q.R),e.rXU(R.E),e.rXU(_.c$),e.rXU(z.bZ))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["taiga-errand-messages"]],viewQuery:function(n,a){if(1&n&&e.GBs(k.P,5),2&n){let r;e.mGM(r=e.lsd())&&(a.fileUpload=r.first)}},inputs:{errandsGeneralItemMessage:"errandsGeneralItemMessage",id:"id",showSpinner:"showSpinner",showLoadMore:"showLoadMore",canCreateMessages:"canCreateMessages"},outputs:{messageSend:"messageSend",loadMoreMessages:"loadMoreMessages"},standalone:!1,features:[e.OA$],decls:9,vars:6,consts:[["messageInput","","msgModel","ngModel"],[1,"load-more"],["color","primary"],["mat-button","","data-mom-test","MyPages_MyErrands_Errand_LoadMore",1,"load-more-button"],[1,"spinner"],[3,"message","orgDisplayName"],["mat-button","","data-mom-test","MyPages_MyErrands_Errand_LoadMore",1,"load-more-button",3,"click"],[3,"diameter"],[3,"deleteClicked","patchClicked","message","orgDisplayName"],[1,"create-message-container"],[1,"form-field"],["matInput","","cdkTextareaAutosize","","ngModel","","taigaAllowedCharacters","","data-mom-test","MyPages_MyErrands_Errand_WriteMessage","autocomplete","off",3,"ngModelOptions"],[1,"send-container"],["accept",".pdf, .jpeg, .jpg, .png, .bmp, .gif",3,"fileLoaded"],["matButton","filled","data-mom-test","MyPages_MyErrands_Errand_SendMessage",1,"send-message-button",3,"click","disabled"]],template:function(n,a){1&n&&(e.j41(0,"div",1)(1,"mat-icon",2),e.nI1(2,"translate"),e.EFF(3,"question_answer"),e.k0s(),e.nVh(4,_e,5,3,"button",3),e.nVh(5,fe,2,1,"div",4),e.k0s(),e.Z7z(6,he,1,2,"taiga-errand-message",5,e.fX1),e.nVh(8,Me,17,15,"form")),2&n&&(e.R7$(),e.BMQ("aria-label",e.bMT(2,4,"CONVERSATION")),e.R7$(3),e.vxM(!a.showSpinner&&a.showLoadMore?4:-1),e.R7$(),e.vxM(a.showSpinner?5:-1),e.R7$(),e.Dyx(null==a.errandsGeneralItemMessage?null:a.errandsGeneralItemMessage.items),e.R7$(2),e.vxM(a.canCreateMessages?8:-1))},dependencies:[y.An,I.$z,$.fg,b.rl,b.nJ,b.TL,D.xb,g.qT,g.me,g.BC,g.cb,g.vS,g.cV,k.P,W.t,B.S,pe,_.D9],styles:[".message-container[_ngcontent-%COMP%]{display:flex;margin-top:20px}.chip-container[_ngcontent-%COMP%]{display:flex}
1.self-message[_ngcontent-%COMP%]{justify-content:flex-end}.self-message[_ngcontent-%COMP%]   .created-date[_ngcontent-%COMP%], .self-message[_ngcontent-%COMP%]   .username[_ngcontent-%COMP%]{text-align:end}.self-message[_ngcontent-%COMP%]   .chip-container[_ngcontent-%COMP%]{justify-content:flex-end}.form-field[_ngcontent-%COMP%]{width:100%}.create-message-container[_ngcontent-%COMP%]{margin-top:50px}.chip[_ngcontent-%COMP%]{display:inline-flex;border-radius:16px;padding:7px 12px;font-size:.875rem;line-height:1.125rem}.send-message-button[_ngcontent-%COMP%]{margin-left:15px}.download-file-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.download-file-button-container[_ngcontent-%COMP%]{display:flex;align-items:center;font-weight:500;cursor:pointer}.load-more[_ngcontent-%COMP%]{display:flex;margin-top:10px;align-items:center;height:36px}.load-more-button[_ngcontent-%COMP%], .spinner[_ngcontent-%COMP%]{margin:0 auto}.send-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}"]})}}return i})();function ve(i,l){if(1&i&&(e.j41(0,"div",5),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Lme("",e.bMT(2,2,"ARRIVED")," ",t.formatDate(t.errand.status.created))}}function Ee(i,l){if(1&i&&(e.j41(0,"div")(1,"div",11),e.EFF(2),e.k0s(),e.nrm(3,"div",12),e.k0s()),2&i){const t=e.XpG().$implicit,n=e.XpG(2);e.R7$(2),e.SpI(" ",n.getDisplayName(n.errand.type.id,t.key)," "),e.R7$(),e.Y8G("innerText",t.value)}}function ye(i,l){if(1&i){const t=e.RV6();e.j41(0,"div",10)(1,"div",13),e.bIt("click",function(){s.eBV(t);const a=e.XpG().$implicit,r=e.XpG(2);return s.Njj(r.downloadFile(r.errand.id,a.value))}),e.j41(2,"button",14)(3,"mat-icon"),e.EFF(4,"attachment"),e.k0s()(),e.j41(5,"span"),e.EFF(6),e.k0s()()()}if(2&i){const t=e.XpG().$implicit,n=e.XpG(2);e.R7$(2),e.BMQ("aria-label",n.getDisplayName(n.errand.type.id,t.key)),e.R7$(4),e.JRh(n.getDisplayName(n.errand.type.id,t.key))}}function be(i,l){if(1&i&&(e.j41(0,"div",9),e.nVh(1,Ee,4,2,"div")(2,ye,7,2,"div",10),e.k0s()),2&i){let t;const n=l.$implicit,a=e.XpG(2);e.R7$(),e.vxM("inputText"===(t=a.getBasicFieldPresentationType(a.errand.type.id,n.key))?1:"file"===t?2:-1)}}function xe(i,l){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&i){const t=l.$implicit;e.R7$(),e.SpI(" ",t.displayName," ")}}function Te(i,l){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(),e.Lme("",e.bMT(2,2,"ERRORDESCRIPTION"),": ",t.description.text)}}function Re(i,l){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",null==t.description?null:t.description.specification," ")}}function Fe(i,l){if(1&i&&(e.j41(0,"div",17)(1,"div",16),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nVh(4,Te,3,4,"div"),e.nVh(5,Re,2,1,"div"),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,3,"DESCRIPTION")," "),e.R7$(2),e.vxM(null!=t.description&&t.description.text?4:-1),e.R7$(),e.vxM(null!=t.description&&t.description.specification?5:-1)}}function je(i,l){if(1&i&&(e.j41(0,"div",15),e.nrm(1,"mat-divider"),e.j41(2,"div",16),e.EFF(3),e.k0s(),e.Z7z(4,xe,2,1,"div",null,e.fX1),e.nVh(6,Fe,6,5,"div",17),e.k0s()),2&i){const t=l.$implicit;e.R7$(3),e.SpI(" ",null==t||null==t.primaryObject||null==t.primaryObject.type?null:t.primaryObject.type.typeClassDisplayName," "),e.R7$(),e.Dyx(null==t?null:t.entityPath),e.R7$(2),e.vxM(null!=t.description&&t.description.text||null!=t.description&&t.description.specification?6:-1)}}function Ie(i,l){if(1&i&&e.Z7z(0,je,7,2,"div",15,e.fX1),2&i){const t=e.XpG(2);e.Dyx(null==t.errand?null:t.errand.rows)}}function Ge(i,l){if(1&i){const t=e.RV6();e.j41(0,"div"),e.nrm(1,"mat-divider"),e.j41(2,"taiga-errand-messages",18),e.bIt("loadMoreMessages",function(a){s.eBV(t);const r=e.XpG(2);return s.Njj(r.getMessages(a.limit,a.offset,a.sent,a.sent))}),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(2),e.Y8G("errandsGeneralItemMessage",t.errandsGeneralItemMessage)("id",t.errand.id)("showLoadMore",t.showLoadMore)("showSpinner",t.disableGetMessages)("canCreateMessages",null==t.errand||null==t.errand.messages?null:t.errand.messages.canCreate)}}function Oe(i,l){if(1&i&&(e.j41(0,"mat-card",1)(1,"mat-card-header",2)(2,"mat-card-title")(3,"div",3)(4,"div",4),e.EFF(5),e.k0s(),e.nVh(6,ve,3,4,"div",5),e.k0s()(),e.j41(7,"mat-card-subtitle")(8,"div",6)(9,"div"),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.nrm(12,"taiga-pill-badge",7),e.k0s()()(),e.j41(13,"mat-card-content",8),e.Z7z(14,be,3,1,"div",9,e.fX1),e.nI1(16,"keyvalue"),e.nV
1h(17,Ie,2,0),e.nVh(18,Ge,3,5,"div"),e.k0s()()),2&i){const t=e.XpG();e.R7$(5),e.JRh(t.errand.displayName),e.R7$(),e.vxM(null!=t.errand&&null!=t.errand.status&&t.errand.status.created?6:-1),e.R7$(4),e.Lme("",e.bMT(11,7,"ERRAND")," ",t.errand.number),e.R7$(2),e.Y8G("text",null==t.errand||null==t.errand.status?null:t.errand.status.displayName),e.R7$(2),e.Dyx(e.i5U(16,9,t.errand.basicFields,t.unsorted)),e.R7$(3),e.vxM("order"===(null==t.errand||null==t.errand.presentation?null:t.errand.presentation.presentationType)?17:-1),e.R7$(),e.vxM(t.getCanCommunicate(t.errand)?18:-1)}}let Se=(()=>{class i{constructor(t,n,a,r,d){this.mediaQueryService=t,this.route=n,this.errandService=a,this.fileService=r,this.cdr=d}ngOnInit(){this.route.data.subscribe(t=>{this.errand=t?.data?.[0],this.errandsTypes=t?.data?.[1];let n=+this.route.snapshot.queryParamMap.get("messages");Number(n)||(n=4),this.getMessages(+n.toFixed(),0,!1,!1)})}formatDate(t){return M()(t).format("YYYY-MM-DD")}formatDateTime(t){return M()(t).format("YYYY-MM-DD HH:mm")}getDisplayName(t,n){return this.errandsTypes?.items?.find(a=>a.id===t)?.basicFieldTypes[n]?.displayName}unsorted(){return 0}getMessages(t,n,a,r){this.getCanCommunicate(this.errand)&&(this.disableGetMessages||(this.disableGetMessages=!0,this.errandService.getErrandsGeneralItemMessage(this.errand.id,n,t).pipe((0,c.W)(d=>{throw this.disableGetMessages=!1,d})).subscribe(d=>{d?.items?.reverse(),this.errandsGeneralItemMessage?this.errandsGeneralItemMessage.items=r?[...this.errandsGeneralItemMessage.items,...d.items]:[...d.items,...this.errandsGeneralItemMessage.items]:this.errandsGeneralItemMessage=d,this.showLoadMore=d?.count!==this.errandsGeneralItemMessage.items.length,a&&(this.cdr.detectChanges(),window.scrollTo(0,document.body.scrollHeight)),this.disableGetMessages=!1})))}getBasicFieldPresentationType(t,n){return this.errandsTypes?.items?.find(a=>a.id===t)?.basicFieldTypes[n]?.presentationType}downloadFile(t,n){this.errandService.getErrandsGeneralItemFile(t,n).subscribe(a=>{const d=a?.type?.split("/").pop();this.fileService.saveBlobWithFilename(a,`${n}.${d}`)})}getCanCommunicate(t){return!t?.viaRelation&&this.errandsTypes?.items?.find(n=>n.id===t?.type?.id)?.canCommunicate}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(E.M),e.rXU(u.nX),e.rXU(m.Q),e.rXU(R.E),e.rXU(v.gRc))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["taiga-errand"]],standalone:!1,decls:6,vars:11,consts:[[3,"text","subText"],[1,"card"],[2,"display","block"],[1,"title-errand"],[1,"title"],[1,"title-date"],[1,"subtitle"],[1,"badge-info",3,"text"],[2,"margin-top","16px"],[1,"fields-container"],[1,"download-file-container"],[1,"label"],[1,"value",3,"innerText"],[1,"download-file-button-container",3,"click"],["mat-icon-button","","color","primary"],[1,"row"],[1,"row-title"],[1,"headers-align"],[3,"loadMoreMessages","errandsGeneralItemMessage","id","showLoadMore","showSpinner","canCreateMessages"]],template:function(n,a){1&n&&(e.j41(0,"div"),e.nrm(1,"taiga-medium-header",0),e.nI1(2,"translate"),e.nI1(3,"translate"),e.nrm(4,"taiga-page-cards"),e.nVh(5,Oe,19,12,"mat-card",1),e.k0s()),2&n&&(e.AVh("is-mobile",a.mediaQueryService.isMobile())("is-desktop",!a.mediaQueryService.isMobile()),e.R7$(),e.Y8G("text",e.bMT(2,7,"ERRAND"))("subText",e.bMT(3,9,"ERRANDHELP")),e.R7$(4),e.vxM(a.errand?5:-1))},dependencies:[O.Y,Y.q,y.An,j.iY,p.RN,p.m2,p.MM,p.Lc,p.dh,S.o,w.K,Ce,f.lG,_.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.title-errand[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;font-size:1.125rem;justify-content:space-between}.title-date[_ngcontent-%COMP%]{font-size:.875rem}.title[_ngcontent-%COMP%]{margin-right:10px}.card[_ngcontent-%COMP%]{margin-bottom:8px}.card-actions[_ngcontent-%COMP%]{margin:0;padding:0}.fields-container[_ngcontent-%COMP%]{margin-bottom:16px}.label[_ngcontent-%COMP%]{font-size:1rem}.form-field[_ngcontent-%COMP%]{width:100%}.download-file-container[_ngcontent-%COMP%]{display:flex}.download-file-button-container[_ngcontent-%COMP%]{display:flex;align-items:center;font-weight:500;cursor:pointer}.subtitle[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center}.row[_ngcontent-%COMP%]{margin-bottom:16px}.row-title[_ngcontent-%COMP%]{font-weight:500;margin-bottom:10px;margin-top:16px}.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-expansion-panel-header[_ngcontent-%COMP%]{padding:0 4px}"]})}}return i})();var we=o(8056),ke=o(2280),Pe=o(2099),V=o(6471);function $e(i,l){if(1&i&&(e.j41(0,"div",4),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i){const t=e.XpG().$implicit,n=e.XpG(2);e.R7$(),e.Lme("",e.bMT(2,2,"ARRIVED")," ",n.formatDate(t.status.created))}}function De(i,l){if(1&i&&(e.j41(0,"span"),e.EFF(1," ("),e.j41(2,"span"),e.EFF(3),e.k0s(),e.EFF(4,") "),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(3),e.JRh(null==t||null==t.messages?null:t.messages.countUnread)}}function Be(i,l){if(1&i){const t=e.RV6();e.j41(0,"div",8)(1,"button",12),e.bIt("click",function(){s.eBV(t);const a=e.XpG().$implicit,r=e.XpG(2);return s.Njj(r.gotToErrand(a.id,null==a||null==a.messages?null:a.messages.countUnread))}),e.j41(2,"mat-icon",13),e.EFF(3," question_answer "),e.k0s(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.nV
1h(7,De,5,1,"span"),e.k0s()()()}if(2&i){const t=e.XpG().$implicit;e.R7$(),e.Y8G("highlighted",(null==t||null==t.messages?null:t.messages.countUnread)>0),e.R7$(),e.Y8G("color",(null==t||null==t.messages?null:t.messages.countUnread)>0?"":"primary"),e.R7$(3),e.SpI(" ",e.bMT(6,4,"CONVERSATION")," "),e.R7$(2),e.vxM((null==t||null==t.messages?null:t.messages.countUnread)>0?7:-1)}}function Ve(i,l){if(1&i&&(e.j41(0,"div")(1,"div",15),e.EFF(2),e.k0s(),e.nrm(3,"div",16),e.k0s()),2&i){const t=e.XpG().$implicit,n=e.XpG().$implicit,a=e.XpG(2);e.R7$(2),e.SpI(" ",a.getDisplayName(n.type.id,t.key)," "),e.R7$(),e.Y8G("innerText",t.value)}}function Ne(i,l){if(1&i){const t=e.RV6();e.j41(0,"div",14)(1,"div",17),e.bIt("click",function(){s.eBV(t);const a=e.XpG().$implicit,r=e.XpG().$implicit,d=e.XpG(2);return s.Njj(d.downloadFile(r.id,a.value))}),e.j41(2,"button",18)(3,"mat-icon"),e.EFF(4,"attachment"),e.k0s()(),e.j41(5,"span"),e.EFF(6),e.k0s()()()}if(2&i){const t=e.XpG().$implicit,n=e.XpG().$implicit,a=e.XpG(2);e.R7$(2),e.BMQ("aria-label",a.getDisplayName(n.type.id,t.key)),e.R7$(4),e.JRh(a.getDisplayName(n.type.id,t.key))}}function Xe(i,l){if(1&i&&(e.j41(0,"div",9),e.nVh(1,Ve,4,2,"div")(2,Ne,7,2,"div",14),e.k0s()),2&i){let t;const n=l.$implicit,a=e.XpG().$implicit,r=e.XpG(2);e.R7$(),e.vxM("inputText"===(t=r.getBasicFieldPresentationType(a.type.id,n.key))?1:"file"===t?2:-1)}}function Ae(i,l){if(1&i){const t=e.RV6();e.j41(0,"div")(1,"mat-card",0)(2,"div")(3,"mat-card-header",1)(4,"mat-card-title")(5,"div",2)(6,"div",3),e.EFF(7),e.k0s(),e.nVh(8,$e,3,4,"div",4),e.k0s()(),e.j41(9,"mat-card-subtitle",5)(10,"div",6)(11,"div"),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"taiga-pill-badge",7),e.k0s(),e.nVh(15,Be,8,6,"div",8),e.k0s()(),e.j41(16,"mat-card-content"),e.Z7z(17,Xe,3,1,"div",9,e.fX1),e.nI1(19,"keyvalue"),e.k0s(),e.j41(20,"mat-card-actions",10)(21,"button",11),e.bIt("click",function(){const a=s.eBV(t).$implicit,r=e.XpG(2);return s.Njj(r.gotToErrand(a.id,a.countUnreadMessages))}),e.EFF(22),e.nI1(23,"translate"),e.k0s()()()()()}if(2&i){const t=l.$implicit,n=e.XpG(2);e.R7$(7),e.JRh(t.title||t.displayName),e.R7$(),e.vxM(null!=t&&null!=t.status&&t.status.created?8:-1),e.R7$(4),e.Lme("",e.bMT(13,7,"ERRAND")," ",t.number),e.R7$(2),e.Y8G("text",null==t||null==t.status?null:t.status.displayName),e.R7$(),e.vxM(n.getCanCommunicate(t)?15:-1),e.R7$(2),e.Dyx(e.i5U(19,9,t.basicFields,n.unsorted)),e.R7$(5),e.SpI(" ",e.bMT(23,12,"SHOW")," ")}}function Ue(i,l){if(1&i&&e.Z7z(0,Ae,24,14,"div",null,e.fX1),2&i){const t=e.XpG();e.Dyx(t.errands.items)}}let Ye=(()=>{class i{constructor(t,n,a){this.errandService=t,this.fileService=n,this.router=a}formatDate(t){return M()(t).format("YYYY-MM-DD")}getDisplayName(t,n){return this.errandsTypes?.items?.find(a=>a.id===t)?.basicFieldTypes[n]?.displayName}getBasicFieldPresentationType(t,n){return this.errandsTypes?.items?.find(a=>a.id===t)?.basicFieldTypes[n]?.presentationType}getCanCommunicate(t){return!t?.viaRelation&&this.errandsTypes?.items?.find(n=>n.id===t?.type?.id)?.canCommunicate}downloadFile(t,n){this.errandService.getErrandsGeneralItemFile(t,n).subscribe(a=>{const d=a?.type?.split("/").pop();this.fileService.saveBlobWithFilename(a,`${n}.${d}`)})}unsorted(){return 0}gotToErrand(t,n){let a;n&&n>4&&(a={messages:n}),this.router.navigate([`errands/${t}`],{queryParams:a})}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(m.Q),e.rXU(R.E),e.rXU(u.Ix))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["taiga-errands-list"]],inputs:{errands:"errands",errandsTypes:"errandsTypes"},standalone:!1,decls:1,vars:1,consts:[["data-mom-test","MyPages_MyErrands_ErrandCard",1,"card"],[2,"display","block"],["data-mom-test","MyPages_MyErrands_ErrandCardTitle",1,"title-errand"],[1,"title"],[1,"title-date"],["data-mom-test","MyPages_MyErrands_ErrandCardNumber"],[1,"subtitle"],[1,"badge-info",3,"text"],[1,"chips-container"],[1,"fields-container"],["align","end",1,"card-actions"],["matButton","tonal","data-mom-test","MyPages_MyErrands_ErrandCardShow",3,"click"],["mat-chip","","color","warn","data-mom-test","MyPages_MyErrands_ErrandCardConversationUnread",1,"chip","mat-typography",3,"click","highlighted"],["matChipTrailingIcon","",2,"margin-right","5px","margin-left","0px",3,"color"],[1,"download-file-container"],[1,"label"],[1,"value",3,"innerText"],[1,"download-file-button-container",3,"click"],["mat-icon-button","","color","primary"]],template:function(n,a){1&n&&e.nV
1h(0,Ue,2,0),2&n&&e.vxM(a.errands&&a.errands.items?0:-1)},dependencies:[O.Y,y.An,I.$z,j.iY,p.RN,p.YY,p.m2,p.MM,p.Lc,p.dh,V.Jl,V.O5,f.lG,_.D9],styles:[".title-errand[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;font-size:1.125rem;justify-content:space-between}.title-date[_ngcontent-%COMP%]{font-size:.875rem}.title[_ngcontent-%COMP%]{margin-right:10px}.card[_ngcontent-%COMP%], .fields-container[_ngcontent-%COMP%]{margin-bottom:16px}.label[_ngcontent-%COMP%]{font-size:1rem}.download-file-container[_ngcontent-%COMP%]{display:flex}.download-file-button-container[_ngcontent-%COMP%]{display:flex;align-items:center;font-weight:500;cursor:pointer}.chips-container[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:5px}.chip[_ngcontent-%COMP%]{cursor:pointer;border:none}.subtitle[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center}"]})}}return i})();function Le(i,l){if(1&i){const t=e.RV6();e.j41(0,"button",6),e.nI1(1,"translate"),e.bIt("click",function(){s.eBV(t);const a=e.XpG();return s.Njj(a.openSheet())}),e.j41(2,"mat-icon"),e.EFF(3,"add_circle"),e.k0s()()}2&i&&e.BMQ("aria-label",e.bMT(1,1,"CREATEERRAND"))}function He(i,l){if(1&i&&e.eu8(0,3),2&i){e.XpG();const t=e.sdS(1);e.Y8G("ngTemplateOutlet",t)}}function Qe(i,l){if(1&i&&(e.j41(0,"div",1)(1,"div"),e.nrm(2,"taiga-medium-header",2),e.nI1(3,"translate"),e.nI1(4,"translate"),e.k0s()(),e.nrm(5,"taiga-errands-list",5)),2&i){const t=e.XpG();e.R7$(2),e.Y8G("text",e.bMT(3,4,"SHAREDERRANDS"))("subText",e.bMT(4,6,"SHAREDERRANDSHELP")),e.R7$(3),e.Y8G("errands",t.sharedErrands)("errandsTypes",t.errandsTypes)}}let ze=(()=>{class i{constructor(t,n,a,r,d,C){this.mediaQueryService=t,this.rightSheet=n,this.errandService=a,this.route=r,this.translate=d,this.pageCardsService=C,this.hasPageCards=!1}ngOnInit(){this.pageCardsService.hasCardsForCurrentPage().subscribe(t=>this.hasPageCards=t),this.route.data.subscribe(t=>{this.errandsGeneral=t?.data[0],this.errandsTypes=t?.data[1],this.splitErrands()})}splitErrands(){const t=this.errandsGeneral?.items??[],n=t.filter(r=>!r.viaRelation),a=t.filter(r=>r.viaRelation);this.myErrands={count:n.length,items:n},this.sharedErrands={count:a.length,items:a}}openSheet(){this.errandService.getErrandsTypes().subscribe(t=>{this.rightSheet.open(we.o,{data:{errandsTypes:t},panelClass:"custom-rightsheet",scrollStrategy:new P.t0,ariaLabel:this.translate.instant("ERRAND"),autoFocus:!1}).afterDismissed().subscribe(a=>{setTimeout(()=>{a&&"SUCCESS"===a&&this.getErrandsGeneral()},1e4)})})}getErrandsGeneral(){this.errandService.getErrandsGeneral().subscribe(t=>{this.errandsGeneral=t,this.splitErrands()})}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(E.M),e.rXU(ke.c9),e.rXU(m.Q),e.rXU(u.nX),e.rXU(_.c$),e.rXU(Pe.W))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["taiga-errands"]],standalone:!1,decls:12,vars:15,consts:[["addButton",""],[1,"header-container"],[3,"text","subText"],[3,"ngTemplateOutlet"],[3,"actions"],[3,"errands","errandsTypes"],["matMiniFab","","data-mom-test","MyPages_MyErrands_AddButton",3,"click"]],template:function(n,a){if(1&n&&(e.DNE(0,Le,4,3,"ng-template",null,0,e.C5r),e.j41(2,"div")(3,"div",1)(4,"div"),e.nrm(5,"taiga-medium-header",2),e.nI1(6,"translate"),e.nI1(7,"translate"),e.k0s(),e.nVh(8,He,1,1,"ng-container",3),e.k0s(),e.nrm(9,"taiga-page-cards",4)(10,"taiga-errands-list",5),e.nVh(11,Qe,6,8),e.k0s()),2&n){const r=e.sdS(1);e.R7$(2),e.AVh("is-mobile",a.mediaQueryService.isMobile())("is-desktop",!a.mediaQueryService.isMobile()),e.R7$(3),e.Y8G("text",e.bMT(6,11,"MYERRANDS"))("subText",e.bMT(7,13,"MYERRANDSHELP")),e.R7$(3),e.vxM(a.hasPageCards?-1:8),e.R7$(),e.Y8G("actions",r),e.R7$(),e.Y8G("errands",a.myErrands)("errandsTypes",a.errandsTypes),e.R7$(),e.vxM(null!=a.sharedErrands&&null!=a.sharedErrands.items&&a.sharedErrands.items.length?11:-1)}},dependencies:[f.T3,y.An,I.$0,S.o,w.K,Ye,_.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.header-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.icon-display[_ngcontent-%COMP%]{transform:scale(1.5)}.card[_ngcontent-%COMP%]{margin-bottom:8px}"]})}}return i})();var N=o(7468),G=o(7673),X=o(7342),A=o(6380);let We=(()=>{class i{constructor(t,n,a,r){this.errandService=t,this.userMessageService=n,this.errorService=a,this.router=r}resolve(t){return(0,N.p)([this.errandService.getErrandsGeneralItem(t.params.id),this.errandService.getErrandsTypes()]).pipe((0,c.W)(n=>{const a=this.errorService.parseError(n);return this.userMessageService.errorWithHeader(a.message,"",a.displayErrorReportNumber?a.errorReportNumber:""),this.router.navigateByUrl("/"),(0,G.of)(null)}))}static{this.\u0275fac=function(n){return new(n||i)(s.KVO(m.Q),s.KVO(X.z),s.KVO(A.I),s.KVO(u.Ix))}}static{this.\u0275prov=s.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();const Ke=[{path:"",component:ze,canActivate:[T.q],resolve:{data:(()=>{class i{constructor(t,n,a,r){this.errandService=t,this.userMessageService=n,this.errorService=a,this.router=r}resolve(){return(0,N.p)([this.errandService.getErrandsGeneral().pipe((0,c.W)(t=>{const n=this.errorService.parseError(t);return this.userMessageService.errorWithHeader(n.message,"",n.displayErrorReportNumber?n.errorReportNumber:""),this.router.navigateByUrl("/"),(0,G.of)(null)})),this.errandService.getErrandsTypes().pipe((0,c.W)(t=>{const n=this.errorService.parseError(t);return this.userMessageService.errorWithHeader(n.message,"",n.displayErrorReportNumber?n.errorReportNumber:""),this.router.navigateByUrl("/"),(0,G.of)(null)}))])}static{this.\u0275fac=function(n){return new(n||i)(s.KVO(m.Q),s.KVO(X.z),s.KVO(A.I),s.KVO(u.Ix))}}static{this.\u0275prov=s.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})()},title:"MYERRANDS"},{path:":id",component:Se,canActivate:[T.q],resolve:{data:We},title:"ERRAND"}];let Ze=(()=>
1{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=s.G2t({imports:[x.iI.forChild(Ke),x.iI]})}}return i})();var qe=o(9963);let et=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=s.G2t({imports:[f.MD,Ze,qe.G]})}}return i})()},1580(U,F,o){o.d(F,{E:()=>T});var f=o(2615),x=o(5850);let T=(()=>{class h{constructor(c){this.requestService=c}saveBlob(c,e){const s=new Blob([c],{type:e});if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(s);else{const v=window.URL.createObjectURL(s);window.open(v,"_blank"),setTimeout(()=>{window.URL.revokeObjectURL(v)},100)}}saveBlobWithFilename(c,e){const s=e.split(".").pop(),v=this.getMimeType(s),E=new Blob([c],{type:v});if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(E,e);else{const u=window.URL.createObjectURL(E),m=document.createElement("a");typeof m.download>"u"?window.open(u,"_blank"):(m.href=u,m.download=e,document.body.appendChild(m),m.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))),setTimeout(()=>{window.URL.revokeObjectURL(u),m&&m.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(e){return new(e||h)(f.KVO(x.B))}}static{this.\u0275prov=f.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}}return h})()}}]);

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.