1import{a4 as D,u as N,a8 as T,aA as U,e as C,s as V,o as s,c as i,m as o,k as a,b1 as F,bJ as A,aa as b,j as v,w as k,ae as d,a1 as u,aj as p,_ as L,ad as f,ab as $,ac as O,af as P,a as q,g as E,bK as J}from"./CnynpXua.js";const K={key:0,class:"pt-[60px] md:pt-[74px]"},G=["src"],H={class:"flex cursor-pointer items-center gap-2 transition-all duration-500 hover:font-bold"},Q=["src"],R=["onClick"],W={class:"flex h-full w-full cursor-default flex-col overflow-auto px-[30px] pb-5 md:px-[60px]"},X={key:1,class:"mt-5 flex w-full justify-center"},Y=D({__name:"subItem",props:{menuItem:{type:Object,required:!0},level:{type:Number,default:0}},emits:["closesubmenu"],async setup(l,{expose:j,emit:M}){let y,w;const h=l,S=M,z=N();[y,w]=T(()=>z.ensureMenu()),await y,w(),U("isFront",C(!0));const m=C(null),I={},x=q(()=>h.menuItem?.item?.content?.img?.length?E(h.menuItem.item.content.img[0]):null),{objectPositionStyle:_}=J(x);function r(n=!0){n&&S("closesubmenu",n),m.value=null}return V(m,(n,t)=>{t&&I?.[t]?.doCloseSubmenu(!1)}),j({doCloseSubmenu:r}),(n,t)=>{const g=L,B=Z;return s(),i($,null,[l.level>0&&o(x)?(s(),i("li",K,[a("img",{loading:"lazy",src:("getMediaUrl"in n?n.getMediaUrl:o(A))(o(x),384,384,"crop"),style:F(o(_)),class:"h-[288px] w-[250px] rounded-tr-[120px]"},null,12,G)])):b("",!0),a("li",{class:f(["font-cormorant sticky top-0 flex w-full items-start justify-between pb-[13px] text-[13px] uppercase tracking-[5.2px] md:pb-[30px]",l.level==0?"bg-base-100":"bg-white pt-[60px]"])},[v(g,{class:"sticky top-0",onClick:t[0]||(t[0]=p(e=>r(),["stop"])),link:l.menuItem.item?.content?.link},{default:k(()=>[d(u(n.$getDisplayText(l.menuItem.item)),1)]),_:1}
1,8,["link"])],2),(s(!0),i($,null,O(l.menuItem.children,(e,ee)=>(s(),i("li",{class:f(["text-[32px] last:pb-0 md:text-4xl",{"pb-2":l.level==0,"pb-5":l.level>0}])},[e.children.length?(s(),i("div",{key:1,onClick:c=>m.value=e.item.id,class:f(["flex cursor-pointer items-center justify-between transition-all duration-500 hover:font-bold",{"pl-2!":e.item.id==o(m)}])},[d(u(n.$getDisplayText(e.item))+" ",1),t[4]||(t[4]=a("span",{class:"i-mdi-chevron-right text-xl"},null,-1)),a("div",{class:f(["fixed top-0 z-50 h-dvh w-dvw bg-white font-normal transition-all duration-500 md:w-[515px] lg:-z-10",{"left-0 opacity-100 md:left-auto md:right-0 lg:left-[515px]":e.item.id==o(m),"pointer-events-none -right-full left-full opacity-95 md:left-auto lg:left-0":e.item.id!=o(m)}])},[a("span",{class:"i-mdi-close absolute right-[30px] top-[60px] z-10 cursor-pointer text-2xl md:top-[74px]",onClick:t[2]||(t[2]=p(c=>r(!1),["stop"]))}),a("ul",W,[v(B,{ref_for:!0,ref:c=>I[e.item.id]=c,menuItem:e,level:l.level+1,onClosesubmenu:r},null,8,["menuItem","level"])])],2)],10,R)):(s(),P(g,{key:0,onClick:t[1]||(t[1]=p(c=>r(),["stop"])),link:e.item?.content?.link},{default:k(()=>[a("div",H,[d(u(n.$getDisplayText(e.item))+" ",1),e.item?.content?.img?.length?(s(),i("img",{key:0,loading:"lazy",src:n.$getFirstMediaUrlById(e.item.content.img,100),class:"w-8 object-contain"},null,8,Q)):b("",!0)])]),_:2},1032,["link"]))],2))),256)),l.level>0?(s(),i("li",X,[v(g,{class:"btninverted w-full items-center text-xl leading-none",onClick:t[3]||(t[3]=p(e=>r(),["stop"])),link:l.menuItem.item?.content?.link},{default:k(()=>[d(u(n.$wt("Menu.DiscoverUnivers"))+" "+u(n.$getDisplayText(l.menuItem.item).toLowerCase()),1)]),_:1},8,["link"])])):b("",!0)],64)}}}),Z=Object.assign(Y,{__name:"MenuMainSubItem"});export{Z as default};
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.