{"version":3,"file":"global-9b626169.js","sources":["../../../app/javascript/mixins/global.js"],"sourcesContent":["export default {\n methods: {\n getTagColor(subgroup) {\n let colors = this.$store.state.tagColors;\n if (subgroup && colors[subgroup]) {\n return colors[subgroup];\n } else {\n return 'text-blue-400';\n }\n },\n getTagBackground(subgroup) {\n let colors = this.$store.state.tagBackgroundColors;\n if (subgroup && colors[subgroup]) {\n return colors[subgroup];\n } else {\n return 'bg-blue-400';\n }\n },\n getSentimentClassAndText(sentiment) {\n let sentimentClasses = this.$store.state.sentimentClasses;\n let text = '';\n if (sentiment >= 80) {\n text = 'Very Bullish';\n } else if (sentiment >= 60) {\n text = 'Bullish';\n } else if (sentiment >= 40) {\n text = 'Neutral';\n } else if (sentiment >= 20) {\n text = 'Bearish';\n } else {\n text = 'Bearish';\n }\n return sentimentClasses[text];\n },\n getCoinInfo(coin_uid) {\n return this.$store.state.data.coins.filter(c => c.uid == coin_uid)[0];\n },\n getCurrencySymbol(cur) {\n return {\n USD: '$',\n GBP: '£',\n Chf: 'CHf'\n }[cur];\n },\n getRandomId() {\n return Math.random().toString(36).substr(0, 8);\n }\n },\n computed: {\n isTheTieTeamMember() {\n return this.$store.getters.roles.includes('tie_team');\n }\n }\n};\n"],"names":["global","subgroup","colors","sentiment","sentimentClasses","text","coin_uid","c","cur"],"mappings":"AAAA,MAAeA,EAAA,CACb,QAAS,CACP,YAAYC,EAAU,CACpB,IAAIC,EAAS,KAAK,OAAO,MAAM,UAC/B,OAAID,GAAYC,EAAOD,CAAQ,EACtBC,EAAOD,CAAQ,EAEf,eAEV,EACD,iBAAiBA,EAAU,CACzB,IAAIC,EAAS,KAAK,OAAO,MAAM,oBAC/B,OAAID,GAAYC,EAAOD,CAAQ,EACtBC,EAAOD,CAAQ,EAEf,aAEV,EACD,yBAAyBE,EAAW,CAClC,IAAIC,EAAmB,KAAK,OAAO,MAAM,iBACrCC,EAAO,GACX,OAAIF,GAAa,GACfE,EAAO,eACEF,GAAa,GACtBE,EAAO,UACEF,GAAa,GACtBE,EAAO,WACEF,GAAa,GACtBE,EAAO,WAIFD,EAAiBC,CAAI,CAC7B,EACD,YAAYC,EAAU,CACpB,OAAO,KAAK,OAAO,MAAM,KAAK,MAAM,OAAOC,GAAKA,EAAE,KAAOD,CAAQ,EAAE,CAAC,CACrE,EACD,kBAAkBE,EAAK,CACrB,MAAO,CACL,IAAK,IACL,IAAK,IACL,IAAK,KACN,EAACA,CAAG,CACN,EACD,aAAc,CACZ,OAAO,KAAK,OAAM,EAAG,SAAS,EAAE,EAAE,OAAO,EAAG,CAAC,CAC9C,CACF,EACD,SAAU,CACR,oBAAqB,CACnB,OAAO,KAAK,OAAO,QAAQ,MAAM,SAAS,UAAU,CACrD,CACF,CACH"}