{"version":3,"sources":["components/loading/loading-icon.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;;;;AAQH;;;;;GAKG;AACH,wBAUE","file":"loading-icon.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html } from 'lit-html';\nimport settings from 'carbon-components/es/globals/js/settings';\nimport LOADING_TYPE from './types';\n\nconst { prefix } = settings;\n\n/**\n * @param Object options The options.\n * @param [options.assistiveText] The assistive text for the spinner icon.\n * @param [options.type] The spinner type.\n * @returns The spinner icon.\n */\nexport default ({ assistiveText, type }: { assistiveText?: string; type?: string }) => html`\n  <svg class=\"${prefix}--loading__svg\" viewBox=\"-75 -75 150 150\">\n    ${!assistiveText\n      ? undefined\n      : html`\n          <title>${assistiveText}</title>\n        `}\n    <circle ?hidden=\"${type !== LOADING_TYPE.SMALL}\" class=\"${prefix}--loading__background\" cx=\"0\" cy=\"0\" r=\"37.5\" />\n    <circle class=\"${prefix}--loading__stroke\" cx=\"0\" cy=\"0\" r=\"37.5\" />\n  </svg>\n`;\n"]}