{"version":3,"names":[],"mappings":"","sources":["shards-dashboards.1.1.0.js"],"sourcesContent":["/*!\n* Shards Dashboards v1.1.0\n* Copyright 2011-2018 DesignRevision\n* SEE LICENSE FILE\n*/\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? factory() :\n\ttypeof define === 'function' && define.amd ? define(factory) :\n\t(factory());\n}(this, (function () { 'use strict';\n\nif (typeof Chart === 'undefined') {\n throw new Error('Shards Dashboard requires the Chart.js library in order to function properly.');\n}\n\nwindow.ShardsDashboards = window.ShardsDashboards ? window.ShardsDashboards : {};\n\n$.extend($.easing, {\n easeOutSine: function easeOutSine(x, t, b, c, d) {\n return c * Math.sin(t / d * (Math.PI / 2)) + b;\n }\n});\n\n/**\n * Chart.js - Line Chart with Vertical Line\n */\nChart.defaults.LineWithLine = Chart.defaults.line;\nChart.controllers.LineWithLine = Chart.controllers.line.extend({\n draw: function draw(ease) {\n Chart.controllers.line.prototype.draw.call(this, ease);\n if (this.chart.tooltip._active && this.chart.tooltip._active.length) {\n var activePoint = this.chart.tooltip._active[0],\n ctx = this.chart.ctx,\n x = activePoint.tooltipPosition().x,\n topY = this.chart.scales['y-axis-0'].top,\n bottomY = this.chart.scales['y-axis-0'].bottom;\n\n // Draw the line\n ctx.save();\n ctx.beginPath();\n ctx.moveTo(x, topY);\n ctx.lineTo(x, bottomY);\n ctx.lineWidth = 0.5;\n ctx.strokeStyle = '#ddd';\n ctx.stroke();\n ctx.restore();\n }\n }\n});\n\n$(document).ready(function () {\n\n /**\n * Dropdown adjustments\n */\n\n var slideConfig = {\n duration: 270,\n easing: 'easeOutSine'\n };\n\n // Add dropdown animations when toggled.\n $(':not(.main-sidebar--icons-only) .dropdown').on('show.bs.dropdown', function () {\n $(this).find('.dropdown-menu').first().stop(true, true).slideDown(slideConfig);\n });\n\n $(':not(.main-sidebar--icons-only) .dropdown').on('hide.bs.dropdown', function () {\n $(this).find('.dropdown-menu').first().stop(true, true).slideUp(slideConfig);\n });\n\n /**\n * Sidebar toggles\n */\n $('.toggle-sidebar').click(function (e) {\n $('.main-sidebar').toggleClass('open');\n });\n});\n\n})));\n"],"file":"shards-dashboards.1.1.0.js"}