/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { Base, String_$type, markType } from "./type";
import { Dictionary$2 } from "./Dictionary$2";
import { SvgIconCollection } from "./SvgIconCollection";
/**
 * @hidden
 */
export let SvgIconRegistry = /*@__PURE__*/ (() => {
    class SvgIconRegistry extends Base {
        constructor() {
            super(...arguments);
            this.c = new Dictionary$2(String_$type, SvgIconCollection.$, 0);
        }
        static get instance() {
            if (SvgIconRegistry.a == null) {
                SvgIconRegistry.a = new SvgIconRegistry();
            }
            return SvgIconRegistry.a;
        }
        addSvgPathString(a, b, c) {
            if (a == null) {
                a = "default";
            }
            if (!this.c.containsKey(a)) {
                this.c.item(a, ((() => {
                    let $ret = new SvgIconCollection();
                    $ret.c = a;
                    return $ret;
                })()));
            }
            this.c.item(a).d(b, c);
        }
        getSvgPathString(a, b) {
            if (a == null) {
                a = "default";
            }
            if (this.c.containsKey(a)) {
                return this.c.item(a).b(b);
            }
            return null;
        }
    }
    SvgIconRegistry.$t = /*@__PURE__*/ markType(SvgIconRegistry, 'SvgIconRegistry');
    SvgIconRegistry.a = null;
    return SvgIconRegistry;
})();
