import { r as n } from "./utils-4kGecFw2.js";
import { n as e, e as t, c as i } from "./index-BcLRpF0n.js";
import { _ as r } 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 a = {
  props: {
    containerStyle: {
      type: Object,
      "default": function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      radio: 1,
      safety_switch_state: !1,
      fire_status: !1
    };
  },
  methods: {
    handle_fire_ctrl: function handle_fire_ctrl() {
      if (console.log(111, this.safety_switch_state), !this.safety_switch_state) return this.$message.warning("保险未打开！"), this.fire_status = !1;
      var e = null;
      e = this.fire_status ? n.gimbal_mode2_ctrl(1) : n.gimbal_mode2_ctrl(0), this.commit_directive(e);
    },
    commit_directive: function commit_directive(n) {
      this.$emit("directive", n);
    }
  }
};
var s = function s() {
    var n = this,
      e = n.$createElement,
      i = n._self._c || e;
    return i("div", {
      staticClass: "cpt-MMC_Gimbal_FE3",
      style: n.containerStyle
    }, [i("div", {
      directives: [{
        name: "interact",
        rawName: "v-interact"
      }],
      staticClass: "hd"
    }, [n._m(0), n._v(" "), i("div", {
      staticClass: "close",
      on: {
        click: function click(e) {
          return n.$emit("close");
        }
      }
    }, [n._v("关闭")])]), n._v(" "), i("div", {
      staticClass: "bd"
    }, [i("img", {
      staticClass: "ml16",
      attrs: {
        src: t,
        alt: ""
      }
    }), n._v(" "), i("div", {
      staticClass: "form-wrap"
    }, [i("div", {
      staticClass: "form-item"
    }, [i("div", {
      staticClass: "label-box"
    }, [n._v("保险")]), n._v(" "), i("div", {
      staticClass: "input-box"
    }, [i("el-switch", {
      attrs: {
        size: "mini"
      },
      model: {
        value: n.safety_switch_state,
        callback: function callback(e) {
          n.safety_switch_state = e;
        },
        expression: "safety_switch_state"
      }
    })], 1)]), n._v(" "), i("div", {
      staticClass: "form-item"
    }, [i("div", {
      staticClass: "label-box"
    }, [n._v("开关")]), n._v(" "), i("div", {
      staticClass: "input-box",
      on: {
        click: n.handle_fire_ctrl
      }
    }, [i("el-switch", {
      attrs: {
        size: "mini"
      },
      model: {
        value: n.fire_status,
        callback: function callback(e) {
          n.fire_status = e;
        },
        expression: "fire_status"
      }
    })], 1)])])])]);
  },
  o = [function () {
    var n = this,
      e = n.$createElement,
      t = n._self._c || e;
    return t("div", {
      staticClass: "left ml8"
    }, [t("img", {
      attrs: {
        src: r
      }
    }), n._v(" "), t("div", {
      staticClass: "title"
    }, [n._v("干粉灭火器")])]);
  }];
