(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["CurrenciesPopup"],{"28e4":function(e,t,s){"use strict";s("14d9"),s("13d5");var c=s("ca47");t["a"]={props:{selectedCountry:{type:Object,default:()=>({})}},computed:Object.assign(Object.assign({},Object(c["e"])("currencies",["getCurrencies","getAllowCurrencies","getAllowFiatCurrencies","getAllowCryptoCurrencies"])),{allowedFiatCurrencies(){var e;const t=this.getAllowFiatCurrencies[null===(e=this.selectedCountry)||void 0===e?void 0:e.id]||this.getAllowFiatCurrencies.GLOBAL||[];return this.getFullCurrenciesData(t)},allowedCryptoCurrencies(){var e;const t=this.getAllowCryptoCurrencies[null===(e=this.selectedCountry)||void 0===e?void 0:e.id]||this.getAllowCryptoCurrencies.GLOBAL||[];return this.getFullCurrenciesData(t)}}),methods:{getFullCurrenciesData(e){return e.reduce((e,t)=>{const s=this.getCurrencies[t];return s&&e.push(s),e},[])}}}},dd3cb:function(e,t,s){"use strict";s("fd32")},e2a9:function(e,t,s){"use strict";s.r(t);var c=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.clickOutside,expression:"clickOutside"}],staticClass:"currencies-popup__wrapper"},[t("div",{staticClass:"currencies-popup__header"},[t("div",{staticClass:"currencies-popup__title"},[e._v(" "+e._s(e.$t("currencies_popup.title"))+" ")]),t("div",{staticClass:"currencies-popup__close",on:{click:function(t){return e.$emit("close")}}},[t("icon",{staticClass:"currencies-popup__close-ic",attrs:{"icon-name":"close"}})],1)]),t("div",{directives:[{name:"bar",rawName:"v-bar"},{name:"vbar-smooth-scroll",rawName:"v-vbar-smooth-scroll"}],staticClass:"currencies-popup__body"},[e.textTitle?t("div",{staticClass:"currencies-popup__title"},[e._v(" "+e._s(e.textTitle)+" ")]):e._e(),t("div",{staticClass:"currencies-popup__body-inner"},e._l(e.sections,(function(s){return t("div",{key:s.code,staticClass:"currencies-popup__section"},[s.showTitle?t("div",{staticClass:"currencies-popup__section-title"},[e._v(" "+e._s(e.$t(s.title))+" ")]):e._e(),s.currencies.length?t("div",{staticClass:"currencies-popup__section-list"},e._l(s.currencies,(function(s){return t("div",{key:s.code,class:["currencies-popup__section-list-item",{active:e.selectedCurrencyCodeUpperCase===s.code}],on:{click:function(t){return e.$emit("change",s.code)}}},[s.icon?t("img",{staticClass:"currencies-popup__section-list-item-icon currency-icon",attrs:{src:s.icon,alt:s.code}}):s.symbol?t("span",{staticClass:"currencies-popup__section-list-item-currency"},[e._v(" "+e._s(s.symbol)+" ")]):e._e(),t("span",{staticClass:"currencies-popup__section-list-item-code"},[e._v(" "+e._s(s.code)+" ")])])})),0):e._e()])})),0)])])},i=[],r=(s("14d9"),s("28e4")),n=s("5d2a"),o={name:"currencies-popup",components:{Icon:n["a"]},mixins:[r["a"]],props:{selectedCountry:{type:Object,default:()=>({})},selectedCurrency:{type:Object,default:()=>({})},hasClickOutside:{type:Boolean,default:!1},textTitle:{type:String,default:""}},computed:{selectedCurrencyCodeUpperCase(){var e,t;return null===(e=this.selectedCurrency)||void 0===e||null===(t=e.code)||void 0===t?void 0:t.toUpperCase()},sections(){const e=[];return this.allowedFiatCurrencies.length&&e.push({code:"popular",title:"currencies_popup.popular_section_title",currencies:this.allowedFiatCurrencies,showTitle:this.allowedFiatCurrencies.length>1}),this.allowedCryptoCurrencies.length&&e.push({code:"crypto",title:"currencies_popup.crypto_section_title",currencies:this.allowedCryptoCurrencies,showTitle:!0}),e}},methods:{clickOutside(){this.hasClickOutside&&this.$emit("close")}}},u=o,l=(s("dd3cb"),s("2877")),a=Object(l["a"])(u,c,i,!1,null,null,null);t["default"]=a.exports},fd32:function(e,t,s){}}]);