import{r as e,h as t,H as s}from"./p-9add63ef.js";const r=":host{display:inline-block;color:var(--sc-color-gray-900);cursor:pointer}p,::slotted(p){font-size:var(--sc-font-size-medium) !important;font-weight:var(--sc-font-weight-normal);margin:0 0 var(--sc-spacing-medium) 0 !important;line-height:var(--sc-line-height-dense);white-space:normal}.trigger{pointer-events:auto}.trigger__disabled{pointer-events:none}.dialog__title{display:flex;gap:0.5em;align-items:center}.dialog__title sc-icon{font-size:18px;width:22px;stroke-width:4;color:var(--sc-color-primary-500)}";const o=r;const i=class{constructor(t){e(this,t);this.size="small";this.required=true;this.open=false}render(){var e;if(!this.required){return t(s,null,t("slot",null))}return t(s,{onClick:()=>this.open=true},t("span",{class:"trigger"},t("span",{class:"trigger__disabled"},t("slot",null,t("sc-premium-badge",null)))),t("sc-dialog",{label:wp.i18n.__("Boost Your Revenue","surecart"),open:this.open,onScRequestClose:()=>{this.open=false;return true},style:{"--width":"21rem",fontSize:"15px","--body-spacing":"2rem"}},t("span",{class:"dialog__title",slot:"label"},t("sc-icon",{name:"zap"}),t("span",null,wp.i18n.__("Boost Your Revenue","surecart"))),t("slot",{name:"content"},t("p",null,wp.i18n.__("Unlock revenue boosting features when you upgrade your plan!","surecart"))),t("sc-button",{href:`https://app.surecart.com/plans?switch_account_id=${(e=window===null||window===void 0?void 0:window.scData)===null||e===void 0?void 0:e.account_id}`,type:"primary",target:"_blank",full:true},wp.i18n.__("Upgrade Now","surecart"),t("sc-icon",{name:"arrow-right",slot:"suffix"}))))}};i.style=o;export{i as sc_upgrade_required};
//# sourceMappingURL=p-f7a5d951.entry.js.map