PageSourceSearch

https://jabka.to/chunk-BGZGCZQJ.js

js jabka.to collected 2026-10-09 04:48:03 UTC 9,142 bytes, 4 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a11688-774b-7191-941f-322ec7ad465c")}catch(e){}}();import{H as h,X as Y,Y as Z,Z as G,ha as W,o as H,s as f,t as d}from"./chunk-SGEZ7W2G.js";import{Ab as k,Ba as g,Bb as R,Ea as S,Eb as A,G as P,Gc as $,Hc as T,Ia as y,Ic as F,La as N,Y as K,ca as C,fa as j,ha as o,he as U,k as O,ld as m,md as E,ud as a,yb as I}from"./chunk-APCEHZGY.js";import{g as s}from"./chunk-CDIYVHGL.js";s();s();var q=(()=>{class i extends W{getRates(){return this.get("/cdn/currencies/rates.json",{},{skipAuth:!0,serverCache:{prefix:"currencies"}})}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=N(i)))(r||i)}})()}static{this.\u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();s();var L={AED:"DH",ARS:"$",AUD:"A$",BGN:"\u043B\u0432",BRL:"R$",BTC:"\u20BF",BYN:"Br",CAD:"C$",CHF:"\u20A3",CNY:" \xA5",CZK:"K\u010D",DKK:"kr",EUR:"\u20AC",GBP:"\xA3",HKD:"HK$",HRK:"Kn",HUF:"\u0192",ILS:"\u20AA",JPY:"\xA5",KES:"KSh",KZT:"\u20B8",MDL:"L",MXN:"$",NOK:"kr",NZD:"$",PLN:"z\u0142",QAR:"QR",RON:"lei",RUB:"\u20BD",SAR:"SR",SEK:"kr",SGD:"S$",THB:"\u0E3F",TRY:"\u20BA",UAH:"\u20B4",UGX:"Ush",USD:"$",UZS:"U",ZAR:"R"},x={UAH:{locales:["uk","ru-ua"],countryCodes:["UA"]},RUB:{locales:[],countryCodes:["RU"]},PLN:{locales:["pl"],countryCodes:["PL"]},BRL:{locales:["pt_br"],countryCodes:["BR"]},SEK:{locales:["sv","se"],countryCodes:["SE"]}};function J(i,l,t){if(l!==null){for(let e in x)if(x[e].countryCodes.includes(l))return e}if(i!==null)for(let e in x){let r=x[e];for(let n in r.locales){let u=r.locales[n];if(i.startsWith(u))return e}}return t}function M(i){return i%1===0}function _(i,l,t=2){let e=Number(i)*l;return Number(e.toFixed(t))}function Q(i,l,t=2){let e=_(i,l),r,n;do n=_(e,1/l,t),r=i>0&&n<i,r&&(e=Number((e+.01).toFixed(t)));while(r);return{amount:e,fixed:n}}s();var b=new j("CONVERTER_SETTINGS");var X=60*1e3,v=(()=>{class i{constructor(){this.currenciesService=o(q),this.settings=o(b),this.base=g(this.settings.baseCurrency),this.updated=g(null),this.rates=g({[this.settings.baseCurrency]:1}),this.userCurrency=G("currency",this.settings.defaultCurrency),this.chipClasses=m(()=>`currency currency_${this.userCurrency()}`),this.currencyGuessed=G("curGuess",!1),this.localStorageEffect=Z("currencies",{updated:this.updated,rates:this.rates}),!this.isUpdated(this.updated())&&this.refreshRates().subscribe()}setUserCurrency(t){this.userCurrency.set(t)}guessUserCurrency(t){let e=this.settings.baseCurrency;if(this.currencyGuessed()||this.userCurrency()!==e)return;let r=J(null,t,e);this.setUserCurrency(r),this.currencyGuessed.set(!0)}getCurrencySymbol(t){return L[t]||""}refreshRates(){return this.currenciesService.getRates().pipe(K(t=>{let e={};for(let r in t.rates)e[r]=Number(t.rates[r]);this.base.set(t.base),this.updated.set(Date.now()),this.rates.set(e)}),P(()=>O))}isUpdated(t){return t===null?!1:Date.now()-t<X}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();s();s();var D=(()=>{class i{constructor(){this.currenciesState=o(v),this.ratesCache={}}convert(t,e=null,r=null,n=2){return e=e||this.currenciesState.base(),r=r||this.currenciesState.userCurrency(),Number.isNaN(t)?null:t===0||e===r||(t*=this.getRate(e,r),n===null)?String(t):t.toFixed(n)}getRate(t,e){let r=`${t}_${e}`;return this.ratesCache[r]||(this.ratesCache[r]=this.doGetRate(t,e)),this.ratesCache[r]}doGetRate(t,e){let r=this.currenciesState.base(),n=this.currenciesState.rates();return t=t.toUpperCase(),e=e.toUpperCase(),t===r?n[e]:e===r?1/n[t]:n[e]*(1/n[t])}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();s();var V=(()=>{class i{constructor(){this.window=o(Y),this.currentFormattedValue=g(""),this.previousValue=0,this.isAnimating=!1,this.firstChange=!0}cleanup(){this.window&&H(this.rafId)&&this.window.cancelAnimationFrame(this.rafId),this.isAnimating=!1,this.startTime=void 0,this.rafId=void 0}animatedRender(t,e,r){if(!this.isAnimating)return;let n=this.calculateCurrentValue(t,e);if(this.previousValue!==n&&(this.previousValue=n,this.updateCurrentFormattedValue(n,r)),n===t)return this.cleanup();this.rafId=this.window.requestAnimationFrame(()=>this.animatedRender(t,e,r))}calculateCurrentValue(t,e){this.startTime===void 0&&(this.startTime=Date.now());let r=Date.now(),n;return r-this.startTime>=e?n=t:n=this.previousValue+(t-this.previousValue)*((r-this.startTime)/e),n}updateCurrentFormattedValue(t,e){let r=h(t,e);this.currentFormattedValue.set(r)}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275dir=k({type:i})}}return i})();s();var w={BTC:"1.0-8"},B="1.0-2",z=[{currency:"USD"},{currency:"EUR"},{currency:"RUB",autodetectCountries:["RU","KZ","BY","TJ","UZ","KG"]},{currency:"UAH",hideFrom:["RU"],autodetectCountries:["UA"]}];var ee=(()=>{class i extends V{constructor(){super(...arguments),this.isServer=U(o(S)),this.converter=o(D),this.currenciesState=o(v),this.settings=o(b),this.convert=a.required(),this.convertFrom=a(),this.convertTo=a(),this.digitsInfo=a(),this.convertClassName=a("currency"),this.convertAnimation=a(!1),this.animationDuration=a(550),this.convertedValue=m(()=>{let t=this.convert();if(!d(t)||Number.isNaN(t))return null;let e=this.convertFrom()||this.currenciesState.base(),r=this.resolvedConvertTo();return this.doConvert(f(t),e,r)}),this.resolvedConvertTo=m(()=>this.convertTo()||this.currenciesState.userCurrency()),this.resolvedDigitsInfo=m(()=>{let t=this.resolvedConvertTo();return this.digitsInfo()||w[t]||B}),this.enableAnimation=m(()=>
1this.isServer?!1:this.convertAnimation()&&!this.settings.animationsDisabled()),this.classList=m(()=>{let t=this.convertClassName();return t?[t,"currency_anim",`${t}_${this.resolvedConvertTo()}`]:null}),this.updateCurrentValueEffect=y(t=>{let e=this.convertedValue();if(d(e)){let r=this.enableAnimation(),n=this.animationDuration(),u=this.resolvedDigitsInfo();E(()=>{e=f(e),r&&!this.firstChange?(M(e)&&(u="1.0-0"),this.isAnimating=!0,this.animatedRender(e,n,u)):(this.previousValue=e,this.updateCurrentFormattedValue(e,u)),this.firstChange=!1})}t(()=>this.cleanup())})}doConvert(t,e,r){let n;return e!==r?n=Number(this.converter.convert(t,e,r,null)):n=t,Number.isNaN(n)?null:n}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=N(i)))(r||i)}})()}static{this.\u0275cmp=I({type:i,selectors:[["","convert",""]],hostVars:2,hostBindings:function(e,r){e&2&&$(r.classList())},inputs:{convert:[1,"convert"],convertFrom:[1,"convertFrom"],convertTo:[1,"convertTo"],digitsInfo:[1,"digitsInfo"],convertClassName:[1,"convertClassName"],convertAnimation:[1,"convertAnimation"],animationDuration:[1,"animationDuration"]},features:[A],decls:1,vars:1,template:function(e,r){e&1&&T(0),e&2&&F(r.currentFormattedValue())},encapsulation:2})}}return i})();s();var te=(()=>{class i{transform(t,e){if(!d(t))return"";try{let r=f(t);return h(r,e)}catch(r){throw new Error(r?.message||"Undefined format number error")}}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275pipe=R({name:"number",type:i,pure:!0})}}return i})();s();var re=(()=>{class i{constructor(){this.converter=o(D),this.currenciesState=o(v)}transform(t,e,r,n){if(!d(t)||Number.isNaN(t))return"";e=e||this.currenciesState.base(),r=r||this.currenciesState.userCurrency(),n=n||w[r]||B;let u=this.convert(Number(t),e,r);return u?h(Number(u),n):""}convert(t,e,r){let n;return e!==r?n=this.converter.convert(t,e,r,null):n=String(t),Number.isNaN(n)?null:n}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275pipe=R({name:"convert",type:i,pure:!0})}}return i})();s();s();var ie="1.0-2",ne=(()=>{class i extends V{constructor(){super(...arguments),this.isServer=U(o(S)),this.number=a.required(),this.digitsInfo=a(ie),this.numberAnimation=a(!1),this.animationDuration=a(550),this.enableAnimation=m(()=>this.isServer?!1:this.numberAnimation()),this.updateCurrentValueEffect=y(t=>{let e=this.number();if(d(e)){let r=this.enableAnimation(),n=this.animationDuration(),u=this.digitsInfo();E(()=>{e=f(e),M(e)&&(u="1.0-0"),r&&!this.firstChange?(this.isAnimating=!0,this.animatedRender(e,n,u)):(this.previousValue=e,this.updateCurrentFormattedValue(e,u)),this.firstChange=!1})}t(()=>this.cleanup())})}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=N(i)))(r||i)}})()}static{this.\u0275cmp=I({type:i,selectors:[["","number",""]],inputs:{number:[1,"number"],digitsInfo:[1,"digitsInfo"],numberAnimation:[1,"numberAnimation"],animationDuration:[1,"animationDuration"]},features:[A],decls:1,vars:1,template:function(e,r){e&1&&T(0),e&2&&F(r.currentFormattedValue())},encapsulation:2})}}return i})();s();export{L as a,_ as b,Q as c,b as d,v as e,D as f,z as g,ee as h,ne as i,te as j,re as k};
2/**i18n:35324ac9750afe877a35ede70b5239db5baa2521feface060d53af2bed6844e5*/
3
4//# chunkId=01a11688-774b-7191-941f-322ec7ad465c

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.