{"version":3,"sources":["webpack:///./node_modules/aurelia-fontawesome/dist/native-modules/plugin-icon-visitor.js","webpack:///./node_modules/aurelia-fontawesome/dist/native-modules/icon-configuration-visitor.js","webpack:///./node_modules/aurelia-fontawesome/dist/native-modules/index.js","webpack:///./node_modules/aurelia-fontawesome/dist/native-modules/utils.js","webpack:///./node_modules/aurelia-fontawesome/dist/native-modules/converter.js","webpack:///./node_modules/aurelia-fontawesome/dist/native-modules/font-awesome-icon.js"],"names":["IconVisitorInjectionKey","PluginIconVisitor","_visitors","this","inject","of","prototype","visit","iconElement","_i","_a","length","defaultIconOptions","border","className","fixedWidth","flip","icon","inverse","listItem","mask","prefix","pull","pulse","rotation","size","spin","stack","style","symbol","title","transform","IconConfigurationVisitor","iconOptions","_logger","getLogger","_overrideOptions","key","overrideValue","error","configure","aurelia","options","globalResources","icons","add","apply","warn","container","registerSingleton","registerInstance","objectWithKey","value","Array","isArray","convert","createElement","element","children","map","child","$el","tag","attributes","Object","keys","attr","setAttribute","forEach","c","textContent","appendChild","__assign","assign","t","s","i","n","arguments","p","hasOwnProperty","call","__decorate","decorators","target","desc","d","r","getOwnPropertyDescriptor","Reflect","decorate","defineProperty","__metadata","k","v","metadata","__spreadArrays","il","a","j","jl","normalizeIconArgs","iconName","FontAwesomeIconCustomElement","$element","_container","_resources","_compiler","_slot","_visitor","logger","_iconhtml","bind","bindingContext","_","_bindingContext","attached","createIcon","propertyChanged","prop","renderIcon","getOtherAttributes","attrs","otherAttrs","ignore","name","indexOf","classes","classObj","filter","split","otherIconParams","renderedIcon","iconLookup","styles","$icon","abstract","view","compile","outerHTML","create","removeAll","unbind","detached","Element","Boolean","String","Number"],"mappings":"4FAAA,iGACWA,EAA0B,sCACjCC,EAAqB,WACrB,SAASA,EAAkBC,GACvBC,KAAKD,UAAYA,EAWrB,OATAD,EAAkBG,OAAS,WACvB,MAAO,CAAC,IAAIC,GAAGL,KAEnBC,EAAkBK,UAAUC,MAAQ,SAAUC,GAC1C,IAAK,IA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afc.c2e17c5be0e0474ca0ea.chunk.js","sourcesContent":["import { All } from \"aurelia-framework\";\nexport var IconVisitorInjectionKey = \"FontAwesomeIconCustomElementVisitor\";\nvar PluginIconVisitor = (function () {\n function PluginIconVisitor(_visitors) {\n this._visitors = _visitors;\n }\n PluginIconVisitor.inject = function () {\n return [All.of(IconVisitorInjectionKey)];\n };\n PluginIconVisitor.prototype.visit = function (iconElement) {\n for (var _i = 0, _a = this._visitors; _i < _a.length; _i++) {\n var visitor = _a[_i];\n visitor.visit(iconElement);\n }\n };\n return PluginIconVisitor;\n}());\nexport { PluginIconVisitor };\n","import { LogManager } from \"aurelia-framework\";\nvar defaultIconOptions = {\n border: false,\n className: \"\",\n fixedWidth: false,\n flip: null,\n icon: null,\n inverse: false,\n listItem: false,\n mask: null,\n prefix: \"fas\",\n pull: null,\n pulse: false,\n rotation: null,\n size: null,\n spin: false,\n stack: null,\n style: {},\n symbol: null,\n title: \"\",\n transform: \"\"\n};\nvar IconConfigurationVisitor = (function () {\n function IconConfigurationVisitor(iconOptions) {\n this.iconOptions = iconOptions;\n this._logger = LogManager.getLogger(\"aurelia-fontawesome\");\n this._overrideOptions = iconOptions || {};\n }\n IconConfigurationVisitor.prototype.visit = function (iconElement) {\n if (!iconElement) {\n this._logger.error(\"IconConfigurationVisitor: icon could not be configured because \" +\n \"it was not passed into the `visit()` method\");\n }\n else {\n for (var key in defaultIconOptions) {\n var overrideValue = this._overrideOptions[key];\n iconElement[key] =\n typeof overrideValue !== \"undefined\"\n ? overrideValue\n : defaultIconOptions[key];\n }\n }\n };\n return IconConfigurationVisitor;\n}());\nexport { IconConfigurationVisitor };\n","import { LogManager } from \"aurelia-framework\";\nimport { PLATFORM } from \"aurelia-pal\";\nimport { library } from \"@fortawesome/fontawesome-svg-core\";\nimport { IconConfigurationVisitor } from \"./icon-configuration-visitor\";\nimport { IconVisitorInjectionKey, PluginIconVisitor } from \"./plugin-icon-visitor\";\nexport function configure(aurelia, options) {\n aurelia.globalResources([PLATFORM.moduleName(\"./font-awesome-icon\")]);\n if (options && options.icons && options.icons.length !== 0) {\n library.add.apply(library, options.icons);\n }\n else {\n LogManager.getLogger(\"aurelia-fontawesome\").warn('No icons loaded. You must use \"Explicit Loading\" or call use ' +\n \"`library.add()` on the font awesome Library interface\");\n }\n aurelia.container.registerSingleton(PluginIconVisitor, PluginIconVisitor);\n if (options && options.iconOptions) {\n aurelia.container.registerInstance(IconVisitorInjectionKey, new IconConfigurationVisitor(options.iconOptions));\n }\n}\n","export function objectWithKey(key, value) {\n var _a;\n return (Array.isArray(value) && value.length > 0) ||\n (!Array.isArray(value) && value)\n ? (_a = {}, _a[key] = value, _a) : {};\n}\n","function convert(createElement, element) {\n var children = (element.children || []).map(function (child) {\n if (typeof child === \"string\") {\n return child;\n }\n return convert(createElement, child);\n });\n var $el = createElement(element.tag);\n if (element.attributes) {\n for (var _i = 0, _a = Object.keys(element.attributes); _i < _a.length; _i++) {\n var attr = _a[_i];\n $el.setAttribute(attr, element.attributes[attr]);\n }\n }\n children.forEach(function (c) {\n return typeof c === \"string\" ? ($el.textContent = c) : $el.appendChild(c);\n });\n return $el;\n}\nexport default convert;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\nimport { DOM } from \"aurelia-pal\";\nimport { LogManager, customElement, bindable, ViewCompiler, ViewResources, ViewSlot, Container, noView } from \"aurelia-framework\";\nimport { icon, parse } from \"@fortawesome/fontawesome-svg-core\";\nimport { objectWithKey } from \"./utils\";\nimport convert from \"./converter\";\nimport { PluginIconVisitor } from \"./plugin-icon-visitor\";\nfunction normalizeIconArgs(icon, prefix) {\n if (icon == null) {\n return null;\n }\n if (typeof icon === \"object\" &&\n icon.prefix &&\n icon.iconName) {\n return icon;\n }\n if (Array.isArray(icon) && icon.length === 2) {\n return { prefix: icon[0], iconName: icon[1] };\n }\n if (typeof icon === \"string\") {\n return { prefix: prefix, iconName: icon };\n }\n return null;\n}\nvar FontAwesomeIconCustomElement = (function () {\n function FontAwesomeIconCustomElement($element, _container, _resources, _compiler, _slot, _visitor) {\n this.$element = $element;\n this._container = _container;\n this._resources = _resources;\n this._compiler = _compiler;\n this._slot = _slot;\n this.logger = LogManager.getLogger(\"aurelia-fontawesome\");\n this._iconhtml = \"\";\n _visitor.visit(this);\n }\n FontAwesomeIconCustomElement.prototype.bind = function (bindingContext, _) {\n this._bindingContext = bindingContext;\n };\n FontAwesomeIconCustomElement.prototype.attached = function () {\n this.createIcon();\n };\n FontAwesomeIconCustomElement.prototype.propertyChanged = function (prop) {\n if (prop === \"icon\" || prop === \"prefix\") {\n this.createIcon();\n }\n else {\n this.renderIcon();\n }\n };\n FontAwesomeIconCustomElement.prototype.getOtherAttributes = function () {\n var attrs = this.$element.attributes;\n var otherAttrs = {};\n var ignore = [\"class\", \"style\"];\n for (var i = attrs.length - 1; i >= 0; i--) {\n if (attrs[i].name.indexOf(\"au-\") === -1 &&\n ignore.indexOf(attrs[i].name) === -1 &&\n attrs[i].name.indexOf(\".\") === -1 &&\n !(attrs[i].name in this)) {\n otherAttrs[attrs[i].name] = attrs[i].value;\n }\n }\n return otherAttrs;\n };\n FontAwesomeIconCustomElement.prototype.renderIcon = function () {\n var _a;\n var classes = (_a = {\n \"fa-border\": this.border,\n \"fa-flip-horizontal\": this.flip === \"horizontal\" || this.flip === \"both\",\n \"fa-flip-vertical\": this.flip === \"vertical\" || this.flip === \"both\",\n \"fa-fw\": this.fixedWidth,\n \"fa-inverse\": this.inverse,\n \"fa-li\": this.listItem,\n \"fa-pulse\": this.pulse,\n \"fa-spin\": this.spin\n },\n _a[\"fa-\" + this.size] = !!this.size,\n _a[\"fa-pull-\" + this.pull] = !!this.pull,\n _a[\"fa-rotate-\" + this.rotation] = !!this.rotation,\n _a[\"fa-stack-\" + this.stack] = !!this.stack,\n _a);\n var classObj = objectWithKey(\"classes\", __spreadArrays(Object.keys(classes).filter(function (key) { return classes[key]; }), (this.className ? this.className.split(\" \") : [])));\n var otherIconParams = __assign(__assign({}, objectWithKey(\"mask\", normalizeIconArgs(this.mask, this.prefix))), objectWithKey(\"transform\", typeof this.transform === \"string\"\n ? parse.transform(this.transform)\n : this.transform));\n var renderedIcon = icon(this.iconLookup, __assign(__assign(__assign({}, classObj), otherIconParams), { attributes: this.getOtherAttributes(), styles: this.style, symbol: this.symbol, title: this.title }));\n if (!renderedIcon) {\n this.logger.error(\"Could not find icon\", this.iconLookup);\n }\n else {\n var $icon = convert(DOM.createElement.bind(DOM), renderedIcon.abstract[0]);\n var factory = this._compiler.compile(\"\", this._resources);\n var view = factory.create(this._container, this._bindingContext);\n this._slot.removeAll();\n this._slot.add(view);\n }\n };\n FontAwesomeIconCustomElement.prototype.unbind = function () {\n this._slot.unbind();\n };\n FontAwesomeIconCustomElement.prototype.detached = function () {\n this._slot.detached();\n this._slot.removeAll();\n };\n FontAwesomeIconCustomElement.prototype.createIcon = function () {\n this.iconLookup = normalizeIconArgs(this.icon, this.prefix);\n if (this.iconLookup !== null) {\n this.renderIcon();\n }\n else {\n this.logger.error(\"Bound icon prop is either unsupported or null\", this.icon);\n }\n };\n FontAwesomeIconCustomElement.inject = [\n Element,\n Container,\n ViewResources,\n ViewCompiler,\n ViewSlot,\n PluginIconVisitor\n ];\n __decorate([\n bindable,\n __metadata(\"design:type\", Boolean)\n ], FontAwesomeIconCustomElement.prototype, \"border\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", String)\n ], FontAwesomeIconCustomElement.prototype, \"className\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", Boolean)\n ], FontAwesomeIconCustomElement.prototype, \"fixedWidth\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", String)\n ], FontAwesomeIconCustomElement.prototype, \"flip\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", Object)\n ], FontAwesomeIconCustomElement.prototype, \"icon\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", Boolean)\n ], FontAwesomeIconCustomElement.prototype, \"inverse\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", Boolean)\n ], FontAwesomeIconCustomElement.prototype, \"listItem\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", Object)\n ], FontAwesomeIconCustomElement.prototype, \"mask\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", String)\n ], FontAwesomeIconCustomElement.prototype, \"pull\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", Boolean)\n ], FontAwesomeIconCustomElement.prototype, \"pulse\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", Number)\n ], FontAwesomeIconCustomElement.prototype, \"rotation\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", String)\n ], FontAwesomeIconCustomElement.prototype, \"size\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", Boolean)\n ], FontAwesomeIconCustomElement.prototype, \"spin\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", Object)\n ], FontAwesomeIconCustomElement.prototype, \"style\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", Object)\n ], FontAwesomeIconCustomElement.prototype, \"symbol\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", String)\n ], FontAwesomeIconCustomElement.prototype, \"title\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", Object)\n ], FontAwesomeIconCustomElement.prototype, \"transform\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", String)\n ], FontAwesomeIconCustomElement.prototype, \"stack\", void 0);\n __decorate([\n bindable,\n __metadata(\"design:type\", String)\n ], FontAwesomeIconCustomElement.prototype, \"prefix\", void 0);\n FontAwesomeIconCustomElement = __decorate([\n customElement(\"font-awesome-icon\"),\n noView(),\n __metadata(\"design:paramtypes\", [Element,\n Container,\n ViewResources,\n ViewCompiler,\n ViewSlot, Object])\n ], FontAwesomeIconCustomElement);\n return FontAwesomeIconCustomElement;\n}());\nexport { FontAwesomeIconCustomElement };\n"],"sourceRoot":""}