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AAQ,gBAAkB","file":"/npm/@iconify/search-core@1.2.0/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/@iconify/search-core@1.2.0/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getCoreInstance = exports.IconFinderCore = exports.cloneObject = exports.compareObjects = exports.stringToIcon = exports.compareIcons = exports.validateIcon = exports.iconToString = exports.setComponentsConfig = exports.mergeConfig = exports.customisedConfig = exports.getCollectionTitle = exports.getCollectionInfo = exports.objectToRoute = exports.listProviders = exports.convertProviderData = exports.getProvider = exports.addProvider = exports.setIconify = exports.maxPage = exports.showPagination = exports.iterateCollectionsBlock = exports.getCollectionsBlockPrefixes = exports.getCollectionsBlockCategories = exports.isBlockEmpty = void 0;\nconst registry_1 = require(\"./registry\");\nconst storage_1 = require(\"./registry/storage\");\nconst custom_sets_1 = require(\"./data/custom-sets\");\nconst collections_1 = require(\"./data/collections\");\nObject.defineProperty(exports, \"getCollectionInfo\", { enumerable: true, get: function () { return collections_1.getCollectionInfo; } });\n/**\n * Export data for various blocks\n */\nvar types_1 = require(\"./blocks/types\");\nObject.defineProperty(exports, \"isBlockEmpty\", { enumerable: true, get: function () { return types_1.isBlockEmpty; } });\nvar collections_list_1 = require(\"./blocks/collections-list\");\nObject.defineProperty(exports, \"getCollectionsBlockCategories\", { enumerable: true, get: function () { return collections_list_1.getCollectionsBlockCategories; } });\nObject.defineProperty(exports, \"getCollectionsBlockPrefixes\", { enumerable: true, get: function () { return collections_list_1.getCollectionsBlockPrefixes; } });\nObject.defineProperty(exports, \"iterateCollectionsBlock\", { enumerable: true, get: function () { return collections_list_1.iterateCollectionsBlock; } });\nvar pagination_1 = require(\"./blocks/pagination\");\nObject.defineProperty(exports, \"showPagination\", { enumerable: true, get: function () { return pagination_1.showPagination; } });\nObject.defineProperty(exports, \"maxPage\", { enumerable: true, get: function () { return pagination_1.maxPage; } });\n/**\n * Export various types and functions that do not depend on core instance\n */\n// Iconify wrapper\nvar iconify_1 = require(\"./iconify\");\nObject.defineProperty(exports, \"setIconify\", { enumerable: true, get: function () { return iconify_1.setIconify; } });\nvar providers_1 = require(\"./data/providers\");\nObject.defineProperty(exports, \"addProvider\", { enumerable: true, get: function () { return providers_1.addProvider; } });\nObject.defineProperty(exports, \"getProvider\", { enumerable: true, get: function () { return providers_1.getProvider; } });\nObject.defineProperty(exports, \"convertProviderData\", { enumerable: true, get: function () { return providers_1.convertProviderData; } });\nObject.defineProperty(exports, \"listProviders\", { enumerable: true, get: function () { return providers_1.listProviders; } });\nvar convert_1 = require(\"./route/convert\");\nObject.defineProperty(exports, \"objectToRoute\", { enumerable: true, get: function () { return convert_1.objectToRoute; } });\nvar collections_2 = require(\"./data/collections\");\nObject.defineProperty(exports, \"getCollectionTitle\", { enumerable: true, get: function () { return collections_2.getCollectionTitle; } });\nvar config_1 = require(\"./data/config\");\nObject.defineProperty(exports, \"customisedConfig\", { enumerable: true, get: function () { return config_1.customisedConfig; } });\nObject.defineProperty(exports, \"mergeConfig\", { enumerable: true, get: function () { return config_1.mergeConfig; } });\nObject.defineProperty(exports, \"setComponentsConfig\", { enumerable: true, get: function () { return config_1.setComponentsConfig; } });\nvar icon_1 = require(\"./misc/icon\");\nObject.defineProperty(exports, \"iconToString\", { enumerable: true, get: function () { return icon_1.iconToString; } });\nObject.defineProperty(exports, \"validateIcon\", { enumerable: true, get: function () { return icon_1.validateIcon; } });\nObject.defineProperty(exports, \"compareIcons\", { enumerable: true, get: function () { return icon_1.compareIcons; } });\nObject.defineProperty(exports, \"stringToIcon\", { enumerable: true, get: function () { return icon_1.stringToIcon; } });\n// Objects\nvar objects_1 = require(\"./misc/objects\");\nObject.defineProperty(exports, \"compareObjects\", { enumerable: true, get: function () { return objects_1.compareObjects; } });\nObject.defineProperty(exports, \"cloneObject\", { enumerable: true, get: function () { return objects_1.cloneObject; } });\n/**\n * Icon Finder Core class\n */\nclass IconFinderCore {\n    constructor(params) {\n        this.params = params;\n        // Get Registry instance\n        const registry = (this.registry = new registry_1.Registry(params));\n        this.id = registry.id;\n        registry.setCustom('core', this, true);\n        // Set custom icon sets\n        if (params.iconSets) {\n            registry.customIconSets = (0, custom_sets_1.convertCustomSets)(params.iconSets);\n            // console.log('Custom sets:', registry.customIconSets);\n        }\n        // Get other required classes from Registry\n        const router = (this.router = registry.router);\n        const events = registry.events;\n        // Subscribe to events\n        events.subscribe('render', this._routerEvent.bind(this));\n        if (typeof params.custom === 'object' && params.custom !== null) {\n            Object.keys(params.custom).forEach((customType) => {\n                events.subscribe('load-' + customType, this._loadCustomIconsEvent.bind(this, customType));\n            });\n        }\n        // Change route on next tick, so callback would be called asynchronously\n        setTimeout(() => {\n            if (router.fullRoute === null) {\n                if (params.route !== void 0) {\n                    // Set route. On null or failure router will call home()\n                    router.partialRoute = params.route;\n                }\n                else {\n                    router.home();\n                }\n            }\n        });\n    }\n    /**\n     * Get collection information\n     */\n    getCollection(provider, prefix) {\n        return (0, collections_1.getCollectionInfo)(this.registry.collections, provider, prefix);\n    }\n    /**\n     * Event was fired by router\n     */\n    _routerEvent(data) {\n        this.params.callback(data, this);\n    }\n    /**\n     * Load data\n     */\n    _loadCustomIconsEvent(customType, callback) {\n        if (this.params.custom === void 0) {\n            return;\n        }\n        this.params.custom[customType](callback);\n    }\n    /**\n     * Destroy instance\n     */\n    destroy() {\n        this.registry.destroy();\n    }\n}\nexports.IconFinderCore = IconFinderCore;\n/**\n * Find Icon Finder Core instance for id\n */\nfunction getCoreInstance(id) {\n    const registry = (0, storage_1.getRegistry)(id);\n    return registry\n        ? registry.getCustom('core', true)\n        : void 0;\n}\nexports.getCoreInstance = getCoreInstance;\n"]}