var __spreadArrays=this&&this.__spreadArrays||function(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;for(var r=Array(t),i=0,n=0;n<e;n++)for(var s=arguments[n],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r};System.register(["./p-dcda33a3.system.js"],(function(t){"use strict";var n,e,r,i;return{setters:[function(t){n=t.r;e=t.c;r=t.h;i=t.H}],execute:function(){var s=t("cc_tabs_tags",function(){function t(t){var r=this;n(this,t);this.color="primary";this.options=[];this.handleOptionClick=function(t){return function(){var n=r._options[t];if(n.disabled){return}r.updateOptions(t);r.changeOption.emit(n.value)}};this.changeOption=e(this,"changeOption",7)}t.prototype.setOptions=function(t,n){var e=JSON.stringify(t);var r=JSON.stringify(n);if(e!==r){this._options=t}};t.prototype.updateOptions=function(t){var n=__spreadArrays(this._options).map((function(t){return Object.assign(Object.assign({},t),{active:false})}));n[t].active=true;this._options=n};t.prototype.componentWillLoad=function(){this._options=this.options};t.prototype.render=function(){var t=this;return r(i,null,r("div",{class:{tabTags:true}},r("div",{class:"tabTags__wrap"},this._options.map((function(n,e){return r("button",{key:"tabTagItem_"+e,class:{tabTags__button:true,"tabTags__button--secondary":t.color==="secondary","tabTags__button--active":n.active,"tabTags__button--disabled":n.disabled},onClick:t.handleOptionClick(e)},n.text)})))))};Object.defineProperty(t,"watchers",{get:function(){return{options:["setOptions"]}},enumerable:true,configurable:true});Object.defineProperty(t,"style",{get:function(){return":host{display:block}.tabTags{overflow:hidden}.tabTags__wrap{margin:-1rem -.6rem}.tabTags__button{-webkit-appearance:button;padding:0;margin:0;font-family:inherit;cursor:pointer;background-color:transparent;background-image:none;color:inherit;border:none;font-size:100%;outline:0;font-weight:900;font-size:1.2rem;padding-left:1.2rem;padding-right:1.2rem;border-radius:9999px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background-color:var(--neutral-04);height:3.2rem;margin:1rem .6rem}.tabTags__button--active{background-color:var(--primary);color:var(--neutral-04)}.tabTags__button--active.tabTags__button--secondary{background-color:var(--secondary)}.tabTags__button--disabled{color:var(--disabled-text);background-color:var(--disabled-background)}"},enumerable:true,configurable:true});return t}())}}}));