PageSourceSearch

https://www.xnk.ai/_next/static/immutable/chunks/2olo8gc_9q8c8.js

js xnk.ai collected 2026-10-05 15:59:56 UTC 23,347 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,403691,e=>{"use strict";var t=e.i(243029),n=e.i(981831),a=e.i(12770),o=e.i(842058),r=e.i(215571),i=e.i(421061),s=e.i(620914),l=e.i(942829);function u(e){return(0,l.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 384h384v-42.67H64zm0-106.67h384v-42.66H64zM64 128v42.67h384V128z"},child:[]}]})(e)}var d=e.i(519050),c=e.i(179602),m=e.i(152088);function f(){let[e,l]=(0,o.useState)(!1);return(0,t.jsxs)(i.Drawer,{onOpenChange:l,open:e,children:[(0,t.jsx)(i.DrawerTrigger,{"aria-label":"Open Menu",children:(0,t.jsx)(u,{className:"text-2xl cursor-pointer"})}),(0,t.jsxs)(i.DrawerContent,{children:[(0,t.jsx)(s.VisuallyHidden.Root,{children:(0,t.jsx)(r.DialogTitle,{children:"Menu"})}),(0,t.jsxs)(i.DrawerHeader,{className:"px-6",children:[(0,t.jsx)("div",{className:"",children:(0,t.jsxs)(a.default,{className:"relative mr-6 flex items-center space-x-2",href:"/",title:"brand-logo",children:[(0,t.jsx)(d.Logo,{className:"h-[40px] w-auto"}),(0,t.jsx)("span",{className:"font-bold text-xl",children:c.siteConfig.name})]})}),(0,t.jsx)("nav",{children:(0,t.jsx)("ul",{className:"mt-7 text-left",children:c.siteConfig.header.map((e,n)=>(0,t.jsx)("li",{className:"my-3",children:"trigger"in e?(0,t.jsx)(a.default,{className:"font-semibold",href:"#",onClick:()=>l(!1),children:e.trigger}):(0,t.jsx)(a.default,{className:"font-semibold",href:e.href||"",onClick:()=>l(!1),children:e.title})},n))})})]}),(0,t.jsx)(i.DrawerFooter,{children:(0,t.jsxs)(a.default,{className:(0,m.cn)((0,n.buttonVariants)({variant:"default"}),"flex w-full gap-2 text-background sm:w-auto [&_svg]:size-6"),"data-umami-event":"click-drawer-menu-cta",href:"/dashboard/customs",children:[(0,t.jsx)(d.Logo,{className:"size-6 text-white"}),"Bắt đầu miễn phí"]})})]})]})}var v=e.i(294237),g=e.i(12356),p=e.i(193539),h=e.i(161462),x=e.i(515201),w=e.i(371954),b=e.i(248490),j=e.i(723673),N=e.i(849577),C=e.i(358894),R=e.i(934322),E=e.i(744917),y=e.i(264418),M=e.i(52706),T=e.i(203679),P=e.i(290253),k=e.i(831581),L="NavigationMenu",[I,D,S]=(0,E.createCollection)(L),[_,z,F]=(0,E.createCollection)(L),[H,A]=(0,h.createContextScope)(L,[S,F]),[K,O]=H(L),[V,U]=H(L),$=o.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:i,defaultValue:s,delayDuration:l=200,skipDelayDuration:u=300,orientation:d="horizontal",dir:c,...m}=e,[f,v]=o.useState(null),g=(0,j.useComposedRefs)(n,e=>v(e)),p=(0,N.useDirection)(c),h=o.useRef(0),x=o.useRef(0),C=o.useRef(0),[R,E]=o.useState(!0),[y,M]=(0,b.useControllableState)({prop:r,onChange:e=>{let t=u>0;""!==e?(window.clearTimeout(C.current),t&&E(!1)):(window.clearTimeout(C.current),C.current=window.setTimeout(()=>E(!0),u)),i?.(e)},defaultProp:s??"",caller:L}),T=o.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>M(""),150)},[M]),P=o.useCallback(e=>{window.clearTimeout(x.current),M(e)},[M]),k=o.useCallback(e=>{y===e?window.clearTimeout(x.current):h.current=window.setTimeout(()=>{window.clearTimeout(x.current),M(e)},l)},[y,M,l]);return o.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(x.current),window.clearTimeout(C.current)},[]),(0,t.jsx)(W,{scope:a,isRootMenu:!0,value:y,dir:p,orientation:d,rootNavigationMenu:f,onTriggerEnter:e=>{window.clearTimeout(h.current),R?k(e):P(e)},onTriggerLeave:()=>{window.clearTimeout(h.current),T()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:T,onItemSelect:e=>{M(t=>t===e?"":e)},onItemDismiss:()=>M(""),children:(0,t.jsx)(w.Primitive.nav,{"aria-label":"Main","data-orientation":d,dir:p,...m,ref:g})})});$.displayName=L;var B="NavigationMenuSub",G=o.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,value:o,onValueChange:r,defaultValue:i,orientation:s="horizontal",...l}=e,u=O(B,a),[d,c]=(0,b.useControllableState)({prop:o,onChange:r,defaultProp:i??"",caller:B});return(0,t.jsx)(W,{scope:a,isRootMenu:!1,value:d,dir:u.dir,orientation:s,rootNavigationMenu:u.rootNavigationMenu,onTriggerEnter:e=>c(e),onItemSelect:e=>c(e),onItemDismiss:()=>c(""),children:(0,t.jsx)(w.Primitive.div,{"data-orientation":s,...l,ref:n})})});G.displayName=B;var W=e=>{let{scope:n,isRootMenu:a,rootNavigationMenu:r,dir:i,orientation:s,children:l,value:u,onItemSelect:d,onItemDismiss:c,onTriggerEnter:m,onTriggerLeave:f,onContentEnter:v,onContentLeave:g}
1=e,[p,h]=o.useState(null),[x,w]=o.useState(new Map),[b,j]=o.useState(null);return(0,t.jsx)(K,{scope:n,isRootMenu:a,rootNavigationMenu:r,value:u,previousValue:(0,M.usePrevious)(u),baseId:(0,R.useId)(),dir:i,orientation:s,viewport:p,onViewportChange:h,indicatorTrack:b,onIndicatorTrackChange:j,onTriggerEnter:(0,P.useCallbackRef)(m),onTriggerLeave:(0,P.useCallbackRef)(f),onContentEnter:(0,P.useCallbackRef)(v),onContentLeave:(0,P.useCallbackRef)(g),onItemSelect:(0,P.useCallbackRef)(d),onItemDismiss:(0,P.useCallbackRef)(c),onViewportContentChange:o.useCallback((e,t)=>{w(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:o.useCallback(e=>{w(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,t.jsx)(I.Provider,{scope:n,children:(0,t.jsx)(V,{scope:n,items:x,children:l})})})},Y="NavigationMenuList",q=o.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,...o}=e,r=O(Y,a),i=(0,t.jsx)(w.Primitive.ul,{"data-orientation":r.orientation,...o,ref:n});return(0,t.jsx)(w.Primitive.div,{style:{position:"relative"},ref:r.onIndicatorTrackChange,children:(0,t.jsx)(I.Slot,{scope:a,children:r.isRootMenu?(0,t.jsx)(eg,{asChild:!0,children:i}):i})})});q.displayName=Y;var X="NavigationMenuItem",[J,Q]=H(X),Z=o.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,value:r,...i}=e,s=(0,R.useId)(),l=o.useRef(null),u=o.useRef(null),d=o.useRef(null),c=o.useRef(()=>{}),m=o.useRef(!1),f=o.useCallback((e="start")=>{if(l.current){c.current();let t=ex(l.current);t.length&&ew("start"===e?t:t.reverse())}},[]),v=o.useCallback(()=>{if(l.current){var e;let t=ex(l.current);t.length&&((e=t).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),c.current=()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})})}},[]);return(0,t.jsx)(J,{scope:a,value:r||s||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:l,focusProxyRef:d,wasEscapeCloseRef:m,onEntryKeyDown:f,onFocusProxyEnter:f,onRootContentClose:v,onContentFocusOutside:v,children:(0,t.jsx)(w.Primitive.li,{...i,ref:n})})});Z.displayName=X;var ee="NavigationMenuTrigger",et=o.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,disabled:r,...i}=e,s=O(ee,e.__scopeNavigationMenu),l=Q(ee,e.__scopeNavigationMenu),u=o.useRef(null),d=(0,j.useComposedRefs)(u,l.triggerRef,n),c=eN(s.baseId,l.value),m=eC(s.baseId,l.value),f=o.useRef(!1),v=o.useRef(!1),g=l.value===s.value;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.ItemSlot,{scope:a,value:l.value,children:(0,t.jsx)(eh,{asChild:!0,children:(0,t.jsx)(w.Primitive.button,{id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":ej(g),"aria-expanded":g,"aria-controls":g?m:void 0,...i,ref:d,onPointerEnter:(0,x.composeEventHandlers)(e.onPointerEnter,()=>{v.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:(0,x.composeEventHandlers)(e.onPointerMove,eR(()=>{r||v.current||l.wasEscapeCloseRef.current||f.current||(s.onTriggerEnter(l.value),f.current=!0)})),onPointerLeave:(0,x.composeEventHandlers)(e.onPointerLeave,eR(()=>{r||(s.onTriggerLeave(),f.current=!1)})),onClick:(0,x.composeEventHandlers)(e.onClick,()=>{s.onItemSelect(l.value),v.current=g}),onKeyDown:(0,x.composeEventHandlers)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===s.dir?"ArrowLeft":"ArrowRight"}[s.orientation];g&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.Root,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:e=>{let t=l.contentRef.current,n=e.relatedTarget,a=n===u.current,o=t?.contains(n);(a||!o)&&l.onFocusProxyEnter(a?"start":"end")}}),s.viewport&&(0,t.jsx)("span",{"aria-owns":m})]})]})});et.displayName=ee;var en="navigationMenu.linkSelect",ea=o.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,active:o,onSelect:r,...i}=e;return(0,t.jsx)(eh,{asChild:!0,children:(0,t.jsx)(w.Primitive.a,{"data-active":o?"":void 0,"aria-current":o?"page":void 0,...i,ref:n,onClick:(0,x.composeEventHandlers)(e.onClick,e=>{let t=e.target,n=new CustomEvent(en,{bubbles:!0,cancelable:!0});if(t.addEventListener(en,e=>r?.(e),{once:!0}),(0,w.dispatchDiscreteCustomEvent)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(ed,{bubbles:!0,cancelable:!0});(0,w.dispatchDiscreteCustomEvent)(t,e)}},{checkForDefaultPrevented:!1})})})});ea.displayName="NavigationMenuLink";
1var eo="NavigationMenuIndicator",er=o.forwardRef((e,n)=>{let{forceMount:a,...o}=e,r=O(eo,e.__scopeNavigationMenu),i=!!r.value;return r.indicatorTrack?p.createPortal((0,t.jsx)(C.Presence,{present:a||i,children:(0,t.jsx)(ei,{...o,ref:n})}),r.indicatorTrack):null});er.displayName=eo;var ei=o.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,...r}=e,i=O(eo,a),s=D(a),[l,u]=o.useState(null),[d,c]=o.useState(null),m="horizontal"===i.orientation,f=!!i.value;o.useEffect(()=>{let e=s(),t=e.find(e=>e.value===i.value)?.ref.current;t&&u(t)},[s,i.value]);let v=()=>{l&&c({size:m?l.offsetWidth:l.offsetHeight,offset:m?l.offsetLeft:l.offsetTop})};return eb(l,v),eb(i.indicatorTrack,v),d?(0,t.jsx)(w.Primitive.div,{"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":i.orientation,...r,ref:n,style:{position:"absolute",...m?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...r.style}}):null}),es="NavigationMenuContent",el=o.forwardRef((e,n)=>{let{forceMount:a,...o}=e,r=O(es,e.__scopeNavigationMenu),i=Q(es,e.__scopeNavigationMenu),s=(0,j.useComposedRefs)(i.contentRef,n),l=i.value===r.value,u={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...o};return r.viewport?(0,t.jsx)(eu,{forceMount:a,...u,ref:s}):(0,t.jsx)(C.Presence,{present:a||l,children:(0,t.jsx)(ec,{"data-state":ej(l),...u,ref:s,onPointerEnter:(0,x.composeEventHandlers)(e.onPointerEnter,r.onContentEnter),onPointerLeave:(0,x.composeEventHandlers)(e.onPointerLeave,eR(r.onContentLeave)),style:{pointerEvents:!l&&r.isRootMenu?"none":void 0,...u.style}})})});el.displayName=es;var eu=o.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:a}=O(es,e.__scopeNavigationMenu);return(0,T.useLayoutEffect)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,T.useLayoutEffect)(()=>()=>a(e.value),[e.value,a]),null}),ed="navigationMenu.rootContentDismiss",ec=o.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,value:r,triggerRef:i,focusProxyRef:s,wasEscapeCloseRef:l,onRootContentClose:u,onContentFocusOutside:d,...c}=e,m=O(es,a),f=o.useRef(null),v=(0,j.useComposedRefs)(f,n),g=eN(m.baseId,r),p=eC(m.baseId,r),h=D(a),w=o.useRef(null),{onItemDismiss:b}=m;o.useEffect(()=>{let e=f.current;if(m.isRootMenu&&e){let t=()=>{b(),u(),e.contains(document.activeElement)&&i.current?.focus()};return e.addEventListener(ed,t),()=>e.removeEventListener(ed,t)}},[m.isRootMenu,e.value,i,b,u]);let N=o.useMemo(()=>{let e=h().map(e=>e.value);"rtl"===m.dir&&e.reverse();let t=e.indexOf(m.value),n=e.indexOf(m.previousValue),a=r===m.value,o=n===e.indexOf(r);if(!a&&!o)return w.current;let i=(()=>{if(t!==n){if(a&&-1!==n)return t>n?"from-end":"from-start";if(o&&-1!==t)return t>n?"to-start":"to-end"}return null})();return w.current=i,i},[m.previousValue,m.value,m.dir,h,r]);return(0,t.jsx)(eg,{asChild:!0,children:(0,t.jsx)(y.DismissableLayer,{id:p,"aria-labelledby":g,"data-motion":N,"data-orientation":m.orientation,...c,ref:v,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(ed,{bubbles:!0,cancelable:!0});f.current?.dispatchEvent(e)},onFocusOutside:(0,x.composeEventHandlers)(e.onFocusOutside,e=>{d();let t=e.target;m.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,x.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.target,n=h().some(e=>e.ref.current?.contains(t)),a=m.isRootMenu&&m.viewport?.contains(t);(n||a||!m.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,x.composeEventHandlers)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ex(e.currentTarget),n=document.activeElement,a=t.findIndex(e=>e===n);ew(e.shiftKey?t.slice(0,a).reverse():t.slice(a+1,t.length))?e.preventDefault():s.current?.focus()}}),onEscapeKeyDown:(0,x.composeEventHandlers)(e.onEscapeKeyDown,e=>{l.current=!0})})})}),em="NavigationMenuViewport",ef=o.forwardRef((e,n)=>{let{forceMount:a,...o}=e,r=!!O(em,e.__scopeNavigationMenu).value;return(0,t.jsx)(C.Presence,{present:a||r,children:(0,t.jsx)(ev,{...o,ref:n})})});
1ef.displayName=em;var ev=o.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,children:r,...i}=e,s=O(em,a),l=(0,j.useComposedRefs)(n,s.onViewportChange),u=U(es,e.__scopeNavigationMenu),[d,c]=o.useState(null),[m,f]=o.useState(null),v=d?d?.width+"px":void 0,g=d?d?.height+"px":void 0,p=!!s.value,h=p?s.value:s.previousValue;return eb(m,()=>{m&&c({width:m.offsetWidth,height:m.offsetHeight})}),(0,t.jsx)(w.Primitive.div,{"data-state":ej(p),"data-orientation":s.orientation,...i,ref:l,style:{pointerEvents:!p&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":v,"--radix-navigation-menu-viewport-height":g,...i.style},onPointerEnter:(0,x.composeEventHandlers)(e.onPointerEnter,s.onContentEnter),onPointerLeave:(0,x.composeEventHandlers)(e.onPointerLeave,eR(s.onContentLeave)),children:Array.from(u.items).map(([e,{ref:n,forceMount:a,...o}])=>{let r=h===e;return(0,t.jsx)(C.Presence,{present:a||r,children:(0,t.jsx)(ec,{...o,ref:(0,j.composeRefs)(n,e=>{r&&e&&f(e)})})},e)})})}),eg=o.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,...o}=e,r=O("FocusGroup",a);return(0,t.jsx)(_.Provider,{scope:a,children:(0,t.jsx)(_.Slot,{scope:a,children:(0,t.jsx)(w.Primitive.div,{dir:r.dir,...o,ref:n})})})}),ep=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],eh=o.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,...o}=e,r=z(a),i=O("FocusGroupItem",a);return(0,t.jsx)(_.ItemSlot,{scope:a,children:(0,t.jsx)(w.Primitive.button,{...o,ref:n,onKeyDown:(0,x.composeEventHandlers)(e.onKeyDown,e=>{if(["Home","End",...ep].includes(e.key)){let t=r().map(e=>e.ref.current);if(["rtl"===i.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),ep.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>ew(t)),e.preventDefault()}})})})});function ex(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ew(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function eb(e,t){let n=(0,P.useCallbackRef)(t);(0,T.useLayoutEffect)(()=>{let t=0;if(e){let a=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(t),a.unobserve(e)}}},[e,n])}function ej(e){return e?"open":"closed"}function eN(e,t){return`${e}-trigger-${t}`}function eC(e,t){return`${e}-content-${t}`}function eR(e){return t=>"mouse"===t.pointerType?e(t):void 0}e.s(["Content",0,el,"Indicator",0,er,"Item",0,Z,"Link",0,ea,"List",0,q,"NavigationMenu",0,$,"NavigationMenuContent",0,el,"NavigationMenuIndicator",0,er,"NavigationMenuItem",0,Z,"NavigationMenuLink",0,ea,"NavigationMenuList",0,q,"NavigationMenuSub",0,G,"NavigationMenuTrigger",0,et,"NavigationMenuViewport",0,ef,"Root",0,$,"Sub",0,G,"Trigger",0,et,"Viewport",0,ef,"createNavigationMenuScope",0,A],52962);var eE=e.i(52962),eE=eE,ey=e.i(632137);function eM({className:e,children:n,viewport:a=!0,...o}){return(0,t.jsxs)(eE.Root,{className:(0,ey.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),"data-slot":"navigation-menu","data-viewport":a,...o,children:[n,a&&(0,t.jsx)(eD,{})]})}function eT({className:e,...n}){return(0,t.jsx)(eE.List,{className:(0,ey.cn)("group flex flex-1 list-none items-center justify-center gap-0",e),"data-slot":"navigation-menu-list",...n})}function eP({className:e,...n}){return(0,t.jsx)(eE.Item,{className:(0,ey.cn)("relative",e),"data-slot":"navigation-menu-item",...n})}let ek=(0,v.cva)("group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted");function eL({className:e,children:n,...a}){return(0,t.jsxs)(eE.Trigger,{className:(0,ey.cn)(ek(),"group",e),"data-slot":"navigation-menu-trigger",...a,children:[n," ",(0,t.jsx)(g.ChevronDownIcon,{"aria-hidden":"true",className:"relative top-px ml-1 size-3 transition duration-300 group-data-popup-open/navigation-menu-trigger:rotate-180 group-data-open/navigation-menu-trigger:rotate-180"})]})}function eI({className:e,...n}){return(0,t.jsx)(eE.Content,{className:(0,ey.cn)("top-0 left-0 w-full p-2 pr-2.5 ease-[
1cubic-bezier(0.22,1,0.36,1)] 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:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:duration-300 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 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95",e),"data-slot":"navigation-menu-content",...n})}function eD({className:e,...n}){return(0,t.jsx)("div",{className:(0,ey.cn)("absolute top-full left-0 isolate z-50 flex justify-center"),children:(0,t.jsx)(eE.Viewport,{className:(0,ey.cn)("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-lg bg-popover text-popover-foreground shadow ring-1 ring-foreground/10 duration-100 md:w-(--radix-navigation-menu-viewport-width) data-open:animate-in data-open:zoom-in-90 data-closed:animate-out data-closed:zoom-out-95",e),"data-slot":"navigation-menu-viewport",...n})})}function eS({className:e,...n}){return(0,t.jsx)(eE.Link,{className:(0,ey.cn)("flex items-center gap-1.5 rounded-sm p-2 text-sm transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 data-[active=true]:bg-muted/50 data-[active=true]:hover:bg-muted data-[active=true]:focus:bg-muted [&_svg:not([class*='size-'])]:size-4",e),"data-slot":"navigation-menu-link",...n})}function e_(){return(0,t.jsx)(eM,{children:(0,t.jsx)(eT,{children:c.siteConfig.header.map((e,n)=>(0,t.jsx)(eP,{children:"trigger"in e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eL,{children:e.trigger}),(0,t.jsx)(eI,{children:(0,t.jsxs)("ul",{className:`grid gap-3 p-6 ${e.content.main?"md:w-[400px] lg:w-[500px] lg:grid-cols-[.75fr_1fr]":"w-[400px] md:w-[500px] md:grid-cols-2 lg:w-[600px]"}`,children:[e.content.main&&(0,t.jsx)("li",{className:"row-span-3",children:(0,t.jsx)(eS,{asChild:!0,children:(0,t.jsxs)(a.default,{className:"flex size-full select-none flex-col justify-end rounded-md bg-primary/10 from-muted/50 to-muted p-6 no-underline outline-none focus:shadow-md",href:e.content.main.href,children:[e.content.main.icon,(0,t.jsx)("div",{className:"mt-4 mb-2 font-medium text-lg",children:e.content.main.title}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm leading-tight",children:e.content.main.description})]})})}),e.content.items.map((e,n)=>(0,t.jsx)(ez,{className:"hover:bg-primary/10",href:e.href,title:e.title,children:e.description},n))]})})]}):(0,t.jsx)(eS,{asChild:!0,className:ek(),children:(0,t.jsx)(a.default,{href:e.href||"",passHref:!0,target:"_self",children:e.title})})},n))})})}let ez=({className:e,title:n,children:a,ref:o,...r})=>(0,t.jsx)("li",{children:(0,t.jsx)(eS,{asChild:!0,children:(0,t.jsxs)("a",{className:(0,m.cn)("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",e),href:r.href||"",ref:o,...r,children:[(0,t.jsx)("div",{className:"font-medium text-sm leading-none",children:n}),(0,t.jsx)("p",{className:"line-clamp-2 text-muted-foreground text-sm leading-snug",children:a})]})})});
1ez.displayName="ListItem",e.s(["Header",0,function(){let[e,r]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let e=()=>{window.scrollY>20?r(!0):r(!1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,t.jsx)("header",{className:(0,m.cn)("fixed top-4 left-4 right-4 max-sm:left-2 max-sm:right-2 max-sm:top-2 z-50 transition-all duration-300 rounded-2xl border",e?"bg-background/80 backdrop-blur-xl border-border shadow-lg py-3 max-sm:py-1":"bg-transparent border-transparent py-4 max-sm:py-2"),children:(0,t.jsxs)("div",{className:"container mx-auto flex items-center justify-between px-4",children:[(0,t.jsx)(a.default,{className:"relative mr-6 flex items-center space-x-2 cursor-pointer transition-transform hover:scale-[1.02]",href:"/",title:"brand-logo",children:(0,t.jsx)(d.LogoFull,{className:"h-9 w-auto max-sm:h-7 flex-row flex items-center"})}),(0,t.jsx)("div",{className:"hidden lg:block",children:(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("nav",{className:"mr-10",children:(0,t.jsx)(e_,{})}),(0,t.jsx)("div",{className:"flex gap-4",children:(0,t.jsxs)(a.default,{className:(0,m.cn)((0,n.buttonVariants)({size:"lg"}),"h-11 rounded-xl bg-blue-600 px-6 font-bold text-white shadow-lg shadow-blue-500/20 transition-all hover:scale-[1.02] hover:shadow-blue-500/30 cursor-pointer [&_svg]:size-5"),"data-umami-event":"click-header-cta",href:"/dashboard/customs",children:[(0,t.jsx)(d.Logo,{className:"size-5 text-white"}),"Dùng thử miễn phí"]})})]})}),(0,t.jsx)("div",{className:"mt-2 block cursor-pointer lg:hidden",children:(0,t.jsx)(f,{})})]})})}],403691)}]);

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.