PageSourceSearch

https://ai.qhnu.edu.cn/static/js/13450.773f41f3.js

js qhnu.edu.cn collected 2026-10-02 09:58:21 UTC 84,356 bytes, 2 lines download raw bytes

1try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1d41e3c4-c5d3-4dd6-aa43-09a242700de6",t._sentryDebugIdIdentifier="sentry-dbid-1d41e3c4-c5d3-4dd6-aa43-09a242700de6")}catch(t){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"99c3511d9.26092921-production"};(self.webpackChunkmy_project=self.webpackChunkmy_project||[]).push([[13450],{7262:function(t,e,r){r.d(e,{k:function(){return i},w:function(){return o}});var n=r(53445),o=function(){return{rbtoken:sessionStorage.getItem("isc_rbtoken")||"",robotId:sessionStorage.getItem("isc_robotId")||"",unitId:sessionStorage.getItem("isc_unitId")||"",isLcSimulateLogin:sessionStorage.getItem("isc_isLcSimulateLogin")||!1,crToken:sessionStorage.getItem("crToken")||""}},i=(0,n.AX)("b946c5339478dc6945f77c3ffc8d93af")},13450:function(t,e,r){r.d(e,{A:function(){return ht}});r(52675),r(89463),r(2259),r(45700),r(16280),r(2008),r(23792),r(62062),r(44114),r(94490),r(34782),r(89572),r(62010),r(18111),r(22489),r(7588),r(61701),r(36033),r(2892),r(69085),r(83851),r(81278),r(40875),r(79432),r(26099),r(3362),r(47764),r(23500),r(62953),r(28706),r(48980),r(54554),r(13579);var n=r(7911),o=r(33954),i={name:"EditNameDialog",props:{name:{type:String,default:""}},data:function(){return{figureName:""}},watch:{name:{handler:function(t){this.figureName=t},immediate:!0}},methods:{fnToSave:function(){this.$emit("confirm",{name:this.figureName})}}},a=r(14486),u=(0,a.A)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"edit-name-dialog"},[e("el-form",{attrs:{"label-width":"100px"}},[e("el-form-item",{attrs:{label:"形象名称:"}},[e("el-input",{attrs:{maxlength:"10","show-word-limit":""},model:{value:t.figureName,callback:function(e){t.figureName=e},expression:"figureName"}})],1)],1),t._v(" "),e("div",{staticClass:"edit-name-dialog__footer"},[e("el-button",{attrs:{type:"primary"},on:{click:t.fnToSave}},[t._v("保存")])],1)],1)}),[],!1,null,"29b4ead1",null).exports;function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f={name:"HumanCard",components:{AudioSelect:r(89023).A},props:{human:{type:Object,default:function(){return{}}},toneList:{type:Array,default:function(){return[]}},showRemoveBtn:{type:Boolean,default:!0}},data:function(){return{VOICE_ICON:n,currentFigure:{preset:null,coverUrl:null,owner:null,previewName:null,tone:null,audio:{name:null,url:null}}}},watch:{toneList:{handler:function(){this.fnInitCurrentFigure()},deep:!0,immediate:!0}},methods:{fnInitCurrentFigure:function(){this.currentFigure=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},this.human)},fnRemoveHuman:function(){this.$emit("remove",this.human)},fnAudioChange:function(t){var e=t.tone;
1this.currentFigure.tone=e,this.$emit("audioChange",this.currentFigure)},fnToEditName:function(){var t=this,e=(this.currentFigure||{}).previewName;this.$openDialog({common:{showFooter:!1,width:"30%",title:"修改形象名称"},content:{model:"component",vm:u,options:{name:e}}}).then((function(e){var r=e.contentVm;if(r){var n=(r||{}).name;t.currentFigure.previewName=n,t.$emit("nameChange",t.currentFigure)}}))}}},p=f,h=(0,a.A)(p,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"human-card"},[e("i",{directives:[{name:"show",rawName:"v-show",value:t.showRemoveBtn,expression:"showRemoveBtn"}],staticClass:"el-icon-delete",on:{click:function(e){return e.stopPropagation(),t.fnRemoveHuman.apply(null,arguments)}}}),t._v(" "),e("div",{staticClass:"human-card__cover"},[e("img",{staticClass:"cover-img",attrs:{src:t.currentFigure.coverUrl,alt:"数字人形象"}})]),t._v(" "),e("AudioSelect",{attrs:{"active-tone":t.currentFigure.tone,"tone-list":t.toneList},on:{change:t.fnAudioChange}}),t._v(" "),e("div",{staticClass:"human-card__name"},[e("span",{staticClass:"name-title"},[t._v("形象名称:")]),t._v(" "),e("span",{directives:[{name:"cx-tooltip",rawName:"v-cx-tooltip"}],staticClass:"name-text"},[t._v(t._s(t.currentFigure.previewName))]),t._v(" "),e("i",{staticClass:"el-icon-edit",on:{click:t.fnToEditName}})])],1)}),[],!1,null,"435e6420",null),m=h.exports,d=r(83803),g=r(2543),v=r(53445);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function b(){"use strict";b=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:E(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",m="executing",d="completed",g={};function v(){}function w(){}function _(){}var S={};l(S,a,(function(){return this}));var I=Object.getPrototypeOf,C=I&&I(I(T([])));C&&C!==r&&n.call(C,a)&&(S=C);var L=_.prototype=v.prototype=Object.create(S);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==y(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=p;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=F(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?d:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=d,n.method="throw",n.arg=l.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,e.iterator,r.arg);
vendor: 3,727 bytes, line 1
1if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(y(e)+" is not iterable")}return w.prototype=_,o(L,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},O(x.prototype),l(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(L),l(L,c,"Generator"),l(L,a,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),g}}
1,catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function w(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function S(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_(Object(r),!0).forEach((function(e){I(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function I(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=y(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==y(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var C={name:"CartoonConfig",components:{HumanCard:m},props:{formInfo:{type:Object,default:function(){}},custom:{type:Boolean,default:!1},preset:{type:String,default:""},cover:{type:String,default:""},tone:{type:String,default:""},strategy:{type:Object,default:function(){}},unitId:{type:Number,default:0},industryId:{type:Number,default:0},toneList:{type:Array,default:function(){return[]}}},data:function(){return{cartoon:{enableDigitalHumanFrontSwitch:!1,digitalHumanFrontSwitchRule:d.oR,digitalHumanFrontSwitchList:[],preset:"",cover:"",tone:"",previewName:"",wakePrompt:""},VOICE_ICON:n}},computed:{rules:function(){return{preset:[{validator:this.validatePresetRule,trigger:"blur"}]}},showFiguresAddBtn:function(){return(this.cartoon||{}).digitalHumanFrontSwitchList.length<10},showRemoveBtn:function(){return(this.cartoon||{}).digitalHumanFrontSwitchList.length>1},figureShowRuleOptions:function(){var t={MEMORY:{label:this.$t("common.component.cartoonDigitalHumanConfig.ruleMemory"),tooltip:this.$t("common.component.cartoonDigitalHumanConfig.ruleMemoryTip")},RANDOM:{label:this.$t("common.component.cartoonDigitalHumanConfig.ruleRandom"),tooltip:this.$t("common.component.cartoonDigitalHumanConfig.ruleRandomTip")}};return d.MQ.map((function(e){return S(S({},e),{},{label:t[e.value].label,tooltip:t[e.value].tooltip})}))}},created:function(){var t,e=this;return(t=b().mark((function t(){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.fnInitCartoonInfo();case 1:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){w(i,n,o,a,u,"next",t)}function u(t){w(i,n,o,a,u,"throw",t)}a(void 0)}))})()},watch:{"formInfo.custom":{handler:function(t){var e=this.$t("common.component.cartoonDigitalHumanConfig.defaultWakePrompt"),r=this.formInfo||{},n=r.preset,o=r.cover,i=r.tone,a=r.previewName,u=r.wakePrompt;this.cartoon.preset=n,this.cartoon.cover=o,this.cartoon.tone=i,this.cartoon.previewName=o?a:"",this.cartoon.wakePrompt=u||e,t||(this.cartoon.enableDigitalHumanFrontSwitch=!1,this.cartoon.digitalHumanFrontSwitchRule=d.oR,this.cartoon.digitalHumanFrontSwitchList=[],this.cartoon.previewName=a||"",this.cartoon.wakePrompt=u||e)},deep:!0}},methods:{validatePresetRule:function(t,e,r){this.preset&&this.cover?r():r(new Error(this.$t("common.component.cartoonDigitalHumanConfig.selectCartoonRequired")))},fnInitCartoonInfo:function(){var t=this.formInfo||{},e=t.enableDigitalHumanFrontSwitch,r=void 0!==e&&e,n=t.digitalHumanFrontSwitchRule,o=void 0===n?d.oR:n,i=t.digitalHumanFrontSwitchList,a=void 0===i?[]:i,u=t.preset,c=t.cover,l=t.tone,s=t.previewName,f=t.wakePrompt,p=null!=f?f:this.$t("common.component.cartoonDigitalHumanConfig.defaultWakePrompt");this.cartoon={enableDigitalHumanFrontSwitch:r,digitalHumanFrontSwitchRule:o,digitalHumanFrontSwitchList:(0,g.cloneDeep)(a),preset:u,cover:c,tone:l,previewName:s,wakePrompt:p}},_emitCartoonInfo:function(){this.$emit("change",this.cartoon)}
1,fnEnableDigitalHumansChange:function(t){var e=this.cartoon||{},r=e.cover,n=e.previewName;t||(this.cartoon.digitalHumanFrontSwitchRule=d.oR,this.cartoon.previewName=r?n:""),this._emitCartoonInfo()},fnDigitalHumanInfoChange:function(t){var e=t||{},r=e.preset,n=e.coverUrl,o=(e.audio,e.previewName),i=e.tone,a=this.cartoon.digitalHumanFrontSwitchList.findIndex((function(t){return t.preset===r}));-1!==a&&(this.cartoon.digitalHumanFrontSwitchList.splice(a,1,{preset:r,coverUrl:n,tone:i,previewName:o}),this._emitCartoonInfo())},fnRemoveHuman:function(t){var e=t.preset,r=this.cartoon.digitalHumanFrontSwitchList.findIndex((function(t){return t.preset===e}));-1!==r&&(this.cartoon.digitalHumanFrontSwitchList.splice(r,1),this._emitCartoonInfo())},openCartoonSelector:function(){var t=this;if(this.custom){var e=(this.cartoon||{}).enableDigitalHumanFrontSwitch,r={preset:this.cartoon.preset,strategy:this.strategy,unitId:this.unitId,industryId:this.industryId};e&&delete r.preset,this.$openDialog({common:{title:this.$t("common.component.cartoonDigitalHumanConfig.selectorDialogTitle"),width:"1100px",top:"3vh",customClass:"",showFooter:!1,showTitle:!0},content:{model:"component",vm:o.default,options:S({},r)}}).then((function(r){var n=r.contentVm;if(n){if(!e){var o=n||{},i=o.coverUrl,a=o.coverObjectId,u=o.preset,c=o.owner;return t.cartoon.cover=i,t.cartoon.coverObjectId=a,t.cartoon.preset=u,t.cartoon.previewName=c,void t._emitCartoonInfo()}var l=n||{},s=l.coverUrl,f=l.preset,p=l.owner,h=(t.toneList[0]||{}).tone;t.cartoon.digitalHumanFrontSwitchList.some((function(t){return t.preset===f}))?t.$message.warning(t.$t("common.component.cartoonDigitalHumanConfig.figureDuplicate")):(t.cartoon.digitalHumanFrontSwitchList.push({coverUrl:s,preset:f,owner:p,previewName:p,tone:h}),t._emitCartoonInfo())}}))}},fnPlayAudio:function(t){var e=this.$refs[t][0];e&&e.play()},getPreviewCoverUrl:function(){return this.cartoon.coverObjectId?"".concat(v.h0,"/").concat(this.cartoon.coverObjectId):this.cartoon.cover}}},L=C,O=(0,a.A)(L,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"config-container"},[e("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.custom,expression:"custom"}],scopedSlots:t._u([{key:"label",fn:function(){return[e("span",[t._v("\n        "+t._s(t.$t("common.component.cartoonDigitalHumanConfig.multiFigureFront"))+"\n        "),e("el-tooltip",{attrs:{effect:"dark",content:t.$t("common.component.cartoonDigitalHumanConfig.multiFigureFrontTip"),placement:"top"}},[e("i",{staticClass:"el-icon-warning"})])],1)]},proxy:!0}])},[t._v(" "),e("el-switch",{on:{change:t.fnEnableDigitalHumansChange},model:{value:t.cartoon.enableDigitalHumanFrontSwitch,callback:function(e){t.$set(t.cartoon,"enableDigitalHumanFrontSwitch",e)},expression:"cartoon.enableDigitalHumanFrontSwitch"}})],1),t._v(" "),t.cartoon.enableDigitalHumanFrontSwitch?e("div",[e("el-form-item",{attrs:{label:t.$t("common.component.cartoonDigitalHumanConfig.multiFigureRule")}},[e("el-radio-group",{on:{input:t._emitCartoonInfo},model:{value:t.cartoon.digitalHumanFrontSwitchRule,callback:function(e){t.$set(t.cartoon,"digitalHumanFrontSwitchRule",e)},expression:"cartoon.digitalHumanFrontSwitchRule"}},t._l(t.figureShowRuleOptions,(function(r,n){return e("el-radio",{key:n,attrs:{label:r.value}},[e("span",[t._v("\n            "+t._s(r.label)+"\n            "),e("el-tooltip",{attrs:{effect:"dark",content:r.tooltip,placement:"top"}},[e("i",{staticClass:"el-icon-warning"})])],1)])})),1)],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("common.component.cartoonDigitalHumanConfig.digitalHumanFigures")}},[e("div",{staticClass:"multi-human-container"},[t._l(t.cartoon.digitalHumanFrontSwitchList,(function(r){return e("HumanCard",{key:r.preset,ref:"humanCardRef_".concat(r.preset),refInFor:!0,attrs:{human:r,toneList:t.toneList,showRemoveBtn:t.showRemoveBtn},on:{audioChange:t.fnDigitalHumanInfoChange,nameChange:t.fnDigitalHumanInfoChange,remove:t.fnRemoveHuman}})})),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showFiguresAddBtn,expression:"showFiguresAddBtn"}],staticClass:"config-img-background multi-human-add",on:{click:t.openCartoonSelector}},[e("i",{staticClass:"el-icon-plus config-img-font"})])],2)])],1):t._e(),t._v(" "),t.cartoon.enableDigitalHumanFrontSwitch?t._e():e("div",[e("el-form-item",{attrs:{label:t.$t("common.component.cartoonDigitalHumanConfig.digitalHumanImageSingle"),prop:"preset",rules:t.rules.preset}},[e("div",{staticClass:"config-img-background",on:{click:t.openCartoonSelector}},[t.cartoon.cover?e("img",{staticClass:"config-img",attrs:{src:t.getPreviewCoverUrl(),alt:t.$t("common.component.cartoonDigitalHumanConfig.digitalHumanImage")}}):e("i",{staticClass:"el-icon-plus config-img-font"})])]),t._v(" "),e("el-form-item",{attrs:{label:t.$t("common.component.cartoonDigitalHumanConfig.digitalHumanTone")}},[e("el-radio-group",{on:{change:function(e){return t.$emit("change",t.cartoon)}},model:{value:t.cartoon.tone,callback:function(e){t.$set(t.cartoon,"tone",e)},expression:"cartoon.tone"}},t._l(t.toneList,(function(r,n){return e("el-radio",{key:n,attrs:{label:r.tone}},[t._v("\n          "+t._s(r.name)+"\n          "),e("img",{staticClass:"config-voice-icon",attrs:{src:t.VOICE_ICON},on:{click:function(e){return t.fnPlayAudio(r.tone)}}}),t._v(" "),e("audio",{ref:r.tone,refInFor:!0},[e("source",{attrs:{src:r.url,type:"audio/mpeg"}})])])})),1)],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("common.component.cartoonDigitalHumanConfig.displayName")}},[e("el-input",{staticClass:"digital-human-name-input",attrs:{placeholder:t.$t("common.component.cartoonDigitalHumanConfig.displayNamePlaceholder"),maxlength:"10","show-word-limit":""},on:{change:t._emitCartoonInfo},model:{value:t.cartoon.previewName,callback:function(e){t.$set(t.cartoon,"previewName",e)}
1,expression:"cartoon.previewName"}})],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("common.component.cartoonDigitalHumanConfig.wakePrompt")}},[e("el-input",{staticClass:"digital-wakeup-input",attrs:{placeholder:t.$t("common.component.cartoonDigitalHumanConfig.wakePromptPlaceholder"),maxlength:"10","show-word-limit":""},on:{change:t._emitCartoonInfo},model:{value:t.cartoon.wakePrompt,callback:function(e){t.$set(t.cartoon,"wakePrompt",e)},expression:"cartoon.wakePrompt"}})],1)],1)],1)}),[],!1,null,"2eb0d250",null).exports;r(94298),r(54743),r(11745),r(16573),r(78100),r(77936),r(27495),r(71761),r(21489),r(48140),r(81630),r(72170),r(75044),r(69539),r(31694),r(89955),r(21903),r(91134),r(33206),r(44496),r(66651),r(12887),r(19369),r(66812),r(8995),r(31575),r(36072),r(88747),r(28845),r(29423),r(57301),r(373),r(86614),r(41405),r(37467),r(44732),r(33684),r(79577),r(2945),r(55815),r(64979),r(79739);function x(t){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x(t)}function E(){"use strict";E=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),u=new j(n||[]);return o(a,"_invoke",{value:O(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",m="executing",d="completed",g={};function v(){}function y(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,S=_&&_(_(T([])));S&&S!==r&&n.call(S,a)&&(w=S);var I=b.prototype=v.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==x(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=F(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?d:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=d,n.method="throw",n.arg=l.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);
vendor: 3,071 bytes, line 1
1if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(x(e)+" is not iterable")}return y.prototype=b,o(I,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},C(L.prototype),l(L.prototype,u,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(I),l(I,c,"Generator"),l(I,a,(function(){return this})),l(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),g}}
1,catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function F(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}var P={name:"RealHumanSelector",components:{VueCropper:r(17756).VueCropper},props:{img:{type:String,default:""},strategy:{type:Object,default:function(){}}},data:function(){return{option:{imgValue:"",outputSize:1,full:!1,outputType:"png",info:!0,canMove:!0,canMoveBox:!0,autoCrop:!0,high:!0,autoCropWidth:339,autoCropHeight:600,fixedBox:!1,infoTrue:!1,downImg:"#",fixedNumber:[9,16],fixed:!0,centerBox:!0,mode:"contain",enlarge:1,limitMinSize:339,maxImgSize:3e3}}},created:function(){this.option.imgValue=this.img},methods:{handleCropSubmit:function(){this.$refs.cropper.getCropData(this.cropCallBack)},cropCallBack:function(t){var e,r=this;return(e=E().mark((function e(){var n,o,i,a,u,c,l;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.$cookies.get("robotId"),o=Date.now()+".png",i=r.dataURLtoFile(t,o),a={robotId:n,file:i},e.next=6,r.strategy.uploadCover(a);
1case 6:u=e.sent,c=u.statusCode,l=u.data,0===c?r.$emit("confirm",{cover:l,tempCover:t}):r.$message.error("裁剪上传失败");case 10:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(t){F(i,n,o,a,u,"next",t)}function u(t){F(i,n,o,a,u,"throw",t)}a(void 0)}))})()},dataURLtoFile:function(t,e){for(var r=t.split(","),n=r[0].match(/:(.*?);/)[1],o=atob(r[1]),i=o.length,a=new Uint8Array(i);i--;)a[i]=o.charCodeAt(i);return new File([a],e,{type:n})}}},k=P,j=(0,a.A)(k,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"selector-container"},[e("div",{staticClass:"selector-crop-img"},[e("VueCropper",{ref:"cropper",attrs:{img:t.option.imgValue,"output-size":t.option.size,"output-type":t.option.outputType,fixed:t.option.fixed,"fixed-number":t.option.fixedNumber,"auto-crop":t.option.autoCrop,"auto-crop-width":t.option.autoCropWidth,"auto-crop-height":t.option.autoCropHeight,"limit-min-size":t.option.limitMinSize,"max-img-size":t.option.maxImgSize}})],1),t._v(" "),t._m(0),t._v(" "),e("el-button",{staticClass:"selector-crop-submit",attrs:{type:"primary"},on:{click:t.handleCropSubmit}},[t._v(" 确定 ")])],1)}),[function(){var t=this._self._c;return t("div",{staticClass:"selector-crop-notice"},[t("p",[this._v("\n      注:裁剪尺寸最小临界值是339x600,否则会在访客端出现模糊。可通过滚轮调整图片大小,裁剪完后点击右下方的确定即可保存。\n    ")])])}],!1,null,"2d53b20d",null).exports,T=(r(42762),r(50113),r(48598),r(13609),r(20116),r(3296),r(27208),r(48408),r(14603),r(47566),r(98721),r(23549));function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function A(){"use strict";A=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),u=new P(n||[]);return o(a,"_invoke",{value:O(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",m="executing",d="completed",g={};function v(){}function y(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,S=_&&_(_(k([])));S&&S!==r&&n.call(S,a)&&(w=S);var I=b.prototype=v.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==D(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=x(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?d:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=d,n.method="throw",n.arg=l.arg)}}}function x(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 4,886 bytes, line 1
1(r.method="return",r.arg=t,x(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function k(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(D(e)+" is not iterable")}return y.prototype=b,o(I,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},C(L.prototype),l(L.prototype,u,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(I),l(I,c,"Generator"),l(I,a,(function(){return this})),l(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=k,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;F(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function N(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function H(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){N(i,n,o,a,u,"next",t)}function u(t){N(i,n,o,a,u,"throw",t)}a(void 0)}))}}function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?R(Object(r),!0).forEach((function(e){U(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function U(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=D(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==D(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var M=function(t){return function(e,r,n){r?n():n(new Error(t))}},V=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{var e=new URL(t),r=e.origin,n=e.pathname;return"".concat(r).concat(n)}catch(e){return t}},G={name:"RoleKeyConfig",props:{appId:{type:String,default:""},appKey:{type:String,default:""},figureId:{type:String,default:""},cover:{type:String,default:""},strategy:{type:Object,default:function(){return{}}},unitId:{type:[Number,String],default:""},robotId:{type:String,default:""}},data:function(){return{dialogVisible:!1,step:"auth",authForm:{appId:"",appKey:"",uid:""},authRules:{appId:[{validator:M("请输入APPID"),trigger:"blur"}],appKey:[{validator:M("请输入APPKEY"),trigger:"blur"}],uid:[{validator:M("请输入UID"),trigger:"blur"}]},rules:{figureId:[{validator:M("请选择数字人形象"),trigger:"change"}]},verifying:!1,listLoading:!1,figureList:[],selectedFigureId:"",selectedFigure:null,fetchSeq:0,searchKeyword:"",cachedListFor:"",pageNum:1,pageSize:8,total:0}},computed:{filteredFigureList:function(){return this.figureList}},created:function(){this.debouncedSearch=(0,T.A)(this.doSearch,400)},beforeDestroy:function(){this.debouncedSearch&&this.debouncedSearch.cancel()},methods:{openDialog:function(){this.authForm.appId="",this.authForm.appKey="",this.authForm.uid=this.$cookies.get("UID")||"",this.selectedFigureId=this.figureId,this.selectedFigure=null,this.searchKeyword="",this.step="auth",this.dialogVisible=!0,this.checkThirdStatus()},buildQueryParams:function(){return{unitId:this.unitId,robotId:this.robotId,pageNum:this.pageNum,pageSize:this.pageSize,dialogueName:this.searchKeyword.trim()||void 0}},buildFingerprint:function(){return[this.authForm.appId,this.authForm.appKey,this.pageNum,this.pageSize,this.searchKeyword.trim()].join("|")},buildSaveParams:function(){return $($({},this.buildQueryParams()),{},{appId:this.authForm.appId,appKey:this.authForm.appKey,uid:this.authForm.uid})},checkThirdStatus:function(){var t=this;return H(A().mark((function e(){var r;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.strategy.getRoleKeyThirdStatus(t.buildQueryParams());case 2:r=e.sent,0===r.statusCode&&(t.step="list",t.loadFigureList());case 5:case"end":return e.stop()}}),e)})))()},handleDialogOpened:function(){this.$refs.authFormRef&&this.$refs.authFormRef.clearValidate()},handleDialogClosed:function(){this.fetchSeq++,this.step="auth",this.verifying=!1,this.listLoading=!1,this.selectedFigure=null},handleVerify:function(){var t=this;return H(A().mark((function e(){return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$refs.authFormRef.validate();case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.doVerify(!0);case 9:case"end":return e.stop()}}),e,null,[[0,5]])})))()},doVerify:function(t){var e=this;return H(A().mark((function r(){var n,o,i,a;return A().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.verifying=!0,n=++e.fetchSeq,r.next=4,e.strategy.verifyRoleKeyAuth(e.buildSaveParams());case 4:if(o=r.sent,i=o.statusCode,a=o.msg,e.verifying=!1,n===e.fetchSeq){r.next=10;break}return r.abrupt("return");case 10:if(0===i){r.next=13;break}return e.$message.error(a||"验证失败"),r.abrupt("return");case 13:t&&e.$message.success("验证成功"),e.step="list",e.loadFigureList();case 16:case"end":return r.stop()}}),r)})))()},loadFigureList:function(){var t=this;return H(A().mark((function e(){var r,n,o,i,a,u,c;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.buildFingerprint(),t.cachedListFor!==r||!t.figureList.length){e.next=4;break}return t.preserveSelection(),e.abrupt("return");
1case 4:return t.listLoading=!0,n=++t.fetchSeq,e.next=8,t.strategy.listRoleKeyFigures(t.buildQueryParams());case 8:if(o=e.sent,i=o.statusCode,a=o.data,u=o.msg,t.listLoading=!1,n===t.fetchSeq){e.next=15;break}return e.abrupt("return");case 15:if(0===i){e.next=18;break}return t.$message.error(u||"获取形象列表失败"),e.abrupt("return");case 18:c=a&&a.records||[],t.total=a&&a.total||0,t.figureList=c.map((function(t){return{figureId:t.cid,figureName:t.dialogueName,cover:V(t.transparentCoverUrl)}})),t.cachedListFor=r,t.preserveSelection();case 23:case"end":return e.stop()}}),e)})))()},preserveSelection:function(){var t=this.selectedFigureId||this.figureId;if(t){var e=this.figureList.find((function(e){return e.figureId===t}));if(e){this.selectedFigureId=e.figureId,this.selectedFigure=e;var r=this.figureList.indexOf(e);r>0&&(this.figureList.splice(r,1),this.figureList.unshift(e))}}},handleSearchInput:function(){this.debouncedSearch()},doSearch:function(){this.pageNum=1,this.cachedListFor="",this.loadFigureList()},handlePageChange:function(t){t!==this.pageNum&&(this.pageNum=t,this.cachedListFor="",this.loadFigureList())},handleSizeChange:function(t){this.pageSize=t,this.pageNum=1,this.cachedListFor="",this.loadFigureList()},handleFigureClick:function(t){this.selectedFigureId=t.figureId,this.selectedFigure=t},handleConfirm:function(){var t=this;if(this.selectedFigure){var e=this.selectedFigure,r=e.cover,n=e.figureId;this.dialogVisible=!1,this.$emit("change",{cover:r,figureId:n}),this.$nextTick((function(){t.$refs.figureFormItem&&t.$refs.figureFormItem.validate("change")}))}}}},K=(0,a.A)(G,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"role-key-config"},[e("el-form-item",{ref:"figureFormItem",attrs:{label:"数字人形象:",prop:"figureId",rules:t.rules.figureId}},[e("div",{staticClass:"role-key-select"},[e("div",{staticClass:"role-key-trigger",on:{click:t.openDialog}},[t.cover?e("img",{staticClass:"role-key-trigger-img",attrs:{src:t.cover,alt:"数字人形象封面"}}):e("i",{staticClass:"el-icon-plus role-key-trigger-icon"})]),t._v(" "),e("div",{staticClass:"role-key-meta"},[e("p",{staticClass:"role-key-meta-tip"},[t._v("点击"+t._s(t.figureId?"重新":"")+"选择形象")])])])]),t._v(" "),e("el-dialog",{attrs:{"custom-class":"role-key-dialog",visible:t.dialogVisible,width:"760px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogVisible=e},opened:t.handleDialogOpened,close:t.handleDialogClosed}},[e("div",{staticClass:"role-key-dialog-title",attrs:{slot:"title"},slot:"title"},[e("p",{staticClass:"role-key-dialog-title-main"},[t._v("超星数字人接入")]),t._v(" "),e("p",{staticClass:"role-key-dialog-title-sub"},[t._v("验证应用凭证后,选择已授权的定制数字人形象")])]),t._v(" "),e("transition",{attrs:{name:"role-key-step",mode:"out-in"}},["auth"===t.step?e("div",{key:"auth",staticClass:"role-key-auth"},[e("div",{staticClass:"role-key-auth-banner"},[e("i",{staticClass:"el-icon-connection role-key-auth-banner-icon"}),t._v(" "),e("span",[t._v("APPID 与 APPKEY 由数字人服务商提供,验证通过后方可选择已授权的定制形象")])]),t._v(" "),e("el-form",{ref:"authFormRef",staticClass:"role-key-auth-form",attrs:{model:t.authForm,rules:t.authRules,"label-width":"80px"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"APPID:",prop:"appId"}},[e("el-input",{attrs:{maxlength:"64",placeholder:"请输入服务商提供的 APPID"},model:{value:t.authForm.appId,callback:function(e){t.$set(t.authForm,"appId","string"==typeof e?e.trim():e)},expression:"authForm.appId"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"APPKEY:",prop:"appKey"}},[e("el-input",{attrs:{"show-password":"",autocomplete:"new-password",placeholder:"请输入服务商提供的 APPKEY"},model:{value:t.authForm.appKey,callback:function(e){t.$set(t.authForm,"appKey",e)},expression:"authForm.appKey"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"UID:",prop:"uid"}},[e("el-input",{attrs:{maxlength:"64",placeholder:"请输入UID"},model:{value:t.authForm.uid,callback:function(e){t.$set(t.authForm,"uid","string"==typeof e?e.trim():e)},expression:"authForm.uid"}}),t._v(" "),e("div",{staticClass:"role-key-uid-tip"},[t._v("请填写appid和key的申请人uid")])],1)],1)],1):e("div",{key:"list",staticClass:"role-key-list"},[e("div",{staticClass:"role-key-list-toolbar"},[e("el-input",{staticClass:"role-key-list-search",attrs:{"prefix-icon":"el-icon-search",placeholder:"搜索形象名称",clearable:"",size:"small"},on:{input:t.handleSearchInput},model:{value:t.searchKeyword,callback:function(e){t.searchKeyword=e},expression:"searchKeyword"}})],1),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"role-key-figure-grid"},[t._l(t.filteredFigureList,(function(r,n){return e("div",{key:r.figureId,staticClass:"role-key-figure-card",class:{"
1is-selected":t.selectedFigureId===r.figureId},style:{animationDelay:"".concat(60*n,"ms")},on:{click:function(e){return t.handleFigureClick(r)}}},[e("div",{staticClass:"role-key-figure-cover"},[e("img",{attrs:{src:r.cover,alt:r.figureName}}),t._v(" "),t.selectedFigureId===r.figureId?e("i",{staticClass:"el-icon-circle-check role-key-figure-check"}):t._e()]),t._v(" "),e("p",{staticClass:"role-key-figure-name"},[t._v(t._s(r.figureName))]),t._v(" "),e("span",{staticClass:"role-key-figure-id"},[t._v(t._s(r.figureId))])])})),t._v(" "),t.listLoading||0!==t.filteredFigureList.length?t._e():e("div",{staticClass:"role-key-figure-empty"},[e("i",{staticClass:"el-icon-picture-outline-round"}),t._v(" "),e("p",[t._v(t._s(t.searchKeyword?"未搜索到匹配的形象":"暂无可用形象"))]),t._v(" "),e("p",{staticClass:"role-key-figure-empty-sub"},[t._v("\n              "+t._s(t.searchKeyword?"请尝试其他关键词":"请确认该凭证已开通定制形象权限")+"\n            ")])])],2),t._v(" "),t.total>0?e("div",{staticClass:"role-key-pagination"},[e("el-pagination",{attrs:{background:"",layout:"total, sizes, prev, pager, next","current-page":t.pageNum,"page-size":t.pageSize,"page-sizes":[8,16,32],total:t.total},on:{"current-change":t.handlePageChange,"size-change":t.handleSizeChange}})],1):t._e()])]),t._v(" "),e("div",{staticClass:"role-key-dialog-footer",attrs:{slot:"footer"},slot:"footer"},["list"===t.step?e("span",{staticClass:"role-key-dialog-footer-hint"},[t._v("\n        共 "+t._s(t.total)+" 个形象"),t.selectedFigure?[t._v(",已选择「"+t._s(t.selectedFigure.figureName)+"」")]:t._e()],2):t._e(),t._v(" "),e("span",{staticClass:"role-key-dialog-footer-actions"},["auth"===t.step?[e("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),t._v(" "),e("el-button",{attrs:{type:"primary",loading:t.verifying},on:{click:t.handleVerify}},[t._v("验证")])]:[e("el-button",{on:{click:function(e){t.step="auth"}}},[t._v("上一步")]),t._v(" "),e("el-button",{attrs:{type:"primary",disabled:!t.selectedFigure},on:{click:t.handleConfirm}},[t._v("确定")])]],2)])],1)],1)}),[],!1,null,"6adbc6d0",null).exports,Y=r(7262);function z(t){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(t)}function B(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function W(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?B(Object(r),!0).forEach((function(e){X(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function X(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=z(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==z(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var q=function(t){return function(e,r,n){r?n():n(new Error(t))}},Q={name:"RealHumanConfig",components:{RoleKeyConfig:K},props:{custom:{type:Boolean,default:!1},cover:{type:String,default:""},projectId:{type:String,default:""},figure:{type:Number,default:2},appId:{type:String,default:""},appKey:{type:String,default:""},figureId:{type:String,default:""},strategy:{type:Object,default:function(){}},industryToken:{type:String,default:""},unitId:{type:[Number,String],default:""},robotId:{type:String,default:""}},watch:{custom:{handler:function(){this.tempCoverValue=""},immediate:!0},cover:{handler:function(t){this.coverValue=t},immediate:!0},projectId:{handler:function(t){this.projectIdValue=t},immediate:!0}},data:function(){return{coverValue:"",tempCoverValue:"",projectIdValue:"",rules:{cover:[{validator:q("请选择真人数字人形象"),trigger:"blur"}],projectId:[{validator:q("请输入projectId"),trigger:"blur"}]},headers:W(W({},Y.w),{},{Industrytoken:this.industryToken})}},methods:{getEmitPayload:function(){return{cover:this.coverValue,projectId:this.projectIdValue}},handleRoleKeyChange:function(t){this.$emit("change",t)},openRealHumanSelector:function(t){var e=this;this.$openDialog({common:{title:"真人数字人形象设置",width:"1000px",top:"3vh",customClass:"",showFooter:!1,showTitle:!0},content:{model:"component",vm:j,options:{img:t,strategy:this.strategy}}}).then((function(t){var r=t.contentVm;if(r){var n=r.cover,o=r.tempCover;e.coverValue=n,e.tempCoverValue=o,e.$emit("change",e.getEmitPayload())}}))},handleBeforeUpload:function(t){var e=this;if("image/png"!=t.type)return this.$message.error("请上传png格式图片"),!1;var r=new FileReader;
1return r.readAsDataURL(t),r.onload=function(t){e.openRealHumanSelector(t.target.result)},!1},emitChange:function(){this.$emit("change",this.getEmitPayload())}}},Z=(0,a.A)(Q,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"config-container"},[t.custom&&4===t.figure?[e("role-key-config",{attrs:{"app-id":t.appId,"app-key":t.appKey,"figure-id":t.figureId,cover:t.cover,strategy:t.strategy,"unit-id":t.unitId,"robot-id":t.robotId},on:{change:t.handleRoleKeyChange}})]:[e("el-form-item",{attrs:{label:"数字人形象:",prop:"cover",rules:t.rules.cover}},[e("div",{staticClass:"config-img-container"},[e("el-upload",{ref:"uploadDemo",staticClass:"config-img-upload",attrs:{headers:t.headers,data:{type:"pc"},action:"#",accept:"image/png","before-upload":t.handleBeforeUpload,"with-credentials":!0,"show-file-list":!1,disabled:!t.custom}},[e("div",{staticClass:"config-img-background"},[t.tempCoverValue||t.coverValue?e("img",{staticClass:"config-img",attrs:{src:t.tempCoverValue||t.coverValue}}):e("i",{staticClass:"el-icon-plus config-img-font"})])]),t._v(" "),t.custom?e("div",{staticClass:"config-img-rule"},[e("p",{staticClass:"config-img-rule-font"},[t._v("\n            格式要求:\n          ")]),t._v(" "),e("p",{staticClass:"config-img-rule-font"},[t._v("\n            png(无背景)\n          ")])]):t._e()],1)]),t._v(" "),t.custom&&2===t.figure?e("el-form-item",{attrs:{label:"projectID:",prop:"projectId",rules:t.rules.projectId}},[e("el-tooltip",{attrs:{effect:"dark",placement:"right-start"}},[e("div",{staticStyle:{"line-height":"24px"},attrs:{slot:"content"},slot:"content"},[t._v("\n          1.由于拍摄录制差异,为保证形象统一和美观,需根据实际数字人形象手动调整。"),e("br"),t._v("\n          2.真人数字人定制形象的交互权限需要单独获取"),e("br")]),t._v(" "),e("i",{staticClass:"el-icon-warning-outline"})]),t._v(" "),e("el-input",{staticStyle:{width:"300px"},on:{change:t.emitChange},model:{value:t.projectIdValue,callback:function(e){t.projectIdValue=e},expression:"projectIdValue"}})],1):t._e()]],2)}),[],!1,null,"7185a4ea",null).exports,J=r(70670),tt=r(12074),et=r(59335),rt=r(20903),nt=r(77070);function ot(t){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(t)}function it(){"use strict";it=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),u=new P(n||[]);return o(a,"_invoke",{value:O(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",m="executing",d="completed",g={};function v(){}function y(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,S=_&&_(_(k([])));S&&S!==r&&n.call(S,a)&&(w=S);var I=b.prototype=v.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==ot(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}
vendor: 5,435 bytes, line 1
1for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=x(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?d:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=d,n.method="throw",n.arg=l.arg)}}}function x(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,x(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function k(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(ot(e)+" is not iterable")}return y.prototype=b,o(I,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},C(L.prototype),l(L.prototype,u,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(I),l(I,c,"Generator"),l(I,a,(function(){return this})),l(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=k,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;F(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function at(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function ut(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){at(i,n,o,a,u,"next",t)}function u(t){at(i,n,o,a,u,"throw",t)}a(void 0)}))}}function ct(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?ct(Object(r),!0).forEach((function(e){st(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ct(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function st(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=ot(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ot(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ot(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ft={name:"DigitalHumanConfig",components:{CartoonConfig:O,RealHumanConfig:Z,ViewExample:J.A,AgentFigureSelect:function(){return r.e(25857).then(r.bind(r,25857))}},props:{value:{type:Object,default:function(){return{}}},unitInfo:{type:Object,default:function(){return{unitId:0,robotId:""}}},industryInfo:{type:Object,default:function(){return{industryId:0,industryToken:""}}},defaultServiceData:{type:Object,default:function(){return{}}}},computed:lt(lt(lt({},(0,et.mapState)(["robotInfo"])),(0,et.mapGetters)(["isRobotVersionGte2"])),{},{IS_SINGLE_MODEL:function(){var t=(this.robotInfo||{}).module;return 0===(void 0===t?0:t)},IS_FOLLOW_AGENT:function(){return"FOLLOW"===(this.form||{}).multiAgentDigitalHumanStrategy},expandTypeListPC:function(){return!this.isRealHuman(this.form.figure)&&this.isRobotVersionGte2?d.Xg:d.Xg.filter((function(t){return t.value!==d.M0.MEDIUM_COLLAPSE}))}}),data:function(){var t=this;return{EXPAND_TYPE_LIST:d.Xg,EXPAND_TYPE_LIST_MOBILE:d.IU,FIGURE_TYPE_LIST:d.hH.filter((function(t){return!(0,nt.SE)()||"realHuman"!==t.value})),CUSTOM_TYPE_LIST:d.gz,SHOW_STRATEGY_LIST:d.jF,AGENTS_SHOW_STRATEGY_LIST:d.AZ,ACCESS_TYPE_LIST:d.vt.filter((function(e){return!("roleKey"!==e.value||!t.industryInfo.industryToken)||e.enable()})),strategy:{},defaultFigureMap:new Map,form:{},toneList:[],displayFigureType:"cartoon",accessType:"projectId"}},created:function(){this.unitInfo.unitId&&0!==this.unitInfo.unitId||(this.unitInfo.unitId=+this.$cookies.get("unitId")||0),this.unitInfo.robotId||(this.unitInfo.robotId=this.$cookies.get("robotId")||"");var t=this.industryInfo.industryToken?"INDUSTRY":"UNIT",e=new tt.w(t);this.strategy=e.getStrategy(),this.loadCartoonToneList(),0===Object.keys(this.value).length&&this.loadDigitalHumanConfig()},watch:{value:{handler:function(t){this.form=Object.assign({},this.form,t),void 0!==t.figure&&this.syncDisplayFromFigure(t.figure)},immediate:!0,deep:!0}},methods:{isRealHuman:function(t){return t===d.Kt.REAL},isPCMediumCollapse:function(t){return t===d.M0.MEDIUM_COLLAPSE},getStrategy:function(){return this.strategy},loadCartoonToneList:function(){var t=this;return ut(it().mark((function e(){var r,n,o;return it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.strategy.listCartoonTone(t.unitInfo.unitId);case 2:if(r=e.sent,n=r.statusCode,o=r.data,0===n){e.next=7;break}return e.abrupt("return");case 7:t.toneList=o||[];case 8:case"end":return e.stop()}}),e)})))()},loadDigitalHumanConfig:function(){var t=this;return ut(it().mark((function e(){var r,n,o;return it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.strategy.getDiaitalHumanConfig(lt({},t.unitInfo));case 2:if(r=e.sent,n=r.statusCode,o=r.data,0===n){e.next=7;break}return e.abrupt("return");case 7:t.form=o,t.syncDisplayFromFigure(o.figure),t.$emit("input",t.form);case 10:case"end":return e.stop()}}),e)})))()},handleDisplayFigureTypeChange:function(){var t=this;return ut(it().mark((function e(){var r,n;return it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"realHuman"===t.displayFigureType&&(t.accessType="projectId"),r=t.computeFigure(),e.next=4,t.getDefaultFigure(r);case 4:if(e.t0=e.sent,e.t0){e.next=7;break}e.t0={};case 7:n=e.t0,t._applyFormDefaults(n,["cover","preset","projectId","tone","appId","appKey","figureId"]),t.form.custom=n.custom||0,t.form.figure=r,t._resetSwitchFields(),t.isPCMediumCollapse(t.form.enablePcPageExpand)&&(t.form.enablePcPageExpand=d.M0.DEFAULT_EXPAND),t.$emit("input",t.form);case 14:case"end":return e.stop()}}),e)})))()},handleAccessTypeChange:function(){this.form.figure=this.computeFigure(),"projectId"===this.accessType?(this.form.appId="",this.form.appKey="",this.form.figureId=""):this.form.projectId="",this.$emit("input",this.form)},handleCustomChange:function(t){var e=this;return ut(it().mark((function r(){var n;return it().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.accessType="projectId",e.form.figure=e.computeFigure(),0!==t){r.next=13;break}return r.next=5,e.getDefaultFigure(e.form.figure);case 5:if(r.t0=r.sent,r.t0){r.next=8;break}r.t0={};case 8:n=r.t0,e._applyFormDefaults(n,["cover","preset","projectId","tone","previewName","wakePrompt"]),e._resetSwitchFields(),r.next=14;break;case 13:e._applyFormDefaults({},["cover","preset","projectId","appId","appKey","figureId"]);case 14:e.$emit("input",e.form);case 15:case"end":return r.stop()}}),r)})))()},getDefaultFigure:function(t){var e=this;return ut(it().mark((function r(){var n,o,i,a;return it().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.defaultFigureMap.has(t)){r.next=9;break}return r.next=3,e.strategy.getDefaultDiaitalHumanConfig(t,null===(n=e.unitInfo)||void 0===n?void 0:n.robotId);case 3:if(o=r.sent,i=o.statusCode,a=o.data,0===i){r.next=8;break}return r.abrupt("return");case 8:e.defaultFigureMap.set(t,a);case 9:return r.abrupt("return",e.defaultFigureMap.get(t));case 10:case"end":return r.stop()}}),r)})))()},handleConfigChange:function(t){var e=t||{},r=e.enableDigitalHumanFrontSwitch,n=e.digitalHumanFrontSwitchRule,o=e.digitalHumanFrontSwitchList;this._applyFormDefaults(t,d.AT),this.form.enableDigitalHumanFrontSwitch=r,this.form.digitalHumanFrontSwitchRule=n,this.form.digitalHumanFrontSwitchList=o,this.$emit("input",this.form)},computeFigure:function(){var t=d.U9[this.displayFigureType];return"number"==typeof t?t:t[this.accessType]||3},syncDisplayFromFigure:function(t){var e=d.Uo[t];
1e&&(this.displayFigureType=e.displayType,e.accessType&&(this.accessType=e.accessType))},_applyFormDefaults:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.AT).forEach((function(r){t.$set(t.form,r,e[r]||"")}))},_resetSwitchFields:function(){this.form.enableDigitalHumanFrontSwitch=!1,this.form.digitalHumanFrontSwitchRule=d.oR,this.form.digitalHumanFrontSwitchList=[]},fnChangeMultiAgentDigitalHumanStrategy:function(){this.form=lt(lt({},(0,rt.A)(this.defaultServiceData)),{},{enableDigitalHuman:this.form.enableDigitalHuman,multiAgentDigitalHumanStrategy:this.form.multiAgentDigitalHumanStrategy}),this.$emit("input",this.form)},fnAgentFigureSelectChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.form.multiAgentDigitalHumanList=t.map((function(t){return lt({},t)})),this.$emit("input",this.form)}}},pt=ft,ht=(0,a.A)(pt,(function(){var t=this,e=this,r=e._self._c;return r("div",{staticClass:"config-container"},[r("el-form-item",{attrs:{label:"新版PC端数字人形象展示策略"}},[r("el-radio-group",{on:{input:function(){return e.$emit("input",t.form)}},model:{value:e.form.showStrategy,callback:function(t){e.$set(e.form,"showStrategy",t)},expression:"form.showStrategy"}},e._l(e.SHOW_STRATEGY_LIST,(function(t,n){return r("el-radio",{key:n,attrs:{label:t.value}},[e._v("\n        "+e._s(t.label)+"\n      ")])})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"新版PC端数字人前台展示效果:"}},[r("el-radio-group",{on:{input:function(){return e.$emit("input",t.form)}},model:{value:e.form.enablePcPageExpand,callback:function(t){e.$set(e.form,"enablePcPageExpand",t)},expression:"form.enablePcPageExpand"}},e._l(e.expandTypeListPC,(function(t,n){return r("el-radio",{key:n,attrs:{label:t.value}},[e._v("\n        "+e._s(t.label)+"\n        "),r("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[r("ViewExample",[r("img",{staticClass:"config-container-preview",attrs:{src:t.pcPreviewUrl,alt:t.label}})]),e._v(" "),r("i",{staticClass:"el-icon-question",attrs:{slot:"reference"},slot:"reference"})],1)],1)})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"新版移动端数字人前台展示效果:"}},[r("el-radio-group",{on:{input:function(){return e.$emit("input",t.form)}},model:{value:e.form.enableMobilePageExpand,callback:function(t){e.$set(e.form,"enableMobilePageExpand",t)},expression:"form.enableMobilePageExpand"}},e._l(e.EXPAND_TYPE_LIST_MOBILE,(function(t,n){return r("el-radio",{key:n,attrs:{label:t.value}},[e._v("\n        "+e._s(t.label)+"\n        "),r("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[r("ViewExample",[r("img",{staticClass:"config-container-preview mobile",attrs:{src:t.mobilePreviewUrl,alt:t.label}})]),e._v(" "),r("i",{staticClass:"el-icon-question",attrs:{slot:"reference"},slot:"reference"})],1)],1)})),1)],1),e._v(" "),e.IS_SINGLE_MODEL?e._e():r("el-form-item",{attrs:{label:"多agents数字人展示策略"}},[r("el-radio-group",{on:{input:e.fnChangeMultiAgentDigitalHumanStrategy},model:{value:e.form.multiAgentDigitalHumanStrategy,callback:function(t){e.$set(e.form,"multiAgentDigitalHumanStrategy",t)},expression:"form.multiAgentDigitalHumanStrategy"}},e._l(e.AGENTS_SHOW_STRATEGY_LIST,(function(t,n){return r("el-radio",{key:n,attrs:{label:t.value}},[e._v("\n        "+e._s(t.label)+"\n      ")])})),1)],1),e._v(" "),e.IS_FOLLOW_AGENT?r("el-form-item",{attrs:{label:"单agent智能体数字人选择"}},[r("AgentFigureSelect",{attrs:{followList:e.form.multiAgentDigitalHumanList,toneList:e.toneList,"unit-id":e.unitInfo.unitId,"industry-id":e.industryInfo.industryId,strategy:e.strategy},on:{change:e.fnAgentFigureSelectChange}})],1):[r("el-form-item",{attrs:{label:"数字人类型:"}},[r("el-radio-group",{on:{input:e.handleDisplayFigureTypeChange},model:{value:e.displayFigureType,callback:function(t){e.displayFigureType=t},expression:"displayFigureType"}},e._l(e.FIGURE_TYPE_LIST,(function(t,n){return r("el-radio",{key:n,attrs:{label:t.value}},[e._v("\n          "+e._s(t.label)+"\n        ")])})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"数字人定制:"}},[r("el-radio-group",{on:{input:e.handleCustomChange},model:{value:e.form.custom,callback:function(t){e.$set(e.form,"custom",t)},expression:"form.custom"}},e._l(e.CUSTOM_TYPE_LIST,(function(t,n){return r("el-radio",{key:n,attrs:{label:t.value}},[e._v("\n          "+e._s(t.label)+"\n        ")])})),1)],1),e._v(" "),"realHuman"===e.displayFigureType&&1===e.form.custom?r("el-form-item",{attrs:{label:"数字人接入方式:"}},[r("el-radio-group",{on:{input:e.handleAccessTypeChange},model:{value:e.accessType,callback:function(t){e.accessType=t},expression:"accessType"}},e._l(e.ACCESS_TYPE_LIST,(function(t,n){return r("el-radio",{key:n,attrs:{label:t.value}},[e._v("\n          "+e._s(t.label)+"\n        ")])}
1)),1)],1):e._e(),e._v(" "),"cartoon"===e.displayFigureType?r("cartoon-config",{attrs:{formInfo:e.form,custom:1===e.form.custom,cover:e.form.cover,preset:e.form.preset,tone:e.form.tone,strategy:e.strategy,"unit-id":e.unitInfo.unitId,"industry-id":e.industryInfo.industryId,toneList:e.toneList},on:{change:e.handleConfigChange}}):e._e(),e._v(" "),"realHuman"===e.displayFigureType?r("real-human-config",{attrs:{custom:1===e.form.custom,cover:e.form.cover,"project-id":e.form.projectId,figure:e.form.figure,"app-id":e.form.appId,"app-key":e.form.appKey,"figure-id":e.form.figureId,strategy:e.strategy,"industry-token":e.industryInfo.industryToken,"unit-id":e.unitInfo.unitId,"robot-id":e.unitInfo.robotId},on:{change:e.handleConfigChange}}):e._e()]],2)}),[],!1,null,"2ba97586",null).exports},23061:function(t,e,r){var n=r(79039);t.exports=function(t){return n((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},23549:function(t,e,r){var n=r(23149),o=r(81052),i=r(50751),a=Math.max,u=Math.min;e.A=function(t,e,r){var c,l,s,f,p,h,m=0,d=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var r=c,n=l;return c=l=void 0,m=e,f=t.apply(n,r)}function b(t){var r=t-h;return void 0===h||r>=e||r<0||g&&t-m>=s}function w(){var t=(0,o.A)();if(b(t))return _(t);p=setTimeout(w,function(t){var r=e-(t-h);return g?u(r,s-(t-m)):r}(t))}function _(t){return p=void 0,v&&c?y(t):(c=l=void 0,f)}function S(){var t=(0,o.A)(),r=b(t);if(c=arguments,l=this,h=t,r){if(void 0===p)return function(t){return m=t,p=setTimeout(w,e),d?y(t):f}(h);if(g)return clearTimeout(p),p=setTimeout(w,e),y(h)}return void 0===p&&(p=setTimeout(w,e)),f}return e=(0,i.A)(e)||0,(0,n.A)(r)&&(d=!!r.leading,s=(g="maxWait"in r)?a((0,i.A)(r.maxWait)||0,e):s,v="trailing"in r?!!r.trailing:v),S.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=h=l=p=void 0},S.flush=function(){return void 0===p?f:_((0,o.A)())},S}},50751:function(t,e,r){r.d(e,{A:function(){return h}});var n=/\s/;var o=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e},i=/^\s+/;var a=function(t){return t?t.slice(0,o(t)+1).replace(i,""):t},u=r(23149),c=r(61882),l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;var h=function(t){if("number"==typeof t)return t;if((0,c.A)(t))return NaN;if((0,u.A)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,u.A)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=a(t);var r=s.test(t);return r||f.test(t)?p(t.slice(2),r?2:8):l.test(t)?NaN:+t}},61882:function(t,e,r){var n=r(2383),o=r(53098);e.A=function(t){return"symbol"==typeof t||(0,o.A)(t)&&"[object Symbol]"==(0,n.A)(t)}},77240:function(t,e,r){var n=r(79504),o=r(67750),i=r(655),a=/"/g,u=n("".replace);t.exports=function(t,e,r,n){var c=i(o(t)),l="<"+e;return""!==r&&(l+=" "+r+'="'+u(i(n),a,"&quot;")+'"'),l+">"+c+"</"+e+">"}},81052:function(t,e,r){var n=r(41917);e.A=function(){return n.A.Date.now()}},83803:function(t,e,r){r.d(e,{AT:function(){return L},AZ:function(){return b},IU:function(){return m},Kt:function(){return d},M0:function(){return p},MQ:function(){return _},U9:function(){return C},Uo:function(){return I},Xg:function(){return h},gz:function(){return y},hH:function(){return g},jF:function(){return w},oR:function(){return S},vt:function(){return v}});r(52675),r(89463),r(2259),r(45700),r(16280),r(23792),r(89572),r(2892),r(26099),r(47764),r(62953);var n=r(80077),o=r(43480),i=r(65921),a=r(52474),u=r(13909),c=r(51756),l=r(55808);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p={DEFAULT_EXPAND:1,DEFAULT_COLLAPSE:0,MEDIUM_COLLAPSE:2},h=[{value:p.DEFAULT_EXPAND,label:"默认展开",pcPreviewUrl:i},{value:p.DEFAULT_COLLAPSE,label:"默认收起",pcPreviewUrl:o}
1,{value:p.MEDIUM_COLLAPSE,label:"初始收起,对话自动展开",pcPreviewUrl:a}],m=[{value:1,label:"默认展开",mobilePreviewUrl:c},{value:0,label:"默认收起",mobilePreviewUrl:u},{value:2,label:"全屏展示",mobilePreviewUrl:l}],d={CARTOON:3,REAL:2,THIRD_REAL:4},g=[{value:"cartoon",label:"卡通数字人"},{value:"realHuman",label:"真人数字人"}],v=[{value:"projectId",label:"项目ID接入",enable:function(){return!0}},{value:"roleKey",label:"超星数字人接入",enable:function(){return(0,n.Yj)("digital:thirdrealhuman")}}],y=[{value:0,label:"默认形象"},{value:1,label:"定制形象"}],b=[{value:"SELF",label:"展示多agents智能体数字人"},{value:"FOLLOW",label:"跟随单agent智能体数字人"}],w=[{value:!1,label:"固定宽高展示"},{value:!0,label:"高度占屏幕60%展示"}],_=[{value:"MEMORY",label:"记忆模式",tooltip:"选择记忆模式,页面可记忆用户上次的选择"},{value:"RANDOM",label:"随机模式",tooltip:"选择随机模式,用户进入前台页面随机展示形象"}],S="MEMORY",I=f(f(f({},d.REAL,{displayType:"realHuman",accessType:"projectId"}),d.CARTOON,{displayType:"cartoon",accessType:null}),d.THIRD_REAL,{displayType:"realHuman",accessType:"roleKey"}),C={cartoon:d.CARTOON,realHuman:{projectId:d.REAL,roleKey:d.THIRD_REAL}},L=["cover","preset","projectId","tone","previewName","wakePrompt","appId","appKey","figureId"]},89023:function(t,e,r){r.d(e,{A:function(){return l}});r(62010),r(52675),r(89463),r(2259),r(45700),r(16280),r(2008),r(50113),r(23792),r(44114),r(89572),r(18111),r(22489),r(20116),r(7588),r(2892),r(83851),r(81278),r(79432),r(26099),r(47764),r(23500),r(62953);var n=r(7911);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u={name:"AudioSelect",props:{activeTone:{type:String,default:""},toneList:{type:Array,default:function(){return[]}}},data:function(){return{VOICE_ICON:n,currentAudio:{name:null,audioUrl:null}}},watch:{toneList:{handler:function(){this.initAudioConfig()},deep:!0,immediate:!0}},methods:{initAudioConfig:function(){var t=this,e=this.toneList.find((function(e){return e.tone===t.activeTone}))||{},r=e.name,n=e.url,o=this.toneList.find((function(t){return t.defaultFlag}))||{},i=o.name,a=o.url;this.currentAudio={name:r||i,audioUrl:n||a}},fnAudioChange:function(t){var e=this.toneList.find((function(e){return e.tone===t})),r=e||{},n=r.name,o=r.url;this.currentAudio={name:n,audioUrl:o},this.$emit("change",function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e))},fnPlayAudio:function(t,e){if("single"===e){var r=this.$refs[t];if(!r)return;return r.load(),void r.play()}var n=this.$refs[t][0];n&&n.play()}}},c=u,l=(0,r(14486).A)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"audio-select"},[e("span",{staticClass:"audio-title"},[t._v("当前音色:")]),t._v(" "),e("el-dropdown",{attrs:{size:"mini"},on:{command:t.fnAudioChange}},[e("el-button",{staticClass:"audio-dropdown-btn",attrs:{type:"text"}},[t._v(t._s(t.currentAudio.name))]),t._v(" "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.toneList,(function(r){return e("el-dropdown-item",{key:r.tone,attrs:{command:r.tone}},[e("span",[t._v(t._s(r.name))]),t._v(" "),e("span",[e("img",{staticClass:"voice-icon",attrs:{src:t.VOICE_ICON},on:{click:function(e){return e.stopPropagation(),t.fnPlayAudio(r.tone)}}}),t._v(" "),e("audio",{ref:r.tone,refInFor:!0},[e("source",{attrs:{src:r.url,type:"audio/mpeg"}})])])])})),1)],1),t._v(" "),e("div",{staticClass:"single-audio"},[e("img",{staticClass:"voice-icon",attrs:{src:t.VOICE_ICON},on:{click:function(e){return t.fnPlayAudio("singleAudioRef","single")}}}),t._v(" "),e("audio",{ref:"singleAudioRef"},[e("source",{attrs:{src:t.currentAudio.audioUrl,type:"audio/mpeg"}}
1)])])],1)}),[],!1,null,"298d7720",null).exports},94298:function(t,e,r){var n=r(46518),o=r(77240);n({target:"String",proto:!0,forced:r(23061)("fixed")},{fixed:function(){return o(this,"tt","","")}})}}]);
2//# sourceMappingURL=13450.773f41f3.js.map

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.