1import{b as Y,c as Tt}from"./chunk-JL6X3VJQ.js";import"./chunk-5AEFXYPS.js";import{m as ye}from"./chunk-HESLHOTG.js";import"./chunk-GC47LCJF.js";import"./chunk-MUQBK3U7.js";import"./chunk-PXCNUMRZ.js";import"./chunk-ZUJO6NMX.js";import"./chunk-2EOAG3C5.js";import"./chunk-MR6HT3G6.js";import"./chunk-YICG6F4M.js";import{c as Dt}from"./chunk-JT6UUFGD.js";import"./chunk-PEGY7326.js";import"./chunk-RGROMRFS.js";import"./chunk-PNLCRQMP.js";import"./chunk-BUH22TTO.js";import"./chunk-TCI3J5DS.js";import"./chunk-E7GL2XU5.js";import"./chunk-5K7PJIJK.js";import"./chunk-HVAL6IPA.js";import"./chunk-HOFHIT5D.js";import"./chunk-CBFYR366.js";import"./chunk-FLED7P6D.js";import"./chunk-OO57A54Q.js";import"./chunk-3FARAF7O.js";import"./chunk-E7P3AQZA.js";import"./chunk-H42R3XSL.js";import"./chunk-G7Q7NR25.js";import"./chunk-PERUCYAF.js";import"./chunk-NYVEOVNL.js";import"./chunk-WNK2GUWR.js";import"./chunk-IBVEDQEP.js";import"./chunk-4C7S2R2P.js";import"./chunk-J56CX3TI.js";import"./chunk-HX7ONLT2.js";import"./chunk-CQ6XPIBF.js";import"./chunk-PVP6KD3K.js";import{d as Rt,g as xe}from"./chunk-NDYLCLZF.js";import"./chunk-2OOVKW4A.js";import"./chunk-DADUEZZ3.js";import"./chunk-O5JXA5VI.js";import"./chunk-HTELXMQK.js";import"./chunk-SMFGRM2O.js";import"./chunk-NDAOIORI.js";import"./chunk-FFRE65DK.js";import"./chunk-H2WLAYPQ.js";import"./chunk-KNY7JFZA.js";import"./chunk-SRTULV5Q.js";import"./chunk-CUG3W4ZC.js";import"./chunk-F5GF4DFP.js";import"./chunk-KOQIKQ66.js";import"./chunk-VGHX6RVZ.js";import"./chunk-XOFR5VDT.js";import"./chunk-D6GIXJHU.js";import"./chunk-V6JIWBIY.js";import"./chunk-TVKUJHCJ.js";import{a as Ot}from"./chunk-2UMHM5CD.js";import"./chunk-UQ3V4WZK.js";import"./chunk-V5UFXPQY.js";import"./chunk-AZV6ART2.js";import"./chunk-JUCZ36ND.js";import"./chunk-2TM67XFD.js";import"./chunk-SHFEB75G.js";import"./chunk-ZV4YZ3MC.js";import"./chunk-X3TBMCDT.js";import"./chunk-7VCEAD4J.js";import"./chunk-OD3GEECL.js";import"./chunk-3RKTSFWQ.js";import"./chunk-ZXBSDFP3.js";import"./chunk-I6W6JKOL.js";import{k as he}from"./chunk-5FOTDUDB.js";import"./chunk-FRFVJ72T.js";import"./chunk-5CSIGGSU.js";import{a as jt}from"./chunk-MGZLJECP.js";import"./chunk-HVPYZGIO.js";import"./chunk-ULOJQH2J.js";import"./chunk-XZ5EZI4K.js";import"./chunk-LYSGAG4P.js";import"./chunk-VJSMSKCS.js";import"./chunk-6URCNC7N.js";import"./chunk-QSCDRBR3.js";import"./chunk-XWMRV3R6.js";import"./chunk-JFBAX263.js";import"./chunk-2BNGPEM2.js";import"./chunk-QVGP2J4U.js";import"./chunk-CPVFK724.js";import"./chunk-O4EO7MHO.js";import"./chunk-WUO4YCLL.js";import{b as Ce}from"./chunk-RAWUH2QX.js";import{c as kt}from"./chunk-DBTMC7UN.js";import{c as Et}from"./chunk-NRQPG2H7.js";import"./chunk-OGGGMJSN.js";import{$ as xt,Eb as yt,Fc as St,Kc as Mt,X as Pe,f as Ct}from"./chunk-5P3AN2OS.js";import{P as X}from"./chunk-KUZG56OI.js";import"./chunk-HGZSA7RT.js";import"./chunk-RS3SWHRI.js";import"./chunk-CBCKS6VK.js";import{A as bt,e as ht,w as wt,z as It}from"./chunk-645XG2RC.js";import{B as ve,C as ge,D as vt,P as gt,U as Pt,q as ut}from"./chunk-VOTWYUYF.js";import{$a as o,$b as Fe,Bf as fe,Cb as Ve,Cm as pt,Db as Ne,Dd as Je,Eb as g,Ec as c,Ek as P,Em as Q,F as Re,Fa as j,Fb as r,Fc as _,Fm as J,Ga as E,Gb as a,Gc as B,Ge as L,Gm as K,Hb as b,He as q,Im as mt,Ja as Te,La as Ae,Lb as ee,Mb as te,Ob as H,Od as Ke,Of as ue,Pe as it,Qe as $,Rb as C,Rf as z,Sm as _t,Tb as s,U as Oe,Uc as Ge,Vd as Xe,Wa as Se,We as nt,Wf as st,Wk as dt,Xf as G,Yf as W,Zf as F,ac as Ue,dc as k,ed as We,ef as ot,fa as De,fc as l,fd as me,fn as ft,gc as f,hb as p,hc as w,he as Ye,ic as Me,ka as se,lb as U,mb as pe,mc as He,md as Qe,nc as Le,o as le,oc as $e,oe as Ze,pd as _e,rb as Z,rf as at,s as ce,se as je,td as qe,tf as rt,ue as et,uf as lt,wc as y,xa as de,xb as T,xc as ze,xf as ct,xk as Qt,yb as Be,zb as A,zd as ie,ze as tt}from"./chunk-23S5SJ2M.js";import"./chunk-MVDMSBX6.js";import"./chunk-JVX7FMTT.js";import"./chunk-WNQ4N7RJ.js";import"./chunk-SLBGBKZ3.js";import"./chunk-W6K676FX.js";import"./chunk-QUJFQN2Y.js";import"./chunk-GSCG32S7.js";import"./chunk-KKHWLRGY.js";import"./chunk-KX4FLUXE.js";import"./chunk-TTZSLDD6.js";import"./chunk-HD5YA6ZE.js";import"./chunk-LZE6NVX3.js";import"./chunk-KZJFW7VO.js";import"./chunk-T42X4GN6.js";import"./chunk-6CZJXZPX.js";import"./chunk-6OKCMVIT.js";import"./chunk-VT4XPAGN.js";import"./chunk-T2BITMNJ.js";import"./chunk-JVYOHDHX.js";import"./chunk-MTHZ7MWU.js";import"./chunk-WI5MSH4N.js";import"./chunk-TG547T4L.js";import"./chunk-CKP3SGE2.js";import"./chunk-MUSA4S5V.js";import{i as Wt,k as x}from"./chunk-3FU4ZZZM.js";var Nt=(()=>{class i{constructor(e){this.sentEmailService=e}close(){return x(this,null,function*(){yield this.modal?.dismiss()})}openPdfPreview(e){return x(this,null,function*(){yield this.sentEmailService.previewPdfPreview(e.pdfpreviewId)})}static{this.\u0275fac=function(t){return new(t||i)(p(Y))}}static{this.\u0275cmp=U({type:i,selectors:[["app-project-room-individual-pdf-modal"]],inputs:{pdfRecipients:"pdfRecipients"},decls:11,vars:8,consts:[[1,"with-padding"],[3,"showPdfClicked","mailingListParticipants","isInProjectRoom"],["slot","end"],[1,"omg-btn-text",3,"click"]],template:function(t,n){t&1&&(r(0,"app-modal-header")(1,"ion-title"),l(2),c(3,"translate"),a()(),r(4,"ion-content",0)(5,"app-pdf-individual-protocols",1),C("showPdfClicked",function(h){return n.openPdfPreview(h)}),a()(),r(6,"app-modal-footer")(7,"ion-buttons",2)(8,"ion-button",3),C("click",function(){return n.close()}),l(9),c(10,"translate"),a()()()),t&2&&(o(2),f(_(3,4,"project_room.email.individualModal")),o(3),g("mailingListParticipants",n.pdfRecipients)("isInProjectRoom",!0),o(4),f(_(10,6,"close")))},dependencies:[z,L,q,$,fe,X,J,K,W,Q,ye,Dt,G],encapsulation:2})}}return i})();var re=Wt(Qt());var Xt=()=>[];function Yt(i,u){if(i&1&&b(0,"app-pdf-plan-viewer",2),i&2){let e=s();g("acrossProjects",e.acrossProjects)("pdfPlanVersionId",e.pdfPlanVersionId)("objectsMovable",!1)("sketchingEnabled",!1)("availableTools",y(5,Xt))}}var Ft=(()=>{class i{constructor(e,t,n,m,h,v){this.pdfPlanVersionDataService=e,this.userDataService=t,this.profileDataService=n,this.addressDataService=m,this.translateService=h,this.injector=v,this.acrossProjects=!1,this.pdfPlanViewer=Ge(xe)}ngOnInit(){this.pdfPlanVersion=It(this.acrossProjects?this.pdfPlanVersionDataService.getByIdAcrossProjects(this.pdfPlanVersionId):this.pdfPlanVersionDataService.getById(this.pdfPlanVersionId),{injector:this.injector}),this.creatorName=bt({defaultValue:"",params:()=>({userId:this.pdfPlanVersion()?.createdById}),stream:({params:{userId:e}})=>e?this.userDataService.getById(e).pipe(se(t=>t?this.profileDataService.getByIdAcrossClients(t.profileId):this.profileDataService.getActiveByAttachedUserId(e)),dt(t=>this.addressDataService.getByIdAcrossClients(t.addressId)),ce(t=>kt(this.translateService,t))):le(""),injector:this.injector})}static{this.\u0275fac=function(t){return new(t||i)(p(Pe),p(ft),p(ve),p(ge),p(st),p(Te))}}static{this.\u0275cmp=U({type:i,selectors:[["app-pdf-plan-display-modal"]],viewQuery:function(t,n){t&1&&Fe(n.pdfPlanViewer,xe,5),t&2&&Ue()},inputs:{pdfPlanVersionId:"pdfPlanVersionId",acrossProjects:"acrossProjects"},decls:10,vars:7,consts:[[3,"pdfPlanViewer","pdfPlanVersion","creatorName"],[1,"flex-grow-1"],[3,"acrossProjects","pdfPlanVersionId","objectsMovable","sketchingEnabled","availableTools"],["slot","end"],[1,"omg-btn-text",3,"click"]],template:function(t,n){t&1&&(r(0,"app-modal-header")(1,"app-pdf-plan-viewer-navigation",0),b(2,"div",1),a()(),r(3,"ion-content"),T(4,Yt,1,6,"app-pdf-plan-viewer",2),a(),r(5,"app-modal-footer")(6,"ion-buttons",3)(7,"ion-button",4),C("click",function(){return n.modal.dismiss()}),l(8),c(9,"translate"),a()()()),t&2&&(o(),g("pdfPlanViewer",n.pdfPlanViewer())("pdfPlanVersion",n.pdfPlanVersion())("creatorName",n.creatorName.value()),o(3),A(n.pdfPlanVersionId?4:-1),o(4),w(" ",_(9,5,"close")," "))},dependencies:[X,J,K,z,L,q,$,xe,Rt,Q,W,Ce,G],styles:["app-pdf-plan-viewer[_ngcontent-%COMP%]{height:100%}"],changeDetection:0})}}return i})();function ei(i,u){if(i&1){let e=H();ee(0),r(1,"ion-row",6)(2,"ion-col",7),l(3),c(4,"date"),a(),r(5,"ion-col",8)(6,"ion-button",9),C("click",function(){let n=j(e).$implicit,m=s();return E(m.onVersionClick(n))}),l(7),c(8,"translate"),a()()(),te()}if(i&2){let e=u.$implicit,t=u.odd;o(),k("odd",t),o(2),f(e.name+(e!=null&&e.index?" | "+e.index+" | ":" | ")+B(4,4,e.createdAt,"dd.MM.yyyy")),o(4),w(" ",_(8,7,"project_room.email.openPlan")," ")}}var Ut=(()=>{class i{constructor(e,t){this.sentEmailService=e,this.modalController=t}close(){return x(this,null,function*(){yield this.modal?.dismiss()})}onVersionClick(e){return x(this,null,function*(){return yield(yield this.modalController.create({component:Ft,cssClass:"full-screen-modal-xxl",componentProps:{pdfPlanVersionId:e.id}})).present()})}static{this.\u0275fac=function(t){return new(t||i)(p(Y),p(ue))}}static{this.\u0275cmp=U({type:i,selectors:[["app-project-room-sent-plans-modal"]],inputs:{planVersions:"planVersions"},decls:17,vars:10,consts:[[1,"table"],[1,"table-header","text-grey"],["size","12",1,"table-col"],[4,"ngFor","ngForOf"],["slot","end"],[1,"omg-btn-text",3,"click"],[1,"table-row"],["size","9","appEllipsisTooltip","",1,"one-line-ellipsis","table-col","ion-align-self-center"],["size","3",1,"table-col","d-flex","ion-justify-content-end"],[1,"omg-btn-secondary",3,"click"]],template:function(t,n){t&1&&(r(0,"app-modal-header")(1,"ion-title"),l(2),c(3,"translate"),a()(),r(4,"ion-content")(5,"ion-grid",0)(6,"ion-row",1)(7,"ion-col",2)(8,"b"),l(9),c(10,"translate"),a()()(),Z(11,ei,9,9,"ng-container",3),a()(),r(12,"app-modal-footer")(13,"ion-buttons",4)(14,"ion-button",5),C("click",function(){return n.close()}),l(15),c(16,"translate"),a()()()),t&2&&(o(2),f(_(3,4,"project_room.email.planModal")),o(7),f(_(10,6,"project_room.pdf_plan_holders.history.columns.versionName")),o(2),g("ngForOf",n.planVersions),o(4),f(_(16,8,"close")))},dependencies:[z,L,q,it,$,nt,at,fe,X,J,K,W,Q,ye,me,Ot,G,_e],styles:[".table-header[_ngcontent-%COMP%]{border:1px solid var(--ion-color-omg-divider);border-radius:8px 3px 0 0;background:var(--ion-color-omg-toolbar-bg);position:sticky;top:0;z-index:1}.table-row[_ngcontent-%COMP%]{border-left:1px solid var(--ion-color-omg-divider);border-right:1px solid var(--ion-color-omg-divider)}.table-row[_ngcontent-%COMP%]:nth-last-child(1){border-bottom:1px solid var(--ion-color-omg-divider)}.table-col[_ngcontent-%COMP%]{padding:8px}.odd[_ngcontent-%COMP%]{background:#eff2f6}.dark[_nghost-%COMP%] .odd[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .odd[_ngcontent-%COMP%]{background:#222a32}.one-line-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table[_ngcontent-%COMP%]{padding:16px}"]})}}return i})();var ti=()=>["fal","ellipsis-h"],ii=i=>({"email-frame__row--no-wrap email-frame__row--overflow-gradient":i}),oe=()=>["fal","long-arrow-up"],ae=()=>["fal","long-arrow-down"],we=()=>["fal","eye-slash"],ni=(i,u)=>u.id;function oi(i,u){if(i&1&&(r(0,"div",19)(1,"span",20),l(2),a(),r(3,"span",21),l(4),a()()),i&2){let e=u.$implicit;o(2),f(e.name),o(2),f(e.email)}}function ai(i,u){if(i&1){let e=H();
1r(0,"div",26),c(1,"safeHtml"),C("click",function(n){j(e);let m=s(2).$implicit,h=s();return E(h.onEmailContentClick(n,m))}),a()}if(i&2){let e=s(2).$implicit;g("innerHTML",_(1,1,e.body),Se)}}function ri(i,u){i&1&&(b(0,"ion-spinner"),r(1,"span",27),l(2),c(3,"translate"),a()),i&2&&(o(2),f(_(3,1,"project_room.email.loadMailContent")))}function li(i,u){if(i&1&&(b(0,"div",25),c(1,"safeHtml")),i&2){let e=s(5);g("innerHTML",_(1,1,e.entryMailContent),Se)}}function ci(i,u){if(i&1){let e=H();r(0,"app-offline-info",29),C("retry",function(){j(e);let n=s(5);return E(n.fetchEntryMailContent())}),a()}i&2&&g("showHint",!1)("onlineOnlyText",!0)("showRetry",!0)}function si(i,u){if(i&1&&T(0,li,2,3,"div",25)(1,ci,1,3,"app-offline-info",28),i&2){let e=s(4);A(e.entryMailContent?0:1)}}function di(i,u){if(i&1&&(T(0,ri,4,3),c(1,"async"),Be(2,si,2,1)),i&2){let e=s(3);A(_(1,1,e.loading$)?0:2)}}function pi(i,u){if(i&1){let e=H();r(0,"div",11)(1,"div",13)(2,"div",14),C("click",function(){j(e);let n=s(2);return E(n.collapsedRecipients=!n.collapsedRecipients)}),r(3,"div",15),l(4),c(5,"translate"),a(),Z(6,oi,5,2,"div",16),a(),r(7,"div",17)(8,"div",18)(9,"div",15),l(10),c(11,"translate"),a(),r(12,"span",19)(13,"span",20),l(14),a(),r(15,"span",21),l(16),a()()(),r(17,"div",18)(18,"div",15),l(19),c(20,"translate"),a(),r(21,"span",19)(22,"span",20),l(23),a(),r(24,"span",21),l(25),a()()()(),ee(26),r(27,"div",17)(28,"div",22),l(29),c(30,"translate"),a(),r(31,"span",23),l(32),a()(),r(33,"div",24),T(34,ai,2,3,"div",25)(35,di,3,3),a(),te(),a()()}if(i&2){let e=s().$implicit,t=s();o(2),g("ngClass",ze(20,ii,t.collapsedRecipients)),o(2),w(" ",_(5,12,"sendProtocol.emailSettings.receipents"),": "),o(2),g("ngForOf",e==null?null:e.recipientDetails),o(4),w(" ",_(11,14,"sendProtocol.emailSettings.sender"),": "),o(4),f(e==null?null:e.senderName),o(2),f(t.senderEmailAddress),o(3),w(" ",_(20,16,"sendProtocol.emailSettings.replyTo"),": "),o(4),f(e==null?null:e.senderName),o(2),f(e==null?null:e.senderEmail),o(4),w(" ",_(30,18,"sendProtocol.emailSettings.subject"),": "),o(3),w(" ",e==null?null:e.subject," "),o(2),A(e&&e.body&&e.mailType!=="tasks"?34:e&&e.mailType==="tasks"?35:-1)}}function mi(i,u){i&1&&b(0,"fa-icon",42),i&2&&g("icon",y(1,we))}function _i(i,u){if(i&1&&(r(0,"span",43),l(1),c(2,"date"),c(3,"date"),a()),i&2){let e=s().$implicit;o(),f(e!=null&&e.seenAt?B(2,1,e.seenAt,"dd.MM.yyyy HH:mm"):e!=null&&e.seenAtPlan?B(3,4,e.seenAtPlan,"dd.MM.yyyy - HH:mm"):"")}}function fi(i,u){i&1&&b(0,"fa-icon",42),i&2&&g("icon",y(1,we))}function ui(i,u){if(i&1&&(r(0,"span",48),l(1),c(2,"date"),a()),i&2){let e=s(2).$implicit;o(),f(e!=null&&e.seenAtIndividual?B(2,1,e.seenAtIndividual,"dd.MM.yyyy HH:mm"):"")}}function vi(i,u){if(i&1&&(r(0,"div",40)(1,"span",41),l(2),c(3,"translate"),a(),T(4,fi,1,2,"fa-icon",42)(5,ui,3,4,"span",48),a()),i&2){let e=s().$implicit;o(2),w("",_(3,2,"project_room.email.individualSeen"),": "),o(2),A(e!=null&&e.seenAtIndividual?5:4)}}function gi(i,u){i&1&&b(0,"fa-icon",46),i&2&&g("icon",y(1,we))}function Pi(i,u){if(i&1&&(r(0,"span",47),l(1),c(2,"date"),c(3,"date"),a()),i&2){let e=s().$implicit;o(),f(e!=null&&e.seenAt?B(2,1,e.seenAt,"dd.MM.yyyy HH:mm"):e!=null&&e.seenAtPlan?B(3,4,e.seenAtPlan,"dd.MM.yyyy - HH:mm"):"")}}function hi(i,u){i&1&&b(0,"fa-icon",46),i&2&&g("icon",y(1,we))}function Ci(i,u){if(i&1&&(r(0,"span",47),l(1),c(2,"date"),a()),i&2){let e=s().$implicit;o(),f(e!=null&&e.seenAtIndividual?B(2,1,e.seenAtIndividual,"dd.MM.yyyy HH:mm"):"")}}function xi(i,u){if(i&1&&(r(0,"tr",36)(1,"td")(2,"span",31),l(3),a(),r(4,"span",37),l(5),a(),r(6,"span",38),l(7),a(),r(8,"span",39),l(9),a(),r(10,"div",40)(11,"span",41),l(12),c(13,"translate"),a(),T(14,mi,1,2,"fa-icon",42)(15,_i,4,7,"span",43),a(),T(16,vi,6,4,"div",40),a(),r(17,"td",31)(18,"span",44),l(19),a()(),r(20,"td",31),l(21),a(),r(22,"td",45),T(23,gi,1,2,"fa-icon",46)(24,Pi,4,7,"span",47),a(),r(25,"td",45),T(26,hi,1,2,"fa-icon",46)(27,Ci,3,4,"span",47),a()()),i&2){let e=u.$implicit,t=s(2).$implicit,n=s();o(3),f(e.companyName),o(2),f(e.companyName),o(2),f(e.personName),o(2),f(e.email),o(),k("ion-hide",n.skipped||t.mailType==="tasks"||t.mailType==="protocol-calendar-send"),o(2),w("",_(13,17,t!=null&&t.distributionId?"project_room.email.attachments":"project_room.email.protocolSeen"),": "),o(2),A(!(e!=null&&e.seenAt)&&!(e!=null&&e.seenAtPlan)?14:15),o(2),A(n.hasIndividual?16:-1),o(3),f(e.personName),o(2),w(" ",e.email," "),o(),k("ion-hide",n.skipped||t.mailType==="tasks"||t.mailType==="protocol-calendar-send"),o(),A(!(e!=null&&e.seenAt)&&!(e!=null&&e.seenAtPlan)?23:24),o(2),k("ion-hide",!n.hasIndividual),o(),A(e!=null&&e.seenAtIndiv
1idual?27:26)}}function yi(i,u){if(i&1){let e=H();r(0,"div",12)(1,"table")(2,"thead")(3,"tr")(4,"th",30),C("click",function(){j(e);let n=s(2);return E(n.changeSortOrder("companyName"))}),r(5,"span",31),l(6),c(7,"translate"),a(),r(8,"span",32),l(9),c(10,"translate"),a(),b(11,"fa-icon",33),a(),r(12,"th",34),C("click",function(){j(e);let n=s(2);return E(n.changeSortOrder("sortingName"))}),l(13),c(14,"translate"),b(15,"fa-icon",33),a(),r(16,"th",34),C("click",function(){j(e);let n=s(2);return E(n.changeSortOrder("email"))}),l(17),c(18,"translate"),b(19,"fa-icon",33),a(),r(20,"th",35),C("click",function(){j(e);let n=s().$implicit,m=s();return E(m.changeSortOrder(n!=null&&n.distributionId?"seenAtPlan":"seenAt"))}),l(21),c(22,"translate"),b(23,"fa-icon",33),a(),r(24,"th",35),C("click",function(){j(e);let n=s(2);return E(n.changeSortOrder("seenAtIndividual"))}),l(25),c(26,"translate"),b(27,"fa-icon",33),a()()(),r(28,"tbody"),Ve(29,xi,28,19,"tr",36,ni),a()()()}if(i&2){let e=s().$implicit,t=s();o(6),f(_(7,25,"Company")),o(3),f(_(10,27,"project_room.email.recipient")),o(2),k("ion-hide",t.sortProp!=="companyName"),g("icon",t.sortMode==="asc"?y(37,oe):y(38,ae)),o(2),w(" ",_(14,29,"project_room.email.recipient")," "),o(2),k("ion-hide",t.sortProp!=="sortingName"),g("icon",t.sortMode==="asc"?y(39,oe):y(40,ae)),o(2),w(" ",_(18,31,"project_room.email.email")," "),o(2),k("ion-hide",t.sortProp!=="email"),g("icon",t.sortMode==="asc"?y(41,oe):y(42,ae)),o(),k("ion-hide",t.skipped||e.mailType==="tasks"||e.mailType==="protocol-calendar-send"),o(),w(" ",_(22,33,e!=null&&e.distributionId?"project_room.email.attachments":"project_room.email.protocolSeen")," "),o(2),k("ion-hide",t.sortProp!=="seenAt"&&t.sortProp!=="seenAtPlan"),g("icon",t.sortMode==="asc"?y(43,oe):y(44,ae)),o(),k("ion-hide",(e==null?null:e.distributionId)||!t.hasIndividual),o(),w(" ",_(26,35,"project_room.email.individualSeen")," "),o(2),k("ion-hide",t.sortProp!=="seenAtIndividual"),g("icon",t.sortMode==="asc"?y(45,oe):y(46,ae)),o(2),Ne(t.pdfRecipients)}}function wi(i,u){if(i&1){let e=H();ee(0),r(1,"div",1)(2,"ion-segment",2),C("ngModelChange",function(n){j(e);let m=s();return E(m.trackRecipientList(n))}),$e("ngModelChange",function(n){j(e);let m=s();return Le(m.sentEmailService.emailPageMode,n)||(m.sentEmailService.emailPageMode=n),E(n)}),r(3,"ion-segment-button",3)(4,"ion-label"),l(5),c(6,"translate"),a()(),r(7,"ion-segment-button",4)(8,"ion-label"),l(9),c(10,"translate"),a()()(),r(11,"div",5)(12,"span",6),l(13),c(14,"translate"),c(15,"date"),a(),r(16,"ion-button",7),C("click",function(n){let m=j(e).$implicit,h=s();return E(h.openActions(m,n))}),b(17,"fa-icon",8),a()()(),r(18,"span",9),l(19),c(20,"translate"),c(21,"date"),a(),r(22,"ion-content",10),T(23,pi,36,22,"div",11)(24,yi,31,47,"div",12),a(),te()}if(i&2){let e=u.$implicit,t=s();o(2),He("ngModel",t.sentEmailService.emailPageMode),o(3),f(_(6,11,"project_room.pdf_plan_holders.history.segmentEmail")),o(4),f(_(10,13,"project_room.email.recipientList")),o(4),Me("",_(14,15,"project_room.email.sent"),": ",B(15,17,e==null?null:e.createdAt,"dd.MM.yyyy HH:mm")),o(3),k("ion-hide",(e==null?null:e.mailType)==="protocol-calendar-send"),o(),g("icon",y(25,ti)),o(2),Me("",_(20,20,"project_room.email.sent"),": ",B(21,22,e==null?null:e.createdAt,"dd.MM.yyyy HH:mm")),o(4),A(t.sentEmailService.emailPageMode==="EMAIL"?23:24)}}var Ht=(()=>{class i{constructor(e,t,n,m,h,v,R,O,V,D,M,d,S,I,N,Ie,be,$t,zt,Gt){this.sentEmailService=e,this.modalController=t,this.profileDataService=n,this.companyDataService=m,this.addressDataService=h,this.pdfPlanVersionDistributionAccessDataService=v,this.pdfPlanVersionDataService=R,this.router=O,this.navController=V,this.projectDataService=D,this.popoverService=M,this.httpClient=d,this.toastService=S,this.alertService=I,this.participantDataService=N,this.pdfPreviewDataService=Ie,this.posthogService=be,this.syncService=$t,this.projectRoomEmailsPageService=zt,this.destroyRef=Gt,this.collapsedRecipients=!0,this.senderEmailAddress=F.senderEmailAddress,this.loading$=this.sentEmailService.loadingContent$,this.skipped=!1,this.hasIndividual=!1,this.sortProp="companyName",this.sortMode="asc"}ngOnInit(){let{mail:e}=this.router.getCurrentNavigation()?.extras.state??{};e||this.navController.navigateRoot("/project-room/email"),this.sentMail$=le(e),this.entryMailContent=null,this.projectRoomEmailsPageService.mailsState$.pipe(wt(this.destroyRef),Re(t=>t&&!t.loading)).subscribe(t=>{e&&!t.mails.some(n=>n.id===e.id)&&this.navController.navigateRoot("/project-room/email")}),this.sentMailSubscription=this.sentMail$.subscribe(t=>x(this,null,function*(){if(t&&t.body){let n=t.body.match(/<span[^>]*data-bm-signature-size="([^"]*)"[^>]*><\/span>/);if(n){let m=n[1];this.attachmentUserEmailSignatureUrl&&URL.revokeObjectURL(this.attachmentUserEmailSignatureUrl);let h=yield this.sentEmailService.loadUserSignatureAttachment(t.createdById);h&&this.sentMailSubscription&&(this.attachmentUserEmailSignatureUrl=URL.createObjectURL(h),t.body=t.body.replace(/<span[^>]*data-bm-signature-size="[^"]*"[^>]*><\/span>/,`<ion-img class="logo-size logo-size--${m}" src="${this.attachmentUserEmailSignatureUrl}"></ion-img>`))}}t&&t.mailType==="tasks"&&(this.entryMailContent=yield this.sentEmailService.loadEntryMailContent(t.id,t.receiverProfileIdsAggregated[0])),t&&(this.pdfRecipients=yield this.createPdfRecipients(t))})),this.projectSubscription=this.projectDataService.currentProjectObservable.subscribe(t=>{this.previousProjectId&&this.previousProjectId!==t.id&&this.navController.navigateRoot("/project-room/email"),this.previousProjectId=t.id})}onEmailContentClick(e,t){return x(this,null,function*(){let n=e.target;n.tagName==="ION-BUTTON"&&n.hasAttribute("data-protocol-button")&&(e.preventDefault(),yield this.protocolButtonClicked(t)),n.tagName==="ION-BUTTON"&&n.hasAttribute("data-protocol-individual-button")&&(e.preventDefault(),yield this.individualButtonClicked(t)),n.tagName==="ION-BUTTON"&&n.hasAttribute("data-report-week-button")&&(e.preventDefault(),yield this.reportWeekButtonClicked(t)),n.tagName==="ION-BUTTON"&&n.hasAttribute("data-plans-button")&&(e.preventDefault(),yield this.plansButtonClicked(t))})}ngOnDestroy(){this.sentMailSubscription?.unsubscribe(),this.sentMailSubscription=void 0,this.projectSubscription?.unsubscribe(),this.projectSubscription=void 0,this.attachmentUserEmailSignatureUrl&&URL.revokeObjectURL(this.attachmentUserEmailSignatureUrl)}fetchEntryMailContent(){return x(this,null,function*(){let e=yield P(this.sentMail$);this.entryMailContent=yield this.sentEmailService.loadEntryMailContent(e.id,e.receiverProfileIdsAggregated[0])})}protocolButtonClicked(e){return x(this,null,function*(){yield this.sentEmailService.previewPdfPreview(e.pdfpreviewId)})}individualButtonClicked(e){return x(this,null,function*(){let t=yield this.createPdfRecipientsIndividual(e);yield(yield this.modalController.create({component:Nt,componentProps:{pdfRecipients:t}})).present()})}plansButtonClicked(e){return x(this,null,function*(){let n=this.pdfPlanVersionDistributionAccessDataService.getAllByPlanVersionDistId$(e.distributionId).pipe(De({bufferSize:1,refCount:!0})).pipe(ce(v=>re.default.uniq(v.map(R=>R.pdfPlanVersionId))),Oe(ut),se(v=>this.pdfPlanVersionDataService.findByVersionIds$(v))),m=yield P(n);yield(yield this.modalController.create({component:Ut,componentProps:{planVersions:m}})).present()})}reportWeekButtonClicked(e){return x(this,null,function*(){yield this.sentEmailService.previewReportGroupPreview(e.pdfpreviewId)})}createPdfRecipientsIndividual(e){return x(this,null,function*(){let t=e.receiverPreviewMapping.map(d=>d.receiverProfileId),n=yield P(this.profileDataService.getByIds(t)),m=n.map(d=>
1d.addressId).filter(Boolean),h=n.map(d=>d.companyId).filter(Boolean),[v,R]=yield Promise.all([P(this.addressDataService.getByIds(m)),P(this.companyDataService.getByIds(h))]),O=new Map(n.map(d=>[d.id,d])),V=new Map(v.map(d=>[d.id,d])),D=new Map(R.map(d=>[d.id,d])),M=e.receiverPreviewMapping.map(d=>{let S=O.get(d.receiverProfileId),I=S?V.get(S.addressId):null,N=S?D.get(S.companyId):null;return{id:S.id,personName:I?`${I.firstName||""} ${I.lastName||""}`.trim():"",companyName:N.name,pdfpreviewId:d.individualPdfpreviewId}});return re.default.orderBy(M,["companyName","personName"])})}openActions(e,t){return x(this,null,function*(){let{label:n,role:m,disabled:h}=yield this.getLabelAndRoleForDeactivate(e),v=yield this.popoverService.openActions(t,[{label:n,role:m,disabled:h}]);if(v!=="backdrop"){let R="project_room.email.deactivationAlertHeader."+v,O="project_room.email.deactivationAlertMessage."+v,V="project_room.email.deactivationConfirmLabel."+v;if(!(yield this.alertService.confirm({header:R,message:O,confirmButton:{color:"omg-primary",fill:"solid"},confirmLabel:V,cancelButton:{fill:"clear"},cancelLabel:"cancel"})))return;let M=(yield this.projectDataService.getMandatoryCurrentProject()).id,d=new ie().set("projectId",M),S;if(v==="protocol"){let I=Array.from(new Set(e?.receiverPreviewMapping?.map(be=>be.individualPdfpreviewId)))??[],Ie={previewIds:[e.pdfpreviewId].concat(I)};S=yield P(this.httpClient.post(F.serverUrl+"api/data/pdfPreviews/deactivateProtocol",Ie,{params:d}))}if(v==="plan"){let N={distributionId:e.distributionId};S=yield P(this.httpClient.post(F.serverUrl+"api/data/pdfPreviews/deactivatePlans",N,{params:d}))}if(v==="tasks"){let N={entryMailId:e.id};S=yield P(this.httpClient.post(F.serverUrl+"api/data/pdfPreviews/deactivateTasks",N,{params:d}))}if(v==="report"){let N={previewOrGroupId:e.pdfpreviewId};S=yield P(this.httpClient.post(F.serverUrl+"api/data/pdfPreviews/deactivateReport",N,{params:d}))}S?.success?(yield this.toastService.info("project_room.email.deactivationSuccess"),yield this.syncService.startSync(_t.CURRENT_PROJECT_AND_PROJECT_WITH_CHANGES)):yield this.toastService.error("project_room.email.deactivationError")}})}getLabelAndRoleForDeactivate(e){return x(this,null,function*(){switch(e.mailType){case"multiple-report-send":{let v=(yield this.projectDataService.getMandatoryCurrentProject()).id,R=new ie().set("projectId",v).set("reportGroupId",e.pdfpreviewId),O=yield P(this.httpClient.get(F.serverUrl+"api/data/mailHistory/reportGroup",{params:R})),V=yield P(this.pdfPreviewDataService.getByIds(O.pdfPreviewIds));return{label:V?.[0]?.deactivatedAt?"project_room.email.deactivatedReport":"project_room.email.deactivateReport",role:"report",disabled:!!V?.[0]?.deactivatedAt}}case"report-send":{let v=yield P(this.pdfPreviewDataService.getById(e.pdfpreviewId));return{label:v?.deactivatedAt?"project_room.email.deactivatedReport":"project_room.email.deactivateReport",role:"report",disabled:!!v?.deactivatedAt}}case"pdf-plan-distribute":{let v=(yield this.projectDataService.getMandatoryCurrentProject()).id,R=new ie().set("projectId",v).set("distributionId",e.distributionId),O=yield P(this.httpClient.get(F.serverUrl+"api/data/mailHistory/distribution",{params:R}));return{label:O?.deactivatedAt?"project_room.email.deactivatedPlan":"project_room.email.deactivatePlan",role:"plan",disabled:!!O?.deactivatedAt}}case"global-search":case"protocol-already-closed-send":case"protocol-close":case"protocol-filtered-send":case"protocol-send":let t=yield P(this.pdfPreviewDataService.getById(e.pdfpreviewId));return{label:t?.deactivatedAt?"project_room.email.deactivatedProtocol":"project_room.email.deactivateProtocol",role:"protocol",disabled:!!t?.deactivatedAt};case"tasks":let n=(yield this.projectDataService.getMandatoryCurrentProject()).id,m=new ie().set("projectId",n).set("mailId",e.id),h=yield P(this.httpClient.get(F.serverUrl+"api/data/mailHistory/entryMail",{params:m}));return{label:h?.deactivatedAt?"project_room.email.deactivatedTask":"project_room.email.deactivateTask",role:"tasks",disabled:!!h?.deactivatedAt}}})}createPdfRecipients(e){return x(this,null,function*(){let t=yield P(this.profileDataService.dataGroupedById),n=yield P(this.addressDataService.dataGroupedById),m=yield P(this.companyDataService.dataGroupedById),h=yield P(this.participantDataService.getAllByPdfPreviewId(e?.pdfpreviewId)),v=e?.receiverPreviewMapping?.length>0?yield P(this.participantDataService.getByPdfPreviewIds(e.receiverPreviewMapping.map(D=>D.individualPdfpreviewId))):null;this.hasIndividual=v?.length>0,this.skipped=(yield P(this.pdfPreviewDataService.getById(e?.pdfpreviewId)))?.skipped??!1;let R=e?.receiverProfileIdsAggregated?.length>0?e.receiverProfileIdsAggregated:[e.receiverProfileId],O=(yield P(this.pdfPlanVersionDistributionAccessDataService.getAllByPlanVersionDistId$(e?.distributionId)))??null,V=R.map(D=>{let M=t?.[D],d=M?n?.[M.addressId]:null,S=M?m?.[M.companyId]:null;return{id:M.id,personName:d?`${d.firstName||""} ${d.lastName||""}`.trim():"",sortingName:d?`${d.lastName||""} ${d.firstName||""}`.trim():"",email:d?d.email:"",companyName:S.name,seenAt:this.skipped?null:h.find(I=>
1I.profileId===M.id)?.seenAt??null,seenAtIndividual:v?.find(I=>I.profileId===M.id)?.seenAt??null,seenAtPlan:O?.find(I=>I.profileId===M.id)?.seenAt??null}});return re.default.orderBy(V,[D=>D.companyName.toLowerCase(),D=>D.sortingName.toLowerCase()])})}sortRecipients(e){return this.sortProp?re.default.orderBy(e,[t=>{let n=t[this.sortProp];return typeof n=="string"?n.toLowerCase():n},t=>{let n=t.sortingName;return typeof n=="string"?n.toLowerCase():n}],[this.sortMode,this.sortMode]):e}changeSortOrder(e){this.sortProp===e?(this.sortProp=e,this.sortMode=this.sortMode==="asc"?"desc":"asc"):(this.sortProp=e,this.sortMode="asc"),this.pdfRecipients=this.sortRecipients(this.pdfRecipients)}trackRecipientList(e){e==="RECIPIENT_LIST"&&this.posthogService.captureEvent("[ProjectRoom][SentMail] Clicked on Recipient List",{})}static{this.\u0275fac=function(t){return new(t||i)(p(Y),p(ue),p(ve),p(vt),p(ge),p(yt),p(Pe),p(Ze),p(et),p(Pt),p(Et),p(Je),p(ht),p(mt),p(Ct),p(xt),p(gt),p(Mt),p(Tt),p(Ae))}}static{this.\u0275cmp=U({type:i,selectors:[["app-project-room-email"]],standalone:!1,decls:1,vars:1,consts:[[4,"rxLet"],[1,"subheader","d-flex","ion-align-items-center","ion-justify-content-start","header"],[1,"omg","omg-segment-compact",3,"ngModelChange","ngModel"],["value","EMAIL"],["value","RECIPIENT_LIST"],[1,"d-flex","ion-align-items-center","ion-justify-content-end","full-width","gap-2"],[1,"omg-t-medium-body","ion-hide-sm-down","pl-2"],[1,"omg-btn-secondary",3,"click"],[3,"icon"],[1,"subheader","header","omg-t-medium-body","ion-hide-sm-up"],[1,"email-page-background"],[1,"email-frame-padding"],[1,"table-container"],[1,"email-frame","email-background"],[1,"email-frame__row","cursor-pointer",3,"click","ngClass"],[1,"email-frame__row__label"],["class","email-frame__row__chip",4,"ngFor","ngForOf"],[1,"email-frame__row"],[1,"d-flex","full-width","ion-align-items-center"],[1,"email-frame__row__chip"],[1,"email-frame__row__chip--bold"],[1,"email-frame__row__text--small","pl-2"],[1,"email-frame__row__label--subject"],[1,"email-frame__row__text"],[1,"email-frame__body"],[3,"innerHTML"],[3,"click","innerHTML"],[1,"pl-2"],[1,"d-flex","ion-justify-content-center","ion-align-items-center","h-100",3,"showHint","onlineOnlyText","showRetry"],[1,"d-flex","ion-justify-content-center","ion-align-items-center","h-100",3,"retry","showHint","onlineOnlyText","showRetry"],[1,"omg-t-medium-body-bold","grey-text","cursor-pointer",3,"click"],[1,"ion-hide-xxl-down"],[1,"ion-hide-xxl-up"],[1,"pl-1",3,"icon"],[1,"omg-t-medium-body-bold","grey-text","cursor-pointer","ion-hide-xxl-down",3,"click"],[1,"omg-t-medium-body-bold","grey-text","cursor-pointer","seenAt","ion-hide-sm-down",3,"click"],[1,"alternate-colors"],[1,"ion-hide-xxl-up","block","omg-t-medium-body-bold","one-line-ellipsis"],[1,"block","one-line-ellipsis","omg-t-medium-body"],[1,"ion-hide-xxl-up","block","one-line-ellipsis","omg-t-medium-body"],[1,"block","ion-hide-sm-up"],[1,"omg-t-medium-body"],["size","sm",1,"ion-hide-sm-up",3,"icon"],[1,"ion-hide-sm-up","omg-t-medium-body"],[1,"block","one-line-ellipsis"],[1,"ion-hide-sm-down"],[1,"d-flex",3,"icon"],[1,"omg-t-xs-body"],[1,"omg-t-medium-body","ion-hide-sm-up"]],template:function(t,n){t&1&&Z(0,wi,25,26,"ng-container",0),t&2&&g("rxLet",n.sentMail$)},dependencies:[We,me,Ke,Xe,L,$,ot,rt,lt,ct,tt,St,he,pt,Qe,_e,jt,G],styles:['.email-frame[_ngcontent-%COMP%]{overflow:hidden}.email-frame[_ngcontent-%COMP%] ion-input[_ngcontent-%COMP%]{--border-radius: 0}@media(min-width:0px){.email-frame[_ngcontent-%COMP%]{border:1px solid var(--ion-color-omg-border);border-radius:16px}}.email-frame__body[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:column;gap:32px}.email-frame__body[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--ion-color-omg-border)}.email-frame__gapped[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:8px}.email-frame__gapped--full-width[_ngcontent-%COMP%]{flex:1 0 100%}.email-frame__row[_ngcontent-%COMP%]{padding:16px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.email-frame__row--no-wrap[_ngcontent-%COMP%]{flex-wrap:nowrap;overflow:hidden}
1.email-frame__row--overflow-gradient[_ngcontent-%COMP%]{position:relative}.email-frame__row--overflow-gradient[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 0%,#FFFFFF);background-size:100px 100%;background-position:top right;background-repeat:no-repeat}.dark[_nghost-%COMP%] .email-frame__row--overflow-gradient[_ngcontent-%COMP%]:after, .dark [_nghost-%COMP%] .email-frame__row--overflow-gradient[_ngcontent-%COMP%]:after{background:linear-gradient(90deg,transparent 0%,var(--gradient-end-color))}.email-frame__row[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--ion-color-omg-border)}.email-frame__row__label[_ngcontent-%COMP%]{margin-right:8px;color:#6c7682;width:90px}.dark[_nghost-%COMP%] .email-frame__row__label[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .email-frame__row__label[_ngcontent-%COMP%]{color:#cfd6df}.email-frame__row__label--subject[_ngcontent-%COMP%]{margin-right:8px;color:#6c7682}.dark[_nghost-%COMP%] .email-frame__row__label--subject[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .email-frame__row__label--subject[_ngcontent-%COMP%]{color:#cfd6df}.email-frame__row__text[_ngcontent-%COMP%]{font-weight:700;font-size:14px;line-height:1.5}.email-frame__row__text--small[_ngcontent-%COMP%]{color:var(--ion-color-text-secondary);font-size:12px;line-height:1.5}.email-frame__row__chip[_ngcontent-%COMP%]{padding:4px 8px;color:var(--ion-color-neutral-badge-contrast);background-color:#f8f9fb;font-size:12px;line-height:1.5;white-space:nowrap;border:1px solid;border-radius:14.5px;border-color:#b0bac5}.dark[_nghost-%COMP%] .email-frame__row__chip[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .email-frame__row__chip[_ngcontent-%COMP%]{background-color:#2b333c}.dark[_nghost-%COMP%] .email-frame__row__chip[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .email-frame__row__chip[_ngcontent-%COMP%]{border-color:#6c7682}.email-frame__row__chip--bold[_ngcontent-%COMP%]{font-size:14px;line-height:1.5;font-weight:600;color:var(--ion-color-text-primary)}.email-frame-padding[_ngcontent-%COMP%]{padding:16px}.email-page-background[_ngcontent-%COMP%]{--background: var(--ion-color-omg-toolbar-bg)}.email-background[_ngcontent-%COMP%]{background:#fff}.dark[_nghost-%COMP%] .email-background[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .email-background[_ngcontent-%COMP%]{background:#2b333c}.header[_ngcontent-%COMP%]{padding:16px 16px 0}.table-container[_ngcontent-%COMP%]{margin:16px;border-radius:8px 2px 2px;border:1px solid var(--ion-color-omg-border)}table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;border-style:hidden;overflow:hidden;table-layout:fixed}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:8px;height:40px;text-align:left}td[_ngcontent-%COMP%]:first-child, th[_ngcontent-%COMP%]:first-child{padding-left:12px}tr.alternate-colors[_ngcontent-%COMP%]:nth-child(odd){background:#f8f9fb}.dark[_nghost-%COMP%] tr.alternate-colors[_ngcontent-%COMP%]:nth-child(odd), .dark [_nghost-%COMP%] tr.alternate-colors[_ngcontent-%COMP%]:nth-child(odd){background:#2b333c}.block[_ngcontent-%COMP%]{display:block}.seenAt[_ngcontent-%COMP%]{width:120px;max-width:120px}[_nghost-%COMP%]{--gradient-end-color: #2B333C} ion-img{display:inline-block} ion-img.logo-size{object-fit:contain;object-position:top left} ion-img.logo-size--SMALL, ion-img.logo-size--SMALL::part(image){max-width:260px;max-height:88px} ion-img.logo-size--MEDIUM, ion-img.logo-size--MEDIUM::part(image){max-width:550px;max-height:185px}']})}}return i})();var Ii=[{path:"",component:Ht}],Lt=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=pe({type:i})}static{this.\u0275inj=de({imports:[je.forChild(Ii),je]})}}return i})();var $o=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=pe({type:i})}static{this.\u0275inj=de({imports:[qe,Ye,z,Lt,Ce,W,he,Q]})}}return i})();export{$o as ProjectRoomEmailPageModule};
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.