import { DOCUMENT } from '@angular/common';
import {
inject,
Injectable,
InjectionToken,
} from '@angular/core';
/**
* URL of the SVG sprite served by the host application.
*
* Default assumes the published asset is copied to
* `/assets/africanies-icons/icons.sprite.svg` (see package README). The leading
* slash is required: Angular `[src]` / `fetch()` resolve relative URLs
* against the current route (`/login/assets/…`), not ``.
* Override when the host uses a CDN or a different assets path.
*/
export const AFRICANIES_ICON_SPRITE_URL = new InjectionToken(
'AFRICANIES_ICON_SPRITE_URL',
{
providedIn: 'root',
factory: () => '/assets/africanies-icons/icons.sprite.svg',
},
);
/**
* Fetches and inlines the icon sprite once into `document.body`.
*
* WHY inline (not external `