import { h } from './chunks/d4789960.js';
import './chunks/456564be.js';
import { u as useProp } from './chunks/c26036df.js';
import './chunks/4ccc6eeb.js';
import { g as getComponentOrDefine } from './chunks/071ed725.js';
import './chunks/23e44913.js';
import './chunks/a02c5734.js';
import './chunks/d76d6172.js';
import './kun-icon.js';
import './chunks/e5702756.js';
import './kun-image.js';

var style = ":host {\n}\n";

const KunImageOrDefault = () => {
  const [url] = useProp("url");
  const [height] = useProp("height");
  const [width] = useProp("width");
  return h("host", null, h("style", null, style), url != null && h("kun-image", {
    url: url,
    width: width,
    height: height
  }), url == null && h("kun-icon", {
    iconType: "logo",
    iconWidth: width,
    iconHeight: height
  }));
};

KunImageOrDefault.props = {
  height: {
    type: Number
  },
  cls: {
    type: String,
    value: ""
  },
  width: {
    type: Number
  },
  url: {
    type: String,
    reflect: true
  }
};
var kunImageOrDefault = getComponentOrDefine("kun-image-or-default", KunImageOrDefault);

export default kunImageOrDefault;
//# sourceMappingURL=kun-image-or-default.js.map
