import { provide as a, openBlock as e, createBlock as o, unref as n, withCtx as i, createElementBlock as r, resolveDynamicComponent as l } from "vue";
import { a7 as s, aH as d } from "./index-691eb34d.js";
import "lodash-es";
import "axios";
import "@vueuse/core";
import "vue-i18n";
const g = `html.overflow-y-hidden{overflow-y:hidden}.g-dialog-overlay{--overlay-bg: var(--g-dialog-overlay-bg, rgba(33, 33, 33, .46));position:fixed;left:0;top:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;pointer-events:none;background:var(--6eaca59a);z-index:200}.g-dialog-overlay--active{pointer-events:auto}.g-dialog-overlay--local{position:absolute}.fade-enter-active{transition:all .3s ease-out}.fade-leave-active{transition:all .2s cubic-bezier(1,.5,.8,1)}.fade-enter-from,.fade-leave-to{opacity:0}.g-dialog-content{--content-bg: var(--g-dialog-content-bg, #fff);--content-border-radius: var(--g-dialog-content-border-radius, 4px);--content-shadow: var( --g-dialog-content-shadow, 0 11px 15px -7px rgb(0 0 0 / 20%), 0 24px 38px 3px rgb(0 0 0 / 14%), 0 9px 46px 8px rgb(0 0 0 / 12%) );pointer-events:auto;overflow-y:auto;transition:.3s cubic-bezier(.25,.8,.25,1);width:100%;background:var(--889a571a);border-radius:var(--023a843a)}.g-dialog-content:not(.g-dialog-content--depressed):not(.g-dialog-content--fullscreen){box-shadow:var(--content-shadow)}.g-dialog-content:not(.g-dialog-content--fullscreen){max-height:90%;margin:24px}.g-dialog-content--scrollable{display:flex}.g-dialog-content--fullscreen{height:100%;border-radius:0}.g-dialog-frame{--frame-transition-duration: var(--g-dialog-transition-duration, .2s);align-items:center;display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;transition-duration:.2s;transition-timing-function:cubic-bezier(.25,.8,.25,1);width:100%;outline:none;pointer-events:none;z-index:201}.g-dialog-frame--local{position:absolute}.g-dialog-transition{opacity:0}.g-dialog-transition-enter-active,.g-dialog-transition-leave-active{transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-duration:var(--frame-transition-duration)}.g-dialog-transition-enter-from,.g-dialog-transition-leave-to{transform:scale(.5);opacity:0}.kapix-dialog-frame,.kapix-dialog-frame iframe{width:100%;height:100%;min-width:0;min-height:0}
`, c = ["src"], w = {
  __name: "KapixDialogWrapper",
  props: {
    componentToWrapp: {
      type: Object,
      default: null
    },
    externalUrl: {
      type: String,
      default: null
    },
    dialogContext: {
      type: Object,
      default: null
    }
  },
  setup(t) {
    return s("KapixDialogWrapper", g), a("dialogContext", t.dialogContext), (f, u) => (e(), o(n(d), null, {
      default: i(() => [
        t.externalUrl ? (e(), r("iframe", {
          key: 0,
          class: "kapix-dialog-frame",
          allowtransparency: "true",
          rameborder: "0",
          sandbox: "allow-popups allow-forms allow-popups-to-escape-sandbox allow-same-origin allow-scripts",
          src: t.externalUrl
        }, null, 8, c)) : (e(), o(l(t.componentToWrapp), { key: 1 }))
      ]),
      _: 1
    }));
  }
};
export {
  w as default
};
