import{a as g}from"./chunk-NA4Q4EXK.js";import{a as B,b as O}from"./chunk-OKD7WDWC.js";import"./chunk-B47LJMRU.js";import{c as L,d as T,e as k,f as F,g as I,h as j}from"./chunk-S2V6IA2C.js";import"./chunk-QG2WC3H3.js";import{a as _}from"./chunk-URVBFPQY.js";import"./chunk-OP2OM2NB.js";import"./chunk-YFKO2YMD.js";import{a as P}from"./chunk-KMX5PVQZ.js";import{a as b}from"./chunk-D5M6Y5VI.js";import"./chunk-3CODJNWE.js";import{h as D,m as A,z as w}from"./chunk-HJB5ICMZ.js";import"./chunk-QU4JA34D.js";import"./chunk-TAYSHZWB.js";import"./chunk-GDIYNKGM.js";import{a as C}from"./chunk-L4FY67IO.js";import"./chunk-7WODUV7D.js";import"./chunk-ZVZZ3QVR.js";import"./chunk-EQ67X7AF.js";import"./chunk-KHAMQZND.js";import"./chunk-D3YCQTGW.js";import"./chunk-OBT56KUD.js";import"./chunk-NMCXU7N6.js";import{Ba as m,Bc as r,F as x,Fc as h,Gc as E,Hc as y,Jc as d,P as p,Rb as f,bc as i,cc as o,ha as S,mc as v,sb as s,tb as M,va as c}from"./chunk-IYD54RT7.js";import"./chunk-RVFOIZLJ.js";var U=(()=>{let e=class e{constructor(a){this.data=a,this.preferencesService=c(g),this.preferences=this.preferencesService.artifactExplorerPreferences}};e.\u0275fac=function(t){return new(t||e)(M(L))},e.\u0275cmp=m({type:e,selectors:[["osee-artifact-explorer-settings-dialog"]],standalone:!0,features:[d],decls:16,vars:4,consts:[["mat-dialog-title",""],[1,"tw-flex","tw-flex-col"],["aria-label","Side Panel Location",1,"tw-flex",3,"ngModelChange","ngModel"],[1,"tw-flex-grow",3,"value"],["align","end"],["mat-button","","mat-dialog-close","","data-cy","cancel-btn"],["mat-raised-button","","color","primary","data-cy","submit-btn",3,"mat-dialog-close"]],template:function(t,l){t&1&&(i(0,"h1",0),r(1,"Artifact Explorer Settings"),o(),i(2,"mat-dialog-content")(3,"div",1)(4,"span"),r(5,"Side Panel Location"),o(),i(6,"mat-button-toggle-group",2),y("ngModelChange",function(u){return E(l.data.artifactExplorerPanelLocation,u)||(l.data.artifactExplorerPanelLocation=u),u}),i(7,"mat-button-toggle",3),r(8,"Left"),o(),i(9,"mat-button-toggle",3),r(10,"Right"),o()()()(),i(11,"mat-dialog-actions",4)(12,"button",5),r(13," Cancel "),o(),i(14,"button",6),r(15," Ok "),o()()),t&2&&(s(6),h("ngModel",l.data.artifactExplorerPanelLocation),s(),f("value",!0),s(2),f("value",!1),s(5),f("mat-dialog-close",l.data))},dependencies:[F,I,j,k,C,B,O,w,D,A],encapsulation:2});let n=e;return n})();var N=(()=>{let e=class e{constructor(){this.dialog=c(T),this.preferencesService=c(g),this.prefs=this.preferencesService.artifactExplorerPreferences.pipe(b())}openSettingsDialog(){this.prefs.pipe(p(1),S(a=>this.dialog.open(U,{data:structuredClone(a)}).afterClosed().pipe(p(1),x(t=>t!==void 0&&t!==""),S(t=>this.preferencesService.createOrUpdateArtifactExplorerPrefs(t).pipe(p(1)))))).subscribe()}};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=m({type:e,selectors:[["osee-artifact-explorer-user-menu"]],standalone:!0,features:[d],decls:5,vars:0,consts:[["mat-menu-item","","data-cy","artifact-explorer-settings",3,"click"]],template:function(t,l){t&1&&(i(0,"button",0),v("click",function(){return l.openSettingsDialog()}),i(1,"mat-icon"),r(2,"settings"),o(),i(3,"span"),r(4,"Settings"),o()())},dependencies:[P,_],encapsulation:2});let n=e;return n})(),le=N;export{le as default};
