const e="dx-license-trigger",t=e,n="dx-license",s="buy-now",i="version",l={opacity:"1",visibility:"visible","clip-path":"none",filter:"none"},o={...l,width:"100%",height:"auto",lineHeight:"auto",display:"block","z-index":"900",position:"static",transform:"translate(0px, 0px)","background-color":"#FF7200",border:"none",margin:"auto","box-sizing":"border-box","text-align":"center"},r={...o,display:"flex","align-items":"center","flex-direction":"row",position:"relative",top:"0px",left:"0px",padding:"0.5rem"},a={width:"1rem",cursor:"pointer",height:"1rem"},c={...l,display:"inline",position:"static",padding:"0px",margin:"0px",color:"white","font-family":"'Segoe UI','Open Sans Condensed',-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,Cantarell,Ubuntu,roboto,noto,arial,sans-serif","font-size":"14px","font-wight":"600"};class d extends HTMLElement{constructor(){super(),this._observer=null,this._inReassign=!1,this._hidden=!1,this._spanStyles=this._createImportantStyles(c),this._linkStyles=this._createImportantStyles(c),this._containerStyles=this._createImportantStyles(r),this._contentStyles=this._createImportantStyles(o),this._buttonStyles=this._createImportantStyles(a)}_createImportantStyles(e){return Object.keys(e).reduce(((t,n)=>`${t}${[n,`${e[n]} !important;`].join(": ")}`),"")}_createSpan(e){const t=document.createElement("span");return t.innerText=e,t.style.cssText=this._spanStyles,t}_createLink(e,t){const n=document.createElement("a");return n.innerText=e,n.style.cssText=this._linkStyles,n.href=t,n.target="_blank",n}_createButton(){const e=document.createElement("div");e.style.cssText=this._buttonStyles,e.innerHTML='<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 16">\n  <polygon points="13.4 12.7 8.7 8 13.4 3.4 12.6 2.6 8 7.3 3.4 2.6 2.6 3.4 7.3 8 2.6 12.6 3.4 13.4 8 8.7 12.7 13.4 13.4 12.7"/>\n</svg>';const t=e.querySelector("polygon"),n=e.querySelector("svg");return n&&(n.style.verticalAlign="baseline"),t&&(t.style.fill="#fff",t.style.opacity=".5",t.style.strokeWidth="0px"),e.onclick=()=>{this._hidden=!0,this.style.display="none"},e}_createContentContainer(){const e=document.createElement("div");return e.style.cssText=this._contentStyles,e.append(this._createSpan("For evaluation purposes only. Redistribution not authorized. Please "),this._createLink("purchase a license",this.getAttribute(s)),this._createSpan(` to continue use of DevExpress product libraries (v${this.getAttribute(i)}).`)),e}_reassignComponent(){this.innerHTML="",this.style.cssText=this._containerStyles,this.append(this._createContentContainer(),this._createButton())}connectedCallback(){this._reassignComponent(),this._observer||(this._observer=new MutationObserver((()=>{var e;this._hidden?null===(e=this._observer)||void 0===e||e.disconnect():this._inReassign?this._inReassign=!1:(this._inReassign=!0,this._reassignComponent())})),this._observer.observe(this,{childList:!0,attributes:!0,subtree:!0}))}disconnectedCallback(){setTimeout((()=>{document.getElementsByTagName(n).length||document.body.prepend(this)}),100)}}class p extends HTMLElement{connectedCallback(){this.style.display="none";if(!document.getElementsByTagName(n).length){const e=document.createElement(n);e.setAttribute(i,this.getAttribute(i)),e.setAttribute(s,this.getAttribute(s)),e.setAttribute("data-permanent","true"),document.body.prepend(e)}}}function h(){"undefined"==typeof customElements||customElements.get(t)||(customElements.define(t,p),customElements.define(n,d))}window.DevExpress=window.DevExpress||{},window.DevExpress.config?window.DevExpress.config(JSON.parse(atob("eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaVZqWlNVWEpJWkdZelVXRmlNbGQ1YldsWlpIZFlUU0lLZlE9PS53aEFZRnYvUVRDWlVKalVITm14M25DLzVnWE9aV09wQmFYbm9JMlg1MHJadTdrbm9Mc2lIRUs0REoyZWlQZi9tSEExRk9ySlltanFtSWdKWTZpQ2prSTVtYlVnN1N6ZEI0SUIvektuMTdlQlRUQit0YThVZDNzSThNK3NES2ZRd3NMNU5tdz09In0="))):window.DevExpress.config=JSON.parse(atob("eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaVZqWlNVWEpJWkdZelVXRmlNbGQ1YldsWlpIZFlUU0lLZlE9PS53aEFZRnYvUVRDWlVKalVITm14M25DLzVnWE9aV09wQmFYbm9JMlg1MHJadTdrbm9Mc2lIRUs0REoyZWlQZi9tSEExRk9ySlltanFtSWdKWTZpQ2prSTVtYlVnN1N6ZEI0SUIvektuMTdlQlRUQit0YThVZDNzSThNK3NES2ZRd3NMNU5tdz09In0="));export{e as dxLicenseTriggerName,h as registerTrialPanelComponents};
