import{r as i,h as s,H as t,g as e}from"./p-2b0a6102.js";import{v as r}from"./p-14616bce.js";const o="bs-icon-gradient-wrapper{display:inline-block}bs-icon-gradient-wrapper .svg-wrapper{display:inline-block}bs-icon-gradient-wrapper .svg-wrapper *{fill:inherit}";const n=class{constructor(s){i(this,s);this.mutationObserver=undefined;this.stops=[{offset:.1326,color:"#EE282A"},{offset:.5466,color:"#1C0087"},{offset:.9715,color:"#0086EA"}];this._uniqueID=undefined;this.viewBox="0 0 0 0"}componentDidLoad(){this.setViewBox();this.mutationObserverSetup()}setViewBox(){var i;const s=(i=this.hostEl)===null||i===void 0?void 0:i.querySelector("svg");this.viewBox=s===null||s===void 0?void 0:s.getAttribute("viewBox")}mutationObserverSetup(){this.mutationObserver=new MutationObserver(this.setViewBox);this.mutationObserver.observe(this.hostEl,{childList:true})}disconnectedCallback(){var i,s;(s=(i=this.mutationObserver)===null||i===void 0?void 0:i.disconnect)===null||s===void 0?void 0:s.call(i);this.mutationObserver=undefined}get uniqueId(){if(!this._uniqueID){this._uniqueID=`svg-gradient-${r()}`}return this._uniqueID}render(){return s(t,null,s("span",{class:"svg-wrapper",style:{fill:`url(#${this.uniqueId})`},"data-slot":true},s("slot",null)),s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:this.viewBox,width:"0",height:"0"},s("linearGradient",{id:this.uniqueId,x1:"0",y1:"0",x2:"100%",y2:"100%",gradientUnits:"userSpaceOnUse"},this.stops.map((i=>s("stop",{key:i.offset,offset:i.offset,"stop-color":i.color}))))))}get hostEl(){return e(this)}};n.style=o;export{n as bs_icon_gradient_wrapper};
//# sourceMappingURL=p-1863ce7a.entry.js.map