@aquera/nile-elements 0.0.1-beta.1 → 0.0.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- System.register(["tslib","lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/unsafe-svg.js","lit/directives/unsafe-html.js","./icons/svg/index.cjs.js","./icons/svg/access-review.cjs.js","./icons/svg/action.cjs.js","./icons/svg/actionworkflow.cjs.js","./icons/svg/agents.cjs.js","./icons/svg/aggregation.cjs.js","./icons/svg/allsearch.cjs.js","./icons/svg/application.cjs.js","./icons/svg/approve.cjs.js","./icons/svg/arrowdown.cjs.js","./icons/svg/arrowleft.cjs.js","./icons/svg/arrowright.cjs.js","./icons/svg/arrowup.cjs.js","./icons/svg/attributemap.cjs.js","./icons/svg/bell.cjs.js","./icons/svg/boolean.cjs.js","./icons/svg/bulk-sync.cjs.js","./icons/svg/button-loading-black.cjs.js","./icons/svg/button-loading-blue.cjs.js","./icons/svg/button-loading-white.cjs.js","./icons/svg/calendar.cjs.js","./icons/svg/caution.cjs.js","./icons/svg/close.cjs.js","./icons/svg/collapse-1.cjs.js","./icons/svg/collapse.cjs.js","./icons/svg/compact.cjs.js","./icons/svg/compare-tiles.cjs.js","./icons/svg/component-menu.cjs.js","./icons/svg/connect.cjs.js","./icons/svg/copy.cjs.js","./icons/svg/correlation.cjs.js","./icons/svg/dashboard.cjs.js","./icons/svg/database.cjs.js","./icons/svg/databaseview.cjs.js","./icons/svg/default-1.cjs.js","./icons/svg/default.cjs.js","./icons/svg/directory.cjs.js","./icons/svg/disabled.cjs.js","./icons/svg/document.cjs.js","./icons/svg/done.cjs.js","./icons/svg/download.cjs.js","./icons/svg/drag.cjs.js","./icons/svg/draglist.cjs.js","./icons/svg/enable.cjs.js","./icons/svg/entitlement.cjs.js","./icons/svg/error.cjs.js","./icons/svg/escalate.cjs.js","./icons/svg/event.cjs.js","./icons/svg/exactmatch.cjs.js","./icons/svg/expand-1.cjs.js","./icons/svg/expand.cjs.js","./icons/svg/eye.cjs.js","./icons/svg/eyeclosed.cjs.js","./icons/svg/filter.cjs.js","./icons/svg/firewall.cjs.js","./icons/svg/flow-h.cjs.js","./icons/svg/flow.cjs.js","./icons/svg/flowmap.cjs.js","./icons/svg/folder.cjs.js","./icons/svg/frequency.cjs.js","./icons/svg/fullscreen.cjs.js","./icons/svg/fullscreenshrink.cjs.js","./icons/svg/generation-phase.cjs.js","./icons/svg/global-search.cjs.js","./icons/svg/goto.cjs.js","./icons/svg/groupby.cjs.js","./icons/svg/guide.cjs.js","./icons/svg/helpsupport.cjs.js","./icons/svg/help-1.cjs.js","./icons/svg/help.cjs.js","./icons/svg/history.cjs.js","./icons/svg/identityledger.cjs.js","./icons/svg/ifelse.cjs.js","./icons/svg/image.cjs.js","./icons/svg/info.cjs.js","./icons/svg/info2.cjs.js","./icons/svg/js.cjs.js","./icons/svg/link.cjs.js","./icons/svg/loader.cjs.js","./icons/svg/loading.cjs.js","./icons/svg/loading2.cjs.js","./icons/svg/lock.cjs.js","./icons/svg/logs.cjs.js","./icons/svg/manage.cjs.js","./icons/svg/map.cjs.js","./icons/svg/mapcreate.cjs.js","./icons/svg/mapdont.cjs.js","./icons/svg/mapupdate.cjs.js","./icons/svg/maximize.cjs.js","./icons/svg/minus.cjs.js","./icons/svg/moveleft.cjs.js","./icons/svg/moveright.cjs.js","./icons/svg/mute.cjs.js","./icons/svg/nomatch.cjs.js","./icons/svg/not.cjs.js","./icons/svg/note.cjs.js","./icons/svg/notificationadd.cjs.js","./icons/svg/notificationadded.cjs.js","./icons/svg/null.cjs.js","./icons/svg/number.cjs.js","./icons/svg/options.cjs.js","./icons/svg/orchestration.cjs.js","./icons/svg/partner.cjs.js","./icons/svg/pencil.cjs.js","./icons/svg/people-task.cjs.js","./icons/svg/pin.cjs.js","./icons/svg/plus.cjs.js","./icons/svg/potentialmatch.cjs.js","./icons/svg/poweron.cjs.js","./icons/svg/privilage.cjs.js","./icons/svg/radio.cjs.js","./icons/svg/radioactive.cjs.js","./icons/svg/radiodone.cjs.js","./icons/svg/readexpression.cjs.js","./icons/svg/readonly.cjs.js","./icons/svg/redo.cjs.js","./icons/svg/refresh.cjs.js","./icons/svg/reminder.cjs.js","./icons/svg/resource.cjs.js","./icons/svg/revokation-cycle.cjs.js","./icons/svg/role.cjs.js","./icons/svg/run.cjs.js","./icons/svg/save.cjs.js","./icons/svg/schedule.cjs.js","./icons/svg/script.cjs.js","./icons/svg/search.cjs.js","./icons/svg/select.cjs.js","./icons/svg/selectapplication.cjs.js","./icons/svg/selectattributes.cjs.js","./icons/svg/selectuser.cjs.js","./icons/svg/send.cjs.js","./icons/svg/settings.cjs.js","./icons/svg/sort.cjs.js","./icons/svg/stop.cjs.js","./icons/svg/string.cjs.js","./icons/svg/sync.cjs.js","./icons/svg/test.cjs.js","./icons/svg/textarea-expander.cjs.js","./icons/svg/tick.cjs.js","./icons/svg/timeupdate.cjs.js","./icons/svg/timezone.cjs.js","./icons/svg/trash.cjs.js","./icons/svg/undo-1.cjs.js","./icons/svg/undo.cjs.js","./icons/svg/unmute.cjs.js","./icons/svg/upgrade.cjs.js","./icons/svg/upload.cjs.js","./icons/svg/user-group.cjs.js","./icons/svg/user.cjs.js","./icons/svg/useractive.cjs.js","./icons/svg/useradd.cjs.js","./icons/svg/useraddgroup.cjs.js","./icons/svg/userfind.cjs.js","./icons/svg/userimport.cjs.js","./icons/svg/userimportgroup.cjs.js","./icons/svg/usermixed.cjs.js","./icons/svg/userremove-1.cjs.js","./icons/svg/userremove-2.cjs.js","./icons/svg/userremove.cjs.js","./icons/svg/userremovegroup.cjs.js","./icons/svg/userupdate.cjs.js","./icons/svg/users.cjs.js","./icons/svg/validationexpression.cjs.js","./icons/svg/variable-new-1.cjs.js","./icons/svg/variable-new.cjs.js","./icons/svg/variable-global.cjs.js","./icons/svg/variable-local-1.cjs.js","./icons/svg/variable-local.cjs.js","./icons/svg/variable.cjs.js","./icons/svg/video.cjs.js","./icons/svg/warning.cjs.js","./icons/svg/whileloop.cjs.js","./icons/svg/workflow.cjs.js","./icons/svg/writeexpression.cjs.js","./icons/svg/back.cjs.js","./icons/svg/downgrade.cjs.js","./icons/svg/globe.cjs.js","./icons/svg/phone.cjs.js","./icons/svg/storybook.cjs.js","./icons/svg/swap.cjs.js"],function(_export,_context){"use strict";var s,i,o,c,t,r,j,n,e,p,g,_templateObject,_templateObject2,_templateObject3,_templateObject4,v,m;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==typeof value&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}return{setters:[function(_tslib){s=_tslib.__decorate;},function(_lit){i=_lit.css;o=_lit.LitElement;c=_lit.html;},function(_litDecoratorsJs){t=_litDecoratorsJs.property;r=_litDecoratorsJs.state;j=_litDecoratorsJs.customElement;},function(_litDirectivesClassMapJs){n=_litDirectivesClassMapJs.classMap;},function(_litDirectivesUnsafeSvgJs){e=_litDirectivesUnsafeSvgJs.unsafeSVG;},function(_litDirectivesUnsafeHtmlJs){p=_litDirectivesUnsafeHtmlJs.unsafeHTML;},function(_iconsSvgIndexCjsJs){g=_iconsSvgIndexCjsJs.I;},function(_iconsSvgAccessReviewCjsJs){},function(_iconsSvgActionCjsJs){},function(_iconsSvgActionworkflowCjsJs){},function(_iconsSvgAgentsCjsJs){},function(_iconsSvgAggregationCjsJs){},function(_iconsSvgAllsearchCjsJs){},function(_iconsSvgApplicationCjsJs){},function(_iconsSvgApproveCjsJs){},function(_iconsSvgArrowdownCjsJs){},function(_iconsSvgArrowleftCjsJs){},function(_iconsSvgArrowrightCjsJs){},function(_iconsSvgArrowupCjsJs){},function(_iconsSvgAttributemapCjsJs){},function(_iconsSvgBellCjsJs){},function(_iconsSvgBooleanCjsJs){},function(_iconsSvgBulkSyncCjsJs){},function(_iconsSvgButtonLoadingBlackCjsJs){},function(_iconsSvgButtonLoadingBlueCjsJs){},function(_iconsSvgButtonLoadingWhiteCjsJs){},function(_iconsSvgCalendarCjsJs){},function(_iconsSvgCautionCjsJs){},function(_iconsSvgCloseCjsJs){},function(_iconsSvgCollapse1CjsJs){},function(_iconsSvgCollapseCjsJs){},function(_iconsSvgCompactCjsJs){},function(_iconsSvgCompareTilesCjsJs){},function(_iconsSvgComponentMenuCjsJs){},function(_iconsSvgConnectCjsJs){},function(_iconsSvgCopyCjsJs){},function(_iconsSvgCorrelationCjsJs){},function(_iconsSvgDashboardCjsJs){},function(_iconsSvgDatabaseCjsJs){},function(_iconsSvgDatabaseviewCjsJs){},function(_iconsSvgDefault1CjsJs){},function(_iconsSvgDefaultCjsJs){},function(_iconsSvgDirectoryCjsJs){},function(_iconsSvgDisabledCjsJs){},function(_iconsSvgDocumentCjsJs){},function(_iconsSvgDoneCjsJs){},function(_iconsSvgDownloadCjsJs){},function(_iconsSvgDragCjsJs){},function(_iconsSvgDraglistCjsJs){},function(_iconsSvgEnableCjsJs){},function(_iconsSvgEntitlementCjsJs){},function(_iconsSvgErrorCjsJs){},function(_iconsSvgEscalateCjsJs){},function(_iconsSvgEventCjsJs){},function(_iconsSvgExactmatchCjsJs){},function(_iconsSvgExpand1CjsJs){},function(_iconsSvgExpandCjsJs){},function(_iconsSvgEyeCjsJs){},function(_iconsSvgEyeclosedCjsJs){},function(_iconsSvgFilterCjsJs){},function(_iconsSvgFirewallCjsJs){},function(_iconsSvgFlowHCjsJs){},function(_iconsSvgFlowCjsJs){},function(_iconsSvgFlowmapCjsJs){},function(_iconsSvgFolderCjsJs){},function(_iconsSvgFrequencyCjsJs){},function(_iconsSvgFullscreenCjsJs){},function(_iconsSvgFullscreenshrinkCjsJs){},function(_iconsSvgGenerationPhaseCjsJs){},function(_iconsSvgGlobalSearchCjsJs){},function(_iconsSvgGotoCjsJs){},function(_iconsSvgGroupbyCjsJs){},function(_iconsSvgGuideCjsJs){},function(_iconsSvgHelpsupportCjsJs){},function(_iconsSvgHelp1CjsJs){},function(_iconsSvgHelpCjsJs){},function(_iconsSvgHistoryCjsJs){},function(_iconsSvgIdentityledgerCjsJs){},function(_iconsSvgIfelseCjsJs){},function(_iconsSvgImageCjsJs){},function(_iconsSvgInfoCjsJs){},function(_iconsSvgInfo2CjsJs){},function(_iconsSvgJsCjsJs){},function(_iconsSvgLinkCjsJs){},function(_iconsSvgLoaderCjsJs){},function(_iconsSvgLoadingCjsJs){},function(_iconsSvgLoading2CjsJs){},function(_iconsSvgLockCjsJs){},function(_iconsSvgLogsCjsJs){},function(_iconsSvgManageCjsJs){},function(_iconsSvgMapCjsJs){},function(_iconsSvgMapcreateCjsJs){},function(_iconsSvgMapdontCjsJs){},function(_iconsSvgMapupdateCjsJs){},function(_iconsSvgMaximizeCjsJs){},function(_iconsSvgMinusCjsJs){},function(_iconsSvgMoveleftCjsJs){},function(_iconsSvgMoverightCjsJs){},function(_iconsSvgMuteCjsJs){},function(_iconsSvgNomatchCjsJs){},function(_iconsSvgNotCjsJs){},function(_iconsSvgNoteCjsJs){},function(_iconsSvgNotificationaddCjsJs){},function(_iconsSvgNotificationaddedCjsJs){},function(_iconsSvgNullCjsJs){},function(_iconsSvgNumberCjsJs){},function(_iconsSvgOptionsCjsJs){},function(_iconsSvgOrchestrationCjsJs){},function(_iconsSvgPartnerCjsJs){},function(_iconsSvgPencilCjsJs){},function(_iconsSvgPeopleTaskCjsJs){},function(_iconsSvgPinCjsJs){},function(_iconsSvgPlusCjsJs){},function(_iconsSvgPotentialmatchCjsJs){},function(_iconsSvgPoweronCjsJs){},function(_iconsSvgPrivilageCjsJs){},function(_iconsSvgRadioCjsJs){},function(_iconsSvgRadioactiveCjsJs){},function(_iconsSvgRadiodoneCjsJs){},function(_iconsSvgReadexpressionCjsJs){},function(_iconsSvgReadonlyCjsJs){},function(_iconsSvgRedoCjsJs){},function(_iconsSvgRefreshCjsJs){},function(_iconsSvgReminderCjsJs){},function(_iconsSvgResourceCjsJs){},function(_iconsSvgRevokationCycleCjsJs){},function(_iconsSvgRoleCjsJs){},function(_iconsSvgRunCjsJs){},function(_iconsSvgSaveCjsJs){},function(_iconsSvgScheduleCjsJs){},function(_iconsSvgScriptCjsJs){},function(_iconsSvgSearchCjsJs){},function(_iconsSvgSelectCjsJs){},function(_iconsSvgSelectapplicationCjsJs){},function(_iconsSvgSelectattributesCjsJs){},function(_iconsSvgSelectuserCjsJs){},function(_iconsSvgSendCjsJs){},function(_iconsSvgSettingsCjsJs){},function(_iconsSvgSortCjsJs){},function(_iconsSvgStopCjsJs){},function(_iconsSvgStringCjsJs){},function(_iconsSvgSyncCjsJs){},function(_iconsSvgTestCjsJs){},function(_iconsSvgTextareaExpanderCjsJs){},function(_iconsSvgTickCjsJs){},function(_iconsSvgTimeupdateCjsJs){},function(_iconsSvgTimezoneCjsJs){},function(_iconsSvgTrashCjsJs){},function(_iconsSvgUndo1CjsJs){},function(_iconsSvgUndoCjsJs){},function(_iconsSvgUnmuteCjsJs){},function(_iconsSvgUpgradeCjsJs){},function(_iconsSvgUploadCjsJs){},function(_iconsSvgUserGroupCjsJs){},function(_iconsSvgUserCjsJs){},function(_iconsSvgUseractiveCjsJs){},function(_iconsSvgUseraddCjsJs){},function(_iconsSvgUseraddgroupCjsJs){},function(_iconsSvgUserfindCjsJs){},function(_iconsSvgUserimportCjsJs){},function(_iconsSvgUserimportgroupCjsJs){},function(_iconsSvgUsermixedCjsJs){},function(_iconsSvgUserremove1CjsJs){},function(_iconsSvgUserremove2CjsJs){},function(_iconsSvgUserremoveCjsJs){},function(_iconsSvgUserremovegroupCjsJs){},function(_iconsSvgUserupdateCjsJs){},function(_iconsSvgUsersCjsJs){},function(_iconsSvgValidationexpressionCjsJs){},function(_iconsSvgVariableNew1CjsJs){},function(_iconsSvgVariableNewCjsJs){},function(_iconsSvgVariableGlobalCjsJs){},function(_iconsSvgVariableLocal1CjsJs){},function(_iconsSvgVariableLocalCjsJs){},function(_iconsSvgVariableCjsJs){},function(_iconsSvgVideoCjsJs){},function(_iconsSvgWarningCjsJs){},function(_iconsSvgWhileloopCjsJs){},function(_iconsSvgWorkflowCjsJs){},function(_iconsSvgWriteexpressionCjsJs){},function(_iconsSvgBackCjsJs){},function(_iconsSvgDowngradeCjsJs){},function(_iconsSvgGlobeCjsJs){},function(_iconsSvgPhoneCjsJs){},function(_iconsSvgStorybookCjsJs){},function(_iconsSvgSwapCjsJs){}],execute:function(){v=g;m=/*#__PURE__*/function(_o){_inherits(m,_o);var _super=_createSuper(m);function m(){var _this;_classCallCheck(this,m);_this=_super.apply(this,arguments),_this.set="local",_this.description="",_this.size=16,_this._svg="",_this.title="agents",_this.color="#7F7F7F",_this.push=!1,_this.frame=16;return _this;}_createClass(m,[{key:"_getIconSize",value:function _getIconSize(){var _this$name;return(_this$name=this.name)!==null&&_this$name!==void 0&&_this$name.endsWith("-small")?16:24;}},{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(s){var _s;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(!(s.has("size")&&(this.style.setProperty("--nile-svg-height","".concat(this.size,"px")),this.style.setProperty("--nile-svg-width","".concat(this.size,"px"))),s.has("color")&&this.style.setProperty("--nile-svg-stroke","".concat(this.color)),s.has("name")||s.has("customSvgPath"))){_context2.next=11;break;}_s=this.name?this.removeHyphens(this.name):void 0;if(!(_s&&v[_s])){_context2.next=6;break;}this._svg=atob(v[_s]);_context2.next=11;break;case 6:if(this.customSvgPath){_context2.next=8;break;}throw new Error("No icon named \"".concat(this.name,"\""));case 8:_context2.next=10;return this.fetchSvg(this.customSvgPath);case 10:this._svg=_context2.sent;case 11:case"end":return _context2.stop();}},_callee,this);}));function updated(_x){return _updated.apply(this,arguments);}return updated;}()},{key:"fetchSvg",value:function(){var _fetchSvg=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s){var i;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return fetch(s);case 2:i=_context3.sent;if(i.ok){_context3.next=5;break;}throw new Error("HTTP error! status: ".concat(i.status));case 5:_context3.next=7;return i.text();case 7:return _context3.abrupt("return",_context3.sent);case 8:case"end":return _context3.stop();}},_callee2);}));function fetchSvg(_x2){return _fetchSvg.apply(this,arguments);}return fetchSvg;}()},{key:"removeHyphens",value:function removeHyphens(s){return s.replace(/-/g,"");}},{key:"buttonClassMap",get:function get(){return{"nds-icon--push":this.push};}},{key:"render",value:function render(){var s=this.size,i=this.color,o=this.frame?"0 0 ".concat(this.frame," ").concat(this.frame):"0 0 16 16";return c(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <span class=\"nds-icon ","\">\n ","\n </span>\n "])),n(this.buttonClassMap),this.customSvgPath?c(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["",""])),p(this._svg)):c(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n version=\"1.1\"\n viewBox=\"","\"\n class=\"icon ","\"\n role=\"img\"\n aria-hidden=","\n aria-label=","\n height=\"","\"\n width=\"","\"\n focusable=\"true\"\n fill=\"","\"\n >\n ","\n </svg>"])),o,n(this.buttonClassMap),""===this.description,this.description||"",s,s,i,e(this._svg)));}}]);return m;}(o);m.styles=i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n contain: content;\n\n --nile-svg-stroke: #7F7F7F;\n --nile-svg-stroke-width: 1px;\n --nile-svg-height: 16px;\n --nile-svg-width: 16px;\n }\n\n .nds-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .nds-icon--push {\n margin-right: 12px;\n }\n\n svg {\n stroke: var(--nile-svg-stroke);\n stroke-width: var(--nile-svg-stroke-width);\n height: var(--nile-svg-height);\n width: var(--nile-svg-width);\n }\n "]))),s([t({type:String,reflect:!0})],m.prototype,"set",void 0),s([t({type:String,reflect:!0})],m.prototype,"name",void 0),s([t({type:String,reflect:!0})],m.prototype,"description",void 0),s([t({type:String})],m.prototype,"customSvgPath",void 0),s([t({type:String,reflect:!0})],m.prototype,"size",void 0),s([r()],m.prototype,"_svg",void 0),s([t({type:String})],m.prototype,"title",void 0),s([t({reflect:!0})],m.prototype,"color",void 0),s([t({type:Boolean})],m.prototype,"push",void 0),s([t({reflect:!0})],m.prototype,"frame",void 0),m=s([j("nile-icon")],m);}};});
1
+ System.register(["tslib","lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/unsafe-svg.js","lit/directives/unsafe-html.js","./icons/svg/index.cjs.js","./icons/svg/access-review.cjs.js","./icons/svg/action.cjs.js","./icons/svg/actionworkflow.cjs.js","./icons/svg/agents.cjs.js","./icons/svg/aggregation.cjs.js","./icons/svg/allsearch.cjs.js","./icons/svg/application.cjs.js","./icons/svg/approve.cjs.js","./icons/svg/arrowdown.cjs.js","./icons/svg/arrowleft.cjs.js","./icons/svg/arrowright.cjs.js","./icons/svg/arrowup.cjs.js","./icons/svg/attributemap.cjs.js","./icons/svg/bell.cjs.js","./icons/svg/boolean.cjs.js","./icons/svg/bulk-sync.cjs.js","./icons/svg/button-loading-black.cjs.js","./icons/svg/button-loading-blue.cjs.js","./icons/svg/button-loading-white.cjs.js","./icons/svg/calendar.cjs.js","./icons/svg/caution.cjs.js","./icons/svg/close.cjs.js","./icons/svg/collapse-1.cjs.js","./icons/svg/collapse.cjs.js","./icons/svg/compact.cjs.js","./icons/svg/compare-tiles.cjs.js","./icons/svg/component-menu.cjs.js","./icons/svg/connect.cjs.js","./icons/svg/copy.cjs.js","./icons/svg/correlation.cjs.js","./icons/svg/dashboard.cjs.js","./icons/svg/database.cjs.js","./icons/svg/databaseview.cjs.js","./icons/svg/default-1.cjs.js","./icons/svg/default.cjs.js","./icons/svg/directory.cjs.js","./icons/svg/disabled.cjs.js","./icons/svg/document.cjs.js","./icons/svg/done.cjs.js","./icons/svg/download.cjs.js","./icons/svg/drag.cjs.js","./icons/svg/draglist.cjs.js","./icons/svg/enable.cjs.js","./icons/svg/entitlement.cjs.js","./icons/svg/error.cjs.js","./icons/svg/escalate.cjs.js","./icons/svg/event.cjs.js","./icons/svg/exactmatch.cjs.js","./icons/svg/expand-1.cjs.js","./icons/svg/expand.cjs.js","./icons/svg/eye.cjs.js","./icons/svg/eyeclosed.cjs.js","./icons/svg/filter.cjs.js","./icons/svg/firewall.cjs.js","./icons/svg/flow-h.cjs.js","./icons/svg/flow.cjs.js","./icons/svg/flowmap.cjs.js","./icons/svg/folder.cjs.js","./icons/svg/frequency.cjs.js","./icons/svg/fullscreen.cjs.js","./icons/svg/fullscreenshrink.cjs.js","./icons/svg/generation-phase.cjs.js","./icons/svg/global-search.cjs.js","./icons/svg/goto.cjs.js","./icons/svg/groupby.cjs.js","./icons/svg/guide.cjs.js","./icons/svg/helpsupport.cjs.js","./icons/svg/help-1.cjs.js","./icons/svg/help.cjs.js","./icons/svg/history.cjs.js","./icons/svg/identityledger.cjs.js","./icons/svg/ifelse.cjs.js","./icons/svg/image.cjs.js","./icons/svg/info.cjs.js","./icons/svg/info2.cjs.js","./icons/svg/js.cjs.js","./icons/svg/link.cjs.js","./icons/svg/loader.cjs.js","./icons/svg/loading.cjs.js","./icons/svg/loading2.cjs.js","./icons/svg/lock.cjs.js","./icons/svg/logs.cjs.js","./icons/svg/manage.cjs.js","./icons/svg/map.cjs.js","./icons/svg/mapcreate.cjs.js","./icons/svg/mapdont.cjs.js","./icons/svg/mapupdate.cjs.js","./icons/svg/maximize.cjs.js","./icons/svg/minus.cjs.js","./icons/svg/moveleft.cjs.js","./icons/svg/moveright.cjs.js","./icons/svg/mute.cjs.js","./icons/svg/nomatch.cjs.js","./icons/svg/not.cjs.js","./icons/svg/note.cjs.js","./icons/svg/notificationadd.cjs.js","./icons/svg/notificationadded.cjs.js","./icons/svg/null.cjs.js","./icons/svg/number.cjs.js","./icons/svg/options.cjs.js","./icons/svg/orchestration.cjs.js","./icons/svg/partner.cjs.js","./icons/svg/pencil.cjs.js","./icons/svg/people-task.cjs.js","./icons/svg/pin.cjs.js","./icons/svg/plus.cjs.js","./icons/svg/potentialmatch.cjs.js","./icons/svg/poweron.cjs.js","./icons/svg/privilage.cjs.js","./icons/svg/radio.cjs.js","./icons/svg/radioactive.cjs.js","./icons/svg/radiodone.cjs.js","./icons/svg/readexpression.cjs.js","./icons/svg/readonly.cjs.js","./icons/svg/redo.cjs.js","./icons/svg/refresh.cjs.js","./icons/svg/reminder.cjs.js","./icons/svg/resource.cjs.js","./icons/svg/revokation-cycle.cjs.js","./icons/svg/role.cjs.js","./icons/svg/run.cjs.js","./icons/svg/save.cjs.js","./icons/svg/schedule.cjs.js","./icons/svg/script.cjs.js","./icons/svg/search.cjs.js","./icons/svg/select.cjs.js","./icons/svg/selectapplication.cjs.js","./icons/svg/selectattributes.cjs.js","./icons/svg/selectuser.cjs.js","./icons/svg/send.cjs.js","./icons/svg/settings.cjs.js","./icons/svg/sort.cjs.js","./icons/svg/stop.cjs.js","./icons/svg/string.cjs.js","./icons/svg/sync.cjs.js","./icons/svg/test.cjs.js","./icons/svg/textarea-expander.cjs.js","./icons/svg/tick.cjs.js","./icons/svg/timeupdate.cjs.js","./icons/svg/timezone.cjs.js","./icons/svg/trash.cjs.js","./icons/svg/undo-1.cjs.js","./icons/svg/undo.cjs.js","./icons/svg/unmute.cjs.js","./icons/svg/upgrade.cjs.js","./icons/svg/upload.cjs.js","./icons/svg/user-group.cjs.js","./icons/svg/user.cjs.js","./icons/svg/useractive.cjs.js","./icons/svg/useradd.cjs.js","./icons/svg/useraddgroup.cjs.js","./icons/svg/userfind.cjs.js","./icons/svg/userimport.cjs.js","./icons/svg/userimportgroup.cjs.js","./icons/svg/usermixed.cjs.js","./icons/svg/userremove-1.cjs.js","./icons/svg/userremove-2.cjs.js","./icons/svg/userremove.cjs.js","./icons/svg/userremovegroup.cjs.js","./icons/svg/userupdate.cjs.js","./icons/svg/users.cjs.js","./icons/svg/validationexpression.cjs.js","./icons/svg/variable-new-1.cjs.js","./icons/svg/variable-new.cjs.js","./icons/svg/variable-global.cjs.js","./icons/svg/variable-local-1.cjs.js","./icons/svg/variable-local.cjs.js","./icons/svg/variable.cjs.js","./icons/svg/video.cjs.js","./icons/svg/warning.cjs.js","./icons/svg/whileloop.cjs.js","./icons/svg/workflow.cjs.js","./icons/svg/writeexpression.cjs.js","./icons/svg/back.cjs.js","./icons/svg/downgrade.cjs.js","./icons/svg/globe.cjs.js","./icons/svg/phone.cjs.js","./icons/svg/storybook.cjs.js","./icons/svg/swap.cjs.js"],function(_export,_context){"use strict";var s,i,o,c,t,r,j,n,e,p,g,_templateObject,_templateObject2,_templateObject3,_templateObject4,m,v;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==typeof value&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}return{setters:[function(_tslib){s=_tslib.__decorate;},function(_lit){i=_lit.css;o=_lit.LitElement;c=_lit.html;},function(_litDecoratorsJs){t=_litDecoratorsJs.property;r=_litDecoratorsJs.state;j=_litDecoratorsJs.customElement;},function(_litDirectivesClassMapJs){n=_litDirectivesClassMapJs.classMap;},function(_litDirectivesUnsafeSvgJs){e=_litDirectivesUnsafeSvgJs.unsafeSVG;},function(_litDirectivesUnsafeHtmlJs){p=_litDirectivesUnsafeHtmlJs.unsafeHTML;},function(_iconsSvgIndexCjsJs){g=_iconsSvgIndexCjsJs.I;},function(_iconsSvgAccessReviewCjsJs){},function(_iconsSvgActionCjsJs){},function(_iconsSvgActionworkflowCjsJs){},function(_iconsSvgAgentsCjsJs){},function(_iconsSvgAggregationCjsJs){},function(_iconsSvgAllsearchCjsJs){},function(_iconsSvgApplicationCjsJs){},function(_iconsSvgApproveCjsJs){},function(_iconsSvgArrowdownCjsJs){},function(_iconsSvgArrowleftCjsJs){},function(_iconsSvgArrowrightCjsJs){},function(_iconsSvgArrowupCjsJs){},function(_iconsSvgAttributemapCjsJs){},function(_iconsSvgBellCjsJs){},function(_iconsSvgBooleanCjsJs){},function(_iconsSvgBulkSyncCjsJs){},function(_iconsSvgButtonLoadingBlackCjsJs){},function(_iconsSvgButtonLoadingBlueCjsJs){},function(_iconsSvgButtonLoadingWhiteCjsJs){},function(_iconsSvgCalendarCjsJs){},function(_iconsSvgCautionCjsJs){},function(_iconsSvgCloseCjsJs){},function(_iconsSvgCollapse1CjsJs){},function(_iconsSvgCollapseCjsJs){},function(_iconsSvgCompactCjsJs){},function(_iconsSvgCompareTilesCjsJs){},function(_iconsSvgComponentMenuCjsJs){},function(_iconsSvgConnectCjsJs){},function(_iconsSvgCopyCjsJs){},function(_iconsSvgCorrelationCjsJs){},function(_iconsSvgDashboardCjsJs){},function(_iconsSvgDatabaseCjsJs){},function(_iconsSvgDatabaseviewCjsJs){},function(_iconsSvgDefault1CjsJs){},function(_iconsSvgDefaultCjsJs){},function(_iconsSvgDirectoryCjsJs){},function(_iconsSvgDisabledCjsJs){},function(_iconsSvgDocumentCjsJs){},function(_iconsSvgDoneCjsJs){},function(_iconsSvgDownloadCjsJs){},function(_iconsSvgDragCjsJs){},function(_iconsSvgDraglistCjsJs){},function(_iconsSvgEnableCjsJs){},function(_iconsSvgEntitlementCjsJs){},function(_iconsSvgErrorCjsJs){},function(_iconsSvgEscalateCjsJs){},function(_iconsSvgEventCjsJs){},function(_iconsSvgExactmatchCjsJs){},function(_iconsSvgExpand1CjsJs){},function(_iconsSvgExpandCjsJs){},function(_iconsSvgEyeCjsJs){},function(_iconsSvgEyeclosedCjsJs){},function(_iconsSvgFilterCjsJs){},function(_iconsSvgFirewallCjsJs){},function(_iconsSvgFlowHCjsJs){},function(_iconsSvgFlowCjsJs){},function(_iconsSvgFlowmapCjsJs){},function(_iconsSvgFolderCjsJs){},function(_iconsSvgFrequencyCjsJs){},function(_iconsSvgFullscreenCjsJs){},function(_iconsSvgFullscreenshrinkCjsJs){},function(_iconsSvgGenerationPhaseCjsJs){},function(_iconsSvgGlobalSearchCjsJs){},function(_iconsSvgGotoCjsJs){},function(_iconsSvgGroupbyCjsJs){},function(_iconsSvgGuideCjsJs){},function(_iconsSvgHelpsupportCjsJs){},function(_iconsSvgHelp1CjsJs){},function(_iconsSvgHelpCjsJs){},function(_iconsSvgHistoryCjsJs){},function(_iconsSvgIdentityledgerCjsJs){},function(_iconsSvgIfelseCjsJs){},function(_iconsSvgImageCjsJs){},function(_iconsSvgInfoCjsJs){},function(_iconsSvgInfo2CjsJs){},function(_iconsSvgJsCjsJs){},function(_iconsSvgLinkCjsJs){},function(_iconsSvgLoaderCjsJs){},function(_iconsSvgLoadingCjsJs){},function(_iconsSvgLoading2CjsJs){},function(_iconsSvgLockCjsJs){},function(_iconsSvgLogsCjsJs){},function(_iconsSvgManageCjsJs){},function(_iconsSvgMapCjsJs){},function(_iconsSvgMapcreateCjsJs){},function(_iconsSvgMapdontCjsJs){},function(_iconsSvgMapupdateCjsJs){},function(_iconsSvgMaximizeCjsJs){},function(_iconsSvgMinusCjsJs){},function(_iconsSvgMoveleftCjsJs){},function(_iconsSvgMoverightCjsJs){},function(_iconsSvgMuteCjsJs){},function(_iconsSvgNomatchCjsJs){},function(_iconsSvgNotCjsJs){},function(_iconsSvgNoteCjsJs){},function(_iconsSvgNotificationaddCjsJs){},function(_iconsSvgNotificationaddedCjsJs){},function(_iconsSvgNullCjsJs){},function(_iconsSvgNumberCjsJs){},function(_iconsSvgOptionsCjsJs){},function(_iconsSvgOrchestrationCjsJs){},function(_iconsSvgPartnerCjsJs){},function(_iconsSvgPencilCjsJs){},function(_iconsSvgPeopleTaskCjsJs){},function(_iconsSvgPinCjsJs){},function(_iconsSvgPlusCjsJs){},function(_iconsSvgPotentialmatchCjsJs){},function(_iconsSvgPoweronCjsJs){},function(_iconsSvgPrivilageCjsJs){},function(_iconsSvgRadioCjsJs){},function(_iconsSvgRadioactiveCjsJs){},function(_iconsSvgRadiodoneCjsJs){},function(_iconsSvgReadexpressionCjsJs){},function(_iconsSvgReadonlyCjsJs){},function(_iconsSvgRedoCjsJs){},function(_iconsSvgRefreshCjsJs){},function(_iconsSvgReminderCjsJs){},function(_iconsSvgResourceCjsJs){},function(_iconsSvgRevokationCycleCjsJs){},function(_iconsSvgRoleCjsJs){},function(_iconsSvgRunCjsJs){},function(_iconsSvgSaveCjsJs){},function(_iconsSvgScheduleCjsJs){},function(_iconsSvgScriptCjsJs){},function(_iconsSvgSearchCjsJs){},function(_iconsSvgSelectCjsJs){},function(_iconsSvgSelectapplicationCjsJs){},function(_iconsSvgSelectattributesCjsJs){},function(_iconsSvgSelectuserCjsJs){},function(_iconsSvgSendCjsJs){},function(_iconsSvgSettingsCjsJs){},function(_iconsSvgSortCjsJs){},function(_iconsSvgStopCjsJs){},function(_iconsSvgStringCjsJs){},function(_iconsSvgSyncCjsJs){},function(_iconsSvgTestCjsJs){},function(_iconsSvgTextareaExpanderCjsJs){},function(_iconsSvgTickCjsJs){},function(_iconsSvgTimeupdateCjsJs){},function(_iconsSvgTimezoneCjsJs){},function(_iconsSvgTrashCjsJs){},function(_iconsSvgUndo1CjsJs){},function(_iconsSvgUndoCjsJs){},function(_iconsSvgUnmuteCjsJs){},function(_iconsSvgUpgradeCjsJs){},function(_iconsSvgUploadCjsJs){},function(_iconsSvgUserGroupCjsJs){},function(_iconsSvgUserCjsJs){},function(_iconsSvgUseractiveCjsJs){},function(_iconsSvgUseraddCjsJs){},function(_iconsSvgUseraddgroupCjsJs){},function(_iconsSvgUserfindCjsJs){},function(_iconsSvgUserimportCjsJs){},function(_iconsSvgUserimportgroupCjsJs){},function(_iconsSvgUsermixedCjsJs){},function(_iconsSvgUserremove1CjsJs){},function(_iconsSvgUserremove2CjsJs){},function(_iconsSvgUserremoveCjsJs){},function(_iconsSvgUserremovegroupCjsJs){},function(_iconsSvgUserupdateCjsJs){},function(_iconsSvgUsersCjsJs){},function(_iconsSvgValidationexpressionCjsJs){},function(_iconsSvgVariableNew1CjsJs){},function(_iconsSvgVariableNewCjsJs){},function(_iconsSvgVariableGlobalCjsJs){},function(_iconsSvgVariableLocal1CjsJs){},function(_iconsSvgVariableLocalCjsJs){},function(_iconsSvgVariableCjsJs){},function(_iconsSvgVideoCjsJs){},function(_iconsSvgWarningCjsJs){},function(_iconsSvgWhileloopCjsJs){},function(_iconsSvgWorkflowCjsJs){},function(_iconsSvgWriteexpressionCjsJs){},function(_iconsSvgBackCjsJs){},function(_iconsSvgDowngradeCjsJs){},function(_iconsSvgGlobeCjsJs){},function(_iconsSvgPhoneCjsJs){},function(_iconsSvgStorybookCjsJs){},function(_iconsSvgSwapCjsJs){}],execute:function(){m=g;v=/*#__PURE__*/function(_o){_inherits(v,_o);var _super=_createSuper(v);function v(){var _this;_classCallCheck(this,v);_this=_super.apply(this,arguments),_this.set="local",_this.description="",_this.size=16,_this._svg="",_this.title="agents",_this.color="#7F7F7F",_this.push=!1,_this.frame=16;return _this;}_createClass(v,[{key:"_getIconSize",value:function _getIconSize(){var _this$name;return(_this$name=this.name)!==null&&_this$name!==void 0&&_this$name.endsWith("-small")?16:24;}},{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(s){var _s;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(!(s.has("size")&&(this.style.setProperty("--nile-svg-height","".concat(this.size,"px")),this.style.setProperty("--nile-svg-width","".concat(this.size,"px"))),s.has("color")&&this.style.setProperty("--nile-svg-fill","".concat(this.color)),s.has("name")||s.has("customSvgPath"))){_context2.next=11;break;}_s=this.name?this.removeHyphens(this.name):void 0;if(!(_s&&m[_s])){_context2.next=6;break;}this._svg=atob(m[_s]);_context2.next=11;break;case 6:if(this.customSvgPath){_context2.next=8;break;}throw new Error("No icon named \"".concat(this.name,"\""));case 8:_context2.next=10;return this.fetchSvg(this.customSvgPath);case 10:this._svg=_context2.sent;case 11:case"end":return _context2.stop();}},_callee,this);}));function updated(_x){return _updated.apply(this,arguments);}return updated;}()},{key:"fetchSvg",value:function(){var _fetchSvg=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s){var i;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return fetch(s);case 2:i=_context3.sent;if(i.ok){_context3.next=5;break;}throw new Error("HTTP error! status: ".concat(i.status));case 5:_context3.next=7;return i.text();case 7:return _context3.abrupt("return",_context3.sent);case 8:case"end":return _context3.stop();}},_callee2);}));function fetchSvg(_x2){return _fetchSvg.apply(this,arguments);}return fetchSvg;}()},{key:"removeHyphens",value:function removeHyphens(s){return s.replace(/-/g,"");}},{key:"buttonClassMap",get:function get(){return{"nds-icon--push":this.push};}},{key:"render",value:function render(){var s=this.size,i=this.color,o=this.frame?"0 0 ".concat(this.frame," ").concat(this.frame):"0 0 16 16";return c(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <span class=\"nds-icon ","\">\n ","\n </span>\n "])),n(this.buttonClassMap),this.customSvgPath?c(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["",""])),p(this._svg)):c(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n version=\"1.1\"\n viewBox=\"","\"\n class=\"icon ","\"\n role=\"img\"\n aria-hidden=","\n aria-label=","\n height=\"","\"\n width=\"","\"\n focusable=\"true\"\n fill=\"","\"\n >\n ","\n </svg>"])),o,n(this.buttonClassMap),""===this.description,this.description||"",s,s,i,e(this._svg)));}}]);return v;}(o);v.styles=i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n contain: content;\n }\n\n .nds-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .nds-icon svg {\n height: var(--nile-svg-height);\n width: var(--nile-svg-width);\n stroke: var(--nile-svg-stroke);\n stroke-width: var(--nile-svg-stroke-width);\n }\n\n .nds-icon svg path {\n fill: var(--nile-svg-fill);\n }\n\n .nds-icon--push {\n margin-right: 12px;\n }\n "]))),s([t({type:String,reflect:!0})],v.prototype,"set",void 0),s([t({type:String,reflect:!0})],v.prototype,"name",void 0),s([t({type:String,reflect:!0})],v.prototype,"description",void 0),s([t({type:String})],v.prototype,"customSvgPath",void 0),s([t({type:String,reflect:!0})],v.prototype,"size",void 0),s([r()],v.prototype,"_svg",void 0),s([t({type:String})],v.prototype,"title",void 0),s([t({reflect:!0})],v.prototype,"color",void 0),s([t({type:Boolean})],v.prototype,"push",void 0),s([t({reflect:!0})],v.prototype,"frame",void 0),v=s([j("nile-icon")],v);}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../../src/nile-icon/index.ts"],"sourcesContent":["import { LitElement, html, css, PropertyValues } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport type { TemplateResult } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport * as Icons from './icons/svg';\n\ninterface IconPaths {\n [key: string]: string;\n}\n\nconst iconPaths: IconPaths = Icons as IconPaths;\n\nconst SMALL_ICON_SIZE = 16;\nconst LARGE_ICON_SIZE = 24;\n\n/**\n * Nile icon component.\n *\n * @tag nile-icon\n *\n */\n@customElement('nile-icon')\nexport class NileIcon extends LitElement {\n /**\n * The name of the icon set\n * @attr icon set\n * @type {IconName | undefined}\n */\n @property({ type: String, reflect: true })\n public set?: string = 'local';\n\n /**\n * The name of the icon\n * @attr name\n * @type {IconName | undefined}\n */\n @property({ type: String, reflect: true })\n public name?: string;\n\n /**\n * A description of what the icon represents\n * @attr description\n */\n @property({ type: String, reflect: true })\n public description = '';\n\n /**\n * A path to a custom SVG file to display as the icon\n * @attr customSvgPath\n */\n @property({ type: String })\n public customSvgPath?: string;\n\n /**\n * A size of what the icon represents\n * @attr size\n */\n @property({ type: String, reflect: true })\n public size = SMALL_ICON_SIZE;\n\n @state()\n private _svg = '';\n\n @property({ type: String }) override title = 'agents';\n\n /**\n * Color\n */\n @property({ reflect: true }) color: any = '#7F7F7F';\n\n @property({ type: Boolean })\n public push = false;\n\n /**\n * Retain Viewbox\n */\n\n @property({ reflect: true }) frame: any = 16;\n\n static override styles = css`\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n contain: content;\n\n --nile-svg-stroke: #7F7F7F;\n --nile-svg-stroke-width: 1px;\n --nile-svg-height: 16px;\n --nile-svg-width: 16px;\n }\n\n .nds-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .nds-icon--push {\n margin-right: 12px;\n }\n\n svg {\n stroke: var(--nile-svg-stroke);\n stroke-width: var(--nile-svg-stroke-width);\n height: var(--nile-svg-height);\n width: var(--nile-svg-width);\n }\n `;\n\n private _getIconSize(): number {\n return this.name?.endsWith('-small') ? SMALL_ICON_SIZE : LARGE_ICON_SIZE;\n }\n\n protected override async updated(\n changedProperties: PropertyValues\n ): Promise<void> {\n if (changedProperties.has('size')) {\n this.style.setProperty('--nile-svg-height', `${this.size}px`);\n this.style.setProperty('--nile-svg-width', `${this.size}px`);\n }\n if (changedProperties.has('color')) {\n this.style.setProperty('--nile-svg-stroke', `${this.color}`);\n }\n if (changedProperties.has('name') || changedProperties.has('customSvgPath')) {\n let iconName = this.name ? this.removeHyphens(this.name) : undefined;\n if (iconName && iconPaths[iconName]) {\n this._svg = atob(iconPaths[iconName]);\n } else if (this.customSvgPath) {\n this._svg = await this.fetchSvg(this.customSvgPath);\n } else {\n throw new Error(`No icon named \"${this.name}\"`);\n }\n }\n }\n\n private async fetchSvg(path: string): Promise<string> {\n const response = await fetch(path);\n\n if (!response.ok) {\n throw new Error(`HTTP error! status: ${response.status}`);\n }\n\n return await response.text();\n }\n\n private removeHyphens(iconName: string) {\n return iconName.replace(/-/g, '');\n }\n\n\n get buttonClassMap() {\n return {\n 'nds-icon--push': this.push,\n };\n }\n\n protected override render(): TemplateResult {\n const size = this.size;\n const color = this.color;\n\n /**\n * When icons are outside frame\n */\n const viewboxLogic = this.frame\n ? `0 0 ${this.frame} ${this.frame}`\n : '0 0 16 16';\n\n return html`\n <span class=\"nds-icon ${classMap(this.buttonClassMap)}\">\n ${this.customSvgPath\n ? html`${unsafeHTML(this._svg)}`\n : html`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n version=\"1.1\"\n viewBox=\"${viewboxLogic}\"\n class=\"icon ${classMap(this.buttonClassMap)}\"\n role=\"img\"\n aria-hidden=${this.description === ''}\n aria-label=${this.description || ''}\n height=\"${size}\"\n width=\"${size}\"\n focusable=\"true\"\n fill=\"${color}\"\n >\n ${unsafeSVG(this._svg)}\n </svg>`\n }\n </span>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-icon': NileIcon;\n }\n}\n"],"names":["classMap","iconPaths","Icons","NileIcon","constructor","this","set","description","size","_svg","title","color","push","frame","_getIconSize","name","endsWith","async","changedProperties","has","style","setProperty","iconName","removeHyphens","undefined","atob","customSvgPath","Error","fetchSvg","path","fetch","response","ok","status","text","replace","buttonClassMap","render","viewboxLogic","html","unsafeHTML","unsafeSVG","LitElement","styles","css","__decorate","property","type","String","reflect","prototype","state","Boolean","customElement"],"mappings":"szLA2K8BA,mopBA/JxBC,CAAuBC,CAAAA,CAAAA,CAYhBC,CAAb,sEAAAC,gFAOSC,EAAAA,MAAGC,IAAY,OAefD,CAAAA,MAAWE,YAAG,EAcdF,CAAAA,MAAIG,KA9CW,EAiDdH,CAAAA,MAAII,KAAG,EAEsBJ,CAAAA,MAAK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":["../../../src/nile-icon/index.ts"],"sourcesContent":["import { LitElement, html, css, PropertyValues } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport type { TemplateResult } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport * as Icons from './icons/svg';\n\ninterface IconPaths {\n [key: string]: string;\n}\n\nconst iconPaths: IconPaths = Icons as IconPaths;\n\nconst SMALL_ICON_SIZE = 16;\nconst LARGE_ICON_SIZE = 24;\n\n/**\n * Nile icon component.\n *\n * @tag nile-icon\n *\n */\n@customElement('nile-icon')\nexport class NileIcon extends LitElement {\n /**\n * The name of the icon set\n * @attr icon set\n * @type {IconName | undefined}\n */\n @property({ type: String, reflect: true })\n public set?: string = 'local';\n\n /**\n * The name of the icon\n * @attr name\n * @type {IconName | undefined}\n */\n @property({ type: String, reflect: true })\n public name?: string;\n\n /**\n * A description of what the icon represents\n * @attr description\n */\n @property({ type: String, reflect: true })\n public description = '';\n\n /**\n * A path to a custom SVG file to display as the icon\n * @attr customSvgPath\n */\n @property({ type: String })\n public customSvgPath?: string;\n\n /**\n * A size of what the icon represents\n * @attr size\n */\n @property({ type: String, reflect: true })\n public size = SMALL_ICON_SIZE;\n\n @state()\n private _svg = '';\n\n @property({ type: String }) override title = 'agents';\n\n /**\n * Color\n */\n @property({ reflect: true }) color: any = '#7F7F7F';\n\n @property({ type: Boolean })\n public push = false;\n\n /**\n * Retain Viewbox\n */\n\n @property({ reflect: true }) frame: any = 16;\n\n static override styles = css`\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n contain: content;\n }\n\n .nds-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .nds-icon svg {\n height: var(--nile-svg-height);\n width: var(--nile-svg-width);\n stroke: var(--nile-svg-stroke);\n stroke-width: var(--nile-svg-stroke-width);\n }\n\n .nds-icon svg path {\n fill: var(--nile-svg-fill);\n }\n\n .nds-icon--push {\n margin-right: 12px;\n }\n `;\n\n private _getIconSize(): number {\n return this.name?.endsWith('-small') ? SMALL_ICON_SIZE : LARGE_ICON_SIZE;\n }\n\n protected override async updated(\n changedProperties: PropertyValues\n ): Promise<void> {\n if (changedProperties.has('size')) {\n this.style.setProperty('--nile-svg-height', `${this.size}px`);\n this.style.setProperty('--nile-svg-width', `${this.size}px`);\n }\n if (changedProperties.has('color')) {\n this.style.setProperty('--nile-svg-fill', `${this.color}`);\n }\n if (\n changedProperties.has('name') ||\n changedProperties.has('customSvgPath')\n ) {\n let iconName = this.name ? this.removeHyphens(this.name) : undefined;\n if (iconName && iconPaths[iconName]) {\n this._svg = atob(iconPaths[iconName]);\n } else if (this.customSvgPath) {\n this._svg = await this.fetchSvg(this.customSvgPath);\n } else {\n throw new Error(`No icon named \"${this.name}\"`);\n }\n }\n }\n\n private async fetchSvg(path: string): Promise<string> {\n const response = await fetch(path);\n\n if (!response.ok) {\n throw new Error(`HTTP error! status: ${response.status}`);\n }\n\n return await response.text();\n }\n\n private removeHyphens(iconName: string) {\n return iconName.replace(/-/g, '');\n }\n\n get buttonClassMap() {\n return {\n 'nds-icon--push': this.push,\n };\n }\n\n protected override render(): TemplateResult {\n const size = this.size;\n const color = this.color;\n\n /**\n * When icons are outside frame\n */\n const viewboxLogic = this.frame\n ? `0 0 ${this.frame} ${this.frame}`\n : '0 0 16 16';\n\n return html`\n <span class=\"nds-icon ${classMap(this.buttonClassMap)}\">\n ${this.customSvgPath\n ? html`${unsafeHTML(this._svg)}`\n : html`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n version=\"1.1\"\n viewBox=\"${viewboxLogic}\"\n class=\"icon ${classMap(this.buttonClassMap)}\"\n role=\"img\"\n aria-hidden=${this.description === ''}\n aria-label=${this.description || ''}\n height=\"${size}\"\n width=\"${size}\"\n focusable=\"true\"\n fill=\"${color}\"\n >\n ${unsafeSVG(this._svg)}\n </svg>`}\n </span>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-icon': NileIcon;\n }\n}\n"],"names":["classMap","iconPaths","Icons","NileIcon","constructor","this","set","description","size","_svg","title","color","push","frame","_getIconSize","name","endsWith","async","changedProperties","has","style","setProperty","iconName","removeHyphens","undefined","atob","customSvgPath","Error","fetchSvg","path","fetch","response","ok","status","text","replace","buttonClassMap","render","viewboxLogic","html","unsafeHTML","unsafeSVG","LitElement","styles","css","__decorate","property","type","String","reflect","prototype","state","Boolean","customElement"],"mappings":"szLA4K8BA,mopBAhKxBC,CAAuBC,CAAAA,CAAAA,CAYhBC,CAAb,sEAAAC,gFAOSC,EAAAA,MAAGC,IAAY,OAefD,CAAAA,MAAWE,YAAG,EAcdF,CAAAA,MAAIG,KA9CW,EAiDdH,CAAAA,MAAII,KAAG,EAEsBJ,CAAAA,MAAKK,MAAG,QAKhBL,CAAAA,MAAKM,MAAQ,SAGnCN,CAAAA,MAAIO,MAAG,CAMeP,CAAAA,MAAKQ,KAAQ,CAAA,EAkH3C,eAlFSC,iEACN,gBAAA,MAAOT,iBAAKU,IAAMC,+BAAXX,WAAWW,QAAAA,CAAS,UAlGP,EACA,CAAA,EAkGrB,EAEkBC,0HACjBC,CAAAA,kIAEIA,CAAkBC,CAAAA,GAAAA,CAAI,UACxBd,IAAKe,CAAAA,KAAAA,CAAMC,YAAY,mBAAqB,WAAGhB,IAAKG,CAAAA,IAAAA,OAAAA,CACpDH,KAAKe,KAAMC,CAAAA,WAAAA,CAAY,6BAAuBhB,IAAAA,CAAKG,aAEjDU,CAAkBC,CAAAA,GAAAA,CAAI,UACxBd,IAAKe,CAAAA,KAAAA,CAAMC,YAAY,iBAAmB,WAAGhB,KAAKM,KAGlDO,EAAAA,CAAAA,CAAAA,CAAkBC,IAAI,MACtBD,CAAAA,EAAAA,CAAAA,CAAkBC,GAAI,CAAA,eAAA,CAAA,4BAElBG,EAAAA,CAAWjB,KAAKU,IAAOV,CAAAA,IAAAA,CAAKkB,cAAclB,IAAKU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G,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA+B9C,CAAA+C,CAAAA,SAAAA,CAAA,YAAA,EAGpDL,CAAAA,CAAAA,CAAAA,CAAA,CADCC,CAAAA,CAAS,CAAEC,IAAAA,CAAMK,WACEjD,CAAA+C,CAAAA,SAAAA,CAAA,MAAA,CAAA,IAAA,EAAA,CAAA,CAMSL,CAAA,CAAA,CAA5BC,EAAS,CAAEG,OAAAA,CAAAA,CAAS,CAAwB9C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA+C,SAAA,CAAA,OAAA,CAAA,IAAA,IAvDlC/C,CAAQ0C,CAAAA,CAAAA,CAAA,CADpBQ,CAAAA,CAAc,WACFlD,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA"}
@@ -1,4 +1,4 @@
1
- import{__decorate as s}from"tslib";import{css as i,LitElement as o,html as e}from"lit";import{property as t,state as m,customElement as r}from"lit/decorators.js";import{classMap as n}from"lit/directives/class-map.js";import{unsafeSVG as c}from"lit/directives/unsafe-svg.js";import{unsafeHTML as p}from"lit/directives/unsafe-html.js";import{I as g}from"./icons/svg/index.esm.js";import"./icons/svg/access-review.esm.js";import"./icons/svg/action.esm.js";import"./icons/svg/actionworkflow.esm.js";import"./icons/svg/agents.esm.js";import"./icons/svg/aggregation.esm.js";import"./icons/svg/allsearch.esm.js";import"./icons/svg/application.esm.js";import"./icons/svg/approve.esm.js";import"./icons/svg/arrowdown.esm.js";import"./icons/svg/arrowleft.esm.js";import"./icons/svg/arrowright.esm.js";import"./icons/svg/arrowup.esm.js";import"./icons/svg/attributemap.esm.js";import"./icons/svg/bell.esm.js";import"./icons/svg/boolean.esm.js";import"./icons/svg/bulk-sync.esm.js";import"./icons/svg/button-loading-black.esm.js";import"./icons/svg/button-loading-blue.esm.js";import"./icons/svg/button-loading-white.esm.js";import"./icons/svg/calendar.esm.js";import"./icons/svg/caution.esm.js";import"./icons/svg/close.esm.js";import"./icons/svg/collapse-1.esm.js";import"./icons/svg/collapse.esm.js";import"./icons/svg/compact.esm.js";import"./icons/svg/compare-tiles.esm.js";import"./icons/svg/component-menu.esm.js";import"./icons/svg/connect.esm.js";import"./icons/svg/copy.esm.js";import"./icons/svg/correlation.esm.js";import"./icons/svg/dashboard.esm.js";import"./icons/svg/database.esm.js";import"./icons/svg/databaseview.esm.js";import"./icons/svg/default-1.esm.js";import"./icons/svg/default.esm.js";import"./icons/svg/directory.esm.js";import"./icons/svg/disabled.esm.js";import"./icons/svg/document.esm.js";import"./icons/svg/done.esm.js";import"./icons/svg/download.esm.js";import"./icons/svg/drag.esm.js";import"./icons/svg/draglist.esm.js";import"./icons/svg/enable.esm.js";import"./icons/svg/entitlement.esm.js";import"./icons/svg/error.esm.js";import"./icons/svg/escalate.esm.js";import"./icons/svg/event.esm.js";import"./icons/svg/exactmatch.esm.js";import"./icons/svg/expand-1.esm.js";import"./icons/svg/expand.esm.js";import"./icons/svg/eye.esm.js";import"./icons/svg/eyeclosed.esm.js";import"./icons/svg/filter.esm.js";import"./icons/svg/firewall.esm.js";import"./icons/svg/flow-h.esm.js";import"./icons/svg/flow.esm.js";import"./icons/svg/flowmap.esm.js";import"./icons/svg/folder.esm.js";import"./icons/svg/frequency.esm.js";import"./icons/svg/fullscreen.esm.js";import"./icons/svg/fullscreenshrink.esm.js";import"./icons/svg/generation-phase.esm.js";import"./icons/svg/global-search.esm.js";import"./icons/svg/goto.esm.js";import"./icons/svg/groupby.esm.js";import"./icons/svg/guide.esm.js";import"./icons/svg/helpsupport.esm.js";import"./icons/svg/help-1.esm.js";import"./icons/svg/help.esm.js";import"./icons/svg/history.esm.js";import"./icons/svg/identityledger.esm.js";import"./icons/svg/ifelse.esm.js";import"./icons/svg/image.esm.js";import"./icons/svg/info.esm.js";import"./icons/svg/info2.esm.js";import"./icons/svg/js.esm.js";import"./icons/svg/link.esm.js";import"./icons/svg/loader.esm.js";import"./icons/svg/loading.esm.js";import"./icons/svg/loading2.esm.js";import"./icons/svg/lock.esm.js";import"./icons/svg/logs.esm.js";import"./icons/svg/manage.esm.js";import"./icons/svg/map.esm.js";import"./icons/svg/mapcreate.esm.js";import"./icons/svg/mapdont.esm.js";import"./icons/svg/mapupdate.esm.js";import"./icons/svg/maximize.esm.js";import"./icons/svg/minus.esm.js";import"./icons/svg/moveleft.esm.js";import"./icons/svg/moveright.esm.js";import"./icons/svg/mute.esm.js";import"./icons/svg/nomatch.esm.js";import"./icons/svg/not.esm.js";import"./icons/svg/note.esm.js";import"./icons/svg/notificationadd.esm.js";import"./icons/svg/notificationadded.esm.js";import"./icons/svg/null.esm.js";import"./icons/svg/number.esm.js";import"./icons/svg/options.esm.js";import"./icons/svg/orchestration.esm.js";import"./icons/svg/partner.esm.js";import"./icons/svg/pencil.esm.js";import"./icons/svg/people-task.esm.js";import"./icons/svg/pin.esm.js";import"./icons/svg/plus.esm.js";import"./icons/svg/potentialmatch.esm.js";import"./icons/svg/poweron.esm.js";import"./icons/svg/privilage.esm.js";import"./icons/svg/radio.esm.js";import"./icons/svg/radioactive.esm.js";import"./icons/svg/radiodone.esm.js";import"./icons/svg/readexpression.esm.js";import"./icons/svg/readonly.esm.js";import"./icons/svg/redo.esm.js";import"./icons/svg/refresh.esm.js";import"./icons/svg/reminder.esm.js";import"./icons/svg/resource.esm.js";import"./icons/svg/revokation-cycle.esm.js";import"./icons/svg/role.esm.js";import"./icons/svg/run.esm.js";import"./icons/svg/save.esm.js";import"./icons/svg/schedule.esm.js";import"./icons/svg/script.esm.js";import"./icons/svg/search.esm.js";import"./icons/svg/select.esm.js";import"./icons/svg/selectapplication.esm.js";import"./icons/svg/selectattributes.esm.js";import"./icons/svg/selectuser.esm.js";import"./icons/svg/send.esm.js";import"./icons/svg/settings.esm.js";import"./icons/svg/sort.esm.js";import"./icons/svg/stop.esm.js";import"./icons/svg/string.esm.js";import"./icons/svg/sync.esm.js";import"./icons/svg/test.esm.js";import"./icons/svg/textarea-expander.esm.js";import"./icons/svg/tick.esm.js";import"./icons/svg/timeupdate.esm.js";import"./icons/svg/timezone.esm.js";import"./icons/svg/trash.esm.js";import"./icons/svg/undo-1.esm.js";import"./icons/svg/undo.esm.js";import"./icons/svg/unmute.esm.js";import"./icons/svg/upgrade.esm.js";import"./icons/svg/upload.esm.js";import"./icons/svg/user-group.esm.js";import"./icons/svg/user.esm.js";import"./icons/svg/useractive.esm.js";import"./icons/svg/useradd.esm.js";import"./icons/svg/useraddgroup.esm.js";import"./icons/svg/userfind.esm.js";import"./icons/svg/userimport.esm.js";import"./icons/svg/userimportgroup.esm.js";import"./icons/svg/usermixed.esm.js";import"./icons/svg/userremove-1.esm.js";import"./icons/svg/userremove-2.esm.js";import"./icons/svg/userremove.esm.js";import"./icons/svg/userremovegroup.esm.js";import"./icons/svg/userupdate.esm.js";import"./icons/svg/users.esm.js";import"./icons/svg/validationexpression.esm.js";import"./icons/svg/variable-new-1.esm.js";import"./icons/svg/variable-new.esm.js";import"./icons/svg/variable-global.esm.js";import"./icons/svg/variable-local-1.esm.js";import"./icons/svg/variable-local.esm.js";import"./icons/svg/variable.esm.js";import"./icons/svg/video.esm.js";import"./icons/svg/warning.esm.js";import"./icons/svg/whileloop.esm.js";import"./icons/svg/workflow.esm.js";import"./icons/svg/writeexpression.esm.js";import"./icons/svg/back.esm.js";import"./icons/svg/downgrade.esm.js";import"./icons/svg/globe.esm.js";import"./icons/svg/phone.esm.js";import"./icons/svg/storybook.esm.js";import"./icons/svg/swap.esm.js";const v=g;let j=class extends o{constructor(){super(...arguments),this.set="local",this.description="",this.size=16,this._svg="",this.title="agents",this.color="#7F7F7F",this.push=!1,this.frame=16}_getIconSize(){return this.name?.endsWith("-small")?16:24}async updated(s){if(s.has("size")&&(this.style.setProperty("--nile-svg-height",`${this.size}px`),this.style.setProperty("--nile-svg-width",`${this.size}px`)),s.has("color")&&this.style.setProperty("--nile-svg-stroke",`${this.color}`),s.has("name")||s.has("customSvgPath")){let s=this.name?this.removeHyphens(this.name):void 0;if(s&&v[s])this._svg=atob(v[s]);else{if(!this.customSvgPath)throw new Error(`No icon named "${this.name}"`);this._svg=await this.fetchSvg(this.customSvgPath)}}}async fetchSvg(s){const i=await fetch(s);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return await i.text()}removeHyphens(s){return s.replace(/-/g,"")}get buttonClassMap(){return{"nds-icon--push":this.push}}render(){const s=this.size,i=this.color,o=this.frame?`0 0 ${this.frame} ${this.frame}`:"0 0 16 16";return e`
1
+ import{__decorate as s}from"tslib";import{css as i,LitElement as o,html as e}from"lit";import{property as m,state as t,customElement as r}from"lit/decorators.js";import{classMap as n}from"lit/directives/class-map.js";import{unsafeSVG as c}from"lit/directives/unsafe-svg.js";import{unsafeHTML as p}from"lit/directives/unsafe-html.js";import{I as g}from"./icons/svg/index.esm.js";import"./icons/svg/access-review.esm.js";import"./icons/svg/action.esm.js";import"./icons/svg/actionworkflow.esm.js";import"./icons/svg/agents.esm.js";import"./icons/svg/aggregation.esm.js";import"./icons/svg/allsearch.esm.js";import"./icons/svg/application.esm.js";import"./icons/svg/approve.esm.js";import"./icons/svg/arrowdown.esm.js";import"./icons/svg/arrowleft.esm.js";import"./icons/svg/arrowright.esm.js";import"./icons/svg/arrowup.esm.js";import"./icons/svg/attributemap.esm.js";import"./icons/svg/bell.esm.js";import"./icons/svg/boolean.esm.js";import"./icons/svg/bulk-sync.esm.js";import"./icons/svg/button-loading-black.esm.js";import"./icons/svg/button-loading-blue.esm.js";import"./icons/svg/button-loading-white.esm.js";import"./icons/svg/calendar.esm.js";import"./icons/svg/caution.esm.js";import"./icons/svg/close.esm.js";import"./icons/svg/collapse-1.esm.js";import"./icons/svg/collapse.esm.js";import"./icons/svg/compact.esm.js";import"./icons/svg/compare-tiles.esm.js";import"./icons/svg/component-menu.esm.js";import"./icons/svg/connect.esm.js";import"./icons/svg/copy.esm.js";import"./icons/svg/correlation.esm.js";import"./icons/svg/dashboard.esm.js";import"./icons/svg/database.esm.js";import"./icons/svg/databaseview.esm.js";import"./icons/svg/default-1.esm.js";import"./icons/svg/default.esm.js";import"./icons/svg/directory.esm.js";import"./icons/svg/disabled.esm.js";import"./icons/svg/document.esm.js";import"./icons/svg/done.esm.js";import"./icons/svg/download.esm.js";import"./icons/svg/drag.esm.js";import"./icons/svg/draglist.esm.js";import"./icons/svg/enable.esm.js";import"./icons/svg/entitlement.esm.js";import"./icons/svg/error.esm.js";import"./icons/svg/escalate.esm.js";import"./icons/svg/event.esm.js";import"./icons/svg/exactmatch.esm.js";import"./icons/svg/expand-1.esm.js";import"./icons/svg/expand.esm.js";import"./icons/svg/eye.esm.js";import"./icons/svg/eyeclosed.esm.js";import"./icons/svg/filter.esm.js";import"./icons/svg/firewall.esm.js";import"./icons/svg/flow-h.esm.js";import"./icons/svg/flow.esm.js";import"./icons/svg/flowmap.esm.js";import"./icons/svg/folder.esm.js";import"./icons/svg/frequency.esm.js";import"./icons/svg/fullscreen.esm.js";import"./icons/svg/fullscreenshrink.esm.js";import"./icons/svg/generation-phase.esm.js";import"./icons/svg/global-search.esm.js";import"./icons/svg/goto.esm.js";import"./icons/svg/groupby.esm.js";import"./icons/svg/guide.esm.js";import"./icons/svg/helpsupport.esm.js";import"./icons/svg/help-1.esm.js";import"./icons/svg/help.esm.js";import"./icons/svg/history.esm.js";import"./icons/svg/identityledger.esm.js";import"./icons/svg/ifelse.esm.js";import"./icons/svg/image.esm.js";import"./icons/svg/info.esm.js";import"./icons/svg/info2.esm.js";import"./icons/svg/js.esm.js";import"./icons/svg/link.esm.js";import"./icons/svg/loader.esm.js";import"./icons/svg/loading.esm.js";import"./icons/svg/loading2.esm.js";import"./icons/svg/lock.esm.js";import"./icons/svg/logs.esm.js";import"./icons/svg/manage.esm.js";import"./icons/svg/map.esm.js";import"./icons/svg/mapcreate.esm.js";import"./icons/svg/mapdont.esm.js";import"./icons/svg/mapupdate.esm.js";import"./icons/svg/maximize.esm.js";import"./icons/svg/minus.esm.js";import"./icons/svg/moveleft.esm.js";import"./icons/svg/moveright.esm.js";import"./icons/svg/mute.esm.js";import"./icons/svg/nomatch.esm.js";import"./icons/svg/not.esm.js";import"./icons/svg/note.esm.js";import"./icons/svg/notificationadd.esm.js";import"./icons/svg/notificationadded.esm.js";import"./icons/svg/null.esm.js";import"./icons/svg/number.esm.js";import"./icons/svg/options.esm.js";import"./icons/svg/orchestration.esm.js";import"./icons/svg/partner.esm.js";import"./icons/svg/pencil.esm.js";import"./icons/svg/people-task.esm.js";import"./icons/svg/pin.esm.js";import"./icons/svg/plus.esm.js";import"./icons/svg/potentialmatch.esm.js";import"./icons/svg/poweron.esm.js";import"./icons/svg/privilage.esm.js";import"./icons/svg/radio.esm.js";import"./icons/svg/radioactive.esm.js";import"./icons/svg/radiodone.esm.js";import"./icons/svg/readexpression.esm.js";import"./icons/svg/readonly.esm.js";import"./icons/svg/redo.esm.js";import"./icons/svg/refresh.esm.js";import"./icons/svg/reminder.esm.js";import"./icons/svg/resource.esm.js";import"./icons/svg/revokation-cycle.esm.js";import"./icons/svg/role.esm.js";import"./icons/svg/run.esm.js";import"./icons/svg/save.esm.js";import"./icons/svg/schedule.esm.js";import"./icons/svg/script.esm.js";import"./icons/svg/search.esm.js";import"./icons/svg/select.esm.js";import"./icons/svg/selectapplication.esm.js";import"./icons/svg/selectattributes.esm.js";import"./icons/svg/selectuser.esm.js";import"./icons/svg/send.esm.js";import"./icons/svg/settings.esm.js";import"./icons/svg/sort.esm.js";import"./icons/svg/stop.esm.js";import"./icons/svg/string.esm.js";import"./icons/svg/sync.esm.js";import"./icons/svg/test.esm.js";import"./icons/svg/textarea-expander.esm.js";import"./icons/svg/tick.esm.js";import"./icons/svg/timeupdate.esm.js";import"./icons/svg/timezone.esm.js";import"./icons/svg/trash.esm.js";import"./icons/svg/undo-1.esm.js";import"./icons/svg/undo.esm.js";import"./icons/svg/unmute.esm.js";import"./icons/svg/upgrade.esm.js";import"./icons/svg/upload.esm.js";import"./icons/svg/user-group.esm.js";import"./icons/svg/user.esm.js";import"./icons/svg/useractive.esm.js";import"./icons/svg/useradd.esm.js";import"./icons/svg/useraddgroup.esm.js";import"./icons/svg/userfind.esm.js";import"./icons/svg/userimport.esm.js";import"./icons/svg/userimportgroup.esm.js";import"./icons/svg/usermixed.esm.js";import"./icons/svg/userremove-1.esm.js";import"./icons/svg/userremove-2.esm.js";import"./icons/svg/userremove.esm.js";import"./icons/svg/userremovegroup.esm.js";import"./icons/svg/userupdate.esm.js";import"./icons/svg/users.esm.js";import"./icons/svg/validationexpression.esm.js";import"./icons/svg/variable-new-1.esm.js";import"./icons/svg/variable-new.esm.js";import"./icons/svg/variable-global.esm.js";import"./icons/svg/variable-local-1.esm.js";import"./icons/svg/variable-local.esm.js";import"./icons/svg/variable.esm.js";import"./icons/svg/video.esm.js";import"./icons/svg/warning.esm.js";import"./icons/svg/whileloop.esm.js";import"./icons/svg/workflow.esm.js";import"./icons/svg/writeexpression.esm.js";import"./icons/svg/back.esm.js";import"./icons/svg/downgrade.esm.js";import"./icons/svg/globe.esm.js";import"./icons/svg/phone.esm.js";import"./icons/svg/storybook.esm.js";import"./icons/svg/swap.esm.js";const v=g;let j=class extends o{constructor(){super(...arguments),this.set="local",this.description="",this.size=16,this._svg="",this.title="agents",this.color="#7F7F7F",this.push=!1,this.frame=16}_getIconSize(){return this.name?.endsWith("-small")?16:24}async updated(s){if(s.has("size")&&(this.style.setProperty("--nile-svg-height",`${this.size}px`),this.style.setProperty("--nile-svg-width",`${this.size}px`)),s.has("color")&&this.style.setProperty("--nile-svg-fill",`${this.color}`),s.has("name")||s.has("customSvgPath")){let s=this.name?this.removeHyphens(this.name):void 0;if(s&&v[s])this._svg=atob(v[s]);else{if(!this.customSvgPath)throw new Error(`No icon named "${this.name}"`);this._svg=await this.fetchSvg(this.customSvgPath)}}}async fetchSvg(s){const i=await fetch(s);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return await i.text()}removeHyphens(s){return s.replace(/-/g,"")}get buttonClassMap(){return{"nds-icon--push":this.push}}render(){const s=this.size,i=this.color,o=this.frame?`0 0 ${this.frame} ${this.frame}`:"0 0 16 16";return e`
2
2
  <span class="nds-icon ${n(this.buttonClassMap)}">
3
3
  ${this.customSvgPath?e`${p(this._svg)}`:e`<svg
4
4
  xmlns="http://www.w3.org/2000/svg"
@@ -22,11 +22,6 @@ import{__decorate as s}from"tslib";import{css as i,LitElement as o,html as e}fro
22
22
  align-items: center;
23
23
  justify-content: center;
24
24
  contain: content;
25
-
26
- --nile-svg-stroke: #7F7F7F;
27
- --nile-svg-stroke-width: 1px;
28
- --nile-svg-height: 16px;
29
- --nile-svg-width: 16px;
30
25
  }
31
26
 
32
27
  .nds-icon {
@@ -35,14 +30,18 @@ import{__decorate as s}from"tslib";import{css as i,LitElement as o,html as e}fro
35
30
  justify-content: center;
36
31
  }
37
32
 
38
- .nds-icon--push {
39
- margin-right: 12px;
40
- }
41
-
42
- svg {
43
- stroke: var(--nile-svg-stroke);
44
- stroke-width: var(--nile-svg-stroke-width);
33
+ .nds-icon svg {
45
34
  height: var(--nile-svg-height);
46
35
  width: var(--nile-svg-width);
36
+ stroke: var(--nile-svg-stroke);
37
+ stroke-width: var(--nile-svg-stroke-width);
38
+ }
39
+
40
+ .nds-icon svg path {
41
+ fill: var(--nile-svg-fill);
42
+ }
43
+
44
+ .nds-icon--push {
45
+ margin-right: 12px;
47
46
  }
48
- `,s([t({type:String,reflect:!0})],j.prototype,"set",void 0),s([t({type:String,reflect:!0})],j.prototype,"name",void 0),s([t({type:String,reflect:!0})],j.prototype,"description",void 0),s([t({type:String})],j.prototype,"customSvgPath",void 0),s([t({type:String,reflect:!0})],j.prototype,"size",void 0),s([m()],j.prototype,"_svg",void 0),s([t({type:String})],j.prototype,"title",void 0),s([t({reflect:!0})],j.prototype,"color",void 0),s([t({type:Boolean})],j.prototype,"push",void 0),s([t({reflect:!0})],j.prototype,"frame",void 0),j=s([r("nile-icon")],j);
47
+ `,s([m({type:String,reflect:!0})],j.prototype,"set",void 0),s([m({type:String,reflect:!0})],j.prototype,"name",void 0),s([m({type:String,reflect:!0})],j.prototype,"description",void 0),s([m({type:String})],j.prototype,"customSvgPath",void 0),s([m({type:String,reflect:!0})],j.prototype,"size",void 0),s([t()],j.prototype,"_svg",void 0),s([m({type:String})],j.prototype,"title",void 0),s([m({reflect:!0})],j.prototype,"color",void 0),s([m({type:Boolean})],j.prototype,"push",void 0),s([m({reflect:!0})],j.prototype,"frame",void 0),j=s([r("nile-icon")],j);
@@ -54,9 +54,10 @@ let NileIcon = class NileIcon extends LitElement {
54
54
  this.style.setProperty('--nile-svg-width', `${this.size}px`);
55
55
  }
56
56
  if (changedProperties.has('color')) {
57
- this.style.setProperty('--nile-svg-stroke', `${this.color}`);
57
+ this.style.setProperty('--nile-svg-fill', `${this.color}`);
58
58
  }
59
- if (changedProperties.has('name') || changedProperties.has('customSvgPath')) {
59
+ if (changedProperties.has('name') ||
60
+ changedProperties.has('customSvgPath')) {
60
61
  let iconName = this.name ? this.removeHyphens(this.name) : undefined;
61
62
  if (iconName && iconPaths[iconName]) {
62
63
  this._svg = atob(iconPaths[iconName]);
@@ -122,11 +123,6 @@ NileIcon.styles = css `
122
123
  align-items: center;
123
124
  justify-content: center;
124
125
  contain: content;
125
-
126
- --nile-svg-stroke: #7F7F7F;
127
- --nile-svg-stroke-width: 1px;
128
- --nile-svg-height: 16px;
129
- --nile-svg-width: 16px;
130
126
  }
131
127
 
132
128
  .nds-icon {
@@ -135,15 +131,19 @@ NileIcon.styles = css `
135
131
  justify-content: center;
136
132
  }
137
133
 
138
- .nds-icon--push {
139
- margin-right: 12px;
140
- }
141
-
142
- svg {
143
- stroke: var(--nile-svg-stroke);
144
- stroke-width: var(--nile-svg-stroke-width);
134
+ .nds-icon svg {
145
135
  height: var(--nile-svg-height);
146
136
  width: var(--nile-svg-width);
137
+ stroke: var(--nile-svg-stroke);
138
+ stroke-width: var(--nile-svg-stroke-width);
139
+ }
140
+
141
+ .nds-icon svg path {
142
+ fill: var(--nile-svg-fill);
143
+ }
144
+
145
+ .n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AE,OAAO,EAAE,IAAI,EAAE,CAAC;sCACrB;AAOrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAClB;AAOxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CACG;AAO9B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sCACZ;AAG9B;IADC,KAAK,EAAE;sCACU;AAEU;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCAA2B;AAKzB;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCAAwB;AAGpD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;sCACR;AAMS;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCAAiB;AAvDlC,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CAyKpB;SAzKY,QAAQ","sourcesContent":["import { LitElement, html, css, PropertyValues } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport type { TemplateResult } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport * as Icons from './icons/svg';\n\ninterface IconPaths {\n [key: string]: string;\n}\n\nconst iconPaths: IconPaths = Icons as IconPaths;\n\nconst SMALL_ICON_SIZE = 16;\nconst LARGE_ICON_SIZE = 24;\n\n/**\n * Nile icon component.\n *\n * @tag nile-icon\n *\n */\n@customElement('nile-icon')\nexport class NileIcon extends LitElement {\n /**\n * The name of the icon set\n * @attr icon set\n * @type {IconName | undefined}\n */\n @property({ type: String, reflect: true })\n public set?: string = 'local';\n\n /**\n * The name of the icon\n * @attr name\n * @type {IconName | undefined}\n */\n @property({ type: String, reflect: true })\n public name?: string;\n\n /**\n * A description of what the icon represents\n * @attr description\n */\n @property({ type: String, reflect: true })\n public description = '';\n\n /**\n * A path to a custom SVG file to display as the icon\n * @attr customSvgPath\n */\n @property({ type: String })\n public customSvgPath?: string;\n\n /**\n * A size of what the icon represents\n * @attr size\n */\n @property({ type: String, reflect: true })\n public size = SMALL_ICON_SIZE;\n\n @state()\n private _svg = '';\n\n @property({ type: String }) override title = 'agents';\n\n /**\n * Color\n */\n @property({ reflect: true }) color: any = '#7F7F7F';\n\n @property({ type: Boolean })\n public push = false;\n\n /**\n * Retain Viewbox\n */\n\n @property({ reflect: true }) frame: any = 16;\n\n static override styles = css`\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n contain: content;\n\n --nile-svg-stroke: #7F7F7F;\n --nile-svg-stroke-width: 1px;\n --nile-svg-height: 16px;\n --nile-svg-width: 16px;\n }\n\n .nds-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .nds-icon--push {\n margin-right: 12px;\n }\n\n svg {\n stroke: var(--nile-svg-stroke);\n stroke-width: var(--nile-svg-stroke-width);\n height: var(--nile-svg-height);\n width: var(--nile-svg-width);\n }\n `;\n\n private _getIconSize(): number {\n return this.name?.endsWith('-small') ? SMALL_ICON_SIZE : LARGE_ICON_SIZE;\n }\n\n protected override async updated(\n changedProperties: PropertyValues\n ): Promise<void> {\n if (changedProperties.has('size')) {\n this.style.setProperty('--nile-svg-height', `${this.size}px`);\n this.style.setProperty('--nile-svg-width', `${this.size}px`);\n }\n if (changedProperties.has('color')) {\n this.style.setProperty('--nile-svg-stroke', `${this.color}`);\n }\n if (changedProperties.has('name') || changedProperties.has('customSvgPath')) {\n let iconName = this.name ? this.removeHyphens(this.name) : undefined;\n if (iconName && iconPaths[iconName]) {\n this._svg = atob(iconPaths[iconName]);\n } else if (this.customSvgPath) {\n this._svg = await this.fetchSvg(this.customSvgPath);\n } else {\n throw new Error(`No icon named \"${this.name}\"`);\n }\n }\n }\n\n private async fetchSvg(path: string): Promise<string> {\n const response = await fetch(path);\n\n if (!response.ok) {\n throw new Error(`HTTP error! status: ${response.status}`);\n }\n\n return await response.text();\n }\n\n private removeHyphens(iconName: string) {\n return iconName.replace(/-/g, '');\n }\n\n\n get buttonClassMap() {\n return {\n 'nds-icon--push': this.push,\n };\n }\n\n protected override render(): TemplateResult {\n const size = this.size;\n const color = this.color;\n\n /**\n * When icons are outside frame\n */\n const viewboxLogic = this.frame\n ? `0 0 ${this.frame} ${this.frame}`\n : '0 0 16 16';\n\n return html`\n <span class=\"nds-icon ${classMap(this.buttonClassMap)}\">\n ${this.customSvgPath\n ? html`${unsafeHTML(this._svg)}`\n : html`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n version=\"1.1\"\n viewBox=\"${viewboxLogic}\"\n class=\"icon ${classMap(this.buttonClassMap)}\"\n role=\"img\"\n aria-hidden=${this.description === ''}\n aria-label=${this.description || ''}\n height=\"${size}\"\n width=\"${size}\"\n focusable=\"true\"\n fill=\"${color}\"\n >\n ${unsafeSVG(this._svg)}\n </svg>`\n }\n </span>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-icon': NileIcon;\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-icon/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAkB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AAMrC,MAAM,SAAS,GAAc,KAAkB,CAAC;AAEhD,MAAM,eAAe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Q,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCAAiB;AAvDlC,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CAyKpB;SAzKY,QAAQ","sourcesContent":["import { LitElement, html, css, PropertyValues } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport type { TemplateResult } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport * as Icons from './icons/svg';\n\ninterface IconPaths {\n [key: string]: string;\n}\n\nconst iconPaths: IconPaths = Icons as IconPaths;\n\nconst SMALL_ICON_SIZE = 16;\nconst LARGE_ICON_SIZE = 24;\n\n/**\n * Nile icon component.\n *\n * @tag nile-icon\n *\n */\n@customElement('nile-icon')\nexport class NileIcon extends LitElement {\n /**\n * The name of the icon set\n * @attr icon set\n * @type {IconName | undefined}\n */\n @property({ type: String, reflect: true })\n public set?: string = 'local';\n\n /**\n * The name of the icon\n * @attr name\n * @type {IconName | undefined}\n */\n @property({ type: String, reflect: true })\n public name?: string;\n\n /**\n * A description of what the icon represents\n * @attr description\n */\n @property({ type: String, reflect: true })\n public description = '';\n\n /**\n * A path to a custom SVG file to display as the icon\n * @attr customSvgPath\n */\n @property({ type: String })\n public customSvgPath?: string;\n\n /**\n * A size of what the icon represents\n * @attr size\n */\n @property({ type: String, reflect: true })\n public size = SMALL_ICON_SIZE;\n\n @state()\n private _svg = '';\n\n @property({ type: String }) override title = 'agents';\n\n /**\n * Color\n */\n @property({ reflect: true }) color: any = '#7F7F7F';\n\n @property({ type: Boolean })\n public push = false;\n\n /**\n * Retain Viewbox\n */\n\n @property({ reflect: true }) frame: any = 16;\n\n static override styles = css`\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n contain: content;\n }\n\n .nds-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .nds-icon svg {\n height: var(--nile-svg-height);\n width: var(--nile-svg-width);\n stroke: var(--nile-svg-stroke);\n stroke-width: var(--nile-svg-stroke-width);\n }\n\n .nds-icon svg path {\n fill: var(--nile-svg-fill);\n }\n\n .nds-icon--push {\n margin-right: 12px;\n }\n `;\n\n private _getIconSize(): number {\n return this.name?.endsWith('-small') ? SMALL_ICON_SIZE : LARGE_ICON_SIZE;\n }\n\n protected override async updated(\n changedProperties: PropertyValues\n ): Promise<void> {\n if (changedProperties.has('size')) {\n this.style.setProperty('--nile-svg-height', `${this.size}px`);\n this.style.setProperty('--nile-svg-width', `${this.size}px`);\n }\n if (changedProperties.has('color')) {\n this.style.setProperty('--nile-svg-fill', `${this.color}`);\n }\n if (\n changedProperties.has('name') ||\n changedProperties.has('customSvgPath')\n ) {\n let iconName = this.name ? this.removeHyphens(this.name) : undefined;\n if (iconName && iconPaths[iconName]) {\n this._svg = atob(iconPaths[iconName]);\n } else if (this.customSvgPath) {\n this._svg = await this.fetchSvg(this.customSvgPath);\n } else {\n throw new Error(`No icon named \"${this.name}\"`);\n }\n }\n }\n\n private async fetchSvg(path: string): Promise<string> {\n const response = await fetch(path);\n\n if (!response.ok) {\n throw new Error(`HTTP error! status: ${response.status}`);\n }\n\n return await response.text();\n }\n\n private removeHyphens(iconName: string) {\n return iconName.replace(/-/g, '');\n }\n\n get buttonClassMap() {\n return {\n 'nds-icon--push': this.push,\n };\n }\n\n protected override render(): TemplateResult {\n const size = this.size;\n const color = this.color;\n\n /**\n * When icons are outside frame\n */\n const viewboxLogic = this.frame\n ? `0 0 ${this.frame} ${this.frame}`\n : '0 0 16 16';\n\n return html`\n <span class=\"nds-icon ${classMap(this.buttonClassMap)}\">\n ${this.customSvgPath\n ? html`${unsafeHTML(this._svg)}`\n : html`<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n version=\"1.1\"\n viewBox=\"${viewboxLogic}\"\n class=\"icon ${classMap(this.buttonClassMap)}\"\n role=\"img\"\n aria-hidden=${this.description === ''}\n aria-label=${this.description || ''}\n height=\"${size}\"\n width=\"${size}\"\n focusable=\"true\"\n fill=\"${color}\"\n >\n ${unsafeSVG(this._svg)}\n </svg>`}\n </span>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-icon': NileIcon;\n }\n}\n"]}