1import{Od as S,Pd as H,Qd as E,Rd as N}from"./chunk-VNXDXN67.js";import{p as O,x as I}from"./chunk-U6SRFR6W.js";import{$b as f,Ab as T,Cb as h,Eb as g,Hb as y,Ib as P,Jb as a,Kb as r,Lb as s,Mb as l,Qa as v,Qb as z,Rb as p,Sb as C,Ua as o,aa as M,bc as d,cc as b,eb as w,fa as k,ga as U,lb as _}from"./chunk-BLF6W2AN.js";import"./chunk-6MDQTQU3.js";var D=(i,c)=>c.route;function j(i,c){if(i&1&&l(0,"uni-progressive-avatar",23),i&2){let n=C(2);a("user",n.headerAvatarProps.user)("alt",n.headerAvatarProps.alt)("initial",n.headerAvatarProps.initial)("size",n.headerAvatarProps.size)}}function V(i,c){if(i&1&&(r(0,"p",26),d(1),s()),i&2){let n=C(2);o(),b("@"+n.user.username)}}function R(i,c){if(i&1&&l(0,"lib-membership-badge",27),i&2){let n=C(2);a("variant",n.membershipVariant)("productImage",n.activeMemberships[0]==null||n.activeMemberships[0].product==null?null:n.activeMemberships[0].product.image)("productName",n.activeMemberships[0]==null||n.activeMemberships[0].product==null?null:n.activeMemberships[0].product.name)}}function L(i,c){if(i&1&&(r(0,"div",0)(1,"div",22),h(2,j,1,4,"uni-progressive-avatar",23),r(3,"div",24)(4,"p",25),d(5),s(),h(6,V,2,1,"p",26),h(7,R,1,3,"lib-membership-badge",27),s()(),l(8,"div",9),s()),i&2){let n=C();o(2),g(n.headerAvatarProps?2:-1),o(3),b(n.navbarUtils.getUserDisplayName(n.user)),o(),g(n.user!=null&&n.user.username?6:-1),o(),g(n.hasActiveMembership?7:-1)}}function A(i,c){i&1&&(r(0,"span",30),d(1,"\xB7"),s())}function F(i,c){if(i&1){let n=z();r(0,"a",28),p("click",function(e){let t=k(n).$implicit,m=C();return U(m.onFooterLinkClick(e,t.route))}),l(1,"ng-icon",29),r(2,"span"),d(3),s()(),h(4,A,2,0,"span",30)}if(i&2){let n=c.$implicit,u=c.$index,e=c.$count;T("aria-label",n.ariaLabel||n.label),o(),a("name",n.icon),o(2),b(n.label),o(),g(u!==e-1?4:-1)}}var X=(()=>{class i{user=null;isMobileView=!1;currentTheme="light";hasActiveMembership=!1;membershipVariant="default";activeMemberships=[];hoveredItem=null;hoveredTheme=null;dropdownClick=new _;themeChange=new _;logout=new _;footerLinkClick=new _;itemHover=new _;themeHover=new _;navbarUtils=M(N);FOOTER_LINKS=E;get headerAvatarProps(){return this.navbarUtils.getUserAvatarProps(this.user,40)}handleDropdownClick(n,u){this.dropdownClick.emit({event:n,route:u})}handleItemHover(n,u=!0){this.itemHover.emit({item:n,isEntering:u})}handleThemeHover(n,u=!0){this.themeHover.emit({theme:n,isEntering:u})}onThemeChange(n){this.themeChange.emit(n)}onLogout(){this.logout.emit()}onFooterLinkClick(n,u){this.footerLinkClick.emit({event:n,route:u})}static \u0275fac=function(u){return new(u||i)};static \u0275cmp=w({type:i,selectors:[["lib-user-menu-content"]],inputs:{user:"user",isMobileView:"isMobileView",currentTheme:"currentTheme",hasActiveMembership:"hasActiveMembership",membershipVariant:"membershipVariant",activeMemberships:"activeMemberships",hoveredItem:"hoveredItem",hoveredTheme:"hoveredTheme"},outputs:{dropdownClick:"dropdownClick",themeChange:"themeChange",logout:"logout",footerLinkClick:"footerLinkClick",itemHover:"itemHover",themeHover:"themeHover"},decls:56,vars:25,consts:[[1,"user-menu-section"],["aria-label","Go to my profile page",1,"dropdown-item",3,"click","mouseenter","mouseleave","href"],["size","18","aria-hidden","true",3,"name"],["aria-label","View my competitions and entries",1,"dropdown-item",3,"click","mouseenter","mouseleave","href"],["aria-label","View my design projects and portfolio",1,"dropdown-item",3,"click","mouseenter","mouseleave","href"],["aria-label","View my journal entries and posts",1,"dropdown-item",3,"click","mouseenter","mouseleave","href"],["aria-label","View my published articles and content",1,"dropdown-item",3,"click","mouseenter","mouseleave","href"],["aria-label","View my saved bookmarks and favorites",1,"dropdown-item",3,"click","mouseenter","mouseleave","href"],["href","/organizations/manage","aria-label","Manage my organizations and teams",1,"dropdown-item",3,"click","mouseenter","mouseleave"],[1,"dropdown-divider"],["href","/accounts/settings","aria-label","Open account settings and preferences",1,"dropdown-item",3,"click","mouseenter","mouseleave"],["href","/payment/transaction","aria-label","View my shopping cart and transactions",1,"dropdown-item",3,"click","mouseenter","mouseleave"],[1,"dropdown-section","theme-section"],[1,"theme-toggle"],[1,"theme-options"],["aria-label","Light theme","title","Light theme",1,"theme-option",3,"click","mouseenter","mouseleave"],["size","18",3,"name"],["aria-label","Dark theme","title","Dark theme",1,"theme-option",3,"click","mouseenter","mouseleave"],["aria-label","System theme","title","System theme",1,"theme-option",3,"click","mouseenter","mouseleave"],["role","button","aria-label","Sign out of my account",1,"dropdown-item","signout-item",3,"click","mouseenter","mouseleave"],["name","phosphorSignOut","size","18","aria-hidden","true"],[1,"dropdown-footer"],[1,"dropdown-header"],[3,"user","alt","initial","size"],[1,"user-info"],[1,"user-name"],[1,"user-username"],["size","sm",1,"desktop-membership-badge",3,"variant","productImage","productName"],[1,"footer-link",3,"click"],["size","12","aria-hidden","true",3,"name"],[1,"footer-separator"]],template:function(u,e){u&1&&(h(0,L,9,4,"div",0),r(1,"a",1),p("click",function(m){return e.handleDropdownClick(m,e.navbarUtils.getProfileRoute(e.user,"about"))})("mouseenter",function(){return e.handleItemHover("profile")})("mouseleave",function(){return e.handleItemHover("profile",!1)}),l(2,"ng-icon",2),r(3,"span"),d(4,"Profile"),s()(),r(5,"a",3),p("click",function(m){return e.handleDropdownClick(m,e.navbarUtils.getProfileRoute(e.user,"competitions"))})("mouseenter",function(){return e.handleItemHover("competitions")})("mouseleave",function(){return e.handleItemHover("competitions",!1)}),l(6,"ng-icon",2),r(7,"span"),d(8,"My Competitions"),s()(),r(9,"a",4),p("click",function(m){return e.handleDropdownClick(m,e.navbarUtils.getProfileRoute(e.user,"projects"))})("mouseenter",function(){return e.handleItemHover("projects")})("mouseleave",function(){return e.handleItemHover("projects",!1)}),l(10,"ng-icon",2),r(11,"span"),d(12,"My Projects"),s()(),r(13,"a",5),p("click",function(m){return e.handleDropdownClick(m,e.navbarUtils.getProfileRoute(e.user,"journals"))})("mouseenter",function(){return e.handleItemHover("journals")})("mouseleave",function(){return e.handleItemHover("journals",!1)}),l(14,"ng-icon",2),r(15,"span"),d(16,"My Journals"),s()(),r(17,"a",6),p("click",function(m){return e.handleDropdownClick(m,e.navbarUtils.getProfileRoute(e.user,"publications"))})("mouseenter",function(){return e.handleItemHover("publications")})("mouseleave",function(){return e.handleItemHover("publications",!1)}),l(18,"ng-icon",2),r(19,"span"),d(20,"My Publications"),s()(),r(21,"a",7),p("click",function(m){return e.handleDropdownClick(m,e.navbarUtils.getProfileRoute(e.user,"bookmarks"))})("mouseenter",function(){return e.handleItemHover("bookmarks")})("mouseleave",function(){return e.handleItemHover("bookmarks",!1)}),l(22,"ng-icon",2),r(23,"span"),d(24,"My Bookmarks"),s()(),r(25,"a",8),p("click",function(m){return e.handleDropdownClick(m,"/organizations/manage")})("mouseenter",function(){return e.handleItemHover("organizations")})("mouseleave",function(){return e.handleItemHover("organizations",!1)}),l(26,"ng-icon",2),r(27,"span"),d(28,"Manage My Organizations"),s()(),l(29,"div",9),r(30,"a",10),p("click",function(m){return e.handleDropdownClick(m,"/accounts/settings")})("mouseenter",function(){return e.handleItemHover("settings")})("mouseleave",function(){return e.handleItemHover("settings",!1)}),l(31,"ng-icon",2),r(32,"span"),d(33,"Settings"),s()(),r(34,"a",11),p("click",function(m){return e.handleDropdownClick(m,"/payment/transaction")})("mouseenter",function(){return e.handleItemHover("cart")})("mouseleave",function(){return e.handleItemHover("cart",!1)}),l(35,"ng-icon",2),r(36,"span"),d(37,"Cart"),s()(),l(38,"div",9),r(39,"div",12)(40,"div",13)(41,"div",14)(42,"button",15),p("click",function(){return e.onThemeChange("light")})("mouseenter",function(){return e.handleThemeHover("light")})("mouseleave",function(){return e.handleThemeHover("light",!1)}),l(43,"ng-icon",16),s(),r(44,"button",17),p("click",function(){return e.onThemeChange("dark")})("mouseenter",function(){return e.handleThemeHover("dark")})("mouseleave",function(){return e.handleThemeHover("dark",!1)}),l(45,"ng-icon",16),s(),r(46,"button",18),p("click",function(){return e.onThemeChange("auto")})("mouseenter",function(){return e.handleThemeHover("auto")})("mouseleave",function(){return e.handleThemeHover("auto",!1)}),l(47,"ng-icon",16),s()()()(),l(48,"div",9),r(49,"a",19),p("click",function(){return e.onLogout()})("mouseenter",function(){return e.handleItemHover("logout")})("mouseleave",function(){return e.handleItemHover("logout",!1)}),l(50,"ng-icon",20),r(51,"span"),d(52,"Sign Out"),s()(),r(53,"div",21),y(54,F,5,4,null,null,D),s()),u&2&&(g(e.isMobileView?-1:0),o(),a("href",e.navbarUtils.getProfileRoute(e.user,"about"),v),o(),a("name",e.navbarUtils.getIconName("phosphorUser",e.hoveredItem==="profile")),o(3),a("href",e.navbarUtils.getProfileRoute(e.user,"competitions"),v),o(),a("name",e.navbarUtils.getIconName("phosphorTrophy",e.hoveredItem==="competitions")),o(3),a("href",e.navbarUtils.getProfileRoute(e.user,"projects"),v),o(),a("name",e.navbarUtils.getIconName("phosphorBlueprint",e.hoveredItem==="projects")),o(3),a("href",e.navbarUtils.getProfileRoute(e.user,"journals"),v),o(),a("name",e.navbarUtils.getIconName("phosphorNewsp
1aper",e.hoveredItem==="journals")),o(3),a("href",e.navbarUtils.getProfileRoute(e.user,"publications"),v),o(),a("name",e.navbarUtils.getIconName("phosphorBookOpen",e.hoveredItem==="publications")),o(3),a("href",e.navbarUtils.getProfileRoute(e.user,"bookmarks"),v),o(),a("name",e.navbarUtils.getIconName("phosphorBookmarkSimple",e.hoveredItem==="bookmarks")),o(4),a("name",e.navbarUtils.getIconName("phosphorBuildings",e.hoveredItem==="organizations")),o(5),a("name",e.navbarUtils.getIconName("phosphorGear",e.hoveredItem==="settings")),o(4),a("name",e.navbarUtils.getIconName("phosphorShoppingCart",e.hoveredItem==="cart")),o(7),f("active",e.currentTheme==="light"),o(),a("name",e.navbarUtils.getIconName("phosphorSun",e.hoveredTheme==="light")),o(),f("active",e.currentTheme==="dark"),o(),a("name",e.navbarUtils.getIconName("phosphorMoon",e.hoveredTheme==="dark")),o(),f("active",e.currentTheme==="auto"),o(),a("name",e.navbarUtils.getIconName("phosphorDesktopTower",e.hoveredTheme==="auto")),o(7),P(e.FOOTER_LINKS))},dependencies:[O,I,S,H],styles:[".user-menu-section[_ngcontent-%COMP%] .desktop-membership-badge[_ngcontent-%COMP%]{margin-top:var(--size-1-5)}.dropdown-header[_ngcontent-%COMP%]{padding:var(--size-4);display:flex;align-items:flex-start;gap:var(--size-3)}.dropdown-header[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%]{flex:1;min-width:0}.dropdown-header[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{margin:0;font-size:var(--font-size-base);font-weight:var(--font-weight-semibold);color:var(--text-primary);line-height:var(--line-height-tight)}.dropdown-header[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%] .user-username[_ngcontent-%COMP%]{margin:var(--size-px) 0 var(--size-0-5) 0;font-size:var(--font-size-xs);color:var(--text-secondary);line-height:var(--line-height-tight)}.dropdown-divider[_ngcontent-%COMP%]{height:var(--border-width-thin);background:var(--border);margin:var(--size-2) 0;border:none}.dropdown-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--size-3);padding:var(--size-3) var(--size-4);margin:0 var(--size-2);color:var(--text-primary);text-decoration:none;font-size:var(--font-size-sm);font-weight:var(--font-weight-normal);border-radius:var(--radius-md);transition:background-color var(--duration-fast) var(--easing-out),color var(--duration-fast) var(--easing-out);cursor:pointer;background:transparent;border:none;width:calc(100% - var(--size-4));text-align:left}.dropdown-item[_ngcontent-%COMP%]:hover{background:var(--bg-hover);color:var(--text-primary);text-decoration:none}.dropdown-item[_ngcontent-%COMP%]:hover ng-icon[_ngcontent-%COMP%]{color:var(--primary-500)}.dropdown-item[_ngcontent-%COMP%]:focus-visible{outline:var(--focus-ring-width) solid var(--primary-200);outline-offset:var(--size-px);border-radius:var(--radius-sm)}.dropdown-item.signout-item[_ngcontent-%COMP%]{color:var(--error-500)}.dropdown-item.signout-item[_ngcontent-%COMP%] ng-icon[_ngcontent-%COMP%]{color:var(--error-500)}.dropdown-item[_ngcontent-%COMP%] ng-icon[_ngcontent-%COMP%]{color:var(--text-secondary);transition:color var(--duration-fast) var(--easing-out)}.dropdown-section[_ngcontent-%COMP%]{padding:var(--size-3) var(--size-2)}.dropdown-section.theme-section[_ngcontent-%COMP%]{padding:var(--size-2) var(--size-2)}.theme-toggle[_ngcontent-%COMP%]{margin:0 var(--size-2)}.theme-toggle[_ngcontent-%COMP%] .theme-options[_ngcontent-%COMP%]{display:flex;gap:var(--size-2);justify-content:center}.theme-toggle[_ngcontent-%COMP%] .theme-option[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:var(--size-9);height:var(--size-8);background:var(--bg-secondary);border:var(--border-width-thin) solid var(--border);border-radius:var(--radius-md);cursor:pointer;transition:background-color var(--duration-fast) var(--easing-out),border-color var(--duration-fast) var(--easing-out),color var(--duration-fast) var(--easing-out),transform var(--duration-fast) var(--easing-out);color:var(--text-secondary)}.theme-toggle[_ngcontent-%COMP%] .theme-option[_ngcontent-%COMP%]:hover{background:var(--bg-hover);border-color:var(--border-dark);color:var(--text-primary);transform:translateY(calc(var(--size-px) * -1))}.theme-toggle[_ngcontent-%COMP%] .theme-option[_ngcontent-%COMP%]:focus-visible{outline:var(--focus-ring-width) solid var(--primary-200);outline-offset:var(--size-px);border-radius:var(--radius-sm)}.theme-toggle[_ngcontent-%COMP%] .theme-option.active[_ngcontent-%COMP%]{background:var(--primary-500);border-color:var(--primary-500);color:var(--white)}.theme-toggle[_ngcontent-%COMP%] .theme-option.active[_ngcontent-%COMP%]:hover{background:var(--primary-600);border-color:var(--primary-600)}.dropdown-footer[_ngcontent-%COMP%]{padding:var(--size-3) var(--size-2);border-top:var(--border-width-thin) solid var(--border);display:flex;align-items:center;justify-content:center;gap:var(--size-2);margin-top:var(--size-2)}.dropdown-footer[_ngcontent-%COMP%] .footer-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--size-1);color:var(--text-tertiary);font-size:var(--font-size-xs);text-decoration:none;transition:color var(--duration-fast) var(--easing-out)}.dropdown-footer[_ngcontent-%COMP%] .footer-link[_ngcontent-%COMP%]:hover{color:var(--text-secondary);text-decoration:none}.dropdown-footer[_ngcontent-%COMP%] .footer-link[_ngcontent-%COMP%]:focus-visible{outline:var(--focus-ring-width) solid var(--primary-200);outline-offset:var(--size-px);border-radius:var(--radius-sm)}
1.dropdown-footer[_ngcontent-%COMP%] .footer-separator[_ngcontent-%COMP%]{color:var(--text-tertiary);font-size:var(--font-size-xs)}"],changeDetection:0})}return i})();export{X as UserMenuContentComponent};
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.