"use strict";angular.module("bluelyticsFrontendApp",["ngAnimate","ngCookies","ngResource","ngSanitize","ui.select","n3-line-chart","underscore","ui.bootstrap-slider","mgcrea.ngStrap","angulartics","angulartics.google.analytics","pascalprecht.translate","ngMaterial","ui.router"]).config(["$stateProvider","$urlRouterProvider",function(t,e){e.otherwise("/"),t.state("rates",{url:"/",templateUrl:"views/main.html",controller:"MainCtrl"}).state("about",{url:"/about",templateUrl:"views/about.html",controller:"AboutCtrl"}).state("calculator",{url:"/calculator",templateUrl:"views/calculator.html",controller:"CalculatorCtrl"}).state("evolution",{url:"/evolution",templateUrl:"views/evolution.html",controller:"EvolutionCtrl"}).state("gap",{url:"/gap",templateUrl:"views/gap.html",controller:"GapCtrl"}).state("api",{url:"/api",templateUrl:"views/api.html",controller:"ApiCtrl"}).state("analysis",{url:"/analysis",templateUrl:"views/analysis.html",controller:"AnalysisCtrl"})}]).config(["$tooltipProvider",function(t){angular.extend(t.defaults,{html:!0})}]).config(["$translateProvider",function(t){t.useStaticFilesLoader({prefix:"locale/",suffix:".json"}).registerAvailableLanguageKeys(["es_AR","en_US"],{"en_*":"en_US","es_*":"es_AR",en:"en_US",es:"es_AR"}).determinePreferredLanguage().useLocalStorage().fallbackLanguage(["es_AR","en_US"])}]).config(["$mdThemingProvider",function(t){t.theme("default").primaryPalette("light-blue").accentPalette("amber")}]).config(["$mdIconProvider",function(t){t.iconSet("action","../images/material-design/action-icons.svg",24).iconSet("alert","../images/material-design/alert-icons.svg",24).iconSet("av","../images/material-design/av-icons.svg",24).iconSet("communication","../images/material-design/communication-icons.svg",24).iconSet("content","../images/material-design/content-icons.svg",24).iconSet("device","../images/material-design/device-icons.svg",24).iconSet("editor","../images/material-design/editor-icons.svg",24).iconSet("file","../images/material-design/file-icons.svg",24).iconSet("hardware","../images/material-design/hardware-icons.svg",24).iconSet("icons","../images/material-design/icons-icons.svg",24).iconSet("image","../images/material-design/image-icons.svg",24).iconSet("maps","../images/material-design/maps-icons.svg",24).iconSet("navigation","../images/material-design/navigation-icons.svg",24).iconSet("notification","../images/material-design/notification-icons.svg",24).iconSet("social","../images/material-design/social-icons.svg",24).iconSet("toggle","../images/material-design/toggle-icons.svg",24)}]),angular.module("bluelyticsFrontendApp").controller("MainCtrl",["$scope","$location","blueAPI",function(e,t,a){e.loading=!0,e.selectedIndex=1,a.extended_last_price(function(t){e.loading=!1,e.dolares=t,delete e.dolares.last_update,delete e.dolares.oficial_euro,delete e.dolares.blue_euro}),e.esOficial=function(t){return-1

ABOUT.TITLE

ABOUT.DESC_1

ABOUT.DESC_2

ABOUT.DESC_3

ABOUT.DESC_4

ABOUT.DESC_5

https://github.com/Bluelytics

'),t.put("views/analysis.html",'

ANALYSIS.TITLE

ANALYSIS.DESCRIPTION

{{\'ANALYSIS.VARIABLES.\' + field | translate}}
COMMON.SLIDER '),t.put("views/api.html",'

API.TITLE

API.WARN

API.DESCRIPTION

API.V2

API.LAST_PRICE_V2

https://api.bluelytics.com.ar/v2/latest

API.PARAMETERS

API.PARAMETERS_TEXT

API.FORMAT_TEXT

last_update API.LATEST_API.LAST_UPDATE
oficial
value_buy API.LATEST_API.OFICIAL.VALUE_BUY
value_avg API.LATEST_API.OFICIAL.VALUE_AVG
value_sell API.LATEST_API.OFICIAL.VALUE_SELL
oficial_euro
value_buy API.LATEST_API.OFICIAL_EURO.VALUE_BUY
value_avg API.LATEST_API.OFICIAL_EURO.VALUE_AVG
value_sell API.LATEST_API.OFICIAL_EURO.VALUE_SELL
blue
value_buy API.LATEST_API.BLUE.VALUE_BUY
value_avg API.LATEST_API.BLUE.VALUE_AVG
value_sell API.LATEST_API.BLUE.VALUE_SELL
blue_euro
value_buy API.LATEST_API.BLUE_EURO.VALUE_BUY
value_avg API.LATEST_API.BLUE_EURO.VALUE_AVG
value_sell API.LATEST_API.BLUE_EURO.VALUE_SELL

API.HISTORICAL_PRICE_V2

https://api.bluelytics.com.ar/v2/historical?day=YYYY-MM-DD

API.FORMAT_TEXT

oficial
value_buy API.LATEST_API.OFICIAL.VALUE_BUY
value_avg API.LATEST_API.OFICIAL.VALUE_AVG
value_sell API.LATEST_API.OFICIAL.VALUE_SELL
blue
value_buy API.LATEST_API.BLUE.VALUE_BUY
value_avg API.LATEST_API.BLUE.VALUE_AVG
value_sell API.LATEST_API.BLUE.VALUE_SELL

API.JSON_EVOLUTION_API

https://api.bluelytics.com.ar/v2/evolution.json

API.EVOLUTION.DAYS_PARAM

API.ARRAY_ITEMS
day API.EVOLUTION.DAY
type API.EVOLUTION.TYPE
value_sell API.EVOLUTION.SELL
value_buy API.EVOLUTION.BUY

API.CSV_EVOLUTION_API

https://api.bluelytics.com.ar/v2/evolution.csv

API.EVOLUTION.DAYS_PARAM

API.OLD_API

API.LAST_PRICE

https://api.bluelytics.com.ar/json/last_price

API.BINDINGS

API.BINDINGS_DESCRIPTION

API.BINDINGS_TABLE.LANGUAGE API.BINDINGS_TABLE.URL
Laravel (PHP) (API v1) fedeisas/laravel-dolar-blue
NodeJS (Javascript) (API v1) matiu/dolar-blue
Odoo (Python) (API v1) morrillo/currency_usd_update
'),t.put("views/calculator.html",'

CALCULATOR.TITLE

{{$select.selected.name}}
{{moneda.code}}

{{valor_dolar | number:2}} ARS ≈ 1 USD

1 USD ≈ {{moneda.selected.value |number:2}} {{moneda.selected.code}}

'),t.put("views/evolution.html",'

EVOLUTION.TITLE

COMMON.SLIDER '),t.put("views/gap.html",'

GAP.TITLE

COMMON.DOLARES.oficial vs COMMON.DOLARES.blue
GAP.ABS_VALUE AR$ {{valorCompare * gap(valorDolarOficial, valorDolarBlue) |number:2}} GAP.PERC_VALUE ({{ percFormat(percGap(valorDolarOficial, valorDolarBlue)) }})

GAP.EVOLUTION_TITLE

COMMON.SLIDER
'),t.put("views/main.html",'

RATE.TITLE

RATE.BID
{{dolar.value_buy | number:2}}
RATE.AVG
{{dolar.value_avg | number:2}}
RATE.ASK
{{dname == \'oficial\' ? dolar.value_sell * 1.75 : dolar.value_sell | number:2}} RATE.TAX_PAIS (+75%)
')}]),angular.module("bluelyticsFrontendApp").controller("AnalysisCtrl",["$scope","blueAPI","$window","$translate","$rootScope","_",function(l,t,a,n,r,i){l.loading=!0;var o=d3.time.format("%d/%m/%Y"),d=d3.time.format("%Y-%m-%d");l.tickX=function(t){return o(new Date(t))},l.tickY=function(t){return d3.format(".02f")(t)},l.filter={},l.filter.maxValue=300,l.filter.value=[l.filter.maxValue-l.filter.maxValue/3,l.filter.maxValue],l.filterData=function(){var t=l.data.length/l.filter.maxValue,e=Math.floor(l.filter.value[0]*t),a=Math.ceil(l.filter.value[1]*t);l.filteredData=l.data.slice(e,a+1)},l.fields=["CER","CambioRef","BADLAR","TasasInteres30Dias","TasasInteresEntrePrivadas","PrestamosAPrivados","OtrosDepositos","APlazo","CajasAhorro","CuentasCorrientes","DepositosFinancieras","LEBAC","DepositosBCRA","EfectivoFinanciero","BilletesPublico","Circulacion","BaseMonetaria","Asistencia","Reservas","DolarImplicito"],l.activeField="",l.ChooseField=function(t){l.options={axes:{x:{key:"date",type:"date",labelFunction:function(t){return o(t)}},y:{type:"linear"}},series:[{y:t,color:"steelblue",axis:"y",type:"line",thickness:"1px",label:t}],tooltip:{mode:"scrubber",formatter:function(t,e){return o(t)+" : "+e.toFixed(2)}},stacks:[],lineMode:"linear",tension:.7,drawLegend:!0,drawDots:!1,columnsHGap:5};function e(){n("ANALYSIS.VARIABLES."+t).then(function(t){l.options.series[0].label=t})}e(),r.$on("$translateChangeSuccess",function(){e()}),l.activeField=t},t.analysis_data.query({},function(t){l.loading=!1;var e=t;a.innerWidth<768&&60