1import{k as l}from"./chunk-C5QAKFHD.js";import{c as z,f as H,k as U}from"./chunk-3YLIN2KC.js";import{E as F}from"./chunk-EMLC4L66.js";import{B as P,Mc as d,Nc as v,Oc as R,U as C,X as T,_ as D,b as V,c as I,ea as a,g as O,j as x,kb as M,la as E,lb as _,n as W,ta as A,va as S}from"./chunk-OF7YPDCR.js";import{a as r,b as y}from"./chunk-TSRGIXR5.js";function L(e){let t=v(()=>e());return et(t)?new Proxy(e,{get(n,o){return o in t?(M(n[o])||Object.defineProperty(n,o,{value:d(()=>n()[o]),configurable:!0}),L(n[o])):n[o]}}):e}var tt=[WeakSet,WeakMap,Promise,Date,Error,RegExp,ArrayBuffer,DataView,Function];function et(e){if(e===null||typeof e!="object"||nt(e))return!1;let t=Object.getPrototypeOf(e);if(t===Object.prototype)return!0;for(;t&&t!==Object.prototype;){if(tt.includes(t.constructor))return!1;t=Object.getPrototypeOf(t)}return t===Object.prototype}function nt(e){return typeof e?.[Symbol.iterator]=="function"}var ot=new WeakMap,c=Symbol("STATE_SOURCE");function m(e,...t){e[c].update(n=>t.reduce((o,s)=>r(r({},o),typeof s=="function"?s(o):s),n)),st(e)}function it(e){return e[c]()}function rt(e){return ot.get(e[c])||[]}function st(e){let t=rt(e);for(let n of t){let o=v(()=>it(e));n(o)}}function N(...e){let t=[...e],n=typeof t[0]=="function"?{}:t.shift(),o=t;return(()=>{class i{constructor(){let f=o.reduce((k,X)=>X(k),at()),{stateSignals:g,props:h,methods:b,hooks:p}=f,w=r(r(r({},g),h),b);this[c]=f[c];for(let k of Reflect.ownKeys(w))this[k]=w[k];let{onInit:K,onDestroy:B}=p;K&&K(),B&&a(S).onDestroy(B)}static \u0275fac=function(g){return new(g||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:n.providedIn||null})}return i})()}function at(){return{[c]:_({}),stateSignals:{},props:{},methods:{},hooks:{}}}function ct(e){return t=>{let n=e(r(r(r({[c]:t[c]},t.stateSignals),t.props),t.methods));return Reflect.ownKeys(n),y(r({},t),{props:r(r({},t.props),n)})}}function Y(e){return ct(e)}function q(e){return t=>{let n=e(r(r(r({[c]:t[c]},t.stateSignals),t.props),t.methods));return Reflect.ownKeys(n),y(r({},t),{methods:r(r({},t.methods),n)})}}function $(e){return t=>{let n=typeof e=="function"?e():e,o=Reflect.ownKeys(n);t[c].update(i=>r(r({},i),n));let s=o.reduce((i,u)=>{let f=d(()=>t[c]()[u]);return y(r({},i),{[u]:L(f)})},{});return y(r({},t),{stateSignals:r(r({},t.stateSignals),s)})}}function j(e,t){t?.injector||E(j);let n=t?.injector??a(A),o=new O,s=e(o).subscribe();n.get(S).onDestroy(()=>s.unsubscribe());let i=(u,f)=>{if(ut(u))return o.next(u),{destroy:V};let g=dt(),h=f?.injector??g??n;if(M(u)){let p=R(()=>{let w=u();v(()=>o.next(w))},{injector:h});return s.add({unsubscribe:()=>p.destroy()}),p}let b=u.subscribe(p=>o.next(p));return s.add(b),h!==n&&h.get(S).onDestroy(()=>b.unsubscribe()),{destroy:()=>b.unsubscribe()}};return i.destroy=s.unsubscribe.bind(s),i}function ut(e){return!M(e)&&!W(e)}function dt(){try{return a(A)}catch{return}}var G={productsType:[{name:"Konto osobiste",value:"personalAccount",icon:"/svg/user-circle.svg"},{name:"Konto osobiste premium",value:"personalVipAccount",icon:"/svg/diamond.svg"},{name:"Konto firmowe",value:"businessAccount",icon:"/svg/briefcase.svg"},{name:"Konto oszcz\u0119dno\u015Bciowe",value:"savingsAccount",icon:"/svg/pig-money.svg"},{name:"Lokata",value:"deposit",icon:"/svg/moneybag.svg"},{name:"Karta kredytowa",value:"creditCard",icon:"/svg/credit-card.svg"}],banks:l.Empty([]),statistics:l.Empty(null),isMobileVersion:!1};var J=N({providedIn:"root"},$(G),Y(({productsType:e,banks:t,statistics:n,isMobileVersion:o})=>({productsType:d(()=>e()),banks:d(()=>t().data||[]),statistics:d(()=>n().data),isMobileVersion:d(()=>o())})),q((e,t=a(z),n=a(H),o=a(U),s=a(F))=>({loadBanks:j(I(C(()=>t.getBanks().pipe(T(i=>m(e,{banks:l.Loaded(i)})),P(()=>(m(e,i=>({banks:l.Error(i.banks.data??[],"Nie udalo sie pobrac listy bankow")})),x)))))),loadStatistics:j(I(C(()=>o.getStatistics().pipe(T(i=>m(e,{statistics:l.Loaded(i)})),P(()=>(m(e,i=>({statistics:l.Error(i.statistics.data,"Nie udalo sie pobrac statystyk")})),x)))))),sendContactMessage:j(I(C(i=>n.safeFeedback(i).pipe(T(()=>s.open("Wiadomo\u015B\u0107 zosta\u0142a wys\u0142ana poprawnie","OK")),P(()=>(s.open("Nie uda\u0142o si\u0119 wys\u0142a\u0107 wiadomo\u015Bci. Spr\xF3buj ponownie.","OK"),x)))))),setIsMobileVersion(i){m(e,{isMobileVersion:i})}})));var Q=class e{productTypes;banks;statistics;isMobileVersion;_mainPageStore=a(J);constructor(){this.productTypes=this._mainPageStore.productsType,this.banks=this._mainPageStore.banks,this.statistics=this._mainPageStore.statistics,this.isMobileVersion=this._mainPageStore.isMobileVersion}fetchBanks(){this._mainPageStore.loadBanks()}fetchStatistics(){this._mainPageStore.loadStatistics()}sendContactMessage(t){this._mainPageStore.sendContactMessage(t)}setIsMobileVersion(t){this._mainPageStore.setIsMobileVersion(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})};export{m as a,N as b,Y as c,q as d,$ as e,j as f,Q as g};
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.