"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[1972],{1972:function(e,t,n){n.r(t),n.d(t,{sc_upgrade_required:function(){return o}});var r=n(3029),i=n(2901),s=n(1346),o=function(){return(0,i.A)((function e(t){(0,r.A)(this,e),(0,s.r)(this,t),this.size="small",this.required=!0,this.open=!1}),[{key:"render",value:function(){var e,t=this;return this.required?(0,s.h)(s.H,{onClick:function(){return t.open=!0}},(0,s.h)("span",{class:"trigger"},(0,s.h)("span",{class:"trigger__disabled"},(0,s.h)("slot",null,(0,s.h)("sc-premium-badge",null)))),(0,s.h)("sc-dialog",{label:wp.i18n.__("Boost Your Revenue","surecart"),open:this.open,onScRequestClose:function(){return t.open=!1,!0},style:{"--width":"21rem",fontSize:"15px","--body-spacing":"2rem"}},(0,s.h)("span",{class:"dialog__title",slot:"label"},(0,s.h)("sc-icon",{name:"zap"}),(0,s.h)("span",null,wp.i18n.__("Boost Your Revenue","surecart"))),(0,s.h)("slot",{name:"content"},(0,s.h)("p",null,wp.i18n.__("Unlock revenue boosting features when you upgrade your plan!","surecart"))),(0,s.h)("sc-button",{href:"https://app.surecart.com/plans?switch_account_id=".concat(null===(e=null===window||void 0===window?void 0:window.scData)||void 0===e?void 0:e.account_id),type:"primary",target:"_blank",full:!0},wp.i18n.__("Upgrade Now","surecart"),(0,s.h)("sc-icon",{name:"arrow-right",slot:"suffix"})))):(0,s.h)(s.H,null,(0,s.h)("slot",null))}}])}();o.style=":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)}"}}]);