PageSourceSearch

https://hooandja.ee/assets/root-BlI2NdXU.js

js hooandja.ee collected 2026-10-02 07:19:51 UTC 27,443 bytes, 18 lines download raw bytes

1import{av as Se,b0 as ke,b1 as Pe,F as w,c as _,b2 as Re,b3 as Ie,W as v,ax as Oe,ay as J,q as Me,aJ as $e,aK as De,aL as Fe,aM as Be,k as A,v as b,a8 as Ge,a9 as Ue,aa as C,b4 as R,aj as Q,ak as V,al as Y,s as X,aE as qe,aF as He,aG as Ke,aH as W,b5 as ze,ac as Je,ad as Qe,ae as Ve,p as le,b6 as B,N as Ye,L as Xe,t as We,w as Ze,a as et,b7 as tt}from"./index-CIpd-Oln.js";import{r as g,f as D,j as t,L as k,g as de,h as st,c as nt,N as I,e as q,u as at,O as rt,P as ot,Q as it,S as ct,T as lt}from"./index-DB1uCt0m.js";import{p as O,N as dt}from"./context-FBq2O1ff.js";import{u as E}from"./useTranslation-D9fYHQVN.js";import{H as ut,a as mt}from"./honeypot-BIy56MpC.js";import{c as ue}from"./createLucideIcon-QzN8cDQa.js";import{T as ft}from"./Trans-0LZoH4kX.js";import{i as N}from"./index-browser-Bos9HI3o.js";import{l as G,u as gt}from"./i18n-6A1OzcEv.js";import{u as pt}from"./file-B2ID6aKK.js";import{c as ht,b as me}from"./user-CDNKIskU.js";import{a as xt}from"./toString-CnB7u3M6.js";import{i as jt,a as bt,o as yt,s as wt,g as Nt,c as vt,U as Z,d as H,e as Tt,S as At,b as Et,h as fe,t as _t}from"./_Uint8Array-I2MI23ke.js";import{d as ee,b as Lt,s as Ct,o as St}from"./_baseFlatten-CMQx45dt.js";import{e as kt,i as Pt,c as Rt}from"./_Set-BDi8LHwS.js";import{i as K,b as It,r as Ot,S as te}from"./isObjectLike-Dipz0mOK.js";import{i as ge}from"./isObject-C3e4t58V.js";import{i as Mt}from"./isArray-Dxzbedgu.js";import{b as pe,n as $}from"./_nodeUtil-oWRYMnUh.js";import{l as $t}from"./route-c61ncoFP.js";import{b as Dt}from"./_baseSlice-F8doVSIJ.js";import{u as he}from"./environment-RFbaRb7h.js";import{A as Ft}from"./AlertMessage-oHYdO0xR.js";import{T as Bt}from"./Turnstile-D67wRfsg.js";import{u as Gt}from"./useOnClient-S5cV8vGm.js";import"./use-hydrated-BrdeQr_C.js";const Ut=({enableStrictModeHandler:e})=>{const{initStrictModeDetector:s,strictModeDetector:n}=qt({enableStrictModeHandler:e}),a=g.useRef(0),r=g.useRef(1);g.useEffect(()=>{Kt(),s();const o=c=>{const m=c.state,d=m.__REACT_PAGE_TRACKER_INTERNAL__?.pageIndex??0,h=a.current>d?"back":"forward";h==="forward"?a.current++:a.current=d??0;const j=[...m.__REACT_PAGE_TRACKER_INTERNAL__?.pageHistory||[]];O.setState({pageIndex:a.current,isFirstPage:a.current===0,isLastPage:j.length===r.current,referrer:m.__REACT_PAGE_TRACKER_INTERNAL__?.referrer??"",pageHistory:j,pageHistoryLength:r.current,pageEvent:h})},i=window.onpopstate,f=history.pushState.bind(history);return window.onpopstate=o,history.pushState=(c,m,d)=>{if(n())return f(c,m,d);const h=(history.state.__REACT_PAGE_TRACKER_INTERNAL__?.pageIndex??0)+1;a.current=h;const j=O.getImmutablePageHistory();j.push(d),r.current=j.length;const p={pageIndex:h,referrer:window.location.href,pageHistory:j,pageHistoryLength:r.current},x={...c,__REACT_PAGE_TRACKER_INTERNAL__:{...p}};return O.setState({...p,isFirstPage:!1,isLastPage:!0,pageEvent:"push"}),Ht(`pushState: stateWithPageInfo.pageIndex -->${x.__REACT_PAGE_TRACKER_INTERNAL__.pageIndex} ,pageIndex.current --> ${a.current} referrer -->${x.__REACT_PAGE_TRACKER_INTERNAL__.referrer}`),f(x,m||"",d||"")},()=>{window.onpopstate=i,history.pushState=f}},[])},qt=({enableStrictModeHandler:e})=>{const s=g.useRef(0),n=g.useRef(!1),a=()=>!!history.state.__PRIVATE_NEXTJS_INTERNALS_TREE,r=()=>(s.current++,n.current?s.current%2===0:!1);return{initStrictModeDetector:()=>{s.current++,s.current===2&&(n.current=!0)},strictModeDetector:()=>e===void 0?a()?r():!1:e?r():!1}},Ht=e=>{},Kt=()=>{const e={__REACT_PAGE_TRACKER_INTERNAL__:{pageIndex:0,referrer:document.referrer,pageHistory:[location.href.replace(location.origin,"")],pageHistoryLength:1}};typeof history.state=="object"&&history.state!==null?history.replaceState({...history.state,...e},location.href):history.replaceState(e,""),O.setState(e.__REACT_PAGE_TRACKER_INTERNAL__)},zt=e=>(Ut(e),null);function Jt(e){let{i18n:s}=E();g.useEffect(()=>{s.language!==e&&s.changeLanguage(e)},[e,s])}/**
2 * @license lucide-react v0.479.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 Qt=[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]],xe=ue("Cookie",Qt);
6/**
7 * @license lucide-react v0.479.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 Vt=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yt=ue("X",Vt);var S=(e=>(e.NECESSARY="necessary",e.FUNCTIONAL="functional",e.ANALYTICS="analytics",e.MARKETING="marketing",e))(S||{});const U={necessary:!0,functional:!1,analytics:!1,marketing:!1};function Xt(){const{t:e}=E("common");return g.useMemo(()=>[{key:S.NECESSARY,name:e("cookies.option.necessary"),description:e("cookies.category.necessary.description"),required:!0},{key:S.FUNCTIONAL,name:e("cookies.option.functional"),description:e("cookies.category.functional.description"),required:!1},{key:S.ANALYTICS,name:e("cookies.option.analytics"),description:e("cookies.category.analytics.description"),required:!1},{key:S.MARKETING,name:e("cookies.option.marketing"),description:e("cookies.category.marketing.description"),required:!1}],[e])}function Wt({initialPreferences:e=U,onClose:s,open:n,onOpenChange:a}){const{t:r}=E("common"),o=D(),i=Xt(),{toast:f}=Se(),[c,m]=g.useState(e),d=(u,L,P)=>{const y=new FormData;y.append("_action",u),y.append("preferences",JSON.stringify(L)),o.submit(y,{action:"/api/cookie-consent",method:"post"}),a(!1),s?.(),f({description:P,variant:"success"})},h=(u,L)=>{u!==S.NECESSARY&&m(P=>({...P,[u]:L}))},j=()=>{const u={necessary:!0,functional:!0,analytics:!0,marketing:!0};m(u),d("accept",u,r("cookie.toast.accepted-all"))},p=()=>{const u={necessary:!0,functional:!1,analytics:!1,marketing:!1};m(u),d("deny",u,r("cookie.toast.rejected-all"))},x=()=>{d("customize",c,r("cookie.toast.preferences-saved"))};return t.jsx(ke,{modal:!1,onOpenChange:a,open:n,children:t.jsx(Pe,{children:t.jsxs("div",{className:"mx-auto max-w-4xl space-y-6 p-6",children:[t.jsxs(w,{className:"items-start justify-between",children:[t.jsxs(w,{className:"flex-1 items-center space-x-3",children:[t.jsx(xe,{className:"size-6 text-black"}),t.jsxs(_,{className:"flex-1",children:[t.jsx(Re,{className:"text-lg font-semibold",children:r("cookie.consent.title")}),t.jsx(Ie,{className:"text-sm text-gray-600",children:r("cookie.consent.description")})]})]}),t.jsx(v,{"aria-label":r("cookie.consent.close"),className:"size-8 p-0 hover:bg-gray-100",onClick:()=>{JSON.stringify(e)===JSON.stringify(U)&&n?p():(a(!1),s?.())},size:"sm",variant:"ghost",children:t.jsx(Yt,{className:"size-4"})})]}),t.jsx("div",{className:"space-y-4",children:i.map(u=>t.jsxs("div",{className:"rounded-lg border p-4",children:[t.jsxs(w,{className:"mb-2 items-center justify-between",children:[t.jsx("h3",{className:"text-sm font-medium",children:u.name}),t.jsxs(Oe,{"aria-label":`Toggle ${u.name} cookies`,className:"flex flex-row flex-wrap justify-start sm:space-x-2",disabled:u.required,onValueChange:L=>h(u.key,L==="on"),type:"single",value:c[u.key]?"on":"off",children:[t.jsx(J,{"aria-label":`Enable ${u.name} cookies`,className:"rounded-md border-primary bg-muted px-4 py-3 text-base text-foreground transition-colors hover:bg-content/60 data-[state=on]:bg-primary data-[state=on]:text-white",value:"on",children:r("cookie.consent.on")}),t.jsx(J,{"aria-label":`Disable ${u.name} cookies`,className:"rounded-md border-primary bg-muted px-4 py-3 text-base text-foreground transition-colors hover:bg-content/60 data-[state=on]:bg-primary data-[state=on]:text-white",value:"off",children:r("cookie.consent.off")})]})]}),t.jsx("p",{className:"text-xs text-gray-600",children:u.description})]},u.key))}),t.jsxs(w,{className:"mb-6 space-x-3",children:[t.jsx(v,{className:"flex-1 bg-transparent",onClick:p,variant:"outline",children:r("cookie.consent.reject-all")}),t.jsx(v,{className:"flex-1",onClick:x,variant:"secondary",children:r("cookie.consent.save-preferences")}),t.jsx(v,{className:"flex-1",onClick:j,variant:"default",children:r("cookie.consent.accept-all")})]}),t.jsx(Me,{variant:"sm",children:t.jsx(ft,{components:{termsLink:t.jsx(k,{className:"text-primary hover:underline",target:"_blank",to:"/content/terms-and-conditions"}),privacyLink:t.jsx(k,{className:"text-primary hover:underline",target:"_blank",to:"/content/bylaws"})},i18nKey:"cookies.consent.tos",ns:"common"})})]})})})}function Zt({cookies:{triggerCookieBanner:e,userPreferences:s}}){const[n,a]=g.useState(e),r=i=>{a(i)},{t:o}=E("common");return t.jsxs(t.Fragment,{children:[t.jsx(Wt,{initialPreferences:s||U,onClose:()=>{a(!1)},onOpenChange:r,open:n}),t.jsx($e,{children:t.jsxs(De,{children:[t.jsx(Fe,{asChild:!0,children:t.jsx(v,{"aria-label":"Cookie Settings",className:"fixed bottom-4 left-4 z-50 !w-auto hover:scale-110",onClick:()=>a(!0),variant:"light",children:t.jsx(xe,{className:"size-6 text-gray-800"})})}),t.jsx(Be,{children:o("cookie.consent.title")})]})})]})}function es(e,s){for(var n=-1,a=e==null?0:e.length;++n<a&&s(e[n],n,e)!==!1;);return e}function je(e,s,n){s=="__proto__"&&ee?ee(e,s,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[s]=n}var ts=Object.prototype,ss=ts.hasOwnProperty;function be(e,s,n){var a=e[s];(!(ss.call(e,s)&&kt(a,n))||n===void 0&&!(s in e))&&je(e,s,n)}function ns(e,s,n,a){var r=!n;n||(n={});for(var o=-1,i=s.length;++o<i;){var f=s[o],c=void 0;c===void 0&&(c=e[f]),r?je(n,f,c):be(n,f,c)}return n}function as(e){var s=[];if(e!=null)for(var n in Object(e))s.push(n);return s}
11var rs=Object.prototype,os=rs.hasOwnProperty;function is(e){if(!ge(e))return as(e);var s=jt(e),n=[];for(var a in e)a=="constructor"&&(s||!os.call(e,a))||n.push(a);return n}function cs(e){return Pt(e)?bt(e,!0):is(e)}function ls(e){var s=e==null?0:e.length;return s?Lt(e):[]}function ds(e){return Ct(St(e,void 0,ls),e+"")}var ye=yt(Object.getPrototypeOf,Object),us="[object Object]",ms=Function.prototype,fs=Object.prototype,we=ms.toString,gs=fs.hasOwnProperty,ps=we.call(Object);function hs(e){if(!K(e)||It(e)!=us)return!1;var s=ye(e);if(s===null)return!0;var n=gs.call(s,"constructor")&&s.constructor;return typeof n=="function"&&n instanceof n&&we.call(n)==ps}var Ne=typeof exports=="object"&&exports&&!exports.nodeType&&exports,se=Ne&&typeof module=="object"&&module&&!module.nodeType&&module,xs=se&&se.exports===Ne,ne=xs?Ot.Buffer:void 0;ne&&ne.allocUnsafe;function js(e,s){return e.slice()}var bs=Object.getOwnPropertySymbols,ys=bs?function(e){for(var s=[];e;)Rt(s,Nt(e)),e=ye(e);return s}:wt;function ve(e){return vt(e,cs,ys)}var ws=Object.prototype,Ns=ws.hasOwnProperty;function vs(e){var s=e.length,n=new e.constructor(s);return s&&typeof e[0]=="string"&&Ns.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function z(e){var s=new e.constructor(e.byteLength);return new Z(s).set(new Z(e)),s}function Ts(e,s){var n=z(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var As=/\w*$/;function Es(e){var s=new e.constructor(e.source,As.exec(e));return s.lastIndex=e.lastIndex,s}var ae=te?te.prototype:void 0,re=ae?ae.valueOf:void 0;function _s(e){return re?Object(re.call(e)):{}}function Ls(e,s){var n=z(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}var Cs="[object Boolean]",Ss="[object Date]",ks="[object Map]",Ps="[object Number]",Rs="[object RegExp]",Is="[object Set]",Os="[object String]",Ms="[object Symbol]",$s="[object ArrayBuffer]",Ds="[object DataView]",Fs="[object Float32Array]",Bs="[object Float64Array]",Gs="[object Int8Array]",Us="[object Int16Array]",qs="[object Int32Array]",Hs="[object Uint8Array]",Ks="[object Uint8ClampedArray]",zs="[object Uint16Array]",Js="[object Uint32Array]";function Qs(e,s,n){var a=e.constructor;switch(s){case $s:return z(e);case Cs:case Ss:return new a(+e);case Ds:return Ts(e);case Fs:case Bs:case Gs:case Us:case qs:case Hs:case Ks:case zs:case Js:return Ls(e);case ks:return new a;case Ps:case Os:return new a(e);case Rs:return Es(e);case Is:return new a;case Ms:return _s(e)}}var Vs="[object Map]";function Ys(e){return K(e)&&H(e)==Vs}var oe=$&&$.isMap,Xs=oe?pe(oe):Ys,Ws="[object Set]";function Zs(e){return K(e)&&H(e)==Ws}var ie=$&&$.isSet,en=ie?pe(ie):Zs,Te="[object Arguments]",tn="[object Array]",sn="[object Boolean]",nn="[object Date]",an="[object Error]",Ae="[object Function]",rn="[object GeneratorFunction]",on="[object Map]",cn="[object Number]",Ee="[object Object]",ln="[object RegExp]",dn="[object Set]",un="[object String]",mn="[object Symbol]",fn="[object WeakMap]",gn="[object ArrayBuffer]",pn="[object DataView]",hn="[object Float32Array]",xn="[object Float64Array]",jn="[object Int8Array]",bn="[object Int16Array]",yn="[object Int32Array]",wn="[object Uint8Array]",Nn="[object Uint8ClampedArray]",vn="[object Uint16Array]",Tn="[object Uint32Array]",l={};l[Te]=l[tn]=l[gn]=l[pn]=l[sn]=l[nn]=l[hn]=l[xn]=l[jn]=l[bn]=l[yn]=l[on]=l[cn]=l[Ee]=l[ln]=l[dn]=l[un]=l[mn]=l[wn]=l[Nn]=l[vn]=l[Tn]=!0;l[an]=l[Ae]=l[fn]=!1;function M(e,s,n,a,r,o){var i;if(n&&(i=r?n(e,a,r,o):n(e)),i!==void 0)return i;if(!ge(e))return e;var f=Mt(e);if(f)i=vs(e);else{var c=H(e),m=c==Ae||c==rn;if(Tt(e))return js(e);if(c==Ee||c==Te||m&&!r)i={};else{if(!l[c])return r?e:{};i=Qs(e,c)}}o||(o=new At);var d=o.get(e);if(d)return d;o.set(e,i),en(e)?e.forEach(function(p){i.add(M(p,s,n,p,e,o))}):Xs(e)&&e.forEach(function(p,x){i.set(x,M(p,s,n,x,e,o))});var h=ve,j=f?void 0:h(e);return es(j||e,function(p,x){j&&(x=p,p=e[x]),be(i,x,M(p,s,n,x,e,o))}),i}function An(e){for(var s=-1,n=e==null?0:e.length,a=0,r=[];++s<n;){var o=e[s];o&&(r[a++]=o)}return r}function En(e,s){return s.length<2?e:Et(e,Dt(s,0,-1))}function _n(e,s){return s=fe(s,e),e=En(e,s),e==null||delete e[_t($t(s))]}function Ln(e){return hs(e)?void 0:e}var Cn=1,Sn=2,kn=4,Pn=ds(function(e,s){var n={};if(e==null)return n;var a=!1;s=xt(s,function(o){return o=fe(o,e),a||(a=o.length>1),o}),ns(e,ve(e),n),a&&(n=M(n,Cn|Sn|kn,Ln));for(var r=s.length;r--;)_n(n,s[r]);return n});const T=({language:e})=>{const{i18n:s}=E(),n=s.resolvedLanguage?.toUpperCase(),[a,r]=de(),o=st(),i=o.state==="loading"&&new URLSearchParams(o.location?.search).has("lng"),f=D(),c=m=>{s.changeLanguage(m),a.set("lng",m),r(a),f.submit({lng:m},{method:"post",action:"/api/locale"})};return t.jsx(v,{className:"w-auto",disabled:i,onClick:()=>c(e.toLowerCase()),variant:n===e?"secondary":"light",children:G[e]})},_e=({className:e})=>{const s=[{to:"https://www.facebook.com/Hooandja",text:t.jsx(b.Facebook,{className:"size-8"})},{to:"https://www.instagram.com/Hooandja",text:t.jsx(b.Instagram,{className:"size-8"})},{to:"https://www.twitter.com/hooandja",text:t.jsx(b.Twitter,{className:"size-8"})}];return t.jsx("div",{className:A("flex",e),children:s.map((n,a)=>t.jsx(k,{className:"hover:text-muted-foreground",target:"_blank",to:n.to,children:n.text},a))})},Rn=()=>{const[e,s]=de(),{t:n,i18n:a}=E(["public","admin","auth"]),r=ht(),o=gt(),i=me(),f=nt(),c="group inline-flex h-10 w-max hover:cursor-pointer focus:outline-none items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors data-[active]:bg-accent/50 data-[state=open]:bg-accent/50 bg-header hover:bg-header-foreground hover:text-accent-foreground focus:bg-header-foreground focus:text-accent-foreground",[m,d]=g.useState(!1),[h,j]=g.useState(!1),p=g.useMemo(()=>Pn(G,o),[o]),x=D(),u=y=>{e.set("lng",y),s(e),a.changeLanguage(y),x.submit({lng:y},{method:"post",action:"/api/locale"})},L=()=>
11{if(i){f("campaigns/owned");return}f(`/login?returnTo=${location.pathname}`)},P=[{text:n("admin.idea.list.title",{ns:"admin"}),to:"/admin/ideas"},{text:n("admin.campaigns.title",{ns:"admin"}),to:"/admin/campaigns"},{text:n("admin.transactions.title",{ns:"admin"}),to:"/admin/transactions"},{text:n("admin.users.title",{ns:"admin"}),to:"/admin/users"},{text:n("admin.roles.title",{ns:"admin"}),to:"/admin/configuration/roles"},{text:n("admin.cache.title",{ns:"admin"}),to:"admin/configuration/cache"}];return t.jsxs("header",{className:"sticky top-0 z-50 flex items-center justify-between bg-header p-2 md:px-8 lg:px-16",children:[t.jsx(k,{className:"mr-auto",to:"/",children:t.jsx(b.AppLogo,{})}),t.jsx(Ge,{className:"flex items-center space-x-4",children:t.jsxs(Ue,{children:[t.jsx(C,{className:"hidden lg:flex",children:t.jsx(R,{className:c,href:"/campaigns",children:n("campaigns.discover")})}),t.jsx(C,{className:"hidden lg:flex",children:t.jsx(R,{className:c,href:i?"/ideas/new":"/register",children:n("campaigns.add.idea")})}),t.jsx(C,{className:"group/item ml-auto hidden items-center space-x-4 lg:flex",children:t.jsxs(R,{className:c,onSelect:L,children:[i?n("header.user"):n("login.title",{ns:"auth"}),t.jsx("span",{className:"ml-2 flex size-8 items-center justify-center rounded-full bg-secondary transition group-hover/item:scale-110",children:i?t.jsx(b.ArrowRight,{}):t.jsx(b.Lock,{})})]})}),t.jsx(C,{className:"hidden lg:flex",children:t.jsxs(R,{className:c,href:"/search",children:[n("header.search.title"),t.jsx(b.Search,{className:"mb-0.5 ml-0.5"})]})}),t.jsx(C,{className:"hidden lg:flex",children:t.jsxs(Q,{onOpenChange:d,children:[t.jsxs(V,{className:A("flex items-center justify-center",c),children:[G[o??N.Language.ET],t.jsx(b.ArrowDown,{className:A("ml-1 transition",m&&"rotate-180")})]}),t.jsx(Y,{children:Object.entries(p).map(([y,F])=>t.jsx(X,{onClick:()=>u(y.toLowerCase()),children:F},y))})]})}),r&&t.jsx(C,{children:t.jsxs(Q,{onOpenChange:j,children:[t.jsxs(V,{className:A("flex items-center justify-center",c),children:[n("header.admin.menu"),t.jsx(b.ArrowDown,{className:A("ml-1 transition",h&&"rotate-180")})]}),t.jsx(Y,{children:P.map(({text:y,to:F},Ce)=>t.jsx(X,{asChild:!0,children:t.jsx(I,{to:F,children:y})},Ce))})]})}),t.jsx(C,{children:t.jsx(R,{className:c,children:t.jsx(In,{})})})]})})]})},In=()=>{const{t:e}=E(["public","auth"]),{proxy:s}=pt(),n=me(),a=q(),r=g.useMemo(()=>n&&n.profilePicture?{name:n.profilePicture.filename,url:s(n.profilePicture.path)}:void 0,[n,s]),o=g.useMemo(()=>An([n&&{to:"/profile",text:e("header.user")},{to:"/campaigns",text:e("header.campaign.discover")},{to:"/ideas/new",text:e("header.campaign.create")},{to:"/blog",text:e("header.blog")},{to:"/content/about",text:e("header.about")}]),[e,n]);return t.jsxs(qe,{children:[t.jsxs(He,{className:"flex items-center ",children:[t.jsx("span",{className:"hidden lg:inline-block",children:e("header.menu.title")}),t.jsx(b.Burger,{className:"ml-3"})]}),t.jsxs(Ke,{className:"flex-col overflow-y-scroll md:flex-row",children:[t.jsx("div",{className:"sticky top-0 hidden h-full min-h-screen w-28 bg-primary lg:flex",children:t.jsx(b.AppLogoSideways,{})}),t.jsxs(W,{className:"h-14 w-full items-center justify-between bg-header px-3 py-5 md:hidden ",closeText:e("close",{ns:"common"}),children:[t.jsx(ze,{}),t.jsx(b.AppLogo,{className:"h-10 w-48"})]}),t.jsxs(w,{className:"flex w-full justify-start gap-5 px-5 md:hidden",wrap:!1,children:[t.jsx(T,{language:N.Language.ET}),t.jsx(T,{language:N.Language.EN}),t.jsx(T,{language:N.Language.RU})]}),t.jsxs(_,{className:"w-full gap-5 px-5 pb-16 md:pt-5",children:[t.jsx(W,{className:"hidden flex-row items-center justify-between md:flex",closeText:e("close",{ns:"common"}),children:t.jsxs(w,{className:"justify-start gap-5",wrap:!1,children:[t.jsx(T,{language:N.Language.ET}),t.jsx(T,{language:N.Language.EN}),t.jsx(T,{language:N.Language.RU})]})}),t.jsxs(_,{children:[n?t.jsxs("div",{className:"inline-flex items-center justify-between gap-6 rounded-lg border border-border bg-neutral-100 py-4 pl-4 pr-8 lg:mt-10",children:[t.jsx("div",{className:"flex items-center justify-start gap-6",children:t.jsx("div",{className:"relative size-20",children:t.jsxs(Je,{className:"!h-20 !w-20",children:[r&&t.jsx(Qe,{alt:r?.name,src:r?.url}),t.jsx(Ve,{})]})})}),t.jsxs("div",{className:"flex grow basis-0 items-center justify-between",children:[t.jsxs(le,{className:"font-semibold",variant:"h4",children:[n.firstName," ",n.lastName]}),t.jsx("form",{action:"/logout",method:"post",children:t.jsx(v,{variant:"outline",children:e("header.logout")})})]})]}):t.jsx(B,{asChild:!0,children:t.jsx(v,{asChild:!0,className:"my-5",children:t.jsx(k,{to:`/login?returnTo=${a.pathname}`,children:e("login.title",{ns:"auth"})})})}),t.jsx(_,{className:"my-5 gap-3 lg:gap-5",children:o.map((i,f)=>{const c=a.pathname===i.to;return t.jsx(B,{asChild:!0,className:"hover:text-primary",children:t.jsx(I,{className:A("text-xl lg:text-3xl font-heading",c&&"text-primary"),to:i.to,children:i.text})},f)})}),t.jsxs(_,{className:"gap-3 sm:mt-7",children:[t.jsx(ce,{title:e("header.team"),url:"/content/team"}),t.jsx(ce,{title:e("header.terms"),url:"/content/terms-and-conditions"})]})]}),t.jsx(w,{className:"mt-5 h-full items-end !justify-start lg:mt-10",wrap:!1,children:t.jsx(_e,{className:"gap-2 md:gap-3"})})]})]})]})},ce=({url:e,title:s})=>{const n=({isActive:a})=>A(a&&"text-secondary");return t.jsx(B,{asChild:!0,children:t.jsx(I,{className:A("text-muted-foreground text-lg lg:text-xl hover:text-foreground",n),to:e,children:s})})};function On(e,s){if(document.getElementById("gtm-script"))return;window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":new Date().getTime(),event:"gtm.js"});const n=document.getElementsByTagName("script")[0];if(n){const a=document.createElement("script"),r="";a.async=!0,a.src="https://www.googletagmanager.com/gtm.js?id="+e+r,a.nonce=s,a.id="gtm-script",n.parentNode&&n.parentNode.insertBefore(a,n)}}const Mn=e=>{if(!window.dataLayer){console.warn("window.dataLayer is not defined. This could mean your google tag manager script has not loaded on the page yet.");return}window.dataLayer.push({event:"virtualPageView",virtualPagePath:e})};function $n(){const e=({isActive:d})=>A("text-m-base sm:text-base",d?"text-secondary hover:text-secondary/70":"hover:text-secondary"),{t:s}=E("public"),n=[{to:"/",text:s("footer.menu.front")},{to:"/campaigns",text:s("footer.menu.discover")},{to:"/ideas/new",text:s("footer.menu.create")},{to:"/profile",text:s("footer.menu.account")},{to:"/blog",text:s("footer.menu.blog")},{to:"/content/about",text:s("footer.menu.about")}],a=D(),r=g.useRef(null),o=a.state==="submitting",[i,f]=g.useState(null),m=Gt()("[email protected]");return g.useEffect(()=>{o||r.current?.reset()},[o]),t.jsx("footer",{className:"w-full bg-primary p-5 text-white sm:p-10",children:t.jsxs(_,{children:[t.jsx(b.AppLogoFooter,{}),t.jsxs(w,{className:"w-full content-center justify-between gap-8 py-8 sm:py-12",children:[t.jsxs("div",{className:"flex flex-auto grow-[3] flex-col [&>p]:text-base",children:[t.jsx("p",{children:s("footer.contact.name")}),t.jsxs("p",{children:[s("footer.contact.email"),t.jsx("a",{className:"font-bold underline",href:m?`mailto:${m}`:"",children:m})]}),t.jsxs("p",{children:[s("footer.contact.phone"),t.jsx("a",{className:"font-bold underline",href:"tel:5064729",children:"506 4729"})]}),t.jsx("p",{children:"C. R. Jakobsoni 18-7, Tartu 51005, Estonia"})]}),t.jsxs("div",{className:"hidden grow place-content-between gap-7 md:flex md:flex-auto md:flex-row",children:[t.jsx(_,{className:"md:gap-5",children:n.slice(0,3).map((d,h)=>t.jsx(I,{className:e,end:!0,to:d.to,children:d.text},h))}),t.jsx(_,{className:"md:gap-5",children:n.slice(3,6).map((d,h)=>t.jsx(I,{className:e,end:!0,to:d.to,children:d.text},h))}),t.jsx(_e,{className:"flex-col gap-5"})]})]}),a?.data?.alertMessage&&t.jsx(w,{children:t.jsx(Ft,{type:a.data.alertMessage.type,children:a.data.alertMessage.title})}),t.jsxs(w,{className:"w-full items-end justify-between gap-5 border-t border-border-muted py-8",children:[t.jsx("div",{className:"font-heading text-xl lg:text-2xl",children:s("footer.newsletter")}),t.jsxs(a.Form,{action:"/api/newsletter/join",className:"flex gap-7 sm:flex-row",method:"post",ref:r,children:[t.jsx(ut,{}),t.jsxs(w,{children:[t.jsxs(Ye,{children:[t.jsx(Xe,{errorMessages:a.data?.fieldErrors?.emailAddress,htmlFor:"emailAddress"}),t.jsx(We,{className:"text-black",name:"emailAddress",placeholder:s("footer.newsletter.placeholder"),required:!0,type:"email"})]}),t.jsx(v,{className:"mt-2 w-auto",disabled:o||!i,variant:"secondary",children:s("footer.newsletter.join")}),t.jsx(Bt,{id:"widget-newsletter",onVerify:f,resetSignal:a.data})]})]})]}),t.jsxs(w,{className:"hidden w-full justify-start gap-7 border-t border-border-muted pt-10 sm:flex",children:[t.jsx(T,{language:N.Language.ET}),t.jsx(T,{language:N.Language.EN}),t.jsx(T,{language:N.Language.RU})]})]})})}const ma=()=>[{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"},{rel:"manifest",href:"/site.webmanifest"}],fa=()=>[{title:"Hooandja"}],ga={i18n:["common","public","admin","auth"]};function Le({children:e,dir:s,nonce:n,locale:a}){return t.jsxs("html",{dir:s,lang:a,children:[t.jsxs("head",{children:[t.jsx("meta",{charSet:"utf-8"}),t.jsx("meta",{content:"width=device-width,initial-scale=1",name:"viewport"}),t.jsx(ot,{}),t.jsx(it,{})]}),t.jsxs("body",{className:"flex min-h-screen flex-col",children:[t.jsx(zt,{}),t.jsx(Fn,{nonce:n}),e,t.jsx(ct,{nonce:n}),t.jsx(lt,{nonce:n}),t.jsx(Dn,{nonce:n}),t.jsx(tt,{})]})]})}const pa=Ze(function(){const{locale:s,restrictAccess:n,cookies:a,honeypotInputProps:r}=at(),{i18n:o}=E(),i=g.useContext(dt);return Jt(s),t.jsxs(Le,{dir:o.dir(),locale:s,nonce:i,children:[!n&&t.jsx(Rn,{}),t.jsx("div",{className:"relative flex-1 bg-content",children:t.jsx(mt,{...r,children:t.jsx(rt,{})})}),!n&&t.jsx($n,{}),t.jsx(Zt,{cookies:a})]})}),ha=et(function(){return t.jsx(Le,{children:t.jsxs("div",{className:"mx-auto max-w-screen-lg self-center p-8 text-center",children:[t.jsxs(le,{className:"mb-4",children:["Midagi läks valesti ",t.jsx("br",{}),"Something went wrong ",t.jsx("br",{}
11),"Что-то пошло не так"]}),t.jsx(v,{asChild:!0,children:t.jsx(k,{to:"/",children:"Avalehele"})})]})})});function Dn({nonce:e}){const{PIXEL_ID:s}=he(),n=q();return g.useEffect(()=>{try{s?.length&&function(){window.fbq("init",s),window.fbq("track","PageView")}()}catch(a){console.error("Error occurred when initializing pixel: ",a)}},[n,s]),t.jsxs(t.Fragment,{children:[t.jsx("script",{dangerouslySetInnerHTML:{__html:`!function(f,b,e,v,n,t,s)
12            {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
13            n.callMethod.apply(n,arguments):n.queue.push(arguments)};
14            if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
15            n.queue=[];t=b.createElement(e);t.async=!0;
16            t.src=v;s=b.getElementsByTagName(e)[0];
17            s.parentNode.insertBefore(t,s)}(window, document,'script',
18            'https://connect.facebook.net/en_US/fbevents.js');`},nonce:e??""}),t.jsx("noscript",{children:t.jsx("img",{height:"1",src:`https://www.facebook.com/tr?id=${s}&ev=PageView&noscript=1`,style:{display:"none"},width:"1"})})]})}const Fn=({nonce:e})=>{const{GA_TRACKING_ID:s}=he(),n=q();return g.useEffect(()=>{s&&(On(s,e),Mn(n.pathname))},[n,s,e]),s?t.jsx(t.Fragment,{children:t.jsx("noscript",{children:t.jsx("iframe",{height:"0",nonce:e,src:`https://www.googletagmanager.com/ns.html?id=${s}`,style:{display:"none",visibility:"hidden"},title:"Google Tag Manager",width:"0"})})}):null};export{ha as ErrorBoundary,pa as default,ga as handle,ma as links,fa as meta};

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.