1(window.webpackJsonp=window.webpackJsonp||[]).push([[261,69],{1974:function(t,e,i){"use strict";i.r(e);i(14),i(17),i(18),i(9),i(10);var n=i(0),o=i(4),r=(i(12),i(13),i(6),i(95),i(457)),s=i(21);function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function a(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(Object(i),!0).forEach(function(e){Object(o.a)(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var u={components:{Btn:r.default},data:function(){return{oldText:"",text:"",canBeChoose:!1,currentView:"input",list:[],chooseItem:{},customClass:"dialog-voice-correct"}},computed:{show:{get:function(){return this.$store.state.voiceCorrectShow},set:function(t){this.switchVoiceCorrect(t)}},target:function(){return this.$store.state.voiceTarget}},methods:a(a({},Object(s.d)({setVoiceCorrectRecordsStatus:"setVoiceCorrectRecordsStatus",switchVoiceCorrect:"switchVoiceCorrect"})),{},{choose:function(t){this.chooseItem=t},onVoiceClick:function(){this.$mojiMessage({message:"æ£å¨å¼åä¸ï¼æ¬è¯·æå¾
ï¼"})},changeView:function(t){switch(t){case"choose":this.canBeChoose&&(this.currentView=t);break;case"input":this.currentView="input"}},open:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark(function e(){var i,n,o,r,s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n="",e.next=1,t.$post("fetchTtsHitmap",{tarId:t.target&&t.target.objectId,limit:3});case 1:o=e.sent,200==(r=o.result).code&&r.results&&r.results.length?(t.canBeChoose=!0,t.list=r.results,n=null===(s=t.list.filter(function(t){return"audited"==t.status})[0])||void 0===s?void 0:s.tts_text):t.canBeChoose=!1,t.text=n||(null===(i=t.target)||void 0===i?void 0:i.title),t.oldText=t.text,e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:case"end":return e.stop()}},e,null,[[0,2]])}))()},validate:function(){if("choose"==this.currentView){if(!this.chooseItem.tts_text)return this.$mojiMessage({message:"è¯·éæ©åé³"}),!1}else if("input"==this.currentView){if(this.text===this.oldText)return this.$mojiMessage({message:"å
容æªä½ä¿®æ¹ï¼è¯·å¿æäº¤"}),!1;if(!this.text.trim())return this.$mojiMessage({message:"请è¾å
¥å
容"}),!1}return!0},closed:function(){this.text="",this.chooseItem={},this.list=[],this.canBeChoose=!1,this.currentView="input"},onConfirm:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark(function e(){var i,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.validate()){e.next=2;break}return i="choose"==t.currentView?t.chooseItem.tts_text:t.text,e.next=1,t.$post("hitmap-tts-add",{tarId:t.target&&t.target.objectId,tarType:t.target&&t.target.tarType,text:i});case 1:n=e.sent,200==n.result.code?(t.$mojiMessage({message:"å·²æäº¤æåï¼å¾
å®¡æ ¸"}),t.setVoiceCorrectRecordsStatus({id:t.target.objectId,status:!0}),t.show=!1):t.$mojiMessage({message:"æäº¤å¤±è´¥ï¼è¯·ç¨ååè¯"});case 2:case"end":return e.stop()}},e)}))()},onCancel:function(){this.show=!1},onFocus:function(){}}),mounted:function(){document.querySelector(".dialog-correct-voice").parentNode.addEventListener("click",function(t){t.stopPropagation()})},updated:function(){}},l=(i(3143),i(26)),d=Object(l.a)(u,function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{visible:t.show,width:"480px","custom-class":"dialog-correct-voice",modal:!0,"show-close":!1,"close-on-click-modal":!1,"append-to-body":!0},on:{"update:visible":function(e){t.show=e},open:t.open,closed:t.closed}},[e("template",{slot:"title"},[e("div",{staticClass:"title-container"},[e("div",{staticClass:"choose-title",class:{active:"input"==t.currentView},on:{click:function(e){return e.stopPropagation(),t.changeView("input")}}},[t._v("æå¨è¾å
¥")]),t._v(" "),e("div",{staticClass:"choose-title",class:[{active:"choose"==t.currentView},{disabled:!t.canBeChoose}],on:{click:function(e){return e.stopPropagation(),t.changeView("choose")}}},[t._v("éæ©åé³")])]),t._v(" "),e("i",{staticClass:"horizontal-line"})]),t._v(" "),t.target?e("div",{directives:[{name:"show",rawName:"v-show",value:"input"==t.currentView,expression:"currentView == 'input'"}],staticClass:"body-container"},[e("div",{staticClass:"tar-title"},[t._v(t._s(t.target&&t.target.title))]),t._v(" "),e("el-input",{attrs:{placeholder:"",type:"textarea",rows:3,autosize:{minRows:3,maxRows:10}},on:{click:function(e){return e.stopPropagation(),t.onFocus.apply(null,arguments)}},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}}),t._v(" "),e("div",{staticClass:"instruction-container"},[e("div",{staticClass:"instruction"},[t._v("çº æ£è¯´æ")]),t._v(" "),e("div",{staticClass:"instruction-info"},[t._v("\n å°\n "),e("strong",[t._v("åé³éè¯¯çæ±å")]),t._v("ä¿®æ¹ä¸ºå¯¹åºç\n "),e("strong",[t._v("åå")]),t._v("ï¼æ\n "),e("strong",[t._v("ãç¡®å®ã")]),t._v("å³å¯ã\n "),e("br"),t._v("请åè以ä¸ä¾åï¼ï¼æ¥ é误åé³ä¸º ãã
ãï¼\n "),e("br"),t._v("åæï¼\n "),e("span",{staticClass:"red"},[t._v("æ¥")]),t._v("ãã°åã\n "),e("br"),t._v("订æ£ï¼\n "),e("span",{staticClass:"green"},[t._v("ãã")]),t._v("ãã°åã\n ")])])],1):t._e(),t._v(" "),t.target?e("div",{directives:[{name:"show",rawName:"v-show",value:"choose"==t.currentView,expression:"currentView == 'choose'"}],staticClass:"body-container"},[e("div",{staticClass:"tar-title"},[t._v(t._s(t.target&&t.target.title))]),t._v(" "),e("div",{staticClass:"voice-list"},t._l(t.list,function(i,n){return e("div",{key:n,staticClass:"item-voice",class:{active:i.objectId==t.chooseItem.objectId},on:{click:function(e){return t.choose(i)}}},[e("span",{staticClass:"voice-text"},[t._v(t._s(i.tts_text))]),t._v(" "),e("icon-voice-new",{attrs:{textToPlay:i.tts_text,playText:"",size:"24px"}})],1)}),0),t._v(" "),e("div",{staticClass:"instruction-container"},[e("div",{staticClass:"instruction"},[t._v("çº æ£è¯´æ")]),t._v(" "),e("div",{staticClass:"instruction-info"},[t._v("\n è¯·éæ©ä½ è§å¾\n "),e("strong",[t._v("æ£ç¡®")]),t._v("çåé³\n "),e("br"),t._v("ç¶åæã\n "),e("strong",[t._v("ç¡®å®")]),t._v("ãå³å¯ã\n ")])])]):t._e(),t._v(" "),e("div",{staticClass:"foot",attrs:{slot:"footer"},slot:"footer"},[e("i",{staticClass:"horizontal-line"}),t._v(" "),e("div",{staticClass:"btns-container"},[e("Btn",{on:{click:t.onCancel}},[t._v("åæ¶")]),t._v(" "),e("Btn",{staticClass:"btn-confirm",attrs:{type:"primary"},on:{click:t.onConfirm}},[t._v("ç¡®å®")])],1)])],2)},[],!1,null,"22e6204f",null);e.default=d.exports;installComponents(d,{IconVoiceNew:i(1993).default})}
1,1983:function(t,e,i){t.exports={}},1991:function(t,e,i){t.exports=i.p+"img/voice.8ef79d7.gif"},1992:function(t,e,i){"use strict";i(1983)},1993:function(t,e,i){"use strict";i.r(e);i(14),i(13),i(17),i(18);var n=i(0),o=i(4),r=(i(12),i(38),i(101),i(9),i(6),i(22),i(10),i(21));function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function c(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach(function(e){Object(o.a)(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var a={props:{id:{type:[String,Number]},type:{type:[String,Number]},size:{type:String,default:"30px"},position:{type:String,default:"sub"},playText:{type:Boolean,default:!1},voiceSelection:{type:String,default:""},curVoiceId:String,textToPlay:String,eventName:{type:String,default:""}},data:function(){return{srcEntryVoice:"",loading:!1,imgVoicePlaying:i(1991),isPlaying:!1,lastEntryId:"",currentAudio:null}},computed:c({},Object(r.e)({speed:function(t){return t.voice.formatSpeed},voiceCorrectRecords:function(t){return t.voiceCorrectRecords},voiceId:function(t){return t.voiceId}})),methods:c(c({},Object(r.b)({fetchTextTTS:"voice/fetchTextTTS",fetchEntryTTS:"voice/fetchEntryTTS"})),{},{toPlayAudio:function(){if(this.playText)!this.loading&&this.playTextAudio(this.textToPlay);else if(this.id)try{!this.loading&&this.toPlayEntry()}catch(t){this.loading=!1}else!this.loading&&this.playAudition();this.$emit("onClick"),this.eventName&&this.$send({event:this.eventName})},pausePlayingAudios:function(){var t=this,e=document.querySelectorAll("img.playing"),i=document.querySelectorAll("audio.playing");Object.keys(e).map(function(e){t.isPlaying=!1}),i.forEach(function(t){t.pause(),t.currentTime=0})},fetchAudioPlay:function(t,e,i){var o=this;return Object(n.a)(regeneratorRuntime.mark(function n(){var r,s;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return o.loading=!0,n.prev=1,n.next=2,o.fetchEntryTTS({entryId:t,voiceId:e,entryType:i});case 2:r=n.sent,s=r.url,o.srcEntryVoice=s,o.currentAudio.src=s,o.loading=!1,o.play(),n.next=4;break;case 3:n.prev=3,n.catch(1),o.loading=!1;case 4:case"end":return n.stop()}},n,null,[[1,3]])}))()},playTextAudio:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark(function i(){var n;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(e.srcEntryVoice){i.next=2;break}return e.loading=!0,i.next=1,e.fetchTextTTS({text:t});case 1:n=i.sent,e.srcEntryVoice=n,e.currentAudio.src=n,e.loading=!1,e.play(),i.next=3;break;case 2:e.play();case 3:case"end":return i.stop()}},i)}))()},toPlayEntry:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark(function e(){var i,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=!1,n=t.curVoiceId||t.voiceId,t.srcEntryVoice&&(i=/f00/.test(n)?/f00/.test(t.srcEntryVoice):/m00/.test(t.srcEntryVoice)),t.srcEntryVoice&&t.id===t.lastEntryId&&!t.voiceCorrectRecords[t.id]&&i?t.play():(t.fetchAudioPlay(t.id,n,t.type),t.lastEntryId=t.id);case 1:case"end":return e.stop()}},e)}))()},playAudition:function(){this.currentAudio.src=this.voiceSelection,this.play()},play:function(){this.currentAudio&&this.pausePlayingAudios(),this.speed&&(this.currentAudio.playbackRate=this.speed),this.currentAudio.play()},bindAudioEvents:function(t){var e=this;t.onended=function(){e.isPlaying=!1},t.onpause=function(){e.isPlaying=!1,t.currentTime=0},t.onplay=function(){e.isPlaying=!0},t.onerror=function(){e.$emit("fail")}}}),mounted:function(){this.currentAudio=this.$refs.refAudio,this.bindAudioEvents(this.currentAudio)}},u=(i(1992),i(26)),l=Object(u.a)(a,function(){var t=this,e=t._self._c;return e("div",{staticClass:"voice-container"},[t.isPlaying?e("div",{staticClass:"img-voice",class:{playing:t.isPlaying,init:!t.isPlaying},style:{height:t.size,verticalAlign:t.position},attrs:{"data-voice":""},on:{click:function(e){return e.stopPropagation(),t.toPlayAudio.apply(null,arguments)}}}):e("i",{staticClass:"iconfont iconic-common-voice",style:{"font-size":t.size},attrs:{"data-voice":""},on:{click:function(e){return e.stopPropagation(),t.toPlayAudio.apply(null,arguments)}}}),t._v(" "),e("i",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"iconfont icon-circle-loading"}),t._v(" "),e("div",{staticClass:"icon-voice-container"},[e("audio",{ref:"refAudio",class:{playing:t.isPlaying,init:!t.isPlaying}})])])},[],!1,null,"6b6b5117",null);e.default=l.exports}
1,2654:function(t,e,i){t.exports={}},3143:function(t,e,i){"use strict";i(2654)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.