PageSourceSearch

https://www.kharja.net/_next/static/chunks/0bkt1x45zcw8j.js

js kharja.net collected 2026-10-02 01:05:47 UTC 59,306 bytes, 11 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36254,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let n=(0,r.createContext)({collapsed:!1,setCollapsed:()=>{}});e.s(["NavbarProvider",0,({children:e})=>{let[a,o]=(0,r.useState)(!1);return(0,t.jsx)(n.Provider,{value:{collapsed:a,setCollapsed:o},children:e})},"useNavbar",0,()=>(0,r.useContext)(n)])},72776,e=>{"use strict";var t=e.i(43476),r=e.i(18566),n=t,a=e.i(71645),o=e.i(67881),i=e.i(74080),s=e.i(30030),l=e.i(81140),c=e.i(48425),u=e.i(69340),d=e.i(20783),f=e.i(86318),m=e.i(96626),p=e.i(10772),h=e.i(75830),g=e.i(88545),v=e.i(99682),x=e.i(34620),b=e.i(30207),y=e.i(59411),w="NavigationMenu",[j,_,E]=(0,h.createCollection)(w),[N,C,k]=(0,h.createCollection)(w),[P,O]=(0,s.createContextScope)(w,[E,k]),[M,T]=P(w),[S,R]=P(w),L=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:o,onValueChange:i,defaultValue:s,delayDuration:l=200,skipDelayDuration:m=300,orientation:p="horizontal",dir:h,...g}=e,[v,x]=a.useState(null),b=(0,d.useComposedRefs)(r,e=>x(e)),y=(0,f.useDirection)(h),j=a.useRef(0),_=a.useRef(0),E=a.useRef(0),[N,C]=a.useState(!0),[k,P]=(0,u.useControllableState)({prop:o,onChange:e=>{let t=m>0;""!==e?(window.clearTimeout(E.current),t&&C(!1)):(window.clearTimeout(E.current),E.current=window.setTimeout(()=>C(!0),m)),i?.(e)},defaultProp:s??"",caller:w}),O=a.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>P(""),150)},[P]),M=a.useCallback(e=>{window.clearTimeout(_.current),P(e)},[P]),T=a.useCallback(e=>{k===e?window.clearTimeout(_.current):j.current=window.setTimeout(()=>{window.clearTimeout(_.current),P(e)},l)},[k,P,l]);return a.useEffect(()=>()=>{window.clearTimeout(j.current),window.clearTimeout(_.current),window.clearTimeout(E.current)},[]),(0,t.jsx)(I,{scope:n,isRootMenu:!0,value:k,dir:y,orientation:p,rootNavigationMenu:v,onTriggerEnter:e=>{window.clearTimeout(j.current),N?T(e):M(e)},onTriggerLeave:()=>{window.clearTimeout(j.current),O()},onContentEnter:()=>window.clearTimeout(_.current),onContentLeave:O,onItemSelect:e=>{P(t=>t===e?"":e)},onItemDismiss:()=>P(""),children:(0,t.jsx)(c.Primitive.nav,{"aria-label":"Main","data-orientation":p,dir:y,...g,ref:b})})});L.displayName=w;var A="NavigationMenuSub";a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:a,onValueChange:o,defaultValue:i,orientation:s="horizontal",...l}=e,d=T(A,n),[f,m]=(0,u.useControllableState)({prop:a,onChange:o,defaultProp:i??"",caller:A});return(0,t.jsx)(I,{scope:n,isRootMenu:!1,value:f,dir:d.dir,orientation:s,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:e=>m(e),onItemSelect:e=>m(e),onItemDismiss:()=>m(""),children:(0,t.jsx)(c.Primitive.div,{"data-orientation":s,...l,ref:r})})}).displayName=A;var I=e=>{let{scope:r,isRootMenu:n,rootNavigationMenu:o,dir:i,orientation:s,children:l,value:c,onItemSelect:u,onItemDismiss:d,onTriggerEnter:f,onTriggerLeave:m,onContentEnter:h,onContentLeave:g}=e,[x,y]=a.useState(null),[w,_]=a.useState(new Map),[E,N]=a.useState(null);return(0,t.jsx)(M,{scope:r,isRootMenu:n,rootNavigationMenu:o,value:c,previousValue:(0,v.usePrevious)(c),baseId:(0,p.useId)(),dir:i,orientation:s,viewport:x,onViewportChange:y,indicatorTrack:E,onIndicatorTrackChange:N,onTriggerEnter:(0,b.useCallbackRef)(f),onTriggerLeave:(0,b.useCallbackRef)(m),onContentEnter:(0,b.useCallbackRef)(h),onContentLeave:(0,b.useCallbackRef)(g),onItemSelect:(0,b.useCallbackRef)(u),onItemDismiss:(0,b.useCallbackRef)(d),onViewportContentChange:a.useCallback((e,t)=>{_(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:a.useCallback(e=>{_(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,t.jsx)(j.Provider,{scope:r,children:(0,t.jsx)(S,{scope:r,items:w,children:l})})})},$="NavigationMenuList",z=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,...a}=e,o=T($,n),i=(0,t.jsx)(c.Primitive.ul,{"data-orientation":o.orientation,...a,ref:r});return(0,t.jsx)(c.Primitive.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,t.jsx)(j.Slot,{scope:n,children:o.isRootMenu?(0,t.jsx)(et,{asChild:!0,children:i}):i}
1)})});z.displayName=$;var H="NavigationMenuItem",[D,G]=P(H),F=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:o,...i}=e,s=(0,p.useId)(),l=a.useRef(null),u=a.useRef(null),d=a.useRef(null),f=a.useRef(()=>{}),m=a.useRef(!1),h=a.useCallback((e="start")=>{if(l.current){f.current();let t=ea(l.current);t.length&&eo("start"===e?t:t.reverse())}},[]),g=a.useCallback(()=>{if(l.current){var e;let t=ea(l.current);t.length&&((e=t).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),f.current=()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})})}},[]);return(0,t.jsx)(D,{scope:n,value:o||s||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:l,focusProxyRef:d,wasEscapeCloseRef:m,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:g,onContentFocusOutside:g,children:(0,t.jsx)(c.Primitive.li,{...i,ref:r})})});F.displayName=H;var U="NavigationMenuTrigger";a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,disabled:o,...i}=e,s=T(U,e.__scopeNavigationMenu),u=G(U,e.__scopeNavigationMenu),f=a.useRef(null),m=(0,d.useComposedRefs)(f,u.triggerRef,r),p=el(s.baseId,u.value),h=ec(s.baseId,u.value),g=a.useRef(!1),v=a.useRef(!1),x=u.value===s.value;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.ItemSlot,{scope:n,value:u.value,children:(0,t.jsx)(en,{asChild:!0,children:(0,t.jsx)(c.Primitive.button,{id:p,disabled:o,"data-disabled":o?"":void 0,"data-state":es(x),"aria-expanded":x,"aria-controls":h,...i,ref:m,onPointerEnter:(0,l.composeEventHandlers)(e.onPointerEnter,()=>{v.current=!1,u.wasEscapeCloseRef.current=!1}),onPointerMove:(0,l.composeEventHandlers)(e.onPointerMove,eu(()=>{o||v.current||u.wasEscapeCloseRef.current||g.current||(s.onTriggerEnter(u.value),g.current=!0)})),onPointerLeave:(0,l.composeEventHandlers)(e.onPointerLeave,eu(()=>{o||(s.onTriggerLeave(),g.current=!1)})),onClick:(0,l.composeEventHandlers)(e.onClick,()=>{s.onItemSelect(u.value),v.current=x}),onKeyDown:(0,l.composeEventHandlers)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===s.dir?"ArrowLeft":"ArrowRight"}[s.orientation];x&&e.key===t&&(u.onEntryKeyDown(),e.preventDefault())})})})}),x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y.Root,{"aria-hidden":!0,tabIndex:0,ref:u.focu
1sProxyRef,onFocus:e=>{let t=u.contentRef.current,r=e.relatedTarget,n=r===f.current,a=t?.contains(r);(n||!a)&&u.onFocusProxyEnter(n?"start":"end")}}),s.viewport&&(0,t.jsx)("span",{"aria-owns":h})]})]})}).displayName=U;var K="navigationMenu.linkSelect",B=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,active:a,onSelect:o,...i}=e;return(0,t.jsx)(en,{asChild:!0,children:(0,t.jsx)(c.Primitive.a,{"data-active":a?"":void 0,"aria-current":a?"page":void 0,...i,ref:r,onClick:(0,l.composeEventHandlers)(e.onClick,e=>{let t=e.target,r=new CustomEvent(K,{bubbles:!0,cancelable:!0});if(t.addEventListener(K,e=>o?.(e),{once:!0}),(0,c.dispatchDiscreteCustomEvent)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(J,{bubbles:!0,cancelable:!0});(0,c.dispatchDiscreteCustomEvent)(t,e)}},{checkForDefaultPrevented:!1})})})});B.displayName="NavigationMenuLink";var q="NavigationMenuIndicator";a.forwardRef((e,r)=>{let{forceMount:n,...a}=e,o=T(q,e.__scopeNavigationMenu),s=!!o.value;return o.indicatorTrack?i.default.createPortal((0,t.jsx)(m.Presence,{present:n||s,children:(0,t.jsx)(W,{...a,ref:r})}),o.indicatorTrack):null}).displayName=q;var W=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,...o}=e,i=T(q,n),s=_(n),[l,u]=a.useState(null),[d,f]=a.useState(null),m="horizontal"===i.orientation,p=!!i.value;a.useEffect(()=>{let e=s(),t=e.find(e=>e.value===i.value)?.ref.current;t&&u(t)},[s,i.value]);let h=()=>{l&&f({size:m?l.offsetWidth:l.offsetHeight,offset:m?l.offsetLeft:l.offsetTop})};return ei(l,h),ei(i.indicatorTrack,h),d?(0,t.jsx)(c.Primitive.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":i.orientation,...o,ref:r,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)`},...o.style}}):null}),V="NavigationMenuContent";a.forwardRef((e,r)=>{let{forceMount:n,...a}=e,o=T(V,e.__scopeNavigationMenu),i=G(V,e.__scopeNavigationMenu),s=(0,d.useComposedRefs)(i.contentRef,r),c=i.value===o.value,u={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...a};return o.viewport?(0,t.jsx)(Y,{forceMount:n,...u,ref:s}):(0,t.jsx)(m.Presence,{present:n||c,children:(0,t.jsx)(Z,{"data-state":es(c),...u,ref:s,onPointerEnter:(0,l.composeEventHandlers)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,l.composeEventHandlers)(e.onPointerLeave,eu(o.onContentLeave)),style:{pointerEvents:!c&&o.isRootMenu?"none":void 0,...u.style}})})}).displayName=V;var Y=a.forwardRef((e,t)=>{let{onViewportContentChange:r,onViewportContentRemove:n}=T(V,e.__scopeNavigationMenu);return(0,x.useLayoutEffect)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,x.useLayoutEffect)(()=>()=>n(e.value),[e.value,n]),null}),J="navigationMenu.rootContentDismiss",Z=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:o,triggerRef:i,focusProxyRef:s,wasEscapeCloseRef:c,onRootContentClose:u,onContentFocusOutside:f,...m}=e,p=T(V,n),h=a.useRef(null),v=(0,d.useComposedRefs)(h,r),x=el(p.baseId,o),b=ec(p.baseId,o),y=_(n),w=a.useRef(null),{onItemDismiss:j}=p;a.useEffect(()=>{let e=h.current;if(p.isRootMenu&&e){let t=()=>{j(),u(),e.contains(document.activeElement)&&i.current?.focus()};return e.addEventListener(J,t),()=>e.removeEventListener(J,t)}},[p.isRootMenu,e.value,i,j,u]);let E=a.useMemo(()=>{let e=y().map(e=>e.value);"rtl"===p.dir&&e.reverse();let t=e.indexOf(p.value),r=e.indexOf(p.previousValue),n=o===p.value,a=r===e.indexOf(o);if(!n&&!a)return w.current;let i=(()=>{if(t!==r){if(n&&-1!==r)return t>r?"from-end":"from-start";if(a&&-1!==t)return t>r?"to-start":"to-end"}return null})();return w.current=i,i},[p.previousValue,p.value,p.dir,y,o]);return(0,t.jsx)(et,{asChild:!0,children:(0,t.jsx)(g.DismissableLayer,{id:b,"aria-labelledby":x,"data-motion":E,"data-orientation":p.orientation,...m,ref:v,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(J,{bubbles:!0,cancelable:!0});h.current?.dispatchEvent(e)},onFocusOutside:(0,l.composeEventHandlers)(e.onFocusOutside,e=>{f();let t=e.target;p.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,l.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.target,r=y().some(e=>e.ref.current?.contains(t)),n=p.isRootMenu&&p.viewport?.contains(t);(r||n||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,l.composeEventHandlers)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ea(e.currentTarget),r=document.activeElement,n=t.findIndex(e=>e===r);eo(e.shiftKey?t.slice(0,n).reverse():t.slice(n+1,t.length))?e.preventDefault():s.current?.focus()}}),onEscapeKeyDown:(0,l.composeEventHandlers)(e.onEscapeKeyDown,e=>{c.current=!0})})})}),X="NavigationMenuViewport",Q=a.forwardRef((e,r)=>{let{forceMount:n,...a}=e,o=!!T(X,e.__scopeNavigationMenu).value;return(0,t.jsx)(m.Presence,{present:n||o,children:(0,t.jsx)(ee,{...a,ref:r})})});Q.displayName=X;var ee=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,children:o,...i}=e,s=T(X,n),u=(0,d.useComposedRefs)(r,s.onViewportChange),f=R(V,e.__scopeNavigationMenu),[p,h]=a.use
1State(null),[g,v]=a.useState(null),x=p?p?.width+"px":void 0,b=p?p?.height+"px":void 0,y=!!s.value,w=y?s.value:s.previousValue;return ei(g,()=>{g&&h({width:g.offsetWidth,height:g.offsetHeight})}),(0,t.jsx)(c.Primitive.div,{"data-state":es(y),"data-orientation":s.orientation,...i,ref:u,style:{pointerEvents:!y&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":x,"--radix-navigation-menu-viewport-height":b,...i.style},onPointerEnter:(0,l.composeEventHandlers)(e.onPointerEnter,s.onContentEnter),onPointerLeave:(0,l.composeEventHandlers)(e.onPointerLeave,eu(s.onContentLeave)),children:Array.from(f.items).map(([e,{ref:r,forceMount:n,...a}])=>{let o=w===e;return(0,t.jsx)(m.Presence,{present:n||o,children:(0,t.jsx)(Z,{...a,ref:(0,d.composeRefs)(r,e=>{o&&e&&v(e)})})},e)})})}),et=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,...a}=e,o=T("FocusGroup",n);return(0,t.jsx)(N.Provider,{scope:n,children:(0,t.jsx)(N.Slot,{scope:n,children:(0,t.jsx)(c.Primitive.div,{dir:o.dir,...a,ref:r})})})}),er=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],en=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,...a}=e,o=C(n),i=T("FocusGroupItem",n);return(0,t.jsx)(N.ItemSlot,{scope:n,children:(0,t.jsx)(c.Primitive.button,{...a,ref:r,onKeyDown:(0,l.composeEventHandlers)(e.onKeyDown,e=>{if(["Home","End",...er].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===i.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),er.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>eo(t)),e.preventDefault()}})})})});function ea(e){let t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t}function eo(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ei(e,t){let r=(0,b.useCallbackRef)(t);(0,x.useLayoutEffect)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}function es(e){return e?"open":"closed"}function el(e,t){return`${e}-trigger-${t}`}function ec(e,t){return`${e}-content-${t}`}function eu(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ed=e.i(25913);e.i(9797);var ef=e.i(47163);function em({className:e,children:r,viewport:n=!0,...a}){return(0,t.jsxs)(L,{"data-slot":"navigation-menu","data-viewport":n,className:(0,ef.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),...a,children:[r,n&&(0,t.jsx)(eg,{})]})}function ep({className:e,...r}){return(0,t.jsx)(z,{"data-slot":"navigation-menu-list",className:(0,ef.cn)("group flex flex-1 list-none items-center justify-center gap-1",e),...r})}function eh({className:e,...r}){return(0,t.jsx)(F,{"data-slot":"navigation-menu-item",className:(0,ef.cn)("relative",e),...r})}function eg({className:e,...r}){return(0,t.jsx)("div",{className:(0,ef.cn)("absolute top-full left-0 isolate z-50 flex justify-center"),children:(0,t.jsx)(Q,{"data-slot":"navigation-menu-viewport",className:(0,ef.cn)("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),...r})})}function ev({className:e,...r}){return(0,t.jsx)(B,{"data-slot":"navigation-menu-link",className:(0,ef.cn)("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 hover:bg-accent hover:text-accent-foreground focus:bg-accent focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",e),...r})}(0,ed.cva)("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-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focu
1s-visible:ring-[3px] focus-visible:outline-1");var ex=e.i(59377),eb=e.i(57688);let ey=({className:e})=>(0,t.jsx)("div",{className:`${e}`,children:(0,t.jsx)(eb.default,{src:"/kharjaIconVector.svg",alt:"Kharja Icon",width:200,height:10,className:"h-8 w-auto select-none pointer-events-none"})});var ew=e.i(22016);let ej=({className:e,...t})=>(0,n.jsxs)("svg",{className:(0,ef.cn)("pointer-events-none",e),width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,n.jsx)("path",{d:"M4 12L20 12",className:"origin-center -translate-y-[7px] transition-all duration-300 ease-[cubic-bezier(.5,.85,.25,1.1)] group-aria-expanded:translate-x-0 group-aria-expanded:translate-y-0 group-aria-expanded:rotate-[315deg]"}),(0,n.jsx)("path",{d:"M4 12H20",className:"origin-center transition-all duration-300 ease-[cubic-bezier(.5,.85,.25,1.8)] group-aria-expanded:rotate-45"}),(0,n.jsx)("path",{d:"M4 12H20",className:"origin-center translate-y-[7px] transition-all duration-300 ease-[cubic-bezier(.5,.85,.25,1.1)] group-aria-expanded:translate-y-0 group-aria-expanded:rotate-[135deg]"})]}),e_=[{href:"#",label:"Home",active:!0},{href:"#",label:"Features"},{href:"#",label:"Pricing"},{href:"#",label:"About"}],eE=a.forwardRef(({className:e,logo:t=(0,n.jsx)(ey,{}),logoHref:r="#",navigationLinks:i=e_,signInText:s="Sign In",signInHref:l="#signin",ctaText:c="Get Started",ctaHref:u="#get-started",rightContent:d,onSignInClick:f,onCtaClick:m,dir:p,...h},g)=>{let[v,x]=(0,a.useState)(!1),[b,y]=(0,a.useState)(!1),w=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=()=>{w.current&&x(w.current.offsetWidth<768)};e();let t=new ResizeObserver(e);return w.current&&t.observe(w.current),()=>{t.disconnect()}},[]);let j=a.useCallback(e=>{w.current=e,"function"==typeof g?g(e):g&&(g.current=e)},[g]);return(0,n.jsx)("header",{ref:j,className:(0,ef.cn)("sticky top-0 z-50 w-full border-b bg-primary px-4 md:px-6 [&_*]:no-underline",e),...h,children:(0,n.jsxs)("div",{className:"container mx-auto flex h-16 max-w-screen-2xl items-center justify-between gap-4",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[v&&(0,n.jsxs)(ex.Popover,{open:b,onOpenChange:y,children:[(0,n.jsx)(ex.PopoverTrigger,{asChild:!0,children:(0,n.jsx)(o.Button,{className:"group h-9 w-9 hover:bg-accent text-primary-foreground hover:text-accent-foreground",variant:"ghost",size:"icon",children:(0,n.jsx)(ej,{})})}),(0,n.jsx)(ex.PopoverContent,{align:"start",className:"w-64 p-1 bg-primary text-white border border-primary/60",children:(0,n.jsx)(em,{className:"max-w-none",dir:p,children:(0,n.jsx)(ep,{className:"flex-col items-start gap-0",children:i.map((e,t)=>(0,n.jsx)(eh,{className:"w-full",children:(0,n.jsxs)(ew.default,{href:e.href||"#",target:e.target,rel:e.rel,onClick:()=>y(!1),className:(0,ef.cn)("flex flex-row w-full items-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-colors bg-primary hover:text-secondary focus:text-secondary cursor-pointer no-underline",e.active&&"bg-secondary/20 text-white font-semibold"),children:[e.icon,e.label]})},t))})})})]}),(0,n.jsxs)("div",{className:"flex items-center gap-6",children:[(0,n.jsx)(ew.default,{href:r,className:"flex items-center space-x-2 text-primary-foreground hover:text-primary/90 transition-colors cursor-pointer",children:t}),!v&&(0,n.jsx)(em,{className:"flex",dir:p,children:(0,n.jsx)(ep,{className:"gap-1",children:i.map((e,t)=>(0,n.jsx)(eh,{children:(0,n.jsx)(ev,{asChild:!0,children:(0,n.jsxs)(ew.default,{href:e.href||"#",target:e.target,rel:e.rel,className:(0,ef.cn)("group inline-flex flex-row h-10 w-max items-center justify-center gap-2 rounded-md  px-4 py-2 text-sm font-medium transition-colors focus:outline-none disabled:pointer-events-none disabled:opacity-50 cursor-pointer relative","before:absolute before:bottom-0 before:left-0 before:right-0 before:h-0.5 before:bg-secondary before:scale-x-0 before:transition-transform before:duration-300 hover:before:scale-x-100",e.active?"text-primary-foreground before:scale-x-100 font-semibold":"text-primary-foreground bg-primary hover:text-secondary focus:text-primary-foreground"),"data-active":e.active,children:[e.icon,e.label]})})},t))})})]})]}),(0,n.jsx)("div",{className:"flex items-center gap-3",children:d||(0,n.jsxs)(n.Fragment,{children:[f?(0,n.jsx)(o.Button,{variant:"ghost",size:"sm",className:"text-sm font-medium hover:bg-accent hover:text-accent-foreground",onClick:f,children:s}):l?(0,n.jsx)(ew.default,{href:l,children:(0,n.jsx)(o.Button,{variant:"ghost",size:"sm",className:"text-sm font-medium hover:bg-accent hover:text-accent-foreground",children:s})}):null,m?(0,n.jsx)(o.Button,{size:"sm",className:"text-sm font-medium px-4 h-9 rounded-md shadow-sm",onClick:m,children:c}):u?(0,n.jsx)(ew.default,{href:u,children:(0,n.jsx)(o.Button,{size:"sm",className:"text-sm font-medium px-4 h-9 rounded-md shadow-sm",children:c})}):null]})})]})})});eE.displayName="Navbar03";let eN=function(){let e=(0,r.usePathname)(),[n,o]=(0,a.useTransition)();function i(t){let r=`/${t}${e.substring(3)}`;o(()=>s.push(r))}let s=(0,r.useRouter)(),l=e.split("/")[1]||"en";return(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{onClick:()=>i("en"),className:`px-4 py-2 rounded-lg transition-colors english ${"en"===l?"bg-secondary text-secondary-foreground":"bg-gray-700 text-primary-foreground hover:bg-gray-600"}`,children:"EN"}),(0,t.jsx)("button",{onClick:()=>i("ar"),className:`px-4 py-2 rounded-lg transition-colors english ${"ar"===l?"bg-secondary text-secondary-foreground":"bg-gray-700 text-primary-foreground hover:bg-gray-600"}`,children:"AR"})]})};var eC=e.i(50187),ek=e.i(48719);let eP=()=>(0,t.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-t-transparent border-secondary"});e.i(51718);var eO=e.i(63316),eM=e.i(92747),eT=e.i(48148);function eS({locale:e}){let n=(0,r.useRouter)(),a=(0,eT.useTranslations)(),{firebaseUser:o}=(0,ek.useUser)(),i=async()=>{await (0,eO.signOut)(eM.auth),n.push(`/${e}/login`)};return o?(0,t.jsx)("button",{onClick:i,className:"block mt-2 text-sm font-semibold text-input relative  min-w-0 items-center gap-3 rounded-lg p-2 text-left  hover:text-secondary/80 active:text-secondary",children:a("Logout.button")}):null}var eR=e.i(36254),eL=e.i(62911);let eA=[{name:"Home",href:"/"},{name:"About Us",href:"/about"},{name:"Explore",href:"/explore"},{name:"Announcements",href:"/viewAnnouncements"},{name:"Contact Us",href:"/contactUs"},{name:"Login",href:"/login"},{name:"For Business",href:"/business"}];e.s(["default",0,function(){let e=(0,r.usePathname)();(0,r.useRouter)();
1let{collapsed:n}=(0,eR.useNavbar)(),{user:a,firebaseUser:i,loading:s}=(0,ek.useUser)(),l=e.split("/")[1]||"en",c=(0,eC.getMessages)(l),u={Home:c.Home.title,"About Us":c.AboutUs.title,Announcements:c.Announcements.feed,"Contact Us":c.ContactUs.title,Login:c.Login.title,Logout:c.Logout.button,Profile:c.Profile.title,"For Business":c.ForBusiness?.title||"For Business",Explore:c.ExplorePage?.title||"Explore"},d=((e,t)=>{if(e&&t){let e=eA.filter(e=>"Login"!==e.name);return e.push({name:"Profile",href:`/profile/${t}`}),e}return eA})(i,a?.username).filter(e=>"Login"!==e.name).map(r=>{let n=r.href.startsWith("http"),a=n?r.href:`/${l}${r.href}`,o="/"===r.href?e===`/${l}`||e===`/${l}/`:!n&&e.endsWith(r.href);return{href:a,label:u[r.name],active:o,icon:"For Business"===r.name?(0,t.jsx)(eL.BriefcaseBusiness,{className:"text-current",size:18}):void 0,...n?{target:"_blank",rel:"noopener noreferrer"}:{}}});return!i||a||i.isAnonymous?(0,t.jsx)(eE,{dir:"ar"===l?"rtl":"ltr",className:`${n?"h-6":""} transition-all duration-300`,logoHref:`/${l}`,navigationLinks:d,rightContent:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[!n&&(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsx)(eN,{})}),n?null:s?(0,t.jsx)(eP,{}):a&&i?(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(ew.default,{href:`/${l}/profile/${a.username}`,className:"flex items-center gap-2",children:(0,t.jsx)(eb.default,{src:a.photoUrl||"/default-avatar.png",alt:"Profile",width:32,height:32,className:"w-8 h-8 rounded-full object-cover border-2 border-white select-none pointer-events-none"})}),(0,t.jsx)(eS,{locale:l})]}):(0,t.jsx)(ew.default,{href:`/${l}/login`,children:(0,t.jsx)(o.Button,{variant:"ghost",size:"sm",className:"text-sm text-primary-foreground font-medium hover:bg-accent hover:text-accent-foreground",children:c.Login.title})})]})}):(0,t.jsx)("div",{className:"fixed top-0 left-0 w-full bg-background shadow-md z-50",children:(0,t.jsxs)("div",{className:"container mx-auto flex h-16 items-center justify-between px-4 md:px-6",children:[!n&&(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsx)(eN,{})}),(0,t.jsx)(eS,{locale:l})]})})}],72776)},76841,e=>{"use strict";var t=e.i(43476),r=e.i(97347),n=e.i(12023),a=e.i(3867),o=e.i(50187),i=e.i(71645),s=e.i(64659),l=e.i(55900);let c=[{name:"Instagram",href:"https://www.instagram.com/thekharja/",icon:e=>(0,t.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z",clipRule:"evenodd"})})}
1,{name:"X",href:"https://x.com/thekharja/",icon:e=>(0,t.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,t.jsx)("path",{d:"M13.6823 10.6218L20.2391 3H18.6854L12.9921 9.61788L8.44486 3H3.2002L10.0765 13.0074L3.2002 21H4.75404L10.7663 14.0113L15.5685 21H20.8131L13.6819 10.6218H13.6823ZM11.5541 13.0956L10.8574 12.0991L5.31391 4.16971H7.70053L12.1742 10.5689L12.8709 11.5655L18.6861 19.8835H16.2995L11.5541 13.096V13.0956Z"})})},{name:"LinkedIn",href:"https://www.linkedin.com/company/kharja",icon:e=>(0,t.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,t.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.049c.476-.9 1.637-1.852 3.367-1.852 3.602 0 4.266 2.37 4.266 5.458v6.285ZM5.337 7.433c-1.145 0-2.074-.93-2.074-2.074s.929-2.074 2.074-2.074c1.144 0 2.074.93 2.074 2.074s-.93 2.074-2.074 2.074Zm1.777 13.019H3.559V9h3.555v11.452Z"})})}];e.s(["default",0,function({locale:e}){let[u,d]=(0,i.useState)(!1),[f,m]=(0,i.useState)(!1),p=(0,o.getMessages)(e),h=e=>p.Footer?.[e]||e;return(0,t.jsxs)("footer",{className:"bg-gray-900 text-white border-t border-gray-700 w-full",children:[(0,t.jsx)("div",{className:"container mx-auto px-4 pt-6 pb-4 border-b border-gray-700",children:(0,t.jsx)("div",{className:"flex justify-center space-x-6",children:c.map(e=>(0,t.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"text-white hover:text-secondary-1 transition-colors","aria-label":e.name,children:[(0,t.jsx)("span",{className:"sr-only",children:e.name}),(0,t.jsx)(e.icon,{className:"h-6 w-6","aria-hidden":"true"})]},e.name))})}),(0,t.jsxs)("div",{className:`container mx-auto flex flex-col md:flex-row justify-between items-center px-4 ${u?"py-2":"p-4"}`,children:[!u&&(0,t.jsxs)("div",{className:"w-full md:w-auto",children:[(0,t.jsx)("h3",{className:"text-lg english font-semibold cursor-pointer hover:text-gray-300 transition md:cursor-default md:hover:text-white",onClick:()=>m(!0),children:p.Footer.downloadApp}),(0,t.jsx)("p",{className:"text-sm english text-gray-400",children:p.Footer.availableOn}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 mt-4 md:hidden w-full items-center",children:[(0,t.jsx)("div",{className:"w-full flex justify-center",children:(0,t.jsx)(r.default,{locale:e})}),(0,t.jsx)("div",{className:"w-full flex justify-center",children:(0,t.jsx)(n.default,{locale:e})})]})]}),(0,t.jsxs)("div",{className:`flex flex-col md:flex-row items-center gap-3 ${"ar"===e?"mr-auto md:mr-0":"ml-auto md:ml-0"}`,children:[!u&&(0,t.jsxs)("div",{className:"hidden md:flex items-center gap-3",children:[(0,t.jsx)(r.default,{locale:e}),(0,t.jsx)(n.default,{locale:e})]}),(0,t.jsx)("button",{onClick:()=>d(e=>!e),className:"text-gray-400 hover:text-white transition","aria-label":"Toggle Footer",children:u?(0,t.jsx)(l.ChevronUp,{size:20}):(0,t.jsx)(s.ChevronDown,{size:20})})]})]}),!u&&(0,t.jsxs)("div",{className:"container mx-auto px-4 pb-6 border-t border-gray-700/50 pt-4 mt-2",children:[(0,t.jsxs)("div",{className:`flex flex-wrap justify-center gap-x-8 gap-y-2 text-sm text-gray-400 ${"ar"===e?"flex-row-reverse":""}`,children:[(0,t.jsx)("a",{href:`/${e}/termsAndConditions`,className:"hover:text-white transition-colors",children:h("termsAndConditions")}),(0,t.jsx)("a",{href:`/${e}/privacyPolicy`,className:"hover:text-white transition-colors",children:h("privacyPolicy")})]}),(0,t.jsxs)("p",{className:"text-center text-xs text-gray-500 mt-4",children:["© ",new Date().getFullYear()," Kharja. All rights reserved."]})]}),(0,t.jsx)(a.default,{open:f,onOpenChange:m,locale:e,t:h})]})}])},18953,e=>{"use strict";var t=e.i(43476),r=e.i(48719),n=e.i(61745);function a({locale:e,...r}){if(!e)throw Error(void 0);return(0,t.jsx)(n.IntlProvider,{locale:e,...r})}var o=e.i(36254),i=e.i(71645),s=e.i(18566);function l({locale:e}){let{user:t,firebaseUser:n,loading:a}=(0,r.useUser)(),o=(0,s.useRouter)(),c=(0,s.usePathname)();return(0,i.useEffect)(()=>{a||!n||n.isAnonymous||t||c.includes("/signup")||o.push(`/${e}/signup`)},[a,n,t,o,c,e]),null}var c=e.i(94580),u=e.i(9869);function d(){let t=(0,s.usePathname)();return(0,i.useEffect)(()=>{c.logger.log("AnalyticsProvider logging page_view for",t),(async()=>{let r=await (0,u.getAnalyticsSafe)();if(!r)return;let{logEvent:n}=await e.A(81809);n(r,"page_view",{page_path:t})})()},[t]),null}var f=e.i(46696),m=(e,t,r,n,a,o,i,s)=>
1{let l=document.documentElement,c=["light","dark"];function u(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&o?a.map(e=>o[e]||e):a;r?(l.classList.remove(...n),l.classList.add(o&&o[t]?o[t]:t)):l.setAttribute(e,t)}),r=t,s&&c.includes(r)&&(l.style.colorScheme=r)}if(n)u(n);else try{let e=localStorage.getItem(t)||r,n=i&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;u(n)}catch(e){}},p=["light","dark"],h="(prefers-color-scheme: dark)",g="u"<typeof window,v=i.createContext(void 0),x=e=>i.useContext(v)?i.createElement(i.Fragment,null,e.children):i.createElement(y,{...e}),b=["light","dark"],y=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:a="theme",themes:o=b,defaultTheme:s=r?"system":"light",attribute:l="data-theme",value:c,children:u,nonce:d,scriptProps:f})=>{let[m,g]=i.useState(()=>j(a,s)),[x,y]=i.useState(()=>"system"===m?E():m),N=c?Object.values(c):o,C=i.useCallback(e=>{let a=e;if(!a)return;"system"===e&&r&&(a=E());let o=c?c[a]:a,i=t?_(d):null,u=document.documentElement,f=e=>{"class"===e?(u.classList.remove(...N),o&&u.classList.add(o)):e.startsWith("data-")&&(o?u.setAttribute(e,o):u.removeAttribute(e))};if(Array.isArray(l)?l.forEach(f):f(l),n){let e=p.includes(s)?s:null,t=p.includes(a)?a:e;u.style.colorScheme=t}null==i||i()},[d]),k=i.useCallback(e=>{let t="function"==typeof e?e(m):e;g(t);try{localStorage.setItem(a,t)}catch(e){}},[m]),P=i.useCallback(t=>{y(E(t)),"system"===m&&r&&!e&&C("system")},[m,e]);i.useEffect(()=>{let e=window.matchMedia(h);return e.addListener(P),P(e),()=>e.removeListener(P)},[P]),i.useEffect(()=>{let e=e=>{e.key===a&&(e.newValue?g(e.newValue):k(s))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[k]),i.useEffect(()=>{C(null!=e?e:m)},[e,m]);let O=i.useMemo(()=>({theme:m,setTheme:k,forcedTheme:e,resolvedTheme:"system"===m?x:m,themes:r?[...o,"system"]:o,systemTheme:r?x:void 0}),[m,k,e,x,r,o]);return i.createElement(v.Provider,{value:O},i.createElement(w,{forcedTheme:e,storageKey:a,attribute:l,enableSystem:r,enableColorScheme:n,defaultTheme:s,value:c,themes:o,nonce:d,scriptProps:f}),u)},w=i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:a,defaultTheme:o,value:s,themes:l,nonce:c,scriptProps:u})=>{let d=JSON.stringify([r,t,o,e,l,s,n,a]).slice(1,-1);return i.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"u"<typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${m.toString()})(${d})`}})}),j=(e,t)=>{let r;if(!g){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},_=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},E=e=>(e||(e=window.matchMedia(h)),e.matches?"dark":"light");e.s(["default",0,function({children:e,locale:n,messages:i}){return(0,t.jsx)(o.NavbarProvider,{children:(0,t.jsx)(r.UserProvider,{children:(0,t.jsx)(a,{locale:n,messages:i,timeZone:"Asia/Riyadh",children:(0,t.jsxs)(x,{attribute:"class",defaultTheme:"light",enableSystem:!0,disableTransitionOnChange:!0,children:[(0,t.jsx)(l,{locale:n}),e,(0,t.jsx)(d,{}),(0,t.jsx)(f.Toaster,{position:"top-center",richColors:!0})]})})})})}],18953)},84297,(e,t,r)=>{t.exports={id:"google-analytics",description:"Install a Google Analytics tag on your website",website:"https://analytics.google.com/analytics/web/",scripts:[{url:"https://www.googletagmanager.com/gtag/js",params:["id"],strategy:"worker",location:"head",action:"append"},{code:"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag('js',new Date());gtag('config','${args.id}')",strategy:"worker",location:"head",action:"append"}]}},92135,(e,t,r)=>{"use strict";function n(e,t,r=!1){return t?Object.keys(e).filter(e=>r?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function a(e,t,r,n){let a=n&&Object.keys(n).length>0?new URL(Object.values(n)[0],e):new URL(e);
1return t&&r&&t.forEach(e=>{r[e]&&a.searchParams.set(e,r[e])}),a.toString()}function o(e,t,r,n,o){var i;if(!t)return`<${e}></${e}>`;let s=(null==(i=t.src)?void 0:i.url)?Object.assign(Object.assign({},t),{src:a(t.src.url,t.src.params,n,o)}):t,l=Object.keys(Object.assign(Object.assign({},s),r)).reduce((e,t)=>{let n=null==r?void 0:r[t],a=s[t],o=null!=n?n:a,i=!0===o?t:`${t}="${o}"`;return o?e+` ${i}`:e},"");return`<${e}${l}></${e}>`}Object.defineProperty(r,"__esModule",{value:!0}),r.formatData=r.createHtml=r.formatUrl=void 0,r.formatUrl=a,r.createHtml=o,r.formatData=function(e,t){var r,i,s,l,c;let u=n(t,null==(r=e.scripts)?void 0:r.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),d=n(t,null==(s=null==(i=e.html)?void 0:i.attributes.src)?void 0:s.params),f=n(t,[null==(c=null==(l=e.html)?void 0:l.attributes.src)?void 0:c.slugParam]),m=n(t,[...Object.keys(u),...Object.keys(d),...Object.keys(f)],!0);return Object.assign(Object.assign({},e),{html:e.html?o(e.html.element,e.html.attributes,m,d,f):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:a(e.url,e.params,u)})):null})}},44602,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},a=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=void 0;let o=a(e.r(84297)),i=e.r(92135);r.GoogleAnalytics=e=>{var t=n(e,[]);return(0,i.formatData)(o.default,t)}},60262,(e,t,r)=>{t.exports={id:"google-maps-embed",description:"Embed a Google Maps embed on your webpage",website:"https://developers.google.com/maps/documentation/embed/get-started",html:{element:"iframe",attributes:{loading:"lazy",src:{url:"https://www.google.com/maps/embed/v1/place",slugParam:"mode",params:["key","q","center","zoom","maptype","language","region"]},referrerpolicy:"no-referrer-when-downgrade",frameborder:"0",style:"border:0",allowfullscreen:!0,width:null,height:null}}}},77813,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},a=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleMapsEmbed=void 0;let o=a(e.r(60262)),i=e.r(92135);r.GoogleMapsEmbed=e=>{var t=n(e,[]);return(0,i.formatData)(o.default,t)}},40674,(e,t,r)=>{t.exports={id:"youtube-embed",description:"Embed a YouTube embed on your webpage.",website:"https://github.com/paulirish/lite-youtube-embed",html:{element:"lite-youtube",attributes:{videoid:null,playlabel:null}},stylesheets:["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],scripts:[{url:"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js",strategy:"idle",location:"head",action:"append"}]}},15465,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},a=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=void 0;let o=a(e.r(40674)),i=e.r(92135);r.YouTubeEmbed=e=>{var t=n(e,[]);return(0,i.formatData)(o.default,t)}},81498,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=r.GoogleMapsEmbed=r.GoogleAnalytics=void 0;var n=e.r(44602);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return n.GoogleAnalytics}});var a=e.r(77813);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return a.GoogleMapsEmbed}});var o=e.r(15465);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return o.YouTubeEmbed}})},61316,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({html:e,height:t=null,width:r=null,children:o,dataNtpc:i=""}){return(0,a.useEffect)(()=>{i&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${i}`}})},[i]),(0,n.jsxs)(n.Fragment,{children:[o,e?(0,n.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":i,dangerouslySetInnerHTML:{__html:e}}):null]})};let n=e.r(43476),a=e.r(71645)},67345,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{apiKey:t,...r}=e,n={...r,key:t},{html:s}=(0,o.GoogleMapsEmbed)(n);return(0,a.jsx)(i.default,{height:n.height||null,width:n.width||null,html:s,dataNtpc:"GoogleMapsEmbed"})};let a=e.r(43476),o=e.r(81498),i=n(e.r(61316))},8341,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return i},requestIdleCallback:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},i="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},79520,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return b},handleClientScriptLoad:function(){return g},initScriptLoader:function(){return v}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(63141),i=e.r(51836),s=e.r(43476),l=o._(e.r(74080)),c=i._(e.r(71645)),u=e.r(42732),d=e.r(22737),f=e.r(8341),m=new Map,p=new Set,h=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:a=null,dangerouslySetInnerHTML:o,children:i="",strategy:s="afterInteractive",onError:c,stylesheets:u}=e,f=r||t;if(f&&p.has(f))return;if(m.has(t)){p.add(f),m.get(t).then(n,c);return}let h=()=>{a&&a(),p.add(f)},g=document.createElement("script"),v=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),h()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});o?(g.innerHTML=o.__html||"",h()):i?(g.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",h()):t&&(g.src=t,m.set(t,v)),(0,d.setAttributesFromProps)(g,e),"worker"===s&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",s),u&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(g)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>h(e))}):h(e)}function v(e){e.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function x(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:a=null,strategy:o="afterInteractive",onError:i,stylesheets:d,...m}=e,{updateScripts:g,scripts:v,getIsSsr:x,appDir:b,nonce:y}=(0,c.useContext)(u.HeadManagerContext);y=m.nonce||y;let w=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;w.current||(a&&e&&p.has(e)&&a(),w.current=!0)},[a,t,r]);let j=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!j.current){if("afterInteractive"===o)h(e);else"lazyOnload"===o&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>h(e))}));j.current=!0}},[e,o]),("beforeInteractive"===o||"worker"===o)&&(g?(v[o]=(v[o]||[]).concat([{id:t,src:r,onLoad:n,onReady:a,onError:i,...m,nonce:y}]),g(v)):x&&x()?p.add(t||r):x&&!x()&&h({...e,nonce:y}
1)),b){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===o)if(!r)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...m,id:t}])})`}});else return l.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:y,crossOrigin:m.crossOrigin}:{as:"script",nonce:y,crossOrigin:m.crossOrigin}),(0,s.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([r,{...m,id:t}])})`}});"afterInteractive"===o&&r&&l.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:y,crossOrigin:m.crossOrigin}:{as:"script",nonce:y,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(x,"__nextScript",{value:!0});let b=x;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3303,(e,t,r)=>{t.exports=e.r(79520)},21783,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{html:t,scripts:r,stylesheets:n}=(0,i.YouTubeEmbed)(e);return(0,a.jsx)(s.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,a.jsx)(o.default,{src:e.url,strategy:l[e.strategy],stylesheets:n},e.url))})};
1let a=e.r(43476),o=n(e.r(3303)),i=e.r(81498),s=n(e.r(61316)),l={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},19598,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGTMEvent=void 0,r.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:r,dataLayerName:n="dataLayer",auth:l,preview:c,dataLayer:u,nonce:d}=e;s=n;let f=new URL(r||"https://www.googletagmanager.com/gtm.js");return t&&f.searchParams.set("id",t),"dataLayer"!==n&&f.searchParams.set("l",n),l&&f.searchParams.set("gtm_auth",l),c&&(f.searchParams.set("gtm_preview",c),f.searchParams.set("gtm_cookies_win","x")),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
2      (function(w,l){
3        w[l]=w[l]||[];
4        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
5        ${u?`w[l].push(${JSON.stringify(u)})`:""}
6      })(window,'${n}');`},nonce:d}),(0,a.jsx)(i.default,{id:"_next-gtm","data-ntpc":"GTM",src:f.href,nonce:d})]})};let a=e.r(43476),o=e.r(71645),i=n(e.r(3303)),s="dataLayer";r.sendGTMEvent=(e,t)=>{let r=t||s;window[r]=window[r]||[],window[r].push(e)}},54576,(e,t,r)=>{"use strict";let n;var a=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=function(e){let{gaId:t,debugMode:r,dataLayerName:a="dataLayer",nonce:l}=e;return void 0===n&&(n=a),(0,i.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
7          window['${a}'] = window['${a}'] || [];
8          function gtag(){window['${a}'].push(arguments);}
9          gtag('js', new Date());
10
11          gtag('config', '${t}' ${r?",{ 'debug_mode': true }":""});`},nonce:l}),(0,o.jsx)(s.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:l})]})},r.sendGAEvent=function(){void 0===n?console.warn("@next/third-parties: GA has not been initialized"):window[n]?window[n].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${n} does not exist`)};let o=e.r(43476),i=e.r(71645),s=a(e.r(3303))},87644,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGAEvent=r.GoogleAnalytics=r.sendGTMEvent=r.GoogleTagManager=r.YouTubeEmbed=r.GoogleMapsEmbed=void 0;var a=e.r(67345);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n(a).default}});var o=e.r(21783);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return n(o).default}});var i=e.r(19598);Object.defineProperty(r,"GoogleTagManager",{enumerable:!0,get:function(){return i.GoogleTagManager}}),Object.defineProperty(r,"sendGTMEvent",{enumerable:!0,get:function(){return i.sendGTMEvent}});var s=e.r(54576);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return s.GoogleAnalytics}}),Object.defineProperty(r,"sendGAEvent",{enumerable:!0,get:function(){return s.sendGAEvent}})},19790,e=>{"use strict";var t=e.i(43476),r=e.i(88653),n=e.i(46932);let a=(0,e.i(75254).default)("circle-dot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);var o=e.i(36166),o=o,i=e.i(71645);e.i(47167);var s="u"<typeof window?i.default.useEffect:i.default.useLayoutEffect,l=0,c=()=>++l,u=!1;function d(){let[e,t]=i.default.useState(u?c:void 0);return s(()=>{void 0===e&&t(c()),u=!0},[]),void 0===e?e:`rwb-${e.toString(32)}`}var f="__wrap_b",m="__wrap_n",p="__wrap_o",h=(e,t,r)=>{let n=null==(r=r||document.querySelector(`[data-br="${e}"]`))?void 0:r.parentElement;if(!n)return;let a=e=>r.style.maxWidth=e+"px";r.style.maxWidth="";let o=n.clientWidth,i=n.clientHeight,s=o/2-.25,l=o+.5,c;if(o){for(a(s),s=Math.max(r.scrollWidth,s);s+1<l;)a(c=Math.round((s+l)/2)),n.clientHeight===i?l=c:s=c;a(l*t+o*(1-t))}r.__wrap_o||"u">typeof ResizeObserver&&(r.__wrap_o=new ResizeObserver(()=>{self.__wrap_b(0,+r.dataset.brr,r)})).observe(n)},g=h.toString(),v=i.default.createContext({preferNative:!0,hasProvider:!1}),x=i.default.forwardRef(({ratio:e=1,preferNative:t,nonce:r,children:n,as:a,...o},l)=>{let c=i.default.useMemo(()=>"useId"in i.default?i.default.useId:d,[])(),u=i.default.useRef(),x=i.default.useContext(v),b=null!=t?t:x.preferNative;return i.default.useImperativeHandle(l,()=>u.current,[]),s(()=>{b&&1===self[m]||u.current&&(self[f]=h)(0,e,u.current)},[n,b,e]),s(()=>
11{if(!(b&&1===self[m]))return()=>{if(!u.current)return;let e=u.current[p];e&&(e.disconnect(),delete u.current[p])}},[b]),i.default.createElement(i.default.Fragment,null,i.default.createElement(a||"span",{...o,"data-br":c,"data-brr":e,ref:u,style:{display:"inline-block",verticalAlign:"top",textDecoration:"inherit",textWrap:b?"balance":"initial"},suppressHydrationWarning:!0},n),((e,t,r="")=>(r&&(r=`self.${m}!=1&&${r}`),i.default.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:(e?"":`self.${m}=self.${m}||(self.CSS&&CSS.supports("text-wrap","balance")?1:2);self.${f}=${g};`)+r},nonce:t})))(x.hasProvider,r,`self.${f}("${c}",${e})`))}),b=e.i(67881),y=e.i(81140),w=e.i(20783),j=e.i(30030),_=e.i(69340),E=e.i(99682),N=e.i(35804),C=e.i(48425),k="Switch",[P,O]=(0,j.createContextScope)(k),[M,T]=P(k),S=i.forwardRef((e,r)=>{let{__scopeSwitch:n,name:a,checked:o,defaultChecked:s,required:l,disabled:c,value:u="on",onCheckedChange:d,form:f,...m}=e,[p,h]=i.useState(null),g=(0,w.useComposedRefs)(r,e=>h(e)),v=i.useRef(!1),x=!p||f||!!p.closest("form"),[b,j]=(0,_.useControllableState)({prop:o,defaultProp:s??!1,onChange:d,caller:k});return(0,t.jsxs)(M,{scope:n,checked:b,disabled:c,children:[(0,t.jsx)(C.Primitive.button,{type:"button",role:"switch","aria-checked":b,"aria-required":l,"data-state":I(b),"data-disabled":c?"":void 0,disabled:c,value:u,...m,ref:g,onClick:(0,y.composeEventHandlers)(e.onClick,e=>{j(e=>!e),x&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})}),x&&(0,t.jsx)(A,{control:p,bubbles:!v.current,name:a,value:u,checked:b,required:l,disabled:c,form:f,style:{transform:"translateX(-100%)"}})]})});S.displayName=k;var R="SwitchThumb",L=i.forwardRef((e,r)=>{let{__scopeSwitch:n,...a}=e,o=T(R,n);return(0,t.jsx)(C.Primitive.span,{"data-state":I(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:r})});L.displayName=R;var A=i.forwardRef(({__scopeSwitch:e,control:r,checked:n,bubbles:a=!0,...o},s)=>{let l=i.useRef(null),c=(0,w.useComposedRefs)(l,s),u=(0,E.usePrevious)(n),d=(0,N.useSize)(r);return i.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==n&&t){let r=new Event("click",{bubbles:a});t.call(e,n),e.dispatchEvent(r)}},[u,n,a]),(0,t.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:c,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function I(e){return e?"checked":"unchecked"}A.displayName="SwitchBubbleInput",e.s(["Root",0,S,"Switch",0,S,"SwitchThumb",0,L,"Thumb",0,L,"createSwitchScope",0,O],57287);var $=e.i(57287),$=$,z=e.i(47163);function H({className:e,size:r="default",...n}){return(0,t.jsx)($.Root,{"data-slot":"switch","data-size":r,className:(0,z.cn)("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",e),...n,children:(0,t.jsx)($.Thumb,{"data-slot":"switch-thumb",className:(0,z.cn)("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 rtl:data-[state=checked]:-translate-x-[calc(100%-2px)] rtl:data-[state=unchecked]:-translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")})})}var D=e.i(48148),G=e.i(61745),F=e.i(87644),U=e.i(22016);let K=[{id:"necessary",required:!0},{id:"analytics",required:!1}];e.s(["default",0,function(){let e=(0,D.useTranslations)("CookieConsent"),s=(0,G.useLocale)(),[l,c]=(0,i.useState)(!1),[u,d]=(0,i.useState)(null),[f,m]=(0,i.useState)({necessary:!0,analytics:!1}),[p,h]=(0,i.useState)(!1),[g,v]=(0,i.useState)(!0);(0,i.useEffect)(()=>{h(!0);let e=localStorage.getItem("cookie_consent");if(e&&(v(!1),d(e),"custom"===e)){let e=localStorage.getItem("cookie_preferences");e&&m(JSON.parse(e))}},[]);let y=e=>{localStorage.setItem("cookie_consent",e),"custom"===e&&localStorage.setItem("cookie_preferences",JSON.stringify(f)),d(e),setTimeout(()=>{v(!1)},2500)};if(!p)return null;
11let w="accepted"===u||"custom"===u&&f.analytics;return(0,t.jsxs)(t.Fragment,{children:[w&&(0,t.jsx)(F.GoogleAnalytics,{gaId:"G-GWS53QE9EW"}),g&&(0,t.jsx)("div",{className:"fixed bottom-4 left-4 z-50 w-full max-w-sm sm:max-w-md p-4 pb-0 pl-0",children:(0,t.jsx)(r.AnimatePresence,{mode:"wait",children:u?(0,t.jsx)(n.motion.div,{className:"overflow-hidden rounded-lg border bg-card shadow-lg",initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 px-4 py-6",children:[(0,t.jsx)(o.default,{className:"size-4 text-emerald-600 dark:text-emerald-400"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"accepted"===u?e("status.accepted"):"rejected"===u?e("status.rejected"):e("status.saved")})]})},"confirmed"):(0,t.jsxs)(n.motion.div,{className:"overflow-hidden text-card-foreground rounded-lg border bg-card shadow-lg",initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.4,ease:"easeOut"},children:[(0,t.jsxs)(n.motion.div,{className:"flex items-center gap-2 border-b px-4 py-3",initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3,delay:.05,ease:"easeOut"},children:[(0,t.jsx)(a,{className:"size-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"font-medium text-sm",children:e("title")})]}),(0,t.jsxs)(n.motion.div,{className:"border-b px-4 py-3",initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3,delay:.1,ease:"easeOut"},children:[(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:(0,t.jsx)(x,{children:e("description")})}),(0,t.jsx)(U.default,{href:`/${s}/privacyPolicy`,className:"mt-1.5 text-muted-foreground text-xs underline underline-offset-2 transition-colors hover:text-foreground inline-block",children:e("readPrivacyPolicy")})]}),(0,t.jsx)(r.AnimatePresence,{children:l&&(0,t.jsx)(n.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.3,ease:"easeOut"},children:K.map((r,a)=>(0,t.jsxs)(n.motion.div,{className:"flex items-center justify-between border-b px-4 py-3",initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3,delay:.05*a,ease:"easeOut"},children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium text-sm",children:e(`categories.${r.id}.name`)}),r.required&&(0,t.jsxs)("span",{className:"flex items-center gap-1 text-muted-foreground text-xs",children:[(0,t.jsx)(o.default,{className:"size-3"}),e("required")]})]}),(0,t.jsx)("p",{className:"mt-0.5 text-muted-foreground text-xs",children:e(`categories.${r.id}.description`)})]}),(0,t.jsx)(H,{checked:r.required||f[r.id],onCheckedChange:()=>{var e;return!r.required&&(e=r.id,void m(t=>({...t,[e]:!t[e]})))},disabled:r.required,"aria-label":`Toggle ${e(`categories.${r.id}.name`)} cookies`})]},r.id))})}),(0,t.jsx)(n.motion.div,{className:"border-b px-4 py-3",initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3,delay:.15,ease:"easeOut"},children:(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-wrap sm:flex-nowrap",children:[(0,t.jsx)(b.Button,{size:"sm",className:"h-8 flex-1 text-xs",onClick:()=>y("accepted"),children:e("acceptAll")}),(0,t.jsx)(b.Button,{variant:"outline",size:"sm",className:"h-8 flex-1 text-xs",onClick:()=>y("rejected"),children:e("rejectAll")}),(0,t.jsx)(b.Button,{variant:"ghost",size:"sm",className:"h-8 flex-1 text-xs",onClick:()=>l?y("custom"):c(!0),children:l?e("savePreferences"):e("customize")})]})}),(0,t.jsx)(n.motion.div,{className:"px-4 py-2.5",initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3,delay:.2,ease:"easeOut"},children:(0,t.jsx)("p",{className:"text-center text-muted-foreground text-xs",dangerouslySetInnerHTML:{__html:e("footerText")}})})]},"consent")})})]})}],19790)}]);

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.