import{a as D}from"./chunk-VNUV3WOR.js";import"./chunk-5YZW47FK.js";import{C as x,i as w}from"./chunk-ZSNLO3TX.js";import"./chunk-2JONWNYA.js";import"./chunk-FVG4OCAJ.js";import"./chunk-B47LJMRU.js";import"./chunk-EHV5JSNA.js";import"./chunk-5VEBEOBK.js";import{d as C}from"./chunk-S2V6IA2C.js";import"./chunk-QG2WC3H3.js";import"./chunk-6KEUYGBO.js";import"./chunk-ZBEJAM5I.js";import"./chunk-N2PQ6HLD.js";import"./chunk-RYOTKPRJ.js";import"./chunk-ORQ34GH7.js";import"./chunk-DZT3OJCU.js";import"./chunk-7SMWJ3GR.js";import"./chunk-P2NRYBYH.js";import"./chunk-XXO64O37.js";import"./chunk-M7AISLOK.js";import{a as I}from"./chunk-URVBFPQY.js";import"./chunk-OP2OM2NB.js";import"./chunk-YFKO2YMD.js";import{a as M}from"./chunk-KMX5PVQZ.js";import"./chunk-H7ZIYAN2.js";import"./chunk-D5M6Y5VI.js";import"./chunk-PFQHIQUX.js";import"./chunk-3CODJNWE.js";import"./chunk-HJB5ICMZ.js";import"./chunk-QU4JA34D.js";import"./chunk-TAYSHZWB.js";import"./chunk-GDIYNKGM.js";import"./chunk-L4FY67IO.js";import"./chunk-7WODUV7D.js";import"./chunk-CX23ZL4L.js";import"./chunk-EP2DJHVF.js";import"./chunk-ZVZZ3QVR.js";import"./chunk-EQ67X7AF.js";import"./chunk-LMRN7T6T.js";import"./chunk-KHAMQZND.js";import"./chunk-KANMOB5U.js";import"./chunk-D3YCQTGW.js";import"./chunk-OBT56KUD.js";import"./chunk-NMCXU7N6.js";import{Ba as v,Bc as l,Jc as b,P as m,bc as o,cc as d,da as h,ea as g,ha as a,ia as p,mc as S,tb as n,u as f,v as u}from"./chunk-IYD54RT7.js";import"./chunk-RVFOIZLJ.js";var H=(()=>{let t=class t{constructor(i,e,r){this.messageService=i,this.dialog=e,this.preferencesService=r,this.preferences=this.messageService.preferences.pipe(p(this.messageService.done)),this.inEditMode=this.preferences.pipe(f(s=>s.inEditMode),h(),g(1),p(this.messageService.done))}openSettingsDialog(){u([this.inEditMode,this.preferencesService.globalPrefs,this.messageService.BranchId]).pipe(m(1),a(([i,e,r])=>this.dialog.open(D,{data:{branchId:r,allHeaders2:[],allowedHeaders2:[],allHeaders1:[],allowedHeaders1:[],editable:i,headers1Label:"Structure Headers",headers2Label:"Element Headers",headersTableActive:!1,wordWrap:e.wordWrap}}).afterClosed().pipe(m(1),a(s=>this.messageService.updatePreferences(s).pipe(a(k=>this.preferencesService.createOrUpdateGlobalUserPrefs(s))))))).subscribe()}};t.\u0275fac=function(e){return new(e||t)(n(x),n(C),n(w))},t.\u0275cmp=v({type:t,selectors:[["osee-messaging-usermenu"]],standalone:!0,features:[b],decls:5,vars:0,consts:[["mat-menu-item","","data-cy","mim-settings",3,"click"]],template:function(e,r){e&1&&(o(0,"button",0),S("click",function(){return r.openSettingsDialog()}),o(1,"mat-icon"),l(2,"settings"),d(),o(3,"span"),l(4,"Settings"),d()())},dependencies:[I,M],encapsulation:2});let c=t;return c})(),E=H;export{E as default};
