1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4221],{2799:(rt,Y,t)=>{t.d(Y,{G:()=>u});var i=t(3953),g=t(177),h=t(5374),f=t(1367);const s=["*"];function A(C,L){if(1&C&&i.nrm(0,"app-icon",6),2&C){const v=i.XpG();i.Y8G("name",v.computedIcon)("gradient",!1)("color",v.severity)}}function x(C,L){if(1&C&&(i.j41(0,"ion-text",7),i.EFF(1),i.k0s()),2&C){const v=i.XpG();i.R7$(),i.SpI(" ",v.title," ")}}let u=(()=>{var C;class L{get computedIcon(){if(this.icon)return this.icon;if(this.severity)switch(this.severity){case"info":return"fa-solid fa-circle-info";case"warning":return"fa-solid fa-triangle-exclamation";case"error":return"fa-solid fa-circle-xmark";case"success":return"fa-solid fa-circle-check"}}}return(C=L).\u0275fac=function(V){return new(V||C)},C.\u0275cmp=i.VBU({type:C,selectors:[["app-callout"]],inputs:{title:"title",text:"text",severity:"severity",icon:"icon"},ngContentSelectors:s,decls:8,vars:4,consts:[[1,"callout-container",3,"ngClass"],["class","callout-icon","size","relative",3,"name","gradient","color",4,"ngIf"],[1,"callout-content"],[1,"callout-text"],["class","callout-title",4,"ngIf"],[1,"callout-message"],["size","relative",1,"callout-icon",3,"name","gradient","color"],[1,"callout-title"]],template:function(V,w){1&V&&(i.NAR(),i.j41(0,"div",0),i.DNE(1,A,1,3,"app-icon",1),i.j41(2,"div",2)(3,"div",3),i.DNE(4,x,2,1,"ion-text",4),i.j41(5,"ion-text",5),i.EFF(6),i.k0s()(),i.SdG(7),i.k0s()()),2&V&&(i.Y8G("ngClass",w.severity),i.R7$(),i.Y8G("ngIf",w.computedIcon),i.R7$(3),i.Y8G("ngIf",w.title),i.R7$(2),i.SpI(" ",w.text," "))},dependencies:[g.YU,g.bT,h.IO,f.R],styles:["[_nghost-%COMP%]{display:block;margin:1rem}.callout-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;--outer-padding: 1rem;padding:var(--outer-padding);--outer-padding-right: 1rem;padding-right:var(--outer-padding-right);border-radius:var(--card-border-radius);box-shadow:var(--base-box-shadow);background-color:var(--ion-color-light);color:var(--ion-color-medium)}.callout-container.error[_ngcontent-%COMP%]{background-color:var(--app-color-danger-light);color:var(--app-color-danger-dark)}.callout-container.warning[_ngcontent-%COMP%]{background-color:var(--app-color-warning-light);color:var(--app-color-warning-dark)}.callout-container.info[_ngcontent-%COMP%]{background-color:var(--app-color-info-light);color:var(--app-color-info-dark)}.callout-container.success[_ngcontent-%COMP%]{background-color:var(--app-color-success-light);color:var(--app-color-success-dark)}.callout-container[_ngcontent-%COMP%] .callout-icon[_ngcontent-%COMP%]{font-size:1.5rem;margin-right:var(--outer-padding)}.callout-container[_ngcontent-%COMP%]:has(.callout-icon){--outer-padding-right: 1.5rem}.callout-container[_ngcontent-%COMP%]:has(.callout-title):has(.callout-icon){--outer-padding-right: 2.5rem}.callout-container[_ngcontent-%COMP%]:has(.callout-title) .callout-icon[_ngcontent-%COMP%]{font-size:2rem}.callout-container[_ngcontent-%COMP%] .callout-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:.5rem}.callout-container[_ngcontent-%COMP%] .callout-title[_ngcontent-%COMP%]{display:block;font-size:1.2rem;font-weight:700;margin-bottom:.3em}.callout-container[_ngcontent-%COMP%] .callout-message[_ngcontent-%COMP%]{font-size:1rem;font-weight:500}"]}),L})()},5025:(rt,Y,t)=>{t.d(Y,{K:()=>N});var i=t(3953),g=t(7376),h=t(4131),f=t(6610),s=t(177),A=t(5374),x=t(9983),u=t(4792),C=t(7683);const L=["*"],v=(E,e)=>[E,e],V=E=>[E,"file-container"];function w(E,e){if(1&E&&(i.j41(0,"div",9)(1,"span",10),i.EFF(2),i.nI1(3,"partyName"),i.k0s()()),2&E){const M=i.XpG();i.R7$(2),i.JRh(i.bMT(3,1,M.party))}}function Q(E,e){if(1&E&&(i.j41(0,"div",11),i.nrm(1,"app-files",12),i.k0s()),2&E){const M=i.XpG();i.Y8G("ngClass",i.eq3(4,V,M.isOwn?"own-files":"received-files")),i.R7$(),i.Y8G("files",M.files)("localFiles",M.localFiles)("invert",M.isOwn)}}let z=(()=>{var E;class e{constructor(){this.isOwn=!1,this.isPending=!1}}return(E=e).\u0275fac=function(R){return new(R||E)},E.\u0275cmp=i.VBU({type:E,selectors:[["app-chat-bubble"]],inputs:{message:"message",date:"date",files:"files",localFiles:"localFiles",isOwn:"isOwn",party:"party",isPending:"isPending"},ngContentSelectors:L,decls:13,vars:16,consts:[[1,"container",3,"ngClass"],[1,"chat-bubble",3,"ngClass"],[1,"chat-bubble-arrow",3,"ngClass"],[1,"chat-bubble-inner"],["class","chat-bubble-party",4,"ngIf"],[1,"text-selectable",3,"innerHtml"],[3,"ngClass",4,"ngIf"],[1,"chat-bubble-time"],[3,"dateTime"],[1,"chat-bubble-party"],[1,"chat-bubble-party-name"],[3,"ngClass"],[3,"files","localFiles","invert"]],template:function(R,G){1&R&&(i.NAR(),i.j41(0,"div",0)(1,"div",1),i.nrm(2,"div",2),i.j41(3,"ion-text",3),i.DNE(4,w,4,3,"div",4),i.nrm(5,"p",5),i.nI1(6,"linkify"),i.k0s(),i.DNE(7,Q,2,6,"div",6),i.SdG(8),i.j41(9,"div",7)(10,"time",8),i.EFF(11),i.nI1(12,"date"),i.k0s()()()()),2&R&&(i.Y8G("ngClass",G.isOwn?"container-sent":"container-received"),i.R7$(),i.Y8G("ngClass",i.l_i(13,v,G.isOwn?"chat-bubble-sent":"chat-bubble-received",G.isPending?"pending":"")),i.R7$(),i.Y8G("ngClass",G.isOwn?"chat-bubble-arrow-right":"chat-bubble-arrow-left"),i.R7$(2),i.Y8G("ngIf",G.party&&!G.isOwn&&1!==G.party.id),i.R7$(),i.Y8G("innerHtml",i.bMT(6,8,G.message),i.npT),i.R7$(2),i.Y8G("ngIf",G.files&&G.files.length>0||G.localFiles&&G.localFiles.length>0),i.R7$(3),i.Y8G("dateTime",G.date),i.R7$(),i.JRh(i.i5U(12,10,G.date,"HH:mm")))},dependencies:[s.YU,s.bT,A.IO,x.H,s.vh,u.o,C.F],styles:[".container[_ngcontent-%COMP%]{display:flex;width:100%}
1.container-sent[_ngcontent-%COMP%]{justify-content:flex-end}.container-received[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%] .chat-bubble-sent a{color:var(--app-color-primary-light)}.chat-bubble[_ngcontent-%COMP%]{margin:5px 15px;padding:3px;max-width:70%;min-width:100px;border-radius:10px;position:relative;box-shadow:var(--base-box-shadow)}.chat-bubble.pending[_ngcontent-%COMP%]{opacity:50%}.chat-bubble-inner[_ngcontent-%COMP%]{display:block;margin:4px 0 2px;font-size:16px;line-height:1.4;padding:0 10px;overflow-x:auto}.chat-bubble-party[_ngcontent-%COMP%]{font-size:12px;color:var(--app-color-primary);margin-bottom:4px}.chat-bubble-party-name[_ngcontent-%COMP%]{font-weight:700}.chat-bubble-sent[_ngcontent-%COMP%]{background-color:var(--app-color-primary);color:var(--app-color-primary-contrast)}.chat-bubble-received[_ngcontent-%COMP%]{background-color:var(--card-background);color:var(--app-color-plain-contrast)}.chat-bubble-time[_ngcontent-%COMP%]{width:100%;padding-right:7px;text-align:right;font-size:12px;opacity:80%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chat-bubble-arrow[_ngcontent-%COMP%]{position:absolute;width:0;height:0;border-style:solid;border-width:6px 0 6px 15px;bottom:-3px}.chat-bubble-arrow-left[_ngcontent-%COMP%]{transform:translateY(-50%) rotate(160deg);border-color:transparent transparent transparent var(--card-background);bottom:-3px;left:-8px}.chat-bubble-arrow-right[_ngcontent-%COMP%]{transform:translateY(50%) rotate(25deg);border-color:transparent transparent transparent var(--app-color-primary);bottom:10px;right:-8px}.chat-bubble[_ngcontent-%COMP%] .text-selectable[_ngcontent-%COMP%]{-webkit-user-select:text;-moz-user-select:text;user-select:text;white-space:pre-line;padding:0;margin:0}.chat-bubble[_ngcontent-%COMP%] .file-container[_ngcontent-%COMP%]{margin-top:1rem}.chat-bubble[_ngcontent-%COMP%] .file-container.own-files[_ngcontent-%COMP%]{--background: var(--app-color-primary);color:var(--app-color-primary-contrast)}.chat-bubble[_ngcontent-%COMP%] .file-container.received-files[_ngcontent-%COMP%]{--background: var(--card-background);color:var(--app-color-plain-contrast)}"]}),e})();function q(E,e){if(1&E&&i.nrm(0,"i"),2&E){const M=i.XpG();i.HbH(M.icon)}}function I(E,e){if(1&E&&(i.j41(0,"p",4),i.EFF(1),i.k0s()),2&E){const M=i.XpG();i.R7$(),i.JRh(M.description)}}let F=(()=>{var E;class e{}return(E=e).\u0275fac=function(R){return new(R||E)},E.\u0275cmp=i.VBU({type:E,selectors:[["app-chat-divider"]],inputs:{title:"title",description:"description",icon:"icon"},decls:5,vars:3,consts:[[1,"divider"],[1,"title"],[3,"class",4,"ngIf"],["class","description",4,"ngIf"],[1,"description"]],template:function(R,G){1&R&&(i.j41(0,"div",0)(1,"p",1),i.DNE(2,q,1,2,"i",2),i.EFF(3),i.k0s(),i.DNE(4,I,2,1,"p",3),i.k0s()),2&R&&(i.R7$(2),i.Y8G("ngIf",G.icon),i.R7$(),i.SpI(" ",G.title,""),i.R7$(),i.Y8G("ngIf",G.description))},dependencies:[s.bT],styles:[".divider[_ngcontent-%COMP%]{padding:10px;margin:16px 0;text-align:center;font-weight:600;display:flex;flex-direction:column;gap:.25rem;place-content:center;place-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.divider[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}.divider[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{opacity:.75;font-size:.8em;line-height:1.1}"]}),e})();var o=t(3955),b=t(1056);const y=["dates"];function H(E,e){if(1&E&&(i.j41(0,"div",5,0)(2,"time",6),i.EFF(3),i.nI1(4,"naturalDate"),i.k0s()()),2&E){const M=i.XpG(2).$implicit;i.R7$(2),i.Y8G("dateTime",M.date),i.R7$(),i.SpI(" ",i.i5U(4,2,M.date,"showTodayWord")," ")}}function P(E,e){if(1&E&&(i.nrm(0,"app-chat-divider",8),i.nI1(1,"translate")),2&E){const M=i.XpG().ngIf,R=i.XpG(2).$implicit;i.Y8G("title",i.bMT(1,3,M.translateKey))("description",R.typeDescription)("icon",M.icon)}}
1function W(E,e){if(1&E&&(i.qex(0),i.DNE(1,P,2,5,"app-chat-divider",7),i.bVm()),2&E){const M=e.ngIf;i.R7$(),i.Y8G("ngIf",!M.isAfterTextBubble)}}function $(E,e){if(1&E&&i.nrm(0,"app-chat-bubble",9),2&E){const M=i.XpG(2).$implicit;i.FS9("id",M.id),i.Y8G("message",M.text)("files",M.files)("localFiles",M.localFiles)("date",M.date)("isOwn",M.isOwn)("party",M.party)("isPending",M.isPending)}}function S(E,e){if(1&E&&(i.nrm(0,"app-chat-divider",8),i.nI1(1,"translate")),2&E){const M=i.XpG().ngIf,R=i.XpG(2).$implicit;i.Y8G("title",i.bMT(1,3,M.translateKey))("description",R.typeDescription)("icon",M.icon)}}function et(E,e){if(1&E&&(i.qex(0),i.DNE(1,S,2,5,"app-chat-divider",7),i.bVm()),2&E){const M=e.ngIf;i.R7$(),i.Y8G("ngIf",M.isAfterTextBubble)}}function X(E,e){if(1&E&&(i.qex(0),i.DNE(1,H,5,5,"div",3)(2,W,2,1,"ng-container",1)(3,$,1,8,"app-chat-bubble",4)(4,et,2,1,"ng-container",1),i.bVm()),2&E){const M=i.XpG(),R=M.$implicit,G=M.index,J=i.XpG(2);i.R7$(),i.Y8G("ngIf",!J.isSameDay(R.date,0===G?J.previousDate:J.messages[G-1].date)),i.R7$(),i.Y8G("ngIf",R.type&&J.dividerPreSets[R.type]),i.R7$(),i.Y8G("ngIf",R.text||(null==R.files?null:R.files.length)||(null==R.localFiles?null:R.localFiles.length)),i.R7$(),i.Y8G("ngIf",R.type&&J.dividerPreSets[R.type])}}function K(E,e){if(1&E&&(i.qex(0),i.DNE(1,X,5,4,"ng-container",1),i.bVm()),2&E){const M=e.$implicit,R=i.XpG(2);i.R7$(),i.Y8G("ngIf",M.text||(null==M.files?null:M.files.length)||(null==M.localFiles?null:M.localFiles.length)||M.type&&R.dividerPreSets[M.type])}}function B(E,e){if(1&E&&(i.qex(0),i.DNE(1,K,2,1,"ng-container",2),i.bVm()),2&E){const M=i.XpG();i.R7$(),i.Y8G("ngForOf",M.messages)("ngForTrackBy",M.trackByMessageId)}}const n="sticky",T="sticky-visible";let N=(()=>{var E;class e{constructor(R){this.dateUtilsService=R,this.stickyIdleDelay=1200,this.dividerPreSets={[h._.InquiryCreation]:{icon:"fa-solid fa-plus",translateKey:"PROCESS.MESSAGE.YOUR_INQUIRY"},[h._.InquiryEnded]:{icon:"fa-solid fa-check-double",translateKey:"PROCESS.MESSAGE.INQUIRY_ENDED",isAfterTextBubble:!0},[h._.ProcessingStarted]:{icon:"fa-regular fa-comments",translateKey:"PROCESS.MESSAGE.PROCESSING_STARTED"},[h._.ProcessingChanged]:{icon:"fa-regular fa-pen-to-square",translateKey:"PROCESS.MESSAGE.PROCESSING_CHANGED"},[h._.ProcessingEnded]:{icon:"fa-solid fa-check-double",translateKey:"PROCESS.MESSAGE.PROCESSING_ENDED",isAfterTextBubble:!0},[h._.ProcessingReopened]:{icon:"fa-solid fa-rotate-left",translateKey:"PROCESS.MESSAGE.PROCESSING_REOPENED"},[h._.AppointmentProposal]:{icon:"fa-solid fa-calendar",translateKey:"PROCESS.MESSAGE.APPOINTMENT_PROPOSAL",link:G=>{const J=new Date;if(J.setHours(0,0,0,0),!(G.date<J))return"/dashboard/work-order-appointments"}},[h._.AppointmentProposalAcceptance]:{icon:"fa-solid fa-calendar-check",translateKey:"PROCESS.MESSAGE.APPOINTMENT_PROPOSAL_ACCEPTANCE",isAfterTextBubble:!0},[h._.AppointmentProposalRejection]:{icon:"fa-solid fa-calendar-xmark",translateKey:"PROCESS.MESSAGE.APPOINTMENT_PROPOSAL_REJECTION",isAfterTextBubble:!0}}}ngAfterViewInit(){this.dateDivsSub=this.dateDivs.changes.subscribe(()=>{this.tryInitScrollContainer()}),queueMicrotask(()=>this.tryInitScrollContainer())}tryInitScrollContainer(R=1){var G;if(this.scrollElement)return;const J=null===(G=this.dateDivs)||void 0===G||null===(G=G.first)||void 0===G||null===(G=G.nativeElement)||void 0===G?void 0:G.closest("ion-content");if(!J)return R>10?void console.warn("Could not find ion-content for chat component after multiple attempts. Sticky date feature will not work."):void requestAnimationFrame(()=>this.tryInitScrollContainer(R+1));J.getScrollElement().then(ot=>{this.scrollElement||(this.scrollElement=ot,this.throttledUpdate=(0,g.throttle)(()=>this.updateStickyDate(J),100,{leading:!0,trailing:!0}),ot.addEventListener("scroll",this.throttledUpdate),requestAnimationFrame(()=>{var st;null===(st=this.throttledUpdate)||void 0===st||st.call(this)}))})}ngOnDestroy(){var R;this.scrollElement&&this.throttledUpdate&&this.scrollElement.removeEventListener("scroll",this.throttledUpdate),this.throttledUpdate&&"cancel"in this.throttledUpdate&&this.throttledUpdate.cancel(),null===(R=this.dateDivsSub)||void 0===R||R.unsubscribe(),this.stickyFadeTimeout&&clearTimeout(this.stickyFadeTimeout)}isSameDay(R,G){return R&&G?this.dateUtilsService.isSameDay(new Date(R),new Date(G)):R===G}updateStickyDate(R){var G,J,ot;const st=null===(G=this.dateDivs)||void 0===G?void 0:G.toArray();if(!Array.isArray(st)||0===st.length)return;const nt=R.getBoundingClientRect(),Tt=this.dateDivs.filter(pt=>pt.nativeElement.getBoundingClientRect().top-nt.top>35);let At=null,Bt=-1/0,Ut=null;for(let pt=0;pt<st.length;pt++){const xt=st[pt].nativeElement;if(xt.classList.contains(n)&&Tt.every(jt=>jt.nativeElement!==xt)){Ut=pt;continue}const ft=xt.getBoundingClientRect().top-nt.top;ft<35&&ft>Bt&&(Bt=ft,At=pt)}const Lt=Math.max(null!==(J=Ut)&&void 0!==J?J:-1,null!==(ot=At)&&void 0!==ot?ot:-1);st.forEach((pt,yt)=>{if(yt<Lt)pt.nativeElement.classList.remove(n);else if(pt.nativeElement.classList.add(n),pt.nativeElement.classList.add(T),yt===Lt){this.stickyFadeTimeout&&clearTimeout(this.stickyFadeTimeout);const $t=pt.nativeElement.getBoundingClientRect().top-nt.top;if($t>8.05||$t<7.95)return;this.stickyFadeTimeout=window.setTimeout(()=>{pt.nativeElement.classList.remove(T)},this.stickyIdleDelay)}})}trackByMessageId(R,G){var J;return null!==(J=G.id)&&void 0!==J?J:R}}return(E=e).\u0275fac=function(R){return new(R||E)(i.rXU(f.P))},E.\u0275cmp=i.VBU({type:E,selectors:[["app-chat"]],viewQuery:function(R,G){if(1&R&&i.GBs(y,5,i.aKT),2&R){let J;i.mGM(J=i.lsd())&&(G.dateDivs=J)}},inputs:{previousDate:"previousDate",messages:"messages"},decls:1,vars:1,consts:[["dates",""],[4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","chatDateContainer",4,"ngIf"],[3,"id","message","files","localFiles","date","isOwn","party","isPending",4,"ngIf"],[1,"chatDateContainer"],[1,"chatDate",3,"dateTime"],[3,"title","description","icon",4,"ngIf"],[3,"title","description","icon"],[3,"id","message","files","localFiles","date","isOwn","party","isPending"]],template:function(R,G){1&R&&i.DNE(0,B,2,2,"ng-container",1),2&R&&i.Y8G("ngIf",G.messages)},dependencies:[s.Sq,s.bT,z,F,o.D9,b._],styles:[".chatDateContainer[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:16px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chatDateContainer.sticky[_ngcontent-%COMP%]{position:sticky;top:.5rem;z-index:10;transition:opacity .3s ease;opacity:0}
1.chatDateContainer.sticky.sticky-visible[_ngcontent-%COMP%]{opacity:1}.chatDateContainer[_ngcontent-%COMP%] .chatDate[_ngcontent-%COMP%]{border:1px solid var(--card-background);font-size:.85rem;padding:1px 10px;border-radius:7px;background-color:var(--app-color-plain)}"]}),e})()},9983:(rt,Y,t)=>{t.d(Y,{H:()=>H});var i=t(3953),g=t(5980),h=t(177),f=t(5374),s=t(1695),A=t(1367),x=t(4425),u=t(5514),C=t(4522);const L=P=>({title:!0,"text-plain":P}),v=P=>({file:P});function V(P,W){if(1&P&&(i.j41(0,"ion-thumbnail",4),i.nrm(1,"app-icon",5),i.nI1(2,"fileExtensionIcon"),i.k0s()),2&P){const $=i.XpG().file,S=i.XpG();i.R7$(),i.Y8G("color",S.invert?"plain":"secondary")("name","fa "+i.bMT(2,2,null==$||null==$.type?null:$.type.fileExtension))}}function w(P,W){if(1&P&&(i.j41(0,"ion-thumbnail"),i.nrm(1,"img",6),i.k0s()),2&P){const $=i.XpG().file;i.R7$(),i.FS9("appImgPreloader",null==$?null:$.thumbnailUrl),i.Y8G("id","image"+$.id)}}function Q(P,W){if(1&P&&i.DNE(0,V,3,4,"ion-thumbnail",3)(1,w,2,2,"ion-thumbnail",2),2&P){const $=W.file;i.Y8G("ngIf",!(null!=$&&null!=$.type&&$.type.isImage)),i.R7$(),i.Y8G("ngIf",null==$||null==$.type?null:$.type.isImage)}}function z(P,W){if(1&P&&(i.j41(0,"div",7),i.nrm(1,"app-text-truncate-middle",8),i.k0s()),2&P){const $=W.file,S=i.XpG();i.Y8G("ngClass",i.eq3(2,L,S.invert)),i.R7$(),i.Y8G("text",$.originalFilename)}}function q(P,W){if(1&P&&(i.j41(0,"app-item",10),i.qex(1,11),i.eu8(2,12),i.bVm(),i.eu8(3,12),i.k0s()),2&P){const $=W.$implicit,S=W.last,et=i.XpG(2),X=i.sdS(1),K=i.sdS(3);i.Y8G("wrapText",!0)("line",S?"none":"inset")("hasDetail",et.hasDetail)("click$",et.fileService.open$($)),i.R7$(2),i.Y8G("ngTemplateOutlet",X)("ngTemplateOutletContext",i.eq3(8,v,$)),i.R7$(),i.Y8G("ngTemplateOutlet",K)("ngTemplateOutletContext",i.eq3(10,v,$))}}function I(P,W){if(1&P&&(i.qex(0),i.DNE(1,q,4,12,"app-item",9),i.bVm()),2&P){const $=i.XpG();i.R7$(),i.Y8G("ngForOf",$.files)}}function F(P,W){if(1&P&&(i.j41(0,"ion-thumbnail",4),i.nrm(1,"app-icon",5),i.nI1(2,"fileExtensionIcon"),i.k0s()),2&P){const $=i.XpG().$implicit,S=i.XpG(2);i.R7$(),i.Y8G("color",S.invert?"plain":"secondary")("name","fa "+i.bMT(2,2,$.file.type))}}function o(P,W){if(1&P&&(i.j41(0,"ion-thumbnail"),i.nrm(1,"img",6),i.k0s()),2&P){const $=i.XpG().$implicit;i.R7$(),i.FS9("appImgPreloader",$.data),i.Y8G("id","image"+$.file.name)}}function b(P,W){if(1&P&&(i.j41(0,"app-item",14),i.qex(1,11),i.DNE(2,F,3,4,"ion-thumbnail",3)(3,o,2,2,"ion-thumbnail",2),i.bVm(),i.j41(4,"div",7),i.nrm(5,"app-text-truncate-middle",8),i.k0s()()),2&P){const $=W.$implicit,S=W.last,et=i.XpG(2);i.Y8G("wrapText",!0)("line",S?"none":"inset")("hasDetail",et.hasDetail),i.R7$(2),i.Y8G("ngIf",!$.file.type.includes("image")),i.R7$(),i.Y8G("ngIf",$.file.type.includes("image")),i.R7$(),i.Y8G("ngClass",i.eq3(7,L,et.invert)),i.R7$(),i.Y8G("text",$.file.name)}}function y(P,W){if(1&P&&(i.qex(0),i.DNE(1,b,6,9,"app-item",13),i.bVm()),2&P){const $=i.XpG();i.R7$(),i.Y8G("ngForOf",$.localFiles)}}let H=(()=>{var P;class W{constructor(S){this.fileService=S,this.invert=!1,this.hasDetail=!1}}return(P=W).\u0275fac=function(S){return new(S||P)(i.rXU(g.E))},P.\u0275cmp=i.VBU({type:P,selectors:[["app-files"]],inputs:{files:"files",localFiles:"localFiles",invert:"invert",hasDetail:"hasDetail"},decls:6,vars:2,consts:[["thumbnail",""],["name",""],[4,"ngIf"],["class","center-xy-flex",4,"ngIf"],[1,"center-xy-flex"],["size","large",3,"color","name"],["draggable","false",1,"image",3,"alt","id","appImgPreloader"],[3,"ngClass"],[3,"text"],["errorMessage","Datei kann nicht ge\xf6ffnet werden.",3,"wrapText","line","hasDetail","click$",4,"ngFor","ngForOf"],["errorMessage","Datei kann nicht ge\xf6ffnet werden.",3,"wrapText","line","hasDetail","click$"],["item-left",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"wrapText","line","hasDetail",4,"ngFor","ngForOf"],[3,"wrapText","line","hasDetail"]],template:function(S,et){1&S&&i.DNE(0,Q,2,2,"ng-template",null,0,i.C5r)(2,z,2,4,"ng-template",null,1,i.C5r)(4,I,2,1,"ng-container",2)(5,y,2,1,"ng-container",2),2&S&&(i.R7$(4),i.Y8G("ngIf",et.files),i.R7$(),i.Y8G("ngIf",et.localFiles))},dependencies:[h.YU,h.Sq,h.bT,h.T3,f.Zx,s.J,A.R,x.M,u.p,C.H],styles:[".title[_ngcontent-%COMP%]{font-size:1rem;width:100%;display:block;color:inherit}.text[_ngcontent-%COMP%]{font-size:.9rem;color:var(--ion-color-medium)}.image[_ngcontent-%COMP%]{border-radius:5px}a[_ngcontent-%COMP%]{color:inherit}"]}),W})()},7535:(rt,Y,t)=>{t.d(Y,{Z:()=>q});var i=t(3953),g=t(177),h=t(1056),f=t(1524);const s=["*"],A=(I,F)=>({"title-compact":I,"light-font":F}),x=(I,F)=>({date:!0,"date-compact":I,"light-font":F}),u=(I,F)=>({"subtitle-compact":I,"light-font":F});
1function C(I,F){if(1&I&&(i.nrm(0,"div",6),i.nI1(1,"stripHtml")),2&I){const o=i.XpG(2);i.Y8G("ngClass",i.l_i(4,A,o.compact,o.lightFont))("innerHTML",i.bMT(1,2,o.title),i.npT)}}function L(I,F){if(1&I&&(i.qex(0),i.EFF(1),i.bVm()),2&I){const o=i.XpG(3);i.R7$(),i.SpI(" ",o.date," ")}}function v(I,F){if(1&I&&(i.EFF(0),i.nI1(1,"naturalDate")),2&I){const o=i.XpG(3);i.SpI(" ",i.bMT(1,1,o.date)," ")}}function V(I,F){if(1&I&&(i.j41(0,"div",7)(1,"time",8),i.DNE(2,L,2,1,"ng-container",9)(3,v,2,3,"ng-template",null,0,i.C5r),i.k0s()()),2&I){const o=i.sdS(4),b=i.XpG(2);i.Y8G("ngClass",i.l_i(4,x,b.compact,b.lightFont)),i.R7$(),i.Y8G("dateTime",b.date),i.R7$(),i.Y8G("ngIf",b.preserveDateFormat)("ngIfElse",o)}}function w(I,F){if(1&I&&(i.j41(0,"header"),i.DNE(1,C,2,7,"div",4)(2,V,5,7,"div",5),i.k0s()),2&I){const o=i.XpG();i.R7$(),i.Y8G("ngIf",o.title),i.R7$(),i.Y8G("ngIf",o.date)}}function Q(I,F){if(1&I&&(i.nrm(0,"div",10),i.nI1(1,"stripHtml")),2&I){const o=i.XpG();i.Y8G("ngClass",i.l_i(4,u,o.compact,o.lightFont))("innerHTML",i.bMT(1,2,o.subtitle),i.npT)}}function z(I,F){if(1&I&&(i.nrm(0,"div",11),i.nI1(1,"stripHtml")),2&I){const o=i.XpG();i.AVh("no-subtitle",!o.subtitle)("text-compact",o.compact)("truncate-text-1",o.compact)("truncate-text-3",!o.compact),i.Y8G("innerHTML",i.bMT(1,9,o.text),i.npT)}}let q=(()=>{var I;class F{constructor(){this.preserveDateFormat=!1,this.lightFont=!1,this.compact=!1}}return(I=F).\u0275fac=function(b){return new(b||I)},I.\u0275cmp=i.VBU({type:I,selectors:[["app-item-standard-content"]],inputs:{title:"title",subtitle:"subtitle",text:"text",date:"date",preserveDateFormat:"preserveDateFormat",lightFont:"lightFont",compact:"compact"},ngContentSelectors:s,decls:4,vars:3,consts:[["dateTemplate",""],[4,"ngIf"],["class","subtitle truncate-text-1",3,"ngClass","innerHTML",4,"ngIf"],["class","text",3,"no-subtitle","text-compact","truncate-text-1","truncate-text-3","innerHTML",4,"ngIf"],["class","title truncate-text-1","appTruncateMiddle","",3,"ngClass","innerHTML",4,"ngIf"],["class","date",3,"ngClass",4,"ngIf"],["appTruncateMiddle","",1,"title","truncate-text-1",3,"ngClass","innerHTML"],[1,"date",3,"ngClass"],[3,"dateTime"],[4,"ngIf","ngIfElse"],[1,"subtitle","truncate-text-1",3,"ngClass","innerHTML"],[1,"text",3,"innerHTML"]],template:function(b,y){1&b&&(i.NAR(),i.DNE(0,w,3,2,"header",1)(1,Q,2,7,"div",2)(2,z,2,11,"div",3),i.SdG(3)),2&b&&(i.Y8G("ngIf",y.title||y.date),i.R7$(),i.Y8G("ngIf",y.subtitle),i.R7$(),i.Y8G("ngIf",y.text))},dependencies:[g.YU,g.bT,h._,f.u],styles:["[_nghost-%COMP%]{display:block}header[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.25rem;align-items:flex-start;justify-content:space-between}div[_ngcontent-%COMP%]{line-height:1.2}.title[_ngcontent-%COMP%]{font-size:1rem;font-weight:600}.title-compact[_ngcontent-%COMP%]{font-size:.9rem}.title.light-font[_ngcontent-%COMP%]{font-weight:400}.subtitle[_ngcontent-%COMP%]{font-size:.9rem;color:var(--ion-color-medium)}.subtitle-compact[_ngcontent-%COMP%]{font-size:.85rem}.subtitle.light-font[_ngcontent-%COMP%]{opacity:.7}.text[_ngcontent-%COMP%]{margin-top:.5em;line-height:1.2;opacity:.5;font-size:.9rem;color:var(--ion-color-medium);-webkit-hyphens:auto;hyphens:auto;word-break:break-word}.text.no-subtitle[_ngcontent-%COMP%]{margin-top:.2em}.text-compact[_ngcontent-%COMP%]{font-size:.85rem}.date[_ngcontent-%COMP%]{white-space:nowrap;font-size:.9rem;color:var(--ion-color-medium)}.date-compact[_ngcontent-%COMP%]{font-size:.85rem}"]}),F})()},4131:(rt,Y,t)=>{t.d(Y,{_:()=>i});var i=function(g){return g.InquiryCreation="inquiry-creation",g.InquiryEnded="inquiry-ended",g.ProcessingStarted="processing-started",g.ProcessingChanged="processing-changed",g.ProcessingEnded="processing-ended",g.ProcessingReopened="processing-reopened",g.AppointmentProposal="appt-proposal",g.AppointmentProposalAcceptance="appt-proposal-acceptance",g.AppointmentProposalRejection="appt-proposal-rejection",g}(i||{})},3209:(rt,Y,t)=>{t.d(Y,{E:()=>q});var i=t(9155),g=t(3953),h=t(3575),f=t(177),s=t(5374),A=t(999);const x=["*"];function u(I,F){1&I&&g.SdG(0)}function C(I,F){1&I&&g.eu8(0)}function L(I,F){if(1&I&&(g.qex(0),g.j41(1,"ion-grid",4)(2,"ion-row")(3,"ion-col",5)(4,"div",6),g.DNE(5,C,1,0,"ng-container",7),g.k0s()(),g.j41(6,"ion-col")(7,"div",8),g.nrm(8,"ion-router-outlet",9),g.k0s()()()(),g.bVm()),2&I){g.XpG(2);const o=g.sdS(1);g.R7$(5),g.Y8G("ngTemplateOutlet",o),g.R7$(3),g.Y8G("animated",!1)}}function v(I,F){1&I&&g.eu8(0)}function V(I,F){if(1&I&&(g.qex(0),g.j41(1,"div",10),g.DNE(2,v,1,0,"ng-container",7),g.k0s(),g.bVm()),2&I){g.XpG(2);const o=g.sdS(1);g.R7$(2),g.Y8G("ngTemplateOutlet",o)}}function w(I,F){if(1&I&&(g.qex(0),g.DNE(1,L,9,2,"ng-container",1),g.nI1(2,"async"),g.DNE(3,V,3,1,"ng-container",1),g.nI1(4,"async"),g.bVm()),2&I){const o=g.XpG();g.R7$(),g.Y8G("ngIf",g.bMT(2,2,o.screensizeService.isMin(o.ImportantBreakpoints.masterDetailSplit))),g.R7$(2),g.Y8G("ngIf",g.bMT(4,4,o.screensizeService.isMax(o.ImportantBreakpoints.masterDetailSplit)))}}function Q(I,F){1&I&&(g.j41(0,"div",11),g.nrm(1,"app-spinner",12),g.k0s())}
1function z(I,F){if(1&I&&(g.j41(0,"div",13),g.nrm(1,"i"),g.j41(2,"div"),g.EFF(3),g.k0s()()),2&I){const o=g.XpG();g.R7$(),g.HbH(o.AppIcons.HasError),g.R7$(2),g.JRh(o.textOnError)}}let q=(()=>{var I;class F extends i.${constructor(b){super(),this.screensizeService=b}}return(I=F).\u0275fac=function(b){return new(b||I)(g.rXU(h.P))},I.\u0275cmp=g.VBU({type:I,selectors:[["app-split-page-container"]],features:[g.Vt3],ngContentSelectors:x,decls:10,vars:13,consts:[["content",""],[4,"ngIf"],["class","center-xy loading",4,"ngIf"],["class","error center-xy",4,"ngIf"],[1,"ion-no-padding","ion-no-margin"],["size-md","4","size-xs","12"],[1,"page","master-page"],[4,"ngTemplateOutlet"],[1,"page","detail-page"],[3,"animated"],[1,"page"],[1,"center-xy","loading"],["size","large"],[1,"error","center-xy"]],template:function(b,y){1&b&&(g.NAR(),g.DNE(0,u,1,0,"ng-template",null,0,g.C5r)(2,w,5,6,"ng-container",1),g.nI1(3,"async"),g.nI1(4,"async"),g.DNE(5,Q,2,0,"div",2),g.nI1(6,"async"),g.nI1(7,"async"),g.DNE(8,z,4,4,"div",3),g.nI1(9,"async")),2&b&&(g.R7$(2),g.Y8G("ngIf",!1===g.bMT(3,3,y.hasError$)&&!1===g.bMT(4,5,y.isLoading$)),g.R7$(3),g.Y8G("ngIf",!1===g.bMT(6,7,y.hasError$)&&g.bMT(7,9,y.isLoading$)),g.R7$(3),g.Y8G("ngIf",g.bMT(9,11,y.hasError$)))},dependencies:[f.bT,f.T3,s.hU,s.lO,s.ln,s.Rg,A.t,f.Jj],styles:["[_nghost-%COMP%]{flex:1}ion-grid[_ngcontent-%COMP%], ion-row[_ngcontent-%COMP%], .page[_ngcontent-%COMP%]{height:100%}.page[_ngcontent-%COMP%]{overflow:hidden;display:flex;flex-direction:column}.detail-page[_ngcontent-%COMP%]{border-left:var(--border);position:relative}"],changeDetection:0}),F})()},4425:(rt,Y,t)=>{t.d(Y,{M:()=>g});var i=t(3953);let g=(()=>{var h;class f{constructor(){this.text="",this.leftText="",this.rightText=""}ngOnChanges(){this.splitText()}splitText(){if(!this.text)return;const A=Math.round(.75*this.text.length);this.leftText=this.text.slice(0,A),this.rightText=this.text.slice(A)}}return(h=f).\u0275fac=function(A){return new(A||h)},h.\u0275cmp=i.VBU({type:h,selectors:[["app-text-truncate-middle"]],inputs:{text:"text"},features:[i.OA$],decls:2,vars:2,consts:[[1,"left",3,"innerText"],[1,"right",3,"innerText"]],template:function(A,x){1&A&&i.nrm(0,"span",0)(1,"span",1),2&A&&(i.Y8G("innerText",x.leftText),i.R7$(),i.Y8G("innerText",x.rightText))},styles:["[_nghost-%COMP%]{display:flex;width:100%}.left[_ngcontent-%COMP%]{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:pre;color:inherit}.right[_ngcontent-%COMP%]{flex:1 0 auto;overflow:hidden;white-space:pre;color:inherit}"]}),f})()},6822:(rt,Y,t)=>{t.d(Y,{$v:()=>h,WK:()=>i,uC:()=>g});var i=function(f){return f[f.Unread=0]="Unread",f[f.Accepted=1]="Accepted",f[f.Rejected=2]="Rejected",f[f.Open=3]="Open",f[f.InProgress=4]="InProgress",f[f.WaitingForAnswer=5]="WaitingForAnswer",f}(i||{}),g=function(f){return f[f.CustomerApp=1]="CustomerApp",f[f.Email=2]="Email",f[f.FaciliooApp=3]="FaciliooApp",f[f.Telephone=4]="Telephone",f[f.Website=5]="Website",f[f.WhatsApp=6]="WhatsApp",f}(g||{});const h=[i.Accepted,i.Rejected]},9445:(rt,Y,t)=>{t.d(Y,{Y:()=>g,d:()=>h});var i=t(8203),g=function(f){return f[f.Note=1]="Note",f[f.ResponsibilityChange=3]="ResponsibilityChange",f[f.ProcessChange=4]="ProcessChange",f[f.OrderPlacement=5]="OrderPlacement",f[f.ProcessCompletion=6]="ProcessCompletion",f[f.OfferRequest=7]="OfferRequest",f[f.StatusChange=8]="StatusChange",f[f.ProcessCreation=9]="ProcessCreation",f[f.ProcessModification=10]="ProcessModification",f[f.Invoice=11]="Invoice",f[f.Offer=12]="Offer",f[f.ResponsibilityRemoval=13]="ResponsibilityRemoval",f[f.Reminder=14]="Reminder",f[f.OfferApproval=16]="OfferApproval",f[f.OfferRejection=17]="OfferRejection",f[f.WorkOrderDescriptionChange=18]="WorkOrderDescriptionChange",f[f.AssignmentAcceptance=19]="AssignmentAcceptance",f[f.AssignmentRejection=20]="AssignmentRejection",f[f.InsuranceForwarding=24]="InsuranceForwarding",f[f.ReportCompletion=25]="ReportCompletion",f[f.ReportRejection=26]="ReportRejection",f[f.TenderApplication=27]="TenderApplication",f[f.TenderRejection=28]="TenderRejection",f[f.TenderCreation=29]="TenderCreation",f[f.ProcessRejection=31]="ProcessRejection",f[f.ProcessForwarding=32]="ProcessForwarding",f[f.AppointmentProposal=34]="AppointmentProposal",f[f.NewMaintenanceAppointment=35]="NewMaintenanceAppointment",f[f.AppointmentProposalAcceptance=36]="AppointmentProposalAcceptance",f[f.AppointmentProposalRejection=37]="AppointmentProposalRejection",f[f.PropertyPhotoEvidence=38]="PropertyPhotoEvidence",f[f.TodoCreation=39]="TodoCreation",f[f.TodoCompletion=40]="TodoCompletion",f[f.TodoResumption=41]="TodoResumption",f}(g||{});const h={ios:i.k.iPhone,android:i.k.Android,web:i.k.Web}},8279:(rt,Y,t)=>{t.d(Y,{u:()=>g});var i=function(h){return h[h.Clerk=1]="Clerk",h[h.FacilityManager=2]="FacilityManager",h[h.Technician=3]="Technician",h[h.HouseManagement=4]="HouseManagement",h[h.TeamAssistant=5]="TeamAssistant",h[h.Accountant=6]="Accountant",h[h.ManagingDirector=7]="ManagingDirector",h[h.SecondClerk=8]="SecondClerk",h[h.ThirdClerk=9]="ThirdClerk",h[h.OperatingCost=10]="OperatingCost",h[h.PropertyManager=11]="PropertyManager",h[h.TeamLeadClerk=12]="TeamLeadClerk",h[h.RealEstateManager=13]="RealEstateManager",h[h.AssetManager=14]="AssetManager",h[h.RealEstateAgent=15]="RealEstateAgent",h[h.AccountingAssistant=16]="AccountingAssistant",h[h.TeamLeadAccounting=17]="TeamLeadAccounting",h[h.All=18]="All",h[h.Landlord=19]="Landlord",h[h.EnergyConsultant=20]="EnergyConsultant",h}(i||{});const g={[i.Clerk]:"Sachbearbeiter:in",[i.FacilityManager]:"Hausmeister:in",[i.Technician]:"Techniker:in",[i.HouseManagement]:"Hausbewirtschaftung",[i.TeamAssistant]:"Teamassistenz",[i.Accountant]:"Buchhalter:in",[i.ManagingDirector]:"Gesch\xe4ftsf\xfchrer:in",[i.SecondClerk]:"Sachbearbeiter:in II",[i.ThirdClerk]:"Sachbearbeiter:in III",[i.OperatingCost]:"Betriebskosten",[i.PropertyManager]:"Verwalter:in",[i.TeamLeadClerk]:"Teamleitung Verwalter",[i.RealEstateManager]:"Immobilienmanager:in",[i.AssetManager]:"Asset Manager:in",[i.RealEstateAgent]:"Immobilienmakler:in",[i.AccountingAssistant]:"Buchhaltungsassistenz",[i.TeamLeadAccounting]:"Teamleitung Buchhaltung",[i.All]:"- alle -",[i.Landlord]:"Vermieter:in",[i.EnergyConsultant]:"Energieberater:in"}},7683:(rt,Y,t)=>{t.d(Y,{F:()=>Cn});const i="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
1ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",g="\u03b5\u03bb1\u03c52\u0431\u04331\u0435\u043b3\u0434\u0435\u0442\u04384\u0435\u044e2\u043a\u0430\u0442\u043e\u043b\u0438\u043a6\u043e\u043c3\u043c\u043a\u04342\u043e\u043d1\u0441\u043a\u0432\u04306\u043e\u043d\u043b\u0430\u0439\u043d5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043a\u04403\u049b\u0430\u04373\u0570\u0561\u05753\u05d9\u05e9\u05e8\u05d0\u05dc5\u05e7\u05d5\u05dd3\u0627\u0628\u0648\u0638\u0628\u064a5\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062f\u06464\u0628\u062d\u0631\u064a\u06465\u062c\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062f\u064a\u06296\u0639\u0644\u064a\u0627\u06465\u0645\u063a\u0631\u06285\u0645\u0627\u0631\u0627\u062a5\u06cc\u0631\u0627\u06465\u0628\u0627\u0631\u062a2\u0632\u0627\u06314\u064a\u062a\u06433\u06be\u0627\u0631\u062a5\u062a\u0648\u0646\u06334\u0633\u0648\u062f\u0627\u06463\u0631\u064a\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064a\u06466\u0642\u0637\u06313\u0643\u0627\u062b\u0648\u0644\u064a\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064a\u0633\u064a\u06275\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067e\u0627\u06a9\u0633\u062a\u0627\u06467\u0680\u0627\u0631\u062a4\u0915\u0949\u092e3\u0928\u0947\u091f3\u092d\u093e\u0930\u09240\u092e\u094d3\u094b\u09245\u0938\u0902\u0917\u0920\u09285\u09ac\u09be\u0982\u09b2\u09be5\u09ad\u09be\u09b0\u09a42\u09f0\u09a44\u0a2d\u0a3e\u0a30\u0a244\u0aad\u0abe\u0ab0\u0aa44\u0b2d\u0b3e\u0b30\u0b244\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe6\u0bb2\u0b99\u0bcd\u0b95\u0bc86\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd11\u0c2d\u0c3e\u0c30\u0c24\u0c4d5\u0cad\u0cbe\u0cb0\u0ca44\u0d2d\u0d3e\u0d30\u0d24\u0d025\u0dbd\u0d82\u0d9a\u0dcf4\u0e04\u0e2d\u0e213\u0e44\u0e17\u0e223\u0ea5\u0eb2\u0ea73\u10d2\u10d42\u307f\u3093\u306a3\u30a2\u30de\u30be\u30f34\u30af\u30e9\u30a6\u30c94\u30b0\u30fc\u30b0\u30eb4\u30b3\u30e02\u30b9\u30c8\u30a23\u30bb\u30fc\u30eb3\u30d5\u30a1\u30c3\u30b7\u30e7\u30f36\u30dd\u30a4\u30f3\u30c84\u4e16\u754c2\u4e2d\u4fe11\u56fd1\u570b1\u6587\u7f513\u4e9a\u9a6c\u900a3\u4f01\u4e1a2\u4f5b\u5c712\u4fe1\u606f2\u5065\u5eb72\u516b\u53662\u516c\u53f81\u76ca2\u53f0\u6e7e1\u70632\u5546\u57ce1\u5e971\u68072\u5609\u91cc0\u5927\u9152\u5e975\u5728\u7ebf2\u5927\u62ff2\u5929\u4e3b\u65593\u5a31\u4e502\u5bb6\u96fb2\u5e7f\u4e1c2\u5fae\u535a2\u6148\u55842\u6211\u7231\u4f603\u624b\u673a2\u62db\u80582\u653f\u52a11\u5e9c2\u65b0\u52a0\u57612\u95fb2\u65f6\u5c1a2\u66f8\u7c4d2\u673a\u67842\u6de1\u9a6c\u95213\u6e38\u620f2\u6fb3\u95802\u70b9\u770b2\u79fb\u52a82\u7ec4\u7ec7\u673a\u67844\u7f51\u57401\u5e971\u7ad91\u7edc2\u8054\u901a2\u8c37\u6b4c2\u8d2d\u72692\u901a\u8ca92\u96c6\u56e22\u96fb\u8a0a\u76c8\u79d14\u98de\u5229\u6d663\u98df\u54c12\u9910\u53852\u9999\u683c\u91cc\u62c93\u6e2f2\ub2f7\ub1371\ucef42\uc0bc\uc1312\ud55c\uad6d2",h=(c,_)=>{for(const p in _)c[p]=_[p];return c},f="numeric",s="ascii",A="alpha",x="asciinumeric",u="alphanumeric",C="domain",L="emoji",v="scheme",V="slashscheme",w="whitespace";function Q(c,_){return c in _||(_[c]=[]),_[c]}function z(c,_,p){_[f]&&(_[x]=!0,_[u]=!0),_[s]&&(_[x]=!0,_[A]=!0),_[x]&&(_[u]=!0),_[A]&&(_[u]=!0),_[u]&&(_[C]=!0),_[L]&&(_[C]=!0);for(const O in _){const l=Q(O,p);l.indexOf(c)<0&&l.push(c)}}function I(c=null){this.j={},this.jr=[],this.jd=null,this.t=c}I.groups={},I.prototype={accepts(){return!!this.t},go(c){const _=this,p=_.j[c];if(p)return p;for(let O=0;O<_.jr.length;O++){const U=_.jr[O][1];if(U&&_.jr[O][0].test(c))return U}return _.jd},has(c,_=!1){return _?c in this.j:!!this.go(c)},ta(c,_,p,O){for(let l=0;l<c.length;l++)this.tt(c[l],_,p,O)},tr(c,_,p,O){let l;return O=O||I.groups,_&&_.j?l=_:(l=new I(_),p&&O&&z(_,p,O)),this.jr.push([c,l]),l},ts(c,_,p,O){let l=this;const U=c.length;if(!U)return l;for(let k=0;k<U-1;k++)l=l.tt(c[k]);return l.tt(c[U-1],_,p,O)},tt(c,_,p,O){O=O||I.groups;const l=this;if(_&&_.j)return l.j[c]=_,_;const U=_;let k,tt=l.go(c);if(tt?(k=new I,h(k.j,tt.j),k.jr.push.apply(k.jr,tt.jr),k.jd=tt.jd,k.t=tt.t):k=new I,U){if(O)if(k.t&&"string"==typeof k.t){const ct=h(function q(c,_){const p={};for(const O in _)_[O].indexOf(c)>=0&&(p[O]=!0);return p}(k.t,O),p);z(U,ct,O)}else p&&z(U,p,O);k.t=U}return l.j[c]=k,k}};const F=(c,_,p,O,l)=>c.ta(_,p,O,l),o=(c,_,p,O,l)=>c.tr(_,p,O,l),b=(c,_,p,O,l)=>c.ts(_,p,O,l),y=(c,_,p,O,l)=>c.tt(_,p,O,l),H="WORD",P="UWORD",W="ASCIINUMERICAL",$="ALPHANUMERICAL",S="LOCALHOST",et="TLD",X="UTLD",K="SCHEME",B="SLASH_SCHEME",n="NUM",T="WS",N="NL",E="OPENBRACE",e="CLOSEBRACE",M="OPENBRACKET",R="CLOSEBRACKET",G="OPENPAREN",J="CLOSEPAREN",ot="OP
1ENANGLEBRACKET",st="CLOSEANGLEBRACKET",nt="FULLWIDTHLEFTPAREN",mt="FULLWIDTHRIGHTPAREN",Tt="LEFTCORNERBRACKET",At="RIGHTCORNERBRACKET",Bt="LEFTWHITECORNERBRACKET",Ut="RIGHTWHITECORNERBRACKET",Lt="FULLWIDTHLESSTHAN",pt="FULLWIDTHGREATERTHAN",yt="AMPERSAND",xt="APOSTROPHE",$t="ASTERISK",ft="AT",jt="BACKSLASH",Yt="BACKTICK",Vt="CARET",Nt="COLON",te="COMMA",Xt="DOLLAR",Ot="DOT",ee="EQUALS",ue="EXCLAMATION",ht="HYPHEN",zt="PERCENT",Ht="PIPE",ne="PLUS",ie="POUND",Qt="QUERY",oe="QUOTE",wt="FULLWIDTHMIDDLEDOT",re="SEMI",Pt="SLASH",Kt="TILDE",Jt="UNDERSCORE",me="EMOJI",ae="SYM";var _e=Object.freeze({__proto__:null,WORD:H,UWORD:P,ASCIINUMERICAL:W,ALPHANUMERICAL:$,LOCALHOST:S,TLD:et,UTLD:X,SCHEME:K,SLASH_SCHEME:B,NUM:n,WS:T,NL:N,OPENBRACE:E,CLOSEBRACE:e,OPENBRACKET:M,CLOSEBRACKET:R,OPENPAREN:G,CLOSEPAREN:J,OPENANGLEBRACKET:ot,CLOSEANGLEBRACKET:st,FULLWIDTHLEFTPAREN:nt,FULLWIDTHRIGHTPAREN:mt,LEFTCORNERBRACKET:Tt,RIGHTCORNERBRACKET:At,LEFTWHITECORNERBRACKET:Bt,RIGHTWHITECORNERBRACKET:Ut,FULLWIDTHLESSTHAN:Lt,FULLWIDTHGREATERTHAN:pt,AMPERSAND:yt,APOSTROPHE:xt,ASTERISK:$t,AT:ft,BACKSLASH:jt,BACKTICK:Yt,CARET:Vt,COLON:Nt,COMMA:te,DOLLAR:Xt,DOT:Ot,EQUALS:ee,EXCLAMATION:ue,HYPHEN:ht,PERCENT:zt,PIPE:Ht,PLUS:ne,POUND:ie,QUERY:Qt,QUOTE:oe,FULLWIDTHMIDDLEDOT:wt,SEMI:re,SLASH:Pt,TILDE:Kt,UNDERSCORE:Jt,EMOJI:me,SYM:ae});const It=/[a-z]/,Wt=/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
1D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{1031F}\u{1032D}-\u{10340}\u{10342}-\u{10349}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{10400}-\u{1049D}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D23}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F45}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{11103}-\u{11126}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11680}-\u{116AA}\u{116B8}\u{11700}-\u{1171A}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118DF}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11FB0}\u{12000}-\u{12399}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A70}-\u{16ABE}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E7F}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E14E}\u{1E290}-\u{1E2AD}
1\u{1E2C0}-\u{1E2EB}\u{1E4D0}-\u{1E4EB}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E900}-\u{1E943}\u{1E94B}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}]/u,se=/[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299\u{1F004}\u{1F0CF}\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F202}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F321}\u{1F324}-\u{1F393}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}-\u{1F3F0}\u{1F3F3}-\u{1F3F5}\u{1F3F7}-\u{1F4FD}\u{1F4FF}-\u{1F53D}\u{1F549}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F56F}\u{1F570}\u{1F573}-\u{1F57A}\u{1F587}\u{1F58A}-\u{1F58D}\u{1F590}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5A5}\u{1F5A8}\u{1F5B1}\u{1F5B2}\u{1F5BC}\u{1F5C2}-\u{1F5C4}\u{1F5D1}-\u{1F5D3}\u{1F5DC}-\u{1F5DE}\u{1F5E1}
1\u{1F5E3}\u{1F5E8}\u{1F5EF}\u{1F5F3}\u{1F5FA}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CB}-\u{1F6D2}\u{1F6D5}-\u{1F6D7}\u{1F6DC}-\u{1F6E5}\u{1F6E9}\u{1F6EB}\u{1F6EC}\u{1F6F0}\u{1F6F3}-\u{1F6FC}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F90C}-\u{1F93A}\u{1F93C}-\u{1F945}\u{1F947}-\u{1F9FF}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA88}\u{1FA90}-\u{1FABD}\u{1FABF}-\u{1FAC5}\u{1FACE}-\u{1FADB}\u{1FAE0}-\u{1FAE8}\u{1FAF0}-\u{1FAF8}]/u,Mt=/\d/,ce=/\s/,ge="\r",pe="\n",Ee="\ufe0f",ye="\u200d",Z="\ufffc";let ut=null,a=null;function r(c,_){const p=function m(c){const _=[],p=c.length;let O=0;for(;O<p;){let U,l=c.charCodeAt(O),k=l<55296||l>56319||O+1===p||(U=c.charCodeAt(O+1))<56320||U>57343?c[O]:c.slice(O,O+2);_.push(k),O+=k.length}return _}(_.replace(/[A-Z]/g,tt=>tt.toLowerCase())),O=p.length,l=[];let U=0,k=0;for(;k<O;){let tt=c,ct=null,gt=0,_t=null,dt=-1,Et=-1;for(;k<O&&(ct=tt.go(p[k]));)tt=ct,tt.accepts()?(dt=0,Et=0,_t=tt):dt>=0&&(dt+=p[k].length,Et++),gt+=p[k].length,U+=p[k].length,k++;U-=dt,k-=Et,gt-=dt,l.push({t:_t.t,v:_.slice(U-gt,U),s:U-gt,e:U})}return l}function D(c,_,p,O,l){let U;const k=_.length;for(let tt=0;tt<k-1;tt++){const ct=_[tt];c.j[ct]?U=c.j[ct]:(U=new I(O),U.jr=l.slice(),c.j[ct]=U),c=U}return U=new I(p),U.jr=l.slice(),c.j[_[k-1]]=U,U}function j(c){const _=[],p=[];let O=0;for(;O<c.length;){let U=0;for(;"0123456789".indexOf(c[O+U])>=0;)U++;if(U>0){_.push(p.join(""));for(let k=parseInt(c.substring(O,O+U),10);k>0;k--)p.pop();O+=U}else p.push(c[O]),O++}return _}const it={defaultProtocol:"http",events:null,format:kt,formatHref:kt,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function at(c,_=null){let p=h({},it);c&&(p=h(p,c instanceof at?c.o:c));const O=p.ignoreTags,l=[];for(let U=0;U<O.length;U++)l.push(O[U].toUpperCase());this.o=p,_&&(this.defaultRender=_),this.ignoreTags=l}function kt(c){return c}function le(c,_){this.t="token",this.v=c,this.tk=_}function Zt(c,_){class p extends le{constructor(l,U){super(l,U),this.t=c}}for(const O in _)p.prototype[O]=_[O];return p.t=c,p}at.prototype={o:it,ignoreTags:[],defaultRender:c=>c,check(c){return this.get("validate",c.toString(),c)},get(c,_,p){const O=null!=_;let l=this.o[c];return l&&("object"==typeof l?(l=p.t in l?l[p.t]:it[c],"function"==typeof l&&O&&(l=l(_,p))):"function"==typeof l&&O&&(l=l(_,p.t,p)),l)},getObj(c,_,p){let O=this.o[c];return"function"==typeof O&&null!=_&&(O=O(_,p.t,p)),O},render(c){const _=c.render(this);return(this.get("render",null,c)||this.defaultRender)(_,c.t,c)}},le.prototype={isLink:!1,toString(){return this.v},toHref(c){return this.toString()},toFormattedString(c){const _=this.toString(),p=c.get("truncate",_,this),O=c.get("format",_,this);return p&&O.length>p?O.substring(0,p)+"\u2026":O},toFormattedHref(c){return c.get("formatHref",this.toHref(c.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(c=it.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(c),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(c){return{type:this.t,value:this.toFormattedString(c),isLink:this.isLink,href:this.toFormattedHref(c),start:this.startIndex(),end:this.endIndex()}},validate(c){return c.get("validate",this.toString(),this)},render(c){const _=this,p=this.toHref(c.get("defaultProtocol")),O=c.get("formatHref",p,this),l=c.get("tagName",p,_),U=this.toFormattedString(c),k={},tt=c.get("className",p,_),ct=c.get("target",p,_),gt=c.get("rel",p,_),_t=c.getObj("attributes",p,_),dt=c.getObj("events",p,_);return k.href=O,tt&&(k.class=tt),ct&&(k.target=ct),gt&&(k.rel=gt),_t&&h(k,_t),{tagName:l,attributes:k,content:U,eventListeners:dt}}};const Ce=Zt("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Ct=Zt("text"),de=Zt("nl"),qt=Zt("url",{isLink:!0,toHref(c=it.defaultProtocol){return this.hasProtocol()?this.v:`${c}://${this.v}`},hasProtocol(){const c=this.tk;return c.length>=2&&c[0].t!==S&&c[1].t===Nt}}),vt=c=>new I(c);function Ie(c,_,p){return new c(_.slice(p[0].s,p[p.length-1].e),p)}typeof console<"u"&&console&&console;const lt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Fe(c){return lt.initialized||function we(){lt.scanner=function d(c=[]){const _={};I.groups=_;const p=new I;null==ut&&(ut=j(i)),null==a&&(a=j(g)),y(p,"'",xt),y(p,"{",E),y(p,"}",e),y(p,"[",M),y(p,"]",R),y(p,"(",G),y(p,")",J),y(p,"<",ot),y(p,">",st),y(p,"\uff08",nt),y(p,"\uff09",mt),y(p,"\u300c",Tt),y(p,"\u300d",At),y(p,"\u300e",Bt),y(p,"\u300f",Ut),y(p,"\uff1c",Lt),y(p,"\uff1e",pt),y(p,"&",yt),y(p,"*",$t),y(p,"@",ft),y(p,"`",Yt),y(p,"^",Vt),y(p,":",Nt),y(p,",",te),y(p,"$",Xt),y(p,".",Ot),y(p,"=",ee),y(p,"!",ue),y(p,"-",ht),y(p,"%",zt),y(p,"|",Ht),y(p,"+",ne),y(p,"#",ie),y(p,"?",Qt),y(p,'"',oe),y(p,"/",Pt),y(p,";",re),y(p,"~",Kt),y(p,"_",Jt),y(p,"\\",jt),y(p,"\u30fb",wt);const O=o(p,Mt,n,{[f]:!0});o(O,Mt,O);const l=o(O,It,W,{[x]:!0}),U=o(O,Wt,$,{[u]:!0}),k=o(p,It,H,{[s]:!0});o(k,Mt,l),o(k,It,k),o(l,Mt,l),o(l,It,l);const tt=o(p,Wt,P,{[A]:!0});o(tt,It),o(tt,Mt,U),o(tt,Wt,tt),o(U,Mt,U),o(U,It),o(U,Wt,U);const ct=y(p,pe,N,{[w]:!0}),gt=y(p,ge,T,{[w]:!0}),_t=o(p,ce,T,{[w]:!0});y(p,Z,_t),y(gt,pe,ct),y(gt,Z,_t),o(gt,ce,_t),y(_t,ge),y(_t,pe),o(_t,ce,_t),y(_t,Z,_t);const dt=o(p,se,me,{[L]:!0});y(dt,"#"),o(dt,se,dt),y(dt,Ee,dt);const Et=y(dt,ye);y(Et,"#"),o(Et,se,dt);const Dt=[[It,k],[Mt,l]],fe=[[It,null],[Wt,tt],[Mt,U]];for(let St=0;St<ut.length;St++)D(p,ut[St],et,H,Dt);for(let St=0;St<a.length;St++)D(p,a[St],X,P,fe);z(et,{tld:!0,ascii:!0},_),z(X,{utld:!0,alpha:!0},_),D(p,"file",K,H,Dt),D(p,"mailto",K,H,Dt),D(p,"http",B,H,Dt),D(p,"https",B,H,Dt),D(p,"ftp",B,H,Dt),D(p,"ftps",B,H,Dt),z(K,{scheme:!0,ascii:!0},_),z(B,{slashscheme:!0,ascii:!0},_),c=c.sort((St,Gt)=>St[0]>Gt[0]?1:-1);for(let St=0;St<c.length;St++){const Gt=c[St][0],Ft=c[St][1]?{[v]:!0}:{[V]:!0};Gt.indexOf("-")>=0?Ft[C]=!0:It.test(Gt)?Mt.test(Gt)?Ft[x]=!0:Ft[s]=!0:Ft[f]=!0,b(p,Gt,Gt,Ft)}return b(p,"localhost",S,{ascii:!0}),p.jd=new I(ae),{start:p,tokens:h({groups:_},_e)}}(lt.customSchemes);for(let c=0;c<lt.tokenQueue.length;c++)lt.tokenQueue[c][1]({scanner:lt.scanner});lt.parser=function Pe({groups:c}){const _=c.domain.concat([yt,$t,ft,jt,Yt,Vt,Xt,ee,ht,n,zt,Ht,ne,ie,Pt,ae,Kt,Jt]),p=[Nt,te,Ot,ue,zt,Qt,oe,re,ot,st,E,e,R,M,G,J,nt,mt,Tt,At,Bt,Ut,Lt,pt],O=[yt,xt,$t,jt,Yt,Vt,Xt,ee,ht,E,e,zt,Ht,ne,ie,Qt,Pt,ae,Kt,Jt],l=vt(),U=y(l,Kt);F(U,O,U),F(U,c.domain,U);const k=vt(),tt=vt(),ct=vt();F(l,c.domain,k),F(l,c.scheme,tt),F(l,c.slashscheme,ct),F(k,O,U),F(k,c.domain,k);const gt=y(k,ft);y(U,ft,gt),y(tt,ft,gt),y(ct,ft,gt);const _t=y(U,Ot);F(_t,O,U),F(_t,c.domain,U);const dt=vt();F(gt,c.domain,dt),F(dt,c.domain,dt);const Et=y(dt,Ot);F(Et,c.domain,dt);const Dt=vt(Ce);F(Et,c.tld,Dt),F(Et,c.utld,Dt),y(gt,S,Dt);const fe=y(dt,ht);y(fe,ht,fe),F(fe,c.domain,dt),F(Dt,c.domain,dt),y(Dt,Ot,Et),y(Dt,ht,fe);const St=y(Dt,Nt);F(St,c.numeric,Ce);const Gt=y(k,ht),he=y(k,Ot);y(Gt,ht,Gt),F(Gt,c.domain,k),F(he,O,U),F(he,c.domain,k);const Ft=vt(qt);F(he,c.tld,Ft),F(he,c.utld,Ft),F(Ft,c.domain,k),F(Ft,O,U),y(Ft,Ot,he),y(Ft,ht,Gt),y(Ft,ft,gt);const Dn=y(Ft,Nt),ze=vt(qt);F(Dn,c.numeric,ze);const bt=vt(qt),Re=vt();F(bt,_,bt),F(bt,p,Re),F(Re,_,bt),F(Re,p,Re),y(Ft,Pt,bt),y(ze,Pt,bt);const Ge=y(tt,Nt),Tn=y(ct,Nt),An=y(Tn,Pt),je=y(An,Pt);F(tt,c.domain,k),y(tt,Ot,he),y(tt,ht,Gt),F(ct,c.domain,k),y(ct,Ot,he),y(ct,ht,Gt),F(Ge,c.domain,bt),y(Ge,Pt,bt),y(Ge,Qt,bt),F(je,c.domain,bt),F(je,_,bt),y(je,Pt,bt);const He=[[E,e],[M,R],[G,J],[ot,st],[nt,mt],[Tt,At],[Bt,Ut],[Lt,pt]];for(let Ke=0;Ke<He.length;Ke++){const[Qe,We]=He[Ke],Be=y(bt,Qe);y(Re,Qe,Be),y(Be,We,bt);const Oe=vt(qt);F(Be,_,Oe);const Se=vt();F(Be,p),F(Oe,_,Oe),F(Oe,p,Se),F(Se,_,Oe),F(Se,p,Se),y(Oe,We,bt),y(Se,We,bt)}return y(l,S,Ft),y(l,N,de),{start:l,tokens:_e}}(lt.scanner.tokens);for(let c=0;c<lt.pluginQueue.length;c++)lt.pluginQueue[c][1]({scanner:lt.scanner,parser:lt.parser});return lt.initialized=!0,lt}(),function xe(c,_,p){let O=p.length,l=0,U=[],k=[];for(;l<O;){let tt=c,ct=null,gt=null,_t=0,dt=null,Et=-1;for(;l<O&&!(ct=tt.go(p[l].t));)k.push(p[l++]);for(;l<O&&(gt=ct||tt.go(p[l].t));)ct=null,tt=gt,tt.accepts()?(Et=0,dt=tt):Et>=0&&Et++,l++,_t++;if(Et<0)l-=_t,l<O&&(k.push(p[l]),l++);else{k.length>0&&(U.push(Ie(Ct,_,k)),k=[]),l-=Et,_t-=Et;const Dt=dt.t,fe=p.slice(l-_t,l);U.push(Ie(Dt,_,fe))}}return k.length>0&&U.push(Ie(Ct,_,k)),U}(lt.parser.start,c,r(lt.scanner.start,c))}Fe.scan=r;var Je={amp:"&",gt:">",lt:"<",nbsp:"\xa0",quot:'"'},Ze=/^#[xX]([A-Fa-f0-9]+)$/,qe=/^#([0-9]+)$/,tn=/^([A-Za-z0-9]+)$/,en=function(){function c(_){this.named=_}return c.prototype.parse=function(_){if(_){var p=_.match(Ze);
1if(p)return String.fromCharCode(parseInt(p[1],16));if(p=_.match(qe))return String.fromCharCode(parseInt(p[1],10));if(p=_.match(tn))return this.named[p[1]]||"&"+p[1]+";"}},c}(),nn=/[\t\n\f ]/,on=/[A-Za-z]/,rn=/\r\n?/g;function Rt(c){return nn.test(c)}function ke(c){return on.test(c)}var sn=function(){function c(_,p,O){void 0===O&&(O="precompile"),this.delegate=_,this.entityParser=p,this.mode=O,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var l=this.peek();if("<"!==l||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===l){var U=this.tagNameBuffer.toLowerCase();("pre"===U||"textarea"===U)&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var l=this.peek(),U=this.tagNameBuffer;"<"!==l||this.isIgnoredEndTag()?"&"===l&&"script"!==U&&"style"!==U?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(l)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var l=this.consume();"!"===l?this.transitionTo("markupDeclarationOpen"):"/"===l?this.transitionTo("endTagOpen"):("@"===l||":"===l||ke(l))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(l))},markupDeclarationOpen:function(){var l=this.consume();"-"===l&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===l.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){Rt(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var l=this.consume();Rt(l)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(l.toLowerCase()))},doctypeName:function(){var l=this.consume();Rt(l)?this.transitionTo("afterDoctypeName"):">"===l?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(l.toLowerCase())},afterDoctypeName:function(){var l=this.consume();if(!Rt(l))if(">"===l)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var U=l.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),k="PUBLIC"===U.toUpperCase(),tt="SYSTEM"===U.toUpperCase();(k||tt)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),k?this.transitionTo("afterDoctypePublicKeyword"):tt&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var l=this.peek();Rt(l)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===l?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===l?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===l&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var l=this.consume();'"'===l?this.transitionTo("afterDoctypePublicIdentifier"):">"===l?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(l)},doctypePublicIdentifierSingleQuoted:function(){var l=this.consume();"'"===l?this.transitionTo("afterDoctypePublicIdentifier"):">"===l?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(l)},afterDoctypePublicIdentifier:function(){var l=this.consume();Rt(l)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===l?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===l?this.transitionTo("doctype
1SystemIdentifierDoubleQuoted"):"'"===l&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var l=this.consume();Rt(l)||(">"===l?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===l?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===l&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var l=this.consume();'"'===l?this.transitionTo("afterDoctypeSystemIdentifier"):">"===l?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(l)},doctypeSystemIdentifierSingleQuoted:function(){var l=this.consume();"'"===l?this.transitionTo("afterDoctypeSystemIdentifier"):">"===l?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(l)},afterDoctypeSystemIdentifier:function(){var l=this.consume();Rt(l)||">"===l&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var l=this.consume();"-"===l?this.transitionTo("commentStartDash"):">"===l?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(l),this.transitionTo("comment"))},commentStartDash:function(){var l=this.consume();"-"===l?this.transitionTo("commentEnd"):">"===l?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var l=this.consume();"-"===l?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(l)},commentEndDash:function(){var l=this.consume();"-"===l?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+l),this.transitionTo("comment"))},commentEnd:function(){var l=this.consume();">"===l?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+l),this.transitionTo("comment"))},tagName:function(){var l=this.consume();Rt(l)?this.transitionTo("beforeAttributeName"):"/"===l?this.transitionTo("selfClosingStartTag"):">"===l?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(l)},endTagName:function(){var l=this.consume();Rt(l)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===l?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===l?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(l)},beforeAttributeName:function(){var l=this.peek();Rt(l)?this.consume():"/"===l?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===l?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===l?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(l)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var l=this.peek();Rt(l)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===l?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===l?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===l?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===l||"'"===l||"<"===l?(this.delegate.reportSyntaxError(l+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(l)):(this.consume(),this.delegate.appendToAttributeName(l))},afterAttributeName:function(){var l=this.peek();Rt(l)?this.consume():"/"===l?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===l?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===l?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(l))},beforeAttributeValue:function(){var l=this.peek();Rt(l)?this.consume():'"'===l?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===l?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===l?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(l))},attributeValueDoubleQuoted:function(){var l=this.consume();'"'===l?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):this.delegate.appendToAttributeValue("&"===l?this.consumeCharRef()||"&":l)},attributeValueSingleQuoted:function(){var l=this.consume();"'"===l?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):this.delegate.appendToAttributeValue("&"===l?this.consumeCharRef()||"&":l)},attributeValueUnquoted:function(){var l=this.peek();Rt(l)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===l?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===l?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===l?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(l))},afterAttributeValueQuoted:function(){var l=this.peek();Rt(l)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===l?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===l?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var l=this.consume();("@"===l||":"===l||ke(l))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(l))}},this.reset()}return c.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},c.prototype.transitionTo=function(_){this.state=_},c.prototype.tokenize=function(_){this.reset(),this.tokenizePart(_),this.tokenizeEOF()},c.prototype.tokenizePart=function(_){for(this.input+=function an(c){return c.replace(rn,"\n")}(_);this.index<this.input.length;){var p=this.states[this.state];if(void 0===p)throw new Error("unhandled state "+this.state);p.call(this)}},c.prototype.tokenizeEOF=function(){this.flushData()},c.prototype.flushData=function(){"data"===this.state&&(this.delegate.finishData(),this.transitionTo("beforeData"))},c.prototype.peek=function(){return this.input.charAt(this.index)},c.prototype.consume=function(){var _=this.peek();return this.index++,"\n"===_?(this.line++,this.column=0):this.column++,_},c.prototype.consumeCharRef=function(){var _=this.input.indexOf(";",this.index);if(-1!==_){var p=this.input.slice(this.index,_),O=this.entityParser.parse(p);if(O){for(var l=p.length;l;)this.consume(),l--;return this.consume(),O}}},c.prototype.markTagStart=function(){this.delegate.tagOpen()},c.prototype.appendToTagName=function(_){this.tagNameBuffer+=_,this.delegate.appendToTagName(_)},c.prototype.isIgnoredEndTag=function(){var _=this.tagNameBuffer;return"title"===_&&"</title>"!==this.input.substring(this.index,this.index+8)||"style"===_&&"</style>"!==this.input.substring(this.index,this.index+8)||"script"===_&&"<\/script>"!==this.input.substring(this.index,this.index+9)},c}(),cn=function(){function c(_,p){void 0===p&&(p={}),this.options=p,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new sn(this,_,p.mode),this._currentAttribute=void 0}return c.prototype.tokenize=function(_){return this.tokens=[],this.tokenizer.tokenize(_),this.tokens},c.prototype.tokenizePart=function(_){return this.tokens=[],this.tokenizer.tokenizePart(_),this.tokens},c.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},c.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},c.prototype.current=function(){var _=this.token;if(null===_)throw new Error("token was unexpectedly null");if(0===arguments.length)return _;for(var p=0;p<arguments.length;p++)if(_.type===arguments[p])return _;throw new Error("token type was unexpectedly "+_.type)},c.prototype.push=function(_){this.token=_,this.tokens.push(_)},c.prototype.currentAttribute=function(){return this._currentAttribute},c.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},c.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},c.prototype.appendToDoctypeName=function(_){this.current("Doctype").name+=_},c.prototype.appendToDoctypePublicIdentifier=function(_){var p=this.current("Doctype");void 0===p.publicIdentifier?p.publicIdentifier=_:p.publicIdentifier+=_},c.prototype.appendToDoctypeSystemIdentifier=function(_){var p=this.current("Doctype");void 0===p.systemIdentifier?p.systemIdentifier=_:p.systemIdentifier+=_},c.prototype.endDoctype=function(){this.addLocInfo()},c.prototype.beginData=function(){this.push({type:"Chars",chars:""})},c.prototype.appendToData=function(_){this.current("Chars").chars+=_},c.prototype.finishData=function(){this.addLocInfo()},c.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},c.prototype.appendToCommentData=function(_){this.current("Comment").chars+=_},c.prototype.finishComment=function(){this.addLocInfo()},c.prototype.tagOpen=function(){},c.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},c.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},c.prototype.finishTag=function(){this.addLocInfo()},c.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},c.prototype.appendToTagName=function(_){this.current("StartTag","EndTag").tagName+=_},c.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},c.prototype.appendToAttributeName=function(_){this.currentAttribute()[0]+=_},c.prototype.beginAttributeValue=function(_){this.currentAttribute()[2]=_}
1,c.prototype.appendToAttributeValue=function(_){this.currentAttribute()[1]+=_},c.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},c.prototype.reportSyntaxError=function(_){this.current().syntaxError=_},c}();const Ye="LinkifyResult",be="StartTag",Ve="EndTag",Ue="Chars";function mn(c,_){const p=Fe(c),O=[];for(let l=0;l<p.length;l++){const U=p[l];"nl"===U.t&&_.get("nl2br")?O.push({type:be,tagName:"br",attributes:[],selfClosing:!0}):U.isLink&&_.check(U)?O.push({type:Ye,rendered:_.render(U)}):O.push({type:Ue,chars:U.toString()})}return O}function _n(c,_,p,O){let l=1;for(;p<_.length&&l>0;){let U=_[p];U.type===be&&U.tagName.toUpperCase()===c?l++:U.type===Ve&&U.tagName.toUpperCase()===c&&l--,O.push(U),p++}return O}function gn({tagName:c,attributes:_,content:p}){return`<${c} ${function fn(c){const _=[];for(const p in c)_.push(`${p}="${Xe(c[p]+"")}"`);return _.join(" ")}(_)}>${Le(p)}</${c}>`}function Le(c){return c.replace(/</g,"<").replace(/>/g,">")}function Xe(c){return c.replace(/"/g,""")}function hn(c){const _=[];for(let p=0;p<c.length;p++)_.push(`${c[p][0]}="${Xe(c[p][1]+"")}"`);return _}var Ne=t(3953),vn=t(345),En=t(2143);const yn={attributes:{target:"_blank"}};let Cn=(()=>{var c;class _{constructor(O,l){this.sanitizer=O,this.htmlUtilsService=l}transform(O){if(!O||"string"!=typeof O)return O;let l=this.htmlUtilsService.transformToHtml(O).trim();return l=function dn(c,_={}){const p=function ln(c,_){return new cn(new en(Je),_).tokenize(c)}(c),O=[],l=[],U=new at(_,gn);for(let k=0;k<p.length;k++){const tt=p[k];if(tt.type===be){O.push(tt);const ct=tt.tagName.toUpperCase();if(!("A"===ct||U.ignoreTags.indexOf(ct)>=0))continue;let _t=O.length;_n(ct,p,++k,O),k+=O.length-_t-1}else if(tt.type!==Ue)O.push(tt);else{const ct=mn(tt.chars,U);O.push.apply(O,ct)}}for(let k=0;k<O.length;k++){const tt=O[k];switch(tt.type){case Ye:l.push(tt.rendered);break;case be:{let ct="<"+tt.tagName;tt.attributes.length>0&&(ct+=" "+hn(tt.attributes).join(" ")),tt.selfClosing&&(ct+=" /"),ct+=">",l.push(ct);break}case Ve:l.push(`</${tt.tagName}>`);break;case Ue:l.push(Le(tt.chars));break;case"Comment":l.push(`\x3c!--${Le(tt.chars)}--\x3e`);break;case"Doctype":{let ct=`<!DOCTYPE ${tt.name}`;tt.publicIdentifier&&(ct+=` PUBLIC "${tt.publicIdentifier}"`),tt.systemIdentifier&&(ct+=` "${tt.systemIdentifier}"`),ct+=">",l.push(ct);break}}}return l.join("")}(l,yn),this.sanitizer.bypassSecurityTrustHtml(l)}}return(c=_).\u0275fac=function(O){return new(O||c)(Ne.rXU(vn.up,16),Ne.rXU(En.g,16))},c.\u0275pipe=Ne.EJ8({name:"linkify",type:c,pure:!0}),_})()},6797:(rt,Y,t)=>{t.d(Y,{x:()=>f});var i=t(4638),g=t(3953),h=t(4592);let f=(()=>{var s;class A extends i.d{constructor(u){super(u),this.backendService=u}get resource(){return"inquiry-categories"}}return(s=A).\u0275fac=function(u){return new(u||s)(g.KVO(h.m))},s.\u0275prov=g.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),A})()},4474:(rt,Y,t)=>{t.d(Y,{D:()=>f});var i=t(4638),g=t(3953),h=t(4592);let f=(()=>{var s;class A extends i.d{constructor(u){super(u),this.backendService=u}get resource(){return"inquiries"}}return(s=A).\u0275fac=function(u){return new(u||s)(g.KVO(h.m))},s.\u0275prov=g.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),A})()},3201:(rt,Y,t)=>{t.d(Y,{j:()=>f});var i=t(4638),g=t(3953),h=t(4592);let f=(()=>{var s;class A extends i.d{constructor(u){super(u),this.backendService=u}get resource(){return"process-feeds"}}return(s=A).\u0275fac=function(u){return new(u||s)(g.KVO(h.m))},s.\u0275prov=g.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),A})()},6942:(rt,Y,t)=>{t.d(Y,{h:()=>s});var i=t(6822),g=t(4638),h=t(3953),f=t(4592);let s=(()=>{var A;class x extends g.d{constructor(C){super(C),this.backendService=C}get resource(){return"processes"}listWithMetaData$(C,L){return super.listWithMetaData$(C,{...L,isFinished:this.getIsFinishedByReadStatus(null==L?void 0:L.readStatus)})}getIsFinishedByReadStatus(C){if(null!=C)return C!==i.WK.Open}}return(A=x).\u0275fac=function(C){return new(C||A)(h.KVO(f.m))},A.\u0275prov=h.jDH({token:A,factory:A.\u0275fac}),x})()},1673:(rt,Y,t)=>{t.d(Y,{n:()=>f});var i=t(4638),g=t(3953),h=t(4592);let f=(()=>{var s;class A extends i.d{constructor(u){super(u),this.backendService=u}get resource(){return"process-types"}}return(s=A).\u0275fac=function(u){return new(u||s)(g.KVO(h.m))},s.\u0275prov=g.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),A})()},4217:(rt,Y,t)=>{t.d(Y,{Z:()=>f});var i=t(4638),g=t(3953),h=t(4592);let f=(()=>{var s;class A extends i.d{constructor(u){super(u),this.backendService=u}get resource(){return"work-order-appointment-requests"}}return(s=A).\u0275fac=function(u){return new(u||s)(g.KVO(h.m))},s.\u0275prov=g.jDH({token:s,factory:s.\u0275fac,providedIn:"any"}),A})()},2225:(rt,Y,t)=>{t.d(Y,{t:()=>f});var i=t(4638),g=t(3953),h=t(4592);let f=(()=>{var s;class A extends i.d{constructor(u){super(u),this.backendService=u}get resource(){return"work-orders"}}return(s=A).\u0275fac=function(u){return new(u||s)(g.KVO(h.m))},s.\u0275prov=g.jDH({token:s,factory:s.\u0275fac}),A})()},2900:(rt,Y,t)=>{t.d(Y,{R:()=>h});var i=t(4638),g=t(3953);let h=(()=>{var f;class s extends i.d{get resource(){return"property-management-companies"}create$(){throw new Error(`Operation not allowed for ${this.resource}`)}update$(){throw new Error(`Operation not allowed for ${this.resource}`)}replace$(){throw new Error(`Operation not allowed for ${this.resource}`)}delete$(){throw new Error(`Operation not allowed for ${this.resource}`)}}return(f=s).\u0275fac=(()=>{let A;return function(u){return(A||(A=g.xGo(f)))(u||f)}})(),f.\u0275prov=g.jDH({token:f,factory:f.\u0275fac,providedIn:"root"}),s})()},8651:(rt,Y,t)=>{t.d(Y,{m:()=>s});var i=t(6843),g=t(4638),h=t(3953),f=t(4592);let s=(()=>{var A;class x extends g.d{constructor(C){super(C)}get resource(){return"entrances"}get entityMapper(){return C=>{var L,v;C.name=null!==(L=C.name)&&void 0!==L?L:`Aufgang ${null!==(v=C.number)&&void 0!==v?v:`(${C.id})`}`,C.fullAddress=(0,i._v)(C.fullStreet,C.zipCode,C.city);const V=[];return C.name&&V.push(C.name),C.fullAddress&&V.push(C.fullAddress),C.fullNameAndAddress=V.join(", "),C}}}return(A=x).\u0275fac=function(C){return new(C||A)(h.KVO(f.m))},A.\u0275prov=h.jDH({token:A,factory:A.\u0275fac,providedIn:"root"}),x})()},6457:(rt,Y,t)=>{t.d(Y,{E:()=>f});var i=t(4638),g=t(3953),h=t(4592);let f=(()=>{var s;class A extends i.d{constructor(u){super(u)}get resource(){return"property-role-defaults"}}return(s=A).\u0275fac=function(u){return new(u||s)(g.KVO(h.m))},s.\u0275prov=g.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),A})()},8356:(rt,Y,t)=>{t.d(Y,{q:()=>u});
1var i=t(3028),g=t(7673),h=t(6354),f=t(4638),s=t(3953),A=t(4592),x=t(1435);let u=(()=>{var C;class L extends f.d{constructor(V,w){super(V),this.unitContractTypeRepositoryService=w}get resource(){return"unit-contracts"}listAll$(V={},w=void 0){return super.listAll$(V,w).pipe((0,i.Z)(Q=>this.addType$(Q)))}addType$(V){return 0===V.length?(0,g.of)([]):this.unitContractTypeRepositoryService.listAll$().pipe((0,h.T)(w=>V.map(Q=>(Q.contractType=w.find(z=>Q.type===z.id),Q))))}}return(C=L).\u0275fac=function(V){return new(V||C)(s.KVO(A.m),s.KVO(x.q))},C.\u0275prov=s.jDH({token:C,factory:C.\u0275fac,providedIn:"root"}),L})()},1435:(rt,Y,t)=>{t.d(Y,{q:()=>f});var i=t(4638),g=t(3953),h=t(4592);let f=(()=>{var s;class A extends i.d{constructor(u){super(u)}get resource(){return"unit-contract-types"}}return(s=A).\u0275fac=function(u){return new(u||s)(g.KVO(h.m))},s.\u0275prov=g.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),A})()},2463:(rt,Y,t)=>{t.d(Y,{w:()=>s});var i=t(4638),g=t(3953),h=t(4592),f=t(9494);let s=(()=>{var A;class x extends i.d{constructor(C,L){super(C),this.unitTypeRepositoryService=L,this.unitTypes=[],this.unitTypeRepositoryService.listAll$().subscribe(v=>{this.unitTypes=v})}get resource(){return"units"}get entityMapper(){return C=>(C.type=this.unitTypes.find(L=>L.id===C.typeId)||void 0,C.fullName=this.constructFullName(C),C.fullNameWithType=this.constructFullNameWithType(C),C)}constructFullName(C){let L=[];if(C.number&&L.push(C.number.toString()),C.position&&L.push(C.position.toString()),0===L.length){var v,V;const w=(null===(v=C.type)||void 0===v?void 0:v.name)||"Einheit";L.push(`${w} ${null!==(V=C.number)&&void 0!==V?V:`(${C.id})`}`)}return L.join(" - ")}constructFullNameWithType(C){var L;return null===(L=C.type)||void 0===L||!L.name||C.fullName.toLocaleLowerCase().includes(C.type.name.toLocaleLowerCase())?C.fullName:`${C.fullName} (${C.type.name})`}}return(A=x).\u0275fac=function(C){return new(C||A)(g.KVO(h.m),g.KVO(f.i))},A.\u0275prov=g.jDH({token:A,factory:A.\u0275fac,providedIn:"root"}),x})()},9494:(rt,Y,t)=>{t.d(Y,{i:()=>f});var i=t(4638),g=t(3953),h=t(4592);let f=(()=>{var s;class A extends i.d{constructor(u){super(u),this.backendService=u}get resource(){return"unit-types"}}return(s=A).\u0275fac=function(u){return new(u||s)(g.KVO(h.m))},s.\u0275prov=g.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),A})()},7136:(rt,Y,t)=>{t.d(Y,{P:()=>L});var i=t(7673),g=t(7468),h=t(3028),f=t(6354),s=t(1594),A=t(3953),x=t(9727),u=t(6646),C=t(1626);let L=(()=>{var v;class V{constructor(Q,z,q){this.fileRepositoryService=Q,this.fileTypeRepositoryService=z,this.http=q}uploadFiles$(Q){return 0===Q.length?(0,i.of)([]):(0,g.p)(Q.map(z=>this.uploadFile$(z)))}uploadFile$({file:Q}){return this.getFileTypeIdForMimeType(Q.type).pipe((0,h.Z)(z=>this.createFileInRepository$({file:Q,typeId:z})),(0,h.Z)(z=>this.getUploadPath$(z).pipe((0,h.Z)(q=>this.uploadFileContent$(q.uploadUrl,Q)),(0,f.T)(()=>z))),(0,s.$)())}getFileTypeIdForMimeType(Q){return this.fileTypeRepositoryService.listAll$().pipe((0,f.T)(z=>{var q;return null===(q=z.find(I=>I.mimeType==Q))||void 0===q?void 0:q.id}),(0,f.T)(z=>{if(z)return z;throw new Error(`File type ${Q} can't be uploaded to facilioo.`)}))}createFileInRepository$({file:Q,typeId:z}){return this.fileRepositoryService.create$({originalFilename:Q.name,typeId:z,size:Q.size})}getUploadPath$(Q){return this.fileRepositoryService.replace$({},{directory:[{path:"files",id:Q.id}],modifiedResourceName:"upload"})}uploadFileContent$(Q,z){return this.http.put(Q,z)}}return(v=V).\u0275fac=function(Q){return new(Q||v)(A.KVO(x.E),A.KVO(u.k),A.KVO(C.Qq))},v.\u0275prov=A.jDH({token:v,factory:v.\u0275fac,providedIn:"root"}),V})()},5980:(rt,Y,t)=>{t.d(Y,{E:()=>I});var i=t(4572),g=t(3028),h=t(9437),f=t(8810),s=t(821),A=t(3953),x=t(8250),u=t(9727),C=t(2886),L=t(6198),v=t(6648),V=t(7673),w=t(8141),Q=t(263);let z=(()=>{var F;class o{constructor(y,H){this.deviceService=y,this.fileUtilsService=H}open$(y){return(0,v.H)(fetch(y.downloadUrl)).pipe((0,g.Z)(H=>H.ok?(0,v.H)(H.blob()):(0,f.$)(()=>new Error(`File (${y.originalFilename} / ${y.internalFilename}) not downloadable: ${H.statusText} (${H.status})`))),(0,g.Z)(H=>{if(0===H.size)return(0,f.$)(()=>new Error(`File (${y.originalFilename} / ${y.internalFilename}) is empty.`));const P=URL.createObjectURL(H);return this.startFileDownloadFromUrl(y,P),URL.revokeObjectURL(P),(0,V.of)(!0)}),(0,h.W)(H=>(console.error("Downloading file temporally failed",H),this.deviceService.isSafari$.pipe((0,w.M)(P=>{this.startFileDownloadFromUrl(y,y.downloadUrl,P?void 0:"_blank")})))))}share$(){return(0,f.$)(()=>new Error("File sharing not implemented for web."))}startFileDownloadFromUrl(y,H,P){this.fileUtilsService.startFileDownloadFromUrl(H,this.fileUtilsService.buildFileName(this.fileUtilsService.constructFileName(y)),P)}}return(F=o).\u0275fac=function(y){return new(y||F)(A.KVO(L.g),A.KVO(Q.J))},F.\u0275prov=A.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),o})();var q=t(7333);let I=(()=>{var F;class o extends s.I{constructor(y,H,P,W,$,S){super(W,{web:$,native:S}),this.alertService=y,this.fileRepositoryService=H,this.shareAdapterService=P,this.canShare$=this.shareAdapterService.canShare$()}open$(y){return(0,i.z)([this.refreshFile$(y),this.platformService$]).pipe((0,g.Z)(([H,P])=>P.open$(H)),(0,h.W)(H=>(this.alertService.info$({header:"Fehler",message:"Diese Datei kann nicht in der App ge\xf6ffnet werden."}),(0,f.$)(()=>H))))}share$(y){return(0,i.z)([this.refreshFile$(y),this.platformService$]).pipe((0,g.Z)(([H,P])=>P.share$(H)),(0,h.W)(H=>(this.alertService.info$({header:"Fehler",message:"Diese Datei konnte nicht geteilt werden."}),(0,f.$)(()=>H))))}refreshFile$(y){return this.fileRepositoryService.addDownloadUrl$(y)}}return(F=o).\u0275fac=function(y){return new(y||F)(A.KVO(x.u),A.KVO(u.E),A.KVO(C.u),A.KVO(L.g),A.KVO(z),A.KVO(q.d))},F.\u0275prov=A.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),o})()},6610:(rt,Y,t)=>{t.d(Y,{P:()=>f});var i=t(5538),g=t(3953),h=t(1056);let f=(()=>{var s;class A{constructor(u){this.naturalDatePipe=u,this.dateToString=C=>C.toLocaleDateString(i.u,{day:"numeric",month:"long",year:"numeric"}),this.isSameDay=(C,L)=>this.isSameMonth(C,L)&&C.getDate()===L.getDate(),this.isSameMonth=(C,L)=>this.isSameYear(C,L)&&C.getMonth()===L.getMonth(),this.isSameYear=(C,L)=>C.getFullYear()===L.getFullYear()}parseDateForInput(u){if(!u)return"";const C=new Date(u),L=("0"+C.getDate()).slice(-2),v=("0"+(C.getMonth()+1)).slice(-2);return C.getFullYear()+"-"+v+"-"+L}filterAndSelectNextUpcomingDates(u){const C=u=u.map(L=>new Date(L));return C.sort((L,v)=>L.getTime()-v.getTime()),C.length>0?C[0]:null}getDateDifferenceInDays(u,C=new Date){let v=(C.getTime()-u.getTime())/864e5;return v=v>0&&v<1?0:Math.floor(v),v}getDateRangeLabel(u,C){return u&&C?this.isSameDay(u,C)?this.naturalDatePipe.transform(u,"justDate"):this.isSameMonth(u,C)?`${u.getDate()}.\u2013${this.naturalDatePipe.transform(C,"justDate")}`:this.isSameYear(u,C)?`${u.getDate()}.${u.getMonth()}.\u2013${this.naturalDatePipe.transform(C,"justDate")}`:`${this.naturalDatePipe.transform(u,"justDate")}\u2013${this.naturalDatePipe.transform(C,"justDate")}`:u?`ab ${this.naturalDatePipe.transform(u,"justDate")}`:C?`bis ${this.naturalDatePipe.transform(C,"justDate")}`:""}}return(s=A).\u0275fac=function(u){return new(u||s)(g.KVO(h._))},s.\u0275prov=g.jDH({token:s,factory:s.\u0275fac,providedIn:"any"}),A})()},4221:(rt,Y,t)=>{t.r(Y),t.d(Y,{MainNavigationPageModule:()=>ut});var i=t(177),g=t(9417),h=t(5374),f=t(803),s=t(1413),A=t(6977),x=t(3028),u=t(7673),C=t(1594),L=t(5033),v=t(2172),V=t(5682),w=t(2176),Q=t(8194),z=t(9727),q=t(6646),I=t(7540),F=t(8952),o=t(4474),b=t(7236
1),y=t(6942),H=t(4217),P=t(7002),W=t(8356),$=t(1435),S=t(3266),et=t(8676),X=t(8137),K=t(1405),B=t(4582),n=t(3953),T=t(5267),N=t(8250),E=t(7788),e=t(4797),M=t(9155),R=t(3575),G=t(4284),J=t(675),ot=t(2709),st=t(999),nt=t(1695),mt=t(1367),Tt=t(119),At=t(5514),Bt=t(8855);const Ut=["template"],Lt=["*"],pt=()=>["/"],yt=a=>[a],xt=a=>({exact:a});function $t(a,d){if(1&a&&(n.j41(0,"h5",17),n.EFF(1),n.k0s()),2&a){const r=n.XpG(2);n.R7$(),n.JRh(r.companyName)}}function ft(a,d){if(1&a&&(n.j41(0,"h6",18),n.EFF(1),n.k0s()),2&a){const r=n.XpG(2);n.R7$(),n.JRh(r.profileName)}}function jt(a,d){if(1&a&&n.nrm(0,"app-button",31),2&a){const r=n.XpG().ngIf;n.Mz_("icon","fa fa-fw fa-",r.icon,""),n.Y8G("routerLink",n.eq3(5,yt,r.path))("invert",!0)("text",r.title)}}function Yt(a,d){if(1&a){const r=n.RV6();n.j41(0,"app-button",32),n.bIt("onClick",function(){n.eBV(r);const D=n.XpG(4);return n.Njj(D.openPrimaryModal())}),n.k0s()}if(2&a){const r=n.XpG().ngIf;n.Mz_("icon","fa fa-fw fa-",r.icon,""),n.Y8G("invert",!0)("text",r.title)}}function Vt(a,d){if(1&a&&(n.qex(0),n.DNE(1,jt,1,7,"app-button",29)(2,Yt,1,4,"app-button",30),n.bVm()),2&a){const r=d.ngIf,m=n.XpG(3);n.R7$(),n.Y8G("ngIf",r.path),n.R7$(),n.Y8G("ngIf",!r.path&&m.mainNavigationPrimaryElementModalComponent)}}function Nt(a,d){if(1&a&&n.nrm(0,"app-badge",38),2&a){const r=n.XpG().ngIf,m=n.XpG().$implicit;n.Y8G("isMinimal",null==m.visibility?null:m.visibility.minimalBadge)("invert",!0)("text",r)}}function te(a,d){if(1&a&&(n.qex(0,26),n.DNE(1,Nt,1,3,"app-badge",37),n.bVm()),2&a){const r=d.ngIf;n.R7$(),n.Y8G("ngIf",r)}}function Xt(a,d){if(1&a&&(n.qex(0,33),n.j41(1,"app-item",34),n.qex(2,23),n.nrm(3,"app-icon",35),n.bVm(),n.j41(4,"b",25),n.EFF(5),n.k0s(),n.DNE(6,te,2,1,"ng-container",36),n.nI1(7,"async"),n.k0s(),n.bVm()),2&a){const r=d.$implicit,m=n.XpG(3);n.R7$(),n.Y8G("routerLink",n.eq3(8,yt,r.path))("routerLinkActiveOptions",n.eq3(10,xt,r.path===m.navigationTypeMap[m.NavigationType.Dashboard].path||"/"===r.path)),n.R7$(2),n.Mz_("name","fa fa-fw fa-",r.icon,""),n.R7$(2),n.SpI(" ",r.title," "),n.R7$(),n.Y8G("ngIf",n.bMT(7,6,r.badgeCount$))}}function Ot(a,d){if(1&a&&n.nrm(0,"app-badge",38),2&a){const r=n.XpG().ngIf,m=n.XpG().$implicit;n.Y8G("isMinimal",null==m.visibility?null:m.visibility.minimalBadge)("invert",!0)("text",r)}}function ee(a,d){if(1&a&&(n.qex(0,26),n.DNE(1,Ot,1,3,"app-badge",37),n.bVm()),2&a){const r=d.ngIf;n.R7$(),n.Y8G("ngIf",r)}}function ue(a,d){if(1&a&&(n.qex(0),n.j41(1,"app-item",41),n.qex(2,23),n.nrm(3,"app-icon",35),n.bVm(),n.j41(4,"b",25),n.EFF(5),n.k0s(),n.DNE(6,ee,2,1,"ng-container",36),n.nI1(7,"async"),n.k0s(),n.bVm()),2&a){const r=d.$implicit;n.R7$(),n.Y8G("routerLink",n.eq3(7,yt,r.path)),n.R7$(2),n.Mz_("name","fa fa-fw fa-",r.icon,""),n.R7$(2),n.SpI(" ",r.title," "),n.R7$(),n.Y8G("ngIf",n.bMT(7,5,r.badgeCount$))}}function ht(a,d){if(1&a&&(n.j41(0,"ion-content",39),n.DNE(1,ue,8,9,"ng-container",40),n.k0s()),2&a){const r=n.XpG(3);n.R7$(),n.Y8G("ngForOf",r.subNavigation)}}function zt(a,d){if(1&a){const r=n.RV6();n.qex(0),n.DNE(1,Vt,3,2,"ng-container",12)(2,Xt,8,12,"ng-container",19),n.j41(3,"div"),n.nrm(4,"div",20),n.j41(5,"div",21)(6,"app-item",22),n.qex(7,23),n.nrm(8,"app-icon",24),n.bVm(),n.j41(9,"b",25),n.EFF(10,"Mehr"),n.k0s(),n.qex(11,26),n.nrm(12,"i",27),n.bVm(),n.k0s()(),n.j41(13,"ion-popover",28),n.bIt("click",function(){n.eBV(r),n.XpG();const D=n.sdS(2);return n.Njj(D.close())}),n.DNE(14,ht,2,1,"ng-template"),n.k0s()(),n.bVm()}if(2&a){const r=n.XpG(2);n.R7$(),n.Y8G("ngIf",r.mainNavigationPrimaryElement),n.R7$(),n.Y8G("ngForOf",r.mainNavigation),n.R7$(11),n.Y8G("dismissOnSelect",!0)("arrow",!0)("showBackdrop",!1)}}function Ht(a,d){1&a&&(n.j41(0,"div",42),n.nrm(1,"app-spinner",43),n.k0s())}function ne(a,d){if(1&a&&(n.j41(0,"div",44),n.nrm(1,"i"),n.j41(2,"div"),n.EFF(3),n.k0s(),n.j41(4,"small"),n.EFF(5,"(Menu Navigation)"),n.k0s()()),2&a){const r=n.XpG(2);n.R7$(),n.HbH(r.AppIcons.HasError),n.R7$(2),n.JRh(r.textOnError)}}function ie(a,d){if(1&a){const r=n.RV6();n.j41(0,"ion-split-pane",4)(1,"ion-menu",5,1)(3,"ion-header",6)(4,"ion-menu-toggle",7),n.nrm(5,"img",8),n.nI1(6,"async"),n.k0s(),n.DNE(7,$t,2,1,"h5",9)(8,ft,2,1,"h6",10),n.k0s(),n.j41(9,"ion-content",11),n.bIt("click",function(){n.eBV(r);const D=n.sdS(2);return n.Njj(D.close())}),n.DNE(10,zt,15,5,"ng-container",12),n.nI1(11,"async"),n.nI1(12,"async"),n.DNE(13,Ht,2,0,"div",13),n.nI1(14,"async"),n.nI1(15,"async"),n.DNE(16,ne,6,4,"div",14),n.nI1(17,"async"),n.k0s(),n.j41(18,"ion-footer",15),n.SdG(19),n.k0s()(),n.nrm(20,"ion-router-outlet",16),n.k0s()}if(2&a){const r=n.XpG();n.Y8G("when",r.ImportantBreakpoints.webSideMenu),n.R7$(4),n.Y8G("routerLink",n.lJ4(22,pt)),n.R7$(),n.Y8G("width",n.bMT(6,10,r.screensizeService.isMin("md"))?120:60)("appImgPreloader",r.companyImageSrc),n.R7$(2),n.Y8G("ngIf",!!r.companyName),n.R7$(),n.Y8G("ngIf",!!r.profileName),n.R7$(2),n.Y8G("ngIf",!1===n.bMT(11,12,r.hasError$)&&!1===n.bMT(12,14,r.isLoading$)),n.R7$(3),n.Y8G("ngIf",!1===n.bMT(14,16,r.hasError$)&&n.bMT(15,18,r.isLoading$)),n.R7$(3),n.Y8G("ngIf",n.bMT(17,20,r.hasError$)),n.R7$(4),n.Y8G("animated",!1)}}function Qt(a,d){if(1&a&&(n.j41(0,"ion-badge",53),n.EFF(1),n.k0s()),2&a){const r=n.XpG().ngIf,m=n.XpG(2).$implicit;n.AVh("minimal",null==m.visibility?null:m.visibility.minimalBadge),n.Y8G("ngClass",null!=m.visibility&&m.visibility.minimalBadge?"text-primary":"text-primary-contrast"),n.R7$(),n.JRh(null!=m.visibility&&m.visibility.minimalBadge?" ":r)}}function oe(a,d){if(1&a&&(n.qex(0),n.DNE(1,Qt,2,4,"ion-badge",52),n.bVm()),2&a){const r=d.ngIf;n.R7$(),n.Y8G("ngIf",r)}}function wt(a,d){if(1&a&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&a){const r=n.XpG(2).$implicit;
1n.R7$(),n.SpI(" ",r.title," ")}}function re(a,d){if(1&a){const r=n.RV6();n.j41(0,"ion-tab-button",50),n.bIt("click",function(){n.eBV(r);const D=n.XpG().$implicit,j=n.XpG(4);return n.Njj(j.onTabClick(D.path.replace("/","")))}),n.DNE(1,oe,2,1,"ng-container",12),n.nI1(2,"async"),n.j41(3,"div",51),n.nrm(4,"i"),n.k0s(),n.DNE(5,wt,2,1,"span",12),n.k0s()}if(2&a){const r=n.XpG().$implicit,m=n.XpG(4);n.Y8G("tab",r.path.replace("/","")),n.R7$(),n.Y8G("ngIf",n.bMT(2,7,r.badgeCount$)),n.R7$(2),n.Y8G("ngClass","tab-icon"),n.R7$(),n.ZvI("fa fa-",r.icon,""),n.R7$(),n.Y8G("ngIf",m.showTabTitle)}}function Pt(a,d){if(1&a){const r=n.RV6();n.j41(0,"div",54),n.bIt("click",function(){n.eBV(r);const D=n.XpG(5);return n.Njj(D.openPrimaryModal())}),n.nrm(1,"i"),n.k0s()}if(2&a){const r=n.XpG().$implicit;n.R7$(),n.ZvI("fa fa-",r.icon,"")}}function Kt(a,d){if(1&a&&(n.qex(0),n.DNE(1,re,6,9,"ion-tab-button",48)(2,Pt,2,3,"div",49),n.bVm()),2&a){const r=d.$implicit,m=n.XpG(4);n.R7$(),n.Y8G("ngIf",r.path),n.R7$(),n.Y8G("ngIf",!r.path&&m.mainNavigationPrimaryElementModalComponent)}}function Jt(a,d){if(1&a&&(n.qex(0),n.DNE(1,Kt,3,2,"ng-container",40),n.bVm()),2&a){const r=n.XpG(3);n.R7$(),n.Y8G("ngForOf",r.mainNavigationTabHelper)}}function me(a,d){1&a&&(n.j41(0,"div",42),n.nrm(1,"app-spinner",43),n.k0s())}function ae(a,d){if(1&a&&(n.j41(0,"div",44),n.nrm(1,"i"),n.j41(2,"div"),n.EFF(3),n.k0s(),n.j41(4,"small"),n.EFF(5,"(Tab Navigation)"),n.k0s()()),2&a){const r=n.XpG(3);n.R7$(),n.HbH(r.AppIcons.HasError),n.R7$(2),n.JRh(r.textOnError)}}function _e(a,d){if(1&a){const r=n.RV6();n.qex(0),n.j41(1,"ion-tabs",46),n.bIt("ionTabsWillChange",function(D){n.eBV(r);const j=n.XpG(2);return n.Njj(j.onTabsChange(D.tab))}),n.j41(2,"ion-tab-bar",47),n.DNE(3,Jt,2,1,"ng-container",12),n.nI1(4,"async"),n.nI1(5,"async"),n.DNE(6,me,2,0,"div",13),n.nI1(7,"async"),n.nI1(8,"async"),n.DNE(9,ae,6,4,"div",14),n.nI1(10,"async"),n.k0s()(),n.bVm()}if(2&a){const r=n.XpG(2);n.R7$(3),n.Y8G("ngIf",!1===n.bMT(4,3,r.hasError$)&&!1===n.bMT(5,5,r.isLoading$)),n.R7$(3),n.Y8G("ngIf",!1===n.bMT(7,7,r.hasError$)&&n.bMT(8,9,r.isLoading$)),n.R7$(3),n.Y8G("ngIf",n.bMT(10,11,r.hasError$))}}function It(a,d){1&a&&n.DNE(0,_e,11,13,"ng-container",45),2&a&&n.Y8G("appPlatform","mobile")}let Wt=(()=>{var a;class d extends M.${constructor(m,D,j){super(),this.viewContainerRef=m,this.screensizeService=D,this.hapticsService=j,this.template=null,this.showTabTitle=!0,this.subNavigation=[],this.settingsPage=e.R,this.isPrimaryModalOpen=!1,this.currentTab=""}ngOnInit(){this.setMainNavigationTabHelper(),this.template&&this.viewContainerRef.createEmbeddedView(this.template)}setMainNavigationTabHelper(){if(void 0===this.mainNavigationPrimaryElement)return;const m=this.mainNavigation.length;let D=0;m%2==0&&(D=~~(m/2)),this.mainNavigationTabHelper=[...this.mainNavigation],this.mainNavigationTabHelper.splice(D,0,{...this.mainNavigationPrimaryElement,primary:!0})}onTabsChange(m){this.currentTab=m}onTabClick(m){this.currentTab!==m&&this.hapticsService.medium()}openPrimaryModal(){this.hapticsService.medium(),this.isPrimaryModalOpen=!0}}return(a=d).\u0275fac=function(m){return new(m||a)(n.rXU(n.c1b),n.rXU(R.P),n.rXU(G.o))},a.\u0275cmp=n.VBU({type:a,selectors:[["app-navigation"],["","app-navigation",""]],viewQuery:function(m,D){if(1&m&&n.GBs(Ut,7),2&m){let j;n.mGM(j=n.lsd())&&(D.template=j.first)}},inputs:{mainNavigation:"mainNavigation",mainNavigationPrimaryElement:"mainNavigationPrimaryElement",mainNavigationPrimaryElementModalComponent:"mainNavigationPrimaryElementModalComponent",companyImageSrc:"companyImageSrc",companyName:"companyName",profileName:"profileName",showTabTitle:"showTabTitle",subNavigation:"subNavigation"},features:[n.Vt3],ngContentSelectors:Lt,decls:4,vars:4,consts:[["template",""],["menu",""],["contentId","main-content",3,"when",4,"appPlatform"],[3,"willDismiss","rootPage","canDismissBySwipe","isOpen"],["contentId","main-content",3,"when"],["contentId","main-content","type","reveal",1,"menu","bg-primary"],[1,"ion-margin-top","ion-padding-top","ion-text-center"],[1,"company-logo-link",3,"routerLink"],["draggable","false",3,"alt","width","appImgPreloader"],["class","text-primary-contrast company-name",4,"ngIf"],["class","text-primary-contrast profile-name",4,"ngIf"],[1,"ion-padding",3,"click"],[4,"ngIf"],["class","center-xy loading",4,"ngIf"],["class","error center-xy",4,"ngIf"],[1,"ion-padding-start","ion-padding-end"],["id","main-content",3,"animated"],[1,"text-primary-contrast","company-name"],[1,"text-primary-contrast","profile-name"],["auto-hide","false",4,"ngFor","ngForOf"],[1,"menu-divider"],["id","submenu-button"],["line","none",1,"rounded","menu-item","menu-item__more"],["item-left",""],["name","fa fa-fw fa-ellipsis","color","light"],[1,"text-primary-contrast"],["item-right",""],[1,"fa","fa-circle-chevron-right","medium","text-primary-contrast"],["triggerAction","hover","trigger","submenu-button","side","right","reference","trigger",1,"submenu",3,"click","dismissOnSelect","arrow","showBackdrop"],["routerDirection","root","routerLinkActive","selected","expand","block","color","primary","class","main-button ion-margin-bottom",3,"routerLink","invert","icon","text",4,"ngIf"],["hapticsStyle","none","expand","block","color","primary","class","main-button ion-margin-bottom",3,"invert","icon","text","onClick",4,"ngIf"],["routerDirection","root","routerLinkActive","selected","expand","block","color","primary",1,"main-button","ion-margin-bottom",3,"routerLink","invert","icon","text"],["hapticsStyle","none","expand","block","color","primary",1,"main-button","ion-margin-bottom",3,"onClick","invert","icon","text"],["auto-hide","false"],["routerDirection","root","line","none","detail","false","routerLinkActive","selected",1,"rounded","menu-item",3,"routerLink","routerLinkActiveOptions"],["color","light",3,"name"],["item-right","",4,"ngIf"],[3,"isMinimal","invert","text",4,"ngIf"],[3,"isMinimal","invert","text"],[1,"--bg-primary"],[4,"ngFor","ngForOf"],["routerDirection","root","line","none","detail","false","routerLinkActive","selected",3,"routerLink"],[1,"center-xy","loading"],["size","large"],[1,"error","center-xy"],[4,"appPlatform"],[3,"ionTabsWillChange"],["slot","bottom"],["class","tab-button",3,"tab","click",4,"ngIf"],["class","tab-icon-primary text-primary-switch",3,"click",4,"ngIf"],[1,"tab-button",3,"click","tab"],[3,"ngClass"],["class","--bg-primary",3,"minimal","ngClass",4,"ngIf"],[1,"--bg-primary",3,"ngClass"],[1,"tab-icon-primary","text-primary-switch",3,"click"]],template:function(m,D){if(1&m){const j=n.RV6();n.NAR(),n.DNE(0,ie,21,23,"ion-split-pane",2)(1,It,1,1,"ng-template",null,0,n.C5r),n.j41(3,"app-modal",3),n.bIt("willDismiss",function(){return n.eBV(j),n.Njj(D.isPrimaryModalOpen=!1)}),n.k0s()}2&m&&(n.Y8G("appPlatform","web"),n.R7$(3),n.Y8G("rootPage",D.mainNavigationPrimaryElementModalComponent)("canDismissBySwipe",!1)("isOpen",D.isPrimaryModalOpen))},dependencies:[i.YU,i.Sq,i.bT,h.In,h.W9,h.M0,h.eU,h.oS,h.cA,h.HP,h.Jq,h.qW,h.CF,h.p4,h.Rg,h.N7,f.Wk,f.wQ,J.B,ot.Q,st.t,nt.J,mt.R,Tt.z,At.p,Bt.n,i.Jj],styles:[".main-button[_ngcontent-%COMP%] ion-button{--color: var(--app-color-primary);--background: var(--app-color-primary-contrast)}.tab-button[_ngcontent-%COMP%]{--color-selected: var(--app-color-medium-dark);--color: var(--app-color-medium)}.tab-button[_ngcontent-%COMP%] .tab-icon[_ngcontent-%COMP%]{font-size:25px}.tab-button[_ngcontent-%COMP%] ion-badge[_ngcontent-%COMP%]{display:block}.tab-button[_ngcontent-%COMP%] ion-badge.minimal[_ngcontent-%COMP%]{width:.5rem;height:.5rem;overflow:hidden;padding:0;min-width:unset}.tab-icon-primary[_ngcontent-%COMP%]{font-size:42px;line-height:1;margin-inline:20px}ion-split-pane[_ngcontent-%COMP%]{--side-max-width: 200px}ion-menu[_ngcontent-%COMP%]{--background: inherit}ion-menu[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%]{--background: inherit}.submenu[_ngcontent-%COMP%]{--min-width: 200px}.submenu[_ngcontent-%COMP%]::part(content){border:none;max-height:-webkit-min-content;max-height:-moz-min-content;max-height:min-content}.submenu[_ngcontent-%COMP%]::part(arrow){--background: var(--app-color-primary)}.company-logo-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;line-height:1;cursor:pointer}.company-logo-link[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:100%;object-fit:cover;object-position:center}ion-header[_ngcontent-%COMP%]{padding-inline:.5rem}
1ion-header[_ngcontent-%COMP%] .company-name[_ngcontent-%COMP%]{margin-bottom:.25rem}ion-header[_ngcontent-%COMP%] .profile-name[_ngcontent-%COMP%]{opacity:.75;margin-top:0}"]}),d})();var se=t(293),ve=t(4792);const Mt=()=>[];function ce(a,d){if(1&a&&(n.qex(0),n.j41(1,"app-navigation",1),n.nI1(2,"async"),n.nI1(3,"async"),n.nI1(4,"async"),n.nI1(5,"partyName"),n.nI1(6,"async"),n.qex(7),n.nrm(8,"div",2),n.j41(9,"div",3),n.nrm(10,"app-open-emergency-button"),n.j41(11,"app-item",4),n.qex(12,5),n.nrm(13,"app-icon",6),n.bVm(),n.j41(14,"b",7),n.EFF(15,"Abmelden"),n.k0s()()(),n.bVm(),n.k0s(),n.bVm()),2&a){let r,m,D,j;const it=d.ngIf,at=n.XpG();n.R7$(),n.Y8G("companyImageSrc",null!==(r=n.bMT(2,10,at.brandingService.logo$))&&void 0!==r?r:"")("companyName",null!==(m=n.bMT(3,12,at.brandingService.propertyManagementCompanyName$))&&void 0!==m?m:"")("profileName",null!==(D=n.bMT(5,16,n.bMT(4,14,at.profile$)))&&void 0!==D?D:"")("mainNavigation",it)("mainNavigationPrimaryElement",at.mainNavigationPrimaryElement)("mainNavigationPrimaryElementModalComponent",at.inquiryPage)("subNavigation",null!==(j=n.bMT(6,18,at.navigationService.subNavigation$))&&void 0!==j?j:n.lJ4(20,Mt))("showTabTitle",!0),n.R7$(10),n.Y8G("compact",!0)("click$",at.onLogout$())}}const pe=[{path:"",component:(()=>{var a;class d{constructor(m,D,j,it,at,kt){this.brandingService=m,this.partyRepositoryService=D,this.routerOutlet=j,this.alertService=it,this.authenticationService=at,this.navigationService=kt,this.background="#00000000",this.inquiryPage=et.d,this.destroy$=new s.B,this.mainNavigationPrimaryElement={title:"Anfrage erstellen",path:"",icon:"circle-plus"},this.profile$=this.partyRepositoryService.mySelf$}ngOnInit(){this.routerOutlet.swipeGesture=!1,this.routerOutlet.activateEvents.pipe((0,A.Q)(this.destroy$)).subscribe(m=>{this.routerOutlet.swipeGesture=m instanceof B.n||m instanceof K.S})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onLogout$(){return this.alertService.confirm$({header:"Wirklich abmelden?",confirmText:"Abmelden"}).pipe((0,x.Z)(m=>m?this.authenticationService.logout$({preventReturnUrl:!0}):(0,u.of)(1)),(0,C.$)())}}return(a=d).\u0275fac=function(m){return new(m||a)(n.rXU(T.X),n.rXU(F.o),n.rXU(h.Rg),n.rXU(N.u),n.rXU(E.k),n.rXU(L.o))},a.\u0275cmp=n.VBU({type:a,selectors:[["app-main-navigation"]],hostVars:2,hostBindings:function(m,D){2&m&&n.xc7("background",D.background)},features:[n.Jv_([v.A,V.Q,w.F,Q.N,o.D,X.j,I.z,z.E,q.k,L.o,P.x,b.q,F.o,y.h,S.c,W.q,$.q,H.Z])],decls:2,vars:3,consts:[[4,"ngIf"],[3,"companyImageSrc","companyName","profileName","mainNavigation","mainNavigationPrimaryElement","mainNavigationPrimaryElementModalComponent","subNavigation","showTabTitle"],[1,"menu-divider"],[1,"custom-content"],["line","none","detail","false",1,"rounded","menu-item",3,"compact","click$"],["item-left",""],["name","fa fa-fw fa-right-from-bracket","color","light"],[1,"text-primary-contrast"]],template:function(m,D){1&m&&(n.DNE(0,ce,16,21,"ng-container",0),n.nI1(1,"async")),2&m&&n.Y8G("ngIf",n.bMT(1,1,D.navigationService.mainNavigation$))},dependencies:[i.bT,Wt,nt.J,mt.R,se.B,i.Jj,ve.o],styles:["[_nghost-%COMP%]{background-size:cover}[_nghost-%COMP%] ion-tabs .tabs-inner{overflow:hidden}.custom-content[_ngcontent-%COMP%]{padding-block:.5rem}"]}),d})(),children:[{path:t(576).aN.Settings,loadChildren:()=>Promise.all([t.e(3510),t.e(670)]).then(t.bind(t,670)).then(a=>a.SettingsPageModule)},{path:"dashboard",loadChildren:()=>Promise.all([t.e(4396),t.e(4329),t.e(854),t.e(3510),t.e(7168),t.e(6016)]).then(t.bind(t,6016)).then(a=>a.DashboardPageModule)},{path:"documents",loadChildren:()=>Promise.all([t.e(4396),t.e(4329)]).then(t.bind(t,4329)).then(a=>a.DocumentsPageModule)},{path:"processes",loadChildren:()=>Promise.all([t.e(4396),t.e(7168)]).then(t.bind(t,7168)).then(a=>a.ProcessesPageModule)},{path:"discover",loadChildren:()=>t.e(6437).then(t.bind(t,6437)).then(a=>a.DiscoverPageModule)},{path:"emergency",loadChildren:()=>t.e(1011).then(t.bind(t,1011)).then(a=>a.EmergencyPageModule)},{path:"inquiry",loadChildren:()=>t.e(8682).then(t.bind(t,8682)).then(a=>a.InquiryPageModule),outlet:"modal"},{path:"qrcode",loadChildren:()=>Promise.all([t.e(854),t.e(203)]).then(t.bind(t,854)).then(a=>a.QrcodePageModule)},{path:"",pathMatch:"full",redirectTo:"dashboard"}]}];let Ee=(()=>{var a;class d{}return(a=d).\u0275fac=function(m){return new(m||a)},a.\u0275mod=n.$C({type:a}),a.\u0275inj=n.G2t({imports:[f.iI.forChild(pe),f.iI]}),d})();var ye=t(8423),Z=t(3887);let ut=(()=>{var a;class d{}return(a=d).\u0275fac=function(m){return new(m||a)},a.\u0275mod=n.$C({type:a}
1),a.\u0275inj=n.G2t({imports:[i.MD,g.YN,h.bv,Ee,ye.U,Z.G]}),d})()},7913:(rt,Y,t)=>{t.d(Y,{Z:()=>n});var i=t(7376),h=t(7673),f=t(3028),s=t(6354),A=t(4061),x=t(4189),u=t(1139),C=t(2010),L=t(2900),v=t(3953),V=t(8952),w=t(7509),Q=t(177),z=t(2709),q=t(6346),I=t(1695),F=t(1367),o=t(7791),b=t(1991),y=t(4792),H=t(7161),P=t(3955);function W(T,N){if(1&T&&(v.j41(0,"app-item-group",5),v.nI1(1,"translate"),v.j41(2,"app-item",6)(3,"div")(4,"h1")(5,"b"),v.EFF(6),v.nI1(7,"partyName"),v.k0s()(),v.j41(8,"p"),v.EFF(9),v.k0s(),v.j41(10,"p"),v.EFF(11),v.k0s()()()()),2&T){const E=N.ngIf;v.Y8G("title",v.bMT(1,6,"EMERGENCY.YOUR_PROPERTY_MANAGEMENT_COMPANY")),v.R7$(2),v.Y8G("wrapText",!0),v.R7$(4),v.JRh(v.bMT(7,8,E)),v.R7$(3),v.JRh(E.fullStreet),v.R7$(2),v.Lme("",E.zipCode," ",E.city,"")}}function $(T,N){if(1&T&&(v.j41(0,"a",16),v.EFF(1),v.k0s()),2&T){const E=v.XpG().ngIf,e=v.XpG().$implicit;v.Y8G("href",E.hrefTransformer(e.contactInformation),v.B4B),v.R7$(),v.SpI(" ",e.contactInformation," ")}}function S(T,N){if(1&T&&(v.j41(0,"a"),v.EFF(1),v.k0s()),2&T){const E=v.XpG(2).$implicit;v.R7$(),v.JRh(E.contactInformation)}}function et(T,N){if(1&T&&(v.j41(0,"app-item",10),v.qex(1,11),v.nrm(2,"app-icon",12),v.bVm(),v.j41(3,"div",13),v.EFF(4),v.k0s(),v.j41(5,"div",14),v.DNE(6,$,2,2,"a",15)(7,S,2,1,"a",4),v.k0s()()),2&T){const E=N.ngIf,e=v.XpG().$implicit;v.Y8G("wrapText",!0)("compact",!0),v.R7$(2),v.Y8G("name",E.icon),v.R7$(2),v.JRh(e.name),v.R7$(2),v.Y8G("ngIf",E.hrefTransformer),v.R7$(),v.Y8G("ngIf",!E.hrefTransformer)}}function X(T,N){if(1&T&&(v.qex(0),v.DNE(1,et,8,6,"app-item",9),v.bVm()),2&T){const E=N.$implicit,e=v.XpG(3);v.R7$(),v.Y8G("ngIf",E.type&&e.directContactTypeConfigs[E.type])}}function K(T,N){if(1&T&&(v.j41(0,"app-item-group",5),v.nI1(1,"fullStreetOrName"),v.DNE(2,X,2,1,"ng-container",8),v.k0s()),2&T){const E=N.$implicit,e=v.XpG(2);v.Y8G("title",v.bMT(1,3,E)),v.R7$(2),v.Y8G("ngForOf",E.emergencyContacts)("ngForTrackBy",e.identifyById)}}function B(T,N){if(1&T&&(v.qex(0),v.DNE(1,K,3,5,"app-item-group",7),v.bVm()),2&T){const E=N.ngIf,e=v.XpG();v.R7$(),v.Y8G("ngForOf",E)("ngForTrackBy",e.identifyById)}}let n=(()=>{var T;class N extends x.d{constructor(e,M,R,G){super(),this.partyRepositoryService=e,this.propertyEmergencyContactRepositoryService=M,this.propertyRepositoryService=R,this.modalService=G,this.directContactTypeConfigs=A.n}get staticResource$(){return this.partyRepositoryService.getPropertyManagementCompanyByOwnProperties$()}get listRepository(){return this.propertyEmergencyContactRepositoryService}get searchRequest$(){return(0,h.of)({orderBy:["propertyId","name"]})}get transformListFunction(){return e=>(0,h.of)(e).pipe((0,f.Z)(M=>this.propertyRepositoryService.listForIds$((0,i.uniq)(M.map(R=>R.propertyId))).pipe((0,s.T)(R=>R.map(G=>(G.emergencyContacts=M.filter(J=>J.propertyId===G.id&&J.type&&J.type in this.directContactTypeConfigs),G))))),(0,s.T)(M=>M.filter(R=>{var G;return null==R||null===(G=R.emergencyContacts)||void 0===G?void 0:G.length})))}}return(T=N).\u0275fac=function(e){return new(e||T)(v.rXU(V.o),v.rXU(u.A),v.rXU(C.x),v.rXU(w.B))},T.\u0275cmp=v.VBU({type:T,selectors:[["app-emergency"]],features:[v.Jv_([u.A,L.R,C.x]),v.Vt3],decls:9,vars:13,consts:[["backgroundStyle","light",3,"title","isModal","enableInfinitScroll","isReloadable"],["header-buttons",""],["icon","fa fa-circle-xmark","fill","plain","size","small","role","normal",3,"click$"],[3,"title",4,"ngIf"],[4,"ngIf"],[3,"title"],[3,"wrapText"],[3,"title",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"wrapText","compact",4,"ngIf"],[3,"wrapText","compact"],["item-left",""],[3,"name"],[1,"contactName"],[1,"contactInformation"],["target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href"]],template:function(e,M){1&e&&(v.j41(0,"app-page",0),v.nI1(1,"translate"),v.qex(2,1),v.nrm(3,"app-button",2),v.bVm(),v.j41(4,"app-page-container"),v.DNE(5,W,12,10,"app-item-group",3),v.nI1(6,"async"),v.DNE(7,B,2,2,"ng-container",4),v.nI1(8,"async"),v.k0s()()),2&e&&(v.Y8G("title",v.bMT(1,7,"EMERGENCY.EMERGENCY_CONTACTS"))("isModal",!0)("enableInfinitScroll",!0)("isReloadable",!0),v.R7$(3),v.Y8G("click$",M.modalService.dismiss$()),v.R7$(2),v.Y8G("ngIf",v.bMT(6,9,M.staticData$)),v.R7$(2),v.Y8G("ngIf",v.bMT(8,11,M.listData$)))},dependencies:[Q.Sq,Q.bT,z.Q,q.H,I.J,F.R,o._,b.i,Q.Jj,y.o,H.r,P.D9],styles:[".contactName[_ngcontent-%COMP%]{font-weight:600;font-size:1rem}
1.contactInformation[_ngcontent-%COMP%]{font-size:1rem}.contactInformation[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--app-color-primary-switch)}"]}),N})()},8676:(rt,Y,t)=>{t.d(Y,{d:()=>ut});var i=t(7673),g=t(8141),h=t(8194),f=t(9727),s=t(6646),A=t(4474),x=t(8651),u=t(2010),C=t(2463),L=t(9494),v=t(7376),V=t(5558),w=t(6354),Q=t(4189),z=t(6797);function o(a,d){const{nodeMap:r,cycleRoots:m}=function q(a){const d=new Map;for(const m of a)d.set(m.id,{...m,children:[]});const r=function I(a){const d=new Set,r=new Set,m=new Set;function D(j){var it;if(d.has(j))return;if(r.has(j))return void m.add(j);r.add(j);const at=null===(it=a.get(j))||void 0===it?void 0:it.parentId;at&&a.has(at)&&D(at),r.delete(j),d.add(j)}for(const j of a.keys())D(j);return m}(d);return{nodeMap:d,cycleRoots:r}}(a),D=[];let j=r.get(d.id);for(;j;)D.unshift(j),j=j.parentId&&!m.has(j.id)?r.get(j.parentId):void 0;return D}var b=t(4412),y=t(5964),H=t(3028),P=t(4572),W=t(9437),$=t(8810),S=t(1594),et=t(7468),X=t(1986),K=t(7520),B=t(1079),n=t(6822),T=t(5385),N=t(8952),E=t(7136),e=t(3953),M=t(4284),R=t(8137),G=t(7509),J=t(8250),ot=t(9822),st=t(803),nt=t(177),mt=t(2709),Tt=t(6346),At=t(1991),Bt=t(2799),Ut=t(4311);let Lt=(()=>{var a;class d{constructor(m){this.colorService=m}}return(a=d).\u0275fac=function(m){return new(m||a)(e.rXU(Ut.l))},a.\u0275cmp=e.VBU({type:a,selectors:[["app-inquiry-success"]],decls:12,vars:2,consts:[[1,"center"],[1,"accepted-view"],[1,"accepted-text","accepted-text-top"],[1,"text-primary"],["id","m-check-mark","width","245px","height","173px","viewBox","0 0 245 173","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","Page-1","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd","stroke-opacity","1.0"],["id","checkmark","stroke-linecap","round","stroke-linejoin","round","stroke-width","15","points","5.640625 83.7607422 83.2539062 161.663086 238.97168 6.11328125"]],template:function(m,D){1&m&&(e.j41(0,"div",0),e.nrm(1,"div",1),e.j41(2,"div",2)(3,"h1",3)(4,"b"),e.EFF(5,"Vielen Dank."),e.k0s()(),e.j41(6,"h1",3)(7,"b"),e.EFF(8,"Wir haben Ihre Anfrage erhalten."),e.k0s()()(),e.qSk(),e.j41(9,"svg",4)(10,"g",5),e.nrm(11,"polyline",6),e.k0s()()()),2&m&&(e.R7$(11),e.x72("stroke","#",D.colorService.primary,""))},styles:["[_nghost-%COMP%]{display:block;position:absolute;height:100%;width:100%;z-index:2}.accepted-view[_ngcontent-%COMP%]{height:100%;width:100%;border-radius:0%;opacity:100%;animation-name:_ngcontent-%COMP%_accepted;animation-duration:1s;vertical-align:middle;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}.center[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;justify-content:center;align-items:center;text-align:center}@keyframes _ngcontent-%COMP%_accepted{0%{height:170px;width:170px;border-radius:100%;opacity:0%}30%{height:200px;width:200px;border-radius:100%;opacity:100%}60%{height:170px;width:170px;border-radius:100%;opacity:100%}to{height:100%;width:100%;border-radius:0%}}.accepted-text[_ngcontent-%COMP%]{padding:20px;animation-name:_ngcontent-%COMP%_accepted-text;animation-duration:1s;opacity:100%}@keyframes _ngcontent-%COMP%_accepted-text{0%{opacity:0%}60%{opacity:0%}to{opacity:100%}}.accepted-text-top[_ngcontent-%COMP%]{position:fixed;top:25%}.accepted-text-bottom[_ngcontent-%COMP%]{position:fixed;top:65%}.to-order-btn[_ngcontent-%COMP%]{margin-top:20px;--background: white;--color: var(--ion-color-success)}#m-check-mark[_ngcontent-%COMP%]{position:fixed;width:150px;padding:10px;height:auto;animation-name:_ngcontent-%COMP%_chechmark-up;animation-duration:1s;transform:translateY(30%)}@keyframes _ngcontent-%COMP%_chechmark-up{0%{transform:translateY(-17%)}60%{transform:translateY(-17%)}to{transform:translateY(30%)}}#checkmark[_ngcontent-%COMP%]{stroke-dasharray:640;stroke-dashoffset:0;transform-origin:center;animation:_ngcontent-%COMP%_draw-around 2s}@keyframes _ngcontent-%COMP%_draw-around{0%{stroke-dashoffset:640}10%{stroke-dashoffset:640}to{stroke-dashoffset:0}}"]}),d})();var pt=t(3955);function yt(a,d){1&a&&e.nrm(0,"i",10)}function xt(a,d){if(1&a&&(e.j41(0,"span",8),e.EFF(1),e.DNE(2,yt,1,0,"i",9),e.k0s()),2&a){const r=d.$implicit,m=d.index,D=e.XpG();e.R7$(),e.SpI(" ",r," "),e.R7$(),e.Y8G("ngIf",m+1!==D.path.length)}}function $t(a,d){1&a&&e.nrm(0,"app-callout",11)}function ft(a,d){1&a&&e.nrm(0,"app-inquiry-success")}let jt=(()=>{var a;class d{constructor(m,D,j,it,at,kt,Ae,le,Zt,Ce){this.fileRepositoryService=m,this.fileUploadService=D,this.hapticsService=j,this.inquiryRepositoryService=it,this.inquiryFormService=at,this.modalService=kt,this.alertService=Ae,this.partyRepositoryService=le,this.reloadService=Zt,this.router=Ce,this.isSending=new b.t(!1),this.successFullySend=!1,this.model=[{fields:{subject:{label:"Betreff",disabled$:this.isSending.asObservable(),value:"",type:{name:B.cy.Text,props:{min:1,max:255}},placeholder:'Betreff eingeben (z.B. "L\xe4rm in der Wohnung")',rules:[B.Xg.Required]},report:{label:"Nachricht",disabled$:this.isSending.asObservable(),value:"",type:{name:B.cy.MultilineText,props:{autoGrow:!1,rows:8,filesPasteTarget:{groupIndex:1,fieldName:"files"}}},placeholder:"Text eingeben",rules:[B.Xg.Required]}}},{fields:{files:{label:"Anhang",placeholder:"",disabled$:this.isSending.asObservable(),value:"",type:{name:B.cy.File}}}}],this.send$=(0,i.of)(1).pipe((0,y.p)(()=>
1{if(!this.inquiryForm)return!1;if(!this.inquiryFormService.categoryId)throw new Error("CategoryId not provided.");return this.hapticsService.medium(),this.isSending.next(!0),!0}),(0,H.Z)(()=>(0,P.z)([(0,i.of)(this.inquiryForm.submit()),this.partyRepositoryService.mySelf$,this.partyRepositoryService.getPropertyManagementCompanyByOwnProperties$()])),(0,H.Z)(([Ct,de,qt])=>{const De={sourceId:n.uC.CustomerApp,categoryId:this.inquiryFormService.categoryId,subject:Ct.subject,report:Ct.report,connectedPartyId:de.id,connectedPropertyId:this.inquiryFormService.propertyId,connectedUnitId:this.inquiryFormService.unitId,receiverPartyId:qt.id};return this.fileUploadService.uploadFiles$(Ct.files).pipe((0,W.W)(vt=>(console.error("File upload failed",vt),this.alertService.info$({header:"Datei-Upload fehlgeschlagen",message:"Deine Nachricht wurde nicht gesendet, da der Upload einer oder mehrerer Dateien fehlgeschlagen ist. Bitte versuche es erneut oder nehme die Dateien aus der Nachricht heraus."}).pipe((0,H.Z)(()=>(0,$.$)(()=>new Error("File upload failed")))))),(0,H.Z)(vt=>this.inquiryRepositoryService.create$(De).pipe((0,w.T)(Pe=>({createdInquiry:Pe,files:vt})))))}),(0,H.Z)(({createdInquiry:Ct,files:de})=>{if(0===de.length)return(0,i.of)(Ct);const qt=de.map(De=>this.fileRepositoryService.replace$(De,{resourceId:De.id,directory:[{path:"inquiries",id:Ct.id}],modifiedResourceName:"attachments"}).pipe((0,S.$)()));return(0,et.p)(qt).pipe((0,w.T)(()=>Ct))}),(0,g.M)(()=>{this.isSending.next(!1),this.successFullySend=!0,this.hapticsService.light()}),(0,X.c)(1e3),(0,g.M)(()=>{this.hapticsService.success()}),(0,X.c)(1e3),(0,g.M)(()=>this.reloadService.reloadProcessInquiries()),(0,g.M)(Ct=>this.router.navigate(["/processes/inquiries",Ct.id])),(0,H.Z)(()=>this.modalService.dismiss$()),(0,W.W)(Ct=>(this.isSending.next(!1),this.hapticsService.error(),(0,$.$)(()=>Ct))))}ngAfterViewInit(){if(this.path){var m;const[D,...j]=this.path,it=j.length>0?j.join(" > "):D;null===(m=this.inquiryForm)||void 0===m||m.setValue({formGroupIndex:0,fieldName:"subject",value:it})}}}return(a=d).\u0275fac=function(m){return new(m||a)(e.rXU(f.E),e.rXU(E.P),e.rXU(M.o),e.rXU(A.D),e.rXU(R.j),e.rXU(G.B),e.rXU(J.u),e.rXU(N.o),e.rXU(ot.P),e.rXU(st.Ix))}
1,a.\u0275cmp=e.VBU({type:a,selectors:[["app-inquiry-message"]],viewQuery:function(m,D){if(1&m&&e.GBs(K.f,5),2&m){let j;e.mGM(j=e.lsd())&&(D.inquiryForm=j.first)}},features:[e.Jv_([T.t,f.E,s.k,E.P,A.D,N.o,u.x])],decls:13,vars:14,consts:[["backgroundColor","primary","backgroundStyle","light",3,"title","isModal","backText"],["header-buttons",""],["size","small","fill","plain","text","Abschicken","hapticsStyle","none","role","normal",3,"disabled","click$"],[1,"description"],["class","description-path-item",4,"ngFor","ngForOf"],["severity","warning","text","Bei Anfragen ohne Objekt- und Einheitenbezug kann es zur einer l\xe4ngeren Bearbeitungszeit kommen.","style","margin: 0; margin-top: 1rem",4,"ngIf"],[3,"model"],[4,"ngIf"],[1,"description-path-item"],["class","fa fa-chevron-right path-icon",4,"ngIf"],[1,"fa","fa-chevron-right","path-icon"],["severity","warning","text","Bei Anfragen ohne Objekt- und Einheitenbezug kann es zur einer l\xe4ngeren Bearbeitungszeit kommen.",2,"margin","0","margin-top","1rem"]],template:function(m,D){1&m&&(e.j41(0,"app-page",0),e.nI1(1,"translate"),e.qex(2,1),e.nrm(3,"app-button",2),e.bVm(),e.j41(4,"div",3)(5,"div"),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.DNE(8,xt,3,2,"span",4)(9,$t,1,0,"app-callout",5),e.k0s(),e.j41(10,"app-page-container"),e.nrm(11,"app-dynamic-form",6),e.k0s()(),e.DNE(12,ft,1,0,"app-inquiry-success",7)),2&m&&(e.Y8G("title","Nachricht")("isModal",!0)("backText",e.bMT(1,10,"COMMON.BACK")),e.R7$(3),e.Y8G("disabled",!(null!=D.inquiryForm&&D.inquiryForm.isValid))("click$",D.send$),e.R7$(3),e.SpI("",e.bMT(7,12,"INQUIRY.MESSAGE.PLEASE_WRITE"),":"),e.R7$(2),e.Y8G("ngForOf",D.path),e.R7$(),e.Y8G("ngIf",D.inquiryFormService.isGeneralInquiry()),e.R7$(2),e.Y8G("model",D.model),e.R7$(),e.Y8G("ngIf",D.successFullySend))},dependencies:[nt.Sq,nt.bT,mt.Q,Tt.H,K.f,At.i,Bt.G,Lt,pt.D9],styles:[".description[_ngcontent-%COMP%]{margin:1rem 1rem 2rem}.description-path-item[_ngcontent-%COMP%]{font-weight:600}"]}),d})();var Yt=t(5374),Vt=t(1367),Nt=t(2400);function te(a,d){1&a&&e.nrm(0,"i",7)}function Xt(a,d){if(1&a&&(e.qex(0),e.j41(1,"span",5),e.EFF(2),e.k0s(),e.DNE(3,te,1,0,"i",6),e.bVm()),2&a){const r=d.$implicit,m=d.index,D=e.XpG();e.R7$(2),e.SpI(" ",r," "),e.R7$(),e.Y8G("ngIf",m+1!==D.path.length)}}function Ot(a,d){1&a&&e.nrm(0,"app-callout",8)}function ee(a,d){1&a&&(e.j41(0,"div")(1,"em"),e.EFF(2,"Nichts gefunden ..."),e.k0s()())}function ue(a,d){1&a&&e.nrm(0,"i",22)}function ht(a,d){if(1&a&&(e.qex(0),e.j41(1,"span",20),e.EFF(2),e.k0s(),e.DNE(3,ue,1,0,"i",21),e.bVm()),2&a){const r=d.$implicit,m=d.index,D=e.XpG(2).$implicit;e.R7$(2),e.SpI(" ",r.name," "),e.R7$(),e.Y8G("ngIf",m+1!==D.breadcrumb.length)}}function zt(a,d){if(1&a&&(e.qex(0),e.j41(1,"div",19),e.DNE(2,ht,4,2,"ng-container",2),e.k0s(),e.bVm()),2&a){const r=e.XpG().$implicit;e.R7$(2),e.Y8G("ngForOf",r.breadcrumb)}}function Ht(a,d){if(1&a&&(e.j41(0,"div",23),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"translate"),e.nrm(4,"i",24),e.k0s()),2&a){const r=e.XpG().$implicit;e.R7$(),e.Lme(" ",r.subCategoriesCount," ",1===r.subCategoriesCount?e.bMT(2,2,"INQUIRY.CATEGORY.SUBCATEGORY"):e.bMT(3,4,"INQUIRY.CATEGORY.SUBCATEGORIES")," ")}}function ne(a,d){if(1&a){const r=e.RV6();e.j41(0,"div",11),e.DNE(1,zt,3,1,"ng-container",4),e.j41(2,"app-clickable",12),e.bIt("onClick",function(){const D=e.eBV(r).$implicit,j=e.XpG(3);return e.Njj(j.navigateToSearchResult$(D))}),e.j41(3,"div",13)(4,"div",14),e.nrm(5,"app-icon",15),e.k0s(),e.j41(6,"div",16)(7,"div",17),e.EFF(8),e.k0s(),e.DNE(9,Ht,5,6,"div",18),e.k0s()()()()}if(2&a){const r=d.$implicit;e.R7$(),e.Y8G("ngIf",r.breadcrumb&&r.breadcrumb.length>1),e.R7$(4),e.Y8G("name","fa fa-bookmark"),e.R7$(3),e.SpI(" ",r.category.name," "),e.R7$(),e.Y8G("ngIf",r.subCategoriesCount>0)}}function ie(a,d){if(1&a&&(e.qex(0),e.j41(1,"div",9),e.DNE(2,ee,3,0,"div",4)(3,ne,10,4,"div",10),e.k0s(),e.bVm()),2&a){const r=e.XpG().ngIf,m=e.XpG();e.R7$(2),e.Y8G("ngIf",!r.categories.length),e.R7$(),e.Y8G("ngForOf",r.categories)("ngForTrackBy",m.identifyByParent("category"))}}function Qt(a,d){if(1&a&&(e.j41(0,"div",23),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"translate"),e.nrm(4,"i",24),e.k0s()),2&a){const r=e.XpG().$implicit;e.R7$(),e.Lme(" ",r.subCategoriesCount," ",1===r.subCategoriesCount?e.bMT(2,2,"INQUIRY.CATEGORY.SUBCATEGORY"):e.bMT(3,4,"INQUIRY.CATEGORY.SUBCATEGORIES")," ")}}function oe(a,d){if(1&a){const r=e.RV6();e.j41(0,"app-clickable",28),e.bIt("onClick",function(){const D=e.eBV(r).$implicit,j=e.XpG(3);
1return e.Njj(j.navigateToNextStep$(D))}),e.j41(1,"div",14),e.nrm(2,"app-icon",15),e.k0s(),e.j41(3,"div",17),e.EFF(4),e.k0s(),e.DNE(5,Qt,5,6,"div",18),e.k0s()}if(2&a){const r=d.$implicit;e.R7$(2),e.Y8G("name","fa fa-bookmark"),e.R7$(2),e.SpI(" ",r.category.name," "),e.R7$(),e.Y8G("ngIf",r.subCategoriesCount>0)}}function wt(a,d){if(1&a){const r=e.RV6();e.j41(0,"div",29)(1,"app-button",30),e.bIt("onClick",function(){e.eBV(r);const D=e.XpG(2).ngIf,j=e.XpG();return e.Njj(j.navigateToWriteMessage(D.parentCategory))}),e.k0s()()}if(2&a){const r=e.XpG(2).ngIf;e.R7$(),e.Mz_("text",'Anfrage direkt in "',r.parentCategory.name,'" erstellen')}}function re(a,d){if(1&a&&(e.qex(0),e.j41(1,"div",25),e.DNE(2,oe,6,3,"app-clickable",26),e.k0s(),e.DNE(3,wt,2,2,"div",27),e.bVm()),2&a){const r=e.XpG().ngIf,m=e.XpG();e.R7$(2),e.Y8G("ngForOf",r.childCategories)("ngForTrackBy",m.identifyByParent("category")),e.R7$(),e.Y8G("ngIf",r.parentCategory)}}function Pt(a,d){if(1&a&&(e.qex(0),e.DNE(1,ie,4,3,"ng-container",4)(2,re,4,3,"ng-container",4),e.bVm()),2&a){const r=d.ngIf;e.R7$(),e.Y8G("ngIf",r.isSearching),e.R7$(),e.Y8G("ngIf",!r.isSearching)}}let Kt=(()=>{var a;class d extends Q.d{constructor(m,D,j,it,at){super(),this.inquiryCategoryRepositoryService=m,this.inquiryFormService=D,this.nav=j,this.modalService=it,this.hapticsService=at,this.additionalSearchPath=[],this.staticObservableShouldNotFinalize=!0}get staticResource$(){return this.inquiryCategoryRepositoryService.listAll$({},{orderBy:["name asc"]}).pipe((0,V.n)(m=>this.search$.pipe((0,V.n)(D=>{const j=!(0,v.isNil)(D);return j?this.inquiryCategoryRepositoryService.listAll$({},{searchTerm:D,orderBy:["name asc"]}).pipe((0,w.T)(it=>({isSearching:j,categories:it.map(at=>({category:at,breadcrumb:o(m,at),subCategoriesCount:m.filter(kt=>kt.parentId===at.id).length}))}))):(0,i.of)({isSearching:j,parentCategory:this.parentId?m.find(it=>it.id===this.parentId):void 0,childCategories:m.filter(it=>this.parentId?it.parentId===this.parentId:!it.parentId).map(it=>({category:it,subCategoriesCount:m.filter(at=>at.parentId===it.id).length}))})}))))}navigateToSearchResult$(m){m.breadcrumb&&m.breadcrumb.length>1&&(this.additionalSearchPath=m.breadcrumb.slice(0,-1).map(D=>D.name)),this.navigateToNextStep$(m)}navigateToNextStep$({category:m,subCategoriesCount:D}){D>0?this.navigateToSubCategories(m.id,m.name):this.navigateToWriteMessage(m)}navigateToSubCategories(m,D){this.hapticsService.navigationFeedback(),this.nav.push(d,{path:[...this.path,...this.additionalSearchPath,D],parentId:m})}navigateToWriteMessage(m){this.inquiryFormService.categoryId=m.id,this.hapticsService.medium();const D=[...this.path,...this.additionalSearchPath],j=m.id===this.parentId?D:[...D,m.name];this.nav.push(jt,{path:j})}}return(a=d).\u0275fac=function(m){return new(m||a)(e.rXU(z.x),e.rXU(R.j),e.rXU(Yt.QE),e.rXU(G.B),e.rXU(M.o))},a.\u0275cmp=e.VBU({type:a,selectors:[["app-inquiry-category"]],inputs:{path:"path",parentId:"parentId"},features:[e.Jv_([z.x]),e.Vt3],decls:16,vars:30,consts:[["backgroundColor","primary","backgroundStyle","light",3,"title","isModal","hasSearchbar","backText"],[1,"description"],[4,"ngFor","ngForOf"],["severity","warning","text","Bei Anfragen ohne Objekt- und Einheitenbezug kann es zur einer l\xe4ngeren Bearbeitungszeit kommen.","style","margin: 0; margin-top: 1rem",4,"ngIf"],[4,"ngIf"],[1,"description-path-item"],["class","fa fa-chevron-right path-icon",4,"ngIf"],[1,"fa","fa-chevron-right","path-icon"],["severity","warning","text","Bei Anfragen ohne Objekt- und Einheitenbezug kann es zur einer l\xe4ngeren Bearbeitungszeit kommen.",2,"margin","0","margin-top","1rem"],[1,"search-container"],["class","search-element",4,"ngFor","ngForOf","ngForTrackBy"],[1,"search-element"],["arrange","horizontal","hapticsStyle","none",1,"item","hoverable",3,"onClick"],[1,"inner-content"],[1,"icon"],["size","relative",3,"name"],[1,"text"],[1,"title"],["class","subcategories-count",4,"ngIf"],[1,"breadcrumb"],[1,"breadcrumb-item"],["class","fa fa-chevron-right breadcrumb-icon",4,"ngIf"],[1,"fa","fa-chevron-right","breadcrumb-icon"],[1,"subcategories-count"],[1,"fa","fa-chevron-right"],[1,"container"],["class","item hoverable","arrange","vertical","hapticsStyle","none",3,"onClick",4,"ngFor","ngForOf","ngForTrackBy"],["class","parent-button-container",4,"ngIf"],["arrange","vertical","hapticsStyle","none",1,"item","hoverable",3,"onClick"],[1,"parent-button-container"],["size","small","fill","plain","hapticsStyle","none","role","normal",3,"onClick","text"]],template:function(m,D){1&m&&(e.j41(0,"app-page",0),e.nI1(1,"translate"),e.nI1(2,"translate"),e.nI1(3,"translate"),e.nI1(4,"translate"),e.j41(5,"div",1),e.EFF(6),e.nI1(7,"translate"),e.nI1(8,"translate"),e.nI1(9,"translate"),e.nI1(10,"translate"),e.nrm(11,"br"),e.DNE(12,Xt,4,2,"ng-container",2)(13,Ot,1,0,"app-callout",3),e.k0s(),e.DNE(14,Pt,3,2,"ng-container",4),e.nI1(15,"async"),e.k0s()),2&m&&(e.FCK("title","",D.parentId?e.bMT(1,12,"INQUIRY.CATEGORY.SUBCATEGORY"):e.bMT(2,14,"INQUIRY.CATEGORY.CATEGORY"),"\n ",e.bMT(3,16,"INQUIRY.CATEGORY.CHOOSE"),""),e.Y8G("isModal",!0)("hasSearchbar",!D.parentId)("backText",e.bMT(4,18,"COMMON.BACK")),e.R7$(6),e.E5c(" ",e.bMT(7,20,"INQUIRY.CATEGORY.PLEASE_CHOOSE_1")," ",D.parentId?e.bMT(8,22,"INQUIRY.CATEGORY.SUBCATEGORY"):e.bMT(9,24,"INQUIRY.CATEGORY.CATEGORY")," ",e.bMT(10,26,"INQUIRY.CATEGORY.PLEASE_CHOOSE_2"),":"),e.R7$(6),e.Y8G("ngForOf",D.path),e.R7$(),e.Y8G("ngIf",D.inquiryFormService.isGeneralInquiry()),e.R7$(),e.Y8G("ngIf",e.bMT(15,28,D.staticData$)))},dependencies:[nt.Sq,nt.bT,mt.Q,Tt.H,Vt.R,Nt.E,Bt.G,nt.Jj,pt.D9],styles:["[_nghost-%COMP%] ion-content.main-content>.content{min-height:100%;display:flex;flex-direction:column;padding:1rem;gap:1rem}.description[_ngcontent-%COMP%]{margin-bottom:1rem}.description-path-item[_ngcontent-%COMP%]{font-weight:600}.container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media only screen and (max-width: 500px){.container[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media only screen and (min-width: 1200px){.container[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr}}.search-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;align-items:stretch;justify-content:start}.search-container[_ngcontent-%COMP%] > .search-element[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:.2rem;align-items:stretch;justify-content:start}.search-container[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%]{padding-left:1rem;display:flex;flex-flow:row wrap;gap:1ch;align-items:baseline;justify-content:start}.search-container[_ngcontent-%COMP%] .inner-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1rem;align-items:center;justify-content:start}.search-container[_ngcontent-%COMP%] .inner-content[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-bottom:0}.item[_ngcontent-%COMP%]{background-color:var(--card-background);border-radius:1rem;padding:1rem;display:flex;flex-direction:column;justify-content:space-between}.icon[_ngcontent-%COMP%]{font-size:28px;margin-bottom:1rem}.icon[_ngcontent-%COMP%] app-icon .icon-container{width:32px}.title[_ngcontent-%COMP%]{margin-top:auto;font-weight:600;font-size:1rem;word-wrap:break-word}.subcategories-count[_ngcontent-%COMP%]{opacity:.5}.parent-button-container[_ngcontent-%COMP%]{display:flex;justify-content:center;text-align:center;margin-top:auto}"]}),d})();
1var Jt=t(5172),me=t(5265),ae=t(7161),_e=t(1695),It=t(7535),Wt=t(7791),se=t(7454);const ve=a=>({"ion-padding-start":a});function Mt(a,d){1&a&&(e.qex(0),e.j41(1,"div",5),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.bVm()),2&a&&(e.R7$(2),e.JRh(e.bMT(3,1,"INQUIRY.INITIAL_QUESTION")))}function ce(a,d){if(1&a){const r=e.RV6();e.j41(0,"app-item",7),e.bIt("onClick",function(){e.eBV(r);const D=e.XpG().$implicit,j=e.XpG(3);return e.Njj(j.selectEntrance(D))}),e.qex(1,8),e.nrm(2,"app-icon",15),e.bVm(),e.nrm(3,"app-item-standard-content",10),e.k0s()}if(2&a){const r=e.XpG().$implicit,m=e.XpG(3);e.Y8G("hasDetail",m.isEntranceAllowed)("disabled",!m.isEntranceAllowed),e.R7$(3),e.Y8G("lightFont",!0)("title",r.name)("subtitle",r.fullStreet)}}function Te(a,d){if(1&a&&(e.qex(0,8),e.nrm(1,"app-icon",18),e.nI1(2,"faVersionAdapter"),e.bVm()),2&a){const r=e.XpG().$implicit;e.R7$(),e.FS9("name","fa fa-"+e.bMT(2,1,null==r.type?null:r.type.icon))}}function ge(a,d){if(1&a){const r=e.RV6();e.j41(0,"div",16)(1,"app-item",7),e.bIt("onClick",function(){const D=e.eBV(r).$implicit,j=e.XpG(4);return e.Njj(j.selectUnit(D))}),e.DNE(2,Te,3,3,"ng-container",17),e.nrm(3,"app-item-standard-content",10),e.k0s()()}if(2&a){const r=d.$implicit,m=e.XpG(4);e.R7$(),e.Y8G("hasDetail",m.isUnitAllowed)("disabled",!m.isUnitAllowed),e.R7$(),e.Y8G("ngIf",null==r.type?null:r.type.icon),e.R7$(),e.Y8G("lightFont",!0)("title",r.fullName)("subtitle",r.template_type)}}function pe(a,d){if(1&a&&(e.j41(0,"div",12),e.DNE(1,ce,4,5,"app-item",13)(2,ge,4,6,"div",14),e.k0s()),2&a){const r=d.$implicit,m=e.XpG(3);e.Y8G("ngClass",e.eq3(4,ve,!r.isProperty)),e.R7$(),e.Y8G("ngIf",!r.isProperty),e.R7$(),e.Y8G("ngForOf",r.units)("ngForTrackBy",m.identifyById)}}function Ee(a,d){if(1&a){const r=e.RV6();e.qex(0),e.j41(1,"app-page-container")(2,"app-item-group")(3,"app-item",7),e.bIt("onClick",function(){const D=e.eBV(r).$implicit,j=e.XpG(2);return e.Njj(j.selectProperty(D))}),e.qex(4,8),e.nrm(5,"app-icon",9),e.bVm(),e.nrm(6,"app-item-standard-content",10),e.k0s(),e.DNE(7,pe,3,6,"div",11),e.k0s()(),e.bVm()}if(2&a){const r=d.$implicit,m=e.XpG(2);e.R7$(3),e.Y8G("hasDetail",m.isPropertyAllowed)("disabled",!m.isPropertyAllowed),e.R7$(3),e.Y8G("lightFont",!0)("title",r.name)("subtitle",r.fullAddress),e.R7$(),e.Y8G("ngForOf",r.entrances)("ngForTrackBy",m.identifyById)}}function ye(a,d){if(1&a&&(e.qex(0),e.DNE(1,Ee,8,7,"ng-container",6),e.bVm()),2&a){const r=d.ngIf,m=e.XpG();e.R7$(),e.Y8G("ngForOf",r)("ngForTrackBy",m.identifyById)}}function Z(a,d){if(1&a&&(e.j41(0,"div",19),e.nrm(1,"app-button",20),e.k0s()),2&a){const r=e.XpG();e.R7$(),e.Y8G("click$",r.goToGeneralInquiry$())}}let ut=(()=>{var a;class d extends Q.d{constructor(m,D,j,it,at,kt,Ae,le,Zt){super(),this.unitRepositoryService=m,this.unitsService=D,this.modalService=j,this.nav=it,this.inquiryFormService=at,this.translate=kt,this.alertService=Ae,this.unitAddressPipe=le,this.fullStreetOrNamePipe=Zt,this.isGeneralQuestionVisible=!1,this.isPropertyAllowed=!0,this.isEntranceAllowed=!1,this.isUnitAllowed=!0,this.isGeneralAllowed=!0,this.inquiryFormService.clear()}ionViewWillEnter(){this.inquiryFormService.clear()}get listResource(){return this.unitRepositoryService.listAll$.bind(this.unitRepositoryService)}get searchRequest$(){return(0,i.of)({orderBy:["entranceId","number","position"]})}get transformListFunction(){return this.unitsService.customTransformListFunction$({propertyTransformer:m=>(0,i.of)(m),propertyMapper:m=>m}).bind(this.unitsService)}selectUnit(m){var D;this.isUnitAllowed?(this.inquiryFormService.unitId=m.id,this.inquiryFormService.propertyId=null!==(D=m.propertyId)&&void 0!==D?D:m.entranceId,this.goToCategories(this.unitAddressPipe.transform(m,!0))):console.error("Units are not allowed for inquiry creation.")}selectEntrance(m){this.isEntranceAllowed?(this.inquiryFormService.propertyId=m.id,this.goToCategories(this.fullStreetOrNamePipe.transform(m))):console.error("Entrances are not allowed for inquiry creation.")}selectProperty(m){this.isPropertyAllowed?(this.inquiryFormService.propertyId=m.id,this.goToCategories(this.fullStreetOrNamePipe.transform(m))):console.error("Properties are not allowed for inquiry creation.")}goToCategories(m){this.nav.push(Kt,{path:[this.translate.instant(m)]})}goToGeneralInquiry$(){return this.isGeneralAllowed?this.alertService.confirm$({header:"L\xe4ngere Bearbeitungszeit m\xf6glich",subHeader:"Anfrage ohne Objekt- und Einheitenbezug",message:"Sind Sie sicher, dass Sie eine Anfrage ohne Bezug zu einem bestimmten Objekt / einer bestimmten Einheit erstellen m\xf6chten? Dadurch kann es zu l\xe4ngeren Bearbeitungszeiten kommen, da die Anfrage erst manuell zugeordnet werden muss."}).pipe((0,g.M)(m=>{m&&this.goToCategories("INQUIRY.GENERAL")})):(console.error("General category is not allowed for inquiry creation."),(0,i.of)(void 0))}}return(a=d).\u0275fac=function(m){return new(m||a)(e.rXU(C.w),e.rXU(Jt.r),e.rXU(G.B),e.rXU(Yt.QE),e.rXU(R.j),e.rXU(pt.c$),e.rXU(J.u),e.rXU(me.Z),e.rXU(ae.r))},a.\u0275cmp=e.VBU({type:a,selectors:[["app-inquiry"]],features:[e.Jv_([A.D,h.N,f.E,s.k,u.x,C.w,L.i,x.m,Jt.r]),e.Vt3],decls:8,vars:12,consts:[["backgroundColor","primary","backgroundStyle","light","searchbarPlaceholder","Einheit suchen",3,"title","isModal","enableInfinitScroll","hasSearchbar"],["header-buttons",""],["icon","fa fa-circle-xmark","fill","plain","role","normal",3,"click$"],[4,"ngIf"],["class","parent-button-container",4,"ngIf"],[1,"description"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"onClick","hasDetail","disabled"],["item-left",""],["name","fa fa-home"],[3,"lightFont","t
1itle","subtitle"],["class","ion-padding-start",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ion-padding-start",3,"ngClass"],[3,"hasDetail","disabled","onClick",4,"ngIf"],["class","ion-padding-start",4,"ngFor","ngForOf","ngForTrackBy"],["name","fa fa-door-open"],[1,"ion-padding-start"],["item-left","",4,"ngIf"],[3,"name"],[1,"parent-button-container"],["size","small","fill","plain","text","ohne Objekt- und Einheitenbezug","role","normal",3,"click$"]],template:function(m,D){1&m&&(e.j41(0,"app-page",0),e.qex(1,1),e.nrm(2,"app-button",2),e.bVm(),e.DNE(3,Mt,4,3,"ng-container",3),e.nI1(4,"async"),e.DNE(5,ye,2,2,"ng-container",3),e.nI1(6,"async"),e.DNE(7,Z,2,1,"div",4),e.k0s()),2&m&&(e.Y8G("title","Anfrage erstellen")("isModal",!0)("enableInfinitScroll",!0)("hasSearchbar",!0),e.R7$(2),e.Y8G("click$",D.modalService.dismiss$()),e.R7$(),e.Y8G("ngIf",D.isGeneralQuestionVisible&&!1===e.bMT(4,8,D.isInSearchMode$)),e.R7$(2),e.Y8G("ngIf",e.bMT(6,10,D.listData$)),e.R7$(2),e.Y8G("ngIf",D.isGeneralAllowed))},dependencies:[nt.YU,nt.Sq,nt.bT,mt.Q,Tt.H,_e.J,Vt.R,It.Z,Wt._,At.i,nt.Jj,se.d,pt.D9],styles:[".description[_ngcontent-%COMP%]{margin:1rem 1rem 2rem;font-weight:600}.parent-button-container[_ngcontent-%COMP%]{display:flex;justify-content:center;text-align:center;margin-top:auto}"]}),d})()},8137:(rt,Y,t)=>{t.d(Y,{j:()=>g});var i=t(3953);let g=(()=>{var h;class f{clear(){this.unitId=void 0,this.entranceId=void 0,this.propertyId=void 0,this.categoryId=void 0}isGeneralInquiry(){return!(this.unitId||this.entranceId||this.propertyId)}}return(h=f).\u0275fac=function(A){return new(A||h)},h.\u0275prov=i.jDH({token:h,factory:h.\u0275fac}),f})()},1405:(rt,Y,t)=>{t.d(Y,{S:()=>N});var i=t(3028),g=t(4572),h=t(6354),f=t(8141),s=t(4131),A=t(4189),x=t(6822),u=t(6646),C=t(8952),L=t(6797),v=t(4474),V=t(2010),w=t(5200),Q=t(2463),z=t(9494),q=t(6610),I=t(576),F=t(9727),o=t(3076),b=t(3953),y=t(803),H=t(941),P=t(3955),W=t(177),$=t(2709),S=t(6346),et=t(5025);function X(E,e){if(1&E&&(b.qex(0),b.nrm(1,"app-chat",3),b.bVm()),2&E){const M=b.XpG().ngIf;b.R7$(),b.Y8G("messages",M.messages)}}function K(E,e){if(1&E&&(b.qex(0),b.DNE(1,X,2,1,"ng-container",1),b.bVm()),2&E){const M=e.ngIf;b.R7$(),b.Y8G("ngIf",M.messages.length)}}function B(E,e){1&E&&(b.nrm(0,"app-button",9),b.nI1(1,"translate")),2&E&&b.Y8G("text",b.bMT(1,2,"PROCESS.MESSAGE.WRITE_IN_FINISHED_INQUIRY"))("disabled",!0)}
1function n(E,e){if(1&E&&(b.j41(0,"div",6),b.DNE(1,B,2,4,"app-button",7),b.j41(2,"div"),b.nrm(3,"app-button",8),b.k0s()()),2&E){const M=b.XpG().ngIf;b.R7$(),b.Y8G("ngIf",M.hasResponse),b.R7$(2),b.Y8G("icon",M.inquiry.template_progressIcon)("color",M.inquiry.template_progressColor)("text",M.inquiry.template_progressText)("disabled",!0)}}function T(E,e){if(1&E&&(b.qex(0,4),b.DNE(1,n,4,5,"div",5),b.bVm()),2&E){const M=e.ngIf;b.R7$(),b.Y8G("ngIf",M.inquiry)}}let N=(()=>{var E;class e extends A.d{constructor(R,G,J,ot,st,nt){super(),this.inquiryRepositoryService=R,this.partyRepository=G,this.route=J,this.routeParamService=ot,this.inquiryService=st,this.translate=nt,super.staticObservableShouldNotFinalize=!0}get staticResource$(){return this.getRoutingParams$().pipe((0,i.Z)(R=>this.inquiryRepositoryService.show$({resourceId:R.inquiryId})),(0,i.Z)(R=>(0,g.z)([this.inquiryService.transformListFunction$([R],{fetchFiles:!0}).pipe((0,h.T)(([G])=>G)),this.partyRepository.getPropertyManagementCompanyByOwnProperties$()])),(0,f.M)(([R])=>this.title=R.template_title),(0,h.T)(([R,G])=>{var J;const ot=[];var st,nt;return R.report&&ot.push({text:R.report,date:R.created,isOwn:!0,files:R.files,type:s._.InquiryCreation,typeDescription:null===(st=R.category)||void 0===st?void 0:st.name}),R.readStatus==x.WK.Accepted?ot.push({text:R.completionResponse&&""!=R.completionResponse?R.completionResponse:this.translate.instant("PROCESS.DEFAULT_COMPLETION_RESPONSE"),date:null!==(nt=R.lastModified)&&void 0!==nt?nt:R.created,isOwn:!1,party:G,files:R.responseFiles,type:s._.InquiryEnded}):R.readStatus==x.WK.Rejected&&ot.push({text:R.rejectionResponse&&""!=R.rejectionResponse?R.rejectionResponse:this.translate.instant("PROCESS.DEFAULT_REJECTION_RESPONSE"),date:null!==(J=R.lastModified)&&void 0!==J?J:R.created,isOwn:!1,party:G,files:R.responseFiles,type:s._.InquiryEnded}),{inquiry:R,messages:ot,hasResponse:x.$v.includes(R.readStatus)}}))}getRoutingParams$(){return this.routeParamService.getRouteParams(this.route,{[I.vO.InquiryID]:["number"]})}}return(E=e).\u0275fac=function(R){return new(R||E)(b.rXU(v.D),b.rXU(C.o),b.rXU(y.nX),b.rXU(H.E),b.rXU(o.n),b.rXU(P.c$))},E.\u0275cmp=b.VBU({type:E,selectors:[["app-inquiry-detail"]],features:[b.Jv_([v.D,F.E,u.k,o.n,Q.w,L.x,V.x,w.N,z.i,C.o,q.P]),b.Vt3],decls:5,vars:12,consts:[["backgroundStyle","light",3,"title","enableInfinitScroll","backRouterLink","onlyTopHeader","isBottomUp","hasFooter"],[4,"ngIf"],["footer","",4,"ngIf"],[3,"messages"],["footer",""],["class","ion-text-center",4,"ngIf"],[1,"ion-text-center"],["fill","plain","size","small",3,"text","disabled",4,"ngIf"],["shape","default",3,"icon","color","text","disabled"],["fill","plain","size","small",3,"text","disabled"]],template:function(R,G){1&R&&(b.j41(0,"app-page",0),b.DNE(1,K,2,1,"ng-container",1),b.nI1(2,"async"),b.DNE(3,T,2,1,"ng-container",2),b.nI1(4,"async"),b.k0s()),2&R&&(b.Y8G("title",G.title)("enableInfinitScroll",!0)("backRouterLink",G.navigationTypeMap[G.NavigationType.Processes].path)("onlyTopHeader",!0)("isBottomUp",!0)("hasFooter",!0),b.R7$(),b.Y8G("ngIf",b.bMT(2,8,G.staticData$)),b.R7$(2),b.Y8G("ngIf",b.bMT(4,10,G.staticData$)))},dependencies:[W.bT,$.Q,S.H,et.K,W.Jj,P.D9]}),e})()},4582:(rt,Y,t)=>{t.d(Y,{n:()=>ye});var i=t(177),g=t(5374),h=t(3955),f=t(7376),s=t(4412),A=t(6354),x=t(3028),u=t(8141),C=t(4572),L=t(9437),v=t(6648),V=t(8810),w=t(7673),Q=t(1594),z=t(7468),q=t(9901),I=t(9030),F=t(546),o=t(3953),b=t(3575),y=t(6198),H=t(263),P=t(8250),W=t(4284),$=t(675),S=t(2709),et=t(3130),X=t(389),K=t(2131);const B=Z=>({left:Z});function n(Z,ut){1&Z&&(o.j41(0,"small"),o.EFF(1," Bitte best\xe4tigen Sie durch erneutes Dr\xfccken von "),o.j41(2,"kbd"),o.EFF(3,"Strg"),o.k0s(),o.EFF(4," + "),o.j41(5,"kbd"),o.EFF(6,"Enter"),o.k0s(),o.EFF(7," das Versenden der Nachricht. "),o.k0s())}function T(Z,ut){1&Z&&(o.j41(0,"ion-text",10),o.DNE(1,n,8,0,"small",11),o.k0s()),2&Z&&(o.R7$(),o.Y8G("appPlatform","web"))}function N(Z,ut){if(1&Z){const a=o.RV6();o.qex(0),o.j41(1,"app-button",12),o.bIt("mousedown",function(r){return o.eBV(a),o.Njj(r.preventDefault())}),o.k0s(),o.bVm()}if(2&Z){const a=o.XpG();o.R7$(),o.Y8G("disabled",a.isSendDisabled)("iconOffset",o.eq3(3,B,-2))("click$",a.sendActionAndClearText$)}}function E(Z,ut){if(1&Z){const a=o.RV6();o.j41(0,"app-editable-file",17),o.bIt("onDelete",function(){const r=o.eBV(a).index,m=o.XpG(2);return o.Njj(m.deleteFile(r))}),o.k0s()}2&Z&&o.Y8G("file",ut.$implicit)}function e(Z,ut){1&Z&&(o.j41(0,"ion-text",18)(1,"small"),o.EFF(2,"Tipp: Bilder k\xf6nnen bearbeitet werden."),o.k0s()())}function M(Z,ut){if(1&Z&&(o.j41(0,"div",13)(1,"div",14),o.DNE(2,E,1,1,"app-editable-file",15),o.k0s(),o.DNE(3,e,3,0,"ion-text",16),o.k0s()),2&Z){const a=o.XpG();o.R7$(2),o.Y8G("ngForOf",a.files),o.R7$(),o.Y8G("ngIf",a.hasImageFiles)}}let R=(()=>{var Z;class ut extends F.C{constructor(d,r,m,D,j){super(),this.screensizeService=d,this.deviceService=r,this.fileUtilsService=m,this.alertService=D,this.hapticsService=j,this.isDisabled=!1,this.textAreaTouched=!1,this.simulateEmpty=!1,this._files=[],this.isConfirmSendByKeystrokeVisible=!1,this._text="",this.acceptedMime=["image/*",".pdf"],this.canBeMinimized$=this.screensizeService.isMax("md")}ngOnInit(){this.sendActionAndClearText$=(0,w.of)(1).pipe((0,x.Z)(()=>(0,I.v)(()=>this.isSendDisabled?(0,w.of)(void 0):(this.isConfirmSendByKeystrokeVisible=!1,this.simulateEmpty=!0,this.sendAction$.pipe((0,u.M)(()=>{this._text="",this._files=[],this.simulateEmpty=!1}))))))}get hasImageFiles(){return this._files.some(d=>d.file.type.includes("image"))}onChange(d){this._text=d.detail.value}get hasInput(){return this.text.length>0||this.files.length>0}get isActive(){return this.textAreaTouched||this.hasInput}get isSendDisabled(){return!this.hasInput||!!this.isDisabled||this.simulateEmpty}onFocus(){this.textAreaTouched=!0}onBlur(){this.textAreaTouched=!1}onKeyDown(d){this.deviceService.isMobile$.pipe((0,Q.$)(),(0,x.Z)(r=>{if(r||!this.sendActionAndClearText$)return(0,w.of)(void 0);if(d.ctrlKey){if("Enter"===d.code){if(d.preventDefault(),this.isConfirmSendByKeystrokeVisible)return this.sendActionAndClearText$;this.isSendDisabled||(this.isConfirmSendByKeystrokeVisible=!0)}}else this.isConfirmSendByKeystrokeVisible=!1;return(0,w.of)(void 0)})).subscribe()}onPaste(d){this.fileUtilsService.onPaste$(d).subscribe(r=>{this.onFilesChosen(r)})}onTextDrop(d){this._text+=d}get text(){return this._text}get files(){return this._files}onFilesChosen(d){if(!d||0===d.length)return;const r=this.fileUtilsService.getAcceptedFiles(d,this.acceptedMime);r.length!==d.length&&this.alertService.info$({header:"Dateityp nicht akzeptiert",message:"Es konnten nicht alle Dateien hinzugef\xfcgt werden. Bitte \xfcberpr\xfcfen Sie den Dateityp."}
1).subscribe(),0!==r.length&&(this._files=this._files.concat(r),this.hapticsService.success())}deleteFile(d){this._files.splice(d,1)}}return(Z=ut).\u0275fac=function(d){return new(d||Z)(o.rXU(b.P),o.rXU(y.g),o.rXU(H.J),o.rXU(P.u),o.rXU(W.o))},Z.\u0275cmp=o.VBU({type:Z,selectors:[["app-chat-input"]],inputs:{sendAction$:"sendAction$",isDisabled:"isDisabled"},features:[o.Vt3],decls:13,vars:20,consts:[["chatInput",""],["class","ion-padding-horizontal",4,"ngIf"],["appDragNDrop","",1,"container",3,"dndFilesChangeEmitter","dndTextChangeEmitter","dndDisabled"],[1,"textarea"],["clearInput","true","debounce","50","cols","100",3,"ionInput","ionFocus","ionBlur","keydown","paste","autoGrow","rows","placeholder","value","disabled"],[1,"button-container"],[4,"ngIf"],[1,"select-file",3,"files","accept","isDisabled"],["color","plain","size","medium","icon","fa fa-camera","fill","tinted",1,"button",3,"mousedown","disabled"],["class","file-gallery",4,"ngIf"],[1,"ion-padding-horizontal"],[4,"appPlatform"],["size","medium","color","primary","icon","fa fa-paper-plane","fill","filled",1,"button",3,"mousedown","disabled","iconOffset","click$"],[1,"file-gallery"],[1,"file-gallery__files"],[3,"file","onDelete",4,"ngFor","ngForOf"],["class","file-gallery__hint",4,"ngIf"],[3,"onDelete","file"],[1,"file-gallery__hint"]],template:function(d,r){if(1&d){const m=o.RV6();o.DNE(0,T,2,1,"ion-text",1),o.j41(1,"div",2),o.nI1(2,"async"),o.bIt("dndFilesChangeEmitter",function(j){return o.eBV(m),o.Njj(r.onFilesChosen(j))})("dndTextChangeEmitter",function(j){return o.eBV(m),o.Njj(r.onTextDrop(j))}),o.j41(3,"div",3)(4,"ion-textarea",4,0),o.nI1(6,"translate"),o.bIt("ionInput",function(j){return o.eBV(m),o.Njj(r.onChange(j))})("ionFocus",function(){return o.eBV(m),o.Njj(r.onFocus())})("ionBlur",function(){return o.eBV(m),o.Njj(r.onBlur())})("keydown",function(j){return o.eBV(m),o.Njj(r.onKeyDown(j))})("paste",function(j){return o.eBV(m),o.Njj(r.onPaste(j))}),o.k0s()(),o.j41(7,"div",5),o.DNE(8,N,2,5,"ng-container",6),o.nI1(9,"async"),o.j41(10,"app-select-file",7),o.bIt("files",function(j){return o.eBV(m),o.Njj(r.onFilesChosen(j))}),o.j41(11,"app-button",8),o.bIt("mousedown",function(j){return o.eBV(m),o.Njj(j.preventDefault())}),o.k0s()()()(),o.DNE(12,M,4,2,"div",9)}2&d&&(o.Y8G("ngIf",r.isConfirmSendByKeystrokeVisible),o.R7$(),o.AVh("minimized",o.bMT(2,14,r.canBeMinimized$)&&!r.isActive),o.Y8G("dndDisabled",!!r.isDisabled),o.R7$(3),o.Y8G("autoGrow",!0)("rows",1)("placeholder",o.bMT(6,16,"PROCESS.MESSAGE.CHAT_PLACEHOLDER"))("value",r.simulateEmpty?"":r.text)("disabled",!!r.isDisabled),o.R7$(4),o.Y8G("ngIf",(!o.bMT(9,18,r.canBeMinimized$)||r.isActive)&&r.sendAction$),o.R7$(2),o.Y8G("accept",r.acceptedMime.join(", "))("isDisabled",!!r.isDisabled),o.R7$(),o.Y8G("disabled",!!r.isDisabled),o.R7$(),o.Y8G("ngIf",r.files.length>0&&!r.simulateEmpty))},dependencies:[i.Sq,i.bT,g.IO,g.nc,g.Gw,$.B,S.Q,et.Y,X.n,K.y,i.Jj,h.D9],styles:[".container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;justify-items:stretch;gap:10px;padding-inline:.5rem}.container[_ngcontent-%COMP%] .textarea[_ngcontent-%COMP%]{padding-left:.5rem;width:100%}.container.minimized[_ngcontent-%COMP%] .textarea[_ngcontent-%COMP%]{display:flex;align-items:center}.container[_ngcontent-%COMP%] ion-textarea[_ngcontent-%COMP%]{--background: transparent;max-height:inherit;border:none;min-height:25px;height:auto;resize:none;overflow-y:scroll;max-height:120px;-ms-overflow-style:none;scrollbar-width:none}.container[_ngcontent-%COMP%] ion-textarea[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.container[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between}.file-gallery[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.1rem;padding-inline:5px;margin-top:8px}.file-gallery[_ngcontent-%COMP%] .file-gallery__files[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.5rem;overflow-x:auto}.file-gallery[_ngcontent-%COMP%] .file-gallery__files[_ngcontent-%COMP%] > app-editable-file[_ngcontent-%COMP%]{margin:0}.file-gallery[_ngcontent-%COMP%] .file-gallery__hint[_ngcontent-%COMP%]{opacity:.7}"],changeDetection:0}),ut})();
1var G=t(4131),J=t(4189),ot=t(8423),st=t(8203),nt=t(9445),mt=t(1372),Tt=t(6646),At=t(5385),Bt=t(4474),Ut=t(3201),Lt=t(3248),pt=t(6942),yt=t(1673),xt=t(2225),$t=t(8651),ft=t(2010),jt=t(2463),Yt=t(9494),Vt=t(6610),Nt=t(576),te=t(9727),Xt=t(7136),Ot=t(3887),ee=t(8676),ue=t(9356),ht=t(7509),zt=t(2872),Ht=t(6346),ne=t(3861);function ie(Z,ut){if(1&Z&&o.nrm(0,"app-process-details",4),2&Z){const a=o.XpG();o.Y8G("process",a.process)}}let Qt=(()=>{var Z;class ut extends F.C{constructor(d,r){super(),this.modalService=d,this.navParams=r,this.process=r.get("process")}}return(Z=ut).\u0275fac=function(d){return new(d||Z)(o.rXU(ht.B),o.rXU(zt.y8))},Z.\u0275cmp=o.VBU({type:Z,selectors:[["app-process-details-modal"]],features:[o.Vt3],decls:4,vars:5,consts:[["backgroundStyle","light",3,"title","onlyTopHeader","isModal"],["header-buttons",""],["text","Fertig","fill","plain","size","small","role","normal",3,"click$"],[3,"process",4,"ngIf"],[3,"process"]],template:function(d,r){1&d&&(o.j41(0,"app-page",0),o.qex(1,1),o.nrm(2,"app-button",2),o.bVm(),o.DNE(3,ie,1,1,"app-process-detail
1s",3),o.k0s()),2&d&&(o.Y8G("title","Vorgangsinformation")("onlyTopHeader",!0)("isModal",!0),o.R7$(2),o.Y8G("click$",r.modalService.dismiss$()),o.R7$(),o.Y8G("ngIf",r.process))},dependencies:[i.bT,S.Q,Ht.H,ne.T]}),ut})();var oe=t(3076),wt=t(7203),re=t(3292),Pt=t(9806),Kt=t(803),Jt=t(941),me=t(2114),ae=t(9822),_e=t(999),It=t(119),Wt=t(5025);const se=Z=>({process:Z});function ve(Z,ut){if(1&Z){const a=o.RV6();o.j41(0,"app-button",7),o.bIt("onClick",function(){o.eBV(a);const r=o.XpG();return o.Njj(r.isMetaVisible=!r.isMetaVisible)}),o.k0s()}2&Z&&o.Y8G("invert",!0)}function Mt(Z,ut){if(1&Z&&(o.qex(0),o.nrm(1,"app-chat",8),o.nI1(2,"async"),o.bVm()),2&Z){const a=ut.ngIf,d=o.XpG();o.R7$(),o.Y8G("messages",d.combineChatMessages(a,!1===o.bMT(2,1,d.hasMoreItemsToLoad$),d.messages))}}function ce(Z,ut){1&Z&&(o.qex(0,9),o.j41(1,"div",10),o.nrm(2,"app-spinner",11),o.j41(3,"span"),o.EFF(4),o.nI1(5,"translate"),o.k0s()(),o.bVm()),2&Z&&(o.R7$(4),o.JRh(o.bMT(5,1,"PROCESS.MESSAGE.LOADING_ATTACHMENTS")))}function Te(Z,ut){if(1&Z&&(o.nrm(0,"app-chat-input",13),o.nI1(1,"async")),2&Z){let a;const d=o.XpG(2);o.Y8G("sendAction$",d.send$)("isDisabled",null!==(a=o.bMT(1,2,d.chatDisabled$))&&void 0!==a&&a)}}function ge(Z,ut){if(1&Z&&(o.j41(0,"div",14),o.nrm(1,"app-button",15),o.nI1(2,"translate"),o.j41(3,"div"),o.nrm(4,"app-button",16),o.k0s()()),2&Z){const a=o.XpG(2);o.R7$(),o.Y8G("text",o.bMT(2,6,"PROCESS.MESSAGE.WRITE_IN_FINISHED_PROCESS"))("click$",a.reopenProcess$()),o.R7$(3),o.Y8G("icon",a.process.template_progressIcon)("color",a.process.template_progressColor)("text",a.process.template_progressText)("disabled",!0)}}function pe(Z,ut){if(1&Z&&(o.qex(0,9),o.DNE(1,Te,2,4,"app-chat-input",12)(2,ge,5,8,"ng-template",null,0,o.C5r),o.bVm()),2&Z){const a=o.sdS(3),d=o.XpG();o.R7$(),o.Y8G("ngIf",!d.process.isFinished||d.isReopened)("ngIfElse",a)}}function Ee(Z,ut){if(1&Z){const a=o.RV6();o.j41(0,"app-modal",17),o.bIt("willDismiss",function(){o.eBV(a);const r=o.XpG();return o.Njj(r.isMetaVisible=!1)}),o.k0s()}if(2&Z){const a=o.XpG();
1o.Y8G("rootPage",a.processDetailsModalComponent)("rootParams",o.eq3(4,se,a.process))("canDismissBySwipe",!0)("isOpen",a.isMetaVisible)}}let ye=(()=>{var Z;class ut extends J.d{constructor(d,r,m,D,j,it,at,kt,Ae,le,Zt,Ce,Ct,de,qt,De,vt,Pe,xe){super(),this.fileRepositoryService=d,this.fileUploadService=r,this.identityService=m,this.inquiryRepositoryService=D,this.inquiriesService=j,this.processRepositoryService=it,this.processFeedRepositoryService=at,this.processFeedService=kt,this.processesService=Ae,this.processNotificationRepositoryService=le,this.route=Zt,this.routeParamService=Ce,this.router=Ct,this.deviceService=de,this.keyboardService=qt,this.reloadService=De,this.hapticsService=vt,this.alertService=Pe,this.ref=xe,this.newChat$=new s.t([]),this.messages=[],this.loadingAttachments=!1,this.isReopened=!1,this.isMetaVisible=!1,this.processDetailsModalComponent=Qt,this.isInquiryCreateOpen=!1,this.inquiryPage=ee.d,this.id$=this.getRoutingParams$().pipe((0,A.T)(Ie=>Ie.processId)),this.keyboardService.setAccessoryBarVisible(!1),super.staticObservableShouldNotFinalize=!0}get staticResource$(){return this.id$.pipe((0,x.Z)(d=>this.processRepositoryService.show$({resourceId:d}).pipe((0,x.Z)(r=>this.processesService.transformListFunction$([r])),(0,A.T)(([r])=>r))),(0,u.M)(d=>this.process=d),(0,x.Z)(d=>(0,C.z)([this.inquiryRepositoryService.once$({pageSize:mt.F.minPageSize,directory:[{path:"processes",id:d.id}]}).pipe((0,x.Z)(r=>this.inquiriesService.transformListFunction$(r,{keepProcessAssociated:!0,fetchFiles:!0}))),this.markEveryFeedItemAsRead$()])),(0,A.T)(([d])=>{const r=[];if(d.length>0){const[D]=d;var m;D.report&&r.push({id:"inquiry-"+D.id,text:D.report,date:D.created,isOwn:!0,files:D.files,type:G._.InquiryCreation,typeDescription:null===(m=D.category)||void 0===m?void 0:m.name})}return r}),(0,L.W)(d=>(console.error("Process not found",d),(0,v.H)(this.router.navigate(["/processes"])).pipe((0,x.Z)(()=>(0,V.$)(()=>d))))))}get listRepository(){return this.processFeedRepositoryService}get searchRequest$(){return this.id$.pipe((0,A.T)(d=>({processId:d,orderBy:["created desc"]})))}get listRequestData(){return{pageSize:20}}markEveryFeedItemAsRead$(){return this.process?this.processFeedService.markEveryFeedItemAsRead$(this.process).pipe((0,u.M)(d=>{d&&this.reloadService.reloadProcessNotificationCount()})):(0,w.of)(!0)}ngOnInit(){(0,C.z)([this.id$,this.identityService.show$().pipe((0,u.M)(d=>this.accountId=null==d?void 0:d.accountId))]).pipe((0,Q.$)(),(0,u.M)(()=>super.ngOnInit()),(0,x.Z)(()=>{var d;return null!==(d=this.listData$)&&void 0!==d?d:(0,w.of)([])}),(0,u.M)(()=>this.loadingAttachments=!0),(0,x.Z)(d=>this.processFeedService.transformListFunction$.bind(this.processFeedService)(d)),(0,A.T)(d=>d.map(r=>({id:"processFeedItem-"+r.id,text:r.text,date:r.created,isOwn:r.creatorId==this.accountId,party:r.creatorParty,files:r.files,type:r.typeId in wt.JO?wt.JO[r.typeId]:void 0})).reverse()),(0,u.M)(d=>{this.messages=this.messages.map(m=>{var D;const j=null!==(D=d.find(({id:it})=>m.id===it))&&void 0!==D?D:{};return(0,f.merge)(m,j)});const r=d.filter(m=>this.messages.every(D=>D.id!==m.id));this.messages.unshift(...r),this.loadingAttachments=d.some(m=>!m.isPending&&!Array.isArray(m.files)),this.ref.markForCheck()})).subscribe()}get chatDisabled$(){return this.isRefreshOrLoadMoreLoading$.pipe((0,A.T)(d=>d||this.loadingAttachments))}get send$(){return(0,C.z)([this.id$,this.deviceService.device$]).pipe((0,Q.$)(),(0,A.T)(([d,r])=>{var m;return{processId:d,typeId:nt.Y.Note,sourceId:null!==(m=nt.d[r.platform])&&void 0!==m?m:st.k.Web,creatorId:this.accountId,text:this.chatInput.text}}),(0,x.Z)(d=>(0,C.z)([this.processFeedRepositoryService.create$(d),this.fileUploadService.uploadFiles$(this.chatInput.files),this.pushNewFeed$(d.text,this.chatInput.files)])),(0,x.Z)(([d,r])=>{const D=[this.processNotificationRepositoryService.listAll$({},{processIds:[d.processId],hasBeenReadByMe:!1}).pipe((0,x.Z)(j=>this.process?this.processFeedService.markEveryFeedItemAsRead$({...this.process,myUnreadNotifications:j}):(0,w.of)([!1])))];return 0!==r.length&&r.map(j=>this.fileRepositoryService.replace$(j,{resourceId:j.id,directory:[{path:"process-feeds",id:d.id}],modifiedResourceName:"attachments"}).pipe((0,Q.$)(),(0,L.W)(it=>(console.error("Error uploading file for message",{processFeed:d,file:j}
1,it),(0,w.of)(void 0))))).forEach(j=>D.push(j)),(0,z.p)(D).pipe((0,q.U)(void 0),(0,A.T)(()=>({...d,files:r})))}),(0,u.M)(d=>{this.reloadService.reloadProcessInquiries(),this.hapticsService.success();try{var r;const m=null!==(r=this.messages.find(({isOwn:D,isPending:j,text:it})=>D&&j&&it===d.text))&&void 0!==r?r:this.messages[this.messages.length-1];m.id="processFeedItem-"+d.id,m.isPending=!1,m.date=d.created,this.ref.markForCheck()}catch(m){this.hapticsService.error(),console.error("Error while updating pending message",m)}}))}pushNewFeed$(d,r){return this.hapticsService.medium(),this.messages.push({text:d,date:new Date,isOwn:!0,localFiles:r,isPending:!0}),this.ref.markForCheck(),this.scrollToBottom$()}reopenProcess$(){return this.alertService.show$({header:"Sicher?",message:"Der Vorgang ist bereits abgeschlossen. F\xfcr neue Anliegen erstellen Sie bitte eine neue Anfrage.",buttons:[{text:"Abbrechen",role:"cancel"},{text:"Neue Anfrage erstellen",role:"confirm"},{text:"Weitere Nachricht schreiben",role:"destructive"}]}).pipe((0,x.Z)(d=>this.alertService.willDismiss(d)),(0,u.M)(d=>{"destructive"===d.role?this.isReopened=!0:"confirm"===d.role&&(this.isInquiryCreateOpen=!0)}))}getRoutingParams$(){return this.routeParamService.getRouteParams(this.route,{[Nt.vO.ProcessID]:["number"]})}combineChatMessages(d,r,m){return r?[...d,...m]:m}ionViewWillLeave(){this.keyboardService.setAccessoryBarVisible(!0)}}return(Z=ut).\u0275fac=function(d){return new(d||Z)(o.rXU(te.E),o.rXU(Xt.P),o.rXU(Pt.K),o.rXU(Bt.D),o.rXU(oe.n),o.rXU(pt.h),o.rXU(Ut.j),o.rXU(wt.rV),o.rXU(re.t),o.rXU(Lt.a),o.rXU(Kt.nX),o.rXU(Jt.E),o.rXU(Kt.Ix),o.rXU(y.g),o.rXU(me.r),o.rXU(ae.P),o.rXU(W.o),o.rXU(P.u),o.rXU(o.gRc))},Z.\u0275cmp=o.VBU({type:Z,selectors:[["app-process-feed"]],viewQuery:function(d,r){if(1&d&&o.GBs(R,5),2&d){let m;o.mGM(m=o.lsd())&&(r.chatInput=m.first)}},standalone:!0,features:[o.Jv_([$t.m,yt.n,ft.x,jt.w,Yt.i,At.t,te.E,Tt.k,Xt.P,Bt.D,oe.n,Ut.j,re.t,wt.rV,Lt.a,pt.h,xt.t,ue.S,i.vh,Vt.P]),o.Vt3,o.aNF],decls:8,vars:16,consts:[["finishedProcess",""],["backgroundStyle","light",3,"title","enableInfinitScroll","backRouterLink","onlyTopHeader","isBottomUp","hasFooter"],["header-buttons","","icon","fa-solid fa-circle-info","fill","plain","size","xlarge",3,"invert","onClick",4,"ngIf"],[4,"ngIf"],["footer","",4,"ngIf"],[3,"willDismiss","rootPage","canDismissBySwipe","isOpen"],[3,"rootPage","rootParams","canDismissBySwipe","isOpen","willDismiss",4,"ngIf"],["header-buttons","","icon","fa-solid fa-circle-info","fill","plain","size","xlarge",3,"onClick","invert"],[3,"messages"],["footer",""],[1,"attachment-loader"],["size","small"],["style","z-index: 10000000",3,"sendAction$","isDisabled",4,"ngIf","ngIfElse"],[2,"z-index","10000000",3,"sendAction$","isDisabled"],[1,"ion-text-center"],["fill","plain","size","small","icon","fa fa-paper-plane",3,"text","click$"],["shape","default",3,"icon","color","text","disabled"],[3,"willDismiss","rootPage","rootParams","canDismissBySwipe","isOpen"]],template:function(d,r){1&d&&(o.j41(0,"app-page",1),o.DNE(1,ve,1,1,"app-button",2)(2,Mt,3,3,"ng-container",3),o.nI1(3,"async"),o.DNE(4,ce,6,3,"ng-container",4)(5,pe,4,2,"ng-container",4),o.k0s(),o.j41(6,"app-modal",5),o.bIt("willDismiss",function(){return r.isInquiryCreateOpen=!1}),o.k0s(),o.DNE(7,Ee,1,6,"app-modal",6)),2&d&&(o.Y8G("title",null==r.process?null:r.process.template_title)("enableInfinitScroll",!0)("backRouterLink",r.navigationTypeMap[r.NavigationType.Processes].path)("onlyTopHeader",!0)("isBottomUp",!0)("hasFooter",!0),o.R7$(),o.Y8G("ngIf",r.process),o.R7$(),o.Y8G("ngIf",o.bMT(3,14,r.staticData$)),o.R7$(2),o.Y8G("ngIf",r.loadingAttachments),o.R7$(),o.Y8G("ngIf",r.process),o.R7$(),o.Y8G("rootPage",r.inquiryPage)("canDismissBySwipe",!1)("isOpen",r.isInquiryCreateOpen),o.R7$(),o.Y8G("ngIf",r.process))},dependencies:[ot.U,S.Q,_e.t,Ht.H,It.z,R,Wt.K,Ot.G,i.MD,i.bT,i.Jj,g.bv,h.h,h.D9],styles:[".attachment-loader[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1ch;align-items:center;justify-content:center;opacity:.5;background-color:var(--card-background);color:var(--app-color-plain-contrast);border-bottom:var(--border);padding-block:.5rem;margin-bottom:.25rem}"]}),ut})()},3076:(rt,Y,t)=>{t.d(Y,{n:()=>o});var i=t(4572),g=t(7673),h=t(6354),f=t(3028),s=t(8793),A=t(7468),x=t(9437),u=t(6822),C=t(5127),L=t(3953),v=t(9727),V=t(4474),w=t(2463),Q=t(6797),z=t(8651),q=t(2010),I=t(7161),F=t(3955);let o=(()=>{var b;class y{constructor(P,W,$,S,et,X,K,B){this.fileRepositoryService=P,this.inquiryRepositoryService=W,this.unitRepositoryService=$,this.inquiryCategoryRepositoryService=S,this.entranceRepositoryService=et,this.propertyRepositoryService=X,this.fullStreetOrNamePipe=K,this.translate=B}transformListFunction$(P,W={keepProcessAssociated:!1,fetchFiles:!1}){return(0,i.z)([(0,g.of)(P).pipe((0,h.T)($=>$.filter(S=>W.keepProcessAssociated||!S.associatedProcessId))),this.unitRepositoryService.listAll$(),this.entranceRepositoryService.listAll$(),this.propertyRepositoryService.listAll$(),this.inquiryCategoryRepositoryService.listAll$()]).pipe((0,h.T)(([$,S,et,X,K])=>this.combineData({inquiries:$,units:S,entrances:et,properties:X,categories:K})),(0,f.Z)($=>W.fetchFiles?(0,s.x)((0,g.of)($),this.addFiles($)):(0,g.of)($)),(0,h.T)($=>this.addTemplateFields($)))}combineData({inquiries:P,units:W,entrances:$,properties:S,categories:et}){return P.map(X=>{var K;return X.unit=W.find(B=>B.id===X.connectedUnitId),X.unit&&(X.unit.entrance=X.unit.entranceId?$.find(B=>B.id===X.unit.entranceId):void 0),X.property=S.find(B=>B.id===X.connectedPropertyId),null!==(K=X.unit)&&void 0!==K&&K.entrance&&(X.unit.entrance.property=X.property),X.category=et.find(B=>B.id===X.categoryId),X})}addFiles(P){return P&&0!==P.length?(0,A.p)(P.map(W=>{const $=[this.fileRepositoryService.listAll$({directory:[{path:this.inquiryRepositoryService.resource,id:W.id}],modifiedResourceName:"attachments"}).pipe((0,x.W)(S=>(console.error("Error fetching inquiry files:",S),(0,g.of)([]))))];
1return u.$v.includes(W.readStatus)&&$.push(this.fileRepositoryService.listAll$({directory:[{path:this.inquiryRepositoryService.resource,id:W.id}],modifiedResourceName:"response-attachments"}).pipe((0,x.W)(S=>(console.error("Error fetching inquiry response files:",S),(0,g.of)([]))))),(0,i.z)($).pipe((0,h.T)(([S,et])=>(W.files=S,W.responseFiles=et,W)))})):(0,g.of)(P)}addTemplateFields(P){return P.map(W=>(W.template_title=this.getTitle(W),W.template_subtitle=this.getSubtitle(W),W.template_text=this.getText(W),W.template_progressColor=this.getProgressColor(W),W.template_progressIcon=this.getProgressIcon(W),W.template_progressText=this.getProgressText(W),W))}getTitle(P){var W;return P.subject?P.subject:null!==(W=P.category)&&void 0!==W&&W.name?P.category.name:this.translate.instant("PROCESS.DEFAULT_TITLE")}getSubtitle(P){return P.unit?(0,C.cA)(P.unit,void 0,P.property):P.property?this.fullStreetOrNamePipe.transform(P.property):this.translate.instant("PROCESS.MESSAGE.EMPTY")}getText(P){var W;let $=this.translate.instant("PROCESS.MESSAGE.PREFIX_ME"),S=P.report;return P.readStatus==u.WK.Accepted?($=this.translate.instant("PROCESS.MESSAGE.PREFIX_PROPERTY_MANAGEMENT"),S=P.completionResponse&&""!=P.completionResponse?P.completionResponse:this.translate.instant("PROCESS.DEFAULT_COMPLETION_RESPONSE")):P.readStatus==u.WK.Rejected&&($=this.translate.instant("PROCESS.MESSAGE.PREFIX_PROPERTY_MANAGEMENT"),S=P.rejectionResponse&&""!=P.rejectionResponse?P.rejectionResponse:this.translate.instant("PROCESS.DEFAULT_REJECTION_RESPONSE")),null!==(W=S)&&void 0!==W&&W.trim()?`${$}: ${S}`:this.translate.instant("PROCESS.MESSAGE.EMPTY")}getProgressColor(P){switch(P.readStatus){case u.WK.Accepted:return"success";case u.WK.Rejected:return"danger";default:return"secondary"}}getProgressIcon(P){switch(P.readStatus){case u.WK.Accepted:return"fa fa-check";case u.WK.Rejected:return"fa fa-xmark";default:return"fa fa-hourglass-half"}}getProgressText(P){switch(P.readStatus){case u.WK.Accepted:return this.translate.instant("PROCESS.STATE.DONE");case u.WK.Rejected:return this.translate.instant("PROCESS.STATE.REJECTED");default:return this.translate.instant("PROCESS.STATE.PROCESSING_UNREAD")}}}return(b=y).\u0275fac=function(P){return new(P||b)(L.KVO(v.E),L.KVO(V.D),L.KVO(w.w),L.KVO(Q.x),L.KVO(z.m),L.KVO(q.x),L.KVO(I.r),L.KVO(F.c$))},b.\u0275prov=L.jDH({token:b,factory:b.\u0275fac}),y})()},7203:(rt,Y,t)=>{t.d(Y,{JO:()=>b,bs:()=>o,rV:()=>y});var i=t(3028),g=t(8793),h=t(7673),f=t(4572),s=t(7468),A=t(9437),x=t(6354),u=t(2498),C=t(4131),L=t(3876),v=t(8203),V=t(9445),w=t(3953),Q=t(9727),z=t(5385),q=t(8952),I=t(3201),F=t(3248);const o=(H,P)=>{if(P.email&&H.text&&H.creatorId===L.y&&H.sourceId===v.k.Email){var W;const S=null===(W=H.text.split("\n").shift())||void 0===W?void 0:W.toLowerCase();if(S&&S.startsWith("von")&&S.includes(P.email.toLowerCase()))return!0}return!1},b={[V.Y.ProcessCreation]:C._.ProcessingStarted,[V.Y.ProcessModification]:C._.ProcessingReopened,[V.Y.ProcessCompletion]:C._.ProcessingEnded,[V.Y.AppointmentProposal]:C._.AppointmentProposal,[V.Y.AppointmentProposalAcceptance]:C._.AppointmentProposalAcceptance,[V.Y.AppointmentProposalRejection]:C._.AppointmentProposalRejection};let y=(()=>{var H;class P{constructor($,S,et,X,K){this.fileRepositoryService=$,this.accountRepositoryService=S,this.partyRepository=et,this.processFeedRepositoryService=X,this.processNotificationRepositoryService=K}transformListFunction$($){return this.enrichCreator$($).pipe((0,i.Z)(S=>(0,g.x)((0,h.of)(S),this.addFiles$(S))))}enrichCreator$($){return 0===$.length?(0,h.of)($):(0,f.z)([this.accountRepositoryService.mySelf$,this.partyRepository.mySelf$]).pipe((0,i.Z)(([S,et])=>(0,s.p)($.map(X=>X.creatorParty?(0,h.of)(X):o(X,S)?(X.creatorId=S.id,X.creatorParty=et,(0,h.of)(X)):this.accountRepositoryService.showSubResource$({resourceId:X.creatorId,subResourceName:"party"}).pipe((0,A.W)(()=>this.processFeedRepositoryService.showSubResource$({resourceId:X.id,subResourceName:"creator-party"})),(0,x.T)(K=>(X.creatorParty=K,X)),(0,A.W)(()=>(0,h.of)(X)))))))}addFiles$($){return 0===$.length?(0,h.of)($):(0,s.p)($.map(S=>Array.isArray(S.files)?(0,h.of)(S):this.fileRepositoryService.listAll$({directory:[{path:this.processFeedRepositoryService.resource,id:S.id}],modifiedResourceName:"attachments"}).pipe((0,u.L)(3),(0,x.T)(et=>(S.files=et,S)))))}markEveryFeedItemAsRead$($){return Array.isArray($.myUnreadNotifications)&&0!==$.myUnreadNotifications.length?(0,s.p)($.myUnreadNotifications.map(S=>this.processNotificationRepositoryService.update$({hasBeenRead:!0},{resourceId:S.id}).pipe((0,A.W)(()=>(0,h.of)(1))))).pipe((0,x.T)(()=>!0),(0,A.W)(()=>(0,h.of)(!1))):(0,h.of)(!1)}}return(H=P).\u0275fac=function($){return new($||H)(w.KVO(Q.E),w.KVO(z.t),w.KVO(q.o),w.KVO(I.j),w.KVO(F.a))},H.\u0275prov=w.jDH({token:H,factory:H.\u0275fac}),P})()},3292:(rt,Y,t)=>{t.d(Y,{t:()=>H});var i=t(4572),g=t(7673),h=t(5558),f=t(6354),s=t(3028),A=t(9437),x=t(1594),u=t(7468),C=t(1372),L=t(7203),v=t(5127),V=t(3953),w=t(8651),Q=t(3201),z=t(1673),q=t(3248),I=t(5385),F=t(2010),o=t(2463),b=t(8952),y=t(3955);let H=(()=>{var P;class W{constructor(S,et,X,K,B,n,T,N,E,e){this.entranceRepositoryService=S,this.processFeedRepositoryService=et,this.processTypeRepositoryService=X,this.processNotificationRepositoryService=K,this.accountRepositoryService=B,this.propertyRepositoryService=n,this.unitRepositoryService=T,this.partyRepository=N,this.processFeedService=E,this.translate=e}transformListFunction$(S){return(0,i.z)([(0,g.of)(S).pipe((0,h.n)(et=>this.addLastFeedAndUnreadNotifications$(et))),this.unitRepositoryService.listAll$(),this.entranceRepositoryService.listAll$(),this.propertyRepositoryService.listAll$(),this.processTypeRepositoryService.listAll$(),this.accountRepositoryService.mySelf$,this.partyRepository.getPropertyManagementCompanyByOwnProperties$()]).pipe((0,f.T)(([et,X,K,B,n,T,N])=>({processes:this.combineData({processes:et,units:X,entrances:K,properties:B,types:n}),myself:T,pmc:N})),(0,f.T)(({processes:et,myself:X,pmc:K})=>this.addTemplateFields(et,X,K)))}addLastFeedAndUnreadNotifications$(S){if(0===S.length)return(0,g.of)([]);const et=S.map(X=>X.lastFeed?(0,g.of)(X):(0,i.z)([this.processFeedRepositoryService.createNormalRequestOrSearchRequest$({pageSize:C.F.minPageSize},{orderBy:["created desc"],processId:X.id}).pipe((0,s.Z)(K=>this.processFeedService.enrichCreator$(K.items).pipe((0,f.T)(B=>({...K,items:B}))))),this.processNotificationRepositoryService.listAll$({},{processIds:[X.id],hasBeenReadByMe:!1})]).pipe((0,f.T)(([K,B])=>({...X,lastFeed:K.items.length>0?K.items[0]:void 0,feedCount:K.totalCount,myUnreadNotifications:B,hasBeenReadByMe:0===B.length})),(0,A.W)(K=>(console.error("Error enriching process information",K),(0,g.of)(X))),(0,x.$)()));return(0,u.p)(et)}combineData({processes:S,units:et,entrances:X,properties:K,types:B}){return S.map(n=>{const T=et.find(E=>E.id===n.unitId);let N;return T&&(T.entrance=X.find(E=>E.id===T.entranceId),N=K.find(E=>{var e,M;return E.id===(null!==(e=null===(M=T.entrance)||void 0===M?void 0:M.propertyId)&&void 0!==e?e:null==T?void 0:T.propertyId)}),T.entrance&&(T.entrance.property=N)),{...n,unit:T,property:N,type:B.find(E=>E.id===n.typeId)}})}addTemplateFields(S,et,X){return S.map(K=>({...K,template_title:this.getTitle(K),template_subtitle:this.getSubtitle(K),template_text:this.getText(K,et,X),...this.getProgressProperties(K)}))}getTitle(S){var et;let X=this.translate.instant("PROCESS.MESSAGE.EMPTY");return S.subject?X=S.subject:S.report?X=S.report:null!==(et=S.type)&&void 0!==et&&et.description&&(X=S.type.description),`${X} (#${S.fullyQualifiedNumber})`}getSubtitle(S){return S.unit?(0,v.cA)(S.unit,void 0,S.property):this.translate.instant("PROCESS.MESSAGE.EMPTY")}getText(S,et,X){try{var K,B,n;if(!S.lastFeed)return`${S.report}`;let T="";X&&X.id===(null===(K=S.lastFeed.creatorParty)||void 0===K?void 0:K.id)?T=this.translate.instant("PROCESS.MESSAGE.PREFIX_PROPERTY_MANAGEMENT")+": ":(et.id===S.lastFeed.creatorId||(0,L.bs)(S.lastFeed,et))&&(T=this.translate.instant("PROCESS.MESSAGE.PREFIX_ME")+": ");const N=null===(B=S.lastFeed.text)||void 0===B?void 0:B.trim();return N&&N.length>0?`${T}${N}`:null!==(n=S.lastFeed.files)&&void 0!==n&&n.length?`${T}${this.translate.instant("PROCESS.MESSAGE.ATTACHMENT"+(0===S.lastFeed.files.length?"":"S"))}`:`${T}${this.translate.instant("PROCESS.MESSAGE.EMPTY")}`}catch(T){console.error(T)}return this.translate.instant("PROCESS.MESSAGE.EMPTY")}getProgressProperties(S){return S.isFinished?{template_progressText:this.translate.instant("PROCESS.STATE.DONE"),template_progressIcon:"fa fa-check",template_progressColor:"success"}:{template_progressText:this.translate.instant("PROCESS.STATE.OPEN"),template_progressIcon:"fa fa-comments",template_progressColor:"secondary"}}}return(P=W).\u0275fac=function(S){return new(S||P)(V.KVO(w.m),V.KVO(Q.j),V.KVO(z.
1n),V.KVO(q.a),V.KVO(I.t),V.KVO(F.x),V.KVO(o.w),V.KVO(b.o),V.KVO(L.rV),V.KVO(y.c$))},P.\u0275prov=V.jDH({token:P,factory:P.\u0275fac}),W})()},4797:(rt,Y,t)=>{t.d(Y,{R:()=>G});var i=t(4412),g=t(6977),h=t(3028),f=t(8141),s=t(7673),A=t(4189),x=t(8952),u=t(3953),C=t(8250),L=t(7788),v=t(5954),V=t(177),w=t(5374),Q=t(803),z=t(2709),q=t(6346),I=t(675),F=t(3209),o=t(1695),b=t(1367),y=t(7535),H=t(7791),P=t(1991),W=t(3125),$=t(9813),S=t(5104),et=t(293),X=t(3412),K=t(4792);const B=J=>[J,"notification"],n=J=>[J,"display"],T=J=>[J,"general"],N=J=>[J],E=J=>[J,"credentials"];function e(J,ot){1&J&&(u.qex(0,12),u.nrm(1,"app-open-emergency-button",13),u.bVm()),2&J&&(u.R7$(),u.Y8G("invert",!0))}function M(J,ot){if(1&J&&(u.j41(0,"app-item-group"),u.nrm(1,"app-live-update-indicator-inner",14),u.k0s()),2&J){const st=ot.ngIf,nt=u.XpG();u.R7$(),u.Y8G("progress",st)("onAccept$",nt.liveUpdateService.reload$())}}function R(J,ot){if(1&J&&(u.j41(0,"app-item-group")(1,"app-item",3)(2,"div")(3,"h1")(4,"b"),u.EFF(5),u.nI1(6,"partyName"),u.k0s()(),u.j41(7,"p"),u.EFF(8),u.k0s(),u.j41(9,"p"),u.EFF(10),u.k0s()()(),u.j41(11,"app-item",3),u.qex(12,4),u.nrm(13,"app-icon",15),u.bVm(),u.EFF(14," Kontaktdaten "),u.k0s(),u.j41(15,"app-item",3),u.qex(16,4),u.nrm(17,"app-icon",16),u.bVm(),u.EFF(18," Zugangsdaten "),u.k0s()()),2&J){const st=ot.ngIf,nt=u.XpG();u.R7$(),u.Y8G("hasDetail",!0)("routerLink",u.eq3(12,T,nt.AppPath.Settings)),u.R7$(4),u.JRh(u.bMT(6,10,st)),u.R7$(3),u.JRh(st.fullStreet),u.R7$(2),u.Lme("",st.zipCode," ",st.city,""),u.R7$(),u.Y8G("hasDetail",!0)("routerLink",u.eq3(14,N,nt.AppPath.Settings_ContactData)),u.R7$(4),u.Y8G("hasDetail",!0)("routerLink",u.eq3(16,E,nt.AppPath.Settings))}}let G=(()=>{var J;class ot extends A.d{constructor(nt,mt,Tt,At){super(),this.alertService=nt,this.partyRepositoryService=mt,this.authenticationService=Tt,this.liveUpdateService=At,this.checkUpdate$=new i.t(void 0),this.checkUpdate$.pipe((0,g.Q)(this.destroy$),(0,h.Z)(()=>this.liveUpdateService.checkAndLoadUpdate$())).subscribe()}get staticResource$(){return this.partyRepositoryService.mySelf$.pipe((0,f.M)(()=>this.checkUpdate$.next()))}onLogout$(){return this.alertService.confirm$({header:"Wirklich abmelden?",confirmText:"Abmelden"}).pipe((0,h.Z)(nt=>nt?this.authenticationService.logout$({preventReturnUrl:!0}):(0,s.of)(1)))}}return(J=ot).\u0275fac=function(nt){return new(nt||J)(u.rXU(C.u),u.rXU(x.o),u.rXU(L.k),u.rXU(v.l))},J.\u0275cmp=u.VBU({type:J,selectors:[["app-settings"]],features:[u.Jv_([x.o]),u.Vt3],decls:23,vars:23,consts:[["backgroundStyle","light",3,"title","isReloadable"],["header-buttons","",4,"appPlatform"],[4,"ngIf"],["routerLinkActive","selected",3,"hasDetail","routerLink"],["item-left",""],["size","medium","name","fa fa-bullhorn"],["text","Steuern Sie \xfcber welche Kan\xe4le Sie Benachrichtigungen erhalten m\xf6chten",3,"title"],["size","medium","name","fa fa-display"],["text","Passen Sie die Anzeigeeinstellungen der App an",3,"title"],["text","Abmelden","expand","block","color","medium","fill","outline",3,"click$"],[1,"ion-margin-vertical","additional-button-container"],[3,"showWebAppLink"],["header-buttons",""],[3,"invert"],[3,"progress","onAccept$"],["size","medium","name","fa fa-address-card"],["size","medium","name","fa fa-unlock"]],template:function(nt,mt){1&nt&&(u.j41(0,"app-split-page-container")(1,"app-page",0),u.DNE(2,e,2,1,"ng-container",1),u.j41(3,"app-page-container"),u.DNE(4,M,2,2,"app-item-group",2),u.nI1(5,"async"),u.nI1(6,"async"),u.DNE(7,R,19,18,"app-item-group",2),u.nI1(8,"async"),u.j41(9,"app-item-group")(10,"app-item",3),u.qex(11,4),u.nrm(12,"app-icon",5),u.bVm(),u.nrm(13,"app-item-standard-content",6),u.k0s()(),u.j41(14,"app-item-group")(15,"app-item",3),u.qex(16,4),u.nrm(17,"app-icon",7),u.bVm(),u.nrm(18,"app-item-standard-content",8),u.k0s()(),u.nrm(19,"app-button",9)(20,"app-legal-links",10)(21,"app-app-store-links",11)(22,"app-version-tag"),u.k0s()()()),2&nt&&(u.R7$(),u.Y8G("title","Einstellungen")("isReloadable",!0),u.R7$(),u.Y8G("appPlatform","mobile"),u.R7$(2),u.Y8G("ngIf",u.bMT(5,13,mt.liveUpdateService.isUpdateModalDismissed$)&&u.bMT(6,15,mt.liveUpdateService.progress$)),u.R7$(3),u.Y8G("ngIf",u.bMT(8,17,mt.staticData$)),u.R7$(3),u.Y8G("hasDetail",!0)("routerLink",u.eq3(19,B,mt.AppPath.Settings)),u.R7$(3),u.Y8G("title","Benachrichtigungen"),u.R7$(2),u.Y8G("hasDetail",!0)("routerLink",u.eq3(21,n,mt.AppPath.Settings)),u.R7$(3),u.Y8G("title","Darstellung"),u.R7$(),u.Y8G("click$",mt.onLogout$()),u.R7$(2),u.Y8G("showWebAppLink",!0))},dependencies:[V.bT,w.N7,Q.Wk,Q.wQ,z.Q,q.H,I.B,F.E,o.J,b.R,y.Z,H._,P.i,W.h,$.w,S.o,et.B,X.M,V.Jj,K.o],styles:["[_nghost-%COMP%] .main-content>.content{display:flex;min-height:100%}[_nghost-%COMP%] app-page-container{flex:1;width:100%;display:flex}[_nghost-%COMP%] app-page-container>.container{flex:1;width:100%;display:flex;flex-direction:column;margin:0;padding:var(--ion-margin, 16px)}.additional-button-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;row-gap:1rem;column-gap:3rem}app-app-store-links[_ngcontent-%COMP%]{margin-block:2rem}app-version-tag[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;justify-content:end;margin-top:2rem;opacity:.25}"]}
1),ot})()},5172:(rt,Y,t)=>{t.d(Y,{r:()=>$});var i=t(7376),h=t(4572),f=t(7673),s=t(3028),A=t(6354),x=t(8793),u=t(9291),C=t(1594),L=t(9437),v=t(7468),V=t(9901),w=t(8279),Q=t(6259),z=t(5127),q=t(3953),I=t(8651),F=t(8952),o=t(2010),b=t(8356),y=t(9494),H=t(5200),P=t(6457),W=t(5385);let $=(()=>{var S;class et{constructor(K,B,n,T,N,E,e,M){this.entranceRepositoryService=K,this.partyRepositoryService=B,this.propertyRepositoryService=n,this.unitContractRepositoryService=T,this.unitTypeRepositoryService=N,this.propertyRoleMappingRepositoryService=E,this.propertyRoleDefaultRepositoryService=e,this.accountRepositoryService=M}customTransformListFunction$(K){return B=>this.transformListFunction$(B,K)}transformListFunction$(K,B){const n=(0,i.defaults)(B,{propertyTransformer:T=>this.addRoleMappings(T),propertyMapper:T=>({...T,template_roles:this.getPropertyRolesText(T)}),entranceMapper:T=>T,unitMapper:T=>T});return(0,h.z)([(0,f.of)(K),this.unitTypeRepositoryService.listAll$(),this.unitContractRepositoryService.listAll$(),this.entranceRepositoryService.listAll$(),this.propertyRepositoryService.listAll$().pipe((0,s.Z)(T=>n.propertyTransformer(T))),this.partyRepositoryService.mySelf$]).pipe((0,A.T)(([T,N,E,e,M,R])=>{const G=this.extendUnits({units:T,unitTypes:N,unitContracts:E,myself:R}).map(n.unitMapper),J=this.extendEntrances({entrances:e,units:G}).filter(ot=>ot.units.length).map(n.entranceMapper);return M.map(ot=>({...ot,entrances:J.filter(st=>st.propertyId===ot.id).map(st=>({...st,property:ot})).sort(this.sortPropertyOrEntrance)})).filter(ot=>ot.entrances.length).map(ot=>n.propertyMapper(ot)).sort(this.sortPropertyOrEntrance)}))}sortPropertyOrEntrance(K,B){return K.name.localeCompare(B.name)}transformUnit$(K){return this.entranceRepositoryService.show$({resourceId:K.entranceId}).pipe((0,s.Z)(B=>this.propertyRepositoryService.show$({resourceId:B.propertyId}).pipe((0,A.T)(n=>(K.propertyId=n.id,K.entrance=B,B.property=n,K)))))}extendUnits({units:K,unitTypes:B,unitContracts:n,myself:T}){return K.map(N=>({...N,type:B.find(E=>N.typeId===E.id),myOwnContracts:n.filter(E=>E.unitId===N.id&&E.partyId===T.id),otherContracts:n.filter(E=>E.unitId===N.id&&E.partyId!==T.id)})).map(N=>{var E,e,M,R;return{...N,template_hasSpecialContract:null===(E=N.myOwnContracts)||void 0===E?void 0:E.some(G=>Q.$M.includes(G.type)),template_hasOwnerContract:null===(e=N.myOwnContracts)||void 0===e?void 0:e.some(G=>Q.Jx.includes(G.type)),template_hasTenantContract:null===(M=N.myOwnContracts)||void 0===M?void 0:M.some(G=>Q.y.includes(G.type)),template_type:this.getTemplateTypeText(N),template_otherContracts:this.getSubContractCountText(N),template_status:null!==(R=N.myOwnContracts)&&void 0!==R&&R.length?void 0:"Inaktiver Vertrag"}})}extendEntrances({entrances:K,units:B}){return K.map(n=>({...n,units:B.filter(T=>T.entranceId===n.id).map(T=>({...T,entrance:n,propertyId:n.propertyId}))}))}getTemplateTypeText(K){var B,n;const T=[];null!==(B=K.type)&&void 0!==B&&B.name&&T.push(K.type.name);const N=(0,z.ro)(null!==(n=K.myOwnContracts)&&void 0!==n?n:[]);return T.push(N||"Inaktiver Vertrag"),T.join(" | ")}getSubContractCountText(K){var B;const n=(0,z.xe)(null!==(B=K.otherContracts)&&void 0!==B?B:[]).length;if(0!==n)return`${n} weitere ${1===n?"Person":"Personen"}`}getPropertyRolesText(K){if(!K.roleMappings)return;let B=(0,i.uniq)(K.roleMappings.filter(T=>-1!==T.accountId).map(T=>T.accountId)).length;return B+=(0,i.filter)(K.roleMappings,T=>-1===T.accountId).length,0===B?void 0:`${B} zust\xe4ndige ${1===B?"Mitarbeiter:in":"Mitarbeiter:innen"}`}addRoleMappings(K){if(0===K.length)return(0,f.of)(K);const B=K.map(n=>this.propertyRoleMappingRepositoryService.listAllForProperty$(n.id).pipe((0,s.Z)(T=>this.transformRoles$(T)),(0,A.T)(T=>({...n,roleMappings:T}))));return(0,x.x)(B).pipe((0,u.x)())}transformRoles$(K){return this.propertyRoleDefaultRepositoryService.listAll$().pipe((0,s.Z)(B=>{const n=K.map(T=>(T.roleName=w.u[T.roleId],this.accountRepositoryService.show$({resourceId:T.accountId}).pipe((0,A.T)(N=>{T.account=N;const E=B.find(e=>e.roleId===T.roleId);if(E){if(!E.email&&!E.phone)return;T.account.email=E.email,T.account.phoneNumber=E.phone}return T}),(0,C.$)(),(0,L.W)(N=>(console.error("Error while fetching accounts for role: ",T,N),(0,f.of)(void 0))))));return(0,v.p)(n).pipe((0,V.U)([]),(0,A.T)(T=>{var N;const E=null!==(N=null==T?void 0:T.filter(M=>!(null==M||!M.account)))&&void 0!==N?N:[];return B.filter(M=>M.email||M.phone).filter(M=>E.every(R=>R.roleId!==M.roleId)).map(M=>({...M,propertyId:-1,accountId:-1})).concat(E)}))}))}}return(S=et).\u0275fac=function(K){return new(K||S)(q.KVO(I.m),q.KVO(F.o),q.KVO(o.x),q.KVO(b.q),q.KVO(y.i),q.KVO(H.N),q.KVO(P.E),q.KVO(W.t))},S.\u0275prov=q.jDH({token:S,factory:S.\u0275fac}),et})()},9356:(rt,Y,t)=>{t.d(Y,{S:()=>v});var i=t(7673),g=t(5558),h=t(7468),f=t(3028),s=t(6354),A=t(9901),x=t(3953),u=t
1(8952),C=t(4217),L=t(9008);let v=(()=>{var V;class w{constructor(z,q,I){this.partyRepositoryService=z,this.workOrderAppointmentRequestRepositoryService=q,this.workOrderAppointmentRequestDateRepositoryService=I}transformListFunction$(z){return(0,i.of)(z).pipe((0,g.n)(q=>this.addRequests(q)),(0,g.n)(q=>this.addContractors(q)))}addRequests(z){return 0===z.length?(0,i.of)(z):(0,h.p)(z.map(q=>this.workOrderAppointmentRequestRepositoryService.listAll$({directory:[{id:q.id,path:"work-orders"}],modifiedResourceName:"appointment-requests"}).pipe((0,f.Z)(I=>(0,h.p)(I.map(F=>this.workOrderAppointmentRequestDateRepositoryService.listAll$({directory:[{id:F.id,path:"work-order-appointment-requests"}],modifiedResourceName:"dates"}).pipe((0,s.T)(o=>(F.requestDates=o,F))))).pipe((0,A.U)([]))),(0,s.T)(I=>(q.appointmentRequests=I,q)))))}addContractors(z){return 0===z.length?(0,i.of)(z):this.partyRepositoryService.listAll$({},{ids:Array.from(new Set(z.map(q=>q.contractorId))).filter(q=>!!q)}).pipe((0,s.T)(q=>z.map(I=>(I.contractor=q.find(F=>(null==F?void 0:F.id)===I.contractorId),I))))}}return(V=w).\u0275fac=function(z){return new(z||V)(x.KVO(u.o),x.KVO(C.Z),x.KVO(L.V))},V.\u0275prov=x.jDH({token:V,factory:V.\u0275fac,providedIn:"root"}),w})()},293:(rt,Y,t)=>{t.d(Y,{B:()=>q});var i=t(1594),g=t(6354),h=t(321),f=t(7913),s=t(3953),A=t(5033),x=t(177),u=t(2709),C=t(675),L=t(1695),v=t(1367),V=t(119);function w(I,F){if(1&I){const o=s.RV6();s.j41(0,"app-button",4),s.bIt("onClick",function(){s.eBV(o);const y=s.XpG(2);return s.Njj(y.openModal())}),s.k0s()}if(2&I){const o=s.XpG(2);s.Mz_("icon","fa fa-fw ",o.navigationItem.icon,""),s.Y8G("invert",o.invert)}}function Q(I,F){if(1&I){const o=s.RV6();s.j41(0,"app-item",5),s.bIt("onClick",function(){s.eBV(o);const y=s.XpG(2);return s.Njj(y.isOpen=!0)}),s.qex(1,6),s.nrm(2,"app-icon",7),s.bVm(),s.j41(3,"b",8),s.EFF(4),s.k0s()()}if(2&I){const o=s.XpG(2);s.Y8G("compact",!0),s.R7$(2),s.Mz_("name","fa fa-fw ",o.navigationItem.icon,""),s.R7$(2),s.SpI(" ",o.navigationItem.title," ")}}function z(I,F){if(1&I){const o=s.RV6();s.qex(0),s.DNE(1,w,1,3,"app-button",1)(2,Q,5,4,"app-item",2),s.j41(3,"app-modal",3),s.bIt("willDismiss",function(){s.eBV(o);const y=s.XpG();return s.Njj(y.isOpen=!1)}),s.k0s(),s.bVm()}if(2&I){const o=s.XpG();s.R7$(),s.Y8G("appPlatform","mobile"),s.R7$(),s.Y8G("appPlatform","web"),s.R7$(),s.Y8G("rootPage",o.emergencyPage)("isOpen",o.isOpen)}}let q=(()=>{var I;class F{constructor(b){this.navigationService=b,this.invert=!1,this.emergencyPage=f.Z,this.isOpen=!1,this.navigationItem=h.j[h.b.EmergencyContacts],this.isActive$=this.navigationService.navigationItems$.pipe((0,i.$)(),(0,g.T)(y=>y.some(H=>H.type===h.b.EmergencyContacts)))}openModal(){this.isOpen=!0}}return(I=F).\u0275fac=function(b){return new(b||I)(s.rXU(A.o))},I.\u0275cmp=s.VBU({type:I,selectors:[["app-open-emergency-button"]],inputs:{invert:"invert"},decls:2,vars:3,consts:[[4,"ngIf"],["color","primary","size","small","fill","plain",3,"invert","icon","onClick",4,"appPlatform"],["line","none","class","rounded menu-item","detail","false",3,"compact","onClick",4,"appPlatform"],[3,"willDismiss","rootPage","isOpen"],["color","primary","size","small","fill","plain",3,"onClick","invert","icon"],["line","none","detail","false",1,"rounded","menu-item",3,"onClick","compact"],["item-left",""],["color","light",3,"name"],[1,"text-primary-contrast"]],template:function(b,y){1&b&&(s.DNE(0,z,4,4,"ng-container",0),s.nI1(1,"async")),2&b&&s.Y8G("ngIf",s.bMT(1,1,y.isActive$))},dependencies:[x.bT,u.Q,C.B,L.J,v.R,V.z,x.Jj]}),F})()},3861:(rt,Y,t)=>{t.d(Y,{T:()=>K});var i=t(7673),g=t(3028),h=t(7048),f=t(546),s=t(3953),A=t(2225),x=t(9356),u=t(7509),C=t(2872),L=t(5374),v=t(1056),V=t(7161),w=t(177),Q=t(803),z=t(1695),q=t(7535),I=t(7791),F=t(1991),o=t(4792),b=t(7683);function y(B,n){if(1&B&&(s.nrm(0,"span",9),s.nI1(1,"linkify")),2&B){const T=s.XpG().$implicit;s.Y8G("innerHtml",s.bMT(1,1,T.todo),s.npT)}}function H(B,n){1&B&&(s.j41(0,"em"),s.EFF(1,"Keine Beschreibung vorhanden"),s.k0s())}function P(B,n){if(1&B&&(s.nrm(0,"app-item-standard-content",14),s.nI1(1,"date")),2&B){let T,N;const E=s.XpG().$implicit,e=s.XpG(5);s.Y8G("title","Terminvorschlag: "+e.requestDateStatusText[null!==(T=E.requestStatus)&&void 0!==T?T:0])("subtitle",null!==(N=s.i5U(1,4,E.requestedAppointmentDate,"dd.MM.yyyy HH:mm"))&&void 0!==N?N:void 0)("compact",!0)("lightFont",!0)}}function W(B,n){if(1&B&&(s.qex(0),s.DNE(1,P,2,7,"app-item-standard-content",13),s.bVm()),2&B){const T=n.$implicit;s.R7$(),s.Y8G("ngIf",T.requestedAppointmentDate)}}function $(B,n){if(1&B&&(s.j41(0,"app-item",10),s.nrm(1,"app-item-standard-content",11),s.n
1I1(2,"partyName"),s.DNE(3,W,2,1,"ng-container",12),s.k0s()),2&B){const T=n.$implicit,N=s.XpG().$implicit,E=s.XpG(3);s.Y8G("routerLink",E.disableWorkOrderLinks?void 0:"/dashboard/work-order-appointments")("hasDetail",!E.disableWorkOrderLinks),s.R7$(),s.Y8G("title","Terminvereinbarung mit "+s.bMT(2,6,N.contractor))("text",T.message),s.R7$(2),s.Y8G("ngForOf",T.requestDates)("ngForTrackBy",E.identifyById)}}function S(B,n){if(1&B&&(s.j41(0,"app-item-group",4)(1,"app-item")(2,"app-item-standard-content",5)(3,"p",6),s.DNE(4,y,2,3,"span",7)(5,H,2,0,"ng-template",null,0,s.C5r),s.k0s()()(),s.DNE(7,$,4,8,"app-item",8),s.k0s()),2&B){const T=n.$implicit,N=n.index,E=s.sdS(6),e=s.XpG(3);s.Y8G("title","Arbeitsauftrag "+(N+1)),s.R7$(2),s.Y8G("title","Auftragsbeschreibung:"),s.R7$(2),s.Y8G("ngIf",T.todo)("ngIfElse",E),s.R7$(3),s.Y8G("ngForOf",T.appointmentRequests)("ngForTrackBy",e.identifyById)}}function et(B,n){if(1&B&&(s.qex(0),s.DNE(1,S,8,6,"app-item-group",3),s.bVm()),2&B){const T=n.ngIf,N=s.XpG(2);s.R7$(),s.Y8G("ngForOf",T)("ngForTrackBy",N.identifyById)}}function X(B,n){if(1&B&&(s.j41(0,"app-page-container"),s.nrm(1,"app-item-group",2)(2,"app-item-group",2),s.DNE(3,et,2,2,"ng-container",1),s.nI1(4,"async"),s.k0s()),2&B){const T=s.XpG();s.R7$(),s.Y8G("items",T.fields)("title","Allgemeine Angaben"),s.R7$(),s.Y8G("items",T.contextFields)("title","Ort des Vorgangs"),s.R7$(),s.Y8G("ngIf",s.bMT(4,5,T.workOrders$))}}let K=(()=>{var B;class n extends f.C{constructor(N,E,e,M,R,G){super(),this.workOrderRepositoryService=N,this.workOrdersService=E,this.modalService=e,this.navParams=M,this.naturalDatePipe=R,this.fullStreetOrNamePipe=G,this.disableWorkOrderLinks=!1,this.requestDateStatusText={[h.g.Unanswered]:"unbeantwortet",[h.g.Accepted]:"angenommen",[h.g.Declined]:"abgelehnt"}}ngOnInit(){this.fields=this.getFields(),this.contextFields=this.getContextFields(),this.workOrders$=(0,i.of)(this.process.id).pipe((0,g.Z)(N=>this.workOrderRepositoryService.listAll$({directory:[{id:N,path:"processes"}]}).pipe((0,g.Z)(E=>this.workOrdersService.transformListFunction$(E)))))}getFields(){var N;return[{label:"Betreff",value:this.process.subject,hideEmpty:!0},{label:"Meldung",value:this.process.report},{label:"Vorgangstyp",value:this.process.type?`${this.process.type.description} (${this.process.type.shortDescription})`:void 0},{label:"Stand",value:this.process.template_progressText},{label:"Vorgangsnummer",value:this.process.fullyQualifiedNumber},{label:"Erstellt am",value:null!==(N=this.naturalDatePipe.transform(this.process.created,"justDate"))&&void 0!==N?N:void 0,rawDate:this.process.created}]}getContextFields(){var N,E,e,M;const R=this.fullStreetOrNamePipe.transform(this.process.property),G=null!==(N=this.process.unit)&&void 0!==N&&N.entrance?this.fullStreetOrNamePipe.transform(null===(E=this.process.unit)||void 0===E?void 0:E.entrance):void 0;return[{label:"Objekt",value:R,icon:"home",to:"/dashboard/units/"},{label:"Aufgang",value:R!==G?G:void 0,icon:"door-open",hideEmpty:!0},{label:"Einheit",value:null===(e=this.process.unit)||void 0===e?void 0:e.fullNameWithType,icon:null===(M=this.process.unit)||void 0===M||null===(M=M.type)||void 0===M?void 0:M.icon,to:`/dashboard/units/unit/${this.process.unitId}`}]}}return(B=n).\u0275fac=function(N){return new(N||B)(s.rXU(A.t),s.rXU(x.S),s.rXU(u.B),s.rXU(C.y8),s.rXU(v._),s.rXU(V.r))}
1,B.\u0275cmp=s.VBU({type:B,selectors:[["app-process-details"]],inputs:{process:"process",disableWorkOrderLinks:"disableWorkOrderLinks"},features:[s.Vt3],decls:1,vars:1,consts:[["noTodo",""],[4,"ngIf"],[3,"items","title"],["class","item-group",3,"title",4,"ngFor","ngForOf","ngForTrackBy"],[1,"item-group",3,"title"],[3,"title"],[1,"work-order-description","text-selectable"],[3,"innerHtml",4,"ngIf","ngIfElse"],[3,"routerLink","hasDetail",4,"ngFor","ngForOf","ngForTrackBy"],[3,"innerHtml"],[3,"routerLink","hasDetail"],[3,"title","text"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","work-order-appointment-date",3,"title","subtitle","compact","lightFont",4,"ngIf"],[1,"work-order-appointment-date",3,"title","subtitle","compact","lightFont"]],template:function(N,E){1&N&&s.DNE(0,X,5,7,"app-page-container",1),2&N&&s.Y8G("ngIf",E.process)},dependencies:[w.Sq,w.bT,L.N7,Q.Wk,z.J,q.Z,I._,F.i,w.Jj,w.vh,o.o,b.F],styles:[".work-order-description[_ngcontent-%COMP%]{margin-top:.5em}.work-order-appointment-date[_ngcontent-%COMP%]{margin-top:1rem;padding-left:1rem;border-left:1px solid var(--app-color-secondary)}.work-order-appointment-date[_ngcontent-%COMP%] [_ngcontent-%COMP%]:not(:first-child){margin-top:.5rem}"]}),n})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.