text: (function(t){function e(e){for(var a,r,s=e[0],u=e[1],c=e[2],m=0,p=[];m<s.length;m++)r=s[m],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&p.push(i[r][0]),i[r]=0;for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(t[a]=u[a]);l&&l(e);while(p.length)p.shift()();return o.push.apply(o,c||[]),n()}function n(){for(var t,e=0;e<o.length;e++){for(var n=o[e],a=!0,s=1;s<n.length;s++){var u=n[s];0!==i[u]&&(a=!1)}a&&(o.splice(e--,1),t=r(r.s=n[0]))}return t}var a={},i={app:0},o=[];function r(e){if(a[e])return a[e].exports;var n=a[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=t,r.c=a,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],u=s.push.bind(s);s.push=e,s=s.slice();for(var c=0;c<s.length;c++)e(s[c]);var l=u;o.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"0074":function(t,e,n){},"034f":function(t,e,n){"use strict";n("85ec")},"1f10":function(t,e,n){},"2b57":function(t,e,n){"use strict";n("623f")},"56d7":function(t,e,n){"use strict";n.r(e);n("e260"),n("e6cf"),n("cca6"),n("a79d");var a=n("2b0e"),i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("Header",{staticClass:"pageHeader"}),n("Main",{staticClass:"main"}),n("Footer")],1)},o=[],r=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},s=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"grayBg"},[n("div",{staticClass:"socialMedia"},[n("a",{attrs:{href:"https://github.com/TChinasso?tab=repositories",target:"_blank"}},[n("i",{staticClass:"fab fa-github zoom",attrs:{id:"gitHub"}})]),n("a",{attrs:{href:"https://www.linkedin.com/in/thiago-felipe-84a458181/",target:"_blank"}},[n("i",{staticClass:"fab fa-linkedin zoom",attrs:{id:"linkedIn"}})])])])}],u={},c=u,l=(n("d73d"),n("2877")),m=Object(l["a"])(c,r,s,!1,null,"882674be",null),p=m.exports,d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{staticClass:"main"},[a("header",{staticClass:"mainHeader"},[a("p",[t._v("date of rates "),a("strong",[t._v(t._s(t.siglas.date))])])]),a("div",{staticClass:"mainLeftPannel"},[a("div",{staticClass:"space"},[a("div",{staticClass:"field"},[a("div",{staticClass:"control"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.moneyIn,expression:"moneyIn"}],staticClass:"input is-medium ",attrs:{type:"",id:"inputSize"},domProps:{value:t.moneyIn},on:{keyup:t.calculateMoneyOut,keypress:t.onlyNumber,input:function(e){e.target.composing||(t.moneyIn=e.target.value)}}}),a("div",{staticClass:"select is-medium",staticStyle:{width:"45%"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.moneyInOption,expression:"moneyInOption"}],attrs:{name:"moneyIn",id:"moneyIn"},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.moneyInOption=e.target.multiple?n:n[0]},t.calculateMoneyOut]}},t._l(t.siglas.rates,(function(e,n,i){return a("option",{key:i,attrs:{moneyInOption:e,moneyInSigla:n},domProps:{value:e}},[t._v(" "+t._s(t.currencyNames[""+n].name)+" ")])})),0)])])])]),a("div",{staticClass:"space"},[a("div",{staticClass:"field"},[a("div",{staticClass:"control"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.moneyOut,expression:"moneyOut"}],staticClass:"input is-medium",attrs:{type:"text",id:"inputSize2"},domProps:{value:t.moneyOut},on:{keyup:t.calculateMoneyIn,keypress:t.onlyNumber,input:function(e){e.target.composing||(t.moneyOut=e.target.value)}}}),a("div",{staticClass:"select is-medium",staticStyle:{width:"45%"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.moneyOutOption,expression:"moneyOutOption"}],attrs:{name:"moneyOut",id:"moneyOut"},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.moneyOutOption=e.target.multiple?n:n[0]},t.calculateMoneyIn]}},t._l(t.siglas.rates,(function(e,n,i){return a("option",{key:i,domProps:{value:e}},[t._v(" "+t._s(t.currencyNames[""+n].name)+" ")])})),0)])])])])]),a("img",{staticClass:"mainRightPannel absolute-ico",attrs:{src:n("e489"),alt:""}}),t._m(0)])])},f=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",{staticClass:"mainFooter"},[n("p",{staticClass:"mainFooterP"},[t._v(" current and historical foreign exchange rates published by the "),n("a",{attrs:{href:"https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html",target:"_blank"}},[t._v("European Central Bank")])])])}],y=(n("a9e3"),n("b680"),n("bc3a")),v=n.n(y),h={data:function(){return{moneyIn:"1",moneyOut:"",moneyInOption:"",moneyOutOption:"",moneyInSigla:"",moneyOutSigla:"",EUR:"",siglas:{},currencyNames:{}}},created:function(){var t=this;v.a.get("https://api.exchangeratesapi.io/latest").then((function(e){t.EUR=e.data,t.siglas=e.data,t.moneyInOption=e.data.rates.BRL,t.moneyOutOption=e.data.rates.USD,t.siglas.rates["EUR"]=1,t.calculateMoneyOut()})),v.a.get("https://gist.githubusercontent.com/Fluidbyte/2973986/raw/8bb35718d0c90fdacb388961c98b8d56abc392c9/Common-Currency.json").then((function(e){t.currencyNames=e.data}))},methods:{calculateMoneyOut:function(){this.moneyOut=Number(this.moneyIn)/this.moneyInOption/(1/this.moneyOutOption),this.moneyOut=this.moneyOut.toFixed(2)},calculateMoneyIn:function(){this.moneyIn=Number(this.moneyOut)/this.moneyOutOption/(1/this.moneyInOption),this.moneyIn=this.moneyIn.toFixed(2)},onlyNumber:function(t){var e=t.keyCode?t.keyCode:t.which;(e<48||e>57)&&46!==e&&t.preventDefault()}}},g=h,b=(n("d969"),Object(l["a"])(g,d,f,!1,null,null,null)),O=b.exports,_=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},C=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pageFooter"},[n("footer",[t._v("Desenvolvido por Thiago Chinasso ")])])}],w={},I=w,x=(n("2b57"),Object(l["a"])(I,_,C,!1,null,"6fd45da6",null)),k=x.exports,j={name:"App",components:{Header:p,Main:O,Footer:k},data:function(){return{}},created:function(){}},M=j,P=(n("034f"),Object(l["a"])(M,i,o,!1,null,null,null)),N=P.exports;n("92c6");a["a"].config.productionTip=!1,new a["a"]({render:function(t){return t(N)}}).$mount("#app")},"623f":function(t,e,n){},"85ec":function(t,e,n){},d73d:function(t,e,n){"use strict";n("1f10")},d969:function(t,e,n){"use strict";n("0074")},e489:function(t,e,n){t.exports=n.p+"img/exchange.c2a77c4b.png"}});
  //# sourceMappingURL=app.58998331.js.map