1import{C as Vt,D as zt}from"./chunk-7CIZKTER.js";import{d as Bt,i as Lt,l as Rt,r as A}from"./chunk-BG4USSGX.js";import{a as At,c as jt}from"./chunk-SVDZM2HW.js";import{$ as J,$a as b,$d as lt,$g as St,$h as re,Ae as Ct,Be as ut,Ca as i,Da as l,Db as C,E as q,Eb as u,Ec as mt,Ee as _t,He as Qt,I as X,K as S,La as nt,Na as g,P,Pa as m,Qb as _,S as z,T as Z,U as k,Xa as c,Y as H,Ya as a,Z as Ht,Za as U,_a as O,_b as ct,_h as Tt,aa as I,ae as D,ah as oe,bb as ot,bi as Et,ca as K,cb as it,cd as Jt,ce as ft,ch as kt,ci as se,d as M,db as h,dh as ie,ec as F,ef as Mt,eh as It,fa as T,fd as pt,ff as Wt,ga as E,gc as at,ge as N,hb as rt,i as R,ic as $,lg as vt,ma as Q,mf as Pt,mg as ee,na as W,nb as st,ni as Ft,o as y,ob as p,pb as v,pi as $t,qb as w,ri as Dt,rj as G,s as d,si as ce,t as V,tf as Ot,ti as Nt,u as Y,ue as dt,uf as te,ui as ae,va as tt,ve as gt,vi as Gt,wg as wt,xf as bt,xg as xt,yg as ne,za as et,ze as ht,zg as yt}from"./chunk-POKSBX2Y.js";function le(o,t){if(o&1&&(c(0,"kfb-spinner",14),C(1,"async"),c(2,"kfb-button",15),C(3,"async"),p(4),C(5,"async"),a()()),o&2){let s,e,n=h(2).$implicit,r=h();m("diameter",20)("overlaid",!0)("messageEnabled",!1)("spinnerEnabled",(s=u(1,6,r.isLoading$))!==null&&s!==void 0?s:!1),i(2),m("disabled",(e=u(3,8,r.isButtonDisabled$))!==null&&e!==void 0?e:!1),i(2),w(" ",u(5,10,r.isSaved$)?n("form.emailSavedInputButtonText"):n("form.emailInputButtonText")," ")}}function fe(o,t){if(o&1){let s=ot();O(0),c(1,"div",3)(2,"div",4)(3,"div",5)(4,"p",6),p(5),a(),c(6,"p",7),p(7),a()(),c(8,"div",5)(9,"form",8),it("ngSubmit",function(){Q(s);let n=h(2);return W(n.onSubmit())}),U(10,"kfb-text-form-field",9,0),c(12,"kfb-checkbox",10)(13,"kfb-zippy",11),p(14),a()(),g(15,le,6,12,"kfb-spinner",12),U(16,"kfb-form-group-errors",13),a()()()(),b()}if(o&2){let s=t.$implicit,e=st(11),n=h().$implicit,r=h();i(5),w(" ",n("invitation.topText")," "),i(2),w(" ",n("invitation.bottomText")," "),i(2),m("formGroup",r.formGroup),i(),m("shape",s.isMobile?"round":"oval")("transparent",!0)("placeholder",n("form.emailInputPlaceholder"))("formControl",r.formGroup.controls.address),i(2),m("formControl",r.formGroup.controls.agreement),i(),m("maxLines",3),i(),w(" ",n("form.agreementText")," "),i(),m("kfbPinMeToContainer",s.isMobile?null:e),i(),m("formGroup",r.formGroup)}}function de(o,t){o&1&&(O(0),g(1,fe,17,12,"ng-container",2),b())}var ge,Xe,Kt=M(()=>{"use strict";$();_();G();jt();A();H();Ht();zt();_();ft();A();zt();Qt();G();jt();te();ee();ae();ce();re();oe();se();ie();ne();$();ge="Nieznane",Xe=(()=>{let t=class t extends pt{constructor(e,n,r,B,x,Yt,qt){super(),this.platformId=e,this.translocoService=n,this.newsletterApiService=r,this.userPreferencesFacade=B,this.formBuilder=x,this.validatorsFactory=Yt,this.leadRegisterService=qt,this._isLoading$=new R(!1),this.isLoading$=this._isLoading$.pipe(P(1)),this._isSaved$=new R(!1),this.isSaved$=this._isSaved$.pipe(P(1)),this.isFormDisabled$=V([this.isLoading$,this.isSaved$]).pipe(d(([f,L])=>f||L),k(this.destroy$),P(1)),this.formGroup=this.formBuilder.group({address:[null,this.validatorsFactory.customRequiredValidator("email"),this.validatorsFactory.asyncEmail()],agreement:[!1,this.validatorsFactory.customRequiredValidator("agreement")]}),this.isButtonDisabled$=at(this.platformId)?y(!1):V([this.formGroup.controls.address.valueChanges.pipe(z(this.formGroup.controls.address.value),d(f=>!!f),S()),this.formGroup.controls.address.statusChanges.pipe(z(this.formGroup.controls.address.status),d(f=>f!=="VALID"),S()),this.isLoading$,this.isSaved$]).pipe(d(([f,L,Xt,Zt])=>Xt||Zt||f&&L),S(),k(this.destroy$),P(1))}ngOnInit(){this.watchIfDisableControls()}onSubmit(){this.formGroup.markAllAsTouched(),!this.formGroup.invalid&&(this._isLoading$.next(!0),this.userPreferencesFacade.selectedCity$.pipe(X(1),Z(e=>{let n=this.formGroup.controls.address.value,r=(e==null?void 0:e.name)||ge;return this.newsletterApiService.subscribeNewsletter(n,r)})).subscribe({next:e=>{this.leadRegisterService.register(e),this._isSaved$.next(!0),this._isLoading$.next(!1)},error:({error:e})=>{let n=e==null?void 0:e.fieldErrors;
1n?n.forEach(({field:r,message:B})=>{var x;return(x=this.formGroup.get(r))==null?void 0:x.setErrors({message:B})}):this.formGroup.setErrors({message:this.getValidationMessage("unknown")}),this._isLoading$.next(!1)}}))}getValidationMessage(e){return this.translocoService.translate(`frontendBase.reactiveForms.errors.${e}`)}watchIfDisableControls(){this.isFormDisabled$.pipe(k(this.destroy$)).subscribe(e=>{this.formGroup.setDisabledVisuallyState(e)})}};t.\u0275fac=function(n){return new(n||t)(l(tt),l(lt),l(Rt),l(Vt),l(_t),l(Ft),l(At))},t.\u0275cmp=T({type:t,selectors:[["km-newsletter-section"]],features:[nt],decls:1,vars:1,consts:[["inputRef","kfbPinMeToContainerRef"],[4,"transloco","translocoRead"],[4,"kfbBreakpoint"],[1,"newsletter-section"],[1,"newsletter-section-content"],[1,"newsletter-section-item"],[1,"newsletter-section-item-top-text"],[1,"newsletter-section-item-bottom-text"],[1,"newsletter-form",3,"ngSubmit","formGroup"],["type","email","appearance","enlarged","kfbPinMeToContainerRef","",1,"newsletter-input",3,"shape","transparent","placeholder","formControl"],[1,"newsletter-agreement",3,"formControl"],["label","",1,"newsletter-agreement-content",3,"maxLines"],["class","newsletter-submit",3,"diameter","overlaid","messageEnabled","spinnerEnabled",4,"kfbPinMeToContainer"],[1,"newsletter-errors",3,"formGroup"],[1,"newsletter-submit",3,"diameter","overlaid","messageEnabled","spinnerEnabled"],["type","submit","shape","oval",3,"disabled"]],template:function(n,r){n&1&&g(0,de,2,0,"ng-container",1),n&2&&m("translocoRead","newsletter")},dependencies:[Ot,D,vt,Nt,Dt,ht,dt,gt,Ct,ut,Tt,St,Et,kt,xt,ct],styles:["[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%]{padding-top:4em;padding-bottom:4em;background-blend-mode:normal;background:#fdca09;background:radial-gradient(circle at 10% 0%,#f9573d80,#fff0 20%),radial-gradient(circle at 60% 75%,#fdca09 15%,#ffb0ce 45%);padding-left:calc(calc(var(--km-document-bleed) * 1.4) + 0em);padding-right:calc(calc(var(--km-document-bleed) * 1.4) + 0em)}@media (max-width: 768px){[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%]{background:radial-gradient(circle at top left,#f9573d80,#fff0 30%),radial-gradient(circle at bottom right,#fdca09,#ffb0ce 70%)}}[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%] .newsletter-section-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;row-gap:2em;justify-content:space-between}@media (max-width: 768px){[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%] .newsletter-section-content[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%] .newsletter-section-content[_ngcontent-%COMP%] .newsletter-section-item[_ngcontent-%COMP%]{flex:1 1 0}[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%] .newsletter-section-content[_ngcontent-%COMP%] .newsletter-section-item[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:140%;letter-spacing:.2px;margin:0;white-space:pre-line}[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%] .newsletter-section-content[_ngcontent-%COMP%] .newsletter-section-item[_ngcontent-%COMP%] p.newsletter-section-item-top-text[_ngcontent-%COMP%]{font-weight:900;font-size:2.25em}[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%] .newsletter-section-content[_ngcontent-%COMP%] .newsletter-section-item[_ngcontent-%COMP%] p.newsletter-section-item-bottom-text[_ngcontent-%COMP%]{font-size:1.175em;font-weight:400}[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%] .newsletter-section-content[_ngcontent-%COMP%] .newsletter-form[_ngcontent-%COMP%] .newsletter-input[_ngcontent-%COMP%]{--kfb-text-form-field-input-width: 80%;--kfb-text-form-field-input-right-padding: 1.1em;margin:0}@media (max-width: 990px){[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%] .newsletter-section-content[_ngcontent-%COMP%] .newsletter-form[_ngcontent-%COMP%] .newsletter-input[_ngcontent-%COMP%]{--kfb-text-form-field-input-right-padding: 1.5em}}@media (max-width: 768px){[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%] .newsletter-section-content[_ngcontent-%COMP%] .newsletter-form[_ngcontent-%COMP%] .newsletter-input[_ngcontent-%COMP%]{--kfb-text-form-field-input-width: 100%;--kfb-text-form-field-input-right-padding: 0}}[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%] .newsletter-section-content[_ngcontent-%COMP%] .newsletter-form[_ngcontent-%COMP%] .newsletter-agreement[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%] .newsletter-section-content[_ngcontent-%COMP%] .newsletter-form[_ngcontent-%COMP%] .newsletter-agreement-content[_ngcontent-%COMP%]{font-size:.8rem;line-height:1.2em}[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%] .newsletter-section-content[_ngcontent-%COMP%] .newsletter-form[_ngcontent-%COMP%] .newsletter-submit[_ngcontent-%COMP%]{font-size:1.25em}@media (max-width: 768px){[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%] .newsletter-section-content[_ngcontent-%COMP%] .newsletter-form[_ngcontent-%COMP%] .newsletter-submit[_ngcontent-%COMP%]{display:flex;margin-top:2em}}[_nghost-%COMP%] .newsletter-section[_ngcontent-%COMP%] .newsletter-section-content[_ngcontent-%COMP%] .newsletter-form[_ngcontent-%COMP%] .newsletter-errors[_ngcontent-%COMP%]{color:var(--kfb-theme-warning-500, initial);line-height:3em}"],changeDetection:0});let o=t;return o}
1)()});var tn,he=M(()=>{"use strict";$();G();Kt();_();tn=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=E({type:t}),t.\u0275inj=I({imports:[bt,F,N.forChild(),wt,Gt,$t,It,yt]});let o=t;return o})()});function Ce(o,t){if(o&1&&(O(0),c(1,"div",1)(2,"div",2)(3,"h4",3),p(4),a(),c(5,"h4"),p(6),a()(),c(7,"div",4)(8,"p",5),p(9),a(),c(10,"p")(11,"a",6),p(12),C(13,"phone"),a()()()(),b()),o&2){let s=t.$implicit;i(4),v(s("phoneNumber.contactInvitation.topText")),i(2),v(s("phoneNumber.contactInvitation.bottomText")),i(3),v(s("phoneNumber.info.topText")),i(2),rt("href","tel:",s("kicket-phone"),"",et),i(),v(u(13,6,s("kicket-phone")))}}var on,Ut=M(()=>{"use strict";_();ft();Wt();on=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=T({type:t,selectors:[["km-phone-number-section"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"phone-number-section"],[1,"phone-number-section-contact-invitation"],[1,"phone-number-section-contact-invitation-top-text"],[1,"phone-number-section-info"],[1,"phone-number-section-info-top-text"],[3,"href"]],template:function(n,r){n&1&&g(0,Ce,14,8,"ng-container",0)},dependencies:[D,Mt],styles:["[_nghost-%COMP%] .phone-number-section[_ngcontent-%COMP%]{padding-left:calc(calc(var(--km-document-bleed) * 1.4) + 0em);padding-right:calc(calc(var(--km-document-bleed) * 1.4) + 0em);display:flex;justify-content:space-between;flex-direction:row;margin-bottom:4em;margin-top:2em;row-gap:2em}@media (max-width: 768px){[_nghost-%COMP%] .phone-number-section[_ngcontent-%COMP%]{flex-direction:column}}[_nghost-%COMP%] .phone-number-section-contact-invitation[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .phone-number-section-contact-invitation[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], [_nghost-%COMP%] .phone-number-section-contact-invitation[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], [_nghost-%COMP%] .phone-number-section-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .phone-number-section-info[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], [_nghost-%COMP%] .phone-number-section-info[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{line-height:140%;letter-spacing:.2px;margin:0;white-space:pre-line}[_nghost-%COMP%] .phone-number-section-contact-invitation[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:not(.phone-number-section-info-top-text), [_nghost-%COMP%] .phone-number-section-contact-invitation[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], [_nghost-%COMP%] .phone-number-section-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:not(.phone-number-section-info-top-text), [_nghost-%COMP%] .phone-number-section-info[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:900;font-size:2.25em}[_nghost-%COMP%] .phone-number-section-contact-invitation[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:not(.phone-number-section-info-top-text) a[_ngcontent-%COMP%], [_nghost-%COMP%] .phone-number-section-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:not(.phone-number-section-info-top-text) a[_ngcontent-%COMP%]{text-decoration:none;color:inherit}[_nghost-%COMP%] .phone-number-section-contact-invitation[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:not(.phone-number-section-info-top-text) a[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] .phone-number-section-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:not(.phone-number-section-info-top-text) a[_ngcontent-%COMP%]:hover{opacity:.7}[_nghost-%COMP%] .phone-number-section-contact-invitation[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], [_nghost-%COMP%] .phone-number-section-info[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:400}[_nghost-%COMP%] .phone-number-section-contact-invitation[_ngcontent-%COMP%] .phone-number-section-contact-invitation-top-text[_ngcontent-%COMP%]{font-weight:400;font-size:1.17em}[_nghost-%COMP%] .phone-number-section-info[_ngcontent-%COMP%]{text-align:right}@media (max-width: 768px){[_nghost-%COMP%] .phone-number-section-info[_ngcontent-%COMP%]{text-align:left}}[_nghost-%COMP%] .phone-number-section-info-top-text[_ngcontent-%COMP%]{font-weight:400;font-size:1.175em}"]});let o=t;return o}
1)()});var pn,ue=M(()=>{"use strict";$();G();Ut();_();pn=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=E({type:t}),t.\u0275inj=I({imports:[N.forChild(),F,Pt]});let o=t;return o})()});var un,_e=M(()=>{"use strict";Jt();A();H();_();A();un=(()=>{let t=class t{constructor(e,n){this.cityApiService=e,this.geolocationApiService=n,this.log=mt.getLogger("UserGeolocationService")}findNearestCity(){return this.geolocationApiService.getCoordinatesByIP().pipe(Y(e=>this.cityApiService.getNearestCity(e)),d(e=>e.distance>t.MAX_CITY_DISTANCE_KM?null:e.city),q(e=>(this.log.warn("Geolocation failed",{error:e}),y(null))))}};t.MAX_CITY_DISTANCE_KM=100,t.\u0275fac=function(n){return new(n||t)(K(Bt),K(Lt))},t.\u0275prov=J({token:t,factory:t.\u0275fac});let o=t;return o})()});export{un as a,_e as b,on as c,Ut as d,Xe as e,Kt as f,tn as g,he as h,pn as i,ue as j};
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.