import{r as registerInstance,h as h$1}from"./index-38ad4957.js";import{n as h}from"./dom-context-hooks.module-50442785.js";import{g as getEnvironmentSDK}from"./index.module-b23fdad8.js";import"./JSS-67b5cff8.js";import"./mixins-f750863a.js";import{C as CloseButtonView}from"./sqm-close-button-view-fd9012e7.js";var CloseButton=function(){function o(o){registerInstance(this,o);this.color="#000000";h(this)}o.prototype.disconnectedCallback=function(){};o.prototype.render=function(){var o;var t=getEnvironmentSDK();var e=t.type==="SquatchJS2"&&((o=t.widgetIdent)===null||o===void 0?void 0:o.engagementMedium)==="POPUP";if(!e)return h$1("div",{style:{display:"none"}});var n=function(){var o,e;if(t.type==="SquatchJS2"){(e=(o=t.api).close)===null||e===void 0?void 0:e.call(o)}};return h$1(CloseButtonView,{onClick:n,color:this.color})};return o}();export{CloseButton as sqm_close_button};