import { h } from './chunks/d4789960.js';
import './chunks/456564be.js';
import { u as useProp } from './chunks/c26036df.js';
import { g as getComponentOrDefine } from './chunks/071ed725.js';
import { G as GlobalConfig } from './chunks/88bb1718.js';

const style = `
  .main {
    max-width: ${GlobalConfig.maxWidth}px;
  }
  
.footer {
    display: flex;
    width: 100%;
    line-height: 40px;
    padding: 0 20px;
    justify-content: space-between;
    background: #f2f2f5;
    color: #807c7c;
    border-top-style: solid;
    border-top-width: 1px;
}
`;

const KunWebsiteFooter = () => {
  const [content] = useProp("content");
  const [beiAnHao] = useProp("beiAnHao");

  const redirectBeiAn = () => {
    window.open("http://www.beian.miit.gov.cn/", "_blank");
  };

  const goToFeeBack = () => {
    window.open("http://thanks.wintercoming.xyz", "_blank");
  };

  return h("host", null, h("style", null, style), h("div", {
    className: "footer h-16 flex items-center border-gray-400"
  }, h("div", {
    class: "flex mx-auto items-center main justify-between w-full"
  }, h("div", {
    class: "flex items-center"
  }, h("span", null, content), h("span", {
    class: "cursor-pointer ml-4",
    onclick: goToFeeBack
  }, "\u610F\u89C1\u53CD\u9988")), h("span", null, h("span", {
    class: "hover:opacity-75 cursor-pointer",
    onclick: redirectBeiAn
  }, beiAnHao, " ", "\u6DF1\u5733\u7FFC\u884C\u5BA2\u79D1\u6280\u6709\u9650\u8D23\u4EFB\u516C\u53F8")))), h("global-style", null));
};

KunWebsiteFooter.props = {
  beiAnHao: {
    type: String,
    value: "粤 ICP备 18125092号-2",
    reflect: true
  },
  content: {
    type: String,
    value: "马上训练营 @2020",
    reflect: true,
    event: {
      type: "changeMessage"
    }
  }
};
var kunWebsiteFooter = getComponentOrDefine("kun-website-footer", KunWebsiteFooter);

export default kunWebsiteFooter;
//# sourceMappingURL=kun-website-footer.js.map
