((typeof self !== 'undefined' ? self : this)["webpackJsonpequipment_disassemble_training"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpequipment_disassemble_training"] || []).push([[14],{

/***/ "00af":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PlayStepList_vue_vue_type_style_index_0_id_5a472bfc_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4de1");
/* harmony import */ var _node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PlayStepList_vue_vue_type_style_index_0_id_5a472bfc_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PlayStepList_vue_vue_type_style_index_0_id_5a472bfc_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "170a":
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__("2350")(false);
// imports


// module
exports.push([module.i, "[data-v-5a472bfc] .el-card__body{padding:0!important;background-color:rgba(24,41,72,.4)!important;border-radius:2px;border:none}[data-v-5a472bfc] .el-loading-mask{height:calc(100% - 42px);background-color:rgba(24,41,72,.8)!important}[data-v-5a472bfc] .el-tree-node__content{height:28px;font-size:12px;color:#fff}[data-v-5a472bfc] .el-tree-node__content .tree-label{font-size:12px}[data-v-5a472bfc] .el-tree__empty-text{font-size:12px;color:#fff!important}[data-v-5a472bfc] .el-tree .el-tree-node__label{color:#fff}[data-v-5a472bfc] .el-checkbox__input.is-checked .el-checkbox__inner,[data-v-5a472bfc] .el-tree .el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:#1890ff!important}[data-v-5a472bfc] .el-tree,[data-v-5a472bfc] .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content,[data-v-5a472bfc] .el-tree-node:focus,[data-v-5a472bfc] .el-tree-node:focus>.el-tree-node__content,[data-v-5a472bfc] .el-tree-node__content:hover{background-color:transparent!important}[data-v-5a472bfc] .is-current>.el-tree-node__content .el-tree-node__label{background-color:transparent!important;color:#00c0ff!important}.el-tabs[data-v-5a472bfc] ::-webkit-scrollbar,[data-v-5a472bfc]::-webkit-scrollbar{background-color:transparent!important;width:5px;height:5px}.el-tabs[data-v-5a472bfc] ::-webkit-scrollbar-thumb,[data-v-5a472bfc]::-webkit-scrollbar-thumb{background-color:rgba(141,156,170,.5)!important;border-radius:5px}.el-tabs[data-v-5a472bfc] ::-webkit-scrollbar-track,[data-v-5a472bfc]::-webkit-scrollbar-track{border-radius:10px;background-color:rgba(0,0,0,.1)!important}.step-list[data-v-5a472bfc]{right:10px;top:90px;height:calc(100% - 110px)!important;width:400px;z-index:100;padding:10px;background-color:rgba(46,107,176,.4980392157)!important}.step-list__content[data-v-5a472bfc]{height:calc(100% - 120px)!important;width:100%;background-color:hsla(0,0%,100%,0);border:none!important}.step-list .list-title[data-v-5a472bfc]{font-weight:700;background-image:-webkit-repeating-linear-gradient(top,#fff,#dce7f3,#6fb6f9);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.step-list__content[data-v-5a472bfc]{background-color:rgba(46,107,176,.4980392157)!important}.step-list__content .step-item[data-v-5a472bfc]{color:#fff;padding:10px 5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}.step-list__content .step-item.current[data-v-5a472bfc]{color:#48e663!important}.step-list__content .step-item.executed[data-v-5a472bfc]{color:#abadb1!important}.step-list__content .step-item.choose[data-v-5a472bfc]{background-color:#073060!important}[data-v-5a472bfc] .el-card__body{height:100%!important;overflow-y:auto!important;padding:15px!important}[data-v-5a472bfc] .el-card__body::-webkit-scrollbar{background-color:transparent!important;width:9px}[data-v-5a472bfc] .el-card__body::-webkit-scrollbar-thumb{border-radius:10px;background-color:rgba(37,36,36,.8)!important;color:#252424!important}[data-v-5a472bfc] .el-card__body::-webkit-scrollbar-track{border-radius:10px;background-color:rgba(218,213,213,.1)!important}[data-v-5a472bfc].el-button--small{width:80px!important}", ""]);

// exports


/***/ }),

/***/ "498a":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var $trim = __webpack_require__("58a8").trim;
var forcedStringTrimMethod = __webpack_require__("c8d2");

// `String.prototype.trim` method
// https://tc39.es/ecma262/#sec-string.prototype.trim
$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
  trim: function trim() {
    return $trim(this);
  }
});


/***/ }),

/***/ "4de1":
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__("170a");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("f19198e0", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

/***/ "c8d2":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var PROPER_FUNCTION_NAME = __webpack_require__("5e77").PROPER;
var fails = __webpack_require__("d039");
var whitespaces = __webpack_require__("5899");

var non = '\u200B\u0085\u180E';

// check that a method works with the correct list
// of whitespaces and has a correct name
module.exports = function (METHOD_NAME) {
  return fails(function () {
    return !!whitespaces[METHOD_NAME]()
      || non[METHOD_NAME]() !== non
      || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
  });
};


/***/ }),

