PageSourceSearch

https://ujbuda.hu/assets/index-BCXu-6Vd.js

js ujbuda.hu collected 2026-09-24 21:17:30 UTC 896,854 bytes, 78 lines download raw bytes

vendor: 4,510 bytes, lines 1-17
1(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const u of c)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function n(c){const u={};return c.integrity&&(u.integrity=c.integrity),c.referrerPolicy&&(u.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?u.credentials="include":c.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(c){if(c.ep)return;c.ep=!0;const u=n(c);fetch(c.href,u)}})();function Hy(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var bu={exports:{}},Vr={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var vg;function Uy(){if(vg)return Vr;vg=1;var t=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function n(r,c,u){var d=null;if(u!==void 0&&(d=""+u),c.key!==void 0&&(d=""+c.key),"key"in c){u={};for(var p in c)p!=="key"&&(u[p]=c[p])}else u=c;return c=u.ref,{$$typeof:t,type:r,key:d,ref:c!==void 0?c:null,props:u}}return Vr.Fragment=s,Vr.jsx=n,Vr.jsxs=n,Vr}var bg;function Py(){return bg||(bg=1,bu.exports=Uy()),bu.exports}var e=Py(),yu={exports:{}},Pe={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var yg;function By(){if(yg)return Pe;yg=1;var t=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.iterator;function N(z){return z===null||typeof z!="object"?null:(z=v&&z[v]||z["@@iterator"],typeof z=="function"?z:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,L={};function F(z,Z,re){this.props=z,this.context=Z,this.refs=L,this.updater=re||C}F.prototype.isReactComponent={},F.prototype.setState=function(z,Z){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,Z,"setState")},F.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function T(){}T.prototype=F.prototype;function Y(z,Z,re){this.props=z,this.context=Z,this.refs=L,this.updater=re||C}var Q=Y.prototype=new T;Q.constructor=Y,S(Q,F.prototype),Q.isPureReactComponent=!0;var le=Array.isArray,W={H:null,A:null,T:null,S:null,V:null},$=Object.prototype.hasOwnProperty;function ze(z,Z,re,ae,je,qe){return re=qe.ref,{$$typeof:t,type:z,key:Z,ref:re!==void 0?re:null,props:qe}}function Ue(z,Z){return ze(z.type,Z,void 0,void 0,void 0,z.props)}function ve(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function ft(z){var Z={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(re){return Z[re]})}var qt=/\/+/g;function $t(z,Z){return typeof z=="object"&&z!==null&&z.key!=null?ft(""+z.key):Z.toString(36)}function Ml(){}function Je(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(Ml,Ml):(z.status="pending",z.then(function(Z){z.status==="pending"&&(z.status="fulfilled",z.value=Z)},function(Z){z.status==="pending"&&(z.status="rejected",z.reason=Z)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function Ge(z,Z,re,ae,je){var qe=typeof z;(qe==="undefined"||qe==="boolean")&&(z=null);var Ee=!1;if(z===null)Ee=!0;else switch(qe){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(z.$$typeof){case t:case s:Ee=!0;break;case h:return Ee=z._init,Ge(Ee(z._payload),Z,re,ae,je)}}if(Ee)return je=je(z),Ee=ae===""?"."+$t(z,0):ae,le(je)?(re="",Ee!=null&&(re=Ee.replace(qt,"$&/")+"/"),Ge(je,Z,re,"",function(ts){return ts}
vendor: 18,579 bytes, lines 17-41
17)):je!=null&&(ve(je)&&(je=Ue(je,re+(je.key==null||z&&z.key===je.key?"":(""+je.key).replace(qt,"$&/")+"/")+Ee)),Z.push(je)),1;Ee=0;var Dl=ae===""?".":ae+":";if(le(z))for(var gt=0;gt<z.length;gt++)ae=z[gt],qe=Dl+$t(ae,gt),Ee+=Ge(ae,Z,re,qe,je);else if(gt=N(z),typeof gt=="function")for(z=gt.call(z),gt=0;!(ae=z.next()).done;)ae=ae.value,qe=Dl+$t(ae,gt++),Ee+=Ge(ae,Z,re,qe,je);else if(qe==="object"){if(typeof z.then=="function")return Ge(Je(z),Z,re,ae,je);throw Z=String(z),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function B(z,Z,re){if(z==null)return z;var ae=[],je=0;return Ge(z,ae,"","",function(qe){return Z.call(re,qe,je++)}),ae}function ne(z){if(z._status===-1){var Z=z._result;Z=Z(),Z.then(function(re){(z._status===0||z._status===-1)&&(z._status=1,z._result=re)},function(re){(z._status===0||z._status===-1)&&(z._status=2,z._result=re)}),z._status===-1&&(z._status=0,z._result=Z)}if(z._status===1)return z._result.default;throw z._result}var fe=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)};function He(){}return Pe.Children={map:B,forEach:function(z,Z,re){B(z,function(){Z.apply(this,arguments)},re)},count:function(z){var Z=0;return B(z,function(){Z++}),Z},toArray:function(z){return B(z,function(Z){return Z})||[]},only:function(z){if(!ve(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},Pe.Component=F,Pe.Fragment=n,Pe.Profiler=c,Pe.PureComponent=Y,Pe.StrictMode=r,Pe.Suspense=x,Pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,Pe.__COMPILER_RUNTIME={__proto__:null,c:function(z){return W.H.useMemoCache(z)}},Pe.cache=function(z){return function(){return z.apply(null,arguments)}},Pe.cloneElement=function(z,Z,re){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var ae=S({},z.props),je=z.key,qe=void 0;if(Z!=null)for(Ee in Z.ref!==void 0&&(qe=void 0),Z.key!==void 0&&(je=""+Z.key),Z)!$.call(Z,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&Z.ref===void 0||(ae[Ee]=Z[Ee]);var Ee=arguments.length-2;if(Ee===1)ae.children=re;else if(1<Ee){for(var Dl=Array(Ee),gt=0;gt<Ee;gt++)Dl[gt]=arguments[gt+2];ae.children=Dl}return ze(z.type,je,void 0,void 0,qe,ae)},Pe.createContext=function(z){return z={$$typeof:d,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:u,_context:z},z},Pe.createElement=function(z,Z,re){var ae,je={},qe=null;if(Z!=null)for(ae in Z.key!==void 0&&(qe=""+Z.key),Z)$.call(Z,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(je[ae]=Z[ae]);var Ee=arguments.length-2;if(Ee===1)je.children=re;else if(1<Ee){for(var Dl=Array(Ee),gt=0;gt<Ee;gt++)Dl[gt]=arguments[gt+2];je.children=Dl}if(z&&z.defaultProps)for(ae in Ee=z.defaultProps,Ee)je[ae]===void 0&&(je[ae]=Ee[ae]);return ze(z,qe,void 0,void 0,null,je)},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(z){return{$$typeof:p,render:z}},Pe.isValidElement=ve,Pe.lazy=function(z){return{$$typeof:h,_payload:{_status:-1,_result:z},_init:ne}},Pe.memo=function(z,Z){return{$$typeof:g,type:z,compare:Z===void 0?null:Z}},Pe.startTransition=function(z){var Z=W.T,re={};W.T=re;try{var ae=z(),je=W.S;je!==null&&je(re,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(He,fe)}catch(qe){fe(qe)}finally{W.T=Z}},Pe.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},Pe.use=function(z){return W.H.use(z)},Pe.useActionState=function(z,Z,re){return W.H.useActionState(z,Z,re)},Pe.useCallback=function(z,Z){return W.H.useCallback(z,Z)},Pe.useContext=function(z){return W.H.useContext(z)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(z,Z){return W.H.useDeferredValue(z,Z)},Pe.useEffect=function(z,Z,re){var ae=W.H;if(typeof re=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ae.useEffect(z,Z)},Pe.useId=function(){return W.H.useId()},Pe.useImperativeHandle=function(z,Z,re){return W.H.useImperativeHandle(z,Z,re)},Pe.useInsertionEffect=function(z,Z){return W.H.useInsertionEffect(z,Z)},Pe.useLayoutEffect=function(z,Z){return W.H.useLayoutEffect(z,Z)},Pe.useMemo=function(z,Z){return W.H.useMemo(z,Z)},Pe.useOptimistic=function(z,Z){return W.H.useOptimistic(z,Z)},Pe.useReducer=function(z,Z,re){return W.H.useReducer(z,Z,re)},Pe.useRef=function(z){return W.H.useRef(z)},Pe.useState=function(z){return W.H.useState(z)},Pe.useSyncExternalStore=function(z,Z,re){return W.H.useSyncExternalStore(z,Z,re)},Pe.useTransition=function(){return W.H.useTransition()},Pe.version="19.1.0",Pe}var wg;function sd(){return wg||(wg=1,yu.exports=By()),yu.exports}var y=sd();const Iy=Hy(y);var wu={exports:{}},Kr={},Nu={exports:{}},ku={};/**
18 * @license React
19 * scheduler.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var Ng;function Fy(){return Ng||(Ng=1,function(t){function s(B,ne){var fe=B.length;B.push(ne);e:for(;0<fe;){var He=fe-1>>>1,z=B[He];if(0<c(z,ne))B[He]=ne,B[fe]=z,fe=He;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var ne=B[0],fe=B.pop();if(fe!==ne){B[0]=fe;e:for(var He=0,z=B.length,Z=z>>>1;He<Z;){var re=2*(He+1)-1,ae=B[re],je=re+1,qe=B[je];if(0>c(ae,fe))je<z&&0>c(qe,ae)?(B[He]=qe,B[je]=fe,He=je):(B[He]=ae,B[re]=fe,He=re);else if(je<z&&0>c(qe,fe))B[He]=qe,B[je]=fe,He=je;else break e}}return ne}function c(B,ne){var fe=B.sortIndex-ne.sortIndex;return fe!==0?fe:B.id-ne.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var d=Date,p=d.now();t.unstable_now=function(){return d.now()-p}}var x=[],g=[],h=1,v=null,N=3,C=!1,S=!1,L=!1,F=!1,T=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function le(B){for(var ne=n(g);ne!==null;){if(ne.callback===null)r(g);else if(ne.startTime<=B)r(g),ne.sortIndex=ne.expirationTime,s(x,ne);else break;ne=n(g)}}function W(B){if(L=!1,le(B),!S)if(n(x)!==null)S=!0,$||($=!0,$t());else{var ne=n(g);ne!==null&&Ge(W,ne.startTime-B)}}var $=!1,ze=-1,Ue=5,ve=-1;function ft(){return F?!0:!(t.unstable_now()-ve<Ue)}function qt(){if(F=!1,$){var B=t.unstable_now();ve=B;var ne=!0;try{e:{S=!1,L&&(L=!1,Y(ze),ze=-1),C=!0;var fe=N;try{t:{for(le(B),v=n(x);v!==null&&!(v.expirationTime>B&&ft());){var He=v.callback;if(typeof He=="function"){v.callback=null,N=v.priorityLevel;var z=He(v.expirationTime<=B);if(B=t.unstable_now(),typeof z=="function"){v.callback=z,le(B),ne=!0;break t}v===n(x)&&r(x),le(B)}else r(x);v=n(x)}if(v!==null)ne=!0;else{var Z=n(g);Z!==null&&Ge(W,Z.startTime-B),ne=!1}}break e}finally{v=null,N=fe,C=!1}ne=void 0}}finally{ne?$t():$=!1}}}var $t;if(typeof Q=="function")$t=function(){Q(qt)};else if(typeof MessageChannel<"u"){var Ml=new MessageChannel,Je=Ml.port2;Ml.port1.onmessage=qt,$t=function(){Je.postMessage(null)}}else $t=function(){T(qt,0)};function Ge(B,ne){ze=T(function(){B(t.unstable_now())},ne)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(B){B.callback=null},t.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ue=0<B?Math.floor(1e3/B):5},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_next=function(B){switch(N){case 1:case 2:case 3:var ne=3;break;default:ne=N}var fe=N;N=ne;try{return B()}finally{N=fe}},t.unstable_requestPaint=function(){F=!0},t.unstable_runWithPriority=function(B,ne){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var fe=N;N=B;try{return ne()}finally{N=fe}},t.unstable_scheduleCallback=function(B,ne,fe){var He=t.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?He+fe:He):fe=He,B){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=fe+z,B={id:h++,callback:ne,priorityLevel:B,startTime:fe,expirationTime:z,sortIndex:-1},fe>He?(B.sortIndex=fe,s(g,B),n(x)===null&&B===n(g)&&(L?(Y(ze),ze=-1):L=!0,Ge(W,fe-He))):(B.sortIndex=z,s(x,B),S||C||(S=!0,$||($=!0,$t()))),B},t.unstable_shouldYield=ft,t.unstable_wrapCallback=function(B){var ne=N;return function(){var fe=N;N=ne;try{return B.apply(this,arguments)}finally{N=fe}}}}(ku)),ku}var kg;function Yy(){return kg||(kg=1,Nu.exports=Fy()),Nu.exports}var _u={exports:{}},Rl={};/**
26 * @license React
27 * react-dom.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var _g;function Gy(){if(_g)return Rl;_g=1;var t=sd();function s(x){var g="https://react.dev/errors/"+x;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)g+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+x+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(s(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},c=Symbol.for("react.portal");function u(x,g,h){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:x,containerInfo:g,implementation:h}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(x,g){if(x==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Rl.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Rl.createPortal=function(x,g){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(s(299));return u(x,g,null,h)},Rl.flushSync=function(x){var g=d.T,h=r.p;try{if(d.T=null,r.p=2,x)return x()}finally{d.T=g,r.p=h,r.d.f()}},Rl.preconnect=function(x,g){typeof x=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(x,g))},Rl.prefetchDNS=function(x){typeof x=="string"&&r.d.D(x)},Rl.preinit=function(x,g){if(typeof x=="string"&&g&&typeof g.as=="string"){var h=g.as,v=p(h,g.crossOrigin),N=typeof g.integrity=="string"?g.integrity:void 0,C=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;h==="style"?r.d.S(x,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:N,fetchPriority:C}):h==="script"&&r.d.X(x,{crossOrigin:v,integrity:N,fetchPriority:C,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Rl.preinitModule=function(x,g){if(typeof x=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var h=p(g.as,g.crossOrigin);r.d.M(x,{crossOrigin:h,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(x)},Rl.preload=function(x,g){if(typeof x=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var h=g.as,v=p(h,g.crossOrigin);r.d.L(x,h,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Rl.preloadModule=function(x,g){if(typeof x=="string")if(g){var h=p(g.as,g.crossOrigin);r.d.m(x,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:h,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(x)},Rl.requestFormReset=function(x){r.d.r(x)},Rl.unstable_batchedUpdates=function(x,g){return x(g)},Rl.useFormState=function(x,g,h){return d.H.useFormState(x,g,h)},Rl.useFormStatus=function(){return d.H.useHostTransitionStatus()},Rl.version="19.1.0",Rl}var Eg;function b1(){if(Eg)return _u.exports;Eg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(s){console.error(s)}}return t(),_u.exports=Gy(),_u.exports}/**
34 * @license React
35 * react-dom-client.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var Sg;function qy(){if(Sg)return Kr;Sg=1;var t=Yy(),s=sd(),n=b1();function r(l){var a="https://react.dev/errors/"+l;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+l+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function u(l){var a=l,i=l;if(l.alternate)for(;a.return;)a=a.return;else{l=a;do a=l,(a.flags&4098)!==0&&(i=a.return),l=a.return;while(l)}return a.tag===3?i:null}function d(l){if(l.tag===13){var a=l.memoizedState;if(a===null&&(l=l.alternate,l!==null&&(a=l.memoizedState)),a!==null)return a.dehydrated}return null}function p(l){if(u(l)!==l)throw Error(r(188))}function x(l){var a=l.alternate;if(!a){if(a=u(l),a===null)throw Error(r(188));return a!==l?null:l}for(var i=l,o=a;;){var m=i.return;if(m===null)break;var f=m.alternate;if(f===null){if(o=m.return,o!==null){i=o;continue}break}if(m.child===f.child){for(f=m.child;f;){if(f===i)return p(m),l;if(f===o)return p(m),a;f=f.sibling}throw Error(r(188))}if(i.return!==o.return)i=m,o=f;else{for(var j=!1,w=m.child;w;){if(w===i){j=!0,i=m,o=f;break}if(w===o){j=!0,o=m,i=f;break}w=w.sibling}if(!j){for(w=f.child;w;){if(w===i){j=!0,i=f,o=m;break}if(w===o){j=!0,o=f,i=m;break}w=w.sibling}if(!j)throw Error(r(189))}}if(i.alternate!==o)throw Error(r(190))}if(i.tag!==3)throw Error(r(188));return i.stateNode.current===i?l:a}function g(l){var a=l.tag;if(a===5||a===26||a===27||a===6)return l;for(l=l.child;l!==null;){if(a=g(l),a!==null)return a;l=l.sibling}return null}var h=Object.assign,v=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),Y=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),ze=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),ft=Symbol.for("react.memo_cache_sentinel"),qt=Symbol.iterator;function $t(l){return l===null||typeof l!="object"?null:(l=qt&&l[qt]||l["@@iterator"],typeof l=="function"?l:null)}var Ml=Symbol.for("react.client.reference");function Je(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Ml?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case S:return"Fragment";case F:return"Profiler";case L:return"StrictMode";case W:return"Suspense";case $:return"SuspenseList";case ve:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case C:return"Portal";case Q:return(l.displayName||"Context")+".Provider";case Y:return(l._context.displayName||"Context")+".Consumer";case le:var a=l.render;return l=l.displayName,l||(l=a.displayName||a.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case ze:return a=l.displayName||null,a!==null?a:Je(l.type)||"Memo";case Ue:a=l._payload,l=l._init;try{return Je(l(a))}catch{}}return null}var Ge=Array.isArray,B=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},He=[],z=-1;function Z(l){return{current:l}}function re(l){0>z||(l.current=He[z],He[z]=null,z--)}function ae(l,a){z++,He[z]=l.current,l.current=a}var je=Z(null),qe=Z(null),Ee=Z(null),Dl=Z(null);function gt(l,a){switch(ae(Ee,a),ae(qe,l),ae(je,null),a.nodeType){case 9:case 11:l=(l=a.documentElement)&&(l=l.namespaceURI)?Vh(l):0;break;default:if(l=a.tagName,a=a.namespaceURI)a=Vh(a),l=Kh(a,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}re(je),ae(je,l)}function ts(){re(je),re(qe),re(Ee)}function xl(l){l.memoizedState!==null&&ae(Dl,l);var a=je.current,i=Kh(a,l.type);a!==i&&(ae(qe,l),ae(je,i))}function Fa(l){qe.current===l&&(re(je),re(qe)),Dl.current===l&&(re(Dl),Ir._currentValue=fe)}var ei=Object.prototype.hasOwnProperty,Zi=t.unstable_scheduleCallback,Ya=t.unstable_cancelCallback,md=t.unstable_shouldYield,pd=t.unstable_requestPaint,ea=t.unstable_now,fd=t.unstable_getCurrentPriorityLevel,go=t.unstable_ImmediatePriority,jo=t.unstable_UserBlockingPriority,ti=t.unstable_NormalPriority,xs=t.unstable_LowPriority,Ts=t.unstable_IdlePriority,vo=t.log,Xi=t.unstable_setDisableYieldValue,Ul=null,Vt=null;function Ga(l){if(typeof vo=="function"&&Xi(l),Vt&&typeof Vt.setStrictMode=="function")try{Vt.setStrictMode(Ul,l)}catch{}}var kl=Math.clz32?Math.clz32:bo,hd=Math.log,ls=Math.LN2;function bo(l){return l>>>=0,l===0?32:31-(hd(l)/ls|0)|0}var un=256,mn=4194304;function us(l){var a=l&42;if(a!==0)return a;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;
vendor: 4,168 bytes, line 41
41case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function pn(l,a,i){var o=l.pendingLanes;if(o===0)return 0;var m=0,f=l.suspendedLanes,j=l.pingedLanes;l=l.warmLanes;var w=o&134217727;return w!==0?(o=w&~f,o!==0?m=us(o):(j&=w,j!==0?m=us(j):i||(i=w&~l,i!==0&&(m=us(i))))):(w=o&~f,w!==0?m=us(w):j!==0?m=us(j):i||(i=o&~l,i!==0&&(m=us(i)))),m===0?0:a!==0&&a!==m&&(a&f)===0&&(f=m&-m,i=a&-a,f>=i||f===32&&(i&4194048)!==0)?a:m}function as(l,a){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&a)===0}function yo(l,a){switch(l){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function li(){var l=un;return un<<=1,(un&4194048)===0&&(un=256),l}function wo(){var l=mn;return mn<<=1,(mn&62914560)===0&&(mn=4194304),l}function ai(l){for(var a=[],i=0;31>i;i++)a.push(l);return a}function fn(l,a){l.pendingLanes|=a,a!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function No(l,a,i,o,m,f){var j=l.pendingLanes;l.pendingLanes=i,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=i,l.entangledLanes&=i,l.errorRecoveryDisabledLanes&=i,l.shellSuspendCounter=0;var w=l.entanglements,E=l.expirationTimes,H=l.hiddenUpdates;for(i=j&~i;0<i;){var q=31-kl(i),X=1<<q;w[q]=0,E[q]=-1;var U=H[q];if(U!==null)for(H[q]=null,q=0;q<U.length;q++){var P=U[q];P!==null&&(P.lane&=-536870913)}i&=~X}o!==0&&hn(l,o,0),f!==0&&m===0&&l.tag!==0&&(l.suspendedLanes|=f&~(j&~a))}function hn(l,a,i){l.pendingLanes|=a,l.suspendedLanes&=~a;var o=31-kl(a);l.entangledLanes|=a,l.entanglements[o]=l.entanglements[o]|1073741824|i&4194090}function gn(l,a){var i=l.entangledLanes|=a;for(l=l.entanglements;i;){var o=31-kl(i),m=1<<o;m&a|l[o]&a&&(l[o]|=a),i&=~m}}function Qi(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function Ji(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function R(){var l=ne.p;return l!==0?l:(l=window.event,l===void 0?32:mg(l.type))}function D(l,a){var i=ne.p;try{return ne.p=l,a()}finally{ne.p=i}}var I=Math.random().toString(36).slice(2),J="__reactFiber$"+I,se="__reactProps$"+I,he="__reactContainer$"+I,Se="__reactEvents$"+I,me="__reactListeners$"+I,Ne="__reactHandles$"+I,ke="__reactResources$"+I,Re="__reactMarker$"+I;function ye(l){delete l[J],delete l[se],delete l[Se],delete l[me],delete l[Ne]}function Le(l){var a=l[J];if(a)return a;for(var i=l.parentNode;i;){if(a=i[he]||i[J]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(l=Jh(l);l!==null;){if(i=l[J])return i;l=Jh(l)}return a}l=i,i=l.parentNode}return null}function lt(l){if(l=l[J]||l[he]){var a=l.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return l}return null}function kt(l){var a=l.tag;if(a===5||a===26||a===27||a===6)return l.stateNode;throw Error(r(33))}function Kt(l){var a=l[ke];return a||(a=l[ke]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function st(l){l[Re]=!0}var We=new Set,Rs={};function $l(l,a){ga(l,a),ga(l+"Capture",a)}function ga(l,a){for(Rs[l]=a,l=0;l<a.length;l++)We.add(a[l])}var Pl=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),As={},Ls={};function Wi(l){return ei.call(Ls,l)?!0:ei.call(As,l)?!1:Pl.test(l)?Ls[l]=!0:(As[l]=!0,!1)}
vendor: 4,138 bytes, lines 41-48
41function ja(l,a,i){if(Wi(a))if(i===null)l.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":l.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){l.removeAttribute(a);return}}l.setAttribute(a,""+i)}}function ms(l,a,i){if(i===null)l.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(a);return}l.setAttribute(a,""+i)}}function Fe(l,a,i,o){if(o===null)l.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(i);return}l.setAttributeNS(a,i,""+o)}}var zl,qa;function Va(l){if(zl===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);zl=a&&a[1]||"",qa=-1<i.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+zl+l+qa}var jn=!1;function Ot(l,a){if(!l||jn)return"";jn=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(P){var U=P}Reflect.construct(l,[],X)}else{try{X.call()}catch(P){U=P}l.call(X.prototype)}}else{try{throw Error()}catch(P){U=P}(X=l())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(P){if(P&&U&&typeof P.stack=="string")return[P.stack,U.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),j=f[0],w=f[1];if(j&&w){var E=j.split(`
44`),H=w.split(`
45`);for(m=o=0;o<E.length&&!E[o].includes("DetermineComponentFrameRoot");)o++;for(;m<H.length&&!H[m].includes("DetermineComponentFrameRoot");)m++;if(o===E.length||m===H.length)for(o=E.length-1,m=H.length-1;1<=o&&0<=m&&E[o]!==H[m];)m--;for(;1<=o&&0<=m;o--,m--)if(E[o]!==H[m]){if(o!==1||m!==1)do if(o--,m--,0>m||E[o]!==H[m]){var q=`
46`+E[o].replace(" at new "," at ");return l.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",l.displayName)),q}while(1<=o&&0<=m);break}}}finally{jn=!1,Error.prepareStackTrace=i}return(i=l?l.displayName||l.name:"")?Va(i):""}function Ms(l){switch(l.tag){case 26:case 27:case 5:return Va(l.type);case 16:return Va("Lazy");case 13:return Va("Suspense");case 19:return Va("SuspenseList");case 0:case 15:return Ot(l.type,!1);case 11:return Ot(l.type.render,!1);case 1:return Ot(l.type,!0);case 31:return Va("Activity");default:return""}}function er(l){try{var a="";do a+=Ms(l),l=l.return;while(l);return a}catch(i){return`
47Error generating stack: `+i.message+`
48`+i.stack}}function Bl(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Bm(l){var a=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Lv(l){var a=Bm(l)?"checked":"value",i=Object.getOwnPropertyDescriptor(l.constructor.prototype,a),o=""+l[a];if(!l.hasOwnProperty(a)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var m=i.get,f=i.set;return Object.defineProperty(l,a,{configurable:!0,get:function(){return m.call(this)},set:function(j){o=""+j,f.call(this,j)}}),Object.defineProperty(l,a,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(j){o=""+j},stopTracking:function(){l._valueTracker=null,delete l[a]}}}}function ko(l){l._valueTracker||(l._valueTracker=Lv(l))}function Im(l){if(!l)return!1;var a=l._valueTracker;if(!a)return!0;var i=a.getValue(),o="";return l&&(o=Bm(l)?l.checked?"true":"false":l.value),l=o,l!==i?(a.setValue(l),!0):!1}function _o(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var Mv=/[\n"\\]/g;function va(l){return l.replace(Mv,function(a){return"\\"+a.charCo
vendor: 4,399 bytes, line 48
48deAt(0).toString(16)+" "})}function gd(l,a,i,o,m,f,j,w){l.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?l.type=j:l.removeAttribute("type"),a!=null?j==="number"?(a===0&&l.value===""||l.value!=a)&&(l.value=""+Bl(a)):l.value!==""+Bl(a)&&(l.value=""+Bl(a)):j!=="submit"&&j!=="reset"||l.removeAttribute("value"),a!=null?jd(l,j,Bl(a)):i!=null?jd(l,j,Bl(i)):o!=null&&l.removeAttribute("value"),m==null&&f!=null&&(l.defaultChecked=!!f),m!=null&&(l.checked=m&&typeof m!="function"&&typeof m!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?l.name=""+Bl(w):l.removeAttribute("name")}function Fm(l,a,i,o,m,f,j,w){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(l.type=f),a!=null||i!=null){if(!(f!=="submit"&&f!=="reset"||a!=null))return;i=i!=null?""+Bl(i):"",a=a!=null?""+Bl(a):i,w||a===l.value||(l.value=a),l.defaultValue=a}o=o??m,o=typeof o!="function"&&typeof o!="symbol"&&!!o,l.checked=w?l.checked:!!o,l.defaultChecked=!!o,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(l.name=j)}function jd(l,a,i){a==="number"&&_o(l.ownerDocument)===l||l.defaultValue===""+i||(l.defaultValue=""+i)}function si(l,a,i,o){if(l=l.options,a){a={};for(var m=0;m<i.length;m++)a["$"+i[m]]=!0;for(i=0;i<l.length;i++)m=a.hasOwnProperty("$"+l[i].value),l[i].selected!==m&&(l[i].selected=m),m&&o&&(l[i].defaultSelected=!0)}else{for(i=""+Bl(i),a=null,m=0;m<l.length;m++){if(l[m].value===i){l[m].selected=!0,o&&(l[m].defaultSelected=!0);return}a!==null||l[m].disabled||(a=l[m])}a!==null&&(a.selected=!0)}}function Ym(l,a,i){if(a!=null&&(a=""+Bl(a),a!==l.value&&(l.value=a),i==null)){l.defaultValue!==a&&(l.defaultValue=a);return}l.defaultValue=i!=null?""+Bl(i):""}function Gm(l,a,i,o){if(a==null){if(o!=null){if(i!=null)throw Error(r(92));if(Ge(o)){if(1<o.length)throw Error(r(93));o=o[0]}i=o}i==null&&(i=""),a=i}i=Bl(a),l.defaultValue=i,o=l.textContent,o===i&&o!==""&&o!==null&&(l.value=o)}function ni(l,a){if(a){var i=l.firstChild;if(i&&i===l.lastChild&&i.nodeType===3){i.nodeValue=a;return}}l.textContent=a}var Dv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function qm(l,a,i){var o=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?l.setProperty(a,""):a==="float"?l.cssFloat="":l[a]="":o?l.setProperty(a,i):typeof i!="number"||i===0||Dv.has(a)?a==="float"?l.cssFloat=i:l[a]=(""+i).trim():l[a]=i+"px"}function Vm(l,a,i){if(a!=null&&typeof a!="object")throw Error(r(62));if(l=l.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?l.setProperty(o,""):o==="float"?l.cssFloat="":l[o]="");for(var m in a)o=a[m],a.hasOwnProperty(m)&&i[m]!==o&&qm(l,m,o)}else for(var f in a)a.hasOwnProperty(f)&&qm(l,f,a[f])}function vd(l){if(l.indexOf("-")===-1)return!1;switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $v=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
48dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ov=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Eo(l){return Ov.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}var bd=null;function yd(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var ii=null,ri=null;function Km(l){var a=lt(l);if(a&&(l=a.stateNode)){var i=l[se]||null;e:switch(l=a.stateNode,a.type){case"input":if(gd(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=l;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+va(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var o=i[a];if(o!==l&&o.form===l.form){var m=o[se]||null;if(!m)throw Error(r(90));gd(o,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(a=0;a<i.length;a++)o=i[a],o.form===l.form&&Im(o)}break e;case"textarea":Ym(l,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&si(l,!!i.multiple,a,!1)}}}var wd=!1;function Zm(l,a,i){if(wd)return l(a,i);wd=!0;try{var o=l(a);return o}finally{if(wd=!1,(ii!==null||ri!==null)&&(xc(),ii&&(a=ii,l=ri,ri=ii=null,Km(a),l)))for(a=0;a<l.length;a++)Km(l[a])}}function tr(l,a){var i=l.stateNode;if(i===null)return null;var o=i[se]||null;if(o===null)return null;i=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(l=l.type,o=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!o;break e;default:l=!1}if(l)return null;if(i&&typeof i!="function")throw Error(r(231,a,typeof i));return i}var ps=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nd=!1;if(ps)try{var lr={};Object.defineProperty(lr,"passive",{get:function(){Nd=!0}}),window.addEventListener("test",lr,lr),window.removeEventListener("test",lr,lr)}catch{Nd=!1}var Ds=null,kd=null,So=null;function Xm(){if(So)return So;var l,a=kd,i=a.length,o,m="value"in Ds?Ds.value:Ds.textContent,f=m.length;for(l=0;l<i&&a[l]===m[l];l++);var j=i-l;for(o=1;o<=j&&a[i-o]===m[f-o];o++);return So=m.slice(l,1<o?1-o:void 0)}function Co(l){var a=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&a===13&&(l=13)):l=a,l===10&&(l=13),32<=l||l===13?l:0}function zo(){return!0}function Qm(){return!1}function Il(l){function a(i,o,m,f,j){this._reactName=i,this._targetInst=m,this.type=o,this.nativeEvent=f,this.target=j,this.currentTarget=null;for(var w in l)l.hasOwnProperty(w)&&(i=l[w],this[w]=i?i(f):f[w]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?zo:Qm,this.isPropagationStopped=Qm,this}return h(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=zo)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=zo)},persist:function(){},isPersistent:zo}),a}var vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},To=Il(vn),ar=h({},vn,{view:0,detail:0}),Hv=Il(ar),_d,Ed,sr,Ro=h({},ar,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cd,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==sr&&(sr&&l.type==="mousemove"?(_d=l.screenX-sr.screenX,Ed=l.screenY-sr.screenY):Ed=_d=0,sr=l),_d)},movementY:function(l){return"movementY"in l?l.movementY:Ed}}),Jm=Il(Ro),Uv=h({},Ro,{dataTransfer:0}),Pv=Il(Uv),Bv=h({},ar,{relatedTarget:0}),Sd=Il(Bv),Iv=h({},vn,{animationName:0,elapsedTime:0,pseudoElement:0}),Fv=Il(Iv),Yv=h({},vn,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),Gv=Il(Yv),qv=h({},vn,{data:0}),Wm=Il(qv),Vv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Zv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xv(l){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(l):(l=Zv[l])?!!a[l]:!1}
vendor: 4,933 bytes, line 48
48function Cd(){return Xv}var Qv=h({},ar,{key:function(l){if(l.key){var a=Vv[l.key]||l.key;if(a!=="Unidentified")return a}return l.type==="keypress"?(l=Co(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?Kv[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cd,charCode:function(l){return l.type==="keypress"?Co(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Co(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Jv=Il(Qv),Wv=h({},Ro,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ep=Il(Wv),eb=h({},ar,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cd}),tb=Il(eb),lb=h({},vn,{propertyName:0,elapsedTime:0,pseudoElement:0}),ab=Il(lb),sb=h({},Ro,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),nb=Il(sb),ib=h({},vn,{newState:0,oldState:0}),rb=Il(ib),ob=[9,13,27,32],zd=ps&&"CompositionEvent"in window,nr=null;ps&&"documentMode"in document&&(nr=document.documentMode);var cb=ps&&"TextEvent"in window&&!nr,tp=ps&&(!zd||nr&&8<nr&&11>=nr),lp=" ",ap=!1;function sp(l,a){switch(l){case"keyup":return ob.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function np(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var oi=!1;function db(l,a){switch(l){case"compositionend":return np(a);case"keypress":return a.which!==32?null:(ap=!0,lp);case"textInput":return l=a.data,l===lp&&ap?null:l;default:return null}}function xb(l,a){if(oi)return l==="compositionend"||!zd&&sp(l,a)?(l=Xm(),So=kd=Ds=null,oi=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return tp&&a.locale!=="ko"?null:a.data;default:return null}}var ub={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ip(l){var a=l&&l.nodeName&&l.nodeName.toLowerCase();return a==="input"?!!ub[l.type]:a==="textarea"}function rp(l,a,i,o){ii?ri?ri.push(o):ri=[o]:ii=o,a=gc(a,"onChange"),0<a.length&&(i=new To("onChange","change",null,i,o),l.push({event:i,listeners:a}))}var ir=null,rr=null;function mb(l){Ih(l,0)}function Ao(l){var a=kt(l);if(Im(a))return l}function op(l,a){if(l==="change")return a}var cp=!1;if(ps){var Td;if(ps){var Rd="oninput"in document;if(!Rd){var dp=document.createElement("div");dp.setAttribute("oninput","return;"),Rd=typeof dp.oninput=="function"}Td=Rd}else Td=!1;cp=Td&&(!document.documentMode||9<document.documentMode)}function xp(){ir&&(ir.detachEvent("onpropertychange",up),rr=ir=null)}function up(l){if(l.propertyName==="value"&&Ao(rr)){var a=[];rp(a,rr,l,yd(l)),Zm(mb,a)}}function pb(l,a,i){l==="focusin"?(xp(),ir=a,rr=i,ir.attachEvent("onpropertychange",up)):l==="focusout"&&xp()}function fb(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Ao(rr)}function hb(l,a){if(l==="click")return Ao(a)}function gb(l,a){if(l==="input"||l==="change")return Ao(a)}function jb(l,a){return l===a&&(l!==0||1/l===1/a)||l!==l&&a!==a}var ta=typeof Object.is=="function"?Object.is:jb;function or(l,a){if(ta(l,a))return!0;if(typeof l!="object"||l===null||typeof a!="object"||a===null)return!1;var i=Object.keys(l),o=Object.keys(a);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var m=i[o];if(!ei.call(a,m)||!ta(l[m],a[m]))return!1}return!0}function mp(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function pp(l,a){var i=mp(l);l=0;for(var o;i;){if(i.nodeType===3){if(o=l+i.textContent.length,l<=a&&o>=a)return{node:i,offset:a-l};l=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=mp(i)}}function fp(l,a){return l&&a?l===a?!0:l&&l.nodeType===3?!1:a&&a.nodeType===3?fp(l,a.parentNode):"contains"in l?l.contains(a):l.compareDocumentPosition?!!(l.compareDocumentPosition(a)&16):!1:!1}function hp(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var a=_o(l.document);a instanceof l.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)l=a.contentWindow;else break;a=_o(l.document)}return a}function Ad(l){var a=l&&l.nodeName&&l.nodeName.toLowerCase();return a&&(a==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||a==="textarea"||l.contentEditable==="true")}var vb=ps&&"documentMode"in document&&11>
vendor: 25,485 bytes, line 48
48=document.documentMode,ci=null,Ld=null,cr=null,Md=!1;function gp(l,a,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Md||ci==null||ci!==_o(o)||(o=ci,"selectionStart"in o&&Ad(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),cr&&or(cr,o)||(cr=o,o=gc(Ld,"onSelect"),0<o.length&&(a=new To("onSelect","select",null,a,i),l.push({event:a,listeners:o}),a.target=ci)))}function bn(l,a){var i={};return i[l.toLowerCase()]=a.toLowerCase(),i["Webkit"+l]="webkit"+a,i["Moz"+l]="moz"+a,i}var di={animationend:bn("Animation","AnimationEnd"),animationiteration:bn("Animation","AnimationIteration"),animationstart:bn("Animation","AnimationStart"),transitionrun:bn("Transition","TransitionRun"),transitionstart:bn("Transition","TransitionStart"),transitioncancel:bn("Transition","TransitionCancel"),transitionend:bn("Transition","TransitionEnd")},Dd={},jp={};ps&&(jp=document.createElement("div").style,"AnimationEvent"in window||(delete di.animationend.animation,delete di.animationiteration.animation,delete di.animationstart.animation),"TransitionEvent"in window||delete di.transitionend.transition);function yn(l){if(Dd[l])return Dd[l];if(!di[l])return l;var a=di[l],i;for(i in a)if(a.hasOwnProperty(i)&&i in jp)return Dd[l]=a[i];return l}var vp=yn("animationend"),bp=yn("animationiteration"),yp=yn("animationstart"),bb=yn("transitionrun"),yb=yn("transitionstart"),wb=yn("transitioncancel"),wp=yn("transitionend"),Np=new Map,$d="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");$d.push("scrollEnd");function Ka(l,a){Np.set(l,a),$l(a,[l])}var kp=new WeakMap;function ba(l,a){if(typeof l=="object"&&l!==null){var i=kp.get(l);return i!==void 0?i:(a={value:l,source:a,stack:er(a)},kp.set(l,a),a)}return{value:l,source:a,stack:er(a)}}var ya=[],xi=0,Od=0;function Lo(){for(var l=xi,a=Od=xi=0;a<l;){var i=ya[a];ya[a++]=null;var o=ya[a];ya[a++]=null;var m=ya[a];ya[a++]=null;var f=ya[a];if(ya[a++]=null,o!==null&&m!==null){var j=o.pending;j===null?m.next=m:(m.next=j.next,j.next=m),o.pending=m}f!==0&&_p(i,m,f)}}function Mo(l,a,i,o){ya[xi++]=l,ya[xi++]=a,ya[xi++]=i,ya[xi++]=o,Od|=o,l.lanes|=o,l=l.alternate,l!==null&&(l.lanes|=o)}function Hd(l,a,i,o){return Mo(l,a,i,o),Do(l)}function ui(l,a){return Mo(l,null,null,a),Do(l)}function _p(l,a,i){l.lanes|=i;var o=l.alternate;o!==null&&(o.lanes|=i);for(var m=!1,f=l.return;f!==null;)f.childLanes|=i,o=f.alternate,o!==null&&(o.childLanes|=i),f.tag===22&&(l=f.stateNode,l===null||l._visibility&1||(m=!0)),l=f,f=f.return;return l.tag===3?(f=l.stateNode,m&&a!==null&&(m=31-kl(i),l=f.hiddenUpdates,o=l[m],o===null?l[m]=[a]:o.push(a),a.lane=i|536870912),f):null}function Do(l){if(50<Mr)throw Mr=0,Yx=null,Error(r(185));for(var a=l.return;a!==null;)l=a,a=l.return;return l.tag===3?l.stateNode:null}var mi={};function Nb(l,a,i,o){this.tag=l,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function la(l,a,i,o){return new Nb(l,a,i,o)}function Ud(l){return l=l.prototype,!(!l||!l.isReactComponent)}function fs(l,a){var i=l.alternate;return i===null?(i=la(l.tag,a,l.key,l.mode),i.elementType=l.elementType,i.type=l.type,i.stateNode=l.stateNode,i.alternate=l,l.alternate=i):(i.pendingProps=a,i.type=l.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=l.flags&65011712,i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,a=l.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=l.sibling,i.index=l.index,i.ref=l.ref,i.refCleanup=l.refCleanup,i}function Ep(l,a){l.flags&=65011714;var i=l.alternate;return i===null?(l.childLanes=0,l.lanes=a,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,l.type=i.type,a=i.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),l}function $o(l,a,i,o,m,f){var j=0;if(o=l,typeof l=="function")Ud(l)&&(j=1);else if(typeof l=="string")j=_y(l,i,je.current)?26:l==="html"||l==="head"||l==="body"?27:5;else e:switch(l){case ve:return l=la(31,i,a,m),l.elementType=ve,l.lanes=f,l;case S:return wn(i.children,m,f,a);case L:j=8,m|=24;break;case F:return l=la(12,i,a,m|2),l.elementType=F,l.lanes=f,l;case W:return l=la(13,i,a,m),l.elementType=W,l.lanes=f,l;case $:return l=la(19,i,a,m),l.elementType=$,l.lanes=f,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case T:case Q:j=10;break e;case Y:j=9;break e;case le:j=11;break e;case ze:j=14;break e;case Ue:j=16,o=null;break e}j=29,i=Error(r(130,l===null?"null":typeof l,"")),o=null}return a=la(j,i,a,m),a.elementType=l,a.type=o,a.lanes=f,a}function wn(l,a,i,o){return l=la(7,l,o,a),l.lanes=i,l}function Pd(l,a,i){return l=la(6,l,null,a),l.lanes=i,l}function Bd(l,a,i){return a=la(4,l.children!==null?l.children:[],l.key,a),a.lanes=i,a.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},a}var pi=[],fi=0,Oo=null,Ho=0,wa=[],Na=0,Nn=null,hs=1,gs="";function kn(l,a){pi[fi++]=Ho,pi[fi++]=Oo,Oo=l,Ho=a}function Sp(l,a,i){wa[Na++]=hs,wa[Na++]=gs,wa[Na++]=Nn,Nn=l;var o=hs;l=gs;var m=32-kl(o)-1;o&=~(1<<m),i+=1;var f=32-kl(a)+m;if(30<f){var j=m-m%5;f=(o&(1<<j)-1).toString(32),o>>=j,m-=j,hs=1<<32-kl(a)+m|i<<m|o,gs=f+l}else hs=1<<f|i<<m|o,gs=l}function Id(l){l.return!==null&&(kn(l,1),Sp(l,1,0))}function Fd(l){for(;l===Oo;)Oo=pi[--fi],pi[fi]=null,Ho=pi[--fi],pi[fi]=null;for(;l===Nn;)Nn=wa[--Na],wa[Na]=null,gs=wa[--Na],wa[Na]=null,hs=wa[--Na],wa[Na]=null}var Ol=null,ll=null,it=!1,_n=null,ss=!1,Yd=Error(r(519));function En(l){var a=Error(r(418,""));throw ur(ba(a,l)),Yd}function Cp(l){var a=l.stateNode,i=l.type,o=l.memoizedProps;switch(a[J]=l,a[se]=o,i){case"dialog":Ke("cancel",a),Ke("close",a);break;case"iframe":case"object":case"embed":Ke("load",a);break;case"video":case"audio":for(i=0;i<$r.length;i++)Ke($r[i],a);break;case"source":Ke("error",a);break;case"img":case"image":case"link":Ke("error",a),Ke("load",a);break;case"details":Ke("toggle",a);break;case"input":Ke("invalid",a),Fm(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),ko(a);break;case"select":Ke("invalid",a);break;case"textarea":Ke("invalid",a),Gm(a,o.value,o.defaultValue,o.children),ko(a)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||o.suppressHydrationWarning===!0||qh(a.textContent,i)?(o.popover!=null&&(Ke("beforetoggle",a),Ke("toggle",a)),o.onScroll!=null&&Ke("scroll",a),o.onScrollEnd!=null&&Ke("scrollend",a),o.onClick!=null&&(a.onclick=jc),a=!0):a=!1,a||En(l)}function zp(l){for(Ol=l.return;Ol;)switch(Ol.tag){case 5:case 13:ss=!1;return;case 27:case 3:ss=!0;return;default:Ol=Ol.return}}function dr(l){if(l!==Ol)return!1;if(!it)return zp(l),it=!0,!1;var a=l.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=l.type,i=!(i!=="form"&&i!=="button")||iu(l.type,l.memoizedProps)),i=!i),i&&ll&&En(l),zp(l),a===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));e:{for(l=l.nextSibling,a=0;l;){if(l.nodeType===8)if(i=l.data,i==="/$"){if(a===0){ll=Xa(l.nextSibling);break e}a--}else i!=="$"&&i!=="$!"&&i!=="$?"||a++;l=l.nextSibling}ll=null}}else a===27?(a=ll,Qs(l.type)?(l=du,du=null,ll=l):ll=a):ll=Ol?Xa(l.stateNode.nextSibling):null;return!0}function xr(){ll=Ol=null,it=!1}function Tp(){var l=_n;return l!==null&&(Gl===null?Gl=l:Gl.push.apply(Gl,l),_n=null),l}function ur(l){_n===null?_n=[l]:_n.push(l)}var Gd=Z(null),Sn=null,js=null;function $s(l,a,i){ae(Gd,a._currentValue),a._currentValue=i}function vs(l){l._currentValue=Gd.current,re(Gd)}function qd(l,a,i){for(;l!==null;){var o=l.alternate;if((l.childLanes&a)!==a?(l.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),l===i)break;l=l.return}}function Vd(l,a,i,o){var m=l.child;for(m!==null&&(m.return=l);m!==null;){var f=m.dependencies;if(f!==null){var j=m.child;f=f.firstContext;e:for(;f!==null;){var w=f;f=m;for(var E=0;E<a.length;E++)if(w.context===a[E]){f.lanes|=i,w=f.alternate,w!==null&&(w.lanes|=i),qd(f.return,i,l),o||(j=null);break e}f=w.next}}else if(m.tag===18){if(j=m.return,j===null)throw Error(r(341));j.lanes|=i,f=j.alternate,f!==null&&(f.lanes|=i),qd(j,i,l),j=null}else j=m.child;if(j!==null)j.return=m;else for(j=m;j!==null;){if(j===l){j=null;break}if(m=j.sibling,m!==null){m.return=j.return,j=m;break}j=j.return}m=j}}function mr(l,a,i,o){l=null;for(var m=a,f=!1;m!==null;){if(!f){if((m.flags&524288)!==0)f=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var j=m.alternate;if(j===null)throw Error(r(387));if(j=j.memoizedProps,j!==null){var w=m.type;ta(m.pendingProps.value,j.value)||(l!==null?l.push(w):l=[w])}}else if(m===Dl.current){if(j=m.alternate,j===null)throw Error(r(387));j.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(l!==null?l.push(Ir):l=[Ir])}m=m.return}l!==null&&Vd(a,l,i,o),a.flags|=262144}function Uo(l){for(l=l.firstContext;l!==null;){if(!ta(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function Cn(l){Sn=l,js=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function Tl(l){return Rp(Sn,l)}function Po(l,a){return Sn===null&&Cn(l),Rp(l,a)}function Rp(l,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},js===null){if(l===null)throw Error(r(308));js=a,l.dependencies={lanes:0,firstContext:a},l.flags|=524288}else js=js.next=a;return i}var kb=typeof AbortController<"u"?AbortController:function(){var l=[],a=this.signal={aborted:!1,addEventListener:function(i,o){l.push(o)}};this.abort=function(){a.aborted=!0,l.forEach(function(i){return i()})}},_b=t.unstable_scheduleCallback,Eb=t.unstable_NormalPriority,ul={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kd(){return{controller:new kb,data:new Map,refCount:0}}function pr(l){l.refCount--,l.refCount===0&&_b(Eb,function(){l.controller.abort()})}var fr=null,Zd=0,hi=0,gi=null;function Sb(l,a){if(fr===null){var i=fr=[];Zd=0,hi=Qx(),gi={status:"pending",value:void 0,then:function(o){i.push(o)}}}return Zd++,a.then(Ap,Ap),a}function Ap(){if(--Zd===0&&fr!==null){gi!==null&&(gi.status="fulfilled");var l=fr;fr=null,hi=0,gi=null;for(var a=0;a<l.length;a++)(0,l[a])()}}function Cb(l,a){var i=[],o={status:"pending",value:null,reason:null,then:function(m){i.push(m)}};return l.then(function(){o.status="fulfilled",o.value=a;for(var m=0;m<i.length;m++)(0,i[m])(a)},function(m){for(o.status="rejected",o.reason=m,m=0;m<i.length;m++)(0,i[m])(void 0)}),o}var Lp=B.S;B.S=function(l,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&Sb(l,a),Lp!==null&&Lp(l,a)};var zn=Z(null);function Xd(){var l=zn.current;return l!==null?l:jt.pooledCache}function Bo(l,a){a===null?ae(zn,zn.current):ae(zn,a.pool)}function Mp(){var l=Xd();return l===null?null:{parent:ul._currentValue,pool:l}}var hr=Error(r(460)),Dp=Error(r(474)),Io=Error(r(542)),Qd={then:function(){}};function $p(l){return l=l.status,l==="fulfilled"||l==="rejected"}function Fo(){}function Op(l,a,i){switch(i=l[i],i===void 0?l.push(a):i!==a&&(a.then(Fo,Fo),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw l=a.reason,Up(l),l;default:if(typeof a.status=="string")a.then(Fo,Fo);else{if(l=jt,l!==null&&100<l.shellSuspendCounter)throw Error(r(482));l=a,l.status="pending",l.then(function(o){if(a.status==="pending"){var m=a;m.status="fulfilled",m.value=o}},function(o){if(a.status==="pending"){var m=a;m.status="rejected",m.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw l=a.reason,Up(l),l}throw gr=a,hr}}var gr=null;function Hp(){if(gr===null)throw Error(r(459));var l=gr;return gr=null,l}function Up(l){if(l===hr||l===Io)throw Error(r(483))}var Os=!1;function Jd(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wd(l,a){l=l.updateQueue,a.updateQueue===l&&(a.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function Hs(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Us(l,a,i){var o=l.updateQueue;if(o===null)return null;if(o=o.shared,(rt&2)!==0){var m=o.pending;return m===null?a.next=a:(a.next=m.next,m.next=a),o.pending=a,a=Do(l),_p(l,null,i),a}return Mo(l,o,a,i),Do(l)}function jr(l,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var o=a.lanes;o&=l.pendingLanes,i|=o,a.lanes=i,gn(l,i)}}function ex(l,a){var i=l.updateQueue,o=l.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var m=null,f=null;if(i=i.firstBaseUpdate,i!==null){do{var j={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};f===null?m=f=j:f=f.next=j,i=i.next}while(i!==null);f===null?m=f=a:f=f.next=a}else m=f=a;i={baseState:o.baseState,firstBaseUpdate:m,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},l.updateQueue=i;return}l=i.lastBaseUpdate,l===null?i.firstBaseUpdate=a:l.next=a,i.lastBaseUpdate=a}var tx=!1;function vr(){if(tx){var l=gi;if(l!==null)throw l}}function br(l,a,i,o){tx=!1;var m=l.updateQueue;Os=!1;var f=m.firstBaseUpdate,j=m.lastBaseUpdate,w=m.shared.pending;if(w!==null){m.shared.pending=null;var E=w,H=E.next;E.next=null,j===null?f=H:j.next=H,j=E;var q=l.alternate;q!==null&&(q=q.updateQueue,w=q.lastBaseUpdate,w!==j&&(w===null?q.firstBaseUpdate=H:w.next=H,q.lastBaseUpdate=E))}if(f!==null){var X=m.baseState;j=0,q=H=E=null,w=f;do{var U=w.lane&-536870913,P=U!==w.lane;if(P?(tt&U)===U:(o&U)===U){U!==0&&U===hi&&(tx=!0),q!==null&&(q=q.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var Ae=l,Ce=w;U=a;var ut=i;switch(Ce.tag){case 1:if(Ae=Ce.payload,typeof Ae=="function"){X=Ae.call(ut,X,U);break e}X=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Ce.payload,U=typeof Ae=="function"?Ae.call(ut,X,U):Ae,U==null)break e;X=h({},X,U);break e;case 2:Os=!0}}U=w.callback,U!==null&&(l.flags|=64,P&&(l.flags|=8192),P=m.callbacks,P===null?m.callbacks=[U]:P.push(U))}else P={lane:U,tag:w.tag,payload:w.payload,callback:w.callback,next:null},q===null?(H=q=P,E=X):q=q.next=P,j|=U;if(w=w.next,w===null){if(w=m.shared.pending,w===null)break;P=w,w=P.next,P.next=null,m.lastBaseUpdate=P,m.shared.pending=null}}while(!0);q===null&&(E=X),m.baseState=E,m.firstBaseUpdate=H,m.lastBaseUpdate=q,f===null&&(m.shared.lanes=0),Vs|=j,l.lanes=j,l.memoizedState=X}}function Pp(l,a){if(typeof l!="function")throw Error(r(191,l));l.call(a)}function Bp(l,a){var i=l.callbacks;if(i!==null)for(l.callbacks=null,l=0;l<i.length;l++)Pp(i[l],a)}var ji=Z(null),Yo=Z(0);function Ip(l,a){l=Es,ae(Yo,l),ae(ji,a),Es=l|a.baseLanes}function lx(){ae(Yo,Es),ae(ji,ji.current)}function ax(){Es=Yo.current,re(ji),re(Yo)}var Ps=0,Ie=null,dt=null,il=null,Go=!1,vi=!1,Tn=!1,qo=0,yr=0,bi=null,zb=0;function sl(){throw Error(r(321))}function sx(l,a){if(a===null)return!1;for(var i=0;i<a.length&&i<l.length;i++)if(!ta(l[i],a[i]))return!1;return!0}function nx(l,a,i,o,m,f){return Ps=f,Ie=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,B.H=l===null||l.memoizedState===null?Ef:Sf,Tn=!1,f=i(o,m),Tn=!1,vi&&(f=Yp(a,i,o,m)),Fp(l),f}function Fp(l){B.H=Jo;var a=dt!==null&&dt.next!==null;if(Ps=0,il=dt=Ie=null,Go=!1,yr=0,bi=null,a)throw Error(r(300));l===null||bl||(l=l.dependencies,l!==null&&Uo(l)&&(bl=!0))}function Yp(l,a,i,o){Ie=l;var m=0;do{if(vi&&(bi=null),yr=0,vi=!1,25<=m)throw Error(r(301));if(m+=1,il=dt=null,l.updateQueue!=null){var f=l.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}B.H=$b,f=a(i,o)}while(vi);return f}function Tb(){var l=B.H,a=l.useState()[0];return a=typeof a.then=="function"?wr(a):a,l=l.useState()[0],(dt!==null?dt.memoizedState:null)!==l&&(Ie.flags|=1024),a}function ix(){var l=qo!==0;return qo=0,l}function rx(l,a,i){a.updateQueue=l.updateQueue,a.flags&=-2053,l.lanes&=~i}function ox(l){if(Go){for(l=l.memoizedState;l!==null;){var a=l.queue;a!==null&&(a.pending=null),l=l.next}Go=!1}Ps=0,il=dt=Ie=null,vi=!1,yr=qo=0,bi=null}function Fl(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return il===null?Ie.memoizedState=il=l:il=il.next=l,il}function rl(){if(dt===null){var l=Ie.alternate;l=l!==null?l.memoizedState:null}else l=dt.next;var a=il===null?Ie.memoizedState:il.next;if(a!==null)il=a,dt=l;else{if(l===null)throw Ie.alternate===null?Error(r(467)):Error(r(310));dt=l,l={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},il===null?Ie.memoizedState=il=l:il=il.next=l}return il}function cx(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wr(l){var a=yr;return yr+=1,bi===null&&(bi=[]),l=Op(bi,l,a),a=Ie,(il===null?a.memoizedState:il.next)===null&&(a=a.alternate,B.H=a===null||a.memoizedState===null?Ef:Sf),l}function Vo(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return wr(l);if(l.$$typeof===Q)return Tl(l)}throw Error(r(438,String(l)))}function dx(l){var a=null,i=Ie.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var o=Ie.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(m){return m.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=cx(),Ie.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(l),o=0;o<l;o++)i[o]=ft;return a.index++,i}function bs(l,a){return typeof a=="function"?a(l):a}function Ko(l){var a=rl();return xx(a,dt,l)}function xx(l,a,i){var o=l.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=i;var m=l.baseQueue,f=o.pending;if(f!==null){if(m!==null){var j=m.next;m.next=f.next,f.next=j}a.baseQueue=m=f,o.pending=null}if(f=l.baseState,m===null)l.memoizedState=f;else{a=m.next;var w=j=null,E=null,H=a,q=!1;do{var X=H.lane&-536870913;if(X!==H.lane?(tt&X)===X:(Ps&X)===X){var U=H.revertLane;if(U===0)E!==null&&(E=E.next={lane:0,revertLane:0,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),X===hi&&(q=!0);else if((Ps&U)===U){H=H.next,U===hi&&(q=!0);continue}else X={lane:0,revertLane:H.revertLane,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(w=E=X,j=f):E=E.next=X,Ie.lanes|=U,Vs|=U;X=H.action,Tn&&i(f,X),f=H.hasEagerState?H.eagerState:i(f,X)}else U={lane:X,revertLane:H.revertLane,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(w=E=U,j=f):E=E.next=U,Ie.lanes|=X,Vs|=X;H=H.next}while(H!==null&&H!==a);if(E===null?j=f:E.next=w,!ta(f,l.memoizedState)&&(bl=!0,q&&(i=gi,i!==null)))throw i;l.memoizedState=f,l.baseState=j,l.baseQueue=E,o.lastRenderedState=f}return m===null&&(o.lanes=0),[l.memoizedState,o.dispatch]}function ux(l){var a=rl(),i=a.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=l;var o=i.dispatch,m=i.pending,f=a.memoizedState;if(m!==null){i.pending=null;var j=m=m.next;do f=l(f,j.action),j=j.next;while(j!==m);ta(f,a.memoizedState)||(bl=!0),a.memoizedState=f,a.baseQueue===null&&(a.baseState=f),i.lastRenderedState=f}return[f,o]}function Gp(l,a,i){var o=Ie,m=rl(),f=it;if(f){if(i===void 0)throw Error(r(407));i=i()}else i=a();var j=!ta((dt||m).memoizedState,i);j&&(m.memoizedState=i,bl=!0),m=m.queue;var w=Kp.bind(null,o,m,l);if(Nr(2048,8,w,[l]),m.getSnapshot!==a||j||il!==null&&il.memoizedState.tag&1){if(o.flags|=2048,yi(9,Zo(),Vp.bind(null,o,m,i,a),null),jt===null)throw Error(r(349));f||(Ps&124)!==0||qp(o,a,i)}return i}function qp(l,a,i){l.flags|=16384,l={getSnapshot:a,value:i},a=Ie.updateQueue,a===null?(a=cx(),Ie.updateQueue=a,a.stores=[l]):(i=a.stores,i===null?a.stores=[l]:i.push(l))}function Vp(l,a,i,o){a.value=i,a.getSnapshot=o,Zp(a)&&Xp(l)}function Kp(l,a,i){return i(function(){Zp(a)&&Xp(l)})}function Zp(l){var a=l.getSnapshot;l=l.value;try{var i=a();return!ta(l,i)}catch{return!0}}function Xp(l){var a=ui(l,2);a!==null&&ra(a,l,2)}function mx(l){var a=Fl();if(typeof l=="function"){var i=l;if(l=i(),Tn){Ga(!0);try{i()}finally{Ga(!1)}}}return a.memoizedState=a.baseState=l,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bs,lastRenderedState:l},a}function Qp(l,a,i,o){return l.baseState=i,xx(l,dt,typeof o=="function"?o:bs)}function Rb(l,a,i,o,m){if(Qo(l))throw Error(r(485));if(l=a.action,l!==null){var f={payload:m,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(j){f.listeners.push(j)}};B.T!==null?i(!0):f.isTransition=!1,o(f),i=a.pending,i===null?(f.next=a.pending=f,Jp(a,f)):(f.next=i.next,a.pending=i.next=f)}}function Jp(l,a){var i=a.action,o=a.payload,m=l.state;if(a.isTransition){var f=B.T,j={};B.T=j;try{var w=i(m,o),E=B.S;E!==null&&E(j,w),Wp(l,a,w)}catch(H){px(l,a,H)}finally{B.T=f}}else try{f=i(m,o),Wp(l,a,f)}catch(H){px(l,a,H)}}function Wp(l,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){ef(l,a,o)},function(o){return px(l,a,o)}):ef(l,a,i)}function ef(l,a,i){a.status="fulfilled",a.value=i,tf(a),l.state=i,a=l.pending,a!==null&&(i=a.next,i===a?l.pending=null:(i=i.next,a.next=i,Jp(l,i)))}function px(l,a,i){var o=l.pending;if(l.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=i,tf(a),a=a.next;while(a!==o)}l.action=null}function tf(l){l=l.listeners;for(var a=0;a<l.length;a++)(0,l[a])()}function lf(l,a){return a}function af(l,a){if(it){var i=jt.formState;if(i!==null){e:{var o=Ie;if(it){if(ll){t:{for(var m=ll,f=ss;m.nodeType!==8;){if(!f){m=null;break t}if(m=Xa(m.nextSibling),m===null){m=null;break t}}f=m.data,m=f==="F!"||f==="F"?m:null}if(m){ll=Xa(m.nextSibling),o=m.data==="F!";break e}}En(o)}o=!1}o&&(a=i[0])}}return i=Fl(),i.memoizedState=i.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lf,lastRenderedState:a},i.queue=o,i=Nf.bind(null,Ie,o),o.dispatch=i,o=mx(!1),f=vx.bind(null,Ie,!1,o.queue),o=Fl(),m={state:a,dispatch:null,action:l,pending:null},o.queue=m,i=Rb.bind(null,Ie,m,f,i),m.dispatch=i,o.memoizedState=l,[a,i,!1]}function sf(l){var a=rl();return nf(a,dt,l)}function nf(l,a,i){if(a=xx(l,a,lf)[0],l=Ko(bs)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=wr(a)}catch(j){throw j===hr?Io:j}else o=a;a=rl();var m=a.queue,f=m.dispatch;return i!==a.memoizedState&&(Ie.flags|=2048,yi(9,Zo(),Ab.bind(null,m,i),null)),[o,f,l]}function Ab(l,a){l.action=a}function rf(l){var a=rl(),i=dt;if(i!==null)return nf(a,i,l);rl(),a=a.memoizedState,i=rl();var o=i.queue.dispatch;return i.memoizedState=l,[a,o,!1]}function yi(l,a,i,o){return l={tag:l,create:i,deps:o,inst:a,next:null},a=Ie.updateQueue,a===null&&(a=cx(),Ie.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=l.next=l:(o=i.next,i.next=l,l.next=o,a.lastEffect=l),l}function Zo(){return{destroy:void 0,resource:void 0}}function of(){return rl().memoizedState}function Xo(l,a,i,o){var m=Fl();o=o===void 0?null:o,Ie.flags|=l,m.memoizedState=yi(1|a,Zo(),i,o)}function Nr(l,a,i,o){var m=rl();o=o===void 0?null:o;var f=m.memoizedState.inst;dt!==null&&o!==null&&sx(o,dt.memoizedState.deps)?m.memoizedState=yi(a,f,i,o):(Ie.flags|=l,m.memoizedState=yi(1|a,f,i,o))}function cf(l,a){Xo(8390656,8,l,a)}function df(l,a){Nr(2048,8,l,a)}function xf(l,a){return Nr(4,2,l,a)}function uf(l,a){return Nr(4,4,l,a)}function mf(l,a){if(typeof a=="function"){l=l();var i=a(l);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return l=l(),a.current=l,function(){a.current=null}}function pf(l,a,i){i=i!=null?i.concat([l]):null,Nr(4,4,mf.bind(null,a,l),i)}function fx(){}function ff(l,a){var i=rl();a=a===void 0?null:a;var o=i.memoizedState;return a!==null&&sx(a,o[1])?o[0]:(i.memoizedState=[l,a],l)}function hf(l,a){var i=rl();a=a===void 0?null:a;var o=i.memoizedState;if(a!==null&&sx(a,o[1]))return o[0];if(o=l(),Tn){Ga(!0);try{l()}finally{Ga(!1)}}return i.memoizedState=[o,a],o}function hx(l,a,i){return i===void 0||(Ps&1073741824)!==0?l.memoizedState=a:(l.memoizedState=i,l=vh(),Ie.lanes|=l,Vs|=l,i)}function gf(l,a,i,o){return ta(i,a)?i:ji.current!==null?(l=hx(l,i,o),ta(l,a)||(bl=!0),l):(Ps&42)===0?(bl=!0,l.memoizedState=i):(l=vh(),Ie.lanes|=l,Vs|=l,a)}function jf(l,a,i,o,m){var f=ne.p;ne.p=f!==0&&8>f?f:8;var j=B.T,w={};B.T=w,vx(l,!1,a,i);try{var E=m(),H=B.S;if(H!==null&&H(w,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var q=Cb(E,o);kr(l,a,q,ia(l))}else kr(l,a,o,ia(l))}catch(X){kr(l,a,{then:function(){},status:"rejected",reason:X},ia())}finally{ne.p=f,B.T=j}}
vendor: 6,800 bytes, line 48
48function Lb(){}function gx(l,a,i,o){if(l.tag!==5)throw Error(r(476));var m=vf(l).queue;jf(l,m,a,fe,i===null?Lb:function(){return bf(l),i(o)})}function vf(l){var a=l.memoizedState;if(a!==null)return a;a={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bs,lastRenderedState:fe},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bs,lastRenderedState:i},next:null},l.memoizedState=a,l=l.alternate,l!==null&&(l.memoizedState=a),a}function bf(l){var a=vf(l).next.queue;kr(l,a,{},ia())}function jx(){return Tl(Ir)}function yf(){return rl().memoizedState}function wf(){return rl().memoizedState}function Mb(l){for(var a=l.return;a!==null;){switch(a.tag){case 24:case 3:var i=ia();l=Hs(i);var o=Us(a,l,i);o!==null&&(ra(o,a,i),jr(o,a,i)),a={cache:Kd()},l.payload=a;return}a=a.return}}function Db(l,a,i){var o=ia();i={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},Qo(l)?kf(a,i):(i=Hd(l,a,i,o),i!==null&&(ra(i,l,o),_f(i,a,o)))}function Nf(l,a,i){var o=ia();kr(l,a,i,o)}function kr(l,a,i,o){var m={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(Qo(l))kf(a,m);else{var f=l.alternate;if(l.lanes===0&&(f===null||f.lanes===0)&&(f=a.lastRenderedReducer,f!==null))try{var j=a.lastRenderedState,w=f(j,i);if(m.hasEagerState=!0,m.eagerState=w,ta(w,j))return Mo(l,a,m,0),jt===null&&Lo(),!1}catch{}finally{}if(i=Hd(l,a,m,o),i!==null)return ra(i,l,o),_f(i,a,o),!0}return!1}function vx(l,a,i,o){if(o={lane:2,revertLane:Qx(),action:o,hasEagerState:!1,eagerState:null,next:null},Qo(l)){if(a)throw Error(r(479))}else a=Hd(l,i,o,2),a!==null&&ra(a,l,2)}function Qo(l){var a=l.alternate;return l===Ie||a!==null&&a===Ie}function kf(l,a){vi=Go=!0;var i=l.pending;i===null?a.next=a:(a.next=i.next,i.next=a),l.pending=a}function _f(l,a,i){if((i&4194048)!==0){var o=a.lanes;o&=l.pendingLanes,i|=o,a.lanes=i,gn(l,i)}}var Jo={readContext:Tl,use:Vo,useCallback:sl,useContext:sl,useEffect:sl,useImperativeHandle:sl,useLayoutEffect:sl,useInsertionEffect:sl,useMemo:sl,useReducer:sl,useRef:sl,useState:sl,useDebugValue:sl,useDeferredValue:sl,useTransition:sl,useSyncExternalStore:sl,useId:sl,useHostTransitionStatus:sl,useFormState:sl,useActionState:sl,useOptimistic:sl,useMemoCache:sl,useCacheRefresh:sl},Ef={readContext:Tl,use:Vo,useCallback:function(l,a){return Fl().memoizedState=[l,a===void 0?null:a],l},useContext:Tl,useEffect:cf,useImperativeHandle:function(l,a,i){i=i!=null?i.concat([l]):null,Xo(4194308,4,mf.bind(null,a,l),i)},useLayoutEffect:function(l,a){return Xo(4194308,4,l,a)},useInsertionEffect:function(l,a){Xo(4,2,l,a)},useMemo:function(l,a){var i=Fl();a=a===void 0?null:a;var o=l();if(Tn){Ga(!0);try{l()}finally{Ga(!1)}}return i.memoizedState=[o,a],o},useReducer:function(l,a,i){var o=Fl();if(i!==void 0){var m=i(a);if(Tn){Ga(!0);try{i(a)}finally{Ga(!1)}}}else m=a;return o.memoizedState=o.baseState=m,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:m},o.queue=l,l=l.dispatch=Db.bind(null,Ie,l),[o.memoizedState,l]},useRef:function(l){var a=Fl();return l={current:l},a.memoizedState=l},useState:function(l){l=mx(l);var a=l.queue,i=Nf.bind(null,Ie,a);return a.dispatch=i,[l.memoizedState,i]},useDebugValue:fx,useDeferredValue:function(l,a){var i=Fl();return hx(i,l,a)},useTransition:function(){var l=mx(!1);return l=jf.bind(null,Ie,l.queue,!0,!1),Fl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,a,i){var o=Ie,m=Fl();if(it){if(i===void 0)throw Error(r(407));i=i()}else{if(i=a(),jt===null)throw Error(r(349));(tt&124)!==0||qp(o,a,i)}m.memoizedState=i;var f={value:i,getSnapshot:a};return m.queue=f,cf(Kp.bind(null,o,f,l),[l]),o.flags|=2048,yi(9,Zo(),Vp.bind(null,o,f,i,a),null),i},useId:function(){var l=Fl(),a=jt.identifierPrefix;if(it){var i=gs,o=hs;i=(o&~(1<<32-kl(o)-1)).toString(32)+i,a="«"+a+"R"+i,i=qo++,0<i&&(a+="H"+i.toString(32)),a+="»"}else i=zb++,a="«"+a+"r"+i.toString(32)+"»";return l.memoizedState=a},useHostTransitionStatus:jx,useFormState:af,useActionState:af,useOptimistic:function(l){var a=Fl();a.memoizedState=a.baseState=l;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=vx.bind(null,Ie,!0,i),i.dispatch=a,[l,a]},useMemoCache:dx,useCacheRefresh:function(){return Fl().memoizedState=Mb.bind(null,Ie)}},Sf={readContext:Tl,use:Vo,useCallback:ff,useContext:Tl,useEffect:df,useImperativeHandle:pf,useInsertionEffect:xf,useLayoutEffect:uf,useMemo:hf,useReducer:Ko,useRef:of,useState:function(){return Ko(bs)},useDebugValue:fx,useDeferredValue:function(l,a){var i=rl();return gf(i,dt.memoizedState,l,a)},useTransition:function(){var l=Ko(bs)[0],a=rl().memoizedState;return[typeof l=="boolean"?l:wr(l),a]},useSyncExternalStore:Gp,useId:yf,useHostTransitionStatus:jx,useFormState:sf,useActionState:sf,useOptimistic:function(l,a){var i=rl();return Qp(i,dt,l,a)},useMemoCache:dx,useCacheRefresh:wf},$b={readContext:Tl,use:Vo,useCallback:ff,useContext:Tl,useEffect:df,useImperativeHandle:pf,useInsertionEffect:xf,useLayoutEffect:uf,useMemo:hf,useReducer:ux,useRef:of,useState:function(){return ux(bs)},useDebugValue:fx,useDeferredValue:function(l,a){var i=rl();return dt===null?hx(i,l,a):gf(i,dt.memoizedState,l,a)},useTransition:function(){var l=ux(bs)[0],a=rl().memoizedState;return[typeof l=="boolean"?l:wr(l),a]},useSyncExternalStore:Gp,useId:yf,useHostTransitionStatus:jx,useFormState:rf,useActionState:rf,useOptimistic:function(l,a){var i=rl();return dt!==null?Qp(i,dt,l,a):(i.baseState=l,[l,i.queue.dispatch])},useMemoCache:dx,useCacheRefresh:wf},wi=null,_r=0;function Wo(l){var a=_r;return _r+=1,wi===null&&(wi=[]),Op(wi,l,a)}function Er(l,a){a=a.props.ref,l.ref=a!==void 0?a:null}function ec(l,a){throw a.$$typeof===v?Error(r(525)):(l=Object.prototype.toString.call(a),Error(r(31,l==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":l)))}function Cf(l){var a=l._init;return a(l._payload)}function zf(l){function a(M,A){if(l){var O=M.deletions;O===null?(M.deletions=[A],M.flags|=16):O.push(A)}}function i(M,A){if(!l)return null;for(;A!==null;)a(M,A),A=A.sibling;return null}function o(M){for(var A=new Map;M!==null;)M.key!==null?A.set(M.key,M):A.set(M.index,M),M=M.sibling;return A}function m(M,A){return M=fs(M,A),M.index=0,M.sibling=null,M}function f(M,A,O){return M.index=O,l?(O=M.alternate,O!==null?(O=O.index,O<A?(M.flags|=67108866,A):O):(M.flags|=67108866,A)):(M.flags|=1048576,A)}function j(M){return l&&M.alternate===null&&(M.flags|=67108866),M}function w(M,A,O,K){return A===null||A.tag!==6?(A=Pd(O,M.mode,K),A.return=M,A):(A=m(A,O),A.return=M,A)}function E(M,A,O,K){var pe=O.type;return pe===S?q(M,A,O.props.children,K,O.key):A!==null&&(A.elementType===pe||typeof pe
vendor: 3,853 bytes, line 48
48=="object"&&pe!==null&&pe.$$typeof===Ue&&Cf(pe)===A.type)?(A=m(A,O.props),Er(A,O),A.return=M,A):(A=$o(O.type,O.key,O.props,null,M.mode,K),Er(A,O),A.return=M,A)}function H(M,A,O,K){return A===null||A.tag!==4||A.stateNode.containerInfo!==O.containerInfo||A.stateNode.implementation!==O.implementation?(A=Bd(O,M.mode,K),A.return=M,A):(A=m(A,O.children||[]),A.return=M,A)}function q(M,A,O,K,pe){return A===null||A.tag!==7?(A=wn(O,M.mode,K,pe),A.return=M,A):(A=m(A,O),A.return=M,A)}function X(M,A,O){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Pd(""+A,M.mode,O),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case N:return O=$o(A.type,A.key,A.props,null,M.mode,O),Er(O,A),O.return=M,O;case C:return A=Bd(A,M.mode,O),A.return=M,A;case Ue:var K=A._init;return A=K(A._payload),X(M,A,O)}if(Ge(A)||$t(A))return A=wn(A,M.mode,O,null),A.return=M,A;if(typeof A.then=="function")return X(M,Wo(A),O);if(A.$$typeof===Q)return X(M,Po(M,A),O);ec(M,A)}return null}function U(M,A,O,K){var pe=A!==null?A.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return pe!==null?null:w(M,A,""+O,K);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case N:return O.key===pe?E(M,A,O,K):null;case C:return O.key===pe?H(M,A,O,K):null;case Ue:return pe=O._init,O=pe(O._payload),U(M,A,O,K)}if(Ge(O)||$t(O))return pe!==null?null:q(M,A,O,K,null);if(typeof O.then=="function")return U(M,A,Wo(O),K);if(O.$$typeof===Q)return U(M,A,Po(M,O),K);ec(M,O)}return null}function P(M,A,O,K,pe){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return M=M.get(O)||null,w(A,M,""+K,pe);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case N:return M=M.get(K.key===null?O:K.key)||null,E(A,M,K,pe);case C:return M=M.get(K.key===null?O:K.key)||null,H(A,M,K,pe);case Ue:var Ye=K._init;return K=Ye(K._payload),P(M,A,O,K,pe)}if(Ge(K)||$t(K))return M=M.get(O)||null,q(A,M,K,pe,null);if(typeof K.then=="function")return P(M,A,O,Wo(K),pe);if(K.$$typeof===Q)return P(M,A,O,Po(A,K),pe);ec(A,K)}return null}function Ae(M,A,O,K){for(var pe=null,Ye=null,we=A,Te=A=0,wl=null;we!==null&&Te<O.length;Te++){we.index>Te?(wl=we,we=null):wl=we.sibling;var nt=U(M,we,O[Te],K);if(nt===null){we===null&&(we=wl);break}l&&we&&nt.alternate===null&&a(M,we),A=f(nt,A,Te),Ye===null?pe=nt:Ye.sibling=nt,Ye=nt,we=wl}if(Te===O.length)return i(M,we),it&&kn(M,Te),pe;if(we===null){for(;Te<O.length;Te++)we=X(M,O[Te],K),we!==null&&(A=f(we,A,Te),Ye===null?pe=we:Ye.sibling=we,Ye=we);return it&&kn(M,Te),pe}for(we=o(we);Te<O.length;Te++)wl=P(we,M,Te,O[Te],K),wl!==null&&(l&&wl.alternate!==null&&we.delete(wl.key===null?Te:wl.key),A=f(wl,A,Te),Ye===null?pe=wl:Ye.sibling=wl,Ye=wl);return l&&we.forEach(function(ln){return a(M,ln)}),it&&kn(M,Te),pe}function Ce(M,A,O,K){if(O==null)throw Error(r(151));for(var pe=null,Ye=null,we=A,Te=A=0,wl=null,nt=O.next();we!==null&&!nt.done;Te++,nt=O.next()){we.index>Te?(wl=we,we=null):wl=we.sibling;var ln=U(M,we,nt.value,K);if(ln===null){we===null&&(we=wl);break}l&&we&&ln.alternate===null&&a(M,we),A=f(ln,A,Te),Ye===null?pe=ln:Ye.sibling=ln,Ye=ln,we=wl}if(nt.done)return i(M,we),it&&kn(M,Te),pe;if(we===null){for(;!nt.done;Te++,nt=O.next())nt=X(M,nt.value,K),nt!==null&&(A=f(nt,A,Te),Ye===null?pe=nt:Ye.sibling=nt,Ye=nt);return it&&kn(M,Te),pe}for(we=o(we);!nt.done;Te++,nt=O.next())nt=P(we,M,Te,nt.value,K),nt!==null&&(l&&nt.alternate!==null&&we.delete(nt.key===null?Te:nt.key),A=f(nt,A,Te),Ye===null?pe=nt:Ye.sibling=nt,Ye=nt);return l&&we.forEach(function(Oy){return a(M,Oy)}),it&&kn(M,Te),pe}function ut(M,A,O,K){if(typeof O=="object"&&O!==null&&O.type===S&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case N:e:{for(var pe=O.key;A!==null;){if(A.key===pe){if(pe=O.type,pe===S){if(A.tag===7){i(M,A.sibling),K=m(A,O.props.children),K.return=M,M=K;break e}}
vendor: 11,137 bytes, line 48
48else if(A.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Ue&&Cf(pe)===A.type){i(M,A.sibling),K=m(A,O.props),Er(K,O),K.return=M,M=K;break e}i(M,A);break}else a(M,A);A=A.sibling}O.type===S?(K=wn(O.props.children,M.mode,K,O.key),K.return=M,M=K):(K=$o(O.type,O.key,O.props,null,M.mode,K),Er(K,O),K.return=M,M=K)}return j(M);case C:e:{for(pe=O.key;A!==null;){if(A.key===pe)if(A.tag===4&&A.stateNode.containerInfo===O.containerInfo&&A.stateNode.implementation===O.implementation){i(M,A.sibling),K=m(A,O.children||[]),K.return=M,M=K;break e}else{i(M,A);break}else a(M,A);A=A.sibling}K=Bd(O,M.mode,K),K.return=M,M=K}return j(M);case Ue:return pe=O._init,O=pe(O._payload),ut(M,A,O,K)}if(Ge(O))return Ae(M,A,O,K);if($t(O)){if(pe=$t(O),typeof pe!="function")throw Error(r(150));return O=pe.call(O),Ce(M,A,O,K)}if(typeof O.then=="function")return ut(M,A,Wo(O),K);if(O.$$typeof===Q)return ut(M,A,Po(M,O),K);ec(M,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,A!==null&&A.tag===6?(i(M,A.sibling),K=m(A,O),K.return=M,M=K):(i(M,A),K=Pd(O,M.mode,K),K.return=M,M=K),j(M)):i(M,A)}return function(M,A,O,K){try{_r=0;var pe=ut(M,A,O,K);return wi=null,pe}catch(we){if(we===hr||we===Io)throw we;var Ye=la(29,we,null,M.mode);return Ye.lanes=K,Ye.return=M,Ye}finally{}}}var Ni=zf(!0),Tf=zf(!1),ka=Z(null),ns=null;function Bs(l){var a=l.alternate;ae(ml,ml.current&1),ae(ka,l),ns===null&&(a===null||ji.current!==null||a.memoizedState!==null)&&(ns=l)}function Rf(l){if(l.tag===22){if(ae(ml,ml.current),ae(ka,l),ns===null){var a=l.alternate;a!==null&&a.memoizedState!==null&&(ns=l)}}else Is()}function Is(){ae(ml,ml.current),ae(ka,ka.current)}function ys(l){re(ka),ns===l&&(ns=null),re(ml)}var ml=Z(0);function tc(l){for(var a=l;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||cu(i)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break;for(;a.sibling===null;){if(a.return===null||a.return===l)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function bx(l,a,i,o){a=l.memoizedState,i=i(o,a),i=i==null?a:h({},a,i),l.memoizedState=i,l.lanes===0&&(l.updateQueue.baseState=i)}var yx={enqueueSetState:function(l,a,i){l=l._reactInternals;var o=ia(),m=Hs(o);m.payload=a,i!=null&&(m.callback=i),a=Us(l,m,o),a!==null&&(ra(a,l,o),jr(a,l,o))},enqueueReplaceState:function(l,a,i){l=l._reactInternals;var o=ia(),m=Hs(o);m.tag=1,m.payload=a,i!=null&&(m.callback=i),a=Us(l,m,o),a!==null&&(ra(a,l,o),jr(a,l,o))},enqueueForceUpdate:function(l,a){l=l._reactInternals;var i=ia(),o=Hs(i);o.tag=2,a!=null&&(o.callback=a),a=Us(l,o,i),a!==null&&(ra(a,l,i),jr(a,l,i))}};function Af(l,a,i,o,m,f,j){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(o,f,j):a.prototype&&a.prototype.isPureReactComponent?!or(i,o)||!or(m,f):!0}function Lf(l,a,i,o){l=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,o),a.state!==l&&yx.enqueueReplaceState(a,a.state,null)}function Rn(l,a){var i=a;if("ref"in a){i={};for(var o in a)o!=="ref"&&(i[o]=a[o])}if(l=l.defaultProps){i===a&&(i=h({},i));for(var m in l)i[m]===void 0&&(i[m]=l[m])}return i}var lc=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)};function Mf(l){lc(l)}function Df(l){console.error(l)}function $f(l){lc(l)}function ac(l,a){try{var i=l.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function Of(l,a,i){try{var o=l.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function wx(l,a,i){return i=Hs(i),i.tag=3,i.payload={element:null},i.callback=function(){ac(l,a)},i}function Hf(l){return l=Hs(l),l.tag=3,l}function Uf(l,a,i,o){var m=i.type.getDerivedStateFromError;if(typeof m=="function"){var f=o.value;l.payload=function(){return m(f)},l.callback=function(){Of(a,i,o)}}var j=i.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(l.callback=function(){Of(a,i,o),typeof m!="function"&&(Ks===null?Ks=new Set([this]):Ks.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})})}function Ob(l,a,i,o,m){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=i.alternate,a!==null&&mr(a,i,m,!0),i=ka.current,i!==null){switch(i.tag){case 13:return ns===null?qx():i.alternate===null&&al===0&&(al=3),i.flags&=-257,i.flags|=65536,i.lanes=m,o===Qd?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([o]):a.add(o),Kx(l,o,m)),!1;case 22:return i.flags|=65536,o===Qd?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([o]):i.add(o)),Kx(l,o,m)),!1}throw Error(r(435,i.tag))}return Kx(l,o,m),qx(),!1}if(it)return a=ka.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=m,o!==Yd&&(l=Error(r(422),{cause:o}),ur(ba(l,i)))):(o!==Yd&&(a=Error(r(423),{cause:o}),ur(ba(a,i))),l=l.current.alternate,l.flags|=65536,m&=-m,l.lanes|=m,o=ba(o,i),m=wx(l.stateNode,o,m),ex(l,m),al!==4&&(al=2)),!1;var f=Error(r(520),{cause:o});if(f=ba(f,i),Lr===null?Lr=[f]:Lr.push(f),al!==4&&(al=2),a===null)return!0;o=ba(o,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,l=m&-m,i.lanes|=l,l=wx(i.stateNode,o,l),ex(i,l),!1;case 1:if(a=i.type,f=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Ks===null||!Ks.has(f))))return i.flags|=65536,m&=-m,i.lanes|=m,m=Hf(m),Uf(m,l,i,o),ex(i,m),!1}i=i.return}while(i!==null);return!1}var Pf=Error(r(461)),bl=!1;function _l(l,a,i,o){a.child=l===null?Tf(a,null,i,o):Ni(a,l.child,i,o)}function Bf(l,a,i,o,m){i=i.render;var f=a.ref;if("ref"in o){var j={};for(var w in o)w!=="ref"&&(j[w]=o[w])}else j=o;return Cn(a),o=nx(l,a,i,j,f,m),w=ix(),l!==null&&!bl?(rx(l,a,m),ws(l,a,m)):(it&&w&&Id(a),a.flags|=1,_l(l,a,o,m),a.child)}function If(l,a,i,o,m){if(l===null){var f=i.type;return typeof f=="function"&&!Ud(f)&&f.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=f,Ff(l,a,f,o,m)):(l=$o(i.type,null,o,a,a.mode,m),l.ref=a.ref,l.return=a,a.child=l)}if(f=l.child,!Tx(l,m)){var j=f.memoizedProps;if(i=i.compare,i=i!==null?i:or,i(j,o)&&l.ref===a.ref)return ws(l,a,m)}return a.flags|=1,l=fs(f,o),l.ref=a.ref,l.return=a,a.child=l}function Ff(l,a,i,o,m){if(l!==null){var f=l.memoizedProps;if(or(f,o)&&l.ref===a.ref)if(bl=!1,a.pendingProps=o=f,Tx(l,m))(l.flags&131072)!==0&&(bl=!0);else return a.lanes=l.lanes,ws(l,a,m)}return Nx(l,a,i,o,m)}function Yf(l,a,i){var o=a.pendingProps,m=o.children,f=l!==null?l.memoizedState:null;if(o.mode==="hidden"){if((a.flags&128)!==0){if(o=f!==null?f.baseLanes|i:i,l!==null){for(m=a.child=l.child,f=0;m!==null;)f=f|m.lanes|m.childLanes,m=m.sibling;a.childLanes=f&~o}else a.childLanes=0,a.child=null;return Gf(l,a,o,i)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},l!==null&&Bo(a,f!==null?f.cachePool:null),f!==null?Ip(a,f):lx(),Rf(a);else return a.lanes=a.childLanes=536870912,Gf(l,a,f!==null?f.baseLanes|i:i,i)}else f!==null?(Bo(a,f.cachePool),Ip(a,f),Is(),a.memoizedState=null):(l!==null&&Bo(a,null),lx(),Is());return _l(l,a,m,i),a.child}function Gf(l,a,i,o){var m=Xd();return m=m===null?null:{parent:ul._currentValue,pool:m},a.memoizedState={baseLanes:i,cachePool:m},l!==null&&Bo(a,null),lx(),Rf(a),l!==null&&mr(l,a,o,!0),null}function sc(l,a){var i=a.ref;if(i===null)l!==null&&l.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(r(284));(l===null||l.ref!==i)&&(a.flags|=4194816)}}function Nx(l,a,i,o,m){return Cn(a),i=nx(l,a,i,o,void 0,m),o=ix(),l!==null&&!bl?(rx(l,a,m),ws(l,a,m)):(it&&o&&Id(a),a.flags|=1,_l(l,a,i,m),a.child)}function qf(l,a,i,o,m,f){return Cn(a),a.updateQueue=null,i=Yp(a,o,i,m),Fp(l),o=ix(),l!==null&&!bl?(rx(l,a,f),ws(l,a,f)):(it&&o&&Id(a),a.flags|=1,_l(l,a,i,f),a.child)}function Vf(l,a,i,o,m){if(Cn(a),a.stateNode===null){var f=mi,j=i.contextType;typeof j=="object"&&j!==null&&(f=Tl(j)),f=new i(o,f),a.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=yx,a.stateNode=f,f._reactInternals=a,f=a.stateNode,f.props=o,f.state=a.memoizedState,f.refs={},Jd(a),j=i.contextType,f.context=typeof j=="object"&&j!==null?Tl(j):mi,f.state=a.memoizedState,j=i.getDerivedStateFromProps,typeof j=="function"&&(bx(a,i,j,o),f.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(j=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),j!==f.state&&yx.enqueueReplaceState(f,f.state,null),br(a,o,f,m),vr(),f.state=a.memoizedState),typeof f.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(l===null){f=a.stateNode;var w=a.memoizedProps,E=Rn(i,w);f.props=E;var H=f.context,q=i.contextType;j=mi,typeof q=="object"&&q!==null&&(j=Tl(q));var X=i.getDerivedStateFromProps;q=typeof X=="function"||typeof f.getSnapshotBeforeUpdate=="function",w=a.pendingProps!==w,q||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(w||H!==j)&&Lf(a,f,o,j),Os=!1;var U=a.memoizedState;f.state=U,br(a,o,f,m),vr(),H=a.memoizedState,w||U!==H||Os?(typeof X=="function"&&(bx(a,i,X,o),H=a.memoizedState),(E=Os||Af(a,i,E,o,U,H,j))?(q||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(a.flags|=4194308)):(typeof f.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=H),f.props=o,f.state=H,f.context=j,o=E):(typeof f.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{f=a.stateNode,Wd(l,a),j=a.memoizedProps,q=Rn(i,j),f.props=q,X=a.pendingProps,U=f.context,H=i.contextType,E=mi,typeof H=="object"&&H!==null&&(E=Tl(H)),w=i.getDerivedStateFromProps,(H=typeof w=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(j!==X||U!==E)&&Lf(a,f,o,E),Os=!1,U=a.memoizedState,f.state=U,br(a,o,f,m),vr();var P=a.memoizedState;j!==X||U!==P||Os||l!==null&&l.dependencies!==null&&Uo(l.dependencies)?(typeof w=="function"&&(bx(a,i,w,o),P=
48a.memoizedState),(q=Os||Af(a,i,q,o,U,P,E)||l!==null&&l.dependencies!==null&&Uo(l.dependencies))?(H||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,P,E),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,P,E)),typeof f.componentDidUpdate=="function"&&(a.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof f.componentDidUpdate!="function"||j===l.memoizedProps&&U===l.memoizedState||(a.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||j===l.memoizedProps&&U===l.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=P),f.props=o,f.state=P,f.context=E,o=q):(typeof f.componentDidUpdate!="function"||j===l.memoizedProps&&U===l.memoizedState||(a.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||j===l.memoizedProps&&U===l.memoizedState||(a.flags|=1024),o=!1)}return f=o,sc(l,a),o=(a.flags&128)!==0,f||o?(f=a.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:f.render(),a.flags|=1,l!==null&&o?(a.child=Ni(a,l.child,null,m),a.child=Ni(a,null,i,m)):_l(l,a,i,m),a.memoizedState=f.state,l=a.child):l=ws(l,a,m),l}function Kf(l,a,i,o){return xr(),a.flags|=256,_l(l,a,i,o),a.child}var kx={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _x(l){return{baseLanes:l,cachePool:Mp()}}function Ex(l,a,i){return l=l!==null?l.childLanes&~i:0,a&&(l|=_a),l}function Zf(l,a,i){var o=a.pendingProps,m=!1,f=(a.flags&128)!==0,j;if((j=f)||(j=l!==null&&l.memoizedState===null?!1:(ml.current&2)!==0),j&&(m=!0,a.flags&=-129),j=(a.flags&32)!==0,a.flags&=-33,l===null){if(it){if(m?Bs(a):Is(),it){var w=ll,E;if(E=w){e:{for(E=w,w=ss;E.nodeType!==8;){if(!w){w=null;break e}if(E=Xa(E.nextSibling),E===null){w=null;break e}}w=E}w!==null?(a.memoizedState={dehydrated:w,treeContext:Nn!==null?{id:hs,overflow:gs}:null,retryLane:536870912,hydrationErrors:null},E=la(18,null,null,0),E.stateNode=w,E.return=a,a.child=E,Ol=a,ll=null,E=!0):E=!1}E||En(a)}if(w=a.memoizedState,w!==null&&(w=w.dehydrated,w!==null))return cu(w)?a.lanes=32:a.lanes=536870912,null;ys(a)}return w=o.children,o=o.fallback,m?(Is(),m=a.mode,w=nc({mode:"hidden",children:w},m),o=wn(o,m,i,null),w.return=a,o.return=a,w.sibling=o,a.child=w,m=a.child,m.memoizedState=_x(i),m.childLanes=Ex(l,j,i),a.memoizedState=kx,o):(Bs(a),Sx(a,w))}if(E=l.memoizedState,E!==null&&(w=E.dehydrated,w!==null)){if(f)a.flags&256?(Bs(a),a.flags&=-257,a=Cx(l,a,i)):a.memoizedState!==null?(Is(),a.child=l.child,a.flags|=128,a=null):(Is(),m=o.fallback,w=a.mode,o=nc({mode:"visible",children:o.children},w),m=wn(m,w,i,null),m.flags|=2,o.return=a,m.return=a,o.sibling=m,a.child=o,Ni(a,l.child,null,i),o=a.child,o.memoizedState=_x(i),o.childLanes=Ex(l,j,i),a.memoizedState=kx,a=m);else if(Bs(a),cu(w)){if(j=w.nextSibling&&w.nextSibling.dataset,j)var H=j.dgst;j=H,o=Error(r(419)),o.stack="",o.digest=j,ur({value:o,source:null,stack:null}),a=Cx(l,a,i)}else if(bl||mr(l,a,i,!1),j=(i&l.childLanes)!==0,bl||j){if(j=jt,j!==null&&(o=i&-i,o=(o&42)!==0?1:Qi(o),o=(o&(j.suspendedLanes|i))!==0?0:o,o!==0&&o!==E.retryLane))throw E.retryLane=o,ui(l,o),ra(j,l,o),Pf;w.data==="$?"||qx(),a=Cx(l,a,i)}else w.data==="$?"?(a.flags|=192,a.child=l.child,a=null):(l=E.treeContext,ll=Xa(w.nextSibling),Ol=a,it=!0,_n=null,ss=!1,l!==null&&(wa[Na++]=hs,wa[Na++]=gs,wa[Na++]=Nn,hs=l.id,gs=l.overflow,Nn=a),a=Sx(a,o.children),a.flags|=4096);return a}return m?(Is(),m=o.fallback,w=a.mode,E=l.child,H=E.sibling,o=fs(E,{mode:"hidden",children:o.children}),o.subtreeFlags=E.subtreeFlags&65011712,H!==null?m=fs(H,m):(m=wn(m,w,i,null),m.flags|=2),m.return=a,o.return=a,o.sibling=m,a.child=o,o=m,m=a.child,w=l.child.memoizedState,w===null?w=_x(i):(E=w.cachePool,E!==null?(H=ul._currentValue,E=E.parent!==H?{parent:H,pool:H}:E):E=Mp(),w={baseLanes:w.baseLanes|i,cachePool:E}),m.memoizedState=w,m.childLanes=Ex(l,j,i),a.memoizedState=kx,o):(Bs(a),i=l.child,l=i.sibling,i=fs(i,{mode:"visible",children:o.children}),i.return=a,i.sibling=null,l!==null&&(j=a.deletions,j===null?(a.deleti
vendor: 5,831 bytes, line 48
48ons=[l],a.flags|=16):j.push(l)),a.child=i,a.memoizedState=null,i)}function Sx(l,a){return a=nc({mode:"visible",children:a},l.mode),a.return=l,l.child=a}function nc(l,a){return l=la(22,l,null,a),l.lanes=0,l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},l}function Cx(l,a,i){return Ni(a,l.child,null,i),l=Sx(a,a.pendingProps.children),l.flags|=2,a.memoizedState=null,l}function Xf(l,a,i){l.lanes|=a;var o=l.alternate;o!==null&&(o.lanes|=a),qd(l.return,a,i)}function zx(l,a,i,o,m){var f=l.memoizedState;f===null?l.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:m}:(f.isBackwards=a,f.rendering=null,f.renderingStartTime=0,f.last=o,f.tail=i,f.tailMode=m)}function Qf(l,a,i){var o=a.pendingProps,m=o.revealOrder,f=o.tail;if(_l(l,a,o.children,i),o=ml.current,(o&2)!==0)o=o&1|2,a.flags|=128;else{if(l!==null&&(l.flags&128)!==0)e:for(l=a.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Xf(l,i,a);else if(l.tag===19)Xf(l,i,a);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o&=1}switch(ae(ml,o),m){case"forwards":for(i=a.child,m=null;i!==null;)l=i.alternate,l!==null&&tc(l)===null&&(m=i),i=i.sibling;i=m,i===null?(m=a.child,a.child=null):(m=i.sibling,i.sibling=null),zx(a,!1,m,i,f);break;case"backwards":for(i=null,m=a.child,a.child=null;m!==null;){if(l=m.alternate,l!==null&&tc(l)===null){a.child=m;break}l=m.sibling,m.sibling=i,i=m,m=l}zx(a,!0,i,null,f);break;case"together":zx(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function ws(l,a,i){if(l!==null&&(a.dependencies=l.dependencies),Vs|=a.lanes,(i&a.childLanes)===0)if(l!==null){if(mr(l,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(l!==null&&a.child!==l.child)throw Error(r(153));if(a.child!==null){for(l=a.child,i=fs(l,l.pendingProps),a.child=i,i.return=a;l.sibling!==null;)l=l.sibling,i=i.sibling=fs(l,l.pendingProps),i.return=a;i.sibling=null}return a.child}function Tx(l,a){return(l.lanes&a)!==0?!0:(l=l.dependencies,!!(l!==null&&Uo(l)))}function Hb(l,a,i){switch(a.tag){case 3:gt(a,a.stateNode.containerInfo),$s(a,ul,l.memoizedState.cache),xr();break;case 27:case 5:xl(a);break;case 4:gt(a,a.stateNode.containerInfo);break;case 10:$s(a,a.type,a.memoizedProps.value);break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Bs(a),a.flags|=128,null):(i&a.child.childLanes)!==0?Zf(l,a,i):(Bs(a),l=ws(l,a,i),l!==null?l.sibling:null);Bs(a);break;case 19:var m=(l.flags&128)!==0;if(o=(i&a.childLanes)!==0,o||(mr(l,a,i,!1),o=(i&a.childLanes)!==0),m){if(o)return Qf(l,a,i);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),ae(ml,ml.current),o)break;return null;case 22:case 23:return a.lanes=0,Yf(l,a,i);case 24:$s(a,ul,l.memoizedState.cache)}return ws(l,a,i)}function Jf(l,a,i){if(l!==null)if(l.memoizedProps!==a.pendingProps)bl=!0;else{if(!Tx(l,i)&&(a.flags&128)===0)return bl=!1,Hb(l,a,i);bl=(l.flags&131072)!==0}else bl=!1,it&&(a.flags&1048576)!==0&&Sp(a,Ho,a.index);switch(a.lanes=0,a.tag){case 16:e:{l=a.pendingProps;var o=a.elementType,m=o._init;if(o=m(o._payload),a.type=o,typeof o=="function")Ud(o)?(l=Rn(o,l),a.tag=1,a=Vf(null,a,o,l,i)):(a.tag=0,a=Nx(null,a,o,l,i));else{if(o!=null){if(m=o.$$typeof,m===le){a.tag=11,a=Bf(null,a,o,l,i);break e}else if(m===ze){a.tag=14,a=If(null,a,o,l,i);break e}}throw a=Je(o)||o,Error(r(306,a,""))}}return a;case 0:return Nx(l,a,a.type,a.pendingProps,i);case 1:return o=a.type,m=Rn(o,a.pendingProps),Vf(l,a,o,m,i);case 3:e:{if(gt(a,a.stateNode.containerInfo),l===null)throw Error(r(387));o=a.pendingProps;var f=a.memoizedState;m=f.element,Wd(l,a),br(a,o,null,i);var j=a.memoizedState;if(o=j.cache,$s(a,ul,o),o!==f.cache&&Vd(a,[ul],i,!0),vr(),o=j.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:j.cache},a.updateQueue.baseState=f,a.memoizedState=f,a.flags&256){a=Kf(l,a,o,i);break e}else if(o!==m){m=ba(Error(r(424)),a),ur(m),a=Kf(l,a,o,i);break e}else{switch(l=a.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(ll=Xa(l.firstChild),Ol=a,it=!0,_n=null,ss=!0,i=Tf(a,null,o,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(xr(),o===m){a=ws(l,a,i);break e}_l(l,a,o,i)}a=a.child}return a;case 26:return sc(l,a),l===null?(i=lg(a.type,null,a.pendingProps,null))?a.memoizedState=i:it||(i=a.type,l=a.pendingProps,o=vc(Ee.current).createElement(i),o[J]=a,o[se]=l,Sl(o,i,l),st(o),a.stateNode=o):a.memoizedState=lg(a.type,l.memoizedProps,a.pendingProps,l.memoizedState),null;case 27:return xl(a),l===null&&it&&(o=a.stateNode=Wh(a.type,a.pendingProps,Ee.current),Ol=a,ss=!0,m=ll,Qs(a.type)?(du=m,ll=Xa(o.firstChild)):ll=m),_l(l,a,a.pendingProps.children,i),sc(l,a),l===null&&(a.flags|=4194304),a.child;case 5:return l===null&&it&&((m=o=ll)&&(o=uy(o,a.type,a.pendingProps,ss),o!==null?(a.stateNode=o,Ol=a,ll=Xa(o.firstChild),ss=!1,m=!0):m=!1),m||En(a)),xl(a),m=a.type,f=a.pendingProps,j=l!==null?l.memoizedProps:null,o=f.children,iu(m,f)?o=null:j!==null&&iu(m,j)&&(a.flags|=32),a.memoizedState!==null&&(m=nx(l,a,Tb,null,null,i),Ir._currentValue=m),sc(l,a),_l(l,a,o,i),a.child;case 6:return l===null&&it&&((l=i=ll)&&(i=my(i,a.pendingProps,ss),i!==null?(a.stateNode=i,Ol=a,ll=null,l=!0):l=!1),l||En(a)),null;case 13:return Zf(l,a,i);case 4:return gt(a,a.stateNode.containerInfo),o=a.pendingProps,l===null?a.child=Ni(a,null,o,i):_l(l,a,o,i),a.child;case 11:return Bf(l,a,a.type,a.pendingProps,i);case 7:return _l(l,a,a.pendingProps,i),a.child;case 8:return _l(l,a,a.pendingProps.children,i),a.child;case 12:return _l(l,a,a.pendingProps.children,i),a.child;case 10:return o=a.pendingProps,$s(a,a.type,o.value),_l(l,a,o.children,i),a.child;
vendor: 4,931 bytes, line 48
48case 9:return m=a.type._context,o=a.pendingProps.children,Cn(a),m=Tl(m),o=o(m),a.flags|=1,_l(l,a,o,i),a.child;case 14:return If(l,a,a.type,a.pendingProps,i);case 15:return Ff(l,a,a.type,a.pendingProps,i);case 19:return Qf(l,a,i);case 31:return o=a.pendingProps,i=a.mode,o={mode:o.mode,children:o.children},l===null?(i=nc(o,i),i.ref=a.ref,a.child=i,i.return=a,a=i):(i=fs(l.child,o),i.ref=a.ref,a.child=i,i.return=a,a=i),a;case 22:return Yf(l,a,i);case 24:return Cn(a),o=Tl(ul),l===null?(m=Xd(),m===null&&(m=jt,f=Kd(),m.pooledCache=f,f.refCount++,f!==null&&(m.pooledCacheLanes|=i),m=f),a.memoizedState={parent:o,cache:m},Jd(a),$s(a,ul,m)):((l.lanes&i)!==0&&(Wd(l,a),br(a,null,null,i),vr()),m=l.memoizedState,f=a.memoizedState,m.parent!==o?(m={parent:o,cache:o},a.memoizedState=m,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=m),$s(a,ul,o)):(o=f.cache,$s(a,ul,o),o!==m.cache&&Vd(a,[ul],i,!0))),_l(l,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Ns(l){l.flags|=4}function Wf(l,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!rg(a)){if(a=ka.current,a!==null&&((tt&4194048)===tt?ns!==null:(tt&62914560)!==tt&&(tt&536870912)===0||a!==ns))throw gr=Qd,Dp;l.flags|=8192}}function ic(l,a){a!==null&&(l.flags|=4),l.flags&16384&&(a=l.tag!==22?wo():536870912,l.lanes|=a,Si|=a)}function Sr(l,a){if(!it)switch(l.tailMode){case"hidden":a=l.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?l.tail=null:i.sibling=null;break;case"collapsed":i=l.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?a||l.tail===null?l.tail=null:l.tail.sibling=null:o.sibling=null}}function Zt(l){var a=l.alternate!==null&&l.alternate.child===l.child,i=0,o=0;if(a)for(var m=l.child;m!==null;)i|=m.lanes|m.childLanes,o|=m.subtreeFlags&65011712,o|=m.flags&65011712,m.return=l,m=m.sibling;else for(m=l.child;m!==null;)i|=m.lanes|m.childLanes,o|=m.subtreeFlags,o|=m.flags,m.return=l,m=m.sibling;return l.subtreeFlags|=o,l.childLanes=i,a}function Ub(l,a,i){var o=a.pendingProps;switch(Fd(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zt(a),null;case 1:return Zt(a),null;case 3:return i=a.stateNode,o=null,l!==null&&(o=l.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),vs(ul),ts(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(l===null||l.child===null)&&(dr(a)?Ns(a):l===null||l.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Tp())),Zt(a),null;case 26:return i=a.memoizedState,l===null?(Ns(a),i!==null?(Zt(a),Wf(a,i)):(Zt(a),a.flags&=-16777217)):i?i!==l.memoizedState?(Ns(a),Zt(a),Wf(a,i)):(Zt(a),a.flags&=-16777217):(l.memoizedProps!==o&&Ns(a),Zt(a),a.flags&=-16777217),null;case 27:Fa(a),i=Ee.current;var m=a.type;if(l!==null&&a.stateNode!=null)l.memoizedProps!==o&&Ns(a);else{if(!o){if(a.stateNode===null)throw Error(r(166));return Zt(a),null}l=je.current,dr(a)?Cp(a):(l=Wh(m,o,i),a.stateNode=l,Ns(a))}return Zt(a),null;case 5:if(Fa(a),i=a.type,l!==null&&a.stateNode!=null)l.memoizedProps!==o&&Ns(a);else{if(!o){if(a.stateNode===null)throw Error(r(166));return Zt(a),null}if(l=je.current,dr(a))Cp(a);else{switch(m=vc(Ee.current),l){case 1:l=m.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:l=m.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":l=m.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":l=m.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":l=m.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof o.is=="string"?m.createElement("select",{is:o.is}):m.createElement("select"),o.multiple?l.multiple=!0:o.size&&(l.size=o.size);break;default:l=typeof o.is=="string"?m.createElement(i,{is:o.is}):m.createElement(i)}}l[J]=a,l[se]=o;e:for(m=a.child;m!==null;){if(m.tag===5||m.tag===6)l.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===a)break e;for(;m.sibling===null;){if(m.return===null||m.return===a)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}a.stateNode=l;e:switch(Sl(l,i,o),i){case"button":case"input":case"select":case"textarea":l=!!o.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Ns(a)}}return Zt(a),a.flags&=-16777217,null;case 6:if(l&&a.stateNode!=null)l.memoizedProps!==o&&Ns(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(r(166));if(l=Ee.current,dr(a)){if(l=a.stateNode,i=a.memoizedProps,o=null,m=Ol,m!==null)switch(m.tag){case 27:case 5:o=m.memoizedProps}l[J]=a,l=!!(l.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||qh(l.nodeValue,i)),l||En(a)}else l=vc(l).createTextNode(o),l[J]=a,a.stateNode=l}return Zt(a),null;case 13:if(o=a.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(m=dr(
vendor: 9,433 bytes, line 48
48a),o!==null&&o.dehydrated!==null){if(l===null){if(!m)throw Error(r(318));if(m=a.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(317));m[J]=a}else xr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Zt(a),m=!1}else m=Tp(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=m),m=!0;if(!m)return a.flags&256?(ys(a),a):(ys(a),null)}if(ys(a),(a.flags&128)!==0)return a.lanes=i,a;if(i=o!==null,l=l!==null&&l.memoizedState!==null,i){o=a.child,m=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(m=o.alternate.memoizedState.cachePool.pool);var f=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==m&&(o.flags|=2048)}return i!==l&&i&&(a.child.flags|=8192),ic(a,a.updateQueue),Zt(a),null;case 4:return ts(),l===null&&tu(a.stateNode.containerInfo),Zt(a),null;case 10:return vs(a.type),Zt(a),null;case 19:if(re(ml),m=a.memoizedState,m===null)return Zt(a),null;if(o=(a.flags&128)!==0,f=m.rendering,f===null)if(o)Sr(m,!1);else{if(al!==0||l!==null&&(l.flags&128)!==0)for(l=a.child;l!==null;){if(f=tc(l),f!==null){for(a.flags|=128,Sr(m,!1),l=f.updateQueue,a.updateQueue=l,ic(a,l),a.subtreeFlags=0,l=i,i=a.child;i!==null;)Ep(i,l),i=i.sibling;return ae(ml,ml.current&1|2),a.child}l=l.sibling}m.tail!==null&&ea()>cc&&(a.flags|=128,o=!0,Sr(m,!1),a.lanes=4194304)}else{if(!o)if(l=tc(f),l!==null){if(a.flags|=128,o=!0,l=l.updateQueue,a.updateQueue=l,ic(a,l),Sr(m,!0),m.tail===null&&m.tailMode==="hidden"&&!f.alternate&&!it)return Zt(a),null}else 2*ea()-m.renderingStartTime>cc&&i!==536870912&&(a.flags|=128,o=!0,Sr(m,!1),a.lanes=4194304);m.isBackwards?(f.sibling=a.child,a.child=f):(l=m.last,l!==null?l.sibling=f:a.child=f,m.last=f)}return m.tail!==null?(a=m.tail,m.rendering=a,m.tail=a.sibling,m.renderingStartTime=ea(),a.sibling=null,l=ml.current,ae(ml,o?l&1|2:l&1),a):(Zt(a),null);case 22:case 23:return ys(a),ax(),o=a.memoizedState!==null,l!==null?l.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(i&536870912)!==0&&(a.flags&128)===0&&(Zt(a),a.subtreeFlags&6&&(a.flags|=8192)):Zt(a),i=a.updateQueue,i!==null&&ic(a,i.retryQueue),i=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048),l!==null&&re(zn),null;case 24:return i=null,l!==null&&(i=l.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),vs(ul),Zt(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function Pb(l,a){switch(Fd(a),a.tag){case 1:return l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 3:return vs(ul),ts(),l=a.flags,(l&65536)!==0&&(l&128)===0?(a.flags=l&-65537|128,a):null;case 26:case 27:case 5:return Fa(a),null;case 13:if(ys(a),l=a.memoizedState,l!==null&&l.dehydrated!==null){if(a.alternate===null)throw Error(r(340));xr()}return l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 19:return re(ml),null;case 4:return ts(),null;case 10:return vs(a.type),null;case 22:case 23:return ys(a),ax(),l!==null&&re(zn),l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 24:return vs(ul),null;case 25:return null;default:return null}}function eh(l,a){switch(Fd(a),a.tag){case 3:vs(ul),ts();break;case 26:case 27:case 5:Fa(a);break;case 4:ts();break;case 13:ys(a);break;case 19:re(ml);break;case 10:vs(a.type);break;case 22:case 23:ys(a),ax(),l!==null&&re(zn);break;case 24:vs(ul)}}function Cr(l,a){try{var i=a.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var m=o.next;i=m;do{if((i.tag&l)===l){o=void 0;var f=i.create,j=i.inst;o=f(),j.destroy=o}i=i.next}while(i!==m)}}catch(w){ht(a,a.return,w)}}function Fs(l,a,i){try{var o=a.updateQueue,m=o!==null?o.lastEffect:null;if(m!==null){var f=m.next;o=f;do{if((o.tag&l)===l){var j=o.inst,w=j.destroy;if(w!==void 0){j.destroy=void 0,m=a;var E=i,H=w;try{H()}catch(q){ht(m,E,q)}}}o=o.next}while(o!==f)}}catch(q){ht(a,a.return,q)}}function th(l){var a=l.updateQueue;if(a!==null){var i=l.stateNode;try{Bp(a,i)}catch(o){ht(l,l.return,o)}}}function lh(l,a,i){i.props=Rn(l.type,l.memoizedProps),i.state=l.memoizedState;try{i.componentWillUnmount()}catch(o){ht(l,a,o)}}function zr(l,a){try{var i=l.ref;if(i!==null){switch(l.tag){case 26:case 27:case 5:var o=l.stateNode;break;case 30:o=l.stateNode;break;default:o=l.stateNode}typeof i=="function"?l.refCleanup=i(o):i.current=o}}catch(m){ht(l,a,m)}}function is(l,a){var i=l.ref,o=l.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(m){ht(l,a,m)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(m){ht(l,a,m)}else i.current=null}function ah(l){var a=l.type,i=l.memoizedProps,o=l.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(m){ht(l,l.return,m)}}function Rx(l,a,i){try{var o=l.stateNode;ry(o,l.type,i,a),o[se]=a}catch(m){ht(l,l.return,m)}}function sh(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&Qs(l.type)||l.tag===4}function Ax(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||sh(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&Qs(l.type)||l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Lx(l,a,i){var o=l.tag;if(o===5||o===6)l=l.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(l,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(l),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=jc));else if(o!==4&&(o===27&&Qs(l.type)&&(i=l.stateNode,a=null),l=l.child,l!==null))for(Lx(l,a,i),l=l.sibling;l!==null;)Lx(l,a,i),l=l.sibling}function rc(l,a,i){var o=l.tag;if(o===5||o===6)l=l.stateNode,a?i.insertBefore(l,a):i.appendChild(l);else if(o!==4&&(o===27&&Qs(l.type)&&(i=l.stateNode),l=l.child,l!==null))for(rc(l,a,i),l=l.sibling;l!==null;)rc(l,a,i),l=l.sibling}function nh(l){var a=l.stateNode,i=l.memoizedProps;try{for(var o=l.type,m=a.attributes;m.length;)a.removeAttributeNode(m[0]);Sl(a,o,i),a[J]=l,a[se]=i}catch(f){ht(l,l.return,f)}}var ks=!1,nl=!1,Mx=!1,ih=typeof WeakSet=="function"?WeakSet:Set,yl=null;function Bb(l,a){if(l=l.containerInfo,su=_c,l=hp(l),Ad(l)){if("selectionStart"in l)var i={start:l.selectionStart,end:l.selectionEnd};else e:{i=(i=l.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var m=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{i.nodeType,f.nodeType}catch{i=null;break e}var j=0,w=-1,E=-1,H=0,q=0,X=l,U=null;t:for(;;){for(var P;X!==i||m!==0&&X.nodeType!==3||(w=j+m),X!==f||o!==0&&X.nodeType!==3||(E=j+o),X.nodeType===3&&(j+=X.nodeValue.length),(P=X.firstChild)!==null;)U=X,X=P;for(;;){if(X===l)break t;if(U===i&&++H===m&&(w=j),U===f&&++q===o&&(E=j),(P=X.nextSibling)!==null)break;X=U,U=X.parentNode}X=P}i=w===-1||E===-1?null:{start:w,end:E}}else i=null}i=i||{start:0,end:0}}else i=null;for(nu={focusedElem:l,selectionRange:i},_c=!1,yl=a;yl!==null;)if(a=yl,l=a.child,(a.subtreeFlags&1024)!==0&&l!==null)l.return=a,yl=l;else for(;yl!==null;){switch(a=yl,f=a.alternate,l=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((l&1024)!==0&&f!==null){l=void 0,i=a,m=f.memoizedProps,f=f.memoizedState,o=i.stateNode;try{var Ae=Rn(i.type,m,i.elementType===i.type);l=o.getSnapshotBeforeUpdate(Ae,f),o.__reactInternalSnapshotBeforeUpdate=l}catch(Ce){ht(i,i.return,Ce)}}break;case 3:if((l&1024)!==0){if(l=a.stateNode.containerInfo,i=l.nodeType,i===9)ou(l);else if(i===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":ou(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(r(163))}if(l=a.sibling,l!==null){l.return=a.return,yl=l;break}yl=a.return}}function rh(l,a,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:Ys(l,i),o&4&&Cr(5,i);break;case 1:if(Ys(l,i),o&4)if(l=i.stateNode,a===null)try{l.componentDidMount()}catch(j){ht(i,i.return,j)}else{var m=Rn(i.type,a.memoizedProps);a=a.memoizedState;try{l.componentDidUpdate(m,a,l.__reactInternalSnapshotBeforeUpdate)}catch(j){ht(i,i.return,j)}}o&64&&th(i),o&512&&zr(i,i.return);break;case 3:if(Ys(l,i),o&64&&(l=i.updateQueue,l!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{Bp(l,a)}catch(j){ht(i,i.return,j)}}break;case 27:a===null&&o&4&&nh(i);case 26:case 5:Ys(l,i),a===null&&o&4&&ah(i),o&512&&zr(i,i.return);break;case 12:Ys(l,i);break;case 13:Ys(l,i),o&4&&dh(l,i),o&64&&(l=i.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(i=Xb.bind(null,i),py(l,i))));break;case 22:if(o=i.memoizedState!==null||ks,!o){a=a!==null&&a.memoizedState!==null||nl,m=ks;var f=nl;ks=o,(nl=a)&&!f?Gs(l,i,(i.subtreeFlags&8772)!==0):Ys(l,i),ks=m,nl=f}break;case 30:break;default:Ys(l,i)}}function oh(l){var a=l.alternate;a!==null&&(l.alternate=null,oh(a)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(a=l.stateNode,a!==null&&ye(a)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var Ht=null,Yl=!1;function _s(l,a,i){for(i=i.child;i!==null;)ch(l,a,i),i=i.sibling}
vendor: 5,467 bytes, line 48
48function ch(l,a,i){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(Ul,i)}catch{}switch(i.tag){case 26:nl||is(i,a),_s(l,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:nl||is(i,a);var o=Ht,m=Yl;Qs(i.type)&&(Ht=i.stateNode,Yl=!1),_s(l,a,i),Hr(i.stateNode),Ht=o,Yl=m;break;case 5:nl||is(i,a);case 6:if(o=Ht,m=Yl,Ht=null,_s(l,a,i),Ht=o,Yl=m,Ht!==null)if(Yl)try{(Ht.nodeType===9?Ht.body:Ht.nodeName==="HTML"?Ht.ownerDocument.body:Ht).removeChild(i.stateNode)}catch(f){ht(i,a,f)}else try{Ht.removeChild(i.stateNode)}catch(f){ht(i,a,f)}break;case 18:Ht!==null&&(Yl?(l=Ht,Qh(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.stateNode),qr(l)):Qh(Ht,i.stateNode));break;case 4:o=Ht,m=Yl,Ht=i.stateNode.containerInfo,Yl=!0,_s(l,a,i),Ht=o,Yl=m;break;case 0:case 11:case 14:case 15:nl||Fs(2,i,a),nl||Fs(4,i,a),_s(l,a,i);break;case 1:nl||(is(i,a),o=i.stateNode,typeof o.componentWillUnmount=="function"&&lh(i,a,o)),_s(l,a,i);break;case 21:_s(l,a,i);break;case 22:nl=(o=nl)||i.memoizedState!==null,_s(l,a,i),nl=o;break;default:_s(l,a,i)}}function dh(l,a){if(a.memoizedState===null&&(l=a.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{qr(l)}catch(i){ht(a,a.return,i)}}function Ib(l){switch(l.tag){case 13:case 19:var a=l.stateNode;return a===null&&(a=l.stateNode=new ih),a;case 22:return l=l.stateNode,a=l._retryCache,a===null&&(a=l._retryCache=new ih),a;default:throw Error(r(435,l.tag))}}function Dx(l,a){var i=Ib(l);a.forEach(function(o){var m=Qb.bind(null,l,o);i.has(o)||(i.add(o),o.then(m,m))})}function aa(l,a){var i=a.deletions;if(i!==null)for(var o=0;o<i.length;o++){var m=i[o],f=l,j=a,w=j;e:for(;w!==null;){switch(w.tag){case 27:if(Qs(w.type)){Ht=w.stateNode,Yl=!1;break e}break;case 5:Ht=w.stateNode,Yl=!1;break e;case 3:case 4:Ht=w.stateNode.containerInfo,Yl=!0;break e}w=w.return}if(Ht===null)throw Error(r(160));ch(f,j,m),Ht=null,Yl=!1,f=m.alternate,f!==null&&(f.return=null),m.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)xh(a,l),a=a.sibling}var Za=null;function xh(l,a){var i=l.alternate,o=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:aa(a,l),sa(l),o&4&&(Fs(3,l,l.return),Cr(3,l),Fs(5,l,l.return));break;case 1:aa(a,l),sa(l),o&512&&(nl||i===null||is(i,i.return)),o&64&&ks&&(l=l.updateQueue,l!==null&&(o=l.callbacks,o!==null&&(i=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var m=Za;if(aa(a,l),sa(l),o&512&&(nl||i===null||is(i,i.return)),o&4){var f=i!==null?i.memoizedState:null;if(o=l.memoizedState,i===null)if(o===null)if(l.stateNode===null){e:{o=l.type,i=l.memoizedProps,m=m.ownerDocument||m;t:switch(o){case"title":f=m.getElementsByTagName("title")[0],(!f||f[Re]||f[J]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=m.createElement(o),m.head.insertBefore(f,m.querySelector("head > title"))),Sl(f,o,i),f[J]=l,st(f),o=f;break e;case"link":var j=ng("link","href",m).get(o+(i.href||""));if(j){for(var w=0;w<j.length;w++)if(f=j[w],f.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&f.getAttribute("rel")===(i.rel==null?null:i.rel)&&f.getAttribute("title")===(i.title==null?null:i.title)&&f.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){j.splice(w,1);break t}}f=m.createElement(o),Sl(f,o,i),m.head.appendChild(f);break;case"meta":if(j=ng("meta","content",m).get(o+(i.content||""))){for(w=0;w<j.length;w++)if(f=j[w],f.getAttribute("content")===(i.content==null?null:""+i.content)&&f.getAttribute("name")===(i.name==null?null:i.name)&&f.getAttribute("property")===(i.property==null?null:i.property)&&f.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&f.getAttribute("charset")===(i.charSet==null?null:i.charSet)){j.splice(w,1);break t}}f=m.createElement(o),Sl(f,o,i),m.head.appendChild(f);break;default:throw Error(r(468,o))}f[J]=l,st(f),o=f}l.stateNode=o}else ig(m,l.type,l.stateNode);else l.stateNode=sg(m,o,l.memoizedProps);else f!==o?(f===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):f.count--,o===null?ig(m,l.type,l.stateNode):sg(m,o,l.memoizedProps)):o===null&&l.stateNode!==null&&Rx(l,l.memoizedProps,i.memoizedProps)}break;case 27:aa(a,l),sa(l),o&512&&(nl||i===null||is(i,i.return)),i!==null&&o&4&&Rx(l,l.memoizedProps,i.memoizedProps);break;case 5:if(aa(a,l),sa(l),o&512&&(nl||i===null||is(i,i.return)),l.flags&32){m=l.stateNode;try{ni(m,"")}catch(P){ht(l,l.return,P)}}o&4&&l.stateNode!=null&&(m=l.memoizedProps,Rx(l,m,i!==null?i.memoizedProps:m)),o&1024&&(Mx=!0);break;case 6:if(aa(a,l),sa(l),o&4){if(l.stateNode===null)throw Error(r(162));o=l.memoizedProps,i=l.stateNode;try{i.nodeValue=o}catch(P){ht(l,l.return,P)}}break;case 3:if(wc=null,m=Za,Za=bc(a.containerInfo),aa(a,l),Za=m,sa(l),o&4&&i!==null&&i.memoizedState.isDehydrated)try{qr(a.containerInfo)}catch(P){ht(l,l.return,P)}Mx&&(Mx=!1,uh(l));break;case 4:o=Za,Za=bc(l.stateNode.containerInfo),aa(a,l),sa(l),Za=o;break;case 12:aa(a,l),sa(l);break;case 13:aa(a,l),sa(l),l.child.flags&8192&&l.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Bx=ea()),o&4&&(o=l.updateQueue,o!==null&&(l.updateQueue=null,Dx(l,o)));break;case 22:m=l.memoizedState!==null;var E=i!==null&&i.memoizedState!==null,H=ks,q=nl;if(ks=H||m,nl=q||E,aa(a,l),nl=q,ks=H,sa(l),o&8192)e:for(a=l.stateNode,a._visibility=m?a._visibility&-2:a._visibility|1,m&&(i===null||E||ks||nl||An(l)),i=null,a=l;;
vendor: 6,745 bytes, line 48
48){if(a.tag===5||a.tag===26){if(i===null){E=i=a;try{if(f=E.stateNode,m)j=f.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none";else{w=E.stateNode;var X=E.memoizedProps.style,U=X!=null&&X.hasOwnProperty("display")?X.display:null;w.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(P){ht(E,E.return,P)}}}else if(a.tag===6){if(i===null){E=a;try{E.stateNode.nodeValue=m?"":E.memoizedProps}catch(P){ht(E,E.return,P)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===l)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=l.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Dx(l,i))));break;case 19:aa(a,l),sa(l),o&4&&(o=l.updateQueue,o!==null&&(l.updateQueue=null,Dx(l,o)));break;case 30:break;case 21:break;default:aa(a,l),sa(l)}}function sa(l){var a=l.flags;if(a&2){try{for(var i,o=l.return;o!==null;){if(sh(o)){i=o;break}o=o.return}if(i==null)throw Error(r(160));switch(i.tag){case 27:var m=i.stateNode,f=Ax(l);rc(l,f,m);break;case 5:var j=i.stateNode;i.flags&32&&(ni(j,""),i.flags&=-33);var w=Ax(l);rc(l,w,j);break;case 3:case 4:var E=i.stateNode.containerInfo,H=Ax(l);Lx(l,H,E);break;default:throw Error(r(161))}}catch(q){ht(l,l.return,q)}l.flags&=-3}a&4096&&(l.flags&=-4097)}function uh(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var a=l;uh(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),l=l.sibling}}function Ys(l,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)rh(l,a.alternate,a),a=a.sibling}function An(l){for(l=l.child;l!==null;){var a=l;switch(a.tag){case 0:case 11:case 14:case 15:Fs(4,a,a.return),An(a);break;case 1:is(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&lh(a,a.return,i),An(a);break;case 27:Hr(a.stateNode);case 26:case 5:is(a,a.return),An(a);break;case 22:a.memoizedState===null&&An(a);break;case 30:An(a);break;default:An(a)}l=l.sibling}}function Gs(l,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,m=l,f=a,j=f.flags;switch(f.tag){case 0:case 11:case 15:Gs(m,f,i),Cr(4,f);break;case 1:if(Gs(m,f,i),o=f,m=o.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(H){ht(o,o.return,H)}if(o=f,m=o.updateQueue,m!==null){var w=o.stateNode;try{var E=m.shared.hiddenCallbacks;if(E!==null)for(m.shared.hiddenCallbacks=null,m=0;m<E.length;m++)Pp(E[m],w)}catch(H){ht(o,o.return,H)}}i&&j&64&&th(f),zr(f,f.return);break;case 27:nh(f);case 26:case 5:Gs(m,f,i),i&&o===null&&j&4&&ah(f),zr(f,f.return);break;case 12:Gs(m,f,i);break;case 13:Gs(m,f,i),i&&j&4&&dh(m,f);break;case 22:f.memoizedState===null&&Gs(m,f,i),zr(f,f.return);break;case 30:break;default:Gs(m,f,i)}a=a.sibling}}function $x(l,a){var i=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==i&&(l!=null&&l.refCount++,i!=null&&pr(i))}function Ox(l,a){l=null,a.alternate!==null&&(l=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==l&&(a.refCount++,l!=null&&pr(l))}function rs(l,a,i,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)mh(l,a,i,o),a=a.sibling}function mh(l,a,i,o){var m=a.flags;switch(a.tag){case 0:case 11:case 15:rs(l,a,i,o),m&2048&&Cr(9,a);break;case 1:rs(l,a,i,o);break;case 3:rs(l,a,i,o),m&2048&&(l=null,a.alternate!==null&&(l=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==l&&(a.refCount++,l!=null&&pr(l)));break;case 12:if(m&2048){rs(l,a,i,o),l=a.stateNode;try{var f=a.memoizedProps,j=f.id,w=f.onPostCommit;typeof w=="function"&&w(j,a.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(E){ht(a,a.return,E)}}else rs(l,a,i,o);break;case 13:rs(l,a,i,o);break;case 23:break;case 22:f=a.stateNode,j=a.alternate,a.memoizedState!==null?f._visibility&2?rs(l,a,i,o):Tr(l,a):f._visibility&2?rs(l,a,i,o):(f._visibility|=2,ki(l,a,i,o,(a.subtreeFlags&10256)!==0)),m&2048&&$x(j,a);break;case 24:rs(l,a,i,o),m&2048&&Ox(a.alternate,a);break;default:rs(l,a,i,o)}}function ki(l,a,i,o,m){for(m=m&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var f=l,j=a,w=i,E=o,H=j.flags;switch(j.tag){case 0:case 11:case 15:ki(f,j,w,E,m),Cr(8,j);break;case 23:break;case 22:var q=j.stateNode;j.memoizedState!==null?q._visibility&2?ki(f,j,w,E,m):Tr(f,j):(q._visibility|=2,ki(f,j,w,E,m)),m&&H&2048&&$x(j.alternate,j);break;case 24:ki(f,j,w,E,m),m&&H&2048&&Ox(j.alternate,j);break;default:ki(f,j,w,E,m)}a=a.sibling}}function Tr(l,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=l,o=a,m=o.flags;switch(o.tag){case 22:Tr(i,o),m&2048&&$x(o.alternate,o);break;case 24:Tr(i,o),m&2048&&Ox(o.alternate,o);break;default:Tr(i,o)}a=a.sibling}}var Rr=8192;function _i(l){if(l.subtreeFlags&Rr)for(l=l.child;l!==null;)ph(l),l=l.sibling}function ph(l){switch(l.tag){case 26:_i(l),l.flags&Rr&&l.memoizedState!==null&&Sy(Za,l.memoizedState,l.memoizedProps);break;case 5:_i(l);break;case 3:case 4:var a=Za;Za=bc(l.stateNode.containerInfo),_i(l),Za=a;break;case 22:l.memoizedState===null&&(a=l.alternate,a!==null&&a.memoizedState!==null?(a=Rr,Rr=16777216,_i(l),Rr=a):_i(l));break;default:_i(l)}}function fh(l){var a=l.alternate;if(a!==null&&(l=a.child,l!==null)){a.child=null;do a=l.sibling,l.sibling=null,l=a;while(l!==null)}}function Ar(l){var a=l.deletions;if((l.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var o=a[i];yl=o,gh(o,l)}fh(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)hh(l),l=l.sibling}function hh(l){switch(l.tag){case 0:case 11:case 15:Ar(l),l.flags&2048&&Fs(9,l,l.return);break;case 3:Ar(l);break;case 12:Ar(l);break;case 22:var a=l.stateNode;l.memoizedState!==null&&a._visibility&2&&(l.return===null||l.return.tag!==13)?(a._visibility&=-3,oc(l)):Ar(l);break;default:Ar(l)}}function oc(l){var a=l.deletions;if((l.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var o=a[i];yl=o,gh(o,l)}fh(l)}for(l=l.child;l!==null;){switch(a=l,a.tag){case 0:case 11:case 15:Fs(8,a,a.return),oc(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,oc(a));break;default:oc(a)}l=l.sibling}}function gh(l,a){for(;yl!==null;){var i=yl;switch(i.tag){case 0:case 11:case 15:Fs(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:pr(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,yl=o;else e:for(i=l;yl!==null;){o=yl;var m=o.sibling,f=o.return;if(oh(o),o===i){yl=null;break e}if(m!==null){m.return=f,yl=m;break e}yl=f}}}var Fb={getCacheForType:function(l){var a=Tl(ul),i=a.data.get(l);
vendor: 15,761 bytes, line 48
48return i===void 0&&(i=l(),a.data.set(l,i)),i}},Yb=typeof WeakMap=="function"?WeakMap:Map,rt=0,jt=null,Ve=null,tt=0,ot=0,na=null,qs=!1,Ei=!1,Hx=!1,Es=0,al=0,Vs=0,Ln=0,Ux=0,_a=0,Si=0,Lr=null,Gl=null,Px=!1,Bx=0,cc=1/0,dc=null,Ks=null,El=0,Zs=null,Ci=null,zi=0,Ix=0,Fx=null,jh=null,Mr=0,Yx=null;function ia(){if((rt&2)!==0&&tt!==0)return tt&-tt;if(B.T!==null){var l=hi;return l!==0?l:Qx()}return R()}function vh(){_a===0&&(_a=(tt&536870912)===0||it?li():536870912);var l=ka.current;return l!==null&&(l.flags|=32),_a}function ra(l,a,i){(l===jt&&(ot===2||ot===9)||l.cancelPendingCommit!==null)&&(Ti(l,0),Xs(l,tt,_a,!1)),fn(l,i),((rt&2)===0||l!==jt)&&(l===jt&&((rt&2)===0&&(Ln|=i),al===4&&Xs(l,tt,_a,!1)),os(l))}function bh(l,a,i){if((rt&6)!==0)throw Error(r(327));var o=!i&&(a&124)===0&&(a&l.expiredLanes)===0||as(l,a),m=o?Vb(l,a):Vx(l,a,!0),f=o;do{if(m===0){Ei&&!o&&Xs(l,a,0,!1);break}else{if(i=l.current.alternate,f&&!Gb(i)){m=Vx(l,a,!1),f=!1;continue}if(m===2){if(f=a,l.errorRecoveryDisabledLanes&f)var j=0;else j=l.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){a=j;e:{var w=l;m=Lr;var E=w.current.memoizedState.isDehydrated;if(E&&(Ti(w,j).flags|=256),j=Vx(w,j,!1),j!==2){if(Hx&&!E){w.errorRecoveryDisabledLanes|=f,Ln|=f,m=4;break e}f=Gl,Gl=m,f!==null&&(Gl===null?Gl=f:Gl.push.apply(Gl,f))}m=j}if(f=!1,m!==2)continue}}if(m===1){Ti(l,0),Xs(l,a,0,!0);break}e:{switch(o=l,f=m,f){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:Xs(o,a,_a,!qs);break e;case 2:Gl=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(m=Bx+300-ea(),10<m)){if(Xs(o,a,_a,!qs),pn(o,0,!0)!==0)break e;o.timeoutHandle=Zh(yh.bind(null,o,i,Gl,dc,Px,a,_a,Ln,Si,qs,f,2,-0,0),m);break e}yh(o,i,Gl,dc,Px,a,_a,Ln,Si,qs,f,0,-0,0)}}break}while(!0);os(l)}function yh(l,a,i,o,m,f,j,w,E,H,q,X,U,P){if(l.timeoutHandle=-1,X=a.subtreeFlags,(X&8192||(X&16785408)===16785408)&&(Br={stylesheets:null,count:0,unsuspend:Ey},ph(a),X=Cy(),X!==null)){l.cancelPendingCommit=X(Ch.bind(null,l,a,f,i,o,m,j,w,E,q,1,U,P)),Xs(l,f,j,!H);return}Ch(l,a,f,i,o,m,j,w,E)}function Gb(l){for(var a=l;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var m=i[o],f=m.getSnapshot;m=m.value;try{if(!ta(f(),m))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===l)break;for(;a.sibling===null;){if(a.return===null||a.return===l)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Xs(l,a,i,o){a&=~Ux,a&=~Ln,l.suspendedLanes|=a,l.pingedLanes&=~a,o&&(l.warmLanes|=a),o=l.expirationTimes;for(var m=a;0<m;){var f=31-kl(m),j=1<<f;o[f]=-1,m&=~j}i!==0&&hn(l,i,a)}function xc(){return(rt&6)===0?(Dr(0),!1):!0}function Gx(){if(Ve!==null){if(ot===0)var l=Ve.return;else l=Ve,js=Sn=null,ox(l),wi=null,_r=0,l=Ve;for(;l!==null;)eh(l.alternate,l),l=l.return;Ve=null}}function Ti(l,a){var i=l.timeoutHandle;i!==-1&&(l.timeoutHandle=-1,cy(i)),i=l.cancelPendingCommit,i!==null&&(l.cancelPendingCommit=null,i()),Gx(),jt=l,Ve=i=fs(l.current,null),tt=a,ot=0,na=null,qs=!1,Ei=as(l,a),Hx=!1,Si=_a=Ux=Ln=Vs=al=0,Gl=Lr=null,Px=!1,(a&8)!==0&&(a|=a&32);var o=l.entangledLanes;if(o!==0)for(l=l.entanglements,o&=a;0<o;){var m=31-kl(o),f=1<<m;a|=l[m],o&=~f}return Es=a,Lo(),i}function wh(l,a){Ie=null,B.H=Jo,a===hr||a===Io?(a=Hp(),ot=3):a===Dp?(a=Hp(),ot=4):ot=a===Pf?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,na=a,Ve===null&&(al=1,ac(l,ba(a,l.current)))}function Nh(){var l=B.H;return B.H=Jo,l===null?Jo:l}function kh(){var l=B.A;return B.A=Fb,l}function qx(){al=4,qs||(tt&4194048)!==tt&&ka.current!==null||(Ei=!0),(Vs&134217727)===0&&(Ln&134217727)===0||jt===null||Xs(jt,tt,_a,!1)}function Vx(l,a,i){var o=rt;rt|=2;var m=Nh(),f=kh();(jt!==l||tt!==a)&&(dc=null,Ti(l,a)),a=!1;var j=al;e:do try{if(ot!==0&&Ve!==null){var w=Ve,E=na;switch(ot){case 8:Gx(),j=6;break e;case 3:case 2:case 9:case 6:ka.current===null&&(a=!0);var H=ot;if(ot=0,na=null,Ri(l,w,E,H),i&&Ei){j=0;break e}break;default:H=ot,ot=0,na=null,Ri(l,w,E,H)}}qb(),j=al;break}catch(q){wh(l,q)}while(!0);return a&&l.shellSuspendCounter++,js=Sn=null,rt=o,B.H=m,B.A=f,Ve===null&&(jt=null,tt=0,Lo()),j}function qb(){for(;Ve!==null;)_h(Ve)}function Vb(l,a){var i=rt;rt|=2;var o=Nh(),m=kh();jt!==l||tt!==a?(dc=null,cc=ea()+500,Ti(l,a)):Ei=as(l,a);e:do try{if(ot!==0&&Ve!==null){a=Ve;var f=na;t:switch(ot){case 1:ot=0,na=null,Ri(l,a,f,1);break;case 2:case 9:if($p(f)){ot=0,na=null,Eh(a);break}a=function(){ot!==2&&ot!==9||jt!==l||(ot=7),os(l)},f.then(a,a);break e;case 3:ot=7;break e;case 4:ot=5;break e;case 7:$p(f)?(ot=0,na=null,Eh(a)):(ot=0,na=null,Ri(l,a,f,7));break;case 5:var j=null;switch(Ve.tag){case 26:j=Ve.memoizedState;case 5:case 27:var w=Ve;if(!j||rg(j)){ot=0,na=null;var E=w.sibling;if(E!==null)Ve=E;else{var H=w.return;H!==null?(Ve=H,uc(H)):Ve=null}break t}}ot=0,na=null,Ri(l,a,f,5);break;case 6:ot=0,na=null,Ri(l,a,f,6);break;case 8:Gx(),al=6;break e;default:throw Error(r(462))}}Kb();break}catch(q){wh(l,q)}while(!0);return js=Sn=null,B.H=o,B.A=m,rt=i,Ve!==null?0:(jt=null,tt=0,Lo(),al)}function Kb(){for(;Ve!==null&&!md();)_h(Ve)}function _h(l){var a=Jf(l.alternate,l,Es);l.memoizedProps=l.pendingProps,a===null?uc(l):Ve=a}function Eh(l){var a=l,i=a.alternate;switch(a.tag){case 15:case 0:a=qf(i,a,a.pendingProps,a.type,void 0,tt);break;case 11:a=qf(i,a,a.pendingProps,a.type.render,a.ref,tt);break;case 5:ox(a);default:eh(i,a),a=Ve=Ep(a,Es),a=Jf(i,a,Es)}l.memoizedProps=l.pendingProps,a===null?uc(l):Ve=a}function Ri(l,a,i,o){js=Sn=null,ox(a),wi=null,_r=0;var m=a.return;try{if(Ob(l,m,a,i,tt)){al=1,ac(l,ba(i,l.current)),Ve=null;return}}catch(f){if(m!==null)throw Ve=m,f;al=1,ac(l,ba(i,l.current)),Ve=null;return}a.flags&32768?(it||o===1?l=!0:Ei||(tt&536870912)!==0?l=!1:(qs=l=!0,(o===2||o===9||o===3||o===6)&&(o=ka.current,o!==null&&o.tag===13&&(o.flags|=16384))),Sh(a,l)):uc(a)}function uc(l){var a=l;do{if((a.flags&32768)!==0){Sh(a,qs);return}l=a.return;var i=Ub(a.alternate,a,Es);if(i!==null){Ve=i;return}if(a=a.sibling,a!==null){Ve=a;return}Ve=a=l}while(a!==null);al===0&&(al=5)}function Sh(l,a){do{var i=Pb(l.alternate,l);if(i!==null){i.flags&=32767,Ve=i;return}if(i=l.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(l=l.sibling,l!==null)){Ve=l;return}Ve=l=i}while(l!==null);al=6,Ve=null}function Ch(l,a,i,o,m,f,j,w,E){l.cancelPendingCommit=null;do mc();while(El!==0);if((rt&6)!==0)throw Error(r(327));if(a!==null){if(a===l.current)throw Error(r(177));if(f=a.lanes|a.childLanes,f|=Od,No(l,i,f,j,w,E),l===jt&&(Ve=jt=null,tt=0),Ci=a,Zs=l,zi=i,Ix=f,Fx=m,jh=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,Jb(ti,function(){return Lh(),null})):(l.callbackNode=null,l.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=B.T,B.T=null,m=ne.p,ne.p=2,j=rt,rt|=4;try{Bb(l,a,i)}finally{rt=j,ne.p=m,B.T=o}}El=1,zh(),Th(),Rh()}}function zh(){if(El===1){El=0;var l=Zs,a=Ci,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=B.T,B.T=null;var o=ne.p;ne.p=2;var m=rt;rt|=4;try{xh(a,l);var f=nu,j=hp(l.containerInfo),w=f.focusedElem,E=f.selectionRange;if(j!==w&&w&&w.ownerDocument&&fp(w.ownerDocument.documentElement,w)){if(E!==null&&Ad(w)){var H=E.start,q=E.end;if(q===void 0&&(q=H),"selectionStart"in w)w.selectionStart=H,w.selectionEnd=Math.min(q,w.value.length);else{var X=w.ownerDocument||document,U=X&&X.defaultView||window;if(U.getSelection){var P=U.getSelection(),Ae=w.textContent.length,Ce=Math.min(E.start,Ae),ut=E.end===void 0?Ce:Math.min(E.end,Ae);!P.extend&&Ce>ut&&(j=ut,ut=Ce,Ce=j);var M=pp(w,Ce),A=pp(w,ut);if(M&&A&&(P.rangeCount!==1||P.anchorNode!==M.node||P.anchorOffset!==M.offset||P.focusNode!==A.node||P.focusOffset!==A.offset)){var O=X.createRange();O.setStart(M.node,M.offset),P.removeAllRanges(),Ce>ut?(P.addRange(O),P.extend(A.node,A.offset)):(O.setEnd(A.node,A.offset),P.addRange(O))}}}}for(X=[],P=w;P=P.parentNode;)P.nodeType===1&&X.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<X.length;w++){var K=X[w];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}_c=!!su,nu=su=null}finally{rt=m,ne.p=o,B.T=i}}l.current=a,El=2}}function Th(){if(El===2){El=0;var l=Zs,a=Ci,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=B.T,B.T=null;var o=ne.p;ne.p=2;var m=rt;rt|=4;try{rh(l,a.alternate,a)}finally{rt=m,ne.p=o,B.T=i}}El=3}}function Rh(){if(El===4||El===3){El=0,pd();var l=Zs,a=Ci,i=zi,o=jh;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?El=5:(El=0,Ci=Zs=null,Ah(l,l.pendingLanes));var m=l.pendingLanes;if(m===0&&(Ks=null),Ji(i),a=a.stateNode,Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(Ul,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=B.T,m=ne.p,ne.p=2,B.T=null;try{for(var f=l.onRecoverableError,j=0;j<o.length;j++){var w=o[j];f(w.value,{componentStack:w.stack})}}finally{B.T=a,ne.p=m}}(zi&3)!==0&&mc(),os(l),m=l.pendingLanes,(i&4194090)!==0&&(m&42)!==0?l===Yx?Mr++:(Mr=0,Yx=l):Mr=0,Dr(0)}}function Ah(l,a){(l.pooledCacheLanes&=a)===0&&(a=l.pooledCache,a!=null&&(l.pooledCache=null,pr(a)))}function mc(l){return zh(),Th(),Rh(),Lh()}function Lh(){if(El!==5)return!1;var l=Zs,a=Ix;Ix=0;var i=Ji(zi),o=B.T,m=ne.p;try{ne.p=32>i?32:i,B.T=null,i=Fx,Fx=null;var f=Zs,j=zi;if(El=0,Ci=Zs=null,zi=0,(rt&6)!==0)throw Error(r(331));var w=rt;if(rt|=4,hh(f.current),mh(f,f.current,j,i),rt=w,Dr(0,!1),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(Ul,f)}catch{}return!0}finally{ne.p=m,B.T=o,Ah(l,a)}}function Mh(l,a,i){a=ba(i,a),a=wx(l.stateNode,a,2),l=Us(l,a,2),l!==null&&(fn(l,2),os(l))}function ht(l,a,i){if(l.tag===3)Mh(l,l,i);else for(;a!==null;){if(a.tag===3){Mh(a,l,i);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ks===null||!Ks.has(o))){l=ba(i,l),i=Hf(2),o=Us(a,i,2),o!==null&&(Uf(i,o,a,l),fn(o,2),os(o));break}}a=a.return}}function Kx(l,a,i){var o=l.pingCache;if(o===null){o=l.pingCache=new Yb;var m=new Set;o.set(a,m)}else m=o.get(a),m===void 0&&(m=new Set,o.set(a,m));m.has(i)||(Hx=!0,m.add(i),l=Zb.bind(null,l,a,i),a.then(l,l))}function Zb(l,a,i){var o=l.pingCache;o!==null&&o.delete(a),l.pingedLanes|=l.suspendedLanes&i,l.warmLanes&=~i,jt===l&&(tt&i)===i&&(al===4||al===3&&(tt&62914560)===tt&&300>ea()-Bx?(rt&2)===0&&Ti(l,0):Ux|=i,Si===tt&&(Si=0)),os(l)}function Dh(l,a){a===0&&(a=wo()),l=ui(l,a),l!==null&&(fn(l,a),os(l))}function Xb(l){var a=l.memoizedState,i=0;a!==null&&(i=a.retryLane),Dh(l,i)}function Qb(l,a){var i=0;switch(l.tag){case 13:var o=l.stateNode,m=l.memoizedState;m!==null&&(i=m.retryLane);break;case 19:o=l.stateNode;break;case 22:o=l.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(a),Dh(l,i)}function Jb(l,a){return Zi(l,a)}var pc=null,Ai=null,Zx=!1,fc=!1,Xx=!1,Mn=0;function os(l){l!==Ai&&l.next===null&&(Ai===null?pc=Ai=l:Ai=Ai.next=l),fc=!0,Zx||(Zx=!0,ey())}function Dr(l,a){if(!Xx&&fc){Xx=!0;do for(var i=!1,o=pc;o!==null;){if(l!==0){var m=o.pendingLanes;if(m===0)var f=0;else{var j=o.suspendedLanes,w=o.pingedLanes;f=(1<<31-kl(42|l)+1)-1,f&=m&~(j&~w),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(i=!0,Uh(o,f))}else f=tt,f=pn(o,o===jt?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||as(o,f)||(i=!0,Uh(o,f));o=o.next}while(i);Xx=!1}}function Wb(){$h()}function $h(){fc=Zx=!1;var l=0;Mn!==0&&(oy()&&(l=Mn),Mn=0);for(var a=ea(),i=null,o=pc;o!==null;){var m=o.next,f=Oh(o,a);f===0?(o.next=null,i===null?pc=m:i.next=m,m===null&&(Ai=i)):(i=o,(l!==0||(f&3)!==0)&&(fc=!0)),o=m}Dr(l)}function Oh(l,a){for(var i=l.suspendedLanes,o=l.pingedLanes,m=l.expirationTimes,f=l.pendingLanes&-62914561;0<f;){var j=31-kl(f),w=1<<j,E=m[j];E===-1?((w&i)===0||(w&o)!==0)&&(m[j]=yo(w,a)):E<=a&&(l.expiredLanes|=w),f&=~w}if(a=jt,i=tt,i=pn(l,l===a?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),o=l.callbackNode,i===0||l===a&&(ot===2||ot===9)||l.cancelPendingCommit!==null)return o!==null&&o!==null&&Ya(o),l.callbackNode=null,l.callbackPriority=0;if((i&3)===0||as(l,i)){if(a=i&-i,a===l.callbackPriority)return a;switch(o!==null&&Ya(o),Ji(i)){case 2:case 8:i=jo;break;case 32:i=ti;break;case 268435456:i=Ts;break;default:i=ti}return o=Hh.bind(null,l),i=Zi(i,o),l.callbackPriority=a,l.callbackNode=i,a}return o!==null&&o!==null&&Ya(o),l.callbackPriority=2,l.callbackNode=null,2}function Hh(l,a){if(El!==0&&El!==5)return l.callbackNode=null,l.callbackPriority=0,null;var i=l.callbackNode;if(mc()&&l.callbackNode!==i)return null;var o=tt;return o=pn(l,l===jt?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),o===0?null:(bh(l,o,a),Oh(l,ea()),l.callbackNode!=null&&l.callbackNode===i?Hh.bind(null,l):null)}function Uh(l,a){if(mc())return null;bh(l,a,!0)}function ey(){dy(function(){(rt&6)!==0?Zi(go,Wb):$h()})}function Qx(){return Mn===0&&(Mn=li()),Mn}function Ph(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:Eo(""+l)}function Bh(l,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,l.id&&i.setAttribute("form",l.id),a.parentNode.insertBefore(i,a),l=new FormData(l),i.parentNode.removeChild(i),l}function ty(l,a,i,o,m){if(a==="submit"&&i&&i.stateNode===m){var f=Ph((m[se]||null).action),j=o.submitter;j&&(a=(a=j[se]||null)?Ph(a.formAction):j.getAttribute("formAction"),a!==null&&(f=a,j=null));var w=new To("action","action",null,o,m);l.push({event:w,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Mn!==0){var E=j?Bh(m,j):new FormData(m);gx(i,{pending:!0,data:E,method:m.method,action:f},null,E)}}else typeof f=="function"&&(w.preventDefault(),E=j?Bh(m,j):new FormData(m),gx(i,{pending:!0,data:E,method:m.method,action:f},f,E))},currentTarget:m}]})}}for(var Jx=0;Jx<$d.length;Jx++){var Wx=$d[Jx],ly=Wx.toLowerCase(),ay=Wx[0].toUpperCase()+Wx.slice(1);Ka(ly,"on"+ay)}Ka(vp,"onAnimationEnd"),Ka(bp,"onAnimationIteration"),Ka(yp,"onAnimationStart"),Ka("dblclick","onDoubleClick"),Ka("focusin","onFocus"),Ka("focusout","onBlur"),Ka(bb,"onTransitionRun"),Ka(yb,"onTransitionStart"),Ka(wb,"onTransitionCancel"),Ka(wp,"onTransitionEnd"),ga("onMouseEnter",["mouseout","mouseover"]),ga("onMouseLeave",["mouseout","mouseover"]),ga("onPointerEnter",["pointerout","pointerover"]),ga("onPointerLeave",["pointerout","pointerover"]),$l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$l("onBeforeInput",["compositionend","keypress","textInput","paste"]),$l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),sy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($r));function Ih(l,a){a=(a&4)!==0;for(var i=0;i<l.length;i++){var o=l[i],m=o.event;o=o.listeners;e:{var f=void 0;if(a)for(var j=o.length-1;0<=j;j--){var w=o[j],E=w.instance,H=w.currentTarget;if(w=w.listener,E!==f&&m.isPropagationStopped())break e;f=w,m.currentTarget=H;try{f(m)}catch(q){lc(q)}m.currentTarget=null,f=E}else for(j=0;j<o.length;j++){if(w=o[j],E=w.instance,H=w.currentTarget,w=w.listener,E!==f&&m.isPropagationStopped())break e;f=w,m.currentTarget=H;try{f(m)}catch(q){lc(q)}m.currentTarget=null,f=E}}}}function Ke(l,a){var i=a[Se];
vendor: 3,537 bytes, line 48
48i===void 0&&(i=a[Se]=new Set);var o=l+"__bubble";i.has(o)||(Fh(a,l,2,!1),i.add(o))}function eu(l,a,i){var o=0;a&&(o|=4),Fh(i,l,o,a)}var hc="_reactListening"+Math.random().toString(36).slice(2);function tu(l){if(!l[hc]){l[hc]=!0,We.forEach(function(i){i!=="selectionchange"&&(sy.has(i)||eu(i,!1,l),eu(i,!0,l))});var a=l.nodeType===9?l:l.ownerDocument;a===null||a[hc]||(a[hc]=!0,eu("selectionchange",!1,a))}}function Fh(l,a,i,o){switch(mg(a)){case 2:var m=Ry;break;case 8:m=Ay;break;default:m=fu}i=m.bind(null,a,i,l),m=void 0,!Nd||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),o?m!==void 0?l.addEventListener(a,i,{capture:!0,passive:m}):l.addEventListener(a,i,!0):m!==void 0?l.addEventListener(a,i,{passive:m}):l.addEventListener(a,i,!1)}function lu(l,a,i,o,m){var f=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var j=o.tag;if(j===3||j===4){var w=o.stateNode.containerInfo;if(w===m)break;if(j===4)for(j=o.return;j!==null;){var E=j.tag;if((E===3||E===4)&&j.stateNode.containerInfo===m)return;j=j.return}for(;w!==null;){if(j=Le(w),j===null)return;if(E=j.tag,E===5||E===6||E===26||E===27){o=f=j;continue e}w=w.parentNode}}o=o.return}Zm(function(){var H=f,q=yd(i),X=[];e:{var U=Np.get(l);if(U!==void 0){var P=To,Ae=l;switch(l){case"keypress":if(Co(i)===0)break e;case"keydown":case"keyup":P=Jv;break;case"focusin":Ae="focus",P=Sd;break;case"focusout":Ae="blur",P=Sd;break;case"beforeblur":case"afterblur":P=Sd;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=Jm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=Pv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=tb;break;case vp:case bp:case yp:P=Fv;break;case wp:P=ab;break;case"scroll":case"scrollend":P=Hv;break;case"wheel":P=nb;break;case"copy":case"cut":case"paste":P=Gv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=ep;break;case"toggle":case"beforetoggle":P=rb}var Ce=(a&4)!==0,ut=!Ce&&(l==="scroll"||l==="scrollend"),M=Ce?U!==null?U+"Capture":null:U;Ce=[];for(var A=H,O;A!==null;){var K=A;if(O=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||O===null||M===null||(K=tr(A,M),K!=null&&Ce.push(Or(A,K,O))),ut)break;A=A.return}0<Ce.length&&(U=new P(U,Ae,null,i,q),X.push({event:U,listeners:Ce}))}}if((a&7)===0){e:{if(U=l==="mouseover"||l==="pointerover",P=l==="mouseout"||l==="pointerout",U&&i!==bd&&(Ae=i.relatedTarget||i.fromElement)&&(Le(Ae)||Ae[he]))break e;if((P||U)&&(U=q.window===q?q:(U=q.ownerDocument)?U.defaultView||U.parentWindow:window,P?(Ae=i.relatedTarget||i.toElement,P=H,Ae=Ae?Le(Ae):null,Ae!==null&&(ut=u(Ae),Ce=Ae.tag,Ae!==ut||Ce!==5&&Ce!==27&&Ce!==6)&&(Ae=null)):(P=null,Ae=H),P!==Ae)){if(Ce=Jm,K="onMouseLeave",M="onMouseEnter",A="mouse",(l==="pointerout"||l==="pointerover")&&(Ce=ep,K="onPointerLeave",M="onPointerEnter",A="pointer"),ut=P==null?U:kt(P),O=Ae==null?U:kt(Ae),U=new Ce(K,A+"leave",P,i,q),U.target=ut,U.relatedTarget=O,K=null,Le(q)===H&&(Ce=new Ce(M,A+"enter",Ae,i,q),Ce.target=O,Ce.relatedTarget=ut,K=Ce),ut=K,P&&Ae)t:{for(Ce=P,M=Ae,A=0,O=Ce;O;O=Li(O))A++;for(O=0,K=M;K;K=Li(K))O++;for(;0<A-O;)Ce=Li(Ce),A--;for(;0<O-A;)M=Li(M),O--;for(;A--;){if(Ce===M||M!==null&&Ce===M.alternate)break t;Ce=Li(Ce),M=Li(M)}Ce=null}else Ce=null;P!==null&&Yh(X,U,P,Ce,!1),Ae!==null&&ut!==null&&Yh(X,ut,Ae,Ce,!0)}}
vendor: 5,204 bytes, lines 48-49
48e:{if(U=H?kt(H):window,P=U.nodeName&&U.nodeName.toLowerCase(),P==="select"||P==="input"&&U.type==="file")var pe=op;else if(ip(U))if(cp)pe=gb;else{pe=fb;var Ye=pb}else P=U.nodeName,!P||P.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?H&&vd(H.elementType)&&(pe=op):pe=hb;if(pe&&(pe=pe(l,H))){rp(X,pe,i,q);break e}Ye&&Ye(l,U,H),l==="focusout"&&H&&U.type==="number"&&H.memoizedProps.value!=null&&jd(U,"number",U.value)}switch(Ye=H?kt(H):window,l){case"focusin":(ip(Ye)||Ye.contentEditable==="true")&&(ci=Ye,Ld=H,cr=null);break;case"focusout":cr=Ld=ci=null;break;case"mousedown":Md=!0;break;case"contextmenu":case"mouseup":case"dragend":Md=!1,gp(X,i,q);break;case"selectionchange":if(vb)break;case"keydown":case"keyup":gp(X,i,q)}var we;if(zd)e:{switch(l){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else oi?sp(l,i)&&(Te="onCompositionEnd"):l==="keydown"&&i.keyCode===229&&(Te="onCompositionStart");Te&&(tp&&i.locale!=="ko"&&(oi||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&oi&&(we=Xm()):(Ds=q,kd="value"in Ds?Ds.value:Ds.textContent,oi=!0)),Ye=gc(H,Te),0<Ye.length&&(Te=new Wm(Te,l,null,i,q),X.push({event:Te,listeners:Ye}),we?Te.data=we:(we=np(i),we!==null&&(Te.data=we)))),(we=cb?db(l,i):xb(l,i))&&(Te=gc(H,"onBeforeInput"),0<Te.length&&(Ye=new Wm("onBeforeInput","beforeinput",null,i,q),X.push({event:Ye,listeners:Te}),Ye.data=we)),ty(X,l,H,i,q)}Ih(X,a)})}function Or(l,a,i){return{instance:l,listener:a,currentTarget:i}}function gc(l,a){for(var i=a+"Capture",o=[];l!==null;){var m=l,f=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||f===null||(m=tr(l,i),m!=null&&o.unshift(Or(l,m,f)),m=tr(l,a),m!=null&&o.push(Or(l,m,f))),l.tag===3)return o;l=l.return}return[]}function Li(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function Yh(l,a,i,o,m){for(var f=a._reactName,j=[];i!==null&&i!==o;){var w=i,E=w.alternate,H=w.stateNode;if(w=w.tag,E!==null&&E===o)break;w!==5&&w!==26&&w!==27||H===null||(E=H,m?(H=tr(i,f),H!=null&&j.unshift(Or(i,H,E))):m||(H=tr(i,f),H!=null&&j.push(Or(i,H,E)))),i=i.return}j.length!==0&&l.push({event:a,listeners:j})}var ny=/\r\n?/g,iy=/\u0000|\uFFFD/g;function Gh(l){return(typeof l=="string"?l:""+l).replace(ny,`
49`).replace(iy,"")}function qh(l,a){return a=Gh(a),Gh(l)===a}function jc(){}function xt(l,a,i,o,m,f){switch(i){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||ni(l,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&ni(l,""+o);break;case"className":ms(l,"class",o);break;case"tabIndex":ms(l,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ms(l,i,o);break;case"style":Vm(l,o,f);break;case"data":if(a!=="object"){ms(l,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||i!=="href")){l.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){l.removeAttribute(i);break}o=Eo(""+o),l.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){l.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(i==="formAction"?(a!=="input"&&xt(l,a,"name",m.name,m,null),xt(l,a,"formEncType",m.formEncType,m,null),xt(l,a,"formMethod",m.formMethod,m,null),xt(l,a,"formTarget",m.formTarget,m,null)):(xt(l,a,"encType",m.encType,m,null),xt(l,a,"method",m.method,m,null),xt(l,a,"target",m.target,m,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){l.removeAttribute(i);break}o=Eo(""+o),l.setAttribute(i,o);break;case"onClick":o!=null&&(l.onclick=jc);break;case"onScroll":o!=null&&Ke("scroll",l);break;case"onScrollEnd":o!=null&&Ke("scrollend",l);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(i=o.__html,i!=null){if(m.children!=null)throw Error(r(60));l.innerHTML=i}}break;case"multiple":l.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":l.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){l.removeAttribute("xlink:href");break}i=Eo(""+o),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?l.setAttribute(i,""+o):l.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?l.setAttribute(i,""):l.removeAttribute(i);break;case"capture":case"download":o===!0?l.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?l.setAttribute(i,o):l.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?l.setAttribute(i,o):l.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?l.removeAttribute(i):l.setAttribute(i,o);break;case"popover":Ke("beforetoggle",l),Ke("toggle",l),ja(l,"popover",o);break;case"xlinkActuate":Fe(l,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Fe(l,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Fe(l,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Fe(l,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Fe(l,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Fe(l,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Fe(l,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Fe(l,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Fe(l,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ja(l,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=$v.get(i)||i,ja(l,i,o))}}function au(l,a,i,o,m,f){switch(i){case"style":Vm(l,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(i=o.__html,i!=null){if(m.children!=null)throw Error(r(60));l.innerHTML=i}}break;case"children":typeof o=="string"?ni(l,o):(typeof o=="number"||typeof o=="bigint")&&ni(l,""+o);break;case"onScroll":o!=null&&Ke("scroll",l);break;case"onScrollEnd":o!=null&&Ke("scrollend",l);break;case"onClick":o!=null&&(l.onclick=jc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Rs.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(m=i.endsWith("Capture"),a=i.slice(2,m?i.length-7:void 0),f=l[se]||null,f=f!=null?f[i]:null,typeof f=="function"&&l.removeEventListener(a,f,m),typeof o=="function")){typeof f!="function"&&f!==null&&(i in l?l[i]=null:l.hasAttribute(i)&&l.removeAttribute(i)),l.addEventListener(a,o,m);break e}i in l?l[i]=o:o===!0?l.setAttribute(i,""):ja(l,i,o)}}}function Sl(l,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ke("error",l),Ke("load",l);var o=!1,m=!1,f;for(f in i)if(i.hasOwnProperty(f)){var j=i[f];if(j!=null)switch(f){case"src":o=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:xt(l,a,f,j,i,null)}}m&&xt(l,a,"srcSet",i.srcSet,i,null),o&&xt(l,a,"src",i.src,i,null);return;case"input":Ke("invalid",l);var w=f=j=m=null,E=null,H=null;for(o in i)if(i.hasOwnProperty(o)){var q=i[o];if(q!=null)switch(o){case"name":m=q;break;case"type":j=q;break;case"checked":E=q;break;case"defaultChecked":H=q;break;case"value":f=q;break;case"defaultValue":w=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,a));break;default:xt(l,a,o,q,i,null)}}Fm(l,f,w,E,H,j,m,!1),ko(l);return;case"select":Ke("invalid",l),o=j=f=null;for(m in i)if(i.hasOwnProperty(m)&&(w=i[m],w!=null))switch(m){case"value":f=w;break;case"defaultValue":j=w;break;case"multiple":o=w;default:xt(l,a,m,w,i,null)}a=f,i=j,l.multiple=!!o,a!=null?si(l,!!o,a,!1):i!=null&&si(l,!!o,i,!0);return;case"textarea":Ke("invalid",l),f=m=o=null;for(j in i)if(i.hasOwnProperty(j)&&(w=i[j],w!=null))switch(j){case"value":o=w;break;case"defaultValue":m=w;break;case"children":f=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(91));break;default:xt(l,a,j,w,i,null)}Gm(l,o,m,f),ko(l);return;case"option":for(E in i)if(i.hasOwnProperty(E)&&(o=i[E],o!=null))switch(E){case"selected":l.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:xt(l,a,E,o,i,null)}return;case"dialog":Ke("beforetoggle",l),Ke("toggle",l),Ke("cancel",l),Ke("close",l);break;case"iframe":case"object":Ke("load",l);break;case"video":case"audio":for(o=0;o<$r.length;o++)Ke($r[o],l);break;case"image":Ke("error",l),Ke("load",l);break;case"details":Ke("toggle",l);break;case"embed":case"source":case"link":Ke("error",l),Ke("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in i)if(i.hasOwnProperty(H)&&(o=i[H],o!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:xt(l,a,H,o,i,null)}return;default:if(vd(a)){for(q in i)i.hasOwnProperty(q)&&(o=i[q],o!==void 0&&au(l,a,q,o,i,void 0));return}}for(w in i)i.hasOwnProperty(w)&&(o=i[w],o!=null&&xt(l,a,w,o,i,null))}function ry(l,a,i,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,f=null,j=null,w=null,E=null,H=null,q=null;for(P in i){var X=i[P];if(i.hasOwnProperty(P)&&X!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":E=X;default:o.hasOwnProperty(P)||xt(l,a,P,null,o,X)}}for(var U in o){var P=o[U];if(X=i[U],o.hasOwnProperty(U)&&(P!=null||X!=null))switch(U){case"type":f=P;break;case"name":m=P;break;case"checked":H=P;break;case"defaultChecked":q=P;break;case"value":j=P;break;case"defaultValue":w=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(137,a));break;default:P!==X&&xt(l,a,U,P,o,X)}}gd(l,j,w,E,H,q,f,m);return;case"select":P=j=w=U=null;for(f in i)if(E=i[f],i.hasOwnProperty(f)&&E!=null)switch(f){case"value":break;case"multiple":P=E;default:o.hasOwnProperty(f)||xt(l,a,f,null,o,E)}for(m in o)if(f=o[m],E=i[m],o.hasOwnProperty(m)&&(f!=null||E!=null))switch(m){case"value":U=f;break;case"defaultValue":w=f;break;case"multiple":j=f;default:f!==E&&xt(l,a,m,f,o,E)}a=w,i=j,o=P,U!=null?si(l,!!i,U,!1):!!o!=!!i&&(a!=null?si(l,!!i,a,!0):si(l,!!i,i?[]:"",!1));return;case"textarea":P=U=null;for(w in i)if(m=i[w],i.hasOwnProperty(w)&&m!=null&&!o.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:xt(l,a,w,null,o,m)}for(j in o)if(m=o[j],f=i[j],o.hasOwnProperty(j)&&(m!=null||f!=null))switch(j){case"value":U=m;break;case"defaultValue":P=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:m!==f&&xt(l,a,j,m,o,f)}Ym(l,U,P);return;case"option":for(var Ae in i)if(U=i[Ae],i.hasOwnProperty(Ae)&&U!=null&&!o.hasOwnProperty(Ae))switch(Ae){case"selected":l.selected=!1;break;default:xt(l,a,Ae,null,o,U)}for(E in o)if(U=o[E],P=i[E],o.hasOwnProperty(E)&&U!==P&&(U!=null||P!=null))switch(E){case"selected":l.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:xt(l,a,E,U,o,P)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ce in i)U=i[Ce],i.hasOwnProperty(Ce)&&U!=null&&!o.hasOwnProperty(Ce)&&xt(l,a,Ce,null,o,U);for(H in o)if(U=o[H],P=i[H],o.hasOwnProperty(H)&&U!==P&&(U!=null||P!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,a));break;default:xt(l,a,H,U,o,P)}return;
vendor: 4,969 bytes, line 49
49default:if(vd(a)){for(var ut in i)U=i[ut],i.hasOwnProperty(ut)&&U!==void 0&&!o.hasOwnProperty(ut)&&au(l,a,ut,void 0,o,U);for(q in o)U=o[q],P=i[q],!o.hasOwnProperty(q)||U===P||U===void 0&&P===void 0||au(l,a,q,U,o,P);return}}for(var M in i)U=i[M],i.hasOwnProperty(M)&&U!=null&&!o.hasOwnProperty(M)&&xt(l,a,M,null,o,U);for(X in o)U=o[X],P=i[X],!o.hasOwnProperty(X)||U===P||U==null&&P==null||xt(l,a,X,U,o,P)}var su=null,nu=null;function vc(l){return l.nodeType===9?l:l.ownerDocument}function Vh(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kh(l,a){if(l===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&a==="foreignObject"?0:l}function iu(l,a){return l==="textarea"||l==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var ru=null;function oy(){var l=window.event;return l&&l.type==="popstate"?l===ru?!1:(ru=l,!0):(ru=null,!1)}var Zh=typeof setTimeout=="function"?setTimeout:void 0,cy=typeof clearTimeout=="function"?clearTimeout:void 0,Xh=typeof Promise=="function"?Promise:void 0,dy=typeof queueMicrotask=="function"?queueMicrotask:typeof Xh<"u"?function(l){return Xh.resolve(null).then(l).catch(xy)}:Zh;function xy(l){setTimeout(function(){throw l})}function Qs(l){return l==="head"}function Qh(l,a){var i=a,o=0,m=0;do{var f=i.nextSibling;if(l.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"){if(0<o&&8>o){i=o;var j=l.ownerDocument;if(i&1&&Hr(j.documentElement),i&2&&Hr(j.body),i&4)for(i=j.head,Hr(i),j=i.firstChild;j;){var w=j.nextSibling,E=j.nodeName;j[Re]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&j.rel.toLowerCase()==="stylesheet"||i.removeChild(j),j=w}}if(m===0){l.removeChild(f),qr(a);return}m--}else i==="$"||i==="$?"||i==="$!"?m++:o=i.charCodeAt(0)-48;else o=0;i=f}while(i);qr(a)}function ou(l){var a=l.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":ou(i),ye(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}l.removeChild(i)}}function uy(l,a,i,o){for(;l.nodeType===1;){var m=i;if(l.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(o){if(!l[Re])switch(a){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(f=l.getAttribute("rel"),f==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(f!==m.rel||l.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||l.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||l.getAttribute("title")!==(m.title==null?null:m.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(f=l.getAttribute("src"),(f!==(m.src==null?null:m.src)||l.getAttribute("type")!==(m.type==null?null:m.type)||l.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&f&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(a==="input"&&l.type==="hidden"){var f=m.name==null?null:""+m.name;if(m.type==="hidden"&&l.getAttribute("name")===f)return l}else return l;if(l=Xa(l.nextSibling),l===null)break}return null}function my(l,a,i){if(a==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!i||(l=Xa(l.nextSibling),l===null))return null;return l}function cu(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState==="complete"}function py(l,a){var i=l.ownerDocument;if(l.data!=="$?"||i.readyState==="complete")a();else{var o=function(){a(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),l._reactRetry=o}}function Xa(l){for(;l!=null;l=l.nextSibling){var a=l.nodeType;if(a===1||a===3)break;if(a===8){if(a=l.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return l}var du=null;function Jh(l){l=l.previousSibling;for(var a=0;l;){if(l.nodeType===8){var i=l.data;if(i==="$"||i==="$!"||i==="$?"){if(a===0)return l;a--}else i==="/$"&&a++}l=l.previousSibling}return null}function Wh(l,a,i){switch(a=vc(i),l){case"html":if(l=a.documentElement,!l)throw Error(r(452));return l;case"head":if(l=a.head,!l)throw Error(r(453));return l;case"body":if(l=a.body,!l)throw Error(r(454));return l;default:throw Error(r(451))}}function Hr(l){for(var a=l.attributes;a.length;)l.removeAttributeNode(a[0]);ye(l)}var Ea=new Map,eg=new Set;function bc(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var Ss=ne.d;ne.d={f:fy,r:hy,D:gy,C:jy,L:vy,m:by,X:wy,S:yy,M:Ny};function fy(){var l=Ss.f(),a=xc();return l||a}function hy(l){var a=lt(l);a!==null&&a.tag===5&&a.type==="form"?bf(a):Ss.r(l)}var Mi=typeof document>"u"?null:document;function tg(l,a,i){var o=Mi;
vendor: 9,035 bytes, line 49
49if(o&&typeof a=="string"&&a){var m=va(a);m='link[rel="'+l+'"][href="'+m+'"]',typeof i=="string"&&(m+='[crossorigin="'+i+'"]'),eg.has(m)||(eg.add(m),l={rel:l,crossOrigin:i,href:a},o.querySelector(m)===null&&(a=o.createElement("link"),Sl(a,"link",l),st(a),o.head.appendChild(a)))}}function gy(l){Ss.D(l),tg("dns-prefetch",l,null)}function jy(l,a){Ss.C(l,a),tg("preconnect",l,a)}function vy(l,a,i){Ss.L(l,a,i);var o=Mi;if(o&&l&&a){var m='link[rel="preload"][as="'+va(a)+'"]';a==="image"&&i&&i.imageSrcSet?(m+='[imagesrcset="'+va(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(m+='[imagesizes="'+va(i.imageSizes)+'"]')):m+='[href="'+va(l)+'"]';var f=m;switch(a){case"style":f=Di(l);break;case"script":f=$i(l)}Ea.has(f)||(l=h({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:l,as:a},i),Ea.set(f,l),o.querySelector(m)!==null||a==="style"&&o.querySelector(Ur(f))||a==="script"&&o.querySelector(Pr(f))||(a=o.createElement("link"),Sl(a,"link",l),st(a),o.head.appendChild(a)))}}function by(l,a){Ss.m(l,a);var i=Mi;if(i&&l){var o=a&&typeof a.as=="string"?a.as:"script",m='link[rel="modulepreload"][as="'+va(o)+'"][href="'+va(l)+'"]',f=m;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=$i(l)}if(!Ea.has(f)&&(l=h({rel:"modulepreload",href:l},a),Ea.set(f,l),i.querySelector(m)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Pr(f)))return}o=i.createElement("link"),Sl(o,"link",l),st(o),i.head.appendChild(o)}}}function yy(l,a,i){Ss.S(l,a,i);var o=Mi;if(o&&l){var m=Kt(o).hoistableStyles,f=Di(l);a=a||"default";var j=m.get(f);if(!j){var w={loading:0,preload:null};if(j=o.querySelector(Ur(f)))w.loading=5;else{l=h({rel:"stylesheet",href:l,"data-precedence":a},i),(i=Ea.get(f))&&xu(l,i);var E=j=o.createElement("link");st(E),Sl(E,"link",l),E._p=new Promise(function(H,q){E.onload=H,E.onerror=q}),E.addEventListener("load",function(){w.loading|=1}),E.addEventListener("error",function(){w.loading|=2}),w.loading|=4,yc(j,a,o)}j={type:"stylesheet",instance:j,count:1,state:w},m.set(f,j)}}}function wy(l,a){Ss.X(l,a);var i=Mi;if(i&&l){var o=Kt(i).hoistableScripts,m=$i(l),f=o.get(m);f||(f=i.querySelector(Pr(m)),f||(l=h({src:l,async:!0},a),(a=Ea.get(m))&&uu(l,a),f=i.createElement("script"),st(f),Sl(f,"link",l),i.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(m,f))}}function Ny(l,a){Ss.M(l,a);var i=Mi;if(i&&l){var o=Kt(i).hoistableScripts,m=$i(l),f=o.get(m);f||(f=i.querySelector(Pr(m)),f||(l=h({src:l,async:!0,type:"module"},a),(a=Ea.get(m))&&uu(l,a),f=i.createElement("script"),st(f),Sl(f,"link",l),i.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(m,f))}}function lg(l,a,i,o){var m=(m=Ee.current)?bc(m):null;if(!m)throw Error(r(446));switch(l){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=Di(i.href),i=Kt(m).hoistableStyles,o=i.get(a),o||(o={type:"style",instance:null,count:0,state:null},i.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){l=Di(i.href);var f=Kt(m).hoistableStyles,j=f.get(l);if(j||(m=m.ownerDocument||m,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(l,j),(f=m.querySelector(Ur(l)))&&!f._p&&(j.instance=f,j.state.loading=5),Ea.has(l)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Ea.set(l,i),f||ky(m,l,i,j.state))),a&&o===null)throw Error(r(528,""));return j}if(a&&o!==null)throw Error(r(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=$i(i),i=Kt(m).hoistableScripts,o=i.get(a),o||(o={type:"script",instance:null,count:0,state:null},i.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,l))}}function Di(l){return'href="'+va(l)+'"'}function Ur(l){return'link[rel="stylesheet"]['+l+"]"}function ag(l){return h({},l,{"data-precedence":l.precedence,precedence:null})}function ky(l,a,i,o){l.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=l.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Sl(a,"link",i),st(a),l.head.appendChild(a))}function $i(l){return'[src="'+va(l)+'"]'}function Pr(l){return"script[async]"+l}function sg(l,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var o=l.querySelector('style[data-href~="'+va(i.href)+'"]');if(o)return a.instance=o,st(o),o;var m=h({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(l.ownerDocument||l).createElement("style"),st(o),Sl(o,"style",m),yc(o,i.precedence,l),a.instance=o;case"stylesheet":m=Di(i.href);var f=l.querySelector(Ur(m));if(f)return a.state.loading|=4,a.instance=f,st(f),f;o=ag(i),(m=Ea.get(m))&&xu(o,m),f=(l.ownerDocument||l).createElement("link"),st(f);var j=f;return j._p=new Promise(function(w,E){j.onload=w,j.onerror=E}),Sl(f,"link",o),a.state.loading|=4,yc(f,i.precedence,l),a.instance=f;case"script":return f=$i(i.src),(m=l.querySelector(Pr(f)))?(a.instance=m,st(m),m):(o=i,(m=Ea.get(f))&&(o=h({},i),uu(o,m)),l=l.ownerDocument||l,m=l.createElement("script"),st(m),Sl(m,"link",o),l.head.appendChild(m),a.instance=m);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,yc(o,i.precedence,l));return a.instance}function yc(l,a,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=o.length?o[o.length-1]:null,f=m,j=0;j<o.length;j++){var w=o[j];if(w.dataset.precedence===a)f=w;else if(f!==m)break}f?f.parentNode.insertBefore(l,f.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(l,a.firstChild))}function xu(l,a){l.crossOrigin==null&&(l.crossOrigin=a.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=a.referrerPolicy),l.title==null&&(l.title=a.title)}function uu(l,a){l.crossOrigin==null&&(l.crossOrigin=a.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=a.referrerPolicy),l.integrity==null&&(l.integrity=a.integrity)}var wc=null;function ng(l,a,i){if(wc===null){var o=new Map,m=wc=new Map;m.set(i,o)}else m=wc,o=m.get(i),o||(o=new Map,m.set(i,o));if(o.has(l))return o;for(o.set(l,null),i=i.getElementsByTagName(l),m=0;m<i.length;m++){var f=i[m];if(!(f[Re]||f[J]||l==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var j=f.getAttribute(a)||"";j=l+j;var w=o.get(j);w?w.push(f):o.set(j,[f])}}return o}function ig(l,a,i){l=l.ownerDocument||l,l.head.insertBefore(i,a==="title"?l.querySelector("head > title"):null)}function _y(l,a,i){if(i===1||a.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return l=a.disabled,typeof a.precedence=="string"&&l==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function rg(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}var Br=null;function Ey(){}function Sy(l,a,i){if(Br===null)throw Error(r(475));var o=Br;if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var m=Di(i.href),f=l.querySelector(Ur(m));if(f){l=f._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(o.count++,o=Nc.bind(o),l.then(o,o)),a.state.loading|=4,a.instance=f,st(f);return}f=l.ownerDocument||l,i=ag(i),(m=Ea.get(m))&&xu(i,m),f=f.createElement("link"),st(f);var j=f;j._p=new Promise(function(w,E){j.onload=w,j.onerror=E}),Sl(f,"link",i),a.instance=f}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(a,l),(l=a.state.preload)&&(a.state.loading&3)===0&&(o.count++,a=Nc.bind(o),l.addEventListener("load",a),l.addEventListener("error",a))}}function Cy(){if(Br===null)throw Error(r(475));var l=Br;return l.stylesheets&&l.count===0&&mu(l,l.stylesheets),0<l.count?function(a){var i=setTimeout(function(){if(l.stylesheets&&mu(l,l.stylesheets),l.unsuspend){var o=l.unsuspend;l.unsuspend=null,o()}},6e4);return l.unsuspend=a,function(){l.unsuspend=null,clearTimeout(i)}}:null}function Nc(){if(this.count--,this.count===0){if(this.stylesheets)mu(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var kc=null;function mu(l,a){l.stylesheets=null,l.unsuspend!==null&&(l.count++,kc=new Map,a.forEach(zy,l),kc=null,Nc.call(l))}function zy(l,a){if(!(a.state.loading&4)){var i=kc.get(l);if(i)var o=i.get(null);
vendor: 8,729 bytes, line 49
49else{i=new Map,kc.set(l,i);for(var m=l.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<m.length;f++){var j=m[f];(j.nodeName==="LINK"||j.getAttribute("media")!=="not all")&&(i.set(j.dataset.precedence,j),o=j)}o&&i.set(null,o)}m=a.instance,j=m.getAttribute("data-precedence"),f=i.get(j)||o,f===o&&i.set(null,m),i.set(j,m),this.count++,o=Nc.bind(this),m.addEventListener("load",o),m.addEventListener("error",o),f?f.parentNode.insertBefore(m,f.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(m,l.firstChild)),a.state.loading|=4}}var Ir={$$typeof:Q,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function Ty(l,a,i,o,m,f,j,w){this.tag=1,this.containerInfo=l,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ai(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ai(0),this.hiddenUpdates=ai(null),this.identifierPrefix=o,this.onUncaughtError=m,this.onCaughtError=f,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function og(l,a,i,o,m,f,j,w,E,H,q,X){return l=new Ty(l,a,i,j,w,E,H,X),a=1,f===!0&&(a|=24),f=la(3,null,null,a),l.current=f,f.stateNode=l,a=Kd(),a.refCount++,l.pooledCache=a,a.refCount++,f.memoizedState={element:o,isDehydrated:i,cache:a},Jd(f),l}function cg(l){return l?(l=mi,l):mi}function dg(l,a,i,o,m,f){m=cg(m),o.context===null?o.context=m:o.pendingContext=m,o=Hs(a),o.payload={element:i},f=f===void 0?null:f,f!==null&&(o.callback=f),i=Us(l,o,a),i!==null&&(ra(i,l,a),jr(i,l,a))}function xg(l,a){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var i=l.retryLane;l.retryLane=i!==0&&i<a?i:a}}function pu(l,a){xg(l,a),(l=l.alternate)&&xg(l,a)}function ug(l){if(l.tag===13){var a=ui(l,67108864);a!==null&&ra(a,l,67108864),pu(l,67108864)}}var _c=!0;function Ry(l,a,i,o){var m=B.T;B.T=null;var f=ne.p;try{ne.p=2,fu(l,a,i,o)}finally{ne.p=f,B.T=m}}function Ay(l,a,i,o){var m=B.T;B.T=null;var f=ne.p;try{ne.p=8,fu(l,a,i,o)}finally{ne.p=f,B.T=m}}function fu(l,a,i,o){if(_c){var m=hu(o);if(m===null)lu(l,a,o,Ec,i),pg(l,o);else if(My(m,l,a,i,o))o.stopPropagation();else if(pg(l,o),a&4&&-1<Ly.indexOf(l)){for(;m!==null;){var f=lt(m);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var j=us(f.pendingLanes);if(j!==0){var w=f;for(w.pendingLanes|=2,w.entangledLanes|=2;j;){var E=1<<31-kl(j);w.entanglements[1]|=E,j&=~E}os(f),(rt&6)===0&&(cc=ea()+500,Dr(0))}}break;case 13:w=ui(f,2),w!==null&&ra(w,f,2),xc(),pu(f,2)}if(f=hu(o),f===null&&lu(l,a,o,Ec,i),f===m)break;m=f}m!==null&&o.stopPropagation()}else lu(l,a,o,null,i)}}function hu(l){return l=yd(l),gu(l)}var Ec=null;function gu(l){if(Ec=null,l=Le(l),l!==null){var a=u(l);if(a===null)l=null;else{var i=a.tag;if(i===13){if(l=d(a),l!==null)return l;l=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;l=null}else a!==l&&(l=null)}}return Ec=l,null}function mg(l){switch(l){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(fd()){case go:return 2;case jo:return 8;case ti:case xs:return 32;case Ts:return 268435456;default:return 32}default:return 32}}var ju=!1,Js=null,Ws=null,en=null,Fr=new Map,Yr=new Map,tn=[],Ly="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function pg(l,a){switch(l){case"focusin":case"focusout":Js=null;break;case"dragenter":case"dragleave":Ws=null;break;case"mouseover":case"mouseout":en=null;break;case"pointerover":case"pointerout":Fr.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yr.delete(a.pointerId)}}function Gr(l,a,i,o,m,f){return l===null||l.nativeEvent!==f?(l={blockedOn:a,domEventName:i,eventSystemFlags:o,nativeEvent:f,targetContainers:[m]},a!==null&&(a=lt(a),a!==null&&ug(a)),l):(l.eventSystemFlags|=o,a=l.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),l)}function My(l,a,i,o,m){switch(a){case"focusin":return Js=Gr(Js,l,a,i,o,m),!0;case"dragenter":return Ws=Gr(Ws,l,a,i,o,m),!0;case"mouseover":return en=Gr(en,l,a,i,o,m),!0;case"pointerover":var f=m.pointerId;return Fr.set(f,Gr(Fr.get(f)||null,l,a,i,o,m)),!0;case"gotpointercapture":return f=m.pointerId,Yr.set(f,Gr(Yr.get(f)||null,l,a,i,o,m)),!0}return!1}function fg(l){var a=Le(l.target);if(a!==null){var i=u(a);if(i!==null){if(a=i.tag,a===13){if(a=d(i),a!==null){l.blockedOn=a,D(l.priority,function(){if(i.tag===13){var o=ia();o=Qi(o);var m=ui(i,o);m!==null&&ra(m,i,o),pu(i,o)}});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){l.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Sc(l){if(l.blockedOn!==null)return!1;for(var a=l.targetContainers;0<a.length;){var i=hu(l.nativeEvent);if(i===null){i=l.nativeEvent;var o=new i.constructor(i.type,i);bd=o,i.target.dispatchEvent(o),bd=null}else return a=lt(i),a!==null&&ug(a),l.blockedOn=i,!1;a.shift()}return!0}function hg(l,a,i){Sc(l)&&i.delete(a)}function Dy(){ju=!1,Js!==null&&Sc(Js)&&(Js=null),Ws!==null&&Sc(Ws)&&(Ws=null),en!==null&&Sc(en)&&(en=null),Fr.forEach(hg),Yr.forEach(hg)}function Cc(l,a){l.blockedOn===a&&(l.blockedOn=null,ju||(ju=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Dy)))}var zc=null;function gg(l){zc!==l&&(zc=l,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){zc===l&&(zc=null);for(var a=0;a<l.length;a+=3){var i=l[a],o=l[a+1],m=l[a+2];if(typeof o!="function"){if(gu(o||i)===null)continue;break}var f=lt(i);f!==null&&(l.splice(a,3),a-=3,gx(f,{pending:!0,data:m,method:i.method,action:o},o,m))}}))}function qr(l){function a(E){return Cc(E,l)}Js!==null&&Cc(Js,l),Ws!==null&&Cc(Ws,l),en!==null&&Cc(en,l),Fr.forEach(a),Yr.forEach(a);for(var i=0;i<tn.length;i++){var o=tn[i];o.blockedOn===l&&(o.blockedOn=null)}for(;0<tn.length&&(i=tn[0],i.blockedOn===null);)fg(i),i.blockedOn===null&&tn.shift();if(i=(l.ownerDocument||l).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var m=i[o],f=i[o+1],j=m[se]||null;if(typeof f=="function")j||gg(i);else if(j){var w=null;if(f&&f.hasAttribute("formAction")){if(m=f,j=f[se]||null)w=j.formAction;else if(gu(m)!==null)continue}else w=j.action;typeof w=="function"?i[o+1]=w:(i.splice(o,3),o-=3),gg(i)}}}function vu(l){this._internalRoot=l}Tc.prototype.render=vu.prototype.render=function(l){var a=this._internalRoot;if(a===null)throw Error(r(409));var i=a.current,o=ia();dg(i,o,l,a,null,null)},Tc.prototype.unmount=vu.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var a=l.containerInfo;dg(l.current,2,null,l,null,null),xc(),a[he]=null}};function Tc(l){this._internalRoot=l}Tc.prototype.unstable_scheduleHydration=function(l){if(l){var a=R();l={blockedOn:null,target:l,priority:a};for(var i=0;i<tn.length&&a!==0&&a<tn[i].priority;i++);tn.splice(i,0,l),i===0&&fg(l)}};var jg=s.version;if(jg!=="19.1.0")throw Error(r(527,jg,"19.1.0"));ne.findDOMNode=function(l){var a=l._reactInternals;if(a===void 0)throw typeof l.render=="function"?Error(r(188)):(l=Object.keys(l).join(","),Error(r(268,l)));return l=x(a),l=l!==null?g(l):null,l=l===null?null:l.stateNode,l};var $y={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};
49if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rc.isDisabled&&Rc.supportsFiber)try{Ul=Rc.inject($y),Vt=Rc}catch{}}return Kr.createRoot=function(l,a){if(!c(l))throw Error(r(299));var i=!1,o="",m=Mf,f=Df,j=$f,w=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(j=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(w=a.unstable_transitionCallbacks)),a=og(l,1,!1,null,null,i,o,m,f,j,w,null),l[he]=a.current,tu(l),new vu(a)},Kr.hydrateRoot=function(l,a,i){if(!c(l))throw Error(r(299));var o=!1,m="",f=Mf,j=Df,w=$f,E=null,H=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(m=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(j=i.onCaughtError),i.onRecoverableError!==void 0&&(w=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(E=i.unstable_transitionCallbacks),i.formState!==void 0&&(H=i.formState)),a=og(l,1,!0,a,i??null,o,m,f,j,w,E,H),a.context=cg(null),i=a.current,o=ia(),o=Qi(o),m=Hs(o),m.callback=null,Us(i,m,o),i=o,a.current.lanes=i,fn(a,i),os(a),l[he]=a.current,tu(l),new Tc(a)},Kr.version="19.1.0",Kr}var Cg;function Vy(){if(Cg)return wu.exports;Cg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(s){console.error(s)}}return t(),wu.exports=qy(),wu.exports}var Ky=Vy(),Eu={exports:{}},Su={};/**
50 * @license React
51 * use-sync-external-store-with-selector.production.js
52 *
53 * Copyright (c) Meta Platforms, Inc. and affiliates.
54 *
55 * This source code is licensed under the MIT license found in the
56 * LICENSE file in the root directory of this source tree.
57 */var zg;function Zy(){if(zg)return Su;zg=1;var t=sd();function s(x,g){return x===g&&(x!==0||1/x===1/g)||x!==x&&g!==g}var n=typeof Object.is=="function"?Object.is:s,r=t.useSyncExternalStore,c=t.useRef,u=t.useEffect,d=t.useMemo,p=t.useDebugValue;return Su.useSyncExternalStoreWithSelector=function(x,g,h,v,N){var C=c(null);if(C.current===null){var S={hasValue:!1,value:null};C.current=S}else S=C.current;C=d(function(){function F(W){if(!T){if(T=!0,Y=W,W=v(W),N!==void 0&&S.hasValue){var $=S.value;if(N($,W))return Q=$}return Q=W}if($=Q,n(Y,W))return $;var ze=v(W);return N!==void 0&&N($,ze)?(Y=W,$):(Y=W,Q=ze)}var T=!1,Y,Q,le=h===void 0?null:h;return[function(){return F(g())},le===null?void 0:function(){return F(le())}]},[g,h,v,N]);var L=r(x,C[0],C[1]);return u(function(){S.hasValue=!0,S.value=L},[L]),p(L),L},Su}var Tg;function Xy(){return Tg||(Tg=1,Eu.exports=Zy()),Eu.exports}var Qy=Xy();function Jy(t){t()}function Wy(){let t=null,s=null;return{clear(){t=null,s=null},notify(){Jy(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=t;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const c=s={callback:n,next:null,prev:s};return c.prev?c.prev.next=c:t=c,function(){!r||t===null||(r=!1,c.next?c.next.prev=c.prev:s=c.prev,c.prev?c.prev.next=c.next:t=c.next)}}}}var Rg={notify(){},get:()=>[]};function ew(t,s){let n,r=Rg,c=0,u=!1;function d(L){h();const F=r.subscribe(L);let T=!1;return()=>{T||(T=!0,F(),v())}}function p(){r.notify()}function x(){S.onStateChange&&S.onStateChange()}function g(){return u}function h(){c++,n||(n=t.subscribe(x),r=Wy())}function v(){c--,n&&c===0&&(n(),n=void 0,r.clear(),r=Rg)}function N(){u||(u=!0,h())}function C(){u&&(u=!1,v())}const S={addNestedSub:d,notifyNestedSubs:p,handleChangeWrapper:x,isSubscribed:g,trySubscribe:N,tryUnsubscribe:C,getListeners:()=>r};return S}var tw=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lw=tw(),aw=()=>typeof navigator<"u"&&navigator.product==="ReactNative",sw=aw(),nw=()=>lw||sw?y.useLayoutEffect:y.useEffect,iw=nw(),Cu=Symbol.for("react-redux-context"),zu=typeof globalThis<"u"?globalThis:{};function rw(){if(!y.createContext)return{};const t=zu[Cu]??(zu[Cu]=new Map);let s=t.get(y.createContext);return s||(s=y.createContext(null),t.set(y.createContext,s)),s}var rn=rw();function ow(t){const{children:s,context:n,serverState:r,store:c}=t,u=y.useMemo(()=>{const x=ew(c);return{store:c,subscription:x,getServerState:r?()=>r:void 0}},[c,r]),d=y.useMemo(()=>c.getState(),[c]);iw(()=>{const{subscription:x}=u;return x.onStateChange=x.notifyNestedSubs,x.trySubscribe(),d!==c.getState()&&x.notifyNestedSubs(),()=>{x.tryUnsubscribe(),x.onStateChange=void 0}},[u,d]);const p=n||rn;return y.createElement(p.Provider,{value:u},s)}var cw=ow;function mm(t=rn){return function(){return y.useContext(t)}
57}var y1=mm();function w1(t=rn){const s=t===rn?y1:mm(t),n=()=>{const{store:r}=s();return r};return Object.assign(n,{withTypes:()=>n}),n}var dw=w1();function xw(t=rn){const s=t===rn?dw:w1(t),n=()=>s().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ie=xw(),uw=(t,s)=>t===s;function mw(t=rn){const s=t===rn?y1:mm(t),n=(r,c={})=>{const{equalityFn:u=uw}=typeof c=="function"?{equalityFn:c}:c,d=s(),{store:p,subscription:x,getServerState:g}=d;y.useRef(!0);const h=y.useCallback({[r.name](N){return r(N)}}[r.name],[r]),v=Qy.useSyncExternalStoreWithSelector(x.addNestedSub,p.getState,g||p.getState,h,u);return y.useDebugValue(v),v};return Object.assign(n,{withTypes:()=>n}),n}var b=mw(),Zr={},Ag;function pw(){if(Ag)return Zr;Ag=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.parse=d,Zr.serialize=g;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,s=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,c=Object.prototype.toString,u=(()=>{const N=function(){};return N.prototype=Object.create(null),N})();function d(N,C){const S=new u,L=N.length;if(L<2)return S;const F=(C==null?void 0:C.decode)||h;let T=0;do{const Y=N.indexOf("=",T);if(Y===-1)break;const Q=N.indexOf(";",T),le=Q===-1?L:Q;if(Y>le){T=N.lastIndexOf(";",Y-1)+1;continue}const W=p(N,T,Y),$=x(N,Y,W),ze=N.slice(W,$);if(S[ze]===void 0){let Ue=p(N,Y+1,le),ve=x(N,le,Ue);const ft=F(N.slice(Ue,ve));S[ze]=ft}T=le+1}while(T<L);return S}function p(N,C,S){do{const L=N.charCodeAt(C);if(L!==32&&L!==9)return C}while(++C<S);return S}function x(N,C,S){for(;C>S;){const L=N.charCodeAt(--C);if(L!==32&&L!==9)return C+1}return S}function g(N,C,S){const L=(S==null?void 0:S.encode)||encodeURIComponent;if(!t.test(N))throw new TypeError(`argument name is invalid: ${N}`);const F=L(C);if(!s.test(F))throw new TypeError(`argument val is invalid: ${C}`);let T=N+"="+F;if(!S)return T;if(S.maxAge!==void 0){if(!Number.isInteger(S.maxAge))throw new TypeError(`option maxAge is invalid: ${S.maxAge}`);T+="; Max-Age="+S.maxAge}if(S.domain){if(!n.test(S.domain))throw new TypeError(`option domain is invalid: ${S.domain}`);T+="; Domain="+S.domain}if(S.path){if(!r.test(S.path))throw new TypeError(`option path is invalid: ${S.path}`);T+="; Path="+S.path}if(S.expires){if(!v(S.expires)||!Number.isFinite(S.expires.valueOf()))throw new TypeError(`option expires is invali
57d: ${S.expires}`);T+="; Expires="+S.expires.toUTCString()}if(S.httpOnly&&(T+="; HttpOnly"),S.secure&&(T+="; Secure"),S.partitioned&&(T+="; Partitioned"),S.priority)switch(typeof S.priority=="string"?S.priority.toLowerCase():void 0){case"low":T+="; Priority=Low";break;case"medium":T+="; Priority=Medium";break;case"high":T+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${S.priority}`)}if(S.sameSite)switch(typeof S.sameSite=="string"?S.sameSite.toLowerCase():S.sameSite){case!0:case"strict":T+="; SameSite=Strict";break;case"lax":T+="; SameSite=Lax";break;case"none":T+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${S.sameSite}`)}return T}function h(N){if(N.indexOf("%")===-1)return N;try{return decodeURIComponent(N)}catch{return N}}function v(N){return c.call(N)==="[object Date]"}return Zr}pw();/**
58 * react-router v7.6.2
59 *
60 * Copyright (c) Remix Software Inc.
61 *
62 * This source code is licensed under the MIT license found in the
63 * LICENSE.md file in the root directory of this source tree.
64 *
65 * @license MIT
66 */var N1=t=>{throw TypeError(t)},fw=(t,s,n)=>s.has(t)||N1("Cannot "+n),Tu=(t,s,n)=>(fw(t,s,"read from private field"),n?n.call(t):s.get(t)),hw=(t,s,n)=>s.has(t)?N1("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,n),Lg="popstate";function gw(t={}){function s(r,c){let{pathname:u,search:d,hash:p}=r.location;return ro("",{pathname:u,search:d,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function n(r,c){return typeof c=="string"?c:on(c)}return vw(s,n,null,t)}function Ze(t,s){if(t===!1||t===null||typeof t>"u")throw new Error(s)}function ol(t,s){if(!t){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function jw(){return Math.random().toString(36).substring(2,10)}function Mg(t,s){return{usr:t.state,key:t.key,idx:s}}function ro(t,s,n=null,r){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof s=="string"?dn(s):s,state:n,key:s&&s.key||r||jw()}}function on({pathname:t="/",search:s="",hash:n=""}){return s&&s!=="?"&&(t+=s.charAt(0)==="?"?s:"?"+s),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function dn(t){let s={};if(t){let n=t.indexOf("#");n>=0&&(s.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(s.search=t.substring(r),t=t.substring(0,r)),t&&(s.pathname=t)}return s}function vw(t,s,n,r={}){let{window:c=document.defaultView,v5Compat:u=!1}=r,d=c.history,p="POP",x=null,g=h();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));function h(){return(d.state||{idx:null}).idx}function v(){p="POP";let F=h(),T=F==null?null:F-g;g=F,x&&x({action:p,location:L.location,delta:T})}function N(F,T){p="PUSH";let Y=ro(L.location,F,T);g=h()+1;let Q=Mg(Y,g),le=L.createHref(Y);try{d.pushState(Q,"",le)}catch(W){if(W instanceof DOMException&&W.name==="DataCloneError")throw W;c.location.assign(le)}u&&x&&x({action:p,location:L.location,delta:1})}function C(F,T){p="REPLACE";let Y=ro(L.location,F,T);g=h();let Q=Mg(Y,g),le=L.createHref(Y);d.replaceState(Q,"",le),u&&x&&x({action:p,location:L.location,delta:0})}function S(F){return k1(F)}let L={get action(){return p},get location(){return t(c,d)},listen(F){if(x)throw new Error("A history only accepts one active listener");return c.addEventListener(Lg,v),x=F,()=>{c.removeEventListener(Lg,v),x=null}},createHref(F){return s(c,F)},createURL:S,encodeLocation(F){let T=S(F);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:N,replace:C,go(F){return d.go(F)}};return L}function k1(t,s=!1){let n="http://localhost";
66typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ze(n,"No window.location.(origin|href) available to create URL");let r=typeof t=="string"?t:on(t);return r=r.replace(/ $/,"%20"),!s&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Wr,Dg=class{constructor(t){if(hw(this,Wr,new Map),t)for(let[s,n]of t)this.set(s,n)}get(t){if(Tu(this,Wr).has(t))return Tu(this,Wr).get(t);if(t.defaultValue!==void 0)return t.defaultValue;throw new Error("No value found for context")}set(t,s){Tu(this,Wr).set(t,s)}};Wr=new WeakMap;var bw=new Set(["lazy","caseSensitive","path","id","index","children"]);function yw(t){return bw.has(t)}var ww=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function Nw(t){return ww.has(t)}function kw(t){return t.index===!0}function Yc(t,s,n=[],r={}){return t.map((c,u)=>{let d=[...n,String(u)],p=typeof c.id=="string"?c.id:d.join("-");if(Ze(c.index!==!0||!c.children,"Cannot specify children on an index route"),Ze(!r[p],`Found a route id collision on i
66d "${p}".  Route id's must be globally unique within Data Router usages`),kw(c)){let x={...c,...s(c),id:p};return r[p]=x,x}else{let x={...c,...s(c),id:p,children:void 0};return r[p]=x,c.children&&(x.children=Yc(c.children,s,d,r)),x}})}function nn(t,s,n="/"){return Mc(t,s,n,!1)}function Mc(t,s,n,r){let c=typeof s=="string"?dn(s):s,u=Ta(c.pathname||"/",n);if(u==null)return null;let d=E1(t);_w(d);let p=null;for(let x=0;p==null&&x<d.length;++x){let g=$w(u);p=Mw(d[x],g,r)}return p}function _1(t,s){let{route:n,pathname:r,params:c}=t;return{id:n.id,pathname:r,params:c,data:s[n.id],handle:n.handle}}function E1(t,s=[],n=[],r=""){let c=(u,d,p)=>{let x={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};x.relativePath.startsWith("/")&&(Ze(x.relativePath.startsWith(r),`Absolute route path "${x.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(r.length));let g=cs([r,x.relativePath]),h=n.concat(x);u.children&&u.children.length>0&&(Ze(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),E1(u.children,s,h,g)),!(u.path==null&&!u.index)&&s.push({path:g,score:Aw(g,u.index),routesMeta:h})};return t.forEach((u,d)=>{var p;if(u.path===""||!((p=u.path)!=null&&p.includes("?")))c(u,d);else for(let x of S1(u.path))c(u,d,x)}),s}function S1(t){let s=t.split("/");if(s.length===0)return[];let[n,...r]=s,c=n.endsWith("?"),u=n.replace(/\?$/,"");if(r.length===0)return c?[u,""]:[u];let d=S1(r.join("/")),p=[];return p.push(...d.map(x=>x===""?u:[u,x].join("/"))),c&&p.push(...d),p.map(x=>t.startsWith("/")&&x===""?"/":x)}function _w(t){t.sort((s,n)=>s.score!==n.score?n.score-s.score:Lw(s.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Ew=/^:[\w-]+$/,Sw=3,Cw=2,zw=1,Tw=10,Rw=-2,$g=t=>t==="*";function Aw(t,s){let n=t.split("/"),r=n.length;return n.some($g)&&(r+=Rw),s&&(r+=Cw),n.filter(c=>!$g(c)).reduce((c,u)=>c+(Ew.test(u)?Sw:u===""?zw:Tw),r)}function Lw(t,s){return t.length===s.length&&t.slice(0,-1).every((r,c)=>r===s[c])?t[t.length-1]-s[s.length-1]:0}function Mw(t,s,n=!1){let{routesMeta:r}=t,c={},u="/",d=[];for(let p=0;p<r.length;++p){let x=r[p],g=p===r.length-1,h=u==="/"?s:s.slice(u.length)||"/",v=Gc({path:x.relativePath,caseSensitive:x.caseSensitive,end:g},h),N=x.route;if(!v&&g&&n&&!r[r.length-1].route.index&&(v=Gc({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},h)),!v)return null;
66Object.assign(c,v.params),d.push({params:c,pathname:cs([u,v.pathname]),pathnameBase:Uw(cs([u,v.pathnameBase])),route:N}),v.pathnameBase!=="/"&&(u=cs([u,v.pathnameBase]))}return d}function Gc(t,s){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=Dw(t.path,t.caseSensitive,t.end),c=s.match(n);if(!c)return null;let u=c[0],d=u.replace(/(.)\/+$/,"$1"),p=c.slice(1);return{params:r.reduce((g,{paramName:h,isOptional:v},N)=>{if(h==="*"){let S=p[N]||"";d=u.slice(0,u.length-S.length).replace(/(.)\/+$/,"$1")}const C=p[N];return v&&!C?g[h]=void 0:g[h]=(C||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:d,pattern:t}}function Dw(t,s=!1,n=!0){ol(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],c="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,x)=>(r.push({paramName:p,isOptional:x!=null}),x?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),c+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?c+="\\/*$":t!==""&&t!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,s?void 0:"i"),r]}function $w(t){try{return t.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return ol(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),t}}function Ta(t,s){if(s==="/")return t;if(!t.toLowerCase().startsWith(s.toLowerCase()))return null;let n=s.endsWith("/")?s.length-1:s.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function Ow(t,s="/"){let{pathname:n,search:r="",hash:c=""}=typeof t=="string"?dn(t):t;return{pathname:n?n.startsWith("/")?n:Hw(n,s):s,search:Pw(r),hash:Bw(c)}}function Hw(t,s){let n=s.replace(/\/+$/,"").split("/");return t.split("/").forEach(c=>{c===".."?n.length>1&&n.pop():c!=="."&&n.push(c)}),n.length>1?n.join("/"):"/"}function Ru(t,s,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${s}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function C1(t){return t.filter((s,n)=>n===0||s.route.path&&s.route.path.length>0)}function pm(t){let s=C1(t);return s.map((n,r)=>r===s.length-1?n.pathname:n.pathnameBase)}function fm(t,s,n,r=!1){let c;typeof t=="string"?c=dn(t):(c={...t},Ze(!c.pathname||!c.pathname.includes("?"),Ru("?","pathname","search",c)),Ze(!c.pathname||!c.pathname.includes("#"),Ru("#","pathname","hash",c)),Ze(!c.search||!c.search.includes("#"),Ru("#","search","hash",c)));let u=t===""||c.pathname==="",d=u?"/":c.pathname,p;if(d==null)p=n;else{let v=s.length-1;if(!r&&d.startsWith("..")){let N=d.split("/");for(;N[0]==="..";)N.shift(),v-=1;c.pathname=N.join("/")}p=v>=0?s[v]:"/"}let x=Ow(c,p),g=d&&d!=="/"&&d.endsWith("/"),h=(u||d===".")&&n.endsWith("/");return!x.pathname.endsWith("/")&&(g||h)&&(x.pathname+="/"),x}var cs=t=>t.join("/").replace(/\/\/+/g,"/"),Uw=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Pw=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Bw=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Og=(t,s=302)=>{let n=s;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let r=new Headers(n.headers);return r.set("Location",t),new Response(null,{...n,headers:r})},qc=class{constructor(t,s,n,r=!1){this.status=t,this.statusText=s||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function oo(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var z1=["POST","PUT","PATCH","DELETE"],Iw=new Set(z1),Fw=["GET",...z1],Yw=new Set(Fw),Gw=new Set([301,302,303,307,308]),qw=new Set([307,308]),Au={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Vw={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Xr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},hm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kw=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),T1="remix-router-transitions",R1=Symbol("ResetLoaderData");function Zw(t){const s=t.window?t.window:typeof window<"u"?window:void 0,n=typeof s<"u"&&typeof s.document<"u"&&typeof s.document.createElement<"u";Ze(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=t.hydrationRouteProperties||[],c=t.mapRouteProperties||Kw,u={},d=Yc(t.routes,c,void 0,u),p,x=t.basename||"/",g=t.dataStrategy||e2,h={unstable_middleware:!1,...t.future},v=null,N=new Set,C=null,S=null,L=null,F=t.hydrationData!=null,T=nn(d,t.history.location,x),Y=!1,Q=null,le;if(T==null&&!t.patchRoutesOnNavigation){let R=Sa(404,{pathname:t.history.location.pathname}),{matches:D,route:I}=Zg(d);le=!0,T=D,Q={[I.id]:R}}else if(T&&!t.hydrationData&&hn(T,d,t.history.location.pathname).active&&(T=null),T)if(T.some(R=>R.route.lazy))le=!1;else if(!T.some(R=>R.route.loader))le=!0;else{let R=t.hydrationData?t.hydrationData.loaderData:null,D=t.hydrationData?t.hydrationData.errors:null;if(D){let I=T.findIndex(J=>D[J.route.id]!==void 0);le=T.slice(0,I+1).every(J=>!qu(J.route,R,D))}else le=T.every(I=>!qu(I.route,R,D))}else{le=!1,T=[];let R=hn(null,d,t.history.location.pathname);R.active&&R.matches&&(Y=!0,T=R.matches)}let W,$={historyAction:t.history.action,location:t.history.location,matches:T,initialized:le,navigation:Au,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||Q,fetchers:new Map,blockers:new Map},ze="POP",Ue=!1,ve,ft=!1,qt=new Map,$t=null,Ml=!1,Je=!1,Ge=new Set,B=new Map,ne=0,fe=-1,He=new Map,z=new Set,Z=new Map,re=new Map,ae=new Set,je=new Map,qe,Ee=null;function Dl(){if(v=t.history.listen(({action:R,location:D,delta:I})=>{if(qe){qe(),qe=void 0;return}ol(je.size===0||I!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let J=yo({currentLocation:$.location,nextLocation:D,historyAction:R});if(J&&I!=null){let se=new Promise(he=>{qe=he});t.history.go(I*-1),as(J,{state:"blocked",location:D,proceed(){as(J,{state:"proceeding",proceed:void 0,reset:void 0,location:D}),se.then(()=>t.history.go(I))},reset(){let he=new Map($.blockers);he.set(J,Xr),xl({blockers:he})}});return}return Ya(R,D)}),n){x2(s,qt);let R=()=>u2(s,qt);s.addEventListener("pagehide",R),$t=()=>s.removeEventListener("pagehide",R)}return $.initialized||Ya("POP",$.location,{initialHydration:!0}),W}function gt(){v&&v(),$t&&$t(),N.clear(),ve&&ve.abort(),$.fetchers.forEac
66h((R,D)=>kl(D)),$.blockers.forEach((R,D)=>pn(D))}function ts(R){return N.add(R),()=>N.delete(R)}function xl(R,D={}){$={...$,...R};let I=[],J=[];$.fetchers.forEach((se,he)=>{se.state==="idle"&&(ae.has(he)?I.push(he):J.push(he))}),ae.forEach(se=>{!$.fetchers.has(se)&&!B.has(se)&&I.push(se)}),[...N].forEach(se=>se($,{deletedFetchers:I,viewTransitionOpts:D.viewTransitionOpts,flushSync:D.flushSync===!0})),I.forEach(se=>kl(se)),J.forEach(se=>$.fetchers.delete(se))}function Fa(R,D,{flushSync:I}={}){var ke,Re;let J=$.actionData!=null&&$.navigation.formMethod!=null&&ca($.navigation.formMethod)&&$.navigation.state==="loading"&&((ke=R.state)==null?void 0:ke._isRedirect)!==!0,se;D.actionData?Object.keys(D.actionData).length>0?se=D.actionData:se=null:J?se=$.actionData:se=null;let he=D.loaderData?Vg($.loaderData,D.loaderData,D.matches||[],D.errors):$.loaderData,Se=$.blockers;Se.size>0&&(Se=new Map(Se),Se.forEach((ye,Le)=>Se.set(Le,Xr)));let me=Ue===!0||$.navigation.formMethod!=null&&ca($.navigation.formMethod)&&((Re=R.state)==null?void 0:Re._isRedirect)!==!0;p&&(d=p,p=void 0),Ml||ze==="POP"||(ze==="PUSH"?t.history.push(R,R.state):ze==="REPLACE"&&t.history.replace(R,R.state));let Ne;if(ze==="POP"){let ye=qt.get($.location.pathname);ye&&ye.has(R.pathname)?Ne={currentLocation:$.location,nextLocation:R}:qt.has(R.pathname)&&(Ne={currentLocation:R,nextLocation:$.location})}else if(ft){let ye=qt.get($.location.pathname);ye?ye.add(R.pathname):(ye=new Set([R.pathname]),qt.set($.location.pathname,ye)),Ne={currentLocation:$.location,nextLocation:R}}xl({...D,actionData:se,loaderData:he,historyAction:ze,location:R,initialized:!0,navigation:Au,revalidation:"idle",restoreScrollPosition:No(R,D.matches||$.matches),preventScrollReset:me,blockers:Se},{viewTransitionOpts:Ne,flushSync:I===!0}),ze="POP",Ue=!1,ft=!1,Ml=!1,Je=!1,Ee==null||Ee.resolve(),Ee=null}async function ei(R,D){if(typeof R=="number"){t.history.go(R);return}let I=Gu($.location,$.matches,x,R,D==null?void 0:D.fromRouteId,D==null?void 0:D.relative),{path:J,submission:se,error:he}=Hg(!1,I,D),Se=$.location,me=ro($.location,J,D&&D.state);me={...me,...t.history.encodeLocation(me)};let Ne=D&&D.replace!=null?D.replace:void 0,ke="PUSH";Ne===!0?ke="REPLACE":Ne===!1||se!=null&&ca(se.formMethod)&&se.formAction===$.location.pathname+$.location.search&&(ke="REPLACE");let Re=D&&"preventScrollReset"in D?D.preventScrollReset===!0:void 0,ye=(D&&D.flushSync)===!0,Le=yo({currentLocation:Se,nextLocation:me,historyAction:ke});if(Le){as(Le,{state:"blocked",location:me,proceed(){as(Le,{state:"proceeding",proceed:void 0,reset:void 0,location:me}),ei(R,D)},reset(){let lt=new Map($.blockers);lt.set(Le,Xr),xl({blockers:lt})}});return}await Ya(ke,me,{submission:se,pendingError:he,preventScrollReset:Re,replace:D&&D.replace,enableViewTransition:D&&D.viewTransition,flushSync:ye})}function Zi(){Ee||(Ee=m2()),Xi(),xl({revalidation:"loading"});let R=Ee.promise;return $.navigation.state==="submitting"?R:$.navigation.state==="idle"?(Ya($.historyAction,$.location,{startUninterruptedRevalidation:!0}),R):(Ya(ze||$.historyAction,$.navigation.location,{overrideNavigation:$.navigation,enableViewTransition:ft===!0}),R)}async function Ya(R,D,I){ve&&ve.abort(),ve=null,ze=R,Ml=(I&&I.startUninterruptedRevalidation)===!0,fn($.location,$.matches),Ue=(I&&I.preventScrollReset)===!0,ft=(I&&I.enableViewTransition)===!0;let J=p||d,se=I&&I.overrideNavigation,he=I!=null&&I.initialHydration&&$.matches&&$.matches.length>0&&!Y?$.matches:nn(J,D,x),Se=(I&&I.flushSync)===!0;if(he&&$.initialized&&!Je&&i2($.location,D)&&!(I&&I.submission&&ca(I.submission.formMethod))){Fa(D,{matches:he},{flushSync:Se});return}let me=hn(he,J,D.pathname);if(me.active&&me.matches&&(he=me.matches),!he){let{error:Kt,notFoundMatches:st,route:We}=li(D.pathname);Fa(D,{matches:st,loaderData:{},errors:{[We.id]:Kt}},{flushSync:Se});return}ve=new AbortController;let Ne=Oi(t.history,D,ve.signal,I&&I.submission),ke=new Dg(t.unstable_getContext?await t.unstable_getContext():void 0),Re;if(I&&I.pendingError)Re=[$n(he).route.id,{type:"error",error:I.pendingError}];else if(I&&I.submission&&ca(I.submission.formMethod)){let Kt=await md(Ne,D,I.submission,he,ke,me.active,I&&I.initialHydration===!0,{replace:I.replace,flushSync:Se});if(Kt.shortCircuited)return;if(Kt.pendingActionResult){let[st,We]=Kt.pendingActionResult;if(oa(We)&&oo(We.error)&&We.error.status===404){ve=null,Fa(D,{matches:Kt.matches,loaderData:{},errors:{[st]:We.error}});return}}he=Kt.matches||he,Re=Kt.pendingActionResult,se=Lu(D,I.submission),Se=!1,me.active=!1,Ne=Oi(t.history,Ne.url,Ne.signal)}let{shortCircuited:ye,matches:Le,loaderData:lt,errors:kt}=await pd(Ne,D,he,ke,me.active,se,I&&I.submission,I&&I.fetcherSubmission,I&&I.replace,I&&I.initialHydration===!0,Se,Re);ye||(ve=null,Fa(D,{matches:Le||he,...Kg(Re),loaderData:lt,errors:kt}))}async function md(R,D,I,J,se,he,Se,me={}){Xi();let Ne=c2(D,I);if(xl({navigation:Ne},{flushSync:me.flushSync===!0}),he){let ye=await gn(J,D.pathname,R.signal);if(ye.type==="aborted")return{shortCircuited:!0};if(ye.type==="error"){let Le=$n(ye.partialMatches).route.id;return{matches:ye.partialMatches,pendingActionResult:[Le,{type:"error",error:ye.error}]}}else if(ye.matches)J=ye.matches;else{let{notFoundMatches:Le,error:lt,route:kt}=li(D.pathname);return{matches:Le,pendingActionResult:[kt.id,{type:"error",error:lt}]}}}let ke,Re=eo(J,D);if(!Re.route.action&&!Re.route.lazy)ke={type:"error",error:Sa(405,{method:R.method,pathname:D.pathname,routeId:Re.route.id})};else{let ye=Bi(c,u,R,J,Re,Se?[]:r,se),Le=await Ts(R,ye,se,null);if(ke=Le[Re.route.id],!ke){for(let lt of J)if(Le[lt.route.id]){ke=Le[lt.route.id];break}}if(R.signal.aborted)return{shortCircuited:!0}}if(On(ke)){let ye;return me&&me.replace!=null?ye=me.replace:ye=Yg(ke.response.headers.get("Location"),new URL(R.url),x)===$.location.pathname+$.location.search,await xs(R,ke,!0,{submission:I,replace:ye}),{shortCircuited:!0}}if(oa(ke)){let ye=$n(J,Re.route.id);return(me&&me.replace)!==!0&&(ze="PUSH"),{matches:J,pendingActionResult:[ye.route.id,ke,Re.route.id]}}return{matches:J,pendingActionResult:[Re.route.id,ke]}}async function pd(R,D,I,J,se,he,Se,me,Ne,ke,Re,ye){let Le=he||Lu(D,Se),lt=Se||me||Qg(Le),kt=!Ml&&!ke;if(se){if(kt){let zl=ea(ye);xl({navigation:Le,...zl!==void 0?{actionData:zl}:{}},{flushSync:Re})}let Fe=await gn(I,D.pathname,R.signal);if(Fe.type==="aborted")return{shortCircuited:!0};if(Fe.type==="error"){let zl=$n(Fe.partialMatches).route.id;return{matches:Fe.partialMatches,loaderData:{},errors:{[zl]:Fe.error}}}else if(Fe.matches)I=Fe.matches;else{let{error:zl,notFoundMatches:qa,route:Va}=li(D.pathname);return{matches:qa,loaderData:{},errors:{[Va.id]:zl}}}}let Kt=p||d,{dsMatches:st,revalidatingFetchers:We}=Ug(R,J,c,u,t.history,$,I,lt,D,ke?[]:r,ke===!0,Je,Ge,ae,Z,z,Kt,x,t.patchRoutesOnNavigation!=null,ye);if(fe=++ne,!t.dataStrategy&&!st.some(Fe=>Fe.shouldLoad)&&We.length===0){let Fe=un();return Fa(D,{matches:I,loaderData:{},errors:ye&&oa(ye[1])?{[ye[0]]:ye[1].error}:null,...Kg(ye),...Fe?{fetchers:new Map($.fetchers)}:{}},{flushSync:Re}),{shortCircuited:!0}}if(kt){let Fe={};if(!se){Fe.navigation=Le;let zl=ea(ye);zl!==void 0&&(Fe.actionData=zl)}We.length>0&&(Fe.fetchers=fd(We)),xl(Fe,{flushSync:Re})}We.forEach(Fe=>{ls(Fe.key),Fe.controller&&B.set(Fe.key,Fe.controller)});let Rs=()=>We.forEach(Fe=>ls(Fe.key));ve&&ve.signal.addEventListener("abort",Rs);let{loaderResults:$l,fetcherResults:ga}=await vo(st,We,R,J);if(R.signal.aborted)return{shortCircuited:!0};ve&&ve.signal.removeEventListener("abort",Rs),We.forEach(Fe=>B.delete(Fe.key));let Pl=Ac($l);
66if(Pl)return await xs(R,Pl.result,!0,{replace:Ne}),{shortCircuited:!0};if(Pl=Ac(ga),Pl)return z.add(Pl.key),await xs(R,Pl.result,!0,{replace:Ne}),{shortCircuited:!0};let{loaderData:As,errors:Ls}=qg($,I,$l,ye,We,ga);ke&&$.errors&&(Ls={...$.errors,...Ls});let Wi=un(),ja=mn(fe),ms=Wi||ja||We.length>0;return{matches:I,loaderData:As,errors:Ls,...ms?{fetchers:new Map($.fetchers)}:{}}}function ea(R){if(R&&!oa(R[1]))return{[R[0]]:R[1].data};if($.actionData)return Object.keys($.actionData).length===0?null:$.actionData}function fd(R){return R.forEach(D=>{let I=$.fetchers.get(D.key),J=Qr(void 0,I?I.data:void 0);$.fetchers.set(D.key,J)}),new Map($.fetchers)}async function go(R,D,I,J){ls(R);let se=(J&&J.flushSync)===!0,he=p||d,Se=Gu($.location,$.matches,x,I,D,J==null?void 0:J.relative),me=nn(he,Se,x),Ne=hn(me,he,Se);if(Ne.active&&Ne.matches&&(me=Ne.matches),!me){Vt(R,D,Sa(404,{pathname:Se}),{flushSync:se});return}let{path:ke,submission:Re,error:ye}=Hg(!0,Se,J);if(ye){Vt(R,D,ye,{flushSync:se});return}let Le=eo(me,ke),lt=new Dg(t.unstable_getContext?await t.unstable_getContext():void 0),kt=(J&&J.preventScrollReset)===!0;if(Re&&ca(Re.formMethod)){await jo(R,D,ke,Le,me,lt,Ne.active,se,kt,Re);return}Z.set(R,{routeId:D,path:ke}),await ti(R,D,ke,Le,me,lt,Ne.active,se,kt,Re)}async function jo(R,D,I,J,se,he,Se,me,Ne,ke){Xi(),Z.delete(R);function Re(Ot){if(!Ot.route.action&&!Ot.route.lazy){let Ms=Sa(405,{method:ke.formMethod,pathname:I,routeId:D});return Vt(R,D,Ms,{flushSync:me}),!0}return!1}if(!Se&&Re(J))return;let ye=$.fetchers.get(R);Ul(R,d2(ke,ye),{flushSync:me});let Le=new AbortController,lt=Oi(t.history,I,Le.signal,ke);if(Se){let Ot=await gn(se,I,lt.signal,R);if(Ot.type==="aborted")return;if(Ot.type==="error"){Vt(R,D,Ot.error,{flushSync:me});return}else if(Ot.matches){if(se=Ot.matches,J=eo(se,I),Re(J))return}else{Vt(R,D,Sa(404,{pathname:I}),{flushSync:me});return}}B.set(R,Le);let kt=ne,Kt=Bi(c,u,lt,se,J,r,he),We=(await Ts(lt,Kt,he,R))[J.route.id];if(lt.signal.aborted){B.get(R)===Le&&B.delete(R);return}if(ae.has(R)){if(On(We)||oa(We)){Ul(R,an(void 0));return}}else{if(On(We))if(B.delete(R),fe>kt){Ul(R,an(void 0));return}else return z.add(R),Ul(R,Qr(ke)),xs(lt,We,!1,{fetcherSubmission:ke,preventScrollReset:Ne});if(oa(We)){Vt(R,D,We.error);return}}let Rs=$.navigation.location||$.location,$l=Oi(t.history,Rs,Le.signal),ga=p||d,Pl=$.navigation.state!=="idle"?nn(ga,$.navigation.location,x):$.matches;Ze(Pl,"Didn't find any matches after fetcher action");let As=++ne;He.set(R,As);let Ls=Qr(ke,We.data);$.fetchers.set(R,Ls);let{dsMatches:Wi,revalidatingFetchers:ja}=Ug($l,he,c,u,t.history,$,Pl,ke,Rs,r,!1,Je,Ge,ae,Z,z,ga,x,t.patchRoutesOnNavigation!=null,[J.route.id,We]);ja.filter(Ot=>Ot.key!==R).forEach(Ot=>{let Ms=Ot.key,er=$.fetchers.get(Ms),Bl=Qr(void 0,er?er.data:void 0);$.fetchers.set(Ms,Bl),ls(Ms),Ot.controller&&B.set(Ms,Ot.controller)}),xl({fetchers:new Map($.fetchers)});let ms=()=>ja.forEach(Ot=>ls(Ot.key));Le.signal.addEventListener("abort",ms);let{loaderResults:Fe,fetcherResults:zl}=await vo(Wi,ja,$l,he);if(Le.signal.aborted)return;if(Le.signal.removeEventListener("abort",ms),He.delete(R),B.delete(R),ja.forEach(Ot=>B.delete(Ot.key)),$.fetchers.has(R)){let Ot=an(We.data);$.fetchers.set(R,Ot)}let qa=Ac(Fe);if(qa)return xs($l,qa.result,!1,{preventScrollReset:Ne});if(qa=Ac(zl),qa)return z.add(qa.key),xs($l,qa.result,!1,{preventScrollReset:Ne});let{loaderData:Va,errors:jn}=qg($,Pl,Fe,void 0,ja,zl);mn(As),$.navigation.state==="loading"&&As>fe?(Ze(ze,"Expected pending action"),ve&&ve.abort(),Fa($.navigation.location,{matches:Pl,loaderData:Va,errors:jn,fetchers:new Map($.fetchers)})):(xl({errors:jn,loaderData:Vg($.loaderData,Va,Pl,jn),fetchers:new Map($.fetchers)}),Je=!1)}async function ti(R,D,I,J,se,he,Se,me,Ne,ke){let Re=$.fetchers.get(R);Ul(R,Qr(ke,Re?Re.data:void 0),{flushSync:me});let ye=new AbortController,Le=Oi(t.history,I,ye.signal);if(Se){let We=await gn(se,I,Le.signal,R);if(We.type==="aborted")return;if(We.type==="error"){Vt(R,D,We.error,{flushSync:me});return}else if(We.matches)se=We.matches,J=eo(se,I);else{Vt(R,D,Sa(404,{pathname:I}),{flushSync:me});return}}B.set(R,ye);let lt=ne,kt=Bi(c,u,Le,se,J,r,he),st=(await Ts(Le,kt,he,R))[J.route.id];if(B.get(R)===ye&&B.delete(R),!Le.signal.aborted){if(ae.has(R)){Ul(R,an(void 0));return}if(On(st))if(fe>lt){Ul(R,an(void 0));return}else{z.add(R),await xs(Le,st,!1,{preventScrollReset:Ne});return}if(oa(st)){Vt(R,D,st.error);return}Ul(R,an(st.data))}}async function xs(R,D,I,{submission:J,fetcherSubmission:se,preventScrollReset:he,replace:Se}={}){D.response.headers.has("X-Remix-Revalidate")&&(Je=!0);let me=D.response.headers.get("Location");Ze(me,"Expected a Location header on the redirect Response"),me=Yg(me,new URL(R.url),x);let Ne=ro($.location,me,{_isRedirect:!0});if(n){let kt=!1;if(D.response.headers.has("X-Remix-Reload-Document"))kt=!0;else if(hm.test(me)){const Kt=k1(me,!0);kt=Kt.origin!==s.location.origin||Ta(Kt.pathname,x)==null}if(kt){Se?s.location.replace(me):s.location.assign(me);return}}ve=null;let ke=Se===!0||D.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Re,formAction:ye,formEncType:Le}=$.navigation;!J&&!se&&Re&&ye&&Le&&(J=Qg($.navigation));let lt=J||se;if(qw.has(D.response.status)&&lt&&ca(lt.formMethod))await Ya(ke,Ne,{submission:{...lt,formAction:me},preventScrollReset:he||Ue,enableViewTransition:I?ft:void 0});else{let kt=Lu(Ne,J);await Ya(ke,Ne,{overrideNavigation:kt,fetcherSubmission:se,preventScrollReset:he||Ue,enableViewTransition:I?ft:void 0})}}async function Ts(R,D,I,J){let se,he={};try{se=await t2(g,R,D,J,I,!1)}catch(Se){return D.filter(me=>
66me.shouldLoad).forEach(me=>{he[me.route.id]={type:"error",error:Se}}),he}if(R.signal.aborted)return he;for(let[Se,me]of Object.entries(se))if(r2(me)){let Ne=me.result;he[Se]={type:"redirect",response:s2(Ne,R,Se,D,x)}}else he[Se]=await a2(me);return he}async function vo(R,D,I,J){let se=Ts(I,R,J,null),he=Promise.all(D.map(async Ne=>{if(Ne.matches&&Ne.match&&Ne.request&&Ne.controller){let Re=(await Ts(Ne.request,Ne.matches,J,Ne.key))[Ne.match.route.id];return{[Ne.key]:Re}}else return Promise.resolve({[Ne.key]:{type:"error",error:Sa(404,{pathname:Ne.path})}})})),Se=await se,me=(await he).reduce((Ne,ke)=>Object.assign(Ne,ke),{});return{loaderResults:Se,fetcherResults:me}}function Xi(){Je=!0,Z.forEach((R,D)=>{B.has(D)&&Ge.add(D),ls(D)})}function Ul(R,D,I={}){$.fetchers.set(R,D),xl({fetchers:new Map($.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function Vt(R,D,I,J={}){let se=$n($.matches,D);kl(R),xl({errors:{[se.route.id]:I},fetchers:new Map($.fetchers)},{flushSync:(J&&J.flushSync)===!0})}function Ga(R){return re.set(R,(re.get(R)||0)+1),ae.has(R)&&ae.delete(R),$.fetchers.get(R)||Vw}function kl(R){let D=$.fetchers.get(R);B.has(R)&&!(D&&D.state==="loading"&&He.has(R))&&ls(R),Z.delete(R),He.delete(R),z.delete(R),ae.delete(R),Ge.delete(R),$.fetchers.delete(R)}function hd(R){let D=(re.get(R)||0)-1;D<=0?(re.delete(R),ae.add(R)):re.set(R,D),xl({fetchers:new Map($.fetchers)})}function ls(R){let D=B.get(R);D&&(D.abort(),B.delete(R))}function bo(R){for(let D of R){let I=Ga(D),J=an(I.data);$.fetchers.set(D,J)}}function un(){let R=[],D=!1;for(let I of z){let J=$.fetchers.get(I);Ze(J,`Expected fetcher: ${I}`),J.state==="loading"&&(z.delete(I),R.push(I),D=!0)}return bo(R),D}function mn(R){let D=[];for(let[I,J]of He)if(J<R){let se=$.fetchers.get(I);Ze(se,`Expected fetcher: ${I}`),se.state==="loading"&&(ls(I),He.delete(I),D.push(I))}return bo(D),D.length>0}function us(R,D){let I=$.blockers.get(R)||Xr;return je.get(R)!==D&&je.set(R,D),I}function pn(R){$.blockers.delete(R),je.delete(R)}function as(R,D){let I=$.blockers.get(R)||Xr;Ze(I.state==="unblocked"&&D.state==="blocked"||I.state==="blocked"&&D.state==="blocked"||I.state==="blocked"&&D.state==="proceeding"||I.state==="blocked"&&D.state==="unblocked"||I.state==="proceeding"&&D.state==="unblocked",`Invalid blocker state transition: ${I.state} -> ${D.state}`);let J=new Map($.blockers);J.set(R,D),xl({blockers:J})}function yo({currentLocation:R,nextLocation:D,historyAction:I}){if(je.size===0)return;je.size>1&&ol(!1,"A router only supports one blocker at a time");let J=Array.from(je.entries()),[se,he]=J[J.length-1],Se=$.blockers.get(se);if(!(Se&&Se.state==="proceeding")&&he({currentLocation:R,nextLocation:D,historyAction:I}))return se}function li(R){let D=Sa(404,{pathname:R}),I=p||d,{matches:J,route:se}=Zg(I);return{notFoundMatches:J,route:se,error:D}}function wo(R,D,I){if(C=R,L=D,S=I||null,!F&&$.navigation===Au){F=!0;let J=No($.location,$.matches);J!=null&&xl({restoreScrollPosition:J})}return()=>{C=null,L=null,S=null}}function ai(R,D){return S&&S(R,D.map(J=>_1(J,$.loaderData)))||R.key}function fn(R,D){if(C&&L){let I=ai(R,D);C[I]=L()}}function No(R,D){if(C){let I=ai(R,D),J=C[I];if(typeof J=="number")return J}return null}function hn(R,D,I){if(t.patchRoutesOnNavigation)if(R){if(Object.keys(R[0].params).length>0)return{active:!0,matches:Mc(D,I,x,!0)}}else return{active:!0,matches:Mc(D,I,x,!0)||[]};return{active:!1,matches:null}}async function gn(R,D,I,J){if(!t.patchRoutesOnNavigation)return{type:"success",matches:R};let se=R;for(;;){let he=p==null,Se=p||d,me=u;try{await t.patchRoutesOnNavigation({signal:I,path:D,matches:se,fetcherKey:J,patch:(Re,ye)=>{I.aborted||Pg(Re,ye,Se,me,c)}})}catch(Re){return{type:"error",error:Re,partialMatches:se}}finally{he&&!I.aborted&&(d=[...d])}if(I.aborted)return{type:"aborted"};let Ne=nn(Se,D,x);if(Ne)return{type:"success",matches:Ne};let ke=Mc(Se,D,x,!0);if(!ke||se.length===ke.length&&se.every((Re,ye)=>Re.route.id===ke[ye].route.id))return{type:"success",matches:null};se=ke}}function Qi(R){u={},p=Yc(R,c,void 0,u)}function Ji(R,D){let I=p==null;Pg(R,D,p||d,u,c),I&&(d=[...d],xl({}))}return W={get basename(){return x},get future(){return h},get state(){return $},get routes(){return d},get window(){return s},initialize:Dl,subscribe:ts,enableScrollRestoration:wo,navigate:ei,fetch:go,revalidate:Zi,createHref:R=>t.history.createHref(R),encodeLocation:R=>t.history.encodeLocation(R),getFetcher:Ga,deleteFetcher:hd,dispose:gt,getBlocker:us,deleteBlocker:pn,patchRoutes:Ji,_internalFetchControllers:B,_internalSetRoutes:Qi},W}function Xw(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function Gu(t,s,n,r,c,u){let d,p;
66if(c){d=[];for(let g of s)if(d.push(g),g.route.id===c){p=g;break}}else d=s,p=s[s.length-1];let x=fm(r||".",pm(d),Ta(t.pathname,n)||t.pathname,u==="path");if(r==null&&(x.search=t.search,x.hash=t.hash),(r==null||r===""||r===".")&&p){let g=gm(x.search);if(p.route.index&&!g)x.search=x.search?x.search.replace(/^\?/,"?index&"):"?index";else if(!p.route.index&&g){let h=new URLSearchParams(x.search),v=h.getAll("index");h.delete("index"),v.filter(C=>C).forEach(C=>h.append("index",C));let N=h.toString();x.search=N?`?${N}`:""}}return n!=="/"&&(x.pathname=x.pathname==="/"?n:cs([n,x.pathname])),on(x)}function Hg(t,s,n){if(!n||!Xw(n))return{path:s};if(n.formMethod&&!o2(n.formMethod))return{path:s,error:Sa(405,{method:n.formMethod})};let r=()=>({path:s,error:Sa(400,{type:"invalid-body"})}),u=(n.formMethod||"get").toUpperCase(),d=O1(s);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!ca(u))return r();let v=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((N,[C,S])=>`${N}${C}=${S}
67`,""):String(n.body);return{path:s,submission:{formMethod:u,formAction:d,formEncType:n.formEncType,formData:void 0,json:void 0,text:v}}}else if(n.formEncType==="application/json"){if(!ca(u))return r();try{let v=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:s,submission:{formMethod:u,formAction:d,formEncType:n.formEncType,formData:void 0,json:v,text:void 0}}}catch{return r()}}}Ze(typeof FormData=="function","FormData is not available in this environment");let p,x;if(n.formData)p=Ku(n.formData),x=n.formData;else if(n.body instanceof FormData)p=Ku(n.body),x=n.body;else if(n.body instanceof URLSearchParams)p=n.body,x=Gg(p);else if(n.body==null)p=new URLSearchParams,x=new FormData;else try{p=new URLSearchParams(n.body),x=Gg(p)}catch{return r()}let g={formMethod:u,formAction:d,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:x,json:void 0,text:void 0};if(ca(g.formMethod))return{path:s,submission:g};let h=dn(s);return t&&h.search&&gm(h.search)&&p.append("index",""),h.search=`?${p}`,{path:on(h),submission:g}}function Ug(t,s,n,r,c,u,d,p,x,g,h,v,N,C,S,L,F,T,Y,Q){var Ml;let le=Q?oa(Q[1])?Q[1].error:Q[1].data:void 0,W=c.createURL(u.location),$=c.createURL(x),ze;if(h&&u.errors){let Je=Object.keys(u.errors)[0];ze=d.findIndex(Ge=>Ge.route.id===Je)}else if(Q&&oa(Q[1])){let Je=Q[0];ze=d.findIndex(Ge=>Ge.route.id===Je)-1}let Ue=Q?Q[1].statusCode:void 0,ve=Ue&&Ue>=400,ft={currentUrl:W,currentParams:((Ml=u.matches[0])==null?void 0:Ml.params)||{},nextUrl:$,nextParams:d[0].params,...p,actionResult:le,actionStatus:Ue},qt=d.map((Je,Ge)=>{let{route:B}=Je,ne=null;if(ze!=null&&Ge>ze?ne=!1:B.lazy?ne=!0:B.loader==null?ne=!1:h?ne=qu(B,u.loaderData,u.errors):Qw(u.loaderData,u.matches[Ge],Je)&&(ne=!0),ne!==null)return Vu(n,r,t,Je,g,s,ne);let fe=ve?!1:v||W.pathname+W.search===$.pathname+$.search||W.search!==$.search||Jw(u.matches[Ge],Je),He={...ft,defaultShouldRevalidate:fe},z=Vc(Je,He);return Vu(n,r,t,Je,g,s,z,He)}),$t=[];return S.forEach((Je,Ge)=>{if(h||!d.some(ae=>ae.route.id===Je.routeId)||C.has(Ge))return;let B=u.fetchers.get(Ge),ne=B&&B.state!=="idle"&&B.data===void 0,fe=nn(F,Je.path,T);if(!fe){if(Y&&ne)return;$t.push({key:Ge,routeId:Je.routeId,path:Je.path,matches:null,match:null,request:null,controller:null});return}if(L.has(Ge))return;let He=eo(fe,Je.path),z=new AbortController,Z=Oi(c,Je.path,z.signal),re=null;if(N.has(Ge))N.delete(Ge),re=Bi(n,r,Z,fe,He,g,s);else if(ne)v&&(re=Bi(n,r,Z,fe,He,g,s));else{let ae={...ft,defaultShouldRevalidate:ve?!1:v};Vc(He,ae)&&(re=Bi(n,r,Z,fe,He,g,s,ae))}re&&$t.push({key:Ge,routeId:Je.routeId,path:Je.path,matches:re,match:He,request:Z,controller:z})}),{dsMatches:qt,revalidatingFetchers:$t}}function qu(t,s,n){if(t.lazy)return!0;if(!t.loader)return!1;let r=s!=null&&t.id in s,c=n!=null&&n[t.id]!==void 0;return!r&&c?!1:typeof t.loader=="function"&&t.loader.hydrate===!0?!0:!r&&!c}function Qw(t,s,n){let r=!s||n.route.id!==s.route.id,c=!t.hasOwnProperty(n.route.id);return r||c}function Jw(t,s){let n=t.route.path;return t.pathname!==s.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==s.params["*"]}function Vc(t,s){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(s);if(typeof n=="boolean")return n}return s.defaultShouldRevalidate}function Pg(t,s,n,r,c){let u;if(t){let x=r[t];Ze(x,`No route found to patch children into: routeId = ${t}`),x.children||(x.children=[]),u=x.children}else u=n;let d=s.filter(x=>!u.some(g=>A1(x,g))),p=Yc(d,c,[t||"_","patch",String((u==null?void 0:u.length)||"0")],r);u.push(...p)}function A1(t,s){return"id"in t&&"id"in s&&t.id===s.id?!0:t.index===s.index&&t.path===s.path&&t.caseSensitive===s.caseSensitive?(!t.children||t.children.length===0)&&(!s.children||s.children.length===0)?!0:t.children.every((n,r)=>{var c;return(c=s.children)==null?void 0:c.some(u=>A1(n,u))}):!1}var Bg=new WeakMap,L1=({key:t,route:s,manifest:n,mapRouteProperties:r})=>{let c=n[s.id];if(Ze(c,"No route found in manifest"),!c.lazy||typeof c.lazy!="object")return;let u=c.lazy[t];if(!u)return;let d=Bg.get(c);d||(d={},Bg.set(c,d));let p=d[t];if(p)return p;let x=(async()=>{let g=yw(t),v=c[t]!==void 0&&t!=="hasErrorBoundary";if(g)ol(!g,"Route property "+t+" is not a supported lazy route property. This property will be ignored."),d[t]=Promise.resolve();else if(v)ol(!1,`Route "${c.id}" has a static property "${t}" defined. The lazy property will be ignored.`);else{let N=await u();N!=null&&(Object.assign(c,{[t]:N}),Object.assign(c,r(c)))}typeof c.lazy=="object"&&(c.lazy[t]=void 0,Object.values(c.lazy).every(N=>N===void 0)&&(c.lazy=void 0))})();return d[t]=x,x},Ig=new WeakMap;function Ww(t,s,n,r,c){let u=n[t.id];if(Ze(u,"No route found in manifest"),!t.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof t.lazy=="function"){let h=Ig.get(u);if(h)return{lazyRoutePromise:h,lazyHandlerPromise:h};let v=(async()=>{Ze(typeof t.lazy=="function","No lazy route function found");let N=await t.lazy(),C={};for(let S in N){let L=N[S];if(L===void 0)continue;let F=Nw(S),Y=u[S]!==void 0&&S!=="hasErrorBoundary";F?ol(!F,"Route property "+S+" is not a supported property to be returned from a lazy route function. This property will be ignored."):Y?ol(!Y,`Route "${u.id}" has a static property "${S}" defined but its lazy function is also returning a value for this property. The lazy route property "${S}" will be ignored.`):C[S]=L}Object.assign(u,C),Object.assign(u,{...r(u),lazy:void 0})})();return Ig.set(u,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let d=Object.keys(t.lazy),p=[],x;for(let h of d){if(c&&c.includes(h))continue;let v=L1({key:h,route:t,manifest:n,mapRouteProperties:r});v&&(p.push(v),h===s&&(x=v))}let g=p.length>0?Promise.all(p).then(()=>{}):void 0;return g==null||g.catch(()=>{}),x==null||x.catch(()=>{}),{lazyRoutePromise:g,lazyHandlerPromise:x}}async function Fg(t){let s=t.matches.filter(c=>c.shouldLoad),n={};return(await Promise.all(s.map(c=>
67c.resolve()))).forEach((c,u)=>{n[s[u].route.id]=c}),n}async function e2(t){return t.matches.some(s=>s.route.unstable_middleware)?M1(t,!1,()=>Fg(t),(s,n)=>({[n]:{type:"error",result:s}})):Fg(t)}async function M1(t,s,n,r){let{matches:c,request:u,params:d,context:p}=t,x={handlerResult:void 0};try{let g=c.flatMap(v=>v.route.unstable_middleware?v.route.unstable_middleware.map(N=>[v.route.id,N]):[]),h=await D1({request:u,params:d,context:p},g,s,x,n);return s?h:x.handlerResult}catch(g){if(!x.middlewareError)throw g;let h=await r(x.middlewareError.error,x.middlewareError.routeId);return x.handlerResult?Object.assign(x.handlerResult,h):h}}async function D1(t,s,n,r,c,u=0){let{request:d}=t;if(d.signal.aborted)throw d.signal.reason?d.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${d.method} ${d.url}`);let p=s[u];if(!p)return r.handlerResult=await c(),r.handlerResult;let[x,g]=p,h=!1,v,N=async()=>{if(h)throw new Error("You may only call `next()` once per middleware");h=!0,await D1(t,s,n,r,c,u+1)};try{let C=await g({request:t.request,params:t.params,context:t.context},N);return h?C===void 0?v:C:N()}catch(C){throw r.middlewareError?r.middlewareError.error!==C&&(r.middlewareError={routeId:x,error:C}):r.middlewareError={routeId:x,error:C},C}}function $1(t,s,n,r,c){let u=L1({key:"unstable_middleware",route:r.route,manifest:s,mapRouteProperties:t}),d=Ww(r.route,ca(n.method)?"action":"loader",s,t,c);return{middleware:u,route:d.lazyRoutePromise,handler:d.lazyHandlerPromise}}function Vu(t,s,n,r,c,u,d,p=null){let x=!1,g=$1(t,s,n,r,c);return{...r,_lazyPromises:g,shouldLoad:d,unstable_shouldRevalidateArgs:p,unstable_shouldCallHandler(h){return x=!0,p?typeof h=="boolean"?Vc(r,{...p,defaultShouldRevalidate:h}):Vc(r,p):d},resolve(h){return x||d||h&&n.method==="GET"&&(r.route.lazy||r.route.loader)?l2({request:n,match:r,lazyHandlerPromise:g==null?void 0:g.handler,lazyRoutePromise:g==null?void 0:g.route,handlerOverride:h,scopedContext:u}):Promise.resolve({type:"data",result:void 0})}}}function Bi(t,s,n,r,c,u,d,p=null){return r.map(x=>x.route.id!==c.route.id?{...x,shouldLoad:!1,unstable_shouldRevalidateArgs:p,unstable_shouldCallHandler:()=>!1,_lazyPromises:$1(t,s,n,x,u),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Vu(t,s,n,x,u,d,!0,p))}async function t2(t,s,n,r,c,u){n.some(g=>{var h;return(h=g._lazyPromises)==null?void 0:h.middleware})&&await Promise.all(n.map(g=>{var h;return(h=g._lazyPromises)==null?void 0:h.middleware}));let d={request:s,params:n[0].params,context:c,matches:n},x=await t({...d,fetcherKey:r,unstable_runClientMiddleware:g=>{let h=d;return M1(h,!1,()=>g({...h,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(v,N)=>({[N]:{type:"error",result:v}}))}});try{await Promise.all(n.flatMap(g=>{var h,v;return[(h=g._lazyPromises)==null?void 0:h.handler,(v=g._lazyPromises)==null?void 0:v.route]}))}catch{}return x}async function l2({request:t,match:s,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:c,scopedContext:u}){let d,p,x=ca(t.method),g=x?"action":"loader",h=v=>{let N,C=new Promise((F,T)=>N=T);p=()=>N(),t.signal.addEventListener("abort",p);let S=F=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${g}" [routeId: ${s.route.id}]`)):v({request:t,params:s.params,context:u},...F!==void 0?[F]:[]),L=(async()=>{try{return{type:"data",result:await(c?c(T=>S(T)):S())}}catch(F){return{type:"error",result:F}}})();return Promise.race([L,C])};try{let v=x?s.route.action:s.route.loader;if(n||r)if(v){let N,[C]=await Promise.all([h(v).catch(S=>{N=S}),n,r]);if(N!==void 0)throw N;d=C}else{await n;let N=x?s.route.action:s.route.loader;if(N)[d]=await Promise.all([h(N),r]);else if(g==="action"){let C=new URL(t.url),S=C.pathname+C.search;throw Sa(405,{method:t.method,pathname:S,routeId:s.route.id})}else return{type:"data",result:void 0}}else if(v)d=await h(v);else{let N=new URL(t.url),C=N.pathname+N.search;throw Sa(404,{pathname:C})}}catch(v){return{type:"error",result:v}}finally{p&&t.signal.removeEventListener("abort",p)}return d}async function a2(t){var r,c,u,d,p,x;let{result:s,type:n}=t;if(H1(s)){let g;try{let h=s.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?s.body==null?g=null:g=await s.json():g=await s.text()}catch(h){return{type:"error",error:h}}return n==="error"?{type:"error",error:new qc(s.status,s.statusText,g),statusCode:s.status,headers:s.headers}:{type:"data",data:g,statusCode:s.status,headers:s.headers}}return n==="error"?Xg(s)?s.data instanceof Error?{type:"error",error:s.data,statusCode:(r=s.init)==null?void 0:r.status,headers:(c=s.init)!=null&&c.headers?new Headers(s.init.headers):void 0}:{type:"error",error:new qc(((u=s.init)==null?void 0:u.status)||500,void 0,s.data),statusCode:oo(s)?s.status:void 0,headers:(d=s.init)!=null&&d.headers?new Headers(s.init.headers):void 0}:{type:"error",error:s,statusCode:oo(s)?s.status:void 0}:Xg(s)?{type:"data",data:s.data,statusCode:(p=s.init)==null?void 0:p.status,headers:(x=s.init)!=null&&x.headers?new Headers(s.init.headers):void 0}:{type:"data",data:s}}function s2(t,s,n,r,c){let u=t.headers.get("Location");if(Ze(u,"Redirects returned/thrown from loaders/actions must have a Location header"),!hm.test(u)){let d=r.slice(0,r.findIndex(p=>p.route.id===n)+1);u=Gu(new URL(s.url),d,c,u),t.headers.set("Location",u)}return t}function Yg(t,s,n){if(hm.test(t)){let r=t,c=r.startsWith("//")?new URL(s.protocol+r):new URL(r),u=Ta(c.pathname,n)!=null;if(c.origin===s.origin&&u)return c.pathname+c.search+c.hash}return t}function Oi(t,s,n,r){let c=t.createURL(O1(s)).toString(),u={signal:n};if(r&&ca(r.formMethod)){let{formMethod:d,formEncType:p}=r;u.method=d.toUpperCase(),p==="application/json"?(u.headers=new Headers({"Content-Type":p}),u.body=JSON.stringify(r.json)):p==="text/plain"?u.body=r.text:p==="application/x-www-form-urlencoded"&&r.formData?u.body=Ku(r.formData):u.body=r.formData}
67return new Request(c,u)}function Ku(t){let s=new URLSearchParams;for(let[n,r]of t.entries())s.append(n,typeof r=="string"?r:r.name);return s}function Gg(t){let s=new FormData;for(let[n,r]of t.entries())s.append(n,r);return s}function n2(t,s,n,r=!1,c=!1){let u={},d=null,p,x=!1,g={},h=n&&oa(n[1])?n[1].error:void 0;return t.forEach(v=>{if(!(v.route.id in s))return;let N=v.route.id,C=s[N];if(Ze(!On(C),"Cannot handle redirect results in processLoaderData"),oa(C)){let S=C.error;if(h!==void 0&&(S=h,h=void 0),d=d||{},c)d[N]=S;else{let L=$n(t,N);d[L.route.id]==null&&(d[L.route.id]=S)}r||(u[N]=R1),x||(x=!0,p=oo(C.error)?C.error.status:500),C.headers&&(g[N]=C.headers)}else u[N]=C.data,C.statusCode&&C.statusCode!==200&&!x&&(p=C.statusCode),C.headers&&(g[N]=C.headers)}),h!==void 0&&n&&(d={[n[0]]:h},n[2]&&(u[n[2]]=void 0)),{loaderData:u,errors:d,statusCode:p||200,loaderHeaders:g}}function qg(t,s,n,r,c,u){let{loaderData:d,errors:p}=n2(s,n,r);return c.filter(x=>!x.matches||x.matches.some(g=>g.shouldLoad)).forEach(x=>{let{key:g,match:h,controller:v}=x,N=u[g];if(Ze(N,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(oa(N)){let C=$n(t.matches,h==null?void 0:h.route.id);p&&p[C.route.id]||(p={...p,[C.route.id]:N.error}),t.fetchers.delete(g)}else if(On(N))Ze(!1,"Unhandled fetcher revalidation redirect");else{let C=an(N.data);t.fetchers.set(g,C)}}),{loaderData:d,errors:p}}function Vg(t,s,n,r){let c=Object.entries(s).filter(([,u])=>u!==R1).reduce((u,[d,p])=>(u[d]=p,u),{});for(let u of n){let d=u.route.id;if(!s.hasOwnProperty(d)&&t.hasOwnProperty(d)&&u.route.loader&&(c[d]=t[d]),r&&r.hasOwnProperty(d))break}return c}function Kg(t){return t?oa(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function $n(t,s){return(s?t.slice(0,t.findIndex(r=>r.route.id===s)+1):[...t]).reverse().find(r=>r.route.hasErrorBoundary===!0)||t[0]}function Zg(t){let s=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:s}],route:s}}function Sa(t,{pathname:s,routeId:n,method:r,type:c,message:u}={}){let d="Unknown Server Error",p="Unknown @remix-run/router error";return t===400?(d="Bad Request",r&&s&&n?p=`You made a ${r} request to "${s}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:c==="invalid-body"&&(p="Unable to encode submission body")):t===403?(d="Forbidden",p=`Route "${n}" does not match URL "${s}"`):t===404?(d="Not Found",p=`No route matches URL "${s}"`):t===405&&(d="Method Not Allowed",r&&s&&n?p=`You made a ${r.toUpperCase()} request to "${s}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(p=`Invalid request method "${r.toUpperCase()}"`)),new qc(t||500,d,new Error(p),!0)}function Ac(t){let s=Object.entries(t);for(let n=s.length-1;n>=0;n--){let[r,c]=s[n];if(On(c))return{key:r,result:c}}}function O1(t){let s=typeof t=="string"?dn(t):t;return on({...s,hash:""})}function i2(t,s){return t.pathname!==s.pathname||t.search!==s.search?!1:t.hash===""?s.hash!=="":t.hash===s.hash?!0:s.hash!==""}function r2(t){return H1(t.result)&&Gw.has(t.result.status)}function oa(t){return t.type==="error"}function On(t){return(t&&t.type)==="redirect"}function Xg(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function H1(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function o2(t){return Yw.has(t.toUpperCase())}function ca(t){return Iw.has(t.toUpperCase())}function gm(t){return new URLSearchParams(t).getAll("index").some(s=>s==="")}function eo(t,s){let n=typeof s=="string"?dn(s).search:s.search;if(t[t.length-1].route.index&&gm(n||""))return t[t.length-1];let r=C1(t);return r[r.length-1]}function Qg(t){let{formMethod:s,formAction:n,formEncType:r,text:c,formData:u,json:d}=t;if(!(!s||!n||!r)){if(c!=null)return{formMethod:s,formAction:n,formEncType:r,formData:void 0,json:void 0,text:c};if(u!=null)return{formMethod:s,formAction:n,formEncType:r,formData:u,json:void 0,text:void 0};if(d!==void 0)return{formMethod:s,formAction:n,formEncType:r,formData:void 0,json:d,text:void 0}}}function Lu(t,s){return s?{state:"loading",location:t,formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function c2(t,s){return{state:"submitting",location:t,formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}}function Qr(t,s){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:s}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:s}}function d2(t,s){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:s?s.data:void 0}}function an(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function x2(t,s){try{let n=t.sessionStorage.getItem(T1);if(n){let r=JSON.parse(n);for(let[c,u]of Object.entries(r||{}))u&&Array.isArray(u)&&s.set(c,new Set(u||[]))}}catch{}}function u2(t,s){if(s.size>0){let n={};for(let[r,c]of s)n[r]=[...c];try{t.sessionStorage.setItem(T1,JSON.stringify(n))}catch(r){ol(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function m2(){let t,s,n=new Promise((r,c)=>{t=async u=>{r(u);try{await n}catch{}},s=async u=>{c(u);try{await n}catch{}}});return{promise:n,resolve:t,reject:s}}var Bn=y.createContext(null);Bn.displayName="DataRouter";var uo=y.createContext(null);uo.displayName="DataRouterState";var jm=y.createContext({isTransitioning:!1});jm.displayName="ViewTransition";var U1=y.createContext(new Map);U1.displayName="Fetchers";var p2=y.createContext(null);p2.displayName="Await";var ds=y.createContext(null);ds.displayName="Navigation";var nd=y.createContext(null);nd.displayName="Location";var Wa=y.createContext({outlet:null,matches:[],isDataRoute:!1});Wa.displayName="Route";var vm=y.createContext(null);vm.displayName="RouteError";function f2(t,{relative:s}={}){Ze(mo(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=y.useContext(ds),{hash:c,pathname:u,search:d}=po(t,{relative:s}),p=u;return n!=="/"&&(p=u==="/"?n:cs([n,u])),r.createHref({pathname:p,search:d,hash:c})}function mo(){return y.useContext(nd)!=null}function In(){return Ze(mo(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(nd).location}var P1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function B1(t){y.useContext(ds).static||y.useLayoutEffect(t)}function _e(){let{isDataRoute:t}=y.useContext(Wa);return t?z2():h2()}function h2(){Ze(mo(),"useNavigate() may be used only in the context of a <Router> component.");let t=y.useContext(Bn),{basename:s,navigator:n}=y.useContext(ds),{matches:r}=y.useContext(Wa),{pathname:c}=In(),u=JSON.stringify(pm(r)),d=y.useRef(!1);return B1(()=>{d.current=!0}),y.useCallback((x,g={})=>
67{if(ol(d.current,P1),!d.current)return;if(typeof x=="number"){n.go(x);return}let h=fm(x,JSON.parse(u),c,g.relative==="path");t==null&&s!=="/"&&(h.pathname=h.pathname==="/"?s:cs([s,h.pathname])),(g.replace?n.replace:n.push)(h,g.state,g)},[s,n,u,c,t])}var g2=y.createContext(null);function j2(t){let s=y.useContext(Wa).outlet;return s&&y.createElement(g2.Provider,{value:t},s)}function Be(){let{matches:t}=y.useContext(Wa),s=t[t.length-1];return s?s.params:{}}function po(t,{relative:s}={}){let{matches:n}=y.useContext(Wa),{pathname:r}=In(),c=JSON.stringify(pm(n));return y.useMemo(()=>fm(t,JSON.parse(c),r,s==="path"),[t,c,r,s])}function v2(t,s,n,r){Ze(mo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=y.useContext(ds),{matches:u}=y.useContext(Wa),d=u[u.length-1],p=d?d.params:{},x=d?d.pathname:"/",g=d?d.pathnameBase:"/",h=d&&d.route;{let T=h&&h.path||"";I1(x,!h||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
68
69Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let v=In(),N;N=v;let C=N.pathname||"/",S=C;if(g!=="/"){let T=g.replace(/^\//,"").split("/");S="/"+C.replace(/^\//,"").split("/").slice(T.length).join("/")}let L=nn(t,{pathname:S});return ol(h||L!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),ol(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),k2(L&&L.map(T=>Object.assign({},T,{params:Object.assign({},p,T.params),pathname:cs([g,c.encodeLocation?c.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?g:cs([g,c.encodeLocation?c.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),u,n,r)}function b2(){let t=C2(),s=oo(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:r},u={padding:"2px 4px",backgroundColor:r},d=null;return console.error("Error handled by React Router default ErrorBoundary:",t),d=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:u},"ErrorBoundary")," or"," ",y.createElement("code",{style:u},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},s),n?y.createElement("pre",{style:c},n):null,d)}var y2=y.createElement(b2,null),w2=class extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,s){return s.location!==t.location||s.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:s.error,location:s.location,revalidation:t.revalidation||s.revalidation}}componentDidCatch(t,s){console.error("React Router caught the following error during render",t,s)}render(){return this.state.error!==void 0?y.createElement(Wa.Provider,{value:this.props.routeContext},y.createElement(vm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function N2({routeContext:t,match:s,children:n}){let r=y.useContext(Bn);return r&&r.static&&r.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=s.route.id),y.createElement(Wa.Provider,{value:t},n)}function k2(t,s=[],n=null,r=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(s.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let c=t,u=n==null?void 0:n.errors;if(u!=null){let x=c.findIndex(g=>g.route.id&&(u==null?void 0:u[g.route.id])!==void 0);Ze(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,x+1))}let d=!1,p=-1;if(n)for(let x=0;x<c.length;x++){let g=c[x];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(p=x),g.route.id){let{loaderData:h,errors:v}
69=n,N=g.route.loader&&!h.hasOwnProperty(g.route.id)&&(!v||v[g.route.id]===void 0);if(g.route.lazy||N){d=!0,p>=0?c=c.slice(0,p+1):c=[c[0]];break}}}return c.reduceRight((x,g,h)=>{let v,N=!1,C=null,S=null;n&&(v=u&&g.route.id?u[g.route.id]:void 0,C=g.route.errorElement||y2,d&&(p<0&&h===0?(I1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,S=null):p===h&&(N=!0,S=g.route.hydrateFallbackElement||null)));let L=s.concat(c.slice(0,h+1)),F=()=>{let T;return v?T=C:N?T=S:g.route.Component?T=y.createElement(g.route.Component,null):g.route.element?T=g.route.element:T=x,y.createElement(N2,{match:g,routeContext:{outlet:x,matches:L,isDataRoute:n!=null},children:T})};return n&&(g.route.ErrorBoundary||g.route.errorElement||h===0)?y.createElement(w2,{location:n.location,revalidation:n.revalidation,component:C,error:v,children:F(),routeContext:{outlet:null,matches:L,isDataRoute:!0}}):F()},null)}function bm(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function _2(t){let s=y.useContext(Bn);return Ze(s,bm(t)),s}function ym(t){let s=y.useContext(uo);return Ze(s,bm(t)),s}function E2(t){let s=y.useContext(Wa);return Ze(s,bm(t)),s}function id(t){let s=E2(t),n=s.matches[s.matches.length-1];return Ze(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function S2(){return id("useRouteId")}function fo(){let{matches:t,loaderData:s}=ym("useMatches");return y.useMemo(()=>t.map(n=>_1(n,s)),[t,s])}function oe(){let t=ym("useLoaderData"),s=id("useLoaderData");return t.loaderData[s]}function C2(){var r;let t=y.useContext(vm),s=ym("useRouteError"),n=id("useRouteError");return t!==void 0?t:(r=s.errors)==null?void 0:r[n]}function z2(){let{router:t}=_2("useNavigate"),s=id("useNavigate"),n=y.useRef(!1);return B1(()=>{n.current=!0}),y.useCallback(async(c,u={})=>{ol(n.current,P1),n.current&&(typeof c=="number"?t.navigate(c):await t.navigate(c,{fromRouteId:s,...u}))},[t,s])}var Jg={};function I1(t,s,n){!s&&!Jg[t]&&(Jg[t]=!0,ol(!1,n))}var Wg={};function e1(t,s){!t&&!Wg[s]&&(Wg[s]=!0,console.warn(s))}function T2(t){let s={hasErrorBoundary:t.hasErrorBoundary||t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&(t.element&&ol(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(s,{element:y.createElement(t.Component),Component:void 0})),t.HydrateFallback&&(t.hydrateFallbackElement&&ol(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(s,{hydrateFallbackElement:y.createElement(t.HydrateFallback),HydrateFallback:void 0})),t.ErrorBoundary&&(t.errorElement&&ol(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(s,{errorElement:y.createElement(t.ErrorBoundary),ErrorBoundary:void 0})),s}var R2=["HydrateFallback","hydrateFallbackElement"],A2=class{constructor(){this.status="pending",this.promise=new Promise((t,s)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",s(n))}})}};function L2({router:t,flushSync:s}
69){let[n,r]=y.useState(t.state),[c,u]=y.useState(),[d,p]=y.useState({isTransitioning:!1}),[x,g]=y.useState(),[h,v]=y.useState(),[N,C]=y.useState(),S=y.useRef(new Map),L=y.useCallback((Q,{deletedFetchers:le,flushSync:W,viewTransitionOpts:$})=>{Q.fetchers.forEach((Ue,ve)=>{Ue.data!==void 0&&S.current.set(ve,Ue.data)}),le.forEach(Ue=>S.current.delete(Ue)),e1(W===!1||s!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let ze=t.window!=null&&t.window.document!=null&&typeof t.window.document.startViewTransition=="function";if(e1($==null||ze,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!$||!ze){s&&W?s(()=>r(Q)):y.startTransition(()=>r(Q));return}if(s&&W){s(()=>{h&&(x&&x.resolve(),h.skipTransition()),p({isTransitioning:!0,flushSync:!0,currentLocation:$.currentLocation,nextLocation:$.nextLocation})});let Ue=t.window.document.startViewTransition(()=>{s(()=>r(Q))});Ue.finished.finally(()=>{s(()=>{g(void 0),v(void 0),u(void 0),p({isTransitioning:!1})})}),s(()=>v(Ue));return}h?(x&&x.resolve(),h.skipTransition(),C({state:Q,currentLocation:$.currentLocation,nextLocation:$.nextLocation})):(u(Q),p({isTransitioning:!0,flushSync:!1,currentLocation:$.currentLocation,nextLocation:$.nextLocation}))},[t.window,s,h,x]);y.useLayoutEffect(()=>t.subscribe(L),[t,L]),y.useEffect(()=>{d.isTransitioning&&!d.flushSync&&g(new A2)},[d]),y.useEffect(()=>{if(x&&c&&t.window){let Q=c,le=x.promise,W=t.window.document.startViewTransition(async()=>{y.startTransition(()=>r(Q)),await le});W.finished.finally(()=>{g(void 0),v(void 0),u(void 0),p({isTransitioning:!1})}),v(W)}},[c,x,t.window]),y.useEffect(()=>{x&&c&&n.location.key===c.location.key&&x.resolve()},[x,h,n.location,c]),y.useEffect(()=>{!d.isTransitioning&&N&&(u(N.state),p({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}),C(void 0))},[d.isTransitioning,N]);let F=y.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:Q=>t.navigate(Q),push:(Q,le,W)=>t.navigate(Q,{state:le,preventScrollReset:W==null?void 0:W.preventScrollReset}),replace:(Q,le,W)=>t.navigate(Q,{replace:!0,state:le,preventScrollReset:W==null?void 0:W.preventScrollReset})}),[t]),T=t.basename||"/",Y=y.useMemo(()=>({router:t,navigator:F,static:!1,basename:T}),[t,F,T]);return y.createElement(y.Fragment,null,y.createElement(Bn.Provider,{value:Y},y.createElement(uo.Provider,{value:n},y.createElement(U1.Provider,{value:S.current},y.createElement(jm.Provider,{value:d},y.createElement($2,{basename:T,location:n.location,navigationType:n.historyAction,navigator:F},y.createElement(M2,{routes:t.routes,future:t.future,state:n})))))),null)}var M2=y.memo(D2);function D2({routes:t,future:s,state:n}){return v2(t,void 0,n,s)}function ct(t){return j2(t.context)}function $2({basename:t="/",children:s=null,location:n,navigationType:r="POP",navigator:c,static:u=!1}){Ze(!mo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=t.replace(/^\/*/,"/"),p=y.useMemo(()=>({basename:d,navigator:c,static:u,future:{}}),[d,c,u]);typeof n=="string"&&(n=dn(n));let{pathname:x="/",search:g="",hash:h="",state:v=null,key:N="default"}=n,C=y.useMemo(()=>{let S=Ta(x,d);return S==null?null:{location:{pathname:S,search:g,hash:h,state:v,key:N},navigationType:r}},[d,x,g,h,v,N,r]);return ol(C!=null,`<Router basename="${d}"> is not able to match the URL "${x}${g}${h}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:y.createElement(ds.Provider,{value:p},y.createElement(nd.Provider,{children:s,value:C}))}var Dc="get",$c="application/x-www-form-urlencoded";function rd(t){return t!=null&&typeof t.tagName=="string"}function O2(t){return rd(t)&&t.tagName.toLowerCase()==="button"}function H2(t){return rd(t)&&t.tagName.toLowerCase()==="form"}function U2(t){return rd(t)&&t.tagName.toLowerCase()==="input"}function P2(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function B2(t,s){return t.button===0&&(!s||s==="_self")&&!P2(t)}var Lc=null;function I2(){if(Lc===null)try{new FormData(document.createElement("form"),0),Lc=!1}catch{Lc=!0}return Lc}var F2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Mu(t){return t!=null&&!F2.has(t)?(ol(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${$c}"`),null):t}function Y2(t,s){let n,r,c,u,d;
69if(H2(t)){let p=t.getAttribute("action");r=p?Ta(p,s):null,n=t.getAttribute("method")||Dc,c=Mu(t.getAttribute("enctype"))||$c,u=new FormData(t)}else if(O2(t)||U2(t)&&(t.type==="submit"||t.type==="image")){let p=t.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let x=t.getAttribute("formaction")||p.getAttribute("action");if(r=x?Ta(x,s):null,n=t.getAttribute("formmethod")||p.getAttribute("method")||Dc,c=Mu(t.getAttribute("formenctype"))||Mu(p.getAttribute("enctype"))||$c,u=new FormData(p,t),!I2()){let{name:g,type:h,value:v}=t;if(h==="image"){let N=g?`${g}.`:"";u.append(`${N}x`,"0"),u.append(`${N}y`,"0")}else g&&u.append(g,v)}}else{if(rd(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Dc,r=null,c=$c,d=t}return u&&c==="text/plain"&&(d=u,u=void 0),{action:r,method:n.toLowerCase(),encType:c,formData:u,body:d}}function wm(t,s){if(t===!1||t===null||typeof t>"u")throw new Error(s)}async function G2(t,s){if(t.id in s)return s[t.id];try{let n=await import(t.module);return s[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function q2(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function V2(t,s,n){let r=await Promise.all(t.map(async c=>{let u=s.routes[c.route.id];if(u){let d=await G2(u,n);return d.links?d.links():[]}return[]}));return Q2(r.flat(1).filter(q2).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function t1(t,s,n,r,c,u){let d=(x,g)=>n[g]?x.route.id!==n[g].route.id:!0,p=(x,g)=>{var h;return n[g].pathname!==x.pathname||((h=n[g].route.path)==null?void 0:h.endsWith("*"))&&n[g].params["*"]!==x.params["*"]};return u==="assets"?s.filter((x,g)=>d(x,g)||p(x,g)):u==="data"?s.filter((x,g)=>{var v;let h=r.routes[x.route.id];if(!h||!h.hasLoader)return!1;if(d(x,g)||p(x,g))return!0;if(x.route.shouldRevalidate){let N=x.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((v=n[0])==null?void 0:v.params)||{},nextUrl:new URL(t,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function K2(t,s,{includeHydrateFallback:n}={}){return Z2(t.map(r=>{let c=s.routes[r.route.id];if(!c)return[];let u=[c.module];return c.clientActionModule&&(u=u.concat(c.clientActionModule)),c.clientLoaderModule&&(u=u.concat(c.clientLoaderModule)),n&&c.hydrateFallbackModule&&(u=u.concat(c.hydrateFallbackModule)),c.imports&&(u=u.concat(c.imports)),u}).flat(1))}function Z2(t){return[...new Set(t)]}function X2(t){let s={},n=Object.keys(t).sort();for(let r of n)s[r]=t[r];return s}function Q2(t,s){let n=new Set;return new Set(s),t.reduce((r,c)=>{let u=JSON.stringify(X2(c));return n.has(u)||(n.add(u),r.push({key:u,link:c})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var J2=new Set([100,101,204,205]);function W2(t,s){let n=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return n.pathname==="/"?n.pathname="_root.data":s&&Ta(n.pathname,s)==="/"?n.pathname=`${s.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function F1(){let t=y.useContext(Bn);return wm(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function eN(){let t=y.useContext(uo);return wm(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Nm=y.createContext(void 0);Nm.displayName="FrameworkContext";function Y1(){let t=y.useContext(Nm);return wm(t,"You must render this element inside a <HydratedRouter> element"),t}function tN(t,s){let n=y.useContext(Nm),[r,c]=y.useState(!1),[u,d]=y.useState(!1),{onFocus:p,onBlur:x,onMouseEnter:g,onMouseLeave:h,onTouchStart:v}=s,N=y.useRef(null);y.useEffect(()=>{if(t==="render"&&d(!0),t==="viewport"){let L=T=>{T.forEach(Y=>{d(Y.isIntersecting)})},F=new IntersectionObserver(L,{threshold:.5});return N.current&&F.observe(N.current),()=>{F.disconnect()}}},[t]),y.useEffect(()=>{if(r){let L=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(L)}}},[r]);let C=()=>{c(!0)},S=()=>{c(!1),d(!1)};return n?t!=="intent"?[u,N,{}]:[u,N,{onFocus:Jr(p,C),onBlur:Jr(x,S),onMouseEnter:Jr(g,C),onMouseLeave:Jr(h,S),onTouchStart:Jr(v,C)}]:[!1,N,{}]}function Jr(t,s){return n=>{t&&t(n),n.defaultPrevented||s(n)}}function lN({page:t,...s}){let{router:n}=F1(),r=y.useMemo(()=>nn(n.routes,t,n.basename),[n.routes,t,n.basename]);return r?y.createElement(sN,{page:t,matches:r,...s}):null}function aN(t){let{manifest:s,routeModules:n}=Y1(),[r,c]=y.useState([]);return y.useEffect(()=>{let u=!1;return V2(t,s,n).then(d=>{u||c(d)}),()=>{u=!0}},[t,s,n]),r}function sN({page:t,matches:s,...n}){let r=In(),{manifest:c,routeModules:u}=Y1(),{basename:d}=F1(),{loaderData:p,matches:x}=eN(),g=y.useMemo(()=>t1(t,s,x,c,r,"data"),[t,s,x,c,r]),h=y.useMemo(()=>t1(t,s,x,c,r,"assets"),[t,s,x,c,r]),v=y.useMemo(()=>
69{if(t===r.pathname+r.search+r.hash)return[];let S=new Set,L=!1;if(s.forEach(T=>{var Q;let Y=c.routes[T.route.id];!Y||!Y.hasLoader||(!g.some(le=>le.route.id===T.route.id)&&T.route.id in p&&((Q=u[T.route.id])!=null&&Q.shouldRevalidate)||Y.hasClientLoader?L=!0:S.add(T.route.id))}),S.size===0)return[];let F=W2(t,d);return L&&S.size>0&&F.searchParams.set("_routes",s.filter(T=>S.has(T.route.id)).map(T=>T.route.id).join(",")),[F.pathname+F.search]},[d,p,r,c,g,s,t,u]),N=y.useMemo(()=>K2(h,c),[h,c]),C=aN(h);return y.createElement(y.Fragment,null,v.map(S=>y.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),N.map(S=>y.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),C.map(({key:S,link:L})=>y.createElement("link",{key:S,...L})))}function nN(...t){return s=>{t.forEach(n=>{typeof n=="function"?n(s):n!=null&&(n.current=s)})}}var G1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{G1&&(window.__reactRouterVersion="7.6.2")}catch{}function iN(t,s){return Zw({basename:s==null?void 0:s.basename,unstable_getContext:s==null?void 0:s.unstable_getContext,future:s==null?void 0:s.future,history:gw({window:s==null?void 0:s.window}),hydrationData:rN(),routes:t,mapRouteProperties:T2,hydrationRouteProperties:R2,dataStrategy:s==null?void 0:s.dataStrategy,patchRoutesOnNavigation:s==null?void 0:s.patchRoutesOnNavigation,window:s==null?void 0:s.window}).initialize()}function rN(){let t=window==null?void 0:window.__staticRouterHydrationData;return t&&t.errors&&(t={...t,errors:oN(t.errors)}),t}function oN(t){if(!t)return null;let s=Object.entries(t),n={};for(let[r,c]of s)if(c&&c.__type==="RouteErrorResponse")n[r]=new qc(c.status,c.statusText,c.data,c.internal===!0);else if(c&&c.__type==="Error"){if(c.__subType){let u=window[c.__subType];if(typeof u=="function")try{let d=new u(c.message);d.stack="",n[r]=d}catch{}}if(n[r]==null){let u=new Error(c.message);u.stack="",n[r]=u}}else n[r]=c;return n}var q1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_=y.forwardRef(function({onClick:s,discover:n="render",prefetch:r="none",relative:c,reloadDocument:u,replace:d,state:p,target:x,to:g,preventScrollReset:h,viewTransition:v,...N},C){let{basename:S}=y.useContext(ds),L=typeof g=="string"&&q1.test(g),F,T=!1;if(typeof g=="string"&&L&&(F=g,G1))try{let ve=new URL(window.location.href),ft=g.startsWith("//")?new URL(ve.protocol+g):new URL(g),qt=Ta(ft.pathname,S);ft.origin===ve.origin&&qt!=null?g=qt+ft.search+ft.hash:T=!0}catch{ol(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let Y=f2(g,{relative:c}
69),[Q,le,W]=tN(r,N),$=uN(g,{replace:d,state:p,target:x,preventScrollReset:h,relative:c,viewTransition:v});function ze(ve){s&&s(ve),ve.defaultPrevented||$(ve)}let Ue=y.createElement("a",{...N,...W,href:F||Y,onClick:T||u?s:ze,ref:nN(C,le),target:x,"data-discover":!L&&n==="render"?"true":void 0});return Q&&!L?y.createElement(y.Fragment,null,Ue,y.createElement(lN,{page:Y})):Ue});_.displayName="Link";var cN=y.forwardRef(function({"aria-current":s="page",caseSensitive:n=!1,className:r="",end:c=!1,style:u,to:d,viewTransition:p,children:x,...g},h){let v=po(d,{relative:g.relative}),N=In(),C=y.useContext(uo),{navigator:S,basename:L}=y.useContext(ds),F=C!=null&&gN(v)&&p===!0,T=S.encodeLocation?S.encodeLocation(v).pathname:v.pathname,Y=N.pathname,Q=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;n||(Y=Y.toLowerCase(),Q=Q?Q.toLowerCase():null,T=T.toLowerCase()),Q&&L&&(Q=Ta(Q,L)||Q);const le=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let W=Y===T||!c&&Y.startsWith(T)&&Y.charAt(le)==="/",$=Q!=null&&(Q===T||!c&&Q.startsWith(T)&&Q.charAt(T.length)==="/"),ze={isActive:W,isPending:$,isTransitioning:F},Ue=W?s:void 0,ve;typeof r=="function"?ve=r(ze):ve=[r,W?"active":null,$?"pending":null,F?"transitioning":null].filter(Boolean).join(" ");let ft=typeof u=="function"?u(ze):u;return y.createElement(_,{...g,"aria-current":Ue,className:ve,ref:h,style:ft,to:d,viewTransition:p},typeof x=="function"?x(ze):x)});cN.displayName="NavLink";var dN=y.forwardRef(({discover:t="render",fetcherKey:s,navigate:n,reloadDocument:r,replace:c,state:u,method:d=Dc,action:p,onSubmit:x,relative:g,preventScrollReset:h,viewTransition:v,...N},C)=>{let S=fN(),L=hN(p,{relative:g}),F=d.toLowerCase()==="get"?"get":"post",T=typeof p=="string"&&q1.test(p),Y=Q=>{if(x&&x(Q),Q.defaultPrevented)return;Q.preventDefault();let le=Q.nativeEvent.submitter,W=(le==null?void 0:le.getAttribute("formmethod"))||d;S(le||Q.currentTarget,{fetcherKey:s,method:W,navigate:n,replace:c,state:u,relative:g,preventScrollReset:h,viewTransition:v})};return y.createElement("form",{ref:C,method:F,action:L,onSubmit:r?x:Y,...N,"data-discover":!T&&t==="render"?"true":void 0})});dN.displayName="Form";function xN(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function V1(t){let s=y.useContext(Bn);return Ze(s,xN(t)),s}function uN(t,{target:s,replace:n,state:r,preventScrollReset:c,relative:u,viewTransition:d}={}){let p=_e(),x=In(),g=po(t,{relative:u});return y.useCallback(h=>{if(B2(h,s)){h.preventDefault();let v=n!==void 0?n:on(x)===on(g);p(t,{replace:v,state:r,preventScrollReset:c,relative:u,viewTransition:d})}},[x,p,g,n,r,s,t,c,u,d])}var mN=0,pN=()=>`__${String(++mN)}__`;function fN(){let{router:t}=V1("useSubmit"),{basename:s}=y.useContext(ds),n=S2();return y.useCallback(async(r,c={})=>{let{action:u,method:d,encType:p,formData:x,body:g}=Y2(r,s);if(c.navigate===!1){let h=c.fetcherKey||pN();await t.fetch(h,n,c.action||u,{preventScrollReset:c.preventScrollReset,formData:x,body:g,formMethod:c.method||d,formEncType:c.encType||p,flushSync:c.flushSync})}else await t.navigate(c.action||u,{preventScrollReset:c.preventScrollReset,formData:x,body:g,formMethod:c.method||d,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:n,flushSync:c.flushSync,viewTransition:c.viewTransition})},[t,s,n])}function hN(t,{relative:s}={}){let{basename:n}=y.useContext(ds),r=y.useContext(Wa);Ze(r,"useFormAction must be used inside a RouteContext");let[c]=r.matches.slice(-1),u={...po(t||".",{relative:s})},d=In();if(t==null){u.search=d.search;let p=new URLSearchParams(u.search),x=p.getAll("index");if(x.some(h=>h==="")){p.delete("index"),x.filter(v=>v).forEach(v=>p.append("index",v));let h=p.toString();u.search=h?`?${h}`:""}}return(!t||t===".")&&c.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(u.pathname=u.pathname==="/"?n:cs([n,u.pathname])),on(u)}function gN(t,s={}){let n=y.useContext(jm);Ze(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=V1("useViewTransitionState"),c=po(t,{relative:s.relative});if(!n.isTransitioning)return!1;let u=Ta(n.currentLocation.pathname,r)||n.currentLocation.pathname,d=Ta(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Gc(c.pathname,d)!=null||Gc(c.pathname,u)!=null}[...J2];var jN=b1();/**
70 * react-router v7.6.2
71 *
72 * Copyright (c) Remix Software Inc.
73 *
74 * This source code is licensed under the MIT license found in the
75 * LICENSE.md file in the root directory of this source tree.
76 *
77 * @license MIT
78 */function vN(t){return y.createElement(L2,{flushSync:jN.flushSync,...t})}function Cl(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var bN=typeof Symbol=="function"&&Symbol.observable||"@@observable",l1=bN,Du=()=>Math.random().toString(36).substring(7).split("").join("."),yN={INIT:`@@redux/INIT${Du()}`,REPLACE:`@@redux/REPLACE${Du()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Du()}`},Kc=yN;function km(t){if(typeof t!="object"||t===null)return!1;let s=t;for(;Object.getPrototypeOf(s)!==null;)s=Object.getPrototypeOf(s);return Object.getPrototypeOf(t)===s||Object.getPrototypeOf(t)===null}function K1(t,s,n){if(typeof t!="function")throw new Error(Cl(2));if(typeof s=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Cl(0));if(typeof s=="function"&&typeof n>"u"&&(n=s,s=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Cl(1));return n(K1)(t,s)}let r=t,c=s,u=new Map,d=u,p=0,x=!1;function g(){d===u&&(d=new Map,u.forEach((F,T)=>{d.set(T,F)}))}function h(){if(x)throw new Error(Cl(3));return c}function v(F){if(typeof F!="function")throw new Error(Cl(4));if(x)throw new Error(Cl(5));let T=!0;g();const Y=p++;return d.set(Y,F),function(){if(T){if(x)throw new Error(Cl(6));T=!1,g(),d.delete(Y),u=null}}}function N(F){if(!km(F))throw new Error(Cl(7));if(typeof F.type>"u")throw new Error(Cl(8));if(typeof F.type!="string")throw new Error(Cl(17));if(x)throw new Error(Cl(9));try{x=!0,c=r(c,F)}finally{x=!1}
78return(u=d).forEach(Y=>{Y()}),F}function C(F){if(typeof F!="function")throw new Error(Cl(10));r=F,N({type:Kc.REPLACE})}function S(){const F=v;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(Cl(11));function Y(){const le=T;le.next&&le.next(h())}return Y(),{unsubscribe:F(Y)}},[l1](){return this}}}return N({type:Kc.INIT}),{dispatch:N,subscribe:v,getState:h,replaceReducer:C,[l1]:S}}function wN(t){Object.keys(t).forEach(s=>{const n=t[s];if(typeof n(void 0,{type:Kc.INIT})>"u")throw new Error(Cl(12));if(typeof n(void 0,{type:Kc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Cl(13))})}function NN(t){const s=Object.keys(t),n={};for(let u=0;u<s.length;u++){const d=s[u];typeof t[d]=="function"&&(n[d]=t[d])}const r=Object.keys(n);let c;try{wN(n)}catch(u){c=u}return function(d={},p){if(c)throw c;let x=!1;const g={};for(let h=0;h<r.length;h++){const v=r[h],N=n[v],C=d[v],S=N(C,p);if(typeof S>"u")throw p&&p.type,new Error(Cl(14));g[v]=S,x=x||S!==C}return x=x||r.length!==Object.keys(d).length,x?g:d}}function Zc(...t){return t.length===0?s=>s:t.length===1?t[0]:t.reduce((s,n)=>(...r)=>s(n(...r)))}function kN(...t){return s=>(n,r)=>{const c=s(n,r);let u=()=>{throw new Error(Cl(15))};const d={getState:c.getState,dispatch:(x,...g)=>u(x,...g)},p=t.map(x=>x(d));return u=Zc(...p)(c.dispatch),{...c,dispatch:u}}}function _N(t){return km(t)&&"type"in t&&typeof t.type=="string"}var Z1=Symbol.for("immer-nothing"),a1=Symbol.for("immer-draftable"),da=Symbol.for("immer-state");function Qa(t,...s){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Ii=Object.getPrototypeOf;function Hn(t){return!!t&&!!t[da]}function zs(t){var s;return t?X1(t)||Array.isArray(t)||!!t[a1]||!!((s=t.constructor)!=null&&s[a1])||cd(t)||dd(t):!1}var EN=Object.prototype.constructor.toString();function X1(t){if(!t||typeof t!="object")return!1;const s=Ii(t);if(s===null)return!0;const n=Object.hasOwnProperty.call(s,"constructor")&&s.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===EN}function Xc(t,s){od(t)===0?Reflect.ownKeys(t).forEach(n=>{s(n,t[n],t)}):t.forEach((n,r)=>s(r,n,t))}function od(t){const s=t[da];return s?s.type_:Array.isArray(t)?1:cd(t)?2:dd(t)?3:0}function Zu(t,s){return od(t)===2?t.has(s):Object.prototype.hasOwnProperty.call(t,s)}function Q1(t,s,n){const r=od(t);r===2?t.set(s,n):r===3?t.add(n):t[s]=n}function SN(t,s){return t===s?t!==0||1/t===1/s:t!==t&&s!==s}function cd(t){return t instanceof Map}function dd(t){return t instanceof Set}function Dn(t){return t.copy_||t.base_}function Xu(t,s){if(cd(t))return new Map(t);if(dd(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const n=X1(t);if(s===!0||s==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(t);delete r[da];let c=Reflect.ownKeys(r);for(let u=0;u<c.length;u++){const d=c[u],p=r[d];p.writable===!1&&(p.writable=!0,p.configurable=!0),(p.get||p.set)&&(r[d]={configurable:!0,writable:!0,enumerable:p.enumerable,value:t[d]})}return Object.create(Ii(t),r)}else{const r=Ii(t);if(r!==null&&n)return{...t};const c=Object.create(r);return Object.assign(c,t)}}function _m(t,s=!1){return xd(t)||Hn(t)||!zs(t)||(od(t)>1&&(t.set=t.add=t.clear=t.delete=CN),Object.freeze(t),s&&Object.entries(t).forEach(([n,r])=>_m(r,!0))),t}function CN(){Qa(2)}function xd(t){return Object.isFrozen(t)}var zN={};function Un(t){const s=zN[t];return s||Qa(0,t),s}var co;function J1(){return co}function TN(t,s){return{drafts_:[],parent_:t,immer_:s,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function s1(t,s){s&&(Un("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=s)}function Qu(t){Ju(t),t.drafts_.forEach(RN),t.drafts_=null}function Ju(t){t===co&&(co=t.parent_)}function n1(t){return co=TN(co,t)}function RN(t){const s=t[da];s.type_===0||s.type_===1?s.revoke_():s.revoked_=!0}function i1(t,s){s.unfinalizedDrafts_=s.drafts_.length;const n=s.drafts_[0];return t!==void 0&&t!==n?(n[da].modified_&&(Qu(s),Qa(4)),zs(t)&&(t=Qc(s,t),s.parent_||Jc(s,t)),s.patches_&&Un("Patches").generateReplacementPatches_(n[da].base_,t,s.patches_,s.inversePatches_)):t=Qc(s,n,[]),Qu(s),s.patches_&&s.patchListener_(s.patches_,s.inversePatches_),t!==Z1?t:void 0}function Qc(t,s,n){if(xd(s))return s;const r=s[da];if(!r)return Xc(s,(c,u)=>r1(t,r,s,c,u,n)),s;if(r.scope_!==t)return s;if(!r.modified_)return Jc(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const c=r.copy_;let u=c,d=!1;r.type_===3&&(u=new Set(c),c.clear(),d=!0),Xc(u,(p,x)=>r1(t,r,c,p,x,n,d)),Jc(t,c,!1),n&&t.patches_&&Un("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function r1(t,s,n,r,c,u,d){if(Hn(c)){const p=u&&s&&s.type_!==3&&!Zu(s.assigned_,r)?u.concat(r):void 0,x=Qc(t,c,p);if(Q1(n,r,x),Hn(x))t.canAutoFreeze_=!1;else return}else d&&n.add(c);if(zs(c)&&!xd(c)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;Qc(t,c),(!s||!s.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Jc(t,c)}}
78function Jc(t,s,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&_m(s,n)}function AN(t,s){const n=Array.isArray(t),r={type_:n?1:0,scope_:s?s.scope_:J1(),modified_:!1,finalized_:!1,assigned_:{},parent_:s,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let c=r,u=Em;n&&(c=[r],u=xo);const{revoke:d,proxy:p}=Proxy.revocable(c,u);return r.draft_=p,r.revoke_=d,p}var Em={get(t,s){if(s===da)return t;const n=Dn(t);if(!Zu(n,s))return LN(t,n,s);const r=n[s];return t.finalized_||!zs(r)?r:r===$u(t.base_,s)?(Ou(t),t.copy_[s]=em(r,t)):r},has(t,s){return s in Dn(t)},ownKeys(t){return Reflect.ownKeys(Dn(t))},set(t,s,n){const r=W1(Dn(t),s);if(r!=null&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const c=$u(Dn(t),s),u=c==null?void 0:c[da];if(u&&u.base_===n)return t.copy_[s]=n,t.assigned_[s]=!1,!0;if(SN(n,c)&&(n!==void 0||Zu(t.base_,s)))return!0;Ou(t),Wu(t)}return t.copy_[s]===n&&(n!==void 0||s in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[s])||(t.copy_[s]=n,t.assigned_[s]=!0),!0},deleteProperty(t,s){return $u(t.base_,s)!==void 0||s in t.base_?(t.assigned_[s]=!1,Ou(t),Wu(t)):delete t.assigned_[s],t.copy_&&delete t.copy_[s],!0},getOwnPropertyDescriptor(t,s){const n=Dn(t),r=Reflect.getOwnPropertyDescriptor(n,s);return r&&{writable:!0,configurable:t.type_!==1||s!=="length",enumerable:r.enumerable,value:n[s]}},defineProperty(){Qa(11)},getPrototypeOf(t){return Ii(t.base_)},setPrototypeOf(){Qa(12)}},xo={};Xc(Em,(t,s)=>{xo[t]=function(){return arguments[0]=arguments[0][0],s.apply(this,arguments)}});xo.deleteProperty=function(t,s){return xo.set.call(this,t,s,void 0)};xo.set=function(t,s,n){return Em.set.call(this,t[0],s,n,t[0])};function $u(t,s){const n=t[da];return(n?Dn(n):t)[s]}function LN(t,s,n){var c;const r=W1(s,n);return r?"value"in r?r.value:(c=r.get)==null?void 0:c.call(t.draft_):void 0}function W1(t,s){if(!(s in t))return;let n=Ii(t);for(;n;){const r=Object.getOwnPropertyDescriptor(n,s);if(r)return r;n=Ii(n)}}function Wu(t){t.modified_||(t.modified_=!0,t.parent_&&Wu(t.parent_))}function Ou(t){t.copy_||(t.copy_=Xu(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var MN=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(s,n,r)=>{if(typeof s=="function"&&typeof n!="function"){const u=n;n=s;const d=this;return function(x=u,...g){return d.produce(x,h=>n.call(this,h,...g))}}typeof n!="function"&&Qa(6),r!==void 0&&typeof r!="function"&&Qa(7);let c;if(zs(s)){const u=n1(this),d=em(s,void 0);let p=!0;try{c=n(d),p=!1}finally{p?Qu(u):Ju(u)}return s1(u,r),i1(c,u)}else if(!s||typeof s!="object"){if(c=n(s),c===void 0&&(c=s),c===Z1&&(c=void 0),this.autoFreeze_&&_m(c,!0),r){const u=[],d=[];Un("Patches").generateReplacementPatches_(s,c,u,d),r(u,d)}return c}else Qa(1,s)},this.produceWithPatches=(s,n)=>{if(typeof s=="function")return(d,...p)=>this.produceWithPatches(d,x=>s(x,...p));let r,c;return[this.produce(s,n,(d,p)=>{r=d,c=p}),r,c]},typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof(t==null?void 0:t.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){zs(t)||Qa(8),Hn(t)&&(t=DN(t));const s=n1(this),n=em(t,void 0);return n[da].isManual_=!0,Ju(s),n}finishDraft(t,s){const n=t&&t[da];(!n||!n.isManual_)&&Qa(9);const{scope_:r}=n;return s1(r,s),i1(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,s){let n;for(n=s.length-1;n>=0;n--){const c=s[n];if(c.path.length===0&&c.op==="replace"){t=c.value;break}}n>-1&&(s=s.slice(n+1));const r=Un("Patches").applyPatches_;return Hn(t)?r(t,s):this.produce(t,c=>r(c,s))}};function em(t,s){const n=cd(t)?Un("MapSet").proxyMap_(t,s):dd(t)?Un("MapSet").proxySet_(t,s):AN(t,s);return(s?s.scope_:J1()).drafts_.push(n),n}function DN(t){return Hn(t)||Qa(10,t),e0(t)}function e0(t){if(!zs(t)||xd(t))return t;const s=t[da];let n;if(s){if(!s.modified_)return s.base_;s.finalized_=!0,n=Xu(t,s.scope_.immer_.useStrictShallowCopy_)}else n=Xu(t,!0);return Xc(n,(r,c)=>{Q1(n,r,e0(c))}),s&&(s.finalized_=!1),n}var xa=new MN,t0=xa.produce;xa.produceWithPatches.bind(xa);xa.setAutoFreeze.bind(xa);xa.setUseStrictShallowCopy.bind(xa);xa.applyPatches.bind(xa);xa.createDraft.bind(xa);xa.finishDraft.bind(xa);function l0(t){return({dispatch:n,getState:r})=>c=>u=>typeof u=="function"?u(n,r,t):c(u)}var $N=l0(),ON=l0,HN=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zc:Zc.apply(null,arguments)};function xe(t,s){function n(...r){return{type:t,payload:r[0]}}return n.toString=()=>`${t}`,n.type=t,n.match=r=>_N(r)&&r.type===t,n}var a0=class to extends Array{constructor(...s){super(...s),Object.setPrototypeOf(this,to.prototype)}static get[Symbol.species](){return to}concat(...s){return super.concat.apply(this,s)}prepend(...s){return s.length===1&&Array.isArray(s[0])?new to(...s[0].c
78oncat(this)):new to(...s.concat(this))}};function o1(t){return zs(t)?t0(t,()=>{}):t}function UN(t){return typeof t=="boolean"}var PN=()=>function(s){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:c=!0,actionCreatorCheck:u=!0}=s??{};let d=new a0;return n&&(UN(n)?d.push($N):d.push(ON(n.extraArgument))),d},BN="RTK_autoBatch",c1=t=>s=>{setTimeout(s,t)},IN=(t={type:"raf"})=>s=>(...n)=>{const r=s(...n);let c=!0,u=!1,d=!1;const p=new Set,x=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:c1(10):t.type==="callback"?t.queueNotification:c1(t.timeout),g=()=>{d=!1,u&&(u=!1,p.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const v=()=>c&&h(),N=r.subscribe(v);return p.add(h),()=>{N(),p.delete(h)}},dispatch(h){var v;try{return c=!((v=h==null?void 0:h.meta)!=null&&v[BN]),u=!c,u&&(d||(d=!0,x(g))),r.dispatch(h)}finally{c=!0}}})},FN=t=>function(n){const{autoBatch:r=!0}=n??{};let c=new a0(t);return r&&c.push(IN(typeof r=="object"?r:void 0)),c};function YN(t){const s=PN(),{reducer:n=void 0,middleware:r,devTools:c=!0,preloadedState:u=void 0,enhancers:d=void 0}=t||{};let p;if(typeof n=="function")p=n;else if(km(n))p=NN(n);else throw new Error(tm(1));let x;typeof r=="function"?x=r(s):x=s();let g=Zc;c&&(g=HN({trace:!1,...typeof c=="object"&&c}));const h=kN(...x),v=FN(h);let N=typeof d=="function"?d(v):v();const C=g(...N);return K1(p,u,C)}function GN(t){const s={},n=[];let r;const c={addCase(u,d){const p=typeof u=="string"?u:u.type;if(!p)throw new Error(tm(28));if(p in s)throw new Error(tm(29));return s[p]=d,c},addMatcher(u,d){return n.push({matcher:u,reducer:d}),c},addDefaultCase(u){return r=u,c}};return t(c),[s,n,r]}function qN(t){return typeof t=="function"}function yt(t,s){let[n,r,c]=GN(s),u;if(qN(t))u=()=>o1(t());else{const p=o1(t);u=()=>p}function d(p=u(),x){let g=[n[x.type],...r.filter(({matcher:h})=>h(x)).map(({reducer:h})=>h)];return g.filter(h=>!!h).length===0&&(g=[c]),g.reduce((h,v)=>{if(v)if(Hn(h)){const C=v(h,x);return C===void 0?h:C}else{if(zs(h))return t0(h,N=>v(N,x));{const N=v(h,x);if(N===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}}return h},p)}return d.getInitialState=u,d}function tm(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const VN=xe("AUTH__SET_USER"),KN={user:null},ZN=yt(KN,t=>{t.addCase(VN,(s,n)=>{s.user=n.payload.user})}),Ca=xe("CONTACT__UPDATE_CONTACT_FORM"),s0=xe("CONTACT__CLOSE_RESULT_MODAL"),Al=xe("CONTACT__OPEN_RESULT_MODAL"),XN={resultModal:{newsletter:{title:null,message:null},contact:{title:null,message:null},form:{title:null,message:null}},form:{lastName:{value:"",error:null},firstName:{value:"",error:null},email:{value:"",error:null},phone:{value:"",error:null},subject:{value:"",error:null},message:{value:"",error:null}}},QN=yt(XN,t=>{t.addCase(Al,(s,n)=>{s.resultModal[n.payload.type].title=n.payload.title,s.resultModal[n.payload.type].message=n.payload.message}),t.addCase(s0,(s,n)=>{s.resultModal[n.payload.type].title=null,s.resultModal[n.payload.type].message=null}),t.addCase(Ca,(s,n)=>{s.form[n.payload.field].value=n.payload.value;for(const r of Object.keys(s.form))s.form[r].error=null})}),n0=xe("FORGOT_PASSWORD__UPDATE_FORGOT_PASSWORD_FORM"),JN={form:{email:{value:"",error:null}}},WN=yt(JN,t=>{t.addCase(n0,(s,n)=>{s.form[n.payload.field].value=n.payload.value;for(const r of Object.keys(s.form))s.form[r].error=null})}),i0=xe("LOGIN__UPDATE_LOGIN_FORM"),ek={form:{email:{value:"",error:null},password:{value:"",error:null},rememberMe:{value:!1,error:null}}},tk=yt(ek,t=>{t.addCase(i0,(s,n)=>{s.form[n.payload.field].value=n.payload.value;for(const r of Object.keys(s.form))s.form[r].error=null})}),r0=xe("NOTIFICATIONS__UPDATE_NOTIFICATIONS_FORM"),lk={form:{businessNews:{value:!1,error:null},publicProcurementNews:{value:!1,error:null},competitionNews:{value:!1,error:null},kindergartenNews:{value:!1,error:null},schoolNews:{value:!1,error:null},highSchoolNews:{value:!1,error:null}
78,sportNews:{value:!1,error:null},sportEvents:{value:!1,error:null},leisureEvents:{value:!1,error:null}}},ak=yt(lk,t=>{t.addCase(r0,(s,n)=>{s.form[n.payload.field].value=n.payload.value;for(const r of Object.keys(s.form))s.form[r].error=null})}),o0=xe("PERSONAL_DATA__UPDATE_PERSONAL_DATA_FORM"),sk={form:{lastName:{value:"",error:null},firstName:{value:"",error:null},birthYear:{value:"",error:null},email:{value:"",error:null},phone:{value:"",error:null},newResident:{value:!1,error:null},oneToFiveYears:{value:!1,error:null},fiveToTenYears:{value:!1,error:null},tenPlusYears:{value:!1,error:null},businessman:{value:!1,error:null},parent:{value:!1,error:null},pensioner:{value:!1,error:null},unemployed:{value:!1,error:null},student:{value:!1,error:null},athlete:{value:!1,error:null},kindergartenAgeChildren:{value:!1,error:null},schoolAgeChildren:{value:!1,error:null},adultChildren:{value:!1,error:null},noChildren:{value:!1,error:null}}},nk=yt(sk,t=>{t.addCase(o0,(s,n)=>{if(["newResident","oneToFiveYears","fiveToTenYears","tenPlusYears"].includes(n.payload.field))for(const r of["newResident","oneToFiveYears","fiveToTenYears","tenPlusYears"])s.form[r].value=!1;if(["kindergartenAgeChildren","schoolAgeChildren","adultChildren"].includes(n.payload.field)&&(s.form.noChildren.value=!1),["noChildren"].includes(n.payload.field))for(const r of["kindergartenAgeChildren","schoolAgeChildren","adultChildren"])s.form[r].value=!1;s.form[n.payload.field].value=n.payload.value;for(const r of Object.keys(s.form))s.form[r].error=null})}),c0=xe("REGISTRATION__UPDATE_REGISTRATION_FORM"),ik={form:{lastName:{value:"",error:null},firstName:{value:"",error:null},email:{value:"",error:null},password:{value:"",error:null},confirmPassword:{value:"",error:null},rememberMe:{value:!1,error:null}}},rk=yt(ik,t=>{t.addCase(c0,(s,n)=>{s.form[n.payload.field].value=n.payload.value;for(const r of Object.keys(s.form))s.form[r].error=null})}),d0=xe("RESET_PASSWORD__UPDATE_RESET_PASSWORD_FORM"),ok={form:{password:{value:"",error:null},confirmPassword:{value:"",error:null}}},ck=yt(ok,t=>{t.addCase(d0,(s,n)=>{s.form[n.payload.field].value=n.payload.value;for(const r of Object.keys(s.form))s.form[r].error=null})}),x0=xe("SECURITY__UPDATE_SECURITY_FORM"),dk={form:{password:{value:"",error:null},confirmPassword:{value:"",error:null}}},xk=yt(dk,t=>{t.addCase(x0,(s,n)=>{s.form[n.payload.field].value=n.payload.value;for(const r of Object.keys(s.form))s.form[r].error=null})}),Ql=xe("SIDE_MENU__SET_SIDE_MENU"),uk={title:"",activeItems:[],sideMenu:[]},mk=yt(uk,t=>{t.addCase(Ql,(s,n)=>{n.payload.title&&(s.title=n.payload.title),n.payload.activeItems&&(s.activeItems=n.payload.activeItems),n.payload.sideMenu&&(s.sideMenu=n.payload.sideMenu)})}),u0=xe("CONFIG__UPDATE_CONFIG"),be=xe("CONFIG__SET_PAGE_TITLE"),pk={currentPageTitle:"",title:"",logoImage:"",ctaButton:{},contactAddresses:[],contactEmails:[],contactPhones:[],footerAddresses:[],footerEmails:[],footerPhones:[],footerNav:[],footerText:"",highlightedInformations:[],mainNav:[],topNav:[],socialLinkFacebook:null,socialLinkInstagram:null,socialLinkTikTok:null,socialLinkYoutube:null,popularSearchTerms:[],highlightedThemes:[],highlightedThemeColors:["#EFE9E3","#DDE9C8","#FFF0A1","#FFFFFF"],homePageLinks:[],style:"",newsletterSubscribe:!1},fk=yt(pk,t=>{t.addCase(be,(s,n)=>{s.currentPageTitle=n.payload}),t.addCase(u0,(s,n)=>{s.ctaButton={title:"Újbuda Online"},s.newsletterSubscribe=n.payload.newsletterSubscribe,s.title=n.payload.title,s.logoImage=n.payload.logoImage,s.contactAddresses=n.payload.contactAddresses,s.contactEmails=n.payload.contactEmails,s.contactPhones=n.payload.contactPhones,s.footerAddresses=n.payload.footerAddresses,s.footerEmails=n.payload.footerEmails,s.footerPhones=n.payload.footerPhones,s.footerNav=n.payload.footerNav,s.footerText=n.payload.footerText,s.highlightedInformations=[],s.mainNav=n.payload.mainNav,s.topNav=n.payload.topNav,s.socialLinkFacebook=n.payload.socialLinkFacebook,s.socialLinkInstagram=n.payload.socialLinkInstagram,s.socialLinkTikTok=n.payload.socialLinkTikTok,s.socialLinkYoutube=n.payload.socialLinkYoutube,s.popularSearchTerms=["Szociális támogatás","Parkolási bírság","Közétkeztetés","Pályázatok","Nyomtatványok és dokumentumok","Támogatás","Telefonkönyv","Polgármester","Iskolakezdési támogatás"],s.highlightedThemes=n.payload.quickNav===void 0?[]:n.payload.quickNav.map((r,c)=>({...r,bgcolor:s.highlightedThemeColors[c%s.highlightedThemeColors.length]})),s.homePageLinks=[{title:"Látnivalók",links:[{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""},{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""},{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""},{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""},{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""}]},{title:"Kiemelt szolgálatások",links:[{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""},{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""},{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""},{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""},{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""}]},{title:"Programok",lineColor:"",links:[{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""},{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""},{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""},{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""},{icon:"/svgs/navbar_icons/person_icon.svg",text:"Citadella",link:""}]}],s.style=n.payload.style})}),m0=xe("ARTICLE__SET_ARTICLES"),p0=xe("ARTICLE__SET_ARTICLE_CATEGORIES"),f0=xe("ARTICLE__SET_ARTICLE"),h0=xe("ARTICLE__SET_FEATURED_ARTICLES"),g0=xe("ARTICLE__SET_UJBUDA_TV_ARTICLES"),fl=xe("ARTICLE__SET_GET_ARTICLES_IN_PROGRESS"),j0=xe("ARTICLE__SET_VIDEO_GALLER
78IES"),v0=xe("ARTICLE__SET_MENUS"),b0=xe("ARTICLE__SET_UJBUDA_VIDEOS"),y0=xe("ARTICLE__SET_SELFGOVERNMENT_ARTICLES"),w0=xe("ARTICLE__SET_DISTRICT_ARTICLES"),hk={article:null,hasMore:null,inProgress:!1,articles:[],menus:[],categories:[],featuredArticles:[],ujbudaTVArticles:[],videoGalleries:[],ujbudaVideos:[],selfGovernmentArticles:[],districtArticles:[],page:0,articlesPages:[]},gk=yt(hk,t=>{t.addCase(f0,(s,n)=>{s.article=n.payload}),t.addCase(fl,(s,n)=>{s.inProgress=n.payload}),t.addCase(m0,(s,n)=>{n.payload.page===1&&(s.articlesPages=[]),s.articlesPages[n.payload.page]=n.payload.articles,s.articles=s.articlesPages.reduce((r,c)=>[...r,...c],[]),s.hasMore=n.payload.hasMore,s.inProgress=!1,s.page=n.payload.page}),t.addCase(y0,(s,n)=>{s.selfGovernmentArticles=n.payload.articles}),t.addCase(w0,(s,n)=>{s.districtArticles=n.payload.articles}),t.addCase(g0,(s,n)=>{s.ujbudaTVArticles=n.payload.articles}),t.addCase(b0,(s,n)=>{s.ujbudaVideos=n.payload.articles}),t.addCase(j0,(s,n)=>{s.videoGalleries=n.payload.articles}),t.addCase(v0,(s,n)=>{s.menus=n.payload.articles}),t.addCase(h0,(s,n)=>{s.featuredArticles=n.payload.articles}),t.addCase(p0,(s,n)=>{s.categories=n.payload})}),N0=xe("EVENT__SET_EVENTS"),k0=xe("EVENT__SET_EVENT_CATEGORIES"),_0=xe("EVENT__SET_EVENT"),jk={event:null,events:[],categories:[]},vk=yt(jk,t=>{t.addCase(_0,(s,n)=>{s.event=n.payload}),t.addCase(N0,(s,n)=>{s.events=n.payload}),t.addCase(k0,(s,n)=>{s.categories=n.payload})}),E0=xe("SLIDER__SET_SLIDES"),bk={slides:[]},yk=yt(bk,t=>{t.addCase(E0,(s,n)=>{s.slides=n.payload})}),Sm=xe("STATIC_PAGE__SET_STATIC_PAGE"),wk={staticPage:[]},Nk=yt(wk,t=>{t.addCase(Sm,(s,n)=>{s.staticPage=n.payload})}),S0=xe("SITEMAP__SET_SITEMAP"),kk={sitemap:[]},_k=yt(kk,t=>{t.addCase(S0,(s,n)=>{s.sitemap=n.payload})}),C0=xe("DOCUMENT__SET_DOCUMENTS"),z0=xe("DOCUMENT__SET_DOCUMENT_CATEGORIES"),Cm=xe("DOCUMENT__SET_GET_DOCUMENTS_IN_PROGRESS"),Ek={documents:[],documentPages:[],categories:[],hasMore:!1,inProgress:!1,page:0},Sk=yt(Ek,t=>{t.addCase(z0,(s,n)=>{s.categories=n.payload.categories}),t.addCase(Cm,(s,n)=>{s.inProgress=n.payload}),t.addCase(C0,(s,n)=>{n.payload.page===1&&(s.documentPages=[]),s.documentPages[n.payload.page]=n.payload.documents,s.documents=s.documentPages.reduce((r,c)=>[...r,...c],[]),s.hasMore=n.payload.hasMore,s.inProgress=!1,s.page=n.payload.page})}),T0=xe("GALLERY__SET_GALLERIES"),R0=xe("GALLERY__SET_GALLERY"),A0=xe("GALLERY__SET_GET_GALLERY_IN_PROGRESS"),Ck={galleries:[],gallery:null,images:[],hasMoreItems:!1,page:0,inProgress:!1},zk=yt(Ck,t=>{t.addCase(A0,s=>{s.inProgress=!0}),t.addCase(T0,(s,n)=>{s.galleries=n.payload.galleries}),t.addCase(R0,(s,n)=>{s.gallery=n.payload.gallery,n.payload.page===1?s.images=n.payload.images:s.images=[...s.images,...n.payload.images],s.hasMoreItems=n.payload.hasMoreItems,s.page=n.payload.page,s.inProgress=!1})}),Tk=xe("FAQ__SET_FAQ"),L0=xe("FAQS__SET_FAQS"),M0=xe("FAQ__SET_FAQ_CATEGORIES"),Rk={faq:null,hasMore:null,inProgress:!1,faqs:[],categories:[]},Ak=yt(Rk,t=>{t.addCase(Tk,(s,n)=>{s.faq=n.payload}),t.addCase(L0,(s,n)=>{n.payload.push===!0?s.faqs=[...s.faqs,...n.payload.faqs]:s.faqs=n.payload.faqs,s.hasMore=n.payload.hasMore,s.inProgress=!1}),t.addCase(M0,(s,n)=>{s.categories=n.payload})}),D0=xe("MARKETPLACE__SET_MARKETPLACE_CATEGORIES"),$0=xe("MARKETPLACE__SET_MARKETPLACE_PLACES"),O0=xe("MARKETPLACE__SET_GET_MARKETPLACE_PLACES_IN_PROGRESS"),H0=xe("MARKETPLACE__SET_MARKETPLACE_PLACE"),Lk={place:null,categories:[],places:[],inProgress:!1,hasMore:!1,page:0},Mk=yt(Lk,t=>{t.addCase(H0,(s,n)=>{s.place=n.payload.place}),t.addCase(O0,s=>{s.inProgress=!0}),t.addCase(D0,(s,n)=>{s.categories=n.payload.categories}),t.addCase($0,(s,n)=>{n.payload.page===1&&(s.placePages=[]),s.placePages[n.payload.page]=n.payload.places,s.places=s.placePages.reduce((r,c)=>[...r,...c],[]),s.hasMore=n.payload.hasMore,s.inProgress=!1,s.page=n.payload.page})}),U0=xe("SPORT_CLUB__SET_SPORT_CLUB"),P0=xe("SPORT_CLUB__SET_GET_SPORT_CLUBS_IN_PROGRESS"),B0=xe("SPORT_CLUB__SET_SPORT_CLUBS"),Dk={place:null,placePages:[],places:[],inProgress:!1,hasMore:!1,page:1},$k=yt(Dk,t=>{t.addCase(U0,(s,n)=>{s.place=n.payload.place}),t.addCase(P0,s=>{s.inProgress=!0}),t.addCase(B0,(s,n)=>{n.payload.page===1&&(s.placePages=[]),s.placePages[n.payload.page]=n.payload.places,s.places=s.placePages.reduce((r,c)=>[...r,...c],[]),s.hasMore=n.payload.hasMore,s.page=n.payload.page,s.inProgress=!1})}),I0=xe("CARD_ACCEPTING_PLACE__SET_CARD_ACCEPTING_PLACE"),F0=xe("CARD_ACCEPTING_PLACE__SET_GET_CARD_ACCEPTING_PLACES_IN_PROGRESS"),Y0=xe("CARD_ACCEPTING_PLACE__SET_CARD_ACCEPTING_PLACES"),Ok={place:null,places:[],inProgress:!1,hasMore:!1,page:1},Hk=yt(Ok,t=>{t.addCase(I0,(s,n)=>{s.place=n.payload.place}),t.addCase(F0,s=>{s.inProgress=!0}),t.addCase(Y0,(s,n)=>{n.payload.page===1&&(s.placesPages=[]),s.placesPages[n.payload.page]=n.payload.places,s.places=s.placesPages.reduce((r,c)=>[...r,...c],[]),s.hasMore=n.payload.hasMore,s.page=n.payload.page,s.inProgress=!1})}),G0=xe("ADMINISTRATION__SET_GET_ANNOUNCEMENTS_IN_PROGRESS"),q0=xe("ADMINISTRATION__SET_ANNOUNCEMENTS"),V0=xe("ADMINISTRATION__SET_ANNOUNCEMENT"),K0=xe("ADMINISTRATION__SET_GET_DECISIONS_IN_PROGRESS"),Z0=xe("ADMINISTRATION__SET_DECISIONS"),X0=xe("ADMINISTRATION__SET_DECISION"),Q0=xe("ADMINISTRATION__SET_GET_ISSUES_IN_PROGRESS"),J0=xe("ADMINISTRATION__SET_ISSUES"),W0=xe("ADMINISTRATION__SET_ISSUE"),ej=xe("ADMINISTRATION__SET_ISSUE_CATEGORIES"),tj=xe("ADMINISTRATION__SET_GET_REGULATIONS_IN_PROGRESS"),lj=xe("ADMINISTRATION__SET_REGULATIONS"),aj=xe("ADMINISTRATION__SET_REGULATION"),sj=xe("ADMINISTRATION__SET_ORGANISATIONS"),nj=xe("ADMINISTRATION__SET_REPRESENTATIVES"),Uk=xe("TRANSPORTED_CARS__SET_TRANSPORTED_CARS"),ij=xe("ADMINISTRATION__SET_ANNOUNCEMENT_CATEGORIES"),Pk={announcement:null,announcements:[],announcementPages:[],announcementCategories:[],decision:null,decisions:[],decisionPages:[],issue:null,issues:[],issueCategories:[],regulation:null,regulations:[],regulationPages:[],regulationTypes:[],inProgress:!1,hasMore:!1,page:1,organisations:[],representatives:[],transportedCars:[]},rj=(t,s,n)=>{for(const r of s){if(r.id===t){r.children=n,r.isLoaded=!0;return}r.children&&rj(t,r.children,n)}},Bk=yt(Pk,t=>{t.addCase(nj,(s,n)=>{s.representatives=n.payload.representatives}),t.addCase(sj,(s,n)=>{n.payload.parentId===null?s.organisations=n.payload.organisations:rj(n.payload.parentId,s.organisations,n.payload.organisations)}),t.addCase(q0,(s,n)=>{n.payload.page===1&&(s.announcementPages=[]),s.announcementPages[n.payload.page]=n.payload.announcements,s.announcements=s.announcementPages.reduce((r,c)=>[...r,...c],[]),s.hasMore=n.payload.hasMore,s.inProgress=!1,s.page=n.payload.page}),t.addCase(ij,(s,n)=>{s.announcementCategories=n.payload.categories}),t.addCase(G0,s=>{s.inProgress=!0}),t.addCase(V0,(s,n)=>{s.announcement=n.payload.announcement}),t.addCase(lj,(s,n)=>{n.payload.page===1&&(s.regulationPages=[]),s.regulationPages[n.payload.page]=n.payload.regulations,s.regulations=s.regulationPages.reduce((r,c)=>[...r,...c],[]),s.hasMore=n.payload.hasMore,s.inProgress=!1,s.regulationTypes=n.payload.regulationTypes,s.page=n.payload.page}),t.addCase(tj,(s,n)=>{s.inProgress=n.payload}),t.addCase(aj,(s,n)=>{s.regulation=n.payload.regulation}),t.addCase(Z0,(s,n)=>{n.payload.page===1&&(s.decisionPages=[]),s.decisionPages[n.payload.page]=n.payload.decisions,s.decisions=s.decisionPages.reduce((r,c)=>[...r,...c],[]),s.hasMore=n.payload.hasMore,s.inProgress=!1}),t.addCase(K0,s=>{s.inProgress=!0}),t.addCase(X0,(s,n)=>{s.decision=n.payload.decision}),t.addCase(J0,(s,n)=>{n.payload.page!==1?s.issues=[...s.issues,...n.payload.issues]:s.issues=n.payload.issues,s.page=n.payload.page,s.hasMore=n.payload.hasMore,s.inProgress=!1}),t.addCase(ej,(s,n)=>{s.issueCategories=n.payload.categories}),t.addCase(Q0,s=>{s.inProgress=!0}),t.addCase(W0,(s,n)=>{s.issue=n.payload.issue}),t.addCase(Uk,(s,n)=>{s.transportedCars=n.payload.transportedCars})}),oj=xe("PUBLICATION__SET_GET_PUBLICATIONS_IN_PROGRESS"),cj=xe("PUBLICATION__SET_PUBLICATIONS"),Ik={hasMore:null,inProgress:!1,publications:[],publicationPages:[],page:1},Fk=yt(Ik,t=>{t.addCase(oj,s=>{s.inProgress=!0}),t.addCase(cj,(s,n)=>{n.payload.page===1&&(s.publicationPages=[]),s.publicationPages[n.payload.page]=n.payload.publications,s.publications=s.publicationPages.reduce((r,c)=>[...r,...c],[]),s.hasMore=n.payload.hasMore,s.inProgress=!1,s.page=n.payload.page})}),ge=xe("HAMBURGER_SET_OPEN"),V=xe("NAV_MENU_SET_OPEN"),Yk={hamburgerOpen:!1,openNavMenu:null},Gk=yt(Yk,t=>{t.addCase(ge,(s,n)=>{s.hamburgerOpen=n.payload}),t.addCase(V,(s,n)=>{s.openNavMenu=n.payload,setTimeout(()=>document.querySelector(".dropdown-menu a").focus(),200)})}
78),dj=xe("SMART_MAP__SET_SMART_MAP_PLACE"),xj=xe("SMART_MAP__SET_GET_SMART_MAP_PLACES_IN_PROGRESS"),uj=xe("SMART_MAP__SET_SMART_MAP_PLACES"),qk={place:null,placePages:[],places:[],inProgress:!1,hasMore:!1,page:1},Vk=yt(qk,t=>{t.addCase(dj,(s,n)=>{s.place=n.payload.place}),t.addCase(xj,s=>{s.inProgress=!0}),t.addCase(uj,(s,n)=>{n.payload.page===1&&(s.placePages=[]),s.placePages[n.payload.page]=n.payload.places,s.places=s.placePages.reduce((r,c)=>[...r,...c],[]),s.hasMore=n.payload.hasMore,s.page=n.payload.page,s.inProgress=!1})}),k=YN({reducer:{article:gk,auth:ZN,contact:QN,document:Sk,event:vk,forgotPassword:WN,gallery:zk,login:tk,notifications:ak,personalData:nk,registration:rk,resetPassword:ck,sideMenu:mk,security:xk,config:fk,slider:yk,staticPage:Nk,sitemap:_k,faq:Ak,marketplace:Mk,sportClub:$k,cardAcceptingPlace:Hk,administration:Bk,publication:Fk,hamburgerMenu:Gk,smartMap:Vk}}),Kk=async t=>{const n=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/config",{headers:{Domain:t==="localhost"?void 0:t}})).json();return k.dispatch(u0(n)),t==="localhost"?{...n}:n},Zk=async t=>{const n=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/sitemap",{headers:{Domain:t==="localhost"?void 0:t}})).json();return k.dispatch(S0(n)),n},Jl=({type:t})=>{const s=ie(),{title:n,message:r}=b(u=>u.contact.resultModal[t]),c=n!==null;return e.jsx("div",{className:`fixed top-0 left-0 z-[10000] h-full w-full items-center justify-center bg-[#000000D0] transition-all ${c===!1?"pointer-events-none hidden opacity-0":"flex"}`,children:e.jsxs("div",{className:"flex flex-col gap-[24px] rounded-[8px] bg-white p-[40px]",children:[e.jsx("div",{className:"font-secondary-bold text-[24px]",children:n}),e.jsx("div",{children:r}),e.jsx("button",{className:"bg-primary-dark-blue w-fit cursor-pointer rounded-[4px] px-[32px] py-[12px] text-[12px] font-bold text-white",onClick:()=>s(s0({type:t})),children:"Rendben"})]})})},mj=async()=>{const{email:t}=k.getState().contact.form;if(t.value.trim().length===0){k.dispatch(Al({type:"newsletter",title:"Hírlevél feliratkozás",message:"Az e-mail cím megadása kötelező!"}));return}const s=await fetch("https://api.ujbuda.hu/webapi/v1.0/newsletter-subscriptions/subscribe",{body:JSON.stringify({email:t.value}),headers:{"Content-Type":"application/json",Domain:location.hostname},method:"POST"});if(s.status===204)k.dispatch(Al({type:"newsletter",title:"Hírlevél feliratkozás",message:"Sikeresen feliratkozott hírlevelünkre!"})),k.dispatch(Ca({field:"email",value:""}));else{const n=await s.json();n.error&&n.error.code===10003?k.dispatch(Al({type:"newsletter",title:"Hírlevél feliratkozás",message:"Ön már feliratkozott hírlevelünkre!"})):k.dispatch(Al({type:"newsletter",title:"Hírlevél feliratkozás",message:"Hiba történt a feliratkozás közben! Kérjük, próbálja újra később!"}))}return s.status===200},es=()=>{const t=ie(),{email:s}=b(d=>d.contact.form),{socialLinkInstagram:n,socialLinkFacebook:r,socialLinkYoutube:c,socialLinkTikTok:u}=b(d=>d.config);return e.jsxs("div",{className:"lgtablet:gap-12 absolute -top-[180px] left-1/2 z-30 flex w-[calc(100%-32px)] -translate-x-1/2 flex-col justify-between gap-4 rounded-sm border border-[#F4F4F4] bg-white p-6 md:-top-[100px] md:w-[unset] md:flex-row xl:-top-[70px]",children:[e.jsxs("div",{className:"lgtablet:items-start flex flex-col items-center gap-4",children:[e.jsx("h3",{className:"text-primary-dark-blue text-[18px] font-bold",children:"Iratkozzon fel Hírlevelünkre"}),e.jsxs("div",{className:"lgtablet:flex-row lgtablet:gap-0 flex flex-col gap-4 md:min-w-[450px]",children:[e.jsx("label",{htmlFor:"emailid",className:"absolute left-[-10000%]",children:"Az Ön e-mail címe"}),e.jsx("input",{id:"emailid",name:"emailname",type:"email",value:s.value,onChange:d=>t(Ca({field:"email",value:d.target.value})),className:"border-mid-gray text-[black] placeholder:text-dark-gray lgtablet:rounded-r-none w-full rounded-sm rounded-l-sm border px-2 py-[10px] placeholder:text-[18px] placeholder:leading-[150%]",placeholder:"Az Ön e-mail címe"}),e.jsx("button",{className:"bg-lightblue lgtablet:py-0 lgtablet:rounded-l-none flex h-full cursor-pointer items-center justify-center rounded-sm rounded-r-sm px-6 py-[14px] text-[12px] font-bold",onClick:mj,children:"Feliratkozás"})]})]}),e.jsxs("div",{className:"lgtablet:items-start flex min-w-[200px] flex-col items-center gap-4",children:[e.jsx("h3",{className:"text-primary-dark-blue text-[18px] font-bold",children:"Kövessen minket!"}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[r&&e.jsx(_,{to:r,target:"_blank",className:"bg-primary-dark-blue flex h-[32px] w-[32px] items-center justify-center rounded-full text-white",children:e.jsx("img",{src:"/svgs
78/facebook_icon.svg",alt:"Facebook"})}),u&&e.jsx(_,{to:u,target:"_blank",className:"bg-primary-dark-blue flex h-[32px] w-[32px] items-center justify-center rounded-full text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n&&e.jsx(_,{to:n,target:"_blank",className:"bg-primary-dark-blue flex h-[32px] w-[32px] items-center justify-center rounded-full text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),c&&e.jsx(_,{to:c,target:"_blank",className:"bg-primary-dark-blue flex h-[32px] w-[32px] items-center justify-center rounded-full text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]})]})]})},Xk=()=>{const t=ie(),{email:s}=b(d=>d.contact.form),{socialLinkInstagram:n,socialLinkFacebook:r,socialLinkYoutube:c,socialLinkTikTok:u}=b(d=>d.config);return e.jsx("div",{className:"flex w-full justify-center bg-[#7ACEF4] px-[16px] py-[32px]",children:e.jsxs("div",{className:"flex max-w-[700px] flex-col justify-between gap-8 md:flex-row md:gap-12",children:[e.jsxs("div",{className:"lgtablet:items-start flex flex-col items-center gap-4",children:[e.jsx("h3",{className:"text-[18px] font-bold text-[#0A2055]",children:"Iratkozzon fel Hírlevelünkre"}),e.jsxs("div",{className:"lgtablet:flex-row lgtablet:gap-0 flex flex-col gap-4 md:min-w-[450px]",children:[e.jsx("label",{htmlFor:"emailid",className:"absolute left-[-10000%]",children:"Az Ön e-mail címe"}),e.jsx("input",{id:"emailid",name:"emailname",type:"email",value:s.value,onChange:d=>t(Ca({field:"email",value:d.target.value})),className:"border-mid-gray lgtablet:rounded-r-none w-full rounded-sm rounded-l-sm border bg-white px-2 py-[10px] placeholder:text-[18px] placeholder:leading-[150%] text-[black] placeholder:text-[#0A2055]",placeholder:"Az Ön e-mail címe"}),e.jsx("button",{className:"newsletter-button lgtablet:py-0 lgtablet:rounded-l-none flex h-full cursor-pointer items-center justify-center rounded-sm rounded-r-sm bg-[#0A2055] px-6 py-[14px] text-[12px] font-bold text-white",onClick:mj,children:"Feliratkozás"})]})]}),e.jsxs("div",{className:"lgtablet:items-start flex min-w-[200px] flex-col items-center gap-4 md:gap-6",children:[e.jsx("h3",{className:"text-[18px] font-bold text-[#0A2055]",children:"Kövessen minket!"}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[r&&e.jsx(_,{to:r,target:"_blank",className:"flex h-[32px] w-[32px] items-center justify-center rounded-full bg-[#0A2055] text-white",children:e.jsx("img",{src:"/svgs/facebook_icon.svg",alt:"Facebook"})}),u&&e.jsx(_,{to:u,target:"_blank",className:"flex h-[32px] w-[32px] items-center justify-center rounded-full bg-[#0A2055] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n&&e.jsx(_,{to:n,target:"_blank",className:"flex h-[32px] w-[32px] items-center justify-center rounded-full bg-[#0A2055] text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),c&&e.jsx(_,{to:c,target:"_blank",className:"flex h-[32px] w-[32px] items-center justify-center rounded-full bg-[#0A2055] text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]})]})]})})},zm=()=>{const{logoImage:t,isFooterLogoColored:s,newsletterSubscribe:n,footerText:r,footerAddresses:c,footerEmails:u,footerPhones:d,footerNav:p}=b(x=>x.config);return e.jsxs(e.Fragment,{children:[n&&!0&&e.jsx(Xk,{}),e.jsxs("div",{className:"footer bg-primary-dark-blue relative h-full w-full mt-0",children:[e.jsx("div",{className:"absolute inset-0 mx-auto h-full w-full max-w-[1170px] overflow-hidden py-3",children:e.jsx("img",{src:"/svgs/footer_dark_blue_image.svg",alt:"Háttér",className:"lgtablet:object-right h-full w-full object-contain object-center"})}),e.jsx(Jl,{type:"newsletter"}),n&&!1,e.jsx("div",{className:"flex flex-row justify-between gap-12"}),e.jsxs("div",{className:"relative z-20 mx-auto w-full max-w-[1170px] px-[16px] pt-[26px] xl:px-[0]",children:[e.jsxs("div",{className:"flex w-full flex-col justify-center gap-[45px] text-center md:flex-row md:text-left xl:justify-start",children:[e.jsxs("div",{className:"grid w-[100%] auto-rows-min grid-cols-1 gap-3 text-start md:w-[318px]",children:[e.jsx("img",{src:t,alt:"Újbuda logó",className:"mx-auto md:mx-0",style:s?{}:{filter:"brightness(0) invert(1)"}}),e.jsx("p",{className:"row-start-3 text-xs",children:r}),c.length>0&&e.jsxs("div",{className:"row-start-4 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs
78/address.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:c.map(x=>e.jsx("p",{children:x}))})]}),u.length>0&&e.jsxs("div",{className:"row-start-5 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 min-w-8 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/email.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:u.map(x=>e.jsxs("p",{children:[x.description&&x.description.trim().length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:x.description}),e.jsx("br",{})]}),e.jsx("a",{href:`mailto:${x.email}`,className:"underline",children:x.email})]}))})]}),d.length>0&&e.jsxs("div",{className:"row-start-6 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/phone.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"flex flex-col gap-3",children:d.map(x=>e.jsxs("div",{className:"text-[12px] leading-[150%]",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase",children:x.name}),e.jsx("p",{className:"leading-[110%] font-bold",children:x.phone})]}))})]})]}),e.jsx("div",{className:"flex flex-wrap gap-x-[45px] gap-y-[45px] md:mt-[63px]",children:p.map(x=>e.jsxs("div",{className:"flex w-[100%] flex-col gap-3 text-[12px] md:w-[318px] xl:w-[239px]",children:[e.jsx("h2",{className:"leading-[150%] font-bold uppercase",children:x.title}),x.children.map(g=>e.jsx(_,{target:g.external?"_blank":"",to:g.external?g.external_link:g.path,className:"row-start-4",children:g.title}))]}))})]}),e.jsx("div",{className:"mt-6 h-[1px] w-full bg-white"}),e.jsx("div",{className:"lgtablet:flex-row tablet:px-0 flex flex-col-reverse items-center justify-center gap-4 px-5 py-6",children:e.jsx("p",{className:"text-[10px] font-bold text-white",children:"Újbuda Önkormányzat - Minden jog fenntartva"})})]})]})]})},Zl=({items:t,onClose:s})=>{const n=y.useRef(null);return e.jsx("div",{className:"dropdown-menu relative",children:e.jsxs("div",{ref:n,className:"absolute z-200 flex w-full flex-col overflow-hidden bg-white pb-[71px]",children:[e.jsx("div",{className:"absolute right-0 -bottom-40 -z-10",children:e.jsx("img",{src:"/svgs/navbar_main_bg.svg",alt:"Háttérkép"})}),e.jsxs("div",{className:"flex min-h-1 w-full flex-row",children:[e.jsx("div",{className:"bg-primary-dark-blue h-1 w-1/4"}),e.jsx("div",{className:"bg-lightblue h-1 w-1/4"}),e.jsx("div",{className:"bg-primary-green h-1 w-1/4"}),e.jsx("div",{className:"bg-lighgreen h-1 w-1/4"})]}),e.jsxs("div",{className:"mx-auto w-full max-w-[1170px]",children:[e.jsx("div",{className:"bg-lighter-gray h-[1px]"}),e.jsx("div",{className:"grid grid-cols-3 gap-6 pt-6",children:t.map((r,c)=>e.jsx("div",{className:"flex flex-col gap-6",children:e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs(_,{target:r.external?"_blank":"",onClick:s,to:r.external?r.external_link:r.path,className:"flex cursor-pointer flex-row gap-3",children:[e.jsx("div",{className:"bg-primary-dark-blue flex h-[42px] min-h-[42px] w-[42px] min-w-[42px] items-center justify-center rounded-[3.6px]",children:e.jsx("img",{src:r.icon?r.icon:"/svgs/primary_icon.svg",className:r.icon?"":"w-[34px]",style:r.icon?{filter:"brightness(0) invert(1)"}:{},alt:"Ikon"})}),e.jsxs("div",{className:"flex flex-col justify-center",children:[e.jsx("h4",{className:"text-primary-dark-blue mb-[2px] text-[14px] leading-[110%] font-bold",children:r.title}),r.subtitle&&r.subtitle.length>0&&e.jsx("p",{className:"line-clamp-2 text-[12px] leading-[120%] text-black",children:r.subtitle})]})]}),r.children&&r.children.length>0&&e.jsx("div",{className:"text-primary-dark-blue flex flex-col gap-[12px] pt-[14px] pl-[54px] text-[12px]",children:r.children.map(u=>e.jsx(_,{onClick:s,target:u.external?"_blank":"",to:u.external?u.external_link:u.path,children:u.title}))}),e.jsx("div",{className:"bg-lighter-gray h-[1px]"})]})},c))})]}),e.jsx("a",{href:"#",onClick:r=>{r.preventDefault(),s()},className:"text-dark-gray absolute top-5 right-10 cursor-pointer text-[12px] leading-[150%] font-bold underline",children:"Menü bezárása"})]})})},Xl=({color:t="black"})=>{const s=ie(),{hamburgerOpen:n}=b(d=>d.hamburgerMenu),r=b(d=>d.config),u=["human","ujbuda-prizma","uszosz","parkolas","dko","eko","gko","so","go","szo","lo","ubi","akh","gkh","okh","kkh","ahgy","kelenvolgyikonyvtar","kaptar"].includes(r.style);return e.jsxs("div",{className:"flex max-h-full flex-row items-center justify-between xl:hidden",children:[e.jsx(_,{to:"/",className:"mr-auto h-full",onClick:()=>s(ge(!1)),children:e.jsx("img",{src:r.logoImage,alt:`${r.title} logó`,className:"max-h-[80px]"})}),e.jsx("div",{className:"flex h-full flex-row items-center gap-4",children:e.jsxs("button",{className:"z-50 flex h-8 w-8 cursor-pointer flex-col items-center justify-center gap-1",onClick:()=>s(ge(!n)),"aria-label":n?"Menü zárása":"Menü nyitása",children:[e.jsx("span",{className:`block h-0.5 w-6 rounded-lg ${u?"bg-black":"bg-white"} transition-all duration-300 ease-out ${n?"translate-y-1.5 rotate-45":"-translate-y-0.5"}`}),e.jsx("span",{className:`block h-0.5 w-6 rounded-lg ${u?"bg-black":"bg-white"} transition-all duration-300 ease-out ${n?"opacity-0":"opacity-100"}`}),e.jsx("span",{className:`block h-0.5 w-6 rounded-lg ${u?"bg-black":"bg-white"} transition-all duration-300 ease-out ${n?"-translate-y-1.5 -rotate-45":"translate-y-0.5"}`})]})})]})},pj=()=>{const t=fo(),s=t[t.length-1].pathname==="/Kozigazgatas/Forms-in-English"?"eng":"hun",[n,r]=y.useState(!1),c=d=>{d.preventDefault(),r(!n)},u=async d=>{d==="eng"?location.href="/Kozigazgatas/Forms-in-English":d==="hun"&&s==="eng"&&(location.href="/"),r(!1)};return y.useEffect(()=>{const d=p=>{p.target.classList.contains("language-select")||r(!1)};return window.addEventListener("click",d),()=>{window.removeEventListener("click",d)}},[]),e.jsxs("a",{href:"#",className:`language-select relative z-[100] flex flex-col justify-start overflow-hidden rounded-[4px] border border-[#B9B9B9] ${n?"h-[unset]":"h-[26px]"}`,onClick:c,children:[e.jsxs("span",{className:"language-select flex min-h-[24px] curs
78or-pointer items-center gap-[6px] bg-white px-[6px] py-[3px]",children:[e.jsx("img",{alt:"",className:"pointer-events-none",src:"/svgs/language-select.svg"}),e.jsx("div",{className:"pointer-events-none min-w-[30px] text-[12px] leading-[150%] text-[#0A2055]",children:s.toUpperCase()}),e.jsx("img",{alt:"",className:"pointer-events-none w-[12px]",src:"/svgs/dropdown-down.svg"})]}),e.jsx("div",{className:`flex-col ${n?"flex":"hidden"} bg-white p-1`,children:["hun","eng"].map(d=>e.jsx("a",{href:"#",className:"flex min-h-[24px] cursor-pointer items-center gap-[6px] px-[6px] py-[3px]",onClick:()=>u(d),children:e.jsx("div",{className:"min-w-[30px] text-[12px] leading-[150%] text-[#0A2055]",children:d.toUpperCase()})}))})]})},Tm=()=>{var u;const t=_e(),{openNavMenu:s}=b(d=>d.hamburgerMenu),n=b(d=>d.config),r=ie(),c=s!==null?((u=n.mainNav.find(d=>d.id===s))==null?void 0:u.children)||[]:[];return e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"navbar relative z-200 flex h-[89px] flex-col justify-center bg-white px-6 py-3 shadow-xl xl:h-[162px] xl:pb-3",children:[e.jsxs("div",{className:"mx-auto hidden w-full max-w-[1170px] flex-col xl:flex",children:[e.jsxs("div",{className:"mb-[15px] flex h-[18px] flex-row justify-between",children:[e.jsx("div",{className:"flex flex-row items-center gap-4",children:n.highlightedInformations.map((d,p)=>e.jsxs(e.Fragment,{children:[e.jsx(_,{to:d.path,className:"text-[12px] leading-[150%]",children:d.title}),p<n.highlightedInformations.length-1&&e.jsx("div",{className:"divider"})]}))}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[e.jsx("div",{className:"flex flex-row items-center gap-6 text-[12px] leading-[150%]",children:n.topNav.map(d=>e.jsx(_,{target:d.external?"_blank":"",to:d.external?d.external_link:d.path,children:d.title}))}),e.jsx("div",{className:"h-[26px]",children:e.jsx(pj,{})})]})]}),e.jsxs("div",{className:"mb-[6px] flex flex-row items-center gap-6",children:[e.jsx(_,{to:"/",className:"mr-auto",onClick:()=>r(V(null)),children:e.jsx("img",{src:n.logoImage,alt:`${n.title} logó`})}),n.contactPhones.map(d=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-col items-end",children:[e.jsx("p",{className:"header-phone-title text-[10px] font-bold text-[#1E7EA7] uppercase",children:d.name}),e.jsx("a",{href:`tel:${d.phone}`,className:"header-phone-link text-primary-dark-blue text-[12px] font-bold",children:d.phone})]}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider"})]})),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[n.socialLinkFacebook&&e.jsx("a",{target:"_blank",href:n.socialLinkFacebook,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/facebook_icon.svg",alt:"Facebook"})}),n.socialLinkTiktok&&e.jsx("a",{target:"_blank",href:n.socialLinkTiktok,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n.socialLinkInstagram&&e.jsx("a",{target:"_blank",href:n.socialLinkInstagram,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),n.socialLinkYoutube&&e.jsx("a",{target:"_blank",href:n.socialLinkYoutube,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]}),e.jsx("div",{className:"divider"}),e.jsx(_,{to:"/kereses",onClick:()=>r(V(null)),children:e.jsx("div",{className:"search-button bg-primary-dark-blue flex h-[48px] w-[48px] cursor-pointer items-center justify-center rounded-[4px] text-white",children:e.jsx("img",{src:"/svgs/search_icon.svg",alt:"Keresés"})})}),e.jsx(_,{to:"https://ujbudaonline.hu/",target:"_blank",className:"flex h-full w-[150px]",children:e.jsx("div",{className:"cta-button bg-primary-green flex w-full cursor-pointer items-center justify-center rounded-[4px] px-6 text-[12px] font-bold whitespace-nowrap",children:n.ctaButton.title})})]}),e.jsx("div",{className:"flex h-[50px] w-full flex-row items-center justify-between",children:e.jsx("ul",{className:"flex h-[50px] w-[calc(100%+10px)] flex-row items-center justify-between gap-[24px] overflow-x-hidden px-[5px] whitespace-nowrap",children:n.mainNav.map((d,p)=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>{d.children.length>0?r(V(s===d.id?null:d.id)):(d.external?window.open(d.external_link):t(d.path),r(V(null)))},className:"flex cursor-pointer flex-row items-center gap-1 text-[12px] font-bold",children:[d.title,d.children.length>
780&&e.jsx("img",{src:"/svgs/green_dropdown_icon.svg",alt:"Nyíl"})]})},p))})})]}),e.jsx(Xl,{})]}),s&&e.jsx(Zl,{items:c,onClose:()=>r(V(null))})]})},wt=()=>{const{mainNav:t,contactPhones:s,logoImage:n,title:r,socialLinkFacebook:c,socialLinkTiktok:u,socialLinkInstagram:d,socialLinkYoutube:p,topNav:x}=b(T=>T.config),g=ie(),{hamburgerOpen:h}=b(T=>T.hamburgerMenu),[v,N]=y.useState(""),[C,S]=y.useState(""),[L,F]=y.useState("");return y.useEffect(()=>{h?document.body.classList.add("noscroll"):document.body.classList.remove("noscroll")},[h]),e.jsx(e.Fragment,{children:e.jsxs("div",{className:`fixed right-0 z-195 h-full w-full overflow-x-hidden overflow-y-auto bg-white py-5 transition-all duration-500 min-[400px]:w-[375px] min-[1294px]:invisible ${h?"max-w-full px-[20px] min-[400px]:max-w-[375px]":"max-w-0 px-0"}`,children:[e.jsxs("div",{className:"invisible flex max-w-[335px] py-4",children:[e.jsx(_,{to:"/",className:"mr-auto h-full",onClick:()=>g(ge(!1)),children:e.jsx("img",{src:n,alt:`${r} logó`,className:"max-h-full"})}),e.jsx("div",{className:"flex h-full flex-row items-center gap-4",children:e.jsxs("button",{className:"z-50 flex h-8 w-8 cursor-pointer flex-col items-center justify-center gap-1",onClick:()=>g(ge(!h)),"aria-label":h?"Menü zárása":"Menü nyitása",children:[e.jsx("span",{className:"block h-0.5 w-6 rounded-lg bg-black transition-all duration-300 ease-out"}),e.jsx("span",{className:"block h-0.5 w-6 rounded-lg bg-black transition-all duration-300 ease-out"}),e.jsx("span",{className:"block h-0.5 w-6 rounded-lg bg-black transition-all duration-300 ease-out"})]})})]}),e.jsxs("div",{className:"mb-4 flex h-[42px] max-w-[335px] flex-row",children:[e.jsx("label",{htmlFor:"search",className:"absolute left-[-10000%]",children:"Keresés..."}),e.jsx("input",{type:"search",name:"search",id:"search",placeholder:"Keresés...",className:"border-lighter-gray h-full w-full rounded-l-sm border px-[14px] py-2",onChange:T=>N(T.target.value)}),e.jsx(_,{to:`/kereses/${v}`,onClick:()=>g(ge(!1)),children:e.jsx("button",{className:"bg-primary-dark-blue flex h-full w-[56px] cursor-pointer items-center justify-center rounded-r-sm text-white",children:e.jsx("img",{src:"/svgs/search_icon.svg",alt:"Keresés"})})})]}),e.jsx("div",{className:"flex max-w-[335px] flex-col gap-2",children:t.map(T=>T.children.length<=0?e.jsxs(_,{className:`flex min-h-[44px] cursor-pointer items-center justify-between rounded-t-sm border px-[14px] py-2.5 text-left text-[12px] leading-[110%] font-bold transition-all duration-500 ${C===T.id?"bg-primary-dark-blue border-primary-dark-blue rounded-b-0 text-white":"text-primary-dark-blue border-mid-gray rounded-b-sm bg-white"}`,onClick:()=>g(ge(!1)),to:T.external?T.external_link:T.path,target:T.external?"_blank":void 0,children:[e.jsx("span",{children:T.title}),T.children.length>0&&e.jsx("img",{src:"/svgs/chevron_down.svg",alt:"Lefele nyíl",className:`ml-auto transition-all duration-500 ${C===T.id?"rotate-180 brightness-0 invert":""} `})]}):e.jsxs("div",{className:"flex w-full flex-col",children:[e.jsxs("button",{className:`flex min-h-[44px] cursor-pointer items-center justify-between rounded-t-sm border px-[14px] py-2.5 text-left text-[12px] leading-[110%] font-bold transition-all duration-500 ${C===T.id?"bg-primary-dark-blue border-primary-dark-blue rounded-b-0 text-white":"text-primary-dark-blue border-mid-gray rounded-b-sm bg-white"}`,onClick:()=>S(C===T.id?null:T.id),children:[e.jsx("span",{children:T.title}),T.children.length>0&&e.jsx("img",{src:"/svgs/chevron_down.svg",alt:"Lefele nyíl",className:`ml-auto transition-all duration-500 ${C===T.id?"rotate-180 brightness-0 invert":""} `})]}),e.jsx("div",{className:`border-primary-dark-blue flex flex-col overflow-hidden rounded-b-sm border-t-0 transition-all duration-500 ${C===T.id?"max-h-[1000px] border":"invisible max-h-0 border-0"}`,children:T.children.map(Y=>e.jsx(Iy.Fragment,{children:Y.children.length<=0?e.jsxs(_,{to:Y.external?Y.external_link:Y.path,target:Y.external?"_blank":void 0,className:"text-primary-dark-blue flex min-h-[44px] max-w-full cursor-pointer flex-row items-center gap-2 px-[14px] py-2.5 text-left text-[12px] leading-[130%] font-bold",onClick:()=>g(ge(!h)),children:[e.jsx("div",{role:"img","aria-label":Y.title,className:"mi-h-6 min-w-6",style:{backgroundColor:"#255c88",maskImage:`url(${Y.icon})`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center"}}),e.jsx("span",{children:Y.title}),Y.subTitle&&e.jsx("span",{className:"text-primary-dark-blue text-[12px] leading-[110%]",children:Y.subTitle})]}):e.jsxs(e.Fragment,{children:[e.jsxs("button",{className:"text-primary-dark-blue flex min-h-[44px] max-w-full cursor-pointer flex-row items-center gap-2 px-[14px] py-2.5 text-left text-[12px] leading-[130%] font-bold",onClick:()=>F(L===Y.id?null:Y.id),children:[e.jsx("div",{role:"img","aria-label":Y.title,className:"min-h-6 min-w-6",style:{backgroundColor:"#255c88",maskImage:`url(${Y.icon})`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center"}}),e.jsx("span",{children:Y.title}),Y.children.length>
780&&e.jsx("img",{src:"/svgs/chevron_down.svg",alt:"Lefele nyíl",className:`ml-auto transition-all duration-500 ${L===Y.id?"rotate-180":""}`}),Y.subTitle&&e.jsx("span",{className:"text-primary-dark-blue text-[12px] leading-[110%]",children:Y.subTitle})]}),e.jsx("div",{className:`flex flex-col gap-[16px] overflow-hidden pl-[46px] transition-all duration-500 ${L===Y.id?"max-h-[1000px] pb-4":"max-h-0 pb-0"}`,children:Y.children.map(Q=>e.jsx(_,{to:Q.external?Q.external_link:Q.path,target:Q.external?"_blank":void 0,className:"text-primary-dark-blue text-left text-[12px] leading-[110%] font-bold underline",onClick:()=>g(ge(!h)),children:Q.title},Q.id))})]})},Y.id))})]},T.id))}),s.length>0&&e.jsxs("div",{className:"mt-[22px] max-w-[335px]",children:[e.jsx("div",{className:"mb-[12px] text-[12px] text-[#6C7880] uppercase",children:"Elérhetőségeink"}),e.jsx("div",{className:"flex flex-col gap-[16px]",children:s.map(T=>e.jsxs("div",{className:"gap flex flex-col",children:[e.jsx("div",{className:"text-[10px] font-bold text-[#1E7EA7] uppercase",children:T.name}),e.jsx("a",{href:`tel:${T.phone.replaceAll(" ","")}`,className:"text-[16px] leading-[150%] font-bold text-[#255C88] uppercase",children:T.phone})]}))})]}),(c||u||d||p)&&e.jsxs("div",{className:"mt-[16px] flex max-w-[335px] gap-[12px]",children:[c&&e.jsx("a",{target:"_blank",href:c,className:"bg-primary-dark-blue flex h-[32px] w-[32px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/facebook_icon.svg",alt:"Facebook"})}),u&&e.jsx("a",{target:"_blank",href:u,className:"bg-primary-dark-blue flex h-[32px] w-[32px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),d&&e.jsx("a",{target:"_blank",href:d,className:"bg-primary-dark-blue flex h-[32px] w-[32px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),p&&e.jsx("a",{target:"_blank",href:p,className:"bg-primary-dark-blue flex h-[32px] w-[32px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]}),e.jsx("div",{className:"mt-4 max-w-[80px]",children:e.jsx(pj,{})}),x.length>0&&e.jsx("div",{className:"mt-[16px] flex max-w-[335px] flex-row flex-wrap items-center gap-x-[24px] gap-y-[13px] text-[12px] leading-[150%]",children:x.map(T=>e.jsx(_,{target:T.external?"_blank":"",to:T.external?T.external_link:T.path,children:T.title}))})]})})},Xt=({children:t})=>{const{hamburgerOpen:s,openNavMenu:n}=b(p=>p.hamburgerMenu),r=ie(),c=s&&n===null,u=n!==null&&!s,d=c||u;return y.useEffect(()=>{const p=()=>{window.innerWidth>1280?r(ge(!1)):window.innerWidth<1280&&r(V(null))};return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Tm,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${d?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${c?"top-[89px] h-[calc(100%-89px)]":""} ${u?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{r(s?ge(!s):V(null))}}),e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx("main",{className:"flex w-full flex-1 flex-col",children:t||e.jsx(ct,{})}),e.jsx(zm,{})]})},Qk=()=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx(ct,{})]}),Jk=({color:t,className:s,rotation:n=0})=>e.jsx("svg",{className:s,width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{rotate:`${n}deg`,transition:"rotate 0.333s"},children:e.jsx("path",{d:"M10.0917 4.49229H9.95017C6.84905 4.49229 3.74751 4.49229 0.646381 4.49116C0.558853 4.49116 0.467234 4.48816 0.383796 4.46641C0.133071 4.40079 -0.0256252 4.17506 0.00341464 3.94221C0.0340905 3.69773 0.23696 3.5155 0.501591 3.4975C0.559262 3.49338 0.617341 3.49413 0.675421 3.49413C3.77001 3.49413 6.86459 3.49413 9.95876 3.49413H10.0958C10.0991 3.48625 10.1019 3.47838 10.1052 3.4705C10.0811 3.44651 10.0582 3.42176 10.0332 3.39889C9.11784 2.55934 8.20206 1.71979 7.28
78628 0.880246C7.0511 0.664266 7.03351 0.366169 7.24333 0.159563C7.45684 -0.0504176 7.80409 -0.0545422 8.03723 0.155438C8.31167 0.402915 8.58244 0.654142 8.85484 0.903494C9.83524 1.80266 10.8161 2.70145 11.7965 3.60062C12.0668 3.84847 12.0684 4.13682 11.7997 4.3828C10.5518 5.52719 9.30394 6.67121 8.05563 7.81485C7.79427 8.05445 7.44907 8.06195 7.22575 7.83472C7.02533 7.63112 7.03637 7.3379 7.25683 7.13391C7.60695 6.80994 7.96033 6.4886 8.31208 6.16613C8.88797 5.63818 9.46386 5.11023 10.0397 4.5819C10.0627 4.5609 10.0831 4.53803 10.1048 4.51591C10.1007 4.50803 10.0966 4.50016 10.0925 4.49229H10.0917Z",fill:t||"white"})}),Wl=({actions:t,menu:s,activeItems:n})=>{const r=fo(),[c,u]=y.useState([]),[d,p]=y.useState(n);y.useEffect(()=>{if(n!==void 0&&p(n),n===void 0&&r.length>0){let g=[];const h=r[r.length-1];for(const v of s)if(v.type==="item"&&v.href===h.pathname&&(g=[v.id]),v.type==="submenu"&&v.children)for(const N of v.children)N.href===h.pathname&&(g=[v.id,N.id]);p(g),u(g)}},[r,s,n]);const x=(g,h=1)=>{const v=g.icon,N=c.includes(g.id),C=S=>{g.type==="submenu"&&(S.preventDefault(),u(N?c.filter(L=>L!==g.id):[...c,g.id])),t&&t[g.action]&&t[g.action]()};return e.jsxs("li",{children:[e.jsxs(_,{className:`${d.includes(g.id)?"bg-(--color-primary-dark-blue)":""} flex h-[48px] cursor-pointer items-center gap-[8px] px-[10px] py-[12px] overflow-ellipsis`,onClick:C,to:g.href,children:[v&&h===1&&e.jsx(v,{iconColor:d.includes(g.id)?"var(--color-primary-dark-blue)":"var(--color-white)",backgroundColor:d.includes(g.id)?"var(--color-white)":"var(--color-primary-dark-blue)"}),e.jsx("span",{className:`${d.includes(g.id)?"text-(--color-white)":"text-(--color-primary-dark-blue)"} line-clamp-2 text-[12px] leading-[110%] font-bold`,children:g.label}),e.jsxs("span",{className:`ml-auto text-[12px] font-bold ${d.includes(g.id)?"text-(--color-light-gray)":"text-(--color-primary-dark-blue)"}`,children:[g.results," találat"]}),g.type==="submenu"&&e.jsx(Jk,{color:d.includes(g.id)?"var(--color-white)":"var(--color-primary-dark-blue)",className:"ml-auto",rotation:N?90:0})]}),g.children&&e.jsx("ul",{className:"mt-[8px] mb-[8px] overflow-hidden pl-[34px]",style:N?{}:{height:0},children:g.children.map(S=>x(S,h+1))})]},g.id)};return e.jsx("ul",{className:"mb-[64px]",children:s.map(g=>x(g))})},Wk=({backgroundColor:t,iconColor:s})=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{width:"24",height:"24",rx:"3.60494",fill:t||"var(--color-primary-dark-blue)"}),e.jsx("path",{d:"M17.2058 10.8832L14.9509 8.63012C14.7548 8.43421 14.5636 8.23829 14.3676 8.04237C13.9215 7.59666 13.4803 7.14604 13.0244 6.71012C12.0293 5.75012 10.4215 5.75992 9.44109 6.72482C8.49991 7.65053 7.54403 8.61053 6.7254 9.43829C6.28422 9.8889 6.03912 10.4424 5.99991 11.084C5.95579 11.8726 6.2254 12.5632 6.80383 13.1362C7.28912 13.6162 7.77442 14.1011 8.25481 14.586L9.36756 15.7028C9.85775 16.1926 10.3479 16.6873 10.843 17.1722C11.0391 17.3632 11.2107 17.5052 11.3823 17.6081C11.8136 17.8726 12.2842 18.0048 12.7548 18.0048C13.4215 18.0048 14.0832 17.7403 14.5979 17.2309C15.4754 16.3591 16.3479 15.4873 17.2205 14.6056C17.3725 14.4538 17.495 14.302 17.5881 14.155C18.245 13.0922 18.093 11.7795 17.2009 10.893L17.2058 10.8832ZM16.0685 12.3918C15.0783 12.3918 14.0881 12.3918 13.093 12.3918C12.3381 12.3918 11.7205 11.853 11.6176 11.1134C11.6078 11.0399 11.6029 10.9665 11.6029 10.893V6.97951C11.7401 7.004 11.8627 7.04808 11.9705 7.11176C12.1323 7.20972 12.3038 7.31747 12.4362 7.44972C13.4019 8.40972 14.3627 9.36972 15.3234 10.3297L16.5538 11.5591C16.7891 11.7942 16.9411 12.0636 17.0146 12.3771V12.3869H16.0587L16.0685 12.3918ZM10.6715 10.9322C10.6813 12.2742 11.7499 13.3273 13.1029 13.3273C14.3872 13.3273 15.6715 13.3273 16.9509 13.3273C16.9068 13.4742 16.8332 13.6065 16.7352 13.7387C16.6764 13.8171 16.6127 13.8905 16.5489 13.9542C15.6862 14.8211 14.8185 15.6881 13.9509 16.5501C13.3627 17.1379 12.5342 17.226 11.8332 16.7852C11.745 16.7313 11.6568 16.6579 11.5636 16.5648C10.1813 15.1885 8.79893 13.8073 7.42148 12.426C6.75971 11.7648 6.75971 10.7216 7.42148 10.0554C8.12736 9.34523 8.83324 8.63992 9.54403 7.93461L10.0391 7.43992C10.2205 7.2587 10.4313 7.12155 10.6617 7.04319V8.204C10.6617 9.11502 10.6617 10.026 10.6617 10.9371L10.6715 10.9322Z",fill:s||"var(--color-white)"})]}),e4=({backgroundColor:t,iconColor:s})=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{width:"24",height:"24",rx:"3.60494",fill:t||"var(--color-primary-dark-blue)"}),e.jsx("path",{d:"M18 12.0028C17.9974 15.3106 15.2993 18.0049 11.9949 18C8.68602 17.9951 5.99286 15.2964 5.99998 11.9927C6.00711 8.68269 8.70702 5.99065 12.0095 6.00002C15.3169 6.0094 18.0022 8.70069 17.9996 12.0028H18ZM17.0674 11.9998C17.067 9.20242 14.7923 6.92887 11.9972 6.93262C9.20013 6.93637 6.93858 9.19717 6.9322 11.9957C6.9262 14.7886 9.19901 17.0648 11.9975 17.0674C14.7931 17.0704 17.0674 14.7969 17.067 11.9998H17.0674Z",fill:s||"var(--color-white)"}),e.jsx("path",{d:"M12.6597 11.9561C12.6968 11.9932 12.7228 12.0192 12.7488 12.0452C13.1486 12.445 13.549 12.8438 13.9478 13.2447C14.1419 13.4399 14.1615 13.7087 13.9998 13.8949C13.8097 14.1136 13.5114 14.124 13.2968 13.9127C12.9699 13.5905 12.6469 13.2638 12.3219 12.9393C12.2184 12.8359 12.1148 12.7322 12.0034 12.6208C11.97 12.651 11.9398 12.6754 11.9122 12.703C11.5099 13.1047 11.1088 13.5075 10.7055 13.9081C10.5326 14.08 10.3199 14.1113 10.1245 14.0002C9.89302 13.8684 9.8217 13.5605 9.97443 13.3426C10.0065 13.2967 10.0447 13.2548 10.0839 13.215C10.4721 12.8258 10.8611 12.4373 11.2498 12.0486C11.2761 12.0224 11.3021 11.9964 11.3363 11.9622C11.3071 11.9298 11.284 11.902 11.2586 11.8765C10.8566 11.4745 10.4541 11.0731 10.0532 10.6701C9.88321 10.499 9.84583 10.2723 9.95268 10.0886C10.0935 9.84647 10.3942 9.77753 10.6249 9.93663C10.6657 9.96473 10.7023 9.99974 10.7375 10.035C11.1289 10.4253 11.5198 10.8167 11.9106 11.2075L11.9965 11.2934C12.031 11.2621 12.0612 11.2367 12.0891 11.2089C12.4868 10.8116 12.8845 10.4139 13.2817 10.0162C13.4257 9.87219 13.593 9.80935 13.7929 9.8767C14.1027 9.98117 14.2071 10.3609 13.9969 10.612C13.9687 10.6454 13.9375 10.6762 13.9064 10.7072C13.5198 11.0938 13.1335 11.4801 12.7469 11.8667C12.7207 11.893 12.6944 11.9192 12.6581 11.9555L12.6597 11.9561Z",fill:s||"var(--color-white)"})]}),t4=({backgroundColor:t,iconColor:s})=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{width:"24",height:"24",rx:"3.60494",fill:t||"var(--color-primary-dark-blue)"}),e.jsx("path",{d:"M9.85968 14.2187L10.2056 14.5377L17.0381 7.69442C17.2489 7.48361 17.4867 7.44577 17.7354 7.5755C17.8651 7.64577 17.9624 7.78632 17.9948 7.94848C18.0218 8.09983 17.984 8.24577 17.8975 8.34848C17.6867 8.59172 17.4597 8.81875 17.2164 9.05659L10.6272 15.6404C10.4218 15.8512 10.2381 15.8998 9.99482 15.8242C9.91914 15.7971 9.84887 15.7485 9.76238 15.662L6.20022 12.0998C5.98401 11.8836 5.94617 11.6566 6.0813 11.4025C6.15698 11.2728 6.29752 11.1755 6.45968 11.1485C6.49211 11.1431 6.52455 11.1377 6.55698 11.1377C6.67049 11.1377 6.77319 11.1755 6.84887 11.2404C7.09211 11.4512 7.31914 11.6836 7.55698 11.9215L9.75698 14.1269C9.7
785698 14.1269 9.80563 14.1701 9.83265 14.1917L9.85968 14.2187Z",fill:s||"var(--color-white)"})]}),l4=({backgroundColor:t,iconColor:s})=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{width:"24",height:"24",rx:"3.60494",fill:t||"var(--color-primary-dark-blue)"}),e.jsx("path",{d:"M17.6008 14.5932C17.9441 14.6372 18.0773 14.9466 17.9561 15.1944C17.9317 15.2444 17.9208 15.3011 17.9032 15.3544C17.7767 15.7333 17.6507 16.1126 17.5235 16.4911C17.4526 16.7022 17.3175 16.7991 17.0962 16.8006C16.9026 16.8017 16.7086 16.8006 16.515 16.8006C16.4816 16.8006 16.4479 16.8006 16.4066 16.8006C16.4047 16.8441 16.4017 16.8772 16.4017 16.9106C16.4013 17.1295 16.4032 17.3481 16.401 17.567C16.3983 17.8329 16.2299 18 15.9661 18C13.3234 18 10.6802 18 8.03745 18C7.77294 18 7.60336 17.8336 7.60111 17.5685C7.59923 17.3496 7.60074 17.131 7.60074 16.9121C7.60074 16.8787 7.60074 16.8453 7.60074 16.8002C7.55571 16.8002 7.52232 16.8002 7.48893 16.8002C7.28896 16.8002 7.08899 16.8017 6.88902 16.7994C6.70143 16.7976 6.55886 16.7142 6.49696 16.5354C6.3315 16.0578 6.17055 15.5782 6.01673 15.0968C5.93981 14.8561 6.13866 14.6041 6.39828 14.603C6.9573 14.6004 7.5167 14.6022 8.07571 14.6019C8.1605 14.6019 8.20315 14.5599 8.20365 14.4761C8.20928 13.4498 8.83583 12.6529 9.85219 12.3746C10.2041 12.2785 10.5542 12.1752 10.9049 12.0753C10.9488 12.0629 11.0025 12.0637 11.0014 11.9961C11.0002 11.9289 11.0134 11.865 10.9342 11.8188C10.6675 11.6626 10.4412 11.4576 10.2454 11.2188C10.0728 11.0081 10.0053 10.749 9.9186 10.4989C9.9156 10.4902 9.91447 10.4805 9.91222 10.4715C9.8732 10.3066 9.83681 10.1575 9.64884 10.0715C9.48339 9.99567 9.4046 9.81579 9.40423 9.63253C9.40273 9.17664 9.38509 8.71738 9.43049 8.26524C9.54079 7.16758 10.4187 6.24679 11.5045 6.04589C12.8743 5.79278 14.166 6.60842 14.5142 7.95806C14.5697 8.17362 14.587 8.40193 14.5967 8.62537C14.6102 8.93406 14.6008 9.24424 14.6001 9.55367C14.599 9.83344 14.4808 10.0385 14.22 10.156C14.19 10.1695 14.1634 10.2093 14.1525 10.2424C14.103 10.3937 14.058 10.5462 14.0148 10.6994C13.9075 11.0798 13.6663 11.3645 13.3669 11.6063C13.2723 11.6825 13.1748 11.7576 13.0694 11.8173C12.9849 11.865 12.9898 11.9349 13.0041 12.0014C13.0105 12.0318 13.0637 12.0633 13.1016 12.0746C13.4993 12.1921 13.9008 12.2988 14.2966 12.4219C15.1959 12.7017 15.7815 13.4929 15.7965 14.4351C15.7983 14.5468 15.8553 14.6026 15.9676 14.6026C16.0862 14.6026 16.2051 14.6011 16.3237 14.6034C16.3766 14.6045 16.4032 14.5921 16.4028 14.5309C16.4006 14.1216 16.4028 13.7119 16.3998 13.3025C16.3998 13.2699 16.3792 13.2304 16.3559 13.206C16.237 13.0821 16.1158 12.9601 15.9913 12.8418C15.9594 12.8117 15.9114 12.7993 15.8712 12.7779C15.7714 12.7235 15.6555 12.6859 15.5752 12.6105C15.3174 12.3694 15.0709 12.1163 14.8237 11.8639C14.5179 11.5518 14.5296 11.0783 14.8447 10.8181C15.1107 10.5988 15.514 10.5976 15.765 10.8342C16.0468 11.0997 16.3518 11.3524 16.5795 11.6607C16.8332 12.0036 17.1491 12.2777 17.432 12.5872C17.5475 12.7137 17.5997 12.8624 17.5993 13.0318C17.5993 13.5132 17.5993 13.9946 17.5993 14.4761C17.5993 14.5132 17.5993 14.5504 17.5993 14.5932H17.6008ZM12.0008 17.6034C13.3001 17.6034 14.5993 17.6027 15.899 17.6049C15.9804 17.6049 16.0063 17.5843 16.0055 17.5006C16.0018 17.0349 16.0018 16.5692 16.0055 16.1036C16.0063 16.0206 15.9819 15.9977 15.8997 15.9977C13.3012 15.9996 10.7024 15.9996 8.10385 15.9977C8.02319 15.9977 7.99618 16.018 7.99693 16.1025C8.00105 16.5617 7.9988 17.0214 7.9988 17.4806C7.9988 17.5623 8.0397 17.6031 8.12149 17.6031C9.41473 17.6031 10.7076 17.6031 12.0008 17.6031V17.6034ZM12.011 11.8004C12.056 11.7948 12.1254 11.7922 12.1918 11.7772C12.5929 11.6855 12.9189 11.4587 13.2284 11.2007C13.4051 11.0531 13.5402 10.8785 13.6059 10.6551C13.6708 10.4339 13.7376 10.2131 13.7987 9.99116C13.834 9.86311 13.876 9.81842 14.0058 9.79927C14.1259 9.78162 14.2009 9.70388 14.2005 9.59761C14.2002 9.49209 14.1217 9.41135 14.0043 9.39633C13.8689 9.37868 13.8126 9.3201 13.8017 9.18491C13.7822 8.94419 13.6216 8.77295 13.3845 8.73841C12.9227 8.67119 12.4878 8.52398 12.0849 8.28778C12.0185 8.2491 11.9712 8.25248 11.9074 8.2904C11.5135 8.52323 11.0877 8.66856 10.6356 8.73653C10.3729 8.77596 10.2232 8.93105 10.2004 9.19429C10.1899 9.31596 10.1279 9.38056 10.0071 9.39558C9.88333 9.41097 9.80229 9.49096 9.80192 9.59836C9.80192 9.704
7863 9.8762 9.78162 9.99701 9.79964C10.1261 9.81879 10.1718 9.86386 10.203 9.99229C10.2386 10.1376 10.2731 10.2833 10.3159 10.4268C10.406 10.7291 10.5196 11.0182 10.7879 11.2142C10.9188 11.31 11.0438 11.4152 11.18 11.5023C11.4261 11.66 11.6868 11.7858 12.0106 11.8012L12.011 11.8004ZM6.41404 15.0033C6.41404 15.0206 6.41254 15.0273 6.41404 15.0326C6.55924 15.4708 6.70406 15.9094 6.853 16.3466C6.86163 16.3717 6.90515 16.4003 6.93329 16.401C7.13289 16.4055 7.33286 16.4018 7.53283 16.4044C7.58911 16.4051 7.60186 16.3804 7.60111 16.3312C7.59923 16.2373 7.60036 16.1438 7.60111 16.0499C7.60261 15.763 7.76206 15.6026 8.04833 15.6019C8.33234 15.6011 8.61672 15.6019 8.90073 15.6019C11.243 15.6019 13.5852 15.6019 15.9275 15.6019C16.2516 15.6019 16.4013 15.7532 16.4017 16.0796C16.4017 16.1577 16.4055 16.2362 16.4006 16.3139C16.3965 16.3822 16.4175 16.4074 16.4895 16.4055C16.6767 16.4006 16.8643 16.4014 17.0515 16.4055C17.1172 16.407 17.1419 16.3815 17.1615 16.321C17.2725 15.9797 17.3884 15.6402 17.5021 15.3C17.5344 15.2038 17.5636 15.1066 17.5963 15.0037H6.41404V15.0033ZM14.1881 9.00503C14.2767 8.15446 14.0317 7.26672 13.1298 6.70982C12.3468 6.22651 11.3071 6.308 10.5999 6.90133C10.2945 7.15782 10.069 7.47101 9.93398 7.84766C9.8188 8.16836 9.75389 8.82065 9.82105 8.99376C9.82818 8.97762 9.83568 8.9641 9.84056 8.94945C9.95387 8.60434 10.1947 8.40081 10.5485 8.34598C10.9864 8.27801 11.3957 8.13794 11.7754 7.9115C11.9269 7.821 12.0733 7.82062 12.2252 7.91075C12.6026 8.13456 13.0078 8.27914 13.443 8.3441C13.7349 8.38766 13.9604 8.53788 14.1007 8.803C14.1334 8.86458 14.1566 8.93105 14.1881 9.00503ZM10.0428 12.7501C9.11871 12.9 8.51955 13.7599 8.61485 14.5955H10.251C10.0113 13.9969 9.94824 13.3867 10.0428 12.7501ZM15.385 14.597C15.5546 13.835 14.6916 12.7171 13.9604 12.7595C14.0542 13.3874 13.9897 13.9999 13.7514 14.597H15.385ZM13.5515 12.7344C13.5443 12.7333 13.5368 12.7325 13.5297 12.7314C13.514 12.7565 13.4971 12.7813 13.4821 12.8072C13.3564 13.0269 13.2299 13.2458 13.1065 13.4667C13.033 13.5981 12.9302 13.6841 12.7767 13.6987C12.7313 13.7032 12.6852 13.6995 12.624 13.6995C12.621 13.7517 12.6075 13.8076 12.6161 13.8602C12.6435 14.0232 12.6784 14.185 12.7129 14.3469C12.7302 14.4288 12.7272 14.5425 12.7786 14.5816C12.8356 14.6248 12.9448 14.6015 13.0315 14.6019C13.3181 14.6034 13.3177 14.6022 13.4269 14.3356C13.6021 13.9075 13.6183 13.4606 13.583 13.0081C13.5759 12.9165 13.5616 12.8256 13.5507 12.7348L13.5515 12.7344ZM11.3735 13.6893C11.1364 13.7213 11.0029 13.6552 10.8929 13.4636C10.7639 13.2391 10.6363 13.0134 10.5076 12.7885C10.4964 12.7689 10.4817 12.7513 10.4589 12.7194C10.4491 12.7633 10.4386 12.7896 10.4378 12.8162C10.4288 13.0998 10.4048 13.3844 10.4183 13.6672C10.433 13.9747 10.5166 14.271 10.6768 14.5388C10.6948 14.5688 10.7417 14.5974 10.7766 14.5992C10.9076 14.6064 11.0389 14.6007 11.1698 14.6026C11.2178 14.6034 11.2422 14.5891 11.252 14.5373C11.2944 14.3105 11.3439 14.0848 11.3844 13.8572C11.3938 13.8058 11.3781 13.7498 11.3735 13.6893ZM15.3478 11.0486C15.176 11.0524 15.08 11.1102 15.0274 11.2255C14.973 11.3446 14.9907 11.461 15.0826 11.5545C15.3403 11.8173 15.6003 12.078 15.8626 12.3367C15.9466 12.4197 16.0603 12.4171 16.1496 12.3378C16.1961 12.2965 16.2404 12.2518 16.2824 12.206C16.3709 12.1099 16.3728 11.9987 16.2813 11.9056C16.0292 11.6502 15.777 11.3949 15.5185 11.1459C15.4638 11.0933 15.3827 11.0678 15.3478 11.0486ZM16.8002 14.6019C16.9142 14.6019 17.0136 14.5977 17.1127 14.6034C17.1847 14.6075 17.2027 14.5797 17.2023 14.5117C17.2001 14.0179 17.2023 13.5241 17.1993 13.0307C17.1993 12.9803 17.1877 12.9161 17.1562 12.8827C16.9956 12.7133 16.8264 12.5522 16.6718 12.3998C16.575 12.4862 16.4801 12.5714 16.3762 12.6642C16.4846 12.7708 16.5814 12.8722 16.6853 12.9661C16.7709 13.0434 16.8043 13.1324 16.8024 13.2477C16.7972 13.5789 16.8005 13.9101 16.8005 14.2414V14.6022L16.8002 14.6019ZM12.3573 14.5951C12.319 14.4043 12.2845 14.2218 12.2428 14.0412C12.2383 14.0213 12.1933 13.9991 12.1659 13.9976C12.0759 13.992 11.9855 13.9954 11.8954 13.9954C11.7641 13.9954 11.7645 13.9954 11.7393 14.1291C11.7288 14.1839 11.7161 14.2384 11.7052 14.2936C11.6857 14.3923 11.6669 14.4915 11.6467 14.5951H12.3573ZM11.7003 12.9755C11.5169 12.7933 11.3469 12.624 11.1762 12.4557C11.1638 12.4437 11.1424 12.4279 11.1293 12.431C11.0258 12.4565 10.9237 12.4865 10.8123 12.5173C10.9676 12.7892 11.1124 13.0427 11.2632 13.3059C11.4111 13.194 11.5488 13.0896 11.7003 12.9751V12.9755ZM12.7411 13.3056C12.8923 13.0397 13.0375 12.7843 13.189 12.5177C13.0937 12.4903 13.0123 12.4708 12.9339 12.443C12.8791 12.4238 12.842 12.4351 12.8022 12.476C12.6698 12.6123 12.534 12.7456 12.3997 12.8801C12.37 12.9097 12.3415 12.9409 12.3059 12.9781C12.4552 13.0908 12.594 13.1948 12.7411 13.3056ZM11.4103 12.0723C11.3972 12.0904 11.3841 12.108 11.3713 12.126C11.584 12.3164 11.7968 12.5068 11.9817 12.6728C12.1783 12.476 12.3787 12.2755 12.5756 12.0783C12.1989 12.2349 11.8046 12.2338 11.4103 12.0723ZM12.0027 13.597C12.0556 13.597 12.1082 13.5981 12.1611 13.597C12.2027 13.5958 12.2473 13.6082 12.2627 13.5444C12.2762 13.4877 12.2796 13.4467 12.2211 13.4111C12.1472 13.366 12.0793 13.2706 12.0095 13.271C11.9352 13.2714 11.8635 13.3623 11.7874 13.4073C11.7273 13.4426 11.7101 13.4918 11.7454 13.5448C11.7634 13.5722 11.8091 13.5894 11.8451 13.5951C11.8965 13.6033 11.9502 13.5973 12.0031 13.5973L12.0027 13.597Z",fill:s||"var(--color-white)"})]}),a4=({backgroundColor:t,iconColor:s})=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{width:"24",height:"24",rx:"3.60494",fill:t||"var(--color-primary-dark-blue)"}),e.jsx("path",{d:"M16.5535 11.9306C16.5092 11.306 16.0715 10.8536 15.447 10.7995V9.47174C15.447 8.99473 15.3732 8.56689 15.2159 8.16855C14.6405 6.71783 13.2537 5.87199 11.685 6.0146C10.2687 6.14738 9.07366 7.16534 8.71959 8.54722C8.64582 8.83736 8.60648 9.14717 8.60648 9.48158V10.7995C8.06553 10.829 7.5 11.2667 7.5 12.0388C7.5 12.801 7.5 13.5583 7.5 14.3206C7.5 15.132 7.5 15.9483 7.5 16.7598C7.5 16.9073 7.52459 17.0548 7.56393 17.1827C7.72621 17.6941 8.16389 17.999 8.72451 17.999C9.50642 17.999 10.2933 17.999 11.
780752 17.999H15.2995C15.5798 17.999 15.8109 17.9351 16.0125 17.8023C16.3666 17.5663 16.5486 17.2122 16.5486 16.7598C16.5486 15.4074 16.5486 14.055 16.5486 12.7027V12.0289C16.5486 11.9945 16.5486 11.965 16.5486 11.9355L16.5535 11.9306ZM14.5126 10.7897C14.5126 10.7897 14.5126 10.7897 14.5077 10.7946C14.0946 10.7946 13.6815 10.7946 13.2685 10.7946C13.0619 10.7946 12.8554 10.7946 12.6488 10.7946H9.55068C9.55068 10.7946 9.55068 10.7946 9.54576 10.7946C9.54576 10.6126 9.54576 10.4258 9.54576 10.2438C9.54576 9.9045 9.54576 9.55534 9.5556 9.21602C9.59986 8.17839 10.4309 7.20468 11.4538 7.00306C12.5357 6.78668 13.4111 7.12108 14.0602 7.99152C14.3553 8.38985 14.5077 8.87178 14.5077 9.4324V9.82582C14.5077 10.1504 14.5077 10.47 14.5077 10.7946L14.5126 10.7897ZM15.6191 12.2847V16.6909C15.6191 16.7303 15.6191 16.7745 15.6191 16.8139C15.6044 16.9614 15.5306 17.0401 15.3831 17.0597C15.3536 17.0597 15.3191 17.0597 15.2798 17.0597H8.78352C8.71959 17.0597 8.67041 17.0597 8.63107 17.045C8.5278 17.0253 8.46387 16.9516 8.4442 16.8434C8.43928 16.804 8.43436 16.7647 8.43436 16.7204C8.43436 15.1615 8.43436 13.6075 8.43436 12.0486C8.43436 11.7978 8.53763 11.7437 8.64582 11.724C8.67533 11.7191 8.69992 11.7191 8.73926 11.7191C8.75401 11.7191 8.76877 11.7191 8.78352 11.7191H15.2208H15.3339C15.5109 11.7191 15.5994 11.8126 15.6093 11.9847C15.6142 12.083 15.6093 12.1814 15.6093 12.2797L15.6191 12.2847Z",fill:s||"var(--color-white)"}),e.jsx("path",{d:"M12.285 12.7598C11.685 12.6648 11.105 13.0248 10.935 13.5998C10.755 14.2098 11.035 14.8298 11.605 15.0748C11.625 15.0848 11.63 15.0898 11.63 15.0898C11.63 15.0898 11.63 15.0948 11.63 15.1148C11.63 15.3598 11.63 15.6098 11.63 15.8548C11.63 16.0848 11.77 16.2598 11.985 16.3048C12.03 16.3148 12.075 16.3198 12.12 16.3198C12.23 16.3198 12.33 16.2848 12.41 16.2248C12.52 16.1398 12.58 15.9998 12.585 15.8348C12.585 15.5898 12.585 15.3498 12.585 15.1048H12.485L12.6 15.0798C13.05 14.8848 13.31 14.5198 13.33 14.0648C13.33 13.3598 12.93 12.8598 12.285 12.7598ZM12.38 13.9748C12.38 14.0548 12.355 14.1248 12.305 14.1698C12.255 14.2198 12.19 14.2448 12.1 14.2398C12.02 14.2398 11.95 14.2148 11.9 14.1648C11.85 14.1148 11.825 14.0448 11.83 13.9598C11.83 13.7998 11.94 13.6948 12.105 13.6948C12.185 13.6948 12.255 13.7198 12.305 13.7698C12.355 13.8198 12.38 13.8898 12.38 13.9698V13.9748Z",fill:s||"var(--color-white)"})]}),s4=()=>{const t=_e(),s=()=>{document.cookie="token=; expires=Thu, 1 Jan 1970 00:00:00 UTC; path=/",t("/belepes")},n=[{id:0,type:"item",label:"Személyes adatok",icon:l4,href:"/profil/szemelyes-adatok"},{id:1,type:"item",label:"Biztonság / jelszavak",icon:a4,href:"/profil/biztonsag-jelszavak"},{id:2,type:"item",label:"Értesítések",icon:t4,href:"/profil/ertesitesek"},{id:3,type:"item",label:"Visszajelzés küldése / bejelentés",icon:Wk,href:"/profil/visszajelzes-kuldese-bejelentes"},{id:4,type:"item",label:"Kijelentkezés",icon:e4,action:"onLogout"}];return e.jsxs(e.Fragment,{children:[e.jsx(Tm,{}),e.jsxs("div",{className:"relative min-h-[calc(100vh-162px)] bg-[#F4F4F4]",children:[e.jsxs("div",{className:"mx-auto flex max-w-[1170px]",children:[e.jsxs("aside",{className:"flex w-[386px] flex-col p-[24px]",children:[e.jsx("span",{className:"mb-[59px] leading-[150%] font-[18px] font-bold text-(--color-primary-dark-blue)",children:"Profil"}),e.jsx(Wl,{menu:n,actions:{onLogout:s}})]}),e.jsxs("main",{className:"min-h-[calc(100vh-162px)] w-[calc(100%-386px)] bg-(--color-white) px-[24px] py-[32px] pb-[90px]",children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx(ct,{})]})]}),e.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-[calc(100vw/2-585px)] bg-(--color-white)"})]}),e.jsx(zm,{})]})};let d1=[];function _t(){const t=fo(),{currentPageTitle:s,title:n,style:r}=b(c=>c.config);return y.useEffect(()=>{window.document.title=`${s} - ${n}`},[s,n]),y.useEffect(()=>{document.querySelector("#favicon").href=`/style/${r}/favicon.ico`,document.body.className=`body--nd style--${r}`},[r]),y.useEffect(()=>{t!==d1&&(d1=t,window.document.documentElement.scrollTo({top:0,left:0,behavior:"instant"}))},[t]),e.jsxs(e.Fragment,{children:[e.jsx("a",{className:"bg-primary-dark-blue fixed top-[-100px] left-[24px] z-1000 rounded-[4px] px-[24px] py-[12px] text-white transition-[top] focus:top-[24px]",href:"#fo-tartalom",children:"Ugrás a fő tartalomhoz"}),e.jsx(ct,{})]})}const n4=({children:t})=>{const{title:s,sideMenu:n,activeItems:r}=b(h=>h.sideMenu),{hamburgerOpen:c,openNavMenu:u}=b(h=>h.hamburgerMenu),d=ie(),p=c&&u===null,x=u!==null&&!c,g=p||x;return y.useEffect(()=>{const h=()=>{window.innerWidth>1280?d(ge(!1)):window.innerWidth<1280&&d(V(null))};return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Tm,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${g?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${p?"top-[89px] h-[calc(100%-89px)]":""} ${x?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{d(c?ge(!c):V(null))}}),e.jsxs("div",{className:"relative min-h-[calc(100vh-162px)] bg-[#F4F4F4]",children:[e.jsxs("div",{className:"mx-auto flex max-w-[1170px]",children:[e.jsxs("aside",{className:"hidden w-[386px] flex-col p-[24px] xl:flex",children:[e.jsx("span",{className:"mb-[59px] leading-[150%] font-[18px] font-bold text-(--color-primary-dark-blue)",children:s}),e.jsx(Wl,{menu:n,activeItems:r})]}),e.jsxs("main",{className:"min-h-[calc(100vh-162px)] w-full bg-(--color-white) px-[24px] py-[32px] xl:w-[calc(100%-386px)] xl:pb-[90px]",children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),t||e.jsx(ct,{})]})]}),e.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-[calc(100vw/2-585px)] bg-(--color-white)"})]}),e.jsx(zm,{})]})},Ra=async()=>{const s=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/articles/categories",{headers:{Domain:location.hostname}})).json();return k.dispatch(p0(s)),s},i4=async(t,s)=>{const r=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/articles/${t}${s?`?token=${s}`:""}`,{headers:{Domain:location.hostname}})).json();return k.dispatch(f0(r)),r},at=async({request:t,params:s})=>{const n=s.id,c=new URL(t.url).searchParams.get("token"),u=await Ra(),d=await i4(n,c);d.error&&(location.href="/hirek"),k.dispatch(be(d.title)),k.dispatch(Ql({title:"Hírek",sideMenu:u.map(p=>{const x=p.articles.filter(g=>g.id!==d.id).slice(0,4).map(g=>({id:`article-${g.id}`,type:"item",label:g.title,href:`/hirek/${g.id}`,sorter:g.datePublished}));return d.articleCategories.find(g=>g.id===p.id)!==void 0&&x.push({id:`article-${d.id}`,type:"item",label:d.title,href:`/hirek/${d.id}`,sorter:d.datePublished}),x.sort((g,h)=>g.sorter-h.sorter),{id:`category-${p.id}`,type:"submenu",label:p.name,children:x}})}))},r4=t=>{let s="";for(const n of Object.keys(t))t[n]!==void 0&&(s=`${s}${s.length===0?"?":"&"}${n}=${t[n]}`);return s},$e=async(t=void 0,s=void 0,n=1)=>{const c=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/articles${r4({categoryId:t,limit:s,page:n})}`,{headers:{Domain:location.hostname}})).json();k.dispatch(m0({articles:c.articles,hasMore:c.hasMoreItems,page:n}))},o4=async t=>{const n=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/articles/featured/",{headers:{Domain:location.hostname}})).json();k.dispatch(h0(n))},Et=async()=>
78{k.dispatch(be("Hírek")),await $e(),await o4(),await Ra()},St=async t=>(k.dispatch(be("Hírek")),await $e(t.params.id,6),(await Ra()).find(n=>n.id==t.params.id)===void 0?{redirect:!0}:{redirect:!1}),pt=async()=>{const s=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/events/categories",{headers:{Domain:location.hostname}})).json();return k.dispatch(k0(s)),s},c4=t=>{let s="";for(const n of Object.keys(t))t[n]!==void 0&&(s=`${s}${s.length===0?"?":"&"}${n}=${t[n]}`);return s},Ct=async t=>{const n=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/events${c4({categoryId:t})}`,{headers:{Domain:location.hostname}})).json();k.dispatch(N0(n))},bt=async t=>(k.dispatch(be("Események")),await Ct(t.params.id),(await pt()).find(n=>n.id==t.params.id)===void 0?{redirect:!0}:{redirect:!1}),fj=async(t,s)=>{const r=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/events/${t}${s?`?token=${s}`:""}`,{headers:{Domain:location.hostname}})).json();return k.dispatch(_0(r)),r},It=async({request:t,params:s})=>{const n=s.id,c=new URL(t.url).searchParams.get("token"),u=await pt(),d=await fj(n,c);d.error&&(location.href="/esemenyek"),k.dispatch(be(d.title)),k.dispatch(Ql({title:"Események",sideMenu:u.map(p=>{const x=p.events.filter(g=>g.id!==d.id).slice(0,4).map(g=>({id:`event-${g.id}`,type:"item",label:g.title,href:`/esemenyek/${g.id}`,sorter:new Date(g.date_from).getTime()}));return d.eventCategories.find(g=>g.id===p.id)!==void 0&&x.push({id:`event-${d.id}`,type:"item",label:d.title,href:`/esemenyek/${d.id}`,sorter:new Date(d.date_from).getTime()}),x.sort((g,h)=>g.sorter-h.sorter),{id:`category-${p.id}`,type:"submenu",label:p.name,children:x}})}))},Ft=async()=>{k.dispatch(be("Események")),await pt()},lm=async t=>{const n=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/faqs",{headers:{Domain:location.hostname}})).json();k.dispatch(L0(n))},am=async()=>{const s=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/faqs/categories",{headers:{Domain:location.hostname}})).json();return k.dispatch(M0(s)),s},d4=async()=>{await lm(),await am()},x4=async()=>{const s=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/articles?categoryId=11",{headers:{Domain:location.hostname}})).json();k.dispatch(g0(s))},Yt=async()=>{const s=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/sliders",{headers:{Domain:location.hostname}})).json();return k.dispatch(E0(s)),s},de=async(t,s,n)=>{const c=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/static-pages/${t}${s?`?token=${s}`:""}${n?`&ver=${n}`:""}`,{headers:{Domain:location.hostname}})).json();return k.dispatch(Sm(c)),c},u4=async()=>{const s=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/articles/homesection/onkormanyzat",{headers:{Domain:location.hostname}})).json();k.dispatch(y0({articles:s}))},m4=async()=>{const s=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/articles/homesection/keruletunk",{headers:{Domain:location.hostname}})).json();k.dispatch(w0({articles:s}))};function Oc(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=Oc(n.children,s);if(r!==null)return r}}return null}const x1=async()=>{const{sitemap:t}=k.getState().sitemap;await $e(),await Ct(),await x4(),await Yt(),await Ra(),await u4(),await m4(),k.dispatch(be("Főoldal"));const s=Oc(t,"/fooldal/elso"),n=Oc(t,"/fooldal/masodik"),r=Oc(t,"/fooldal/Kiemelt-dolgok");return{staticSections:{fooldalElsoStatikus:s?await de(s.id):null,fooldalMasodikStatikus:n?await de(n.id):null,fooldalKiemeltDolgok:r?await de(r.id):null}}},Rm=async(t=null)=>{const n=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/organisations${t?`?parentId=${t}`:""}`,{headers:{Domain:location.hostname}})).json();k.dispatch(sj({organisations:n,parentId:t}))},p4=async()=>{await Rm(),k.dispatch(be("Telefonkönyv"))},f4=t=>{let s="";for(const n of Object.keys(t))t[n]!==void 0&&(s=`${s}${s.length===0?"?":"&"}${n}=${t[n]}`);return s},ho=async(t=void 0,s=void 0,n=1)=>{const c=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/documents${f4({categoryId:t,limit:s,page:n})}`,{headers:{Domain:location.hostname}})).json();k.dispatch(C0({documents:c.documents,hasMore:c.hasMoreItems,page:n,inProgress:!1}))},h4=async()=>{k.dispatch(be("Nyomtatványok")),await ho("7")},hj=async()=>{const s=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/documents/categories",{headers:{Domain:location.hostname}})).json();k.dispatch(z0({categories:s}))},g4=t=>{let s="";for(const n of Object.keys(t))t[n]!==void 0&&(n==="categoryIds"?s=`${s}${s.length===0?"?":"&"}categoryIds[]=${t[n]}`:s=`${s}${s.length===0?"?":"&"}${n}=${t[n]}`);return s},Wc=async(t=void 0,s=void 0,n=void 0,r=void 0,c=1)=>{const d=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/announcements${g4({limit:r,page:c,q:t,year:n,categoryIds:s})}`,{headers:{Domain:location.hostname}})).json();k.dispatch(q0({announcements:d.announcements,hasMore:d.hasMoreItems,page:c}))},j4=t=>{let s="";for(const n of Object.keys(t))t[n]!==void 0&&(s=`${s}${s.length===0?"?":"&"}${n}=${t[n]}`);return s},Am=async(t=void 0,s=1)=>{const r=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/decisions${j4({limit:t,page:s})}`,{headers:{Domain:location.hostname}})).json();k.dispatch(Z0({decisions:r.decisions,hasMore:r.hasMoreItems,page:s}))},v4=t=>{let s="";for(const n of Object.keys(t))t[n]!==void 0&&(n==="valid"?s=`${s}${s.length===0?"?":"&"}${n}=${t.valid===!0?1:0}`:s=`${s}${s.length===0?"?":"&"}${n}=${t[n]}`);return s},ed=async(t=void 0,s=void 0,n=void 0,r=void 0,c=void 0,u=1)=>{const p=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/regulations${v4({q:t,valid:s,type:n,year:r,limit:c,page:u})}`,{headers:{Domain:location.hostname}})).json();k.dispatch(lj({regulations:p.regulations,hasMore:p.hasMoreItems,page:u,regulationTypes:p.types}))},gj=async()=>{const s=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/issues/categories",{headers:{Domain:location.hostname}})).json();k.dispatch(ej({categories:s}))},b4=t=>{let s="";for(const n of Object.keys(t))if(t[n]!==void 0)if(n==="categoryIds")for(const r of t.categoryIds)s=`${s}${s.length===0?"?":"&"}categoryIds[]=${r}`;else s=`${s}${s.length===0?"?":"&"}${n}=${t[n]}`;return s},Pi=async(t=[],s=void 0,n=1)=>{const r=t.map(d=>d.id),u=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/issues${b4({categoryIds:r,limit:s,page:n})}`,{headers:{Domain:location.hostname}})).json();k.dispatch(J0({issues:u.issues,hasMore:u.hasMoreItems,page:n}))},Hu=async t=>{const n=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/representatives${t?`?type=${t}`:""}`,{headers:{Domain:location.hostname}})).json();k.dispatch(nj({representatives:n}))},y4=t=>{let s="";for(const n of Object.keys(t))t[n]!==void 0&&(s=`${s}${s.length===0?"?":"&"}${n}=${t[n]}`);return s},jj=async(t=1,s=12)=>{const r=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/publications${y4({page:t,limit:s})}`,{headers:{Domain:location.hostname}})).json();k.dispatch(cj({publications:r.publications,hasMore:r.hasMoreItems,page:t}))},w4=t=>{let s="";for(const n of Object.keys(t))if(t[n]!==void 0)if(n==="typeIds")for(const r of t.typeIds)s=`${s}${s.length===0?"?":"&"}typeIds[]=${r}`;else s=`${s}${s.length===0?"?":"&"}${n}=${t[n]}`;return s},Lm=async(t=16,s=1)=>{const c=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/smart-map${w4({typeIds:["6"],limit:t,page:s})}`,{headers:{Domain:location.hostname}})).json();k.dispatch(Y0({places:c.places,hasMore:c.hasMoreItems,page:s}))},vj=async()=>{const s=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/announcements/categories",{headers:{Domain:location.hostname}})).json();k.dispatch(ij({categories:s}))},N4=t=>{let s="";for(const n of Object.keys(t))if(t[n]!==void 0)if(n==="typeIds")for(const r of t.typeIds)s=`${s}${s.length===0?"?":"&"}typeIds[]=${r}`;else s=`${s}${s.length===0?"?":"&"}${n}=${t[n]}`;return s},bj=async(t,s=16,n=1)=>{const c=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/smart-map${N4({typeIds:[t],limit:s,page:n})}`,{headers:{Domain:location.hostname}})).json();k.dispatch(uj({places:c.places,hasMore:c.hasMoreItems,page:n}))},k4=async(t,s)=>
78{const r=new URL(s.url).searchParams.get("token"),c=await pt(),u=await fj(t,r);u.error&&(location.href="/esemenyek"),k.dispatch(be(u.title)),k.dispatch(Ql({title:"Események",sideMenu:c.map(d=>{const p=d.events.filter(x=>x.id!==u.id).slice(0,4).map(x=>({id:`event-${x.id}`,type:"item",label:x.title,href:`/esemenyek/${x.id}`,sorter:new Date(x.date_from).getTime()}));return u.eventCategories.find(x=>x.id===d.id)!==void 0&&p.push({id:`event-${u.id}`,type:"item",label:u.title,href:`/esemenyek/${u.id}`,sorter:new Date(u.date_from).getTime()}),p.sort((x,g)=>x.sorter-g.sorter),{id:`category-${d.id}`,type:"submenu",label:d.name,children:p}})}))},zt=async t=>{const s=k.getState().sitemap.sitemap,n=new URL(t.request.url),r=n.searchParams.get("token"),c=n.searchParams.get("ver"),u=n.pathname;function d(v,N=null){const C=N;for(const S of v){if(N=C,S.path===decodeURI(u))return{item:S,parent:N};if(S.children&&S.children.length>0){N=S;const L=d(S.children,N);if(L!==null)return L}}return null}const p=k.getState().config,x=d(s),g=n.pathname.split("/esemenyek/")[1];if(!isNaN(Number(g)))return await k4(g,t.request),{nav:{item:"event"}};if(x){switch(x.parent===null&&(x.parent={children:p.mainNav}),k.dispatch(be(x.item.title)),x.item.type){case"static":await de(x.item.id,r,c);break;case"events":await pt();break;case"news":await Ra();break;case"newscategories":await $e(x.item.params.categoryId),await Ra();break;case"eventcategories":await pt(),await Ct(x.item.params.categoryId);break;case"documents":await hj();break;case"documentcategories":await ho(x.item.params.categoryId,10);break;case"faq":await lm(),await am();break;case"faqcategories":await lm(),await am();break;case"issues":await gj(),await Pi();break;case"regulations":await ed(void 0,!0,"egyseges");break;case"decisions":await Am();break;case"announcements":await vj(),await Wc();break;case"representatives":await Hu();break;case"vicemayorsonly":await Hu("representativesonly");break;case"representativesonly":await Hu("vicemayorsonly");break;case"publications":await jj();break;case"organisation_contacts":await Rm();break;case"card_acceptors":await Lm();break;case"smartmaptypes":await bj(x.item.params.typeId);break}k.dispatch(Ql({title:k.getState().config.title,sideMenu:x.parent.children.map(v=>({id:v.id,type:"item",label:v.title,href:v.path}))}))}return{nav:x}},Gt=async t=>{k.dispatch(be("Dokumentumok")),await ho(t.params.id),await hj()},_4=async()=>{await Wc(),await vj(),k.dispatch(be("Hirdetmények")),k.dispatch(Ql({title:"Hirdetmények",sideMenu:[]}))},E4=async t=>{const n=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/announcements/${t}`,{headers:{Domain:location.hostname}})).json();return k.dispatch(V0({announcement:n})),n},S4=async t=>{const s=await E4(t.params.slug);k.dispatch(be(s.title)),k.dispatch(Ql({title:s.title,sideMenu:[]}))},C4=async()=>{await Am(),k.dispatch(be("Határozatok")),k.dispatch(Ql({title:"Határozatok",sideMenu:[]}))},z4=async t=>{const n=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/decisions/${t}`,{headers:{Domain:location.hostname}})).json();return k.dispatch(X0({decision:n})),n},T4=async t=>{const s=await z4(t.params.slug);k.dispatch(be(s.title)),k.dispatch(Ql({title:s.title,sideMenu:[]}))},R4=async()=>{await ed(void 0,!0,"egyseges"),k.dispatch(be("Rendeletek")),k.dispatch(Ql({title:"Rendeletek",sideMenu:[]}))},A4=async t=>{const n=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/regulations/${t}`,{headers:{Domain:location.hostname}})).json();return k.dispatch(aj({regulation:n})),n},L4=async t=>{const s=await A4(t.params.slug);k.dispatch(be(s.title)),k.dispatch(Ql({title:s.title,sideMenu:[]}))},M4=async t=>{const n=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/issues/${t}`,{headers:{Domain:location.hostname}})).json();return k.dispatch(W0({issue:n})),n},D4=async t=>{const s=await M4(t.params.slug);k.dispatch(be(s.name)),k.dispatch(Ql({title:s.title,sideMenu:[]}))},$4=async()=>{await gj(),await Pi(),k.dispatch(be("Ügyek")),k.dispatch(Ql({title:"Ügyek",sideMenu:[]}))},O4=async(t,s=void 0,n=1)=>{let r="static";switch(s){case"oldalak":r="static";break;case"rendeletek":r="regulations";break;case"hatarozatok":r="decisions";break;case"ugyek":r="issues";break;case"hirdetmenyek":r="announcements";break;case"dokumentumok":r="documents";break;case"esemenyek":r="events";break;case"gyik":r="faq";break;case"telefonkonyv":r="organisation_contacts";break;case"kiadvanyok":r="publications";break;case"kepviselok":r="representatives";break;case"hirek":r="news";break}return{...await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/search?q=${t}&page=${n}${r?`&type=${r}`:""}`,{headers:{Domain:location.hostname}})).json(),selectedType:r,page:n}},ee=async t=>{const s=t.params.type||"oldalak",n=Number(t.params.page||"1"),r=await O4(t.params.search,s,n);let c=[];return["static","regulations","decisions","announcements","issues","documents","events","faq","organisation_contacts","publications","representatives","news"].forEach(u=>{if(!r.resultCounts[u]||r.resultCounts[u]===0)return;let d="",p="";switch(u){case"regulations":d="rendeletek",p="Rendeletek";break;case"decisions":d="hatarozatok",p="Határozatok";break;case"announcements":d="hirdetmenyek",p="Hirdetmények";break;case"issues":d="ugyek",p="Ügyek";break;case"documents":d="dokumentumok",p="Dokumentumok";break;case"events":d="esemenyek",p="Események";break;case"faq":d="gyik",p="Gyakran Ismételt Kérdések";break;case"organisation_contacts":d="telefonkonyv",p="Telefonkönyv";break;case"publications":d="kiadvanyok",p="Kiadványok";break;case"representatives":d="kepviselok",p="Képviselők";break;case"news":d="hirek",p="Hírek";break;case"static":default:d="oldalak",p="Oldalak"}c.push({id:d,href:`/kereses/${d}/${t.params.search}`,label:p,results:r.resultCounts[u]||0})}),k.dispatch(be("Keresés")),k.dispatch(Ql({activeItems:[s],title:"",sideMenu:c})),{...r,sideMenu:c,search:t.params.search}},H4=async()=>{const s=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/articles?categoryId=51",{headers:{Domain:location.hostname}})).json();k.dispatch(b0(s))};function sm(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=sm(n.children,s);if(r!==null)return r}}return null}const U4=async()=>{const{sitemap:t}=k.getState().sitemap,s=sm(t,"/kozigazgatas/Ugyintezes/e-ugyintezes-ujbudan/rolunk1"),n=sm(t,"/kozigazgatas/Ugyintezes/e-ugyintezes-ujbudan/rolunk2");return await H4(),k.dispatch(be("E-Ügyintézés")),{staticSections:{rolunk1:s?await de(s.id):null,rolunk2:n?await de(n.id):null}}};function yj(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=yj(n.children,s);if(r!==null)return r}}return null}const G=({className:t,color:s,items:n,separatorColor:r})=>{const{sitemap:c}=b(x=>x.sitemap),u=fo(),p=n||(()=>{if(u.length===0)return[];const x=[],v=u[u.length-1].pathname.split("/");let N="";for(const C of v.slice(1)){const S=yj(c,`/${N}${C}`);S&&S.type!=="collection_page"&&x.push({href:`/${N}${C}`,title:S?S.title:C}),N=`${N}${C}/`}return x})();return e.jsxs("div",{className:`flex flex-wrap items-center justify-center md:flex-nowrap md:justify-start ${t}`,children:[e.jsxs("div",{className:"flex shrink-0 items-center justify-start",children:[e.jsx("img",{alt:"Főoldal",height:12,src:`/svgs/home_icon${s?`_${s}`:""}.svg`,width:12}),e.jsx(_,{to:"/",className:"breadcrumb-link mx-[6px] text-[12px] leading-[150%]",style:{color:s||"var(--color-dark-gray)"},children:"Főoldal"})]}),p.map((x,g)=>e.jsxs("div",{className:"flex items-center justify-start",style:g===p.length-1?{flexShrink:1}:{flexShrink:0},children:[e.jsx("div",{className:"text-[12px] leading-[110%] font-bold",style:{color:r||"#50830B"},children:"\\"}),e.jsx("div",{className:"flex items-center",children:e.jsx(_,{to:g===p.length-1?void 0:x.href,className:`breadcrumb-link mx-[6px] line-clamp-1 text-[12px] leading-[150%] ${g===p.length-1?"font-bold":""}`,style:g===p.length-1?{color:s||"var(--color-dark-blue)"}:{color:s||"var(--color-dark-gray)"},children:x.title})})]},g))]})},cn=({background:t,color:s,className:n,label:r,onClose:c})=>e.jsxs("div",{style:{backgroundColor:t||"var(--color-mid-gray)",color:s||"var(--color-black)"},className:`flex h-fit gap-[6px] rounded-[8px] px-[8px] py-[4px] text-[10px] leading-[100%] font-bold uppercase ${n}`,children:[r,c&&e.jsx("img",{alt:"Bezárás",className:"cursor-pointer",height:8,src:"/svgs
78/tag_close_icon.svg",width:8,onClick:c})]}),lo=({date:t,format:s="YYYY. MM. DD."})=>(s=s.replaceAll("YYYY",t.getFullYear()),s=s.replaceAll("MM",(t.getMonth()+1).toString().padStart(2,"0")),s=s.replaceAll("DD",t.getDate().toString().padStart(2,"0")),s=s.replaceAll("hh",t.getHours().toString().padStart(2,"0")),s=s.replaceAll("mm",t.getMinutes().toString().padStart(2,"0")),s=s.replaceAll("ss",t.getSeconds().toString().padStart(2,"0")),s),et=({className:t,tags:s,updated:n})=>e.jsxs("div",{className:`flex items-center gap-[12px] ${t}`,children:[(s||[]).map(r=>e.jsx(_,{to:r.href,children:e.jsx(cn,{background:r.background_color,color:r.text_color,label:r.name})},r.id)),e.jsx("span",{className:"text-[10px] font-bold text-(--color-dark-gray) uppercase",children:n&&e.jsx(lo,{date:n})}),e.jsx("span",{className:"ml-[auto] text-[10px] font-bold text-(--color-dark-gray) uppercase",children:"Megosztás:"}),e.jsx(_,{to:`https://www.facebook.com/sharer/sharer.php?u=${location.href}`,target:"_blank",children:e.jsx("img",{alt:"Megosztás a Facebookon",height:24,src:"/svgs/facebook_share_icon.svg",width:24})})]}),De=({className:t})=>e.jsxs("div",{className:`flex w-full ${t}`,children:[e.jsx("div",{className:"h-[1px] w-[7.88%] bg-(--color-primary-dark-blue)"}),e.jsx("div",{className:"h-[1px] w-[7.88%] bg-(--color-lightblue)"}),e.jsx("div",{className:"h-[1px] w-[7.88%] bg-(--color-primary-green)"}),e.jsx("div",{className:"h-[1px] w-[7.88%] bg-(--color-lighgreen)"}),e.jsx("div",{className:"h-[1px] w-[68.48%] bg-(--color-mid-gray)"})]}),hl=({className:t,title:s,images:n,imageAttribute:r="imageUrl",multiLine:c=!1})=>{const[u,d]=y.useState(null),[p,x]=y.useState("90%"),[g,h]=y.useState("90%"),v=L=>F=>{document.querySelector(".close-button").focus(),F.preventDefault(),d(L),x(F.target.naturalWidth),h(F.target.naturalHeight)},N=L=>{L.preventDefault();const F=n.findIndex(Q=>Q[r]===u[r]),T=F===0?n[n.length-1]:n[F-1];d(T);const Y=document.querySelector(`.im[data-image-id="${T.id}"]`);x(Y.naturalWidth),x(Y.naturalHeight)},C=L=>{L.preventDefault();const F=n.findIndex(Q=>Q[r]===u[r]),T=F===n.length-1?n[0]:n[F+1];d(T);const Y=document.querySelector(`.im[data-image-id="${T.id}"]`);x(Y.naturalWidth),x(Y.naturalHeight)},S=L=>{L.key==="Escape"&&d(null),L.key==="ArrowLeft"&&N(),L.key==="ArrowRight"&&C()};return y.useEffect(()=>(window.addEventListener("keydown",S),()=>{window.removeEventListener("keydown",S)}),[u]),e.jsxs("div",{className:t,children:[e.jsx("div",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:s}),e.jsx(De,{}),c?e.jsx("div",{className:"flex flex-wrap gap-[24px] pt-[24px]",children:n.map((L,F)=>e.jsx(_,{to:L[r],onClick:v(L),className:"relative aspect-square w-[calc(50%-12px)] md:w-[calc(33.3333%-16px)] xl:w-[calc(25%-18px)]",children:e.jsx("img",{"data-image-id":L.id,alt:L.title||L.imageTitle,className:"im absolute top-0 left-0 h-[100%] w-[100%] object-cover object-center",src:L[r]})},F))}):e.jsx("div",{className:"w-full overflow-y-auto",children:e.jsx("div",{className:"flex gap-[24px] pt-[24px] pb-[7.5px]",children:n.map((L,F)=>e.jsx(_,{to:L[r],onClick:v(L),className:"relative aspect-square w-[274px] shrink-0",children:e.jsx("img",{"data-image-id":L.id,alt:L.title||L.imageTitle,className:"im absolute top-0 left-0 h-[100%] w-[100%] object-cover object-center",src:L[r]})},F))})}),e.jsxs("div",{style:u===null?{pointerEvents:"none",opacity:0}:{opacity:1,pointerEvents:"all"},className:"fixed top-0 left-0 z-[100] flex h-[100%] w-[100%] items-center justify-center bg-[#000000C0]",children:[e.jsx("a",{tabIndex:u===null?-1:void 0,href:"#",className:"close-button absolute top-[25px] right-[25px] translate-[50%] min-[500px]:top-[2.5%] min-[500px]:right-[2.5%]",onClick:L=>{L.preventDefault(),d(null)},children:e.jsx("img",{alt:"Bezárás",src:"/svgs/close.svg"})}),n.length>1&&e.jsx("a",{tabIndex:u===null?-1:void 0,className:"absolute top-[50%] left-[2.5%] translate-[-50%]",onClick:N,href:"#",children:e.jsx("img",{alt:"Előző kép",src:"/svgs/left_arrow_white.svg"})}),u&&e.jsxs("div",{className:"top-0 left-0 flex h-full w-full flex-col items-center justify-center",children:[e.jsx("img",{alt:u.title||u.imageTitle,style:{width:"90%",height:"90%",maxWidth:p,maxHeight:g},className:"pointer-none object-contain object-center",src:u[r]}),e.jsx("span",{className:"text-center text-white",children:u.title||u.imageTitle})]}),n.length>1&&e.jsx("a",{tabIndex:u===null?-1:void 0,className:"absolute top-[50%] right-[2.5%] translate-[+50%] rotate-180",href:"#",onClick:C,children:e.jsx("img",{alt:"Következő kép",src:"/svgs
78/left_arrow_white.svg"})})]})]})},Nl=({className:t,url:s,title:n})=>e.jsx("iframe",{className:`aspect-video w-full ${t}`,src:s,title:n,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0}),za=({title:t,link:s,icon:n})=>{const{style:r}=b(p=>p.config),c=s!=null&&s.startsWith("https://")||s!=null&&s.startsWith("http://")?s:`https://api.ujbuda.hu/files/Documents/file/${s}`,u=c==null?void 0:c.endsWith(".pdf"),d=async p=>{p.preventDefault();const x=await fetch(c),g=document.createElement("a"),h=new Blob([await x.arrayBuffer()]);g.href=URL.createObjectURL(h);const v=c.substring(c.lastIndexOf("/")+1);g.setAttribute("download",v),g.click()};return e.jsxs("div",{className:"flex w-full flex-row items-center justify-between rounded-sm bg-white px-6 py-4 shadow-lg",children:[e.jsxs("div",{className:"flex flex-row items-center",children:[n&&e.jsx("div",{className:"bg-primary-dark-blue flex h-[32px] w-[32px] items-center justify-center rounded-sm p-2 text-white",children:e.jsx("img",{src:"/svgs/navbar_icons/sheets_icon.svg",alt:"Ikon"})}),e.jsx("h3",{className:"text-primary-dark-blue line-clamp-1 overflow-hidden text-[18px] leading-[150%] font-bold break-all",children:t})]}),e.jsx("a",{href:c,target:"_blank",className:`button--${r} ${!u&&"pointer-events-none opacity-[0.33]"} bg-primary-dark-blue ml-auto h-6 w-6 shrink-0 rounded-full p-[6px] text-white`,children:e.jsx("img",{src:"/svgs/eye_icon.svg",alt:"Megtekintés",className:["akh","gkh"].includes(r)?"brightness-0":""})}),e.jsx("a",{href:c,className:`button--${r} bg-primary-dark-blue ml-6 h-6 w-6 shrink-0 rounded-full p-[6px] text-white`,onClick:d,children:e.jsx("img",{src:"/svgs/download_icon.svg",alt:"Letöltés",className:["akh","gkh"].includes(r)?"brightness-0":""})})]})},gl=({className:t,title:s,documents:n})=>e.jsxs("div",{className:t,children:[e.jsx("div",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:s}),e.jsx(De,{}),e.jsx("div",{className:"flex flex-col gap-[24px] pt-[24px]",children:n.map(r=>e.jsx(za,{title:r.name,link:r.file},r.id))})]}),jl=({className:t,title:s,links:n})=>e.jsxs("div",{className:t,children:[e.jsx("div",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:s}),e.jsx(De,{}),e.jsx("div",{className:"flex flex-col gap-[24px] pt-[24px]",children:n.map((r,c)=>e.jsx(_,{className:"related-link",to:r.link||r.url,target:"_blank",rel:"noopener noreferrer",children:e.jsxs("div",{className:"flex w-full flex-row items-center justify-between rounded-sm bg-white px-6 py-4 shadow-lg",children:[e.jsx("div",{className:"flex flex-row items-center gap-2",children:e.jsx("span",{className:"text-primary-dark-blue line-clamp-1 overflow-hidden text-[18px] leading-[150%] font-bold",children:r.title||r.name})}),e.jsx("img",{alt:"Megnyitás",height:24,src:"/svgs/link.svg",width:24})]})},c))})]}),ua=({src:t,alt:s,className:n})=>{const[r,c]=y.useState(!t);return e.jsxs("div",{className:`relative h-full overflow-hidden ${n}`,children:[e.jsx("div",{className:`absolute inset-0 z-10 transition-opacity duration-500 ${r?"opacity-0":"opacity-100"}`,children:e.jsx("img",{alt:s,src:"/placeholder.svg"})}),t?e.jsx("img",{src:t,alt:s,className:`h-full w-full object-contain transition-opacity duration-500 ${r?"opacity-100":"opacity-0"}`,onLoad:()=>c(!0),loading:"lazy"}):e.jsx("img",{alt:s,src:"/placeholder.svg"})]})},P4=["JAN","FEB","MÁR","ÁPR","MÁJ","JÚN","JÚL","AUG","SZE","OKT","NOV","DEC"];function B4(t){const[s,n]=t.trim().split("T"),[r,c,u]=s.split("-").map(d=>parseInt(d,10));return{month:P4[c-1]||"",day:String(u).padStart(2,"0"),time:n.substring(0,5)}}function I4({dateStr:t,endDateStr:s}){const{month:n,day:r,time:c}=B4(t),u=s===t.replace("00:00:00","23:59:00");return e.jsxs("div",{className:"flex min-h-[79px] w-[42px] flex-col items-center justify-center",children:[e.jsx("span",{className:"font-third-bold text-[18px] leading-[120%] text-black uppercase",children:n}),e.jsx("div",{className:"font-third-bold text-primary-dark-blue event-custom-color text-[32px] leading-[120%]",children:r}),!u&&e.jsx("span",{className:"bg-primary-dark-blue event-custom-color-bg font-third-bold w-full rounded-sm py-1 text-center text-[12px] leading-[100%] text-white",children:c})]})}const Nt=({event:t})=>e.jsxs("div",{className:"flex w-full flex-col rounded-sm",children:[e.jsx("div",{className:`flex items-center justify-center overflow-hidden rounded-t-sm ${t.size==="M"?"min-h-[203px]":"min-h-fit"}`,children:e.jsx(ua,{src:t.image||"/placeholder.svg",alt:t.title,className:"aspect-[16/9] w-full"})}),e.jsxs("div",{className:"border-gray flex w-full flex-row items-center justify-between rounded-b-sm border p-5",children:[e.jsx(I4,{dateStr:t.date_from,endDateStr:t.date_to}),e.jsxs("div",{className:"flex w-fit max-w-[calc(100%-50px)] flex-col",children:[e.jsx("h3",{className:`font-third-bold line-clamp-2 w-fit leading-[130%] text-black ${t.size==="M"?"text-[18px]":"text-[14px]"}`,children:t.title}),e.jsxs("p",{className:`font-third-regular w-[250px] max-w-full leading-[120%] text-black ${t.size==="M"?"text-[12px]":"text-[10px] break-all"}`,children:[t.address,e.jsx("br",{}),t.place]})]})]})]}
78),Ll=({className:t,title:s,events:n})=>e.jsxs("div",{className:t,children:[e.jsx("div",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:s}),e.jsx(De,{}),e.jsx("div",{className:"flex flex-wrap gap-[24px] pt-[24px]",children:n.map(r=>e.jsx(_,{to:`/esemenyek/${r.id}`,className:"w-full md:w-[calc(50%-12px)] xl:w-[calc(33.3333%-16px)]",children:e.jsx(Nt,{event:{...r,size:"m"}})},r.id))})]}),Fi=()=>{const{article:t}=b(u=>u.article),{style:s}=b(u=>u.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(u=>({...u,href:`/hirek/kategoriak/${u.id}`})),c=(t?t.articleCategories:[]).find(u=>u.id===51)!==void 0;return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:c?[{title:"Videógaléria",href:"/videogaleria"},{title:t==null?void 0:t.title}]:[{title:"Hírek",href:"/hirek"},n,{title:t==null?void 0:t.title}]}),e.jsx("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px] w-full",src:t==null?void 0:t.image}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsx("div",{className:`article max-w-3xl article--${s} text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},Xe=({article:t,borderColor:s,className:n,size:r,tv:c})=>{var d;const{style:u}=b(p=>p.config);return e.jsxs("article",{className:`border-b pb-[12px] ${n||""}`,style:{borderColor:s||"var(--color-mid-gray)"},children:[r!=="s"?e.jsxs("div",{className:"relative mb-[8px] overflow-hidden rounded-[4px]",children:[e.jsx(ua,{alt:((d=t.headline_image_title)==null?void 0:d.length)===0?t.title:t.headline_image_title,className:`aspect-[16/9] w-full object-center ${t.listImage?"object-cover":"object-contain"}`,src:t.listImage||"/placeholder.svg"}),e.jsx("div",{className:"absolute top-[15px] left-[15px]",children:u!=="ujbudaonline"&&c!==!0&&t.articleCategories&&t.articleCategories.length>0&&e.jsx(cn,{background:t.articleCategories[0].background_color,color:t.articleCategories[0].text_color,label:t.articleCategories[0].name})})]}):e.jsx("div",{className:"mb-[6px] flex",children:t.articleCategories&&t.articleCategories.length>0&&e.jsx(cn,{color:t.articleCategories[0].text_color,background:t.articleCategories[0].background_color,label:t.articleCategories[0].name})}),e.jsx("div",{className:`font-secondary-bold text-(--color-primary-dark-blue) ${r==="l"&&"line-clamp-3 text-[32px] leading-[120%]"} ${r==="m"&&c!==!0&&"line-clamp-3"} line-clamp-2 [display:-webkit-box] overflow-hidden text-[16px] leading-[150%] text-ellipsis text-(--color-black) [-webkit-box-orient:vertical] [-webkit-line-clamp:2] ${r==="s"&&"line-clamp-1!"} ${r!=="s"&&"h-[48px] leading-[24px] break-words"}`,children:t.title}),c!==!0&&r==="s"&&e.jsx("div",{className:"line-clamp-2 h-[38px] text-[14px] leading-[19px] overflow-ellipsis text-(--color-black)",children:t.lead})]})},ce=({className:t})=>{const{style:s}=b(n=>n.config);return e.jsxs("div",{className:`flex w-full flex-col gap-[32px] ${t}`,children:[e.jsx("div",{children:e.jsx("img",{alt:"Az oldal nem található",src:"/svgs
78/footer_dark_blue_image.svg",className:"h-[228px]"})}),e.jsx("div",{className:`title--${s} font-secondary-bold text-[44px] leading-[120%] text-(--color-primary-dark-blue)!`,children:"A keresett oldalon jelenleg nem érhető el tartalom ..."}),e.jsx("div",{children:e.jsx(_,{to:"/",children:e.jsx("button",{className:`button--${s} cursor-pointer rounded-[4px] bg-(--color-primary-dark-blue)! px-[24px] py-[18px] text-[12px] leading-[110%] font-bold text-(--color-white)! mb-4`,children:"Vissza a főoldalra"})})})]})},Fn=({title:t})=>{const{style:s}=b(c=>c.config),{categories:n}=b(c=>c.article),r=n.reduce((c,u)=>c+u.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:t?void 0:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:t||"Hírek"}),e.jsx("div",{className:"flex flex-col gap-[48px]",children:n.map(c=>e.jsxs("div",{className:"flex-col",children:[e.jsxs("div",{className:"flex w-full justify-between",children:[e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:c.name}),e.jsxs(_,{className:"flex items-center gap-[6px]",to:`/hirek/kategoriak/${c.id}`,children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold text-(--color-link-blue)",children:"További hírek"}),e.jsx("img",{alt:"Jobbra mutató nyíl",height:8,src:"/svgs/right_arrow_blue.svg",width:12})]})]}),e.jsx(De,{className:"mb-[16px]"}),e.jsx("div",{className:"w-full",children:e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:c.articles&&c.articles.slice(0,6).map(u=>e.jsx(_,{to:`/hirek/${u.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:u})},u.id))})})]}))}),r===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},xn=({title:t,categoryId:s})=>{const n=_e(),{redirect:r}=oe();y.useEffect(()=>{r===!0&&n("/hirek")},[]);const c=ie(),u=Be(),{style:d}=b(v=>v.config),{articles:p,categories:x}=b(v=>v.article),g=x.find(v=>v.id==(s||u.id)),h=y.useCallback(async()=>{var N;const v=(N=document.querySelector(".lazy-loader"))==null?void 0:N.getBoundingClientRect();v&&v.top>0&&v.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(c(fl(!0)),await $e(g.id,6,k.getState().article.page+1))},[g.id,k.getState().article.articles,c]);return y.useEffect(()=>(window.addEventListener("scroll",h),()=>{window.removeEventListener("scroll",h)}),[h]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:t?void 0:[{title:"Hírek",href:"/hirek"},{title:g==null?void 0:g.name}]}),e.jsx("h1",{className:`title--${d} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:t||"Hírek"}),(t||g)&&e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"flex w-full justify-between",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:t||g.name})}),e.jsx(De,{className:"mb-[16px]"}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:p&&p.map(v=>e.jsx(_,{to:`/hirek/${v.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:v})},v.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]})]})},Yn=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{events:c,categories:u}=b(p=>p.event),d=u.find(p=>t?t==p.id:p.id==r.id);return e.jsxs("div",{children:[d&&e.jsxs("div",{className:"mx-auto mt-[64px] mb-[96px] flex w-full max-w-[1170px] flex-col px-5 xl:px-0",children:[e.jsx("div",{className:"flex w-full justify-between",children:e.jsx("h1",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:d.name})}),e.jsx(De,{className:"mb-[16px]"}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:c&&c.map(p=>e.jsx(_,{to:`/esemenyek/${p.id}`,className:"w-full md:w-[calc(100%/2-12px)] xl:w-[calc(100%/3-16px)]",children:e.jsx(Nt,{event:{...p,size:"M"}})},p.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(d===void 0||c.length===0)&&e.jsx("div",{className:"mx-auto flex h-[600px] w-full max-w-[1170px] items-center justify-center px-5 xl:px-0",children:e.jsx(ce,{className:"items-center text-center"})})]})},Tt=()=>{const{event:t}=b(c=>c.event),s=t!=null&&t.eventCategories&&(t==null?void 0:t.eventCategories.length)>0?{title:t==null?void 0:t.eventCategories[0].name,href:`/esemenyek/kategoriak/${t==null?void 0:t.eventCategories[0].id}`}:{title:"",href:""},n=new Date(t.date_from),r=new Date(t.date_to);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"}
78,s,{title:t==null?void 0:t.title}]}),e.jsx("div",{className:"flex flex-col gap-[24px] xl:flex-row",children:e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxs("div",{className:"flex flex-col items-center gap-4 md:flex-row md:items-start",children:[(t==null?void 0:t.image)&&e.jsx(ua,{alt:t==null?void 0:t.title,className:"h-auto w-full rounded-[8px] md:w-[300px] xl:w-[600px]",src:t==null?void 0:t.image}),e.jsxs("div",{className:"w-full",children:[e.jsx("h1",{className:"font-secondary-bold mb-[24px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsxs("div",{className:"flex items-center gap-[8px] text-[14px] leading-[150%] font-bold",children:[e.jsx("img",{alt:"Óra",height:24,src:"/svgs/clock.svg",width:24}),e.jsx("span",{children:n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()?e.jsxs(e.Fragment,{children:[e.jsx(lo,{format:"YYYY. MM. DD. hh:mm",date:n})," - ",e.jsx(lo,{format:"hh:mm",date:r})]}):e.jsxs(e.Fragment,{children:[e.jsx(lo,{format:"YYYY. MM. DD. hh:mm",date:n})," -",e.jsx(lo,{format:"YYYY. MM. DD. hh:mm",date:r})]})})]}),((t==null?void 0:t.address)||(t==null?void 0:t.place))&&e.jsxs("div",{className:"mb-[24px] flex items-center gap-[8px] text-[14px] leading-[150%] underline",children:[e.jsx("img",{alt:"Gombostű",height:24,src:"/svgs/pin.svg",width:24}),e.jsxs(_,{to:`https://www.google.com/maps/dir/?api=1&destination=${t==null?void 0:t.address}`,target:"_blank",children:[t==null?void 0:t.address,e.jsx("br",{}),t==null?void 0:t.place]})]})]})]}),e.jsxs("div",{className:"flex flex-col items-center gap-4 md:flex-row md:items-start",children:[(t==null?void 0:t.poster)&&e.jsx(ua,{alt:t==null?void 0:t.title,className:"h-auto w-full rounded-[8px] md:w-[300px] xl:w-[600px]",src:t==null?void 0:t.poster}),e.jsx("div",{className:`event-description text-[18px] leading-[150%] ${t!=null&&t.poster?"md:ml-4 md:w-auto":""} w-full`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.description}})]})]})}),t.gdpr_file&&e.jsx("div",{className:"mx-auto mt-[64px] mb-[64px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsx("a",{className:"text-[18px] leading-[150%] text-(--color-lightblue) underline",href:t.gdpr_file,children:"Adatvédelmi nyilatkozat"})}),t.documents&&t.documents.length>0&&e.jsx("div",{className:"mx-auto mb-[64px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t.documents})}),t.related_links&&t.related_links.length>0&&e.jsx("div",{className:"mx-auto mb-[64px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t.related_links})})]})},Gn=({title:t})=>{const{style:s}=b(r=>r.config),{categories:n}=b(r=>r.event);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:t?void 0:[{title:s==="palyazatok"?"Pályázatok és események":"Események"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:t||s==="palyazatok"?"Pályázatok és események":"Események"}),e.jsx("div",{className:"flex flex-col gap-[48px]",children:n.map(r=>e.jsxs("div",{className:"flex-col",children:[e.jsxs("div",{className:"flex w-full justify-between",children:[e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:r.name}),e.jsxs(_,{className:"flex items-center gap-[6px]",to:`/esemenyek/kategoriak/${r.id}`,children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold text-(--color-link-blue)",children:s==="palyazatok"?"Továbbiak":"További események"}),e.jsx("img",{alt:"Jobbra mutató nyíl",height:8,src:"/svgs/right_arrow_blue.svg",width:12})]})]}),e.jsx(De,{className:"mb-[16px]"}),e.jsx("div",{className:"w-full",children:e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:r.events&&r.events.slice(0,6).map(c=>e.jsx(_,{to:`/esemenyek/${c.id}`,className:"w-full md:w-[calc(50%-12px)] xl:w-[calc(33.3333%-18px)]",children:e.jsx(Nt,{event:{...c,size:"M"}})},c.id))})})]}))})]})},F4=({activeTab:t="all",categories:s=[],onSelect:n})=>{const c=[{id:"all",name:"Összes"},...s],u=d=>{n&&n(d)};return e.jsx("nav",{className:"flex flex-row flex-wrap gap-6 pt-10",children:c.map(({id:d,name:p})=>{const x=d===t;return e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("button",{onClick:()=>
78u(d),className:`cursor-pointer text-[12px] leading-[150%] ${x?"text-primary-dark-blue font-bold":"hover:text-primary-dark-blue text-black"} focus:outline-none`,children:p}),x&&e.jsx("div",{className:"bg-primary-dark-blue h-1 w-full"})]},d)})})},nm=({title:t,linktext:s,link:n,onTitleClick:r})=>e.jsxs("div",{className:"flex justify-between",children:[e.jsx("h3",{className:`font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[var(--colors-blue-brand-dark)] ${r?"cursor-pointer":""}`,onClick:r||void 0,children:t}),s&&e.jsx("div",{className:"flex gap-[24px]",children:e.jsxs(_,{className:"my-[18px] flex items-center gap-[6px]",to:n,children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold text-(--color-link-blue)",children:s}),e.jsx("img",{alt:"Nyíl",height:8,src:"/svgs/right_arrow_blue.svg",width:12})]})})]}),Y4=({category:t})=>{const[s,n]=y.useState(null),r=y.useRef(null),c=d=>{n(s===d?null:d)},u=()=>{var d;(d=r.current)==null||d.scrollIntoView({behavior:"smooth",block:"start"})};return e.jsxs("div",{ref:r,className:"mx-auto my-16",id:`category-${t.id}`,children:[e.jsx(nm,{title:t.name,onTitleClick:u,link:`/gyik/${t.id}`}),e.jsxs("div",{className:"flex flex-wrap gap-[24px]",children:[e.jsx(De,{}),e.jsx("div",{className:"flex w-full flex-col gap-[24px]",children:(t.faqs||[]).map(d=>{const p=s===d.id;return e.jsxs("div",{className:"flex flex-col px-6 py-8 shadow-[0_0_4px_rgba(0,0,0,0.1),0_2px_16px_rgba(0,0,0,0.1)] transition-all duration-300",children:[e.jsxs("div",{className:"flex cursor-pointer flex-row items-center justify-between gap-8 select-none",onClick:()=>c(d.id),children:[e.jsx("p",{className:"text-primary-dark-blue text-[18px] leading-[150%] font-bold",children:d.question}),e.jsx("div",{className:`bg-primary-dark-blue h-6 w-6 shrink-0 rounded-full p-[6px] transition-transform ${p?"rotate-90":""}`,children:e.jsx("img",{src:"/svgs/right_arrow_white.svg",alt:"Döntött nyíl"})})]}),e.jsx("div",{className:`overflow-hidden transition-all duration-300 ${p?"mt-2 opacity-100":"h-0 opacity-0"}`,children:e.jsx("p",{className:"mt-[16px] text-[16px] leading-[150%] text-black",children:d.answer})})]},d.id)})})]})]})},Aa=()=>{var u;const{nav:t}=oe(),s=((u=t.item.params)==null?void 0:u.categoryId)===void 0?"all":Number(t.item.params.categoryId),{categories:n}=b(d=>d.faq),[r,c]=y.useState(s);return y.useEffect(()=>{c(s)},[s]),e.jsxs("div",{className:"mx-auto mt-[64px] mb-[96px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsxs("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:["Gyakran Ismételt",e.jsx("br",{}
78),"Kérdések"]}),e.jsx(et,{className:"mb-[32px]"}),e.jsx("p",{className:"text-[18px] leading-[150%] font-bold text-black"}),n.length>1&&e.jsx(F4,{categories:n,activeTab:r,onSelect:d=>c(d)}),n.filter(d=>d.id===r||r==="all").map(d=>e.jsx(Y4,{category:d},d.id))]})},Oe=({alt:t,className:s,icon:n,placeholder:r,type:c,value:u,onChange:d,items:p,id:x})=>{const[g,h]=y.useState(!1),v=()=>{switch(c){case"textarea":return e.jsx("textarea",{id:x,className:"w-full py-[10.5px] pr-[10px] pl-[16px] text-[18px] leading-[150%] text-(--color-dark-gray)",placeholder:r,value:u,rows:6,onChange:N=>d(N.target.value)});case"dropdown":return e.jsxs("select",{id:x,className:"w-full py-[10.5px] pr-[10px] pl-[16px] text-[18px] leading-[150%] text-(--color-dark-gray)",value:u,onChange:N=>d(N.target.value),children:[e.jsx("option",{value:"",disabled:!0}),(p||[]).map(N=>e.jsx("option",{value:N.key,children:N.value},N.key))]});default:return e.jsx("input",{id:x,className:"w-full py-[10.5px] pr-[10px] pl-[16px] text-[18px] leading-[150%] text-(--color-dark-gray)",type:c==="password"?g?"text":"password":c,placeholder:r,value:u,onChange:N=>d(N.target.value)})}};return e.jsx("div",{children:e.jsxs("div",{className:`relative flex items-center rounded-[4px] border border-(--color-mid-gray) bg-[--color-white] ${s}`,children:[n&&t&&e.jsx("img",{alt:t,className:"mr-[8px]",height:16,src:`/svgs/form_icon_${n}.svg`,width:16}),v(),c==="dropdown"&&r&&u===""&&e.jsx("div",{className:"pointer-events-none absolute left-[16px] text-[18px] text-[darkgray]",children:r}),c==="dropdown"&&e.jsx("img",{alt:"Lefel",className:"pointer-events-none absolute right-[24px]",height:12,src:"/svgs/dropdown_icon.svg",width:12}),c==="password"&&e.jsx("img",{alt:"Jelszó megjelenítése",className:"ml-[24px] cursor-pointer",height:16,src:"/svgs/form_icon_eye.svg",width:16,onClick:()=>h(!g)})]})})},G4=()=>{const t=ie(),{email:s}=b(c=>c.forgotPassword.form),n=c=>u=>{t(n0({field:c,value:u}))},r=()=>{};return e.jsxs("main",{children:[e.jsx("div",{className:"mx-auto w-[1170px]",children:e.jsxs("div",{className:"w-[384px] pb-[50px]",children:[e.jsx("img",{alt:"Újbuda - XI. kerület",className:"mt-[24px] mb-[64px] w-full",height:128,src:"/images/logo.svg",width:384}),e.jsx("h2",{className:"mb-[24px] text-center font-(family-name:--font-secondary-bold) text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:"Elfelejtett jelszó"}),e.jsxs("div",{className:"mb-[64px] flex justify-center gap-[64px] text-[12px] leading-[110%]",children:[e.jsx(_,{className:"font-bold text-(--color-primary-dark-blue) underline",to:"/belepes",children:"Belépés"}),e.jsx(_,{className:"font-bold text-(--color-primary-dark-blue) underline",to:"/regisztracio",children:"Regisztráció"})]}),e.jsxs("form",{className:"flex flex-col gap-[16px]",onSubmit:r,children:[e.jsx(Oe,{alt:"E-mail",icon:"email",placeholder:"E-mail",type:"email",value:s.value,onChange:n("email")}),e.jsx("button",{className:"mt-[16px] w-full cursor-pointer rounded-[4px] bg-(--color-primary-dark-blue) py-[20px] text-[12px] leading-[110%] font-bold text-(--color-white)",children:"Új jelszót szeretnék"})]})]})}),e.jsx("img",{alt:"Háttér",className:"fixed top-0 right-0 h-full",src:"/images/login-background-image.webp"})]})},q4=()=>e.jsxs("div",{className:"relative mx-auto mt-5 h-[246px] min-h-[246px] w-full max-w-[1170px] overflow-hidden rounded-sm pb-14",children:[e.jsx("img",{src:"/images/navbar_ad.png",alt:"Banner",className:"absolute inset-x-0 bottom-0 h-auto max-h-[600px] w-full scale-200 rounded-sm md:-bottom-20 md:scale-150 lg:scale-100"}),e.jsxs("div",{className:"bg-primary-dark-blue/64 absolute inset-0 flex flex-col items-start justify-center gap-3 rounded-sm px-6 text-white md:flex-row md:items-center md:justify-between",children:[e.jsxs("h2",{className:"font-secondary-bold pt-8 text-[31px] leading-[100%] text-white uppercase md:pt-0 lg:text-[52.8px]",children:["Újbuda ",e.jsx("br",{})," Online"]}),e.jsxs("div",{className:"flex flex-row gap-8 text-[14px] font-bold uppercase lg:text-[24px]",children:[e.jsx("a",{children:"Hírek"}),e.jsx("a",{children:"Újdonságok"}),e.jsx("a",{children:"Videók"})]}),e.jsx(_,{to:"https://ujbudaonline.hu/",target:"_blank",className:"w-full md:w-fit",children:e.jsx("button",{className:"bg-lightblue w-full cursor-pointer rounded-sm px-6 py-4 text-[12px] font-bold text-black",children:"Tovább az Újbuda Onlinera"})})]})]}),u1=t=>{switch(t%4){case 0:return"#EF7945";case 1:return"#F4D15D";case 2:return"#7ACEF4";default:return"#63B377"}}
78,m1=({item:t,index:s})=>t.type==="external"?e.jsx("a",{href:t.external_link,className:"flex h-fit w-[calc(50%-12px)] md:w-[calc(25%-18px)] xl:w-[calc(100%/3-16px)]",target:"_blank",children:e.jsxs("div",{className:"relative w-full rounded-[4px] px-[20px] py-[28px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)] xl:py-[20px]",style:{background:u1(s)},children:[t.icon?e.jsx("img",{alt:t.title,height:32,src:t.icon,width:32}):e.jsx("div",{className:"h-[32px] w-[32px]"}),e.jsx("h3",{className:"font-secondary-bold mt-[16px] text-[18px] leading-[110%] text-black",children:t.title}),e.jsx("div",{className:"absolute top-[20px] right-[20px] w-fit rounded-full bg-[#727272] p-[6px]",children:e.jsx("img",{src:"/svgs/tilted_arrow.svg",alt:"Döntött nyíl"})})]})}):e.jsx(_,{to:t.path,className:"flex h-fit w-[calc(50%-12px)] md:w-[calc(25%-18px)] xl:w-[calc(100%/3-16px)]",children:e.jsxs("div",{className:"relative w-full rounded-[4px] px-[20px] py-[28px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)] xl:py-[20px]",style:{background:u1(s)},children:[t.icon?e.jsx("img",{alt:t.title,height:32,src:t.icon,width:32}):e.jsx("div",{className:"h-[32px] w-[32px]"}),e.jsx("h3",{className:"font-secondary-bold mt-[16px] text-[18px] leading-[110%] text-black",children:t.title}),e.jsx("div",{className:"absolute top-[20px] right-[20px] w-fit rounded-full bg-[#727272] p-[6px]",children:e.jsx("img",{src:"/svgs/tilted_arrow.svg",alt:"Döntött nyíl"})})]})});let Uu=!1,p1=null;const V4=({className:t,nextPage:s,duration:n=1e4})=>{const r=fo(),[c,u]=y.useState(!0),[d,p]=y.useState(0),[x,g]=y.useState(0),[h,v]=y.useState(360);y.useEffect(()=>{if(p1===r||(Uu=!1,p1=r,Uu))return;Uu=!0;const S=()=>{if(document.querySelector("#circleSVG")){const L=parseInt(document.querySelector("#circleSVG").getAttribute("data-animation-started"));if(parseInt(document.querySelector("#circleSVG").getAttribute("data-playing"))===1&&L!==0){const Q=(new Date().getTime()-L)/n,le=Math.round(270*Q);v(360-le),Q>=1&&(p(new Date().getTime()),s())}}requestAnimationFrame(S)};requestAnimationFrame(S),p(new Date().getTime())},[r]);const N=()=>{x!==0&&p(new Date().getTime()-x),d===0&&p(new Date().getTime()),u(!0)},C=()=>{u(!1);const S=new Date().getTime();g(S-d)};return e.jsxs("a",{href:"#",className:`${t}`,onClick:S=>{S.preventDefault(),c?C():N()},children:[c?e.jsx("img",{alt:"Animáció megállítása",className:"absolute top-[50%] left-[50%] translate-[-50%] cursor-pointer",src:"/svgs/pause-animation.svg"}):e.jsx("img",{alt:"Animáció elindítása",className:"absolute top-[50%] left-[50%] translate-[-50%] cursor-pointer",src:"/svgs/play-animation.svg"}),e.jsx("svg",{version:"1.1",id:"circleSVG",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100",xmlSpace:"preserve",height:62,width:62,"data-animation-started":d,"data-playing":c?1:0,"data-pause-threshold":x,children:e.jsx("circle",{id:"circle",fill:"none",stroke:"#49B1DD",strokeWidth:"8",strokeMiterlimit:"0",cx:"50",cy:"50",r:"44",strokeDasharray:"360",strokeDashoffset:h,strokeLinecap:"round",transform:"rotate(-90) translate(-100 0)"})})]})},Rt=({background:t,className:s,showHero:n=!0})=>{const{title:r,style:c}=b(L=>L.config),{slides:u}=b(L=>L.slider),[d,p]=y.useState(0),[x,g]=y.useState(window.innerWidth),h=()=>{p(L=>L+1===u.length?0:L+1)},v=()=>{d-1===-1?p(u.length-1):p(d-1)},N=L=>{switch(L.contentType){case"news":return`/hirek/${L.id}`;default:return`/esemenyek/${L.id}`}},C=(L,F)=>{switch(L.contentType){case"news":return`/hirek/kategoriak/${F.id}`;default:return`/esemenyek/kategoriak/${F.id}`}},S=L=>{switch(L.contentType){case"news":return L.articleCategories;case"events":return L.eventCategories;default:return[]}};return y.useEffect(()=>{const L=()=>{g(window.innerWidth)};return window.addEventListener("resize",L),()=>{window.removeEventListener("resize",L)}},[]),n===!1&&u.length===0?null:u.length>0?e.jsxs("div",{className:`${s} relative overflow-hidden xl:max-h-[400px]`,style:{backgroundColor:t||"white"},children:[e.jsx("div",{className:"hidden aspect-[2] w-[calc(70%-12px)] xl:flex"}),x>=720&&u.length>1&&e.jsx(V4,{className:"absolute top-[24px] left-[calc(50%_+_(1170px_/_2)_-_64px_-_24px)] z-100",nextPage:h}),u.length>1&&e.jsxs("div",{className:"absolute top-[16px] left-[50%] z-100 flex translate-x-[-50%] items-center gap-[6px] xl:top-[350px] xl:left-[calc(39.5%)] xl:translate-x-0",children:[e.jsx("a",{href:"#",onClick:L=>{L.preventDefault(),v()},children:e.jsx("img",{alt:"Balra mutató nyíl",className:"mr-[6px] cursor-pointer",height:11.06,src:"/svgs
78/left_arrow_white.svg",width:16})}),u.map((L,F)=>e.jsx("div",{className:"flex h-[24px] w-[24px] items-center justify-center rounded-[12px] transition-all duration-[5s]",style:{backgroundColor:F===d?"rgba(255, 255, 255, 0.48)":"transparent"},children:e.jsx("a",{className:"h-[12px] w-[12px] cursor-pointer rounded-[6px] bg-(--color-white)",href:"#",onClick:T=>{T.preventDefault(),p(F)}})},F)),e.jsx("a",{href:"#",onClick:L=>{L.preventDefault(),h()},children:e.jsx("img",{alt:"Jobbra mutató nyíl",className:"ml-[6px] cursor-pointer",height:11.06,src:"/svgs/right_arrow_white.svg",width:16})})]}),e.jsx("div",{className:"top-0 flex transition-all duration-[2s] xl:absolute",style:{translate:`-${d*(100/u.length)}%`,width:`${u.length*100}%`},children:u.map((L,F)=>e.jsx("div",{className:"w-full",children:e.jsx("div",{className:"mx-0 flex w-full flex-col-reverse xl:mx-auto xl:w-[1170px] xl:flex-row xl:gap-[24px]",style:{left:`${F*100}%`},children:L.sliderType==="A"?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex w-full flex-col justify-center p-[24px] xl:w-[calc(30%-12px)] xl:p-0",children:[e.jsx("div",{className:"mb-[6px] flex flex-wrap gap-[6px]",children:S(L).map(T=>e.jsx(_,{tabindex:F===d?void 0:-1,to:C(L,T),children:e.jsx(cn,{color:T.text_color,background:T.background_color,label:T.name})},T.id))}),e.jsx(_,{tabindex:F===d?void 0:-1,to:N(L),className:"font-secondary-bold text-[24px] leading-[120%] wrap-break-word md:text-[32px]",children:L.title})]}),e.jsx(_,{tabindex:F===d?void 0:-1,to:N(L),className:"max-h-[400px] w-full shrink-0 overflow-hidden xl:w-[calc(70%-12px)]",children:e.jsx("img",{alt:L.title,className:"w-full",src:L.image?L.image:"/placeholder.svg"})})]}):e.jsx(_,{tabindex:F===d?void 0:-1,to:N(L),className:"aspect-[1.78] max-h-[400px] w-full shrink-0 overflow-hidden",children:e.jsx("img",{alt:L.title,className:"h-full w-full object-cover object-center",src:L.image?L.image:"/placeholder.svg"})})})}))})]}):e.jsxs("div",{className:`relative ${s} mx-0 w-full md:mx-auto md:w-[720px] xl:w-[1170px]`,children:[e.jsx("img",{alt:"Statikus oldal",className:"absolute top-0 left-0 z-1 h-full w-full object-cover object-center",src:`/style/${c}/static-page.webp`}),e.jsx("div",{className:"absolute top-0 left-0 z-2 h-full w-full bg-[#171717] opacity-[0.64]"}),e.jsx("div",{className:"relative z-3 mx-auto flex h-[400px] w-full flex-col items-center justify-center px-[16px] text-center text-(--color-white) md:items-start md:text-left xl:w-[1170px]",children:e.jsx("div",{className:"font-secondary-bold mb-[16px] text-[36px] leading-[110%] md:text-[48px] xl:text-[52px]",children:r})})]})};function Mm(t,s){t.current.querySelectorAll(".link-box").forEach(n=>{let r="";n.querySelectorAll("a").forEach(c=>{var u;r=c.getAttribute("href"),r&&(n.setAttribute("data-href",r),c.setAttribute("href","#"),(u=c.querySelector("img"))==null||u.setAttribute("alt","Tovább"))}),r!==""&&(n.onclick=function(c){c.preventDefault(),window.location.href=this.getAttribute("data-href")})}),t.current.querySelectorAll(".quote-open img").forEach(n=>{n.src.indexOf("quote")!==-1&&(n.src=`/style/${s}/quote-open.svg`)}),t.current.querySelectorAll(".quote-close img").forEach(n=>{n.src.indexOf("quote")!==-1&&(n.src=`/style/${s}/quote-close.svg`)}),t.current.querySelectorAll("table").forEach(n=>{if(!n.classList.contains("contact-person__table")){n.style.width==="100%"&&(n.style.minWidth="1170px");const r=document.createElement("div");r.className="table-container",r.innerHTML=n.outerHTML,n.replaceWith(r)}}),t.current.querySelectorAll("div").forEach(n=>{n.innerHTML==="&nbsp;"&&(n.innerHTML="")})}const ue=({staticPage:t})=>{const{style:s}=b(r=>r.config),n=y.useRef();return y.useEffect(()=>{n&&n.current&&Mm(n,s)},[n,s]),e.jsx("div",{className:`static-section static-section--${s}`,children:e.jsx("div",{ref:n,dangerouslySetInnerHTML:{__html:t.content}})})},Ja=({className:t})=>e.jsx("svg",{width:"12",height:"8",className:t,fill:"fillCurrent",viewBox:"0 0 12 8",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M10.0917 4.49229H9.95017C6.84905 4.49229 3.74751 4.49229 0.646381 4.49116C0.558853 4.49116 0.467234 4.48816 0.383796 4.46641C0.133071 4.40079 -0.0256252 4.17506 0.00341464 3.94221C0.0340905 3.69773 0.23696 3.5155 0.501591 3.4975C0.559262 3.49338 0.617341 3.49413 0.675421 3.49413C3.77001 3.49413 6.86459 3.49413 9.95876 3.49413H10.0958C10.0991 3.48625 10.1019 3.47838 10.1052 3.4705C10.0811 3.44651 10.0582 3.42176 10.0332 3.39889C9.11784 2.55934 8.20206 1.71979 7.28
78628 0.880246C7.0511 0.664266 7.03351 0.366169 7.24333 0.159563C7.45684 -0.0504176 7.80409 -0.0545422 8.03723 0.155438C8.31167 0.402915 8.58244 0.654142 8.85484 0.903494C9.83524 1.80266 10.8161 2.70145 11.7965 3.60062C12.0668 3.84847 12.0684 4.13682 11.7997 4.3828C10.5518 5.52719 9.30394 6.67121 8.05563 7.81485C7.79427 8.05445 7.44907 8.06195 7.22575 7.83472C7.02533 7.63112 7.03637 7.3379 7.25683 7.13391C7.60695 6.80994 7.96033 6.4886 8.31208 6.16613C8.88797 5.63818 9.46386 5.11023 10.0397 4.5819C10.0627 4.5609 10.0831 4.53803 10.1048 4.51591C10.1007 4.50803 10.0966 4.50016 10.0925 4.49229H10.0917Z"})}),Kl=({events:t,style:s,title:n="Események",linkText:r="Összes esemény",link:c="/esemenyek",isSeparator:u=!1})=>e.jsxs("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:[e.jsxs("div",{className:`flex items-center justify-between ${u?"":"mb-[28px] border-b-1 border-[#E4E5E7] py-[9.5px]"}`,children:[e.jsx("h2",{className:`title--news--${s} font-secondary-bold text-[24px] leading-[120%]`,children:n}),e.jsxs(_,{to:c,className:`flex items-center gap-[6px] link--${s}`,children:[e.jsx("div",{className:"text-[12px] leading-[100%] font-bold",children:r}),e.jsx(Ja,{className:"fill-current"})]})]}),u&&e.jsx(De,{className:"mb-[28px]"}),e.jsx("div",{className:"flex w-full flex-wrap gap-[24px]",children:t.slice(0,6).map(d=>e.jsx(_,{to:`/esemenyek/${d.id}`,className:`w-full md:w-[calc(50%-12px)] xl:w-[calc(33.3333%-18px)] event-color--${s}`,children:e.jsx(Nt,{event:{...d,size:"M"}})}))})]}),f1=()=>{const t=oe(),s=_e(),{districtArticles:n,selfGovernmentArticles:r}=b(v=>v.article),{events:c}=b(v=>v.event),u=b(v=>v.config),[d,p]=y.useState(""),x=()=>{s(`/kereses/${d}`)},g=c.filter(v=>v==null?void 0:v.eventCategories.some(N=>N.name==="Kerületi események")),h=g&&g[0]?g[0].eventCategories[0].id:0;return e.jsxs(e.Fragment,{children:[e.jsx(Rt,{}),e.jsx("div",{className:"bg-light-gray mb-[48px] w-full",children:e.jsx("div",{className:"mx-auto w-full px-[24px] py-[48px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsxs("div",{className:"flex w-full flex-col gap-[24px] xl:flex-row xl:gap-0",children:[e.jsxs("div",{className:"flex w-full flex-col gap-[24px] xl:w-[48%]",children:[e.jsxs("div",{className:"flex items-center gap-[26px]",children:[e.jsx("img",{alt:"Ügyintézés Újbudán",className:"w-[96px] md:w-[163.4px]",src:"/svgs/uu.png"}),e.jsxs("div",{className:"flex flex-col gap-[10px]",children:[e.jsx("h2",{className:"font-secondary-bold w-[128px] text-[32px] leading-[110%] text-[#1B3F92] md:w-[319px] md:text-[52px]",children:"Ügyintézés"}),e.jsx("h3",{className:"font-secondary-bold w-[128px] text-[24px] leading-[120%] text-[#49B1DD] md:w-[319px] md:text-[42px]",children:"Újbudán"}),!1]})]}),e.jsx("div",{className:"mx-auto flex w-full flex-col items-center md:mr-auto md:items-start",children:e.jsxs("div",{className:"shadow-lightblue mt-4 flex h-[56px] w-full max-w-full flex-row items-center shadow-xl/24 md:max-w-[464px]",children:[e.jsxs("div",{className:"relative w-full",children:[e.jsx("img",{src:"/svgs/search_icon_gray.svg",alt:"Keresés ikon",className:"text-dark-gray absolute top-1/2 left-3 h-6 w-6 -translate-y-1/2"}),e.jsx("label",{htmlFor:"mainSearch",className:"absolute left-[-10000%]",children:"Miben segíthetünk ma?"}),e.jsx("input",{id:"mainSearch",type:"text",className:"placeholder:text-dark-gray border-light-gray w-full rounded-l-sm border border-r-0 bg-white px-4 py-4 pl-12 placeholder:text-[12px] md:placeholder:text-[16px]",placeholder:"Miben segíthetünk ma?",value:d,onKeyDown:v=>{v.key==="Enter"&&x()},onChange:v=>p(v.target.value)})]}),e.jsx("button",{onClick:x,className:"bg-primary-dark-blue cursor-pointer rounded-r-sm px-6 py-[22px] text-[12px] leading-[100%] font-bold text-white",children:"Keresés"})]})}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-[14px] font-bold text-black",children:"Népszerű keresések:"}),e.jsxs("div",{className:"flex max-w-[593px] flex-wrap gap-2",children:[e.jsx(_,{to:"/kozigazgatas/Ugyintezes/Szervezeti-egysegek",target:"_blank",className:"border-mid-gray bg-lighter-white text-darker-gray cursor-pointer rounded-full border px-4 py-[9px] text-[14px] leading-[100%] font-bold",children:"Szervezeti egységek"}),e.jsx(_,{to:"/kozigazgatas/Tovabbi-tartalmak/valasztas-nepszavazas-nepszamlalas",target:"_blank",className:"border-mid-gray bg-lighter-white text-darker-gray cursor-pointer rounded-full border px-4 py-[9px] text-[14px] leading-[100%] font-bold",children:"Választás"}),e.jsx(_,{to:"36bc0894-6968-4229-a56c-c2e137b2a15f.pdf",target:"_blank",className:"border-mid-gray bg-lighter-white text-darker-gray cursor-pointer rounded-full border px-4 py-[9px] text-[14px] leading-[100%] font-bold",children:"Szociális támogatás"}),e.jsx(_,{to:"/kozigazgatas/Ugyintezes/Ugyek",target:"_blank",className:"border-mid-gray bg-lighter-white text-darker-gray cursor-pointer rounded-full border px-4 py-[9px] text-[14px] leading-[100%] font-bold",children:"Nyomtatványok és dokumentumok"}),e.jsx(_,{to:"/kozigazgatas/Onkormanyzat/polgarmester",target:"_blank",className:"border-mid-gray bg-lighter-white text-darker-gray cursor-pointer rounded-full border px-4 py-[9px] text-[14px] leading-[100%] font-bold",children:"Polgármester"})]})]})]}),e.jsx("div",{className:"hidden w-full flex-col items-start justify-start gap-[24px] xl:flex xl:w-[52%]",children:u.highlightedThemes.reduce((v,N)=>(v.length===0?v=[[N]]:v[v.length-1].length<3?v[v.length-1].push(N):v.push([N]),v),[]).map((v,N)=>e.jsx("div",{className:"flex w-full items-start gap-[24px]",children:v.map((C,S)=>e.jsx(m1,{item:C,index:N*3+S},C.id))}))}),e.jsx("div",{className:"flex w-full flex-wrap items-start justify-start gap-[24px] xl:hidden xl:w-[52%]",children:u.highlightedThemes.map((v,N)=>e.jsx(m1,{item:v,index:N},v.id))})]})})}),t.staticSections.fooldalElsoStatikus&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalElsoStatikus})}),t.staticSections.fooldalMasodikStatikus&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalMasodikStatikus})}),e.jsx("div",{className:"mb-15 flex w-full flex-col",children:e.jsxs("div",{className:"mx-auto w-full max-w-[1440px] px-5 xl
78:px-0",children:[e.jsxs("div",{className:"mx-auto mb-[48px] w-full max-w-[1170px]",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("h2",{className:"font-secondary-bold my-[9.5px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:"Önkormányzat"}),e.jsx("div",{className:"flex gap-[24px]",children:e.jsxs(_,{className:`my-[18px] flex items-center gap-[6px] link--${u.style}`,to:"/hirek",children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold text-(--color-link-blue)",children:"Összes hír"}),e.jsx(Ja,{className:"fill-current"})]})})]}),r.length>0&&e.jsxs("div",{className:"flex flex-wrap gap-[24px]",children:[e.jsx(De,{}),e.jsx("div",{className:"flex w-full flex-wrap gap-[24px]",children:r.slice(0,6).map(v=>e.jsx(_,{to:`/hirek/${v.id}`,className:"w-full min-[500px]:w-[calc(50%-12px)] md:w-[calc(33.333%-16px)]",children:e.jsx(Xe,{article:v,size:"m",borderColor:"var(--color-primary-dark-blue)"})},v.id))})]})]}),e.jsxs("div",{className:"mx-auto my-[48px] w-full max-w-[1170px]",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("h2",{className:"font-secondary-bold my-[9.5px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:"Kerületünk"}),e.jsx("div",{className:"flex gap-[24px]",children:e.jsxs(_,{className:`my-[18px] flex items-center gap-[6px] link--${u.style}`,to:"/hirek",children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold text-(--color-link-blue)",children:"Összes hír"}),e.jsx(Ja,{className:"fill-current"})]})})]}),n.length>0&&e.jsxs("div",{className:"flex flex-wrap gap-[24px]",children:[e.jsx(De,{}),e.jsx("div",{className:"flex w-full flex-wrap gap-[24px] md:w-[calc(75%-12px)]",children:n.slice(0,6).map(v=>e.jsx(_,{to:`/hirek/${v.id}`,className:"w-full min-[700px]:w-[calc(33.333%-16px)]",children:e.jsx(Xe,{article:v,size:"m",borderColor:"var(--color-primary-dark-blue)"})},v.id))}),e.jsx("div",{className:"flex w-full flex-col gap-[24px] md:w-[calc(25%-12px)]",children:n.slice(6,10).map(v=>e.jsx(_,{to:`/hirek/${v.id}`,className:"w-[calc(100%-12px)]",children:e.jsx(Xe,{article:v,size:"s",borderColor:"var(--color-primary-dark-blue)"})},v.id))})]})]}),e.jsx(q4,{}),e.jsxs("div",{className:"mx-auto mt-[48px] flex w-full max-w-[1170px] flex-col items-center justify-between gap-6 md:flex-row md:items-start",children:[e.jsxs("a",{href:"https://sport.ujbuda.hu",target:"_blank",className:"bg-[#EF7945] z-10 flex w-full max-w-[350px] flex-col justify-center gap-6 rounded-sm p-4 shadow-[0_0_4px_rgba(0,0,0,0.1),0_8px_16px_rgba(0,0,0,0.2)] md:w-[31%]",children:[e.jsx("div",{className:"h-8 w-8 bg-[#000000]",style:{WebkitMask:"url('/svgs/sport.svg') center / contain no-repeat",mask:"url('/svgs/sport.svg') center / contain no-repeat"}}),e.jsx("h3",{className:"font-secondary-bold text-[18px] leading-[110%] text-black",children:"Sport"}),e.jsx("p",{className:"text-[12px] leading-[150%] text-black"}),e.jsx("div",{className:"w-fit rounded-full bg-black/20 p-[6px]",children:e.jsx("img",{src:"/svgs/tilted_arrow.svg",alt:"Döntött nyíl"})})]}),e.jsxs("a",{href:"https://kozpont.ujbuda.hu",target:"_blank",className:"bg-[#F4D15D] z-10 flex w-full max-w-[350px] flex-col justify-center gap-6 rounded-sm p-4 shadow-[0_0_4px_rgba(0,0,0,0.1),0_8px_16px_rgba(0,0,0,0.2)] md:w-[31%]",children:[e.jsx("div",{className:"h-8 w-8 bg-[#000000]",style:{WebkitMask:"url('/svgs/kultura.svg') center / contain no-repeat",mask:"url('/svgs/kultura.svg') center / contain no-repeat"}}),e.jsx("h3",{className:"font-secondary-bold text-[18px] leading-[110%] text-black",children:"Kultúra"}),e.jsx("p",{className:"text-[12px] leading-[150%] text-black"}),e.jsx("div",{to:"/",className:"w-fit rounded-full bg-black/20 p-[6px]",children:e.jsx("img",{src:"/svgs/tilted_arrow.svg",alt:"Döntött nyíl"})})]}),e.jsxs("a",{href:"https://ifjusagugy.ujbuda.hu",target:"_blank",className:"bg-[#7ACEF4] z-10 flex w-full max-w-[350px] flex-col justify-center gap-6 rounded-sm p-4 shadow-[0_0_4px_rgba(0,0,0,0.1),0_8px_16px_rgba(0,0,0,0.2)] md:w-[31%]",children:[e.jsx("div",{className:"h-8 w-8 bg-[#000000]",style:{WebkitMask:"url('/svgs/ifjusagugy.svg') center / contain no-repeat",mask:"url('/svgs/ifjusagugy.svg') center / contain no-repeat"}}),e.jsx("h3",{className:"font-secondary-bold text-[18px] leading-[110%] text-black",children:"Ifjúságügy"}),e.jsx("p",{className:"text-[12px] leading-[150%] text-black"}
78),e.jsx("div",{to:"/",className:"w-fit rounded-full bg-black/20 p-[6px]",children:e.jsx("img",{src:"/svgs/tilted_arrow.svg",alt:"Döntött nyíl"})})]})]})]})}),(g==null?void 0:g.length)>0&&e.jsx(Kl,{events:g,style:u.style,title:"Kerületi események",isSeparator:!0,link:`/esemenyek/kategoriak/${h}`})]})},wj=({checked:t,id:s,label:n,onChange:r})=>e.jsxs("div",{className:"flex cursor-pointer items-center gap-[6px]",onClick:()=>r(!t),children:[e.jsx("div",{className:`flex h-[16px] w-[16px] items-center justify-center rounded-[4px] border border-(--color-primary-dark-blue) transition ${t&&"bg-(--color-primary-dark-blue)"}`,children:t&&e.jsx("img",{alt:"Pipa",className:"w-[10px]",height:18,src:"/svgs/check.svg",width:18})}),e.jsx("label",{className:"leading-[110%] font-[12px] text-(--color-dark-gray)",htmlFor:s,children:n})]}),td=({type:t,onClick:s})=>e.jsxs("button",{className:"align-center flex cursor-pointer justify-center gap-[6px] rounded-[4px] border border-(--color-mid-gray) px-[24px] py-[18px]",onClick:s,children:[t==="facebook"&&e.jsx("img",{alt:"Facebook logó",height:16,src:"/svgs/facebook_icon_gray.svg",width:16}),t==="google"&&e.jsx("img",{alt:"Google logó",height:16,src:"/svgs/google_icon_gray.svg",width:16}),e.jsxs("span",{className:"text-[12px] leading-[135%] font-bold text-(--color-dark-gray)",children:[t==="facebook"&&"Facebook",t==="google"&&"Google"]})]}),K4=()=>{const t=ie(),s=_e(),{email:n,password:r,rememberMe:c}=b(g=>g.login.form),u=g=>h=>{t(i0({field:g,value:h}))},d=()=>{},p=()=>{},x=()=>{document.cookie="token=; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/",s("/profil/szemelyes-adatok")};return e.jsxs("main",{children:[e.jsx("div",{className:"mx-auto w-[1170px]",children:e.jsxs("div",{className:"w-[384px] pb-[50px]",children:[e.jsx("img",{alt:"Újbuda - XI. kerület",className:"mt-[24px] mb-[64px] w-full",height:128,src:"/images/logo.svg",width:384}),e.jsx("h2",{className:"mb-[20px] text-center font-(family-name:--font-secondary-bold) text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:"Belépés"}),e.jsxs("div",{className:"mb-[65px] flex justify-center gap-[8px] text-[12px] leading-[110%]",children:[e.jsx("span",{className:"font-bold text-(--color-dark-gray)",children:"Még nincs fiókod?"}),e.jsx(_,{className:"font-bold text-(--color-primary-dark-blue) underline",to:"/regisztracio",children:"Kattints ide a regisztrációhoz!"})]}),e.jsxs("form",{className:"mb-[32px] flex flex-col gap-[16px]",onSubmit:x,children:[e.jsx(Oe,{alt:"E-mail",icon:"email",placeholder:"E-mail",type:"email",value:n.value,onChange:u("email")}),e.jsx(Oe,{alt:"Jelszó",icon:"password",placeholder:"Jelszó",type:"password",value:r.value,onChange:u("password")}),e.jsxs("div",{className:"mt-[3px] mb-[16px] flex items-center justify-between",children:[e.jsx(wj,{checked:c.value,label:"Emlékezz rám",onChange:u("rememberMe")}),e.jsx(_,{className:"text-[12px] leading-[110%] text-(--color-dark-gray) underline",to:"/elfelejtettem-a-jelszavam",children:"Elfelejtettem a jelszavam"})]}),e.jsx("button",{className:"w-full cursor-pointer rounded-[4px] bg-(--color-primary-dark-blue) py-[20px] text-[12px] leading-[110%] font-bold text-(--color-white)",children:"Bejelentkezés"})]}),e.jsx("div",{className:"mb-[32px] text-center text-(--color-dark-gray)",children:"vagy"}),e.jsxs("div",{className:"flex flex-col gap-[16px]",children:[e.jsx(td,{type:"facebook",onClick:d}),e.jsx(td,{type:"google",onClick:p})]})]})}),e.jsx("img",{alt:"Háttér",className:"fixed top-0 right-0 h-full",src:"/images/login-background-image.webp"})]})},Cs=({checked:t,className:s,label:n,onChange:r})=>e.jsxs("div",{onClick:()=>r(!t),className:`flex cursor-pointer items-center justify-between rounded-[4px] border border-(--color-light-gray) px-[24px] py-[16px] shadow-[0px_8px_18px_0px_rgba(37,92,136,0.12)] ${s}`,children:[e.jsx("div",{className:"text-[18px] leading-[150%] font-bold text-(--color-primary-dark-blue)",children:n}),e.jsx("div",{className:`relative h-[32px] w-[52px] rounded-[16px] border transition-all duration-500 ${t?"border-(--color-primary-dark-blue) bg-(--color-lightblue)":"border-(--color-light-gray) bg-(--color-white)"}`,children:e.jsx("div",{className:`absolute top-[3px] h-[24px] w-[24px] rounded-[50%] border transition-all duration-500 ${t?"left-[23px] border-(--color-primary-dark-blue) bg-(--color-white)":"left-[3px] border-(--color-mid-gray) bg-(--color-mid-gray)"}`})})]}),Z4=()=>{const t=ie(),{businessNews:s,publicProcurementNews:n,competitionNews:r,kindergartenNews:c,schoolNews:u,highSchoolNews:d,sportNews:p,sportEvents:x,leisureEvents:g}=b(v=>v.notifications.form),h=v=>N=>{t(r0({field:v,value:N}))};return e.jsxs("div",{children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h2",{className:"font-secondary-bold mb-[32px] text-[32px] leading-[120%] text-[#54504D]",children:"Értesítések"}),e.jsx("div",{className:"mb-[43.5px] text-[18px] leading-[150%] font-bold text-(--color-black)",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum venenatis magna in porta eleifend. Ut vitae cursus orci. Curabitur ac pulvinar orci, vitae interdum tellus. Fusce at tellus vitae dolor blandit porttitor a eget massa. Nullam non nunc vitae ligula commodo tempor eget eget enim. Proin porta libero a facilisis gravida. Nullam at aliquet sem, et aliquam nulla."}),e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:"Általános kapcsolati adatok"}),e.jsx(De,{className:"mb-[24px]"}),e.jsx(Cs,{className:"mb-[24px]",label:"Vállalkozói hírek",checked:s.value,onChange:h("businessNews")}),e.jsx(Cs,{className:"mb-[24px]",label:"Közbeszerzés",checked:n.value,onChange:h("publicProcurementNews")}),e.jsx(Cs,{className:"mb-[71.5px]",label:"Pályázatok",checked:r.value,onChange:h("competitionNews")}),e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:"Gyermeknevelés"}),e.jsx(De,{className:"mb-[24px]"}),e.jsx(Cs,{className:"mb-[24px]",label:"Bölcsődei hírek és határidők",checked:c.value,onChange:h("kindergartenNews")}),e.jsx(Cs,{className:"mb-[24px]",label:"Általános Iskolai hírek",checked:u.value,onChange:h("schoolNews")}),e.jsx(Cs,{className:"mb-[71.5px]",label:"Középiskolai hírek",checked:d.value,onChange:h("highSchoolNews")}),e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:"Sport"}),e.jsx(De,{className:"mb-[24px]"}),e.jsx(Cs,{className:"mb-[24px]",label:"Sporthíreink",checked:p.value,onChange:h("sportNews")}),e.jsx(Cs,{className:"mb-[24px]",label:"Rendezvények",checked:x.value,onChange:h("sportEvents")}),e.jsx(Cs,{className:"mb-[64px]",label:"Szabadidős tevékenység",checked:g.value,onChange:h("leisureEvents")})]})},ql=({label:t,description:s,checked:n,onChange:r})=>
78e.jsxs("div",{className:"flex w-[274px] cursor-pointer items-center gap-[20px] rounded-[4px] border border-(--color-mid-gray) p-[28px]",onClick:()=>r(!n),children:[e.jsx("div",{className:`flex h-[24px] w-[24px] items-center justify-center rounded-[4px] border border-(--color-mid-gray) transition ${n&&"bg-(--color-primary-dark-blue)"}`,children:n&&e.jsx("img",{alt:"Pipa",className:"w-[10px]",height:18,src:"/svgs/check.svg",width:18})}),e.jsxs("div",{className:"flex flex-col leading-[150%] text-(--color-black)",children:[e.jsx("div",{className:"text-[18px] font-bold",children:t}),e.jsx("div",{className:"text-[14px]",children:s})]})]}),X4=()=>{const t=ie(),{lastName:s,firstName:n,birthYear:r,email:c,phone:u,newResident:d,oneToFiveYears:p,fiveToTenYears:x,tenPlusYears:g,businessman:h,parent:v,pensioner:N,unemployed:C,student:S,athlete:L,kindergartenAgeChildren:F,schoolAgeChildren:T,adultChildren:Y,noChildren:Q}=b(W=>W.personalData.form),le=W=>$=>{t(o0({field:W,value:$}))};return e.jsxs("div",{children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h2",{className:"font-secondary-bold mb-[42px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:"Személyes adatok"}),e.jsxs("div",{className:"mb-[57px] text-[18px] leading-[150%] text-(--color-black)",children:["Szia,",e.jsx("br",{}),e.jsx("span",{className:"font-bold",children:"Újbudai Péter"})]}),e.jsx("h3",{className:"font-secondary-bold mb-[24px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:"Személyes adatok"}),e.jsxs("div",{className:"mb-[16px] flex gap-[25px]",children:[e.jsx(Oe,{alt:"Vezetéknév",icon:"user",placeholder:"Vezetéknév",className:"w-[355px]",value:s.value,onChange:le("lastName")}),e.jsx(Oe,{alt:"Keresztnév",icon:"user",placeholder:"Keresztnév",className:"w-[355px]",value:n.value,onChange:le("firstName")})]}),e.jsx("div",{className:"mb-[32px] flex gap-[25px]",children:e.jsx(Oe,{alt:"Születési év",type:"number",icon:"user",placeholder:"Születési év",className:"w-[355px]",value:r.value,onChange:le("birthYear")})}),e.jsxs("div",{className:"mb-[57px] flex gap-[25px]",children:[e.jsx(Oe,{alt:"E-mail cím",icon:"user",placeholder:"E-mail cím",className:"w-[355px]",value:c.value,onChange:le("email")}),e.jsx(Oe,{alt:"Telefonszám",icon:"user",placeholder:"Telefonszám",className:"w-[355px]",value:u.value,onChange:le("phone")})]}),e.jsx("h3",{className:"font-secondary-bold mb-[24px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:"Mióta él Újbudán?"}),e.jsxs("div",{className:"mb-[25px] flex gap-[25px]",children:[e.jsx(ql,{label:"Új lakos",description:"vagyok a kerületben",checked:d.value,onChange:le("newResident")}),e.jsx(ql,{label:"1-5 éve",description:"lakom a kerületben",checked:p.value,onChange:le("oneToFiveYears")})]}),e.jsxs("div",{className:"mb-[57px] flex gap-[25px]",children:[e.jsx(ql,{label:"5-10 éve",description:"lakom a kerületben",checked:x.value,onChange:le("fiveToTenYears")}),e.jsx(ql,{label:"több, mint 10 éve",description:"lakom a kerületben",checked:g.value,onChange:le("tenPlusYears")})]}),e.jsx("h3",{className:"font-secondary-bold mb-[24px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:"Melyek igazak Önre?"}),e.jsxs("div",{className:"mb-[25px] flex gap-[25px]",children:[e.jsx(ql,{label:"Vállalkozó",description:"vagyok",checked:h.value,onChange:le("businessman")}),e.jsx(ql,{label:"Szülő",description:"vagyok",checked:v.value,onChange:le("parent")})]}),e.jsxs("div",{className:"mb-[25px] flex gap-[25px]",children:[e.jsx(ql,{label:"Nyugdíjas",description:"vagyok",checked:N.value,onChange:le("pensioner")}),e.jsx(ql,{label:"Munkanélküli",description:"vagyok",checked:C.value,onChange:le("unemployed")})]}),e.jsxs("div",{className:"mb-[57px] flex gap-[25px]",children:[e.jsx(ql,{label:"Tanuló",description:"vagyok",checked:S.value,onChange:le("student")}),e.jsx(ql,{label:"Sportoló",description:"vagyok",checked:L.value,onChange:le("athlete")})]}),e.jsx("h3",{className:"font-secondary-bold mb-[24px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:"Ha van gyermeke, jelölje be azokat a válaszokat, ami igaz"}),e.jsxs("div",{className:"mb-[25px] flex gap-[25px]",children:[e.jsx(ql,{label:"Óvodás",description:"korú gyermekem van",checked:F.value,onChange:le("kindergartenAgeChildren")}),e.jsx(ql,{label:"Iskolás",description:"korú gyermekem van",checked:T.value,onChange:le("schoolAgeChildren")})]}),e.jsxs("div",{className:"mb-[57px] flex gap-[25px]",children:[e.jsx(ql,{label:"Felnőtt",description:"korú gyermekem van",checked:Y.value,onChange:le("adultChildren")}
78),e.jsx(ql,{label:"Nincs",description:"gyermekem",checked:Q.value,onChange:le("noChildren")})]}),e.jsx("button",{className:"mb-[71px] rounded-[4px] bg-(--color-primary-dark-blue) px-[24px] py-[20px] text-[12px] leading-[110%] font-bold text-(--color-white)",children:"Módosítások mentése"})]})},Q4=({className:t,filter:s=""})=>{const{organisations:n}=b(d=>d.administration),r=()=>{document.querySelectorAll('div[data-class="organization-header"]').forEach(async d=>{d.getAttribute("data-loaded")!=="true"&&await c(d)})},c=async d=>{const p=d.getBoundingClientRect();p&&p.top>0&&p.top<window.innerHeight&&(await Rm(Number(d.getAttribute("data-id"))),r())};y.useEffect(()=>(window.addEventListener("scroll",r),r(),()=>{window.removeEventListener("scroll",r)}),[]);const u=(d,p=1,x=[])=>e.jsxs(e.Fragment,{children:[p===1&&e.jsxs("div",{"data-class":"organization-header","data-id":d.id,"data-loaded":d.isLoaded===!0,className:"flex justify-between border border-(--color-lightblue) bg-(--color-lightblue) px-[10px] py-[17.5px]",children:[e.jsx("span",{className:"font-secondary-bold text-[24px] leading-[120%]",children:d.name}),d.url&&d.url.length>0&&e.jsxs(_,{to:d.url,className:"flex items-center gap-[6px]",children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold",children:"Weboldal"}),e.jsx("img",{alt:"Jobbra mutató nyíl",height:8,src:"/svgs/right_arrow.svg",width:12})]})]}),p===2&&e.jsxs("div",{"data-class":"organization-header","data-id":d.id,"data-loaded":d.isLoaded===!0,className:"flex justify-between border border-(--color-dark-gray) bg-(--color-dark-gray) px-[10px] py-[14.5px] text-[18px] text-(--color-white)",children:[e.jsx("span",{className:"text-[18px] leading-[150%] font-bold",children:d.name}),d.url&&d.url.length>0&&e.jsxs(_,{to:d.url,className:"flex items-center gap-[6px]",children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold",children:"Weboldal"}),e.jsx("img",{alt:"Jobbra mutató nyíl",className:"invert",height:8,src:"/svgs/right_arrow.svg",width:12})]})]}),p>=3&&e.jsxs("div",{"data-class":"organization-header","data-id":d.id,"data-loaded":d.isLoaded===!0,className:"flex justify-between border border-(--color-dark-gray) bg-(--color-dark-gray) px-[10px] py-[14.5px] text-[18px] text-(--color-white)",children:[e.jsx("span",{className:"text-[16px] leading-[150%] font-bold",children:d.name}),d.url&&d.url.length>0&&e.jsxs(_,{to:d.url,className:"flex items-center gap-[6px]",children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold",children:"Weboldal"}),e.jsx("img",{alt:"Jobbra mutató nyíl",className:"invert",height:8,src:"/svgs/right_arrow.svg",width:12})]})]}),d.contacts&&d.contacts.filter(g=>g.name.indexOf(s)!==-1||g.title.indexOf(s)!==-1||d.name.toLowerCase().indexOf(s.toLowerCase())!==-1).length>0?e.jsxs("div",{className:"hidden md:flex",children:[e.jsx("div",{className:"flex w-[30%] shrink-0 items-center border-r border-l border-(--color-primary-dark-blue) border-r-(--color-dark-gray) bg-(--color-primary-dark-blue) p-[12px] font-bold text-(--color-white)",children:"Név"}),e.jsx("div",{className:"flex w-[20%] shrink-0 items-center border-r border-(--color-primary-dark-blue) border-r-(--color-dark-gray) bg-(--color-primary-dark-blue) p-[12px] font-bold text-(--color-white)",children:"Titulus"}),e.jsx("div",{className:"flex w-[20%] shrink-0 items-center border-r border-(--color-primary-dark-blue) border-r-(--color-dark-gray) bg-(--color-primary-dark-blue) p-[12px] font-bold text-(--color-white)",children:"Iroda"}),e.jsx("div",{className:"flex w-[30%] shrink-0 items-center border-t border-r border-(--color-primary-dark-blue) bg-(--color-primary-dark-blue) p-[12px] font-bold text-(--color-white)",children:"Elérhetőségek"})]}):null,d.contacts&&d.contacts.filter(g=>g.name.toLowerCase().indexOf(s.toLowerCase())!==-1||g.title.toLowerCase().indexOf(s.toLowerCase())!==-1||d.name.toLowerCase().indexOf(s.toLowerCase())!==-1).map((g,h)=>e.jsxs("div",{className:`flex flex-col gap-[8px] border-1 md:border-0 ${h!==d.contacts.length-1&&"border-b-0"} border-(--color-dark-gray) p-[8px] md:flex-row md:gap-0 md:p-0`,children:[e.jsx("div",{className:`flex w-full items-center font-bold md:w-[30%] md:border-t md:border-r md:border-l ${h+1===d.contacts.length&&"md:border-b"} border-(--color-dark-gray) bg-(--color-white) leading-[150%] text-(--color-black) md:p-[12px]`,children:g.name}),e.jsx("div",{className:`flex w-full items-center md:w-[20%] md:border-t md:border-r ${h+1===d.contacts.length&&"md:border-b"} border-(--color-dark-gray) bg-(--color-white) leading-[150%] text-(--color-black) md:p-[12px]`,children:g.title}),e.jsxs("div",{className:`flex w-full items-center md:w-[20%] md:border-t md:border-r ${h+1===d.contacts.length&&"md:border-b"} border-(--color-dark-gray) bg-(--color-white) leading-[150%] text-(--color-black) md:p-[12px]`,children:[g.office&&g.office.length>0&&e.jsx("div",{children:g.office}),g.address&&g.address.length>0&&e.jsx("div",{children:g.address})]}),e.jsxs("div",{className:`flex w-full flex-col justify-center gap-[4px] md:w-[30%] md:gap-[16px] md:border-t md:border-r ${h+1===d.contacts.length&&"md:border-b"} border-(--color-dark-gray) bg-(--color-white) leading-[150%] break-words text-(--color-black) md:p-[12px]`,children:[g.phone&&g.phone.length>0&&e.jsxs("div",{children:[e.jsx("strong",{className:"font-bold",children:"Telefonszám"}),":",e.jsx("br",{}),g.phone]}),g.mobile&&g.mobile.length>0&&e.jsxs("div",{children:[e.jsx("strong",{className:"font-bold",children:"Mobiltelefonszám"}),":",e.jsx("br",{}),g.mobile]}),g.fax&&g.fax.length>0&&e.jsxs("div",{children:[e.jsx("strong",{className:"font-bold",children:"Fax"}),":",e.jsx("br",{}),g.fax]}),g.email&&g.email.length>0&&e.jsxs("div",{children:[e.jsx("strong",{className:"font-bold",children:"E-mail cím"}),":",e.jsx("br",{}),g.email]})]})]})),d.children&&d.children.map(g=>u(g,p+1,[...x,d]))]});return e.jsx("div",{className:`flex flex-col text-(--color-black) ${t}`,children:n.map(d=>u(d))})},La=()=>{const[t,s]=y.useState("");return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Telefonkönyv"}]}),e.jsx("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:"Telefonkönyv"}),e.jsx(et,{className:"mb-[32px]"}),e.jsx("div",{className:"mb-[32px]",children:e.jsxs("div",{className:"flex w-[33.3%] flex-col gap-[6px]",children:[e.jsx("label",{htmlFor:"filter",className:"text-[14px] leading-[150%] font-bold text-[#6C7880]",children:"Keresési kifejezés"}),e.jsx(Oe,{id:"filter",value:t,onChange:s})]})}),e.jsx(Q4,{className:"mb-[56px]",filter:t})]})},J4=()=>{const t=ie(),{lastName:s,firstName:n,email:r,phone:c,subject:u,message:d}=b(x=>x.contact.form),p=x=>g=>{t(Ca({field:x,value:g}))};return e.jsxs("div",{children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Profil",href:"/profil/szemelyes-adatok"},{title:"Visszajelzés küldése / bejelentés"}]}),e.jsx("h2",{className:"font-secondary-bold mb-[32px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:"Visszajelzés küldése / bejelentés"}),e.jsx("div",{className:"mb-[64px] text-[18px] leading-[150%] font-bold text-(--color-black)",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum venenatis magna in porta eleifend. Ut vitae cursus orci. Curabitur ac pulvinar orci, vitae interdum tellus. Fusce at tellus vitae dolor blandit porttitor a eget massa. Nullam non nunc vitae ligula commodo tempor eget eget enim. Proin porta libero a facilisis gravida. Nullam at aliquet sem, et aliquam nulla."}),e.jsxs("div",{className:"mb-[24px] flex gap-[24px]",children:[e.jsx(Oe,{placeholder:"Vezetéknév",className:"w-[356px]",value:s.value,onChange:p("lastName")}
78),e.jsx(Oe,{placeholder:"Keresztnév",className:"w-[356px]",value:n.value,onChange:p("firstName")})]}),e.jsxs("div",{className:"mb-[24px] flex gap-[24px]",children:[e.jsx(Oe,{placeholder:"Az Ön e-mail címe",className:"w-[356px]",value:r.value,onChange:p("email")}),e.jsx(Oe,{placeholder:"Az Ön telefonszáma",className:"w-[356px]",value:c.value,onChange:p("phone")})]}),e.jsx(Oe,{type:"dropdown",placeholder:"Az üzenet tárgya",className:"mb-[24px] w-full",value:u.value,onChange:p("subject"),items:[{key:"Javaslat",value:"Javaslat"},{key:"Kérdés",value:"Kérdés"}]}),e.jsx(Oe,{type:"textarea",placeholder:"Üzenet",className:"mb-[32px] w-full",value:d.value,onChange:p("message")}),e.jsx("button",{className:"mb-[32px] cursor-pointer rounded-[4px] bg-(--color-primary-dark-blue) px-[24px] py-[20px] text-[12px] leading-[110%] font-bold text-(--color-white)",children:"Üzenet elküldése"})]})},W4=()=>{const t=ie(),{lastName:s,firstName:n,email:r,password:c,confirmPassword:u,rememberMe:d}=b(v=>v.registration.form),p=v=>N=>{t(c0({field:v,value:N}))},x=()=>{},g=()=>{},h=()=>{};return e.jsxs("main",{children:[e.jsx("div",{className:"mx-auto w-[1170px]",children:e.jsxs("div",{className:"w-[384px] pb-[50px]",children:[e.jsx("img",{alt:"Újbuda - XI. kerület",className:"mt-[24px] mb-[64px] w-full",height:128,src:"/images/logo.svg",width:384}),e.jsx("h2",{className:"mb-[20px] text-center font-(family-name:--font-secondary-bold) text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:"Regisztráció"}),e.jsxs("div",{className:"mb-[61px] flex justify-center gap-[8px] text-[12px] leading-[110%]",children:[e.jsx("span",{className:"font-bold text-(--color-dark-gray)",children:"Már van fiókod?"}),e.jsx(_,{className:"font-bold text-(--color-primary-dark-blue) underline",to:"/belepes",children:"Kattints ide a belépéshez!"})]}),e.jsxs("div",{className:"mb-[32px] flex flex-col gap-[16px]",children:[e.jsx(td,{type:"facebook",onClick:x}),e.jsx(td,{type:"google",onClick:g})]}),e.jsx("div",{className:"mb-[32px] text-center text-(--color-dark-gray)",children:"vagy"}),e.jsxs("form",{className:"flex flex-col gap-[16px]",onSubmit:h,children:[e.jsx(Oe,{alt:"Vezetéknév",icon:"user",placeholder:"Vezetéknév",type:"text",value:s.value,onChange:p("lastName")}),e.jsx(Oe,{alt:"Keresztnév",icon:"user",placeholder:"Keresztnév",type:"text",value:n.value,onChange:p("firstName")}),e.jsx(Oe,{alt:"E-mail",icon:"email",placeholder:"E-mail",type:"email",value:r.value,onChange:p("email")}),e.jsx(Oe,{alt:"Jelszó",icon:"password",placeholder:"Jelszó",type:"password",value:c.value,onChange:p("password")}),e.jsx(Oe,{alt:"Jelszó újra",icon:"password",placeholder:"Jelszó újra",type:"password",value:u.value,onChange:p("confirmPassword")}),e.jsx("div",{className:"mt-[9px] mb-[17px]",children:e.jsx(wj,{checked:d.value,label:"Emlékezz rám",onChange:p("rememberMe")})}),e.jsx("button",{className:"w-full cursor-pointer rounded-[4px] bg-(--color-primary-dark-blue) py-[20px] text-[12px] leading-[110%] font-bold text-(--color-white)",children:"Regisztráció"})]})]})}),e.jsx("img",{alt:"Háttér",className:"fixed top-0 right-0 h-full",src:"/images/login-background-image.webp"})]})},e6=()=>{const t=ie(),{password:s,confirmPassword:n}=b(u=>u.resetPassword.form),r=u=>d=>{t(d0({field:u,value:d}))},c=()=>{};return e.jsxs("main",{children:[e.jsx("div",{className:"mx-auto w-[1170px]",children:e.jsxs("div",{className:"w-[384px] pb-[50px]",children:[e.jsx("img",{alt:"Újbuda - XI. kerület",className:"mt-[24px] mb-[64px] w-full",height:128,src:"/images/logo.svg",width:384}),e.jsx("h2",{className:"mb-[64px] text-center font-(family-name:--font-secondary-bold) text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:"Jelszó helyreállítása"}),e.jsxs("form",{className:"flex flex-col gap-[16px]",onSubmit:c,children:[e.jsx(Oe,{alt:"Jelszó",icon:"email",placeholder:"Jelszó",type:"password",value:s.value,onChange:r("password")}),e.jsx(Oe,{alt:"Jelszó újra",icon:"email",placeholder:"Jelszó újra",type:"password",value:n.value,onChange:r("confirmPassword")}),e.jsx("button",{className:"mt-[16px] w-full cursor-pointer rounded-[4px] bg-(--color-primary-dark-blue) py-[20px] text-[12px] leading-[110%] font-bold text-(--color-white)",children:"Jelszó megváltoztatása"})]})]})}),e.jsx("img",{alt:"Háttér",className:"fixed top-0 right-0 h-full",src:"/images/login-background-image.webp"})]})}
78,t6=({categories:t,description:s,link:n,title:r,date:c=new Date})=>e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"mb-[16px] flex flex-col items-start gap-2 md:flex-row md:items-center md:gap-4",children:[c&&e.jsxs("p",{className:"text-primary-dark-blue items-center text-[18px] leading-[150%] font-bold",children:[c.getFullYear(),". ",(c.getMonth()+1).toString().padStart(2,"0"),". ",c.getDate().toString().padStart(2,"0"),"."]}),e.jsx("div",{className:"flex-warp flex gap-4",children:t.map(u=>e.jsx(cn,{label:u.name,background:u.bgColor}))})]}),e.jsx("h3",{className:"line-clamp-2 text-[18px] leading-[150%] font-bold text-black",children:r}),s&&e.jsx("p",{className:"line-clamp-3 pt-6 text-[18px] leading-[150%]",dangerouslySetInnerHTML:{__html:s}}),e.jsxs("div",{className:"flex flex-col gap-[16px]",children:[e.jsxs(_,{className:"mt-[18px] flex items-center gap-[6px]",to:n,children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold text-(--color-link-blue)",children:"Tovább olvasom"}),e.jsx("img",{alt:"Nyíl",height:8,src:"/svgs/right_arrow_blue.svg",width:12})]}),e.jsx("div",{className:"bg-dark-gray flex h-[1px] w-full"})]})]});function Nj(t,s){for(const n of t){if(n.id===s)return n;if(n.children&&n.children.length>0){const r=Nj(n.children,s);if(r!==null)return r}}return null}function ao(t,s){for(const n of t){if(s(n))return n;if(n.children&&n.children.length>0){const r=ao(n.children,s);if(r!==null)return r}}return null}const l6=(t,s,n)=>{let r;switch(s){case"static":return r=Nj(t,n.id),r==null?void 0:r.path;case"regulations":return`/rendeletek/${n.slug}`;case"decisions":return`/hatarozatok/${n.id}`;case"announcements":return`/hirdetmenyek/${n.id}`;case"issues":return`/ugyek/${n.id}`;case"documents":return n.file;case"events":return`/esemenyek/${n.id}`;case"faq":return r=ao(t,c=>c.type==="faq"),r?r.path:"/";case"organisation_contacts":return r=ao(t,c=>c.type==="organisation_contacts"),r?r.path:"/";case"publications":return r=ao(t,c=>c.type==="publications"),r?r.path:"/";case"representatives":return r=ao(t,c=>c.type==="representatives"),r?r.path:"/";case"news":return`/hirek/${n.id}`}},a6=t=>{switch(t){case"regulations":return"rendeletek";case"decisions":return"hatarozatok";case"announcements":return"hirdetmenyek";case"issues":return"ugyek";case"documents":return"dokumentumok";case"events":return"esemenyek";case"faq":return"gyik";case"organisation_contacts":return"telefonkonyv";case"publications":return"kiadvanyok";case"representatives":return"kepviselok";case"news":return"hirek";case"static":default:return"oldalak"}},te=()=>{const{type:t,search:s}=Be(),n=_e(),r=oe(),c=r.page,u=r.search,{sitemap:d}=b(C=>C.sitemap),[p,x]=y.useState(r.results),[g,h]=y.useState(s||""),v=()=>{n(`/kereses/${g}`)},N=C=>{C.code==="Enter"&&(C.preventDefault(),v())};return y.useEffect(()=>{r.results.length===0&&Object.keys(r.resultCounts).length>0&&n(`/kereses/${a6(Object.keys(r.resultCounts)[0])}/${g}`),x(r.results)},[r.results]),e.jsxs("div",{className:"flex flex-col",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Keresés"}]}),e.jsx("h1",{className:"font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:s?`Találati lista “${u}” kifejezésre`:"Keresés"}),e.jsxs("div",{className:"shadow-lightblue mb-[48px] flex h-[56px] w-full flex-row items-center justify-between shadow-xl/24",children:[e.jsxs("div",{className:"relative flex w-full flex-row items-center",children:[e.jsx("img",{src:"/svgs/search_icon_gray.svg",alt:"Keresés ikon",className:"text-dark-gray absolute top-1/2 left-3 flex min-h-[24px] min-w-[24px] -translate-y-1/2 items-center justify-center"}),e.jsx("label",{htmlFor:"searchTerm",className:"absolute left-[-10000%]",children:"Miben segíthetünk ma?"}),e.jsx("input",{type:"text",className:"placeholder:text-dark-gray border-light-gray w-full rounded-l-sm border border-r-0 px-4 py-4 pl-12 placeholder:text-[12px] min-[380px]:placeholder:text-[16px]",placeholder:"Miben segíthetünk ma?",value:g,onKeyUp:N,id:"searchTerm",onChange:C=>h(C.target.value)})]}),e.jsxs("button",{onClick:v,className:"bg-lightblue hidden max-h-full w-[194px] curs
78or-pointer items-center justify-center gap-2 rounded-r-sm px-6 py-[22px] text-[12px] leading-[100%] font-bold min-[515px]:flex",children:[e.jsx("img",{src:"/svgs/search_icon_black.svg",alt:"Keresés"}),"Keresés"]}),e.jsx("button",{onClick:v,className:"bg-lightblue flex aspect-square h-full max-h-full cursor-pointer items-center justify-center gap-2 rounded-r-sm text-[12px] leading-[100%] font-bold min-[515px]:hidden",children:e.jsx("img",{src:"/svgs/search_icon_black.svg",alt:"Keresés"})})]}),e.jsx("div",{className:"mb-[48px] flex flex-wrap items-center gap-x-[32px] gap-y-[12px] text-[14px] md:flex-nowrap md:justify-between md:gap-0 md:text-[16px] xl:hidden",children:r.sideMenu.map(C=>e.jsxs(_,{to:`/kereses/${C.id}/${s}`,className:`${C.id===(t||"oldalak")&&"font-bold text-(--color-lightblue)"}`,children:[C.label," [",C.results,"]"]}))}),s&&r.activeType===r.selectedType&&e.jsx("div",{className:"flex flex-col gap-[24px]",children:p.map(C=>e.jsx(t6,{categories:[],date:C.date===null?null:new Date(typeof C.date=="string"&&isNaN(C.date)?C.date:C.date*1e3),description:C.content,link:l6(d,r.activeType,C),title:C.title}))}),s&&r.activeType===r.selectedType&&e.jsxs("div",{className:"mt-[32px] flex w-full items-center justify-center gap-[8px]",children:[c>1&&e.jsx(_,{to:`/kereses/${t||"oldalak"}/${s}/${c-1}`,className:"flex h-[32px] w-[32px] cursor-pointer items-center justify-center rounded-[4px] border border-(--color-dark-gray) text-center text-[12px] leading-[100%] font-medium",children:"<"}),[c-4,c-3,c-2,c-1,c,c+1,c+2,c+3,c+4].map(C=>C<1||C>r.pageCount||C<c-2||C>c+2?null:e.jsx(_,{to:`/kereses/${t||"oldalak"}/${s}/${C}`,className:`flex h-[32px] w-[32px] cursor-pointer items-center justify-center rounded-[4px] border border-(--color-dark-gray) text-center text-[12px] leading-[100%] font-medium ${c===C&&"border-(--color-lightblue) text-(--color-lightblue)"}`,children:C})),c<r.pageCount&&e.jsx(_,{to:`/kereses/${t||"oldalak"}/${s}/${c+1}`,className:"flex h-[32px] w-[32px] cursor-pointer items-center justify-center rounded-[4px] border border-(--color-dark-gray) text-center text-[12px] leading-[100%] font-medium",children:">"})]})]})},s6=()=>{const t=ie(),{password:s,confirmPassword:n}=b(c=>c.security.form),r=c=>u=>{t(x0({field:c,value:u}))};return e.jsxs("div",{children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h2",{className:"font-secondary-bold mb-[42px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:"Biztonság / jelszavak"}),e.jsx("h3",{className:"font-secondary-bold mb-[44px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:"Új jelszó igénylése"}),e.jsx(Oe,{alt:"Új jelszó",className:"mb-[16px] w-[374px]",icon:"password",placeholder:"Új jelszó",value:s.value,onChange:r("password")}),e.jsx(Oe,{alt:"Új jelszó újra",className:"mb-[32px] w-[374px]",icon:"password",placeholder:"Új jelszó újra",value:n.value,onChange:r("confirmPassword")}),e.jsx("button",{className:"mb-[136px] w-[374px] cursor-pointer rounded-[4px] bg-(--color-primary-dark-blue) px-[24px] py-[20px] text-[12px] leading-[110%] font-bold text-(--color-white)",children:"Új jelszót szeretnék"}),e.jsx("h3",{className:"font-secondary-bold mb-[26px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:"Profil végleges törlése"}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%] font-bold text-(--color-black)",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin pharetra consequat sem. Nam id tortor scelerisque, ullamcorper odio at, aliquet eros. Aenean arcu lorem, fringilla vel lacus id, pharetra convallis mi. Donec congue vitae lorem vel aliquam. Nullam a nunc erat. Sed neque libero, iaculis ut commodo in, hendrerit in mi. Pellentesque est quam, consectetur eu felis nec, dapibus sodales ante."}),e.jsxs("a",{className:"mb-[24px] flex cursor-pointer items-center gap-[6px]",children:[e.jsx("img",{alt:"Kuka",height:9.82,src:"/svgs/delete_icon.svg",width:12}),e.jsx("span",{className:"text-[12px] leading-[100%] font-bold text-(--color-black)",children:"Tovább olvasom"})]})]})},n6=()=>{const t=ie(),{style:s}=b(c=>c.config),{documents:n}=b(c=>c.document),r=y.useCallback(async()=>{var u;const c=(u=document.querySelector(".lazy-loader"))==null?void 0:u.getBoundingClientRect();c&&c.top>0&&c.top<window.innerHeight&&k.getState().document.hasMore===!0&&k.getState().document.inProgress===!1&&(t(Cm(!0)),await ho("7",10,n.reduce((d,p)=>p.datePublished<d?p.datePublished:d,Math.round(new Date().getTime()/1e3))-1))},[n,t]);return y.useEffect(()=>(window.addEventListener("scroll",r),()=>{window.removeEventListener("scroll",r)}),[r]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-full flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Nyomtatványok",href:"/nyomtatvanyok"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[32px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Nyomtatványok"}),e.jsx("div",{className:"flex flex-col gap-[16px]",children:n.map(c=>e.jsx(za,{title:c.name,link:c.file},c.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"}),n.length===0&&e.jsx("div",{className:"mx-auto flex h-[600px] w-full items-center justify-center md:w-[720px] xl:w-[1170px]",children:e.jsx(ce,{className:"items-center text-center"})})]})},Ma=()=>{const{style:t}=b(c=>c.config),{staticPage:s}=b(c=>
78c.staticPage),n=oe(),r=y.useRef();return y.useEffect(()=>{r&&r.current&&(Mm(r,t),setTimeout(()=>{const c=location.hash,u=document.querySelector(c);u&&window.document.documentElement.scrollTo({top:u.getBoundingClientRect().top,behavior:"smooth"})},100))},[r,n]),e.jsxs("div",{className:`static-page static-page--${t}`,children:[e.jsxs("div",{className:"relative mx-auto h-[400px] w-full px-[16px] md:w-[720px] xl:w-[1170px]",children:[e.jsx("img",{alt:"Háttér",className:"absolute top-0 left-0 z-1 h-full w-full object-cover object-center",src:s.image?`https://api.ujbuda.hu/files/StaticPages/image/${s.image}`:`/style/${t}/static-page.webp`}),e.jsx("div",{className:"absolute top-0 left-0 z-2 h-full w-full bg-[#171717] opacity-[0.64]"}),e.jsxs("div",{className:"relative z-3 mx-auto flex h-full max-h-[400px] w-full flex-col items-center justify-center px-[16px] text-center text-(--color-white) md:w-[720px] md:items-start md:px-0 md:text-left xl:w-[1170px]",children:[e.jsx(G,{color:"white",separatorColor:"var(--color-primary-green)",className:"mb-[26px]"}),e.jsx("h1",{className:"font-secondary-bold mb-[16px] text-[36px] leading-[110%] md:text-[48px] xl:text-[52px]",children:s.title}),e.jsx("h2",{className:"max-w-[570px] text-[16px] leading-[150%] xl:text-[18px]",children:s.subtitle})]})]}),s.content&&s.content.length>0&&e.jsx("div",{ref:r,className:"static-page--content mx-auto mt-[64px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",dangerouslySetInnerHTML:{__html:s.content}}),(s==null?void 0:s.youtubeEmbedUrl)&&e.jsx("div",{className:"mx-auto mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsx(Nl,{url:s.youtubeEmbedUrl})}),(s==null?void 0:s.gallery)&&(s==null?void 0:s.gallery.length)>0&&e.jsx("div",{className:"mx-auto mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsx(hl,{className:"mt-[24px]",images:s==null?void 0:s.gallery,title:"Galéria"})}),(s==null?void 0:s.documents)&&s.documents.length>0&&e.jsx("div",{className:"mx-auto mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:s==null?void 0:s.documents})}),(s==null?void 0:s.relatedLinks)&&s.relatedLinks.length>0&&e.jsx("div",{className:"mx-auto mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:s==null?void 0:s.relatedLinks})}),(s==null?void 0:s.map)&&e.jsx("div",{className:"mx-auto mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsx("div",{className:"aspect-[16/9] w-full",children:e.jsx("iframe",{className:"h-full w-full",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",src:`https://www.google.com/maps/embed/v1/place?key=AIzaSyC6LqzizI4MLcTUlT7fs4oC0rg9uNBlxqQ&q=${s.map.address}`})})})]})},Bt=()=>{const{style:t}=b(s=>s.config);return e.jsx("div",{className:"mx-auto flex h-[600px] w-[80%] max-w-[1170px] items-center justify-center",children:e.jsxs("div",{className:"flex w-[90%] flex-col items-center gap-[32px] text-center",children:[e.jsx("div",{children:e.jsx("img",{alt:"Az oldal nem található",src:"/svgs/footer_dark_blue_image.svg",className:"h-[228px]"})}),e.jsx("div",{className:`title--${t} font-secondary-bold text-[44px] leading-[120%] text-(--color-primary-dark-blue)!`,children:"A keresett oldal nem található"}),e.jsx("div",{children:e.jsx(_,{to:"/",children:e.jsx("button",{className:`button--${t} cursor-pointer rounded-[4px] bg-(--color-primary-dark-blue)! px-[24px] py-[18px] text-[12px] leading-[110%] font-bold text-(--color-white)! mb-4`,children:"Vissza a főoldalra"})})})]})})},Da=({title:t})=>{const{style:s}=b(c=>c.config),{categories:n}=b(c=>c.document),r=n.reduce((c,u)=>c+u.documents.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-full flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:t}),e.jsx("div",{className:"flex flex-col gap-[48px]",children:n.map(c=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("h2",{className:`font-secondary-bold pb-[7.5px] text-[24px] title--${s}`,children:c.name}),e.jsxs(_,{to:`/dokumentumok/kategoriak/${c.id}`,className:`flex items-center gap-[6px] link--${s}`,children:[e.jsx("span",{className:"text-[12px] font-bold",children:"További dokumentumok"}),e.jsx("img",{alt:"Jobbra mutató nyíl",src:`/style/${s}/arrow.svg`})]})]}),e.jsx(De,{className:"mb-[16px]"}),e.jsx("div",{className:"flex flex-col gap-[16px]",children:c.documents.map(u=>e.jsx(za,{title:u.name,link:u.file},u.id))})]}))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"}),(n.length===0||r===0)&&e.jsx("div",{className:"mx-auto flex h-[600px] w-full items-center justify-center md:w-[720px] xl:w-[1170px]",children:e.jsx(ce,{className:"items-center text-center"})})]})},$a=({title:t,children:s})=>{const{style:n}=b(r=>r.config);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${n} font-secondary-bold mb-[32px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:t}),e.jsx("div",{className:"flex flex-wrap items-center gap-[32px]",children:s.map(r=>e.jsxs(_,{className:"relative flex w-full flex-col justify-center rounded-[4px] border-1 border-[#F4F4F4] p-[20px] pr-[44px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)] md:w-[calc(50%-16px)]",to:r.external?r.external_link:r.path,target:r.external?"_blank":void 0,children:[e.jsx("span",{className:"font-secondary-bold text-[24px] text-[#54504D]",children:r.title}),e.jsx("img",{alt:"Jobbra mutató nyíl",className:"absolute top-[50%] right-[20px] w-[16px] translate-y-[-50%]",src:`/style/${n}/arrow.svg`})]}))}),s.length===0&&e.jsx("div",{className:"mx-auto flex h-[600px] w-full max-w-[1170px] items-center justify-center px-5 xl:px-0",children:e.jsx(ce,{className:"items-center text-center"})})]})},Qe=({title:t=void 0,categoryId:s=void 0})=>{const n=ie(),r=Be();
78s===void 0&&(s=r.id);const{style:c}=b(v=>v.config),{categories:u,documents:d,inProgress:p}=b(v=>v.document),[x,g]=y.useState(null),h=y.useCallback(async()=>{var N;const v=(N=document.querySelector(".lazy-loader"))==null?void 0:N.getBoundingClientRect();v&&v.top>0&&v.top<window.innerHeight&&k.getState().document.hasMore===!0&&k.getState().document.inProgress===!1&&(n(Cm(!0)),await ho(s,void 0,k.getState().document.page+1))},[s,k.getState().document.page,n]);return y.useEffect(()=>{g(u.find(v=>v.id==s)||null)},[u,s]),y.useEffect(()=>(window.addEventListener("scroll",h),()=>{window.removeEventListener("scroll",h)}),[h]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-full flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:c==="kozpont"?[{title:"Hasznos info",href:"/Hasznos-info"},{title:"Dokumentumok",href:"/Hasznos-info/Dokumentumok"},{title:x==null?void 0:x.name}]:null}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:t||(x?x.name:"")}),e.jsx("div",{className:"flex flex-col gap-[16px]",children:d.map(v=>e.jsx(za,{title:v.name,link:v.file},v.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"}),d.length===0&&e.jsx("div",{className:"mx-auto flex h-[600px] w-full items-center justify-center md:w-[720px] xl:w-[1170px]",children:e.jsx(ce,{className:"items-center text-center"})})]})},i6=async()=>{const{firstName:t,lastName:s,email:n,phone:r,subject:c,message:u}=k.getState().contact.form;if(t.value.trim().length===0){k.dispatch(Al({type:"contact",title:"Üzenetküldés",message:"A keresztnév megadása kötelező!"}));return}if(s.value.trim().length===0){k.dispatch(Al({type:"contact",title:"Üzenetküldés",message:"A vezetéknév megadása kötelező!"}));return}if(n.value.trim().length===0){k.dispatch(Al({type:"contact",title:"Üzenetküldés",message:"Az e-mail cím megadása kötelező!"}));return}if(r.value.trim().length===0){k.dispatch(Al({type:"contact",title:"Üzenetküldés",message:"A telefonszám megadása kötelező!"}));return}if(c.value.trim().length===0){k.dispatch(Al({type:"contact",title:"Üzenetküldés",message:"A tárgy megadása kötelező!"}));return}if(u.value.trim().length===0){k.dispatch(Al({type:"contact",title:"Üzenetküldés",message:"Üzenet megadása kötelező!"}));return}const d=await fetch("https://api.ujbuda.hu/webapi/v1.0/contacts",{body:JSON.stringify({firstname:t.value,lastname:s.value,email:n.value,phone:r.value,subject:c.value,message:u.value}),headers:{"Content-Type":"application/json",Domain:location.hostname},method:"POST"});return d.status===204?(k.dispatch(Al({type:"contact",title:"Üzenetküldés",message:"Az üzenetét sikeresen befogadtuk!"})),k.dispatch(Ca({field:"firstName",value:""})),k.dispatch(Ca({field:"lastName",value:""})),k.dispatch(Ca({field:"email",value:""})),k.dispatch(Ca({field:"phone",value:""})),k.dispatch(Ca({field:"subject",value:""})),k.dispatch(Ca({field:"message",value:""}))):k.dispatch(Al({type:"contact",title:"Üzenetküldés",message:"Hiba történt az üzenetküldés közben! Kérjük, próbálja újra később!"})),d.status===200},Oa=()=>{const t=ie(),{contactAddresses:s,contactEmails:n,contactPhones:r}=b(v=>v.config),{lastName:c,firstName:u,email:d,phone:p,subject:x,message:g}=b(v=>v.contact.form),h=v=>N=>{t(Ca({field:v,value:N}))};return e.jsxs("div",{className:"my-[64px] w-full px-[16px] md:mx-auto md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:"Kapcsolat"}),e.jsx(et,{className:"mb-[32px]"}),e.jsx("h2",{className:"text-primary-dark-blue mb-[7.5px] text-[18px] font-bold",children:"Általános elérhetőségeink"}),e.jsx(De,{className:"mb-[24px]"}),e.jsxs("div",{className:"mb-[71.5px] flex flex-col items-start gap-[24px] md:flex-row",children:[s&&s.length>0&&e.jsxs("div",{className:"flex w-full shrink-0 flex-col justify-center gap-[16px] p-[24px] shadow-[0px_8px_18px_0px_rgba(37,92,136,0.12)] md:w-[calc(33.3333%-16px)]",children:[e.jsx("img",{alt:"Térkép",height:32,src:"/svgs
78/map_icon.svg",width:32}),e.jsx("span",{className:"font-secondary-bold text-[24px] leading-[120%] text-(--color-black)",children:"Címünk"}),e.jsx("div",{className:"flex flex-col gap-[16px] text-[12px] leading-[150%] text-(--color-black)",children:s.map((v,N)=>e.jsx("span",{children:v},N))})]}),r&&r.length>0&&e.jsxs("div",{className:"flex w-full shrink-0 flex-col justify-center gap-[16px] p-[24px] shadow-[0px_8px_18px_0px_rgba(37,92,136,0.12)] md:w-[calc(33.3333%-16px)]",children:[e.jsx("img",{alt:"Információ",height:32,src:"/svgs/info_icon.svg",width:32}),e.jsx("span",{className:"font-secondary-bold text-[24px] leading-[120%] text-(--color-black)",children:"Telefonszámaink"}),e.jsx("div",{className:"flex flex-col gap-[16px] text-[12px] leading-[150%] text-(--color-black)",children:r.map((v,N)=>e.jsxs("div",{className:"flex flex-col",children:[v.name&&v.name.trim().length>0&&e.jsxs("strong",{className:"font-bold",children:[v.name,":"]}),e.jsx("span",{className:"break-words",children:v.phone})]},N))})]}),n&&n.length>0&&e.jsxs("div",{className:"flex w-full shrink-0 flex-col justify-center gap-[16px] p-[24px] shadow-[0px_8px_18px_0px_rgba(37,92,136,0.12)] md:w-[calc(33.3333%-16px)]",children:[e.jsx("img",{alt:"Dokumentum",height:32,src:"/svgs/documents_icon.svg",width:32}),e.jsx("span",{className:"font-secondary-bold text-[24px] leading-[120%] text-(--color-black)",children:"Email címeink"}),e.jsx("span",{className:"flex flex-col gap-[16px] text-[12px] leading-[150%] text-(--color-black)",children:n.map((v,N)=>e.jsxs("div",{className:"flex flex-col",children:[v.description&&v.description.trim().length>0&&e.jsxs("strong",{className:"font-bold",children:[v.description,":"]}),e.jsx("span",{className:"break-words",children:v.email})]},N))})]})]}),e.jsx("h3",{className:"text-primary-dark-blue mb-[7.5px] text-[18px] font-bold",children:"ĺrjon nekünk!"}),e.jsx(De,{className:"mb-[24px]"}),e.jsxs("div",{className:"mb-[24px] flex flex-col gap-[24px] md:flex-row",children:[e.jsx("label",{htmlFor:"lastName",className:"absolute left-[-10000%]",children:"Vezetéknév"}),e.jsx(Oe,{id:"lastName",placeholder:"Vezetéknév",className:"w-full md:w-[356px]",value:c.value,onChange:h("lastName")}),e.jsx("label",{htmlFor:"firstName",className:"absolute left-[-10000%]",children:"Keresztnév"}),e.jsx(Oe,{id:"firstName",placeholder:"Keresztnév",className:"w-full md:w-[356px]",value:u.value,onChange:h("firstName")})]}),e.jsxs("div",{className:"mb-[24px] flex flex-col gap-[24px] md:flex-row",children:[e.jsx("label",{htmlFor:"email",className:"absolute left-[-10000%]",children:"Az Ön e-mail címe"}),e.jsx(Oe,{id:"email",placeholder:"Az Ön e-mail címe",className:"w-full md:w-[356px]",value:d.value,onChange:h("email")}),e.jsx("label",{htmlFor:"phone",className:"absolute left-[-10000%]",children:"Az Ön telefonszáma"}),e.jsx(Oe,{id:"phone",placeholder:"Az Ön telefonszáma",className:"w-full md:w-[356px]",value:p.value,onChange:h("phone")})]}),e.jsx("label",{htmlFor:"subject",className:"absolute left-[-10000%]",children:"Az üzenet tárgya"}),e.jsx(Oe,{id:"subject",type:"dropdown",placeholder:"Az üzenet tárgya",className:"mb-[24px] w-full",value:x.value,onChange:h("subject"),items:[{key:"Javaslat",value:"Javaslat"},{key:"Kérdés",value:"Kérdés"}]}),e.jsx("label",{htmlFor:"message",className:"absolute left-[-10000%]",children:"Üzenet"}),e.jsx(Oe,{id:"message",type:"textarea",placeholder:"Üzenet",className:"mb-[32px] w-full",value:g.value,onChange:h("message")}),e.jsx("button",{className:"mb-[32px] cursor-pointer rounded-[4px] bg-(--color-primary-dark-blue) px-[24px] py-[20px] text-[12px] leading-[110%] font-bold text-(--color-white)",onClick:i6,children:"Üzenet elküldése"}),e.jsx(Jl,{type:"contact"})]})},r6=async t=>await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/forms/${t}`,{headers:{Domain:location.hostname}})).json(),o6=async(t,s)=>{try{return(await fetch(`https://api.ujbuda.hu/webapi/v1.0/forms/${t}`,{body:JSON.stringify(s.form_inputs.filter(r=>r.type!=="legend"&&r.type!=="headertext").map(r=>({id:r.id,value:r.type==="checkbox"?r.options.filter(c=>c.checked===!0).map(c=>c.option):r.value}))),headers:{"Content-Type":"application/json",Domain:location.hostname},method:"POST"})).status<=299}catch{return!1}},c6=({id:t})=>{const s=ie(),[n,r]=y.useState(null);y.useEffect(()=>{r6(t).then(d=>r(d))},[t]);const c=()=>{let d=!1;for(let p=0;p<n.form_inputs.length;p++)n.form_inputs[p].type==="legend"||n.form_inputs[p].type==="headertext"||(n.form_inputs[p].type==="checkbox"?n.form_inputs[p].is_mandatory===!0&&n.form_inputs[p].options[0].checked!==!0?(d=!0,n.form_inputs[p].error="A mező kitöltése kötelező!"):n.form_inputs[p].error=null:n.form_inputs[p].is_mandatory===!0&&(!n.form_inputs[p].value||n.form_inputs[p].value==="")?(d=!0,n.form_inputs[p].error="A mező kitöltése kötelező!"):n.form_inputs[p].error=null);return r({...n}),d},u=async()=>
78{if(c()){s(Al({type:"form",title:"Űrlap beküldés",message:"Az űrlap hibákat tartalmaz! Kérjük, javítsa a hibákat és próbálja újra!"}));return}if(await o6(t,n)){s(Al({type:"form",title:"Űrlap beküldés",message:"Az űrlap sikeresen beküldésre került!"}));for(let p=0;p<n.form_inputs.length;p++)if(!(n.form_inputs[p].type==="legend"||n.form_inputs[p].type==="headertext"))if(n.form_inputs[p].type==="checkbox")for(let x=0;x<n.form_inputs[p].options.length;x++)n.form_inputs[p].options[x].checked=!1;else n.form_inputs[p].value="";r({...n})}else s(Al({type:"form",title:"Űrlap beküldés",message:"Az űrlap beküldése közben hiba lépett fel! Kérjük, próbálja újra később!"}))};return n?e.jsxs("div",{children:[e.jsx(Jl,{type:"form"}),e.jsx("div",{className:"mb-[28px] flex flex-col gap-[24px]",children:n.form_inputs.map((d,p)=>{switch(d.type){case"legend":return e.jsx("div",{className:"mb-[64px] text-[18px] leading-[150%] font-bold text-(--color-black)",children:d.formtext});case"headertext":return e.jsxs("div",{children:[e.jsx("h3",{className:"font-secondary-bold text-[24px] leading-[120%] font-[250] text-[var(--colors-blue-brand-dark)]",children:d.formtext}),e.jsx(De,{className:"mt-[8px]"})]});case"checkbox":return e.jsxs("div",{children:[e.jsx("label",{htmlFor:`form-element-${p}`,className:"font-secondary-bold text-[24px] leading-[120%] font-[250] text-[var(--colors-blue-brand-dark)]",children:d.label}),e.jsx(De,{className:"mt-[8px] mb-[28px]"}),e.jsx("div",{className:"flex flex-col gap-[8px]",children:d.options.map((x,g)=>e.jsxs("div",{className:"flex items-center gap-[8px]",children:[e.jsx("input",{id:`form-element-${p}`,type:"checkbox",checked:x.checked,onClick:()=>{n.form_inputs[p].options[g].checked=!x.checked,r({...n})}}),e.jsx("label",{children:x.option})]}))}),e.jsx("div",{className:"mt-[8px] ml-[4px] text-[12px] text-[red]",children:d.error})]});case"radio":return e.jsxs("div",{children:[e.jsx("label",{htmlFor:`form-element-${p}`,className:"font-secondary-bold text-[24px] leading-[120%] font-[250] text-[var(--colors-blue-brand-dark)]",children:d.label}),e.jsx(De,{className:"mt-[7.5px] mb-[28px]"}),e.jsx("div",{className:"flex flex-col gap-[8px]",children:d.options.map(x=>e.jsxs("div",{className:"flex items-center gap-[8px]",children:[e.jsx("input",{id:`form-element-${p}`,name:`option-${d.id}`,type:"radio",value:x.value,checked:x.value===n.form_inputs[p].value,onChange:g=>{n.form_inputs[p].value=g.target.value,r({...n})}}),e.jsx("label",{children:x.option})]}))}),e.jsx("div",{className:"mt-[8px] ml-[4px] text-[12px] text-[red]",children:d.error})]});case"select":return e.jsxs("div",{children:[e.jsx("label",{htmlFor:`form-element-${p}`,className:"absolute left-[-10000%]",children:d.label}),e.jsx(Oe,{id:`form-element-${p}`,placeholder:d.label,className:"w-[100%]",type:"dropdown",value:d.value||"",onChange:x=>{n.form_inputs[p].value=x,r({...n})},items:d.options.map(x=>({key:x.option,value:x.value}))}),e.jsx("div",{className:"text-[red]",children:d.error})]});default:return e.jsxs("div",{children:[e.jsx("label",{htmlFor:`form-element-${p}`,className:"absolute left-[-10000%]",children:d.label}),e.jsx(Oe,{id:`form-element-${p}`,placeholder:d.label,className:"w-[100%]",type:d.type,value:d.value,onChange:x=>{n.form_inputs[p].value=x,r({...n})}}),e.jsx("div",{className:"mt-[8px] ml-[4px] text-[12px] text-[red]",children:d.error})]})}})}),e.jsx("button",{className:"mb-[32px] cursor-pointer rounded-[4px] bg-(--color-primary-dark-blue) px-[24px] py-[20px] text-[12px] leading-[110%] font-bold text-(--color-white)",onClick:u,children:"Küldés"})]}):e.jsx("div",{children:"Üres űrlap"})},Ha=({title:t,formId:s})=>e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:"font-secondary-bold mb-[24px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:t}),e.jsx(c6,{id:s})]}),d6=({issue:t})=>e.jsx("div",{className:"flex flex-col rounded-[4px] border-1 border-[#F4F4F4] p-[24px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)]",children:e.jsxs("div",{className:"flex items-center justify-between gap-[32px]",children:[e.jsxs("div",{className:"flex flex-col gap-[6px]",children:[e.jsx("div",{className:"flex gap-[6px]",children:t.categories.map(s=>e.jsx(cn,{label:s.name}))}),e.jsx("div",{className:"text-[18px] leading-[150%] font-bold text-[#255C88]",children:t.name})]}),e.jsx("div",{children:e.jsx("img",{alt:"Jobbra mutató nyíl",className:"min-h-6 min-w-6",height:24,src:"/svgs
78/link.svg",width:24})})]})});let Pu=!1;const ma=()=>{const t=ie(),{issues:s,issueCategories:n,page:r,hasMore:c,inProgress:u}=b(S=>S.administration),[d,p]=y.useState([]),[x,g]=y.useState([]);y.useEffect(()=>{const S=[...new Set(s.map(L=>L.name.substring(0,1).toLowerCase()))];p(S)},[s]);const h=y.useCallback(async()=>{var L;const S=(L=document.querySelector(".lazy-loader"))==null?void 0:L.getBoundingClientRect();S&&S.top>0&&S.top<window.innerHeight&&c===!0&&u===!1&&!Pu&&(Pu=!0,setTimeout(()=>Pu=!1,1e3),t(Q0()),await Pi(x,10,r+1))},[x,r,t]);y.useEffect(()=>(window.addEventListener("scroll",h),()=>{window.removeEventListener("scroll",h)}),[h]);const v=async S=>{if(x.find(Y=>Y.id==S)!==void 0)return;const F=n.find(Y=>Y.id==S);if(F===void 0)return;const T=[...x,F];g(T),await Pi(T)},N=async S=>{const L=x.filter(F=>F.id!==S);g(L),await Pi(L)},C=async()=>{g([]),await Pi()};return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Ügyek"}]}),e.jsx("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:"Ügyek"}),e.jsx(et,{className:"mb-[32px]"}),e.jsx("div",{className:"mb-[32px] flex items-center justify-between",children:e.jsxs("div",{className:"flex flex-col items-start gap-[12px] xl:flex-row xl:items-center",children:[e.jsx("label",{htmlFor:"filter",className:"absolute left-[-10000%]",children:"Szűrés"}),e.jsx(Oe,{id:"filter",type:"dropdown",placeholder:"Szűrés",className:"w-full max-w-[184px] md:min-w-[184px] xl:max-w-[184px]",value:"",items:n.map(S=>({key:S.id,value:S.name})),onChange:v}),e.jsx("div",{className:"flex flex-wrap items-center gap-[12px]",children:x.map(S=>e.jsx(cn,{label:S.name,onClose:()=>N(S.id)}))}),x.length>0&&e.jsxs("button",{className:"text-primary-dark-blue flex cursor-pointer items-center gap-[8px] text-[12px]",onClick:C,children:[e.jsx("img",{alt:"Kuka",src:"/svgs/delete_icon.svg"}),e.jsx("span",{children:"Összes törlése"})]})]})}),e.jsxs("div",{className:"flex flex-col gap-[64px]",children:[d.map(S=>e.jsxs("div",{className:"flex flex-col gap-[32px]",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88] uppercase",children:S}),e.jsx(De,{})]}),e.jsx("div",{className:"flex flex-col gap-[24px]",children:s.filter(L=>L.name.substring(0,1).toLowerCase()===S).map(L=>e.jsx(_,{to:`/ugyek/${L.id}`,children:e.jsx(d6,{issue:L})}))})]})),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]})},im=({regulation:t})=>{const s=new Date(t.date*1e3),n=new Date(t.valid_from),r=new Date(t.valid_until);return e.jsxs("div",{className:"flex flex-col rounded-[4px] border-1 border-[#F4F4F4] p-[20px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)]",children:[e.jsx("div",{className:"font-secondary-bold mb-[6px] text-[24px] leading-[120%] text-[#255C88]",children:t.title}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%]",children:t.description}),e.jsxs("div",{className:"mb-[32px] flex flex-col gap-[12px] text-[18px] leading-[150%]",children:[e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Dátum:"}),e.jsxs("div",{className:"min-h-[24px] md:text-right",children:[s.getFullYear(),".",(s.getMonth()+1).toString().padStart(2,"0"),".",s.getDate().toString().padStart(2,"0"),"."]})]}),e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Rendelet típusa:"}),e.jsx("div",{className:"min-h-[24px] md:text-right",children:t.type})]}),t.valid_from&&e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Hatálybalépés dátuma:"}),e.jsx("div",{className:"min-h-[24px] md:text-right",children:e.jsxs(e.Fragment,{children:[n.getFullYear(),".",(n.getMonth()+1).toString().padStart(2,"0"),".",n.getDate().toString().padStart(2,"0"),"."]}
78)})]}),t.valid_until&&e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Hatály vége:"}),e.jsx("div",{className:"min-h-[24px] md:text-right",children:e.jsxs(e.Fragment,{children:[r.getFullYear(),".",(r.getMonth()+1).toString().padStart(2,"0"),".",r.getDate().toString().padStart(2,"0"),"."]})})]}),e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Hatályos:"}),e.jsx("div",{className:"min-h-[24px] font-bold md:text-right",children:t.valid?e.jsx("span",{className:"text-[#50830B]",children:"Igen"}):e.jsx("span",{className:"text-[#C94C4C]",children:"Nem"})})]}),e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Vészhelyzet alatt megalkotott polgármesteri rendelet:"}),e.jsx("div",{className:"min-h-[24px] font-bold md:text-right",children:t.by_mayor?e.jsx("span",{className:"text-[#50830B]",children:"Igen"}):e.jsx("span",{className:"text-[#C94C4C]",children:"Nem"})})]})]}),e.jsxs("div",{className:"flex items-center gap-[6px]",children:[e.jsx("img",{alt:"Jobbra felfele mutató nyíl",height:24,src:"/style/ujbuda/link-light.svg",width:24}),e.jsx("div",{className:"text-[12px] leading-[100%] font-bold text-[#389EC9]",children:"Részletek"})]})]})};function ld(t,s){const[n,r]=y.useState(t);return y.useEffect(()=>{const c=setTimeout(()=>{r(t)},s);return()=>clearTimeout(c)},[t,s]),n}let Bu=!1;const pa=()=>{const t=ie(),{regulations:s,regulationTypes:n,hasMore:r,inProgress:c}=b(Y=>Y.administration),[u,d]=y.useState([]),[p,x]=y.useState(""),[g,h]=y.useState(""),[v,N]=y.useState(""),[C,S]=y.useState("");y.useEffect(()=>{const Y=[...new Set(s.map(Q=>new Date(Q.date*1e3).getFullYear()))];d(Y)},[s]);const L=ld(p,500),F=ld(C,500),T=y.useCallback(async()=>{var Q;const Y=(Q=document.querySelector(".lazy-loader"))==null?void 0:Q.getBoundingClientRect();Y&&Y.top>0&&Y.top<window.innerHeight&&r===!0&&c===!1&&!Bu&&(Bu=!0,setTimeout(()=>Bu=!1,1e3),t(tj(!0)),await ed(L===""?void 0:p,g===""?void 0:g==="true",v===""?void 0:v,F===""?void 0:C,10,k.getState().administration.page+1))},[L,g,v,F,r,c,t]);return y.useEffect(()=>(window.addEventListener("scroll",T),()=>{window.removeEventListener("scroll",T)}),[T]),y.useEffect(()=>{ed(L===""?void 0:L,g===""?void 0:g==="true",v===""?void 0:v,F===""?void 0:F)},[L,g,v,F]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Rendeletek"}]}),e.jsx("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:"Rendeletek"}),e.jsx(et,{className:"mb-[32px]"}),e.jsx("div",{className:"mb-[32px]",children:e.jsx("a",{href:"https://or.njt.hu/onkorm/-:-:34:-:-:1:-:1:-/1/10",target:"_blank",children:e.jsx("button",{className:"bg-primary-dark-blue flex cursor-pointer items-center justify-center rounded-[8px] px-6 py-[14px] text-[12px] font-bold text-[white]",children:"Nemzeti Jogszabálytár"})})}),e.jsxs("div",{className:"mb-[32px] flex flex-col gap-[8px] xl:flex-row",children:[e.jsxs("div",{className:"flex w-full flex-col gap-[6px] sm:w-[50%]",children:[e.jsx("label",{htmlFor:"keyword",className:"text-[14px] leading-[150%] font-bold text-[#6C7880]",children:"Keresési kifejezés"}),e.jsx(Oe,{id:"keyword",value:p,onChange:x})]}),e.jsxs("div",{className:"flex w-full flex-col gap-[6px] sm:w-[50%]",children:[e.jsx("label",{htmlFor:"valid",className:"text-[14px] leading-[150%] font-bold text-[#6C7880]",children:"Hatályos"}),e.jsx(Oe,{id:"valid",type:"dropdown",value:g,onChange:h,items:[{value:"bármelyik",key:""},{value:"hatályos",key:"true"},{value:"nem hatályos",key:"false"}]})]}),e.jsxs("div",{className:"flex w-full flex-col gap-[6px] sm:w-[50%]",children:[e.jsx("label",{htmlFor:"type",className:"text-[14px] leading-[150%] font-bold text-[#6C7880]",children:"Típus"}
78),e.jsx(Oe,{id:"type",type:"dropdown",value:v,onChange:N,items:[{value:"bármelyik",key:""},...Object.keys(n).map(Y=>({value:n[Y],key:Y}))]})]}),e.jsxs("div",{className:"flex w-full flex-col gap-[6px] sm:w-[50%]",children:[e.jsx("label",{htmlFor:"year",className:"text-[14px] leading-[150%] font-bold text-[#6C7880]",children:"Év"}),e.jsx(Oe,{id:"year",type:"number",value:C,onChange:S})]})]}),e.jsxs("div",{className:"flex flex-col gap-[64px]",children:[u.map(Y=>e.jsxs("div",{className:"flex flex-col gap-[32px]",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:Y}),e.jsx(De,{})]}),e.jsx("div",{className:"flex flex-col gap-[24px]",children:s.filter(Q=>new Date(Q.date*1e3).getFullYear()===Y).map(Q=>e.jsx(_,{to:`/rendeletek/${Q.slug}`,children:e.jsx(im,{regulation:Q})}))})]})),s.length===0&&e.jsx(e.Fragment,{children:"Nincs megjeleníthető rendelet!"}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]}),e.jsx("input",{type:"hidden",id:"keyword",value:p}),e.jsx("input",{type:"hidden",id:"valid",value:g}),e.jsx("input",{type:"hidden",id:"type",value:v}),e.jsx("input",{type:"hidden",id:"year",value:C})]})},x6=({decision:t})=>{const s=new Date(t.date*1e3);return e.jsxs("div",{className:"flex flex-col rounded-[4px] border-1 border-[#F4F4F4] p-[20px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)]",children:[e.jsx("div",{className:"font-secondary-bold mb-[6px] text-[24px] leading-[120%] text-[#255C88]",children:t.title}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%]",children:t.description}),e.jsxs("div",{className:"mb-[32px] flex flex-col gap-[12px] text-[18px] leading-[150%]",children:[e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Dátum:"}),e.jsxs("div",{className:"min-h-[24px] md:text-right",children:[s.getFullYear(),".",(s.getMonth()+1).toString().padStart(2,"0"),".",s.getDate().toString().padStart(2,"0"),"."]})]}),e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Vészhelyzet alatt megalkotott polgármesteri határozat:"}),e.jsx("div",{className:"min-h-[24px] font-bold md:text-right",children:t.by_mayor?e.jsx("span",{className:"text-[#50830B]",children:"Igen"}):e.jsx("span",{className:"text-[#C94C4C]",children:"Nem"})})]}),e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Normatív határozat:"}),e.jsx("div",{className:"min-h-[24px] font-bold md:text-right",children:t.normative?e.jsx("span",{className:"text-[#50830B]",children:"Igen"}):e.jsx("span",{className:"text-[#C94C4C]",children:"Nem"})})]})]}),e.jsxs("div",{className:"flex items-center gap-[6px]",children:[e.jsx("img",{alt:"Jobbra mutató nyíl",height:24,src:"/style/ujbuda/link-light.svg",width:24}),e.jsx("div",{className:"text-[12px] leading-[100%] font-bold text-[#389EC9]",children:"Részletek"})]})]})};let Iu=!1;const fa=()=>{const t=ie(),{decisions:s,page:n,hasMore:r,inProgress:c}=b(x=>x.administration),[u,d]=y.useState([]);y.useEffect(()=>{const x=[...new Set(s.map(g=>new Date(g.date*1e3).getFullYear()))];d(x)},[s]);const p=y.useCallback(async()=>{var g;const x=(g=document.querySelector(".lazy-loader"))==null?void 0:g.getBoundingClientRect();x&&x.top>0&&x.top<window.innerHeight&&r===!0&&c===!1&&!Iu&&(Iu=!0,setTimeout(()=>Iu=!1,1e3),t(K0()),await Am(10,n+1))},[n,t]);return y.useEffect(()=>(window.addEventListener("scroll",p),()=>{window.removeEventListener("scroll",p)}),[p]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Határozatok"}]}),e.jsx("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:"Határozatok"}),e.jsx(et,{className:"mb-[32px]"}),e.jsxs("div",{className:"mb-[32px] flex border-b border-[#F4F4F4]",children:[e.jsx(_,{to:"/rendeletek",className:"mb-[-1px] w-[177px] cursor-pointer border-b-2 border-[transparent] pb-[9px] text-center text-[18px] leading-[100%] font-bold text-[#255C88]",children:"Rendelet"}),e.jsx("div",{className:"mb-[-1px] w-[177px] cursor-pointer border-b-2 border-[#389EC9] pb-[9px] text-center text-[18px] leading-[100%] font-bold text-[#389EC9]",children:"Határozat"})]}),e.jsxs("div",{className:"flex flex-col gap-[64px]",children:[u.map(x=>e.jsxs("div",{className:"flex flex-col gap-[32px]",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:x}),e.jsx(De,{})]}),e.jsx("div",{className:"flex flex-col gap-[24px]",children:s.filter(g=>new Date(g.date*1e3).getFullYear()===x).map(g=>e.jsx(_,{to:`/hatarozatok/${g.slug}`,children:e.jsx(x6,{decision:g})}))})]})),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]})},u6=({announcement:t})=>{const s=new Date(t.datePublished*1e3),n=new Date(t.datePublicationEnd*1e3);return e.jsxs("div",{className:"flex flex-col rounded-[4px] border-1 border-[#F4F4F4] p-[20px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)]",children:[e.jsx("div",{className:"font-secondary-bold mb-[6px] text-[24px] leading-[120%] text-[#255C88]",children:t.title}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%]",dangerouslySetInnerHTML:{__html:t.description}}),e.jsxs("div",{className:"mb-[32px] flex flex-col gap-[12px] text-[18px] leading-[150%]",children:[t.datePublished&&e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Kifüggesztés dátuma:"}),e.jsx("div",{className:"min-h-[24px] md:text-right",children:e.jsxs(e.Fragment,{children:[s.getFullYear(),".",(s.getMonth()+1).toString().padStart(2,"0"),".",s.getDate().toString().padStart(2,"0"),"."]}
78)})]}),t.datePublicationEnd&&e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Levétel dátuma:"}),e.jsx("div",{className:"min-h-[24px] md:text-right",children:e.jsxs(e.Fragment,{children:[n.getFullYear(),".",(n.getMonth()+1).toString().padStart(2,"0"),".",n.getDate().toString().padStart(2,"0"),"."]})})]}),e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Kategória:"}),e.jsx("div",{className:"min-h-[24px] md:text-right",children:t.announcement_category.name})]})]}),e.jsxs("div",{className:"flex items-center gap-[6px]",children:[e.jsx("img",{alt:"Jobbra felfele mutató nyíl",height:24,src:"/style/ujbuda/link.svg",width:24}),e.jsx("div",{className:"text-[12px] leading-[100%] font-bold text-[#1E7EA7]",children:"Részletek"})]})]})};let Fu=!1;const ha=()=>{const t=ie(),{announcements:s,announcementCategories:n,page:r,hasMore:c,inProgress:u}=b(T=>T.administration),[d,p]=y.useState([]),[x,g]=y.useState(""),[h,v]=y.useState(""),[N,C]=y.useState(""),S=ld(x,500),L=ld(N,500);y.useEffect(()=>{const T=s.filter(le=>le.datePublished!=null).map(le=>new Date(le.datePublished*1e3).getFullYear()),Y=[...new Set(T)];s.some(le=>le.datePublished==null)&&Y.push("Dátum nélkül"),Y.sort((le,W)=>le==="Dátum nélkül"?1:W==="Dátum nélkül"?-1:W-le),p(Y)},[s]);const F=y.useCallback(async()=>{var Y;const T=(Y=document.querySelector(".lazy-loader"))==null?void 0:Y.getBoundingClientRect();T&&T.top>0&&T.top<window.innerHeight&&c===!0&&u===!1&&!Fu&&(Fu=!0,setTimeout(()=>Fu=!1,1e3),t(G0()),await Wc(x===""?void 0:x,h===""?void 0:h,N===""?void 0:N,10,r+1))},[S,h,r,L,c,u,t]);return y.useEffect(()=>{Wc(x===""?void 0:x,h===""?void 0:h,N===""?void 0:N,10,1)},[S,h,L]),y.useEffect(()=>(window.addEventListener("scroll",F),()=>{window.removeEventListener("scroll",F)}),[F]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hirdetmények"}]}),e.jsx("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:"Hirdetmények"}),e.jsx(et,{className:"mb-[32px]"}),e.jsxs("div",{className:"mb-[32px] flex gap-[8px]",children:[e.jsxs("div",{className:"flex w-[40%] flex-col gap-[6px]",children:[e.jsx("label",{htmlFor:"keyword",className:"text-[14px] leading-[150%] font-bold text-[#6C7880]",children:"Keresési kifejezés"}),e.jsx(Oe,{id:"keyword",value:x,onChange:g})]}),e.jsxs("div",{className:"flex w-[40%] flex-col gap-[6px]",children:[e.jsx("label",{htmlFor:"category",className:"text-[14px] leading-[150%] font-bold text-[#6C7880]",children:"Kategória"}),e.jsx(Oe,{id:"category",type:"dropdown",value:h,onChange:v,items:[{value:"bármelyik",key:""},...n.map(T=>({value:T.name,key:T.id}))]})]}),e.jsxs("div",{className:"flex w-[20%] flex-col gap-[6px]",children:[e.jsx("label",{htmlFor:"year",className:"text-[14px] leading-[150%] font-bold text-[#6C7880]",children:"Év"}),e.jsx(Oe,{id:"year",type:"number",value:N,onChange:C})]})]}),e.jsxs("div",{className:"flex flex-col gap-[64px]",children:[d.map(T=>e.jsxs("div",{className:"flex flex-col gap-[32px]",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:T}),e.jsx(De,{})]}),e.jsx("div",{className:"flex flex-col gap-[24px]",children:s.filter(Y=>T==="Dátum nélkül"?Y.datePublished==null:Y.datePublished!=null&&new Date(Y.datePublished*1e3).getFullYear()===T).map(Y=>e.jsx(_,{to:`/hirdetmenyek/${Y.slug}`,children:e.jsx(u6,{announcement:Y})},Y.slug))})]},T)),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]})},Ua=({title:t,withoutViceMayors:s})=>{const{representatives:n}=b(c=>c.administration),r=[...n];return r.sort((c,u)=>{let d=c.district?c.district.name:"0",p=u.district?u.district.name:"0";return d==="Polgármester"?-1:d==="0"?1:Number(d)-Number(p)}),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:t}]}),e.jsx("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:t}),e.jsx(et,{className:"mb-[32px]"}),e.jsx("div",{className:"flex flex-col",children:r.filter(c=>s?!c.vice_mayor:!0).map((c,u)=>e.jsxs("div",{className:`flex flex-col items-center gap-[16px] py-[32px] md:flex-row ${u%2===1&&"rounded-[8px] bg-[#00000008]"}`,children:[e.jsxs("div",{className:"flex w-full flex-col items-center gap-[16px] px-[16px] text-center md:w-[33%] md:px-0",children:[e.jsx(ua,{alt:c.name,className:"w-[120px]",src:c.image}),e.jsxs("div",{className:"flex flex-col gap-[8px] text-[18px] leading-[100%] font-bold",children:[e.jsx("div",{children:c.district?c.district.name==="Polgármester"?"Polgármester":c.district.name+". EVK":"Kompenzációs lista"}),c.vice_mayor&&e.jsx("div",{children:"Alpolgármester"})]})]}),e.jsxs("div",{className:"flex w-full flex-col gap-[16px] px-[16px] text-[18px] leading-[150%] md:w-[67%] md:px-0",children:[e.jsx("div",{className:"font-secondary-bold mb-[16px] text-[24px] leading-[100%]",children:c.name}),(c.phone||c.email)&&e.jsxs("div",{className:"flex flex-col gap-[8px]",children:[c.p
78hone&&e.jsxs("div",{children:[e.jsx("strong",{className:"font-bold",children:"Telefon:"})," ",c.phone]}),c.email&&e.jsxs("div",{children:[e.jsx("strong",{className:"font-bold",children:"E-mail cím:"})," ",c.email]})]}),(c.consulting_place||c.consulting_phone||c.consulting_text)&&e.jsxs("div",{className:"flex flex-col gap-[8px]",children:[c.consulting_place&&e.jsxs("div",{children:[e.jsx("strong",{className:"font-bold",children:"Fogadóóra helyszíne:"})," ",c.consulting_place]}),c.consulting_phone&&e.jsxs("div",{children:[e.jsx("strong",{className:"font-bold",children:"Fogadóóra bejelentkezés:"})," ",c.consulting_phone]}),c.consulting_text&&e.jsx("div",{children:c.consulting_text})]}),c.debut_text&&e.jsx("div",{children:c.debut_text})]})]}))})]})},Pa=({title:t})=>{const{representatives:s}=b(n=>n.administration);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:t}]}),e.jsx("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:t}),e.jsx(et,{className:"mb-[32px]"}),e.jsx("div",{className:"flex flex-col",children:s.filter(n=>n.vice_mayor===!0).map((n,r)=>e.jsxs("div",{className:`flex flex-col items-center gap-[16px] py-[32px] md:flex-row ${r%2===1&&"rounded-[8px] bg-[#00000008]"}`,children:[e.jsxs("div",{className:"flex w-full flex-col items-center gap-[16px] px-[16px] text-center md:w-[33%] md:px-0",children:[e.jsx(ua,{alt:n.name,className:"w-[120px]",src:n.image}),e.jsx("div",{className:"text-[18px] leading-[100%] font-bold",children:n.name})]}),e.jsxs("div",{className:"flex w-full flex-col gap-[16px] px-[16px] text-[18px] leading-[150%] md:w-[67%] md:px-0",children:[(n.phone||n.email)&&e.jsxs("div",{className:"flex flex-col gap-[8px]",children:[n.phone&&e.jsxs("div",{children:[e.jsx("strong",{className:"font-bold",children:"Telefon:"})," ",n.phone]}),n.email&&e.jsxs("div",{children:[e.jsx("strong",{className:"font-bold",children:"E-mail cím:"})," ",n.email]})]}),(n.consulting_place||n.consulting_phone||n.consulting_text)&&e.jsxs("div",{className:"flex flex-col gap-[8px]",children:[n.consulting_place&&e.jsxs("div",{children:[e.jsx("strong",{className:"font-bold",children:"Fogadóóra helyszíne:"})," ",n.consulting_place]}),n.consulting_phone&&e.jsxs("div",{children:[e.jsx("strong",{className:"font-bold",children:"Fogadóóra bejelentkezés:"})," ",n.consulting_phone]}),n.consulting_text&&e.jsx("div",{children:n.consulting_text})]}),n.debut_text&&e.jsx("div",{children:n.debut_text})]})]}))})]})},kj=({sportClub:t})=>e.jsxs("div",{className:"relative flex flex-col gap-[16px] rounded-[4px] border-1 border-[#F4F4F4] p-[20px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)]",children:[e.jsx("img",{alt:"Sportegyesület",className:"",height:32,src:"/svgs/sport-club.svg",width:32}),e.jsx("img",{alt:"Jobbra felfele mutató nyíl",className:"absolute top-[20px] right-[20px]",height:24,src:"/svgs/link-lightblue.svg",width:24}),e.jsx("div",{className:"font-secondary-bold text-[24px] leading-[120%]",children:t.name}),e.jsxs("div",{className:"text-[12px] leading-[150%]",children:[t.leader&&e.jsxs(e.Fragment,{children:[e.jsx("strong",{className:"font-bold",children:"Vezető:"})," ",t.leader,e.jsx("br",{})]}),t.address&&e.jsxs(e.Fragment,{children:[e.jsx("strong",{className:"font-bold",children:"Cím:"})," ",t.address,e.jsx("br",{})]}),t.phone&&e.jsxs(e.Fragment,{children:[e.jsx("strong",{className:"font-bold",children:"Telefon:"})," ",t.phone,e.jsx("br",{})]}),t.email&&e.jsxs(e.Fragment,{children:[e.jsx("strong",{className:"font-bold",children:"E-mail:"})," ",t.email]})]})]}),Ba=({title:t})=>{const s=ie(),{places:n}=b(c=>c.cardAcceptingPlace),r=y.useCallback(async()=>{var u;const c=(u=document.querySelector(".lazy-loader"))==null?void 0:u.getBoundingClientRect();c&&c.top>0&&c.top<window.innerHeight&&k.getState().cardAcceptingPlace.hasMore===!0&&k.getState().cardAcceptingPlace.inProgress===!1&&(s(F0()),await Lm(16,k.getState().cardAcceptingPlace.page+1))},[k.getState().cardAcceptingPlace.page,s]);return y.useEffect(()=>(window.addEventListener("scroll",r),()=>{window.removeEventListener("scroll",r)}),[r]),e.jsxs("div",{className:"",children:[e.jsxs("div",{className:"relative mx-auto aspect-[1440/584] h-[400px] w-full px-[16px] md:w-[720px] xl:w-[1170px]",children:[e.jsx("img",{alt:"Kedvezménykártya",className:"absolute top-0 left-0 z-1 h-full w-full object-cover object-center",src:"/style/60plusz/kedvezmenykartya.png"}),e.jsx("div",{className:"absolute top-0 left-0 z-2 h-full w-full bg-[#171717] opacity-[0.64]"}),e.jsxs("div",{className:"relative z-3 mx-auto flex h-full max-h-[400px] w-full flex-col items-center justify-center px-[16px] text-center text-(--color-white) md:w-[720px] md:items-start md:px-0 md:text-left xl:w-[1170px]",children:[e.jsx(G,{color:"white",separatorColor:"var(--color-primary-green)",className:"mb-[26px]"}),e.jsx("div",{className:"font-secondary-bold mb-[16px] text-center text-[36px] leading-[110%] md:text-left md:text-[48px] xl:text-[52px]",children:t||"Kedvezménykártya elfogadóhelyek"}),e.jsx("div",{className:"max-w-[570px] text-[16px] leading-[150%] xl:text-[18px]"})]})]}),e.jsxs("div",{className:"mx-auto mt-[48px] mb-[64px] flex w-[100%] flex-wrap justify-center gap-[24px] px-[16px] min-[890px]:max-w-[873px] min-[890px]:justify-start md:px-[0] xl:max-w-[1172px]",children:[n.map(c=>e.jsx(_,{className:"w-[275px]",to:`/kedvezmenykartya-elfogadohelyek/${c.id}`,children:e.jsx(kj,{sportClub:c})})),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]})},m6=({smartMapPlace:t})=>e.jsxs("div",{className:"relative flex flex-col gap-[16px] rounded-[4px] border-1 border-[#F4F4F4] p-[20px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)]",children:[e.jsx("img",{alt:"Sportegyesület",className:"",height:32,src:"/svgs
78/sport-club.svg",width:32}),e.jsx("img",{alt:"Jobbra felfele mutató nyíl",className:"absolute top-[20px] right-[20px]",height:24,src:"/svgs/link-lightblue.svg",width:24}),e.jsx("div",{className:"font-secondary-bold text-[24px] leading-[120%]",children:t.name}),e.jsxs("div",{className:"text-[12px] leading-[150%]",children:[t.address&&e.jsxs(e.Fragment,{children:[e.jsx("strong",{className:"font-bold",children:"Cím:"})," ",t.address,e.jsx("br",{})]}),t.phone&&e.jsxs(e.Fragment,{children:[e.jsx("strong",{className:"font-bold",children:"Telefon:"})," ",t.phone,e.jsx("br",{})]}),t.email&&e.jsxs(e.Fragment,{children:[e.jsx("strong",{className:"font-bold",children:"E-mail:"})," ",t.email]})]})]}),Ia=({title:t,typeId:s})=>{const n=ie(),{style:r}=b(d=>d.config),{places:c}=b(d=>d.smartMap),u=y.useCallback(async()=>{var p;const d=(p=document.querySelector(".lazy-loader"))==null?void 0:p.getBoundingClientRect();d&&d.top>0&&d.top<window.innerHeight&&k.getState().smartMap.hasMore===!0&&k.getState().smartMap.inProgress===!1&&(n(xj()),await bj(s,16,k.getState().smartMap.page+1))},[s,k.getState().smartMap.page,n]);return y.useEffect(()=>(window.addEventListener("scroll",u),()=>{window.removeEventListener("scroll",u)}),[u]),e.jsxs("div",{className:"",children:[e.jsxs("div",{className:"relative mx-auto h-[400px] w-full px-[16px] md:w-[720px] xl:w-[1170px]",children:[e.jsx("img",{alt:"Háttér",className:"absolute top-0 left-0 z-1 h-full w-full object-cover object-center",src:`/style/${r}/static-page.webp`}),e.jsx("div",{className:"absolute top-0 left-0 z-2 h-full w-full bg-[#171717] opacity-[0.64]"}),e.jsxs("div",{className:"relative z-3 mx-auto flex h-full max-h-[600px] w-full flex-col items-center justify-center px-[16px] text-center text-(--color-white) md:w-[720px] md:items-start md:px-0 md:text-left xl:w-[1170px]",children:[e.jsx(G,{color:"white",separatorColor:"var(--color-primary-green)",className:"mb-[26px]"}),e.jsx("h1",{className:"font-secondary-bold mb-[16px] text-[36px] leading-[110%] md:text-[48px] xl:text-[52px]",children:t}),e.jsx("div",{className:"max-w-[570px] text-[16px] leading-[150%] xl:text-[18px]"})]})]}),e.jsxs("div",{className:"mx-auto mt-[64px] mb-[96px] grid w-full grid-cols-1 gap-[24px] px-[16px] sm:grid-cols-2 md:w-[720px] md:px-0 lg:grid-cols-3 xl:w-[1170px] xl:grid-cols-4",children:[c.map(d=>e.jsx(_,{className:"w-full",to:`/helyek/${d.id}`,children:e.jsx(m6,{smartMapPlace:d})},d.id)),e.jsx("div",{className:"lazy-loader col-span-full min-h-[1px] w-full"})]})]})},p6=()=>{const{nav:t}=oe();if(t===null)return e.jsx(Xt,{children:e.jsx(Bt,{})});const{item:s,parent:n}=t;switch(s.type){case"static":return e.jsx(Xt,{children:e.jsx(Ma,{parent:n})});case"events":return e.jsx(Xt,{children:e.jsx(Gn,{})});case"eventcategories":return e.jsx(Xt,{children:e.jsx(Yn,{categoryId:s.params.categoryId})});case"faq":case"faqcategories":return e.jsx(Xt,{children:e.jsx(Aa,{})});case"documents":return e.jsx(Xt,{children:e.jsx(Da,{title:t.item.title,categoryId:void 0,path:s.path})});case"documentcategories":return e.jsx(Xt,{children:e.jsx(Qe,{title:t.item.title,categoryId:s.params.categoryId})});case"navonly":return e.jsx(Xt,{children:e.jsx($a,{title:t.item.title,children:s.children})});case"contacts":return e.jsx(Xt,{children:e.jsx(Oa,{})});case"form":return e.jsx(Xt,{children:e.jsx(Ha,{title:t.item.title,formId:s.params.formId})});case"issues":return e.jsx(Xt,{children:e.jsx(ma,{})});case"regulations":return e.jsx(Xt,{children:e.jsx(pa,{})});case"decisions":return e.jsx(Xt,{children:e.jsx(fa,{})});case"announcements":return e.jsx(Xt,{children:e.jsx(ha,{})});case"representatives":case"vicemayorsonly":return e.jsx(Xt,{children:e.jsx(Ua,{title:"Képviselők",withoutViceMayors:s.type==="vicemayorsonly"})});case"representativesonly":return e.jsx(Xt,{children:e.jsx(Pa,{title:"Alpolgármesterek"})});case"newscategories":return e.jsx(Xt,{children:e.jsx(xn,{title:t.item.title,categoryId:t.item.params.categoryId})});case"organisation_contacts":return e.jsx(Xt,{children:e.jsx(La,{title:t.item.title})});case"card_acceptors":return e.jsx(Xt,{children:e.jsx(Ba,{title:t.item.title})});case"news":return e.jsx(Xt,{children:e.jsx(Fn,{title:t.item.title})});case"smartmaptypes":return e.jsx(Xt,{children:e.jsx(Ia,{title:t.item.title,typeId:t.item.params.typeId})})}return e.jsx(Xt,{children:e.jsx(Bt,{})})},f6=()=>{const{announcement:t}=b(r=>r.administration),s=new Date(t.datePublished*1e3),n=new Date(t.datePublicationEnd*1e3);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hirdetmények",href:"/hirdetmenyek"},{title:t.title}]}),e.jsx("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:t.title}),e.jsx(et,{className:"mb-[32px]"}),e.jsx("div",{className:"mb-[64px] text-[18px] leading-[150%] font-bold",dangerouslySetInnerHTML:{__html:t==null?void 0:t.description}}),e.jsxs("div",{className:"mb-[64px] flex flex-col gap-[12px] text-[18px] leading-[150%]",children:[t.datePublished&&e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Kifüggesztés dátuma:"}),e.jsx("div",{className:"min-h-[24px] md:text-right",children:e.jsxs(e.Fragment,{children:[s.getFullYear(),".",(s.getMonth()+1).toString().padStart(2,"0"),".",s.getDate().toString().padStart(2,"0"),"."]}
78)})]}),t.datePublicationEnd&&e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Levétel dátuma:"}),e.jsx("div",{className:"min-h-[24px] md:text-right",children:e.jsxs(e.Fragment,{children:[n.getFullYear(),".",(n.getMonth()+1).toString().padStart(2,"0"),".",n.getDate().toString().padStart(2,"0"),"."]})})]}),e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Kategória:"}),e.jsx("div",{className:"min-h-[24px] md:text-right",children:t.announcement_category.name})]})]}),e.jsxs("div",{className:"mb-[64px] flex flex-col gap-[32px]",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:"Letölthető dokumentumok"}),e.jsx(De,{})]}),e.jsxs("div",{className:"flex flex-col gap-[12px]",children:[t.file&&e.jsx(za,{title:"Hirdetmény",link:t.file}),t.documents.filter(r=>r.file!==null).map(r=>e.jsx(za,{title:r.name,link:r.file})),!t.file&&t.documents.filter(r=>r.file!==null).length===0&&e.jsx("div",{children:"A hirdetményhez nem tartozik megjeleníthető dokumentum!"})]})]}),e.jsx("div",{className:"static-section text-[18px] leading-[150%]",dangerouslySetInnerHTML:{__html:t.body}})]})},h6=()=>{const{decision:t}=b(n=>n.administration),s=new Date(((t==null?void 0:t.date)||0)*1e3);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Határozatok",href:"/hatarozatok"},{title:t.title}]}),e.jsx("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:t.title}),e.jsx(et,{className:"mb-[32px]"}),e.jsx("div",{className:"mb-[64px] text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.description}),e.jsxs("div",{className:"mb-[64px] flex flex-col gap-[12px] text-[18px] leading-[150%]",children:[e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Dátum:"}),e.jsxs("div",{className:"min-h-[24px] md:text-right",children:[s.getFullYear(),".",(s.getMonth()+1).toString().padStart(2,"0"),".",s.getDate().toString().padStart(2,"0"),"."]})]}),e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Vészhelyzet alatt megalkotott polgármesteri határozat:"}),e.jsx("div",{className:"min-h-[24px] font-bold md:text-right",children:t.by_mayor?e.jsx("span",{className:"text-[#50830B]",children:"Igen"}):e.jsx("span",{className:"text-[#C94C4C]",children:"Nem"})})]}),e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Normatív határozat:"}),e.jsx("div",{className:"min-h-[24px] font-bold md:text-right",children:t.normative?e.jsx("span",{className:"text-[#50830B]",children:"Igen"}):e.jsx("span",{className:"text-[#C94C4C]",children:"Nem"})})]})]}),e.jsxs("div",{className:"mb-[64px] flex flex-col gap-[32px]",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:"Letölthető dokumentumok"}),e.jsx(De,{})]}),e.jsxs("div",{className:"flex flex-col gap-[12px]",children:[t.document_file&&e.jsx(za,{title:"Határozat",link:t.document_file}),t.documents.map(n=>e.jsx(za,{title:n.name,link:n.file})),!(t.document_file||t.documents.length>0)&&e.jsx("div",{children:"A határozathoz nem tartozik megjeleníthető dokumentum!"})]})]})]})},g6=()=>{const{regulation:t}=b(c=>c.administration),s=new Date(((t==null?void 0:t.date)||0)*1e3),n=new Date(t.valid_from),r=new Date(t.valid_until);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Rendeletek",href:"/rendeletek"}
78,{title:t==null?void 0:t.title}]}),e.jsx("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[32px]"}),e.jsx("div",{className:"mb-[64px] text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.description}),e.jsxs("div",{className:"mb-[64px] flex flex-col gap-[12px] text-[18px] leading-[150%]",children:[e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Dátum:"}),e.jsxs("div",{className:"min-h-[24px] md:text-right",children:[s.getFullYear(),".",(s.getMonth()+1).toString().padStart(2,"0"),".",s.getDate().toString().padStart(2,"0"),"."]})]}),e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Rendelet típusa:"}),e.jsx("div",{className:"min-h-[24px] md:text-right",children:t.type})]}),t.valid_from&&e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Hatálybalépés dátuma:"}),e.jsx("div",{className:"min-h-[24px] md:text-right",children:e.jsxs(e.Fragment,{children:[n.getFullYear(),".",(n.getMonth()+1).toString().padStart(2,"0"),".",n.getDate().toString().padStart(2,"0"),"."]})})]}),t.valid_until&&e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Hatály vége:"}),e.jsx("div",{className:"min-h-[24px] md:text-right",children:e.jsxs(e.Fragment,{children:[r.getFullYear(),".",(r.getMonth()+1).toString().padStart(2,"0"),".",r.getDate().toString().padStart(2,"0"),"."]})})]}),e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Hatályos:"}),e.jsx("div",{className:"min-h-[24px] font-bold md:text-right",children:t.valid?e.jsx("span",{className:"text-[#50830B]",children:"Igen"}):e.jsx("span",{className:"text-[#C94C4C]",children:"Nem"})})]}),e.jsxs("div",{className:"flex flex-col justify-between gap-[4px] border-b-1 border-[#F4F4F4] pb-[12px] md:flex-row md:gap-0",children:[e.jsx("div",{className:"font-bold",children:"Vészhelyzet alatt megalkotott polgármesteri rendelet:"}),e.jsx("div",{className:"min-h-[24px] font-bold md:text-right",children:t.by_mayor?e.jsx("span",{className:"text-[#50830B]",children:"Igen"}):e.jsx("span",{className:"text-[#C94C4C]",children:"Nem"})})]})]}),(t.njt||t.customjt)&&e.jsxs("div",{className:"mb-[64px] flex flex-col gap-[32px]",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:"Egységes szerkezet"}),e.jsx(De,{})]}),e.jsxs("div",{className:"flex flex-col gap-[12px] sm:flex-row",children:[t.njt&&e.jsx("a",{href:t.link_njt,target:"_blank",rel:"noreferrer",className:"w-full xl:w-[calc(100%/3-16px)]",children:e.jsxs("div",{className:"relative flex flex-col gap-[16px] rounded-[4px] border-1 border-[#F4F4F4] p-[24px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)]",children:[e.jsx("div",{children:e.jsx("img",{alt:"Nemzeti Jogaszabálytár",className:"h-[64px] w-auto",src:"/images/njt.jpg"})}),e.jsx("img",{alt:"Jobbra felfele mutató nyíl",className:"absolute top-[20px] right-[20px]",height:24,src:"/style/ujbuda/link-light.svg",width:24}),e.jsx("div",{className:"font-secondary-bold text-[24px] leading-[120%]",children:"Nemzeti jogszabálytár"})]})}),t.customjt&&e.jsx("a",{href:t.link_customjt,target:"_blank",rel:"noreferrer",className:"w-full xl:w-[calc(100%/3-16px)]",children:e.jsxs("div",{className:"relative flex flex-col gap-[16px] rounded-[4px] border-1 border-[#F4F4F4] p-[24px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)]",children:[e.jsx("div",{children:e.jsx(ua,{alt:t.title_customjt,className:"h-[64px] w-auto",src:t.logo_customjt})}),e.jsx("img",{alt:"Jobbra felfele mutató nyíl",className:"absolute top-[20px] right-[20px]",height:24,src:"/style/ujbuda/link-light.svg",width:24}),e.jsx("div",{className:"font-secondary-bold text-[24px] leading-[120%]",children:t.title_customjt})]})})]})]}),e.jsxs("div",{className:"mb-[64px] flex flex-col gap-[32px]",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:"Alaprendelet dokumentumai"}),e.jsx(De,{})]}),(t.justification_document_file||t.proposal_document_file||t.documents.length>0)&&e.jsxs("div",{className:"flex flex-col gap-[12px]",children:[t.justification_document_file&&e.jsx(za,{title:t.justification_label,link:t.justification_document_file}),t.proposal_document_file&&e.jsx(za,{title:t.proposal_title,link:t.proposal_document_file}),t.documents.map(c=>e.jsx(za,{title:c.name,link:c.file}))]})]}),t.parent_regulation&&e.jsxs("div",{className:"mb-[64px] flex flex-col gap-[32px]",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:"Kapcsolódó alaprendelet"}),e.jsx(De,{})]}),e.jsx("div",{className:"flex flex-col gap-[12px]",children:e.jsx(_,{to:`/rendeletek/${t.parent_regulation.slug}`,children:e.jsx(im,{regulation:t.parent_regulation})})})]}),e.jsxs("div",{className:"mb-[64px] flex flex-col gap-[32px]",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:"További kapcsolódó rendeletek"}),e.jsx(De,{})]}),e.jsx("div",{className:"flex flex-col gap-[12px]",children:t.related_regulations.length>0?t.related_regulations.map(c=>e.jsx(_,{to:`/rendeletek/${c.slug}`,children:e.jsx(im,{regulation:c})}
78)):e.jsx("div",{children:"A rendelethez nem tartoznak kapcsolódó rendeletek!"})})]})]})},j6=()=>{const{issue:t}=b(s=>s.administration);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Ügyek",href:"/ugyek"},{title:t.name}]}),e.jsx("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:t.name}),e.jsx(et,{className:"mb-[32px]",tags:t.categories}),e.jsx("div",{className:"static-section mb-[64px] text-[18px] leading-[150%]",dangerouslySetInnerHTML:{__html:t.body}}),t.requiredDocuments&&t.requiredDocuments.trim().length>0&&e.jsx("div",{className:"mb-[64px] flex flex-col",children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:"Ügyintézéshez szükséges dokumentumok"}),e.jsx(De,{className:"mb-[28px]"}),e.jsx("div",{className:"static-section text-[18px] leading-[150%]",dangerouslySetInnerHTML:{__html:t.requiredDocuments}})]})}),t.documents&&t.documents.length>0&&e.jsx("div",{className:"mb-[64px] flex flex-col",children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:"Kapcsolódó nyomtatványok"}),e.jsx(De,{className:"mb-[28px]"}),e.jsx("div",{className:"flex flex-col gap-[12px]",children:t.documents.map(s=>e.jsx(za,{title:s.name,link:s.file}))})]})}),e.jsx("div",{className:"mb-[64px] flex flex-col",children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:"Ügyintézés elektronikus formában"}),e.jsx(De,{className:"mb-[28px]"}),e.jsxs("div",{className:"flex flex-col gap-[12px]",children:[t.administration_note&&t.administration_note.length>0&&e.jsx("div",{className:"static-section mb-[32px] text-[18px] leading-[150%]",dangerouslySetInnerHTML:{__html:t.administration_note}}),e.jsx("img",{alt:"Intézze ügyeit elektronikusan",className:"mb-[32px] w-full",src:"/images/issue.png"}),e.jsx("div",{className:"flex w-full flex-wrap gap-[24px]",children:[{enabled:t.custom_administration,link:t.link_custom_administration,img:t.logo_custom_administration,title:t.title_custom_administration,description:""},{enabled:t.epapir,link:t.link_epapir,img:"/images/issue/epapir.png",title:"E-Papír",description:""},{enabled:t.magyarorszaghu,link:t.link_magyarorszaghu,img:"/images/issue/magyarorszag.png",title:"Magyarország.hu",description:""},{enabled:t.nyilvantartohu,link:t.link_nyilvantartohu,img:"/images/issue/nyilvantarto.png",title:"Nyilvántartó.hu",description:""},{enabled:t.eonkormanyzat,link:t.link_eonkormanyzat,img:"/images/issue/e-onkormanyzat.png",title:"E-Önkormányzat",description:""}].map(({enabled:s,link:n,img:r,title:c,description:u})=>s?e.jsx("a",{className:"w-full xl:w-[calc(100%/3-16px)]",href:n,target:"_blank",children:e.jsxs("div",{className:"relative flex flex-col gap-[16px] rounded-[4px] border-1 border-[#F4F4F4] p-[24px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)]",children:[e.jsx("div",{children:e.jsx(ua,{alt:c,className:"h-[64px] w-auto",src:r})}),e.jsx("img",{alt:"Jobbra felfele mutató nyíl",className:"absolute top-[20px] right-[20px]",height:24,src:"/style/ujbuda/link-light.svg",width:24}),e.jsx("div",{className:"font-secondary-bold text-[24px] leading-[120%]",children:c}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:u})]})}):null)})]})]})}),e.jsx("div",{className:"mb-[64px] flex flex-col",children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:"Félfogadási idő"}),e.jsx(De,{className:"mb-[28px]"}),e.jsx("div",{className:"mb-[32px] text-[18px] leading-[150%]"}),e.jsx("div",{className:"flex overflow-x-scroll",children:[{id:"mon",name:"Hétfő"},{id:"tue",name:"Kedd"},{id:"wed",name:"Szerda"},{id:"thu",name:"Csütörtök"},{id:"fri",name:"Péntek"},{id:"sat",name:"Szombat"},{id:"sun",name:"Vasárnap"}].map(s=>e.jsxs("div",{className:"flex w-full flex-col",children:[e.jsx("div",{className:`flex items-center border-1 border-[#255C88] ${s.id==="sun"?"":"border-r-[#E4E5E7]"} bg-[#255C88] p-[12px] font-bold text-[white]`,children:s.name}),e.jsx("div",{className:`flex h-[100%] items-center border-1 ${s.id==="mon"?"border-l-[#E4E5E7]!":""}
78 border-[#E4E5E7] border-l-[white] p-[12px]`,children:t.place.openingHours[s.id]})]},s.id))})]})}),e.jsx("div",{className:"mb-[64px] flex flex-col",children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:"Ügyintézés helye"}),e.jsx(De,{className:"mb-[28px]"}),e.jsx("div",{className:"mb-[9px] text-[18px] leading-[150%] font-bold",children:t.place.name}),e.jsx("div",{className:"mb-[9px] text-[18px] leading-[150%]",children:t.place.address}),e.jsx("div",{className:"static-section text-[18px] leading-[150%]",dangerouslySetInnerHTML:{__html:t.place.description}})]})}),e.jsx("div",{className:"mb-[64px] flex flex-col",children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:"Telefonos elérhetőségek"}),e.jsx(De,{className:"mb-[28px]"}),e.jsx("div",{className:"w-full overflow-x-auto",children:e.jsxs("table",{className:"min-w-full border-collapse",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-[#255C88] text-white",children:[e.jsx("th",{className:"border border-[#255C88] border-r-[#E4E5E7] p-[12px] text-left font-bold whitespace-nowrap",children:"Ügyintéző"}),e.jsx("th",{className:"border border-[#255C88] border-r-[#E4E5E7] p-[12px] text-left font-bold whitespace-nowrap",children:"Telefonszám"}),e.jsx("th",{className:"border border-[#255C88] border-r-[#E4E5E7] p-[12px] text-left font-bold whitespace-nowrap",children:"E-mail cím"}),e.jsx("th",{className:"border border-[#255C88] p-[12px] text-left font-bold whitespace-nowrap",children:"Megjegyzés"})]})}),e.jsx("tbody",{children:t.contacts.map(s=>e.jsxs("tr",{className:"group",children:[e.jsx("td",{className:"border border-[#E4E5E7] p-[12px] whitespace-nowrap",children:s.name}),e.jsx("td",{className:"border border-[#E4E5E7] p-[12px] whitespace-nowrap",children:s.phone}),e.jsx("td",{className:"border border-[#E4E5E7] p-[12px] whitespace-nowrap",children:s.email}),e.jsx("td",{className:"min-w-[200px] border border-[#E4E5E7] p-[12px]",children:s.description})]},s.id))})]})})]})}),e.jsx("div",{className:"mb-[64px] flex flex-col",children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-[#255C88]",children:"Vonatkozó jogszabályok"}),e.jsx(De,{className:"mb-[28px]"}),e.jsx("div",{className:"legal-links static-section mb-[24px] text-[18px] leading-[150%]",dangerouslySetInnerHTML:{__html:t.legal}}),e.jsxs("div",{className:"flex items-center gap-[16px]",children:[e.jsx("img",{alt:"Nemzeti jogszabalytar",className:"h-[78px]",src:"/images/issue/jogtar.png"}),e.jsx("a",{href:"https://njt.hu",target:"_blank",children:e.jsx("button",{className:"w-fit cursor-pointer rounded-[4px] bg-[#49B1DD] px-[24px] py-[20px] text-[12px] leading-[100%] font-bold",children:"tovább a nemzeti jogtárra"})})]})]})})]})},Dm=({videoGalleries:t,style:s,title:n="Videógaléria"})=>e.jsxs("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:[e.jsxs("div",{className:"mb-[14px] flex justify-between border-b-1 border-b-[#E4E5E7]",children:[e.jsx("h2",{className:`font-secondary-bold title--videogallery--${s} py-[7.5px] text-[24px] leading-[120%]`,children:n}),e.jsxs(_,{to:"/videogaleria",className:`flex items-center gap-[6px] link--${s}`,children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold",children:"Összes videó"}),e.jsx(Ja,{className:"fill-current"})]})]}),e.jsx("div",{className:"flex items-start gap-[24px]",children:e.jsx("div",{className:"flex w-full flex-wrap gap-[24px]",children:t.slice(0,4).map(r=>e.jsx(_,{to:`/videogaleria/${r.id}`,className:"w-full md:w-[calc(25%-18px)]",children:e.jsx(Xe,{article:r,size:"m",borderColor:"var(--color-primary-dark-blue)",tv:!0})},r.id))})})]}),v6=()=>{const t=oe(),{ujbudaVideos:s}=b(n=>n.article);return e.jsxs("div",{className:"static-page--ujbuda mb-[64px] w-full xl:mb-0",children:[e.jsxs("div",{className:"page-banner px-0!",children:[e.jsx("img",{alt:"Háttér",className:"absolute top-0 left-0 z-1 h-full w-full object-cover object-center",src:"/style/ujbuda/eadministrationbanner.webp"}),e.jsx("div",{className:"absolute top-0 left-0 z-2 h-full w-full bg-[#171717] opacity-[0.64]"}),e.jsxs("div",{className:"absolute top-0 bottom-0 z-3 mx-auto flex w-[calc(100%)] flex-col items-center justify-center px-[16px] text-center text-(--color-white) md:max-w-[720px] md:items-start md:px-0 md:text-left xl:w-[1170px]",children:[e.jsx("div",{className:"font-secondary-bold mb-[16px] text-[36px] leading-[110%] md:text-[48px] xl:text-[52px]",children:"E-Ügyintézés Újbudán"}),e.jsx("div",{className:"w-full max-w-[570px] text-[16px] leading-[150%] xl:text-[18px]",children:"2018 január 1-jétől hivatalunk új ügyintézési elektronikus csatornákon is elérhető. E-Papíron, és 2019. májusától az E-önkormányzati Portálon keresztül is várjuk megkeresésüket legtöbb ügytípusunkban. (Azokban, ah
78ol nem kötelező a személyes megjelenés, vagy az okiratok egyéb – nem elektronikus módon történő benyújtása.)"})]})]}),t.staticSections.rolunk1&&e.jsx("div",{className:"mx-auto mb-[64px] w-[100%] max-w-full px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.rolunk1})}),s.length>0&&e.jsx(Dm,{videoGalleries:s,style:"ujbuda",title:"Tájékoztatás az elektronikus űrlap kitöltésével kezdeményezhető eljárásokról, az elektronikus űrlapok elérhetőségeiről"}),t.staticSections.rolunk2&&e.jsx("div",{className:"mx-auto mb-[64px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.rolunk2})}),e.jsx("div",{className:"xl:h-[32px]"})]})},b6=async t=>{const n=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/smart-map/${t}`,{headers:{Domain:location.hostname}})).json();return k.dispatch(dj({place:n})),n},At=async t=>{const s=await b6(t.params.id);k.dispatch(be(s.name))},Lt=()=>{const{place:t}=b(s=>s.smartMap);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:t.name}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:t.name}),e.jsx(et,{className:"mb-[24px] md:mb-[48px]"}),e.jsx("div",{className:"mb-[64px] text-[18px] leading-[150%] font-bold",children:t.maintitle}),e.jsxs("div",{className:"mb-[64px] flex flex-col gap-[16px] rounded-[4px] border-1 border-[#F4F4F4] p-[20px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)]",children:[e.jsx("img",{alt:"Sportegyesulet",height:32,src:"/svgs/sport-club.svg",width:32}),e.jsx("div",{className:"font-secondary-bold text-[24px] leading-[120%]",children:"Szervezeti, személyzeti adatok"}),e.jsxs("div",{className:"flex flex-col text-[18px] leading-[150%]",children:[e.jsxs("div",{className:"flex flex-col items-start justify-between border-b-1 border-[#F4F4F4] py-[12px] md:flex-row md:items-center",children:[e.jsx("div",{className:"font-bold",children:"Székhely (postai cím):"}),e.jsx("div",{className:"text-left break-all md:text-right",children:t.address})]}),t.leader&&e.jsxs("div",{className:"flex flex-col items-start justify-between border-b-1 border-[#F4F4F4] py-[12px] md:flex-row md:items-center",children:[e.jsx("div",{className:"font-bold",children:"Ügyvezető:"}),e.jsx("div",{className:"text-left break-all md:text-right",children:t.leader})]}),t.email&&e.jsxs("div",{className:"flex flex-col items-start justify-between border-b-1 border-[#F4F4F4] py-[12px] md:flex-row md:items-center",children:[e.jsx("div",{className:"font-bold",children:"Elektronikus levélcím (e-mail):"}),e.jsx("div",{className:"text-left break-all md:text-right",children:e.jsx("a",{className:"text-(--color-primary-dark-blue) underline",target:"_blank",href:`mailto:${t.email}`,children:t.email})})]}),t.phone&&e.jsxs("div",{className:"flex flex-col items-start justify-between border-b-1 border-[#F4F4F4] py-[12px] md:flex-row md:items-center",children:[e.jsx("div",{className:"font-bold",children:"Telefonszám:"}),e.jsx("div",{className:"text-left break-all md:text-right",children:t.phone})]}),t.web&&e.jsxs("div",{className:"flex flex-col items-start justify-between border-b-1 border-[#F4F4F4] py-[12px] md:flex-row md:items-center",children:[e.jsx("div",{className:"font-bold",children:"Webes elérhetőség:"}),e.jsx("div",{className:"text-left break-all md:text-right",children:e.jsx("a",{className:"text-(--color-primary-dark-blue) underline",href:t.web,target:"_blank",children:t.web})})]})]})]}),e.jsx("div",{className:"text-[18px] leading-[150%]",children:t.description})]})},cl=async t=>{const n=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/articles?categoryId=${t}`,{headers:{Domain:location.hostname}})).json();k.dispatch(j0(n))},qn=()=>{const t=ie(),{videoGalleries:s}=b(c=>c.article),{style:n}=b(c=>c.config),r=y.useCallback(async()=>{var u;const c=(u=document.querySelector(".lazy-loader"))==null?void 0:u.getBoundingClientRect();c&&c.top>0&&c.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(t(fl()),await cl("7",6,s.reduce((d,p)=>p.datePublished<d?p.datePublished:d,Math.round(new Date().getTime()/1e3))-1))},[s,t]);return y.useEffect(()=>(window.addEventListener("scroll",r),()=>{window.removeEventListener("scroll",r)}),[r]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Videógaléria"}]}),e.jsx("h1",{className:`title--${n} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Videógaléria"}),s.length>0&&e.jsx("div",{children:e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:s&&s.map(c=>e.jsx(_,{to:`/videogaleria/${c.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:c})},c.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})}),s.length===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},y6=async()=>{k.dispatch(be("Videógaléria")),await cl("51")},Mt=()=>{const{style:t}=b(c=>c.config),{staticPage:s}=b(c=>
78c.staticPage),n=oe(),r=y.useRef();return y.useEffect(()=>{r&&r.current&&(Mm(r,t),setTimeout(()=>{const c=location.hash,u=document.querySelector(c);u&&window.document.documentElement.scrollTo({top:u.getBoundingClientRect().top,behavior:"smooth"})},100))},[r,n]),e.jsxs("div",{className:`static-page static-page--${t}`,children:[e.jsxs("div",{className:"relative mx-auto h-[400px] w-full px-[16px] md:w-[720px] xl:w-[1170px]",children:[e.jsx("img",{alt:"Háttér",className:"absolute top-0 left-0 z-1 h-full w-full object-cover object-center",src:s.image?`https://api.ujbuda.hu/files/StaticPages/image/${s.image}`:`/style/${t}/static-page.webp`}),e.jsx("div",{className:"absolute top-0 left-0 z-2 h-full w-full bg-[#171717] opacity-[0.64]"}),e.jsxs("div",{className:"relative z-3 mx-auto flex h-full max-h-[400px] w-full flex-col items-center justify-center px-[16px] text-center text-(--color-white) md:w-[720px] md:items-start md:px-0 md:text-left xl:w-[1170px]",children:[e.jsx(G,{color:"white",separatorColor:"var(--color-primary-green)",className:"mb-[26px]"}),e.jsx("h1",{className:"font-secondary-bold mb-[16px] text-[36px] leading-[110%] md:text-[48px] xl:text-[52px]",children:s.title}),e.jsx("div",{className:"max-w-[570px] text-[16px] leading-[150%] xl:text-[18px]",children:s.subtitle})]})]}),s.content&&s.content.length>0&&e.jsx("div",{ref:r,className:"static-page--content mx-auto mt-[64px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",dangerouslySetInnerHTML:{__html:s.content}}),(s==null?void 0:s.youtubeEmbedUrl)&&e.jsx("div",{className:"mx-auto mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsx(Nl,{url:s.youtubeEmbedUrl})}),(s==null?void 0:s.gallery)&&(s==null?void 0:s.gallery.length)>0&&e.jsx("div",{className:"mx-auto mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsx(hl,{className:"mt-[24px]",images:s==null?void 0:s.gallery,title:"Galéria"})}),(s==null?void 0:s.documents)&&s.documents.length>0&&e.jsx("div",{className:"mx-auto mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:s==null?void 0:s.documents})}),(s==null?void 0:s.relatedLinks)&&s.relatedLinks.length>0&&e.jsx("div",{className:"mx-auto mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:s==null?void 0:s.relatedLinks})}),(s==null?void 0:s.map)&&e.jsx("div",{className:"mx-auto mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsx("div",{className:"aspect-[16/9] w-full",children:e.jsx("iframe",{className:"h-full w-full",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",src:`https://www.google.com/maps/embed/v1/place?key=AIzaSyC6LqzizI4MLcTUlT7fs4oC0rg9uNBlxqQ&q=${s.map.address}`})})})]})},w6=async(t,s)=>{const r=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/static-pages/${t}${s?`?token=${s}`:""}`,{headers:{Domain:location.hostname}})).json();return k.dispatch(Sm(r)),r},Dt=async t=>{const s=new URL(t.request.url),n=s.searchParams.get("token"),r=s.searchParams.get("ver");return!n||!r||(await w6(r,n),k.getState().staticPage.staticPage.content===null)?Og("/"):null},N6=[{children:[{children:[{authRequired:!0,element:e.jsx(X4,{}),path:"szemelyes-adatok"},{authRequired:!0,element:e.jsx(s6,{}),path:"biztonsag-jelszavak"},{authRequired:!0,element:e.jsx(Z4,{}),path:"ertesitesek"},{authRequired:!0,element:e.jsx(J4,{}),path:"visszajelzes-kuldese-bejelentes"}],element:e.jsx(s4,{}),path:"profil"},{children:[{element:e.jsx(pa,{}),loader:R4,path:"rendeletek"},{element:e.jsx(g6,{}),loader:L4,path:"rendeletek/:slug"},{element:e.jsx(fa,{}),loader:C4,path:"hatarozatok"},{element:e.jsx(h6,{}),loader:T4,path:"hatarozatok/:slug"},{element:e.jsx(ha,{}),loader:_4,path:"hirdetmenyek"},{element:e.jsx(f6,{}),loader:S4,path:"hirdetmenyek/:slug"},{element:e.jsx(ma,{}),loader:$4,path:"ugyek"},{element:e.jsx(j6,{}),loader:D4,path:"ugyek/:slug"},{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(f1,{}),loader:x1,path:""},{element:e.jsx(f1,{}),loader:x1,path:"/hivatali-cimoldal"},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(Fn,{}),loader:Et,path:"hirek"},{element:e.jsx(Fi,{}),loader:at,path:"hirek/:id"},{element:e.jsx(qn,{}),loader:y6,path:"videogaleria"},{element:e.jsx(Fi,{}),loader:at,path:"videogaleria/:id"},{element:e.jsx(xn,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Gn,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(Yn,{}),loader:bt,path:"esemenyek/kategoriak/:id"},{element:e.jsx(Aa,{}),loader:d4,path:"gyik"},{element:e.jsx(n6,{}),loader:h4,path:"nyomtatvanyok"},{element:e.jsx(La,{}),loader:p4,path:"telefonkonyv"},{element:e.jsx(v6,{}),loader:U4,path:"kozigazgatas/Ugyintezes/e-ugyintezes-ujbudan"}],element:e.jsx(Xt,{}),path:""},{children:[{element:e.jsx(W4,{}),path:"regisztracio"},{element:e.jsx(K4,{}),path:"belepes"},{element:e.jsx(G4,{}),path:"elfelejtettem-a-jelszavam"},{element:e.jsx(e6,{}),path:"jelszo-helyreallitasa"}],element:e.jsx(Qk,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(n4,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(p6,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],_j=()=>{const{newsletterSubscribe:t,footerAddresses:s,footerEmails:n,footerPhones:r,footerNav:c}=b(u=>u.config);return e.jsx(e.Fragment,{children:e.jsxs("div",{className:`footer bg-primary-dark-blue lgtablet:mt-[0px] relative ${t?"mt-[200px] md:mt-[100px] xl:mt-[48px]":"mt-0"} h-full w-full`,children:[e.jsx("div",{className:"absolute inset-0 mx-auto h-full w-full max-w-[1170px] overflow-hidden py-3",children:e.jsx("img",{src:"/svgs
78/footer_dark_blue_image.svg",alt:"Háttér",className:"lgtablet:object-right h-full w-full object-contain object-center"})}),e.jsx("div",{className:"flex flex-row justify-between gap-12"}),e.jsxs("div",{className:`relative z-20 mx-auto w-full max-w-[1170px] px-[16px] ${t?"lgtablet:pt-[84px] pt-[128px]":"pt-[26px]"} xl:px-[0]`,children:[e.jsxs("div",{className:"flex flex-col items-center gap-10 xl:flex-row xl:items-start xl:gap-0",children:[e.jsxs("div",{className:"mr-0 flex flex-col items-center xl:mr-[28px] xl:items-start",children:[e.jsx("span",{className:"font-secondary-bold mb-[4px] text-[31px] leading-[100%] text-(--color-white) uppercase",children:"Újbudaonline"}),e.jsx("span",{className:"mb-[31.5px] text-[12px] leading-[150%] text-(--color-white)"}),e.jsx(_,{to:"https://media11.ujbuda.hu",children:e.jsx("button",{className:"w-[177px] cursor-pointer rounded-[4px] bg-(--color-lightblue) px-[24px] py-[20px] text-[12px] leading-[110%] font-bold text-(--color-black)",children:"Média11 Kft."})})]}),e.jsx("div",{className:"flex flex-col items-center gap-[28px] text-center xl:flex-row xl:items-start xl:text-left",children:c.map(u=>e.jsx("div",{className:"flex w-[170px] flex-col items-center text-[12px] leading-[150%] text-(--color-white) xl:items-start",children:e.jsxs("div",{children:[e.jsx("div",{className:"mb-[11px] font-bold uppercase",children:u.title}),e.jsx("div",{className:"flex flex-col gap-[12px]",children:u.children.map(d=>e.jsx(_,{className:"",to:d.external?d.external_link:d.path,target:d.external?"_blank":"",children:d.title}))})]})}))}),e.jsxs("div",{className:"ml-[28px] flex w-[274px] flex-col",children:[e.jsx("span",{className:"mb-[11px] text-[12px] leading-[150%] font-bold text-(--color-white)",children:"ÚJBUDA ÖNKORMÁNYZATA"}),e.jsx("span",{className:"mb-[24px] text-[12px] leading-[150%] text-(--color-white)",children:"Budapest Főváros XI. Kerület Újbuda Önkormányzata és Budapest XI. Kerület Újbudai Polgármesteri Hivatal"}),e.jsxs("div",{className:"mb-[20px] flex gap-[12px]",children:[e.jsx("div",{className:"flex h-[32px] w-[32px] items-center justify-center rounded-[4px] bg-(--color-white)",children:e.jsx("img",{alt:"Cím",height:16,src:"/svgs/address.svg",width:16})}),e.jsx("div",{className:"flex flex-col text-[12px] leading-[150%] text-(--color-white)",children:s.map(u=>e.jsx("span",{children:u}))})]}),e.jsxs("div",{className:"mb-[20px] flex gap-[12px]",children:[e.jsx("div",{className:"flex h-[32px] w-[32px] items-center justify-center rounded-[4px] bg-(--color-white)",children:e.jsx("img",{alt:"E-mail",height:16,src:"/svgs/email.svg",width:16})}),e.jsx("div",{className:"flex flex-col text-[12px] leading-[150%] text-(--color-white)",children:n.map(({email:u,description:d})=>e.jsxs("span",{children:[e.jsx(_,{to:`mailto:${u}`,className:"underline",children:u})," (",d,")"]}))})]}),e.jsxs("div",{className:"flex gap-[12px]",children:[e.jsx("div",{className:"flex h-[32px] w-[32px] items-center justify-center rounded-[4px] bg-(--color-white)",children:e.jsx("img",{alt:"Telefon",height:16,src:"/svgs/phone.svg",width:16})}),e.jsx("div",{className:"flex flex-col gap-[12px] text-[12px] leading-[150%] text-(--color-white)",children:r.map(({phone:u,name:d})=>e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"mb-[2px] text-[10px] leading-[100%] font-bold uppercase",children:d}),e.jsx("span",{className:"text-[12px] leading-[110%] font-bold",children:u})]}))})]})]})]}),e.jsx("div",{className:"mt-6 h-[1px] w-full bg-white"}),e.jsx("div",{className:"lgtablet:flex-row tablet:px-0 flex flex-col-reverse items-center justify-center gap-4 px-5 py-6",children:e.jsx("p",{className:"text-[10px] font-bold text-white",children:"Újbuda Önkormányzat - Minden jog fenntartva"})})]}),e.jsx(Jl,{type:"newsletter"}),t&&e.jsx(es,{})]})})},Ej=()=>{var v;const t=_e(),{openNavMenu:s}=b(N=>N.hamburgerMenu),n=b(N=>N.config),r=ie(),c=s!==null?((v=n.mainNav.find(N=>N.id===s))==null?void 0:v.children)||[]:[],{mainNav:u,topNav:d,socialLinkFacebook:p,socialLinkInstagram:x,socialLinkTikTok:g,socialLinkYoutube:h}=b(N=>N.config);return e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"navbar relative z-200 flex min-h-[89px] flex-col justify-center gap-4 bg-(--color-primary-dark-blue) px-6 py-3 shadow-xl xl:pb-3",children:[e.jsxs("div",{className:"mx-auto hidden w-full max-w-[1170px] px-[24px] xl:flex",children:[e.jsx("h1",{className:"font-secondary-bold mr-[32px] flex flex-col justify-center pt-10 text-[22px] leading-[100%] text-(--color-white) uppercase",children:e.jsx(_,{to:"/",children:"Újbudaonline"})}),e.jsxs("div",{className:"flex w-full flex-col justify-center gap-[15px]",children:[e.jsxs("div",{className:"flex items-center justify-end",children:[e.jsx("div",{className:"mr-[24px] flex items-center gap-[24px]",children:d.map(N=>e.jsx(_,{target:N.external?"_blank":"",to:N.external?N.external_link:N.path,className:"text-[12px] leading-[150%] text-(--color-white)",children:N.title},N.id))}),e.jsxs("div",{className:"flex gap-[24px] border-l border-(--color-lighgreen) pl-[24px]",children:[p&&e.jsx(_,{to:p,target:"_blank",children:e.jsx("img",{alt:"Facebook",height:24,src:"/svgs
78/facebook_share_icon_white.svg",width:24})}),x&&e.jsx(_,{to:x,target:"_blank",children:e.jsx("img",{alt:"Instagram",height:24,src:"/svgs/instagram_share_icon_white.svg",width:24})}),g&&e.jsx(_,{to:g,target:"_blank",children:e.jsx("img",{alt:"TikTok",height:24,src:"/svgs/tiktok_share_icon_white.svg",width:24})}),h&&e.jsx(_,{to:h,target:"_blank",children:e.jsx("img",{alt:"YouTube",height:24,src:"/svgs/youtube_share_icon_white.svg",width:24})})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("ul",{className:"between flex items-center gap-[24px] overflow-hidden whitespace-nowrap",children:u.map((N,C)=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>{N.children.length>0?r(V(s===N.id?null:N.id)):(N.external?window.open(N.external_link):t(N.path),r(V(null)))},className:"flex cursor-pointer flex-row items-center gap-2 text-[14px] leading-[150%] font-bold text-(--color-white)",children:[N.title,N.children.length>0&&e.jsx("img",{src:"/svgs/green_dropdown_icon.svg",alt:"Nyíl"})]})},C))}),e.jsxs("div",{className:"flex items-center gap-[24px]",children:[e.jsx(_,{to:"/kereses",onClick:()=>r(V(null)),children:e.jsx("div",{className:"search-button cursor-pointer rounded-[4px] bg-(--color-lightblue) p-[16px]",children:e.jsx("img",{alt:"Keresés",height:16,src:"/svgs/search_icon_black.svg",width:16})})}),e.jsx(_,{to:"https://ujbuda.hu",target:"_blank",children:e.jsx("div",{className:"flex w-[191px] cursor-pointer items-center rounded-[4px] bg-(--color-primary-green) py-[18px] text-[12px] leading-[110%] font-bold whitespace-nowrap text-(--color-black)",children:"Újbuda Önkormányzat"})})]})]})]})]}),e.jsx(Xl,{color:"white"})]}),s&&e.jsx(Zl,{items:c,onClose:()=>r(V(null))})]})},Qt=({children:t})=>{const{hamburgerOpen:s,openNavMenu:n}=b(p=>p.hamburgerMenu),r=ie(),c=s&&n===null,u=n!==null&&!s,d=c||u;return y.useEffect(()=>{const p=()=>{window.innerWidth>1280?r(ge(!1)):window.innerWidth<1280&&r(V(null))};return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Ej,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${d?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${c?"top-[89px] h-[calc(100%-89px)]":""} ${u?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{r(s?ge(!s):V(null))}}),e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx("main",{className:"flex w-full flex-1 flex-col",children:t||e.jsx(ct,{})}),e.jsx(_j,{})]})},k6=({children:t})=>{const{title:s,sideMenu:n,activeItems:r}=b(h=>h.sideMenu),{hamburgerOpen:c,openNavMenu:u}=b(h=>h.hamburgerMenu),d=ie(),p=c&&u===null,x=u!==null&&!c,g=p||x;return y.useEffect(()=>{const h=()=>{window.innerWidth>1280?d(ge(!1)):window.innerWidth<1280&&d(V(null))};return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Ej,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${g?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${p?"top-[89px] h-[calc(100%-89px)]":""} ${x?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{d(c?ge(!c):V(null))}}),e.jsxs("div",{className:"relative min-h-[calc(100vh-162px)] bg-[#F4F4F4]",children:[e.jsxs("div",{className:"mx-auto flex max-w-[1170px]",children:[e.jsxs("aside",{className:"hidden w-[386px] flex-col p-[24px] xl:flex",children:[e.jsx("span",{className:"mb-[59px] leading-[150%] font-[18px] font-bold text-(--color-primary-dark-blue)",children:s}),e.jsx(Wl,{menu:n,activeItems:r})]}),e.jsxs("main",{className:"min-h-[calc(100vh-162px)] w-full bg-(--color-white) px-[24px] py-[32px] xl:w-[calc(100%-386px)] xl:pb-[90px]",children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),t||e.jsx(ct,{})]})]}),e.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-[calc(100vw/2-585px)] bg-(--color-white)"})]}),e.jsx(_j,{})]})},_6=async()=>{k.dispatch(be("Főoldal")),await Ra(),await $e(),await Yt()},E6=async()=>{const s=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/smart-map/types",{headers:{Domain:location.hostname}})).json();return k.dispatch(D0({categories:s})),s},S6=t=>{let s="";for(const n of Object.keys(t))if(t[n]!==void 0)if(n==="typeIds")for(const r of t.typeIds)s=`${s}${s.length===0?"?":"&"}typeIds[]=${r}`;else s=`${s}${s.length===0?"?":"&"}${n}=${t[n]}`;return s},Hi=async(t=[],s=10,n=1)=>{const c=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/smart-map${S6({typeIds:t,limit:s,page:n})}`,{headers:{Domain:location.hostname}})).json();k.dispatch($0({places:c.places,hasMore:c.hasMoreItems,page:n}))},C6=async()=>{k.dispatch(be("Piactér"));const s=(await E6()).find(n=>n.name==="Piactér");return s!==void 0&&await Hi([s.id]),{marketplaceCategory:s||null}},z6=async t=>{const n=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/smart-map/${t}`,{headers:{Domain:location.hostname}})).json();return k.dispatch(H0({place:n}
78)),n},T6=async t=>{const s=await z6(t.params.id);k.dispatch(be(s.name))},R6=({className:t})=>e.jsxs("div",{className:`flex w-full ${t}`,children:[e.jsx("div",{className:"h-[1px] w-[25%] bg-(--color-primary-dark-blue)"}),e.jsx("div",{className:"h-[1px] w-[25%] bg-(--color-lightblue)"}),e.jsx("div",{className:"h-[1px] w-[25%] bg-(--color-primary-green)"}),e.jsx("div",{className:"h-[1px] w-[25%] bg-(--color-lighgreen)"})]}),A6=()=>{const{articles:t,categories:s}=b(r=>r.article),n=s.find(r=>r.name==="Helyi hírek");return e.jsxs("div",{children:[e.jsx(Rt,{className:"mb-[48px]",showHero:!1}),n&&n.articles.length>0&&e.jsxs("div",{className:"mx-auto mb-[48px] flex w-full max-w-[1170px] flex-col gap-[24px] px-5 xl:flex-row xl:px-0",children:[e.jsxs("div",{className:"w-full xl:w-[calc(75%-12px)]",children:[e.jsxs("div",{className:"mb-[7.5px] flex justify-between",children:[e.jsx("h3",{className:"font-secondary-bold text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:n.name}),e.jsxs(_,{to:`/hirek/kategoriak/${n.id}`,className:"flex items-center gap-[6px]",children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold text-(--color-primary-dark-blue)",children:"Összes hír"}),e.jsx("img",{alt:"Jobbra mutató nyíl",height:12,src:"/style/ujbudaonline/arrow.svg",width:12})]})]}),e.jsx(De,{className:"mb-[32px]"}),e.jsx("div",{className:"flex w-full flex-wrap gap-[24px]",children:n&&n.articles.slice(0,6).map(r=>e.jsx(_,{to:`/hirek/${r.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:r})},r.id))})]}),e.jsxs("div",{className:"w-full max-w-full xl:w-[calc(25%-12px)]",children:[e.jsxs("div",{className:"mb-[7.5px] flex w-full justify-between",children:[e.jsx("h3",{className:"font-secondary-bold text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:"Legújabb"}),e.jsxs(_,{to:"/hirek",className:"flex items-center gap-[6px]",children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold text-(--color-primary-dark-blue)",children:"Összes"}),e.jsx("img",{alt:"Jobbra mutató nyíl",height:12,src:"/style/ujbudaonline/arrow.svg",width:12})]})]}),e.jsx(R6,{className:"mb-[32px]"}),e.jsx("div",{className:"hidden flex-row gap-[24px] xl:flex xl:flex-col",children:t.slice(0,4).map(r=>e.jsx(_,{to:`/hirek/${r.id}`,children:e.jsx(Xe,{article:r,size:"s"})},r.id))}),e.jsx("div",{className:"flex w-full flex-row gap-[16px] max-md:hidden xl:hidden",children:t.slice(0,3).map(r=>e.jsx(_,{to:`/hirek/${r.id}`,className:"max-w-1/3",children:e.jsx(Xe,{article:r,size:"s"})},r.id))}),e.jsx("div",{className:"flex w-full flex-row gap-[16px] md:hidden",children:t.slice(0,2).map(r=>e.jsx(_,{to:`/hirek/${r.id}`,className:"max-w-1/2",children:e.jsx(Xe,{article:r,size:"s"})},r.id))})]})]}),s.length>0&&s.filter(r=>r.name!=="Helyi hírek").map(r=>e.jsxs("div",{className:"mx-auto mb-[48px] flex w-full max-w-[1170px] flex-col px-5 xl:px-0",children:[e.jsxs("div",{className:"mb-[7.5px] flex justify-between",children:[e.jsx("h3",{className:"font-secondary-bold text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:r.name}),e.jsxs(_,{to:`/hirek/kategoriak/${r.id}`,className:"flex items-center gap-[6px]",children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold text-(--color-primary-dark-blue)",children:"Összes hír"}),e.jsx("img",{alt:"Jobbra mutató nyíl",height:12,src:"/style/ujbudaonline/arrow.svg",width:12})]})]}),e.jsx(De,{className:"mb-[32px]"}),e.jsx("div",{className:"flex w-full flex-wrap gap-[24px]",children:r.articles.slice(0,6).map(c=>e.jsx(_,{to:`/hirek/${c.id}`,className:"w-full md:w-[calc(100%/2-16px)] xl:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:c,size:"m"},c.id)},c.id))})]}))]})},L6=({className:t,place:s})=>e.jsxs("div",{className:`${t} flex aspect-video flex-col justify-center gap-[24px] p-[32px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)] xl:aspect-[306/368]`,children:[e.jsx("div",{className:"h-[64px] w-[64px]",children:s.image&&e.jsx(ua,{alt:s.name,className:"h-full w-full object-contain object-center",src:s.image})}),e.jsx("div",{className:"font-secondary-bold line-clamp-3 text-[24px]",children:s.name}),e.jsx("img",{alt:"Jobbra felfele mutató nyíl",className:"h-[32px] w-[32px]",src:"/svgs
78/open.svg"})]}),M6=()=>{const t=ie(),{marketplaceCategory:s}=oe(),{categories:n,places:r}=b(h=>h.marketplace),[c,u]=y.useState([]),d=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().marketplace.hasMore===!0&&k.getState().marketplace.inProgress===!1&&(t(O0()),await Hi(document.querySelector("#categoryIds").value.split(",").map(N=>Number(N)),void 0,k.getState().marketplace.page+1))},[k.getState().marketplace.page,t]);y.useEffect(()=>(window.addEventListener("scroll",d),()=>{window.removeEventListener("scroll",d)}),[d]);const p=async h=>{if(c.find(S=>S.id==h)!==void 0)return;const N=n.find(S=>S.id==h);if(N===void 0)return;const C=[...c,N];u(C),s&&await Hi([...C.map(S=>S.id)])},x=async h=>{const v=c.filter(N=>N.id!==h);u(v),s&&(v.map(N=>N.id).length>0?await Hi([...v.map(N=>N.id)]):await Hi([s.id]))},g=async()=>{u([]),s&&await Hi([s.id])};return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Piactér",href:"/piacter"}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:"Piactér"}),e.jsx(et,{className:"mb-[24px] md:mb-[48px]"}),e.jsxs("div",{className:"mb-[64px] flex flex-col gap-[12px] leading-[150%]",children:[e.jsx("p",{children:"Lakossági igény hívta életre a Piactér aloldalt, amelynek célja, hogy lehetőség szerint minden helyi szolgáltatás és üzlet egy helyen elérhető legyen az újbudaiak számára. Ezt az igényt több közvéleménykutatás is alátámasztotta."}),e.jsx("p",{children:"Az oldal mögött áll a több mint 30 ezres és folyamatosan növekvő számú követővel rendelkező facebook oldalunk is."}),e.jsx("p",{children:"A vállalkozó adatlapokat 2023 decemberétől folyamatosan töltjük fel. Ha vállalkozóként szeretne regisztrálni, azt ITT teheti meg díjmentesen:"}),e.jsx(_,{className:"bg-primary-dark-blue w-fit cursor-pointer rounded-[4px] px-[32px] py-[12px] text-[12px] font-bold whitespace-nowrap text-white",to:"/Cegkent-regisztralok",children:"Cégként regisztrálok"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"mb-[24px] flex items-center justify-between",children:e.jsxs("div",{className:"flex flex-col items-start gap-[12px] xl:flex-row xl:items-center",children:[e.jsx("label",{htmlFor:"filter",className:"absolute left-[-10000%]",children:"Szűrés"}),e.jsx(Oe,{type:"dropdown",placeholder:"Szűrés",className:"w-full max-w-[320px] md:min-w-[320px] xl:max-w-[320px]",value:"",id:"filter",items:n.filter(h=>h.name!=="Piactér").map(h=>({key:h.id,value:h.name})),onChange:p}),e.jsx("div",{className:"flex flex-wrap items-center gap-[12px]",children:c.map(h=>e.jsx(cn,{label:h.name,onClose:()=>x(h.id)}))}),c.length>0&&e.jsxs("button",{className:"text-primary-dark-blue flex cursor-pointer items-center gap-[8px] text-[12px]",onClick:g,children:[e.jsx("img",{alt:"Kuka",src:"/svgs/delete_icon.svg"}),e.jsx("span",{children:"Összes törlése"})]})]})}),e.jsx("div",{className:"font-secondary-bold text-primary-dark-blue text-[24px]",children:"Kerületi vállalkozások"}),e.jsx(De,{className:"mb-[28px]"}),e.jsxs("div",{className:"flex flex-wrap gap-[24px]",children:[r.map(h=>e.jsx(_,{className:"w-full xl:w-[calc(25%-18px)]",to:`/piacter/${h.id}`,children:e.jsx(L6,{place:h})})),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),e.jsx("input",{type:"hidden",id:"categoryIds",value:[...c.map(h=>h.id).join(","),s.id]})]})},D6={mon:"Hétfő",tue:"Kedd",wed:"Szerda",thu:"Csütörtök",fri:"Péntek",sat:"Szombat",sun:"Vasárnap"},$6=()=>{const{place:t}=b(s=>s.marketplace);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Piactér",href:"/piacter"},{title:t.name}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t.name}),e.jsx(et,{className:"mb-[24px] md:mb-[48px]"}),e.jsxs("div",{className:"flex flex-col gap-[16px] xl:flex-row",children:[e.jsx("div",{className:"w-full xl:w-[306px]",children:t.image&&e.jsx(ua,{alt:t.name,className:"aspect-square w-full object-contain object-center",src:t.image})}),e.jsxs("div",{className:"flex w-full flex-col gap-[16px] xl:w-[calc(100%-16px-306px)]",children:[e.jsx("div",{children:t.description}),t.address&&e.jsxs("div",{className:"flex",children:[e.jsx("strong",{className:"flex w-[120px] font-bold",children:"Cím:"}),e.jsx("span",{children:t.address})]}),t.leader&&e.jsxs("div",{className:"flex",children:[e.jsx("strong",{className:"flex w-[120px] font-bold",children:"Ügyvezető:"}),e.jsx("span",{children:t.leader})]}),t.email&&e.jsxs("div",{className:"flex",children:[e.jsx("strong",{className:"flex w-[120px] font-bold",children:"E-mail cím:"}),e.jsx("span",{children:t.email})]}),t.phone&&e.jsxs("div",{className:"flex",children:[e.jsx("strong",{className:"flex w-[120px] font-bold",children:"Telefonszám:"}),e.jsx("span",{children:t.phone})]}),t.web&&e.jsxs("div",{className:"flex",children:[e.jsx("strong",{className:"flex w-[120px] font-bold",children:"Webes elérhetőség:"}),e.jsx("a",{className:"text-(--color-primary-dark-blue) underline",href:t.web,target:"_blank",children:t.web})]}),t.openingHours.length!==0&&e.jsxs("div",{className:"flex flex-col gap-[4px]",children:[e.jsx("strong",{className:"font-bold",children:"Nyitvatartás:"}),Object.keys(t.openingHours).map(s=>e.jsxs("div",{className:"flex",children:[e.jsxs("span",{className:"flex w-[120px]",children:[D6[s],":"]}),e.jsx("strong",{className:"font-bold",children:t.openingHours[s]})]}))]})]})]})]})},O6="modulepreload",H6=function(t){return"/"+t},h1={},U6=function(s,n,r){let c=Promise.resolve();if(n&&n.length>0){let d=function(g){return Promise.all(g.map(h=>Promise.resolve(h).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),x=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));c=d(n.map(g=>{if(g=H6(g),g in h1)return;h1[g]=!0;const h=g.endsWith(".css"),v=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${v}`))return;const N=document.createElement("link");if(N.rel=h?"stylesheet":O6,h||(N.as="script"),N.crossOrigin="",N.href=g,x&&N.setAttribute("nonce",x),document.head.appendChild(N),h)return new Promise((C,S)=>{N.addEventListener("load",C),N.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${g}`)))})}))}function u(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return c.then(d=>{for(const p of d||[])p.status==="rejected"&&u(p.reason);return s().catch(u)})},P6=({className:t,publication:s,onClick:n})=>e.jsx("div",{className:t,onClick:n,children:e.jsx(ua,{alt:s.title,src:s.coverImage})}),B6=({title:t})=>{const s=ie(),{publications:n}=b(g=>g.publication),[r,c]=y.useState(null),[u,d]=y.useState(null),p=y.useRef();y.useEffect(()=>{U6(()=>import("./Flipbook-B17SN5a4.js"),[]).then(g=>{d(()=>g.default)})},[]);const x=y.useCallback(async()=>{var h;const g=(h=document.querySelector(".lazy-loader"))==null?void 0:h.getBoundingClientRect();g&&g.top>0&&g.top<window.innerHeight&&k.getState().publication.hasMore===!0&&k.getState().publication.inProgress===!1&&(s(oj()),await jj(k.getState().publication.page+1))},[s]);return y.useEffect(()=>(window.addEventListener("scroll",x),()=>{window.removeEventListener("scroll",x)}),[x]),typeof window>"u"?null:e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:t}),e.jsx(et,{className:"mb-[24px] md:mb-[48px]"}),e.jsx("div",{className:"flex flex-col",children:e.jsxs("div",{className:"flex flex-wrap gap-[24px]",children:[n.map(g=>e.jsx(P6,{className:"w-[calc(25%-18px)] cursor-pointer",publication:g,onClick:()=>c(g)})),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})}),r&&e.jsx("div",{className:"fixed top-0 left-0 z-100 flex h-full w-full items-center justify-between bg-[#000000C0]",children:e.jsx(u,{publication:r,pageFlip:p,onClose:()=>c(null)})})]})},I6=()=>{const{nav:t}=oe();if(t===null)return e.jsx(Qt,{children:e.jsx(Bt,{})});const{item:s,parent:n}=t;switch(s.type){case"static":return e.jsx(Qt,{children:e.jsx(Ma,{parent:n})});case"events":return e.jsx(Qt,{children:e.jsx(Gn,{title:t.item.title})});case"eventcategories":return e.jsx(Qt,{children:e.jsx(Yn,{categoryId:s.params.categoryId})});case"documents":return e.jsx(Qt,{children:e.jsx(Da,{title:t.item.title,categoryId:void 0,path:s.path})});case"documentcategories":return e.jsx(Qt,{children:e.jsx(Qe,{title:t.item.title,categoryId:s.params.categoryId})});case"navonly":return e.jsx(Qt,{children:e.jsx($a,{title:t.item.title,children:s.children})});case"contacts":return e.jsx(Qt,{children:e.jsx(Oa,{})});case"form":return e.jsx(Qt,{children:e.jsx(Ha,{title:t.item.title,formId:s.params.formId})});case"issues":return e.jsx(Qt,{children:e.jsx(ma,{})});case"regulations":return e.jsx(Qt,{children:e.jsx(pa,{})});case"decisions":return e.jsx(Qt,{children:e.jsx(fa,{})});case"announcements":return e.jsx(Qt,{children:e.jsx(ha,{})});case"representatives":case"vicemayorsonly":return e.jsx(Qt,{children:e.jsx(Ua,{title:"Képviselők",withoutViceMayors:s.type==="vicemayorsonly"})});case"representativesonly":return e.jsx(Qt,{children:e.jsx(Pa,{title:"Alpolgármesterek"})});case"newscategories":return e.jsx(Qt,{children:e.jsx(xn,{title:t.item.title,categoryId:t.
78item.params.categoryId})});case"publications":return e.jsx(Qt,{children:e.jsx(B6,{title:t.item.title})});case"organisation_contacts":return e.jsx(Qt,{children:e.jsx(La,{title:t.item.title})});case"card_acceptors":return e.jsx(Qt,{children:e.jsx(Ba,{title:t.item.title})});case"news":return e.jsx(Qt,{children:e.jsx(Fn,{title:t.item.title})});case"smartmaptypes":return e.jsx(Qt,{children:e.jsx(Ia,{title:t.item.title,typeId:t.item.params.typeId})})}return e.jsx(Qt,{children:e.jsx(Bt,{})})},F6=[{children:[{children:[{element:e.jsx(A6,{}),loader:_6,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(Fi,{}),loader:at,path:"hirek/:id"},{element:e.jsx(M6,{}),loader:C6,path:"piacter"},{element:e.jsx($6,{}),loader:T6,path:"piacter/:id"},{element:e.jsx(Fn,{}),loader:Et,path:"hirek"},{element:e.jsx(Fi,{}),loader:at,path:"hirek/:id"},{element:e.jsx(xn,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Gn,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(Yn,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(Qt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(k6,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(I6,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],Sj=()=>{const{newsletterSubscribe:t,logoImage:s,style:n,footerText:r,footerAddresses:c,footerEmails:u,footerPhones:d,footerNav:p}=b(x=>x.config);return e.jsx(e.Fragment,{children:e.jsxs("div",{className:`footer footer--${n} relative ${t?"mt-[200px] md:mt-[100px] xl:mt-[48px]":"mt-0"} h-full w-full`,children:[e.jsx("div",{className:"absolute inset-0 mx-auto h-full w-full max-w-[1170px] overflow-hidden py-3",children:e.jsx("img",{src:"/svgs/kozossegi_footer.svg",alt:"Háttér",className:"lgtablet:object-right h-full w-full object-contain object-center"})}),e.jsx("div",{className:"flex flex-row justify-between gap-12"}),e.jsxs("div",{className:`relative z-20 mx-auto w-full max-w-[1170px] px-[16px] ${t?"lgtablet:pt-[84px] pt-[128px]":"pt-[26px]"} xl:px-[0]`,children:[e.jsxs("div",{className:"flex w-full flex-col justify-center gap-[45px] text-center md:flex-row md:text-left xl:justify-start",children:[e.jsxs("div",{className:"grid w-[100%] auto-rows-min grid-cols-1 gap-3 text-start md:w-[318px]",children:[e.jsx("img",{src:s,alt:"Újbuda logó",className:"mx-auto md:mx-0",style:{filter:"brightness(0) invert(1)"}}),e.jsx("p",{className:"row-start-3 text-xs",children:r}),c.length>0&&e.jsxs("div",{className:"row-start-4 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/address.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:c.map(x=>e.jsx("p",{children:x}))})]}),u.length>0&&e.jsxs("div",{className:"row-start-5 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 min-w-8 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/email.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:u.map(x=>e.jsxs("p",{children:[x.description&&x.description.trim().length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:x.description}),e.jsx("br",{})]}),e.jsx("a",{href:`mailto:${x.email}`,className:"underline",children:x.email})]}))})]}),d.length>0&&e.jsxs("div",{className:"row-start-6 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/phone.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"flex flex-col gap-3",children:d.map(x=>e.jsxs("div",{className:"text-[12px] leading-[150%]",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase",children:x.name}),e.jsx("p",{className:"leading-[110%] font-bold",children:x.phone})]}))})]})]}),e.jsx("div",{className:"flex flex-wrap gap-x-[45px] gap-y-[42px] md:mt-[63px]",children:p.map(x=>e.jsxs("div",{className:"flex w-[100%] flex-col gap-3 text-[12px] md:w-[318px] xl:w-[239px]",children:[e.jsx("h2",{className:"leading-[150%] font-bold uppercase",children:x.title}),x.children.map(g=>e.jsx(_,{target:g.external?"_blank":"",to:g.external?g.external_link:g.path,className:"row-start-4",children:g.title}))]}))})]}),e.jsx("div",{className:"mt-6 h-[1px] w-full bg-white"}),e.jsx("div",{className:"lgtablet:flex-row tablet:px-0 flex flex-col-reverse items-center justify-center gap-4 px-5 py-6",children:e.jsx("p",{className:"text-[10px] font-bold text-white",children:"Újbuda Önkormányzat - Minden jog fenntartva"})})]}),e.jsx(Jl,{type:"newsletter"}),t&&e.jsx(es,{})]})})},Cj=()=>{var u;const t=_e(),{openNavMenu:s}=b(d=>d.hamburgerMenu),n=b(d=>d.config),r=ie(),c=s!==null?((u=n.mainNav.find(d=>d.id===s))==null?void 0:u.children)||[]:[];return e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"navbar relative z-200 flex flex-col justify-center gap-4 bg-white px-6 py-3 shadow-xl xl:pb-3",children:[e.jsxs("div",{className:"mx-auto hidden w-full max-w-[1170px] flex-col xl:flex",children:[e.jsxs("div",{className:"hidden flex-row justify-between xl:flex",children:[e.jsx("div",{className:"flex flex-row items-center gap-4",children:n.highlightedInformations.map((d,p)=>e.jsxs(e.Fragment,{children:[e.jsx(_,{to:d.path,className:"text-[12px] leading-[150%]",children:d.title}),p<n.highlightedInformations.length-1&&e.jsx("div",{className:"divider"})]}))}),e.jsxs("div",{className:"ml-auto flex flex-row gap-6",children:[e.jsx("div",{className:"flex flex-row items-center gap-6 text-[12px] leading-[150%]",children:n.topNav.map(d=>e.jsx(_,{target:d.external?"_blank":"",to:d.external?d.external_link:d.path,children:d.title}))}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider mr-[25px]"})]}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[n.socialLinkFacebook&&e.jsx("a",{target:"_blank",href:n.socialLinkFacebook,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs
78/facebook_icon.svg",alt:"Facebook"})}),n.socialLinkTiktok&&e.jsx("a",{target:"_blank",href:n.socialLinkTiktok,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n.socialLinkInstagram&&e.jsx("a",{target:"_blank",href:n.socialLinkInstagram,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),n.socialLinkYoutube&&e.jsx("a",{target:"_blank",href:n.socialLinkYoutube,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]})]}),(n.highlightedInformations.length>0||n.topNav.length>0||n.socialLinkFacebook||n.socialLinkTikTok||n.socialLinkInstagram||n.socialLinkYoutube)&&e.jsx("div",{className:"h-[12px]"}),e.jsxs("div",{className:"flex h-[49px] flex-row items-center gap-6",children:[e.jsx(_,{to:"/",className:"mr-auto shrink-0",onClick:()=>r(V(null)),children:e.jsx("img",{src:n.logoImage,alt:`${n.title} logó`,className:"max-h-[49px] max-w-[205px]"})}),e.jsx("ul",{className:"hidden h-full w-full flex-row items-center justify-start gap-[24px] overflow-x-hidden pl-[5px] whitespace-nowrap xl:flex",children:n.mainNav.map((d,p)=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>{d.children.length>0?r(V(s===d.id?null:d.id)):(d.external?window.open(d.external_link):t(d.path),r(V(null)))},className:"flex cursor-pointer flex-row items-center gap-1 text-[12px] font-bold",children:[d.title,d.children.length>0&&e.jsx("img",{src:"/svgs/blue_dropdown_icon.svg",alt:"Nyíl"})]})},p))}),e.jsx(_,{to:"/kereses",onClick:()=>r(V(null)),children:e.jsx("div",{className:"search-button bg-primary-dark-blue flex h-[48px] w-[48px] cursor-pointer items-center justify-center rounded-[4px] text-white",children:e.jsx("img",{src:"/svgs/search_icon.svg",alt:"Keresés"})})}),e.jsx(_,{to:"https://kozpont.ujbuda.hu",target:"_blank",className:"hidden h-[49px] w-[191px] xl:flex",children:e.jsx("div",{className:"cta-button bg-primary-dark-blue flex w-full cursor-pointer items-center rounded-[4px] px-6 text-[12px] font-bold whitespace-nowrap text-white",children:"Irány a KözPont!"})})]})]}),e.jsx(Xl,{})]}),s&&e.jsx(Zl,{items:c,onClose:()=>r(V(null))})]})},Me=({children:t})=>{const{hamburgerOpen:s,openNavMenu:n}=b(p=>p.hamburgerMenu),r=ie(),c=s&&n===null,u=n!==null&&!s,d=c||u;return y.useEffect(()=>{const p=()=>{window.innerWidth>1280?r(ge(!1)):window.innerWidth<1280&&r(V(null))};return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Cj,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${d?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${c?"top-[89px] h-[calc(100%-89px)]":""} ${u?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{r(s?ge(!s):V(null))}}),e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx("main",{className:"flex w-full flex-1 flex-col",children:t||e.jsx(ct,{})}),e.jsx(Sj,{})]})},Y6=({children:t})=>{const{title:s,sideMenu:n,activeItems:r}=b(h=>h.sideMenu),{hamburgerOpen:c,openNavMenu:u}=b(h=>h.hamburgerMenu),d=ie(),p=c&&u===null,x=u!==null&&!c,g=p||x;return y.useEffect(()=>{const h=()=>{window.innerWidth>1280?d(ge(!1)):window.innerWidth<1280&&d(V(null))};return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Cj,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${g?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${p?"top-[89px] h-[calc(100%-89px)]":""} ${x?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{d(c?ge(!c):V(null))}}),e.jsxs("div",{className:"relative min-h-[calc(100vh-162px)] bg-[#F4F4F4]",children:[e.jsxs("div",{className:"mx-auto flex max-w-[1170px]",children:[e.jsxs("aside",{className:"hidden w-[386px] flex-col p-[24px] xl:flex",children:[e.jsx("span",{className:"mb-[59px] leading-[150%] font-[18px] font-bold text-(--color-primary-dark-blue)",children:s}),e.jsx(Wl,{menu:n,activeItems:r})]}),e.jsxs("main",{className:"min-h-[calc(100vh-162px)] w-full bg-(--color-white) px-[24px] py-[32px] xl:w-[calc(100%-386px)] xl:pb-[90px]",children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),t||e.jsx(ct,{})]})]}),e.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-[calc(100vw/2-585px)] bg-(--color-white)"})]}),e.jsx(Sj,{})]})};function Hc(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=Hc(n.children,s);if(r!==null)return r}}return null}const G6=async()=>{const{style:t}=k.getState().config,{sitemap:s}=k.getState().sitemap,n=Hc(s,"/fooldal/rolunk"),r=Hc(s,"/fooldal/banner"),c=Hc(s,"/fooldal/szolgaltatasok");return k.dispatch(be("Főoldal")),await $e(),await Ct(),await pt(),await Yt(),{isahgy:t==="ahgy",staticSections:{fooldalRolunk:n?await de(n.id):null,fooldalBanner:r?await de(r.
78id):null,fooldalSzolgaltatasok:c?await de(c.id):null}}},q6=()=>{const{article:t}=b(c=>c.article),{style:s}=b(c=>c.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(c=>({...c,href:`/hirek/kategoriak/${c.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},n,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsxs("div",{className:"flex w-full flex-col items-center",children:[e.jsx("div",{className:"mb-[24px] w-full text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),(t==null?void 0:t.image)&&e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px] w-full",src:t==null?void 0:t.image}),e.jsx("div",{className:`article article--${s} w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})]})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},Hl=({categories:t,style:s})=>e.jsx("div",{className:"flex flex-col gap-[48px]",children:t.map(n=>e.jsxs("div",{children:[e.jsxs("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:[e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:n.name}),e.jsxs(_,{className:`flex items-center gap-[6px] link--${s}`,to:`/hirek/kategoriak/${n.id}`,children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold",children:"További hírek"}),e.jsx(Ja,{className:"fill-current"})]})]}),e.jsx("div",{className:"w-full",children:e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:n.articles&&n.articles.slice(0,6).map(r=>e.jsx(_,{to:`/hirek/${r.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:r})},r.id))})})]}))}),zj=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Tj=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl(!0)),await $e(x.id,6,k.getState().article.page+1))},[x,u,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},{title:x==null?void 0:x.name}]}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Rj=({title:t,categoryId:s})=>{const n=_e(),{redirect:r}=oe();y.useEffect(()=>{r===!0&&n("/esemenyek")},[]);const c=Be(),{style:u}=b(g=>g.config),{events:d,categories:p}=b(g=>g.event),x=p.find(g=>s?s==g.id:g.id==c.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:t?void 0:[{title:"Események",href:"/esemenyek"},{title:x==null?void 0:x.name,href:`/esemenyek/kategoriak/${x==null?void 0:x.id}`}]}),e.jsx("h1",{className:`title--${u} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:d&&d.map(g=>e.jsx(_,{to:`/esemenyek/${g.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${u}`,children:e.jsx(Nt,{event:{...g,size:"M"}})},g.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||d.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},dl=({categories:t,style:s})=>e.jsx("div",{className:"flex flex-col gap-[48px]",children:t.map(n=>e.jsxs("div",{className:"",children:[e.jsxs("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:[e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:n.name}),e.jsxs(_,{className:`break-word inline-flex max-w-[45%] flex-[0_1_auto] items-center justify-end gap-[6px] text-right link--${s}`,to:`/esemenyek/kategoriak/${n.id}`,children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold",children:"További események"}),e.jsx(Ja,{className:"fill-current"})]})]}),e.jsx("div",{className:"w-full",children:e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:n.events&&n.events.slice(0,6).map(r=>e.jsx(_,{to:`/esemenyek/${r.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${s}`,children:e.jsx(Nt,{event:{...r,size:"M"}})},r.id))})})]}))}),V6=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},pl=({articles:t,style:s,type:n,title:r="Híreink",link:c="/hirek",linkText:u="Összes hírünk"})=>{if(n==="A")return e.jsxs("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:[e.jsxs("div",{className:"mb-[28px] flex justify-between border-b-1 border-[#E4E5E7]",children:[e.jsx("h2",{className:`title--news--${s} font-secondary-bold py-[7.5px] text-[24px] leading-[120%]`,children:r}),e.jsxs(_,{to:c,className:`flex items-center gap-[6px] link--${s}`,children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold",children:u}),e.jsx(Ja,{className:"fill-current"})]})]}),e.jsxs("div",{className:"flex items-start gap-[24px]",children:[e.jsx("div",{className:"flex w-full flex-wrap gap-[24px] xl:w-[calc(75%-12px)]",children:t.slice(0,6).map(d=>e.jsx(_,{to:`/hirek/${d.id}`,className:"w-full md:w-[calc(33.333%-16px)]",children:e.jsx(Xe,{article:d,size:"m",borderColor:"var(--color-primary-dark-blue)"})},d.id))}),e.jsx("div",{className:"hidden w-[calc(25%-12px)] flex-wrap gap-[24px] xl:flex",children:t.slice(6,10).map(d=>e.jsx(Xe,{article:d,size:"s",className:"w-[calc(100%-12px)]",borderColor:"var(--color-primary-dark-blue)"}))})]})]});if(n==="B")return e.jsxs("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("h2",{className:`font-secondary-bold title--news--${s} py-[7.5px] text-[24px] leading-[120%]`,children:r}),e.jsxs(_,{to:c,className:`flex items-center gap-[6px] link--${s}`,children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold",children:u}),e.jsx(Ja,{className:"fill-current"})]})]}),e.jsx(De,{className:"mb-[28px]"}),e.jsx("div",{className:"flex items-start gap-[24px]",children:e.jsx("div",{className:"flex w-full flex-wrap gap-[24px]",children:t.slice(0,6).map(d=>e.jsx(_,{to:`/hirek/${d.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:d,size:"m",borderColor:"var(--color-primary-dark-blue)"})},d.id))})})]})},K6=()=>{const t=oe(),{articles:s}=b(p=>p.article),{style:n}=b(p=>p.config),{categories:r,events:c}=b(p=>p.event),u=c.filter(p=>p.eventCategories.some(x=>x.name==="Rendezvények")),d=c.filter(p=>p.eventCategories.some(x=>x.name==="Időszaki"));return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),!t.isahgy&&t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})}),t.isahgy&&d&&d.length>0&&e.jsx(Kl,{events:c,style:n,title:"Időszaki"}),u&&u.length>0&&e.jsx(Kl,{events:u,style:n}),s.length>0&&e.jsx(pl,{articles:s,style:n,type:"B",title:t.isahgy?"Hírek":"Híreink"}),t.isahgy&&t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})}),t.staticSections.fooldalSzolgaltatasok&&e.jsx("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalSzolgaltatasok})}),t.staticSections.fooldalBanner&&e.jsx("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col md:w-[720px] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalBanner})})]})},Z6=()=>{const{nav:t}=oe();if(t===null)return e.jsx(Me,{children:e.jsx(Bt,{})});if(t.item==="event")return e.jsx(Me,{children:e.jsx(Tt,{})});const{item:s,parent:n}=t;switch(s.type){case"static":return e.jsx(Me,{children:e.jsx(Ma,{parent:n})});case"events":return e.jsx(Me,{children:e.jsx(V6,{})});case"eventcategories":return e.jsx(Me,{children:e.jsx(Rj,{title:t.item.title,categoryId:s.params.categoryId})});case"documents":return e.jsx(Me,{children:e.jsx(Da,{title:t.item.title,categoryId:void 0,path:s.path})});case"documentcategories":return e.jsx(Me,{children:e.jsx(Qe,{title:t.item.title,categoryId:s.params.categoryId})});case"navonly":return e.jsx(Me,{children:e.jsx($a,{title:t.item.title,children:s.children})});case"contacts":return e.jsx(Me,{children:e.jsx(Oa,{})});case"form":return e.jsx(Me,{children:e.jsx(Ha,{title:t.item.title,formId:s.params.formId})});case"faq":case"faqcategories":return e.jsx(Me,{children:e.jsx(Aa,{})});case"issues":return e.jsx(Me,{children:e.jsx(ma,{})});case"regulations":return e.jsx(Me,{children:e.jsx(pa,{})});case"decisions":return e.jsx(Me,{children:e.jsx(fa,{})});case"announcements":return e.jsx(Me,{children:e.jsx(ha,{})});case"representatives":case"vicemayorsonly":return e.jsx(Me,{children:e.jsx(Ua,{title:"Képviselők",withoutViceMayors:s.type==="vicemayorsonly"})});case"representativesonly":return e.jsx(Me,{children:e.jsx(Pa,{title:"Alpolgármesterek"})});case"newscategories":return e.jsx(Me,{children:e.jsx(Tj,{title:t.item.title,categoryId:t.
78item.params.categoryId})});case"organisation_contacts":return e.jsx(Me,{children:e.jsx(La,{title:t.item.title})});case"card_acceptors":return e.jsx(Me,{children:e.jsx(Ba,{title:t.item.title})});case"news":return e.jsx(Me,{children:e.jsx(zj,{title:t.item.title})});case"smartmaptypes":return e.jsx(Me,{children:e.jsx(Ia,{title:t.item.title,typeId:t.item.params.typeId})})}return e.jsx(Me,{children:e.jsx(Bt,{})})},X6=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(K6,{}),loader:G6,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(zj,{}),loader:Et,path:"hirek"},{element:e.jsx(q6,{}),loader:at,path:"hirek/:id"},{element:e.jsx(Tj,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Rj,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(Me,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(Y6,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Z6,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],Aj=()=>{const{newsletterSubscribe:t,logoImage:s,style:n,footerText:r,footerAddresses:c,footerEmails:u,footerPhones:d,footerNav:p}=b(v=>v.config),x=["koo","lo","so","szo","ubi"].includes(n);let g,h;switch(n){case"koo":g="/style/koo/koo_footer_logo.svg",h="/svgs/footer_dark_blue_image.svg";break;case"so":g="/style/so/so_footer_logo.svg",h="/svgs/footer_light_blue_image.svg";break;case"szo":g="/style/szo/szo_footer_logo.svg",h="/svgs/footer_green_image.svg";break;case"ubi":g=s,h="/svgs/footer_yellow_image.svg";break;case"eko":g=s,h="/svgs/footer_green_image.svg";break;case"dko":g=s,h="/svgs/footer_green_image.svg";break;case"go":g=s,h="/svgs/footer_green_image.svg";break;case"lo":g=s,h="/svgs/footer_green_image.svg";break;default:g=s,h="/svgs/footer_dark_blue_image.svg";break}return e.jsx(e.Fragment,{children:e.jsxs("div",{className:`footer footer--${n} relative ${t?"mt-[200px] md:mt-[100px] xl:mt-[48px]":"mt-0"} h-full w-full`,children:[e.jsx("div",{className:"absolute inset-0 mx-auto h-full w-full max-w-[1170px] overflow-hidden py-3",children:e.jsx("img",{src:h,alt:"Háttér",className:"lgtablet:object-right h-full w-full object-contain object-center"})}),e.jsx("div",{className:"flex flex-row justify-between gap-12"}),e.jsxs("div",{className:`relative z-20 mx-auto w-full max-w-[1170px] px-[16px] ${t?"lgtablet:pt-[84px] pt-[128px]":"pt-[26px]"} xl:px-[0]`,children:[e.jsxs("div",{className:"flex w-full flex-col justify-center gap-[45px] text-center md:flex-row md:text-left xl:justify-start",children:[e.jsxs("div",{className:"grid w-[100%] auto-rows-min grid-cols-1 gap-3 text-start md:w-[318px]",children:[e.jsx("img",{src:g,alt:"Újbuda logó",className:"mx-auto md:mx-0",style:x?{}:{filter:"brightness(0) invert(1)"}}),e.jsx("p",{className:"row-start-3 text-xs",children:r}),c.length>0&&e.jsxs("div",{className:"row-start-4 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/address.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:c.map(v=>e.jsx("p",{children:v}))})]}),u.length>0&&e.jsxs("div",{className:"row-start-5 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 min-w-8 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/email.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:u.map(v=>e.jsxs("p",{children:[v.description&&v.description.trim().length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:v.description}),e.jsx("br",{})]}),e.jsx("a",{href:`mailto:${v.email}`,className:"underline",children:v.email})]}))})]}),d.length>0&&e.jsxs("div",{className:"row-start-6 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs
78/phone.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"flex flex-col gap-3",children:d.map(v=>e.jsxs("div",{className:"text-[12px] leading-[150%]",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase",children:v.name}),e.jsx("p",{className:"leading-[110%] font-bold",children:v.phone})]}))})]})]}),e.jsx("div",{className:"flex flex-wrap gap-x-[45px] gap-y-[42px] md:mt-[63px]",children:p.map(v=>e.jsxs("div",{className:"flex w-[100%] flex-col gap-3 text-[12px] md:w-[318px] xl:w-[239px]",children:[e.jsx("h2",{className:"leading-[150%] font-bold uppercase",children:v.title}),v.children.map(N=>e.jsx(_,{target:N.external?"_blank":"",to:N.external?N.external_link:N.path,className:"row-start-4",children:N.title}))]}))})]}),e.jsx("div",{className:"mt-6 h-[1px] w-full bg-white"}),e.jsx("div",{className:"lgtablet:flex-row tablet:px-0 flex flex-col-reverse items-center justify-center gap-4 px-5 py-6",children:e.jsx("p",{className:"text-[10px] font-bold text-white",children:"Újbuda Önkormányzat - Minden jog fenntartva"})})]}),e.jsx(Jl,{type:"newsletter"}),t&&e.jsx(es,{})]})})},Lj=()=>{var u;const t=_e(),{openNavMenu:s}=b(d=>d.hamburgerMenu),n=b(d=>d.config),r=ie(),c=s!==null?((u=n.mainNav.find(d=>d.id===s))==null?void 0:u.children)||[]:[];return e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"navbar relative z-200 flex flex-col justify-center gap-4 bg-white px-6 py-3 shadow-xl xl:pb-3",children:[e.jsxs("div",{className:"mx-auto hidden w-full max-w-[1170px] flex-col xl:flex",children:[e.jsxs("div",{className:"hidden flex-row justify-between xl:flex",children:[e.jsx("div",{className:"flex flex-row items-center gap-4",children:n.highlightedInformations.map((d,p)=>e.jsxs(e.Fragment,{children:[e.jsx(_,{to:d.path,className:"text-[12px] leading-[150%]",children:d.title}),p<n.highlightedInformations.length-1&&e.jsx("div",{className:"divider"})]}))}),e.jsxs("div",{className:"ml-auto flex flex-row gap-6",children:[e.jsx("div",{className:"flex flex-row items-center gap-6 text-[12px] leading-[150%]",children:n.topNav.map(d=>e.jsx(_,{target:d.external?"_blank":"",to:d.external?d.external_link:d.path,children:d.title}))}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider mr-[25px]"})]}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[n.socialLinkFacebook&&e.jsx("a",{target:"_blank",href:n.socialLinkFacebook,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/facebook_icon.svg",alt:"Facebook"})}),n.socialLinkTiktok&&e.jsx("a",{target:"_blank",href:n.socialLinkTiktok,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n.socialLinkInstagram&&e.jsx("a",{target:"_blank",href:n.socialLinkInstagram,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),n.socialLinkYoutube&&e.jsx("a",{target:"_blank",href:n.socialLinkYoutube,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]})]}),(n.highlightedInformations.length>0||n.topNav.length>0||n.socialLinkFacebook||n.socialLinkTikTok||n.socialLinkInstagram||n.socialLinkYoutube)&&e.jsx("div",{className:"h-[12px]"}),e.jsxs("div",{className:"flex h-[49px] flex-row items-center gap-6",children:[e.jsx(_,{to:"/",className:"mr-auto shrink-0",onClick:()=>r(V(null)),children:e.jsx("img",{src:n.logoImage,alt:`${n.title} logó`,className:"max-h-[49px] max-w-[205px]"})}),e.jsx("ul",{className:"hidden h-full w-full flex-row items-center justify-start gap-[24px] overflow-x-hidden pl-[5px] whitespace-nowrap xl:flex",children:n.mainNav.map((d,p)=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>{d.children.length>0?r(V(s===d.id?null:d.id)):(d.external?window.open(d.external_link):t(d.path),r(V(null)))},className:"flex cursor-pointer flex-row items-center gap-1 text-[12px] font-bold",children:[d.title,d.children.length>0&&e.jsx("img",{src:`/svgs/${`${n.style==="koo"||n.style==="ao"?"green":"blue"}`}_dropdown_icon.svg`,alt:"Nyíl"})]})},p))}),e.jsx(_,{to:"/kereses",onClick:()=>r(V(null)),children:e.jsx("div",{className:"search-button bg-primary-dark-blue flex h-[48px] w-[48px] curs
78or-pointer items-center justify-center rounded-[4px] text-white",children:e.jsx("img",{src:"/svgs/search_icon.svg",alt:"Keresés"})})}),e.jsx(_,{to:"https://ujbuda.hu",target:"_blank",className:"hidden h-[49px] w-[191px] xl:flex",children:e.jsx("div",{className:"cta-button bg-primary-dark-blue flex w-full cursor-pointer items-center rounded-[4px] px-6 text-[12px] font-bold whitespace-nowrap text-white",children:"Újbuda Önkormányzat"})})]})]}),e.jsx(Xl,{})]}),s&&e.jsx(Zl,{items:c,onClose:()=>r(V(null))})]})},Ut=({children:t})=>{const{hamburgerOpen:s,openNavMenu:n}=b(x=>x.hamburgerMenu),{style:r}=b(x=>x.config),c=ie(),u=s&&n===null,d=n!==null&&!s,p=u||d;return y.useEffect(()=>{const x=()=>{window.innerWidth>1280?c(ge(!1)):window.innerWidth<1280&&c(V(null))};return window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Lj,{}),r==="dko"?e.jsx("div",{className:"pointer-events-none absolute inset-0 z-[-1] hidden flex-col gap-y-48 overflow-hidden py-32 xl:flex",children:[...Array(10)].map((x,g)=>e.jsx("div",{className:`flex w-full ${g%2===0?"justify-start":"justify-end"}`,children:e.jsx("img",{src:`/style/${r}/${g%2===0?"lefttt":"righttt"}.png`,alt:"","aria-hidden":"true",className:`h-fit w-fit max-w-[5%] object-contain ${g%2===0?`left--${r} left-0`:`right--${r} right-0`} `})},g))}):e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{backgroundImage:`url('/style/${r}/left.svg')`},className:`hidden xl:flex left--${r} absolute bottom-0 left-0 z-[-1] bg-top-left bg-no-repeat`}),e.jsx("div",{style:{backgroundImage:`url('/style/${r}/right.svg')`},className:`hidden xl:flex right--${r} absolute right-0 bottom-0 z-[-1] bg-top-left bg-no-repeat`})]}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${p?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${u?"top-[89px] h-[calc(100%-89px)]":""} ${d?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{c(s?ge(!s):V(null))}}),e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx("main",{className:"flex w-full flex-1 flex-col",children:t||e.jsx(ct,{})}),e.jsx(Aj,{})]})},Mj=({children:t})=>{const{title:s,sideMenu:n,activeItems:r}=b(h=>h.sideMenu),{hamburgerOpen:c,openNavMenu:u}=b(h=>h.hamburgerMenu),d=ie(),p=c&&u===null,x=u!==null&&!c,g=p||x;return y.useEffect(()=>{const h=()=>{window.innerWidth>1280?d(ge(!1)):window.innerWidth<1280&&d(V(null))};return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Lj,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${g?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${p?"top-[89px] h-[calc(100%-89px)]":""} ${x?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{d(c?ge(!c):V(null))}}),e.jsxs("div",{className:"relative min-h-[calc(100vh-162px)] bg-[#F4F4F4]",children:[e.jsxs("div",{className:"mx-auto flex max-w-[1170px]",children:[e.jsxs("aside",{className:"hidden w-[386px] flex-col p-[24px] xl:flex",children:[e.jsx("span",{className:"mb-[59px] leading-[150%] font-[18px] font-bold text-(--color-primary-dark-blue)",children:s}),e.jsx(Wl,{menu:n,activeItems:r})]}),e.jsxs("main",{className:"min-h-[calc(100vh-162px)] w-full bg-(--color-white) px-[24px] py-[32px] xl:w-[calc(100%-386px)] xl:pb-[90px]",children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),t||e.jsx(ct,{})]})]}),e.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-[calc(100vw/2-585px)] bg-(--color-white)"})]}),e.jsx(Aj,{})]})},Q6=t=>{let s="";for(const n of Object.keys(t))t[n]!==void 0&&(s=`${s}${s.length===0?"?":"&"}${n}=${t[n]}`);return s},vl=async(t=void 0,s=void 0,n=void 0)=>{const c=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/galleries${Q6({categoryId:t,limit:s,from:n})}`,{headers:{Domain:location.hostname}})).json();k.dispatch(T0({galleries:c}))},J6={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_ALL_EVENTS_CATEGORY_ID:"29",VITE_AO_VIDEO_GALLER
78IES_CATEGORY_ID:"39",VITE_API_ENDPOINT:"https://api.ujbuda.hu",VITE_CARD_ACCEPTING_PLACES_CATEGORY_ID:"6",VITE_DKO_VIDEO_GALLERIES_CATEGORY_ID:"8",VITE_EKO_VIDEO_GALLERIES_CATEGORY_ID:"34",VITE_GO_VIDEO_GALLERIES_CATEGORY_ID:"7",VITE_IFJUSAGUGY_URL:"https://ifjusagugy.ujbuda.hu",VITE_KOO_VIDEO_GALLERIES_CATEGORY_ID:"35",VITE_KOZPONT_URL:"https://kozpont.ujbuda.hu",VITE_KOZPONT_VIDEO_GALLERIES_CATEGORY_ID:"70",VITE_LO_VIDEO_GALLERIES_CATEGORY_ID:"36",VITE_MEDIA11_URL:"https://media11.ujbuda.hu",VITE_NEW_DESIGN:"true",VITE_PARKOLAS_CTA_URL:"https://ugyfelablak.ujbuda.hu/login",VITE_SO_VIDEO_GALLERIES_CATEGORY_ID:"37",VITE_SPORT_CLUBS_CATEGORY_ID:"5",VITE_SPORT_URL:"https://sport.ujbuda.hu",VITE_SZO_VIDEO_GALLERIES_CATEGORY_ID:"38",VITE_UBI_MENUS_CATEGORY_ID:"25",VITE_UBI_VIDEO_GALLERIES_CATEGORY_ID:"40",VITE_UJBUDAONLINE_URL:"https://ujbudaonline.hu/",VITE_UJBUDA_DOCUMENT_FORMS_CATEGORY_ID:"7",VITE_UJBUDA_TV_CATEGORY_ID:"11",VITE_UJBUDA_URL:"https://ujbuda.hu",VITE_UJBUDA_VIDEO_GALLERIES_CATEGORY_ID:"51"};function sn(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=sn(n.children,s);if(r!==null)return r}}return null}const W6=async()=>{const{sitemap:t}=k.getState().sitemap,{style:s}=k.getState().config,n=sn(t,"/fooldal/rolunk"),r=sn(t,"/fooldal/idezet"),c=sn(t,"/fooldal/felso-banner"),u=sn(t,"/fooldal/banner"),d=sn(t,"/fooldal/hasznos-informaciok"),p=sn(t,"/fooldal/palyazatok"),x=sn(t,"/fooldal/alapitvanyaink");k.dispatch(be("Főoldal"));const g=J6[`VITE_${s.toUpperCase()}_VIDEO_GALLERIES_CATEGORY_ID`];return g!==void 0&&await cl(g),await $e(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalRolunk:n?await de(n.id):null,fooldalIdezet:r?await de(r.id):null,fooldalFelsoBanner:c?await de(c.id):null,fooldalBanner:u?await de(u.id):null,fooldalHasznosInformaciok:d?await de(d.id):null,fooldalPalyazatok:p?await de(p.id):null,fooldalAlapitvanyaink:x?await de(x.id):null}}},e3={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_ALL_EVENTS_CATEGORY_ID:"29",VITE_AO_VIDEO_GALLERIES_CATEGORY_ID:"39",VITE_API_ENDPOINT:"https://api.ujbuda.hu",VITE_CARD_ACCEPTING_PLACES_CATEGORY_ID:"6",VITE_DKO_VIDEO_GALLERIES_CATEGORY_ID:"8",VITE_EKO_VIDEO_GALLERIES_CATEGORY_ID:"34",VITE_GO_VIDEO_GALLERIES_CATEGORY_ID:"7",VITE_IFJUSAGUGY_URL:"https://ifjusagugy.ujbuda.hu",VITE_KOO_VIDEO_GALLERIES_CATEGORY_ID:"35",VITE_KOZPONT_URL:"https://kozpont.ujbuda.hu",VITE_KOZPONT_VIDEO_GALLERIES_CATEGORY_ID:"70",VITE_LO_VIDEO_GALLERIES_CATEGORY_ID:"36",VITE_MEDIA11_URL:"https://media11.ujbuda.hu",VITE_NEW_DESIGN:"true",VITE_PARKOLAS_CTA_URL:"https://ugyfelablak.ujbuda.hu/login",VITE_SO_VIDEO_GALLERIES_CATEGORY_ID:"37",VITE_SPORT_CLUBS_CATEGORY_ID:"5",VITE_SPORT_URL:"https://sport.ujbuda.hu",VITE_SZO_VIDEO_GALLERIES_CATEGORY_ID:"38",VITE_UBI_MENUS_CATEGORY_ID:"25",VITE_UBI_VIDEO_GALLERIES_CATEGORY_ID:"40",VITE_UJBUDAONLINE_URL:"https://ujbudaonline.hu/",VITE_UJBUDA_DOCUMENT_FORMS_CATEGORY_ID:"7",VITE_UJBUDA_TV_CATEGORY_ID:"11",VITE_UJBUDA_URL:"https://ujbuda.hu",VITE_UJBUDA_VIDEO_GALLERIES_CATEGORY_ID:"51"},Yi=async()=>{const{style:t}=k.getState().config;k.dispatch(be("Videógaléria")),await cl(e3[`VITE_${t.toUpperCase()}_VIDEO_GALLERIES_CATEGORY_ID`])},Vn=async()=>{k.dispatch(be("Galériák")),await vl()},Dj=async(t,s=1)=>{const r=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/galleries/${t}?page=${s}&limit=12`,{headers:{Domain:location.hostname}})).json();return k.dispatch(R0({...r,page:s})),r},Kn=async t=>{const s=await Dj(t.params.id);k.dispatch(be(s.gallery.name))},ad=()=>{const{article:t}=b(u=>u.article),{style:s}=b(u=>u.config),n=t?t.articleCategories.find(u=>u.id=="7")!==void 0:!1,r=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},c=t==null?void 0:t.articleCategories.map(u=>({...u,href:`/hirek/kategoriak/${u.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[48px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:n?[{title:"Videógaléria",href:"/videogaleria"}
78,{title:t==null?void 0:t.title}]:[{title:"Hírek",href:"/hirek"},r,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:c,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsxs("div",{className:"flex w-full flex-col items-center",children:[e.jsx("div",{className:"mb-[24px] w-full text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),(t==null?void 0:t.image)&&e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px] w-full",src:t==null?void 0:t.image}),e.jsx("div",{className:`article article--${s} w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})]})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},$m=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Om=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl(!0)),await $e(x.id,6,k.getState().article.page+1))},[x,u,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},{title:x==null?void 0:x.name}]}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Hm=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Um=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},$j=({gallery:t,borderColor:s,className:n})=>{var r;return e.jsxs("article",{className:`border-b pb-[16px] ${n||""}`,style:{borderColor:s||"var(--color-mid-gray)"},children:[e.jsx("div",{className:"relative mb-[16px] overflow-hidden rounded-[4px]",children:e.jsx(ua,{alt:t.name,className:"aspect-[16/9] w-full object-cover object-center",src:(r=t.image)==null?void 0:r.url})}),e.jsx("div",{className:"font-secondary-bold line-clamp-2 h-[48px] text-[16px] leading-[150%] overflow-ellipsis text-(--color-black) text-(--color-primary-dark-blue)",children:t.name})]})},Gi=({galleries:t,style:s})=>e.jsxs("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:[e.jsxs("div",{className:"mb-[28px] flex justify-between border-b-1 border-b-[#E4E5E7]",children:[e.jsx("h2",{className:`font-secondary-bold title--galleries--${s} py-[7.5px] text-[24px] leading-[120%]`,children:"Képgalériák"}),e.jsxs(_,{to:"/galeriak",className:`break-word inline-flex max-w-[45%] flex-[0_1_auto] items-center justify-end gap-[6px] text-right link--${s}`,children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold",children:"Tovább az összes galériához"}),e.jsx(Ja,{className:"fill-current"})]})]}),e.jsx("div",{className:"flex items-start gap-[24px]",children:e.jsx("div",{className:"flex w-full flex-wrap gap-[24px]",children:t.slice(0,4).map(n=>e.jsx(_,{to:`/galeriak/${n.id}`,className:"w-full md:w-[calc(25%-18px)]",children:e.jsx($j,{gallery:n})},n.id))})})]}),t3=()=>{const t=oe(),{articles:s,videoGalleries:n}=b(u=>u.article),{style:r}=b(u=>u.config),{galleries:c}=b(u=>u.gallery);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})}),t.staticSections.fooldalIdezet&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalIdezet})}),t.staticSections.fooldalFelsoBanner&&e.jsx("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col md:w-[720px] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalFelsoBanner})}),s.length>0&&e.jsx(pl,{articles:s,style:r,type:"B"}),t.staticSections.fooldalHasznosInformaciok&&e.jsx("div",{className:"hasznos-informaciok mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalHasznosInformaciok})}),c.length>0&&e.jsx(Gi,{galleries:c,style:r}),t.staticSections.fooldalBanner&&e.jsx("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col md:w-[720px] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalBanner})}),r!=="dko"&&n.length>0&&e.jsx(Dm,{style:r,videoGalleries:n}),t.staticSections.fooldalPalyazatok&&e.jsx("div",{className:"palyazatok mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalPalyazatok})}),t.staticSections.fooldalAlapitvanyaink&&e.jsx("div",{className:"palyazatok mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalAlapitvanyaink})})]})},Oj=()=>{const{nav:t}=oe();if(t===null)return e.jsx(Ut,{children:e.jsx(Bt,{})});const{item:s,parent:n}=t;switch(s.type){case"static":return e.jsx(Ut,{children:e.jsx(Ma,{parent:n})});case"events":return e.jsx(Ut,{children:e.jsx(Um,{})});case"eventcategories":return e.jsx(Ut,{children:e.jsx(Hm,{categoryId:s.params.categoryId})});case"documents":return e.jsx(Ut,{children:e.jsx(Da,{title:t.item.title,categoryId:void 0,path:s.path})});case"documentcategories":return e.jsx(Ut,{children:e.jsx(Qe,{title:t.item.title,categoryId:s.params.categoryId})});case"navonly":return e.jsx(Ut,{children:e.jsx($a,{title:t.item.title,children:s.children})});case"contacts":return e.jsx(Ut,{children:e.jsx(Oa,{})});case"form":return e.jsx(Ut,{children:e.jsx(Ha,{title:t.item.title,formId:s.params.formId})});case"faq":case"faqcategories":return e.jsx(Ut,{children:e.jsx(Aa,{})});case"issues":return e.jsx(Ut,{children:e.jsx(ma,{})});case"regulations":return e.jsx(Ut,{children:e.jsx(pa,{})});case"decisions":return e.jsx(Ut,{children:e.jsx(fa,{})});case"announcements":return e.jsx(Ut,{children:e.jsx(ha,{})});case"representatives":case"vicemayorsonly":return e.jsx(Ut,{children:e.jsx(Ua,{title:"Képviselők",withoutViceMayors:s.type==="vicemayorsonly"})});case"representativesonly":return e.jsx(Ut,{children:e.jsx(Pa,{title:"Alpolgármesterek"})});case"newscategories":return e.jsx(Ut,{children:e.jsx(Om,{title:t.item.title,categoryId:t.
78item.params.categoryId})});case"organisation_contacts":return e.jsx(Ut,{children:e.jsx(La,{title:t.item.title})});case"card_acceptors":return e.jsx(Ut,{children:e.jsx(Ba,{title:t.item.title})});case"news":return e.jsx(Ut,{children:e.jsx($m,{title:t.item.title})});case"smartmaptypes":return e.jsx(Ut,{children:e.jsx(Ia,{title:t.item.title,typeId:t.item.params.typeId})})}return e.jsx(Ut,{children:e.jsx(Bt,{})})},Zn=()=>{const{style:t}=b(n=>n.config),{galleries:s}=b(n=>n.gallery);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Galériák"}]}),e.jsx("h1",{className:`title--${t} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Galériák"}),s.length>0&&e.jsx("div",{className:"mt-[24px] mb-[64px]",children:e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:s&&s.map(n=>e.jsx(_,{to:`/galeriak/${n.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx($j,{gallery:n})},n.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})}),s.length===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})};let Yu=!1;const Xn=()=>{const{id:t}=Be(),s=ie(),{style:n}=b(p=>p.config),{gallery:r,images:c,page:u}=b(p=>p.gallery),d=y.useCallback(async()=>{var x;const p=(x=document.querySelector(".lazy-loader"))==null?void 0:x.getBoundingClientRect();p&&p.top>0&&p.top<window.innerHeight&&k.getState().gallery.hasMoreItems===!0&&k.getState().gallery.inProgress===!1&&!Yu&&(Yu=!0,setTimeout(()=>Yu=!1,1e3),s(A0()),await Dj(t,u+1))},[t,u,s]);return y.useEffect(()=>(window.addEventListener("scroll",d),()=>{window.removeEventListener("scroll",d)}),[d]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Galériák",href:"/galeriak"},{title:r==null?void 0:r.name}]}),e.jsx("h1",{className:`title--${n} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:r==null?void 0:r.name}),e.jsx(hl,{images:c,imageAttribute:"url",multiLine:!0}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})},l3=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(t3,{}),loader:W6,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx($m,{}),loader:Et,path:"hirek"},{element:e.jsx(qn,{}),loader:Yi,path:"videogaleria"},{element:e.jsx(ad,{}),loader:at,path:"hirek/:id"},{element:e.jsx(ad,{}),loader:at,path:"videogaleria/:id"},{element:e.jsx(Zn,{}),loader:Vn,path:"galeriak"},{element:e.jsx(Xn,{}),loader:Kn,path:"galeriak/:id"},{element:e.jsx(Om,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Um,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(Hm,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(Ut,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(Mj,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Oj,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],Hj=()=>{const{logoImage:t,newsletterSubscribe:s,style:n,footerText:r,footerAddresses:c,footerEmails:u,footerPhones:d,footerNav:p}=b(x=>x.config);return e.jsx(e.Fragment,{children:e.jsxs("div",{className:`footer footer--${n} relative ${s?"mt-[200px] md:mt-[100px] xl:mt-[48px]":"mt-0"} h-full w-full`,children:[e.jsx("div",{className:"absolute inset-0 mx-auto h-full w-full max-w-[1170px] overflow-hidden py-3",children:e.jsx("img",{src:"/svgs/footer_dark_blue_image.svg",alt:"Háttér",className:"lgtablet:object-right h-full w-full object-contain object-center"})}),e.jsx("div",{className:"flex flex-row justify-between gap-12"}),e.jsxs("div",{className:`relative z-20 mx-auto w-full max-w-[1170px] px-[16px] ${s?"lgtablet:pt-[84px] pt-[128px]":"pt-[26px]"} xl:px-[0]`,children:[e.jsxs("div",{className:"flex w-full flex-col justify-center gap-[45px] text-center md:flex-row md:text-left xl:justify-start",children:[e.jsxs("div",{className:"grid w-[100%] auto-rows-min grid-cols-1 gap-3 text-start md:w-[318px]",children:[e.jsx("img",{src:t,alt:"Újbuda logó",className:"mx-auto md:mx-0"}),e.jsx("p",{className:"row-start-3 text-xs",children:r}),c.length>0&&e.jsxs("div",{className:"row-start-4 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs
78/address.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:c.map(x=>e.jsx("p",{children:x}))})]}),u.length>0&&e.jsxs("div",{className:"row-start-5 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 min-w-8 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/email.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:u.map(x=>e.jsxs("p",{children:[x.description&&x.description.trim().length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:x.description}),e.jsx("br",{})]}),e.jsx("a",{href:`mailto:${x.email}`,className:"underline",children:x.email})]}))})]}),d.length>0&&e.jsxs("div",{className:"row-start-6 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/phone.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"flex flex-col gap-3",children:d.map(x=>e.jsxs("div",{className:"text-[12px] leading-[150%]",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase",children:x.name}),e.jsx("p",{className:"leading-[110%] font-bold",children:x.phone})]}))})]})]}),e.jsx("div",{className:"flex flex-wrap gap-x-[45px] gap-y-[42px] md:mt-[63px]",children:p.map(x=>e.jsxs("div",{className:"flex w-[100%] flex-col gap-3 text-[12px] md:w-[318px] xl:w-[239px]",children:[e.jsx("h2",{className:"leading-[150%] font-bold uppercase",children:x.title}),x.children.map(g=>e.jsx(_,{target:g.external?"_blank":"",to:g.external?g.external_link:g.path,className:"row-start-4",children:g.title}))]}))})]}),e.jsx("div",{className:"mt-6 h-[1px] w-full bg-white"}),e.jsx("div",{className:"lgtablet:flex-row tablet:px-0 flex flex-col-reverse items-center justify-center gap-4 px-5 py-6",children:e.jsx("p",{className:"text-[10px] font-bold text-white",children:"Újbuda Önkormányzat - Minden jog fenntartva"})})]}),e.jsx(Jl,{type:"newsletter"}),s&&e.jsx(es,{})]})})},Uj=()=>{var u;const t=_e(),{openNavMenu:s}=b(d=>d.hamburgerMenu),n=b(d=>d.config),r=ie(),c=s!==null?((u=n.mainNav.find(d=>d.id===s))==null?void 0:u.children)||[]:[];return e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"navbar relative z-200 flex flex-col justify-center gap-4 bg-white px-6 py-3 shadow-xl xl:pb-3",children:[e.jsxs("div",{className:"mx-auto hidden w-full max-w-[1170px] flex-col xl:flex",children:[e.jsxs("div",{className:"hidden flex-row justify-between xl:flex",children:[e.jsx("div",{className:"flex flex-row items-center gap-4",children:n.highlightedInformations.map((d,p)=>e.jsxs(e.Fragment,{children:[e.jsx(_,{to:d.path,className:"text-[12px] leading-[150%]",children:d.title}),p<n.highlightedInformations.length-1&&e.jsx("div",{className:"divider"})]}))}),e.jsxs("div",{className:"ml-auto flex flex-row gap-6",children:[e.jsx("div",{className:"flex flex-row items-center gap-6 text-[12px] leading-[150%]",children:n.topNav.map(d=>e.jsx(_,{to:d.external?d.external_link:d.path,target:d.external?"_blank":"",children:d.title}))}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider mr-[25px]"})]}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[n.socialLinkFacebook&&e.jsx("a",{target:"_blank",href:n.socialLinkFacebook,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/facebook_icon.svg",alt:"Facebook"})}),n.socialLinkTiktok&&e.jsx("a",{target:"_blank",href:n.socialLinkTiktok,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n.socialLinkInstagram&&e.jsx("a",{target:"_blank",href:n.socialLinkInstagram,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),n.socialLinkYoutube&&e.jsx("a",{target:"_blank",href:n.socialLinkYoutube,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs
78/youtube_icon.svg",alt:"YouTube"})})]})]}),(n.highlightedInformations.length>0||n.topNav.length>0||n.socialLinkFacebook||n.socialLinkTikTok||n.socialLinkInstagram||n.socialLinkYoutube)&&e.jsx("div",{className:"h-[12px]"}),e.jsxs("div",{className:"flex h-[49px] flex-row items-center gap-6",children:[e.jsx(_,{to:"/",className:"mr-auto",onClick:()=>r(V(null)),children:e.jsx("img",{src:n.logoImage,alt:`${n.title} logó`,className:"max-h-[49px] max-w-[205px]"})}),e.jsx("ul",{className:"hidden h-full w-full flex-row items-center justify-start gap-[24px] overflow-x-hidden pl-[5px] whitespace-nowrap xl:flex",children:n.mainNav.map((d,p)=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>{d.children.length>0?r(V(s===d.id?null:d.id)):(d.external?window.open(d.external_link):t(d.path),r(V(null)))},className:"flex cursor-pointer flex-row items-center gap-1 text-[12px] font-bold",children:[d.title,d.children.length>0&&e.jsx("img",{src:"/svgs/green_dropdown_icon.svg",alt:"Nyíl"})]})},p))}),e.jsx(_,{to:"/kereses",onClick:()=>r(V(null)),children:e.jsx("div",{className:"search-button bg-primary-dark-blue flex h-[48px] w-[48px] cursor-pointer items-center justify-center rounded-[4px] text-white",children:e.jsx("img",{src:"/svgs/search_icon.svg",alt:"Keresés"})})}),e.jsx(_,{to:"https://ujbuda.hu",target:"_blank",className:"hidden h-[49px] w-[191px] xl:flex",children:e.jsx("div",{className:"cta-button bg-primary-dark-blue flex w-full cursor-pointer items-center rounded-[4px] px-6 text-[12px] font-bold whitespace-nowrap text-white",children:"Újbuda Önkormányzat"})})]})]}),e.jsx(Xl,{})]}),s&&e.jsx(Zl,{items:c,onClose:()=>r(V(null))})]})},Jt=({children:t})=>{const{hamburgerOpen:s,openNavMenu:n}=b(p=>p.hamburgerMenu),r=ie(),c=s&&n===null,u=n!==null&&!s,d=c||u;return y.useEffect(()=>{const p=()=>{window.innerWidth>1280?r(ge(!1)):window.innerWidth<1280&&r(V(null))};return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Uj,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${d?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${c?"top-[89px] h-[calc(100%-89px)]":""} ${u?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{r(s?ge(!s):V(null))}}),e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx("main",{className:"flex w-full flex-1 flex-col",children:t||e.jsx(ct,{})}),e.jsx(Hj,{})]})},a3=({children:t})=>{const{title:s,sideMenu:n,activeItems:r}=b(h=>h.sideMenu),{hamburgerOpen:c,openNavMenu:u}=b(h=>h.hamburgerMenu),d=ie(),p=c&&u===null,x=u!==null&&!c,g=p||x;return y.useEffect(()=>{const h=()=>{window.innerWidth>1280?d(ge(!1)):window.innerWidth<1280&&d(V(null))};return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Uj,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${g?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${p?"top-[89px] h-[calc(100%-89px)]":""} ${x?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{d(c?ge(!c):V(null))}}),e.jsxs("div",{className:"relative min-h-[calc(100vh-162px)] bg-[#F4F4F4]",children:[e.jsxs("div",{className:"mx-auto flex max-w-[1170px]",children:[e.jsxs("aside",{className:"hidden w-[386px] flex-col p-[24px] xl:flex",children:[e.jsx("span",{className:"mb-[59px] leading-[150%] font-[18px] font-bold text-(--color-primary-dark-blue)",children:s}),e.jsx(Wl,{menu:n,activeItems:r})]}),e.jsxs("main",{className:"min-h-[calc(100vh-162px)] w-full bg-(--color-white) px-[24px] py-[32px] xl:w-[calc(100%-386px)] xl:pb-[90px]",children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),t||e.jsx(ct,{})]})]}),e.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-[calc(100vw/2-585px)] bg-(--color-white)"})]}),e.jsx(Hj,{})]})};function Ui(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=Ui(n.children,s);if(r!==null)return r}}return null}const s3=async()=>{const{sitemap:t}=k.getState().sitemap,s=Ui(t,"/fooldal/linkek"),n=Ui(t,"/fooldal/kedvezmenykartya"),r=Ui(t,"/fooldal/banner"),c=Ui(t,"/fooldal/hasznos-informaciok"),u=Ui(t,"/fooldal/palyazatok");return k.dispatch(be("Főoldal")),await cl("7"),await $e(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalLinkek:s?await de(s.id):null,fooldalKedvezmenykartya:n?await de(n.id):null,fooldalBanner:r?await de(r.
78id):null,fooldalHasznosInformaciok:c?await de(c.id):null,fooldalPalyazatok:u?await de(u.id):null}}},n3=()=>{const{article:t}=b(c=>c.article),{style:s}=b(c=>c.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(c=>({...c,href:`/hirek/kategoriak/${c.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[48px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},n,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsxs("div",{className:"flex w-full flex-col items-center",children:[e.jsx("div",{className:"mb-[24px] w-full text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),(t==null?void 0:t.image)&&e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px] w-full",src:t==null?void 0:t.image}),e.jsx("div",{className:`article article--${s} w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})]})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},Pj=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Bj=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl(!0)),await $e(x.id,6,k.getState().article.page+1))},[u,x,k.getState().article.hasMore,k.getState().article.inProgress,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},{title:x==null?void 0:x.name}]}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Ij=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[28px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h3",{className:`subTitle--${c} font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]`,children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Fj=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},i3=()=>{const t=oe(),{articles:s}=b(u=>u.article),{style:n}=b(u=>u.config),{galleries:r}=b(u=>u.gallery),{events:c}=b(u=>u.event);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalLinkek&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalLinkek})}),s.length>0&&e.jsx(pl,{articles:s,style:n,type:"B"}),c&&c.length>0&&e.jsx(Kl,{events:c,style:n}),r.length>0&&e.jsx(Gi,{galleries:r,style:n}),t.staticSections.fooldalKedvezmenykartya&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalKedvezmenykartya})})]})},r3=()=>{const{nav:t}=oe();if(t===null)return e.jsx(Jt,{children:e.jsx(Bt,{})});const{item:s,parent:n}=t;switch(s.type){case"static":return e.jsx(Jt,{children:e.jsx(Ma,{parent:n})});case"events":return e.jsx(Jt,{children:e.jsx(Fj,{})});case"eventcategories":return e.jsx(Jt,{children:e.jsx(Ij,{categoryId:s.params.categoryId})});case"documents":return e.jsx(Jt,{children:e.jsx(Da,{title:t.item.title,categoryId:void 0,path:s.path})});case"documentcategories":return e.jsx(Jt,{children:e.jsx(Qe,{title:t.item.title,categoryId:s.params.categoryId})});case"navonly":return e.jsx(Jt,{children:e.jsx($a,{title:t.item.title,children:s.children})});case"contacts":return e.jsx(Jt,{children:e.jsx(Oa,{})});case"form":return e.jsx(Jt,{children:e.jsx(Ha,{title:t.item.title,formId:s.params.formId})});case"faq":case"faqcategories":return e.jsx(Jt,{children:e.jsx(Aa,{})});case"issues":return e.jsx(Jt,{children:e.jsx(ma,{})});case"regulations":return e.jsx(Jt,{children:e.jsx(pa,{})});case"decisions":return e.jsx(Jt,{children:e.jsx(fa,{})});case"announcements":return e.jsx(Jt,{children:e.jsx(ha,{})});case"representatives":case"vicemayorsonly":return e.jsx(Jt,{children:e.jsx(Ua,{title:"Képviselők",withoutViceMayors:s.type==="vicemayorsonly"})});case"representativesonly":return e.jsx(Jt,{children:e.jsx(Pa,{title:"Alpolgármesterek"})});case"news":return e.jsx(Jt,{children:e.jsx(Pj,{title:t.item.title})});case"smartmaptypes":return e.jsx(Jt,{children:e.jsx(Ia,{title:t.item.title,typeId:t.item.params.typeId})});case"newscategories":return e.jsx(Jt,{children:e.jsx(Bj,{title:t.item.title,categoryId:t.
78item.params.categoryId})});case"organisation_contacts":return e.jsx(Jt,{children:e.jsx(La,{title:t.item.title})});case"card_acceptors":return e.jsx(Jt,{children:e.jsx(Ba,{title:t.item.title})})}return e.jsx(Jt,{children:e.jsx(Bt,{})})},o3=()=>{const{place:t}=b(s=>s.cardAcceptingPlace);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Kedvezménykártya elfogadóhelyek",href:"/kedvezmenykartya-elfogadohelyek"},{title:t.name}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:t.name}),e.jsx(et,{className:"mb-[24px] md:mb-[48px]",tags:[{name:"Kedvezménykártya elfogadóhely"}]}),e.jsx("div",{className:"mb-[64px] text-[18px] leading-[150%] font-bold",children:t.maintitle}),e.jsx("div",{className:"mb-[64px] text-[18px] leading-[150%]",children:t.description}),e.jsxs("div",{className:"mb-[64px] flex flex-col gap-[16px]",children:[t.address&&e.jsxs("div",{className:"flex",children:[e.jsx("strong",{className:"flex w-[120px] font-bold",children:"Cím:"}),e.jsx("span",{children:t.address})]}),t.leader&&e.jsxs("div",{className:"flex",children:[e.jsx("strong",{className:"flex w-[120px] font-bold",children:"Ügyvezető:"}),e.jsx("span",{children:t.leader})]}),t.email&&e.jsxs("div",{className:"flex",children:[e.jsx("strong",{className:"flex w-[120px] font-bold",children:"E-mail cím:"}),e.jsx("span",{children:t.email})]}),t.phone&&e.jsxs("div",{className:"flex",children:[e.jsx("strong",{className:"flex w-[120px] font-bold",children:"Telefonszám:"}),e.jsx("span",{children:t.phone})]}),t.web&&e.jsxs("div",{className:"flex",children:[e.jsx("strong",{className:"flex w-[120px] font-bold",children:"Webes elérhetőség:"}),e.jsx("a",{className:"text-(--color-primary-dark-blue) underline",href:t.web,target:"_blank",children:t.web})]})]}),t.address&&e.jsx("div",{className:"mx-auto w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:e.jsx("div",{className:"aspect-[16/9] w-full",children:e.jsx("iframe",{className:"h-full w-full",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",src:`https://www.google.com/maps/embed/v1/place?key=AIzaSyC6LqzizI4MLcTUlT7fs4oC0rg9uNBlxqQ&q=${t.address}`})})})]})},c3=async()=>{k.dispatch(be("Kedvezménykártya elfogadóhelyek")),await Lm()},d3=async t=>{const n=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/smart-map/${t}`,{headers:{Domain:location.hostname}})).json();return k.dispatch(I0({place:n})),n},x3=async t=>{const s=await d3(t.params.id);k.dispatch(be(s.name))},u3=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(i3,{}),loader:s3,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(Pj,{}),loader:Et,path:"hirek"},{element:e.jsx(n3,{}),loader:at,path:"hirek/:id"},{element:e.jsx(Bj,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Fj,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(Ij,{}),loader:bt,path:"esemenyek/kategoriak/:id"},{element:e.jsx(Ba,{}),loader:c3,path:"kedvezmenykartya-elfogadohelyek"},{element:e.jsx(o3,{}),loader:x3,path:"kedvezmenykartya-elfogadohelyek/:id"}],element:e.jsx(Jt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(a3,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(r3,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],Yj=()=>{const{logoImage:t,newsletterSubscribe:s,style:n,footerText:r,footerAddresses:c,footerEmails:u,footerPhones:d,footerNav:p}=b(h=>h.config),x=[""].includes(n);let g;switch(n){case"smart11":g="/style/smart11/smart11_footer_logo.svg";break;case"ujbuda-sport":g="/style/ujbuda-sport/sport_footer_logo.svg";break;default:g=t;break}return e.jsx(e.Fragment,{children:e.jsxs("div",{className:`footer footer--${n} relative ${s?"mt-[200px] md:mt-[100px] xl:mt-[48px]":"mt-0"} relative h-full w-full`,children:[e.jsx("div",{className:"absolute inset-0 mx-auto h-full w-full max-w-[1170px] overflow-hidden py-3",children:e.jsx("img",{src:"/svgs
78/footer_dark_blue_image.svg",alt:"Háttér",className:"lgtablet:object-right h-full w-full object-contain object-center"})}),e.jsx("div",{className:"flex flex-row justify-between gap-12"}),e.jsxs("div",{className:`relative z-20 mx-auto w-full max-w-[1170px] px-[16px] ${s?"lgtablet:pt-[84px] pt-[128px]":"pt-[26px]"} xl:px-[0]`,children:[e.jsxs("div",{className:"flex w-full flex-col justify-center gap-[45px] text-center md:flex-row md:text-left xl:justify-start",children:[e.jsxs("div",{className:"grid w-[100%] auto-rows-min grid-cols-1 gap-3 text-start md:w-[318px]",children:[e.jsx("img",{src:g,alt:"Újbuda logó",className:"mx-auto md:mx-0",style:x?{}:{filter:"brightness(0) invert(1)"}}),e.jsx("p",{className:"row-start-3 text-xs",children:r}),c.length>0&&e.jsxs("div",{className:"row-start-4 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/address.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:c.map(h=>e.jsx("p",{children:h}))})]}),u.length>0&&e.jsxs("div",{className:"row-start-5 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 min-w-8 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/email.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:u.map(h=>e.jsxs("p",{children:[h.description&&h.description.trim().length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:h.description}),e.jsx("br",{})]}),e.jsx("a",{href:`mailto:${h.email}`,className:"underline",children:h.email})]}))})]}),d.length>0&&e.jsxs("div",{className:"row-start-6 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/phone.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"flex flex-col gap-3",children:d.map(h=>e.jsxs("div",{className:"text-[12px] leading-[150%]",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase",children:h.name}),e.jsx("p",{className:"leading-[110%] font-bold",children:h.phone})]}))})]})]}),e.jsx("div",{className:"flex flex-wrap gap-x-[45px] gap-y-[45px] md:mt-[63px]",children:p.map(h=>e.jsxs("div",{className:"flex w-[100%] flex-col gap-3 text-[12px] md:w-[318px] xl:w-[239px]",children:[e.jsx("h2",{className:"leading-[150%] font-bold uppercase",children:h.title}),h.children.map(v=>e.jsx(_,{target:v.external?"_blank":"",to:v.external?v.external_link:v.path,className:"row-start-4",children:v.title}))]}))})]}),e.jsx("div",{className:"mt-6 h-[1px] w-full bg-white"}),e.jsx("div",{className:"lgtablet:flex-row tablet:px-0 flex flex-col-reverse items-center justify-center gap-4 px-5 py-6",children:e.jsx("p",{className:"text-[10px] font-bold text-white",children:"Újbuda Önkormányzat - Minden jog fenntartva"})})]}),e.jsx(Jl,{type:"newsletter"}),s&&e.jsx(es,{})]})})},Gj=()=>{var u;const t=_e(),{openNavMenu:s}=b(d=>d.hamburgerMenu),n=b(d=>d.config),r=ie(),c=s!==null?((u=n.mainNav.find(d=>d.id===s))==null?void 0:u.children)||[]:[];return e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"navbar relative z-200 flex flex-col justify-center gap-4 bg-white px-6 py-3 shadow-xl xl:pb-3",children:[e.jsxs("div",{className:"mx-auto hidden w-full max-w-[1170px] flex-col xl:flex",children:[e.jsxs("div",{className:"hidden flex-row justify-between xl:flex",children:[e.jsx("div",{className:"flex flex-row items-center gap-4",children:n.highlightedInformations.map((d,p)=>e.jsxs(e.Fragment,{children:[e.jsx(_,{to:d.path,className:"text-[12px] leading-[150%]",children:d.title}),p<n.highlightedInformations.length-1&&e.jsx("div",{className:"divider"})]}))}),e.jsx("div",{className:"flex flex-row gap-6",children:e.jsx("div",{className:"flex flex-row items-center gap-6 text-[12px] leading-[150%]",children:n.topNav.map(d=>e.jsx(_,{target:d.external?"_blank":"",to:d.external?d.external_link:d.path,children:d.title}))})})]}),(n.highlightedInformations.length>0||n.topNav.length>0||n.socialLinkFacebook||n.socialLinkTikTok||n.socialLinkInstagram||n.socialLinkYoutube)&&e.jsx("div",{className:"h-[12px]"}),e.jsxs("div",{className:"flex h-[49px] flex-row items-center gap-6",children:[e.jsx(_,{to:"/",className:"mr-auto shrink-0",onClick:()=>r(V(null)),children:e.jsx("img",{src:n.logoImage,alt:`${n.title} logó`,className:"max-h-[49px] max-w-[205px]"})}),e.jsx("ul",{className:"hidden h-full w-full flex-row items-center justify-start gap-[24px] overflow-x-hidden pl-[5px] whitespace-nowrap xl:flex",children:n.mainNav.map((d,p)=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>{d.children.length>0?r(V(s===d.id?null:d.id)):(d.external?window.open(d.external_link):t(d.path),r(V(null)))},className:"flex cursor-pointer flex-row items-center gap-1 text-[12px] font-bold",children:[d.title,d.children.length>
780&&e.jsx("img",{src:"/svgs/green_dropdown_icon.svg",alt:"Nyíl"})]})},p))}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[n.socialLinkFacebook&&e.jsx("a",{target:"_blank",href:n.socialLinkFacebook,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/facebook_icon.svg",alt:"Facebook"})}),n.socialLinkTiktok&&e.jsx("a",{target:"_blank",href:n.socialLinkTiktok,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n.socialLinkInstagram&&e.jsx("a",{target:"_blank",href:n.socialLinkInstagram,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),n.socialLinkYoutube&&e.jsx("a",{target:"_blank",href:n.socialLinkYoutube,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider"}),e.jsx(_,{to:"/kereses",onClick:()=>r(V(null)),children:e.jsx("div",{className:`search-button search-button--${n.style} bg-primary-dark-blue flex h-[48px] w-[48px] cursor-pointer items-center justify-center rounded-[4px] text-white`,children:e.jsx("img",{src:"/svgs/search_icon.svg",alt:"Keresés"})})}),e.jsx(_,{to:"https://ujbuda.hu",target:"_blank",className:"hidden h-[49px] w-[191px] xl:flex",children:e.jsx("div",{className:`cta-button cta-button--${n.style} bg-primary-dark-blue flex w-full cursor-pointer items-center rounded-[4px] px-6 text-[12px] font-bold whitespace-nowrap text-white`,children:"Újbuda Önkormányzat"})})]})]}),e.jsx(Xl,{})]}),s&&e.jsx(Zl,{items:c,onClose:()=>r(V(null))})]})},vt=({children:t})=>{const{hamburgerOpen:s,openNavMenu:n}=b(p=>p.hamburgerMenu),r=ie(),c=s&&n===null,u=n!==null&&!s,d=c||u;return y.useEffect(()=>{const p=()=>{window.innerWidth>1280?r(ge(!1)):window.innerWidth<1280&&r(V(null))};return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Gj,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${d?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${c?"top-[89px] h-[calc(100%-89px)]":""} ${u?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{r(s?ge(!s):V(null))}}),e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx("main",{className:"flex w-full flex-1 flex-col",children:t||e.jsx(ct,{})}),e.jsx(Yj,{})]})},qi=({children:t})=>{const{title:s,sideMenu:n,activeItems:r}=b(h=>h.sideMenu),{hamburgerOpen:c,openNavMenu:u}=b(h=>h.hamburgerMenu),d=ie(),p=c&&u===null,x=u!==null&&!c,g=p||x;return y.useEffect(()=>{const h=()=>{window.innerWidth>1280?d(ge(!1)):window.innerWidth<1280&&d(V(null))};return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Gj,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${g?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${p?"top-[89px] h-[calc(100%-89px)]":""} ${x?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{d(c?ge(!c):V(null))}}),e.jsxs("div",{className:"relative min-h-[calc(100vh-162px)] bg-[#F4F4F4]",children:[e.jsxs("div",{className:"mx-auto flex max-w-[1170px]",children:[e.jsxs("aside",{className:"hidden w-[386px] flex-col p-[24px] xl:flex",children:[e.jsx("span",{className:"mb-[59px] leading-[150%] font-[18px] font-bold text-(--color-primary-dark-blue)",children:s}),e.jsx(Wl,{menu:n,activeItems:r})]}),e.jsxs("main",{className:"min-h-[calc(100vh-162px)] w-full bg-(--color-white) px-[24px] py-[32px] xl:w-[calc(100%-386px)] xl:pb-[90px]",children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),t||e.jsx(ct,{})]})]}),e.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-[calc(100vw/2-585px)] bg-(--color-white)"})]}),e.jsx(Yj,{})]})};function rm(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=rm(n.children,s);if(r!==null)return r}}return null}const m3=async()=>{const{sitemap:t}=k.getState().sitemap,s=rm(t,"/fooldal/rolunk"),n=rm(t,"/fooldal/uiacupprogramrol");return k.dispatch(be("Főoldal")),await cl("7"),await $e(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalRolunk:s?await de(s.id):null,fooldalUIACUPProgramrol:n?await de(n.id):null}}},Pn=()=>{const{article:t}=b(c=>c.article),{style:s}=b(c=>c.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(c=>({...c,href:`/hirek/kategoriak/${c.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"}
78,n,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsxs("div",{className:"flex w-full flex-col items-center",children:[e.jsx("div",{className:"mb-[24px] w-full text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),(t==null?void 0:t.image)&&e.jsx(ua,{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px] w-full",src:t==null?void 0:t.image}),e.jsx("div",{className:`article article--${s} w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})]})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},Qn=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Jn=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl(!0)),await $e(x.id,6,k.getState().article.page+1))},[x,u,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},{title:x==null?void 0:x.name}]}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},p3=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},f3=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},h3=()=>{const t=oe(),{articles:s}=b(r=>r.article),{style:n}=b(r=>r.config);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})}),s.length>0&&e.jsx(pl,{articles:s,style:n,type:"B"}),t.staticSections.fooldalUIACUPProgramrol&&e.jsx("div",{className:"palyazatok mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalUIACUPProgramrol})})]})},qj=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Vj=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Vi=()=>{const{nav:t}=oe();if(t===null)return e.jsx(vt,{children:e.jsx(Bt,{})});const{item:s,parent:n}=t;switch(s.type){case"static":return e.jsx(vt,{children:e.jsx(Ma,{parent:n})});case"events":return e.jsx(vt,{children:e.jsx(qj,{})});case"eventcategories":return e.jsx(vt,{children:e.jsx(Vj,{categoryId:s.params.categoryId})});case"documents":return e.jsx(vt,{children:e.jsx(Da,{title:t.item.title,categoryId:void 0,path:s.path})});case"documentcategories":return e.jsx(vt,{children:e.jsx(Qe,{title:t.item.title,categoryId:s.params.categoryId})});case"navonly":return e.jsx(vt,{children:e.jsx($a,{title:t.item.title,children:s.children})});case"contacts":return e.jsx(vt,{children:e.jsx(Oa,{})});case"form":return e.jsx(vt,{children:e.jsx(Ha,{title:t.item.title,formId:s.params.formId})});case"faq":case"faqcategories":return e.jsx(vt,{children:e.jsx(Aa,{})});case"issues":return e.jsx(vt,{children:e.jsx(ma,{})});case"regulations":return e.jsx(vt,{children:e.jsx(pa,{})});case"decisions":return e.jsx(vt,{children:e.jsx(fa,{})});case"announcements":return e.jsx(vt,{children:e.jsx(ha,{})});case"representatives":case"vicemayorsonly":return e.jsx(vt,{children:e.jsx(Ua,{title:"Képviselők",withoutViceMayors:s.type==="vicemayorsonly"})});case"representativesonly":return e.jsx(vt,{children:e.jsx(Pa,{title:"Alpolgármesterek"})});case"newscategories":return e.jsx(vt,{children:e.jsx(Jn,{title:t.item.title,categoryId:t.
78item.params.categoryId})});case"news":return e.jsx(vt,{children:e.jsx(Qn,{title:t.item.title})});case"smartmaptypes":return e.jsx(vt,{children:e.jsx(Ia,{title:t.item.title,typeId:t.item.params.typeId})})}return e.jsx(vt,{children:e.jsx(Bt,{})})},g3=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(h3,{}),loader:m3,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(Qn,{}),loader:Et,path:"hirek"},{element:e.jsx(Pn,{}),loader:at,path:"hirek/:id"},{element:e.jsx(Jn,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(f3,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(p3,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(vt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(qi,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Vi,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}];function Uc(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=Uc(n.children,s);if(r!==null)return r}}return null}const j3=async()=>{const{sitemap:t}=k.getState().sitemap,s=Uc(t,"/fooldal/referenciak"),n=Uc(t,"/fooldal/rolunk"),r=Uc(t,"/fooldal/udultetes");return k.dispatch(be("Főoldal")),await cl("7"),await $e(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalReferenciak:s?await de(s.id):null,fooldalRolunk:n?await de(n.id):null,fooldalUdultetes:r?await de(r.id):null}}},v3=()=>{const t=oe(),{articles:s}=b(r=>r.article),{style:n}=b(r=>r.config);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalReferenciak&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalReferenciak})}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})}),t.staticSections.fooldalUdultetes&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalUdultetes})}),s.length>0&&e.jsx(pl,{articles:s,style:n,type:"B"})]})},b3=[{children:[{children:[{element:e.jsx(v3,{}),loader:j3,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(Qn,{}),loader:Et,path:"hirek"},{element:e.jsx(Pn,{}),loader:at,path:"hirek/:id"},{element:e.jsx(Jn,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(qj,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(Vj,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(vt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(qi,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Vi,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}];function Kj(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=Kj(n.children,s);if(r!==null)return r}}return null}const y3=async()=>{const{sitemap:t}=k.getState().sitemap,s=Kj(t,"/fooldal/rolunk");return k.dispatch(be("Főoldal")),await cl("7"),await $e(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalRolunk:s?await de(s.id):null}}},w3=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},N3=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},k3=()=>{const t=oe(),{articles:s}=b(r=>r.article),{style:n}=b(r=>r.config);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})}),s.length>0&&e.jsx(pl,{articles:s,style:n,type:"B"})]})},_3=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(k3,{}),loader:y3,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(Qn,{}),loader:Et,path:"hirek"},{element:e.jsx(Pn,{}),loader:at,path:"hirek/:id"},{element:e.jsx(Jn,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(N3,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(w3,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(vt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(qi,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Vi,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}];function Zj(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=Zj(n.children,s);if(r!==null)return r}}return null}const E3=async()=>{const{sitemap:t}=k.getState().sitemap,s=Zj(t,"/fooldal/rolunk");return k.dispatch(be("Főoldal")),await cl("7"),await $e(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalRolunk:s?await de(s.id):null}}},S3=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},C3=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},z3=()=>{const t=oe(),{articles:s}=b(r=>r.article),{style:n}=b(r=>r.config);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})}),s.length>0&&e.jsx(pl,{articles:s,style:n,type:"B"})]})},T3=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(z3,{}),loader:E3,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(Qn,{}),loader:Et,path:"hirek"},{element:e.jsx(Pn,{}),loader:at,path:"hirek/:id"},{element:e.jsx(Jn,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(C3,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(S3,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(vt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(qi,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Vi,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}];function om(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=om(n.children,s);if(r!==null)return r}}return null}const R3=async()=>{const{sitemap:t}=k.getState().sitemap,s=om(t,"/fooldal/rolunk"),n=om(t,"/fooldal/egyesuleteink");return k.dispatch(be("Főoldal")),await cl("7"),await $e(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalRolunk:s?await de(s.id):null,fooldalEgyesuleteink:n?await de(n.id):null}}},A3=t=>{let s="";for(const n of Object.keys(t))if(t[n]!==void 0)if(n==="typeIds")for(const r of t.typeIds)s=`${s}${s.length===0?"?":"&"}typeIds[]=${r}`;else s=`${s}${s.length===0?"?":"&"}${n}=${t[n]}`;return s},Xj=async(t=16,s=1)=>{const c=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/smart-map${A3({typeIds:["5"],limit:t,page:s})}`,{headers:{Domain:location.hostname}})).json();k.dispatch(B0({places:c.places,hasMore:c.hasMoreItems,page:s}))},L3=async()=>{k.dispatch(be("Sportegyesületek")),await Xj()},M3=async t=>{const n=await(await fetch(`https://api.ujbuda.hu/webapi/v1.0/smart-map/${t}`,{headers:{Domain:location.hostname}})).json();return k.dispatch(U0({place:n}
78)),n},D3=async t=>{const s=await M3(t.params.id);k.dispatch(be(s.name))},$3=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},O3=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},H3=()=>{const t=oe(),{articles:s}=b(u=>u.article),{events:n}=b(u=>u.event),{style:r}=b(u=>u.config),{galleries:c}=b(u=>u.gallery);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),s.length>0&&e.jsx(pl,{articles:s,style:r,type:"B"}),n&&n.length>0&&e.jsx(Kl,{events:n,style:r}),t.staticSections.fooldalEgyesuleteink&&e.jsx("div",{className:"egyesuleteink mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalEgyesuleteink})}),c.length>0&&e.jsx(Gi,{galleries:c,style:r}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})})]})},U3=()=>{const t=ie(),{places:s}=b(r=>r.sportClub),n=y.useCallback(async()=>{var c;const r=(c=document.querySelector(".lazy-loader"))==null?void 0:c.getBoundingClientRect();r&&r.top>0&&r.top<window.innerHeight&&k.getState().sportClub.hasMore===!0&&k.getState().sportClub.inProgress===!1&&(t(P0()),await Xj(16,k.getState().sportClub.page+1))},[k.getState().sportClub.page,t]);return y.useEffect(()=>(window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)}),[n]),e.jsxs("div",{className:"",children:[e.jsxs("div",{className:"relative mx-auto h-[400px] w-full px-[16px] md:w-[720px] xl:w-[1170px]",children:[e.jsx("img",{alt:"Sportegyesületek",className:"absolute top-0 left-0 z-1 h-full w-full object-cover object-center",src:"/style/ujbuda-sport/sportegyesuletek.webp"}),e.jsx("div",{className:"absolute top-0 left-0 z-2 h-full w-full bg-[#171717] opacity-[0.64]"}),e.jsxs("div",{className:"relative z-3 mx-auto flex h-full max-h-[600px] w-full flex-col items-center justify-center px-[16px] text-center text-(--color-white) md:w-[720px] md:items-start md:px-0 md:text-left xl:w-[1170px]",children:[e.jsx(G,{color:"white",separatorColor:"var(--color-primary-green)",className:"mb-[26px]",items:[{title:"Sportegyesületek"}]}),e.jsx("div",{className:"font-secondary-bold mb-[16px] text-[36px] leading-[110%] md:text-[48px] xl:text-[52px]",children:"Sportegyesületek"}),e.jsx("div",{className:"max-w-[570px] text-[16px] leading-[150%] xl:text-[18px]"})]})]}),e.jsxs("div",{className:"mx-auto mt-[64px] mb-[96px] grid w-full grid-cols-1 gap-[24px] px-[16px] sm:grid-cols-2 md:w-[720px] md:px-0 lg:grid-cols-3 xl:w-[1170px] xl:grid-cols-4",children:[s.map(r=>e.jsx(_,{className:"w-full",to:`/sportegyesuletek/${r.id}`,children:e.jsx(kj,{sportClub:r})},r.id)),e.jsx("div",{className:"lazy-loader col-span-full min-h-[1px] w-full"})]})]})},P3=()=>{const{place:t}=b(s=>s.sportClub);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Sportegyesületek",href:"/sportegyesuletek"},{title:t.name}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)",children:t.name}),e.jsx(et,{className:"mb-[24px] md:mb-[48px]",tags:[{name:"Sportegyesület"}]}),e.jsx("div",{className:"mb-[64px] text-[18px] leading-[150%] font-bold",children:t.maintitle}),e.jsxs("div",{className:"mb-[64px] flex flex-col gap-[16px] rounded-[4px] border-1 border-[#F4F4F4] p-[20px] shadow-[0_8px_18px_0_rgba(37,_92,_136,_0.12)]",children:[e.jsx("img",{alt:"Sportegyesület",height:32,src:"/svgs
78/sport-club.svg",width:32}),e.jsx("div",{className:"font-secondary-bold text-[24px] leading-[120%]",children:"Szervezeti, személyzeti adatok"}),e.jsxs("div",{className:"flex flex-col text-[18px] leading-[150%]",children:[e.jsxs("div",{className:"flex flex-col items-start justify-between border-b-1 border-[#F4F4F4] py-[12px] md:flex-row md:items-center",children:[e.jsx("div",{className:"font-bold",children:"Székhely (postai cím):"}),e.jsx("div",{className:"text-left break-words md:text-right",children:t.address})]}),t.leader&&e.jsxs("div",{className:"flex flex-col items-start justify-between border-b-1 border-[#F4F4F4] py-[12px] md:flex-row md:items-center",children:[e.jsx("div",{className:"font-bold",children:"Ügyvezető:"}),e.jsx("div",{className:"text-left break-words md:text-right",children:t.leader})]}),t.email&&e.jsxs("div",{className:"flex flex-col items-start justify-between border-b-1 border-[#F4F4F4] py-[12px] md:flex-row md:items-center",children:[e.jsx("div",{className:"font-bold",children:"Elektronikus levélcím (e-mail):"}),e.jsx("div",{className:"text-left break-all md:text-right",children:e.jsx("a",{className:"text-(--color-primary-dark-blue) underline",target:"_blank",href:`mailto:${t.email}`,children:t.email})})]}),t.phone&&e.jsxs("div",{className:"flex flex-col items-start justify-between border-b-1 border-[#F4F4F4] py-[12px] md:flex-row md:items-center",children:[e.jsx("div",{className:"font-bold",children:"Telefonszám:"}),e.jsx("div",{className:"text-left break-words md:text-right",children:t.phone})]}),t.web&&e.jsxs("div",{className:"flex flex-col items-start justify-between border-b-1 border-[#F4F4F4] py-[12px] md:flex-row md:items-center",children:[e.jsx("div",{className:"font-bold",children:"Webes elérhetőség:"}),e.jsx("div",{className:"text-left break-all md:text-right",children:e.jsx("a",{className:"text-(--color-primary-dark-blue) underline",href:t.web,target:"_blank",children:t.web})})]})]})]}),e.jsx("div",{className:"text-[18px] leading-[150%]",children:t.description})]})},B3=[{children:[{children:[{element:e.jsx(Zn,{}),loader:Vn,path:"galeriak"},{element:e.jsx(Xn,{}),loader:Kn,path:"galeriak/:id"},{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(H3,{}),loader:R3,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(Qn,{}),loader:Et,path:"hirek"},{element:e.jsx(Pn,{}),loader:at,path:"hirek/:id"},{element:e.jsx(Jn,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(O3,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(U3,{}),loader:L3,path:"sportegyesuletek"},{element:e.jsx(P3,{}),loader:D3,path:"sportegyesuletek/:id"},{element:e.jsx($3,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(vt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(qi,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Vi,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}];function Pc(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=Pc(n.children,s);if(r!==null)return r}}return null}const I3=async()=>{const{sitemap:t}=k.getState().sitemap,s=Pc(t,"/fooldal/rolunk"),n=Pc(t,"/fooldal/szolgaltatasok"),r=Pc(t,"/fooldal/uiacupprogramrol");return k.dispatch(be("Főoldal")),await cl("70"),await $e(),await Ra(),await Ct("29"),await pt(),await Yt(),await vl(),{staticSections:{fooldalRolunk:s?await de(s.id):null,fooldalSzolgaltatasok:n?await de(n.id):null,fooldalUiacupProgramrol:r?await de(r.id):null}}},F3=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Y3=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},G3=()=>{const t=oe(),{style:s}=b(x=>x.config),{galleries:n}=b(x=>x.gallery),{events:r}=b(x=>x.event),{categories:c,videoGalleries:u}=b(x=>x.article),d=c.find(x=>x.name==="Interjúk"),p=c.find(x=>x.name==="Aktualitások");return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),r&&r.length>0&&e.jsx(Kl,{events:r,style:s}),d&&d.articles&&d.articles.length>0&&e.jsx(pl,{articles:d.articles,style:s,type:"B",title:"Interjúk",link:`/hirek/kategoriak/${d.id}`,linkText:"Összes interjú"}),p&&p.articles&&p.articles.length>0&&e.jsx(pl,{articles:p.articles,style:s,type:"B",title:"Aktualitások",link:`/hirek/kategoriak/${p.id}`,linkText:"Összes aktualitás"}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})}),t.staticSections.fooldalSzolgaltatasok&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalSzolgaltatasok})}),u.length>0&&e.jsx(Dm,{videoGalleries:u,style:s}),n.length>0&&s!=="kozpont"&&e.jsx(Gi,{galleries:n,style:s}),t.staticSections.fooldalUiacupProgramrol&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalUiacupProgramrol})})]})},q3=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(G3,{}),loader:I3,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(Qn,{}),loader:Et,path:"hirek"},{element:e.jsx(Pn,{}),loader:at,path:"hirek/:id"},{element:e.jsx(Jn,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Y3,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(F3,{}),loader:bt,path:"esemenyek/kategoriak/:id"},{element:e.jsx(Zn,{}),loader:Vn,path:"galeriak"},{element:e.jsx(Xn,{}),loader:Kn,path:"galeriak/:id"},{element:e.jsx(qn,{}),loader:Yi,path:"videogaleria"},{element:e.jsx(Pn,{}),loader:at,path:"videogaleria/:id"}],element:e.jsx(vt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(qi,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Vi,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],ud=()=>{const{newsletterSubscribe:t,style:s,logoImage:n,footerText:r,footerAddresses:c,footerEmails:u,footerPhones:d,footerNav:p}=b(v=>v.config),x=["idosekhaza","gamesz","kozterulet-felugyelet","parkolasuzemelteto","uszosz","human"].includes(s);let g,h;switch(s){case"gamesz":g="/style/gamesz/gamesz_footer_logo.svg",h="/svgs/footer_terracotta_image.svg";break;case"kozterulet-felugyelet":g="/style/kozterulet-felugyelet/kozterulet-felugyelet_footer_logo.svg",h="/svgs/footer_dark_blue_image.svg";break;case"parkolasuzemelteto":g="/style/parkolasuzemelteto/parkolas_footer_logo.svg",h="/svgs/footer_light_blue_image.svg";break;case"human":g=n,h="/svgs/footer_light_blue_image.svg";break;case"ujbuda-prizma":g=n,h="/svgs/footer_green_image.svg";break;default:g=n,h="/svgs/footer_dark_blue_image.svg";break}return e.jsx(e.Fragment,{children:e.jsxs("div",{className:`footer footer--${s} relative ${t?"mt-[200px] md:mt-[100px] xl:mt-[48px]":"mt-0"} h-full w-full`,children:[e.jsx("div",{className:"absolute inset-0 mx-auto h-full w-full max-w-[1170px] overflow-hidden py-3",children:e.jsx("img",{src:h,alt:"Háttér",className:"lgtablet:object-right h-full w-full object-contain object-center"})}),e.jsx("div",{className:"flex flex-row justify-between gap-12"}),e.jsxs("div",{className:`relative z-20 mx-auto w-full max-w-[1170px] px-[16px] ${t?"lgtablet:pt-[84px] pt-[128px]":"pt-[26px]"} xl:px-[0]`,children:[e.jsxs("div",{className:"flex w-full flex-col justify-center gap-[45px] text-center md:flex-row md:text-left xl:justify-start",children:[e.jsxs("div",{className:"grid w-[100%] auto-rows-min grid-cols-1 gap-3 text-start md:w-[318px]",children:[e.jsx("img",{src:g,alt:"Újbuda logó",className:"mx-auto md:mx-0",style:x?{}:{filter:"brightness(0) invert(1)"}}),e.jsx("p",{className:"row-start-3 text-xs",children:r}),c.length>0&&e.jsxs("div",{className:"row-start-4 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs
78/address.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:c.map(v=>e.jsx("p",{children:v}))})]}),u.length>0&&e.jsxs("div",{className:"row-start-5 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 min-w-8 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/email.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:u.map(v=>e.jsxs("p",{children:[v.description&&v.description.trim().length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:v.description}),e.jsx("br",{})]}),e.jsx("a",{href:`mailto:${v.email}`,className:"underline",children:v.email})]}))})]}),d.length>0&&e.jsxs("div",{className:"row-start-6 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/phone.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"flex flex-col gap-3",children:d.map(v=>e.jsxs("div",{className:"text-[12px] leading-[150%]",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase",children:v.name}),e.jsx("p",{className:"leading-[110%] font-bold",children:v.phone})]}))})]})]}),e.jsx("div",{className:"flex flex-wrap gap-x-[45px] gap-y-[42px] md:mt-[63px]",children:p.map(v=>e.jsxs("div",{className:"flex w-[100%] flex-col gap-3 text-[12px] md:w-[318px] xl:w-[239px]",children:[e.jsx("h2",{className:"leading-[150%] font-bold uppercase",children:v.title}),v.children.map(N=>e.jsx(_,{target:N.external?"_blank":"",to:N.external?N.external_link:N.path,className:"row-start-4",children:N.title}))]}))})]}),e.jsx("div",{className:"mt-6 h-[1px] w-full bg-white"}),e.jsx("div",{className:"lgtablet:flex-row tablet:px-0 flex flex-col-reverse items-center justify-center gap-4 px-5 py-6",children:e.jsx("p",{className:"text-[10px] font-bold text-white",children:"Újbuda Önkormányzat - Minden jog fenntartva"})})]}),e.jsx(Jl,{type:"newsletter"}),t&&e.jsx(es,{})]})})},Qj=()=>{var d;const t=_e(),{openNavMenu:s}=b(p=>p.hamburgerMenu),n=b(p=>p.config),r=ie(),c=s!==null?((d=n.mainNav.find(p=>p.id===s))==null?void 0:d.children)||[]:[],u=["gamesz","idosekhaza","kozterulet-felugyelet","parkolasuzemelteto","ujbuda-prizma","human"].includes(n.style);return n.style==="parkolasuzemelteto"||n.style==="human"?e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"navbar relative z-200 flex flex-col justify-center gap-4 bg-white px-6 py-3 shadow-xl xl:pb-3",children:[e.jsxs("div",{className:"mx-auto hidden w-full max-w-[1170px] flex-col xl:flex",children:[e.jsxs("div",{className:"hidden flex-row justify-between xl:flex",children:[e.jsx("div",{className:"flex flex-row items-center gap-4",children:n.highlightedInformations.map((p,x)=>e.jsxs(e.Fragment,{children:[e.jsx(_,{to:p.path,className:"text-[12px] leading-[150%]",children:p.title}),x<n.highlightedInformations.length-1&&e.jsx("div",{className:"divider"})]}))}),e.jsxs("div",{className:"ml-auto flex flex-row gap-6",children:[e.jsx("div",{className:"flex flex-row items-center gap-6 text-[12px] leading-[150%]",children:n.topNav.map(p=>e.jsx(_,{target:p.external?"_blank":"",to:p.external?p.external_link:p.path,children:p.title}))}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider mr-[25px]"})]}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[n.socialLinkFacebook&&e.jsx("a",{target:"_blank",href:n.socialLinkFacebook,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/facebook_icon.svg",alt:"Facebook"})}),n.socialLinkTiktok&&e.jsx("a",{target:"_blank",href:n.socialLinkTiktok,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n.socialLinkInstagram&&e.jsx("a",{target:"_blank",href:n.socialLinkInstagram,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs
78/instagram_icon.svg",alt:"Instagram icon"})}),n.socialLinkYoutube&&e.jsx("a",{target:"_blank",href:n.socialLinkYoutube,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]})]}),(n.highlightedInformations.length>0||n.topNav.length>0||n.socialLinkFacebook||n.socialLinkTikTok||n.socialLinkInstagram||n.socialLinkYoutube)&&e.jsx("div",{className:"h-[12px]"}),e.jsxs("div",{className:"flex h-[49px] flex-row items-center gap-6",children:[e.jsx(_,{to:"/",className:"mr-auto shrink-0",onClick:()=>r(V(null)),children:e.jsx("img",{src:n.logoImage,alt:`${n.title} logó`,className:"max-h-[49px] max-w-[205px]"})}),n.contactPhones.map(p=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-col items-end",children:[e.jsx("p",{className:"header-phone-title text-[10px] font-bold uppercase",children:p.name}),e.jsx("a",{href:`tel:${p.phone}`,className:"header-phone-link text-[12px] font-bold",children:p.phone})]}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider"})]})),u&&e.jsx(_,{to:"/kereses",onClick:()=>r(V(null)),children:e.jsx("div",{className:`search-button search-button--${n.style} bg-primary-dark-blue flex h-[48px] w-[48px] cursor-pointer items-center justify-center rounded-[4px] text-white`,children:e.jsx("img",{src:"/svgs/search_icon.svg",alt:"Keresés"})})}),e.jsx(_,{to:"https://ujbuda.hu",target:"_blank",className:"hidden h-[49px] w-[191px] xl:flex",children:e.jsx("div",{className:`cta-button cta-button--${n.style} bg-primary-dark-blue flex w-full cursor-pointer items-center rounded-[4px] px-6 text-[12px] font-bold whitespace-nowrap text-white`,children:"Újbuda Önkormányzat"})})]}),e.jsx("div",{className:"mt-[6px] flex w-full flex-row justify-between py-[16px]",children:e.jsx("ul",{className:"hidden h-full w-full flex-row items-center justify-between gap-[24px] overflow-x-hidden pl-[5px] whitespace-nowrap xl:flex",children:n.mainNav.map((p,x)=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>{p.children.length>
780?r(V(s===p.id?null:p.id)):(p.external?window.open(p.external_link):t(p.path),r(V(null)))},className:"flex cursor-pointer flex-row items-center gap-1 text-[12px] font-bold",children:[p.title,p.children.length>0&&e.jsx("img",{src:"/svgs/blue_dropdown_icon.svg",alt:"Nyíl"})]})},x))})})]}),e.jsx(Xl,{color:"white"})]}),s&&e.jsx(Zl,{items:c,onClose:()=>r(V(null))})]}):e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"navbar relative z-200 flex flex-col justify-center gap-4 bg-white px-6 py-3 shadow-xl xl:pb-3",children:[e.jsxs("div",{className:"mx-auto hidden w-full max-w-[1170px] flex-col xl:flex",children:[e.jsxs("div",{className:"hidden flex-row justify-between xl:flex",children:[e.jsx("div",{className:"flex flex-row items-center gap-4",children:n.highlightedInformations.map((p,x)=>e.jsxs(e.Fragment,{children:[e.jsx(_,{to:p.path,className:"text-[12px] leading-[150%]",children:p.title}),x<n.highlightedInformations.length-1&&e.jsx("div",{className:"divider"})]}))}),e.jsxs("div",{className:"ml-auto flex flex-row gap-6",children:[e.jsx("div",{className:"flex flex-row items-center gap-6 text-[12px] leading-[150%]",children:n.topNav.map(p=>e.jsx(_,{target:p.external?"_blank":"",to:p.external?p.external_link:p.path,children:p.title}))}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider mr-[25px]"})]}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[n.socialLinkFacebook&&e.jsx("a",{target:"_blank",href:n.socialLinkFacebook,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/facebook_icon.svg",alt:"Facebook"})}),n.socialLinkTiktok&&e.jsx("a",{target:"_blank",href:n.socialLinkTiktok,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n.socialLinkInstagram&&e.jsx("a",{target:"_blank",href:n.socialLinkInstagram,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),n.socialLinkYoutube&&e.jsx("a",{target:"_blank",href:n.socialLinkYoutube,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]})]}),(n.highlightedInformations.length>0||n.topNav.length>0||n.socialLinkFacebook||n.socialLinkTikTok||n.socialLinkInstagram||n.socialLinkYoutube)&&e.jsx("div",{className:"h-[12px]"}),e.jsxs("div",{className:"flex h-[49px] flex-row items-center gap-6",children:[e.jsx(_,{to:"/",className:"mr-auto shrink-0",onClick:()=>r(V(null)),children:e.jsx("img",{src:n.logoImage,alt:`${n.title} logó`,className:"max-h-[49px] max-w-[205px]"})}),e.jsx("ul",{className:"hidden h-full w-full flex-row items-center justify-start gap-[24px] overflow-x-hidden pl-[5px] whitespace-nowrap xl:flex",children:n.mainNav.map((p,x)=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>{p.children.length>
780?r(V(s===p.id?null:p.id)):(p.external?window.open(p.external_link):t(p.path),r(V(null)))},className:"flex cursor-pointer flex-row items-center gap-1 text-[12px] font-bold",children:[p.title,p.children.length>0&&e.jsx("img",{src:`/svgs/${`${n.style==="ujbuda-prizma"||n.style==="uszosz"?"blue":"green"}`}_dropdown_icon.svg`,alt:"Nyíl"})]})},x))}),e.jsx(_,{to:"/kereses",onClick:()=>r(V(null)),children:e.jsx("div",{className:"search-button bg-primary-dark-blue flex h-[48px] w-[48px] cursor-pointer items-center justify-center rounded-[4px] text-white",children:e.jsx("img",{src:"/svgs/search_icon.svg",alt:"Keresés"})})}),e.jsx(_,{to:"https://ujbuda.hu",target:"_blank",className:"hidden h-[49px] w-[191px] xl:flex",children:e.jsx("div",{className:"cta-button bg-primary-dark-blue flex w-full cursor-pointer items-center rounded-[4px] px-6 text-[12px] font-bold whitespace-nowrap text-white",children:"Újbuda Önkormányzat"})})]})]}),e.jsx(Xl,{})]}),s&&e.jsx(Zl,{items:c,onClose:()=>r(V(null))})]})},Pm=()=>{var d;const t=_e(),{openNavMenu:s}=b(p=>p.hamburgerMenu),n=b(p=>p.config),r=ie(),c=s!==null?((d=n.mainNav.find(p=>p.id===s))==null?void 0:d.children)||[]:[],u=["gamesz","idosekhaza","kozterulet-felugyelet","parkolasuzemelteto","ujbuda-prizma","human"].includes(n.style);return e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"navbar relative z-200 flex flex-col justify-center gap-4 bg-white px-6 py-3 shadow-xl xl:pb-3",children:[e.jsxs("div",{className:"mx-auto hidden w-full max-w-[1170px] flex-col xl:flex",children:[e.jsxs("div",{className:"hidden flex-row justify-between xl:flex",children:[e.jsx("div",{className:"flex flex-row items-center gap-4",children:n.highlightedInformations.map((p,x)=>e.jsxs(e.Fragment,{children:[e.jsx(_,{to:p.path,className:"text-[12px] leading-[150%]",children:p.title}),x<n.highlightedInformations.length-1&&e.jsx("div",{className:"divider"})]}))}),e.jsxs("div",{className:"ml-auto flex flex-row gap-6",children:[e.jsx("div",{className:"flex flex-row items-center gap-6 text-[12px] leading-[150%]",children:n.topNav.map(p=>e.jsx(_,{target:p.external?"_blank":"",to:p.external?p.external_link:p.path,children:p.title}))}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider mr-[25px]"})]}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[n.socialLinkFacebook&&e.jsx("a",{target:"_blank",href:n.socialLinkFacebook,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/facebook_icon.svg",alt:"Facebook"})}),n.socialLinkTiktok&&e.jsx("a",{target:"_blank",href:n.socialLinkTiktok,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n.socialLinkInstagram&&e.jsx("a",{target:"_blank",href:n.socialLinkInstagram,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),n.socialLinkYoutube&&e.jsx("a",{target:"_blank",href:n.socialLinkYoutube,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]})]}),(n.highlightedInformations.length>0||n.topNav.length>0||n.socialLinkFacebook||n.socialLinkTikTok||n.socialLinkInstagram||n.socialLinkYoutube)&&e.jsx("div",{className:"h-[12px]"}),e.jsxs("div",{className:"flex h-[49px] flex-row items-center gap-6",children:[e.jsx(_,{to:"/",className:"mr-auto shrink-0",onClick:()=>r(V(null)),children:e.jsx("img",{src:n.logoImage,alt:`${n.title} logó`,className:"max-h-[49px] max-w-[205px]"})}),n.contactPhones.map(p=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-col items-end",children:[e.jsx("p",{className:"header-phone-title text-[10px] font-bold uppercase",children:p.name}),e.jsx("a",{href:`tel:${p.phone}`,className:"header-phone-link text-[12px] font-bold",children:p.phone})]}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider"})]})),u&&e.jsx(_,{to:"/kereses",onClick:()=>r(V(null)),children:e.jsx("div",{className:`search-button search-button--${n.style}
78 bg-primary-dark-blue flex h-[48px] w-[48px] cursor-pointer items-center justify-center rounded-[4px] text-white`,children:e.jsx("img",{src:"/svgs/search_icon.svg",alt:"Keresés"})})}),e.jsx(_,{to:"https://ugyfelablak.ujbuda.hu/login",target:"_blank",className:"hidden h-[49px] w-[191px] xl:flex",children:e.jsx("div",{className:`cta-button cta-button--${n.style} bg-primary-dark-blue flex w-full cursor-pointer items-center justify-center rounded-[4px] px-6 text-[12px] font-bold whitespace-nowrap text-white`,children:"Ügyfélablak"})})]}),e.jsx("div",{className:"mt-[6px] flex w-full flex-row justify-between py-[16px]",children:e.jsx("ul",{className:"hidden h-full w-full flex-row items-center justify-between gap-[24px] overflow-x-hidden pl-[5px] whitespace-nowrap xl:flex",children:n.mainNav.map((p,x)=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>{p.children.length>0?r(V(s===p.id?null:p.id)):(p.external?window.open(p.external_link):t(p.path),r(V(null)))},className:"flex cursor-pointer flex-row items-center gap-1 text-[12px] font-bold",children:[p.title,p.children.length>0&&e.jsx("img",{src:"/svgs/blue_dropdown_icon.svg",alt:"Nyíl"})]})},x))})})]}),e.jsx(Xl,{})]}),s&&e.jsx(Zl,{items:c,onClose:()=>r(V(null))})]})},mt=({children:t})=>{const{hamburgerOpen:s,openNavMenu:n}=b(x=>x.hamburgerMenu),{style:r}=b(x=>x.config),c=ie(),p=s&&n===null||n!==null&&!s;return y.useEffect(()=>{const x=()=>{window.innerWidth>1280?c(ge(!1)):window.innerWidth<1280&&c(V(null))};return window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[r==="parkolasuzemelteto"?e.jsx(Pm,{}):e.jsx(Qj,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 h-full min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${p?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} `,onClick:()=>{c(s?ge(!s):V(null))}}),e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx("main",{className:"flex w-full flex-1 flex-col",children:t||e.jsx(ct,{})}),e.jsx(ud,{})]})},Ki=({children:t})=>{const{title:s,sideMenu:n,activeItems:r}=b(h=>h.sideMenu),{hamburgerOpen:c,openNavMenu:u}=b(h=>h.hamburgerMenu),d=ie(),p=c&&u===null,x=u!==null&&!c,g=p||x;return y.useEffect(()=>{const h=()=>{window.innerWidth>1280?d(ge(!1)):window.innerWidth<1280&&d(V(null))};return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Qj,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${g?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${p?"top-[89px] h-[calc(100%-89px)]":""} ${x?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{d(c?ge(!c):V(null))}}),e.jsxs("div",{className:"relative min-h-[calc(100vh-162px)] bg-[#F4F4F4]",children:[e.jsxs("div",{className:"mx-auto flex max-w-[1170px]",children:[e.jsxs("aside",{className:"hidden w-[386px] flex-col p-[24px] xl:flex",children:[e.jsx("span",{className:"mb-[59px] leading-[150%] font-[18px] font-bold text-(--color-primary-dark-blue)",children:s}),e.jsx(Wl,{menu:n,activeItems:r})]}),e.jsxs("main",{className:"min-h-[calc(100vh-162px)] w-full bg-(--color-white) px-[24px] py-[32px] xl:w-[calc(100%-386px)] xl:pb-[90px]",children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),t||e.jsx(ct,{})]})]}),e.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-[calc(100vw/2-585px)] bg-(--color-white)"})]}),e.jsx(ud,{})]})};function cm(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=cm(n.children,s);if(r!==null)return r}}return null}const V3=async()=>{const{sitemap:t}=k.getState().sitemap,s=cm(t,"/fooldal/linkek"),n=cm(t,"/fooldal/banner");return k.dispatch(be("Főoldal")),await cl("7"),await $e(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalLinkek:s?await de(s.id):null,fooldalBanner:n?await de(n.id):null}}},g1=()=>{const{article:t}=b(c=>c.article),{style:s}=b(c=>c.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(c=>({...c,href:`/hirek/kategoriak/${c.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"}
78,n,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px]",src:t==null?void 0:t.image}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsx("div",{className:`article article--${s} w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},K3=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Z3=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl(!0)),await $e(x.id,6,k.getState().article.page+1))},[x,u,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},X3=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Q3=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},J3=()=>{const t=oe(),{articles:s}=b(c=>c.article),{style:n}=b(c=>c.config),{galleries:r}=b(c=>c.gallery);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalLinkek&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalLinkek})}),t.staticSections.fooldalBanner&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalBanner})}),s.length>0&&e.jsx(pl,{articles:s,style:n,type:"B"}),r.length>0&&e.jsx(Gi,{galleries:r,style:n})]})},Jj=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Wj=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},ev=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Wn=()=>{const{nav:t}=oe();if(t===null)return e.jsx(mt,{children:e.jsx(Bt,{})});const{item:s,parent:n}=t;switch(s.type){case"static":return e.jsx(mt,{children:e.jsx(Ma,{parent:n})});case"events":return e.jsx(mt,{children:e.jsx(Jj,{})});case"eventcategories":return e.jsx(mt,{children:e.jsx(Wj,{categoryId:s.params.categoryId})});case"documents":return e.jsx(mt,{children:e.jsx(Da,{title:t.item.title,categoryId:void 0,path:s.path})});case"documentcategories":return e.jsx(mt,{children:e.jsx(Qe,{title:t.item.title,categoryId:s.params.categoryId})});case"navonly":return e.jsx(mt,{children:e.jsx($a,{title:t.item.title,children:s.children})});case"contacts":return e.jsx(mt,{children:e.jsx(Oa,{})});case"form":return e.jsx(mt,{children:e.jsx(Ha,{title:t.item.title,formId:s.params.formId})});case"faq":case"faqcategories":return e.jsx(mt,{children:e.jsx(Aa,{})});case"issues":return e.jsx(mt,{children:e.jsx(ma,{})});case"regulations":return e.jsx(mt,{children:e.jsx(pa,{})});case"decisions":return e.jsx(mt,{children:e.jsx(fa,{})});case"announcements":return e.jsx(mt,{children:e.jsx(ha,{})});case"representatives":case"vicemayorsonly":return e.jsx(mt,{children:e.jsx(Ua,{title:"Képviselők",withoutViceMayors:s.type==="vicemayorsonly"})});case"representativesonly":return e.jsx(mt,{children:e.jsx(Pa,{title:"Alpolgármesterek"})});case"newscategories":return e.jsx(mt,{children:e.jsx(xn,{title:t.item.title,categoryId:t.
78item.params.categoryId})});case"organisation_contacts":return e.jsx(mt,{children:e.jsx(La,{title:t.item.title})});case"card_acceptors":return e.jsx(mt,{children:e.jsx(Ba,{title:t.item.title})});case"news":return e.jsx(mt,{children:e.jsx(ev,{title:t.item.title})});case"smartmaptypes":return e.jsx(mt,{children:e.jsx(Ia,{title:t.item.title,typeId:t.item.params.typeId})})}return e.jsx(mt,{children:e.jsx(Bt,{})})},W3=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(J3,{}),loader:V3,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(K3,{}),loader:Et,path:"hirek"},{element:e.jsx(qn,{}),loader:Yi,path:"videogaleria"},{element:e.jsx(Zn,{}),loader:Vn,path:"galeriak"},{element:e.jsx(g1,{}),loader:at,path:"hirek/:id"},{element:e.jsx(g1,{}),loader:at,path:"videogaleria/:id"},{element:e.jsx(Xn,{}),loader:Kn,path:"galeriak/:id"},{element:e.jsx(Z3,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Q3,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(X3,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(mt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(Ki,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Wn,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}];function dm(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=dm(n.children,s);if(r!==null)return r}}return null}const e8=async()=>{const{sitemap:t}=k.getState().sitemap,s=dm(t,"/fooldal/linkek"),n=dm(t,"/fooldal/banner");return k.dispatch(be("Főoldal")),await cl("7"),await $e(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalLinkek:s?await de(s.id):null,fooldalBanner:n?await de(n.id):null}}},t8=()=>{const{article:t}=b(c=>c.article),{style:s}=b(c=>c.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(c=>({...c,href:`/hirek/kategoriak/${c.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},n,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("p",{className:"mb-[24px] text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px]",src:t==null?void 0:t.image}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsx("div",{className:`article article--${s} w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},l8=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},a8=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl(!0)),await $e(x.id,6,k.getState().article.page+1))},[x,u,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},s8=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},n8=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},i8=()=>{const t=oe(),{articles:s}=b(u=>u.article),{style:n}=b(u=>u.config),{categories:r,events:c}=b(u=>u.event);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalLinkek&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalLinkek})}),s.length>0&&e.jsx(pl,{articles:s,style:n,type:"B"}),t.staticSections.fooldalBanner&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalBanner})}),c&&c.length>0&&e.jsx(Kl,{events:c,style:n})]})},r8=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(i8,{}),loader:e8,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(l8,{}),loader:Et,path:"hirek"},{element:e.jsx(t8,{}),loader:at,path:"hirek/:id"},{element:e.jsx(a8,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(n8,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(s8,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(mt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(Ki,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Wn,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}];function so(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=so(n.children,s);if(r!==null)return r}}return null}const o8=async()=>{const{sitemap:t}=k.getState().sitemap,s=so(t,"/fooldal/linkek"),n=so(t,"/fooldal/banner"),r=so(t,"/fooldal/hasznosinformacio"),c=so(t,"/fooldal/rolunk");return k.dispatch(be("Főoldal")),await cl("7"),await $e(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalLinkek:s?await de(s.id):null,fooldalBanner:n?await de(n.id):null,fooldalHasznosInformacio:r?await de(r.
78id):null,fooldalRolunk:c?await de(c.id):null}}},c8=()=>{const{article:t}=b(c=>c.article),{style:s}=b(c=>c.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(c=>({...c,href:`/hirek/kategoriak/${c.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},n,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px]",src:t==null?void 0:t.image}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsx("div",{className:`article article--${s} w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},d8=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},x8=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl(!0)),await $e(x.id,6,k.getState().article.page+1))},[x,u,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},{title:x.name}]}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},u8=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},m8=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},p8=()=>{const t=oe(),{articles:s}=b(r=>r.article),{style:n}=b(r=>r.config);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalLinkek&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalLinkek})}),s.length>0&&e.jsx(pl,{articles:s,style:n,type:"B"}),t.staticSections.fooldalBanner&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalBanner})}),t.staticSections.fooldalHasznosInformacio&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalHasznosInformacio})}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})})]})},f8=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(p8,{}),loader:o8,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(d8,{}),loader:Et,path:"hirek"},{element:e.jsx(c8,{}),loader:at,path:"hirek/:id"},{element:e.jsx(x8,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(m8,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(u8,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(mt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(Ki,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Wn,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],h8=({children:t})=>{const{hamburgerOpen:s,openNavMenu:n}=b(p=>p.hamburgerMenu),r=ie(),c=s&&n===null,u=n!==null&&!s,d=c||u;return y.useEffect(()=>{const p=()=>{window.innerWidth>1280?r(ge(!1)):window.innerWidth<1280&&r(V(null))};return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Pm,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${d?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${c?"top-[89px] h-[calc(100%-89px)]":""} ${u?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{r(s?ge(!s):V(null))}}),e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx("main",{className:"flex w-full flex-1 flex-col",children:t||e.jsx(ct,{})}),e.jsx(ud,{})]})},g8=({children:t})=>{const{title:s,sideMenu:n,activeItems:r}=b(h=>h.sideMenu),{hamburgerOpen:c,openNavMenu:u}=b(h=>h.hamburgerMenu),d=ie(),p=c&&u===null,x=u!==null&&!c,g=p||x;return y.useEffect(()=>{const h=()=>{window.innerWidth>1280?d(ge(!1)):window.innerWidth<1280&&d(V(null))};return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(Pm,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${g?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${p?"top-[89px] h-[calc(100%-89px)]":""} ${x?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{d(c?ge(!c):V(null))}}),e.jsxs("div",{className:"relative min-h-[calc(100vh-162px)] bg-[#F4F4F4]",children:[e.jsxs("div",{className:"mx-auto flex max-w-[1170px]",children:[e.jsxs("aside",{className:"hidden w-[386px] flex-col p-[24px] xl:flex",children:[e.jsx("span",{className:"mb-[59px] leading-[150%] font-[18px] font-bold text-(--color-primary-dark-blue)",children:s}),e.jsx(Wl,{menu:n,activeItems:r})]}),e.jsxs("main",{className:"min-h-[calc(100vh-162px)] w-full bg-(--color-white) px-[24px] py-[32px] xl:w-[calc(100%-386px)] xl:pb-[90px]",children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),t||e.jsx(ct,{})]})]}),e.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-[calc(100vw/2-585px)] bg-(--color-white)"})]}),e.jsx(ud,{})]})};function Bc(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=Bc(n.children,s);if(r!==null)return r}}return null}const j8=async()=>{const{sitemap:t}=k.getState().sitemap,s=Bc(t,"/fooldal/linkek"),n=Bc(t,"/fooldal/banner"),r=Bc(t,"/fooldal/rolunk");return k.dispatch(be("Főoldal")),await cl("7"),await $e(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalLinkek:s?await de(s.id):null,fooldalBanner:n?await de(n.id):null,fooldalRolunk:r?await de(r.
78id):null}}},v8=()=>{const{article:t}=b(c=>c.article),{style:s}=b(c=>c.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(c=>({...c,href:`/hirek/kategoriak/${c.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},n,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px]",src:t==null?void 0:t.image}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsx("div",{className:`article article--${s} w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},b8=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},y8=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl(!0)),await $e(x.id,6,k.getState().article.page+1))},[x,u,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},w8=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},N8=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},k8=()=>{const t=oe(),{articles:s}=b(u=>u.article),{style:n}=b(u=>u.config),{categories:r,events:c}=b(u=>u.event);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalLinkek&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalLinkek})}),s.length>0&&e.jsx(pl,{articles:s,style:n,type:"B"}),t.staticSections.fooldalBanner&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalBanner})}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})})]})},_8=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(k8,{}),loader:j8,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(b8,{}),loader:Et,path:"hirek"},{element:e.jsx(v8,{}),loader:at,path:"hirek/:id"},{element:e.jsx(y8,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(N8,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(w8,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(h8,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(g8,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Wn,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}];function xm(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=xm(n.children,s);if(r!==null)return r}}return null}const E8=async()=>{const{sitemap:t}=k.getState().sitemap,s=xm(t,"/fooldal/linkek"),n=xm(t,"/fooldal/bemutatkozas");return k.dispatch(be("Főoldal")),await cl("7"),await $e(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalLinkek:s?await de(s.id):null,fooldalBemutatkozas:n?await de(n.id):null}}},S8=()=>{const{article:t}=b(c=>c.article),{style:s}=b(c=>c.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(c=>({...c,href:`/hirek/kategoriak/${c.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"}
78,n,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px]",src:t==null?void 0:t.image}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsx("div",{className:`article article--${s} w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},C8=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},z8=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl(!0)),await $e(x.id,6,k.getState().article.page+1))},[x,u,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},T8=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},R8=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},A8=()=>{const t=oe(),{articles:s}=b(u=>u.article),{style:n}=b(u=>u.config),{categories:r,events:c}=b(u=>u.event);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalLinkek&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalLinkek})}),s.length>0&&e.jsxs("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("h2",{className:`font-secondary-bold title--news--${n} py-[7.5px] text-[24px] leading-[120%]`,children:"Híreink"}),e.jsxs(_,{to:"/hirek",className:"flex items-center gap-[6px]",children:[e.jsx("span",{className:`link--${n} text-[12px] leading-[100%] font-bold`,children:"Összes hírünk"}),e.jsx("img",{alt:"Jobbra mutató nyíl",height:12,src:`/style/${n}/arrow.svg`,width:12})]})]}),e.jsx(De,{className:"mb-[28px]"}),e.jsx("div",{className:"flex items-start gap-[24px]",children:e.jsx("div",{className:"flex w-full flex-wrap gap-[24px]",children:s.slice(0,6).map(u=>e.jsx(_,{to:`/hirek/${u.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:u,size:"m",borderColor:"var(--color-primary-dark-blue)"})},u.id))})})]}),t.staticSections.fooldalBemutatkozas&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalBemutatkozas})})]})},L8=async()=>await(await fetch("https://api.ujbuda.hu/webapi/v1.0/transported-cars",{headers:{Domain:location.hostname}})).json(),M8=({background:t,buttonColor:s,className:n,linkCaption:r,subtitle:c,title:u,url:d})=>e.jsxs("div",{className:`${n} relative flex aspect-[320/584] flex-col items-center justify-center gap-[24px] text-(--color-white) md:aspect-[705/368] xl:aspect-[1170/524]`,children:[e.jsx("img",{alt:"Háttér",className:"absolute top-0 left-0 z-1 h-full w-full object-cover object-center",src:t}),e.jsx("div",{className:"absolute top-0 left-0 z-2 h-full w-full bg-[#171717] opacity-[0.64]"}),e.jsx("div",{className:"font-secondary-bold relative z-3 text-[24px] leading-[120%] md:text-[28px] xl:text-[32px]",children:u}),e.jsx("div",{className:"relative z-3 max-w-[473px] text-center text-[18px] leading-[150%] font-bold",children:c}),e.jsx(_,{className:"relative z-3",to:d,children:e.jsx("button",{className:"flex h-[49px] min-w-[221px] cursor-pointer items-center justify-center rounded-[4px] text-[12px] leading-[110%] font-bold text-(--color-black)",style:{backgroundColor:s||"var(--color-lightblue)"},children:r})})]}),D8=()=>{const t="bármelyik",[s,n]=y.useState(""),[r,c]=y.useState(t),[u,d]=y.useState(t),[p,x]=y.useState([]),[g,h]=y.useState([]),[v,N]=y.useState([]),[C,S]=y.useState([]),[L,F]=y.useState(!1),[T,Y]=y.useState(!1);y.useEffect(()=>{(async()=>{const $=await L8();x($);const ze=Array.from(new Set($.map(ve=>ve.manufacturer))).map(ve=>({key:ve,value:ve})),Ue=Array.from(new Set($.map(ve=>ve.color))).map(ve=>({key:ve,value:ve}));N([{key:t,value:t},...ze]),S([{key:t,value:t},...Ue])})()},[]);function Q(W){return/^[A-Z]{3,4}[0-9]{3}$/.test(W)}function le(){const W=s==null?void 0:s.trim().replace(/-/g,"").toUpperCase();if(F(!W||!Q(W)),!W)return;const $=p.filter(ze=>{const ve=ze.license_plate.replace(/-/g,"").toUpperCase()===W,ft=r===t||ze.manufacturer.toLowerCase()===r.toLowerCase(),qt=u===t||ze.color.toLowerCase()===u.toLowerCase();return ve&&ft&&qt});$.length>0&&(n(""),c(t),d(t)),h($),Y(!0)}return e.jsx("div",{className:"kozterulet mt-[32px] mb-[64px] w-full xl:mb-0",children:e.jsxs("div",{className:"mx-auto mb-[64px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:[e.jsx("h1",{className:"font-montserrat mb-[26px] text-[32px] leading-[120%] font-bold text-[#255C88]",children:"Elszállított gépjárművek listája"}),e.jsx(nm,{title:"Lekérdezéshez szükséges adatok"}),e.jsx(De,{}),e.jsxs("div",{className:"mt-[32px] flex flex-col items-start justify-between gap-5 md:flex-row md:items-center",children:[e.jsx("label",{htmlFor:"plate",className:"absolute left-[-10000%]",children:"Gépjármű rendszáma"}),e.jsx(Oe,{id:"plate",placeholder:"Gépjármű rendszáma",value:s,onChange:n}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"manufacturer",children:"Gépjármű márkája"}),e.jsx(Oe,{id:"manufacturer",placeholder:"",value:r,onChange:c,type:"dropdown",items:v,className:"w-full"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"color",children:"Gépjármű színe"}),e.jsx(Oe,{id:"color",placeholder:"",value:u,onChange:d,type:"dropdown",items:C,className:"w-full"})]})]}),L&&e.jsx("div",{className:"mt-[8px] ml-[4px] text-[12px] text-[red]",children:"Kérem töltse ki a rendszám mezőt!"}),e.jsx("button",{onClick:le,className:"bg-primary-dark-blue mt-[8px] rounded-r-sm px-6 py-[22px] text-[12px] leading-[100%] font-bold text-white",children:"Gépjármű keresése"}),e.jsx("div",{className:"my-[64px] overflow-x-auto",children:T?g.length>0?e.jsxs(e.Fragment,{children:[e.jsx(nm,{title:"Elszállított autó adatai"}),e.jsx(De,{className:"mb-[16px]"}),e.jsxs("table",{className:"w-full min-w-[720px]",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Rendszám"}),e.jsx("th",{children:"Márka"}),e.jsx("th",{children:"Szín"}),e.jsx("th",{children:"Elszállítás dátuma"}),e.jsx("th",{children:"Helyszín"})]})}),e.jsx("tbody",{children:g.map((W,$)=>e.jsxs("tr",{children:[e.jsx("td",{children:W.license_plate}),e.jsx("td",{children:W.manufacturer}),e.jsx("td",{children:W.color}),e.jsx("td",{children:W.date}),e.jsx("td",{children:W.place})]},$))})]})]}):e.jsxs("div",{className:"flex flex-col items-center justify-center text-center",children:[e.jsx("img",{src:"/svgs
78/transported_car.svg",alt:"Elvontatott autó nincs találat"}),e.jsx("h2",{className:"font-montserrat mt-[30px] text-[32px] leading-[120%] font-bold text-[#389EC9]",children:"A keresés nem járt eredménnyel"})]}):null}),e.jsx(M8,{title:"Mi a teendő, ha elszállították a gépjárművem?",linkCaption:"Tovább",background:"/style/ujbuda/transported_car_banner.png",url:"/Hasznos-info/Gyakran-ismetelt-kerdesek"}),e.jsx("div",{className:"xl:h-[32px]"})]})})},$8=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(A8,{}),loader:E8,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(C8,{}),loader:Et,path:"hirek"},{element:e.jsx(S8,{}),loader:at,path:"hirek/:id"},{element:e.jsx(z8,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(R8,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(T8,{}),loader:bt,path:"esemenyek/kategoriak/:id"},{element:e.jsx(D8,{}),loader:bt,path:"elszallitott-gepjarmuvek"}],element:e.jsx(mt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(Ki,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Wn,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}];function tv(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=tv(n.children,s);if(r!==null)return r}}return null}const O8=async()=>{const{sitemap:t}=k.getState().sitemap,s=tv(t,"/fooldal/linkek");return k.dispatch(be("Főoldal")),await cl("7"),await $e(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalLinkek:s?await de(s.id):null}}},j1=()=>{const{article:t}=b(c=>c.article),{style:s}=b(c=>c.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(c=>({...c,href:`/hirek/kategoriak/${c.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},n,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px]",src:t==null?void 0:t.image}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsx("div",{className:`article article--${s} w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},H8=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl(!0)),await $e(x.id,6,k.getState().article.page+1))},[x,u,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},U8=()=>{const t=oe(),{articles:s}=b(u=>u.article),{style:n}=b(u=>u.config),{categories:r,events:c}=b(u=>u.event);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalLinkek&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalLinkek})})]})},P8=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(U8,{}),loader:O8,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(ev,{}),loader:Et,path:"hirek"},{element:e.jsx(qn,{}),loader:Yi,path:"videogaleria"},{element:e.jsx(Zn,{}),loader:Vn,path:"galeriak"},{element:e.jsx(j1,{}),loader:at,path:"hirek/:id"},{element:e.jsx(j1,{}),loader:at,path:"videogaleria/:id"},{element:e.jsx(Xn,{}),loader:Kn,path:"galeriak/:id"},{element:e.jsx(H8,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Jj,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(Wj,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(mt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(Ki,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Wn,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}];function no(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=no(n.children,s);if(r!==null)return r}}return null}const B8=async()=>{const{sitemap:t}=k.getState().sitemap,s=no(t,"/fooldal/linkek"),n=no(t,"/fooldal/projektek"),r=no(t,"/fooldal/banner"),c=no(t,"/fooldal/bemutatkozas");return k.dispatch(be("Főoldal")),await cl("7"),await $e(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalLinkek:s?await de(s.id):null,fooldalProjektek:n?await de(n.id):null,fooldalBanner:r?await de(r.id):null,fooldalBemutatkozas:c?await de(c.id):null}}},I8=()=>{const{article:t}=b(c=>c.article),{style:s}=b(c=>c.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(c=>({...c,href:`/hirek/kategoriak/${c.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},n,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px]",src:t==null?void 0:t.image}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsx("div",{className:`article article--${s} md w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})}
78),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},F8=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Y8=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl(!0)),await $e(x.id,6,k.getState().article.page+1))},[x,u,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},{title:x.name}]}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},G8=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},q8=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},V8=()=>{const t=oe(),{articles:s}=b(u=>u.article),{style:n}=b(u=>u.config),{categories:r,events:c}=b(u=>u.event);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalLinkek&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalLinkek})}),s.length>0&&e.jsx(pl,{articles:s,style:n,type:"B"}),t.staticSections.fooldalProjektek&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalProjektek})}),t.staticSections.fooldalBanner&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalBanner})}),t.staticSections.fooldalBemutatkozas&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalBemutatkozas})})]})},K8=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(V8,{}),loader:B8,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(F8,{}),loader:Et,path:"hirek"},{element:e.jsx(I8,{}),loader:at,path:"hirek/:id"},{element:e.jsx(Y8,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(q8,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(G8,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(mt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(Ki,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Wn,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],lv=async()=>{const s=await(await fetch("https://api.ujbuda.hu/webapi/v1.0/articles?categoryId=25",{headers:{Domain:location.hostname}})).json();k.dispatch(v0(s))},Z8={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_ALL_EVENTS_CATEGORY_ID:"29",VITE_AO_VIDEO_GALLER
78IES_CATEGORY_ID:"39",VITE_API_ENDPOINT:"https://api.ujbuda.hu",VITE_CARD_ACCEPTING_PLACES_CATEGORY_ID:"6",VITE_DKO_VIDEO_GALLERIES_CATEGORY_ID:"8",VITE_EKO_VIDEO_GALLERIES_CATEGORY_ID:"34",VITE_GO_VIDEO_GALLERIES_CATEGORY_ID:"7",VITE_IFJUSAGUGY_URL:"https://ifjusagugy.ujbuda.hu",VITE_KOO_VIDEO_GALLERIES_CATEGORY_ID:"35",VITE_KOZPONT_URL:"https://kozpont.ujbuda.hu",VITE_KOZPONT_VIDEO_GALLERIES_CATEGORY_ID:"70",VITE_LO_VIDEO_GALLERIES_CATEGORY_ID:"36",VITE_MEDIA11_URL:"https://media11.ujbuda.hu",VITE_NEW_DESIGN:"true",VITE_PARKOLAS_CTA_URL:"https://ugyfelablak.ujbuda.hu/login",VITE_SO_VIDEO_GALLERIES_CATEGORY_ID:"37",VITE_SPORT_CLUBS_CATEGORY_ID:"5",VITE_SPORT_URL:"https://sport.ujbuda.hu",VITE_SZO_VIDEO_GALLERIES_CATEGORY_ID:"38",VITE_UBI_MENUS_CATEGORY_ID:"25",VITE_UBI_VIDEO_GALLERIES_CATEGORY_ID:"40",VITE_UJBUDAONLINE_URL:"https://ujbudaonline.hu/",VITE_UJBUDA_DOCUMENT_FORMS_CATEGORY_ID:"7",VITE_UJBUDA_TV_CATEGORY_ID:"11",VITE_UJBUDA_URL:"https://ujbuda.hu",VITE_UJBUDA_VIDEO_GALLERIES_CATEGORY_ID:"51"};function um(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=um(n.children,s);if(r!==null)return r}}return null}const X8=async()=>{const{sitemap:t}=k.getState().sitemap,{style:s}=k.getState().config,n=um(t,"/fooldal/rolunk"),r=um(t,"/fooldal/bolcsodeink");k.dispatch(be("Főoldal"));const c=Z8[`VITE_${s.toUpperCase()}_VIDEO_GALLERIES_CATEGORY_ID`];return c!==void 0&&await cl(c),await $e(),await lv(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalRolunk:n?await de(n.id):null,fooldalBolcsodeink:r?await de(r.id):null}}},Q8=()=>{const t=oe(),{articles:s,videoGalleries:n,menus:r}=b(d=>d.article),{style:c}=b(d=>d.config),{galleries:u}=b(d=>d.gallery);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})}),t.staticSections.fooldalBolcsodeink&&e.jsx("div",{className:"palyazatok mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalBolcsodeink})})]})},J8=async()=>(k.dispatch(be("Hírek")),await $e("25",6),await Ra(),{redirect:!1}),W8=()=>{const t=ie(),{articles:s}=b(r=>r.article),n=y.useCallback(async()=>{var c;const r=(c=document.querySelector(".lazy-loader"))==null?void 0:c.getBoundingClientRect();r&&r.top>0&&r.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(t(fl(!0)),await $e("25",6,k.getState().article.page+1))},[s,t]);return y.useEffect(()=>(window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)}),[n]),e.jsx("div",{children:s&&e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx("div",{className:"flex w-full justify-between",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:"Étlapok"})}),e.jsx(De,{className:"mb-[32px]"}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:s&&s.map(r=>e.jsx(_,{to:`/hirek/${r.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:r})},r.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]})})},e5=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(Q8,{}),loader:X8,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx($m,{}),loader:Et,path:"hirek"},{element:e.jsx(qn,{}),loader:Yi,path:"videogaleria"},{element:e.jsx(Zn,{}),loader:Vn,path:"galeriak"},{element:e.jsx(ad,{}),loader:at,path:"hirek/:id"},{element:e.jsx(ad,{}),loader:at,path:"videogaleria/:id"},{element:e.jsx(Xn,{}),loader:Kn,path:"galeriak/:id"},{element:e.jsx(Om,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Um,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(Hm,{}),loader:bt,path:"esemenyek/kategoriak/:id"},{element:e.jsx(W8,{}),loader:J8,path:"etlapok"}],element:e.jsx(Ut,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(Mj,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Oj,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],av=()=>{const{newsletterSubscribe:t,logoImage:s,style:n,footerText:r,footerAddresses:c,footerEmails:u,footerPhones:d,footerNav:p}=b(x=>x.config);return e.jsx(e.Fragment,{children:e.jsxs("div",{className:`footer footer--${n} relative ${t?"mt-[200px] md:mt-[100px] xl:mt-[48px]":"mt-0"} h-full w-full`,children:[e.jsx("div",{className:"absolute inset-0 mx-auto h-full w-full max-w-[1170px] overflow-hidden py-3",children:e.jsx("img",{src:"/svgs
78/footer_dark_blue_image.svg",alt:"Háttér",className:"lgtablet:object-right h-full w-full object-contain object-center"})}),e.jsx("div",{className:"flex flex-row justify-between gap-12"}),e.jsxs("div",{className:`relative z-20 mx-auto w-full max-w-[1170px] px-[16px] ${t?"lgtablet:pt-[84px] pt-[128px]":"pt-[26px]"} xl:px-[0]`,children:[e.jsxs("div",{className:"flex w-full flex-col justify-center gap-[45px] text-center md:flex-row md:text-left xl:justify-start",children:[e.jsxs("div",{className:"grid w-[100%] auto-rows-min grid-cols-1 gap-3 text-start md:w-[318px]",children:[e.jsx("img",{src:s,alt:"Újbuda logó",className:"mx-auto md:mx-0",style:{filter:"brightness(0) invert(1)"}}),e.jsx("p",{className:"row-start-3 text-xs",children:r}),c.length>0&&e.jsxs("div",{className:"row-start-4 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/address.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:c.map(x=>e.jsx("p",{children:x}))})]}),u.length>0&&e.jsxs("div",{className:"row-start-5 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 min-w-8 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/email.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:u.map(x=>e.jsxs("p",{children:[x.description&&x.description.trim().length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:x.description}),e.jsx("br",{})]}),e.jsx("a",{href:`mailto:${x.email}`,className:"underline",children:x.email})]}))})]}),d.length>0&&e.jsxs("div",{className:"row-start-6 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/phone.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"flex flex-col gap-3",children:d.map(x=>e.jsxs("div",{className:"text-[12px] leading-[150%]",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase",children:x.name}),e.jsx("p",{className:"leading-[110%] font-bold",children:x.phone})]}))})]})]}),e.jsx("div",{className:"flex flex-wrap gap-x-[45px] gap-y-[42px] md:mt-[63px]",children:p.map(x=>e.jsxs("div",{className:"flex w-[100%] flex-col gap-3 text-[12px] md:w-[318px] xl:w-[239px]",children:[e.jsx("h2",{className:"leading-[150%] font-bold uppercase",children:x.title}),x.children.map(g=>e.jsx(_,{target:g.external?"_blank":"",to:g.external?g.external_link:g.path,className:"row-start-4",children:g.title}))]}))})]}),e.jsx("div",{className:"mt-6 h-[1px] w-full bg-white"}),e.jsx("div",{className:"lgtablet:flex-row tablet:px-0 flex flex-col-reverse items-center justify-center gap-4 px-5 py-6",children:e.jsx("p",{className:"text-[10px] font-bold text-white",children:"Újbuda Önkormányzat - Minden jog fenntartva"})})]}),e.jsx(Jl,{type:"newsletter"}),t&&e.jsx(es,{})]})})},sv=()=>{var u;const t=_e(),{openNavMenu:s}=b(d=>d.hamburgerMenu),n=b(d=>d.config),r=ie();console.log(n.logoImage);const c=s!==null?((u=n.mainNav.find(d=>d.id===s))==null?void 0:u.children)||[]:[];return e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"navbar relative z-200 flex flex-col justify-center gap-4 bg-white px-6 py-3 shadow-xl xl:pb-3",children:[e.jsxs("div",{className:"mx-auto hidden w-full max-w-[1170px] flex-col xl:flex",children:[e.jsxs("div",{className:"hidden flex-row justify-between xl:flex",children:[e.jsx("div",{className:"flex flex-row items-center gap-4",children:n.highlightedInformations.map((d,p)=>e.jsxs(e.Fragment,{children:[e.jsx(_,{to:d.path,className:"text-[12px] leading-[150%]",children:d.title}),p<n.highlightedInformations.length-1&&e.jsx("div",{className:"divider"})]}))}),e.jsxs("div",{className:"ml-auto flex flex-row gap-6",children:[e.jsx("div",{className:"flex flex-row items-center gap-6 text-[12px] leading-[150%]",children:n.topNav.map(d=>e.jsx(_,{target:d.external?"_blank":"",to:d.external?d.external_link:d.path,children:d.title}))}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider mr-[25px]"})]}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[n.socialLinkFacebook&&e.jsx("a",{target:"_blank",href:n.socialLinkFacebook,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs
78/facebook_icon.svg",alt:"Facebook"})}),n.socialLinkTiktok&&e.jsx("a",{target:"_blank",href:n.socialLinkTiktok,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n.socialLinkInstagram&&e.jsx("a",{target:"_blank",href:n.socialLinkInstagram,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),n.socialLinkYoutube&&e.jsx("a",{target:"_blank",href:n.socialLinkYoutube,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]})]}),(n.highlightedInformations.length>0||n.topNav.length>0||n.socialLinkFacebook||n.socialLinkTikTok||n.socialLinkInstagram||n.socialLinkYoutube)&&e.jsx("div",{className:"h-[12px]"}),e.jsxs("div",{className:"flex h-[49px] flex-row items-center gap-6",children:[e.jsx(_,{to:"/",className:"mr-auto shrink-0",onClick:()=>r(V(null)),children:e.jsx("img",{src:n.logoImage,alt:`${n.title} logó`,className:"max-h-[49px] max-w-[205px]"})}),e.jsx("ul",{className:"hidden h-full w-full flex-row items-center justify-start gap-[24px] overflow-x-hidden pl-[5px] whitespace-nowrap xl:flex",children:n.mainNav.map((d,p)=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>{d.children.length>0?r(V(s===d.id?null:d.id)):(d.external?window.open(d.external_link):t(d.path),r(V(null)))},className:"flex cursor-pointer flex-row items-center gap-1 text-[12px] font-bold",children:[d.title,d.children.length>0&&e.jsx("img",{src:"/svgs/blue_dropdown_icon.svg",alt:"Nyíl"})]})},p))}),e.jsx(_,{to:"/kereses",onClick:()=>r(V(null)),children:e.jsx("div",{className:"search-button bg-primary-dark-blue flex h-[48px] w-[48px] cursor-pointer items-center justify-center rounded-[4px] text-white",children:e.jsx("img",{src:"/svgs/search_icon.svg",alt:"Keresés"})})}),e.jsx(_,{to:"https://kozpont.ujbuda.hu",target:"_blank",className:"hidden h-[49px] w-[191px] xl:flex",children:e.jsx("div",{className:"cta-button bg-primary-dark-blue flex w-full cursor-pointer items-center rounded-[4px] px-6 text-[12px] font-bold whitespace-nowrap text-white",children:"Irány a KözPont!"})})]})]}),e.jsx(Xl,{})]}),s&&e.jsx(Zl,{items:c,onClose:()=>r(V(null))})]})},Wt=({children:t})=>{const{hamburgerOpen:s,openNavMenu:n}=b(p=>p.hamburgerMenu),r=ie(),c=s&&n===null,u=n!==null&&!s,d=c||u;return y.useEffect(()=>{const p=()=>{window.innerWidth>1280?r(ge(!1)):window.innerWidth<1280&&r(V(null))};return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(sv,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${d?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${c?"top-[89px] h-[calc(100%-89px)]":""} ${u?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{r(s?ge(!s):V(null))}}),e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx("main",{className:"flex w-full flex-1 flex-col",children:t||e.jsx(ct,{})}),e.jsx(av,{})]})},t5=({children:t})=>{const{title:s,sideMenu:n,activeItems:r}=b(h=>h.sideMenu),{hamburgerOpen:c,openNavMenu:u}=b(h=>h.hamburgerMenu),d=ie(),p=c&&u===null,x=u!==null&&!c,g=p||x;return y.useEffect(()=>{const h=()=>{window.innerWidth>1280?d(ge(!1)):window.innerWidth<1280&&d(V(null))};return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(sv,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${g?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${p?"top-[89px] h-[calc(100%-89px)]":""} ${x?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{d(c?ge(!c):V(null))}}),e.jsxs("div",{className:"relative min-h-[calc(100vh-162px)] bg-[#F4F4F4]",children:[e.jsxs("div",{className:"mx-auto flex max-w-[1170px]",children:[e.jsxs("aside",{className:"hidden w-[386px] flex-col p-[24px] xl:flex",children:[e.jsx("span",{className:"mb-[59px] leading-[150%] font-[18px] font-bold text-(--color-primary-dark-blue)",children:s}),e.jsx(Wl,{menu:n,activeItems:r})]}),e.jsxs("main",{className:"min-h-[calc(100vh-162px)] w-full bg-(--color-white) px-[24px] py-[32px] xl:w-[calc(100%-386px)] xl:pb-[90px]",children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),t||e.jsx(ct,{})]})]}),e.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-[calc(100vw/2-585px)] bg-(--color-white)"})]}),e.jsx(av,{})]})};
78function io(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=io(n.children,s);if(r!==null)return r}}return null}const l5=async()=>{const{sitemap:t}=k.getState().sitemap,s=io(t,"/fooldal/rolunk"),n=io(t,"/fooldal/Rolunk-mondtak"),r=io(t,"/fooldal/banner"),c=io(t,"/fooldal/szolgaltatasok");return k.dispatch(be("Főoldal")),await $e(),await Ct(),await pt(),await Yt(),await vl(),{galeryPath:"/magunkrol/Galeria",staticSections:{fooldalRolunkMondtak:n?await de(n.id):null,fooldalRolunk:s?await de(s.id):null,fooldalBanner:r?await de(r.id):null,fooldalSzolgaltatasok:c?await de(c.id):null}}},v1=()=>{const{article:t}=b(c=>c.article),{style:s}=b(c=>c.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(c=>({...c,href:`/hirek/kategoriak/${c.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},n,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),(t==null?void 0:t.image)&&e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px]",src:t==null?void 0:t.image}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsx("div",{className:`article article--${s} w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},nv=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},iv=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl(!0)),await $e(x.id,6,k.getState().article.page+1))},[u,x,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},{title:x==null?void 0:x.name}]}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},rv=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},ov=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},a5=()=>{const t=oe(),{articles:s}=b(d=>d.article),{style:n}=b(d=>d.config),{categories:r,events:c}=b(d=>d.event),{galleries:u}=b(d=>d.gallery);return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})}),t.staticSections.fooldalRolunkMondtak&&e.jsx("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col md:w-[720px] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunkMondtak})}),u.length>0&&e.jsx(Gi,{galleries:u,style:n}),c&&c.length>0&&e.jsx(Kl,{events:c,style:n}),t.staticSections.fooldalBanner&&e.jsx("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col md:w-[720px] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalBanner})}),s.length>0&&e.jsx(pl,{articles:s,style:n,type:"B"})]})},s5=()=>{const{nav:t}=oe();if(t===null)return e.jsx(Wt,{children:e.jsx(Bt,{})});const{item:s,parent:n}=t;switch(s.type){case"static":return e.jsx(Wt,{children:e.jsx(Ma,{parent:n})});case"events":return e.jsx(Wt,{children:e.jsx(ov,{})});case"eventcategories":return e.jsx(Wt,{children:e.jsx(rv,{categoryId:s.params.categoryId})});case"documents":return e.jsx(Wt,{children:e.jsx(Da,{title:t.item.title,categoryId:void 0,path:s.path})});case"documentcategories":return e.jsx(Wt,{children:e.jsx(Qe,{title:t.item.title,categoryId:s.params.categoryId})});case"navonly":return e.jsx(Wt,{children:e.jsx($a,{title:t.item.title,children:s.children})});case"contacts":return e.jsx(Wt,{children:e.jsx(Oa,{})});case"form":return e.jsx(Wt,{children:e.jsx(Ha,{title:t.item.title,formId:s.params.formId})});case"faq":case"faqcategories":return e.jsx(Wt,{children:e.jsx(Aa,{})});case"issues":return e.jsx(Wt,{children:e.jsx(ma,{})});case"regulations":return e.jsx(Wt,{children:e.jsx(pa,{})});case"decisions":return e.jsx(Wt,{children:e.jsx(fa,{})});case"announcements":return e.jsx(Wt,{children:e.jsx(ha,{})});case"representatives":case"vicemayorsonly":return e.jsx(Wt,{children:e.jsx(Ua,{title:"Képviselők",withoutViceMayors:s.type==="vicemayorsonly"})});case"representativesonly":return e.jsx(Wt,{children:e.jsx(Pa,{title:"Alpolgármesterek"})});case"newscategories":return e.jsx(Wt,{children:e.jsx(iv,{title:t.item.title,categoryId:t.
78item.params.categoryId})});case"organisation_contacts":return e.jsx(Wt,{children:e.jsx(La,{title:t.item.title})});case"card_acceptors":return e.jsx(Wt,{children:e.jsx(Ba,{title:t.item.title})});case"news":return e.jsx(Wt,{children:e.jsx(nv,{title:t.item.title})});case"smartmaptypes":return e.jsx(Wt,{children:e.jsx(Ia,{title:t.item.title,typeId:t.item.params.typeId})})}return e.jsx(Wt,{children:e.jsx(Bt,{})})},n5=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(a5,{}),loader:l5,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(nv,{}),loader:Et,path:"hirek"},{element:e.jsx(qn,{}),loader:Yi,path:"videogaleria"},{element:e.jsx(Zn,{}),loader:Vn,path:"galeriak"},{element:e.jsx(v1,{}),loader:at,path:"hirek/:id"},{element:e.jsx(v1,{}),loader:at,path:"videogaleria/:id"},{element:e.jsx(Xn,{}),loader:Kn,path:"galeriak/:id"},{element:e.jsx(iv,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(ov,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(rv,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(Wt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(t5,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(s5,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],cv=()=>{const{newsletterSubscribe:t,logoImage:s,style:n,footerText:r,footerAddresses:c,footerEmails:u,footerPhones:d,footerNav:p}=b(x=>x.config);return e.jsx(e.Fragment,{children:e.jsxs("div",{className:`footer footer--${n} relative ${t?"mt-[200px] md:mt-[100px] xl:mt-[48px]":"mt-0"} h-full w-full`,children:[e.jsx("div",{className:"absolute inset-0 mx-auto h-full w-full max-w-[1170px] overflow-hidden py-3",children:e.jsx("img",{src:"/svgs/kozossegi_footer_white.svg",alt:"Háttér",className:"lgtablet:object-right h-full w-full object-contain object-center"})}),e.jsx("div",{className:"flex flex-row justify-between gap-12"}),e.jsxs("div",{className:`relative z-20 mx-auto w-full max-w-[1170px] px-[16px] ${t?"lgtablet:pt-[84px] pt-[128px]":"pt-[26px]"} xl:px-[0]`,children:[e.jsxs("div",{className:"flex w-full flex-col justify-center gap-[45px] text-center md:flex-row md:text-left xl:justify-start",children:[e.jsxs("div",{className:"grid w-[100%] auto-rows-min grid-cols-1 gap-3 text-start md:w-[318px]",children:[e.jsx("img",{src:s,alt:"Újbuda logó",className:"mx-auto md:mx-0",style:{filter:"brightness(0) invert(1)"}}),e.jsx("p",{className:"row-start-3 text-xs",children:r}),c.length>0&&e.jsxs("div",{className:"row-start-4 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/address.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:c.map(x=>e.jsx("p",{children:x}))})]}),u.length>0&&e.jsxs("div",{className:"row-start-5 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 min-w-8 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/email.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:u.map(x=>e.jsxs("p",{children:[x.description&&x.description.trim().length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:x.description}),e.jsx("br",{})]}),e.jsx("a",{href:`mailto:${x.email}`,className:"underline",children:x.email})]}))})]}),d.length>0&&e.jsxs("div",{className:"row-start-6 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/phone.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"flex flex-col gap-3",children:d.map(x=>e.jsxs("div",{className:"text-[12px] leading-[150%]",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase",children:x.name}),e.jsx("p",{className:"leading-[110%] font-bold",children:x.phone})]}))})]})]}),e.jsx("div",{className:"flex flex-wrap gap-x-[45px] gap-y-[42px] md:mt-[63px]",children:p.map(x=>e.jsxs("div",{className:"flex w-[100%] flex-col gap-3 text-[12px] md:w-[318px] xl:w-[239px]",children:[e.jsx("h2",{className:"leading-[150%] font-bold uppercase",children:x.title}),x.children.map(g=>e.jsx(_,{target:g.external?"_blank":"",to:g.external?g.external_link:g.path,className:"row-start-4",children:g.title}))]}))})]}),e.jsx("div",{className:"mt-6 h-[1px] w-full bg-white"}),e.jsx("div",{className:"lgtablet:flex-row tablet:px-0 flex flex-col-reverse items-center justify-center gap-4 px-5 py-6",children:e.jsx("p",{className:"text-[10px] font-bold text-white",children:"Újbuda Önkormányzat - Minden jog fenntartva"})})]}),e.jsx(Jl,{type:"newsletter"}),t&&e.jsx(es,{})]})})},dv=()=>{var u;const t=_e(),{openNavMenu:s}=b(d=>d.hamburgerMenu),n=b(d=>d.config),r=ie(),c=s!==null?((u=n.mainNav.find(d=>d.id===s))==null?void 0:u.children)||[]:[];return e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"navbar relative z-200 flex flex-col justify-center gap-4 bg-white px-6 py-3 shadow-xl xl:pb-3",children:[e.jsxs("div",{className:"mx-auto hidden w-full max-w-[1170px] flex-col xl:flex",children:[e.jsxs("div",{className:"hidden flex-row justify-between xl:flex",children:[e.jsx("div",{className:"flex flex-row items-center gap-4",children:n.highlightedInformations.map((d,p)=>e.jsxs(e.Fragment,{children:[e.jsx(_,{to:d.path,className:"text-[12px] leading-[150%]",children:d.title}),p<n.highlightedInformations.length-1&&e.jsx("div",{className:"divider"})]}))}),e.jsxs("div",{className:"ml-auto flex flex-row gap-6",children:[e.jsx("div",{className:"flex flex-row items-center gap-6 text-[12px] leading-[150%]",children:n.topNav.map(d=>e.jsx(_,{target:d.external?"_blank":"",to:d.external?d.external_link:d.path,children:d.title}))}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider mr-[25px]"})]}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[n.socialLinkFacebook&&e.jsx("a",{target:"_blank",href:n.socialLinkFacebook,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs
78/facebook_icon.svg",alt:"Facebook"})}),n.socialLinkTiktok&&e.jsx("a",{target:"_blank",href:n.socialLinkTiktok,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n.socialLinkInstagram&&e.jsx("a",{target:"_blank",href:n.socialLinkInstagram,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),n.socialLinkYoutube&&e.jsx("a",{target:"_blank",href:n.socialLinkYoutube,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]})]}),(n.highlightedInformations.length>0||n.topNav.length>0||n.socialLinkFacebook||n.socialLinkTikTok||n.socialLinkInstagram||n.socialLinkYoutube)&&e.jsx("div",{className:"h-[12px]"}),e.jsxs("div",{className:"flex h-[49px] flex-row items-center gap-6",children:[e.jsx(_,{to:"/",className:"mr-auto shrink-0",onClick:()=>r(V(null)),children:e.jsx("img",{src:n.logoImage,alt:`${n.title} logó`,className:"max-h-[49px] max-w-[205px]"})}),e.jsx("ul",{className:"hidden h-full w-full flex-row items-center justify-start gap-[24px] overflow-x-hidden pl-[5px] whitespace-nowrap xl:flex",children:n.mainNav.map((d,p)=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>{d.children.length>0?r(V(s===d.id?null:d.id)):(d.external?window.open(d.external_link):t(d.path),r(V(null)))},className:"flex cursor-pointer flex-row items-center gap-1 text-[12px] font-bold",children:[d.title,d.children.length>0&&e.jsx("img",{src:"/svgs/blue_dropdown_icon.svg",alt:"Nyíl"})]})},p))}),e.jsx(_,{to:"/kereses",onClick:()=>r(V(null)),children:e.jsx("div",{className:"search-button bg-primary-dark-blue flex h-[48px] w-[48px] cursor-pointer items-center justify-center rounded-[4px] text-white",children:e.jsx("img",{src:"/svgs/search_icon.svg",alt:"Keresés"})})}),e.jsx(_,{to:"https://kozpont.ujbuda.hu",target:"_blank",className:"hidden h-[49px] w-[191px] xl:flex",children:e.jsx("div",{className:"cta-button bg-primary-dark-blue flex w-full cursor-pointer items-center rounded-[4px] px-6 text-[12px] font-bold whitespace-nowrap text-white",children:"Irány a KözPont!"})})]})]}),e.jsx(Xl,{})]}),s&&e.jsx(Zl,{items:c,onClose:()=>r(V(null))})]})},i5=({children:t})=>{const{hamburgerOpen:s,openNavMenu:n}=b(p=>p.hamburgerMenu),r=ie(),c=s&&n===null,u=n!==null&&!s,d=c||u;return y.useEffect(()=>{const p=()=>{window.innerWidth>1280?r(ge(!1)):window.innerWidth<1280&&r(V(null))};return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(dv,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${d?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${c?"top-[89px] h-[calc(100%-89px)]":""} ${u?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{r(s?ge(!s):V(null))}}),e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx("main",{className:"flex w-full flex-1 flex-col",children:t||e.jsx(ct,{})}),e.jsx(cv,{})]})},r5=({children:t})=>{const{title:s,sideMenu:n,activeItems:r}=b(h=>h.sideMenu),{hamburgerOpen:c,openNavMenu:u}=b(h=>h.hamburgerMenu),d=ie(),p=c&&u===null,x=u!==null&&!c,g=p||x;return y.useEffect(()=>{const h=()=>{window.innerWidth>1280?d(ge(!1)):window.innerWidth<1280&&d(V(null))};return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(dv,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${g?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${p?"top-[89px] h-[calc(100%-89px)]":""} ${x?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{d(c?ge(!c):V(null))}}),e.jsxs("div",{className:"relative min-h-[calc(100vh-162px)] bg-[#F4F4F4]",children:[e.jsxs("div",{className:"mx-auto flex max-w-[1170px]",children:[e.jsxs("aside",{className:"hidden w-[386px] flex-col p-[24px] xl:flex",children:[e.jsx("span",{className:"mb-[59px] leading-[150%] font-[18px] font-bold text-(--color-primary-dark-blue)",children:s}),e.jsx(Wl,{menu:n,activeItems:r})]}),e.jsxs("main",{className:"min-h-[calc(100vh-162px)] w-full bg-(--color-white) px-[24px] py-[32px] xl:w-[calc(100%-386px)] xl:pb-[90px]",children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),t||e.jsx(ct,{})]})]}),e.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-[calc(100vw/2-585px)] bg-(--color-white)"})]}),e.jsx(cv,{})]})};function Ic(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=Ic(n.children,s);if(r!==null)return r}}return null}const o5=async()=>{const{sitemap:t}=k.getState().sitemap,s=Ic(t,"/fooldal/rolunk"),n=Ic(t,"/fooldal/banner"),r=Ic(t,"/fooldal/szolgaltatasok");return k.dispatch(be("Főoldal")),await $e(),await Ct(),await pt(),await Yt(),{staticSections:{fooldalRolunk:s?await de(s.id):null,fooldalBanner:n?await de(n.id):null,fooldal
78Szolgaltatasok:r?await de(r.id):null}}},c5=()=>{const{article:t}=b(c=>c.article),{style:s}=b(c=>c.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(c=>({...c,href:`/hirek/kategoriak/${c.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},n,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),(t==null?void 0:t.image)&&e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px]",src:t==null?void 0:t.image}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsx("div",{className:`article article--${s} w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},xv=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col gap-[32px] px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},uv=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl()),await $e(x.id,6,k.getState().article.page+1))},[x,u,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},{title:x==null?void 0:x.name}]}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),e.jsx("div",{className:"flex flex-col gap-[48px]",children:x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]})}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},mv=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},pv=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},d5=()=>{const t=oe(),{articles:s}=b(p=>p.article),{style:n}=b(p=>p.config),{categories:r,events:c}=b(p=>p.event),u=r.find(p=>p.name==="Kiállítások"),d=r.find(p=>p.name==="Állandó programok");return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})}),c&&c.length>0&&e.jsx(Kl,{events:c,style:n}),u&&u.length>0&&e.jsx(Kl,{events:u,style:n,title:"Kiállítások",linkText:"Összes kiállítás",link:`/esemenyek/kategoriak/${u.id}`}),d&&d.events.length>0&&e.jsx(Kl,{events:d.events,style:n,title:"Állandó programjaink",linkText:"Összes állandó program",link:`/esemenyek/kategoriak/${d.id}`}),t.staticSections.fooldalBanner&&e.jsx("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col md:w-[720px] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalBanner})}),t.staticSections.fooldalSzolgaltatasok&&e.jsx("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalSzolgaltatasok})}),s.length>0&&e.jsx(pl,{articles:s,style:n,type:"B"})]})},x5=()=>{const{nav:t}=oe();if(t===null)return e.jsx(Me,{children:e.jsx(Bt,{})});const{item:s,parent:n}=t;switch(s.type){case"static":return e.jsx(Me,{children:e.jsx(Ma,{parent:n})});case"events":return e.jsx(Me,{children:e.jsx(pv,{})});case"eventcategories":return e.jsx(Me,{children:e.jsx(mv,{categoryId:s.params.categoryId})});case"documents":return e.jsx(Me,{children:e.jsx(Da,{title:t.item.title,categoryId:void 0,path:s.path})});case"documentcategories":return e.jsx(Me,{children:e.jsx(Qe,{title:t.item.title,categoryId:s.params.categoryId})});case"navonly":return e.jsx(Me,{children:e.jsx($a,{title:t.item.title,children:s.children})});case"contacts":return e.jsx(Me,{children:e.jsx(Oa,{})});case"form":return e.jsx(Me,{children:e.jsx(Ha,{title:t.item.title,formId:s.params.formId})});case"faq":case"faqcategories":return e.jsx(Me,{children:e.jsx(Aa,{})});case"issues":return e.jsx(Me,{children:e.jsx(ma,{})});case"regulations":return e.jsx(Me,{children:e.jsx(pa,{})});case"decisions":return e.jsx(Me,{children:e.jsx(fa,{})});case"announcements":return e.jsx(Me,{children:e.jsx(ha,{})});case"representatives":case"vicemayorsonly":return e.jsx(Me,{children:e.jsx(Ua,{title:"Képviselők",withoutViceMayors:s.type==="vicemayorsonly"})});case"representativesonly":return e.jsx(Me,{children:e.jsx(Pa,{title:"Alpolgármesterek"})});case"newscategories":return e.jsx(Me,{children:e.jsx(uv,{title:t.item.title,categoryId:t.item.params.categoryId})});case"organisation_contacts":return e.jsx(Me,{children:e.jsx(La,{title:t.item.title})});case"card_acceptors":return e.jsx(Me,{children:e.jsx(Ba,{title:t.item.title})});case"news":return e.jsx(Me,{children:e.jsx(xv,{title:t.item.title})});case"smartmaptypes":return e.jsx(Me,{children:e.jsx(Ia,{title:t.item.title,typeId:t.item.params.typeId})})}return e.jsx(Me,{children:e.jsx(Bt,{})})},u5=[{children:[{children:[{element:e.jsx(d5,{}),loader:o5,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(xv,{}),loader:Et,path:"hirek"},{element:e.jsx(c5,{}),loader:at,path:"hirek/:id"},{element:e.jsx(uv,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(pv,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(mv,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(i5,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(r5,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(x5,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],fv=()=>{const{logoImage:t,newsletterSubscribe:s,style:n,footerText:r,footerAddresses:c,footerEmails:u,footerPhones:d,footerNav:p}=b(x=>x.config);return e.jsx(e.Fragment,{children:e.jsxs("div",{className:`footer footer--${n} relative ${s?"mt-[200px] md:mt-[100px] xl:mt-[48px]":"mt-0"} h-full w-full`,children:[e.jsx("div",{className:"absolute inset-0 mx-auto h-full w-full max-w-[1170px] overflow-hidden py-3",children:e.jsx("img",{src:"/svgs
78/footer_dark_blue_image.svg",alt:"Háttér",className:"lgtablet:object-right h-full w-full object-contain object-center"})}),e.jsx("div",{className:"flex flex-row justify-between gap-12"}),e.jsxs("div",{className:`relative z-20 mx-auto w-full max-w-[1170px] px-[16px] ${s?"lgtablet:pt-[84px] pt-[128px]":"pt-[26px]"} xl:px-[0]`,children:[e.jsxs("div",{className:"flex w-full flex-col justify-center gap-[45px] text-center md:flex-row md:text-left xl:justify-start",children:[e.jsxs("div",{className:"grid w-[100%] auto-rows-min grid-cols-1 gap-3 text-start md:w-[318px]",children:[e.jsx("img",{src:t,alt:"Újbuda logó",className:"mx-auto md:mx-0",style:n==="idosekhaza"?{}:{filter:"brightness(0) invert(1)"}}),e.jsx("p",{className:"row-start-3 text-xs",children:r}),c.length>0&&e.jsxs("div",{className:"row-start-4 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/address.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:c.map(x=>e.jsx("p",{children:x}))})]}),u.length>0&&e.jsxs("div",{className:"row-start-5 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 min-w-8 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/email.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:u.map(x=>e.jsxs("p",{children:[x.description&&x.description.trim().length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:x.description}),e.jsx("br",{})]}),e.jsx("a",{href:`mailto:${x.email}`,className:"underline",children:x.email})]}))})]}),d.length>0&&e.jsxs("div",{className:"row-start-6 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/phone.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"flex flex-col gap-3",children:d.map(x=>e.jsxs("div",{className:"text-[12px] leading-[150%]",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase",children:x.name}),e.jsx("p",{className:"leading-[110%] font-bold",children:x.phone})]}))})]})]}),e.jsx("div",{className:"flex flex-wrap gap-x-[45px] gap-y-[42px] md:mt-[63px]",children:p.map(x=>e.jsxs("div",{className:"flex w-[100%] flex-col gap-3 text-[12px] md:w-[318px] xl:w-[239px]",children:[e.jsx("h2",{className:"leading-[150%] font-bold uppercase",children:x.title}),x.children.map(g=>e.jsx(_,{target:g.external?"_blank":"",to:g.external?g.external_link:g.path,className:"row-start-4",children:g.title}))]}))})]}),e.jsx("div",{className:"mt-6 h-[1px] w-full bg-white"}),e.jsx("div",{className:"lgtablet:flex-row tablet:px-0 flex flex-col-reverse items-center justify-center gap-4 px-5 py-6",children:e.jsx("p",{className:"text-[10px] font-bold text-white",children:"Újbuda Önkormányzat - Minden jog fenntartva"})})]}),e.jsx(Jl,{type:"newsletter"}),s&&e.jsx(es,{})]})})},hv=()=>{var u;const t=_e(),{openNavMenu:s}=b(d=>d.hamburgerMenu),n=b(d=>d.config),r=ie(),c=s!==null?((u=n.mainNav.find(d=>d.id===s))==null?void 0:u.children)||[]:[];return e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"navbar relative z-200 flex flex-col justify-center gap-4 bg-white px-6 py-3 shadow-xl xl:pb-3",children:[e.jsxs("div",{className:"mx-auto hidden w-full max-w-[1170px] flex-col xl:flex",children:[e.jsxs("div",{className:"hidden flex-row justify-between xl:flex",children:[e.jsx("div",{className:"flex flex-row items-center gap-4",children:n.highlightedInformations.map((d,p)=>e.jsxs(e.Fragment,{children:[e.jsx(_,{to:d.path,className:"text-[12px] leading-[150%]",children:d.title}),p<n.highlightedInformations.length-1&&e.jsx("div",{className:"divider"})]}))}),e.jsxs("div",{className:"ml-auto flex flex-row gap-6",children:[e.jsx("div",{className:"flex flex-row items-center gap-6 text-[12px] leading-[150%]",children:n.topNav.map(d=>e.jsx(_,{to:d.external?d.external_link:d.path,target:d.external?"_blank":"",children:d.title}))}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider mr-[25px]"})]}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[n.socialLinkFacebook&&e.jsx("a",{target:"_blank",href:n.socialLinkFacebook,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs
78/facebook_icon.svg",alt:"Facebook"})}),n.socialLinkTiktok&&e.jsx("a",{target:"_blank",href:n.socialLinkTiktok,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n.socialLinkInstagram&&e.jsx("a",{target:"_blank",href:n.socialLinkInstagram,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),n.socialLinkYoutube&&e.jsx("a",{target:"_blank",href:n.socialLinkYoutube,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]})]}),(n.highlightedInformations.length>0||n.topNav.length>0||n.socialLinkFacebook||n.socialLinkTikTok||n.socialLinkInstagram||n.socialLinkYoutube)&&e.jsx("div",{className:"h-[12px]"}),e.jsxs("div",{className:"flex h-[49px] flex-row items-center gap-6",children:[e.jsx(_,{to:"/",className:"mr-auto shrink-0",onClick:()=>r(V(null)),children:e.jsx("img",{src:n.logoImage,alt:`${n.title} logó`,className:"max-h-[49px] max-w-[205px]"})}),e.jsx("ul",{className:"hidden h-full w-full flex-row items-center justify-start gap-[24px] overflow-x-hidden pl-[5px] whitespace-nowrap xl:flex",children:n.mainNav.map((d,p)=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>{d.children.length>0?r(V(s===d.id?null:d.id)):(d.external?window.open(d.external_link):t(d.path),r(V(null)))},className:"flex cursor-pointer flex-row items-center gap-1 text-[12px] font-bold",children:[d.title,d.children.length>0&&e.jsx("img",{src:"/svgs/green_dropdown_icon.svg",alt:"Nyíl"})]})},p))}),e.jsx(_,{to:"/kereses",onClick:()=>r(V(null)),children:e.jsx("div",{className:"search-button bg-primary-dark-blue flex h-[48px] w-[48px] cursor-pointer items-center justify-center rounded-[4px] text-white",children:e.jsx("img",{src:"/svgs/search_icon.svg",alt:"Keresés"})})}),e.jsx(_,{to:"https://ujbuda.hu",target:"_blank",className:"hidden h-[49px] w-[191px] xl:flex",children:e.jsx("div",{className:"cta-button bg-primary-dark-blue flex w-full cursor-pointer items-center rounded-[4px] px-6 text-[12px] font-bold whitespace-nowrap text-white",children:"Újbuda Önkormányzat"})})]})]}),e.jsx(Xl,{})]}),s&&e.jsx(Zl,{items:c,onClose:()=>r(V(null))})]})},el=({children:t})=>{const{hamburgerOpen:s,openNavMenu:n}=b(p=>p.hamburgerMenu),r=ie(),c=s&&n===null,u=n!==null&&!s,d=c||u;return y.useEffect(()=>{const p=()=>{window.innerWidth>1280?r(ge(!1)):window.innerWidth<1280&&r(V(null))};return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(hv,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${d?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${c?"top-[89px] h-[calc(100%-89px)]":""} ${u?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{r(s?ge(!s):V(null))}}),e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx("main",{className:"flex w-full flex-1 flex-col",children:t||e.jsx(ct,{})}),e.jsx(fv,{})]})},m5=({children:t})=>{const{title:s,sideMenu:n,activeItems:r}=b(h=>h.sideMenu),{hamburgerOpen:c,openNavMenu:u}=b(h=>h.hamburgerMenu),d=ie(),p=c&&u===null,x=u!==null&&!c,g=p||x;return y.useEffect(()=>{const h=()=>{window.innerWidth>1280?d(ge(!1)):window.innerWidth<1280&&d(V(null))};return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(hv,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${g?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${p?"top-[89px] h-[calc(100%-89px)]":""} ${x?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{d(c?ge(!c):V(null))}}),e.jsxs("div",{className:"relative min-h-[calc(100vh-162px)] bg-[#F4F4F4]",children:[e.jsxs("div",{className:"mx-auto flex max-w-[1170px]",children:[e.jsxs("aside",{className:"hidden w-[386px] flex-col p-[24px] xl:flex",children:[e.jsx("span",{className:"mb-[59px] leading-[150%] font-[18px] font-bold text-(--color-primary-dark-blue)",children:s}),e.jsx(Wl,{menu:n,activeItems:r})]}),e.jsxs("main",{className:"min-h-[calc(100vh-162px)] w-full bg-(--color-white) px-[24px] py-[32px] xl:w-[calc(100%-386px)] xl:pb-[90px]",children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),t||e.jsx(ct,{})]})]}),e.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-[calc(100vw/2-585px)] bg-(--color-white)"})]}),e.jsx(fv,{})]})};function Fc(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=Fc(n.children,s);if(r!==null)return r}}return null}const p5=async()=>{const{sitemap:t}=k.getState().sitemap,s=Fc(t,"/fooldal/rolunk"),n=Fc(t,"/fooldal/linkek"),r=Fc(t,"/fooldal/banner");return k.dispatch(be("Főoldal")),await $e(),await Ra(),await Ct(),await pt(),await Yt(),{staticSections:{fooldalRolunk:s?await de(s.id):null,fooldalLinkek:n?await de(n.id):null,fooldalBanner:r?await de(r.
78id):null}}},f5=()=>{const{article:t}=b(c=>c.article),{style:s}=b(c=>c.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(c=>({...c,href:`/hirek/kategoriak/${c.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},n,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),(t==null?void 0:t.image)&&e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px]",src:t==null?void 0:t.image}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsx("div",{className:`article article--${s} w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},gv=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},jv=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl(!0)),await $e(x.id,6,k.getState().article.page+1))},[x,u,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},{title:x==null?void 0:x.name}]}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},vv=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[28px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},bv=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},h5=()=>{const t=oe(),{articles:s}=b(c=>c.article),{style:n}=b(c=>c.config),{events:r}=b(c=>c.event);return e.jsxs("div",{className:"static-page--klimabarat mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})}),s.length>0&&e.jsx(pl,{articles:s,style:n,type:"B"}),r&&r.length>0&&e.jsx(Kl,{events:r,style:n}),t.staticSections.fooldalLinkek&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalLinkek})}),t.staticSections.fooldalBanner&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalBanner})})]})},g5=()=>{const{nav:t}=oe();if(t===null)return e.jsx(el,{children:e.jsx(Bt,{})});const{item:s,parent:n}=t;switch(s.type){case"static":return e.jsx(el,{children:e.jsx(Ma,{parent:n})});case"events":return e.jsx(el,{children:e.jsx(bv,{})});case"eventcategories":return e.jsx(el,{children:e.jsx(vv,{categoryId:s.params.categoryId})});case"documents":return e.jsx(el,{children:e.jsx(Da,{title:t.item.title,categoryId:void 0,path:s.path})});case"documentcategories":return e.jsx(el,{children:e.jsx(Qe,{title:t.item.title,categoryId:s.params.categoryId})});case"navonly":return e.jsx(el,{children:e.jsx($a,{title:t.item.title,children:s.children})});case"contacts":return e.jsx(el,{children:e.jsx(Oa,{})});case"form":return e.jsx(el,{children:e.jsx(Ha,{title:t.item.title,formId:s.params.formId})});case"faq":case"faqcategories":return e.jsx(el,{children:e.jsx(Aa,{})});case"issues":return e.jsx(el,{children:e.jsx(ma,{})});case"regulations":return e.jsx(el,{children:e.jsx(pa,{})});case"decisions":return e.jsx(el,{children:e.jsx(fa,{})});case"announcements":return e.jsx(el,{children:e.jsx(ha,{})});case"representatives":case"vicemayorsonly":return e.jsx(el,{children:e.jsx(Ua,{title:"Képviselők",withoutViceMayors:s.type==="vicemayorsonly"})});case"representativesonly":return e.jsx(el,{children:e.jsx(Pa,{title:"Alpolgármesterek"})});case"newscategories":return e.jsx(el,{children:e.jsx(jv,{title:t.item.title,categoryId:t.item.params.categoryId})});case"organisation_contacts":return e.jsx(el,{children:e.jsx(La,{title:t.item.title})});case"card_acceptors":return e.jsx(el,{children:e.jsx(Ba,{title:t.item.title})});case"news":return e.jsx(el,{children:e.jsx(gv,{title:t.item.title})});case"smartmaptypes":return e.jsx(el,{children:e.jsx(Ia,{title:t.item.title,typeId:t.item.params.typeId})})}return e.jsx(el,{children:e.jsx(Bt,{})})},j5=[{children:[{children:[{element:e.jsx(h5,{}),loader:p5,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(gv,{}),loader:Et,path:"hirek"},{element:e.jsx(f5,{}),loader:at,path:"hirek/:id"},{element:e.jsx(jv,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(bv,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(vv,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(el,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(m5,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(g5,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],yv=()=>{const{logoImage:t,newsletterSubscribe:s,style:n,footerText:r,footerAddresses:c,footerEmails:u,footerPhones:d,footerNav:p}=b(x=>x.config);return e.jsx(e.Fragment,{children:e.jsxs("div",{className:`footer footer--${n} relative ${s?"mt-[200px] md:mt-[100px] xl:mt-[48px]":"mt-0"} h-full w-full`,children:[e.jsx("div",{className:"absolute inset-0 mx-auto h-full w-full max-w-[1170px] overflow-hidden py-3",children:e.jsx("img",{src:"/svgs
78/footer_dark_blue_image.svg",alt:"Háttér",className:"lgtablet:object-right h-full w-full object-contain object-center"})}),e.jsx("div",{className:"flex flex-row justify-between gap-12"}),e.jsxs("div",{className:`relative z-20 mx-auto w-full max-w-[1170px] px-[16px] ${s?"lgtablet:pt-[84px] pt-[128px]":"pt-[26px]"} xl:px-[0]`,children:[e.jsxs("div",{className:"flex w-full flex-col justify-center gap-[45px] text-center md:flex-row md:text-left xl:justify-start",children:[e.jsxs("div",{className:"grid w-[100%] auto-rows-min grid-cols-1 gap-3 text-start md:w-[318px]",children:[e.jsx("img",{src:t,alt:"Újbuda logó",className:"mx-auto md:mx-0",style:n==="idosekhaza"?{}:{filter:"brightness(0) invert(1)"}}),e.jsx("p",{className:"row-start-3 text-xs",children:r}),c.length>0&&e.jsxs("div",{className:"row-start-4 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/address.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:c.map(x=>e.jsx("p",{children:x}))})]}),u.length>0&&e.jsxs("div",{className:"row-start-5 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 min-w-8 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/email.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:u.map(x=>e.jsxs("p",{children:[x.description&&x.description.trim().length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:x.description}),e.jsx("br",{})]}),e.jsx("a",{href:`mailto:${x.email}`,className:"underline",children:x.email})]}))})]}),d.length>0&&e.jsxs("div",{className:"row-start-6 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/phone.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"flex flex-col gap-3",children:d.map(x=>e.jsxs("div",{className:"text-[12px] leading-[150%]",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase",children:x.name}),e.jsx("p",{className:"leading-[110%] font-bold",children:x.phone})]}))})]})]}),e.jsx("div",{className:"flex flex-wrap gap-x-[45px] gap-y-[42px] md:mt-[63px]",children:p.map(x=>e.jsxs("div",{className:"flex w-[100%] flex-col gap-3 text-[12px] md:w-[318px] xl:w-[239px]",children:[e.jsx("h2",{className:"leading-[150%] font-bold uppercase",children:x.title}),x.children.map(g=>e.jsx(_,{target:g.external?"_blank":"",to:g.external?g.external_link:g.path,className:"row-start-4",children:g.title}))]}))})]}),e.jsx("div",{className:"mt-6 h-[1px] w-full bg-white"}),e.jsx("div",{className:"lgtablet:flex-row tablet:px-0 flex flex-col-reverse items-center justify-center gap-4 px-5 py-6",children:e.jsx("p",{className:"text-[10px] font-bold text-white",children:"Újbuda Önkormányzat - Minden jog fenntartva"})})]}),e.jsx(Jl,{type:"newsletter"}),s&&e.jsx(es,{})]})})},wv=()=>{var u;const t=_e(),{openNavMenu:s}=b(d=>d.hamburgerMenu),n=b(d=>d.config),r=ie(),c=s!==null?((u=n.mainNav.find(d=>d.id===s))==null?void 0:u.children)||[]:[];return e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"navbar relative z-200 flex flex-col justify-center gap-4 bg-white px-6 py-3 shadow-xl xl:pb-3",children:[e.jsxs("div",{className:"mx-auto hidden w-full max-w-[1170px] flex-col xl:flex",children:[e.jsxs("div",{className:"hidden flex-row justify-between xl:flex",children:[e.jsx("div",{className:"flex flex-row items-center gap-4",children:n.highlightedInformations.map((d,p)=>e.jsxs(e.Fragment,{children:[e.jsx(_,{to:d.path,className:"text-[12px] leading-[150%]",children:d.title}),p<n.highlightedInformations.length-1&&e.jsx("div",{className:"divider"})]}))}),e.jsxs("div",{className:"ml-auto flex flex-row gap-6",children:[e.jsx("div",{className:"flex flex-row items-center gap-6 text-[12px] leading-[150%]",children:n.topNav.map(d=>e.jsx(_,{to:d.external?d.external_link:d.path,target:d.external?"_blank":"",children:d.title}))}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider mr-[25px]"})]}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[n.socialLinkFacebook&&e.jsx("a",{target:"_blank",href:n.socialLinkFacebook,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs
78/facebook_icon.svg",alt:"Facebook"})}),n.socialLinkTiktok&&e.jsx("a",{target:"_blank",href:n.socialLinkTiktok,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n.socialLinkInstagram&&e.jsx("a",{target:"_blank",href:n.socialLinkInstagram,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),n.socialLinkYoutube&&e.jsx("a",{target:"_blank",href:n.socialLinkYoutube,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]})]}),(n.highlightedInformations.length>0||n.topNav.length>0||n.socialLinkFacebook||n.socialLinkTikTok||n.socialLinkInstagram||n.socialLinkYoutube)&&e.jsx("div",{className:"h-[12px]"}),e.jsxs("div",{className:"flex h-[49px] flex-row items-center gap-6",children:[e.jsx(_,{to:"/",className:"mr-auto",onClick:()=>r(V(null)),children:e.jsx("img",{src:n.logoImage,alt:`${n.title} logó`,className:"max-h-[49px] max-w-[205px]"})}),e.jsx("ul",{className:"hidden h-full w-full flex-row items-center justify-start gap-[24px] overflow-x-hidden pl-[5px] whitespace-nowrap xl:flex",children:n.mainNav.map((d,p)=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>{d.children.length>0?r(V(s===d.id?null:d.id)):(d.external?window.open(d.external_link):t(d.path),r(V(null)))},className:"flex cursor-pointer flex-row items-center gap-1 text-[12px] font-bold",children:[d.title,d.children.length>0&&e.jsx("img",{src:"/svgs/green_dropdown_icon.svg",alt:"Nyíl"})]})},p))}),e.jsx(_,{to:"/kereses",onClick:()=>r(V(null)),children:e.jsx("div",{className:"search-button bg-primary-dark-blue flex h-[48px] w-[48px] cursor-pointer items-center justify-center rounded-[4px] text-white",children:e.jsx("img",{src:"/svgs/search_icon.svg",alt:"Keresés"})})}),e.jsx(_,{to:"https://ujbuda.hu",target:"_blank",className:"hidden h-[49px] w-[191px] xl:flex",children:e.jsx("div",{className:"cta-button bg-primary-dark-blue flex w-full cursor-pointer items-center rounded-[4px] px-6 text-[12px] font-bold whitespace-nowrap text-white",children:"Újbuda Önkormányzat"})})]})]}),e.jsx(Xl,{})]}),s&&e.jsx(Zl,{items:c,onClose:()=>r(V(null))})]})},tl=({children:t})=>{const{hamburgerOpen:s,openNavMenu:n}=b(p=>p.hamburgerMenu),r=ie(),c=s&&n===null,u=n!==null&&!s,d=c||u;return y.useEffect(()=>{const p=()=>{window.innerWidth>1280?r(ge(!1)):window.innerWidth<1280&&r(V(null))};return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(wv,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${d?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${c?"top-[89px] h-[calc(100%-89px)]":""} ${u?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{r(s?ge(!s):V(null))}}),e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx("main",{className:"flex w-full flex-1 flex-col",children:t||e.jsx(ct,{})}),e.jsx(yv,{})]})},v5=({children:t})=>{const{title:s,sideMenu:n,activeItems:r}=b(h=>h.sideMenu),{hamburgerOpen:c,openNavMenu:u}=b(h=>h.hamburgerMenu),d=ie(),p=c&&u===null,x=u!==null&&!c,g=p||x;return y.useEffect(()=>{const h=()=>{window.innerWidth>1280?d(ge(!1)):window.innerWidth<1280&&d(V(null))};return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(wv,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${g?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${p?"top-[89px] h-[calc(100%-89px)]":""} ${x?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{d(c?ge(!c):V(null))}}),e.jsxs("div",{className:"relative min-h-[calc(100vh-162px)] bg-[#F4F4F4]",children:[e.jsxs("div",{className:"mx-auto flex max-w-[1170px]",children:[e.jsxs("aside",{className:"hidden w-[386px] flex-col p-[24px] xl:flex",children:[e.jsx("span",{className:"mb-[59px] leading-[150%] font-[18px] font-bold text-(--color-primary-dark-blue)",children:s}),e.jsx(Wl,{menu:n,activeItems:r})]}),e.jsxs("main",{className:"min-h-[calc(100vh-162px)] w-full bg-(--color-white) px-[24px] py-[32px] xl:w-[calc(100%-386px)] xl:pb-[90px]",children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),t||e.jsx(ct,{})]})]}),e.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-[calc(100vw/2-585px)] bg-(--color-white)"})]}),e.jsx(yv,{})]})};function Nv(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=Nv(n.children,s);if(r!==null)return r}}return null}const b5=async()=>{const{sitemap:t}=k.getState().sitemap,s=Nv(t,"/fooldal/rolunk");return k.dispatch(be("Főoldal")),await cl("7"),await $e(),await Ra(),await Ct(),await pt(),await Yt(),await vl(),{staticSections:{fooldalRolunk:s?await de(s.id):null}}},y5=()=>{const{article:t}=b(c=>c.article),{style:s}=b(c=>c.config),n=t!=null&&t.articleCategories&&(t==null?void 0:t.articleCategories.length)>0?{title:t==null?void 0:t.articleCategories[0].name,href:`/hirek/kategoriak/${t==null?void 0:t.articleCategories[0].id}`}:{title:"",href:""},r=t==null?void 0:t.articleCategories.map(c=>({...c,href:`/hirek/kategoriak/${c.id}`}));return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[96px] w-full px-[16px] md:w-[720px] md:px-0 xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"}
78,n,{title:t==null?void 0:t.title}]}),e.jsx("h2",{className:"font-secondary-bold mb-[12px] text-[32px] leading-[120%] text-[#54504D]",children:t==null?void 0:t.title}),e.jsx(et,{className:"mb-[24px]",tags:r,updated:new Date(((t==null?void 0:t.datePublished)||0)*1e3)}),e.jsx("div",{className:"mb-[24px] text-[18px] leading-[150%] font-bold",children:t==null?void 0:t.lead}),e.jsx("img",{alt:(t==null?void 0:t.headline_image_title)===""?t==null?void 0:t.title:t==null?void 0:t.headline_image_title,className:"mb-[24px] w-full",src:t==null?void 0:t.image}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsx("div",{className:`article article--${s} w-full max-w-3xl text-[18px] leading-[150%]`,dangerouslySetInnerHTML:{__html:t==null?void 0:t.article}})}),(t==null?void 0:t.youtubeEmbedUrl)&&e.jsx(Nl,{className:"mt-[24px]",url:t==null?void 0:t.youtubeEmbedUrl,title:`${t==null?void 0:t.title} - videó`}),(t==null?void 0:t.events)&&(t==null?void 0:t.events.length)>0&&e.jsx(Ll,{className:"mt-[24px]",events:t==null?void 0:t.events,title:"Kapcsolódó események"}),(t==null?void 0:t.gallery)&&(t==null?void 0:t.gallery.length)>0&&e.jsx(hl,{className:"mt-[24px]",images:t==null?void 0:t.gallery,title:"Galéria"}),(t==null?void 0:t.documents)&&t.documents.length>0&&e.jsx(gl,{className:"mt-[24px]",title:"Kapcsolódó dokumentumok",documents:t==null?void 0:t.documents}),(t==null?void 0:t.relatedLinks)&&t.relatedLinks.length>0&&e.jsx(jl,{className:"mt-[24px]",title:"Kapcsolódó hivatkozások",links:t==null?void 0:t.relatedLinks})]})},kv=()=>{const{categories:t}=b(r=>r.article),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.articles.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek"}]}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),t.length>0&&e.jsx(Hl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},_v=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/hirek")},[]);const r=ie(),c=Be(),{articles:u,categories:d}=b(h=>h.article),{style:p}=b(h=>h.config),x=d.find(h=>h.id==(t||c.id)),g=y.useCallback(async()=>{var v;const h=(v=document.querySelector(".lazy-loader"))==null?void 0:v.getBoundingClientRect();h&&h.top>0&&h.top<window.innerHeight&&k.getState().article.hasMore===!0&&k.getState().article.inProgress===!1&&(r(fl(!0)),await $e(x.id,6,k.getState().article.page+1))},[x.id,u,r]);return y.useEffect(()=>(window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}),[g]),e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]",items:[{title:"Hírek",href:"/hirek"},{title:x==null?void 0:x.name}]}),e.jsx("h1",{className:`title--${p} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Hírek"}),x&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:x.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(h=>e.jsx(_,{to:`/hirek/${h.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:h})},h.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(x===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Ev=({categoryId:t})=>{const s=_e(),{redirect:n}=oe();y.useEffect(()=>{n===!0&&s("/esemenyek")},[]);const r=Be(),{style:c}=b(x=>x.config),{events:u,categories:d}=b(x=>x.event),p=d.find(x=>t?t==x.id:x.id==r.id);return e.jsxs("div",{className:"mx-auto mt-[24px] mb-[64px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[28px]",items:[{title:"Események",href:"/esemenyek"},{title:p==null?void 0:p.name,href:`/esemenyek/kategoriak/${p==null?void 0:p.id}`}]}),e.jsx("h1",{className:`title--${c} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),p&&e.jsxs("div",{children:[e.jsx("div",{className:"mb-[16px] flex justify-between border-b-1 border-[#
78E4E5E7]",children:e.jsx("h2",{className:"font-secondary-bold mb-[7.5px] text-[24px] leading-[120%] text-[#54504D]",children:p.name})}),e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"flex flex-wrap gap-[24px]",children:u&&u.map(x=>e.jsx(_,{to:`/esemenyek/${x.id}`,className:`w-full md:w-[calc(100%/3-16px)] event-color--${c}`,children:e.jsx(Nt,{event:{...x,size:"M"}})},x.id))}),e.jsx("div",{className:"lazy-loader min-h-[1px] w-full"})]})]}),(p===void 0||u.length===0)&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},Sv=()=>{const{categories:t}=b(r=>r.event),{style:s}=b(r=>r.config),n=t.reduce((r,c)=>r+c.events.length,0);return e.jsxs("div",{className:"mx-auto mt-[24px] flex w-[100%] flex-col px-[16px] pb-4 md:w-[720px] md:px-[0] xl:mb-[96px] xl:w-[1170px]",children:[e.jsx(G,{className:"mb-[26px]"}),e.jsx("h1",{className:`title--${s} font-secondary-bold mb-[16px] text-[32px] leading-[120%] text-(--color-primary-dark-blue)`,children:"Események"}),t.length>0&&e.jsx(dl,{categories:t,style:s}),n===0&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ce,{className:"items-center text-center"})})]})},w5=({newsCategory:t,style:s,title:n})=>e.jsxs("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:[e.jsxs("div",{className:"mb-[28px] flex justify-between border-b-1 border-[#E4E5E7]",children:[e.jsx("h2",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:n}),e.jsxs(_,{to:`/hirek/kategoriak/${t.id}`,className:`flex items-center gap-[6px] link--${s}`,children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold",children:"Összes hírünk"}),e.jsx(Ja,{className:"fill-current"})]})]}),e.jsx("div",{className:"flex items-start gap-[24px]",children:e.jsx("div",{className:"flex w-full flex-wrap gap-[24px]",children:t.articles.slice(0,6).map(r=>e.jsx(_,{to:`/hirek/${r.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:r,size:"m",borderColor:"var(--color-primary-dark-blue)"})},r.id))})})]}),N5=({applicationsCategory:t,style:s,title:n})=>e.jsxs("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:[e.jsxs("div",{className:"mb-[28px] flex justify-between border-b-1 border-[#E4E5E7]",children:[e.jsx("h2",{className:"font-secondary-bold py-[7.5px] text-[24px] leading-[120%] text-(--color-primary-dark-blue)",children:n}),e.jsxs(_,{to:`/hirek/kategoriak/${t.id}`,className:`flex items-center gap-[6px] link--${s}`,children:[e.jsx("span",{className:"text-[12px] leading-[100%] font-bold",children:"Összes pályázatunk"}),e.jsx(Ja,{className:"fill-current"})]})]}),e.jsx("div",{className:"flex items-start gap-[24px]",children:e.jsx("div",{className:"flex w-full flex-wrap gap-[24px]",children:t.articles.slice(0,6).map(r=>e.jsx(_,{to:`/hirek/${r.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:r,size:"m",borderColor:"var(--color-primary-dark-blue)"})},r.id))})})]}),k5=()=>{const t=oe(),{categories:s}=b(d=>d.article),{style:n}=b(d=>d.config),{events:r}=b(d=>d.event),c=s.find(d=>d.name==="Újbuda Ifjúságügy Hírek"),u=s.find(d=>d.name==="Újbuda Ifjúságügy Pályázatok");return e.jsxs("div",{className:"mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})}),c&&e.jsx(w5,{newsCategory:c,style:n,title:"Hírek, aktualitások"}),u&&e.jsx(N5,{applicationsCategory:u,style:n,title:"Pályázatok, felhívások"}),r&&r.length>0&&e.jsx(Kl,{events:r,style:n}),t.staticSections.fooldalPalyazatiFelhivasok&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalPalyazatiFelhivasok})})]})},_5=()=>{const{nav:t}=oe();if(t===null)return e.jsx(tl,{children:e.jsx(Bt,{})});const{item:s,parent:n}=t;switch(s.type){case"static":return e.jsx(tl,{children:e.jsx(Ma,{parent:n})});case"events":return e.jsx(tl,{children:e.jsx(Sv,{})});case"eventcategories":return e.jsx(tl,{children:e.jsx(Ev,{categoryId:s.params.categoryId})});case"documents":return e.jsx(tl,{children:e.jsx(Da,{title:t.item.title,categoryId:void 0,path:s.path})});case"documentcategories":return e.jsx(tl,{children:e.jsx(Qe,{title:t.item.title,categoryId:s.params.categoryId})});case"navonly":return e.jsx(tl,{children:e.jsx($a,{title:t.item.title,children:s.children})});case"contacts":return e.jsx(tl,{children:e.jsx(Oa,{})});case"form":return e.jsx(tl,{children:e.jsx(Ha,{title:t.item.title,formId:s.params.formId})});case"faq":case"faqcategories":return e.jsx(tl,{children:e.jsx(Aa,{})});case"issues":return e.jsx(tl,{children:e.jsx(ma,{})});case"regulations":return e.jsx(tl,{children:e.jsx(pa,{})});case"decisions":return e.jsx(tl,{children:e.jsx(fa,{})});case"announcements":return e.jsx(tl,{children:e.jsx(ha,{})});case"representatives":case"vicemayorsonly":return e.jsx(tl,{children:e.jsx(Ua,{title:"Képviselők",withoutViceMayors:s.type==="vicemayorsonly"})});case"representativesonly":return e.jsx(tl,{children:e.jsx(Pa,{title:"Alpolgármesterek"})});case"newscategories":return e.jsx(tl,{children:e.jsx(_v,{title:t.item.title,categoryId:t.
78item.params.categoryId})});case"organisation_contacts":return e.jsx(tl,{children:e.jsx(La,{title:t.item.title})});case"card_acceptors":return e.jsx(tl,{children:e.jsx(Ba,{title:t.item.title})});case"news":return e.jsx(tl,{children:e.jsx(kv,{title:t.item.title})});case"smartmaptypes":return e.jsx(tl,{children:e.jsx(Ia,{title:t.item.title,typeId:t.item.params.typeId})})}return e.jsx(tl,{children:e.jsx(Bt,{})})},E5=[{children:[{children:[{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(k5,{}),loader:b5,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(kv,{}),loader:Et,path:"hirek"},{element:e.jsx(y5,{}),loader:at,path:"hirek/:id"},{element:e.jsx(_v,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Sv,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(Ev,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(tl,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(v5,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(_5,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],Cv=()=>{const{logoImage:t,newsletterSubscribe:s,style:n,footerText:r,footerAddresses:c,footerEmails:u,footerPhones:d,footerNav:p}=b(x=>x.config);return e.jsx(e.Fragment,{children:e.jsxs("div",{className:`footer footer--${n} relative ${s?"mt-[200px] md:mt-[100px] xl:mt-[48px]":"mt-0"} mt-auto h-full w-full`,children:[e.jsx("div",{className:"absolute inset-0 mx-auto h-full w-full max-w-[1170px] overflow-hidden py-3",children:e.jsx("img",{src:"/svgs/footer_dark_blue_image.svg",alt:"Háttér",className:"lgtablet:object-right h-full w-full object-contain object-center"})}),e.jsx("div",{className:"flex flex-row justify-between gap-12"}),e.jsxs("div",{className:`relative z-20 mx-auto w-full max-w-[1170px] px-[16px] ${s?"lgtablet:pt-[84px] pt-[128px]":"pt-[26px]"} xl:px-[0]`,children:[e.jsxs("div",{className:"flex w-full flex-col justify-center gap-[45px] text-center md:flex-row md:text-left xl:justify-start",children:[e.jsxs("div",{className:"grid w-[100%] auto-rows-min grid-cols-1 gap-3 text-start md:w-[318px]",children:[e.jsx("img",{src:t,alt:"Újbuda logó",className:"mx-auto md:mx-0",style:n==="idosekhaza"?{}:{filter:"brightness(0) invert(1)"}}),e.jsx("p",{className:"row-start-3 text-xs",children:r}),c.length>0&&e.jsxs("div",{className:"row-start-4 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/address.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:c.map(x=>e.jsx("p",{children:x}))})]}),u.length>0&&e.jsxs("div",{className:"row-start-5 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 min-w-8 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/email.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"text-[12px] leading-[150%]",children:u.map(x=>e.jsxs("p",{children:[x.description&&x.description.trim().length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:x.description}),e.jsx("br",{})]}),e.jsx("a",{href:`mailto:${x.email}`,className:"underline",children:x.email})]}))})]}),d.length>0&&e.jsxs("div",{className:"row-start-6 flex flex-row items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 shrink-0 place-self-start rounded-sm bg-white p-2",children:e.jsx("img",{src:"/svgs/phone.svg",alt:"Beszélő ember ikon"})}),e.jsx("div",{className:"flex flex-col gap-3",children:d.map(x=>e.jsxs("div",{className:"text-[12px] leading-[150%]",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase",children:x.name}),e.jsx("p",{className:"leading-[110%] font-bold",children:x.phone})]}))})]})]}),e.jsx("div",{className:"flex flex-wrap gap-x-[45px] gap-y-[42px] md:mt-[63px]",children:p.map(x=>e.jsxs("div",{className:"flex w-[100%] flex-col gap-3 text-[12px] md:w-[318px] xl:w-[239px]",children:[e.jsx("h2",{className:"leading-[150%] font-bold uppercase",children:x.title}),x.children.map(g=>e.jsx(_,{target:g.external?"_blank":"",to:g.external?g.external_link:g.path,className:"row-start-4",children:g.title}))]}))})]}),e.jsx("div",{className:"mt-6 h-[1px] w-full bg-white"}),e.jsx("div",{className:"lgtablet:flex-row tablet:px-0 flex flex-col-reverse items-center justify-center gap-4 px-5 py-6",children:e.jsx("p",{className:"text-[10px] font-bold text-white",children:"Újbuda Önkormányzat - Minden jog fenntartva"})})]}),e.jsx(Jl,{type:"newsletter"}),s&&e.jsx(es,{})]})})},zv=()=>{var u;const t=_e(),{openNavMenu:s}=b(d=>d.hamburgerMenu),n=b(d=>d.config),r=ie(),c=s!==null?((u=n.mainNav.find(d=>d.id===s))==null?void 0:u.children)||[]:[];return e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"navbar relative z-200 flex flex-col justify-center gap-4 bg-white px-6 py-3 shadow-xl xl:pb-3",children:[e.jsxs("div",{className:"mx-auto hidden w-full max-w-[1170px] flex-col xl:flex",children:[e.jsxs("div",{className:"hidden flex-row justify-between xl:flex",children:[e.jsx("div",{className:"flex flex-row items-center gap-4",children:n.highlightedInformations.map((d,p)=>e.jsxs(e.Fragment,{children:[e.jsx(_,{to:d.path,className:"text-[12px] leading-[150%]",children:d.title}),p<n.highlightedInformations.length-1&&e.jsx("div",{className:"divider"})]}))}),e.jsxs("div",{className:"ml-auto flex flex-row gap-6",children:[e.jsx("div",{className:"flex flex-row items-center gap-6 text-[12px] leading-[150%]",children:n.topNav.map(d=>e.jsx(_,{to:d.external?d.external_link:d.path,target:d.external?"_blank":"",children:d.title}))}),(n.socialLinkFacebook||n.socialLinkTiktok||n.socialLinkInstagram||n.socialLinkYoutube)&&n.topNav.length>0&&e.jsx("div",{className:"divider mr-[25px]"})]}),e.jsxs("div",{className:"flex flex-row items-center gap-6",children:[n.socialLinkFacebook&&e.jsx("a",{target:"_blank",href:n.socialLinkFacebook,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs
78/facebook_icon.svg",alt:"Facebook"})}),n.socialLinkTiktok&&e.jsx("a",{target:"_blank",href:n.socialLinkTiktok,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/tiktok_icon.svg",alt:"TikTok"})}),n.socialLinkInstagram&&e.jsx("a",{target:"_blank",href:n.socialLinkInstagram,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/instagram_icon.svg",alt:"Instagram icon"})}),n.socialLinkYoutube&&e.jsx("a",{target:"_blank",href:n.socialLinkYoutube,className:"social-icon bg-primary-dark-blue flex h-[24px] w-[24px] items-center justify-center rounded-full p-[6px] text-white",children:e.jsx("img",{src:"/svgs/youtube_icon.svg",alt:"YouTube"})})]})]}),(n.highlightedInformations.length>0||n.topNav.length>0||n.socialLinkFacebook||n.socialLinkTikTok||n.socialLinkInstagram||n.socialLinkYoutube)&&e.jsx("div",{className:"h-[12px]"}),e.jsxs("div",{className:"flex h-[49px] flex-row items-center gap-6",children:[e.jsx(_,{to:"/",className:"mr-auto shrink-0",onClick:()=>r(V(null)),children:e.jsx("img",{src:n.logoImage,alt:`${n.title} logó`,className:"max-h-[49px] max-w-[205px]"})}),e.jsx("ul",{className:"hidden h-full w-full flex-row items-center justify-start gap-[24px] overflow-x-hidden pl-[5px] whitespace-nowrap xl:flex",children:n.mainNav.map((d,p)=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>{d.children.length>0?r(V(s===d.id?null:d.id)):(d.external?window.open(d.external_link):t(d.path),r(V(null)))},className:"flex cursor-pointer flex-row items-center gap-1 text-[12px] font-bold",children:[d.title,d.children.length>0&&e.jsx("img",{src:"/svgs/green_dropdown_icon.svg",alt:"Nyíl"})]})},p))}),e.jsx(_,{to:"/kereses",onClick:()=>r(V(null)),children:e.jsx("div",{className:"search-button bg-primary-dark-blue flex h-[48px] w-[48px] cursor-pointer items-center justify-center rounded-[4px] text-white",children:e.jsx("img",{src:"/svgs/search_icon.svg",alt:"Keresés"})})}),e.jsx(_,{to:"https://ujbuda.hu",target:"_blank",className:"hidden h-[49px] w-[191px] xl:flex",children:e.jsx("div",{className:"cta-button bg-primary-dark-blue flex w-full cursor-pointer items-center rounded-[4px] px-6 text-[12px] font-bold whitespace-nowrap text-white",children:"Újbuda Önkormányzat"})})]})]}),e.jsx(Xl,{})]}),s&&e.jsx(Zl,{items:c,onClose:()=>r(V(null))})]})},Pt=({children:t})=>{const{hamburgerOpen:s,openNavMenu:n}=b(p=>p.hamburgerMenu),r=ie(),c=s&&n===null,u=n!==null&&!s,d=c||u;return y.useEffect(()=>{const p=()=>{window.innerWidth>1280?r(ge(!1)):window.innerWidth<1280&&r(V(null))};return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(zv,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${d?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${c?"top-[89px] h-[calc(100%-89px)]":""} ${u?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{r(s?ge(!s):V(null))}}),e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),e.jsx("main",{className:"flex w-full flex-1 flex-col",children:t||e.jsx(ct,{})}),e.jsx(Cv,{})]})},Tv=({children:t})=>{const{title:s,sideMenu:n,activeItems:r}=b(h=>h.sideMenu),{hamburgerOpen:c,openNavMenu:u}=b(h=>h.hamburgerMenu),d=ie(),p=c&&u===null,x=u!==null&&!c,g=p||x;return y.useEffect(()=>{const h=()=>{window.innerWidth>1280?d(ge(!1)):window.innerWidth<1280&&d(V(null))};return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]),e.jsxs("div",{className:"relative flex min-h-screen w-full flex-col",children:[e.jsx(zv,{}),e.jsx(wt,{}),e.jsx("div",{className:`absolute left-0 z-190 min-h-[calc(100vh-89px)] w-full bg-black/50 transition-all ${g?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"} ${p?"top-[89px] h-[calc(100%-89px)]":""} ${x?"top-[162px] h-[calc(100%-162px)]":""} `,onClick:()=>{d(c?ge(!c):V(null))}}),e.jsxs("div",{className:"relative min-h-[calc(100vh-162px)] bg-[#F4F4F4]",children:[e.jsxs("div",{className:"mx-auto flex max-w-[1170px]",children:[e.jsxs("aside",{className:"hidden w-[386px] flex-col p-[24px] xl:flex",children:[e.jsx("span",{className:"mb-[59px] leading-[150%] font-[18px] font-bold text-(--color-primary-dark-blue)",children:s}),e.jsx(Wl,{menu:n,activeItems:r})]}),e.jsxs("main",{className:"min-h-[calc(100vh-162px)] w-full bg-(--color-white) px-[24px] py-[32px] xl:w-[calc(100%-386px)] xl:pb-[90px]",children:[e.jsx("div",{className:"mt-[-1px] h-[1px] w-full",id:"fo-tartalom"}),t||e.jsx(ct,{})]})]}),e.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-[calc(100vw/2-585px)] bg-(--color-white)"})]}),e.jsx(Cv,{})]})};function Vl(t,s){for(const n of t){if(n.path===s)return n;if(n.children&&n.children.length>0){const r=Vl(n.children,s);if(r!==null)return r}}return null}const Rv=async()=>{const{sitemap:t}=k.getState().sitemap,s=Vl(t,"/fooldal/atlathato-kiemelt-tartalmak"),n=Vl(t,"/fooldal/allattartas-kiemelt-tartalmak"),r=Vl(t,"/fooldal/rolunk"),c=Vl(t,"/fooldal/hasznos-informaciok"),u=Vl(t,"/fooldal/banner"),d=Vl(t,"/fooldal/palyazatok"),p=Vl(t,"/fooldal/aktualitasok"),x=Vl(t,"/fooldal/demo-rolunk"),g=Vl(t,"/fooldal/demo-linkek"),h=Vl(t,"/fooldal/demo-banner"),v=Vl(t,"/fooldal/demo-palyazatok"),N=Vl(t,"/fooldal/demo-idezet"),C=Vl(t,"/fooldal/demo-tartalom");return k.dispatch(be("Főoldal")),await $e(),await Ra(),await lv(),await Ct(),await pt(),await Yt(),{staticSections:{atlathatoKiemeletTartalmak:s?await de(s.id):null,allattartasKiemeltTartalmak:n?await de(n.id):null,fooldalRolunk:r?await de(r.
78id):null,fooldalHasznosInformaciok:c?await de(c.id):null,fooldalBanner:u?await de(u.id):null,fooldalPalyazatok:d?await de(d.id):null,fooldalAktualitasok:p?await de(p.id):null,fooldalDemoRolunk:x?await de(x.id):null,fooldalDemoLinkek:g?await de(g.id):null,fooldalDemoBanner:h?await de(h.id):null,fooldalDemoPalyazatok:v?await de(v.id):null,fooldalDemoIdezet:N?await de(N.id):null,fooldalDemoTartalom:C?await de(C.id):null}}},S5=()=>{const t=oe(),{articles:s,menus:n}=b(u=>u.article),{style:r}=b(u=>u.config),{events:c}=b(u=>u.event);return e.jsxs("div",{className:"static-page--klimabarat mb-[48px] w-full xl:mb-0",children:[e.jsx(Rt,{className:"mb-[48px]"}),t.staticSections.atlathatoKiemeltTartalmak&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.atlathatoKiemeltTartalmak})}),t.staticSections.fooldalRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalRolunk})}),t.staticSections.allattartasKiemeltTartalmak&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.allattartasKiemeltTartalmak})}),t.staticSections.fooldalHasznosInformaciok&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalHasznosInformaciok})}),location.origin.startsWith("kozetkeztetes")&&n&&n.length>0&&e.jsxs("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:[e.jsxs("div",{className:"mb-[28px] flex justify-between border-b-1 border-[#E4E5E7]",children:[e.jsx("h2",{className:"title--news--klimabarat font-secondary-bold py-[7.5px] text-[24px] leading-[120%]",children:"Étlapok"}),e.jsxs(_,{to:"/etlapok",className:"flex items-center gap-[6px]",children:[e.jsx("span",{className:`link--${r} text-[12px] leading-[100%] font-bold`,children:"Összes étlap"}),e.jsx("img",{alt:"Jobbra mutató nyíl",height:12,src:`/style/${r}/arrow.svg`,width:12})]})]}),e.jsx("div",{className:"flex items-start gap-[24px]",children:e.jsx("div",{className:"flex w-full flex-wrap gap-[24px]",children:n.slice(0,6).map(u=>e.jsx(_,{to:`/hirek/${u.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:u,size:"m",borderColor:"var(--color-primary-dark-blue)"})},u.id))})})]}),s&&s.length>0&&e.jsxs("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:[e.jsxs("div",{className:"mb-[28px] flex justify-between border-b-1 border-[#E4E5E7]",children:[e.jsx("h2",{className:"title--news--klimabarat font-secondary-bold py-[7.5px] text-[24px] leading-[120%]",children:"Híreink"}),e.jsxs(_,{to:"/hirek",className:"flex items-center gap-[6px]",children:[e.jsx("span",{className:`link--${r} text-[12px] leading-[100%] font-bold`,children:"Összes hírünk"}),e.jsx("img",{alt:"Jobbra mutató nyíl",height:12,src:`/style/${r}/arrow.svg`,width:12})]})]}),e.jsx("div",{className:"flex items-start gap-[24px]",children:e.jsx("div",{className:"flex w-full flex-wrap gap-[24px]",children:s.slice(0,6).map(u=>e.jsx(_,{to:`/hirek/${u.id}`,className:"w-full md:w-[calc(100%/3-16px)]",children:e.jsx(Xe,{article:u,size:"m",borderColor:"var(--color-primary-dark-blue)"})},u.id))})})]}),c&&c.length>0&&e.jsxs("div",{className:"mx-auto mb-[48px] flex w-[100%] flex-col px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:[e.jsxs("div",{className:"mb-[28px] flex items-center justify-between border-b-1 border-[#E4E5E7] py-[9.5px]",children:[e.jsx("div",{className:"title--news--klimabarat font-secondary-bold text-[24px] leading-[120%]",children:r==="palyazatok"?"Pályázatok és események":"Események"}),e.jsxs(_,{to:"/esemenyek",className:"flex items-center gap-[6px]",children:[e.jsx("div",{className:`text-[12px] leading-[100%] font-bold link--${r}`,children:r==="palyazatok"?"Összes":"Összes esemény"}),e.jsx("img",{alt:"Jobbra mutató nyíl",src:`/style/${r}/arrow.svg`})]})]}),e.jsx("div",{className:"flex w-full flex-wrap gap-[24px]",children:c.slice(0,6).map(u=>e.jsx(_,{to:`/esemenyek/${u.id}`,className:"w-full md:w-[calc(50%-12px)] xl:w-[calc(100%/3-16px)]",children:e.jsx(Nt,{event:{...u,size:"M"}})}))})]}),t.staticSections.fooldalBanner&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalBanner})}),t.staticSections.fooldalPalyazatok&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalPalyazatok})}),t.staticSections.fooldalAktualitasok&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalAktualitasok})})]})},Av=()=>{const{nav:t}=oe();if(t===null)return e.jsx(Pt,{children:e.jsx(Bt,{})});const{item:s,parent:n}=t;switch(s.type){case"static":return e.jsx(Pt,{children:e.jsx(Ma,{parent:n})});case"events":return e.jsx(Pt,{children:e.jsx(Gn,{})});case"eventcategories":return e.jsx(Pt,{children:e.jsx(Yn,{categoryId:s.params.categoryId})});case"documents":return e.jsx(Pt,{children:e.jsx(Da,{title:t.item.title,categoryId:void 0,path:s.path})});case"documentcategories":return e.jsx(Pt,{children:e.jsx(Qe,{title:t.item.title,categoryId:s.params.categoryId})});case"navonly":return e.jsx(Pt,{children:e.jsx($a,{title:t.item.title,children:s.children})});case"contacts":return e.jsx(Pt,{children:e.jsx(Oa,{})});case"form":return e.jsx(Pt,{children:e.jsx(Ha,{title:t.item.title,formId:s.params.formId})});case"faq":case"faqcategories":return e.jsx(Pt,{children:e.jsx(Aa,{})});case"issues":return e.jsx(Pt,{children:e.jsx(ma,{})});case"regulations":return e.jsx(Pt,{children:e.jsx(pa,{})});case"decisions":return e.jsx(Pt,{children:e.jsx(fa,{})});case"announcements":return e.jsx(Pt,{children:e.jsx(ha,{})});case"representatives":case"vicemayorsonly":return e.jsx(Pt,{children:e.jsx(Ua,{title:"Képviselők",withoutViceMayors:s.type==="vicemayorsonly"})});case"representativesonly":return e.jsx(Pt,{children:e.jsx(Pa,{title:"Alpolgármesterek"})});case"newscategories":return e.jsx(Pt,{children:e.jsx(xn,{title:t.item.title,categoryId:t.
78item.params.categoryId})});case"organisation_contacts":return e.jsx(Pt,{children:e.jsx(La,{title:t.item.title})});case"card_acceptors":return e.jsx(Pt,{children:e.jsx(Ba,{title:t.item.title})});case"news":return e.jsx(Pt,{children:e.jsx(Fn,{title:t.item.title})});case"smartmaptypes":return e.jsx(Pt,{children:e.jsx(Ia,{title:t.item.title,typeId:t.item.params.typeId})})}return e.jsx(Pt,{children:e.jsx(Bt,{})})},C5=[{children:[{children:[{element:e.jsx(S5,{}),loader:Rv,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(Fn,{}),loader:Et,path:"hirek"},{element:e.jsx(Fi,{}),loader:at,path:"hirek/:id"},{element:e.jsx(xn,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(Gn,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(Yn,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(Pt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(Tv,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Av,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],z5=()=>{const t=oe(),{articles:s}=b(c=>c.article),{style:n}=b(c=>c.config),{events:r}=b(c=>c.event);return e.jsxs("div",{className:`static-page--${n} mb-[48px] w-full xl:mb-0`,children:[e.jsx(Rt,{className:"mb-[48px]"}),s&&s.length>0&&e.jsx(pl,{articles:s,style:n,type:"A"}),r&&r.length>0&&e.jsx(Kl,{events:r,style:n}),t.staticSections.fooldalDemoRolunk&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalDemoRolunk})}),t.staticSections.fooldalDemoLinkek&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalDemoLinkek})}),t.staticSections.fooldalDemoBanner&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalDemoBanner})}),t.staticSections.fooldalDemoPalyazatok&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalDemoPalyazatok})}),t.staticSections.fooldalDemoIdezet&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalDemoIdezet})}),t.staticSections.fooldalDemoTartalom&&e.jsx("div",{className:"mx-auto mb-[48px] w-[100%] px-[16px] md:w-[720px] md:px-[0] xl:w-[1170px]",children:e.jsx(ue,{staticPage:t.staticSections.fooldalDemoTartalom})})]})},T5=[{children:[{children:[{element:e.jsx(z5,{}),loader:Rv,path:""},{element:e.jsx(Lt,{}),loader:At,path:"/helyek/:id"},{element:e.jsx(Fn,{}),loader:Et,path:"hirek"},{element:e.jsx(Fi,{}),loader:at,path:"hirek/:id"},{element:e.jsx(xn,{}),loader:St,path:"hirek/kategoriak/:id"},{element:e.jsx(Qe,{}),loader:Gt,path:"dokumentumok/kategoriak/:id"},{element:e.jsx(Gn,{}),loader:Ft,path:"esemenyek"},{element:e.jsx(Tt,{}),loader:It,path:"esemenyek/:id"},{element:e.jsx(Yn,{}),loader:bt,path:"esemenyek/kategoriak/:id"}],element:e.jsx(Pt,{}),path:""},{children:[{element:e.jsx(te,{}),loader:ee,path:"kereses"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search"},{element:e.jsx(te,{}),loader:ee,path:"kereses/:type/:search/:page"}],element:e.jsx(Tv,{}),shouldRevalidate:!0,path:""},{element:e.jsx(Mt,{}),loader:Dt,path:"preview-static"},{element:e.jsx(Av,{}),loader:zt,path:"*"}],element:e.jsx(_t,{}),path:""}],R5=async t=>{const s=await Kk(t);switch(await Zk(t),s.style){case"ujbudaonline":return F6;case"smart11":return g3;case"budahold":return b3;case"hadik":case"andor60":case"gkh":case"akh":case"kkh":case"okh":case"ahgy":return X6;case"go":case"dko":case"eko":case"koo":case"lo":case"so":case"szo":case"ao":return l3;case"ubi":return e5;case"60plusz":return u3;
78case"zsombolyai":return _3;case"media11":return T3;case"ujbuda-sport":return B3;case"kozpont":return q3;case"idosekhaza":return W3;case"uszosz":return r8;case"human":return f8;case"parkolasuzemelteto":return _8;case"kozterulet-felugyelet":return $8;case"gamesz":return P8;case"ujbuda-prizma":return K8;case"kaptar":return n5;case"kelenvolgyikonyvtar":return u5;case"klimabarat":return j5;case"ifjusagugy":return E5;case"ugyintezes":case"allattartas":case"palyazatok":return C5;case"demo":return T5;default:return N6}};R5(location.hostname).then(t=>{Ky.hydrateRoot(document.getElementById("root"),e.jsx(y.StrictMode,{children:e.jsx(cw,{store:k,children:e.jsx(vN,{router:iN(t)})})}))});export{Iy as R,e as j,y as r};

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.