PageSourceSearch

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

js mindmegette.hu collected 2026-10-02 07:01:36 UTC 35,923 bytes, 3 lines download raw bytes

1import{a as Le,b as oe}from"./chunk-4H3KQXWF.js";import{P as k,Q as O,f as ne}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"./chunk-KEYWNPYY.js";import"./chunk-37MU4KYP.js";import"./chunk-AKMUFMIV.js";import"./chunk-2SOEIUT2.js";import"./chunk-4KIMCKDG.js";import"./chunk-TWDOYPI4.js";import"./chunk-CJNA2AFO.js";import{c as Ne,g as qe,h as ie,t as Re}from"./chunk-LZT6EPDW.js";import{w as je}from"./chunk-2IOJX3KL.js";import{b as Ae}from"./chunk-ORBKUQY7.js";import{u as Be,v as Ve}from"./chunk-NUUNCR2U.js";import"./chunk-ZBWJWUPP.js";import{$c as ze,A as J,Ca as W,Df as te,Rc as ee,Sc as we,be as Ie,eb as Te,ef as Fe,i as U,k as g,l as K,m as Z,n as H,p as E,s as Me,t as Ge,ug as Oe,v as Y,vb as X,w as $}from"./chunk-4B65WXMH.js";import{Ga as Pe,Ma as De,ka as Se,la as F,na as Q,x as be}from"./chunk-PXTCM6VB.js";import{$b as a,$c as C,Ac as s,Bb as w,Bc as D,Cc as x,Dc as ke,Ec as _e,Ha as P,Ja as T,Ka as ye,N as ve,Sb as m,Sd as Ee,Ub as d,Vc as y,Wc as b,Xc as ue,Z as xe,Zb as c,_b as n,a as N,ac as h,b as A,ca as le,cd as R,dd as I,ea as Ce,ed as L,hc as z,jc as _,lb as r,lc as p,pa as f,q as pe,rb as B,tc as V,u as he,uc as q,v as ge,wa as M,xa as G,xc as ce,z as fe,za as j}from"./chunk-5HA2B5KU.js";function me(t){let l=[],e=l.length;l.push({id:t?.occasion,discriminator:X.EXPERIENCE_OCCASION,quantity:t?.quantity,isGift:t?.isGift});let o=Math.trunc(Number(t?.drinkPackageQuantity??0))||0,i=null;t?.drinkPackageId&&o>0&&(i=l.length,l.push({id:t.drinkPackageId,discriminator:X.DRINK_PACKAGE,quantity:o}));let u=null;return t.coupon&&(u=l.length,l.push({couponCode:t.coupon.couponCode,discriminator:X.COUPON,quantity:1})),{request:{orderItems:l,orderDetail:N({invoiceName:t?.invoiceName,invoiceZip:t?.invoiceZip,invoiceCity:t?.invoiceCity,invoiceAddress:t?.invoiceAddress,taxNumber:t?.taxNumber??void 0,phoneNumber:t.phoneNumber},t?.guestPurchaseEmail&&{guestPurchaseEmail:t.guestPurchaseEmail}),orderComment:t?.orderComment??"",marketingLetter:t?.marketing},indexMap:{occasion:e,drinkPackage:i,coupon:u}}}var Qe=(t,l)=>{if(l){let e=Math.abs(l.amount??0),o=l.amount?t-e:Math.round(t*((100-l.percent)/100));return o<=0?0:o}};var ae=class extends W{constructor(l){super("begin_checkout"),this.config=l}get data(){return{event:this.event,ecommerce:{currency:this.config.items[0].currency,value:this.config.items.reduce((l,e)=>l+(e.price*e.quantity-(e.discount||0)),0),items:this.config.items}}}publish(){window.dataLayer.push({ecommerce:null}),super.publish()}};var re=class extends W{constructor(l){super("add_payment_info"),this.config=l}get data(){return{event:this.event,ecommerce:{payment_type:"Bankk\xE1rty\xE1s fizet\xE9s",currency:this.config.items[0].currency,value:this.config.items.reduce((l,e)=>l+(e.price*e.quantity-(e.discount||0)),0),items:this.config.items}}}publish(){window.dataLayer.push({ecommerce:null}),super.publish()}};var Ye=["errorAlert"];function $e(t,l){if(t&1&&(s(0),y(1,"formatDate"),y(2,"gastroDuration")),t&2){let e,o=l,i=p();ke(" ",ue(1,2,o,"hungarian")," ",ue(2,5,o,(e=i.details().occasion)==null?null:e.duration)," ")}}function Je(t,l){t&1&&s(0," Hamarosan ")}function We(t,l){if(t&1&&(n(0,"div",25),s(1),a(),n(2,"div",26),s(3),y(4,"thousandSeparator"),a()),t&2){let e=p(),o=p();r(),x("",e.title,":"),r(2),x(" ",o.drinkPackageQuantity()+" db / "+b(4,2,o.drinkPackageTotal())+" Forint"," ")}}function Xe(t,l){if(t&1&&m(0,We,5,4),t&2){let e=p();d(e.drinkPackageQuantity()>0?0:-1)}}function et(t,l){t&1&&(n(0,"div",7),h(1,"kesma-icon",27),s(2," Az italcsomag k\xEDn\xE1lata id\u0151k\xF6zben megv\xE1ltozott, ez\xE9rt kiker\xFClt a rendel\xE9sb\u
10151l. Ha szeretn\xE9l italcsomagot, t\xE9rj vissza az els\u0151 l\xE9p\xE9shez. "),a()),t&2&&(r(),c("size",16))}function tt(t,l){t&1&&s(0," A kedvezm\xE9ny kiz\xE1r\xF3lag az \xE9lm\xE9ny \xE1r\xE1ra vonatkozik, az italcsomagra nem. ")}function it(t,l){if(t&1&&(n(0,"div",33),h(1,"kesma-icon",35),s(2),y(3,"thousandSeparator"),a()),t&2){let e=l;r(),c("size",16),r(),x(" A kupon sikeresen aktiv\xE1lva, a fizet\xE9skor ",e.amount?b(3,2,e.amount)+" Ft fix \xF6sszeg\u0171":e.percent+"%"," kedvezm\xE9nyt alkalmazunk a v\xE9g\xF6sszegre. ")}}function nt(t,l){t&1&&(h(0,"kesma-icon",27),s(1," Hib\xE1s vagy lej\xE1rt kupon, k\xE9rj\xFCk ellen\u0151rizd a megadott k\xF3dot! ")),t&2&&c("size",16)}function ot(t,l){if(t&1){let e=z();n(0,"div",12),s(1,"Kuponk\xF3d megad\xE1sa:"),a(),n(2,"div",28),s(3," Ha rendelkezel kuponk\xF3ddal, add meg itt, hogy \xE9rv\xE9nyes\xEDts\xFCk a kedvezm\xE9nyt. "),m(4,tt,1,0),a(),n(5,"div",29)(6,"div",30),h(7,"input",31),n(8,"mindmegette-simple-button",32),_("click",function(){M(e);let i=p();return G(i.validateOrDeleteCoupon())})("keydown.enter",function(){M(e);let i=p();return G(i.validateOrDeleteCoupon())}),s(9),a()(),m(10,it,4,4,"div",33),n(11,"div",34),m(12,nt,2,1),a()()}if(t&2){let e,o=p();r(4),d(o.drinkPackageQuantity()>0?4:-1),r(),c("formGroup",o.formGroup),r(2),c("formControlName",o.formFields.couponCode)("readonly",!!o.sessionData().coupon),r(),c("color",o.sessionData().coupon?"outline":"primary")("disabled",o.isCouponValidating()),r(),x(" ",o.sessionData().coupon?"T\xF6rl\xE9s":o.isCouponValidating()?"K\xE9rj\xFCk v\xE1rj...":"Ellen\u0151rz\xE9s"),r(),d((e=o.sessionData().coupon)?10:-1,e),r(2),d(o.isCouponError()?12:-1)}}function at(t,l){if(t&1&&(n(0,"div",39)(1,"h4",37),s(2,"Kedvezm\xE9nyes v\xE9g\xF6sszeg:"),a(),n(3,"div",38),s(4),y(5,"thousandSeparator"),a()(),n(6,"div",40),s(7,"A kuponkedvezm\xE9ny csak az \xE9lm\xE9ny \xE1r\xE1ra vonatkozik, az italcsomag \xE1ra nem cs\xF6kken."),a()),t&2){let e=p(2);r(4),D(b(5,1,e.discountedTotal())+" Ft")}}function rt(t,l){if(t&1&&(n(0,"div",36)(1,"div",37),s(2,"\xC9lm\xE9ny:"),a(),n(3,"div",38),s(4),y(5,"thousandSeparator"),a()(),n(6,"div",36)(7,"div",37),s(8),a(),n(9,"div",38),s(10),y(11,"thousandSeparator"),a()(),n(12,"div",39)(13,"div",37),s(14,"V\xE9g\xF6sszeg:"),a(),n(15,"div",38),s(16),y(17,"thousandSeparator"),a()(),m(18,at,8,3)),t&2){let e,o=p();r(4),x(" ",b(5,7,o.experienceTotal())+" Ft / "+o.sessionData().quantity+" F\u0151"," "),r(4),x("",(e=o.drinkPackage())==null?null:e.title,":"),r(2),x(" ",b(11,9,o.drinkPackageTotal())+" Ft / "+o.drinkPackageQuantity()+" db"," "),r(2),ce("discounted",o.discountedTotal()),r(4),D(b(17,11,o.totalAmount())+" Ft"),r(2),d(o.discountedTotal()?18:-1)}}function st(t,l){if(t&1&&(n(0,"div",39)(1,"h4",37),s(2,"Kedvezm\xE9nyes v\xE9g\xF6sszeg:"),a(),n(3,"div",38),s(4),y(5,"thousandSeparator"),a()()),t&2){let e=p(2);r(4),x(" ",b(5,1,e.discountedTotal())+" Ft / "+e.sessionData().quantity+" F\u0151"," ")}}function lt(t,l){if(t&1&&(n(0,"div",39)(1,"div",37),s(2,"V\xE9g\xF6sszeg:"),a(),n(3,"div",38),s(4),y(5,"thousandSeparator"),a()(),m(6,st,6,3,"div",39)),t&2){let e=p();ce("discounted",e.discountedTotal()),r(4),x(" ",b(5,4,e.totalAmount())+" Ft / "+e.sessionData().quantity+" F\u0151"," "),r(2),d(e.discountedTotal()?6:-1)}}function ct(t,l){if(t&1){let e=z();n(0,"button",42),_("click",function(){M(e);let i=p(2);return G(i.reloadPage())}),s(1,"Oldal friss\xEDt\xE9se"),a()}}function ut(t,l){if(t&1&&(n(0,"div",22,0),h(2,"kesma-icon",27),n(3,"span"),s(4),a(),m(5,ct,2,0,"button",41),a()),t&2){let e=p();r(2),c("size",16),r(2),D(e.error()),r(),d(e.isReloadSuggested()?5:-1)}}var Ke=(()=>{class t{#e;#t;#i;#o;#n;constructor(){this.environment=Ne(),this.#e=f(O),this.#t=f(qe),this.#i=f(Q),this.#o=f(ie),this.portalConfigService=f(Re),this.#n=f(j),this.onStepNavigation=R(),this.sessionData=this.#e.sessionData,this.details=I.required(),this.isGuest=I(!1),this.selectedOccasion=C(()=>this.details()?.nextOccasions.find(e=>e.occasion.id===this.sessionData().occasion)??this.details()),this.experienceTotal=C(()=>{let o=((this.selectedOccasion()?.occasion??this.details()?.experience)?.studyAmount??[]).find(v=>v.studentNumber===this.sessionData().quantity),i=o?.amount??0,u=o?.discount?.totalAmount??0;return i+u}),this.drinkPackage=C(()=>{let e=this.details()?.drinkPackage??null;return!e||e.id!==this.sessionData().drinkPackageId?null:e}),this.drinkPackageQuantity=C(()=>this.drinkPackage()&&Math.trunc(Number(this.sessionData().drinkPackageQuantity??0))||0),this.drinkPackageTotal=C(()=>
1this.drinkPackageQuantity()*(this.drinkPackage()?.unitAmount??0)),this.totalAmount=C(()=>this.experienceTotal()+this.drinkPackageTotal()),this.discountedExperienceTotal=C(()=>Qe(this.experienceTotal(),this.sessionData().coupon)),this.discountedTotal=C(()=>{let e=this.discountedExperienceTotal();return e===void 0?void 0:e+this.drinkPackageTotal()}),this.isLoading=P(!1),this.error=P(null),this.user=F(this.#o.currentUserSubject),this.isCouponEnabled=this.portalConfigService.isConfigSet(Te.MENU_TYPE_ORDERS_COUPON),this.isCouponValidating=P(!1),this.isCouponError=P(!1),this.isDrinkPackageOutdated=P(!1),this.isReloadSuggested=P(!1),this.formFields={couponCode:"couponCode"},this.formGroup=new H({[this.formFields.couponCode]:new E(this.sessionData().coupon?.couponCode??null,[g.maxLength(50)])}),this.errorAlert=L("errorAlert"),T(()=>{let e=this.details()?.drinkPackage?.id,o=ye(this.sessionData).drinkPackageId;o&&o!==e&&(this.isDrinkPackageOutdated.set(!0),this.#e.saveStepData(k.SUMMARY,{drinkPackageId:void 0,drinkPackageQuantity:0}))}),T(()=>{!this.error()||!this.#i.isBrowser()||B(()=>{this.errorAlert()?.nativeElement.focus({preventScroll:!0})},{injector:this.#n})})}ngAfterViewInit(){this.#i.isBrowser()&&setTimeout(()=>{this.sendBeginCheckoutEvent()},500)}ngOnInit(){this.isGuest()||this.sessionData.set(A(N({},this.sessionData()),{guestPurchaseEmail:void 0}))}validateOrDeleteCoupon(){let e=this.formGroup.controls[this.formFields.couponCode]?.value;if(this.sessionData().coupon){this.formGroup.controls[this.formFields.couponCode].patchValue(null),this.#e.saveStepData(k.SUMMARY,{coupon:void 0});return}if((e??"").length===0)return;this.isCouponValidating.set(!0),this.isCouponError.set(!1);let{request:o,indexMap:i}=me(A(N({},this.sessionData()),{coupon:{couponCode:e??""}}));this.#t.checkoutOrderPurchase(o).subscribe({next:({data:u})=>{this.isCouponValidating.set(!1);let v=u?.orderItems?.find(S=>S?.coupon)?.coupon;this.#e.saveStepData(k.SUMMARY,{coupon:v})},error:({error:u})=>{this.isCouponValidating.set(!1),i.coupon!==null&&u?.errors?.[`orderItems.${i.coupon}.id`]?(this.isCouponError.set(!0),this.#e.saveStepData(k.SUMMARY,{coupon:void 0})):this.handleGeneralApiErrors(u,i)}})}backToPreviousStep(){this.#e.navigateToNextStep(k.BILLING),this.onStepNavigation.emit()}navigateToNextStep(){this.error.set(null),this.isLoading.set(!0),this.#e.handleStep(k.SUMMARY);let{request:e,indexMap:o}=me(this.sessionData());(this.sessionData().orderId?this.#t.retryOrderPurchase(this.sessionData().orderId??""):this.#t.saveOrderPurchase(e)).pipe(le(({getPaymentUrl:u,orderId:v})=>(this.environment.type==="prod"&&(u=u.replace(/^http:\/\//,"https://")),this.#e.handleStep(k.SUMMARY,{orderId:v}),this.sendAddPaymentInfo(),this.pollPaymentUrl(u))),Ce(u=>{this.environment.type==="prod"&&(u=u.replace(/^http:\/\//,"https://")),this.#i.isBrowser()&&(window.location.href=u)}),ve(({error:u})=>(this.handleGeneralApiErrors(u,o),pe))).subscribe()}pollPaymentUrl(e){return this.#t.getPaymentUrl(e).pipe(le(({status:o,simplePayPaymentUrl:i})=>i?he(i):ge(()=>o)),xe({count:30,delay:1e3}))}handleGeneralApiErrors(e,o){let i="Ismeretlen hiba t\xF6rt\xE9nt! K\xE9rj\xFCk ellen\u0151rizze az adatokat \xE9s pr\xF3b\xE1lja \xFAjra vagy vegye fel a kapcsolatot a szerkeszt\u0151s\xE9ggel!",u=e?.errors??{},v=o?.occasion??0,S=o?.drinkPackage??null,se=S===null?void 0:u[`orderItems.${S}.id`]?.[0],de=S===null?void 0:u[`orderItems.${S}.quantity`]?.[0];this.isReloadSuggested.set(!1),u[`orderItems.${v}.quantity`]?i="Sajn\xE1ljuk, az esem\xE9ny ebben a pillanatban megtelt, k\xE9rj\xFCk v\xE1lasz m\xE1sik id\u0151pontot!":(se||de)&&(i=se??de??i,this.isReloadSuggested.set(!!se)),this.error.set(i),this.isLoading.set(!1)}reloadPage(){this.#i.isBrowser()&&window.location.reload()}sendBeginCheckoutEvent(){new ae({items:this.buildEcommerceItems()}).publish()}sendAddPaymentInfo(){new re({items:this.buildEcommerceItems()}).publish()}buildEcommerceItems(){let e=Be(this.details(),{quantity:this.sessionData().quantity||1,eventType:this.sessionData().isGift?"aj\xE1nd\xE9k":"saj\xE1t r\xE9szre",discount:this.discountedExperienceTotal()??0}),o=this.drinkPackage(),i=this.drinkPackageQuantity();return[e,...o&&i>0?[Ve(o,i)]:[]]}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=w({type:t,selectors:[["app-gastro-purchase-summary"]],viewQuery:function(o,i){o&1&&V(i.errorAlert,Ye,5),o&2&&q()},inputs:{details:[1,"details"],isGuest:[1,"isGuest"]},outputs:{onStepNavigation:"onStepNavigation"},decls:58,vars:25,consts:[["errorAlert",""],["tabindex","0",1,"purchase-section-title"],[3,"experience","selectedOccasion"],["id","summary-date-title","tabindex","0",1,"purchase-section-title"],["tabindex","0","aria-labelledby","summary-date-title",1,"purchase-section-content"],["id","summary-quantity-title","tabindex","0",1,"purchase-section-title"],["tabindex","0","aria-labelledby","summary-quantity-title",1,"purchase-section-content"],["role","status",1,"purchase-section-content","drink-package-outdated"],["id","summary-participation-title","tabindex","0",1,"purchase-section-title"],["tabindex","0","aria-labelledby","summary-participation-title",1,"purchase-section-content"],["id","summary-payment-title","tabindex","0",1,"purchase-section-title"],["tabindex","0","aria-labelledby","summary-payment-title",1,"purchase-section-content"],[1,"purchase-section-title"],["id","summary-billing-title","tabindex","0"],["type","button",1,"subscription-summary-group-title-link",3,"click"],["name","mindmegette-icon-arrow-right-no-color",3,"size"],["tabindex","0","aria-labelledby","summary-billing-title",1,"purchase-section-content"],["id","summary-phone-title","tabindex","0"],["tabindex","0","aria-labelledby","summary-phone-title",1,"purchase-section-content"],["id","summary-email-title","tabindex","0",1,"purchase-section-title"],["tabindex","0","aria-labelledby","summary-email-title",1,"purchase-section-content"],["aria-live","assertive","aria-atomic","true"],["tabindex","-1","role","alert",1,"mindmegette-form-general-error"],[1,"purchase-
1action"],["color","primary","icon","mindmegette-icon-arrow-right-no-color","iconPosition","right",1,"w-100",3,"click","keydown.enter","disabled","useKesmaIcon","kesmaIconSize"],["id","summary-drink-package-title","tabindex","0",1,"purchase-section-title"],["tabindex","0","aria-labelledby","summary-drink-package-title",1,"purchase-section-content"],["name","icon-exclamation-mark-circle",1,"error-icon",3,"size"],["id","cupon-code-info",1,"purchase-section-content","coupon-code"],[1,"mindmegette-form-row",3,"formGroup"],[1,"purchase-coupon-code"],["id","couponCode","aria-label","Kuponk\xF3d","placeholder","","type","text","aria-describedby","coupon-code-error cupon-code-info",1,"mindmegette-form-input",3,"formControlName","readonly"],[3,"click","keydown.enter","color","disabled"],[1,"purchase-coupon-code-result","success"],["aria-live","assertive","aria-atomic","true","id","coupon-code-error",1,"purchase-coupon-code-result","error"],["name","icon-circle-checkmark",1,"success-icon",3,"size"],[1,"purchase-total","is-item"],[1,"purchase-total-title"],[1,"purchase-total-amount"],[1,"purchase-total"],[1,"purchase-total-note"],["type","button",1,"purchase-reload-link"],["type","button",1,"purchase-reload-link",3,"click"]],template:function(o,i){if(o&1&&(n(0,"div",1),s(1,"A kiv\xE1lasztott tanfolyam adatai:"),a(),h(2,"app-gastro-purchase-occasion",2),n(3,"div",3),s(4,"Id\u0151pontja:"),a(),n(5,"div",4),m(6,$e,3,8)(7,Je,1,0),a(),n(8,"div",5),s(9,"R\xE9sztvev\u0151k sz\xE1ma:"),a(),n(10,"div",6),s(11),y(12,"thousandSeparator"),a(),m(13,Xe,1,1),m(14,et,3,1,"div",7),n(15,"div",8),s(16,"Tanfolyam r\xE9szv\xE9tel:"),a(),n(17,"div",9),s(18),a(),n(19,"div",10),s(20,"Fizet\xE9si m\xF3d:"),a(),n(21,"div",11),s(22,"Online bankk\xE1rty\xE1s fizet\xE9s - SimplePay"),a(),n(23,"div",12)(24,"span",13),s(25,"Sz\xE1ml\xE1z\xE1si adatok:"),a(),n(26,"button",14),_("click",function(){return i.backToPreviousStep()}),n(27,"span"),s(28,"M\xF3dos\xEDtom"),a(),h(29,"kesma-icon",15),a()(),n(30,"div",16)(31,"div"),s(32),a(),n(33,"div"),s(34),a(),n(35,"div"),s(36),a()(),n(37,"div",12)(38,"span",17),s(39,"Telefonsz\xE1m:"),a(),n(40,"button",14),_("click",function(){return i.backToPreviousStep()}),n(41,"span"),s(42,"M\xF3dos\xEDtom"),a(),h(43,"kesma-icon",15),a()(),n(44,"div",18),s(45),a(),n(46,"div",19),s(47,"E-mail c\xEDm:"),a(),n(48,"div",20),s(49),a(),m(50,ot,13,9),m(51,rt,19,13)(52,lt,7,6),n(53,"div",21),m(54,ut,6,3,"div",22),a(),n(55,"div",23)(56,"mindmegette-simple-button",24),_("click",function(){return i.navigateToNextStep()})("keydown.enter",function(){return i.navigateToNextStep()}),s(57),a()()),o&2){let u,v,S;r(2),c("experience",i.details().experience)("selectedOccasion",i.selectedOccasion()),r(4),d((u=(u=i.details().occasion)==null?null:u.startOfExperienceEvent)?6:7,u),r(5),x(" ",i.sessionData().quantity+" F\u0151 / "+b(12,23,i.experienceTotal())+" Forint",`
2`),r(2),d((v=i.drinkPackage())?13:-1,v),r(),d(i.isDrinkPackageOutdated()?14:-1),r(4),x(" ",i.sessionData().isGift?"Aj\xE1nd\xE9k k\xE1rtya":"Saj\xE1t r\xE9szre",`
3`),r(11),c("size",20),r(3),D(i.sessionData().invoiceName),r(2),_e("",i.sessionData().invoiceZip," ",i.sessionData().invoiceCity,", ",i.sessionData().invoiceAddress),r(2),D(i.sessionData().taxNumber),r(7),c("size",20),r(2),D(i.sessionData().phoneNumber),r(4),D(((S=i.user())==null?null:S.email)??i.sessionData().guestPurchaseEmail),r(),d(i.isCouponEnabled?50:-1),r(),d(i.drinkPackageTotal()?51:52),r(3),d(!i.isLoading()&&i.error()?54:-1),r(2),c("disabled",i.isLoading())("useKesmaIcon",!0)("kesmaIconSize",24),r(),x(" ",i.isLoading()?"K\xE9rj\xFCk v\xE1rj...":"Tov\xE1bb a fizet\xE9shez"," ")}},dependencies:[oe,ne,te,J,U,K,Z,$,Y,Le,De,Fe],styles:[".purchase-section-title[_ngcontent-%COMP%]{color:var(--kui-gray-950);font-family:var(--kui-font-secondary);font-size:14px;font-weight:700;line-height:20px;display:flex;justify-content:space-between;gap:12px}.purchase-section-title[_ngcontent-%COMP%]   .subscription-summary-group-title-link[_ngcontent-%COMP%]{appearance:none;background:none;border:0;padding:0;margin:0;font:inherit;cursor:pointer;font-weight:500;display:flex;align-items:center;gap:6px;color:var(--kui-green-700);text-decoration:underline;transition:color .3s ease}.purchase-section-title[_ngcontent-%COMP%]   .subscription-summary-group-title-link[_ngcontent-%COMP%]:hover{color:var(--kui-green-800)}.purchase-section-title[_ngcontent-%COMP%]   .subscription-summary-group-title-link[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--kui-green-700);outline-offset:4px;border-radius:4px}.purchase-section-content[_ngcontent-%COMP%]{padding:8px 0 32px;color:var(--kui-gray-950);font-family:var(--kui-font-secondary);font-size:18px;font-weight:400;line-height:24px}.purchase-section-content[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--kui-green-700);outline-offset:4px;border-radius:4px}.purchase-section-content.coupon-code[_ngcontent-%COMP%]{padding-bottom:0}.purchase-section-content.drink-package-outdated[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;padding-top:0;font-size:14px;line-height:20px;color:var(--kui-red-600, #c0392b)}.purchase-section-content.drink-package-outdated[_ngcontent-%COMP%]   kesma-icon[_ngcontent-%COMP%]{flex:0 0 auto;margin-top:2px}.purchase-coupon-code[_ngcontent-%COMP%]{margin:16px 0 32px;display:flex;align-items:center;gap:32px}.purchase-coupon-code[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin:0}.purchase-coupon-code[_ngcontent-%COMP%]   mindmegette-simple-button[_ngcontent-%COMP%]{flex-shrink:0}.purchase-coupon-code-result[_ngcontent-%COMP%]{font-size:12px;line-height:22px;letter-spacing:.12px;font-family:var(--kui-font-secondary);margin-top:-24px;margin-bottom:32px}.purchase-coupon-code-result[_ngcontent-%COMP%]   kesma-icon[_ngcontent-%COMP%]{display:inline-block;margin-right:8px;vertical-align:top}.purchase-coupon-code-result.success[_ngcontent-%COMP%]{color:var(--kui-green-700)}.purchase-coupon-code-result.error[_ngcontent-%COMP%]{color:var(--kui-pink-600)}.purchase-total[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:12px;color:var(--kui-gray-950);font-family:var(--kui-font-secondary);font-size:16px;font-weight:700;line-height:22px;letter-spacing:.16px;margin-bottom:20px}.purchase-total.discounted[_ngcontent-%COMP%], .purchase-total.discounted[_ngcontent-%COMP%]   h4[_ng
3content-%COMP%]{text-decoration:line-through;font-size:14px;line-height:20px;font-weight:400;margin-bottom:0}.purchase-total.is-item[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px;margin-bottom:8px;text-decoration:none}.purchase-total-note[_ngcontent-%COMP%]{color:var(--kui-gray-700);font-family:var(--kui-font-secondary);font-size:12px;font-weight:400;line-height:18px;margin-bottom:20px}.purchase-action[_ngcontent-%COMP%]   mindmegette-simple-button[_ngcontent-%COMP%]     button{display:flex;align-items:center;justify-content:center}app-gastro-purchase-occasion[_ngcontent-%COMP%]{display:block;margin-top:16px}.purchase-reload-link[_ngcontent-%COMP%]{appearance:none;margin-left:8px;padding:0;background:none;border:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}.purchase-reload-link[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--kui-green-700);outline-offset:2px}.mindmegette-form-general-error[_ngcontent-%COMP%]{margin-bottom:32px}@media(min-width:992px)and (max-width:1199.98px){.mindmegette-form-general-error[_ngcontent-%COMP%]{margin-bottom:24px}}@media(max-width:767.98px){.mindmegette-form-general-error[_ngcontent-%COMP%]{margin-bottom:24px}}.mindmegette-form-general-error.mt-12[_ngcontent-%COMP%]{margin-top:12px}.mindmegette-form-general-error[_ngcontent-%COMP%]   kesma-icon[_ngcontent-%COMP%]{display:inline-block;margin-right:8px;vertical-align:top}"],changeDetection:0})}}return t})();function mt(t,l){t&1&&(n(0,"div",3),s(1," A profilodhoz tartoz\xF3 sz\xE1ml\xE1z\xE1si adatok hi\xE1nyosak, \xEDgy k\xE9rj\xFCk t\xF6ltsd ki az al\xE1bbi mez\u0151ket a folytat\xE1shoz. Az adatokat k\xE9s\u0151bbi v\xE1s\xE1rl\xE1saidn\xE1l m\xE1r nem lesz sz\xFCks\xE9ges \xFAjra megadni. "),a())}function dt(t,l){if(t&1&&(n(0,"div",5)(1,"kesma-form-control",30)(2,"label",31),h(3,"input",32),n(4,"span"),s(5,"Mag\xE1nszem\xE9lyk\xE9nt v\xE1s\xE1rolok"),a()(),n(6,"label",33),h(7,"input",34),n(8,"span"),s(9,"C\xE9gk\xE9nt v\xE1s\xE1rolok"),a()()()()),t&2){let e=p();r(),c("withIcon",!0),r(2),c("value","individual")("formControlName",e.formFields.customerType)("name",e.formFields.customerType),r(4),c("value","business")("formControlName",e.formFields.customerType)("name",e.formFields.customerType)}}function pt(t,l){t&1&&(n(0,"strong"),s(1,"*"),a())}function ht(t,l){if(t&1&&(n(0,"div",5)(1,"kesma-form-control",35)(2,"label",36),s(3,"Email"),n(4,"strong"),s(5,"*"),a()(),h(6,"input",37),a()()),t&2){let e=p();r(),c("withIcon",!0),r(5),c("formControlName",e.formFields.guestPurchaseEmail)}}function gt(t,l){t&1&&(n(0,"div",27),h(1,"kesma-icon",38),s(2,"K\xE9rj\xFCk t\xF6lts ki minden k\xF6telez\u0151 adatot a folytat\xE1shoz! "),a()),t&2&&(r(),c("size",16))}var Ze=(()=>{class t{#e;#t;constructor(){this.#e=f(O),this.#t=f(ie),this.onStepNavigation=R(),this.sessionData=this.#e.sessionData,this.details=I.required(),this.isGuest=I(!1),this.selectedOccasion=C(()=>this.details()?.nextOccasions.find(e=>e.occasion.id===this.sessionData().occasion)??this.details()),this.isSubmitted=P(!1),this.user=F(this.#t.currentUserSubject),this.userDetails=C(()=>this.user()?.userDetails),this.isProfileInvoiceDataDefined=C(()=>{let e=this.userDetails();return!!(e?.invoiceName&&e?.invoiceZip&&e?.invoiceCity&&e?.invoiceAddress&&e?.phoneNumber)}),this.taxNumberPattern="^[0-9]{8}-[0-9]{1}-[0-9]{2}$",this.formFields={invoiceName:"invoiceName",invoiceZip:"invoiceZip",invoiceCity:"invoiceCity",invoiceAddress:"invoiceAddress",taxNumber:"taxNumber",phoneNumber:"phoneNumber",guestPurchaseEmail:"guestPurchaseEmail",customerType:"customerType"},this.formGroup=new H({[this.formFields.invoiceName]:new E(this.getInvoiceName(),[g.required,ee,g.maxLength(250)]),[this.formFields.invoiceZip]:new E(this.sessionData().invoiceZip??this.userDetails()?.invoiceZip??null,[g.required,g.pattern("^[0-9]{4,5}$")]),[this.formFields.invoiceCity]:new E(this.sessionData().invoiceCity??this.userDetails()?.invoiceCity??null,[g.required,ee,g.maxLength(50)]),[this.formFields.invoiceAddress]:new E(this.sessionData().invoiceAddress??this.userDetails()?.invoiceAddress??null,[g.required,ee,g.maxLength(250)]),[this.formFields.taxNumber]:new E(this.sessionData().taxNumber??this.userDetails()?.taxNumber??"",[g.pattern(this.taxNumberPattern)]),[this.formFields.phoneNumber]:new E(this.sessionData().phoneNumber??this.userDetails()?.phoneNumber??null,[g.required,g.pattern("^[0-9]{9,11}$")]),[this.formFields.customerType]:new E(this.sessionData().customerType??"individual",[g.required]),[this.formFields.guestPurchaseEmail]:new E(this.sessionData().guestPurchaseEmail??null)}),this.formGroup.controls[this.formFields.customerType].valueChanges.pipe(Se()).subscribe(e=>{let o=this.formGroup.controls[this.formFields.taxNumber];e==="business"?o?.setValidators([g.required,g.pattern(this.taxNumberPattern)]):o?.setValidators([g.pattern(this.taxNumberPattern)]),o?.updateValueAndValidity()})}
3ngOnInit(){this.isGuest()&&this.formGroup.controls[this.formFields.guestPurchaseEmail]?.setValidators([g.required,we])}getInvoiceName(){return this.sessionData()?.invoiceName?this.sessionData().invoiceName??null:(this.userDetails()?.invoiceName?.length??0)!==0?this.userDetails()?.invoiceName??null:this.user()?.lastName&&this.user()?.firstName?this.user()?.lastName+" "+this.user()?.firstName:null}navigateToNextStep(){this.formGroup&&ze(this.formGroup),this.isSubmitted.set(!0),this.formGroup?.valid&&(this.#e.handleStep(k.BILLING,this.formGroup.value),this.onStepNavigation.emit())}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=w({type:t,selectors:[["app-gastro-purchase-billing"]],inputs:{details:[1,"details"],isGuest:[1,"isGuest"]},outputs:{onStepNavigation:"onStepNavigation"},decls:60,vars:24,consts:[[3,"experience","selectedOccasion","withImage"],[3,"ngSubmit","formGroup"],[1,"purchase-section-title"],[1,"purchase-section-text","mt-8","mb-16"],[1,"row","mindmegette-form-row"],[1,"col-12"],[1,"col-12","col-md-6"],["label","N\xE9v",3,"withIcon"],["for","invoiceName",1,"mindmegette-form-label"],["id","invoiceName","type","text",1,"mindmegette-form-input",3,"formControlName"],[1,"mindmegette-form-small"],["label","Ad\xF3sz\xE1m",3,"withIcon"],["for","taxNumber",1,"mindmegette-form-label"],["id","taxNumber","placeholder","Pl.: 12345678-9-01","type","text",1,"mindmegette-form-input",3,"formControlName"],["label","Ir\xE1ny\xEDt\xF3sz\xE1m",3,"withIcon"],["for","invoiceZip",1,"mindmegette-form-label"],["id","invoiceZip","placeholder","Pl.: 1029","type","text",1,"mindmegette-form-input",3,"formControlName"],["label","Telep\xFCl\xE9s",3,"withIcon"],["for","invoiceCity",1,"mindmegette-form-label"],["id","invoiceCity","placeholder","Pl.: Budapest","type","text",1,"mindmegette-form-input",3,"formControlName"],["label","C\xEDm",3,"withIcon"],["for","invoiceAddress",1,"mindmegette-form-label"],["id","invoiceAddress","placeholder","Pl.: Pet\u0151fi S\xE1ndor utca 1.","type","text",1,"mindmegette-form-input",3,"formControlName"],["label","Telefonsz\xE1m",3,"withIcon"],["for","phoneNumber",1,"mindmegette-form-label"],["id","phoneNumber","placeholder","Pl.: 0611234567","type","text",1,"mindmegette-form-input",3,"formControlName"],["aria-live","assertive","aria-atomic","true"],[1,"mindmegette-form-general-error"],[1,"purchase-
3action"],["color","primary","icon","mindmegette-icon-arrow-right-no-color","iconPosition","right",1,"w-100",3,"isSubmit","useKesmaIcon","kesmaIconSize"],["label","Mag\xE1nszem\xE9lyk\xE9nt v\xE1s\xE1rolok",3,"withIcon"],["for","individual",1,"mindmegette-form-radio"],["id","individual","type","radio",3,"value","formControlName","name"],["for","business",1,"mindmegette-form-radio"],["id","business","type","radio",3,"value","formControlName","name"],["label","Email",3,"withIcon"],["for","guestPurchaseEmail",1,"mindmegette-form-label"],["id","guestPurchaseEmail","type","text",1,"mindmegette-form-input",3,"formControlName"],["name","icon-exclamation-mark-circle",1,"error-icon",3,"size"]],template:function(o,i){o&1&&(h(0,"app-gastro-purchase-occasion",0),n(1,"form",1),_("ngSubmit",function(){return i.navigateToNextStep()}),n(2,"div",2),s(3,"Sz\xE1ml\xE1z\xE1si adatok:"),a(),m(4,mt,2,0,"div",3),n(5,"div",4),m(6,dt,10,7,"div",5),n(7,"div",6)(8,"kesma-form-control",7)(9,"label",8),s(10," N\xE9v "),n(11,"strong"),s(12,"*"),a()(),h(13,"input",9),n(14,"small",10),s(15,"Teljes n\xE9v vagy jogi szem\xE9ly eset\xE9n a c\xE9g neve"),a()()(),n(16,"div",6)(17,"kesma-form-control",11)(18,"label",12),s(19," Ad\xF3sz\xE1m "),m(20,pt,2,0,"strong"),a(),h(21,"input",13),n(22,"small",10),s(23,"Opcion\xE1lis, jogi szem\xE9ly eset\xE9n k\xF6telez\u0151"),a()()(),n(24,"div",6)(25,"kesma-form-control",14)(26,"label",15),s(27,"Ir\xE1ny\xEDt\xF3sz\xE1m"),n(28,"strong"),s(29,"*"),a()(),h(30,"input",16),a()(),n(31,"div",6)(32,"kesma-form-control",17)(33,"label",18),s(34,"Telep\xFCl\xE9s"),n(35,"strong"),s(36,"*"),a()(),h(37,"input",19),a()(),n(38,"div",5)(39,"kesma-form-control",20)(40,"label",21),s(41,"C\xEDm"),n(42,"strong"),s(43,"*"),a()(),h(44,"input",22),a()(),n(45,"div",5)(46,"kesma-form-control",23)(47,"label",24),s(48,"Telefonsz\xE1m"),n(49,"strong"),s(50,"*"),a()(),h(51,"input",25),n(52,"small",10),s(53,"Csak sz\xE1mok, p\xE9ld\xE1ul: 0611234567"),a()()(),m(54,ht,7,2,"div",5),a(),n(55,"div",26),m(56,gt,3,1,"div",27),a(),n(57,"div",28)(58,"mindmegette-simple-button",29),s(59," Tov\xE1bb a v\xE1s\xE1rl\xE1shoz "),a()()()),o&2&&(c("experience",i.details().experience)("selectedOccasion",i.selectedOccasion())("withImage",!0),r(),c("formGroup",i.formGroup),r(3),d(!i.isProfileInvoiceDataDefined()&&!i.isGuest()?4:-1),r(2),d(i.isGuest()?6:-1),r(2),c("withIcon",!0),r(5),c("formControlName",i.formFields.invoiceName),r(4),c("withIcon",!0),r(3),d((i.formGroup.controls[i.formFields.customerType]==null?null:i.formGroup.controls[i.formFields.customerType].value)==="business"?20:-1),r(),c("formControlName",i.formFields.taxNumber),r(4),c("withIcon",!0),r(5),c("formControlName",i.formFields.invoiceZip),r(2),c("withIcon",!0),r(5),c("formControlName",i.formFields.invoiceCity),r(2),c("withIcon",!0),r(5),c("formControlName",i.formFields.invoiceAddress),r(2),c("withIcon",!0),r(5),c("formControlName",i.formFields.phoneNumber),r(3),d(i.isGuest()?54:-1),r(2),d(i.isSubmitted()&&!i.formGroup.valid?56:-1),r(2),c("isSubmit",!0)("useKesmaIcon",!0)("kesmaIconSize",20))},dependencies:[oe,J,Me,U,Ge,K,Z,$,Y,ne,Oe,te],styles:[".purchase-section-title[_ngcontent-%COMP%]{color:var(--kui-gray-950);font-family:var(--kui-font-secondary);font-size:14px;font-weight:700;line-height:20px;margin-bottom:8px}.purchase-section-text[_ngcontent-%COMP%]{color:var(--kui-gray-950);font-family:var(--kui-font-secondary);font-size:14px;font-weight:400;line-height:20px}.purchase-section-text.mt-8[_ngcontent-%COMP%]{margin-top:8px}.purchase-section-text.mb-16[_ngcontent-%COMP%]{margin-bottom:16px}.purchase-action[_ngcontent-%COMP%]   mindmegette-simple-button[_ngcontent-%COMP%]     button{display:flex;align-items:center;justify-content:center}.mindmegette-form-label[_ngcontent-%COMP%]{font-size:14px;line-height:20px;text-transform:initial;letter-spacing:initial}.mindmegette-form-general-error[_ngcontent-%COMP%]{margin-bottom:32px}@media(min-width:992px)and (max-width:1199.98px){.mindmegette-form-general-error[_ngcontent-%COMP%]{margin-bottom:24px}}@media(max-width:767.98px){.mindmegette-form-general-error[_ngcontent-%COMP%]{margin-bottom:24px}}.mindmegette-form-general-error.mt-12[_ngcontent-%COMP%]{margin-top:12px}.mindmegette-form-general-error[_ngcontent-%COMP%]   kesma-icon[_ngcontent-%COMP%]{display:inline-block;margin-right:8px;vertical-align:top}"],changeDetection:0})}}return t})();var ft=["stepHeading"];function vt(t,l){t&1&&s(0," Jelentkez\xE9s ")}function xt(t,l){t&1&&s(0," A jelentkez\xE9s \xE1ttekint\xE9se ")}function Ct(t,l){if(t&1){let e=z();n(0,"app-gastro-purchase-billing",7),_("onStepNavigation",function(){M(e);let i=p();return G(i.onStepNavigation())}),a()}if(t&2){let e=p();c("details",e.details())("isGuest",e.isGuest)}}function yt(t,l){if(t&1){let e=z();n(0,"app-gastro-purchase-summary",7),_("onStepNavigation",function(){M(e);let i=p();return G(i.onStepNavigation())}),a()}if(t&2){let e=p();c("details",e.details())("isGuest",e.isGuest)}}var ki=(()=>{class t{#e;#t;#i;#o;#n;#a;constructor(){this.#e=f(O),this.#t=f(be),this.#i=f(Q),this.#o=f(Ee),this.#n=f(Pe),this.#a=f(j),this.currentStep=this.#e.currentStep,this.details=F(this.#t.data.pipe(fe(e=>e.data)),{requireSync:!0}),this.stepHeading=L("stepHeading"),this.GastroPurchaseStepType=k,this.isGuest=this.#t.snapshot.data.isGuest,T(()=>{let e=this.details()?.experience;if(!e)return;let o=Ie("elmenyek/vasarlas",this.#t.snapshot);o&&this.#n.updateCanonicalUrl(o);let i=je(`V\xE1s\xE1rl\xE1s - ${e.title}`);this.#n.setMetaData(A(N({},Ae),{title:i,ogTitle:i,ogImage:e.featuredImageUrl||"",ogDescription:e.lead||"",description:e.lead||""}))}),T(()=>{this.currentStep(),this.#i.isBrowser()&&B(()=>{this.stepHeading()?.nativeElement.focus({preventScroll:!0})},{injector:this.#a})})}onStepNavigation(){this.#i.isBrowser()&&this.#o.scrollToPosition([0,0])}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=w({type:t,selectors:[["app-gastro-purchase-page"]],viewQuery:function(o,i){o&1&&V(i.stepHeading,ft,5),o&2&&q()},decls:11,vars:2,consts:[["stepHeading",""],["id","main-content","tabindex","-1"],[1,"wrapper"],[1,"purchase-box"],["tabindex","-1","aria-live","polite",1,"purchase-box-header"],[1,"purchase-box-content"],[3,"details","isGuest"],[3,"onStepNavigation","details","isGuest"]],template:function(o,i){if(o&1&&(n(0,"main",1)(1,"section")(2,"div",2)(3,"div",3)(4,"h1",4,0),m(6,vt,1,0)(7,xt,1,0),a(),n(8,"div",5),m(9,Ct,1,2,"app-gastro-purchase-billing",6)(10,yt,1,2,"app-gastro-purchase-summary",6),a()()()()()),o&2){let u,v;r(6),d((u=i.currentStep())===i.GastroPurchaseStepType.BILLING?6:u===i.GastroPurchaseStepType.SUMMARY?7:-1),r(3),d((v=i.currentStep())===i.GastroPurchaseStepType.BILLING?9:v===i.GastroPurchaseStepType.SUMMARY?10:-1)}},dependencies:[Ke,Ze],styles:[".purchase-box[_ngcontent-%COMP%]{max-width:676px;margin:24px auto 60px}.purchase-box-header[_ngcontent-%COMP%]{border-radius:8px 8px 0 0;background-color:var(--kui-green-700);color:var(--kui-white);font-family:var(--kui-font-secondary);font-size:20px;font-weight:700;line-height:26px;padding:8px 16px}.purchase-box-content[_ngcontent-%COMP%]{border-radius:0 0 12px 12px;border:1px solid var(--kui-gray-100);background-color:var(--kui-white);padding:24px}@media(min-width:992px)and (max-width:1199.98px){.purchase-box-content[_ngcontent-%COMP%]{padding:16px 24px}}@media(max-width:767.98px){.purchase-box-content[_ngcontent-%COMP%]{padding:16px 24px}}"],changeDetection:0})}}return t})();export{ki as GastroPurchasePageComponent};

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.