/***/ "d258":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1263dc52-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/windicss-webpack-plugin/dist/loaders/windicss-template.cjs!./src/modules/equipment-disassemble-training/components/PlayStepList.vue?vue&type=template&id=5a472bfc&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"absolute step-list"},[_vm._m(0),_c('el-card',{staticClass:"mt-10px step-list__content",attrs:{"shadow":"never"}},_vm._l((_vm.executeSteps),function(item,index){return _c('div',{key:item.id,staticClass:"step-item",class:{
        current: _vm.currentStepIndex === index,
        executed: _vm.operateType % 2 === 0 ? _vm.currentStepIndex < index : _vm.currentStepIndex > index,
        choose: _vm.showJump && _vm.chooseIndex === index,
      },on:{"click":function($event){return _vm.chooseStep(index)}}},[_vm._v("\n      "+_vm._s(item.name)+"\n    ")])}),0),(_vm.isShowMsg && !_vm.isAssessMode)?_c('div',{staticClass:"mt-15px"},[(_vm.showJump && _vm.isShowMsg && !_vm.isAssessMode)?_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.stepJump}},[_vm._v("步骤跳转")]):_vm._e()],1):_vm._e()],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"step-list__title"},[_c('span',{staticClass:"text-white text-20px list-title"},[_vm._v("步骤列表")])])}]


// CONCATENATED MODULE: ./src/modules/equipment-disassemble-training/components/PlayStepList.vue?vue&type=template&id=5a472bfc&scoped=true

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
var es_number_constructor = __webpack_require__("a9e3");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
var es_string_trim = __webpack_require__("498a");

// EXTERNAL MODULE: external "_"
var external_ = __webpack_require__("60bb");
var external_default = /*#__PURE__*/__webpack_require__.n(external_);

// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib??ref--12-1!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/windicss-webpack-plugin/dist/loaders/windicss-template.cjs!./src/modules/equipment-disassemble-training/components/PlayStepList.vue?vue&type=script&lang=js


//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//


/* harmony default export */ var PlayStepListvue_type_script_lang_js = ({
  data: function data() {
    return {
      activeStep: '',
      chooseIndex: -1,
      audioMsg: null // 播放音频的对象信息
    };
  },
  props: {
    player: {
      type: Object,
      default: null
    },
    // 方案列表
    steps: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    currentStepIndex: {
      type: Number,
      default: -1
    },
    operateType: {
      type: Number,
      default: -1
    },
    isAssessMode: {
      type: Boolean,
      default: false
    },
    isShowMsg: {
      type: Boolean,
      default: false
    },
    showJump: {
      type: Boolean,
      default: true
    }
  },
  computed: {
    executeSteps: {
      get: function get() {
        return this.steps;
      },
      set: function set() {}
    }
  },
  watch: {
    currentStepIndex: function currentStepIndex(val) {
      var _this$executeSteps$va, _this$executeSteps$va2, _this$executeSteps$va3;
      console.log(external_default.a.trim((_this$executeSteps$va = this.executeSteps[val]) === null || _this$executeSteps$va === void 0 ? void 0 : _this$executeSteps$va.assembleyRemark), '---val---');
      if (this.operateType % 2 === 0 && external_default.a.trim((_this$executeSteps$va2 = this.executeSteps[val]) === null || _this$executeSteps$va2 === void 0 ? void 0 : _this$executeSteps$va2.assembleyRemark)) {
        this.handleSpeak(this.executeSteps[val].assembleyRemark);
        return;
      }
      if (this.operateType % 2 !== 0 && external_default.a.trim((_this$executeSteps$va3 = this.executeSteps[val]) === null || _this$executeSteps$va3 === void 0 ? void 0 : _this$executeSteps$va3.disAssembleyRemark)) {
        this.handleSpeak(this.executeSteps[val].disAssembleyRemark);
      }
    }
  },
  created: function created() {
    this.audioMsg = new SpeechSynthesisUtterance();
  },
  beforeDestroy: function beforeDestroy() {
    this.stopSpeak();
  },
  methods: {
    // 音频播放方法
    handleSpeak: function handleSpeak(text) {
      // 播放语音前，停止上一次的播放
      this.stopSpeak(text);
      this.audioMsg.text = text;
      this.audioMsg.lang = 'zh-CN'; // 使用的语言：中文
      this.audioMsg.volume = 0.8; // 声音音量
      this.audioMsg.rate = 1; // 语速
      this.audioMsg.path = 1; // 音高
      window.speechSynthesis.speak(this.audioMsg);
    },
    // 暂停音频的方法
    stopSpeak: function stopSpeak(e) {
      this.audioMsg.text = e;
      this.audioMsg.lang = 'zh-CN';
      window.speechSynthesis.cancel(this.audioMsg);
    },
    // 步骤跳转
    stepJump: function stepJump() {
      if (this.chooseIndex >= 0) {
        this.$emit('stepJump', this.chooseIndex);
      } else {
        this.$message.warning('请选择要跳转的步骤');
      }
    },
    chooseStep: function chooseStep(index) {
      if (this.showJump && this.isShowMsg && !this.isAssessMode) {
        this.chooseIndex = index;
      }
    }
  }
});
// CONCATENATED MODULE: ./src/modules/equipment-disassemble-training/components/PlayStepList.vue?vue&type=script&lang=js
 /* harmony default export */ var components_PlayStepListvue_type_script_lang_js = (PlayStepListvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/equipment-disassemble-training/components/PlayStepList.vue?vue&type=style&index=0&id=5a472bfc&prod&lang=scss&scoped=true
var PlayStepListvue_type_style_index_0_id_5a472bfc_prod_lang_scss_scoped_true = __webpack_require__("00af");

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/modules/equipment-disassemble-training/components/PlayStepList.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_PlayStepListvue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  null,
  "5a472bfc",
  null
  
)

/* harmony default export */ var PlayStepList = __webpack_exports__["default"] = (component.exports);

/***/ })

}]);
//# sourceMappingURL=equipment-disassemble-training.umd.14.js.map