var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var s,e=1,n=arguments.length;e<n;e++){s=arguments[e];for(var o in s)if(Object.prototype.hasOwnProperty.call(s,o))t[o]=s[o]}return t};return __assign.apply(this,arguments)};System.register(["./p-641f968d.system.js","./p-b6504987.system.js","./p-30c1ef36.system.js","./p-6333265f.system.js"],(function(t){"use strict";var s,e,n,o,a,r;return{setters:[function(t){s=t.h;e=t.c;n=t.r},function(t){o=t.n},function(t){a=t.B},function(t){r=t.g}],execute:function(){var c=function(t){var n=t.states,o=t.callbacks;var a=n.styles;return s(e,{class:"squatch-container"},s("div",{style:{padding:t.states.styles.padding},part:"sqm-base"},a.closeButton&&s("span",{part:"sqm-close-button",class:"close squatch-header-close","data-close-panel":"#squatch-panel",onClick:function(){return o.closePopup()}},a.closeButtonText),s("slot",null),a.poweredBy?s("a",{class:"sqh-attribution",href:"https://impact.com/advocate/",target:"_blank"},a.poweredByText):""))};function i(t){var s=a();function e(){var t;if(a()==="POPUP"){(t=window.frameElement["squatchJsApi"])===null||t===void 0?void 0:t.close()}}var n=t.popupPadding?t.popupPadding==="none"?"0":"var(--sl-spacing-"+t.popupPadding+")":"var(--sl-spacing-medium)";var o=t.embedPadding?t.embedPadding==="none"?"0":"var(--sl-spacing-"+t.embedPadding+")":"0";var r=a()==="POPUP"?n:o;return{states:{showCloseButton:t.closeButton&&s==="POPUP",styles:__assign(__assign({},t),{padding:r,closeButtonText:t.closeButtonText?t.closeButtonText:"X",poweredByText:t.poweredByText})},data:{},callbacks:{closePopup:e}}}var p=".squatch-header-close{position:absolute;right:20px;top:10px;cursor:pointer}.squatch-container{background-color:var(--widget-background-color);display:block}";var u=t("sqm_popup_container",function(){function t(t){n(this,t);this.poweredByText="Powered By";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=r(this);return s(c,Object.assign({},i(t)))};return t}());u.style=p}}}));