import { n } from "./utils-4kGecFw2.js";
import { n as r, a as e, c as t } from "./index-BcLRpF0n.js";
import { _ as i } from "./launch-g_kMwjYd.js";
import { _ as a } from "./mount_head-c1OIlkSj.js";
import "./index-YqpN0yec.js";
import "./index-CZypPRsn.js";
import "vue";
import "vue-clipboard2";
import "interactjs";
import "prismjs";
import "prismjs/themes/prism-okaidia.css";
import "@liveqing/liveplayer";
import "jquery";
import "mqtt/dist/mqtt";
import "vuex";
import "axios";
import "element-ui";
import "vue-router";
import "moment";
import "terraformer-wkt-parser";
import "dayjs";
import "file-saver";
import "nanoid";
import "jspack";
import "recorder-core";
import "recorder-core/src/engine/mp3";
import "recorder-core/src/engine/mp3-engine";
import "recorder-core/src/engine/pcm";
import "js-base64";
import "element-ui/lib/theme-chalk/index.css";
var s = {
  props: {
    containerStyle: {
      type: Object,
      "default": function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      timer: null,
      radio: 1,
      safety_switch_state: !0
    };
  },
  mounted: function mounted() {},
  methods: {
    handle_laser_shine_ctrl: function handle_laser_shine_ctrl(r) {
      if (this.safety_switch_state) this.$message.warning("请关闭保险");else {
        var _r = n.fire_ctrl(1);
        this.commit_directive(_r), this.$message.success("发射成功");
      }
    },
    commit_directive: function commit_directive(n) {
      this.$emit("directive", n);
    }
  }
};
var o = function o() {
    var n = this,
      r = n.$createElement,
      t = n._self._c || r;
    return t("div", {
      staticClass: "cpt-MMC_Gimbal_S79",
      style: n.containerStyle
    }, [t("div", {
      directives: [{
        name: "interact",
        rawName: "v-interact"
      }],
      staticClass: "hd"
    }, [n._m(0), n._v(" "), t("div", {
      staticClass: "close",
      on: {
        click: function click(r) {
          return n.$emit("close");
        }
      }
    }, [n._v("关闭")])]), n._v(" "), t("div", {
      staticClass: "bd"
    }, [t("div", {
      staticClass: "form-wrap"
    }, [t("div", {
      staticClass: "form-item"
    }, [t("div", {
      staticClass: "label-box"
    }, [n._v("保险：")]), n._v(" "), t("div", {
      staticClass: "input-box"
    }, [t("el-switch", {
      attrs: {
        size: "mini"
      },
      model: {
        value: n.safety_switch_state,
        callback: function callback(r) {
          n.safety_switch_state = r;
        },
        expression: "safety_switch_state"
      }
    })], 1)]), n._v(" "), t("div", {
      staticClass: "form-item mt16"
    }, [t("img", {
      attrs: {
        src: e,
        alt: ""
      }
    }), n._v(" "), t("div", {
      staticClass: "launch"
    }, [t("img", {
      attrs: {
        src: i,
        alt: ""
      },
      on: {
        click: n.handle_laser_shine_ctrl
      }
    }), n._v(" "), t("div", {
      staticClass: "label-box"
    }, [n._v("发射")])])])])])]);
  },
  A = [function () {
    var n = this,
      r = n.$createElement,
      e = n._self._c || r;
    return e("div", {
      staticClass: "left ml8"
    }, [e("img", {
      attrs: {
        src: a
      }
    }), n._v(" "), e("div", {
      staticClass: "title"
    }, [n._v("射击枪")])]);
  }];
