System.register(["./p-1d25d5b7.system.js","./p-b6e00050.system.js"],(function(t){"use strict";var e,i,o,r,l,n;return{setters:[function(t){e=t.r;i=t.c;o=t.h;r=t.H;l=t.g},function(t){n=t.g}],execute:function(){var a=":host([hidden]){display:none}:host{--calcite-button-light:#eaeaea;--calcite-button-light-text:#151515;--calcite-button-dark:#404040;--calcite-button-dark-text:#0b0b0b}:host .split-button__container{display:-ms-flexbox;display:flex}:host .split-button__container>calcite-dropdown>calcite-button{height:100%}:host([color=blue]) .split-button__divider-container{background-color:var(--calcite-ui-blue-1)}:host([color=blue]):host([theme=dark]) .split-button__divider{background-color:var(--calcite-button-dark-text)}:host([color=red]) .split-button__divider-container{background-color:var(--calcite-ui-red-1)}:host([color=red]):host([theme=dark]) .split-button__divider{background-color:var(--calcite-button-dark-text)}:host([color=light]) .split-button__divider-container{background-color:var(--calcite-button-light)}:host([color=light]) .split-button__divider{background-color:var(--calcite-button-light-text)}:host([color=dark]) .split-button__divider-container{background-color:var(--calcite-button-dark)}:host([disabled]) .split-button__divider-container{opacity:0.4}:host([disabled]) calcite-dropdown>calcite-button{pointer-events:none}.split-button__divider-container{width:1px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transition:all 0.15s ease-in-out;transition:all 0.15s ease-in-out}.split-button__divider{width:1px;height:66.666%;display:inline-block;background-color:white}";var c=t("calcite_split_button",function(){function t(t){var o=this;e(this,t);this.calciteSplitButtonPrimaryClick=i(this,"calciteSplitButtonPrimaryClick",7);this.color="blue";this.scale="m";this.dropdownIconType="chevron";this.loading=false;this.calciteSplitButtonPrimaryClickHandler=function(t){return o.calciteSplitButtonPrimaryClick.emit(t)}}t.prototype.validateColor=function(){var t=["blue","red","dark","light"];if(!t.includes(this.color))this.color="blue"};t.prototype.validateScale=function(){var t=["s","m","l"];if(!t.includes(this.scale))this.scale="m"};t.prototype.validateTheme=function(){var t=["dark","light"];if(!t.includes(this.theme))this.theme="light"};t.prototype.validateDropdownIconType=function(){var t=["chevron","caret","ellipsis","overflow"];if(!t.includes(this.dropdownIconType))this.dropdownIconType="chevron"};t.prototype.connectedCallback=function(){this.validateColor();this.validateScale();this.validateTheme();this.validateDropdownIconType()};t.prototype.render=function(){var t=n(this.el);return o(r,{dir:t},o("div",{class:"split-button__container"},o("calcite-button",{dir:t,"aria-label":this.primaryLabel,color:this.color,scale:this.scale,loading:this.loading,"icon-start":this.primaryIconStart?this.primaryIconStart:null,"icon-end":this.primaryIconEnd?this.primaryIconEnd:null,disabled:this.disabled,theme:this.theme,onClick:this.calciteSplitButtonPrimaryClickHandler},this.primaryText),o("div",{class:"split-button__divider-container"},o("div",{class:"split-button__divider"})),o("calcite-dropdown",{alignment:"end",dir:t,theme:this.theme,scale:this.scale,width:this.scale},o("calcite-button",{dir:t,"aria-label":this.dropdownLabel,slot:"dropdown-trigger",scale:this.scale,color:this.color,disabled:this.disabled,theme:this.theme,"icon-start":this.dropdownIcon}),o("slot",null))))};Object.defineProperty(t.prototype,"dropdownIcon",{get:function(){return this.dropdownIconType==="chevron"?"chevronDown":this.dropdownIconType==="caret"?"caretDown":this.dropdownIconType==="ellipsis"?"ellipsis":"handle-vertical"},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{color:["validateColor"],scale:["validateScale"],theme:["validateTheme"],dropdownIconType:["validateDropdownIconType"]}},enumerable:false,configurable:true});return t}());c.style=a}}}));