1import{c as P}from"./chunk-TZHXN2HA.js";import"./chunk-QSVX63Z7.js";import{$ as v,_ as q}from"./chunk-YNKQPWSP.js";import"./chunk-6R4CBI6E.js";import"./chunk-ZEH2WMTB.js";import{W as j}from"./chunk-3H2GI3MM.js";import{Cc as x,Dd as O,Jb as A,Jd as w,Kc as _,Ld as E,Mc as c,Nd as W,Uc as S,Vc as F,Yc as f,ic as L,jc as I,kd as C,lc as M,ld as b,mc as N,md as V,oc as T,pc as D,qb as r,qc as o,rc as s,sc as p,tc as u,va as m,wa as g,xa as h,ya as y}from"./chunk-N4XFLIUN.js";import"./chunk-DIH54OSL.js";var R=["ukr-main-nav-item",""],U=(t,d)=>({"translate-x-1 rotate-90":t,"group-hover/button:translate-x-1 group-hover/button:rotate-90":d}),Q=()=>({exact:!0}),B=t=>({"group-hover/button:translate-x-1":t}),G=t=>({"group-hover/button:translate-x-2":t});function H(t,d){if(t&1){let e=x();s(0,"li")(1,"a",8,0),_("isActiveChange",function(i){m(e);let l=c(2);return g(l.setActive(i))}),u(3,"span",3),p()()}if(t&2){let e=d.$implicit,n=c(2);r(),f("lg:sr-only",e==null?null:e.hideElementOnDesktop),o("routerLink",e==null?null:e.relativeUrl)("target",e!=null&&e.newWindow?"_blank":"_self")("rel",e!=null&&e.newWindow?"noopener noreferrer":"")("routerLinkActiveOptions",C(8,Q))("tabindex",n.showChildren()?0:-1),r(2),o("innerText",e==null?null:e.title)}}function Z(t,d){if(t&1){let e=x();s(0,"button",2),_("click",function(){m(e);let i=c();return g(i.toggleActive())}),u(1,"span",3),h(),s(2,"svg",4),u(3,"path",5),p()(),y(),s(4,"div",6)(5,"ul",7),T(6,H,4,9,"li",null,N),p()()}if(t&2){let e,n,i=c();L("aria-checked",i.showChildren()),r(),o("innerText",(e=i.data())==null?null:e.title),r(),o("ngClass",V(4,U,i.showChildren(),!i.showChildren())),r(2),o("@openClose",i.showChildren()),r(2),D((n=i.data())==null?null:n.children)}}function $(t,d){if(t&1&&(s(0,"a",9,0),u(2,"span",10),h(),s(3,"svg",4),u(4,"path",5),p()()),t&2){let e,n,i,l,k,a=c();f("lg:sr-only",(e=a.data())==null?null:e.hideElementOnDesktop),o("routerLink",(n=a.data())==null?null:n.relativeUrl)("target",(i=a.data())!=null&&i.newWindow?"_blank":"_self")("rel",(l=a.data())!=null&&l.newWindow?"noopener noreferrer":"")("routerLinkActiveOptions",C(9,Q)),r(2),o("ngClass",b(10,B,!a.showChildren()))("innerText",(k=a.data())==null?null:k.title),r(),o("ngClass",b(12,G,!a.showChildren()))}}var te=(()=>{class t{constructor(){this.index=w.required(),this.data=w.required(),this.activeIndex=W(-1),this.showChildren=O(()=>this.activeIndex()===this.index()),this.routerLinkActives=E(v)}toggleActive(){console.log("toggleActive",this.index()),this.activeIndex.update(e=>e===this.index()?-1:this.index())}setActive(e){e&&this.activeIndex.set(this.index())}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["li","ukr-main-nav-item",""]],viewQuery:function(n,i){n&1&&S(i.routerLinkActives,v,5),n&2&&F()},hostAttrs:[1,"block","w-full"],inputs:{index:[1,"index"],data:[1,"data"],activeIndex:[1,"activeIndex"]},outputs:{activeIndex:"activeIndexChange"},attrs:R,decls:2,vars:1,consts:[["rla","routerLinkActive"],["routerLinkActive","active underline decoration-1 underline-offset-2 lg:text-blue-dark lg:no-underline",1,"group/button","hover:text-gray-hover","focus-visible:text-gray-hover","heading-xs","flex","w-full","items-center","justify-start","gap-2","border-b-8","border-current","pb-4","pt-5",3,"lg:sr-only","routerLink","target","rel","routerLinkActiveOptions"],["role","switch","type","button",1,"group/button","hover:text-gray-hover","focus-visible:text-gray-hover","heading-xs","flex","w-full","items-center","justify-start","gap-2","py-3","lg:pb-4","lg:pt-5",3,"click"],[3,"innerText"],["width","7","height","19","viewBox","0 0 7 19","fill","none","xmlns","http://www.w3.org/2000/svg",1,"ease-smooth","transition","duration-300",3,"ngClass"],["d","M7 9.5L1.88761e-06 2.38419e-07L0 19L7 9.5Z","fill","currentColor"],[1,"overflow-clip","border-b-8","border-current"],[1,"pb-3","pl-3","max-lg:text-xl","lg:pb-4"],["routerLinkActive","active lg:text-blue-dark underline decoration-1 underline-offset-2",1,"hover:text-gray-hover","focus-visible:text-gray-hover","block","py-1","leading-tight",3,"isActiveChange","routerLink","target","rel","routerLinkActiveOptions","tabindex"],["routerLinkActive","active underline decoration-1 underline-offset-2 lg:text-blue-dark lg:no-underline",1,"group/button","hover:text-gray-hover","focus-visible:text-gray-hover","heading-xs","flex","w-full","items-center","justify-start","gap-2","border-b-8","border-current","pb-4","pt-5",3,"routerLink","target","rel","routerLinkActiveOptions"],[1,"ease-smooth","transition","duration-300",3,"ngClass","innerText"]],template:function(n,i){if
1(n&1&&I(0,Z,8,7)(1,$,5,14,"a",1),n&2){let l;M(!((l=i.data())==null||l.children==null)&&l.children.length?0:1)}},dependencies:[j,q,v],encapsulation:2,data:{animation:[P]}})}}return t})();export{te as MainNavItemComponent}; 2//# sourceMappingURL=chunk-2WYMDL4J.js.map
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.