1import{a as b,b as d,c as h,d as c}from"./chunk-S674NYTY.js";import{a as u}from"./chunk-MHI7XQYS.js";import{c as l}from"./chunk-76ZYALKJ.js";import"./chunk-TMPVA3BM.js";import"./chunk-GEKDPJJ6.js";import{u as n}from"./chunk-LMRIGFVB.js";import{a as p,c as o,d as m,e as x,f as g,i as f}from"./chunk-6SR3Y2UD.js";import{a as s,b as a}from"./chunk-V6SBLSES.js";var k=()=>".btn-group ix-button:first-child .btn{border-top-right-radius:0px;border-bottom-right-radius:0px;border-right:0px}.btn-group ix-button:last-child .btn{border-top-left-radius:0px;border-bottom-left-radius:0px}.btn-group ix-button:not(:first-child):not(:last-child) .btn{border-radius:0px;border-right:0px}:host{position:relative;display:inline-flex;vertical-align:middle}:host .left-button{width:calc(100% - 2rem);--ix-button-border-radius-right:0}:host .right-button{width:2rem;--ix-dropdown-button-border-radius-left:0}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host{}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host{}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host{}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host{}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .left-button-border{border-top-width:0.125rem;border-right-width:0;border-left-width:0.125rem;border-bottom-width:0.125rem;margin-right:0.125rem}:host .proxy-list{all:unset;position:absolute;left:0px;top:0px;overflow:hidden;color:transparent;opacity:0;pointer-events:all;z-index:1000}:host .proxy-list li{height:2px;width:2px;pointer-events:all}",v=class extends f(...l,u){constructor(r){super(),p(this,r),this.buttonClick=g(this,"buttonClick",7)}get hostElement(){return x(this)}variant="primary";closeBehavior="both";label;ariaLabelButton;icon;splitIcon;ariaLabelSplitIconButton;disabled=!1;disableButton=!1;disableDropdownButton=!1;enableTopLayer=!1;buttonClick;showDropdown=!1;internalId="ix-split-button";observeChildrenChange;componentDidLoad(){super.componentDidLoad(),this.observeChildrenChange=new MutationObserver(()=>{this.updateProxyList()}),this.observeChildrenChange.observe(this.hostElement,{childList:!0,subtree:!0}),this.updateProxyList()}disconnectedCallback(){super.disconnectedCallback(),this.observeChildrenChange?.disconnect()}get isDisabledButton(){return this.disabled||this.disableButton}get isDisabledIcon(){return this.disabled||this.disableDropdownButton}getControllingAriaElement(){return this.hostElement.shadowRoot.querySelector(".right-button")}isAriaActiveDescendantActive(){return this.showDropdown}getAriaActiveDescendantProxyItemId(){return h}updateProxyList(){let r=this.hostElement.querySelectorAll("ix-dropdown-item"),i=this.hostElement.shadowRoot.querySelector(".proxy-list");i&&c(i,Array.from(r),(e,t)=>{t.role="menuitem",t.innerText=e.label??e.textContent??"",t.ariaLabel=e.ariaLabel??e.label??e.textContent??""})}render(){let r=this.variant.toLocaleLowerCase().includes("secondary"),i={variant:this.variant},e=a(s({},i),{disabled:this.isDisabledButton,class:{"left-button":!0,"left-button-border":!r}});return o(m,{key:"884bfb24e3ee02006ea0479f14db9f6340b3392d"},this.label?o("ix-button",a(s({},e),{icon:this.icon,onClick:t=>this.buttonClick.emit(t),"aria-label":this.ariaLabelButton}),this.label):o("ix-icon-button",a(s({},e),{icon:this.icon,onClick:t=>this.buttonClick.emit(t),"aria-label":this.ariaLabelButton})),o("ix-dropdown-button",{key:"bfc3ce10b22f56593f22a99fa3fd5dc8f1fd1bcd",class:"right-button","aria-label":this.ariaLabelSplitIconButton,icon:this.splitIcon??n,enableTopLayer:this.enableTopLayer,closeBehavior:this.closeBehavior,disabled:this.isDisabledIcon,suppressAriaActiveDescendant:!0,onShowChanged:({detail:t})=>this.showDropdown=t,"aria-controls":`${this.internalId}-${d}`},o(b,{key:"dd46c1d745719edccd4d1243a4136e1d10ce88d7",hostId:this.internalId,otherProps:{}}),o("slot",{key:"b7b4e70109eec84ea87011734a9b8415a71998c2"})))}};v.style=k();export{v as ix_split_button};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.