{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///clarity-icons-lite.min.js","webpack:///webpack/bootstrap 7c8070e8526db70cd274","webpack:///./src/clarity-icons/utils/descriptor-config.ts","webpack:///./src/clarity-icons/shapes/core-shapes.ts","webpack:///./src/clarity-icons/clarity-icons-api.ts","webpack:///./src/clarity-icons/index.ts","webpack:///./src/clarity-icons/clarity-icons-element.ts"],"names":["root","factory","exports","module","define","amd","a","i","this","modules","__webpack_require__","moduleId","installedModules","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","descriptorConfig","value","writable","descriptor_config_1","coreShapes","unknown-status","home","cog","check","times","exclamation-triangle","exclamation-circle","check-circle","info-circle","info-standard","success-standard","error-standard","warning-standard","help-info","bars","user","angle","folder","folder-open","bell","image","cloud","ellipsis-horizontal","ellipsis-vertical","filter-grid","filter-grid-circle","vm-bug","search","view-columns","angle-double","CoreShapes","iconShapeSources","ClarityIconsApi","singleInstance","validateName","length","Error","test","setIconTemplate","shapeName","shapeTemplate","trimmedShapeTemplate","trim","setIconAliases","templates","aliasNames","_i","aliasNames_1","aliasName","add","icons","has","TypeError","alias","aliases","clarity_icons_api_1","clarity_icons_element_1","core_shapes_1","clarityIcons","instance","ClarityIcons","window","customElements","ClarityIconElement","parentConstructor","apply","arguments","HTMLElement","Reflect","construct","constructor","observedAttributes","create","generateIcon","element","shape","split","_shape","innerHTML","console","error","setIconSize","size","Number","style","width","height","connectedCallback","host","hasAttribute","getAttribute","attributeChangedCallback","attributeName","oldValue","newValue"],"mappings":"CAAA,SAAAA,EAAAC,GACA,mBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,QACA,sBAAAG,gBAAAC,IACAD,UAAAH,OACA,CACA,GAAAK,GAAAL,GACA,QAAAM,KAAAD,IAAA,gBAAAJ,iBAAAF,GAAAO,GAAAD,EAAAC,KAECC,KAAA,WACD,MCAgB,UAAUC,GCN1B,QAAAC,GA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,EAAAvB,gBAAgB2B,SAASR,IAAIwB,GAC7BD,EAAQI,UAAYvB,EAAAvB,gBAAgB2B,SAASzE,IAAIyF,IAEjDI,QAAQC,MAAM,IAAIL,EAAK,4CACvBD,EAAQI,UAAYvB,EAAAvB,gBAAgB2B,SAASzE,IAAI,YAKvD+F,EAAc,SAASP,EAAcQ,IAClCC,OAAOD,IAASC,OAAOD,GAAQ,GAChCR,EAAQU,MAAMC,MAAQ,KACtBX,EAAQU,MAAME,OAAS,OAEvBZ,EAAQU,MAAMC,MAAQH,EAAO,KAC7BR,EAAQU,MAAME,OAASJ,EAAO,MAItCnB,GAAmBxE,UAAUgG,kBAAoB,WAC7C,GAAMC,GAAOvH,IAETuH,GAAKC,aAAa,UAClBhB,EAAae,EAAMA,EAAKE,aAAa,UAGrCF,EAAKC,aAAa,SAClBR,EAAYO,EAAMA,EAAKE,aAAa,UAI5C3B,EAAmBxE,UAAUoG,yBAA2B,SAASC,EAAuBC,EACvBC,GAC7D,GAAMN,GAAOvH,IAES,WAAlB2H,GACAnB,EAAae,EAAMM,GAED,SAAlBF,GACAX,EAAYO,EAAMM","file":"clarity-icons-lite.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse {\n\t\tvar a = factory();\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse {\n\t\tvar a = factory();\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 9);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\n/**\r\n * Copyright (c) 2016-2017 VMware, Inc. All Rights Reserved.\r\n * This software is released under MIT license.\r\n * The full license information can be found in LICENSE in the root directory of this project.\r\n */\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nfunction descriptorConfig(value) {\r\n return { enumerable: true, writable: true, configurable: true, value: value };\r\n}\r\nexports.descriptorConfig = descriptorConfig;\r\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\n/*\r\n * Copyright (c) 2016-2017 VMware, Inc. All Rights Reserved.\r\n * This software is released under MIT license.\r\n * The full license information can be found in LICENSE in the root directory of this project.\r\n */\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar descriptor_config_1 = __webpack_require__(0);\r\n/* tslint:disable:max-line-length */\r\nvar coreShapes = {\r\n \"unknown-status\": \"\\n \\n unknown-status\\n\\n \\n \\n \\n \",\r\n \"home\": \"\\n \\n home\\n\\n \\n \\n\\n \\n \\n \\n \",\r\n \"cog\": \"\\n \\n cog\\n\\n \\n \\n\\n \\n \\n \\n\\n \\n \\n \\n\\n \\n\\n \\n \\n\\n \\n \\n\\n \\n \",\r\n \"check\": \"\\n \\n check\\n \\n \\n \",\r\n \"times\": \"\\n \\n times\\n \\n \\n \",\r\n \"exclamation-triangle\": \"\\n \\n exclamation-triangle\\n\\n \\n \\n \\n\\n \\n \\n \",\r\n \"exclamation-circle\": \"\\n \\n exclamation-circle\\n\\n \\n \\n \\n\\n \\n \\n \",\r\n \"check-circle\": \"\\n \\n check-circle\\n\\n \\n \\n\\n \\n \\n \",\r\n \"info-circle\": \"\\n \\n info-circle\\n\\n \\n \\n \\n\\n \\n\\n \\n \",\r\n // for the sake of limiting breaking changes with components, the \"standard\" sizing of the alert\r\n // icons is the outlier (other references point to the smaller, compact icons used in alerts).\r\n // if this becomes a problem, point other icon references to the standard size or rename the\r\n // compact ones.\r\n \"info-standard\": \"\\n \\n info-standard\\n\\n \\n \\n \\n\\n \\n \\n \",\r\n \"success-standard\": \"\\n \\n success-standard\\n\\n \\n \\n\\n \\n \\n \",\r\n \"error-standard\": \"\\n \\n error-standard\\n\\n \\n \\n \\n\\n \\n \\n \",\r\n \"warning-standard\": \"\\n \\n warning-standard\\n\\n \\n \\n \\n\\n \\n \\n \",\r\n \"help-info\": \"\\n \\n help-info\\n \\n \\n \\n \\n \\n \\n \",\r\n \"bars\": \"\\n \\n bars\\n \\n \\n \\n \\n \",\r\n \"user\": \"\\n \\n user\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \",\r\n \"angle\": \"\\n \\n angle\\n \\n \\n \",\r\n \"folder\": \"\\n \\n folder\\n\\n \\n\\n \\n \\n\\n \\n \\n\\n \\n\\n \\n \\n\\n \\n \\n \\n \",\r\n \"folder-open\": \"\\n \\n folder-open\\n\\n \\n\\n \\n \\n\\n \\n \\n\\n \\n\\n \\n \\n\\n \\n \\n \\n \",\r\n \"bell\": \"\\n \\n bell\\n\\n \\n \\n\\n \\n \\n \\n\\n \\n \\n\\n \\n \\n \\n \\n \",\r\n \"image\": \"\\n \\n image \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \",\r\n \"cloud\": \"\\n \\n cloud\\n\\n \\n\\n \\n \\n\\n \\n \\n\\n \\n\\n \\n \\n\\n \\n \\n \\n \",\r\n \"ellipsis-horizontal\": \"\\n \\n ellipsis-horizontal\\n \\n \\n \\n \\n \\n \\n \\n \\n \",\r\n \"ellipsis-vertical\": \"\\n \\n ellipsis-vertical\\n \\n \\n \\n \\n \\n \\n \\n \\n \",\r\n \"filter-grid\": \"\\n \\n filter-grid\\n\\n \\n\\n \\n \\n \",\r\n \"filter-grid-circle\": \"\\n \\n filter-grid-circle\\n\\n \\n \\n\\n \\n \\n \\n \",\r\n \"vm-bug\": \"\\n \\n vm-bug\\n \\n \\n \\n \",\r\n \"search\": \"\\n \\n search\\n \\n \\n \\n \",\r\n \"view-columns\": \"\\n \\n view-columns\\n \\n \\n \",\r\n \"angle-double\": \"\\n \\n angle-double\\n \\n \\n \\n \"\r\n};\r\nexports.CoreShapes = coreShapes;\r\nObject.defineProperty(coreShapes, \"house\", descriptor_config_1.descriptorConfig(coreShapes.home));\r\nObject.defineProperty(coreShapes, \"settings\", descriptor_config_1.descriptorConfig(coreShapes.cog));\r\nObject.defineProperty(coreShapes, \"success\", descriptor_config_1.descriptorConfig(coreShapes.check));\r\nObject.defineProperty(coreShapes, \"close\", descriptor_config_1.descriptorConfig(coreShapes.times));\r\nObject.defineProperty(coreShapes, \"warning\", descriptor_config_1.descriptorConfig(coreShapes[\"exclamation-triangle\"]));\r\nObject.defineProperty(coreShapes, \"error\", descriptor_config_1.descriptorConfig(coreShapes[\"exclamation-circle\"]));\r\nObject.defineProperty(coreShapes, \"info\", descriptor_config_1.descriptorConfig(coreShapes[\"info-circle\"]));\r\nObject.defineProperty(coreShapes, \"menu\", descriptor_config_1.descriptorConfig(coreShapes.bars));\r\nObject.defineProperty(coreShapes, \"avatar\", descriptor_config_1.descriptorConfig(coreShapes.user));\r\nObject.defineProperty(coreShapes, \"caret\", descriptor_config_1.descriptorConfig(coreShapes.angle));\r\nObject.defineProperty(coreShapes, \"directory\", descriptor_config_1.descriptorConfig(coreShapes.folder));\r\nObject.defineProperty(coreShapes, \"notification\", descriptor_config_1.descriptorConfig(coreShapes.bell));\r\n\n\n/***/ }),\n/* 2 */,\n/* 3 */,\n/* 4 */,\n/* 5 */,\n/* 6 */,\n/* 7 */,\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\n/*\r\n * Copyright (c) 2016 VMware, Inc. All Rights Reserved.\r\n * This software is released under MIT license.\r\n * The full license information can be found in LICENSE in the root directory of this project.\r\n */\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar iconShapeSources = {};\r\nvar ClarityIconsApi = (function () {\r\n function ClarityIconsApi() {\r\n }\r\n Object.defineProperty(ClarityIconsApi, \"instance\", {\r\n get: function () {\r\n if (!ClarityIconsApi.singleInstance) {\r\n ClarityIconsApi.singleInstance = new ClarityIconsApi();\r\n }\r\n return ClarityIconsApi.singleInstance;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ClarityIconsApi.prototype.validateName = function (name) {\r\n if (name.length === 0) {\r\n throw new Error(\"Shape name or alias must be a non-empty string!\");\r\n }\r\n if (/\\s/.test(name)) {\r\n throw new Error(\"Shape name or alias must not contain any whitespace characters!\");\r\n }\r\n return true;\r\n };\r\n ClarityIconsApi.prototype.setIconTemplate = function (shapeName, shapeTemplate) {\r\n var trimmedShapeTemplate = shapeTemplate.trim();\r\n if (this.validateName(shapeName)) {\r\n // if the shape name exists, delete it.\r\n if (iconShapeSources[shapeName]) {\r\n delete iconShapeSources[shapeName];\r\n }\r\n iconShapeSources[shapeName] = trimmedShapeTemplate;\r\n }\r\n };\r\n ClarityIconsApi.prototype.setIconAliases = function (templates, shapeName, aliasNames) {\r\n for (var _i = 0, aliasNames_1 = aliasNames; _i < aliasNames_1.length; _i++) {\r\n var aliasName = aliasNames_1[_i];\r\n if (this.validateName(aliasName)) {\r\n Object.defineProperty(templates, aliasName, {\r\n get: function () {\r\n return templates[shapeName];\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n }\r\n }\r\n };\r\n ClarityIconsApi.prototype.add = function (icons) {\r\n if (typeof icons !== \"object\") {\r\n throw new Error(\"The argument must be an object literal passed in the following pattern: \\n { \\\"shape-name\\\": \\\"shape-template\\\" }\");\r\n }\r\n for (var shapeName in icons) {\r\n if (icons.hasOwnProperty(shapeName)) {\r\n this.setIconTemplate(shapeName, icons[shapeName]);\r\n }\r\n }\r\n };\r\n ClarityIconsApi.prototype.has = function (shapeName) {\r\n return !!iconShapeSources[shapeName];\r\n };\r\n ClarityIconsApi.prototype.get = function (shapeName) {\r\n // if shapeName is not given, return all icon templates.\r\n if (!shapeName) {\r\n return iconShapeSources;\r\n }\r\n if (typeof shapeName !== \"string\") {\r\n throw new TypeError(\"Only string argument is allowed in this method.\");\r\n }\r\n // if shapeName doesn't exist in the icons templates, throw an error.\r\n if (!this.has(shapeName)) {\r\n throw new Error(\"'\" + shapeName + \"' is not found in the Clarity Icons set.\");\r\n }\r\n return iconShapeSources[shapeName];\r\n };\r\n ClarityIconsApi.prototype.alias = function (aliases) {\r\n if (typeof aliases !== \"object\") {\r\n throw new Error(\"The argument must be an object literal passed in the following pattern: \\n { \\\"shape-name\\\": [\\\"alias-name\\\", ...] }\");\r\n }\r\n for (var shapeName in aliases) {\r\n if (aliases.hasOwnProperty(shapeName)) {\r\n if (iconShapeSources.hasOwnProperty(shapeName)) {\r\n // set an alias to the icon if it exists in iconShapeSources.\r\n this.setIconAliases(iconShapeSources, shapeName, aliases[shapeName]);\r\n }\r\n else if (iconShapeSources.hasOwnProperty(shapeName)) {\r\n // set an alias to the icon if it exists in iconShapeSources.\r\n this.setIconAliases(iconShapeSources, shapeName, aliases[shapeName]);\r\n }\r\n else {\r\n throw new Error(\"The icon '\" + shapeName + \"' you are trying to set an alias to doesn't exist!\");\r\n }\r\n }\r\n }\r\n };\r\n return ClarityIconsApi;\r\n}());\r\nexports.ClarityIconsApi = ClarityIconsApi;\r\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*\r\n * Copyright (c) 2016 VMware, Inc. All Rights Reserved.\r\n * This software is released under MIT license.\r\n * The full license information can be found in LICENSE in the root directory of this project.\r\n */\r\nvar clarity_icons_api_1 = __webpack_require__(8);\r\nvar clarity_icons_element_1 = __webpack_require__(10);\r\nvar core_shapes_1 = __webpack_require__(1);\r\nvar clarityIcons = clarity_icons_api_1.ClarityIconsApi.instance;\r\nexports.ClarityIcons = clarityIcons;\r\nclarityIcons.add(core_shapes_1.CoreShapes);\r\n// check if there is a global object called \"ClarityIcons\"\r\nif (!window.hasOwnProperty(\"ClarityIcons\")) {\r\n // Setting a global object called \"ClarityIcons\" to expose the ClarityIconsApi.\r\n window.ClarityIcons = clarityIcons;\r\n // Defining clr-icon custom element\r\n customElements.define(\"clr-icon\", clarity_icons_element_1.ClarityIconElement);\r\n}\r\n\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*\r\n * Copyright (c) 2016 VMware, Inc. All Rights Reserved.\r\n * This software is released under MIT license.\r\n * The full license information can be found in LICENSE in the root directory of this project.\r\n */\r\nvar clarity_icons_api_1 = __webpack_require__(8);\r\n/* CLR-ICON CUSTOM ELEMENT */\r\nvar parentConstructor = function () {\r\n return HTMLElement.apply(this, arguments);\r\n};\r\nif (typeof Reflect === \"object\") {\r\n parentConstructor = function () {\r\n return Reflect.construct(HTMLElement, arguments, this.constructor);\r\n };\r\n}\r\nfunction ClarityIconElement() {\r\n \"use strict\";\r\n return parentConstructor.apply(this, arguments);\r\n}\r\nexports.ClarityIconElement = ClarityIconElement;\r\nClarityIconElement.observedAttributes = [\"shape\", \"size\"];\r\nClarityIconElement.prototype = Object.create(HTMLElement.prototype, { constructor: { configurable: true, writable: true, value: ClarityIconElement } });\r\nClarityIconElement.prototype.constructor = ClarityIconElement;\r\nvar generateIcon = function (element, shape) {\r\n shape = shape.split(/\\s/)[0];\r\n if (shape !== element._shape) {\r\n element._shape = shape;\r\n // shape exists in set\r\n if (clarity_icons_api_1.ClarityIconsApi.instance.has(shape)) {\r\n element.innerHTML = clarity_icons_api_1.ClarityIconsApi.instance.get(shape);\r\n }\r\n else {\r\n console.error(\"'\" + shape + \"' is not found in the Clarity Icons set.\");\r\n element.innerHTML = clarity_icons_api_1.ClarityIconsApi.instance.get(\"error\");\r\n }\r\n }\r\n};\r\nvar setIconSize = function (element, size) {\r\n if (!Number(size) || Number(size) < 0) {\r\n element.style.width = null; // fallback to the original stylesheet value\r\n element.style.height = null; // fallback to the original stylesheet value\r\n }\r\n else {\r\n element.style.width = size + \"px\";\r\n element.style.height = size + \"px\";\r\n }\r\n};\r\nClarityIconElement.prototype.connectedCallback = function () {\r\n var host = this;\r\n if (host.hasAttribute(\"shape\")) {\r\n generateIcon(host, host.getAttribute(\"shape\"));\r\n }\r\n if (host.hasAttribute(\"size\")) {\r\n setIconSize(host, host.getAttribute(\"size\"));\r\n }\r\n};\r\nClarityIconElement.prototype.attributeChangedCallback = function (attributeName, oldValue, newValue) {\r\n var host = this;\r\n if (attributeName === \"shape\") {\r\n generateIcon(host, newValue);\r\n }\r\n if (attributeName === \"size\") {\r\n setIconSize(host, newValue);\r\n }\r\n};\r\n\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// clarity-icons-lite.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 9);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 7c8070e8526db70cd274","/**\n * Copyright (c) 2016-2017 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nexport function descriptorConfig(value: any) {\n return {enumerable: true, writable: true, configurable: true, value: value};\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/clarity-icons/utils/descriptor-config.ts","/*\n * Copyright (c) 2016-2017 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport {descriptorConfig} from \"../utils/descriptor-config\";\n\n/* tslint:disable:max-line-length */\nconst coreShapes: any = {\n\n \"unknown-status\": `\n \n unknown-status\n\n \n \n \n `,\n\n \"home\": `\n \n home\n\n \n \n\n \n \n \n `,\n\n \"cog\": `\n \n cog\n\n \n \n\n \n \n \n\n \n \n \n\n \n\n \n \n\n \n \n\n \n `,\n\n\n \"check\": `\n \n check\n \n \n `,\n\n\n \"times\": `\n \n times\n \n \n `,\n\n\n \"exclamation-triangle\": `\n \n exclamation-triangle\n\n \n \n \n\n \n \n `,\n\n\n \"exclamation-circle\": `\n \n exclamation-circle\n\n \n \n \n\n \n \n `,\n\n\n \"check-circle\": `\n \n check-circle\n\n \n \n\n \n \n `,\n\n \"info-circle\": `\n \n info-circle\n\n \n \n \n\n \n\n \n `,\n\n\n // for the sake of limiting breaking changes with components, the \"standard\" sizing of the alert\n // icons is the outlier (other references point to the smaller, compact icons used in alerts).\n // if this becomes a problem, point other icon references to the standard size or rename the\n // compact ones.\n \"info-standard\": `\n \n info-standard\n\n \n \n \n\n \n \n `,\n\n \"success-standard\": `\n \n success-standard\n\n \n \n\n \n \n `,\n\n \"error-standard\": `\n \n error-standard\n\n \n \n \n\n \n \n `,\n\n \"warning-standard\": `\n \n warning-standard\n\n \n \n \n\n \n \n `,\n\n \"help-info\": `\n \n help-info\n \n \n \n \n \n \n `,\n\n \"bars\": `\n \n bars\n \n \n \n \n `,\n\n\n \"user\": `\n \n user\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n `,\n\n\n \"angle\": `\n \n angle\n \n \n `,\n\n\n \"folder\": `\n \n folder\n\n \n\n \n \n\n \n \n\n \n\n \n \n\n \n \n \n `,\n\n\n \"folder-open\": `\n \n folder-open\n\n \n\n \n \n\n \n \n\n \n\n \n \n\n \n \n \n `,\n\n\n \"bell\": `\n \n bell\n\n \n \n\n \n \n \n\n \n \n\n \n \n \n \n `,\n\n\n \"image\": `\n \n image \n \n \n \n \n \n \n \n \n \n \n `,\n\n\n \"cloud\": `\n \n cloud\n\n \n\n \n \n\n \n \n\n \n\n \n \n\n \n \n \n `,\n\n \"ellipsis-horizontal\": `\n \n ellipsis-horizontal\n \n \n \n \n \n \n \n \n `,\n\n \"ellipsis-vertical\": `\n \n ellipsis-vertical\n \n \n \n \n \n \n \n \n `,\n\n \"filter-grid\": `\n \n filter-grid\n\n \n\n \n \n `,\n\n \"filter-grid-circle\": `\n \n filter-grid-circle\n\n \n \n\n \n \n \n `,\n\n \"vm-bug\": `\n \n vm-bug\n \n \n \n `,\n\n \"search\": `\n \n search\n \n \n \n `,\n\n \"view-columns\": `\n \n view-columns\n \n \n `,\n\n \"angle-double\": `\n \n angle-double\n \n \n \n `\n\n};\n\nObject.defineProperty(coreShapes, \"house\", descriptorConfig(coreShapes.home));\nObject.defineProperty(coreShapes, \"settings\", descriptorConfig(coreShapes.cog));\nObject.defineProperty(coreShapes, \"success\", descriptorConfig(coreShapes.check));\nObject.defineProperty(coreShapes, \"close\", descriptorConfig(coreShapes.times));\nObject.defineProperty(coreShapes, \"warning\", descriptorConfig(coreShapes[\"exclamation-triangle\"]));\nObject.defineProperty(coreShapes, \"error\", descriptorConfig(coreShapes[\"exclamation-circle\"]));\nObject.defineProperty(coreShapes, \"info\", descriptorConfig(coreShapes[\"info-circle\"]));\nObject.defineProperty(coreShapes, \"menu\", descriptorConfig(coreShapes.bars));\nObject.defineProperty(coreShapes, \"avatar\", descriptorConfig(coreShapes.user));\nObject.defineProperty(coreShapes, \"caret\", descriptorConfig(coreShapes.angle));\nObject.defineProperty(coreShapes, \"directory\", descriptorConfig(coreShapes.folder));\nObject.defineProperty(coreShapes, \"notification\", descriptorConfig(coreShapes.bell));\n\nexport {coreShapes as CoreShapes};\n\n\n\n// WEBPACK FOOTER //\n// ./src/clarity-icons/shapes/core-shapes.ts","/*\n * Copyright (c) 2016 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport {IconAlias} from \"./interfaces/icon-alias\";\nimport {IconTemplate} from \"./interfaces/icon-template\";\n\nconst iconShapeSources: IconTemplate = {};\n\nexport class ClarityIconsApi {\n private static singleInstance: ClarityIconsApi;\n\n private constructor() {}\n\n static get instance(): ClarityIconsApi {\n if (!ClarityIconsApi.singleInstance) {\n ClarityIconsApi.singleInstance = new ClarityIconsApi();\n }\n\n return ClarityIconsApi.singleInstance;\n }\n\n private validateName(name: string): boolean {\n if (name.length === 0) {\n throw new Error(\"Shape name or alias must be a non-empty string!\");\n }\n\n if (/\\s/.test(name)) {\n throw new Error(\"Shape name or alias must not contain any whitespace characters!\");\n }\n\n return true;\n }\n\n private setIconTemplate(shapeName: string, shapeTemplate: string): void {\n const trimmedShapeTemplate = shapeTemplate.trim();\n\n if (this.validateName(shapeName)) {\n // if the shape name exists, delete it.\n if (iconShapeSources[shapeName]) {\n delete iconShapeSources[shapeName];\n }\n\n iconShapeSources[shapeName] = trimmedShapeTemplate;\n }\n }\n\n private setIconAliases(templates: IconTemplate, shapeName: string, aliasNames: string[]): void {\n for (const aliasName of aliasNames) {\n if (this.validateName(aliasName)) {\n Object.defineProperty(templates, aliasName, {\n get: function() {\n return templates[shapeName];\n },\n enumerable: true,\n configurable: true\n });\n }\n }\n }\n\n add(icons?: IconTemplate): void {\n if (typeof icons !== \"object\") {\n throw new Error(`The argument must be an object literal passed in the following pattern: \n { \"shape-name\": \"shape-template\" }`);\n }\n\n for (const shapeName in icons) {\n if (icons.hasOwnProperty(shapeName)) {\n this.setIconTemplate(shapeName, icons[shapeName]);\n }\n }\n }\n\n has(shapeName: string): boolean {\n return !!iconShapeSources[shapeName];\n }\n\n get(shapeName?: string): any {\n // if shapeName is not given, return all icon templates.\n if (!shapeName) {\n return iconShapeSources;\n }\n\n if (typeof shapeName !== \"string\") {\n throw new TypeError(\"Only string argument is allowed in this method.\");\n }\n\n // if shapeName doesn't exist in the icons templates, throw an error.\n if (!this.has(shapeName)) {\n throw new Error(`'${shapeName}' is not found in the Clarity Icons set.`);\n }\n\n return iconShapeSources[shapeName];\n }\n\n alias(aliases?: IconAlias): void {\n if (typeof aliases !== \"object\") {\n throw new Error(`The argument must be an object literal passed in the following pattern: \n { \"shape-name\": [\"alias-name\", ...] }`);\n }\n\n for (const shapeName in aliases) {\n if (aliases.hasOwnProperty(shapeName)) {\n if (iconShapeSources.hasOwnProperty(shapeName)) {\n // set an alias to the icon if it exists in iconShapeSources.\n this.setIconAliases(iconShapeSources, shapeName, aliases[shapeName]);\n } else if (iconShapeSources.hasOwnProperty(shapeName)) {\n // set an alias to the icon if it exists in iconShapeSources.\n this.setIconAliases(iconShapeSources, shapeName, aliases[shapeName]);\n } else {\n throw new Error(\"The icon '\" + shapeName + \"' you are trying to set an alias to doesn't exist!\");\n }\n }\n }\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/clarity-icons/clarity-icons-api.ts","/*\n * Copyright (c) 2016 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\nimport {ClarityIconsApi} from \"./clarity-icons-api\";\nimport {ClarityIconElement} from \"./clarity-icons-element\";\nimport {CoreShapes} from \"./shapes/core-shapes\";\n\nconst clarityIcons: ClarityIconsApi = ClarityIconsApi.instance;\n\nclarityIcons.add(CoreShapes);\n\n// check if there is a global object called \"ClarityIcons\"\nif (!window.hasOwnProperty(\"ClarityIcons\")) {\n // Setting a global object called \"ClarityIcons\" to expose the ClarityIconsApi.\n window.ClarityIcons = clarityIcons;\n\n // Defining clr-icon custom element\n customElements.define(\"clr-icon\", ClarityIconElement);\n}\n\nexport {clarityIcons as ClarityIcons};\n\n\n\n// WEBPACK FOOTER //\n// ./src/clarity-icons/index.ts","/*\n * Copyright (c) 2016 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\nimport {ClarityIconsApi} from \"./clarity-icons-api\";\n\n/* CLR-ICON CUSTOM ELEMENT */\n\nlet parentConstructor = function() {\n return HTMLElement.apply(this, arguments);\n};\nif (typeof Reflect === \"object\") {\n parentConstructor = function() {\n return (Reflect as any).construct(HTMLElement, arguments, this.constructor);\n };\n}\n\nexport function ClarityIconElement() {\n \"use strict\";\n return (parentConstructor as any).apply(this, arguments);\n}\n\n(ClarityIconElement as any).observedAttributes = [\"shape\", \"size\"];\n\nClarityIconElement.prototype = Object.create(\n HTMLElement.prototype, {constructor: {configurable: true, writable: true, value: ClarityIconElement}});\n\nClarityIconElement.prototype.constructor = ClarityIconElement;\n\nconst generateIcon = function(element: any, shape: string) {\n shape = shape.split(/\\s/)[0];\n\n if (shape !== element._shape) {\n element._shape = shape;\n\n // shape exists in set\n if (ClarityIconsApi.instance.has(shape)) {\n element.innerHTML = ClarityIconsApi.instance.get(shape);\n } else {\n console.error(`'${shape}' is not found in the Clarity Icons set.`);\n element.innerHTML = ClarityIconsApi.instance.get(\"error\");\n }\n }\n};\n\nconst setIconSize = function(element: any, size: string) {\n if (!Number(size) || Number(size) < 0) {\n element.style.width = null; // fallback to the original stylesheet value\n element.style.height = null; // fallback to the original stylesheet value\n } else {\n element.style.width = size + \"px\";\n element.style.height = size + \"px\";\n }\n};\n\nClarityIconElement.prototype.connectedCallback = function() {\n const host = this as HTMLElement;\n\n if (host.hasAttribute(\"shape\")) {\n generateIcon(host, host.getAttribute(\"shape\"));\n }\n\n if (host.hasAttribute(\"size\")) {\n setIconSize(host, host.getAttribute(\"size\"));\n }\n};\n\nClarityIconElement.prototype.attributeChangedCallback = function(attributeName: string, oldValue: string,\n newValue: string) {\n const host = this as HTMLElement;\n\n if (attributeName === \"shape\") {\n generateIcon(host, newValue);\n }\n if (attributeName === \"size\") {\n setIconSize(host, newValue);\n }\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/clarity-icons/clarity-icons-element.ts"],"sourceRoot":""}