s._withStripped = !0;
var l = e({
  render: s,
  staticRenderFns: o
}, function (n) {
  n && n("data-v-6e76eb9e_0", {
    source: ".cpt-MMC_Gimbal_FE3[data-v-6e76eb9e] {\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: 280px;\n  box-sizing: border-box;\n}\n.cpt-MMC_Gimbal_FE3 .hd[data-v-6e76eb9e] {\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_FE3 .hd .left[data-v-6e76eb9e] {\n  display: flex;\n  align-items: center;\n}\n.cpt-MMC_Gimbal_FE3 .hd .left .title[data-v-6e76eb9e] {\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_FE3 .hd .close[data-v-6e76eb9e] {\n  font-size: 14px;\n  font-family: MicrosoftYaHei;\n  color: #d2dfff;\n  margin-right: 8px;\n  cursor: pointer;\n}\n.cpt-MMC_Gimbal_FE3 .bd[data-v-6e76eb9e] {\n  display: flex;\n}\n.cpt-MMC_Gimbal_FE3 .bd .form-wrap[data-v-6e76eb9e] {\n  padding: 16px 0;\n  width: 100%;\n  height: 100px;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: space-around;\n}\n.cpt-MMC_Gimbal_FE3 .bd .form-wrap .form-item[data-v-6e76eb9e] {\n  display: flex;\n  align-items: center;\n}\n.cpt-MMC_Gimbal_FE3 .bd .form-wrap .form-item .label-box[data-v-6e76eb9e] {\n  color: #cbd0eb;\n}\n.cpt-MMC_Gimbal_FE3 .bd .form-wrap .form-item .input-box[data-v-6e76eb9e] {\n  display: flex;\n  align-items: center;\n}\n.cpt-MMC_Gimbal_FE3 .bd .form-wrap .form-item .input-box .icon-box [class^=el-icon-][data-v-6e76eb9e] {\n  font-size: 30px;\n  color: #dce9ff;\n}\n.cpt-MMC_Gimbal_FE3 .bd .form-wrap .launch[data-v-6e76eb9e] {\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_FE3\\index.vue", "index.vue"],
      names: [],
      mappings: "AAsEA;EACA,kBAAA;EAEA,QAAA;EACA,gCAAA;EACA,wFAAA;EACA,mBAAA;EACA,YAAA;EAGA,sBAAA;ACxEA;ADyEA;EACA,YAAA;EACA,aAAA;EACA,8BAAA;EACA,mBAAA;EACA,kCAAA;EACA,mDAAA;EACA,4BAAA;ACvEA;ADyEA;EACA,aAAA;EACA,mBAAA;ACvEA;ADwEA;EACA,eAAA;EACA,4BAAA;EACA,cAAA;EACA,iBAAA;EACA,6CAAA;EACA,oGAAA;EAQA,6BAAA;EACA,oCAAA;AC7EA;ADiFA;EACA,eAAA;EACA,2BAAA;EACA,cAAA;EACA,iBAAA;EACA,eAAA;AC/EA;ADkFA;EACA,aAAA;AChFA;ADiFA;EACA,eAAA;EACA,WAAA;EACA,aAAA;EACA,aAAA;EACA,sBAAA;EACA,mBAAA;EACA,6BAAA;AC/EA;ADgFA;EACA,aAAA;EACA,mBAAA;AC9EA;AD+EA;EACA,cAAA;AC7EA;AD+EA;EACA,aAAA;EACA,mBAAA;AC7EA;AD+EA;EACA,eAAA;EACA,cAAA;AC7EA;ADkFA;EACA,iBAAA;EACA,aAAA;EACA,sBAAA;EACA,mBAAA;AChFA;;AAEA,oCAAoC",
      file: "index.vue",
      sourcesContent: ['<template>\r\n  <div class="cpt-MMC_Gimbal_FE3" :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      <img class="ml16" src="../assets/images/observe/019.svg" alt="" />\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">\r\n          <div class="label-box">开关</div>\r\n          <div class="input-box" @click="handle_fire_ctrl">\r\n            <el-switch v-model="fire_status" size="mini" />\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_FE3 } 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      radio: 1,\r\n      // 保险状态\r\n      safety_switch_state: false,\r\n      // 开关状态\r\n      fire_status: false\r\n    };\r\n  },\r\n  methods: {\r\n    handle_fire_ctrl() {\r\n      console.log(111, this.safety_switch_state);\r\n      if (!this.safety_switch_state) {\r\n        this.$message.warning(\'保险未打开！\');\r\n        return (this.fire_status = false);\r\n      }\r\n      let buff = null;\r\n      if (this.fire_status) {\r\n        buff = MMC_Gimbal_FE3.gimbal_mode2_ctrl(1);\r\n      } else {\r\n        buff = MMC_Gimbal_FE3.gimbal_mode2_ctrl(0);\r\n      }\r\n      this.commit_directive(buff);\r\n    },\r\n    commit_directive(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_FE3 {\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: 280px;\r\n  // height: 218px;\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: 100px;\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_FE3 {\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: 280px;\n  box-sizing: border-box;\n}\n.cpt-MMC_Gimbal_FE3 .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_FE3 .hd .left {\n  display: flex;\n  align-items: center;\n}\n.cpt-MMC_Gimbal_FE3 .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_FE3 .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_FE3 .bd {\n  display: flex;\n}\n.cpt-MMC_Gimbal_FE3 .bd .form-wrap {\n  padding: 16px 0;\n  width: 100%;\n  height: 100px;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: space-around;\n}\n.cpt-MMC_Gimbal_FE3 .bd .form-wrap .form-item {\n  display: flex;\n  align-items: center;\n}\n.cpt-MMC_Gimbal_FE3 .bd .form-wrap .form-item .label-box {\n  color: #cbd0eb;\n}\n.cpt-MMC_Gimbal_FE3 .bd .form-wrap .form-item .input-box {\n  display: flex;\n  align-items: center;\n}\n.cpt-MMC_Gimbal_FE3 .bd .form-wrap .form-item .input-box .icon-box [class^=el-icon-] {\n  font-size: 30px;\n  color: #dce9ff;\n}\n.cpt-MMC_Gimbal_FE3 .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
  });
}, a, "data-v-6e76eb9e", false, undefined, !1, i);
export { l as default };
