'use strict';

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

const index = require('./index-e0385008.js');

const modalMatterportCss = ".modal-matterport{--width:855px;--max-width:855px}@media only screen and (max-width: 860px){.modal-matterport{--width:100%;--max-width:auto}}";

const ModalMatterport = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.floodteamCloseModal = index.createEvent(this, "floodteamCloseModal", 7);
    this.modelId = undefined;
    this.jobId = undefined;
  }
  componentDidLoad() {
    if (!(index.Build === null || index.Build === void 0 ? void 0 : index.Build.isBrowser))
      return;
  }
  render() {
    return [
      index.h("ion-header", null, index.h("ion-toolbar", null, index.h("ion-title", null, "Matterport Model"), index.h("ion-buttons", { slot: "end" }, index.h("ion-button", { onClick: () => this.floodteamCloseModal.emit(), style: {
          "--color": "var(--ion-text-color)",
          "--color-hover": "var(--ion-color-danger",
        } }, index.h("ion-icon", { slot: "icon-only", name: "close-circle-outline" }))))),
      index.h("ion-content", null, index.h("iframe", { style: {
          maxWidth: "100%",
          maxHeight: "100%",
          display: "block",
        }, width: "853", height: "480", frameborder: "0", allowfullScreen: "true", allow: "xr-spatial-tracking", src: `https://my.matterport.com/show/?m=${this.modelId}&brand=0&help=1` })),
    ];
  }
};
ModalMatterport.style = modalMatterportCss;

exports.modal_matterport = ModalMatterport;
