PageSourceSearch

https://www.mindmegette.hu/chunk-KZDOPYBB.js

js mindmegette.hu collected 2026-10-02 07:01:07 UTC 9,053 bytes, 1 lines download raw bytes

1import{a as re}from"./chunk-ZBSA4CG7.js";import"./chunk-KZS6O6SK.js";import"./chunk-UY2QRB2U.js";import{a as ae}from"./chunk-PWDAV6DI.js";import"./chunk-HUQKYKG5.js";import{t as ie}from"./chunk-J4BO2334.js";import"./chunk-GLN2RGTL.js";import"./chunk-SWQW6FMW.js";import"./chunk-T334T6J2.js";import"./chunk-VM2BOUUM.js";import{a as oe}from"./chunk-SIMGH6JR.js";import"./chunk-Z4BFD7RI.js";import"./chunk-PXLXFBHL.js";import"./chunk-HCD627HP.js";import"./chunk-SQQY7H5O.js";import"./chunk-MOASPEFJ.js";import"./chunk-VFNER3JF.js";import"./chunk-MLNWSIEK.js";import"./chunk-SJXOZDAE.js";import"./chunk-SI5NAIFU.js";import"./chunk-EGV5NW3B.js";import"./chunk-6JTU4JE3.js";import"./chunk-VCQ26QJU.js";import"./chunk-RJTN3VFG.js";import"./chunk-3QOJX5RP.js";import"./chunk-P6CY5CKI.js";import"./chunk-HHA7M42L.js";import{a as ne}from"./chunk-KEYWNPYY.js";import"./chunk-37MU4KYP.js";import"./chunk-AKMUFMIV.js";import{g as ee}from"./chunk-2SOEIUT2.js";import"./chunk-4KIMCKDG.js";import"./chunk-TWDOYPI4.js";import{a as te}from"./chunk-CJNA2AFO.js";import{c as N}from"./chunk-LZT6EPDW.js";import{r as Y,w as Q}from"./chunk-2IOJX3KL.js";import{b as V}from"./chunk-ORBKUQY7.js";import{a as X,m as Z}from"./chunk-NUUNCR2U.js";import"./chunk-ZBWJWUPP.js";import{H as q,aa as G,be as J,zb as K}from"./chunk-4B65WXMH.js";import{Fa as U,Ga as H,ka as I,x as B,z as f}from"./chunk-PXTCM6VB.js";import{$b as d,Ac as C,Ba as A,Bb as z,Bc as S,Ha as L,N as E,Sb as m,Ub as _,Wb as k,Xb as w,Yb as T,Zb as u,_b as l,a as b,ac as h,b as P,da as F,jc as j,k as D,ka as W,lb as s,lc as c,md as $,oa as M,v as R,wb as p,z as y}from"./chunk-5HA2B5KU.js";function ce(t,a){if(t&1&&(l(0,"div",9),h(1,"mindmegette-recipe-card",10),d()),t&2){let e=c(6);s(),u("data",e.mapToRecipeCard(a))("hasBackground",!0)("styleID",e.isMobile()?e.RecipeCardType.TopImageLeftAlignedCard:e.RecipeCardType.LeftImageLongCard)}}function pe(t,a){if(t&1&&(l(0,"div",9),h(1,"mindmegette-recipe-card",10),d()),t&2){let e=c(6);s(),u("data",e.mapToRecipeCard(a))("hasBackground",!0)("styleID",e.isMobile()?e.RecipeCardType.TopImageLeftAlignedCard:e.RecipeCardType.LeftImageLongCard)}}function me(t,a){if(t&1&&(l(0,"div",9),h(1,"mindmegette-recipe-card",10),d()),t&2){let e=c(6);s(),u("data",e.mapToRecipeCard(a))("hasBackground",!0)("styleID",e.isMobile()?e.RecipeCardType.TopImageLeftAlignedCard:e.RecipeCardType.LeftImageLongCard)}}function _e(t,a){if(t&1&&(l(0,"div",9),h(1,"mindmegette-recipe-card",10),d()),t&2){let e=c(6);s(),u("data",e.mapToRecipeCard(a))("hasBackground",!0)("styleID",e.isMobile()?e.RecipeCardType.TopImageLeftAlignedCard:e.RecipeCardType.LeftImageLongCard)}}function he(t,a){if(t&1&&(m(0,ce,2,3,"div",9),m(1,pe,2,3,"div",9),m(2,me,2,3,"div",9),m(3,_e,2,3,"div",9)),t&2){let e,n,i,o,r=c().$implicit;_((e=r.eloetel)?0:-1,e),s(),_((n=r.foetel)?1:-1,n),s(),_((i=r.vega)?2:-1,i),s(),_((o=r.desszert)?3:-1,o)}}function ue(t,a){if(t&1&&m(0,he,4,4),t&2){let e=a.$implicit,n=c(3).$implicit;_(n.value===e.day?0:-1)}}function Ce(t,a){if(t&1&&(l(0,"div",8),w(1,ue,1,1,null,null,k),d()),t&2){let e=c(3);s(),T(e.weeklyMenu.weeklyMenuItems)}}function ge(t,a){t&1&&C(0," Ehhez a naphoz m\xE9g nincs hozz\xE1rendelt men\xFC. ")}function ye(t,a){if(t&1&&(l(0,"div",6)(1,"h3",7),C(2),d(),m(3,Ce,3,0,"div",8)(4,ge,1,0),d()),t&2){let e=c(),n=e.$implicit,i=e.$index,o=c();s(2),S(n.title),s(),_(o.weeklyMenu.weeklyMenuItems[i-1]!=null&&o.weeklyMenu.weeklyMenuItems[i-1].day?3:4)}}function fe(t,a){if(t&1&&m(0,ye,5,2,"div",6),t&2){let e=a.$implicit,n=a.$index,i=c();_(n!==0&&i.isSelectedDay(e.value)?0:-1)}}var se=(()=>{class t{#e;constructor(e,n,i,o,r,g,v,x){this.route=e,this.router=n,this.cdr=i,this.seo=o,this.adStoreAdo=r,this.schemaService=g,this.breakpointObserver=v,this.destroyRef=x,this.environment=N(),this.isPreview=!1,this.isMobile=L(!1),this.RecipeCardType=Z,this.MindmegetteArticleCardType=X,this.daysOfTheWeek=["Teljes h\xE9t","H\xE9tf\u0151","Kedd","Szerda","Cs\xFCt\xF6rt\xF6k","P\xE9ntek","Szombat","Vas\xE1rnap"],this.mapToRecipeCard=te,this.#e=new D}ngOnInit(){this.isPreview=this.router.url.includes("elonezet"),this.route.data.pipe(I(this.destroyRef)).subscribe(({data:e})=>{this.weeklyMenu=e,this.days=this.#n();let n=this.weeklyMenu?.weeklyMenuItems?.reduce((i,o)=>(o?.eloetel&&i.push(this.mapToRecipeCard(o.eloetel)),o?.foetel&&i.push(this.mapToRecipeCard(o.foetel)),o?.vega&&i.push(this.mapToRecipeCard(o.vega)),o?.desszert&&i.push(this.mapToRecipeCard(o.desszert)),i),[]);this.schemaService.removeStructuredData(),n?.length&&this.schemaService.insertSchema(Y(n,this.environment?.siteUrl??"")),this.cdr.detectChanges()}),this.breakpointObserver.observe([re]).pipe(I(this.destroyRef),y(e=>e.matches)).subscribe(e=>{this.isMobile.set(e)}),this.#t(),this.#i()}ngOnDestroy(){this.#e.next(!0),this.#e.complete(),this.adStoreAdo.setArticleParentCategory("")}getWeekInterval(){let e=this.isPreview?new Date(this.weeklyMenu?.weeklyMenuItems[0]?.day):new Date,n=e.getDay(),i=e.getDate()-n+(n===0?-6:1),o=new Date(e.setDate(i)),r=new Date(e.setDate(i+6)),g={year:"numeric",month:"long",day:"numeric"},v=o.toLocaleDateString("hu-HU",g),x=r.toLocaleDateString("hu-HU",g);return`${v} - ${x}`}isSelectedDay(e){return this.selectedDay?.value?this.selectedDay.value===e:!0}#t(){this.adStoreAdo.enableAds(),this.adStoreAdo.advertisemenets$.pipe(F(this.#e)).subscribe(e=>{this.adverts=this.adStoreAdo.separateAdsByMedium(e,G.other_pages),this.cdr.detectChanges()})}#i(){let e=Q("Heti men\xFC"),n=P(b({},V),{title:e,ogImage:this.weeklyMenu.socialCoverImage?.fullSizeUrl,ogTitle:e});this.seo.setMetaData(n);
1let i=J("hetimenu",this.route.snapshot);i&&this.seo.updateCanonicalUrl(i)}#n(){let e=this.daysOfTheWeek.shift(),n=this.daysOfTheWeek.map((i,o)=>({title:i,value:this.weeklyMenu?.weeklyMenuItems?.[o]?.day??new Date}));return n.unshift({title:e,value:null}),n}static{this.\u0275fac=function(n){return new(n||t)(p(B),p(f),p($),p(H),p(K),p(U),p(q),p(A))}}static{this.\u0275cmp=z({type:t,selectors:[["app-weekly-menu"]],decls:15,vars:2,consts:[[1,"wrapper","with-aside"],["id","main-content","tabindex","-1",1,"left-column"],[1,"date-interval"],[1,"days"],[3,"tagSelected","data"],[1,"menu-wrapper"],[1,"menu-container"],[1,"day-title"],[1,"recipe-wrapper"],[1,"recipe-card"],[3,"data","hasBackground","styleID"]],template:function(n,i){n&1&&(l(0,"section")(1,"div",0)(2,"main",1)(3,"h1"),C(4,"Heti men\xFC"),d(),l(5,"div",2),C(6),d(),l(7,"div",3)(8,"mindmegette-tag-as-button",4),j("tagSelected",function(r){return i.selectedDay=i.days[r]}),d()(),l(9,"div",5),w(10,fe,1,1,null,null,k),d(),h(12,"app-external-recommendations"),d(),l(13,"aside"),h(14,"app-sidebar"),d()()()),n&2&&(s(6),S(i.getWeekInterval()),s(2),u("data",i.days),s(2),T(i.days))},dependencies:[ie,ae,ne,ee],styles:["[_nghost-%COMP%]     mindmegette-recipe-card{margin-bottom:0!important}[_nghost-%COMP%]   .menu-container[_ngcontent-%COMP%]{margin-top:40px}@media(max-width:767.98px){[_nghost-%COMP%]   .menu-container[_ngcontent-%COMP%]{margin-top:32px}}[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{color:var(--kui-gray-950);font-family:var(--kui-font-primary);font-size:40px;font-style:normal;font-weight:600;line-height:48px;letter-spacing:-.4px;margin-bottom:8px}@media(max-width:767.98px){[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{font-size:30px;line-height:36px;letter-spacing:-.3px}}[_nghost-%COMP%]   .date-interval[_ngcontent-%COMP%]{color:var(--kui-gray-600);font-family:var(--kui-font-secondary);font-size:18px;font-style:normal;font-weight:500;line-height:26px;letter-spacing:.18px;margin-bottom:24px}@media(max-width:767.98px){[_nghost-%COMP%]   .date-interval[_ngcontent-%COMP%]{font-size:14px;line-height:20px}}[_nghost-%COMP%]   .days[_ngcontent-%COMP%]{margin-bottom:40px}@media(max-width:767.98px){[_nghost-%COMP%]   .days[_ngcontent-%COMP%]{margin-bottom:32px}}[_nghost-%COMP%]   .day-title[_ngcontent-%COMP%]{color:var(--kui-gray-950);font-family:var(--kui-font-primary);font-size:30px;font-style:normal;font-weight:600;line-height:36px;letter-spacing:-.3px;margin-bottom:16px}[_nghost-%COMP%]   .recipe-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}[_nghost-%COMP%]   .recipe-card[_ngcontent-%COMP%]{width:calc(50% - 12px)}@media(max-width:1199.98px){[_nghost-%COMP%]   .recipe-card[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]     .external-recommendations{margin-top:32px}@media(max-width:991.98px){[_nghost-%COMP%]   aside[_ngcontent-%COMP%]{margin-top:32px}}"],changeDetection:0})}}return t})();var O=(()=>{class t{constructor(e,n){this.weeklyMenuService=e,this.router=n}resolve(e){let i=e.params.previewHash;return(i?this.weeklyMenuService.getWeeklyMenuPreview(i).pipe(y(r=>r.data)):this.weeklyMenuService.weeklyMenu).pipe(E(r=>(this.router.navigate(["/","404"],{state:{errorResponse:JSON.stringify(r)},skipLocationChange:!0}),R(()=>r))))}static{this.\u0275fac=function(n){return new(n||t)(M(oe),M(f))}}static{this.\u0275prov=W({token:t,factory:t.\u0275fac})}}return t})();var He=[{path:"",component:se,resolve:{data:O},providers:[O]}];export{He as weeklyMenuRoutes};

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.