{ "version": 3, "sources": ["../../../../javascript/performance/rounds/fill_charts.js"], "sourcesContent": ["/* eslint-disable no-unused-vars */\n/* global GolfCharts */\nwindow.initCharts = function initCharts(stats) {\n // initializes graphics labels (desktop and mobile)\n $('.driving_accuracy_label').text(stats.driving_accuracy);\n $('.percentage_fairways_left_label').text(stats.percentage_fairways_left);\n $('.percentage_fairways_right_label').text(stats.percentage_fairways_right);\n $('.percentage_gir_hit_label').text(stats.percentage_gir_hit);\n $('.percentage_gir_miss_label').text(stats.percentage_gir_miss);\n $('.average_putts_label').text(stats.putts);\n $('.average_putts_per_hole_label').text(stats.average_putts_per_hole);\n $('.average_putts_per_gir_label').text(stats.average_putts_per_gir);\n $('.average_score_par3_label').text(stats.average_score_par3);\n $('.average_score_par4_label').text(stats.average_score_par4);\n $('.average_score_par5_label').text(stats.average_score_par5);\n $('.percentage_up_and_downs_label').text(stats.percentage_up_and_downs);\n $('.percentage_scrambling_label').text(stats.percentage_scrambling);\n $('.percentage_sand_saves_label').text(stats.percentage_sand_saves);\n $('.percentage_score_2bogey_label').text(stats.percentage_score_2bogey);\n $('.percentage_score_bogey_label').text(stats.percentage_score_bogey);\n $('.percentage_score_par_label').text(stats.percentage_score_par);\n $('.percentage_score_birdie_label').text(stats.percentage_score_birdie);\n $('.percentage_score_eagle_label').text(stats.percentage_score_eagle);\n $('.average_score_label').text(stats.score);\n\n // initializes graphics (desktop and mobile)\n GolfCharts.initDrivingAccuracy('chart_driving_accuracy', stats.percentage_fairways_left, stats.driving_accuracy, stats.percentage_fairways_right);\n GolfCharts.initGreenInRegulation('chart_green_in_regulation', stats.percentage_gir_hit, stats.percentage_gir_miss);\n GolfCharts.initPuttingAverages('chart_putting_averages', stats.average_putts_per_hole, stats.average_putts_per_gir);\n GolfCharts.initScoresByPar('chart_scores_by_par', stats.average_score_par3, stats.average_score_par4, stats.average_score_par5);\n GolfCharts.initRecoveryPerformance('chart_recovery_performance', stats.percentage_up_and_downs, stats.percentage_scrambling, stats.percentage_sand_saves);\n GolfCharts.initScores('chart_scores', stats.percentage_score_eagle, stats.percentage_score_birdie, stats.percentage_score_par, stats.percentage_score_bogey, stats.percentage_score_2bogey);\n};\n"], "mappings": "AAEA,OAAO,WAAa,SAAoBA,EAAO,CAE7C,EAAE,yBAAyB,EAAE,KAAKA,EAAM,gBAAgB,EACxD,EAAE,iCAAiC,EAAE,KAAKA,EAAM,wBAAwB,EACxE,EAAE,kCAAkC,EAAE,KAAKA,EAAM,yBAAyB,EAC1E,EAAE,2BAA2B,EAAE,KAAKA,EAAM,kBAAkB,EAC5D,EAAE,4BAA4B,EAAE,KAAKA,EAAM,mBAAmB,EAC9D,EAAE,sBAAsB,EAAE,KAAKA,EAAM,KAAK,EAC1C,EAAE,+BAA+B,EAAE,KAAKA,EAAM,sBAAsB,EACpE,EAAE,8BAA8B,EAAE,KAAKA,EAAM,qBAAqB,EAClE,EAAE,2BAA2B,EAAE,KAAKA,EAAM,kBAAkB,EAC5D,EAAE,2BAA2B,EAAE,KAAKA,EAAM,kBAAkB,EAC5D,EAAE,2BAA2B,EAAE,KAAKA,EAAM,kBAAkB,EAC5D,EAAE,gCAAgC,EAAE,KAAKA,EAAM,uBAAuB,EACtE,EAAE,8BAA8B,EAAE,KAAKA,EAAM,qBAAqB,EAClE,EAAE,8BAA8B,EAAE,KAAKA,EAAM,qBAAqB,EAClE,EAAE,gCAAgC,EAAE,KAAKA,EAAM,uBAAuB,EACtE,EAAE,+BAA+B,EAAE,KAAKA,EAAM,sBAAsB,EACpE,EAAE,6BAA6B,EAAE,KAAKA,EAAM,oBAAoB,EAChE,EAAE,gCAAgC,EAAE,KAAKA,EAAM,uBAAuB,EACtE,EAAE,+BAA+B,EAAE,KAAKA,EAAM,sBAAsB,EACpE,EAAE,sBAAsB,EAAE,KAAKA,EAAM,KAAK,EAG1C,WAAW,oBAAoB,yBAA0BA,EAAM,yBAA0BA,EAAM,iBAAkBA,EAAM,yBAAyB,EAChJ,WAAW,sBAAsB,4BAA6BA,E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