1import{r as c,j as o,u as cn,b as ln,R as $,q as Re,Y as P,$ as un}from"./app-Dpdn6RkY.js";import{u as ie,c as R,a as X,b as Se,P as W,d as dn,e as fn}from"./index-H3WrPmOw.js";import{P as S,d as ye,R as rt}from"./index-Dr1PzIeU.js";import{a as I,b as ot,c as T,u as D,d as be,e as vn,P as at}from"./primary-button-Cc1Q7518.js";var it="Toggle",st=c.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:a,...i}=e,[l,s]=ie({prop:n,onChange:a,defaultProp:r??!1,caller:it});return o.jsx(S.button,{type:"button","aria-pressed":l,"data-state":l?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:R(e.onClick,()=>{e.disabled||s(!l)})})});st.displayName=it;var mn=st;const pn=ot("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function hn({className:e,variant:t,size:n,...r}){return o.jsx(mn,{"data-slot":"toggle",className:I(pn({variant:t,size:n,className:e})),...r})}/** 2 * @license lucide-react v0.475.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const gn=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]],xn=T("Building",gn);/** 7 * @license lucide-react v0.475.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const yn=[["path",{d:"M22 20v-9H2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2Z",key:"109fe4"}],["path",{d:"M18 11V4H6v7",key:"mon5oj"}],["path",{d:"M15 22v-4a3 3 0 0 0-3-3a3 3 0 0 0-3 3v4",key:"1k4jtn"}],["path",{d:"M22 11V9",key:"3zbp94"}],["path",{d:"M2 11V9",key:"1x5rnq"}],["path",{d:"M6 4V2",key:"1rsq15"}],["path",{d:"M18 4V2",key:"1jsdo1"}],["path",{d:"M10 4V2",key:"75d9ly"}],["path",{d:"M14 4V2",key:"8nj3z6"}]],bn=T("Castle",yn);/** 12 * @license lucide-react v0.475.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const wn=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Nn=T("ChevronDown",wn);/** 17 * @license lucide-react v0.475.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const Cn=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],ct=T("Facebook",Cn);/** 22 * @license lucide-react v0.475.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */const En=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],$e=T("FileText",En);/** 27 * @license lucide-react v0.475.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */const Mn=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],lt=T("Instagram",Mn);/** 32 * @license lucide-react v0.475.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */const kn=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],jn=T("Menu",kn);/** 37 * @license lucide-react v0.475.0 - ISC 38 * 39 * This source code is licensed under the ISC license. 40 * See the LICENSE file in the root directory of this source tree. 41 */const Rn=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],Sn=T("Moon",Rn);/** 42 * @license lucide-react v0.475.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const Pn=[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]],Tn=T("Newspaper",Pn);/** 47 * @license lucide-react v0.475.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */const _n=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ze=T("Send",_n);/** 52 * @license lucide-react v0.475.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const In=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Dn=T("Sun",In);/** 57 * @license lucide-react v0.475.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree.
vendor: 4,168 bytes, lines 61-76
61 */const On=[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]],ue=T("Trophy",On);/** 62 * @license lucide-react v0.475.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const An=[["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}],["path",{d:"M5 7c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v12H5V7Z",key:"1ezoue"}],["path",{d:"M22 19H2",key:"nuriw5"}]],Ln=T("Vote",An);/** 67 * @license lucide-react v0.475.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const Fn=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Vn=T("X",Fn);/** 72 * @license lucide-react v0.475.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const $n=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],ut=T("Youtube",$n);function zn({className:e="",...t}){const{appearance:n,updateAppearance:r}=cn(),a=()=>{r(n==="dark"?"light":"dark")};return o.jsx("div",{className:e,...t,children:o.jsxs(hn,{pressed:n==="dark",onPressedChange:a,size:"lg",className:"h-9 w-9 rounded-md",children:[n==="dark"?o.jsx(Sn,{className:"h-5 w-5"}):o.jsx(Dn,{className:"h-5 w-5"}),o.jsx("span",{className:"sr-only",children:"Toggle theme"})]})})}var Wn=c.createContext(void 0);function Kn(e){const t=c.useContext(Wn);return e||t||"ltr"}var Bn=ln[" useId ".trim().toString()]||(()=>{}),Hn=0;function q(e){const[t,n]=c.useState(Bn());return X(()=>{n(r=>r??String(Hn++))},[e]),t?`radix-${t}`:""}function dt(e){const t=e+"CollectionProvider",[n,r]=Se(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=d=>{const{scope:p,children:b}=d,E=$.useRef(null),x=$.useRef(new Map).current;return o.jsx(a,{scope:p,itemMap:x,collectionRef:E,children:b})};l.displayName=t;const s=e+"CollectionSlot",v=be(s),m=$.forwardRef((d,p)=>{const{scope:b,children:E}=d,x=i(s,b),h=D(p,x.collectionRef);return o.jsx(v,{ref:h,children:E})});m.displayName=s;const f=e+"CollectionItemSlot",g="data-radix-collection-item",y=be(f),N=$.forwardRef((d,p)=>{const{scope:b,children:E,...x}=d,h=$.useRef(null),w=D(p,h),M=i(f,b);return $.useEffect(()=>(M.itemMap.set(h,{ref:h,...x}),()=>void M.itemMap.delete(h))),o.jsx(y,{[g]:"",ref:w,children:E})});N.displayName=f;function C(d){const p=i(e+"CollectionConsumer",d);return $.useCallback(()=>{const E=p.collectionRef.current;if(!E)return[];const x=Array.from(E.querySelectorAll(`[${g}]`));return Array.from(p.itemMap.values()).sort((M,u)=>x.indexOf(M.ref.current)-x.indexOf(u.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:l,Slot:m,ItemSlot:N},C,r]}function O(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Un(e,t=globalThis==null?void 0:globalThis.document){const n=O(e);c.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Gn="DismissableLayer",we="dismissableLayer.update",Yn="dismissableLayer.pointerDownOutside",qn="dismissableLayer.focusOutside",We,ft=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pe=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...v}=e,m=c.useContext(ft),[f,g]=c.useState(null),y=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=c.useState({}),C=D(t,u=>
76g(u)),d=Array.from(m.layers),[p]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(p),E=f?d.indexOf(f):-1,x=m.layersWithOutsidePointerEventsDisabled.size>0,h=E>=b,w=Qn(u=>{const j=u.target,k=[...m.branches].some(_=>_.contains(j));!h||k||(a==null||a(u),l==null||l(u),u.defaultPrevented||s==null||s())},y),M=Jn(u=>{const j=u.target;[...m.branches].some(_=>_.contains(j))||(i==null||i(u),l==null||l(u),u.defaultPrevented||s==null||s())},y);return Un(u=>{E===m.layers.size-1&&(r==null||r(u),!u.defaultPrevented&&s&&(u.preventDefault(),s()))},y),c.useEffect(()=>{if(f)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(We=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(f)),m.layers.add(f),Ke(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=We)}},[f,y,n,m]),c.useEffect(()=>()=>{f&&(m.layers.delete(f),m.layersWithOutsidePointerEventsDisabled.delete(f),Ke())},[f,m]),c.useEffect(()=>{const u=()=>N({});return document.addEventListener(we,u),()=>document.removeEventListener(we,u)},[]),o.jsx(S.div,{...v,ref:C,style:{pointerEvents:x?h?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,M.onFocusCapture),onBlurCapture:R(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,w.onPointerDownCapture)})});Pe.displayName=Gn;var Xn="DismissableLayerBranch",Zn=c.forwardRef((e,t)=>{const n=c.useContext(ft),r=c.useRef(null),a=D(t,r);return c.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),o.jsx(S.div,{...e,ref:a})});Zn.displayName=Xn;function Qn(e,t=globalThis==null?void 0:globalThis.document){const n=O(e),r=c.useRef(!1),a=c.useRef(()=>{});return c.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let v=function(){vt(Yn,n,m,{discrete:!0})};const m={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=v,t.addEventListener("click",a.current,{once:!0})):v()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Jn(e,t=globalThis==null?void 0:globalThis.document){const n=O(e),r=c.useRef(!1);return c.useEffect(()=>{const a=i=>{i.target&&!r.current&&vt(qn,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ke(){const e=new CustomEvent(we);document.dispatchEvent(e)}function vt(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?ye(a,i):a.dispatchEvent(i)}var er=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),tr="VisuallyHidden",mt=c.forwardRef((e,t)=>o.jsx(S.span,{...e,ref:t,style:{...er,...e.style}}));mt.displayName=tr;var nr=mt,K="NavigationMenu",[Te,pt,rr]=dt(K),[Ne,or,ar]=dt(K),[_e,ca]=Se(K,[rr,ar]),[ir,A]=_e(K),[sr,cr]=_e(K),ht=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:a,defaultValue:i,delayDuration:l=200,skipDelayDuration:s=300,orientation:v="horizontal",dir:m,...f}=e,[g,y]=c.useState(null),N=D(t,k=>y(k)),C=Kn(m),d=c.useRef(0),p=c.useRef(0),b=c.useRef(0),[E,x]=c.useState(!0),[h,w]=ie({prop:r,onChange:k=>{const _=k!=="",le=s>0;_?(window.clearTimeout(b.current),le&&x(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>x(!0),s)),a==null||a(k)},defaultProp:i??"",caller:K}),M=c.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>w(""),150)},[w]),u=c.useCallback(k=>{window.clearTimeout(p.current),w(k)},[w]),j=c.useCallback(k=>{h===k?window.clearTimeout(p.current):d.current=window.setTimeout(()=>{window.clearTimeout(p.current),w(k)},l)},[h,w,l]);return c.useEffect(()=>()=>{window.clearTimeout(d.current),window.clearTimeout(p.current),window.clearTimeout(b.current)},[]),o.jsx(gt,{scope:n,isRootMenu:!0,value:h,dir:C,orientation:v,rootNavigationMenu:g,onTriggerEnter:k=>{window.clearTimeout(d.current),E?j(k):u(k)},onTriggerLeave:()=>{window.clearTimeout(d.current),M()},onContentEnter:()=>window.clearTimeout(p.current),onContentLeave:M,onItemSelect:k=>{w(_=>_===k?"":k)},onItemDismiss:()=>w(""),children:o.jsx(S.nav,{"aria-label":"Main","data-orientation":v,dir:C,...f,ref:N})})});ht.displayName=K;var Ce="NavigationMenuSub",lr=c.forwardRef((e,t)=>
vendor: 4,337 bytes, line 76
76{const{__scopeNavigationMenu:n,value:r,onValueChange:a,defaultValue:i,orientation:l="horizontal",...s}=e,v=A(Ce,n),[m,f]=ie({prop:r,onChange:a,defaultProp:i??"",caller:Ce});return o.jsx(gt,{scope:n,isRootMenu:!1,value:m,dir:v.dir,orientation:l,rootNavigationMenu:v.rootNavigationMenu,onTriggerEnter:g=>f(g),onItemSelect:g=>f(g),onItemDismiss:()=>f(""),children:o.jsx(S.div,{"data-orientation":l,...s,ref:t})})});lr.displayName=Ce;var gt=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:a,orientation:i,children:l,value:s,onItemSelect:v,onItemDismiss:m,onTriggerEnter:f,onTriggerLeave:g,onContentEnter:y,onContentLeave:N}=e,[C,d]=c.useState(null),[p,b]=c.useState(new Map),[E,x]=c.useState(null);return o.jsx(ir,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:dn(s),baseId:q(),dir:a,orientation:i,viewport:C,onViewportChange:d,indicatorTrack:E,onIndicatorTrackChange:x,onTriggerEnter:O(f),onTriggerLeave:O(g),onContentEnter:O(y),onContentLeave:O(N),onItemSelect:O(v),onItemDismiss:O(m),onViewportContentChange:c.useCallback((h,w)=>{b(M=>(M.set(h,w),new Map(M)))},[]),onViewportContentRemove:c.useCallback(h=>{b(w=>w.has(h)?(w.delete(h),new Map(w)):w)},[]),children:o.jsx(Te.Provider,{scope:t,children:o.jsx(sr,{scope:t,items:p,children:l})})})},xt="NavigationMenuList",yt=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,a=A(xt,n),i=o.jsx(S.ul,{"data-orientation":a.orientation,...r,ref:t});return o.jsx(S.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:o.jsx(Te.Slot,{scope:n,children:a.isRootMenu?o.jsx(Rt,{asChild:!0,children:i}):i})})});yt.displayName=xt;var bt="NavigationMenuItem",[ur,wt]=_e(bt),Nt=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...a}=e,i=q(),l=r||i||"LEGACY_REACT_AUTO_VALUE",s=c.useRef(null),v=c.useRef(null),m=c.useRef(null),f=c.useRef(()=>{}),g=c.useRef(!1),y=c.useCallback((C="start")=>{if(s.current){f.current();const d=Me(s.current);d.length&&Oe(C==="start"?d:d.reverse())}},[]),N=c.useCallback(()=>{if(s.current){const C=Me(s.current);C.length&&(f.current=xr(C))}},[]);return o.jsx(ur,{scope:n,value:l,triggerRef:v,contentRef:s,focusProxyRef:m,wasEscapeCloseRef:g,onEntryKeyDown:y,onFocusProxyEnter:y,onRootContentClose:N,onContentFocusOutside:N,children:o.jsx(S.li,{...a,ref:t})})});Nt.displayName=bt;var Ee="NavigationMenuTrigger",Ct=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...a}=e,i=A(Ee,e.__scopeNavigationMenu),l=wt(Ee,e.__scopeNavigationMenu),s=c.useRef(null),v=D(s,l.triggerRef,t),m=Pt(i.baseId,l.value),f=Tt(i.baseId,l.value),g=c.useRef(!1),y=c.useRef(!1),N=l.value===i.value;return o.jsxs(o.Fragment,{children:[o.jsx(Te.ItemSlot,{scope:n,value:l.value,children:o.jsx(St,{asChild:!0,children:o.jsx(S.button,{id:m,disabled:r,"data-disabled":r?"":void 0,"data-state":Ae(N),"aria-expanded":N,"aria-controls":f,...a,ref:v,onPointerEnter:R(e.onPointerEnter,()=>{y.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:R(e.onPointerMove,oe(()=>{r||y.current||l.wasEscapeCloseRef.current||g.current||(i.onTriggerEnter(l.value),g.current=!0)})),onPointerLeave:R(e.onPointerLeave,oe(()=>{r||(i.onTriggerLeave(),g.current=!1)})),onClick:R(e.onClick,()=>{i.onItemSelect(l.value),y.current=N}),onKeyDown:R(e.onKeyDown,C=>{const p={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];N&&C.key===p&&(l.onEntryKeyDown(),C.preventDefault())})})})}),N&&o.jsxs(o.Fragment,{children:[o.jsx(nr,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:C=>{const d=l.contentRef.current,p=C.relatedTarget,b=p===s.current,E=d==null?void 0:d.contains(p);(b||!E)&&l.onFocusProxyEnter(b?"start":"end")}}),i.viewport&&o.jsx("span",{"aria-owns":f})]})]})});Ct.displayName=Ee;var dr="NavigationMenuLink",Be="navigationMenu.linkSelect",Et=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:a,...i}=e;return o.jsx(St,{asChild:!0,children:o.jsx(S.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:R(e.onClick,l=>{const s=l.target,v=new CustomEvent(Be,{bubbles:!0,cancelable:!0});if(s.addEventListener(Be,m=>a==null?void 0:a(m),{once:!0}),ye(s,v),!v.defaultPrevented&&!l.metaKey){const m=new CustomEvent(te,{bubbles:!0,cancelable:!0});ye(s,m)}},{checkForDefaultPrevented:!1})})})});Et.displayName=dr;var Ie="NavigationMenuIndicator",fr=c.forwardRef((e,t)=>
76{const{forceMount:n,...r}=e,a=A(Ie,e.__scopeNavigationMenu),i=!!a.value;return a.indicatorTrack?rt.createPortal(o.jsx(W,{present:n||i,children:o.jsx(vr,{...r,ref:t})}),a.indicatorTrack):null});fr.displayName=Ie;var vr=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,a=A(Ie,n),i=pt(n),[l,s]=c.useState(null),[v,m]=c.useState(null),f=a.orientation==="horizontal",g=!!a.value;c.useEffect(()=>{var d;const C=(d=i().find(p=>p.value===a.value))==null?void 0:d.ref.current;C&&s(C)},[i,a.value]);const y=()=>{l&&m({size:f?l.offsetWidth:l.offsetHeight,offset:f?l.offsetLeft:l.offsetTop})};return ke(l,y),ke(a.indicatorTrack,y),v?o.jsx(S.div,{"aria-hidden":!0,"data-state":g?"visible":"hidden","data-orientation":a.orientation,...r,ref:t,style:{position:"absolute",...f?{left:0,width:v.size+"px",transform:`translateX(${v.offset}px)`}:{top:0,height:v.size+"px",transform:`translateY(${v.offset}px)`},...r.style}}):null}),Y="NavigationMenuContent",Mt=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=A(Y,e.__scopeNavigationMenu),i=wt(Y,e.__scopeNavigationMenu),l=D(i.contentRef,t),s=i.value===a.value,v={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return a.viewport?o.jsx(mr,{forceMount:n,...v,ref:l}):o.jsx(W,{present:n||s,children:o.jsx(kt,{"data-state":Ae(s),...v,ref:l,onPointerEnter:R(e.onPointerEnter,a.onContentEnter),onPointerLeave:R(e.onPointerLeave,oe(a.onContentLeave)),style:{pointerEvents:!s&&a.isRootMenu?"none":void 0,...v.style}})})});Mt.displayName=Y;var mr=c.forwardRef((e,t)=>{const n=A(Y,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:a}=n;return X(()=>{r(e.value,{ref:t,...e})},[e,t,r]),X(()=>()=>a(e.value),[e.value,a]),null}),te="navigationMenu.rootContentDismiss",kt=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:a,focusProxyRef:i,wasEscapeCloseRef:l,onRootContentClose:s,onContentFocusOutside:v,...m}=e,f=A(Y,n),g=c.useRef(null),y=D(g,t),N=Pt(f.baseId,r),C=Tt(f.baseId,r),d=pt(n),p=c.useRef(null),{onItemDismiss:b}=f;c.useEffect(()=>{const x=g.current;if(f.isRootMenu&&x){const h=()=>{var w;b(),s(),x.contains(document.activeElement)&&((w=a.current)==null||w.focus())};return x.addEventListener(te,h),()=>x.removeEventListener(te,h)}},[f.isRootMenu,e.value,a,b,s]);const E=c.useMemo(()=>{const h=d().map(_=>_.value);f.dir==="rtl"&&h.reverse();const w=h.indexOf(f.value),M=h.indexOf(f.previousValue),u=r===f.value,j=M===h.indexOf(r);if(!u&&!j)return p.current;const k=(()=>{if(w!==M){if(u&&M!==-1)return w>M?"from-end":"from-start";if(j&&w!==-1)return w>M?"to-start":"to-end"}return null})();return p.current=k,k},[f.previousValue,f.value,f.dir,d,r]);return o.jsx(Rt,{asChild:!0,children:o.jsx(Pe,{id:C,"aria-labelledby":N,"data-motion":E,"data-orientation":f.orientation,...m,ref:y,disableOutsidePointerEvents:!1,onDismiss:()=>{var h;const x=new Event(te,{bubbles:!0,cancelable:!0});(h=g.current)==null||h.dispatchEvent(x)},onFocusOutside:R(e.onFocusOutside,x=>{var w;v();const h=x.target;(w=f.rootNavigationMenu)!=null&&w.contains(h)&&x.preventDefault()}),onPointerDownOutside:R(e.onPointerDownOutside,x=>{var u;const h=x.target,w=d().some(j=>{var k;return(k=j.ref.current)==null?void 0:k.contains(h)}),M=f.isRootMenu&&((u=f.viewport)==null?void 0:u.contains(h));(w||M||!f.isRootMenu)&&x.preventDefault()}),onKeyDown:R(e.onKeyDown,x=>{var M;const h=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!h){const u=Me(x.currentTarget),j=document.activeElement,k=u.findIndex(sn=>sn===j),le=x.shiftKey?u.slice(0,k).reverse():u.slice(k+1,u.length);Oe(le)?x.preventDefault():(M=i.current)==null||M.focus()}}),onEscapeKeyDown:R(e.onEscapeKeyDown,x=>{l.current=!0})})})}),De="NavigationMenuViewport",jt=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!A(De,e.__scopeNavigationMenu).value;return o.jsx(W,{present:n||i,children:o.jsx(pr,{...r,ref:t})})});jt.displayName=De;var pr=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...a}=e,i=A(De,n),l=D(t,i.onViewportChange),s=cr(Y,e.__scopeNavigationMenu),[v,m]=c.useState(null),[f,g]=c.useState(null),y=v?(v==null?void 0:v.width)+"px":void 0,N=v?(v==null?void 0:v.height)+"px":void 0,C=!!i.value,d=C?i.value:i.previousValue;return ke(f,()=>{f&&m({width:f.offsetWidth,height:f.offsetHeight})}),o.jsx(S.div,{"data-state":Ae(C),"data-orientation":i.orientation,...a,ref:l,style:{pointerEvents:!C&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":y,"--radix-navigation-menu-viewport-height":N,...a.style},onPointerEnter:R(e.onPointerEnter,i.onContentEnter),onPointerLeave:R(e.onPointerLeave,oe(i.onContentLeave)),children:Array.from(s.items).map(([b,{ref:E,forceMount:x,...h}])=>{const w=d===b;return o.jsx(W,{present:x||w,children:o.jsx(kt,{...h,ref:vn(E,M=>{w&&M&&g(M)})})},b)})})}),hr="FocusGroup",Rt=c.forwardRef((e,t)=>
76{const{__scopeNavigationMenu:n,...r}=e,a=A(hr,n);return o.jsx(Ne.Provider,{scope:n,children:o.jsx(Ne.Slot,{scope:n,children:o.jsx(S.div,{dir:a.dir,...r,ref:t})})})}),He=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],gr="FocusGroupItem",St=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,a=or(n),i=A(gr,n);return o.jsx(Ne.ItemSlot,{scope:n,children:o.jsx(S.button,{...r,ref:t,onKeyDown:R(e.onKeyDown,l=>{if(["Home","End",...He].includes(l.key)){let v=a().map(g=>g.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(l.key)&&v.reverse(),He.includes(l.key)){const g=v.indexOf(l.currentTarget);v=v.slice(g+1)}setTimeout(()=>Oe(v)),l.preventDefault()}})})})});function Me(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Oe(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function xr(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function ke(e,t){const n=O(t);X(()=>{let r=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(r),a.unobserve(e)}}},[e,n])}function Ae(e){return e?"open":"closed"}function Pt(e,t){return`${e}-trigger-${t}`}function Tt(e,t){return`${e}-content-${t}`}function oe(e){return t=>t.pointerType==="mouse"?e(t):void 0}var yr=ht,br=yt,wr=Nt,Nr=Ct,Cr=Et,Er=Mt,Mr=jt;function kr({className:e,children:t,viewport:n=!0,...r}){return o.jsxs(yr,{"data-slot":"navigation-menu","data-viewport":n,className:I("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,n&&o.jsx(_r,{})]})}function jr({className:e,...t}){return o.jsx(br,{"data-slot":"navigation-menu-list",className:I("group flex flex-1 list-none items-center justify-center gap-1",e),...t})}function Rr({className:e,...t}){return o.jsx(wr,{"data-slot":"navigation-menu-item",className:I("relative",e),...t})}const Sr=ot("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-accent/50 data-[state=open]:bg-accent/50 data-[active=true]:text-accent-foreground ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1");function Pr({className:e,children:t,...n}){return o.jsxs(Nr,{"data-slot":"navigation-menu-trigger",className:I(Sr(),"group",e),...n,children:[t," ",o.jsx(Nn,{className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function Tr({className:e,...t}){return o.jsx(Er,{"data-slot":"navigation-menu-content",className:I("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",e),...t})}function _r({className:e,...t}){return o.jsx("div",{className:I("absolute top-full left-0 isolate z-50 flex justify-center"),children:o.jsx(Mr,{"data-slot":"navigation-menu-viewport",className:I("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",e),...t})})}function Ir({className:e,...t}){return o.jsx(Cr,{"data-slot":"navigation-menu-link",className:I("hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-[color,box-shadow] focu
76s-visible:ring-4 focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",e),...t})}var de="focusScope.autoFocusOnMount",fe="focusScope.autoFocusOnUnmount",Ue={bubbles:!1,cancelable:!0},Dr="FocusScope",_t=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...l}=e,[s,v]=c.useState(null),m=O(a),f=O(i),g=c.useRef(null),y=D(t,d=>v(d)),N=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let d=function(x){if(N.paused||!s)return;const h=x.target;s.contains(h)?g.current=h:V(g.current,{select:!0})},p=function(x){if(N.paused||!s)return;const h=x.relatedTarget;h!==null&&(s.contains(h)||V(g.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const w of x)w.removedNodes.length>0&&V(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",p);const E=new MutationObserver(b);return s&&E.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",p),E.disconnect()}}},[r,s,N.paused]),c.useEffect(()=>{if(s){Ye.add(N);const d=document.activeElement;if(!s.contains(d)){const b=new CustomEvent(de,Ue);s.addEventListener(de,m),s.dispatchEvent(b),b.defaultPrevented||(Or($r(It(s)),{select:!0}),document.activeElement===d&&V(s))}return()=>{s.removeEventListener(de,m),setTimeout(()=>{const b=new CustomEvent(fe,Ue);s.addEventListener(fe,f),s.dispatchEvent(b),b.defaultPrevented||V(d??document.body,{select:!0}),s.removeEventListener(fe,f),Ye.remove(N)},0)}}},[s,m,f,N]);const C=c.useCallback(d=>{if(!n&&!r||N.paused)return;const p=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(p&&b){const E=d.currentTarget,[x,h]=Ar(E);x&&h?!d.shiftKey&&b===h?(d.preventDefault(),n&&V(x,{select:!0})):d.shiftKey&&b===x&&(d.preventDefault(),n&&V(h,{select:!0})):b===E&&d.preventDefault()}},[n,r,N.paused]);return o.jsx(S.div,{tabIndex:-1,...l,ref:y,onKeyDown:C})});_t.displayName=Dr;function Or(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(V(r,{select:t}),document.activeElement!==n)return}function Ar(e){const t=It(e),n=Ge(t,e),r=Ge(t.reverse(),e);return[n,r]}function It(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ge(e,t){for(const n of e)if(!Lr(n,{upTo:t}))return n}function Lr(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Fr(e){return e instanceof HTMLInputElement&&"select"in e}function V(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Fr(e)&&t&&e.select()}}var Ye=Vr();function Vr(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=qe(e,t),e.unshift(t)},remove(t){var n;e=qe(e,t),(n=e[0])==null||n.resume()}}}function qe(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $r(e){return e.filter(t=>t.tagName!=="A")}var zr="Portal",Dt=c.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[a,i]=c.useState(!1);X(()=>i(!0),[]);const l=n||a&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return l?rt.createPortal(o.jsx(S.div,{...r,ref:t}),l):null});Dt.displayName=zr;var ve=0;function Wr(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Xe()),document.body.insertAdjacentElement("beforeend",e[1]??Xe()),ve++,()=>{ve===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ve--}},[])}function Xe(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var F=function(){return F=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},F.apply(this,arguments)};function Ot(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function Kr(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ne="right-scroll-bar-position",re="width-before-scroll-bar",Br="with-scroll-bars-hidden",Hr="--removed-body-scroll-bar-size";function me(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ur(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var Gr=typeof window<"u"?c.useLayoutEffect:c.useEffect,Ze=new WeakMap;function Yr(e,t){var n=Ur(null,function(r){return e.forEach(function(a){return me(a,r)})});return Gr(function(){var r=Ze.get(n);if(r){var a=new Set(r),i=new Set(e),l=n.current;a.forEach(function(s){i.has(s)||me(s,null)}
vendor: 4,144 bytes, lines 76-91
76),i.forEach(function(s){a.has(s)||me(s,l)})}Ze.set(n,e)},[e]),n}function qr(e){return e}function Xr(e,t){t===void 0&&(t=qr);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(s){return s!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var s=n;n=[],s.forEach(i),l=n}var v=function(){var f=l;l=[],f.forEach(i)},m=function(){return Promise.resolve().then(v)};m(),n={push:function(f){l.push(f),m()},filter:function(f){return l=l.filter(f),n}}}};return a}function Zr(e){e===void 0&&(e={});var t=Xr(null);return t.options=F({async:!0,ssr:!1},e),t}var At=function(e){var t=e.sideCar,n=Ot(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,F({},n))};At.isSideCarExport=!0;function Qr(e,t){return e.useMedium(t),At}var Lt=Zr(),pe=function(){},se=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:pe,onWheelCapture:pe,onTouchMoveCapture:pe}),a=r[0],i=r[1],l=e.forwardProps,s=e.children,v=e.className,m=e.removeScrollBar,f=e.enabled,g=e.shards,y=e.sideCar,N=e.noRelative,C=e.noIsolation,d=e.inert,p=e.allowPinchZoom,b=e.as,E=b===void 0?"div":b,x=e.gapMode,h=Ot(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=y,M=Yr([n,t]),u=F(F({},h),a);return c.createElement(c.Fragment,null,f&&c.createElement(w,{sideCar:Lt,removeScrollBar:m,shards:g,noRelative:N,noIsolation:C,inert:d,setCallbacks:i,allowPinchZoom:!!p,lockRef:n,gapMode:x}),l?c.cloneElement(c.Children.only(s),F(F({},u),{ref:M})):c.createElement(E,F({},u,{className:v,ref:M}),s))});se.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};se.classNames={fullWidth:re,zeroRight:ne};var Jr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function eo(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Jr();return t&&e.setAttribute("nonce",t),e}function to(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function no(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ro=function(){var e=0,t=null;return{add:function(n){e==0&&(t=eo())&&(to(t,n),no(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},oo=function(){var e=ro();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ft=function(){var e=oo(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},ao={left:0,top:0,right:0,gap:0},he=function(e){return parseInt(e||"",10)||0},io=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[he(n),he(r),he(a)]},so=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ao;var t=io(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},co=Ft(),G="data-scroll-locked",lo=function(e,t,n,r){var a=e.left,i=e.top,l=e.right,s=e.gap;return n===void 0&&(n="margin"),` 77 .`.concat(Br,` { 78 overflow: hidden `).concat(r,`; 79 padding-right: `).concat(s,"px ").concat(r,`; 80 } 81 body[`).concat(G,`] { 82 overflow: hidden `).concat(r,`; 83 overscroll-behavior: contain; 84 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 85 padding-left: `.concat(a,`px; 86 padding-top: `).concat(i,`px; 87 padding-right: `).concat(l,`px; 88 margin-left:0; 89 margin-top:0; 90 margin-right: `).concat(s,"px ").concat(r,`; 91 `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";
91")].filter(Boolean).join(""),` 92 } 93 94 .`).concat(ne,` { 95 right: `).concat(s,"px ").concat(r,`; 96 } 97 98 .`).concat(re,` { 99 margin-right: `).concat(s,"px ").concat(r,`; 100 } 101 102 .`).concat(ne," .").concat(ne,` { 103 right: 0 `).concat(r,`; 104 } 105 106 .`).concat(re," .").concat(re,` { 107 margin-right: 0 `).concat(r,`; 108 } 109 110 body[`).concat(G,`] { 111 `).concat(Hr,": ").concat(s,`px; 112 } 113`)},Qe=function(){var e=parseInt(document.body.getAttribute(G)||"0",10);return isFinite(e)?e:0},uo=function(){c.useEffect(function(){return document.body.setAttribute(G,(Qe()+1).toString()),function(){var e=Qe()-1;e<=0?document.body.removeAttribute(G):document.body.setAttribute(G,e.toString())}},[])},fo=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;uo();var i=c.useMemo(function(){return so(a)},[a]);return c.createElement(co,{styles:lo(i,!t,a,n?"":"!important")})},je=!1;if(typeof window<"u")try{var Z=Object.defineProperty({},"passive",{get:function(){return je=!0,!0}});window.addEventListener("test",Z,Z),window.removeEventListener("test",Z,Z)}catch{je=!1}var B=je?{passive:!1}:!1,vo=function(e){return e.tagName==="TEXTAREA"},Vt=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vo(e)&&n[t]==="visible")},mo=function(e){return Vt(e,"overflowY")},po=function(e){return Vt(e,"overflowX")},Je=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=$t(e,r);if(a){var i=zt(e,r),l=i[1],s=i[2];if(l>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ho=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},go=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},$t=function(e,t){return e==="v"?mo(t):po(t)},zt=function(e,t){return e==="v"?ho(t):go(t)},xo=function(e,t){return e==="h"&&t==="rtl"?-1:1},yo=function(e,t,n,r,a){var i=xo(e,window.getComputedStyle(t).direction),l=i*r,s=n.target,v=t.contains(s),m=!1,f=l>0,g=0,y=0;do{var N=zt(e,s),C=N[0],d=N[1],p=N[2],b=d-p-i*C;(C||b)&&$t(e,s)&&(g+=b,y+=C),s=s.parentNode.host||s.parentNode}while(!v&&s!==document.body||v&&(t.contains(s)||t===s));return(f&&Math.abs(g)<1||!f&&Math.abs(y)<1)&&(m=!0),m},Q=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},et=function(e){return[e.deltaX,e.deltaY]},tt=function(e){return e&&"current"in e?e.current:e},bo=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wo=function(e){return` 114 .block-interactivity-`.concat(e,` {pointer-events: none;} 115 .allow-interactivity-`).concat(e,` {pointer-events: all;} 116`)},No=0,H=[];function Co(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),a=c.useState(No++)[0],i=c.useState(Ft)[0],l=c.useRef(e);c.useEffect(function(){l.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var d=Kr([e.lockRef.current],(e.shards||[]).map(tt),!0).filter(Boolean);return d.forEach(function(p){return p.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),d.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(d,p){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!l.current.allowPinchZoom;var b=Q(d),E=n.current,x="deltaX"in d?d.deltaX:E[0]-b[0],h="deltaY"in d?d.deltaY:E[1]-b[1],w,M=d.target,u=Math.abs(x)>Math.abs(h)?"h":"v";if("touches"in d&&u==="h"&&M.type==="range")return!1;var j=Je(u,M);if(!j)return!0;if(j?w=u:(w=u==="v"?"h":"v",j=Je(u,M)),!j)return!1;if(!r.current&&"changedTouches"in d&&(x||h)&&(r.current=w),!w)return!0;var k=r.current||w;return yo(k,p,d,k==="h"?x:h)},[]),v=c.useCallback(function(d){var p=d;if(!(!H.length||H[H.length-1]!==i)){var b="deltaY"in p?et(p):Q(p),E=t.current.filter(function(w){return w.name===p.type&&(w.target===p.target||p.target===w.shadowParent)&&bo(w.delta,b)})[0];if(E&&E.should){p.cancelable&&p.preventDefault();return}
vendor: 4,305 bytes, line 116
116if(!E){var x=(l.current.shards||[]).map(tt).filter(Boolean).filter(function(w){return w.contains(p.target)}),h=x.length>0?s(p,x[0]):!l.current.noIsolation;h&&p.cancelable&&p.preventDefault()}}},[]),m=c.useCallback(function(d,p,b,E){var x={name:d,delta:p,target:b,should:E,shadowParent:Eo(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(h){return h!==x})},1)},[]),f=c.useCallback(function(d){n.current=Q(d),r.current=void 0},[]),g=c.useCallback(function(d){m(d.type,et(d),d.target,s(d,e.lockRef.current))},[]),y=c.useCallback(function(d){m(d.type,Q(d),d.target,s(d,e.lockRef.current))},[]);c.useEffect(function(){return H.push(i),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:y}),document.addEventListener("wheel",v,B),document.addEventListener("touchmove",v,B),document.addEventListener("touchstart",f,B),function(){H=H.filter(function(d){return d!==i}),document.removeEventListener("wheel",v,B),document.removeEventListener("touchmove",v,B),document.removeEventListener("touchstart",f,B)}},[]);var N=e.removeScrollBar,C=e.inert;return c.createElement(c.Fragment,null,C?c.createElement(i,{styles:wo(a)}):null,N?c.createElement(fo,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Eo(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Mo=Qr(Lt,Co);var Wt=c.forwardRef(function(e,t){return c.createElement(se,F({},e,{ref:t,sideCar:Mo}))});Wt.classNames=se.classNames;var ko=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},U=new WeakMap,J=new WeakMap,ee={},ge=0,Kt=function(e){return e&&(e.host||Kt(e.parentNode))},jo=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Kt(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ro=function(e,t,n,r){var a=jo(t,Array.isArray(e)?e:[e]);ee[n]||(ee[n]=new WeakMap);var i=ee[n],l=[],s=new Set,v=new Set(a),m=function(g){!g||s.has(g)||(s.add(g),m(g.parentNode))};a.forEach(m);var f=function(g){!g||v.has(g)||Array.prototype.forEach.call(g.children,function(y){if(s.has(y))f(y);else try{var N=y.getAttribute(r),C=N!==null&&N!=="false",d=(U.get(y)||0)+1,p=(i.get(y)||0)+1;U.set(y,d),i.set(y,p),l.push(y),d===1&&C&&J.set(y,!0),p===1&&y.setAttribute(n,"true"),C||y.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",y,b)}})};return f(t),s.clear(),ge++,function(){l.forEach(function(g){var y=U.get(g)-1,N=i.get(g)-1;U.set(g,y),i.set(g,N),y||(J.has(g)||g.removeAttribute(r),J.delete(g)),N||g.removeAttribute(n)}),ge--,ge||(U=new WeakMap,U=new WeakMap,J=new WeakMap,ee={})}},So=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=ko(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),Ro(r,a,n,"aria-hidden")):function(){return null}},ce="Dialog",[Bt,la]=Se(ce),[Po,L]=Bt(ce),Ht=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,s=c.useRef(null),v=c.useRef(null),[m,f]=ie({prop:r,defaultProp:a??!1,onChange:i,caller:ce});return o.jsx(Po,{scope:t,triggerRef:s,contentRef:v,contentId:q(),titleId:q(),descriptionId:q(),open:m,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(g=>!g),[f]),modal:l,children:n})};Ht.displayName=ce;var Ut="DialogTrigger",Gt=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=L(Ut,n),i=D(t,a.triggerRef);return o.jsx(S.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Ve(a.open),...r,ref:i,onClick:R(e.onClick,a.onOpenToggle)})});Gt.displayName=Ut;var Le="DialogPortal",[To,Yt]=Bt(Le,{forceMount:void 0}),qt=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,i=L(Le,t);return o.jsx(To,{scope:t,forceMount:n,children:c.Children.map(r,l=>o.jsx(W,{present:n||i.open,children:o.jsx(Dt,{asChild:!0,container:a,children:l})}))})};qt.displayName=Le;var ae="DialogOverlay",Xt=c.forwardRef((e,t)=>{const n=Yt(ae,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=L(ae,e.__scopeDialog);return i.modal?o.jsx(W,{present:r||i.open,children:o.jsx(Io,{...a,ref:t})}):null});Xt.displayName=ae;var _o=be("DialogOverlay.RemoveScroll"),Io=c.forwardRef((e,t)=>
vendor: 5,590 bytes, lines 116-120
116{const{__scopeDialog:n,...r}=e,a=L(ae,n);return o.jsx(Wt,{as:_o,allowPinchZoom:!0,shards:[a.contentRef],children:o.jsx(S.div,{"data-state":Ve(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),z="DialogContent",Zt=c.forwardRef((e,t)=>{const n=Yt(z,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=L(z,e.__scopeDialog);return o.jsx(W,{present:r||i.open,children:i.modal?o.jsx(Do,{...a,ref:t}):o.jsx(Oo,{...a,ref:t})})});Zt.displayName=z;var Do=c.forwardRef((e,t)=>{const n=L(z,e.__scopeDialog),r=c.useRef(null),a=D(t,n.contentRef,r);return c.useEffect(()=>{const i=r.current;if(i)return So(i)},[]),o.jsx(Qt,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0;(l.button===2||s)&&i.preventDefault()}),onFocusOutside:R(e.onFocusOutside,i=>i.preventDefault())})}),Oo=c.forwardRef((e,t)=>{const n=L(z,e.__scopeDialog),r=c.useRef(!1),a=c.useRef(!1);return o.jsx(Qt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,s;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:i=>{var v,m;(v=e.onInteractOutside)==null||v.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=i.target;((m=n.triggerRef.current)==null?void 0:m.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),Qt=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,...l}=e,s=L(z,n),v=c.useRef(null),m=D(t,v);return Wr(),o.jsxs(o.Fragment,{children:[o.jsx(_t,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:o.jsx(Pe,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Ve(s.open),...l,ref:m,onDismiss:()=>s.onOpenChange(!1)})}),o.jsxs(o.Fragment,{children:[o.jsx(Ao,{titleId:s.titleId}),o.jsx(Fo,{contentRef:v,descriptionId:s.descriptionId})]})]})}),Fe="DialogTitle",Jt=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=L(Fe,n);return o.jsx(S.h2,{id:a.titleId,...r,ref:t})});Jt.displayName=Fe;var en="DialogDescription",tn=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=L(en,n);return o.jsx(S.p,{id:a.descriptionId,...r,ref:t})});tn.displayName=en;var nn="DialogClose",rn=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=L(nn,n);return o.jsx(S.button,{type:"button",...r,ref:t,onClick:R(e.onClick,()=>a.onOpenChange(!1))})});rn.displayName=nn;function Ve(e){return e?"open":"closed"}var on="DialogTitleWarning",[ua,an]=fn(on,{contentName:z,titleName:Fe,docsSlug:"dialog"}),Ao=({titleId:e})=>{const t=an(on),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 117 118If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 119 120For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Lo="DialogDescriptionWarning",Fo=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${an(Lo).contentName}}.`;return c.useEffect(()=>{var i;const a=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Vo=Ht,$o=Gt,zo=qt,Wo=Xt,Ko=Zt,Bo=Jt,Ho=tn,Uo=rn;function Go({...e}){return o.jsx(Vo,{"data-slot":"sheet",...e})}function Yo({...e}){return o.jsx($o,{"data-slot":"sheet-trigger",...e})}function qo({...e}){return o.jsx(zo,{"data-slot":"sheet-portal",...e})}function Xo({className:e,...t}){return o.jsx(Wo,{"data-slot":"sheet-overlay",className:I("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t})}function Zo({className:e,children:t,side:n="right",...r}){return o.jsxs(qo,{children:[o.jsx(Xo,{}),o.jsxs(Ko,{"data-slot":"sheet-content",className:I("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,o.jsxs(Uo,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(Vn,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Qo({className:e,...t}){return o.jsx(Bo,{"data-slot":"sheet-title",className:I("text-foreground font-semibold",e),...t})}function Jo({className:e,...t}
120){return o.jsx(Ho,{"data-slot":"sheet-description",className:I("text-muted-foreground text-sm",e),...t})}const da={voting:"candidates-reveal-modal-dismissed","final-results":"final-results-modal-dismissed"},xe=[{key:"vencedores",title:"Novas 7 Maravilhas de Portugal®",href:"/resultados/vencedores"},{key:"finalistas",title:"Finalistas",href:"/resultados/finalistas"},{key:"semifinalistas",title:"Semifinalistas",href:"/resultados/semifinalistas"}];function nt(e,t){if(e==="vencedores")return`border-primary bg-arraial-cream text-primary hover:bg-arraial-cream hover:text-primary focus:bg-arraial-cream focus:text-primary ${t?"ring-arraial-gold-bright ring-2 ring-offset-2 ring-offset-arraial-azul-deep shadow-lg":"hover:brightness-95"}`;const n="border-transparent bg-transparent text-arraial-cream hover:bg-transparent hover:text-arraial-cream focus:bg-transparent focus:text-arraial-cream";return t?`${n} decoration-arraial-gold-bright font-bold underline decoration-2 underline-offset-8`:`${n} hover:opacity-90`}function fa({applicationsEnabled:e,candidatesRevealEnabled:t,finalResultsEnabled:n}){return e||t===n?null:n?"final-results":"voting"}function ea({finalResultsEnabled:e,tvProgramsEnabled:t}){return e?{href:"/resultados/vencedores",title:"PATRIMÃNIOS APURADOS"}:t?{href:"/como-votar",title:"COMO VOTAR"}:null}function ta({finalResultsEnabled:e,tvProgramsEnabled:t}){return e||t}function na({hideLogoOnTop:e=!1}){var M;const{props:t,url:n}=Re(),{socials:r,voting:a,enable_applications_phase:i,enable_suggestions_phase:l,enable_tv_programs_phase:s,enable_final_results_phase:v}=t,m=(a==null?void 0:a.is_specialist)??!1,f=v,g=ta({finalResultsEnabled:v,tvProgramsEnabled:s}),y=ea({finalResultsEnabled:v,tvProgramsEnabled:s}),N=((M=xe.find(u=>n.startsWith(u.href)))==null?void 0:M.key)??"vencedores",[C,d]=c.useState(!1),[p,b]=c.useState(!1);c.useEffect(()=>{const u=()=>{d(window.scrollY>20)};return u(),window.addEventListener("scroll",u),()=>window.removeEventListener("scroll",u)},[]);const x=[{key:"facebook",name:"Facebook",icon:ct},{key:"instagram",name:"Instagram",icon:lt},{key:"youtube",name:"YouTube",icon:ut}].filter(u=>r[u.key]).map(u=>({name:u.name,icon:u.icon,href:r[u.key]})),h=[{title:"Projetos 7 Maravilhas",href:"https://projetos.7maravilhas.pt/",icon:ue,description:"Todos os projetos"},{title:"Media Center",href:"/media-center",icon:Tn,description:"Recursos de imprensa e media"},{title:"Contactos",href:"/contactos",icon:ze,description:"Entre em contacto"}],w=[];return g&&w.push({title:"Candidatos",href:"/patrimonios",icon:bn,description:"Conheça os candidatos a concurso"}),s&&w.push({title:"Programas TVI",href:"/programas",icon:ue,description:"Calendário e detalhes das emissões na TVI"}),h.unshift(...w),m?h.push({title:"Votação",href:"/votacao",icon:$e,description:"Aceder à plataforma de votação"}):i&&h.push({title:"Candidaturas",href:"/candidaturas",icon:$e,description:"Candidate o seu monumento"}),l&&h.push({title:"Sugerir Maravilhas",href:"/sugerir-maravilhas",icon:ze,description:"Sugira uma nova maravilha"}),f&&y?h.push({title:y.title,href:y.href,icon:ue,description:"Conheça as Novas 7 Maravilhas de Portugal®"}):s&&h.push({title:"COMO VOTAR",href:"/como-votar",icon:Ln,description:"Saiba como votar nas Novas 7 Maravilhas de Portugal®"}),o.jsx("header",{className:`fixed top-0 right-0 left-0 z-50 transition-all duration-300 ${C?"bg-background/95 dark:bg-background/95 border-border border-b shadow-lg backdrop-blur-sm":"bg-background/90 dark:bg-background/90 backdrop-blur-sm"}`,children:o.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:o.jsxs("nav",{className:"flex h-28 items-center justify-between",children:[o.jsx("div",{className:`shrink-0 pr-4 transition-opacity duration-300 xl:pr-6 ${e&&!C?"pointer-events-none opacity-0":"opacity-100"}`,children:o.jsxs(P,{href:route("home"),className:"text-foreground dark:text-foreground hover:text-primary group flex items-center gap-2 font-semibold transition-colors",children:[o.jsx("img",{src:"/assets/logo-h-dark-v2.png",alt:"7 Maravilhas de Portugal®",className:"block h-auto max-h-20 w-auto transition-transform duration-300 group-hover:scale-105 md:max-h-24 lg:max-h-16 xl:max-h-20 2xl:max-h-24 dark:hidden"}),o.jsx("img",{src:"/assets/logo-h-light-v2.png",alt:"7 Maravilhas de Portugal®",className:"hidden h-auto max-h-20 w-auto transition-transform duration-300 group-hover:scale-105 md:max-h-24 lg:max-h-16 xl:max-h-20 2xl:max-h-24 dark:block"})]})}),o.jsx("div",{className:"hidden items-center gap-4 lg:flex xl:gap-6",children:h.filter(u=>u.title!=="COMO VOTAR"&&u.title!=="PATRIMÃNIOS APURADOS").map(u=>{const j=u.href==="/"?n==="/":u.href.startsWith("/")&&n.startsWith(u.href);return o.jsx("div",{className:`group relative ${u.href==="/contactos"?"hidden xl:block":""}`,children:u.href.startsWith("http")?o.jsxs("a",{href:u.href,target:"_blank",rel:"noopener noreferrer",className:"text-foreground dark:text-foreground hover:text-primary dark:hover:text-primary group relative flex items-center gap-2 text-sm font-semibold whitespace-nowrap transition-colors xl:text-base",children:[u.title,u.badge&&o.jsx("span",{className:"bg-primary text-primary-foreground rounded-full px-2 py-1 text-xs",children:u.badge}),o.jsx("span",{className:"bg-primary absolute -bottom-1 left-0 h-0.5 w-0 transition-all duration-300 group-hover:w-full"})]}):o.jsxs(P,{href:u.href,className:`group relative flex items-center gap-2 text-sm font-semibold whitespace-nowrap transition-all duration-300 xl:text-base ${u.href==="/candidaturas"||u.href==="/votacao"?"border-primary text-primary hover:bg-primary hover:text-primary-foreground rounded-md border-2 px-4 py-2":j?"text-primary":"text-foreground dark:text-foreground hover:text-primary dark:hover:text-primary"}`,children:[u.title,u.badge&&o.jsx("span",{className:"bg-primary text-primary-foreground rounded-full px-2 py-1 text-xs",children:u.badge}),u.href!=="/candidaturas"&&u.href!=="/votacao"&&o.jsx("span",{className:`bg-primary absolute -bottom-1 left-0 h-0.5 transition-all duration-300 ${j?"w-full":"w-0 group-hover:w-full"}`})]})},`${u.title}-${u.href}`)})}),o.jsxs("div",{className:"ml-4 flex items-center gap-2",children:[y&&(f?o.jsx(kr,{viewport:!1,delayDuration:0,
120className:"mr-2 hidden sm:flex",children:o.jsx(jr,{children:o.jsxs(Rr,{children:[o.jsx(Pr,{className:"bg-primary text-primary-foreground hover:bg-primary/90 hover:text-primary-foreground focus:bg-primary/90 focus:text-primary-foreground data-[state=open]:bg-primary/90 data-[state=open]:text-primary-foreground h-auto cursor-pointer px-3 py-2 text-xs font-semibold whitespace-nowrap shadow-md transition-shadow hover:shadow-lg xl:px-4 xl:text-sm 2xl:text-base",children:y.title}),o.jsx(Tr,{className:"group-data-[viewport=false]/navigation-menu:bg-arraial-azul-deep group-data-[viewport=false]/navigation-menu:text-arraial-cream group-data-[viewport=false]/navigation-menu:border-arraial-gold-bright/40 right-0 left-auto w-64 p-2 md:w-64",children:xe.map(u=>{const j=u.key===N;return o.jsx(Ir,{asChild:!0,children:o.jsx(P,{href:u.href,"aria-current":j?"page":void 0,className:`border p-3 text-sm font-semibold whitespace-nowrap transition ${nt(u.key,j)}`,children:u.title})},u.href)})})]})})}):o.jsx(P,{href:y.href,className:"bg-primary text-primary-foreground hover:bg-primary/90 mr-2 hidden items-center rounded-md px-3 py-2 text-sm font-semibold whitespace-nowrap shadow-md transition-colors sm:inline-flex xl:px-4 xl:text-base",children:y.title})),o.jsx("div",{className:"hidden items-center gap-1.5 sm:flex",children:x.map(u=>{const j=u.icon;return o.jsx("a",{href:u.href,target:"_blank",rel:"noopener noreferrer","aria-label":u.name,className:"bg-primary/10 text-primary hover:bg-primary hover:text-primary-foreground flex h-9 w-9 items-center justify-center rounded-full transition-colors",children:o.jsx(j,{className:"h-5 w-5"})},u.name)})}),o.jsx(zn,{}),o.jsxs(Go,{open:p,onOpenChange:b,children:[o.jsx(Yo,{asChild:!0,children:o.jsx(at,{variant:"ghost",size:"sm",className:"cursor-pointer lg:hidden",children:o.jsx(jn,{className:"h-5 w-5"})})}),o.jsxs(Zo,{side:"right",className:"w-80",children:[o.jsx(Qo,{className:"sr-only",children:"Menu de Navegação"}),o.jsx(Jo,{className:"sr-only",children:"Menu de navegação principal para dispositivos móveis"}),o.jsxs("div",{className:"mt-8 flex flex-col gap-6 px-4",children:[h.map(u=>{const j=u.icon||xn;return o.jsx("div",{children:u.title==="PATRIMÃNIOS APURADOS"?o.jsxs("div",{className:"space-y-3",children:[o.jsx("div",{className:"bg-primary/10 border-primary/40 rounded-md border p-3 font-semibold",children:u.title}),o.jsx("div",{className:"bg-arraial-azul-deep space-y-2 rounded-md p-2",children:xe.map(k=>{const _=k.key===N;return o.jsx(P,{href:k.href,"aria-current":_?"page":void 0,className:`block rounded-md border p-2 text-sm font-semibold transition ${nt(k.key,_)}`,onClick:()=>b(!1),children:k.title},k.href)})})]}):u.href.startsWith("http")?o.jsxs("a",{href:u.href,target:"_blank",rel:"noopener noreferrer",className:"text-foreground dark:text-foreground hover:text-primary dark:hover:text-primary flex items-center gap-3 transition-colors",onClick:()=>b(!1),children:[o.jsx(j,{className:"text-primary h-5 w-5"}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-2 font-semibold",children:[u.title,u.badge&&o.jsx("span",{className:"bg-primary text-primary-foreground rounded-full px-2 py-1 text-xs",children:u.badge})]}),u.description&&o.jsx("div",{className:"text-muted-foreground line-clamp-2 text-sm",children:u.description})]})]}):o.jsxs(P,{href:u.href,className:`flex items-center gap-3 transition-colors ${u.href==="/como-votar"?"bg-primary/10 border-primary/40 rounded-md border p-3":"text-foreground dark:text-foreground hover:text-primary dark:hover:text-primary"}`,onClick:()=>b(!1),children:[o.jsx(j,{className:"text-primary h-5 w-5"}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-2 font-semibold",children:[u.title,u.badge&&o.jsx("span",{className:"bg-primary text-primary-foreground rounded-full px-2 py-1 text-xs",children:u.badge})]}),u.description&&o.jsx("div",{className:"text-muted-foreground line-clamp-2 text-sm",children:u.description})]})]})},`${u.title}-${u.href}`)}),o.jsx("div",{className:"border-border border-t pt-6",children:o.jsx("div",{className:"flex items-center justify-center gap-4",children:x.map(u=>{const j=u.icon;return o.jsx("a",{href:u.href,target:"_blank",rel:"noopener noreferrer","aria-label":u.name,onClick:()=>b(!1),className:"bg-primary/10 text-primary hover:bg-primary hover:text-primary-foreground flex h-11 w-11 items-center justify-center rounded-full transition-colors",children:o.jsx(j,{className:"h-6 w-6"})},u.name)})})})]})]})]})]})]})})})}function ra(){const{socials:e,enable_applications_phase:t,auth:n}=Re().props,a=[{key:"facebook",name:"Facebook",icon:ct},{key:"instagram",name:"Instagram",icon:lt},{key:"youtube",name:"YouTube",icon:ut}].filter(i=>e[i.key]).map(i=>({name:i.name,icon:i.icon,href:e[i.key]}));return o.jsx("footer",{className:"bg-muted/30 border-border border-t pt-12 pb-6",children:o.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[o.jsxs("div",{className:"mb-12 grid grid-cols-1 gap-8 md:grid-cols-3",children:[o.jsxs("div",{className:"flex flex-col gap-4",children:[o.jsxs(P,{href:"/",className:"inline-block",children:[o.jsx("img",{src:"/assets/logo-h-dark-v2.png",alt:"7 Maravilhas de Portugal®",className:"block h-14 w-auto object-contain dark:hidden"}),o.jsx("img",{src:"/assets/logo-h-light-v2.png",alt:"7 Maravilhas de Portugal®",className:"hidden h-14 w-auto object-contain dark:block"})]}),o.jsx("p",{className:"text-muted-foreground max-w-xs text-sm",children:"Descubra e celebre o mais magnÃfico património de Portugal."}),o.jsx("div",{className:"mt-2 flex items-center gap-2",children:a.map(i=>{const l=i.icon;return o.jsx(at,{variant:"ghost",size:"icon",asChild:!0,className:"hover:bg-primary/10 hover:text-primary h-8 w-8 rounded-full transition-colors",children:o.jsx("a",{href:i.href,target:"_blank",rel:"noopener noreferrer","aria-label":i.name,children:o.jsx(l,{className:"h-4 w-4"})})},i.name)})})]}),o.jsxs("div",{className:"flex flex-col gap-4",children:[o.jsx("h3",{className:"text-foreground font-semibold",children:"Links Ãteis"}),o.jsxs("nav",{className:"text-muted-foreground flex flex-col gap-2 text-sm",children:[o.jsx(P,{href:"/",className:"hover:text-primary w-fit transition-colors",children:"InÃcio"}),t&&o.jsx(P,{href:"/candidaturas",className:"hover:text-primary w-fit transition-colors",children:"Candidaturas"}),o.jsx(P,{href:"/contactos",className:"hover:text-primary w-fit transition-colors",children:"Contactos"}),o.jsx(P,{href:"/media-center",className:"hover:text-primary w-fit transition-colors",children:"Media Center"}),n.user?o.jsx(P,{href:route("logout"),method:"post",as:"button",className:"hover:text-primary w-fit text-left transition-colors",children:"Terminar Sessão"}):o.jsx(P,{href:route("login"),className:"hover:text-primary w-fit transition-colors",children:"Login"})]})]}),o.jsxs("div",{className:"flex flex-col gap-4",children:[o.jsx("h3",{className:"text-foreground font-semibold",children:"Legal"}),o.jsxs("nav",{className:"text-muted-foreground flex flex-col gap-2 text-sm",children:[o.jsx(P,{href:"/regulamento",className:"hover:text-primary w-fit transition-colors",children:"Regulamento"}),o.jsx(P,{href:"/politica-privacidade",className:"hover:text-primary w-fit transition-colors",children:"PolÃtica de Privacidade"}),o.jsx(P,{href:"/termos-condicoes",className:"hover:text-primary w-fit transition-colors",children:"Termos e Condições"}),o.jsx("a",{href:"https://www.livroreclamacoes.pt",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary w-fit transition-colors",children:"Livro de Reclamações"})]})]})]}),o.jsxs("div",{className:"border-border text-muted-foreground flex flex-col items-center justify-between gap-4 border-t pt-6 text-sm sm:flex-row",children:[o.jsxs("p",{children:["© ",new Date().getFullYear()," - 7 Marav
120ilhas de Portugal®. Todos os direitos reservados."]}),o.jsxs("a",{href:"https://noop.pt",target:"_blank",className:"hover:text-primary group flex items-center gap-1 transition-colors",children:["made in ",o.jsx("span",{className:"group-hover:text-primary font-semibold transition-colors",children:"Noop"})]})]})]})})}function va({children:e,title:t,description:n,keywords:r,image:a,hideLogoOnTop:i=!1}){var d;const{name:l,seo:s}=Re().props,m=`${t||(s==null?void 0:s.title)||"7 Maravilhas de Portugal®"}`,f=n||(s==null?void 0:s.description)||"7 Maravilhas de Portugal®",g=r||(s==null?void 0:s.keywords)||"",y=typeof window<"u"?window.location.href:"",N=typeof window<"u"?window.location.origin:"https://7maravilhas.pt",C=a||`${N}/assets/ogimage.jpg`;return o.jsxs(o.Fragment,{children:[o.jsxs(un,{children:[o.jsx("title",{children:m}),o.jsx("meta",{name:"description",content:f}),g&&o.jsx("meta",{name:"keywords",content:g}),o.jsx("meta",{property:"og:type",content:"website"}),o.jsx("meta",{property:"og:title",content:m}),o.jsx("meta",{property:"og:description",content:f}),o.jsx("meta",{property:"og:image",content:C}),o.jsx("meta",{property:"og:url",content:y}),o.jsx("meta",{property:"og:site_name",content:l}),o.jsx("meta",{name:"twitter:card",content:"summary"}),o.jsx("meta",{name:"twitter:title",content:m}),o.jsx("meta",{name:"twitter:description",content:f}),o.jsx("meta",{name:"twitter:image",content:C}),y&&o.jsx("link",{rel:"canonical",href:y}),(d=s==null?void 0:s.metadata)==null?void 0:d.map(({key:p,value:b})=>o.jsx("meta",{property:p,content:b},p))]}),o.jsxs("div",{className:"flex min-h-screen flex-col bg-background text-foreground overflow-x-hidden",children:[o.jsx(na,{hideLogoOnTop:i}),o.jsx("main",{className:"flex-1 pt-[7rem] w-full overflow-x-hidden",children:e}),o.jsx(ra,{})]})]})}export{xn as B,bn as C,Ho as D,$e as F,va as M,Wo as O,zo as P,Vo as R,ze as S,ue as T,er as V,Vn as X,Ko as a,Uo as b,Bo as c,$o as d,Kn as e,q as f,dt as g,Dt as h,So as i,Wr as j,Wt as k,_t as l,Pe as m,Nn as n,xe as o,nt as p,da as q,fa as r,O as u};
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.