{"version":3,"sources":["components/loading/loading-icon.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;;;;AAQH;;;;;GAKG;AACH,wBASE","file":"loading-icon.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2021\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 }) => {\n  const radius = type === LOADING_TYPE.SMALL ? '42' : '44';\n  return html`\n    <svg class=\"${prefix}--loading__svg\" viewBox=\"0 0 100 100\">\n      ${!assistiveText ? undefined : html` <title>${assistiveText}</title> `}\n      <circle ?hidden=\"${type !== LOADING_TYPE.SMALL}\" class=\"${prefix}--loading__background\" cx=\"50%\" cy=\"50%\" r=\"${radius}\" />\n      <circle class=\"${prefix}--loading__stroke\" cx=\"50%\" cy=\"50%\" r=\"${radius}\" />\n    </svg>\n  `;\n};\n"]}