import{a as M,b as y}from"./chunk-J5NBRWZL.js";import{a as I}from"./chunk-VNUV3WOR.js";import"./chunk-5YZW47FK.js";import{i as b}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 S}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 h}from"./chunk-URVBFPQY.js";import"./chunk-OP2OM2NB.js";import"./chunk-YFKO2YMD.js";import{a as g}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 f,Bc as l,Jc as v,P as c,bc as m,cc as p,ha as a,mc as u,tb as n,v as d}from"./chunk-IYD54RT7.js";import"./chunk-RVFOIZLJ.js";var w=(()=>{let t=class t{constructor(i,e,r,o){this.typesService=i,this.uiService=e,this.dialog=r,this.preferencesService=o}openSettingsDialog(){d([this.typesService.inEditMode,this.preferencesService.globalPrefs,this.uiService.BranchId]).pipe(c(1),a(([i,e,r])=>this.dialog.open(I,{data:{branchId:r,allHeaders2:[],allowedHeaders2:[],allHeaders1:[],allowedHeaders1:[],editable:i,headers1Label:"",headers2Label:"",headersTableActive:!1,wordWrap:e.wordWrap}}).afterClosed().pipe(c(1),a(o=>this.typesService.updatePreferences(o).pipe(a(x=>this.preferencesService.createOrUpdateGlobalUserPrefs(o))))))).subscribe()}};t.\u0275fac=function(e){return new(e||t)(n(y),n(M),n(S),n(b))},t.\u0275cmp=f({type:t,selectors:[["osee-messaging-usermenu"]],standalone:!0,features:[v],decls:4,vars:0,consts:[["mat-menu-item","","data-cy","mim-settings",3,"click"]],template:function(e,r){e&1&&(m(0,"button",0),u("click",function(){return r.openSettingsDialog()}),m(1,"mat-icon"),l(2,"settings"),p(),l(3,`Settings
`),p())},dependencies:[g,h],encapsulation:2});let s=t;return s})(),C=w;export{C as default};
