{"version":3,"sources":["jsdelivr-header.js","webpack:///webpack/universalModuleDefinition","/npm/angular-sparklines@1.0.2/dist/webpack:/webpack/bootstrap ad6fb26b8d6aacfa8b1b","webpack:///component/index.js","webpack:///component/index.js?3f52","webpack:///component/component.directive.js","webpack:///component/component.directive.js?f4c9"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,CCNA,SAAA,EAAA,GACA,iBAAA,SAAA,iBAAA,OACA,OAAA,QAAA,IACA,mBAAA,eAAA,IACA,OAAA,GAAA,GACA,iBAAA,QACA,QAAA,aAAA,IAEA,EAAA,aAAA,GACC,CATD,CASC,MAAA,WACD,O,YCTA,IAAA,EAAA,GAGA,SAAA,EAAA,GAGA,GAAA,EAAA,GACA,OAAA,EAAA,GAAA,QAGA,IAAA,EAAA,EAAA,GAAA,CACA,QAAA,GACA,GAAA,EACA,QAAA,GAUA,OANA,EAAA,GAAA,KAAA,EAAA,QAAA,IAAA,QAAA,GAGA,EAAA,QAAA,EAGA,EAAA,OACA,CAaA,OATA,EAAA,EAAA,EAGA,EAAA,EAAA,EAGA,EAAA,EAAA,GAGA,EAAA,E,mBCtCA,aAEA,OAAO,eAAe,EAAS,aAAc,CAC3C,OAAO,IAKT,IAFgC,EAE5B,EAAsB,ECRM,GDU5B,GAJ4B,EAIkB,IAJG,EAAI,WAAa,EAAM,CAAE,QAAW,GCJrF,EAAM,QAAQ,OAAO,mBAAoB,IAC7C,EAAI,UAAU,aAAc,EAAA,QAAoB,kBDWhD,EAAQ,QCVO,EAAM,EAAI,KDWzB,EAAO,QAAU,EAAQ,O,gBEfzB,aAEA,OAAO,eAAe,EAAS,aAAc,CAC3C,OAAO,IAGT,IAAI,EAAe,WAAe,SAAS,EAAiB,EAAQ,GAAS,IAAK,IAAI,EAAI,EAAG,EAAI,EAAM,OAAQ,IAAK,CAAE,IAAI,EAAa,EAAM,GAAI,EAAW,WAAa,EAAW,aAAc,EAAO,EAAW,cAAe,EAAU,UAAW,IAAY,EAAW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klines@1.0.2/dist/angular-sparklines.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"sjSparklines\"] = factory();\n\telse\n\t\troot[\"sjSparklines\"] = factory();\n})(this, function() {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/",null,"'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n  value: true\n});\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _componentDirective = require('./component.directive');\n\nvar _componentDirective2 = _interopRequireDefault(_componentDirective);\n\nvar app = angular.module('sanji.sparklines', []);\napp.directive('sparklines', _componentDirective2['default'].directiveFactory);\nexports['default'] = app = app.name;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/index.js\n **/","import SparklinesDirective from './component.directive';\n\nlet app = angular.module('sanji.sparklines', []);\napp.directive('sparklines', SparklinesDirective.directiveFactory);\nexport default app = app.name\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/index.js\n **/","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n  value: true\n});\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar $inject = [];\n\nvar SparklinesDirective = (function () {\n  function SparklinesDirective(injects) {\n    _classCallCheck(this, SparklinesDirective);\n\n    SparklinesDirective.directiveFactory.$inject.forEach(function (item, index) {\n      SparklinesDirective[item] = injects[index];\n    });\n    this.restrict = 'EA';\n    this.scope = {\n      data: '=',\n      options: '='\n    };\n    this.template = '<span></span>';\n  }\n\n  _createClass(SparklinesDirective, [{\n    key: 'link',\n    value: function link(scope, elem, attrs) {\n      var opts = {};\n      var model = undefined;\n\n      opts.type = attrs.type || 'line';\n\n      scope.$watchCollection('data', function (newVal) {\n        if (newVal) {\n          model = newVal;\n          render(newVal, null);\n        }\n      });\n\n      scope.$watch('options', function (newVal) {\n        if (newVal) {\n          render(model, newVal);\n        }\n      });\n\n      function render(data, options) {\n        if (options) {\n          angular.extend(opts, options);\n        }\n\n        $(elem).find('span').sparkline(data, opts);\n      }\n    }\n  }], [{\n    key: 'directiveFactory',\n    value: function directiveFactory() {\n      for (var _len = arguments.length, injects = Array(_len), _key = 0; _key < _len; _key++) {\n        injects[_key] = arguments[_key];\n      }\n\n      SparklinesDirective.instance = new SparklinesDirective(injects);\n      return SparklinesDirective.instance;\n    }\n  }]);\n\n  return SparklinesDirective;\n})();\n\nSparklinesDirective.directiveFactory.$inject = $inject;\nexports['default'] = SparklinesDirective;\nmodule.exports = exports['default'];\n\n\n/** WEBPACK FOOTER **\n ** ./component/component.directive.js\n **/","const $inject = [];\nclass SparklinesDirective {\n  constructor(injects) {\n    SparklinesDirective.directiveFactory.$inject.forEach((item, index) => {\n      SparklinesDirective[item] = injects[index];\n    });\n    this.restrict = 'EA';\n    this.scope = {\n      data: '=',\n      options: '='\n    };\n    this.template = `<span></span>`;\n  }\n\n  link(scope, elem, attrs) {\n    let opts = {};\n    let model;\n\n    opts.type = attrs.type || 'line';\n\n    scope.$watchCollection('data', newVal => {\n      if (newVal) {\n        model = newVal;\n        render(newVal, null);\n      }\n    });\n\n    scope.$watch('options', newVal => {\n      if (newVal) {\n        render(model, newVal);\n      }\n    });\n\n    function render(data, options) {\n      if(options) {\n        angular.extend(opts, options);\n      }\n\n      $(elem).find('span').sparkline(data, opts);\n    }\n  }\n\n  static directiveFactory(...injects) {\n    SparklinesDirective.instance = new SparklinesDirective(injects);\n    return SparklinesDirective.instance;\n  }\n}\nSparklinesDirective.directiveFactory.$inject = $inject;\nexport default SparklinesDirective;\n\n\n\n/** WEBPACK FOOTER **\n ** ../~/eslint-loader!./component/component.directive.js\n **/"]}