1import{a as e,i as t,n,r,u as i}from"./jsx-runtime-CB3xYdkg.js";import{d as a,h as o,v as s}from"./utils-CJ7IKxqX.js";function c(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l(e,t)}var d=i(e()),f=i(t()),p=i(s()),m=[`active`,`aria-label`,`block`,`className`,`close`,`cssModule`,`color`,`outline`,`size`,`tag`,`innerRef`],h={active:f.default.bool,"aria-label":f.default.string,block:f.default.bool,color:f.default.string,disabled:f.default.bool,outline:f.default.bool,tag:o,innerRef:f.default.oneOfType([f.default.object,f.default.func,f.default.string]),onClick:f.default.func,size:f.default.string,children:f.default.node,className:f.default.string,cssModule:f.default.object,close:f.default.bool},g={color:`secondary`,tag:`button`},_=function(e){u(t,e);function t(t){var n=e.call(this,t)||this;return n.onClick=n.onClick.bind(c(n)),n}var i=t.prototype;return i.onClick=function(e){if(this.props.disabled){e.preventDefault();return}if(this.props.onClick)return this.props.onClick(e)},i.render=function(){var e=this.props,t=e.active,i=e[`aria-label`],o=e.block,s=e.className,c=e.close,l=e.cssModule,u=e.color,f=e.outline,h=e.size,g=e.tag,_=e.innerRef,v=n(e,m);c&&v.children===void 0&&(v.children=d.createElement(`span`,{"aria-hidden":!0},`Ã`));var y=`btn`+(f?`-outline`:``)+`-`+u,b=a((0,p.default)(s,{close:c},c||`btn`,c||y,h?`btn-`+h:!1,o?`btn-block`:!1,{active:t,disabled:this.props.disabled}),l);v.href&&g===`button`&&(g=`a`);var x=c?`Close`:null;return d.createElement(g,r({type:g===`button`&&v.onClick?`button`:void 0},v,{className:b,ref:_,onClick:this.onClick,"aria-label":i||x}))},t}(d.Component);_.propTypes=h,_.defaultProps=g;export{u as n,c as r,_ as t};
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.