1import{a as li}from"./chunk-252MY7UI.js";import{a as Ze}from"./chunk-AWHZ3GS7.js";import{a as ai}from"./chunk-ZBSA4CG7.js";import"./chunk-KZS6O6SK.js";import"./chunk-UY2QRB2U.js";import"./chunk-PWDAV6DI.js";import"./chunk-HUQKYKG5.js";import{A as ni,B as He,C as oi,R as ri,e as Ue,f as le,g as ee,k as Xt,o as Ee,q as ei,r as ti,u as ii,y as Fe}from"./chunk-J4BO2334.js";import"./chunk-GLN2RGTL.js";import"./chunk-SWQW6FMW.js";import"./chunk-T334T6J2.js";import"./chunk-VM2BOUUM.js";import"./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 qe}from"./chunk-KEYWNPYY.js";import"./chunk-37MU4KYP.js";import{a as qt}from"./chunk-AKMUFMIV.js";import{a as We,g as Oe}from"./chunk-2SOEIUT2.js";import"./chunk-4KIMCKDG.js";import"./chunk-TWDOYPI4.js";import"./chunk-CJNA2AFO.js";import{e as Ht,g as k,h as X,t as Qt,u as Yt,v as Ke,w as Jt,y as Zt}from"./chunk-LZT6EPDW.js";import{p as Kt,w as W}from"./chunk-2IOJX3KL.js";import{b as K}from"./chunk-ORBKUQY7.js";import{a as Wt,c as $e,m as Me}from"./chunk-NUUNCR2U.js";import"./chunk-ZBWJWUPP.js";import{$c as ke,A as ye,Bh as Ut,De as Ne,Df as $t,Ga as It,H as Tt,Je as Nt,Le as Gt,Ob as At,Oh as ie,Pb as Rt,Rc as R,Sc as Lt,Vc as Se,Xc as je,_c as zt,aa as ze,bd as Vt,be as U,cd as jt,eb as Bt,i as Ce,k as x,l as ve,m as xe,r as Et,s as Pe,sa as Dt,t as Ft,ug as Ge,v as Le,w as we,y as be,z as ae,zb as Ve}from"./chunk-4B65WXMH.js";import{A as _e,B as kt,Ga as $,ia as Mt,na as Ot,x as Z,y as St,z as G}from"./chunk-PXTCM6VB.js";import{$ as ot,$b as r,Ac as l,Bb as S,Bc as z,Cc as y,Cd as Ct,Dc as ge,Dd as re,Ed as vt,Fb as lt,Gb as Ae,Gc as ut,Hc as gt,Hd as xt,Ic as ft,Id as Pt,Kd as wt,Ld as bt,Ma as rt,N as me,Nc as Q,Oc as Ie,Qb as st,Sb as g,Sd as yt,Ub as f,Vc as P,W as nt,Wb as I,Wc as T,Xb as E,Xc as ht,Yb as F,Yc as fe,Zb as m,Zc as he,_b as o,a as M,ac as c,b as O,ca as de,da as D,dd as _t,ea as ne,gb as oe,gc as pt,hc as b,jb as at,jc as h,k as V,ka as J,l as pe,lb as a,lc as d,md as N,oa as q,pa as L,pc as ct,qc as mt,rc as dt,v as ce,vc as ue,wa as _,wb as u,xa as C,xc as te,yc as H,yd as Re,z as j}from"./chunk-5HA2B5KU.js";var Qe=(()=>{class i{set currentSort(e){e.key===this.currentSort.key&&e.value===this.currentSort.value||(this._currentSort=e,this.loadOwnBestPractices())}get currentSort(){return this._currentSort}set currentFilter(e){e!==this.currentFilter&&(this._currentFilter=e,this.loadOwnBestPractices())}get currentFilter(){return this._currentFilter}constructor(e){this.secureApi=e,this.sortList=[{title:"Leg\xFAjabb",key:"created_at_order[]",value:"desc"},{title:"Legr\xE9gebbi",key:"created_at_order[]",value:"asc"},{title:"Abc szerint n\xF6vekv\u0151",key:"title_order[]",value:"asc"},{title:"Abc szerint cs\xF6kken\u0151",key:"title_order[]",value:"desc"}],this.bestPractices=new pe([]),this.limitable=new pe({}),this.totalBestPractices=new pe(0),this._currentFilter="",this._inited=!1,this._currentSort=this.sortList[0]}init(){this._inited||this.loadOwnBestPractices()}loadOwnBestPractices(){this._inited=!0;let e={global_filter:this.currentFilter};e[this.currentSort.key]=this.currentSort.value,this.secureApi.getMyBestPractices(e).subscribe(n=>{this.limitable.next(n.meta?.limitable||{rowAllCount:n.meta?.dataCount||0}),this.bestPractices.next(n.data||[]),this.currentFilter===""&&this.totalBestPractices.next(n.data?.length||0)})}static{this.\u0275fac=function(n){return new(n||i)(q(k))}}static{this.\u0275prov=J({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ye=(()=>{class i{constructor(){this.hideProfileDetails$=new pe(!1)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=J({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Si=["profileDetails"],ki=()=>["/profil/koveteseim"];function Mi(i,p){if(i&1){let e=b();o(0,"main",2)(1,"section",4)(2,"div",5)(3,"div",6,1),P(5,"async"),o(6,"div",7)(7,"a",8),c(8,"img",9),o(9,"span",10),l(10,"Alapadatok szerkeszt\xE9se"),r()()(),o(11,"div",11)(12,"div",12),c(13,"mindmegette-avatar-initials",13),P(14,"avatarColor"),o(15,"img",14),h("click",function(){_(e);let t=d();return C(t.showProfileUploadPopup=!t.showProfileUploadPopup)})("keydown.enter",function(){_(e);let t=d();return C(t.showProfileUploadPopup=!t.showProfileUploadPopup)}),r()(),o(16,"div",15)(17,"div",16),l(18),r(),o(19,"div",17)(20,"a",18)(21,"span"),l(22),r(),l(23," recept"),r(),c(24,"div",19),o(25,"div",20)(26,"span"),l(27),r(),l(28," k\xF6vet\u0151 "),r(),c(29,"div",19),o(30,"a",21)(31,"span"),l(32),r(),l(33," k\xF6vet\xE9s"),r()(),o(34,"div",22),l(35),r(),c(36,"app-profile-badges",23),r()(),o(37,"div",24),pt(38,25),r()(),c(39,"router-outlet"),r()()()}if(i&2){let e=p,n=d(),t=ue(3);a(3),m("hidden",T(5,16,n.profileService.hideProfileDetails$)||n.isMyFollowedProfilesURL()),a(10),H(n.MindmegetteNameInitialType.PROFILE),m("backgroundColor",T(14,18,n.user==null?null:n.user.avatarColor).colorCode)("name",(n.user==null?null:n.user.firstName)??"")("userName",(n.user==null?null:n.user.username)??"")("avatarImgUrl",n.user==null?null:n.user.avatar)("size",n.isDesktopView?160:120),a(5),z(e==null?null:e.userName),a(4),z(e==null?null:e.uploadedRecipeCount),a(5),z(e==null?null:e.follower),a(3),m("routerLink",Q(20,ki)),a(2),z(e==null?null:e.followed),a(3),y("",e==null?null:e.membership," \xF3ta tag"),a(),m("badgeData",n.user==null?null:n.user.badges),a(2),m("ngTemplateOutlet",t)}}function Oi(i,p){i&1&&(o(0,"a",29),l(1,"Turpiss\xE1gaim"),r())}function Ei(i,p){if(i&1&&(o(0,"nav",26)(1,"a",27),l(2,"Mentett receptek"),r(),o(3,"a",28),l(4,"Saj\xE1t receptek"),r(),g(5,Oi,2,0,"a",29),P(6,"async"),o(7,"a",30),l(8,"Bev\xE1s\xE1rl\xF3list\xE1k"),r(),o(9,"a",31),l(10,"Kommentek"),r()()),i&2){let e=d();a(5),f(T(6,1,e.profileOwnBestPracticeService.totalBestPractices)?5:-1)}}function Fi(i,p){if(i&1){let e=b();o(0,"mindmegette-popup",32),h("resultEvent",function(t){_(e);let s=d();return C(s.onProfileUploadResult(t))}),o(1,"form",33),h("ngSubmit",function(){_(e);let t=d();return C(t.uploadProfileImage())}),o(2,"div",34),c(3,"mindmegette-file-uploader",35),r()()()}if(i&2){let e=d();m("showCloseIcon",!1)("acceptButtonLabel","M\xF3dos\xEDt\xE1s")("title","Profilk\xE9p felt\xF6lt\xE9se"),a(),m("formGroup",e.profileImageFormGroup),a(2),m("allowedExtensions",e.profileImageUploaderConfig.allowedFileExtensions)("allowedTypes",e.profileImageUploaderConfig.allowedFileTypes)("formGroup",e.profileImageFormGroup)("id","avatar")("isRequired",!0)("maxSize",e.profileImageUploaderConfig.maxFileSize)("isProfileImageUploader",!0)}}var ci=(()=>{class i{constructor(e,n,t,s,v,w,A,se,wi,bi,yi){this.authService=e,this.route=n,this.utilService=t,this.profileHeaderService=s,this.profileOwnBestPracticeService=v,this.formBuilder=w,this.secureApiService=A,this.profileService=se,this.screenWidthService=wi,this.router=bi,this.cdr=yi,this.MindmegetteNameInitialType=$e,this.profileImageUploaderConfig={allowedFileTypes:["image/png","image/jpeg"],allowedFileExtensions:["png","jpg","jpeg"],maxFileSize:5,minFiles:1,maxFiles:1},this.showProfileUploadPopup=!1,this.isLoading=!1,this.isDesktopView=!1,this.lastValue=!1,this.unsubscribe$=new V,this.data$=this.route.data.pipe(ne(Je=>{this.profileHeaderService.uploadedRecipeCount$.next(Je?.uploadedRecipeCount??0)}),j(({data:Je})=>Je),D(this.unsubscribe$)),this.profileOwnBestPracticeService.init(),this.initProfileUploadFormGroup()}get user(){return this.authService.currentUser}onWindowScroll(){if(this.utilService.isBrowser()&&this.profileDetails){let e=this.profileDetails.nativeElement.getBoundingClientRect().bottom;this.handleScroll(e)}}ngOnInit(){this.screenWidthService.isDesktopWidth$.pipe(D(this.unsubscribe$)).subscribe(e=>this.isDesktopView=e)}ngAfterViewInit(){if(this.utilService.isBrowser()&&this.profileDetails){let e=this.profileDetails.nativeElement.getBoundingClientRect().bottom;this.handleScroll(e)}}ngOnDestroy(){this.profileHeaderService.showProfileHeader$.next(!1),this.unsubscribe$.next(),this.unsubscribe$.complete()}uploadProfileImage(){if(ke(this.profileImageFormGroup),!this.profileImageFormGroup?.valid)return;let e=new FormData;e.append("avatar",this.profileImageFormGroup.value.avatar[0].file),this.isLoading=!0,this.secureApiService.uploadProfileAvatar(e).pipe(nt(()=>this.isLoading=!1)).subscribe({next:()=>{this.showProfileUploadPopup=!this.showProfileUploadPopup,this.initProfileUploadFormGroup(),this.authService.reloadUserData(),this.cdr.detectChanges()},error:()=>{this.profileImageFormGroup.get("avatar")?.setErrors({imageUploadError:!0})}})}onProfileUploadResult(e){if(!e){this.showProfileUploadPopup=!this.showProfileUploadPopup;return}this.uploadProfileImage()}isMyFollowedProfilesURL(){return"/profil/koveteseim"===this.router.url}
1handleScroll(e){if(!this.utilService.isBrowser())return;window.scrollY>e!==this.lastValue&&this.profileHeaderService.showProfileHeader$.next(window.scrollY>e),this.lastValue=window.scrollY>e,this.cdr.detectChanges()}initProfileUploadFormGroup(){this.profileImageFormGroup=this.formBuilder.group({avatar:this.formBuilder.array([],[Vt(this.profileImageUploaderConfig.minFiles),jt(this.profileImageUploaderConfig.maxFiles)])})}static{this.\u0275fac=function(n){return new(n||i)(u(X),u(Z),u(Ot),u(Yt),u(Qe),u(be),u(k),u(Ye),u(Zt),u(G),u(N))}}static{this.\u0275cmp=S({type:i,selectors:[["app-profile"]],viewQuery:function(n,t){if(n&1&&ct(Si,5),n&2){let s;mt(s=dt())&&(t.profileDetails=s.first)}},hostBindings:function(n,t){n&1&&h("scroll",function(){return t.onWindowScroll()},at)},decls:5,vars:4,consts:[["profileMenu",""],["profileDetails",""],["id","main-content","tabindex","-1"],[3,"showCloseIcon","acceptButtonLabel","title"],[1,"profile"],[1,"wrapper"],[1,"profile-header",3,"hidden"],[1,"edit-container"],["routerLink","/profil/beallitasok","routerLinkActive","active",1,"edit-container-img"],["src","/assets/images/icons/edit-icon.svg","alt","","aria-hidden","true"],[1,"tooltip"],[1,"user-card"],[1,"user-card-image"],[3,"backgroundColor","name","userName","avatarImgUrl","size"],["src","/assets/images/icons/camera-icon.svg","alt","K\xE9p szerkeszt\xE9se",1,"user-card-image-edit",3,"click","keydown.enter"],[1,"user-card-data"],[1,"user-card-data-name"],[1,"user-card-data-detail
1s"],["routerLink","/profil/sajat-receptek",1,"recipe-count"],[1,"details-separator"],[1,"recipe-count"],[1,"recipe-count",3,"routerLink"],[1,"member-since"],[1,"user-card-data-badges",3,"badgeData"],[1,"user-card-menu"],[3,"ngTemplateOutlet"],[1,"profile-menu"],["routerLink","/profil/mentett-receptek","routerLinkActive","active"],["routerLink","/profil/sajat-receptek","routerLinkActive","active"],["routerLink","/profil/sajat-turpik","routerLinkActive","active"],["routerLink","/profil/bevasarlolista","routerLinkActive","active"],["routerLink","/profil/kommentek","routerLinkActive","active"],[3,"resultEvent","showCloseIcon","acceptButtonLabel","title"],[3,"ngSubmit","formGroup"],[1,"mindmegette-form-row"],["controlName","avatar","label","Profilk\xE9p",3,"allowedExtensions","allowedTypes","formGroup","id","isRequired","maxSize","isProfileImageUploader"]],template:function(n,t){if(n&1&&(g(0,Mi,40,21,"main",2),P(1,"async"),Ae(2,Ei,11,3,"ng-template",null,0,he),g(4,Fi,4,11,"mindmegette-popup",3)),n&2){let s;f((s=T(1,2,t.data$))?0:-1,s),a(4),f(t.showProfileUploadPopup?4:-1)}},dependencies:[_e,kt,ni,Ct,St,ae,Pe,xe,ye,we,Ue,ee,ii,re,We],styles:['[_nghost-%COMP%]{position:relative}.profile-menu[_ngcontent-%COMP%]{display:flex;width:100%;max-width:720px;justify-content:space-between;height:100%;gap:10px;overflow-x:scroll;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.profile-menu[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}@media(max-width:991.98px){.profile-menu[_ngcontent-%COMP%]{gap:32px}}.profile-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;font-family:var(--kui-font-secondary);font-size:12px;font-weight:700;text-transform:uppercase;line-height:16px;letter-spacing:.48px;color:var(--kui-gray-400);cursor:pointer;padding:14px 0;min-height:56px;height:100%;align-items:center;position:relative;text-wrap:nowrap}@media(min-width:768px){.profile-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{min-height:60px}}.profile-menu[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{color:var(--kui-gray-950)}.profile-menu[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]:after{content:"";display:block;width:100%;height:4px;background-color:var(--kui-green-700);bottom:-14px;position:absolute}.profile[_ngcontent-%COMP%]{margin:28px auto 60px;max-width:676px}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%]{margin-bottom:60px;position:relative}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .edit-container[_ngcontent-%COMP%]{position:absolute;right:0;top:12px}@media(max-width:991.98px){.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .edit-container[_ngcontent-%COMP%]{top:0}}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .edit-container-img[_ngcontent-%COMP%]{position:relative}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .edit-container-img[_ngcontent-%COMP%] .tooltip[_ngcontent-%COMP%]{display:none}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .edit-container-img[_ngcontent-%COMP%]:hover .tooltip[_ngcontent-%COMP%]{display:block;width:max-content;margin-top:8px;position:absolute;padding:2px 6px;background:var(--kui-gray-500);border-radius:2px;border:1px var(--kui-gray-400) solid;color:var(--kui-white);font-size:12px;font-family:var(--kui-font-secondary);font-weight:500;line-height:16px;letter-spacing:.06px;left:50%;transform:translate(-50%)}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card[_ngcontent-%COMP%]{width:100%;display:flex;gap:32px;align-items:center;max-height:160px}@media(max-width:991.98px){.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card[_ngcontent-%COMP%]{flex-direction:column;gap:16px;max-height:unset}}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-image[_ngcontent-%COMP%]{position:relative}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-image-edit[_ngcontent-%COMP%], .profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-image-delete[_ngcontent-%COMP%]{width:28px;height:28px;position:absolute;right:10px;border-radius:50%;cursor:pointer}@media(max-width:991.98px){.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-image-edit[_ngcontent-%COMP%], .profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-image-delete[_ng
1content-%COMP%]{right:4px}}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-image-edit[_ngcontent-%COMP%]{bottom:10px}@media(max-width:991.98px){.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-image-edit[_ngcontent-%COMP%]{bottom:4px}}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-image-delete[_ngcontent-%COMP%]{top:10px}@media(max-width:991.98px){.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-image-delete[_ngcontent-%COMP%]{top:4px}}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;color:var(--kui-gray-950)}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-data-name[_ngcontent-%COMP%]{font-family:var(--kui-font-primary);font-size:34px;font-weight:600;line-height:40px;letter-spacing:-.17}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-data-detail
1s[_ngcontent-%COMP%]{font-family:var(--kui-font-secondary);font-size:14px;font-weight:400;line-height:20px;display:flex;flex-wrap:wrap}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-data-details[_ngcontent-%COMP%] .recipe-count[_ngcontent-%COMP%]{color:var(--kui-gray-950);padding:8px 0}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-data-details[_ngcontent-%COMP%] .recipe-count[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-data-details[_ngcontent-%COMP%] .details-separator[_ngcontent-%COMP%]{height:14px;width:1px;background-color:var(--kui-gray-300);margin:auto 8px}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-data-badges[_ngcontent-%COMP%]{margin-top:16px}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card[_ngcontent-%COMP%] .member-since[_ngcontent-%COMP%]{font-family:var(--kui-font-secondary);color:var(--kui-gray-600);font-size:14px;font-weight:400;line-height:20px}.profile[_ngcontent-%COMP%] .profile-header[_ngcontent-%COMP%] .user-card-menu[_ngcontent-%COMP%]{margin-top:12px}.mindmegette-form-row[_ngcontent-%COMP%]{text-align:left}'],changeDetection:0})}}return i})();var et=(()=>{class i{constructor(e,n){this.apiService=e,this.authService=n}resolve(){return this.apiService.getUserProfileDetails(this.authService.currentUser?.uid??"").pipe(j(e=>({userName:e.data.userName,selectedImage:e.data.selectedImage,uploadedRecipeCount:e.data.recipeCount,followed:e.data.followed,follower:e.data.follower,membership:e.data.membership})))}static{this.\u0275fac=function(n){return new(n||i)(q(Ht),q(X))}}static{this.\u0275prov=J({token:i,factory:i.\u0275fac})}}return i})();function Di(i,p){}function Ii(i,p){if(i&1&&c(0,"mindmegette-recipe-card",11),i&2){let e=p.data,n=d(2);m("styleID",n.RecipeCardType.TopImageLeftAlignedCard)("data",e)("hasBackground",!0)}}function Bi(i,p){i&1&&c(0,"kesma-icon",12)}function Ai(i,p){i&1&&c(0,"kesma-icon",13)}function Ri(i,p){if(i&1){let e=b();Ae(0,Ii,1,3,"ng-template",null,0,he)(2,Bi,1,0,"ng-template",null,1,he)(4,Ai,1,0,"ng-template",null,2,he),c(6,"div",9),o(7,"mindmegette-simple-button",10),h("click",function(){_(e);let t=d();return C(t.navigateToDetailPage(t.group()))})("keydown.enter",function(){_(e);let t=d();return C(t.navigateToDetailPage(t.group()))}),l(8," Tov\xE1bb "),r()}if(i&2){let e,n,t=ue(1),s=ue(3),v=ue(5),w=d();a(6),m("itemTemplate",t)("previousNavigationTemplate",s)("nextNavigationTemplate",v)("useNavigation",(((e=w.group().recipes)==null?null:e.length)||0)>w.elementsPerView)("usePagination",(((n=w.group().recipes)==null?null:n.length)||0)>w.elementsPerView)("data",w.group().recipes)("breakpoints",w.breakpoints),a(),m("wide",!0)}}function Li(i,p){i&1&&(o(0,"div",8),l(1,"A gy\u0171jtem\xE9nynek m\xE9g nincs hozz\xE1rendelt receptje."),r())}var mi=(()=>{class i extends Gt{constructor(){super(...arguments),this.breakpointObserver=L(Tt),this.router=L(G),this.group=_t.required(),this.elementsPerView=3,this.breakpoints={default:{itemCount:1.5,gap:"16px"},576:{itemCount:3,gap:"16px"}},this.RecipeCardType=Me,this.isMobile$=this.breakpointObserver.observe([ai]).pipe(ne(e=>{this.elementsPerView=e?.matches?1.5:3}))}navigateToDetailPage(e){this.router.navigate([`/profil/mentett-receptek/${e.id}`],{}).then()}static{this.\u0275fac=(()=>{let e;return function(t){return(e||(e=rt(i)))(t||i)}})()}static{this.\u0275cmp=S({type:i,selectors:[["app-profile-saved-recipes-swiper"]],inputs:{group:[1,"group"]},features:[lt],decls:11,vars:7,consts:[["itemTemplate",""],["previousNavigation",""],["nextNavigation",""],[1,"group"],[1,"group-header"],[1,"group-title"],[1,"group-count"],[1,"swiper-arrows-placeholder",3,"hidden"],[1,"group-empty"],["kesma-swipe","",3,"itemTemplate","previousNavigationTemplate","nextNavigationTemplate","useNavigation","usePagination","data","breakpoints"],["color","primary","icon","arrow-right-white","iconPosition","right",3,"click","keydown.enter","wide"],[3,"styleID","data","hasBackgroun
1d"],["name","mindmegette-icon-green-left-arrow"],["name","mindmegette-icon-green-right-arrow"]],template:function(n,t){if(n&1&&(g(0,Di,0,0),P(1,"async"),o(2,"div",3)(3,"div",4)(4,"h2",5),l(5),o(6,"sup",6),l(7),r()(),c(8,"div",7),r(),g(9,Ri,9,8)(10,Li,2,0,"div",8),r()),n&2){let s,v;f(T(1,5,t.isMobile$)?0:-1),a(5),y(" ",t.group().title," "),a(2),y("(",t.group().allRecipeCount||0,")"),a(),m("hidden",!((((s=t.group().recipes)==null?null:s.length)||0)>3)),a(),f((v=t.group().recipes)!=null&&v.length?9:10)}},dependencies:[bt,Oe,le,$t,Ut,re],styles:["[_nghost-%COMP%] .group[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;gap:20px}[_nghost-%COMP%] .group-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:24px}[_nghost-%COMP%] .group[_ngcontent-%COMP%] .kesma-swipe[_ngcontent-%COMP%]{position:static}[_nghost-%COMP%] .group[_ngcontent-%COMP%] .kesma-swipe[_ngcontent-%COMP%] .bottom-navigation{position:absolute;top:0;right:0}[_nghost-%COMP%] .group-title[_ngcontent-%COMP%]{font-family:var(--kui-font-primary);font-size:24px;font-weight:600;line-height:28px;letter-spacing:.12px}[_nghost-%COMP%] .group-count[_ngcontent-%COMP%]{font-weight:500;font-size:16px;line-height:0}[_nghost-%COMP%] .group-empty[_ngcontent-%COMP%]{font-family:var(--kui-font-primary)}[_nghost-%COMP%] .group[_ngcontent-%COMP%] mindmegette-simple-button .btn-primary{display:flex;align-items:center;justify-content:center;gap:8px}[_nghost-%COMP%] .group[_ngcontent-%COMP%] mindmegette-simple-button .icon-arrow-right-white{width:14px;height:14px;margin:0}-arrows-placeholder[_nghost-%COMP%]{min-width:80px}-arrows-placeholder.hide[_nghost-%COMP%]{display:none}"],changeDetection:0})}}return i})();var Vi=(i,p)=>p.id;function ji(i,p){if(i&1&&c(0,"app-profile-saved-recipes-swiper",0),i&2){let e=d().$implicit;m("group",e)}}function Ni(i,p){if(i&1&&g(0,ji,1,1,"app-profile-saved-recipes-swiper",0),i&2){let e=p.$implicit;f(e?0:-1)}}var di=(()=>{class i{constructor(e,n,t,s){this.seo=e,this.secureApi=n,this.cdr=t,this.adStore=s,this.destroy$=new V}ngOnInit(){this.initAds(),this.secureApi.getRecipeGroupsWithArticles().pipe(j(({data:e})=>e)).subscribe(e=>{this.groups=e?.map(n=>O(M({},n),{recipes:n?.recipes?.map(t=>Kt(t))})),this.cdr.markForCheck()})}initAds(){this.resetAds(),this.adStore.advertisemenets$.pipe(D(this.destroy$)).subscribe(e=>{this.adverts=this.adStore.separateAdsByMedium(e,ze.recipe_pages),this.cdr.detectChanges()})}resetAds(){this.adverts=void 0,this.cdr.detectChanges()}ngAfterViewInit(){this.setMetaData()}setMetaData(){let e=U("profil/mentett-receptek");e&&this.seo.updateCanonicalUrl(e);let n=W("Profil - Mentett receptek"),t=O(M({},K),{title:n,ogTitle:n});this.seo.setMetaData(t)}static{this.\u0275fac=function(n){return new(n||i)(u($),u(k),u(N),u(Ve))}}static{this.\u0275cmp=S({type:i,selectors:[["app-profile-saved-recipes"]],decls:2,vars:0,consts:[[3,"group"]],template:function(n,t){n&1&&E(0,Ni,1,1,null,null,Vi),n&2&&F(t.groups)},dependencies:[mi],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:48px}@media(max-width:991.98px){[_nghost-%COMP%]{gap:32px}}"],changeDetection:0})}}return i})();var Gi=i=>["/","recept",i],$i=()=>[];function Ui(i,p){if(i&1&&(o(0,"div",8),l(1),r()),i&2){let e=d().$implicit;a(),ge("",e==null?null:e.quantity," ",e==null?null:e.unit)}}function Ki(i,p){if(i&1){let e=b();o(0,"div",7),g(1,Ui,2,2,"div",8),o(2,"div",9),l(3),P(4,"lowercase"),r(),o(5,"i",10),h("click",function(){let t=_(e).$implicit,s=d(2).$implicit,v=d(2);return C(v.removeIngredient(s.recipe.slug,t.ingredient.id))}),r()()}if(i&2){let e=p.$implicit;a(),f(e.quantity?1:-1),a(2),z(T(4,2,e==null||e.ingredient==null?null:e.ingredient.title))}}function Wi(i,p){if(i&1){let e=b();o(0,"mindmegette-collapsible-box",6),h("deleteEvent",function(){_(e);let t=d(),s=t.$implicit,v=t.$index,w=d(2);return C(w.removeItem(s.recipe.slug,v))}),E(1,Ki,6,4,"div",7,I),r()}if(i&2){let e=d().$implicit,n=d(2);m("isDeletable",!0)("title",n.getTitle(e.recipe.title,e.ingredients.length))("link",Ie(3,Gi,e.recipe.slug)),a(),F((e==null?null:e.ingredients)||Q(5,$i))}}function qi(i,p){if(i&1&&(o(0,"div",4),g(1,Wi,3,6,"mindmegette-collapsible-box",5),r()
1),i&2){let e=p.$implicit;a(),f(!(e==null||e.ingredients==null)&&e.ingredients.length?1:-1)}}function Hi(i,p){if(i&1){let e=b();o(0,"div",2),h("click",function(){_(e);let t=d();return C(t.showConfirmPopup=!t.showConfirmPopup)}),l(1," \xD6sszes t\xF6rl\xE9se "),c(2,"i",3),r(),E(3,qi,2,1,"div",4,I)}if(i&2){let e=d();a(3),F(e.shoppingList)}}function Qi(i,p){i&1&&(o(0,"div",0),l(1,"M\xE9g nincs r\xF6gz\xEDtett bev\xE1s\xE1rl\xF3list\xE1ja."),r())}function Yi(i,p){if(i&1){let e=b();o(0,"mindmegette-popup",11),h("resultEvent",function(t){_(e);let s=d();return C(s.clearShoppingList(t))}),c(1,"i",12),o(2,"div",13),l(3,"Biztos, hogy t\xF6rl\xF6d a bev\xE1s\xE1rl\xF3list\xE1d?"),r(),o(4,"div",14),l(5,"A t\xF6rl\xE9s nem visszavonhat\xF3!"),r()()}i&2&&m("acceptButtonColor","tertiary")("showCloseIcon",!0)("showAcceptButton",!0)}var ui=(()=>{class i{constructor(e,n,t,s,v){this.seo=e,this.secureApiService=n,this.route=t,this.cdr=s,this.shoppingListService=v,this.destroy$=new V,this.shoppingList=[],this.showConfirmPopup=!1}ngOnInit(){this.setMetaData(),this.route.data.pipe(D(this.destroy$)).subscribe(({data:{data:e}})=>{this.shoppingList=e,this.shoppingListService.list$.next(e),this.setMetaData(),this.cdr.markForCheck()})}get hasDisplayedItem(){return this.shoppingList?.some(({ingredients:e})=>e?.length)}getTitle(e,n){return`<span class="collapsible-box-link">${e} <sup>(${n})</sup></span>`}removeItem(e,n){this.secureApiService.deleteRecipeFromShoppingList(e).subscribe(()=>{this.shoppingList.splice(n,1),this.shoppingListService.list$.next(this.shoppingList),this.cdr.markForCheck()})}removeIngredient(e,n){this.secureApiService.deleteIngredientFromShoppingList(e,n).subscribe(()=>{this.shoppingList=[...this.shoppingList.map(t=>O(M({},t),{ingredients:t.recipe.slug===e?t.ingredients.filter(({ingredient:{id:s}})=>s!==n):t.ingredients}))],this.shoppingListService.list$.next(this.shoppingList),this.cdr.markForCheck()})}clearShoppingList(e){this.showConfirmPopup=!1,e&&this.secureApiService.clearShoppingList().subscribe(()=>{this.shoppingList=[],this.cdr.markForCheck()})}setMetaData(){let e=U("profil/bevasarlolista");e&&this.seo.updateCanonicalUrl(e);let n=W("Profil - Bev\xE1s\xE1rl\xF3list\xE1k"),t=O(M({},K),{title:n,ogTitle:n});this.seo.setMetaData(t)}static{this.\u0275fac=function(n){return new(n||i)(u($),u(k),u(Z),u(N),u(Xt))}}static{this.\u0275cmp=S({type:i,selectors:[["app-profile-shopping-list"]],decls:3,vars:2,consts:[[1,"empty"],["acceptButtonLabel","Bev\xE1s\xE1rl\xF3lista t\xF6rl\xE9se",3,"acceptButtonColor","showCloseIcon","showAcceptButton"],[1,"clear-shopping-list",3,"click"],["title","T\xF6rl\xE9s",1,"icon","icon-trash-white"],[1,"shopping-group"],[3,"isDeletable","title","link"],[3,"deleteEvent","isDeletable","title","link"],[1,"shopping-item"],[1,"shopping-item-unit"],[1,"shopping-item-title"],[1,"icon","mindmegette-icon-close-gray",3,"click"],["acceptButtonLabel","Bev\xE1s\xE1rl\xF3lista t\xF6rl\xE9se",3,"resultEvent","acceptButtonColor","showCloseIcon","showAcceptButton"],[1,"icon","icon-warning"],[1,"popup-title"],[1,"popup-description"]],template:function(n,t){n&1&&(g(0,Hi,5,0)(1,Qi,2,0,"div",0),g(2,Yi,6,3,"mindmegette-popup",1)),n&2&&(f(t.shoppingList!=null&&t.shoppingList.length&&t.hasDisplayedItem?0:1),a(2),f(t.showConfirmPopup?2:-1))},dependencies:[Ee,ee,vt],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .clear-shopping-list[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--kui-white);background-color:var(--kui-green-700);text-align:center;font-family:var(--kui-font-secondary);font-size:14px;font-style:normal;font-weight:500;line-height:20px;border-radius:6px;padding:8px 16px;margin-bottom:32px;width:100%;cursor:pointer}[_nghost-%COMP%] .clear-shopping-list[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:20px;height:20px}[_nghost-%COMP%] .shopping-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:48px;gap:8px}@media(max-width:767.98px){[_nghost-%COMP%] .shopping-group[_ngcontent-%COMP%]{margin-bottom:32px}}[_nghost-%COMP%] .shopping-group-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}[_nghost-%COMP%] .shopping-group-title[_ngcontent-%COMP%]{font-family:var(--kui-font-primary);font-size:24px;font-weight:600;line-height:28px;color:var(--kui-gray-950);letter-spacing:.12px;margin-bottom:12px}[_nghost-%COMP%] .shopping-item[_ngcontent-%COMP%]{background-color:var(--kui-white);border:1px solid var(--kui-gray-100);border-radius:12px;padding:24px;display:flex;gap:12px;margin-bottom:8px}@media(max-width:767.98px){[_nghost-%COMP%] .shopping-item[_ngcontent-%COMP%]{padding:16px}}[_nghost-%COMP%] .shopping-item-title[_ngcontent-%COMP%], [_nghost-%COMP%] .shopping-item-unit[_ngcontent-%COMP%]{font-family:var(--kui-font-secondary);font-size:16px;font-weight:400;line-height:24px;letter-spacing:.16px}[_nghost-%COMP%] .shopping-item-unit[_ngcontent-%COMP%]{min-width:120px}[_nghost-%COMP%] .icons[_ngcontent-%COMP%]{display:flex;gap:8px}[_nghost-%COMP%] .icons[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{min-width:24px;min-height:24px;
1cursor:pointer}[_nghost-%COMP%] .mindmegette-icon-close-gray[_ngcontent-%COMP%]{min-width:20px;min-height:20px;cursor:pointer;margin-left:auto}[_nghost-%COMP%] .icon-warning[_ngcontent-%COMP%]{width:60px;height:60px;margin-bottom:24px}[_nghost-%COMP%] mindmegette-popup[_ngcontent-%COMP%] .popup-buttons-wrapper{flex-direction:column}[_nghost-%COMP%] mindmegette-popup[_ngcontent-%COMP%] .popup-title[_ngcontent-%COMP%]{font-size:30px;font-weight:600;line-height:36px;color:var(--kui-gray-950);letter-spacing:-.3px;margin-bottom:16px}@media(max-width:991.98px){[_nghost-%COMP%] mindmegette-popup[_ngcontent-%COMP%] .popup-title[_ngcontent-%COMP%]{font-size:24px;line-height:28px;letter-spacing:-.12px}}[_nghost-%COMP%] mindmegette-popup[_ngcontent-%COMP%] .popup-description[_ngcontent-%COMP%]{font-size:14px;line-height:20px;color:var(--kui-gray-600)}@media(max-width:991.98px){[_nghost-%COMP%] mindmegette-popup[_ngcontent-%COMP%] .popup-description[_ngcontent-%COMP%]{font-size:12px;line-height:16px;letter-spacing:.12px}}[_nghost-%COMP%] .collapsible-box-link:hover{color:var(--kui-green-700)}[_nghost-%COMP%] .empty[_ngcontent-%COMP%]{font-family:var(--kui-font-secondary);text-align:center}"],changeDetection:0})}}return i})();function Ji(i,p){if(i&1){let e=b();o(0,"div",90),P(1,"avatarColor"),h("click",function(){let t=_(e).$implicit,s=d(2);return C(s.selectAvatarColor(t.value))})("keydown.enter",function(){let t=_(e).$implicit,s=d(2);return C(s.selectAvatarColor(t.value))}),c(2,"mindmegette-avatar-initials",91),P(3,"avatarColor"),l(4),P(5,"avatarColor"),r()}if(i&2){let e,n=p.$implicit,t=d(2);te("avatar-color-wrapper-card-selected",(t.formGroup==null||(e=t.formGroup.get("avatarColor"))==null?null:e.value)===n.value),st("aria-label",T(1,9,n.value).colorName),a(2),H(t.nameInitialTypes.COMMENT),m("backgroundColor",T(3,11,n.value).colorCode)("size",48)("userName",t.user==null?null:t.user.username),a(2),y(" ",T(5,13,n.value).colorName," ")}}function Zi(i,p){i&1&&(o(0,"mindmegette-collapsible-box",79)(1,"div",92)(2,"div",5)(3,"div",9)(4,"kesma-form-control",93)(5,"label",94),l(6,"N\xE9v"),r(),c(7,"input",95),o(8,"small",13),l(9,"Teljes n\xE9v vagy jogi szem\xE9ly eset\xE9n a c\xE9g neve"),r()()(),o(10,"div",9)(11,"kesma-form-control",96)(12,"label",97),l(13,"Ad\xF3sz\xE1m"),r(),c(14,"input",98),o(15,"small",13),l(16,"Opcion\xE1lis, jogi szem\xE9ly eset\xE9n k\xF6telez\u0151"),r()()(),o(17,"div",9)(18,"kesma-form-control",99)(19,"label",100),l(20,"Ir\xE1ny\xEDt\xF3sz\xE1m"),r(),c(21,"input",101),r()(),o(22,"div",9)(23,"kesma-form-control",102)(24,"label",103),l(25,"Telep\xFCl\xE9s"),r(),c(26,"input",104),r()(),o(27,"div",6)(28,"kesma-form-control",105)(29,"label",106),l(30,"C\xEDm"),r(),c(31,"input",107),r()()()()()),i&2&&m("isDeletable",!1)}function Xi(i,p){if(i&1&&(o(0,"div",86),l(1),r()),i&2){let e=d(2);a(),y(" ",e.error," ")}}function en(i,p){if(i&1){let e=b();o(0,"form",2),h("ngSubmit",function(){_(e);let t=d();return C(t.save())}),o(1,"mindmegette-collapsible-box",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7),E(6,Ji,6,15,"div",8,I),P(8,"keyvalue"),r()()(),o(9,"div",5)(10,"div",9)(11,"kesma-form-control",10)(12,"label",11),l(13,"Vezet\xE9kn\xE9v"),o(14,"strong"),l(15,"*"),r()(),c(16,"input",12),o(17,"small",13),l(18," A vezet\xE9kn\xE9v nem jelenik meg a nyilv\xE1nos oldalon. "),r()()(),o(19,"div",9)(20,"kesma-form-control",14)(21,"label",15),l(22,"Keresztn\xE9v"),o(23,"strong"),l(24,"*"),r()(),c(25,"input",16),o(26,"small",13),l(27," A keresztn\xE9v nem jelenik meg a nyilv\xE1nos oldalon. "),r()()()(),o(28,"div",17)(29,"kesma-form-control",18)(30,"label",19),l(31,"Felhaszn\xE1l\xF3n\xE9v"),o(32,"strong"),l(33,"*"),r()(),c(34,"input",20),r(),o(35,"small",13),l(36," Ez a becen\xE9v fog megjelenni a hozz\xE1sz\xF3l\xE1sokn\xE1l. Legal\xE1bb 6 karakterb\u0151l kell \xE1llnia. "),r()(),o(37,"div",17)(38,"kesma-form-control",21)(39,"label",22),l(40,"E-mail c\xEDm"),o(41,"strong"),l(42,"*"),r()(),c(43,"input",23),r(),o(44,"small",13),l(45,"Az e-mail c\xEDm nem m\xF3dos\xEDthat\xF3."),r()(),o(46,"div",17)(47,"kesma-form-control",24)(48,"label",25),l(49,"Telefonsz\xE1m"),r(),c(50,"input",26),r(),o(51,"small",13),l(52,"Csak sz\xE1mok, p\xE9ld\xE1ul: 0611234567"),r()(),o(53,"div",5)(54,"div",9)(55,"kesma-form-control",27)(56,"label",28),l(57,"\xDAj jelsz\xF3"),r(),o(58,"div",29),c(59,"input",30),o(60,"img",31),h("click",function(){_(e);let t=d();return C(t.showNewPassword=!t.showNewPassword)})("keydown.enter",function(){_(e);let t=d();return C(t.showNewPassword=!t.showNewPassword)}),r()()()(),o(61,"div",9)(62,"kesma-form-control",32)(63,"label",33),l(64,"\xDAj jelsz\xF3 meger\u0151s\xEDt\xE9se"),r(),o(65,"div",29),c(66,"input",34),o(67,"img",31),h("click",function(){_(e);let t=d();return C(t.showConfirmNewPassword=!t.showConfirmNewPassword)})("keydown.enter",function(){_(e);let t=d();return C(t.showConfirmNewPassword=!t.showConfirmNewPassword)}),r()()()(),o(68,"div",6)(69,"small",13),l(70,"A v\xE1lasztott jelsz\xF3nak legal\xE1bb 6 karakterb\u0151l kell \xE1llnia, \xE9s tartalmaznia kell kisbet\u0171t, nagybet\u0171t \xE9s sz\xE1mot."),r()()(),o(71,"div",5)(72,"div",9),c(73,"mindmegette-date-time-picker",35),r()(),o(74,"div",17)(75,"label",36),l(76,"Nemem"),r(),o(77,"div",37)(78,"kesma-form-control",38)(79,"label",39),c(80,"input",40),o(81,"span"),l(82,"F\xE9rfi"),r()()(),o(83,"label",41),c(84,"input",42),o(85,"span"),l(86,"N\u0151"),r()(),o(87,"label",43),c(88,"input",44),o(89,"
1span"),l(90,"Egy\xE9b"),r()(),o(91,"label",45),c(92,"input",46),o(93,"span"),l(94,"Nem adom meg"),r()()()()()(),o(95,"mindmegette-collapsible-box",3)(96,"div",4)(97,"div",17)(98,"kesma-form-control",47)(99,"span",48),l(100),r(),o(101,"label",49),l(102,"Bemutatkoz\xE1s"),r(),c(103,"textarea",50),r()(),o(104,"div",17)(105,"kesma-form-control",51)(106,"label",52),l(107,"Blog, weboldal"),r(),c(108,"input",53),r()(),o(109,"div",17)(110,"kesma-form-control",54)(111,"label",55),l(112,"Instagram oldalam"),r(),c(113,"input",56),r()(),o(114,"div",17)(115,"kesma-form-control",57)(116,"label",58),l(117,"Facebook oldalam"),r(),c(118,"input",59),r()(),o(119,"div",17)(120,"kesma-form-control",60)(121,"label",61),l(122,"Kedvenc \xE9telem"),r(),c(123,"input",62),r()(),o(124,"div",17)(125,"kesma-form-control",63)(126,"label",64),l(127,"Kedvenc szak\xE1csom"),r(),c(128,"input",65),r()(),o(129,"div",5)(130,"div",9)(131,"kesma-form-control",66)(132,"label",67),l(133,"Kedvenc f\u0171szerem"),r(),c(134,"input",68),r()(),o(135,"div",9)(136,"kesma-form-control",69)(137,"label",70),l(138,"Kedvenc hozz\xE1val\xF3m"),r(),c(139,"input",71),r()()(),o(140,"div",17)(141,"kesma-form-control",72)(142,"span",48),l(143),r(),o(144,"label",73),l(145,"Legnagyobb siker a konyh\xE1ban"),r(),c(146,"textarea",74),r()(),o(147,"div",75)(148,"kesma-form-control",76)(149,"span",48),l(150),r(),o(151,"label",77),l(152,"Legnagyobb kudarc a konyh\xE1ban"),r(),c(153,"textarea",78),r()()()(),g(154,Zi,32,1,"mindmegette-collapsible-box",79),o(155,"mindmegette-collapsible-box",80)(156,"div",4)(157,"div",17)(158,"kesma-form-control",81)(159,"label",82),l(160,"Jelenlegi jelsz\xF3 "),o(161,"strong"),l(162,"*"),r()(),o(163,"div",29),c(164,"input",83),o(165,"img",31),h("click",function(){_(e);let t=d();return C(t.showOldPassword=!t.showOldPassword)})("keydown.enter",function(){_(e);let t=d();return C(t.showOldPassword=!t.showOldPassword)}),r()()(),o(166,"small",84),l(167,"Az adatok v\xE1ltoztat\xE1s\xE1hoz biztons\xE1gi okokb\xF3l meg kell adnod a jelenleg haszn\xE1lt jelszavad."),r()()()(),o(168,"div",85),g(169,Xi,2,1,"div",86),r(),o(170,"div",87)(171,"mindmegette-simple-button",88),l(172),r(),o(173,"mindmegette-simple-button",89),l(174),r()()()}if(i&2){let e=d();m("formGroup",e.formGroup),a(),m("isDeletable",!1)("title","Alapadatok"),a(5),F(T(8,40,e.userProfileAvatarColors)),a(53),m("type",e.showNewPassword?"text":"password"),a(),m("src",e.showNewPassword?"/assets/images/icons/icon-no-eye.svg":"/assets/images/icons/icon-eye.svg",oe),a(6),m("type",e.showConfirmNewPassword?"text":"password"),a(),m("src",e.showConfirmNewPassword?"/assets/images/icons/icon-no-eye.svg":"/assets/images/icons/icon-eye.svg",oe),a(6),m("displayFormat","yyyy. MM. dd.")("enableTime",!1)("formGroup",e.formGroup)("id","dateOfBirth")("isClearable",!0)("maxDateTime",e.maxDateTime)("showDropdowns",!0)("showNowText",!1)("valueFormat","yyyy-MM-dd"),a(7),m("value","man"),a(4),m("value","woman"),a(4),m("value","other"),a(4),m("value",null),a(3),m("isDeletable",!1)("title","Szem\xE9lyes"),a(5),ge("",(e.formGroup==null||e.formGroup.value==null||e.formGroup.value.introduction==null?null:e.formGroup.value.introduction.length)??0," / ",e.maxTextLength),a(43),ge("",(e.formGroup==null||e.formGroup.value==null||e.formGroup.value.greatestSuccess==null?null:e.formGroup.value.greatestSuccess.length)??0," / ",e.maxTextLength),a(7),ge("",(e.formGroup==null||e.formGroup.value==null||e.formGroup.value.greatestFailure==null?null:e.formGroup.value.greatestFailure.length)??0," / ",e.maxTextLength),a(4),f(e.isGastroEnabled?154:-1),a(),m("isCollapsable",!1)("isDeletable",!1)("title","Ellen\u0151rz\xE9s"),a(9),m("type",e.showOldPassword?"text":"password"),a(),m("src",e.showOldPassword?"/assets/images/icons/icon-no-eye.svg":"/assets/images/icons/icon-eye.svg",oe),a(4),f(e.error?169:-1),a(2),m("disabled",e.isLoading)("isSubmit",!0),a(),y(" ",e.isLoading?"K\xE9rj\xFCk v\xE1rj...":"Adatok ment\xE9se"," "),a(),m("disabled",e.isLoading),a(),y(" ",e.isLoading?"K\xE9rj\xFCk v\xE1rj...":"Profil t\xF6rl\xE9se"," ")}}function tn(i,p){if(i&1){let e=b();o(0,"mindmegette-popup",108),h("resultEvent",function(){_(e);let t=d();return C(t.closeSuccessPopup())}),l(1," K\xF6sz\xF6nj\xFCk, az adatokat sikeresen mentett\xFCk! "),r()}i&2&&m("acceptButtonLabel","Bez\xE1r\xE1s")("showCancelButton",!1)("showCloseIcon",!1)("title","Sikeres adatm\xF3dos\xEDt\xE1s")}var gi=(()=>{class i{constructor(e,n,t,s,v,w,A,se){this.authService=e,this.formBuilder=n,this.seo=t,this.secureApiService=s,this.cdr=v,this.viewportScroller=w,this.profileService=A,this.portalConfigService=se,this.showNewPassword=!1,this.showConfirmNewPassword=!1,this.maxDateTime=Mt(new Date,1),this.maxTextLength=1e3,this.showOldPassword=!1,this.isLoading=!1,this.error=null,this.showSuccessPopup=!1,this.userProfileAvatarColors=It,this.nameInitialTypes=$e,this.isGastroEnabled=this.portalConfigService.isConfigSet(Bt.MENU_TYPE_GASTRO_EXPERIENCE),this.unsubscribe$=new V}get user(){return this.authService.currentUser}ngOnInit(){this.profileService.hideProfileDetails$.next(!0),this.initForm(),this.setMetaData()}initForm(){this.formGroup=this.formBuilder.group({avatarColor:[this.user?.avatarColor??null],lastName:[this.user?.lastName??null,[x.required,R,x.maxLength(50)]],firstName:[this.user?.firstName??null,[x.required,R,x.maxLength(50)]],username:[this.user?.username??null,[x.required,R,x.minLength(6),x.maxLength(50)]],email:[{value:this.user?.email??null,disabled:!0},[x.required,Lt]],phoneNumber:[this.user?.userDetails?.phoneNumber??null,[x.pattern("^[0-9]{9,11}
1$")]],newPassword:[null,[x.minLength(6),Se]],confirmNewPassword:[null,[x.minLength(6),Se,zt("password")]],dateOfBirth:[this.user?.additionalDetails?.dateOfBirth??null],gender:[this.user?.additionalDetails?.gender??null],introduction:[this.user?.additionalDetails?.introduction??null,[R,x.maxLength(this.maxTextLength)]],website:[this.user?.additionalDetails?.website??null,[je,x.maxLength(100)]],instagram:[this.user?.additionalDetails?.instagram??null,[je,x.maxLength(100)]],facebook:[this.user?.additionalDetails?.facebook??null,[je,x.maxLength(100)]],favoriteMeal:[this.user?.additionalDetails?.favoriteMeal??null,[R,x.maxLength(50)]],favoriteChef:[this.user?.additionalDetails?.favoriteChef??null,[R,x.maxLength(50)]],favoriteSpice:[this.user?.additionalDetails?.favoriteSpice??null,[R,x.maxLength(50)]],favoriteIngredient:[this.user?.additionalDetails?.favoriteIngredient??null,[R,x.maxLength(50)]],greatestSuccess:[this.user?.additionalDetails?.greatestSuccess??null,[R,x.maxLength(this.maxTextLength)]],greatestFailure:[this.user?.additionalDetails?.greatestFailure??null,[R,x.maxLength(this.maxTextLength)]],invoiceName:[this.user?.userDetails?.invoiceName??null,[R,x.maxLength(250)]],taxNumber:[this.user?.userDetails?.taxNumber??null,[x.pattern("^[0-9]{8}-[0-9]{1}-[0-9]{2}$")]],invoiceZip:[this.user?.userDetails?.invoiceZip??null,[x.pattern("^[0-9]{4,5}$")]],invoiceCity:[this.user?.userDetails?.invoiceCity??null,[R,x.maxLength(50)]],invoiceAddress:[this.user?.userDetails?.invoiceAddress??null,[R,x.maxLength(250)]],oldPassword:[null,[x.required,Se]]}),this.formGroup.get("password")?.valueChanges.pipe(D(this.unsubscribe$)).subscribe(()=>{this.formGroup.get("confirmPassword")?.updateValueAndValidity()})}save(){this.formGroup&&ke(this.formGroup),this.formGroup.valid&&(this.error=null,this.isLoading=!0,this.secureApiService.editCurrentUser(this.formGroup.value).pipe(me(e=>{let n=e.error,t=!1;if(n?.form?.errors?.children)for(let[s,v]of Object.entries(n.form.errors.children))s==="userName"&&v.errors&&(this.formGroup.get("username")?.setErrors({usernameInUse:!0}),t=!0),s==="oldPassword"&&v.errors&&(this.formGroup.get("oldPassword")?.setErrors({invalidOldPassword:!0}),t=!0);return t||(this.error="Ismeretlen hiba!"),this.isLoading=!1,this.cdr.detectChanges(),ce(()=>"Error")}),de(()=>this.secureApiService.getCurrentUser()),D(this.unsubscribe$)).subscribe(e=>{this.authService.currentUserSubject.next(e),this.formGroup.get("oldPassword")?.reset(),this.showSuccessPopup=!0,this.isLoading=!1,this.cdr.detectChanges()}))}closeSuccessPopup(){this.showSuccessPopup=!1,this.viewportScroller.scrollToPosition([0,0])}selectAvatarColor(e){this.formGroup.get("avatarColor")?.setValue(e)}ngOnDestroy(){this.profileService.hideProfileDetails$.next(!1),this.unsubscribe$.next(),this.unsubscribe$.complete()}setMetaData(){let e=U("profil/beallitasok");e&&this.seo.updateCanonicalUrl(e);let n=W("Profil - Be\xE1ll\xEDt\xE1sok"),t=O(M({},K),{title:n,ogTitle:n});this.seo.setMetaData(t)}static{this.\u0275fac=function(n){return new(n||i)(u(X),u(be),u($),u(k),u(N),u(yt),u(Ye),u(Qt))}}static{this.\u0275cmp=S({type:i,selectors:[["app-profile-settings"]],decls:4,vars:2,consts:[[3,"formGroup"],[3,"acceptButtonLabel","showCancelButton","showCloseIcon","title"],[3,"ngSubmit","formGroup"],[3,"isDeletable","title"],[1,"mindmegette-form"],[1,"row","mindmegette-form-row"],[1,"col-12"],[1,"avatar-color-wrapper"],["tabindex","0",1,"avatar-color-wrapper-card",3,"avatar-color-wrapper-card-selected"],[1,"col-12","col-md-6"],["label","Vezet\xE9kn\xE9v"],["for","lastName",1,"mindmegette-form-label"],["formControlName","lastName","id","lastName","type","text",1,"mindmegette-form-input"],[1,"mindmegette-form-small"],["label","Keresztn\xE9v"],["for","firstName",1,"mindmegette-form-label"],["formControlName","firstName","id","firstName","type","text",1,"mindmegette-form-input"],[1,"mindmegette-form-row"],["label","Felhaszn\xE1l\xF3n\xE9v"],["for","username",1,"mindmegette-form-label"],["formControlName","username","id","username","type","text",1,"mindmegette-form-input"],["label","E-mail c\xEDm"],["for","email",1,"mindmegette-form-label"],["formControlName","email","id","email","type","text",1,"mindmegette-form-input"],["label","Telefonsz\xE1m"],["for","phoneNumber",1,"mindmegette-form-label"],["formControlName","phoneNumber","id","phoneNumber","placeholder","Pl.: 0611234567","type","text",1,"mindmegette-form-input"],["label","\xDAj jelsz\xF3"],["for","newPassword",1,"mindmegette-form-label"],[1,"mindmegette-form-input-password"],["formControlName","newPassword","id","newPassword",1,"mindmegette-form-input",3,"type"],["alt","Jelsz\xF3 megtekint\xE9se",1,"mindmegette-form-input-password-img",3,"click","keydown.enter","src"],["label","\xDAj jelsz\xF3 meger\u0151s\xEDt\xE9se"],["for","confirmNewPassword",1,"mindmegette-form-label"],["formControlName","confirmNewPassword","id","confirmNewPassword",1,"mindmegette-form-input",3,"type"],["controlName","dateOfBirth","label","Sz\xFClet\xE9si id\u0151","ariaLabel","Sz\xFClet\xE9si id\u0151","placeholder","V\xE1laszd ki mikor sz\xFClett\xE9l",3,"displayFormat","enableTime","formGroup","id","isClearable","maxDateTime","showDropdowns","showNowText","valueFormat"],[1,"mindmegette-form-label"],[1,"mindmegette-form-radios"],["label","Nemem"],["for","genderMan",1,"mindmegette-form-radio"],["formControlName","gender","id","genderMan","name","gender","type","radio",3,"value"],["for","genderWoman",1,"mindmegette-form-radio"],["formControlName","gender","id","genderWoman","
1name","gender","type","radio",3,"value"],["for","genderOther",1,"mindmegette-form-radio"],["formControlName","gender","id","genderOther","name","gender","type","radio",3,"value"],["for","genderNull",1,"mindmegette-form-radio"],["formControlName","gender","id","genderNull","name","gender","type","radio",3,"value"],["label","Bemutatkoz\xE1s"],[1,"mindmegette-form-counter"],["for","introduction",1,"mindmegette-form-label","with-counter"],["formControlName","introduction","id","introduction","placeholder","K\xE9rj\xFCk \xEDrj magadr\xF3l p\xE1r mondatot",1,"mindmegette-form-textarea"],["label","Blog, weboldal"],["for","website",1,"mindmegette-form-label"],["formControlName","website","id","website","placeholder","Pl: https://patriciasutodeje.hu","type","text",1,"mindmegette-form-input"],["label","Instagram oldalam"],["for","instagram",1,"mindmegette-form-label"],["formControlName","instagram","id","instagram","placeholder","Pl: https://instagram.com/patriciasutodeje","type","text",1,"mindmegette-form-input"],["label","Facebook oldalam"],["for","facebook",1,"mindmegette-form-label"],["formControlName","facebook","id","facebook","placeholder","Pl: https://facebook.com/patriciasutodeje","type","text",1,"mindmegette-form-input"],["label","Kedvenc \xE9telem"],["for","favoriteMeal",1,"mindmegette-form-label"],["formControlName","favoriteMeal","id","favoriteMeal","placeholder","Pl: Csirkepaprik\xE1s nokedlivel","type","text",1,"mindmegette-form-input"],["label","Kedvenc szak\xE1csom"],["for","favoriteChef",1,"mindmegette-form-label"],["formControlName","favoriteChef","id","favoriteChef","placeholder","Pl: Gordon Ramsay","type","text",1,"mindmegette-form-input"],["label","Kedvenc f\u0171szerem"],["for","favoriteSpice",1,"mindmegette-form-label"],["formControlName","favoriteSpice","id","favoriteSpice","placeholder","Pl: Bazsalikom","type","text",1,"mindmegette-form-input"],["label","Kedvenc hozz\xE1val\xF3m"],["for","favoriteIngredient",1,"mindmegette-form-label"],["formControlName","favoriteIngredient","id","favoriteIngredient","placeholder","Pl: Zeller","type","text",1,"mindmegette-form-input"],["label","Legnagyobb siker a konyh\xE1ban"],["for","greatestSuccess",1,"mindmegette-form-label","with-counter"],["formControlName","greatestSuccess","id","greatestSuccess","placeholder","Mi volt az eddigi legnagyobb sikered a konyh\xE1ban?",1,"mindmegette-form-textarea"],[1,"mindmegette-form-row","no-margin"],["label","Legnagyobb kudarc a konyh\xE1ban"],["for","greatestFailure",1,"mindmegette-form-label","with-counter"],["formControlName","greatestFailure","id","greatestFailure","placeholder","Mi volt az eddigi legnagyobb kudarcod a konyh\xE1ban?",1,"mindmegette-form-textarea"],["title","Sz\xE1ml\xE1z\xE1si adatok",3,"isDeletable"],[3,"isCollapsable","isDeletable","title"],["label","Jelenlegi jelsz\xF3"],["for","oldPassword",1,"mindmegette-form-label"],["formControlName","oldPassword","id","oldPassword",1,"mindmegette-form-input",3,"type"],[1,"mindmegette-form-small","no-margin"],["aria-live","assertive","aria-atomic","true"],[1,"mindmegette-form-general-error"],[1,"profile-settings-actions"],["color","primary","icon","edit-white","iconPosition","left",1,"w-100",3,"disabled","isSubmit"],["color","tertiary","icon","trash-white","iconPosition","left","routerLink","/profil/torles",3,"disabled"],["tabindex","0",1,"avatar-color-wrapper-card",3,"click","keydown.enter"],[3,"backgroundColor","size","userName"],[1,"mindmegette-form","invoice"],["label","Teljes n\xE9v vagy jogi szem\xE9ly eset\xE9n a c\xE9g neve"],["for","invoiceName",1,"mindmegette-form-label"],["formControlName","invoiceName","id","invoiceName","type","text",1,"mindmegette-form-input"],["label","Ad\xF3sz\xE1m"],["for","taxNumber",1,"mindmegette-form-label"],["formControlName","taxNumber","id","taxNumber","placeholder","Pl.: 12345678-9-01","type","text",1,"mindmegette-form-input"],["label","Ir\xE1ny\xEDt\xF3sz\xE1m"],["for","invoiceZip",1,"mindmegette-form-label"],["formControlName","invoiceZip","id","invoiceZip","placeholder","Pl.: 1029","type","text",1,"mindmegette-form-input"],["label","Telep\xFCl\xE9s"],["for","invoiceCity",1,"mindmegette-form-label"],["formControlName","invoiceCity","id","invoiceCity","placeholder","Pl.: Budapest","type","text",1,"mindmegette-form-input"],["label","C\xEDm"],["for","invoiceAddress",1,"mindmegette-form-label"],["formControlName","invoiceAddress","id","invoiceAddress","placeholder","Pl.: Pet\u0151fi S\xE1ndor utca 1.","type","text",1,"mindmegette-form-input"],[3,"resultEvent","acceptButtonLabel","showCancelButton","showCloseIcon","title"]],template:function(n,t){n&1&&(o(0,"h2"),l(1,"Profil szerkeszt\xE9se"),r(),g(2,en,175,42,"form",0),g(3,tn,2,4,"mindmegette-popup",1)),n&2&&(a(2),f(t.formGroup?2:-1),a(),f(t.showSuccessPopup?3:-1))},dependencies:[ae,Pe,Ce,Ft,ve,xe,ye,we,Le,Ge,_e,Ee,Ue,ti,le,ee,Pt,We],styles:["[_nghost-%COMP%] .mindmegette-form[_ngcontent-%COMP%] kesma-form-control[_ngcontent-%COMP%] .no-margin{margin:0}h2[_ngcontent-%COMP%]{color:var(--kui-gray-950);font-size:34px;font-family:var(--kui-font-primary);font-weight:600;line-height:40px;word-wrap:break-word;margin-bottom:32px}@media(max-width:767.98px){h2[_ngcontent-%COMP%]{font-size:24px;line-height:28px;margin-bottom:20px}}mindmegette-collapsible-box[_ngcontent-%COMP%]{margin-bottom:48px}@media(max-width:767.98px){mindmegette-collapsible-box[_ngcontent-%COMP%]{margin-bottom:32px}}.mindmegette-form-radios[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 32px}.mindmegette-form-radios[_ngcontent-%COMP%] .mindmegette-form-radio[_ngcontent-%COMP%]{margin-bottom:0}.mindmegette-form-small.no-margin[_ngcontent-%COMP%]{margin:-16px 0 0}.mindmegette-form-label.with-counter[_ngcontent-%COMP%]{max-width:80%}.mindmegette-form.invoice[_ngcontent-%COMP%]{padding-bottom:0}.profile-settings-actions[_ngcontent-%COMP%]{display:flex;gap:12px;flex-direction:column;margin-top:60px}@media(max-width:767.98px){.profile-settings-actions[_ngcontent-%COMP%]{margin-top:40px}}.profile-settings-actions[_ngcontent-%COMP%] mindmegette-simple-button[_ngcontent-%COMP%]{margin:initial;width:100%}.avatar-color-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:32px}@media(max-width:767.98px){.avatar-color-wrapper[_ngcontent-%COMP%]{margin-bottom:24px}}.avatar-color-wrapper-card[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;gap:8px;min-width:140px;min-height:112px;padding:16px;background-color:var(--kui-bg);border-radius:8px;border:1px solid transparent;transition:.2s border ease-in-out}.avatar-color-wrapper-card-selected[_ngcontent-%COMP%]{border-color:var(--kui-green-700)}"],changeDetection:0})}}return i})();var nn=i=>({id:"",text:i,icon:"chat"}),on=i=>[i],rn=(i,p)=>p.id;function an(i,p){if(i&1&&c(0,"mindmegette-recipe-card",0),i&2){let e=d();m("data",e.data)("styleID",e.RecipeCardType.LeftImageLongCard)}}function ln(i,p){if(i&1&&c(0,"mindmegette-article-card",1),i&2){let e=d();m("styleID",e.MindmegetteArticleCardType.LeftImageShortCardAuthor)("data",e.toArticleCard(e.data))}}function sn(i,p){if(i&1&&c(0,"mindmegette-comment-card",3),i&2){let e=p.$implicit,n=d();m("data",n.toCommentData(e))("canAnswer",!1)("canOpenOptions",!1)("isReadonly",!0)("badges",Ie(7,on,Ie(5,nn,e.answerCount)))}}var fi=(()=>{class i{constructor(e,n){this.auth=e,this.router=n,this.RecipeCardType=Me,this.MindmegetteArticleCardType=Wt,this.buttonStyleInfo={icon:{width:"16px",height:"16px","margin-bottom":"-3px"}}}toCommentData(e){return{text:e.commentText,id:e.id,createdAt:new Date(e.createdAt),author:this.auth.currentUser,answerCount:+(e.answerCount||0),likeCount:+(e.likeCount||0),dislikeCount:+(e.dislikeCount||0)}}toArticleCard(e){return O(M({},e),{author:{name:e.author,slug:e.authorSlug,avatarUrl:e.avatarImage},likeCount:void 0,dislikeCount:void 0,commentCount:+e.commentCount})}openComments(){if(this.isRecipe(this.data)){this.router.navigate(Rt(this.data),{fragment:"kommentek"});return}this.router.navigate(At(this.toArticleCard(this.data)),{fragment:"kommentek"})}isRecipe(e){return e?.contentType===Dt.RECIPE}static{this.\u0275fac=function(n){return new(n||i)(u(X),u(G))}}static{this.\u0275cmp=S({type:i,selectors:[["app-article-with-comments"]],inputs:{data:"data"},decls:7,vars:3,consts:[[3,"data","styleID"],[3,"styleID","data"],[1,"separator"],[3,"data","canAnswer","canOpenOptions","isReadonly","badges"],["color","primary","icon","arrow-right-white","iconPosition","right",3,"click","keydown.enter","wide","styleInfo"]],template:function(n,t){n&1&&(g(0,an,1,2,"mindmegette-recipe-card",0)(1,ln,1,2,"mindmegette-article-card",1),c(2,"div",2),E(3,sn,1,9,"mindmegette-comment-card",3,rn),o(5,"mindmegette-simple-button",4),h("click",function(){return t.openComments()})("keydown.enter",function(){return t.openComments()}),l(6,"Tov\xE1bb a kommentekhez"),r()),n&2&&(f(t.isRecipe(t.data)?0:1),a(3),F(t.data.comments),a(2),m("wide",!0)("styleInfo",t.buttonStyleInfo))},dependencies:[Oe,qt,ei,le],styles:["[_nghost-%COMP%]{display:flex;background:var(--kui-white, #ffffff);border-radius:12px;border:1px solid var(--kui-gray-100, #e7e7e7);padding:16px;flex-direction:column;gap:16px}@media(min-width:768px){[_nghost-%COMP%]{padding:24px;gap:20px}}[_nghost-%COMP%] mindmegette-article-card[_ngcontent-%COMP%], [_nghost-%COMP%] mindmegette-recipe-card[_ngcontent-%COMP%]{margin-bottom:0!important}[_nghost-%COMP%] div.horizontal-card{gap:4px}[_nghost-%COMP%] div.comment-card-feedback{margin-bottom:0}[_nghost-%COMP%] .btn-primary span{line-height:24px}
1.separator[_ngcontent-%COMP%]{width:100%;border:1px solid var(--kui-gray-100, #e7e7e7)}"],changeDetection:0})}}return i})();var pn=(i,p)=>p.slug;function cn(i,p){i&1&&(o(0,"h3"),l(1," Kommentjeim "),o(2,"sup"),l(3),r()()),i&2&&(a(3),y("(",p.commentCount??0,")"))}function mn(i,p){if(i&1&&c(0,"app-article-with-comments",1),i&2){let e=p.$implicit;m("data",e)}}function dn(i,p){i&1&&(o(0,"p"),l(1,"Nincs megjelen\xEDthet\u0151 elem."),r())}function un(i,p){if(i&1&&c(0,"mindmegette-pager",2),i&2){let e=d();m("rowAllCount",(e==null||e.limitable==null?null:e.limitable.rowAllCount)??0)("rowOnPageCount",(e==null||e.limitable==null?null:e.limitable.rowOnPageCount)??5)("isListPager",!0)("isCountPager",!1)("hasFirstLastButton",!1)("hasSkipButton",!0)("allowAutoScrollToTop",!0)("maxDisplayedPages",5)}}function gn(i,p){if(i&1&&(g(0,cn,4,1,"h3"),P(1,"async"),o(2,"section",0),E(3,mn,1,1,"app-article-with-comments",1,pn,!1,dn,2,0,"p"),P(6,"async"),r(),g(7,un,1,8,"mindmegette-pager",2)),i&2){let e,n=p,t=d();f((e=T(1,3,t.allCommentCount$))?0:-1,e),a(3),F(T(6,5,t.data$)),a(4),f(n!=null&&n.limitable&&(n==null||n.limitable==null?null:n.limitable.pageMax)>0?7:-1)}}var hi=(()=>{class i{constructor(){this.seo=L($),this.route=L(Z),this.page$=this.route.queryParams.pipe(j(({page:e})=>e?e-1:0)),this.commentService=L(li),this.allCommentCount$=this.commentService.getUserAllCommentCount(),this.response$=this.page$.pipe(de(e=>this.commentService.getMyArticleComments(e,5,"latest")),ot({bufferSize:1,refCount:!0})),this.data$=this.response$.pipe(j(e=>e.data)),this.meta$=this.response$.pipe(j(e=>e.meta))}ngOnInit(){this.setMetaData()}setMetaData(){let e=U("profil/kommentek");e&&this.seo.updateCanonicalUrl(e);let n=W("Profil - Kommentek"),t=O(M({},K),{title:n,ogTitle:n});this.seo.setMetaData(t)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=S({type:i,selectors:[["app-profile-comments"]],decls:2,vars:3,consts:[[1,"comments"],[3,"data"],[3,"rowAllCount","rowOnPageCount","isListPager","isCountPager","hasFirstLastButton","hasSkipButton","allowAutoScrollToTop","maxDisplayedPages"]],template:function(n,t){if(n&1&&(g(0,gn,8,7),P(1,"async")),n&2){let s;f((s=T(1,1,t.meta$))?0:-1,s)}},dependencies:[fi,Fe,re],styles:["h3[_ngcontent-%COMP%]{color:var(--kui-gray-950, #262626);font-family:var(--kui-font-primary);font-size:24px;font-style:normal;font-weight:600;line-height:28px;letter-spacing:.12px;margin-bottom:20px}.comments[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;margin-bottom:40px}@media(min-width:768px){.comments[_ngcontent-%COMP%]{gap:32px;margin-bottom:60px}}mindmegette-pager[_ngcontent-%COMP%]{margin-bottom:60px}"],changeDetection:0})}}return i})();function fn(i,p){if(i&1&&(o(0,"div",15),l(1),r()),i&2){let e=d(2);a(),y(" ",e.error," ")}}function hn(i,p){if(i&1){let e=b();o(0,"form",2),h("ngSubmit",function(){_(e);let t=d();return C(t.showPopup=!0)}),o(1,"mindmegette-collapsible-box",3)(2,"div",4)(3,"div",5),c(4,"i",6),o(5,"span"),l(6,"FIGYELEM! Mindmegette profiloddal egy\xFCtt az \xF6sszes szem\xE9lyes adatod \xE9s mentett receptjeid is t\xF6r\xF6lj\xFCk. A t\xF6rl\xE9s nem visszavonhat\xF3!"),r()(),o(7,"div",7)(8,"kesma-form-control",8)(9,"label",9),l(10,"Jelenlegi jelsz\xF3 "),o(11,"strong"),l(12,"*"),r()(),o(13,"div",10),c(14,"input",11),o(15,"img",12),h("click",function(){_(e);let t=d();return C(t.showOldPassword=!t.showOldPassword)})("keydown.enter",function(){_(e);let t=d();return C(t.showOldPassword=!t.showOldPassword)}),r()()(),o(16,"small",13),l(17,"A profil t\xF6rl\xE9se el\u0151tt biztons\xE1gi okokb\xF3l meg kell adnod a jelenleg haszn\xE1lt jelszavad."),r()()()(),o(18,"div",14),g(19,fn,2,1,"div",15),r(),o(20,"div",16)(21,"mindmegette-simple-button",17),l(22),r(),o(23,"mindmegette-simple-button",18),l(24),r()()()}if(i&2){let e=d();m("formGroup",e.formGroup),a(),m("isCollapsable",!1)("isDeletable",!1)("title","Profil t\xF6rl\xE9se"),a(13),m("type",e.showOldPassword?"text":"password"),a(),m("src",e.showOldPassword?"/assets/images/icons/icon-no-eye.svg":"/assets/images/icons/icon-eye.svg",oe),a(4),f(e.error?19:-1),a(2),m("disabled",e.isLoading)("isSubmit",!0),a(),y(" ",e.isLoading?"K\xE9rj\xFCk v\xE1rj...":"Profil t\xF6rl\xE9se"," "),a(),m("disabled",e.isLoading),a(),y(" ",e.isLoading?"K\xE9rj\xFCk v\xE1rj...":"M\xE9gsem"," ")}}function _n(i,p){if(i&1){let e=b();o(0,"mindmegette-popup",19),h("resultEvent",function(t){_(e);let s=d();return C(s.deleteAccount(t))}),l(1," Biztos vagy abban, hogy t\xF6rl\xF6d a Mindmegette profilod \xE9s az \xF6sszes szem\xE9lyes adatod? "),r()}i&2&&m("acceptButtonLabel","Profil t\xF6rl\xE9se")("cancelButtonLabel","M\xE9gsem")("showCloseIcon",!1)("title","Profil t\xF6rl\xE9se")}var _i=(()=>{class i{constructor(e,n,t,s,v,w){this.seo=e,this.formBuilder=n,this.secureApiService=t,this.cdr=s,this.router=v,this.authService=w,this.showPopup=!1,this.showOldPassword=!1,this.isLoading=!1,this.error=null}ngOnInit(){this.initForm(),this.setMetaData()}initForm(){this.formGroup=this.formBuilder.group({oldPassword:[null,[x.required,Se]]})}deleteAccount(e){this.showPopup=!1,this.formGroup&&ke(this.formGroup),!(!this.formGroup.valid||!e)&&(this.error=null,this.isLoading=!0,this.secureApiService.deleteAccount(this.formGroup.value.oldPassword).pipe(me(n=>{let t=n.error,s=!1;if(t?.form?.errors?.children)for(let[v,w]of Object.entries(t.form.errors.children))v==="password"&&w.errors&&(this.formGroup.get("oldPassword")?.setErrors({invalidOldPassword:!0}),s=!0);return s||(this.error="Ismeretlen hiba!"),this.isLoading=!1,this.cdr.detectChanges(),ce(()=>"Error")}),de(()=>this.authService.invalidate())).subscribe(()=>{this.router.navigate(["/"])}))}setMetaData(){let e=U("profil/torles");e&&this.seo.updateCanonicalUrl(e);let n=W("Profil - Profil t\xF6rl\xE9se"),t=O(M({},K),{title:n,ogTitle:n});this.seo.setMetaData(t)}static{this.\u0275fac=function(n){return new(n||i)(u($),u(be),u(k),u(N),u(G),u(X))}}static{this.\u0275cmp=S({type:i,selectors:[["app-profile-account-delete"]],decls:2,vars:2,consts:[[3,"formGroup"],[3,"acceptButtonLabel","cancelButtonLabel","showCloseIcon","title"],[3,"ngSubmit","formGroup"],[3,"isCollapsable","isDeletable","t
1itle"],[1,"mindmegette-form"],[1,"profile-settings-info-text"],[1,"icon","mindmegette-icon-info"],[1,"mindmegette-form-row"],["label","Jelenlegi jelsz\xF3"],["for","oldPassword",1,"mindmegette-form-label"],[1,"mindmegette-form-input-password"],["formControlName","oldPassword","id","oldPassword",1,"mindmegette-form-input",3,"type"],["alt","Jelsz\xF3 megtekint\xE9se",1,"mindmegette-form-input-password-img",3,"click","keydown.enter","src"],[1,"mindmegette-form-small","no-margin"],["aria-live","assertive","aria-atomic","true"],[1,"mindmegette-form-general-error"],[1,"profile-settings-actions"],["color","tertiary","icon","trash-white","iconPosition","left",1,"w-100",3,"disabled","isSubmit"],["color","outline","icon","left-arrow","iconPosition","left","routerLink","/profil/beallitasok",3,"disabled"],[3,"resultEvent","acceptButtonLabel","cancelButtonLabel","showCloseIcon","title"]],template:function(n,t){n&1&&(g(0,hn,25,12,"form",0),g(1,_n,2,4,"mindmegette-popup",1)),n&2&&(f(t.formGroup?0:-1),a(),f(t.showPopup?1:-1))},dependencies:[ae,Pe,Ce,ve,xe,ye,we,Le,Ge,_e,Ee,le,ee],styles:["[_nghost-%COMP%] .mindmegette-form[_ngcontent-%COMP%] kesma-form-control[_ngcontent-%COMP%] .no-margin{margin:0}h2[_ngcontent-%COMP%]{color:var(--kui-gray-950);font-size:34px;font-family:var(--kui-font-primary);font-weight:600;line-height:40px;word-wrap:break-word;margin-bottom:32px}@media(max-width:767.98px){h2[_ngcontent-%COMP%]{font-size:24px;line-height:28px;margin-bottom:20px}}mindmegette-collapsible-box[_ngcontent-%COMP%]{margin-bottom:48px}@media(max-width:767.98px){mindmegette-collapsible-box[_ngcontent-%COMP%]{margin-bottom:32px}}.mindmegette-form-radios[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 32px}.mindmegette-form-radios[_ngcontent-%COMP%] .mindmegette-form-radio[_ngcontent-%COMP%]{margin-bottom:0}.mindmegette-form-small.no-margin[_ngcontent-%COMP%]{margin:-16px 0 0}.mindmegette-form-label.with-counter[_ngcontent-%COMP%]{max-width:80%}.mindmegette-form.invoice[_ngcontent-%COMP%]{padding-bottom:0}.profile-settings-actions[_ngcontent-%COMP%]{display:flex;gap:12px;flex-direction:column;margin-top:60px}@media(max-width:767.98px){.profile-settings-actions[_ngcontent-%COMP%]{margin-top:40px}}.profile-settings-actions[_ngcontent-%COMP%] mindmegette-simple-button[_ngcontent-%COMP%]{margin:initial;width:100%}.avatar-color-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:32px}@media(max-width:767.98px){.avatar-color-wrapper[_ngcontent-%COMP%]{margin-bottom:24px}}.avatar-color-wrapper-card[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;gap:8px;min-width:140px;min-height:112px;padding:16px;background-color:var(--kui-bg);border-radius:8px;border:1px solid transparent;transition:.2s border ease-in-out}.avatar-color-wrapper-card-selected[_ngcontent-%COMP%]{border-color:var(--kui-green-700)}.profile-settings-info-text[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:20px}.profile-settings-info-text[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:20px;height:20px}.profile-settings-info-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{flex:1;font-family:var(--kui-font-secondary);font-size:12px;font-weight:400;line-height:16px;letter-spacing:.12px;color:var(--kui-gray-600)}"],changeDetection:0})}}return i})();var De=()=>({margin:"var(--ad-margin)"});function vn(i,p){if(i&1){let e=b();o(0,"div",17),c(1,"mindmegette-recipe-card",21),o(2,"div",22),h("click",function(){let t=_(e).$implicit,s=d();return C(s.removeRecipeFromGroup(t==null?null:t.slug))}),c(3,"i",23),r()()}if(i&2){let e=p.$implicit,n=d();a(),m("styleID",n.RecipeCardType.TopImageLeftAlignedCard)("data",e)("hasBackground",!0)}}function xn(i,p){i&1&&c(0,"kesma-advertisement-adocean",25),i&2&&(H(Q(3,De)),m("ad",p))}function Pn(i,p){if(i&1&&(o(0,"div",18),g(1,xn,1,4,"kesma-advertisement-adocean",24),r()),i&2){let e,n=d();a(),f((e=n.adverts==null||n.adverts.mobile==null?null:n.adverts.mobile.mobilrectangle_1)?1:-1,e)}}function wn(i,p){if(i&1){let e=b();o(0,"div",17),c(1,"mindmegette-recipe-card",21),o(2,"div",26),h("click",function(){let t=_(e).$implicit,s=d();return C(s.removeRecipeFromGroup(t==null?null:t.slug))})("keydown.enter",function(){let t=_(e).$implicit,s=d();return C(s.removeRecipeFromGroup(t==null?null:t.slug))}),c(3,"i",23),r()()}if(i&2){let e=p.$implicit,n=d();a(),m("styleID",n.RecipeCardType.TopImageLeftAlignedCard)("data",e)("hasBackgroun
1d",!0)}}function bn(i,p){i&1&&c(0,"kesma-advertisement-adocean",25),i&2&&(H(Q(3,De)),m("ad",p))}function yn(i,p){i&1&&c(0,"kesma-advertisement-adocean",25),i&2&&(H(Q(3,De)),m("ad",p))}function Sn(i,p){if(i&1&&(o(0,"div",18),g(1,bn,1,4,"kesma-advertisement-adocean",24),g(2,yn,1,4,"kesma-advertisement-adocean",24),r()),i&2){let e,n,t=d();a(),f((e=t.adverts==null||t.adverts.desktop==null?null:t.adverts.desktop.roadblock_1)?1:-1,e),a(),f((n=t.adverts==null||t.adverts.mobile==null?null:t.adverts.mobile.mobilrectangle_2)?2:-1,n)}}function kn(i,p){if(i&1){let e=b();o(0,"div",17),c(1,"mindmegette-recipe-card",21),o(2,"div",26),h("click",function(){let t=_(e).$implicit,s=d();return C(s.removeRecipeFromGroup(t==null?null:t.slug))})("keydown.enter",function(){let t=_(e).$implicit,s=d();return C(s.removeRecipeFromGroup(t==null?null:t.slug))}),c(3,"i",23),r()()}if(i&2){let e=p.$implicit,n=d();a(),m("styleID",n.RecipeCardType.TopImageLeftAlignedCard)("data",e)("hasBackground",!0)}}function Mn(i,p){i&1&&c(0,"kesma-advertisement-adocean",25),i&2&&(H(Q(3,De)),m("ad",p))}function On(i,p){if(i&1&&(o(0,"div",18),g(1,Mn,1,4,"kesma-advertisement-adocean",24),r()),i&2){let e,n=d();a(),f((e=n.adverts==null||n.adverts.mobile==null?null:n.adverts.mobile.mobilrectangle_3)?1:-1,e)}}function En(i,p){if(i&1){let e=b();o(0,"div",17),c(1,"mindmegette-recipe-card",21),o(2,"div",26),h("click",function(){let t=_(e).$implicit,s=d();return C(s.removeRecipeFromGroup(t==null?null:t.slug))})("keydown.enter",function(){let t=_(e).$implicit,s=d();return C(s.removeRecipeFromGroup(t==null?null:t.slug))}),c(3,"i",23),r()()}if(i&2){let e=p.$implicit,n=d();a(),m("styleID",n.RecipeCardType.TopImageLeftAlignedCard)("data",e)("hasBackground",!0)}}function Fn(i,p){i&1&&c(0,"kesma-advertisement-adocean",25),i&2&&(H(Q(3,De)),m("ad",p))}function Tn(i,p){i&1&&c(0,"kesma-advertisement-adocean",25),i&2&&(H(Q(3,De)),m("ad",p))}function Dn(i,p){if(i&1&&(o(0,"div",18),g(1,Fn,1,4,"kesma-advertisement-adocean",24),g(2,Tn,1,4,"kesma-advertisement-adocean",24),r()),i&2){let e,n,t=d();a(),f((e=t.adverts==null||t.adverts.desktop==null?null:t.adverts.desktop.roadblock_2)?1:-1,e),a(),f((n=t.adverts==null||t.adverts.mobile==null?null:t.adverts.mobile.medium_rectangle_4_bottom)?2:-1,n)}}function In(i,p){if(i&1){let e=b();o(0,"div",17),c(1,"mindmegette-recipe-card",21),o(2,"div",26),h("click",function(){let t=_(e).$implicit,s=d();return C(s.removeRecipeFromGroup(t==null?null:t.slug))})("keydown.enter",function(){let t=_(e).$implicit,s=d();return C(s.removeRecipeFromGroup(t==null?null:t.slug))}),c(3,"i",23),r()()}if(i&2){let e=p.$implicit,n=d();a(),m("styleID",n.RecipeCardType.TopImageLeftAlignedCard)("data",e)("hasBackground",!0)}}function Bn(i,p){if(i&1&&c(0,"mindmegette-pager",19),i&2){let e=d();m("rowAllCount",e.limitables.rowAllCount)("rowOnPageCount",e.limitables.rowOnPageCount)("isListPager",!0)("isCountPager",!1)("hasFirstLastButton",!1)("hasSkipButton",!0)("allowAutoScrollToTop",!0)("maxDisplayedPages",5)}}function An(i,p){if(i&1){let e=b();o(0,"mindmegette-popup",27),h("resultEvent",function(t){_(e);let s=d();return C(s.deleteRecipeGroup(t))}),c(1,"i",28),o(2,"h1",29),l(3,"Biztos, hogy t\xF6rl\xF6d a list\xE1dat?"),r(),o(4,"p",30),l(5,"A t\xF6r\xF6lt recept \xF6r\xF6kre elv\xE9sz. Biztosan t\xF6r\xF6lni szeretn\xE9d a recepteket a ment\xE9seid k\xF6z\xFCl?"),r()()}if(i&2){let e=d();m("acceptButtonLabel","T\xF6rl\xF6m a list\xE1mat")("acceptButtonColor",e.acceptButtonColor)("showCloseIcon",!0)}}var Ci=(()=>{class i{constructor(e,n,t,s,v,w,A){this.secureApi=e,this.cdr=n,this.seo=t,this.route=s,this.router=v,this.profileRecipesService=w,this.adStore=A,this.searchBarVisible=!1,this.sortBarVisible=!1,this.showField=!1,this.showConfirmPopup=!1,this.modifiedGroupTitle="",this.page=0,this.sortList=this.profileRecipesService.sortList,this.acceptButtonColor="tertiary",this.RecipeCardType=Me,this.destroy$=new V}ngOnInit(){this.initAds(),this.route.data.pipe(D(this.destroy$)).subscribe(({data:{data:e,meta:n,groupId:t}})=>{this.groupId=t,this.recipes=this.mapBackendRecipeToRecipe(e),this.limitables=n?.limitable,this.groupTitle=n.recipeGroupName,this.setMetaData(),this.cdr.markForCheck()})}deleteRecipeGroup(e){e&&this.secureApi.deleteRecipeGroup(this.groupId).pipe(D(this.destroy$)).subscribe(()=>{setTimeout(()=>{this.router.navigate(["/","profil","mentett-receptek"]).then()},600)}),this.showConfirmPopup=!1}updateRecipeGroupTitle(){!this.groupId||!this.modifiedGroupTitle.trim()||this.secureApi.updateRecipeGroupTitle(this.groupId,this.modifiedGroupTitle).pipe(D(this.destroy$)).subscribe(()=>{this.groupTitle=this.modifiedGroupTitle,this.modifiedGroupTitle="",this.show
1Field=!1,this.cdr.markForCheck()})}removeRecipeFromGroup(e){this.secureApi.removeRecipeFromGroup(this.groupId,e).pipe(D(this.destroy$)).subscribe(()=>{this.recipes=this.recipes?.filter(({slug:n})=>n!==e),this.limitables=O(M({},this.limitables),{rowAllCount:Number(this.limitables?.rowAllCount)-1}),this.cdr.markForCheck()})}setMetaData(){let e=U("profil/mentett-receptek",this.route.snapshot);e&&this.seo.updateCanonicalUrl(e);let n=W(`Profil - ${this.groupTitle}`),t=O(M({},K),{title:n,ogTitle:n});this.seo.setMetaData(t)}initAds(){this.resetAds(),this.adStore.advertisemenets$.pipe(D(this.destroy$)).subscribe(e=>{this.adverts=this.adStore.separateAdsByMedium(e,ze.recipe_pages),this.cdr.detectChanges()})}resetAds(){this.adverts=void 0,this.cdr.detectChanges()}mapBackendRecipeToRecipe(e){return e?.map(n=>O(M({},n),{thumbnail:{url:n?.coverImage?.thumbnailUrl},author:{name:n.publicAuthor?.fullName,avatarUrl:n.publicAuthor?.avatarFullSizeUrl||n?.publicAuthor?.avatar?.fullSizeUrl,verified:n.publicAuthor?.isMaestroAuthor},sentByUser:O(M({},n.sentByUser),{avatarImage:n.sentByUser?.avatar})}))}onSearchIconClicked(){this.searchBarVisible=!this.searchBarVisible,this.showField=!1}onSortIconClicked(){this.sortBarVisible=!this.sortBarVisible,this.showField=!1}onEditIconClicked(){this.showField=!this.showField,this.searchBarVisible=!1,this.sortBarVisible=!1}onFilterChange(e){this.queryParamChanged(e)}onSortChange(e){let n=this.sortList[e];this.queryParamChanged({sort:n.slug})}queryParamChanged(e){this.router.navigate([],{relativeTo:this.route,queryParams:e,queryParamsHandling:"merge",skipLocationChange:!0})}static{this.\u0275fac=function(n){return new(n||i)(u(k),u(N),u($),u(Z),u(G),u(Ke),u(Ve))}}static{this.\u0275cmp=S({type:i,selectors:[["app-profile-saved-recipes-detail"]],decls:48,vars:39,consts:[[1,"header"],[1,"title"],[1,"count"],[1,"icons"],["title","Keres\xE9s",1,"icon",3,"click","keydown.enter","ngClass"],["title","Rendez\xE9s",1,"icon",3,"click","keydown.enter","ngClass"],["title","Szerkeszt\xE9s",1,"icon",3,"click","keydown.enter","ngClass"],[1,"icon","icon-trash",3,"click","keydown.enter"],[1,"hidden-content-wrapper"],[1,"hidden-content"],["searchBackendKey","global_filter","searchButtonText","Recept keres\xE9se",3,"handleSearchResult"],[1,"hidden-content","swiper-container"],[3,"tagSelected","data"],[1,"field"],["for","groupTitle",1,"mindmegette-form-label"],["id","groupTitle","type","text","placeholder","\xCDrd be a list\xE1d nev\xE9t...",1,"mindmegette-form-input",3,"ngModelChange","keydown.enter","ngModel"],[1,"recipes"],[1,"recipe-card"],[1,"ad"],[3,"rowAllCount","rowOnPageCount","isListPager","isCountPager","hasFirstLastButton","hasSkipButton","allowAutoScrollToTop","maxDisplayedPages"],[3,"acceptButtonLabel","acceptButtonColor","showCloseIcon"],[3,"styleID","data","hasBackground"],[1,"recipe-close",3,"click"],[1,"icon","icon-close"],[3,"style","ad"],[3,"ad"],[1,"recipe-close",3,"click","keydown.enter"],[3,"resultEvent","acceptButtonLabel","acceptButtonColor","showCloseIcon"],[1,"icon","icon-warning"],[1,"popup-title"],[1,"popup-description"]],template:function(n,t){n&1&&(o(0,"div",0)(1,"h2",1),l(2),o(3,"sup",2),l(4),r()(),o(5,"div",3)(6,"i",4),h("click",function(){return t.onSearchIconClicked()})("keydown.enter",function(){return t.onSearchIconClicked()}),r(),o(7,"i",5),h("click",function(){return t.onSortIconClicked()})("keydown.enter",function(){return t.onSortIconClicked()}),r(),o(8,"i",6),h("click",function(){return t.onEditIconClicked()})("keydown.enter",function(){return t.onSortIconClicked()}),r(),o(9,"i",7),h("click",function(){return t.showConfirmPopup=!t.showConfirmPopup})("keydown.enter",function(){return t.showConfirmPopup=!t.showConfirmPopup}),r()()(),o(10,"div",8)(11,"div",9)(12,"app-search-bar",10),h("handleSearchResult",function(v){return t.onFilterChange(v)}),r()()(),o(13,"div",8)(14,"div",11)(15,"mindmegette-tag-as-button",12),h("tagSelected",function(v){return t.onSortChange(v)}),r()()(),o(16,"div",8)(17,"div",9)(18,"div",13)(19,"label",14),l(20,"Lista neve"),r(),o(21,"input",15),ft("ngModelChange",function(v){return gt(t.modifiedGroupTitle,v)||(t.modifiedGroupTitle=v),v}
1),h("keydown.enter",function(){return t.updateRecipeGroupTitle()}),r()()()(),o(22,"div",16),E(23,vn,4,3,"div",17,I),P(25,"slice"),r(),g(26,Pn,2,1,"div",18),o(27,"div",16),E(28,wn,4,3,"div",17,I),P(30,"slice"),r(),g(31,Sn,3,2,"div",18),o(32,"div",16),E(33,kn,4,3,"div",17,I),P(35,"slice"),r(),g(36,On,2,1,"div",18),o(37,"div",16),E(38,En,4,3,"div",17,I),P(40,"slice"),r(),g(41,Dn,3,2,"div",18),o(42,"div",16),E(43,In,4,3,"div",17,I),P(45,"slice"),r(),g(46,Bn,1,8,"mindmegette-pager",19),g(47,An,6,3,"mindmegette-popup",20)),n&2&&(a(2),y(" ",t.groupTitle," "),a(2),y("(",t.limitables==null?null:t.limitables.rowAllCount,")"),a(2),m("ngClass",t.searchBarVisible?"mindmegette-icon-search-green":"mindmegette-icon-search-gray"),a(),m("ngClass",t.sortBarVisible?"mindmegette-icon-sort-green":"mindmegette-icon-sort-gray"),a(),m("ngClass",t.showField?"mindmegette-icon-edit-green":"mindmegette-icon-edit"),a(2),te("is-open",t.searchBarVisible),a(3),te("is-open",t.sortBarVisible),a(2),m("data",t.sortList),a(),te("is-open",t.showField),a(5),ut("ngModel",t.modifiedGroupTitle),a(2),F(fe(25,19,t.recipes,0,3)),a(3),f(t.recipes!=null&&t.recipes[3]?26:-1),a(2),F(fe(30,23,t.recipes,3,6)),a(3),f(t.recipes!=null&&t.recipes[7]?31:-1),a(2),F(fe(35,27,t.recipes,6,9)),a(3),f(t.recipes!=null&&t.recipes[10]?36:-1),a(2),F(fe(40,31,t.recipes,9,12)),a(3),f(t.recipes!=null&&t.recipes[13]?41:-1),a(2),F(fe(45,35,t.recipes,12,18)),a(3),f(t.limitables&&t.limitables.pageMax>0?46:-1),a(),f(t.showConfirmPopup?47:-1))},dependencies:[Re,He,ae,Ce,ve,Et,Nt,qe,Oe,Fe,ee,wt],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .header[_ngcontent-%COMP%]{margin-bottom:20px;display:flex;justify-content:space-between;align-items:center}[_nghost-%COMP%] .icons[_ngcontent-%COMP%]{display:flex;gap:8px}[_nghost-%COMP%] .field[_ngcontent-%COMP%]{background-color:var(--kui-white);padding:24px;border:1px solid var(--kui-gray-100);border-radius:8px}[_nghost-%COMP%] .field[_ngcontent-%COMP%] .mindmegette-form-input[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%] .title[_ngcontent-%COMP%]{font-family:var(--kui-font-primary);font-size:24px;font-weight:600;line-height:28px;letter-spacing:.12px}[_nghost-%COMP%] .count[_ngcontent-%COMP%]{font-weight:500;font-size:16px}[_nghost-%COMP%] .icon[_ngcontent-%COMP%]{min-width:20px;min-height:20px;cursor:pointer}[_nghost-%COMP%] .recipes[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:32px 16px}[_nghost-%COMP%] .recipes[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{grid-column:1/span 3}@media(max-width:991.98px){[_nghost-%COMP%] .recipes[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{grid-column:1/span 2}}@media(max-width:767.98px){[_nghost-%COMP%] .recipes[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{grid-column:1/span 1}}@media(max-width:991.98px){[_nghost-%COMP%] .recipes[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:767.98px){[_nghost-%COMP%] .recipes[_ngcontent-%COMP%]{grid-template-columns:repeat(1,minmax(0,1fr))}}[_nghost-%COMP%] .recipe-card[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .recipe-card[_ngcontent-%COMP%] .title{font-size:20px}@media(min-width:768px){[_nghost-%COMP%] .recipe-card[_ngcontent-%COMP%] .title{font-size:16px}}[_nghost-%COMP%] .recipe-close[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:100px;background:rgba(var(--kui-grey),.3);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:inline-flex;padding:6px;justify-content:center;align-items:center;gap:10px;position:absolute;right:8px;top:8px;cursor:pointer}[_nghost-%COMP%] .recipe-close[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{min-width:10px;min-height:10px}[_nghost-%COMP%] mindmegette-pager[_ngcontent-%COMP%]{margin-top:60px}[_nghost-%COMP%] .hidden-content-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-out}[_nghost-%COMP%] .hidden-content-wrapper[_ngcontent-%COMP%] .hidden-content[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .hidden-content-wrapper.is-open[_ngcontent-%COMP%]{grid-template-rows:1fr;margin-bottom:16px}[_nghost-%COMP%] .icon-warning[_ngcontent-%COMP%]{min-width:60px;min-height:60px;margin-bottom:16px}@media(min-width:768px){[_nghost-%COMP%] .icon-warning[_ngcontent-%COMP%]{margin-bottom:24px}}[_nghost-%COMP%] .popup-title[_ngcontent-%COMP%]{color:var(--kui-gray-950);font-family:var(--kui-font-primary);font-size:24px;font-weight:600;line-height:28px;letter-spacing:-.12px;margin-bottom:12px}@media(min-width:768px){[_nghost-%COMP%] .popup-title[_ngcontent-%COMP%]{font-size:30px;line-height:36px;letter-spacing:-.3px;margin-bottom:16px}}[_nghost-%COMP%] .popup-description[_ngcontent-%COMP%]{color:var(--kui-gray-600);font-family:var(--kui-font-secondary);font-size:12px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:.12px;margin-bottom:32px}@media(min-width:768px){[_nghost-%COMP%] .popup-description[_ngcontent-%COMP%]{font-size:14px;line-height:20px;margin-bottom:40px}} .swiper-container .swiper-wrapper{justify-content:space-between!important} .swiper-container .swiper-wrapper .swiper-slide{min-width:max(150px,25% - 8px)} .swiper-container .swiper-wrapper .swiper-slide:last-of-type{margin-right:unset!important} .swiper-container .swiper-wrapper .swiper-slide .tag{width:100%;margin:auto;text-align:center} .popup-buttons-wrapper{flex-direction:column}"],changeDetection:0})}}return i})();var tt=(()=>{class i{constructor(e,n,t){this.secureApiService=e,this.profileRecipesService=n,this.router=t,this.kesmaRedirectService=L(Ne)}resolve(e){let{groupId:n}=e.params,{page:t,sort:s,global_filter:v}=e.queryParams,w=this.profileRecipesService.getHttpParams(t,s,v);return w?.["publish_date_order[]"]||(w["publish_date_order[]"]="desc"),this.secureApiService.getRecipesByGroup(n,w).pipe(j(A=>O(M({},A),{groupId:n})),ne(A=>{this.kesmaRedirectService.shouldBeRedirect(Number(t),A.data)&&this.kesmaRedirectService.redirectOldUrl(`profil/mentett-receptek/${n}`,!1,302)}),me(A=>(this.router.navigate(["/","404"],{skipLocationChange:!0}).then(),ce(()=>A))))}static{this.\u0275fac=function(n){return new(n||i)(q(k),q(Ke),q(G))}}static{this.\u0275prov=J({token:i,factory:i.\u0275fac})}}return i})();function Rn(i,p){i&1&&(o(0,"h2",11),l(1),r()),i&2&&(a(),z(p))}function Ln(i,p){i&1&&(o(0,"div",12),l(1),r()),i&2&&(a(),z(p))}function zn(i,p){i&1&&(o(0,"strong",13),l(1),r()),i&2&&(a(),z(p))}function Vn(i,p){if(i&1&&(o(0,"div",10),g(1,Rn,2,1,"h2",11),g(2,Ln,2,1,"div",12),g(3,zn,2,1,"strong",13),r()),i&2){let e,n,t,s=p.$implicit;a(),f((e=s==null?null:s.title)?1:-1,e),a(),f((n=s==null?null:s.description)?2:-1,n),a(),f((t=s==null?null:s.owner)?3:-1,t)}}var vi=(()=>{class i{constructor(e){this.profileOwnBestPracticeService=e,this.searchBarVisible=!1,this.sortBarVisible=!1}onFilterChange(e){this.profileOwnBestPracticeService.currentFilter=e.global_filter||""}onSortChange(e){this.profileOwnBestPracticeService.currentSort=this.profileOwnBestPracticeService.sortList[e]}static{this.\u0275fac=function(n){return new(n||i)(u(Qe))}}static{this.\u0275cmp=S({type:i,selectors:[["app-profile-own-best-practices"]],decls:18,vars:12,consts:[[1,"title"],[1,"count"],[1,"icons"],["title","Keres\xE9s",1,"icon",3,"click","keydown.enter","ngClass"],["title","Rendez\xE9s",1,"icon",3,"click","keydown.enter","ngClass"],[1,"hidden-content-wrapper"],[1,"hidden-content"],["searchBackendKey","global_filter","searchButtonText","Turpi keres\xE9se",3,"handleSearchResult"],[1,"hidden-content","swiper-container"],[3,"tagSelected","data"],[1,"practice"],[1,"practice-title"],[1,"practice-description"],[1,"practice-owner"]],template:function(n,t){if(n&1&&(o(0,"h2",0)(1,"div"),l(2," Turpijaim "),o(3,"sup",1),l(4),P(5,"async"),r()(),o(6,"div",2)(7,"i",3),h("click",function(){return t.searchBarVisible=!t.searchBarVisible})("keydown.enter",function(){return t.searchBarVisible=!t.searchBarVisible}),r(),o(8,"i",4),h("click",function(){return t.sortBarVisible=!t.sortBarVisible})("keydown.enter",function(){return t.sortBarVisible=!t.sortBarVisible}),r()()(),o(9,"div",5)(10,"div",6)(11,"app-search-bar",7),h("handleSearchResult",function(v){return t.onFilterChange(v)}),r()()(),o(12,"div",5)(13,"div",8)(14,"mindmegette-tag-as-button",9),h("tagSelected",function(v){return t.onSortChange(v)}),r()()(),E(15,Vn,4,3,"div",10,I),P(17,"async")),n&2){let s;a(4),y("(",((s=T(5,8,t.profileOwnBestPracticeService.limitable))==null?null:s.rowAllCount)||0,")"),a(3),m("ngClass",t.searchBarVisible?"mindmegette-icon-search-green":"mindmegette-icon-search-gray"),a(),m("ngClass",t.sortBarVisible?"mindmegette-icon-sort-green":"mindmegette-icon-sort-gray"),a(),te("is-open",t.searchBarVisible),a(3),te("is-open",t.sortBarVisible),a(2),m("data",t.profileOwnBestPracticeService.sortList),a(),F(T(17,10,t.profileOwnBestPracticeService.bestPractices))}},dependencies:[Re,He,qe,re],styles:["h2[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:8px 0}h2[_ngcontent-%COMP%] [_ngcontent-%COMP%]:nth-child(2n){align-self:flex-end}h2[_ngcontent-%COMP%] [_ngcontent-%COMP%]:nth-child(odd){align-self:flex-start}@media(max-width:991.98px){h2[_ngcontent-%COMP%]{flex-direction:column}}h2.title[_ngcontent-%COMP%]{margin-bottom:20px;font-size:24px;font-style:normal;font-weight:600;line-height:28px;letter-spacing:.12px}h2.title[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{font-weight:500;font-size:16px}h2[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}
1h2[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] + .icon[_ngcontent-%COMP%]{margin-left:8px}.hidden-content-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-out}.hidden-content-wrapper[_ngcontent-%COMP%] .hidden-content[_ngcontent-%COMP%]{overflow:hidden}.hidden-content-wrapper.is-open[_ngcontent-%COMP%]{grid-template-rows:1fr;margin-bottom:16px}.practice[_ngcontent-%COMP%]{background-color:var(--kui-white);border:1px solid var(--kui-gray-100);font-family:var(--kui-font-secondary);border-radius:8px;padding:20px 16px;display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.practice-title[_ngcontent-%COMP%]{color:var(--kui-green-700);font-family:var(--kui-font-secondary);font-size:20px;font-weight:700;line-height:26px;letter-spacing:0;text-align:left}@media(max-width:991.98px){.practice-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;letter-spacing:.01em}}.practice-description[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:24px;letter-spacing:.01em;text-align:left}@media(max-width:991.98px){.practice-description[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:0}}.practice-owner[_ngcontent-%COMP%]{font-size:14px;line-height:20px;font-weight:700} .swiper-container .swiper-wrapper{justify-content:space-between!important}"],changeDetection:0})}}return i})();function jn(i,p){if(i&1&&(o(0,"span",7),l(1),P(2,"date"),r()),i&2){let e=d().$implicit;a(),y("",ht(2,1,e.followedSince,"yyyy.MM.dd")," \xF3ta k\xF6veted")}}function Nn(i,p){if(i&1){let e=b();o(0,"div",2),c(1,"img",4),o(2,"div",5)(3,"h3",6),l(4),r(),g(5,jn,3,4,"span",7),r(),o(6,"a",8),h("click",function(){let t=_(e),s=t.$implicit,v=t.$index,w=d();return C(w.unfollowUserProfile(s.id,v))}),c(7,"i",9),r()()}if(i&2){let e=p.$implicit;a(),m("src",e.avatar||"/assets/images/author-placeholder.svg",oe),a(3),z(e.userName),a(),f(e.followedSince?5:-1)}}function Gn(i,p){if(i&1&&c(0,"mindmegette-pager",3),i&2){let e=d();m("rowAllCount",e.limitables==null?null:e.limitables.rowAllCount)("rowOnPageCount",e.limitables==null?null:e.limitables.rowOnPageCount)("isListPager",!0)("isCountPager",!1)("hasFirstLastButton",!1)("hasSkipButton",!0)("allowAutoScrollToTop",!0)("maxDisplayedPages",5)}}var xi=(()=>{class i{constructor(e,n){this.route=e,this.secureApiService=n,this.destroy$=new V}ngOnInit(){this.route.data.pipe(D(this.destroy$)).subscribe(({data:e})=>{this.followedList=e.data,this.limitables=e?.meta?.limitable})}unfollowUserProfile(e,n){this.followedList.splice(n,1),this.secureApiService.unFollowPublicUser(e).subscribe()}ngOnDestroy(){this.destroy$.next(!0)}static{this.\u0275fac=function(n){return new(n||i)(u(Z),u(k))}}static{this.\u0275cmp=S({type:i,selectors:[["app-profile-followed-users"]],decls:8,vars:2,consts:[[1,"title"],[1,"profiles"],[1,"profile-card"],[3,"rowAllCount","rowOnPageCount","isListPager","isCountPager","hasFirstLastButton","hasSkipButton","allowAutoScrollToTop","maxDisplayedPages"],["alt","","aria-hidden","true",1,"thumbnail",3,"src"],[1,"title-wrapper"],[1,"user-name"],[1,"followed-since"],[1,"unfollow",3,"click"],[1,"icon","icon-x"]],template:function(n,t){n&1&&(o(0,"h3",0),l(1," K\xF6vet\xE9seim "),o(2,"sup"),l(3),r()(),o(4,"section",1),E(5,Nn,8,3,"div",2,I),r(),g(7,Gn,1,8,"mindmegette-pager",3)),n&2&&(a(3),y("(",(t.limitables==null?null:t.limitables.rowAllCount)??0,")"),a(2),F(t.followedList),a(2),f(t.limitables&&t.limitables.pageMax>0?7:-1))},dependencies:[Fe,xt],styles:["[_nghost-%COMP%]{display:block;width:100%}[_nghost-%COMP%] .title[_ngcontent-%COMP%]{color:var(--kui-gray-950);font-family:var(--kui-font-primary);font-size:24px;font-weight:600;line-height:28px;letter-spacing:-.12px;margin-bottom:20px}@media(min-width:768px){[_nghost-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:32px;font-size:34px;line-height:40px;letter-spacing:-.17px}}[_nghost-%COMP%] .title[_ngcontent-%COMP%] sup[_ngcontent-%COMP%]{font-size:24px;font-weight:400;line-height:28px;letter-spacing:.12px}@media(min-width:768px){[_nghost-%COMP%] .title[_ngcontent-%COMP%] sup[_ngcontent-%COMP%]{font-size:34px;font-weight:400;line-height:40px;letter-spacing:-.17px}}[_nghost-%COMP%] .profiles[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;margin-bottom:40px}@media(min-width:768px){[_nghost-%COMP%] .profiles[_ngcontent-%COMP%]{gap:12px;margin-bottom:60px}}[_nghost-%COMP%] .profile-card[_ngcontent-%COMP%]{display:flex;width:100%;padding:16px 8px 16px 16px;align-items:center;background-color:var(--kui-white);border:1px solid var(--kui-gray-100);border-radius:8px}@media(min-width:768px){[_nghost-%COMP%] .profile-card[_ngcontent-%COMP%]{padding:24px}}[_nghost-%COMP%] .thumbnail[_ngcontent-%COMP%]{aspect-ratio:1/1;object-fit:cover;width:48px;height:48px;border-radius:50%;margin-right:16px}@media(min-width:768px){[_nghost-%COMP%] .thumbnail[_ngcontent-%COMP%]{width:60px;height:60px;margin-right:20px}}[_nghost-%COMP%] .title-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;margin-right:8px}@media(min-width:768px){[_nghost-%COMP%] .title-wrapper[_ngcontent-%COMP%]{margin-right:24px}}
1[_nghost-%COMP%] .user-name[_ngcontent-%COMP%]{color:var(--kui-gray-950);font-family:var(--kui-font-secondary);font-size:16px;font-weight:700;line-height:24px;letter-spacing:.08px}@media(min-width:768px){[_nghost-%COMP%] .user-name[_ngcontent-%COMP%]{font-size:18px;line-height:24px;letter-spacing:.18px}}[_nghost-%COMP%] .followed-since[_ngcontent-%COMP%]{color:var(--kui-gray-600);font-family:var(--kui-font-secondary);font-size:12px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:.12px}@media(min-width:768px){[_nghost-%COMP%] .followed-since[_ngcontent-%COMP%]{font-size:14px;line-height:20px}}[_nghost-%COMP%] .unfollow[_ngcontent-%COMP%]{margin-left:auto;display:flex;align-items:center;cursor:pointer}[_nghost-%COMP%] .icon-x[_ngcontent-%COMP%]{min-width:20px;min-height:20px;margin:8px}"],changeDetection:0})}}return i})();var it=(()=>{class i{constructor(e){this.secureApiService=e}resolve(){return this.secureApiService.getShoppingList()}static{this.\u0275fac=function(n){return new(n||i)(q(k))}}static{this.\u0275prov=J({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Pi=i=>{let p=L(Jt),e=L(k),{page:n,sort:t,global_filter:s}=i.queryParams,v=n?Number(n)-1:0,w=p.getHttpParams(n,t,s),A=L(Ne);return e.getMyUploadedRecipes(w).pipe(ne(se=>{A.shouldBeRedirect(v,se.data)?A.redirectOldUrl("profil/sajat-receptek",!1,302):p.next(se)}))};var ea=[{path:"",component:ci,canActivate:[ie,ri],resolve:{data:et},providers:[et],children:[{path:"mentett-receptek",component:di,canActivate:[ie]},{path:"mentett-receptek/:groupId",component:Ci,canActivate:[ie],resolve:{data:tt},providers:[tt],runGuardsAndResolvers:"paramsOrQueryParamsChange"},{path:"sajat-receptek",component:oi,runGuardsAndResolvers:"paramsOrQueryParamsChange",canActivate:[ie],resolve:{data:Pi}},{path:"sajat-turpik",component:vi,canActivate:[ie]},{path:"bevasarlolista",component:ui,canActivate:[ie],resolve:{data:it},providers:[it]},{path:"beallitasok",component:gi},{path:"kommentek",component:hi,canActivate:[ie]},{path:"torles",component:_i},{path:"koveteseim",component:xi,resolve:{data:Ze},providers:[Ze],runGuardsAndResolvers:"paramsOrQueryParamsChange",canActivate:[ie]},{path:"",redirectTo:"mentett-receptek",pathMatch:"full"}]},{path:":userId",loadChildren:()=>import("./chunk-PUWLRMF3.js").then(i=>i.publicUserProfileRouting)}];export{ea as profileRoutes};
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.