{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 9ee3496aa74982df96d1","webpack:///./src/angular-spinner.ts","webpack:///./src/Constants/SpinJSSpinner.ts","webpack:///./~/spin.js/spin.js","webpack:///./src/Services/UsSpinnerService.ts","webpack:///./src/Directives/AngularSpinner.ts","webpack:///external \"angular\"","webpack:///./src/Config/UsSpinnerConfig.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;ACtCA,+EAA0D;AAC1D,oFAA+D;AAC/D,kFAAwD;AACxD,gFAA2D;AAC3D,qDAAmC;AAEtB,uBAAc,GAAG,OAAO;MAChC,MAAM,CAAC,gBAAgB,EAAE,EAAE,CAAC;MAC5B,QAAQ,CAAC,iBAAiB,EAAE,iCAAe,CAAC;MAC5C,QAAQ,CAAC,eAAe,EAAE,6BAAa,CAAC;MACxC,OAAO,CAAC,kBAAkB,EAAE,mCAAgB,CAAC;MAC7C,SAAS,CAAC,WAAW,EAAE,0BAAS,CAAC,CAAC;;;;;;;;;;;ACXvC,qDAAoC;AAEpC;;IAEG;AACU,sBAAa,GAAG,OAAO,CAAC;;;;;;;;;;ACLrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;;AAEA;AACA;;AAEA;AACA;AACA,EAAC;AACD;;AAEA;AACA,sBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0CAAyC,OAAO;AAChD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,6CAA4C;AAC5C,aAAY,kBAAkB;AAC9B,oBAAmB,sBAAsB;AACzC,2BAA0B,UAAU;AACpC,kCAAiC,sBAAsB;AACvD,eAAc,kBAAkB;AAChC,WAAU;;AAEV;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,qBAAqB;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,8BAA6B;AAC7B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0CAAyC,uBAAuB;;AAEhE;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;;AAEP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,UAAS;AACT;AACA,0BAAyB,aAAa;AACtC;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA,aAAY,aAAa;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;;AAET,mEAAkE,WAAW;AAC7E;AACA;AACA;AAC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CAAC,CAAC;;;;;;;;;;ACjFzD,gD;;;;;;;;;;ACEA;;IAEG;AACH;KAOI;SACI,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;SACjB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;KACrB,CAAC;KAED,qCAAW,GAAX,UAAY,MAAqB;SAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC;KACxC,CAAC;KAED,kCAAQ,GAAR,UAAS,IAAW,EAAE,MAAqB;SACvC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;KAC/B,CAAC;KAED,8BAAI,GAAJ;SACQ,aAAyB,EAAvB,kBAAM,EAAE,kBAAM,CAAU;SAE9B,MAAM,CAAC;aACH,MAAM;aACN,MAAM;UACT,CAAC;KACN,CAAC;KAEL,sBAAC;AAAD,EAAC;AA7BY,2CAAe","file":"angular-spinner.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"angular\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"angular\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"angular\")) : factory(root[\"angular\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, function(__WEBPACK_EXTERNAL_MODULE_5__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 9ee3496aa74982df96d1","import { SpinJSSpinner } from './Constants/SpinJSSpinner';\nimport { UsSpinnerService } from './Services/UsSpinnerService';\nimport { usSpinner } from './Directives/AngularSpinner';\nimport { UsSpinnerConfig } from './Config/UsSpinnerConfig';\nimport * as angular from 'angular';\n\nexport const angularSpinner = angular\n .module('angularSpinner', [])\n .provider('usSpinnerConfig', UsSpinnerConfig)\n .constant('SpinJSSpinner', SpinJSSpinner)\n .service('usSpinnerService', UsSpinnerService)\n .directive('usSpinner', usSpinner);\n\n\n\n// WEBPACK FOOTER //\n// ./src/angular-spinner.ts","import Spinner = require('spin.js');\n\n/**\n * Exporting the Spinner prototype from spin.js library\n */\nexport const SpinJSSpinner = Spinner;\n\n\n\n// WEBPACK FOOTER //\n// ./src/Constants/SpinJSSpinner.ts","/**\n * Copyright (c) 2011-2014 Felix Gnass\n * Licensed under the MIT license\n * http://spin.js.org/\n *\n * Example:\n var opts = {\n lines: 12 // The number of lines to draw\n , length: 7 // The length of each line\n , width: 5 // The line thickness\n , radius: 10 // The radius of the inner circle\n , scale: 1.0 // Scales overall size of the spinner\n , corners: 1 // Roundness (0..1)\n , color: '#000' // #rgb or #rrggbb\n , opacity: 1/4 // Opacity of the lines\n , rotate: 0 // Rotation offset\n , direction: 1 // 1: clockwise, -1: counterclockwise\n , speed: 1 // Rounds per second\n , trail: 100 // Afterglow percentage\n , fps: 20 // Frames per second when using setTimeout()\n , zIndex: 2e9 // Use a high z-index by default\n , className: 'spinner' // CSS class to assign to the element\n , top: '50%' // center vertically\n , left: '50%' // center horizontally\n , shadow: false // Whether to render a shadow\n , hwaccel: false // Whether to use hardware acceleration (might be buggy)\n , position: 'absolute' // Element positioning\n }\n var target = document.getElementById('foo')\n var spinner = new Spinner(opts).spin(target)\n */\n;(function (root, factory) {\n\n /* CommonJS */\n if (typeof module == 'object' && module.exports) module.exports = factory()\n\n /* AMD module */\n else if (typeof define == 'function' && define.amd) define(factory)\n\n /* Browser global */\n else root.Spinner = factory()\n}(this, function () {\n \"use strict\"\n\n var prefixes = ['webkit', 'Moz', 'ms', 'O'] /* Vendor prefixes */\n , animations = {} /* Animation rules keyed by their name */\n , useCssAnimations /* Whether to use CSS animations or setTimeout */\n , sheet /* A stylesheet to hold the @keyframe or VML rules. */\n\n /**\n * Utility function to create elements. If no tag name is given,\n * a DIV is created. Optionally properties can be passed.\n */\n function createEl (tag, prop) {\n var el = document.createElement(tag || 'div')\n , n\n\n for (n in prop) el[n] = prop[n]\n return el\n }\n\n /**\n * Appends children and returns the parent.\n */\n function ins (parent /* child1, child2, ...*/) {\n for (var i = 1, n = arguments.length; i < n; i++) {\n parent.appendChild(arguments[i])\n }\n\n return parent\n }\n\n /**\n * Creates an opacity keyframe animation rule and returns its name.\n * Since most mobile Webkits have timing issues with animation-delay,\n * we create separate rules for each line/segment.\n */\n function addAnimation (alpha, trail, i, lines) {\n var name = ['opacity', trail, ~~(alpha * 100), i, lines].join('-')\n , start = 0.01 + i/lines * 100\n , z = Math.max(1 - (1-alpha) / trail * (100-start), alpha)\n , prefix = useCssAnimations.substring(0, useCssAnimations.indexOf('Animation')).toLowerCase()\n , pre = prefix && '-' + prefix + '-' || ''\n\n if (!animations[name]) {\n sheet.insertRule(\n '@' + pre + 'keyframes ' + name + '{' +\n '0%{opacity:' + z + '}' +\n start + '%{opacity:' + alpha + '}' +\n (start+0.01) + '%{opacity:1}' +\n (start+trail) % 100 + '%{opacity:' + alpha + '}' +\n '100%{opacity:' + z + '}' +\n '}', sheet.cssRules.length)\n\n animations[name] = 1\n }\n\n return name\n }\n\n /**\n * Tries various vendor prefixes and returns the first supported property.\n */\n function vendor (el, prop) {\n var s = el.style\n , pp\n , i\n\n prop = prop.charAt(0).toUpperCase() + prop.slice(1)\n if (s[prop] !== undefined) return prop\n for (i = 0; i < prefixes.length; i++) {\n pp = prefixes[i]+prop\n if (s[pp] !== undefined) return pp\n }\n }\n\n /**\n * Sets multiple style properties at once.\n */\n function css (el, prop) {\n for (var n in prop) {\n el.style[vendor(el, n) || n] = prop[n]\n }\n\n return el\n }\n\n /**\n * Fills in default values.\n */\n function merge (obj) {\n for (var i = 1; i < arguments.length; i++) {\n var def = arguments[i]\n for (var n in def) {\n if (obj[n] === undefined) obj[n] = def[n]\n }\n }\n return obj\n }\n\n /**\n * Returns the line color from the given string or array.\n */\n function getColor (color, idx) {\n return typeof color == 'string' ? color : color[idx % color.length]\n }\n\n // Built-in defaults\n\n var defaults = {\n lines: 12 // The number of lines to draw\n , length: 7 // The length of each line\n , width: 5 // The line thickness\n , radius: 10 // The radius of the inner circle\n , scale: 1.0 // Scales overall size of the spinner\n , corners: 1 // Roundness (0..1)\n , color: '#000' // #rgb or #rrggbb\n , opacity: 1/4 // Opacity of the lines\n , rotate: 0 // Rotation offset\n , direction: 1 // 1: clockwise, -1: counterclockwise\n , speed: 1 // Rounds per second\n , trail: 100 // Afterglow percentage\n , fps: 20 // Frames per second when using setTimeout()\n , zIndex: 2e9 // Use a high z-index by default\n , className: 'spinner' // CSS class to assign to the element\n , top: '50%' // center vertically\n , left: '50%' // center horizontally\n , shadow: false // Whether to render a shadow\n , hwaccel: false // Whether to use hardware acceleration (might be buggy)\n , position: 'absolute' // Element positioning\n }\n\n /** The constructor */\n function Spinner (o) {\n this.opts = merge(o || {}, Spinner.defaults, defaults)\n }\n\n // Global defaults that override the built-ins:\n Spinner.defaults = {}\n\n merge(Spinner.prototype, {\n /**\n * Adds the spinner to the given target element. If this instance is already\n * spinning, it is automatically removed from its previous target b calling\n * stop() internally.\n */\n spin: function (target) {\n this.stop()\n\n var self = this\n , o = self.opts\n , el = self.el = createEl(null, {className: o.className})\n\n css(el, {\n position: o.position\n , width: 0\n , zIndex: o.zIndex\n , left: o.left\n , top: o.top\n })\n\n if (target) {\n target.insertBefore(el, target.firstChild || null)\n }\n\n el.setAttribute('role', 'progressbar')\n self.lines(el, self.opts)\n\n if (!useCssAnimations) {\n // No CSS animation support, use setTimeout() instead\n var i = 0\n , start = (o.lines - 1) * (1 - o.direction) / 2\n , alpha\n , fps = o.fps\n , f = fps / o.speed\n , ostep = (1 - o.opacity) / (f * o.trail / 100)\n , astep = f / o.lines\n\n ;(function anim () {\n i++\n for (var j = 0; j < o.lines; j++) {\n alpha = Math.max(1 - (i + (o.lines - j) * astep) % f * ostep, o.opacity)\n\n self.opacity(el, j * o.direction + start, alpha, o)\n }\n self.timeout = self.el && setTimeout(anim, ~~(1000 / fps))\n })()\n }\n return self\n }\n\n /**\n * Stops and removes the Spinner.\n */\n , stop: function () {\n var el = this.el\n if (el) {\n clearTimeout(this.timeout)\n if (el.parentNode) el.parentNode.removeChild(el)\n this.el = undefined\n }\n return this\n }\n\n /**\n * Internal method that draws the individual lines. Will be overwritten\n * in VML fallback mode below.\n */\n , lines: function (el, o) {\n var i = 0\n , start = (o.lines - 1) * (1 - o.direction) / 2\n , seg\n\n function fill (color, shadow) {\n return css(createEl(), {\n position: 'absolute'\n , width: o.scale * (o.length + o.width) + 'px'\n , height: o.scale * o.width + 'px'\n , background: color\n , boxShadow: shadow\n , transformOrigin: 'left'\n , transform: 'rotate(' + ~~(360/o.lines*i + o.rotate) + 'deg) translate(' + o.scale*o.radius + 'px' + ',0)'\n , borderRadius: (o.corners * o.scale * o.width >> 1) + 'px'\n })\n }\n\n for (; i < o.lines; i++) {\n seg = css(createEl(), {\n position: 'absolute'\n , top: 1 + ~(o.scale * o.width / 2) + 'px'\n , transform: o.hwaccel ? 'translate3d(0,0,0)' : ''\n , opacity: o.opacity\n , animation: useCssAnimations && addAnimation(o.opacity, o.trail, start + i * o.direction, o.lines) + ' ' + 1 / o.speed + 's linear infinite'\n })\n\n if (o.shadow) ins(seg, css(fill('#000', '0 0 4px #000'), {top: '2px'}))\n ins(el, ins(seg, fill(getColor(o.color, i), '0 0 1px rgba(0,0,0,.1)')))\n }\n return el\n }\n\n /**\n * Internal method that adjusts the opacity of a single line.\n * Will be overwritten in VML fallback mode below.\n */\n , opacity: function (el, i, val) {\n if (i < el.childNodes.length) el.childNodes[i].style.opacity = val\n }\n\n })\n\n\n function initVML () {\n\n /* Utility function to create a VML tag */\n function vml (tag, attr) {\n return createEl('<' + tag + ' xmlns=\"urn:schemas-microsoft.com:vml\" class=\"spin-vml\">', attr)\n }\n\n // No CSS transforms but VML support, add a CSS rule for VML elements:\n sheet.addRule('.spin-vml', 'behavior:url(#default#VML)')\n\n Spinner.prototype.lines = function (el, o) {\n var r = o.scale * (o.length + o.width)\n , s = o.scale * 2 * r\n\n function grp () {\n return css(\n vml('group', {\n coordsize: s + ' ' + s\n , coordorigin: -r + ' ' + -r\n })\n , { width: s, height: s }\n )\n }\n\n var margin = -(o.width + o.length) * o.scale * 2 + 'px'\n , g = css(grp(), {position: 'absolute', top: margin, left: margin})\n , i\n\n function seg (i, dx, filter) {\n ins(\n g\n , ins(\n css(grp(), {rotation: 360 / o.lines * i + 'deg', left: ~~dx})\n , ins(\n css(\n vml('roundrect', {arcsize: o.corners})\n , { width: r\n , height: o.scale * o.width\n , left: o.scale * o.radius\n , top: -o.scale * o.width >> 1\n , filter: filter\n }\n )\n , vml('fill', {color: getColor(o.color, i), opacity: o.opacity})\n , vml('stroke', {opacity: 0}) // transparent stroke to fix color bleeding upon opacity change\n )\n )\n )\n }\n\n if (o.shadow)\n for (i = 1; i <= o.lines; i++) {\n seg(i, -2, 'progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)')\n }\n\n for (i = 1; i <= o.lines; i++) seg(i)\n return ins(el, g)\n }\n\n Spinner.prototype.opacity = function (el, i, val, o) {\n var c = el.firstChild\n o = o.shadow && o.lines || 0\n if (c && i + o < c.childNodes.length) {\n c = c.childNodes[i + o]; c = c && c.firstChild; c = c && c.firstChild\n if (c) c.opacity = val\n }\n }\n }\n\n if (typeof document !== 'undefined') {\n sheet = (function () {\n var el = createEl('style', {type : 'text/css'})\n ins(document.getElementsByTagName('head')[0], el)\n return el.sheet || el.styleSheet\n }())\n\n var probe = css(createEl('group'), {behavior: 'url(#default#VML)'})\n\n if (!vendor(probe, 'transform') && probe.adj) initVML()\n else useCssAnimations = vendor(probe, 'animation')\n }\n\n return Spinner\n\n}));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/spin.js/spin.js\n// module id = 2\n// module chunks = 0","import { IUsSpinnerService } from '../Interfaces/IUsSpinnerService';\n\n/**\n * UsSpinnerService\n * This service let you control spin, start and stop\n */\nexport class UsSpinnerService implements IUsSpinnerService {\n\n constructor(private $rootScope:ng.IRootScopeService) {}\n static $inject = ['$rootScope'];\n\n spin(key?:string) {\n this.$rootScope.$broadcast('us-spinner:spin', key);\n }\n\n stop(key?:string) {\n this.$rootScope.$broadcast('us-spinner:stop', key);\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/Services/UsSpinnerService.ts","import { IUsSpinnerConfig } from '../Interfaces/IUsSpinnerConfig';\nimport { IUsSpinnerAttributes } from '../Interfaces/IUsSpinnerAttributes';\nimport { IUsSpinnerScope } from '../Interfaces/IUsSpinnerScope';\nimport * as angular from 'angular';\n\nexport const usSpinner = (SpinJSSpinner:typeof Spinner, usSpinnerConfig:IUsSpinnerConfig) => {\n \n return {\n scope: true,\n link: (scope:IUsSpinnerScope, element:ng.IAugmentedJQuery, attr:IUsSpinnerAttributes) => {\n scope.spinner = null;\n\n scope.key = angular.isDefined(attr.spinnerKey) ? attr.spinnerKey : false;\n\n scope.startActive = (attr.spinnerStartActive) ?\n scope.$eval(attr.spinnerStartActive) : scope.key ?\n false : true;\n\n function stopSpinner() {\n if (scope.spinner) {\n scope.spinner.stop();\n }\n }\n\n scope.spin = () => {\n if (scope.spinner) {\n scope.spinner.spin(element[0]);\n }\n };\n\n scope.stop = () => {\n scope.startActive = false;\n stopSpinner();\n };\n\n scope.$watch(attr.usSpinner, (options:SpinnerOptions) => {\n stopSpinner();\n\n // order of precedence: element options, theme, defaults.\n options = angular.extend(\n {},\n usSpinnerConfig.config,\n attr.spinnerTheme ? usSpinnerConfig.themes[attr.spinnerTheme] : undefined,\n options);\n\n scope.spinner = new SpinJSSpinner(options);\n if ((!scope.key || scope.startActive) && !attr.spinnerOn) {\n scope.spinner.spin(element[0]);\n }\n }, true);\n\n if (attr.spinnerOn) {\n scope.$watch(attr.spinnerOn, (spin) => {\n if (spin) {\n scope.spin();\n } else {\n scope.stop();\n }\n });\n }\n\n scope.$on('us-spinner:spin', (event, key) => {\n if (!key || key === scope.key) {\n scope.spin();\n }\n });\n\n scope.$on('us-spinner:stop', (event, key) => {\n if (!key || key === scope.key) {\n scope.stop();\n }\n });\n\n scope.$on('$destroy', () => {\n scope.stop();\n scope.spinner = null;\n });\n }\n };\n}\n\nusSpinner.$inject = ['SpinJSSpinner', 'usSpinnerConfig'];\n\n\n\n// WEBPACK FOOTER //\n// ./src/Directives/AngularSpinner.ts","module.exports = __WEBPACK_EXTERNAL_MODULE_5__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"angular\"\n// module id = 5\n// module chunks = 0","import { IUsSpinnerConfig } from '../Interfaces/IUsSpinnerConfig';\n\n/**\n * UsSpinnerConfig\n */\nexport class UsSpinnerConfig implements ng.IServiceProvider, IUsSpinnerConfig {\n \n config:SpinnerOptions;\n themes: {\n [name: string]: SpinnerOptions;\n }\n\n constructor() {\n this.config = {};\n this.themes = {};\n }\n\n setDefaults(config:SpinnerOptions) {\n this.config = config || this.config;\n }\n \n setTheme(name:string, config:SpinnerOptions) {\n this.themes[name] = config;\n }\n\n $get () {\n let { config, themes } = this;\n \n return {\n config,\n themes\n };\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/Config/UsSpinnerConfig.ts"],"sourceRoot":""}