o._withStripped = !0;
var l = r({
  render: o,
  staticRenderFns: A
}, function (n) {
  n && n("data-v-a56d471a_0", {
    source: ".cpt-MMC_Gimbal_S79[data-v-a56d471a] {\n  position: absolute;\n  right: 0;\n  background: rgba(0, 23, 79, 0.7);\n  box-shadow: 0 2px 4px 0 rgba(1, 162, 255, 0.35), inset 0 0 40px 0 rgba(0, 184, 255, 0.5);\n  border-radius: 10px;\n  width: 240px;\n  box-sizing: border-box;\n}\n.cpt-MMC_Gimbal_S79 .hd[data-v-a56d471a] {\n  height: 32px;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  background: rgba(16, 65, 215, 0.2);\n  box-shadow: inset 0 0 15px 0 rgba(0, 182, 255, 0.6);\n  border-radius: 10px 10px 0 0;\n}\n.cpt-MMC_Gimbal_S79 .hd .left[data-v-a56d471a] {\n  display: flex;\n  align-items: center;\n}\n.cpt-MMC_Gimbal_S79 .hd .left .title[data-v-a56d471a] {\n  font-size: 20px;\n  font-family: YouSheBiaoTiHei;\n  color: #14faff;\n  line-height: 26px;\n  text-shadow: 0px 1px 1px rgba(2, 32, 56, 0.2);\n  background: linear-gradient(135deg, #e3aa77 0%, #f5cda9 38%, #f9ecd3 58%, #fcdbb1 79%, #edb07a 100%);\n  -webkit-background-clip: text;\n  -webkit-text-fill-color: transparent;\n}\n.cpt-MMC_Gimbal_S79 .hd .close[data-v-a56d471a] {\n  font-size: 14px;\n  font-family: MicrosoftYaHei;\n  color: #d2dfff;\n  margin-right: 8px;\n  cursor: pointer;\n}\n.cpt-MMC_Gimbal_S79 .bd[data-v-a56d471a] {\n  display: flex;\n}\n.cpt-MMC_Gimbal_S79 .bd .form-wrap[data-v-a56d471a] {\n  padding: 16px 0;\n  width: 100%;\n  height: 130px;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: space-around;\n}\n.cpt-MMC_Gimbal_S79 .bd .form-wrap .form-item[data-v-a56d471a] {\n  display: flex;\n  align-items: center;\n}\n.cpt-MMC_Gimbal_S79 .bd .form-wrap .form-item .label-box[data-v-a56d471a] {\n  color: #cbd0eb;\n}\n.cpt-MMC_Gimbal_S79 .bd .form-wrap .form-item .input-box[data-v-a56d471a] {\n  display: flex;\n  align-items: center;\n}\n.cpt-MMC_Gimbal_S79 .bd .form-wrap .form-item .input-box .icon-box [class^=el-icon-][data-v-a56d471a] {\n  font-size: 30px;\n  color: #dce9ff;\n}\n.cpt-MMC_Gimbal_S79 .bd .form-wrap .launch[data-v-a56d471a] {\n  margin-left: 16px;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n}\n\n/*# sourceMappingURL=index.vue.map */",
    map: {
      version: 3,
      sources: ["E:\\work\\standardization\\mmc-stl-module\\src\\components\\MMCFlightControlCenter\\components\\mount\\MMC_Gimbal_S79\\index.vue", "index.vue"],
      names: [],
      mappings: "AAiEA;EACA,kBAAA;EAEA,QAAA;EACA,gCAAA;EACA,wFAAA;EACA,mBAAA;EACA,YAAA;EAEA,sBAAA;AClEA;ADmEA;EACA,YAAA;EACA,aAAA;EACA,8BAAA;EACA,mBAAA;EACA,kCAAA;EACA,mDAAA;EACA,4BAAA;ACjEA;ADmEA;EACA,aAAA;EACA,mBAAA;ACjEA;ADkEA;EACA,eAAA;EACA,4BAAA;EACA,cAAA;EACA,iBAAA;EACA,6CAAA;EACA,oGAAA;EAQA,6BAAA;EACA,oCAAA;ACvEA;AD2EA;EACA,eAAA;EACA,2BAAA;EACA,cAAA;EACA,iBAAA;EACA,eAAA;ACzEA;AD4EA;EACA,aAAA;AC1EA;AD2EA;EACA,eAAA;EACA,WAAA;EACA,aAAA;EACA,aAAA;EACA,sBAAA;EACA,mBAAA;EACA,6BAAA;ACzEA;AD0EA;EACA,aAAA;EACA,mBAAA;ACxEA;ADyEA;EACA,cAAA;ACvEA;ADyEA;EACA,aAAA;EACA,mBAAA;ACvEA;ADyEA;EACA,eAAA;EACA,cAAA;ACvEA;AD4EA;EACA,iBAAA;EACA,aAAA;EACA,sBAAA;EACA,mBAAA;AC1EA;;AAEA,oCAAoC",
      file: "index.vue",
      sourcesContent: ['<template>\r\n  <div class="cpt-MMC_Gimbal_S79" :style="containerStyle">\r\n    <div v-interact class="hd">\r\n      <div class="left ml8">\r\n        <img src="../assets/images/mount/mount_head.png" />\r\n        <div class="title">射击枪</div>\r\n      </div>\r\n      <div class="close" @click="$emit(\'close\')">关闭</div>\r\n    </div>\r\n    <div class="bd">\r\n      <div class="form-wrap">\r\n        <div class="form-item">\r\n          <div class="label-box">保险：</div>\r\n          <div class="input-box">\r\n            <el-switch v-model="safety_switch_state" size="mini" />\r\n          </div>\r\n        </div>\r\n        <div class="form-item mt16">\r\n          <img src="../assets/images/observe/005.svg" alt="" />\r\n          <div class="launch">\r\n            <img src="../assets/images/mount/launch.png" alt @click="handle_laser_shine_ctrl" />\r\n            <div class="label-box">发射</div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport { MMC_Gimbal_S79 } from \'../utils\';\r\nexport default {\r\n  props: {\r\n    containerStyle: {\r\n      type: Object,\r\n      default: () => ({})\r\n    }\r\n  },\r\n  data() {\r\n    return {\r\n      timer: null,\r\n      radio: 1,\r\n      safety_switch_state: true\r\n    };\r\n  },\r\n  mounted() {},\r\n  methods: {\r\n    handle_laser_shine_ctrl(value) {\r\n      if (this.safety_switch_state) {\r\n        this.$message.warning(\'请关闭保险\');\r\n      } else {\r\n        const buff = MMC_Gimbal_S79.fire_ctrl(1);\r\n        this.commit_directive(buff);\r\n        this.$message.success(\'发射成功\');\r\n      }\r\n    },\r\n    commit_directive(buffer) {\r\n      // console.log(buffer);\r\n      this.$emit(\'directive\', buffer);\r\n    }\r\n  }\r\n};\r\n<\/script>\r\n\r\n<style lang="scss" scoped>\r\n.cpt-MMC_Gimbal_S79 {\r\n  position: absolute;\r\n  // bottom: 0;\r\n  right: 0;\r\n  background: rgba(0, 23, 79, 0.7);\r\n  box-shadow: 0 2px 4px 0 rgba(1, 162, 255, 0.35), inset 0 0 40px 0 rgba(0, 184, 255, 0.5);\r\n  border-radius: 10px;\r\n  width: 240px;\r\n\r\n  box-sizing: border-box;\r\n  .hd {\r\n    height: 32px;\r\n    display: flex;\r\n    justify-content: space-between;\r\n    align-items: center;\r\n    background: rgba(16, 65, 215, 0.2);\r\n    box-shadow: inset 0 0 15px 0 rgba(0, 182, 255, 0.6);\r\n    border-radius: 10px 10px 0 0;\r\n\r\n    .left {\r\n      display: flex;\r\n      align-items: center;\r\n      .title {\r\n        font-size: 20px;\r\n        font-family: YouSheBiaoTiHei;\r\n        color: #14faff;\r\n        line-height: 26px;\r\n        text-shadow: 0px 1px 1px rgba(2, 32, 56, 0.2);\r\n        background: linear-gradient(\r\n          135deg,\r\n          #e3aa77 0%,\r\n          #f5cda9 38%,\r\n          #f9ecd3 58%,\r\n          #fcdbb1 79%,\r\n          #edb07a 100%\r\n        );\r\n        -webkit-background-clip: text;\r\n        -webkit-text-fill-color: transparent;\r\n      }\r\n    }\r\n\r\n    .close {\r\n      font-size: 14px;\r\n      font-family: MicrosoftYaHei;\r\n      color: #d2dfff;\r\n      margin-right: 8px;\r\n      cursor: pointer;\r\n    }\r\n  }\r\n  .bd {\r\n    display: flex;\r\n    .form-wrap {\r\n      padding: 16px 0;\r\n      width: 100%;\r\n      height: 130px;\r\n      display: flex;\r\n      flex-direction: column;\r\n      align-items: center;\r\n      justify-content: space-around;\r\n      .form-item {\r\n        display: flex;\r\n        align-items: center;\r\n        .label-box {\r\n          color: #cbd0eb;\r\n        }\r\n        .input-box {\r\n          display: flex;\r\n          align-items: center;\r\n          .icon-box {\r\n            [class^=\'el-icon-\'] {\r\n              font-size: 30px;\r\n              color: #dce9ff;\r\n            }\r\n          }\r\n        }\r\n      }\r\n      .launch {\r\n        margin-left: 16px;\r\n        display: flex;\r\n        flex-direction: column;\r\n        align-items: center;\r\n      }\r\n    }\r\n  }\r\n}\r\n</style>\r\n', ".cpt-MMC_Gimbal_S79 {\n  position: absolute;\n  right: 0;\n  background: rgba(0, 23, 79, 0.7);\n  box-shadow: 0 2px 4px 0 rgba(1, 162, 255, 0.35), inset 0 0 40px 0 rgba(0, 184, 255, 0.5);\n  border-radius: 10px;\n  width: 240px;\n  box-sizing: border-box;\n}\n.cpt-MMC_Gimbal_S79 .hd {\n  height: 32px;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  background: rgba(16, 65, 215, 0.2);\n  box-shadow: inset 0 0 15px 0 rgba(0, 182, 255, 0.6);\n  border-radius: 10px 10px 0 0;\n}\n.cpt-MMC_Gimbal_S79 .hd .left {\n  display: flex;\n  align-items: center;\n}\n.cpt-MMC_Gimbal_S79 .hd .left .title {\n  font-size: 20px;\n  font-family: YouSheBiaoTiHei;\n  color: #14faff;\n  line-height: 26px;\n  text-shadow: 0px 1px 1px rgba(2, 32, 56, 0.2);\n  background: linear-gradient(135deg, #e3aa77 0%, #f5cda9 38%, #f9ecd3 58%, #fcdbb1 79%, #edb07a 100%);\n  -webkit-background-clip: text;\n  -webkit-text-fill-color: transparent;\n}\n.cpt-MMC_Gimbal_S79 .hd .close {\n  font-size: 14px;\n  font-family: MicrosoftYaHei;\n  color: #d2dfff;\n  margin-right: 8px;\n  cursor: pointer;\n}\n.cpt-MMC_Gimbal_S79 .bd {\n  display: flex;\n}\n.cpt-MMC_Gimbal_S79 .bd .form-wrap {\n  padding: 16px 0;\n  width: 100%;\n  height: 130px;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: space-around;\n}\n.cpt-MMC_Gimbal_S79 .bd .form-wrap .form-item {\n  display: flex;\n  align-items: center;\n}\n.cpt-MMC_Gimbal_S79 .bd .form-wrap .form-item .label-box {\n  color: #cbd0eb;\n}\n.cpt-MMC_Gimbal_S79 .bd .form-wrap .form-item .input-box {\n  display: flex;\n  align-items: center;\n}\n.cpt-MMC_Gimbal_S79 .bd .form-wrap .form-item .input-box .icon-box [class^=el-icon-] {\n  font-size: 30px;\n  color: #dce9ff;\n}\n.cpt-MMC_Gimbal_S79 .bd .form-wrap .launch {\n  margin-left: 16px;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n}\n\n/*# sourceMappingURL=index.vue.map */"]
    },
    media: void 0
  });
}, s, "data-v-a56d471a", false, undefined, !1, t);
export { l as default };
