'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-9c866aeb.js');
const defaultI18n = require('./default-i18n-d4248548.js');
require('./index-88baf240.js');
require('./index-04dc658f.js');

const scUpgradeRequiredCss = ":host{display:inline-block;color:var(--sc-color-gray-900);cursor:pointer}p{font-size:var(--sc-font-size-medium);font-weight:var(--sc-font-weight-normal);margin:0 0 var(--sc-spacing-medium) 0;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 ScUpgradeRequired = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    /** The tag's size. */
    this.size = 'small';
    this.required = true;
    this.open = false;
  }
  render() {
    if (!this.required) {
      return (index.h(index.Host, null, index.h("slot", null)));
    }
    return (index.h(index.Host, { onClick: () => (this.open = true) }, index.h("span", { class: "trigger" }, index.h("span", { class: "trigger__disabled" }, index.h("slot", null, index.h("sc-premium-badge", null)))), index.h("sc-dialog", { label: defaultI18n.__('Boost Your Revenue', 'surecart'), open: this.open, onScRequestClose: () => (this.open = false), style: { '--width': '21rem', 'fontSize': '15px', '--body-spacing': '2rem' } }, index.h("span", { class: "dialog__title", slot: "label" }, index.h("sc-icon", { name: "zap" }), index.h("span", null, defaultI18n.__('Boost Your Revenue', 'surecart'))), index.h("p", null, defaultI18n.__('Unlock revenue boosting features when you upgrade your plan!', 'surecart')), index.h("sc-button", { href: "https://app.surecart.com/billing", type: "primary", target: "_blank", full: true }, defaultI18n.__('Upgrade Now', 'surecart'), index.h("sc-icon", { name: "arrow-right", slot: "suffix" })))));
  }
};
ScUpgradeRequired.style = scUpgradeRequiredCss;

exports.sc_upgrade_required = ScUpgradeRequired;
