var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var SwcWhenData_exports = {};
__export(SwcWhenData_exports, {
  SwcWhenData: () => SwcWhenData
});
module.exports = __toCommonJS(SwcWhenData_exports);
var import__ = require("../index");
var import_SwcHTMLDataElementBase = require("../elements/base/SwcHTMLDataElementBase");
var __decorate = function(decorators, target, key, desc) {
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  return c > 3 && r && Object.defineProperty(target, key, r), r;
};
let SwcWhenData = class SwcWhenData2 extends import_SwcHTMLDataElementBase.SwcHTMLDataElementBase {
  connectedCallback() {
    if (this.style.display !== "contents") {
      this.style.display = "none";
    }
  }
};
SwcWhenData = __decorate([
  (0, import__.elementDefine)({ name: "swc-when-data", extends: "data" })
], SwcWhenData);
//# sourceMappingURL=SwcWhenData.js.map
