1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c297e846-dc9c-b787-420f-c9892c6dcf58")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,58170,e=>{"use strict";try{var t=window;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}let a=new Intl.NumberFormat("hu",{minimumFractionDigits:0,maximumFractionDigits:0,style:"currency",currency:"HUF"});e.s(["default",0,a])},78844,14445,e=>{"use strict";var t=e.i(99161);try{var a="u">typeof window?window:e.g;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}let r=({color:e="currentColor",direction:a="left",distance:r="md",duration:n=.4,easing:i="cubic-bezier(0, 0, 0, 1)",hideOutline:l=!0,label:o,lines:s=3,onToggle:d,render:u,rounded:c=!1,size:p=32,toggle:f,toggled:h,disabled:x=!1,animateOnMount:g=!1})=>{let m,[y,b]=(0,t.useState)(!1),[v,w]=(0,t.useState)(!1);(0,t.useEffect)(()=>{w(!0)},[]);let k=Math.max(12,Math.min(48,p)),j=Math.round((48-k)/2),M=k/12,S=Math.round(M),z=k/(s*(("lg"===r?.25:"sm"===r?.75:.5)+(3===s?1:1.25))),_=Math.round(z),E=Math.round((48-(S*s+_*(s-1)))/2),C=(M-S+(z-_))/(3===s?1:2),O=parseFloat((k/(3===s?"lg"===r?4.0425:"sm"===r?5.1625:4.6325:"lg"===r?6.7875:"sm"===r?8.4875:7.6675)-C/(4/3)).toFixed(2)),H=Math.max(0,n),K={cursor:x?"not-allowed":"pointer",height:"48px",position:"relative",transition:`${H}s ${i}`,userSelect:"none",width:"48px"},A={background:e,height:`${S}px`,left:`${j}px`,position:"absolute"};l&&(K.outline="none"),c&&(A.borderRadius="9em");let R=f||b,$=(m=void 0!==h?h:y,g&&!v?!m:m);return u({barHeight:S,barStyles:A,burgerStyles:K,easing:i,handler:()=>{R(!$),"function"==typeof d&&d(!$)},isLeft:"left"===a,isToggled:$,label:o,margin:_,move:O,time:H,topOffset:E,width:k})};try{var n="u">typeof window?window:e.g;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}e.s(["Spin",0,e=>t.default.createElement(r,i({},e,{render:a=>t.default.createElement("div",{className:"hamburger-react","aria-label":a.label,"aria-expanded":a.isToggled,onClick:e.disabled?void 0:a.handler,onKeyUp:e.disabled?void 0:e=>"Enter"===e.key&&a.handler(),role:"button",style:{...a.burgerStyles,transform:`${a.isToggled?`rotate(${180*(a.isLeft?-1:1)}deg)`:"none"}`},tabIndex:0},t.default.createElement("div",{style:{...a.barStyles,width:`${a.width}px`,top:`${a.topOffset}px`,transition:`${a.time}s ${a.easing}`,transform:`${a.isToggled?`rotate(${45*(a.isLeft?-1:1)}deg) translate(${a.move*(a.isLeft?-1:1)}px, ${a.move}px)`:"none"}`}}),t.default.createElement("div",{style:{...a.barStyles,width:`${a.width}px`,top:`${a.topOffset+a.barHeight+a.margin}px`,transition:`${a.time}s ${a.easing}`,opacity:`${a.isToggled?"0":"1"}`}}),t.default.createElement("div",{style:{...a.barStyles,width:`${a.width}px`,top:`${a.topOffset+2*a.barHeight+2*a.margin}px`,transition:`${a.time}s ${a.easing}`,transform:`${a.isToggled?`rotate(${45*(a.isLeft?1:-1)}deg) translate(${a.move*(a.isLeft?-1:1)}px, ${-1*a.move}px)`:"none"}`}}))}))],78844);try{var l="u">typeof window?window:e.g;l._sentryModuleMetadata=l._sentryModuleMetadata||{},l._sentryModuleMetadata[(new l.Error).stack]=Object.assign({},l._sentryModuleMetadata[(new l.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}function o(e,t){return e===t}
2e.s(["useDebounce",0,function(e,a,r){var n=r&&r.equalityFn||o,i=(0,t.useRef)(e),l=(0,t.useState)({})[1],s=function(e,a,r,n){var i=this,l=(0,t.useRef)(null),o=(0,t.useRef)(0),s=(0,t.useRef)(0),d=(0,t.useRef)(null),u=(0,t.useRef)([]),c=(0,t.useRef)(),p=(0,t.useRef)(),f=(0,t.useRef)(e),h=(0,t.useRef)(!0),x=(0,t.useRef)(),g=(0,t.useRef)();f.current=e;var m="u">typeof window,y=!a&&0!==a&&m;if("function"!=typeof e)throw TypeError("Expected a function");a=+a||0;var b=!!(r=r||{}).leading,v=!("trailing"in r)||!!r.trailing,w=!!r.flushOnExit&&v,k="maxWait"in r,j="debounceOnServer"in r&&!!r.debounceOnServer,M=k?Math.max(+r.maxWait||0,a):null,S=(0,t.useMemo)(function(){var e=function(e){var t=u.current,a=c.current;return u.current=c.current=null,o.current=e,s.current=s.current||e,p.current=f.current.apply(a,t)},t=function(e,t){y&&cancelAnimationFrame(d.current),d.current=y?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!h.current)return!1;var t=e-l.current;return!l.current||t>=a||t<0||k&&e-o.current>=M},S=function(t){return d.current=null,v&&u.current?e(t):(u.current=c.current=null,p.current)},z=function e(){var n=Date.now();if(b&&s.current===o.current&&_(),r(n))return S(n);if(h.current){var i=a-(n-l.current);t(e,k?Math.min(i,M-(n-o.current)):i)}},_=function(){n&&n({})},E=function(){if(m||j){var n,s=Date.now(),f=r(s);if(u.current=[].slice.call(arguments),c.current=i,l.current=s,w&&!x.current&&(x.current=function(){var e;"hidden"===(null==(e=globalThis.document)?void 0:e.visibilityState)&&g.current.flush()},null==(n=globalThis.document)||null==n.addEventListener||n.addEventListener("visibilitychange",x.current)),f){if(!d.current&&h.current)return o.current=l.current,t(z,a),b?e(l.current):p.current;if(k)return t(z,a),e(l.current)}return d.current||t(z,a),p.current}};return E.cancel=function(){var e=d.current;e&&(y?cancelAnimationFrame(d.current):clearTimeout(d.current)),o.current=0,u.current=l.current=c.current=d.current=null,e&&n&&n({})},E.isPending=function(){return!!d.current},E.flush=function(){return d.current?S(Date.now()):p.current},E},[b,k,a,M,v,w,y,m,j,n]);return g.current=S,(0,t.useEffect)(function(){return h.current=!0,function(){var e;w&&g.current.flush(),x.current&&(null==(e=globalThis.document)||null==e.removeEventListener||e.removeEventListener("visibilitychange",x.current),x.current=null),h.current=!1}},[w]),S}((0,t.useCallback)(function(e){i.current=e,l({})},[l]),a,r,l),d=(0,t.useRef)(e);return n(d.current,e)||(s(e),d.current=e),[i.current,s]}],14445)},92140,e=>{"use strict";var t=e.i(99161);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}e.s(["default",0,function(e){let[a,r]=(0,t.useState)(!1);function n(e){e.matches?r(!0):r(!1)}return(0,t.useEffect)(()=>{var t=window.matchMedia(e);return t.matches&&n(t),t?.addEventListener?t.addEventListener("change",n):t.addListener(n),()=>{t?.removeEventListener?t.removeEventListener("change",n):t.removeListener(n)}},[]),a}])},21821,63438,e=>{"use strict";var t=e.i(34910),a=e.i(30209),r=e.i(38902),n=e.i(31982),i=e.i(51046),l=e.i(49527);try{var o=window;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}let s=(0,n.default)("div",{target:"e1fp32rw0"})("min-width:122px;@media (max-width:",l.default.max.lg,"){min-width:88px;}@media (max-width:",l.default.max.xs,"){min-width:72px;}> a{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:32px;color:inherit;text-decoration:none;white-space:nowrap;@media (max-width:",l.default.max.lg,"){justify-content:flex-start;}cursor:",({disabled:e})=>e?"not-allowed":"pointer",";}"),d=(0,n.default)("span",{target:"e1fp32rw1"})("display:block;position:relative;width:23px;height:24px;flex-shrink:0;img{display:block;width:23px;height:24px;}"),u=(0,n.default)("span",{target:"e1fp32rw2"})("position:absolute;top:-4px;right:-6px;
2background:",i.default.mineShaftDark,";min-width:13px;height:13px;padding:0 2px;display:flex;justify-content:center;align-items:center;border-radius:10px;font-weight:700;font-size:10px;color:white;line-height:1;"),c=(0,n.default)("span",{target:"e1fp32rw3"})("font-size:14px;font-weight:700;line-height:24px;@media (max-width:",l.default.max.lg,"){font-size:13px;font-weight:500;}@media (max-width:",l.default.max.xs,"){font-size:11px;}");try{var p=window;p._sentryModuleMetadata=p._sentryModuleMetadata||{},p._sentryModuleMetadata[(new p.Error).stack]=Object.assign({},p._sentryModuleMetadata[(new p.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}e.s(["default",0,function({count:e,total:n}){let i=parseInt(e)>0;return(0,t.jsx)(s,{disabled:!i,children:(0,t.jsxs)(r.default,{href:i?"/kosar":"/","aria-label":`Kos\xe1r, ${e||0} term\xe9k, ${n}`,children:[(0,t.jsxs)(d,{children:[(0,t.jsx)("img",{src:a.default,width:"23",height:"24",alt:"","aria-hidden":"true"}),i&&(0,t.jsx)(u,{children:e})]}),(0,t.jsx)(c,{children:n})]})})}],21821);var f=e.i(28733),h=e.i(76585);try{var x=window;x._sentryModuleMetadata=x._sentryModuleMetadata||{},x._sentryModuleMetadata[(new x.Error).stack]=Object.assign({},x._sentryModuleMetadata[(new x.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}let g=(0,n.default)("div",{target:"e1vwh2080"})("position:absolute;font-size:16px;bottom:0;right:0;transform:translate(20%,100%);width:300px;z-index:100;"),m=(0,n.default)("div",{target:"e1vwh2081"})("z-index:4;position:relative;background-color:white;box-shadow:0px 5px 25px rgba(113,135,157,0.2);border-radius:10px;padding:25px;"),y=(0,n.default)("div",{target:"e1vwh2082"})("z-index:5;position:absolute;width:50px;height:25px;top:-25px;right:45px;background-color:transparent;overflow:hidden;&::before{content:'';display:block;background-color:transparent;width:0;height:0;position:absolute;bottom:-12px;left:50%;border:12px solid transparent;border-bottom-color:white;border-right-color:white;transform:translateX(-50%) rotateZ(225deg);box-shadow:0px 0px 5px rgba(113,135,157,0.2);z-index:3;}"),b=(0,n.default)("div",{target:"e1vwh2083"})("font-weight:600;font-size:18px;border-bottom:1px solid ",i.default.mischka,";padding-bottom:25px;margin-bottom:25px;color:black;"),v=(0,n.default)("div",{target:"e1vwh2084"})("border-bottom:1px solid ",i.default.mischka,";margin-bottom:25px;"),w=(0,n.default)("div",{target:"e1vwh2085"})("margin-bottom:25px;font-weight:300;"),k=(0,n.default)("div",{target:"e1vwh2086"})(),j=(0,n.default)("div",{target:"e1vwh2087"})("font-weight:600;color:",h.default.button.primary,";cursor:pointer;");var M=e.i(43055),S=e.i(61053);try{var z=window;z._sentryModuleMetadata=z._sentryModuleMetadata||{},z._sentryModuleMetadata[(new z.Error).stack]=Object.assign({},z._sentryModuleMetadata[(new z.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}e.s(["default",0,function({onClose:e,onLogout:a,firstName:n}){let i=M.default.get(S.default.getHost()),{actualUser:l}=(0,f.default)();return(0,t.jsxs)(g,{children:[(0,t.jsx)(y,{}),(0,t.jsxs)(m,{children:[(0,t.jsxs)(b,{children:["Ãdv",n&&`, ${n}`,"!"]}),(0,t.jsxs)(v,{children:[(0,t.jsx)(w,{onClick:e,children:(0,t.jsx)(r.default,{href:"/profil/szemelyes-adataim",passHref:!0,children:"Személyes adataim"})}),(0,t.jsx)(w,{onClick:e,children:(0,t.jsx)(r.default,{href:"/profil/jelszo-modositas",passHref:!0,children:"Jelszó módosÃtás"})}),(0,t.jsx)(w,{onClick:e,children:(0,t.jsx)(r.default,{href:"/profil/rendeleseim",passHref:!0,children:"Rendeléseim"})}),!1!==i.pages["/profil/elojegyzeseim"].visibleInMenu&&(0,t.jsx)(w,{onClick:e,children:(0,t.jsx)(r.default,{href:"/profil/elojegyzeseim",passHref:!0,children:"ElÅjegyzéseim"})}),(0,t.jsx)(w,{onClick:e,children:(0,t.jsx)(r.default,{href:"/profil/szamlazasi-cimeim",passHref:!0,children:"Számlázási cÃmeim"})}),"EKONYV"!==i.key&&(0,t.jsx)(w,{onClick:e,children:(0,t.jsx)(r.default,{href:"/profil/szallitasi-cimeim",passHref:!0,children:"SzállÃtási cÃmeim"})}),(0,t.jsx)(w,{onClick:e,children:(0,t.jsx)(r.default,{href:"/profil/kivansaglistam",passHref:!0,children:"KÃvánságlistám"})}),(0,t.jsx)(w,{onClick:e,children:(0,t.jsx)(r.default,{href:"/profil/kovetett-szerzok",passHref:!0,children:"Követett szerzÅk"})}),("ALOMGYAR"===i.key||"EKONYV"===i.key)&&(0,t.jsx)(w,{onClick:e,children:(0,t.jsx)(r.default,{href:"/profil/e-konyveim",passHref:!0,children:"E-könyveim"})}),(0,t.jsx)(w,{onClick:e,children:(0,t.jsx)(r.default,{href:"/profil/konyvertekeleseim",passHref:!0,children:"Könyvértékeléseim"})}),l?.customer?.is_affiliate&&(0,t.jsx)(w,{onClick:e,children:(0,t.jsx)(r.default,{href:"/profil/affiliate-program",passHref:!0,children:"Affiliate program"})})]}),(0,t.jsx)(k,{children:(0,t.jsx)(j,{onClick:a,children:"Kijelentkezés"})})]})]})}],63438)},38609,e=>{"use strict";var t=e.i(31982),a=e.i(50376),r=e.i(51046),n=e.i(49527),i=e.i(38902),l=e.i(76585);try{var o=window;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}let s=(0,a.keyframes)("from{opacity:0;transform:translateY(-16px) scale(0.98);}to{opacity:1;transform:translateY(0) scale(1);}"),d=(0,t.default)("div",{target:"e1ncfc0g0"})("flex:0;overflow:hidden;transition:flex 0.3s ease-in-out;"),u=(0,t.default)("div",{target:"e1ncfc0g1"})("flex:0;overflow:hidden;transition:flex 0.3s ease-in-out;"),c=(0,t.default)("div",{target:"e1ncfc0g2"})("overflow:hidden;transition:flex 0.3s ease-in-out;pointer-events:none;display:flex;flex-direction:column;z-index:100000;> *{pointer-events:all;}@media (max-width:",n.default.max.lg,"){transform-origin:top center;animation:",s," 260ms cubic-bezier(0.22,1,0.36,1) both;}@media (max-width:",n.default.max.lg,") and (prefers-reduced-motion:reduce){animation:none;}"),p=(0,t.default)("div",{target:"e1ncfc0g3"})("padding:20px;background-color:white;"),f=(0,t.default)("div",{target:"e1ncfc0g4"})("margin:12px 20px 20px;flex:0 1 auto;max-height:calc(100vh - var(--site-header-height,120px) - 120px);overflow-y:auto;border-radius:12px;background:white;box-shadow:0 12px 32px rgba(0,0,0,0.22);"),h=(0,t.default)("div",{target:"e1ncfc0g5"})("background-color:",({site:e})=>r.redesignAccents[e]??r.default.white,";color:",r.default.white,";z-index:100002;transform:translateY(0);box-shadow:0px 1px 20px rgba(0,0,0,0.06);"),x=(0,t.default)("div",{target:"e1ncfc0g6"})("flex:1;overflow:hidden;"),g=(0,t.default)("div",{target:"e1ncfc0g7"})("position:fixed;top:0;left:0;right:0;display:flex;flex-direction:column;transition:height 0.3s ease-in-out;pointer-events:none;height:",({mobileMenuOpen:e,searchMenuOpen:t})=>
2e||t?"100%":"0%",";height:100%;width:100%;z-index:100000;transition:transform 0.3s ease-in-out;transform:",({menuBarHidden:e})=>e&&"translateY(-75px)",";@media (max-width:",n.default.max.xl,"){transform:",({menuBarHidden:e})=>e&&"translateY(-75px)",";box-shadow:none;position:fixed;top:0;right:0;left:0;z-index:100000;}> *{pointer-events:initial;}",x,"{flex:",({sidebarOpen:e})=>!e&&"0",";z-index:100000;}",d,"{flex:",({userMenuOpen:e})=>e?"1":"0",";}",u,"{flex:",({mobileMenuOpen:e})=>e?"1":"0",";}",c,"{flex:",({searchMenuOpen:e})=>!e&&"0",";}"),m=(0,t.default)("div",{target:"e1ncfc0g8"})("&.container{width:100%;max-width:1246px;padding:0 15px;}"),y=(0,t.default)("div",{target:"e1ncfc0g9"})(),b=(0,t.default)("div",{target:"e1ncfc0g10"})(),v=(0,t.default)("div",{target:"e1ncfc0g11"})("display:flex;align-items:center;margin-right:76px;flex-shrink:0;max-width:160px;flex-direction:column;justify-content:center;@media (max-width:",n.default.max.xl,"){margin-right:0;}@media (max-width:",n.default.max.sm,"){li{font-size:11px;}}@media (max-width:",n.default.max.xs,"){li{font-size:8px;}}"),w=(0,t.default)("div",{target:"e1ncfc0g12"})("display:flex;align-items:center;justify-content:center;gap:32px;flex:1;"),k=(0,t.default)("div",{target:"e1ncfc0g13"})("flex:1;min-width:0;display:flex;align-items:center;position:relative;margin-left:1rem;form{width:100%;}"),j=(0,t.default)("div",{target:"e1ncfc0g14"})("position:fixed;top:calc(var(--site-header-chrome-height,80px) + 12px);left:50%;transform:translateX(-50%);width:min(760px,calc(100vw - 32px));max-height:calc(100vh - var(--site-header-chrome-height,80px) - 32px);z-index:100004;overflow-y:auto;border-radius:12px;background:white;box-shadow:0 12px 32px rgba(0,0,0,0.22);"),M=(0,t.default)("div",{target:"e1ncfc0g15"})("display:flex;align-items:center;gap:48px;margin-left:24px;flex-shrink:0;@media (max-width:",n.default.max.xl,"){gap:24px;}@media (max-width:",n.default.max.lg,"){gap:13px;margin-left:auto;}@media (max-width:",n.default.max.xs,"){gap:9px;}"),S=(0,t.default)("div",{target:"e1ncfc0g16"})("height:100%;margin-left:0;display:flex;align-items:center;position:relative;> div:first-of-type{cursor:pointer;}@media (max-width:",n.default.max.xl,"){margin-left:0;}"),z=(0,t.default)(S,{target:"e1ncfc0g17"})("margin:-12px;");(0,t.default)("div",{target:"e1ncfc0g18"})("display:flex;align-items:center;");let _=(0,t.default)("a",{target:"e1ncfc0g19"})("display:block;width:129px;img{display:block;width:100%;height:32px;object-fit:contain;}@media (max-width:",n.default.max.xs,"){width:105px;}"),E=(0,t.default)("ul",{target:"e1ncfc0g20"})("margin:0;padding:0;"),C=(0,t.default)("li",{target:"e1ncfc0g21"})("margin:0;padding:0;list-style:none;display:inline-block;&:last-child{margin-right:0;}a{font-weight:500;font-size:16px;line-height:24px;letter-spacing:0.5px;color:#1e1e1e;white-space:nowrap;&:hover{text-decoration:none;}}"),O=(0,t.default)("div",{target:"e1ncfc0g22"})("display:flex;min-height:75px;align-items:center;gap:0;@media (max-width:",n.default.max.lg,"){justify-content:space-between;}"),H=(0,t.default)("div",{target:"e1ncfc0g23"})("z-index:100001;");(0,t.default)("div",{target:"e1ncfc0g24"})(),(0,t.default)("div",{target:"e1ncfc0g25"})();let K=(0,t.default)("li",{target:"e1ncfc0g26"})("margin:0;padding:0;list-style:none;cursor:pointer;button{border:0;padding:0;background:transparent;display:flex;align-items:center;color:#1e1e1e;font:inherit;cursor:pointer;}&:last-child{margin-right:0;}span{font-weight:500;font-size:16px;line-height:24px;letter-spacing:0.5px;white-space:nowrap;margin-right:8px;&:hover{text-decoration:none;}}svg{width:12px;height:12px;transform:rotate(180deg);transition:transform 0.3s ease-in-out;}&.active{svg{transform:rotate(0);}}"),A=(0,t.default)("div",{target:"e1ncfc0g27"})("position:absolute;top:100%;left:",({left:e})=>e?`${e}px`:"0",";background-color:white;box-shadow:0px 1px 20px rgba(0,0,0,0.06);z-index:100001;border-radius:0px 0px 10px 10px;opacity:",({open:e})=>e?"1":"0",";visibility:",({open:e})=>e?"visible":"hidden",";transform:translateX(-10%) translateY(",({open:e})=>e?"0":"-20px",");transition:opacity 0.3s ease-in-out,transform 0.3s ease-in-out,visibility 0.3s ease-in-out;@media (max-width:",n.default.max.xl,"){top:100%;}"),R=(0,t.default)("div",{target:"e1ncfc0g28"})("margin:0 auto;padding-top:20px;padding-bottom:10px;width:100%;max-width:1200px;@media (max-width:",n.default.max.xl,"){padding-top:10px;}"),$=(0,t.default)("div",{target:"e1ncfc0g29"})("flex:1;
2min-width:200px;padding:0 15px;@media (max-width:",n.default.max.md,"){min-width:100%;margin-bottom:20px;&:last-of-type{margin-bottom:0;}}"),L=` 3 font-weight: 700; 4 font-size: 18px; 5 color: ${r.default.mineShaft}; 6 margin-bottom: 15px; 7 8 @media (max-width: ${n.default.max.xl}) { 9 font-size: 16px; 10 margin-bottom: 10px; 11 } 12`,D=(0,t.default)(i.default,{target:"e1ncfc0g30"})(L);(0,t.default)("span",{target:"e1ncfc0g31"})(L);let W=(0,t.default)("div",{target:"e1ncfc0g32"})("display:grid;grid-template-columns:repeat(",({columns:e=3})=>e,",1fr);margin-top:10px;"),B=(0,t.default)(i.default,{target:"e1ncfc0g33"})("display:block;font-weight:",({accent:e})=>e?700:500,";font-size:16px;color:",({accent:e})=>e?l.default.main.primary:r.default.doveGray,";padding:10px;border-radius:8px;transition:background-color 0.2s ease-in-out,color 0.2s ease-in-out;cursor:pointer;&:hover{text-decoration:none;color:",r.default.mineShaft,";background-color:",l.default.button.secondaryHover,";}@media (max-width:",n.default.max.xl,"){font-size:14px;margin-bottom:8px;}"),T=(0,t.default)("header",{target:"e1ncfc0g34"})("flex-shrink:0;position:relative;z-index:100001;@media (max-width:",n.default.max.xl,"){margin-bottom:var(--site-navigation-height,0px);}a:focus-visible,button:focus-visible,[role='button']:focus-visible{outline:2px solid currentColor;outline-offset:4px;}"),N=(0,t.default)("div",{target:"e1ncfc0g35"})("position:relative;height:0;z-index:99999;"),P=(0,t.default)("nav",{target:"e1ncfc0g36"})("position:absolute;top:var(--site-header-chrome-height,75px);width:100%;background:",r.default.white,";> ",w,",> .header-prices{max-width:1246px;padding:0 15px;margin:auto;}ul{min-height:64px;align-items:center;justify-content:start;flex:0 1 675px;gap:75px;}a:focus-visible,button:focus-visible{outline:2px solid currentColor;outline-offset:4px;}@media (max-width:",n.default.max.xl,"){position:fixed;transform:",({menuBarHidden:e})=>e?"translateY(-75px)":"none",";transition:transform 0.3s ease-in-out;}.header-prices{padding:8px 15px;flex-wrap:wrap;gap:8px;a{display:flex;}}"),I=(0,t.default)("button",{target:"e1ncfc0g37"})("border:0;padding:0;background:transparent;color:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:32px;flex-shrink:0;svg,img{width:100%;height:100%;}"),F=(0,t.default)("span",{target:"e1ncfc0g38"})("font-size:16px;font-weight:600;letter-spacing:0.5px;line-height:24px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;@media (max-width:",n.default.max.lg,"){display:none;}"),q=(0,t.default)("span",{target:"e1ncfc0g39"})("display:none;width:23px;height:24px;font-weight:600;text-transform:uppercase;svg,img{width:23px;height:24px;}@media (max-width:",n.default.max.lg,"){display:inline-flex;align-items:center;justify-content:center;}"),Y=(0,t.default)("form",{target:"e1ncfc0g40"})("display:flex;align-items:center;width:",({$large:e})=>e?"100%":"auto",";height:",({$large:e})=>e?"60px":"40px",";padding:0 24px;border:1px solid #d9d9d9;border-radius:9999px;background:white;color:#1e1e1e;&:focus-within{outline:2px solid ",r.default.mineShaft,";outline-offset:2px;}@media (max-width:",n.default.max.md,"){padding:0 12px;}"),U=(0,t.default)("label",{target:"e1ncfc0g41"})("position:relative;display:flex;align-items:center;gap:16px;padding-right:16px;margin-right:16px;min-height:25px;border-right:1px solid #d9d9d9;font-size:14px;white-space:nowrap;cursor:pointer;img{width:15px;height:15px;}@media (max-width:",n.default.max.md,"){max-width:60%;gap:6px;padding-right:8px;margin-right:8px;span{overflow:hidden;text-overflow:ellipsis;}}"),G=(0,t.default)("select",{target:"e1ncfc0g42"})("position:absolute;inset:0;width:100%;height:100%;border:0;opacity:0;cursor:pointer;&:focus-visible{outline:2px solid ",r.default.mineShaft,";outline-offset:2px;}"),V=(0,t.default)("div",{target:"e1ncfc0g43"})("margin-top:10px;color:",r.default.ghost,";font-size:14px;"),Q=(0,t.default)("input",{target:"e1ncfc0g44"})("flex:1;min-width:0;border:0;padding:0 0 0 16px;background:transparent;font:inherit;font-size:14px;color:#1e1e1e;outline:none;&::placeholder{color:#b3b3b3;opacity:1;}"),X=(0,t.default)(I,{target:"e1ncfc0g45"})("min-width:16px;");e.s(["AdvancedSearch",0,U,"AuthLabel",0,F,"Col",0,b,"Container",0,m,"HeaderButton",0,I,"HeaderChrome",0,T,"HeaderMobileMenuWrapper",0,u,"HeaderMobileSearchInput",0,p,"HeaderMobileSearchResults",0,f,"HeaderMobileSearchWra
12pper",0,c,"HeaderPromoWrapper",0,H,"HeaderSidebarWrapper",0,x,"HeaderTopNav",0,h,"HeaderUserMobileMenuWrapper",0,d,"HeaderWrapper",0,g,"IconHamburgerWrapper",0,z,"IconWrapper",0,S,"IconsWrapper",0,M,"Li",0,C,"LiSubMenu",0,K,"Logo",0,_,"LogoWrapper",0,v,"MenuWrapper",0,w,"NavigationRow",0,P,"NavigationSlot",0,N,"Row",0,y,"SearchButton",0,X,"SearchForm",0,Y,"SearchInput",0,Q,"SearchResultsWrapper",0,j,"SearchScopeSelect",0,G,"SearchSummary",0,V,"SearchWrapper",0,k,"SubMenuCol",0,$,"SubMenuContainer",0,R,"SubMenuItem",0,B,"SubMenuList",0,W,"SubMenuTitle",0,D,"SubMenuWrapper",0,A,"TopMenuWrapper",0,O,"Ul",0,E,"UserGlyph",0,q])},36887,e=>{"use strict";var t=e.i(34910),a=e.i(38902),r=e.i(31982),n=e.i(51046),i=e.i(49527);try{var l=window;l._sentryModuleMetadata=l._sentryModuleMetadata||{},l._sentryModuleMetadata[(new l.Error).stack]=Object.assign({},l._sentryModuleMetadata[(new l.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}let o=(0,r.default)("div",{target:"eylk2el0"})("display:flex;align-items:center;flex:1;justify-content:space-around;@media (max-width:",i.default.max.xl,"){gap:1rem;padding:0 1rem;}&.desktop{@media (min-width:",i.default.max.md,"){display:flex;a{display:flex;}}}&.mobile{@media (max-width:",i.default.max.md,"){display:flex;padding:0;padding-bottom:.5rem;gap:.5rem;a{display:flex;}}}"),s=(0,r.default)(a.default,{target:"eylk2el1"})("border-radius:50px;border:4px solid ",n.default.tundora,";color:",n.default.tundora,";padding:5px 10px;font-weight:600;display:none;white-space:nowrap;transition:all 0.3s ease;@media (max-width:",i.default.max.xl,"){padding:5px 8px;font-size:10px;border-width:3px;}@media (max-width:",i.default.max.md,"){padding:5px 8px;font-size:9px;}@media (max-width:",i.default.max.sm,"){padding:5px 5px;font-size:8px;}&:nth-child(2){border-color:",n.default.redDiszkont,";color:",n.default.redDiszkont,";&:hover{border-color:",n.default.alizarinCrimson,";color:",n.default.alizarinCrimson,";}}&:nth-child(3){border-color:",n.default.orangeDiszkont,";color:",n.default.orangeDiszkont,";&:hover{border-color:",n.default.orangeDark,";color:",n.default.orangeDark,";}}&:nth-child(4){border-color:",n.default.greenDiszkont,";color:",n.default.greenDiszkont,";&:hover{border-color:",n.default.greenHazeDark,";color:",n.default.greenHazeDark,";}}&:nth-child(5){border-color:",n.default.blueDiszkont,";color:",n.default.blueDiszkont,";&:hover{border-color:",n.default.blueDiszkontDark,";color:",n.default.blueDiszkontDark,";}}&:nth-child(6){border-color:",n.default.purpleDiszkont,";color:",n.default.purpleDiszkont,";&:hover{border-color:",n.default.purpleDiszkontDark,";color:",n.default.purpleDiszkontDark,";}}@media (max-width:",i.default.max.xl,"){&:nth-child(7){display:none !important;}}");try{var d=window;d._sentryModuleMetadata=d._sentryModuleMetadata||{},d._sentryModuleMetadata[(new d.Error).stack]=Object.assign({},d._sentryModuleMetadata[(new d.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}e.s(["default",0,function(e){return(0,t.jsxs)(o,{className:e.className,children:[[500,1e3,1500,2e3,2500,3e3].map(e=>(0,t.jsx)(s,{href:`/konyvlista/${e}-ft`,children:(0,t.jsxs)("span",{children:[e," Ft"]})},e)),(0,t.jsx)(s,{href:"/sikerlista",children:(0,t.jsx)("span",{children:"Sikerlisták"})})]})}],36887)},58084,e=>{"use strict";var t=e.i(34910),a=e.i(31982),r=e.i(51046);try{var n=window;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}let i=(0,a.default)("div",{target:"evwinm00"})("margin-bottom:15px;background-color:",r.default.monza,";padding:5px 10px;color:white;border-radius:5px;"),l=(0,a.default)("div",{target:"evwinm01"})("margin:0;padding:0;"),o=(0,a.default)("div",{target:"evwinm02"})("list-style:none;&::before{content:'!';font-weight:700;display:inline-block;margin-right:10px;}");try{var s=window;s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[(new s.Error).stack]=Object.assign({},s._sentryModuleMetadata[(new s.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}e.s(["default",0,function({responseErrors:e,className:a}){return e?(0,t.jsx)(i,{className:a,children:(0,t.jsx)(l,{children:e.map((e,a)=>(0,t.jsx)(o,{children:e},a))})}):null}],58084)},75439,e=>{"use strict";
12var t=e.i(34910),a=e.i(71751),r=e.i(30399),n=e.i(75888),i=e.i(6569),l=e.i(99161),o=e.i(12590),s=e.i(38902),d=e.i(22196),u=e.i(44473);e.i(84818);var c=e.i(22247),p=e.i(99228),f=e.i(26242),h=e.i(78844);e.i(62359);var x=e.i(38278),g=e.i(27523),m=e.i(14445),y=e.i(40318),b=e.i(23644),v=e.i(92140),w=e.i(49527),k=e.i(51342),j=e.i(5757),M=e.i(28733),S=e.i(58170),z=e.i(21821),_=e.i(63438),E=e.i(38609),C=e.i(43055),O=e.i(24977),H=e.i(61053),K=e.i(36887),A=e.i(18966),R=e.i(82353),$=e.i(50350),L=e.i(21411),D=e.i(61083),W=e.i(31982),B=e.i(63213),T=e.i(44159),N=e.i(51046),P=e.i(24093),I=e.i(40886),F=e.i(38730),q=e.i(85678),Y=e.i(58084);try{var U=window;U._sentryModuleMetadata=U._sentryModuleMetadata||{},U._sentryModuleMetadata[(new U.Error).stack]=Object.assign({},U._sentryModuleMetadata[(new U.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}let G={headers:{Accept:"application/json; charset=utf-8","Content-type":"application/json; charset=utf-8"},requests:{"public-preorder-post":{method:"POST",path:"/public/preorders",ref:"publicPreOrders",request_id:"public-preorder-post",body:{product_id:null,email:null}}}},V={email:"",checkbox:!1},Q={email:"",checkbox:""};function X({itemId:a}){let[r,n]=(0,l.useState)(null),[i,o]=(0,l.useState)({...V}),[s,d]=(0,l.useState)({...Q}),[u,c]=(0,l.useState)(!1),h=(0,p.useDispatch)(),x=(0,q.useMutation)("public-preorder-post",e=>(0,y.handleApiRequest)(e),{onSuccess:e=>{let t=(0,y.getResponseById)(e,"public-preorder-post");t?.success?c(!0):t?.body?.errors&&n(Object.values(t.body.errors))}}),g=(0,b.default)(G,x);function m(){h((0,f.updateOverlay)({open:!1,type:"",data:""}))}g.addRequest("public-preorder-post");let v=(0,l.useCallback)(()=>{r&&n(null),e.A(86434).then(e=>{let t=e.default,a=t.object({email:t.string().required().email({tlds:!1}),checkbox:t.boolean().valid(!0)}).validate(i,{abortEarly:!1,allowUnknown:!0});if(!a.error)return!0;{let e={...Q};return a.error.details.forEach(t=>{switch(t.type){case"string.empty":case"number.base":e[t.context.key]="Ez a mezÅ nem lehet üres";break;case"string.min":e[t.context.key]=`Minimum ${t.context.limit} karakter sz\xfcks\xe9ges`;break;case"string.max":e[t.context.key]=`Maximum ${t.context.limit} karakter lehet`;break;default:e[t.context.key]="Hibás mezÅ"}}),e}}).then(e=>{!0===e?(d({...Q}),g.modifyRequest("public-preorder-post",e=>{e.body.product_id=a,e.body.email=i.email}),g.commit()):d(e)})});return(0,t.jsx)(B.default,{fixed:!1,children:(0,t.jsx)(T.default,{onClose:m,children:(0,t.jsxs)(Z,{title:"Kedves Vásárlónk!",text:"A kosaradba e-könyvek találhatóak. Az elektronikus vagy digitális könyvet (a vásárlás után) csak letölteni tudod, azt papÃr könyvként nem küldjük el neked. Az e-könyv a hatályos jogszabályok szerint szolgáltatásnak minÅsül, arra nem vonatkozik a 14 napos elállás joga.",submitText:"Ãrtem, Ãgy szeretném",cancelText:"Vissza a kosaramhoz",onCancel:m,children:[(0,t.jsx)(J,{children:u?"Köszönjük!":"Kérjük add meg email cÃmed!"}),(0,t.jsx)(ee,{children:"ÃrtesÃtünk, amint elérhetÅvé válik ez a könyv."}),!u&&(0,t.jsxs)(et,{children:[(0,t.jsx)(ea,{children:(0,t.jsx)(P.default,{type:"email",value:i.email,error:s.email,label:"Email cÃm",name:"email",onChange:e=>w("email",e.target.value),readOnly:x.isLoading})}),(0,t.jsx)(er,{children:(0,t.jsx)(I.default,{label:'Elolvastam az <a href="/oldal/adatvedelem" target="_blank" rel="noreferrer noopener">
12adatvédelmi tájékoztatót</a> és elfogadom a benne foglaltakat',error:s.checkbox,checked:i.checkbox,onChange:()=>w("checkbox",!i.checkbox),disabled:x.isLoading})})]}),r&&(0,t.jsx)(el,{responseErrors:r}),(0,t.jsxs)(en,{children:[!u&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ei,{children:(0,t.jsx)(F.default,{type:"secondary",buttonWidth:"100%",buttonHeight:"50px",onClick:m,disabled:x.isLoading,children:"Mégse"})}),(0,t.jsx)(ei,{children:(0,t.jsx)(F.default,{type:"primary",buttonWidth:"100%",buttonHeight:"50px",onClick:v,loading:x.isLoading,disabled:x.isLoading,children:"ElÅjegyzés"})})]}),u&&(0,t.jsx)(ei,{children:(0,t.jsx)(F.default,{type:"primary",buttonWidth:"100%",buttonHeight:"50px",onClick:m,children:"Bezárás"})})]})]})})});function w(e,t){s[e]&&d({...s,[e]:Q[e]}),o({...i,[e]:t})}}let Z=(0,W.default)("div",{target:"e183hljv0"})("padding:50px 50px 40px;@media (max-width:",w.default.max.md,"){padding:50px 0 10px;}"),J=(0,W.default)("div",{target:"e183hljv1"})("font-weight:600;font-size:24px;text-align:center;color:",N.default.mineShaftDark,";@media (max-width:",w.default.max.sm,"){font-size:20px;}"),ee=(0,W.default)("div",{target:"e183hljv2"})("margin-top:10px;text-align:center;"),et=(0,W.default)("div",{target:"e183hljv3"})("margin-top:20px;"),ea=(0,W.default)("div",{target:"e183hljv4"})("margin-bottom:20px;"),er=(0,W.default)("div",{target:"e183hljv5"})(),en=(0,W.default)("div",{target:"e183hljv6"})("display:flex;align-items:center;margin:30px -10px 0;@media (max-width:",w.default.max.md,"){flex-direction:column;margin-top:30px;}"),ei=(0,W.default)("div",{target:"e183hljv7"})("width:100%;margin:0 10px 0;@media (max-width:",w.default.max.md,"){margin:0 10px 10px;}"),el=(0,W.default)(Y.default,{target:"e183hljv8"})("margin-top:20px;");try{var eo=window;eo._sentryModuleMetadata=eo._sentryModuleMetadata||{},eo._sentryModuleMetadata[(new eo.Error).stack]=Object.assign({},eo._sentryModuleMetadata[(new eo.Error).stack],{"_sentryBundlerPluginAppKey:alomgyar-frontend":!0})}catch(e){}let es=(0,d.default)(()=>e.A(46315),{loadableGenerated:{modules:[83331]},ssr:!1}),ed=(0,d.default)(()=>e.A(70818),{loadableGenerated:{modules:[10401]},ssr:!1}),eu=(0,d.default)(()=>e.A(26735),{loadableGenerated:{modules:[9140]},ssr:!1}),ec=(0,d.default)(()=>e.A(45897),{loadableGenerated:{modules:[2421]},ssr:!1}),ep=(0,d.default)(()=>e.A(76261),{loadableGenerated:{modules:[31287]},ssr:!1}),ef={headers:{Accept:"application/json; charset=utf-8","Content-type":"application/json; charset=utf-8"},requests:{"header-search-post":{method:"POST",path:"/search",ref:"search",request_id:"header-search-post",body:{term:null,in_header:!0,book_page:null,ebook_page:null,scope:"all"}}}};e.s(["default",0,function(e){let{promo:d}=e,W=(0,l.useRef)(),B=(0,l.useRef)(),T=(0,l.useRef)(),N=(0,l.useRef)(),P=(0,l.useRef)(),I=(0,l.useRef)(),F=(0,l.useRef)({}),q=(0,v.default)(`(min-width: ${w.default.min.xl})`),Y=(0,v.default)(`(min-width: ${w.default.min.lg})`),U=(0,v.default)(`(max-width: ${w.default.max.lg})`),G=(0,v.default)(`(min-width: ${w.default.min.md})`),V=(0,v.default)(`(max-width: ${w.default.max.md})`),Q=(0,u.useRouter)(),Z=(0,j.useLogout)(),J=(0,p.useDispatch)(),{actualUser:ee}=(0,M.default)(),et=(0,g.useQueryClient)(),ea=C.default.get(H.default.getHost()),er=new O.default(ea),en=(0,n.getSearchScopes)(ea.key),ei=(0,c.useSelector)(e=>e.system.scrollDirection),el=(0,c.useSelector)(e=>e.system.scrollPosition),eo=(0,c.useSelector)(e=>e.ui.sidebarOpen),eh=(0,c.useSelector)(e=>e.ui.sidebarType),ex=(0,c.useSelector)(e=>e.ui.sidebarData),{overlayOpen:eg,overlayType:em,overlayData:ey}=(0,c.useSelector)(e=>({overlayOpen:e.ui.overlayOpen,overlayType:e.ui.overlayType,overlayData:e.ui.overlayData})),eb=(0,c.useSelector)(e=>e.ui.categories),[ev,ew]=(0,l.useState)(""),[ek,ej]=(0,l.useState)("all"),[eM]=(0,m.useDebounce)(ev,1500),[eS,ez]=(0,l.useState)(!1),[e_,eE]=(0,l.useState)(!1),[eC,eO]=(0,l.useState)(!1),[eH,eK]=(0,l.useState)(""),[eA,eR]=(0,l.useState)(!1),[e$,eL]=(0,l.useState)(!1),[eD,eW]=(0,l.useState)(!1),[eB,eT]=(0,l.useState)([]),[eN,eP]=(0,l.useState)([]),[eI,eF]=(0,l.useState)([]),[eq,eY]=(0,l.useState)([]),[eU,eG]=(0,l.useState)(!1),eV=(0,x.useQuery)("header-search-post",()=>(0,y.handleApiRequest)(eX.build()),{enabled:!1,refetchOnWindowFocus:!1,refetchOnMount:!1,staleTime:0,onSuccess:e=>{let t=(0,y.getResponseById)(e,"header-search-post");t?.success===!0&&(eT(t.body.books),eP(t.body.ebooks),eF(t.body.authors),eY(t.body.publishers))}}),eQ=ev.length>=3&&(ev!==eM||eV.isFetching),eX=(0,b.default)(ef,eV);eX.addRequest("header-search-post");let eZ=(0,l.useCallback)(e=>{et.cancelQueries("header-search-post"),eX.modifyRequest("header-search-post",t=>{t.body={term:e,in_header:!0,book_page:null,ebook_page:null,scope:ek}}),eX.commit()},[ek]),eJ=e=>{e.preventDefault(),ev.trim().length<3||(Q.push((0,n.getSearchPath)(ek,ev)),eR(!1))};(0,l.useEffect)(()=>{let e=W.current,t=B.current;if(!e||!t)return;let a=!0,r=()=>{if(!a)return;let r=e.offsetHeight,n=t.offsetHeight;document.documentElement.style.setProperty("--site-header-chrome-height",`${r}px`),document.documentElement.style.setProperty("--site-navigation-height",`${n}px`),document.documentElement.style.setProperty("--site-header-height",`${r+n}px`)};r();let n=new ResizeObserver(r);return n.observe(e),n.observe(t),()=>{a=!1,n.disconnect(),document.documentElement.style.removeProperty("--site-header-height"),document.documentElement.style.removeProperty("--site-header-chrome-height"),document.documentElement.style.removeProperty("--site-navigation-height")}},[]),(0,l.useEffect)(()=>{o.default.on("action:feedback",e=>{e0(!0,"feedback",e)}),o.default.on("action:newpass",e=>{e0(!0,"newpass",e)})},[]),(0,l.useEffect)(()=>(eo?(e$||eL(!0),eD||eW(!0)):(eD&&eW(!1),I.current=setTimeout(()=>{e$&&eL(!1)},300)),()=>clearTimeout(I.current)),[eo]),(0,l.useEffect)(()=>{e$||J((0,f.updateSidebar)({type:"",data:""}))},[e$]),(0,l.useEffect)(()=>
12{if(!(ev.length>0)&&!eC)if("down"===ei){if(el<150)return;eS||ez(!0),eA&&eR(!1)}else"up"===ei&&eS&&ez(!1)},[ei,el,ev,eC]),(0,l.useEffect)(()=>{eK("")},[el,q]),(0,l.useEffect)(()=>{function e(){eE(!1),eK(""),ew(""),eR(!1),e0(!1,""),eO(!1)}return Q.events.on("routeChangeStart",e),()=>{Q.events.off("routeChangeStart",e)}},[]),(0,l.useEffect)(()=>{eo||e_||V&&eC||eA&&ev.length>0?document.body.classList.add("fixed"):document.body.classList.remove("fixed")},[V,eo,e_,eA,ev,eC]),(0,l.useEffect)(()=>{e_&&eE(!1),eS&&ez(!1)},[q]),(0,l.useEffect)(()=>{eA&&eR(!1),ev.length>0&&ew("")},[U]),(0,l.useEffect)(()=>{eA&&P.current?.focus()},[eA]),(0,l.useEffect)(()=>{eM.length>=3?(eU||eG(!0),eZ(eM)):eU&&eG(!1)},[eM,ek]),(0,l.useEffect)(()=>{Q.query.forgottenpass&&J((0,f.updateSidebar)({open:!0,type:"forgottenpass"}))},[]);let e0=(0,l.useCallback)((e,t="",a="")=>{e?(eC&&eO(!1),e_&&eE(!1),eA&&eR(!1),eo||J((0,f.updateSidebar)({open:e,type:t,data:a}))):eo&&J((0,f.updateSidebar)({open:!1,type:eh,data:ex}))});(0,l.useEffect)(()=>{Q.query.forgottenpass&&J((0,f.updateSidebar)({open:!0,type:"forgottenpass"}))},[]);let e1=(0,l.useCallback)(e=>{e?(e_&&eE(!1),eA&&eR(!1),eo&&J((0,f.updateSidebar)({open:!1,type:""})),eC||eO(!0)):eC&&eO(!1)}),e2=(0,l.useCallback)(e=>{e?(eA&&eR(!1),eo&&J((0,f.updateSidebar)({open:!1,type:""})),eC&&eO(!1),e_||eE(!0)):e_&&eE(!1)}),e3=(0,l.useCallback)(e=>{e?(eo&&J((0,f.updateSidebar)({open:!1,type:""})),eC&&eO(!1),e_&&eE(!1),eA||eR(!0)):eA&&eR(!1)}),e5=(0,l.useCallback)(()=>{Z(),eO(!1)});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(E.HeaderWrapper,{mobileMenuOpen:e_,userMenuOpen:eC,searchMenuOpen:eA,sidebarOpen:e$,sidebarOut:eD,menuBarHidden:eS,children:[eg&&"preorderSignup"===em&&(0,t.jsx)(X,{itemId:ey?.itemId}),(0,t.jsxs)(E.HeaderChrome,{ref:W,children:[(0,t.jsx)(E.HeaderTopNav,{site:ea.key,children:(0,t.jsx)(E.Container,{className:"container",children:(0,t.jsx)(E.Row,{className:"row",children:(0,t.jsx)(E.Col,{className:"col-12",children:(0,t.jsxs)(E.TopMenuWrapper,{children:[(0,t.jsxs)(E.LogoWrapper,{children:[(0,t.jsx)(s.default,{href:"/",passHref:!0,legacyBehavior:!0,children:(0,t.jsxs)(E.Logo,{"aria-label":"KezdÅlap",children:["EKONYV"===ea.key&&(0,t.jsx)("img",{src:D.default,width:"129",height:"32",alt:"Pillekönyv"}),"ALOMGYAR"===ea.key&&(0,t.jsx)("img",{src:a.default,width:"129",height:"32",alt:"Ãlomgyár"}),"OLCSOKONYVEK"===ea.key&&(0,t.jsx)("img",{src:A.default,width:"129",height:"32",alt:"Olcsókönyvek"}),"NAGYKER"===ea.key&&(0,t.jsx)("img",{src:R.default,width:"129",height:"32",alt:"Nagyker"}),"KONYVAKCIOK"===ea.key&&(0,t.jsx)("img",{src:$.default,width:"108",height:"32",alt:"Könyvakciók"}),"KONYVDISZKONT"===ea.key&&(0,t.jsx)("img",{src:L.default,width:"129",height:"32",alt:"Könyvdiszkont"})]})}),ea.header?.slogan?(0,t.jsx)("span",{children:ea.header.slogan}):null]}),(0,t.jsxs)(E.SearchWrapper,{className:"d-none d-lg-flex",ref:T,children:[(0,t.jsxs)(E.SearchForm,{action:"/kereses",onSubmit:eJ,children:[(0,t.jsxs)(E.AdvancedSearch,{children:[(0,t.jsx)("span",{children:en.find(e=>e.value===ek)?.label}),(0,t.jsx)("img",{src:r.default,width:"15",height:"15",alt:"","aria-hidden":"true"}),(0,t.jsx)(E.SearchScopeSelect,{name:"scope","aria-label":"Keresés tÃpusa",value:ek,onChange:e=>ej(e.target.value),children:en.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))})]}),(0,t.jsx)(E.SearchButton,{type:"submit","aria-label":"Keresés",children:(0,t.jsx)(k.default,{type:"search",iconWidth:"16px",iconHeight:"16px"})}),(0,t.jsx)(E.SearchInput,{value:ev,name:"q",onChange:e=>ew(e.target.value),placeholder:"SegÃthetek a keresésben?","aria-label":"Keresés könyvek és szerzÅk között"}),ev&&(0,t.jsx)(E.SearchButton,{type:"button",onClick:()=>ew(""),"aria-label":"Keresés törlése",children:"Ã"})]}),Y&&ev.length>0&&(0,t.jsx)(E.SearchResultsWrapper,{children:(0,t.jsx)(ec,{eBooks:eN,books:eB,authors:eI,publishers:eq,searchTerm:ev,scope:ek,inputLengthValid:eU,fetching:eV.isFetching,isTyping:eQ})})]}),(0,t.jsxs)(E.IconsWrapper,{children:[(0,t.jsx)(E.HeaderButton,{type:"button","aria-label":"Keresés","aria-expanded":eA,className:"d-lg-none",onClick:()=>{e3(!eA)},children:(0,t.jsx)(k.default,{type:"search",iconColor:"currentColor",iconWidth:"22px",iconHeight:"22px"})}),(0,t.jsxs)(E.IconWrapper,{children:[(0,t.jsxs)(E.HeaderButton,{type:"button","aria-label":ee?.type==="user"?"Fiókom":"Regisztráció / Belépés","aria-expanded":eC||eo&&"login"===eh,onClick:()=>{ee?.type==="user"?e1(!eC):eo&&"login"===eh?e0(!1):e0(!0,"login")},children:[(0,t.jsx)(E.UserGlyph,{children:ee?.type==="user"?(ee.customer.firstname||ee.customer.email)?.[0]:(0,t.jsx)("img",{src:i.default,width:"23",height:"24",alt:"","aria-hidden":"true"})}),(0,t.jsx)(E.AuthLabel,{children:ee?.type==="user"?ee.customer.firstname||"Fiókom":"Regisztráció / Belépés"})]}),G&&eC&&(0,t.jsx)(_.default,{onClose:()=>e1(!1),onLogout:e5,firstName:ee?.type==="user"&&ee.customer.firstname})]}),(0,t.jsx)(E.IconWrapper,{children:(0,t.jsx)(z.default,{count:ee?.customer?.cart?.items_in_cart,total:S.default.format(ee?.customer?.cart?.total_amount??0)})}),(0,t.jsx)(E.IconHamburgerWrapper,{className:"d-xl-none",children:(0,t.jsx)(h.Spin,{label:"Menü",color:"currentColor",size:20,toggled:e_,toggle:e2})})]})]})})})})}),d&&(0,t.jsx)(E.HeaderPromoWrapper,{children:(0,t.jsx)(d,{})})]}),ev.length>0&&(0,t.jsx)(es,{fixed:!1,onClick:()=>ew("")}),G&&eC&&(0,t.jsx)(es,{fixed:!1,onClick:()=>eO(!1)}
12),eA&&(0,t.jsxs)(E.HeaderMobileSearchWrapper,{ref:N,children:[(0,t.jsx)(E.HeaderMobileSearchInput,{children:(0,t.jsxs)(E.SearchForm,{action:"/kereses",onSubmit:eJ,children:[(0,t.jsxs)(E.AdvancedSearch,{children:[(0,t.jsx)("span",{children:en.find(e=>e.value===ek)?.label}),(0,t.jsx)("img",{src:r.default,width:"15",height:"15",alt:"","aria-hidden":"true"}),(0,t.jsx)(E.SearchScopeSelect,{name:"scope","aria-label":"Keresés tÃpusa",value:ek,onChange:e=>ej(e.target.value),children:en.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))})]}),(0,t.jsx)(E.SearchButton,{type:"submit","aria-label":"Keresés",children:(0,t.jsx)(k.default,{type:"search",iconWidth:"16px",iconHeight:"16px"})}),(0,t.jsx)(E.SearchInput,{ref:P,name:"q",value:ev,onChange:e=>ew(e.target.value),placeholder:"Keresés könyvek és szerzÅk között...","aria-label":"Keresés könyvek és szerzÅk között"}),ev&&(0,t.jsx)(E.SearchButton,{type:"button",onClick:()=>ew(""),"aria-label":"Keresés törlése",children:"Ã"})]})}),ev.length>0&&(0,t.jsx)(E.HeaderMobileSearchResults,{children:(0,t.jsx)(ec,{eBooks:eN,books:eB,authors:eI,publishers:eq,searchTerm:ev,scope:ek,inputLengthValid:eU,fetching:eV.isFetching,isTyping:eQ})})]}),(0,t.jsx)(E.HeaderMobileMenuWrapper,{children:(0,t.jsx)(eu,{})}),V&&(0,t.jsx)(E.HeaderUserMobileMenuWrapper,{children:(0,t.jsx)(ep,{onClose:()=>e1(!1),onLogout:e5,firstName:ee?.type==="user"&&ee.customer.firstname})}),(0,t.jsx)(E.HeaderSidebarWrapper,{children:(0,t.jsx)(ed,{type:eh,data:ex,out:eD,onClose:()=>e0(!1),onSetSidebar:e=>eo&&J((0,f.updateSidebar)({open:!0,type:e,data:ex}))})})]}),(0,t.jsx)(E.NavigationSlot,{children:(0,t.jsxs)(E.NavigationRow,{ref:B,menuBarHidden:eS,"aria-label":"FÅ navigáció",onKeyDown:e=>{"Escape"===e.key&&eK("")},children:["KONYVDISZKONT"===ea.key?(0,t.jsx)(K.default,{className:"header-prices"}):(0,t.jsx)(E.MenuWrapper,{children:(0,t.jsx)(E.Ul,{className:"d-none d-xl-flex",children:er.items.map(e=>e.submenu?(0,t.jsx)(E.LiSubMenu,{className:eH===e.submenu?"active":"",ref:t=>F.current[e.submenu]=t,children:(0,t.jsxs)("button",{type:"button","aria-expanded":eH===e.submenu,onClick:()=>{var t;eH===(t=e.submenu)?eK(""):eK(t)},children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(k.default,{type:"chevron-up-small",iconWidth:"12px",iconHeight:"12px",iconColor:"currentColor"})]})},e.key):(0,t.jsx)(E.Li,{children:(0,t.jsx)(s.default,{href:e.href,passHref:!0,children:e.label})},e.key))})}),q&&(0,t.jsx)(t.Fragment,{children:[O.SUBMENU.BOOKS,O.SUBMENU.EBOOKS].map(e=>{let a=er.categorySubmenu(e);return(0,t.jsx)(E.SubMenuWrapper,{open:eH==e&&!1==eS,left:F.current[e]?.offsetLeft,children:(0,t.jsx)(E.SubMenuContainer,{children:(0,t.jsxs)(E.SubMenuCol,{children:[(0,t.jsx)(E.SubMenuTitle,{href:a.href,children:a.title}),(0,t.jsxs)(E.SubMenuList,{children:[eb.map(e=>(0,t.jsx)(E.SubMenuItem,{onClick:()=>eK(""),href:`${a.href}/${e.slug}`,passHref:!0,children:e.title},e.slug)),(0,t.jsx)(E.SubMenuItem,{onClick:()=>eK(""),href:a.href,passHref:!0,accent:!0,children:a.allLabel})]})]})})},e)})})]})})]})}],75439)}]); 13 14//# debugId=c297e846-dc9c-b787-420f-c9892c6dcf58
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.