PageSourceSearch

https://ai.qhnu.edu.cn/static/js/7066.95a08ec9.js

js qhnu.edu.cn collected 2026-09-24 21:40:59 UTC 81,268 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]="b7199a92-6240-460e-94b3-3f0708b420ae",t._sentryDebugIdIdentifier="sentry-dbid-b7199a92-6240-460e-94b3-3f0708b420ae")}catch(t){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"6b6fddd13.26092223-production"};(self.webpackChunkmy_project=self.webpackChunkmy_project||[]).push([[7066],{9359:function(t,e,n){n.d(e,{Bs:function(){return a},EE:function(){return f},Ie:function(){return i},L0:function(){return c},Ml:function(){return s},cz:function(){return o},fd:function(){return l},kO:function(){return u}});var r=n(15156);function o(t){return r.k.post("/v1/manage/expert/save",t)}function i(t){return r.k.post("/v1/manage/expert/delete",t)}function a(t){return r.k.post("/v1/manage/expert/enabled/update",t)}function s(t){return r.k.post("/v1/manage/builtinExpert/enabled/update",t)}function c(t){return r.k.get("/v1/manage/expert/list",{params:t})}function u(t){return r.k.get("/v1/manage/expert/available",{params:t})}function l(){return r.k.get("/v1/manage/expert/classify/list")}function f(t){return r.k.get("/v1/front/expert/list",{params:t})}},10277:function(t,e,n){t.exports=n.p+"static/img/copy.1dd348eeca73ba8dad5b.svg"},13609:function(t,e,n){var r=n(46518),o=n(48981),i=n(26198),a=n(34527),s=n(84606),c=n(96837);r({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=o(this),n=i(e),r=arguments.length;if(r){c(n+r);for(var u=n;u--;){var l=u+r;u in e?e[l]=e[u]:s(e,l)}for(var f=0;f<r;f++)e[f]=arguments[f]}return a(e,n+r)}})},23549:function(t,e,n){var r=n(23149),o=n(81052),i=n(50751),a=Math.max,s=Math.min;e.A=function(t,e,n){var c,u,l,f,p,d,h=0,g=!1,m=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=c,r=u;return c=u=void 0,h=e,f=t.apply(r,n)}function b(t){var n=t-d;return void 0===d||n>=e||n<0||m&&t-h>=l}function w(){var t=(0,o.A)();if(b(t))return _(t);p=setTimeout(w,function(t){var n=e-(t-d);return m?s(n,l-(t-h)):n}(t))}function _(t){return p=void 0,v&&c?y(t):(c=u=void 0,f)}function k(){var t=(0,o.A)(),n=b(t);if(c=arguments,u=this,d=t,n){if(void 0===p)return function(t){return h=t,p=setTimeout(w,e),g?y(t):f}(d);if(m)return clearTimeout(p),p=setTimeout(w,e),y(d)}return void 0===p&&(p=setTimeout(w,e)),f}return e=(0,i.A)(e)||0,(0,r.A)(n)&&(g=!!n.leading,l=(m="maxWait"in n)?a((0,i.A)(n.maxWait)||0,e):l,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=d=u=p=void 0},k.flush=function(){return void 0===p?f:_((0,o.A)())},k}},30876:function(t,e,n){t.exports=n.p+"static/img/to_top.4fb95e526bd452d20f70.svg"},37408:function(t,e,n){n.d(e,{$v:function(){return i},Br:function(){return u},Bu:function(){return f},Dw:function(){return L},EB:function(){return z},EY:function(){return q},Fl:function(){return h},GP:function(){return d},IR:function(){return k},Ir:function(){return E},OH:function(){return P},OL:function(){return y},Oj:function(){return l},Ov:function(){return B},Pu:function(){return K},VU:function(){return s},Vt:function(){return O},Vw:function(){return p},Wt:function(){return w},XJ:function(){return v},Xg:function(){return I},YS:function(){return Y},Z3:function(){return F},ZN:function(){return D},ZW:function(){return j},cP:function(){return N},dX:function(){return b},e6:function(){return W},fw:function(){return T},gJ:function(){return M},iU:function(){return V},l9:function(){return x},lw:function(){return C},n$:function(){return R},o2:function(){return U},oj:function(){return m},oz:function(){return _},qu:function(){return g},sr:function(){return A},uZ:function(){return o},ui:function(){return G},vf:function(){return a},wx:function(){return S},y4:function(){return $},yK:function(){return c}});n(28706),n(33110);var r=n(15156),o=function(t){return r.k.get("/v1/manage/robot/iframe/info",{params:t})},i=function(t){return r.k.post("/v1/manage/robot/iframe/add",t)},a=function(t){return r.k.post("/v1/manage/robot/iframe/update",t)},s=function(t){return r.k.get("/v1/front/robot/iframe/info",{params:t})},c=function(t,e){var n=t.pageNum,o=t.pageSize;return r.k.get("/v1/manage/knowledge/repository/ai/list/".concat(n,"/").concat(o),{params:e})},u=function(t){return r.k.post("/v1/manage/knowledge/repository/save",t)},l=function(t){return r.k.post("/v1/manage/knowledge/repository/edit",t)},f=function(t){var e=t.baseId,n=t.baseName;return r.k.get("/v1/manage/build/ai-repo/management/url?baseId=".concat(e,"&baseName=").concat(n))},p=function(t){var e=t.baseId,n=t.mode;return r.k.post("/v1/manage/knowledge/repository/status?baseId=".concat(e,"&mode=").concat(n))}
1,d=function(t){var e=t.id;return r.k.get("/v1/manage/knowledge/repository/ai/classification/list?id=".concat(e))},h=function(t){var e=t.prevId,n=t.params;return r.k.post("/v1/manage/knowledge/repository/ai/classification/add/".concat(e),n)},g=function(t){return r.k.post("/v1/manage/knowledge/repository/ai/classification/edit",t)},m=function(t){return r.k.post("/v1/manage/knowledge/repository/ai/classification/batch/delete",t)},v=function(t){return r.k.post("/v1/manage/knowledge/repository/ai/classification/delete",t)},y=function(t){var e=t.current,n=t.target,o=t.kid,i=t.type;return r.k.post("/v1/manage/knowledge/repository/ai/classification/drag/".concat(e,"/").concat(n,"?kid=").concat(o,"&type=").concat(i))},b=function(t){var e=t.type,n=t.id,o=t.classifyId,i=t.file,a=t.rule;return r.k.postFile("/v1/manage/knowledge/repository/ai/file/upload?type=".concat(e,"&id=").concat(n,"&classifyId=").concat(o,"&rule=").concat(a||JSON.stringify({})),i)},w=function(){return r.k.get("/v1/manage/document/state-dict")},_=function(t){return r.k.get("/v1/manage/knowledge/base/detail",{params:t})},k=function(t,e){var n=t.pageNum,o=t.pageSize;return r.k.get("/v1/manage/knowledge/repository/ai/file/list/".concat(n,"/").concat(o),{params:e})},x=function(t,e){var n=e.baseId,o=e.ids,i=void 0===o?[]:o;return r.k.post("/v1/manage/switchPineCone/".concat(t,"?baseId=").concat(n),i)},S=function(t){return r.k.get("/v1/manage/build/ai-repo/management/url?".concat(t))},C=function(t){return r.k.post("/v1/manage/knowledge/repository/ai/file/delete?".concat(t))},I=function(t,e){return r.k.post("/v1/manage/knowledge/repository/ai/file/batch/delete?kid=".concat(t),e)},L=function(t){return r.k.get("/v1/manage/knowledge/userSelectList",t)},T=function(t){return r.k.get("/v1/manage/knowledge/ability/status/get",{params:t})},E=function(t){return r.k.post("/v1/manage/knowledge/ability/status/update",t)},O=function(t){return r.k.get("/v1/manage/crawl/task/list",{params:t})},A=function(t){return r.k.post("/v1/manage/crawl/task/add",t)},j=function(t){var e=t.taskId,n=t.knowledgeId,o=t.responseType;return r.k.get("/v1/manage/crawl/task/error?taskId=".concat(e,"&knowledgeId=").concat(n),{responseType:o})},P=function(t,e){return r.k.post("/v1/manage/crawl/task/delete?taskId=".concat(t,"&knowledgeId=").concat(e))},N=function(t){return r.k.post("/v1/manage/crawl/task/update",t)},$=function(t,e){return r.k.post("/v1/manage/crawl/task/runNow?taskId=".concat(t,"&knowledgeId=").concat(e))},R=function(t){var e=t.roleName,n=t.pageNo,o=t.pageSize;return r.k.get("/v1/manage/authDataRole/getUcAnsRoleList?roleName=".concat(e,"&pageNo=").concat(n,"&pageSize=").concat(o))},M=function(t){var e=t.scene,n=t.dataType,o=t.dataId;return r.k.get("/v1/manage/authDataRole/getAuthUcRoleInfo?scene=".concat(e,"&dataType=").concat(n,"&dataId=").concat(o))},G=function(t){return r.k.post("/v1/manage/authDataRole/setAuthUcRoleInfo",t)},D=function(t){var e=t.baseId,n=t.classId,o=t.ids,i=void 0===o?[]:o;return r.k.post("/v1/manage/knowledge/repository/ai/file/batch/switch/classify?target=".concat(n,"&baseId=").concat(e),i)},U=function(){return r.k.get("/v1/manage/build/ai-repo/management/url/status")},B=function(t){return r.k.get("/v1/manage/build/ai-repo/management/url/subscribe",{params:t})},F=function(){return r.k.get("/v1/manage/knowledge/repository/ai/validPublicAbilityApiUrl")},q=function(){return r.k.get("/v1/manage/robot/audit/isOpenAbilityCenter")},z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.k.post("/v1/manage/knowledgePackage/update/".concat(t.key),t)},V=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.k.post("/v1/manage/knowledgePackage/save",t)},Y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.k.post("/v1/manage/knowledgePackage/batchDelete",t)},K=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.k.get("/v1/manage/knowledgePackage/page",{params:t})},W=function(){return r.k.get("/v1/manage/doc/option/fileType")}},38157:function(t,e,n){t.exports=n.p+"static/img/add-icon.195d37b457d792dc476f.png"},40151:function(t,e,n){n.d(e,{B:function(){return r},J:function(){return o}});var r=0,o=-1},50751:function(t,e,n){n.d(e,{A:function(){return d}});var r=/\s/;var o=function(t){for(var e=t.length;e--&&r.test(t.charAt(e)););return e},i=/^\s+/;var a=function(t){return t?t.slice(0,o(t)+1).replace(i,""):t},s=n(23149),c=n(61882),u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;var d=function(t){if("number"==typeof t)return t;if((0,c.A)(t))return NaN;if((0,s.A)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,s.A)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=a(t);var n=l.test(t);return n||f.test(t)?p(t.slice(2),n?2:8):u.test(t)?NaN:+t}},61882:function(t,e,n){var r=n(2383),o=n(53098);e.A=function(t){return"symbol"==typeof t||(0,o.A)(t)&&"[object Symbol]"==(0,r.A)(t)}},65124:function(t,e,n){n.r(e),n.d(e,{default:function(){return gt}});n(52675),n(89463),n(2259),n(45700),n(16280),n(2008),n(74423),n(23792),n(44114),n(94490),n(34782),n(89572),n(62010),n(18111),n(22489),n(7588),n(2892),n(83851),n(81278),n(40875),n(79432),n(26099),n(3362),n(27495),n(90906),n(21699),n(47764),n(23500),n(62953);var r=n(37408),o=n(97124),i=n(48629),a=n(59335),s=n(80077),c=n(40151),u=(n(28706),n(50113),n(20116),n(9359)),l=n(32374),f=n(52591),p=n(94936),d=n(77070),h=n.p+"static/img/model.9220937380a259e7824c.svg",g=n.p+"static/img/multi_model.81b6cfa1582f882a5ffd.svg",m=n(30876),v=n(88215);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={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new j(r||[]);return o(a,"_invoke",{value:T(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",d="suspendedYield",h="executing",g="completed",m={};function v(){}function w(){}function _(){}var k={};u(k,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(P([])));S&&S!==n&&r.call(S,a)&&(k=S);
vendor: 6,202 bytes, line 1
1var C=_.prototype=v.prototype=Object.create(k);function I(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==y(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function T(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=E(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?g:d,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function E(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(y(e)+" is not iterable")}return w.prototype=_,o(C,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=u(_,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__=_,u(t,c,"GeneratorFunction")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},I(L.prototype),u(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new L(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},I(C),u(C,c,"Generator"),u(C,a,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,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(A),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){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(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function w(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function _(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){w(i,r,o,a,s,"next",t)}function s(t){w(i,r,o,a,s,"throw",t)}a(void 0)}))}}function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?k(Object(n),!0).forEach((function(e){S(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function S(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=y(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=y(r))return r;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:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var C={name:"RobotCard",props:{origin:{type:Object,default:function(){return{}}},isCopying:{type:Boolean,default:!1}},data:function(){return{actionsGroupDropdownIcon:"el-icon-arrow-down",auditStatusDictionary:{0:"未审核",1:"待审核",2:"审核通过",3:"审核未通过"},auditFailedStatus:3,builtinExpertEnabled:!1,builtinExpertUpdating:!1}},computed:x(x({isAICCRobot:function(){return"AICC"===(this.origin||{}).source},isAllShowUnits:function(){return 340321===this.origin.unitId},isLinked:function(){var t=this.origin.storeType||0;return 1===t||2===t},squareStatusOptions:function(){var t=this.isLinked?this.$t("m.square.unlinkAction"):this.$t("m.square.unlinked");return[{label:this.$t("m.square.newVersion"),value:1,triggerLabel:this.$t("m.square.linkedNewVersion"),active:!0},{label:this.$t("m.square.simpleVersion"),value:2,triggerLabel:this.$t("m.square.linkedSimpleVersion"),active:!0},{label:t,value:0,triggerLabel:this.$t("m.square.unlinked"),active:!1}]},currentSquareStatus:function(){var t=this.origin.storeType||0;return this.squareStatusOptions.find((function(e){return e.value===t}))||this.squareStatusOptions[0]}},(0,a.mapState)(["kefuRole","step","isOpenAbilityCenterUnit","unitId"])),{},{isCommonPermission:function(){return this.isCommonManager||this.isSuperManager},isNormalCustomer:function(){return"NORMAL"==this.kefuRole},isCommonManager:function(){return"COMMON"==this.kefuRole||!0},isSuperManager:function(){return"MANAGE"==this.kefuRole},isAllowDelete:function(){return!["d63b7762f88a4d09ade968dfbe0b92d8","1bbc27908f044a93b432ac7b7741a78d"].concat(["015ef46029df4d98b93d992194b8b7ab","8810de4128de471194af0cb6787ce87f"]).includes(this.origin.robotId)},cardNums:function(){var t=this.origin||{},e=t.visitorNum,n=t.cvsNum,r=t.cvsMsgNum;return[{name:this.$t("m.list.visitor"),value:e||0,tips:this.$t("m.list.visitorTips")},{name:this.$t("m.list.CVS"),value:n||0,tips:this.$t("m.list.CVSTips")},{name:this.$t("m.list.CVSMSG"),value:r||0,tips:this.$t("m.list.CVSMSGTips")}]},isSingalModule:function(){return!this.origin.module},agentInfo:function(){return this.isSingalModule?{icon:h,name:"单Agent模式"}:{icon:g,name:"多Agents模式"}},isTop:function(){var t=(this.origin||{}).pinned;return void 0===t?0:t},toTopIconUrl:function(){return this.isTop?v:m},isBuiltinExpertUnit:function(){return"353064"==this.unitId},isIframeSelf:function(){var t=(this.$route.meta||{}).isIframeSelf;return t},hasAduitPermission:function(){return this.$permission("robot:manage:submit_approve",this.origin._permissionList||[])},showBottomActions:function(){return this.actionsGroupList.length>0},copyUrl:function(){var t=this.origin||{},e=t.robotId,n=t.unitId,r="/coze?unitId=".concat(n,"&robotId=").concat(e);return"".concat(location.protocol,"//").concat(location.host).concat((0,d.hj)(r))},actionsGroupList:function(){var t,e=this,n=this.origin||{},r=n._permissionList,o=void 0===r?[]:r,i=n.ifCollaborator,a="TR"===n.source;return[{label:"设置",value:"setting",show:this.isCommonPermission,icon:"icon-shezhi"},{label:"复制链接",value:"copy",show:!0,icon:"icon-lianjie"},{label:"权限",value:"setPermission",show:(t=[e.$permission("robot:manage:authorize",o),e.$permission("robot:permission:operate")].every((function(t){return t})),e.isAICCRobot?t:t&&e.isSingalModule),icon:"icon-quanxian"},{label:"编辑",value:"edit",show:this.$permission("robot:update"),icon:"icon-bianji"},{label:"提交审核",value:"setApprove",show:this.hasAduitPermission&&this.isOpenAbilityCenterUnit,icon:"icon-shenhe"},{label:"置顶",value:"top",show:!this.isTop&&!this.isBuiltinExpertUnit,icon:"icon-zhiding",options:{divi
1ded:!0}},{label:"取消置顶",value:"cancelTop",show:this.isTop&&!this.isBuiltinExpertUnit,icon:"icon-zhiding",options:{divided:!0}},{label:"删除",value:"delete",show:i?this.$permission("robot:manage:delete",o):this.isSuperManager&&!a&&this.isAllowDelete,icon:"icon-shanchu"},{label:"退出协作",value:"exitCollaboration",show:this.$permission("robot:manage:collaborator:exit",o),icon:"icon-tuichu"}].filter((function(t){return t.show}))}}),watch:{"origin.enableBuiltinExpert":{immediate:!0,handler:function(t){this.builtinExpertEnabled=!!t}}},methods:{fnShowToSquare:function(t,e){var n=this;(0,l.pE)(e,t).then((function(t){0===t.statusCode?(n.$message.success(t.msg||"开启成功"),n.$emit("refreshRobotList")):n.$message.error(t.msg||"开启失败")}))},fnToTopList:function(){var t=this,e=this.origin||{},n=e.robotId,r=e.pinned,o=e.robotType,a=1==r?0:1;(0,i.Zc)(n,a,o).then((function(e){var n=e.statusCode,r=e.msg;0===n?(t.$message.success(r||"置顶成功"),t.$emit("refreshRobotList")):t.$message.error(r)}))},fnUpdateBuiltinExpert:function(t){var e=this;return _(b().mark((function n(){var r,o,i,a,s;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.origin||{},(o=r.robotId)&&!e.builtinExpertUpdating){n.next=3;break}return n.abrupt("return");case 3:return e.builtinExpertUpdating=!0,n.prev=4,n.next=7,(0,u.Ml)({expertId:o,enabled:t});case 7:if(i=n.sent,a=i.statusCode,s=i.msg,0===a){n.next=14;break}return e.$message.error(s||"操作失败"),e.builtinExpertEnabled=!!e.origin.enableBuiltinExpert,n.abrupt("return");case 14:e.$message.success(s||"操作成功"),e.$emit("refreshRobotList"),n.next=22;break;case 18:n.prev=18,n.t0=n.catch(4),e.builtinExpertEnabled=!!e.origin.enableBuiltinExpert,e.$message.error("操作失败");case 22:return n.prev=22,e.builtinExpertUpdating=!1,n.finish(22);case 25:case"end":return n.stop()}}),n,null,[[4,18,22,25]])})))()},fnToCopy:function(t){var e=this.origin||{},r=e.robotId,o=e.unitId,i=location.host,a="/coze?unitId=".concat(o,"&robotId=").concat(r),s="".concat(location.protocol,"//").concat(i).concat((0,d.hj)(a)),c="robotId"===t?"复制智能体ID":"复制访客端地址",u="robotId"===t?r:s;this.$openDialog({common:{showFooter:!1,width:"30%",title:c},content:{model:"component",vm:function(){return n.e(2534).then(n.bind(n,2534))},options:{copyText:u}}})},fnToConfirmExitCollaboration:function(){var t=this;this.$confirm("退出协作后,无法再对该智能体进行编辑,确认是否退出?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return t.fnToExitCollaboration()}))},fnToExitCollaboration:function(){var t=this;return _(b().mark((function e(){var n,r,o,i,a,c,u,l;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.origin||{},r=n.robotId,o=n.unitId,i=(0,p.Pk)({source:"robot",id:r})||{},e.next=4,(0,f.FC)(i);case 4:if(a=e.sent,c=a.statusCode,u=a.data,l=a.msg,0===c&&u){e.next=11;break}return t.$message.error(l),e.abrupt("return");case 11:return t.$message.success(l),e.next=14,(0,s.VE)(o);case 14:t.$emit("refreshRobotList");case 15:case"end":return e.stop()}}),e)})))()},fnActionChange:function(t){var e=this;switch(t){case"delete":this.fnToDelete();break;case"edit":this.fnToEdit();break;case"setting":this.fnToSetting();break;case"setPermission":this.fnToSetPermission();break;case"setApprove":this.fnToSetApprove();break;case"top":case"cancelTop":this.fnToTopList();break;case"copy":var n=document.createElement("button");n.setAttribute("data-clipboard-text",this.copyUrl),document.body.appendChild(n);var r=new this.$clipboard(n);r.on("success",(function(){e.$message.success("复制成功"),r.destroy(),document.body.removeChild(n)})),r.on("error",(function(){e.$message.error("当前环境不支持复制"),r.destroy(),document.body.removeChild(n)})),n.click();break;case"exitCollaboration":this.fnToConfirmExitCollaboration()}},fnToDelete:function(){var t=this;return _(b().mark((function e(){var n,r,o,i,a,s;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.origin||{},r=n.robotId,o=n.robotNickname,r){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,t.$confirm("确认删除智能体:".concat(o,"吗?"),"提示",{type:"warning"});case 6:return e.next=8,t.$httpService.post("/v1/manage/robot/deleteRobot",{robotId:r});case 8:if(i=e.sent,a=i.statusCode,s=i.msg,0===a){e.next=14;break}return s&&t.$message.error(s),e.abrupt("return");case 14:t.$message.success(s||"删除成功"),t.$emit("deleteSuccess"),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(3);case 21:case"end":return e.stop()}}),e,null,[[3,18]])})))()},fnToEdit:function(){this.$emit("openEdit")},fnToSetApprove:function(){var t=this;return _(b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$openDialog({common:{title:"审核",showFooter:!1,width:"500px",customClass:"audit-iframe-dialog padding-0"},content:{model:"component",vm:function(){return n.e(7471).then(n.bind(n,7471))},options:{robotId:t.origin.robotId,unitId:t.origin.unitId}}}).then((function(){setTimeout((function(){return t.$emit("refreshRobotList")}))}));case 1:case"end":return e.stop()}}),e)})))()},fnToSetPermission:function(){var t=this,e=[{show:!0,label:"后台管理角色",value:"manage"},{show:!this.isOpenAbilityCenterUnit,label:"前台使用角色",value:"front"},{show:!this.isAICCRobot,label:"协作者",value:"collaborators"}];this.$openDialog({common:{showFooter:!1,customClass:"knowsLib-authorize-dialog",width:"780px",title:this.isOpenAbilityCenterUnit?"智能体后台管理角色权限配置":"智能体权限配置",align:"center"},content:{model:"component",vm:function(){return n.e(83770).then(n.bind(n,61389))},options:{dataId:this.origin.robotId,source:"robot",tabList:e.filter((function(t){return t.show}))}}}).then((function(e){var n=e.contentVm;n&&((n||{}).reflash&&t.$emit("refreshRobotList"))}))},fnToSetting:function(){var t=this;return _(b().mark((function e(){var n,r,o,a,s,c,u,l,f,p,h,g,m,v,y;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isNormalCustomer){e.next=3;break}return t.$message({showClose:!0,message:"普通客服暂无修改智能体权限",type:"warning"}),e.abrupt("return");case 3:if(0==t.step&&t.clickKnow(),t.setRobotInfo(t.origin),!t.isIframeSelf){e.next=18;break}return n=t.origin||{},r=n.robotId,o=n.unitId,a={pageId:t.isSingalModule?"085380ce88ca16cfd978e2716b92d2da":"1b84990fe543ea8278ca9af7338d3c62",robotId:r,unitId:o,type:"AICC"},e.next=10,(0,i.rY)(a);case 10:if(s=e.sent,c=s.statusCode,u=s.data,l=(u||{}).url,0===c&&l){e.next=16;break}return e.abrupt("return");case 16:return window.open((0,d.hj)(l),"_blank"),e.abrupt("return");case 18:f=t.origin||{},p=f.robotId,h=f.unitId,g=null!=h&&p?{unitId:h,robotId:p}:{},m=-1!==location.pathname.indexOf("/scopeLink/"),v="/dashboard/baseSetting",y="",m?(y=t.$utils.paramsToString(g),window.open((0,d.hj)("".concat(v,"?").concat(y)),"_blank")):t.$router.push({path:v,query:g});case 24:case"end":return e.stop()}}),e)})))()},fnDropdownVisibleChange:function(t){this.actionsGroupDropdownIcon=t?"arrow-transform":""},setRobotInfo:function(t){var e,n;this.$store.commit("setRobotInfo",t),this.$store.commit("setIsSignalModule",t),this.$cookies.set("robotId",t.robotId,"0"),this.$cookies.set("robotModule",t.module,0),null===(e=(n=window).updateMockRobotContext)||void 0===e||e.call(n,t.unitId,t.robotId)},clickKnow:function(){var t=this;this.$httpService.putUser({step:1}).then((function(e){t.$emit("updateUser",e),t.$httpService.setCurrentUser(e),t.$store.commit("changeStep",e.step)}))}}},I=n(14486),L=(0,I.A)(C,(function(){var t=this,e=t._self._c;return e("div",{class:t.isTop?"robot-card is-top":"robot-card",on:{click:t.fnToSetting}},[e("div",{staticClass:"to-top"},[t.isBuiltinExpertUnit?e("el-switch",{attrs:{loading:t.builtinExpertUpdating},on:{change:t.fnUpdateBuiltinExpert},nativeOn:{click:function(t){t.stopPropagation()}},model:{value:t.builtinExpertEnabled,callback:function(e){t.builtinExpertEnabled=e},expression:"builtinExpertEnabled"}}):t._e(),t._v(" "),t.isAllShowUnits?e("el-dropdown",{staticClass:"square-status-dropdown",attrs:{trigger:"click"},on:{command:function(e){return t.fnShowToSquare(e,t.origin.robotId)}},nativeOn:{click:function(t){t.stopPropagation()}}},[e("span",{staticClass:"square-status-trigger"},[e("span",{staticClass:"status-dot",class:t.currentSquareStatus.active?"status-dot--active":"status-dot--inactive"}),t._v(" "),e("span",{staticClass:"square-status-trigger__text"},[t._v(t._s(t.currentSquareStatus.triggerLabel))])]),t._v(" "),e("el-dropdown-menu",{staticClass:"square-status-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[e("div",{staticClass:"square-status-menu__title"},[t._v(t._s(t.$t("m.square.selectPage")))]),t._v(" "),t._l(t.squareStatusOptions,(function(n){return e("el-dropdown-item",{key:n.value,class:{"
1is-active":t.currentSquareStatus.value===n.value},attrs:{command:n.value,divided:0===n.value}},[e("span",{staticClass:"square-status-menu__content"},[e("i",{staticClass:"el-icon-check square-status-menu__check",class:{"is-visible":t.currentSquareStatus.value===n.value}}),t._v(" "),e("span",{staticClass:"square-status-menu__label"},[t._v(t._s(n.label))])])])}))],2)],1):t._e()],1),t._v(" "),e("div",{staticClass:"robot-card__info"},[e("div",{staticClass:"robot-card__header"},[e("img",{staticClass:"avatar",attrs:{src:t.origin.avatar,alt:t.$t("m.robot")}}),t._v(" "),e("div",{staticClass:"name-id-group"},[e("div",{staticClass:"robot-card__name-row"},[e("span",{directives:[{name:"cx-tooltip",rawName:"v-cx-tooltip"}],staticClass:"robot-name",on:{click:function(e){return e.stopPropagation(),t.fnToSetting.apply(null,arguments)}}},[t._v("\n            "+t._s(t.origin.robotNickname)+"\n          ")]),t._v(" "),t.isCopying?e("div",{staticClass:"copy-status-text"},[e("span",[t._v(t._s(t.$t("m.list.copying")))])]):t._e(),t._v(" "),null!==t.origin.auditStatus&&t.isOpenAbilityCenterUnit?e("div",{staticClass:"approve-status-text",class:["audit-status-".concat(t.origin.auditStatus)]},[e("span",[t._v(t._s(t.auditStatusDictionary[t.origin.auditStatus]))])]):t._e()]),t._v(" "),e("div",{staticClass:"id-action-group"},[e("span",[t._v("ID:")]),t._v(" "),e("span",{directives:[{name:"cx-tooltip",rawName:"v-cx-tooltip"}]},[t._v("\n            "+t._s(t.origin.robotId)+"\n          ")]),t._v(" "),e("el-dropdown",{attrs:{placement:"bottom-start"},on:{command:t.fnToCopy}},[e("img",{staticClass:"copy-icon",attrs:{src:n(10277),alt:"复制"},on:{click:function(t){t.stopPropagation()}}}),t._v(" "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{attrs:{command:"robotId"}},[t._v(" 复制智能体ID ")]),t._v(" "),e("el-dropdown-item",{attrs:{command:"visiterUrl"}},[t._v(" 复制访客端地址 ")])],1)],1)],1)])]),t._v(" "),e("div",{staticClass:"robot-card__nums"},t._l(t.cardNums,(function(n){var r=n.name,o=n.value,i=n.tips,a=void 0===i?"":i;return e("div",{key:"".concat(r,"_").concat(o),staticClass:"robot-card__nums-item"},[a?e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:a,"open-delay":300,placement:"bottom-start"}},[e("span",[t._v(t._s(r)+" "+t._s(o))])]):[t._v(" "+t._s(r)+" "+t._s(o)+" ")]],2)})),0)]),t._v(" "),t.origin.description?e("div",{directives:[{name:"cx-tooltip",rawName:"v-cx-tooltip",value:{popperContentMaxWidth:470},expression:"{ popperContentMaxWidth: 470 }"}],staticClass:"robot-card__content"},[t._v("\n    "+t._s(t.origin.description)+"\n  ")]):t._e(),t._v(" "),e("div",{staticClass:"robot-card__action"},[e("div",{staticClass:"model-info"},[t.origin.creatorName?e("div",{staticClass:"create-user-item fl-rc"},[e("div",{staticClass:"create-user-icon mr-5"},[e("img",{attrs:{src:t.origin.creatorAvatar||"@/assets/images/create_user_avatar.png"}})]),t._v(" "),e("div",{directives:[{name:"cx-tooltip",rawName:"v-cx-tooltip"}],staticClass:"create-user-label"},[t._v(t._s(t.origin.creatorName))])]):t._e(),t._v(" "),e("div",{staticClass:"create-time-item",class:t.origin.creatorName?"":"hiddenCreateUser"},[t._v("\n        "+t._s(t.origin.modifiedTime)+"\n      ")]),t._v(" "),e("div",{staticClass:"fl-rc"},[e("img",{staticClass:"model-icon mr-5",attrs:{src:t.agentInfo.icon,alt:t.agentInfo.name}}),t._v(" "),e("div",[t._v(t._s(t.agentInfo.name))])])]),t._v(" "),t.showBottomActions?e("div",{staticClass:"action-group"},[e("el-dropdown",{attrs:{placement:"bottom"},on:{"visible-change":t.fnDropdownVisibleChange,command:t.fnActionChange}},[e("span",{staticClass:"action--trigger",on:{click:function(t){t.stopPropagation()}}},[t._v("操作"),e("i",{staticClass:"arrow-icon el-icon-arrow-down",class:t.actionsGroupDropdownIcon})]),t._v(" "),e("el-dropdown-menu",{staticClass:"card-dropdown-menu-robot",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.actionsGroupList,(function(n){return e("el-dropdown-item",t._b({key:n.value,attrs:{command:n.value}},"el-dropdown-item",n.options||{},!1),[e("div",{staticClass:"card-dropdown-menu-robot--row",attrs:{"data-action":n.value}},[e("i",{class:["iconfont",n.icon]}),t._v("\n              "+t._s(n.label)+"\n            ")])])})),1)],1)],1):t._e()])])}),[],!1,null,"3b2fedf5",null),T=L.exports,E=(n(23418),n(62062),n(13609),n(61701),n(38781),n(432)),O=n.n(E),A=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"classify-name-label"},[e("img",{attrs:{src:n(79916),alt:"#"}}),t._v(" "),e("span",[t._v("分类名称")])])}];function j(t){return j="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},j(t)}function P(){"use strict";P=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:I(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",d="suspendedYield",h="executing",g="completed",m={};function v(){}function y(){}function b(){}var w={};u(w,a,(function(){return this}));var _=Object.getPrototypeOf,k=_&&_(_(A([])));k&&k!==n&&r.call(k,a)&&(w=k);var x=b.prototype=v.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==j(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function I(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?g:d,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&
1(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(j(e)+" is not iterable")}return y.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(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,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,O.prototype={constructor:O,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(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){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(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function N(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}var $={name:"AddEditAgentTags",props:{isAdd:{type:Boolean,default:!0},editInfo:{type:Object,default:function(){}}},data:function(){return{classifyName:"",confirmLoading:!1}},watch:{editInfo:{handler:function(t){var e=(t||{}).classifyLabelName;this.classifyName=e||""},deep:!0,immediate:!0}},methods:{fnCancel:function(){this.$emit("cancel")},_constructConfirmParams:function(){var t={classifyLabelName:this.classifyName};if(this.isAdd)return t;var e=(this.editInfo||{}).id;return t.id=e,t},fnConfirm:function(){var t,e=this;return(t=P().mark((function t(){var n,r,o,a;return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.confirmLoading=!0,n=e._constructConfirmParams(),t.next=5,(0,i.Bv)(n);case 5:if(r=t.sent,o=r.statusCode,a=r.msg,0===o){t.next=12;break}return e.$message.error(a),e.confirmLoading=!1,t.abrupt("return");case 12:e.$emit("confirm",{refresh:!0}),e.confirmLoading=!1,t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0),e.confirmLoading=!1;case 19:case"end":return t.stop()}}),t,null,[[0,16]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){N(i,r,o,a,s,"next",t)}function s(t){N(i,r,o,a,s,"throw",t)}a(void 0)}))})()}}},R=$,M=(0,I.A)(R,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"add-edit-tags"},[e("div",{staticClass:"add-edit-tags__control"},[t._m(0),t._v(" "),e("el-input",{attrs:{type:"textarea",rows:4,placeholder:"",maxlength:"30","show-word-limit":""},model:{value:t.classifyName,callback:function(e){t.classifyName=e},expression:"classifyName"}})],1),t._v(" "),e("div",{staticClass:"add-edit-tags__footer"},[e("el-button",{attrs:{size:"medium"},on:{click:t.fnCancel}},[t._v("取消")]),t._v(" "),e("el-button",{attrs:{type:"primary",size:"medium",loading:t.confirmLoading},on:{click:t.fnConfirm}},[t._v("确定")])],1)])}),A,!1,null,"60fa330c",null).exports,G=n.p+"static/img/start-logo.ac865031ad7928e7ff1e.png",D={name:"CustomTabs",props:{list:{type:Array,required:!0},value:{type:[String,Number],required:!0},itemKey:{type:String,default:"key"},itemValue:{type:String,default:"value"}},data:function(){return{indicatorStyle:{width:"0px",transform:"translateX(0px)"}}},watch:{list:function(){var t=this;this.$nextTick((function(){t.updateIndicator()}
1))},value:{handler:function(){var t=this;this.$nextTick((function(){t.updateIndicator()}))}}},mounted:function(){var t=this;this.$nextTick((function(){t.updateIndicator()}))},methods:{handleTabClick:function(t,e){var n=t[this.itemKey];n!==this.value&&(this.$emit("change",t),this.$emit("update:value",n)),this.updateIndicatorByElement(e.currentTarget)},updateIndicator:function(){var t,e=this.value,n=null===(t=this.$refs.tabsContainer)||void 0===t?void 0:t.querySelector('[data-tab-key="'.concat(e,'"]'));n&&this.updateIndicatorByElement(n)},updateIndicatorByElement:function(t){if(t){var e=t.offsetWidth,n=t.offsetLeft;this.indicatorStyle.width="".concat(e,"px"),this.indicatorStyle.transform="translateX(".concat(n,"px)")}}}},U=(0,I.A)(D,(function(){var t=this,e=t._self._c;return t.list.length?e("el-scrollbar",[e("div",{ref:"tabsContainer",staticClass:"custom-tabs-container"},[e("div",{staticClass:"active-indicator",style:t.indicatorStyle}),t._v(" "),t._l(t.list,(function(n,r){return e("div",{key:void 0!==n[t.itemKey]?n[t.itemKey]:r,staticClass:"tab-item",class:{"is-active":n[t.itemKey]===t.value},attrs:{"data-tab-key":n[t.itemKey]},on:{click:function(e){return t.handleTabClick(n,e)}}},[t._v("\n      "+t._s(n[t.itemValue])+"\n    ")])}))],2)]):t._e()}),[],!1,null,"3979be74",null).exports;function B(t){return B="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},B(t)}function F(){"use strict";F=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:I(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",d="suspendedYield",h="executing",g="completed",m={};function v(){}function y(){}function b(){}var w={};u(w,a,(function(){return this}));var _=Object.getPrototypeOf,k=_&&_(_(A([])));k&&k!==n&&r.call(k,a)&&(w=k);var x=b.prototype=v.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==B(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function I(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?g:d,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[a];if(n)return n.call(e);
vendor: 4,776 bytes, line 1
1if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(B(e)+" is not iterable")}return y.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(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,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,O.prototype={constructor:O,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(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){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(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function q(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function z(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){q(i,r,o,a,s,"next",t)}function s(t){q(i,r,o,a,s,"throw",t)}a(void 0)}))}}function V(t){return function(t){if(Array.isArray(t))return Y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Y(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function K(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?K(Object(n),!0).forEach((function(e){X(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function X(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=B(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==B(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var J={name:"AgentTags",components:{draggable:O(),TabSwitcher:U},props:{isIframeSelf:{type:Boolean,default:!1},defaultActiveId:{type:[Number,String],default:c.B}},data:function(){return{drag:!1,activeClassifyId:c.B,allAgentClassifyItem:{id:c.B,classifyLabelName:"全部"},unClassifyItem:{id:c.J,classifyLabelName:"未分类"},manageTagSwitch:!1,componentData:{props:{type:"transition",name:"flip-list"}}}},computed:W(W({},(0,a.mapState)("robot",["robotTagClassifyList"])),{},{showAllClassify:function(){return this.robotTagClassifyList.length>0&&!this.manageTagSwitch},showUnClassify:function(){return this.robotTagClassifyList.length>0&&!this.manageTagSwitch},manageBtnTitle:function(){return this.manageTagSwitch?"确认":"分类管理"},ALL_CLASSIFY:function(){var t=V(this.robotTagClassifyList);return this.showUnClassify&&t.unshift(this.unClassifyItem),this.showAllClassify&&t.unshift(this.allAgentClassifyItem),t}}),watch:{defaultActiveId:function(t){this.activeClassifyId=t}},created:function(){this.getRobotTagClassifyList()},methods:W(W({},(0,a.mapActions)("robot",["getRobotTagClassifyList"])),{},{fnClassifyClick:function(t){var e=t.id;this.manageTagSwitch?this.fnAddEditClassify(t):e!==this.activeClassifyId&&(this.activeClassifyId=e,this.$emit("change",e))},fnRemoveClassify:function(t){var e=this;this.$confirm("删除分类后,该分类下的智能体将移至“全部”下展示,确认删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(z(F().mark((function n(){var r,o,a,s,u,l;return F().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=(r=t||{}).id,a=r.nodeOrder,n.next=3,(0,i.l6)({id:o,nodeOrder:a});case 3:if(s=n.sent,u=s.statusCode,l=s.msg,0===u){n.next=9;break}return e.$message({type:"error",message:l}),n.abrupt("return");case 9:e.$message({type:"success",message:"删除成功!"}),e.getRobotTagClassifyList(),e.activeClassifyId===o&&(e.activeClassifyId=c.B),e.$emit("remove");case 13:case"end":return n.stop()}}),n)}))))},fnAddEditClassify:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.$createElement,r=void 0===(e||{}).id,o="".concat(r?"新增":"编辑","智能体分类");this.$openDialog({common:{customClass:"add-edit-agentTag-dialog",showFooter:!1,width:"500px"},header:{vm:n("span",[n("img",{class:"start-logo",attrs:{src:G,alt:"#"}}),n("span",[o])])},content:{model:"component",vm:M,options:{isAdd:r,editInfo:e}}}).then((function(e){var n=e.contentVm;n&&((n||{}).refresh&&t.getRobotTagClassifyList())}))},fnToggleManageTagSwitch:function(){var t=this;return z(F().mark((function e(){var n,r,o,a;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.manageTagSwitch){e.next=18;break}if((n=t.robotTagClassifyList.map((function(t){return t.id}))).length){e.next=5;break}return t.manageTagSwitch=!1,e.abrupt("return");case 5:return e.next=7,(0,i.Xg)({classifyIdList:n});case 7:if(r=e.sent,o=r.statusCode,a=r.msg,0===o){e.next=14;break}return t.$message({type:"error",message:a}),t.manageTagSwitch=!1,e.abrupt("return");case 14:return t.getRobotTagClassifyList(),t.$emit("confirm"),t.manageTagSwitch=!1,e.abrupt("return");case 18:t.manageTagSwitch=!0;case 19:case"end":return e.stop()}}),e)})))()}})},Q=J,Z=(0,I.A)(Q,(function(){var t=this,e=t._self._c;return e("div",{class:["agent-tags",{"agent-tags--edit":t.manageTagSwitch}]},[e("TabSwitcher",{directives:[{name:"show",rawName:"v-show",value:!t.manageTagSwitch,expression:"!manageTagSwitch"}],attrs:{value:t.activeClassifyId,list:t.ALL_CLASSIFY,"item-key":"id","item-value":"classifyLabelName"},on:{change:t.fnClassifyClick}}),t._v(" "),e("draggable",{directives:[{name:"show",rawName:"v-show",value:t.manageTagSwitch,expression:"manageTagSwitch"}],class:["agent-tags-left",{"agent-tags-left--edit":t.manageTagSwitch}],attrs:{list:t.robotTagClassifyList,group:"classify",draggable:t.manageTagSwitch?".draggable":"",tag:"transition-group",animation:200},on:{start:function(e){t.drag=!0},end:function(e){t.drag=!1}}},[t._l(t.robotTagClassifyList,(function(n){return e("div",{key:n.id,staticClass:"agent-tags-classify draggable",class:{active:n.id===t.activeClassifyId,managing:!0},on:{click:function(e){return t.fnClassifyClick(n)}}},[e("span",{staticClass:"title"},[t._v(t._s(n.classifyLabelName))]),t._v(" "),e("i",{directives:[{name:"show",rawName:"v-show",value:t.manageTagSwitch,expression:"manageTagSwitch"}],staticClass:"el-icon-edit"}),t._v(" "),e("i",{directives:[{name:"show",rawName:"v-show",value:t.manageTagSwitch,expression:"manageTagSwitch"}],staticClass:"el-icon-error",on:{click:function(e){return e.stopPropagation(),t.fnRemoveClassify(n)}}})])})),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.manageTagSwitch,expression:"manageTagSwitch"}],key:"footer",staticClass:"agent-tags-addClassify",attrs:{slot:"footer",role:"group"},on:{click:function(){return t.fnAddEditClassify()}},slot:"footer"},[e("i",{staticClass:"el-icon-circle-plus-outline"}),t._v("\n      新增分类\n    ")])],2),t._v(" "),t.$permission("robot:classify:manage")?e("div",{staticClass:"agent-tags-right"},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.manageTagSwitch,expression:"manageTagSwitch"}],staticClass:"manage-tips"},[t._v("拖动分类可调整排序")]),t._v(" "),e("div",{staticClass:"manage-btn",class:{managing:t.manageTagSwitch,"ai-center-btn":t.isIframeSelf},on:{click:t.fnToggleManageTagSwitch}},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.manageTagSwitch,expression:"!manageTagSwitch"}
1],staticClass:"manage-bg-icon"}),t._v("\n      "+t._s(t.manageBtnTitle)+"\n    ")])]):t._e()],1)}),[],!1,null,"75604016",null).exports,H=n.p+"static/img/temp.7966814a04c3713fe7c8.svg",tt=n(23549);function et(t){return et="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},et(t)}function nt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function rt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nt(Object(n),!0).forEach((function(e){ot(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ot(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=et(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==et(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var it={name:"RobotSearch",props:{isSuperManager:{type:Boolean,default:!1},isIframeSelf:{type:Boolean,default:!1},modelList:{type:Array,default:function(){return[]}}},data:function(){return{ROBOT_TYPE_LIST:o.Fo,MODEL_AGENT_IMG:H,form:rt({},o.GT),openModelAgent:!1}},computed:{showAgentType:function(){return!((0,d.SE)()||this.isIframeSelf||this.openModelAgent)},hideMyCollaboration:function(){return this.isIframeSelf},AUTH_LIST:function(){return(0,o.kB)(this)},showAuthSelect:function(){return!1}},watch:{defaultSearchInfo:{handler:function(t){this.form=rt({},t)},deep:!0}},methods:{resetForm:function(){this.form=rt(rt({},o.GT),{},{type:this.openModelAgent?o.s0:o.w})},fnKeyWordChange:(0,tt.A)((function(){this.fnSearch()}),500),fnSearch:function(){this.$emit("search",this.form)},fnToggleModalAgentStatus:function(){this.openModelAgent=!this.openModelAgent,this.resetForm(),this.$emit("modalAgentStatusChange",this.openModelAgent)},fnOpenRobotRecycle:function(){this.$openDialog({common:{showFooter:!1,top:"6vh",width:"61%",title:"智能体回收站"},content:{model:"component",vm:function(){return n.e(52516).then(n.bind(n,52516))},options:{refreshRobotList:this.fnSearch}}})}}};function at(t){return at="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},at(t)}function st(){"use strict";st=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:I(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",d="suspendedYield",h="executing",g="completed",m={};function v(){}function y(){}function b(){}var w={};u(w,a,(function(){return this}));var _=Object.getPrototypeOf,k=_&&_(_(A([])));k&&k!==n&&r.call(k,a)&&(w=k);var x=b.prototype=v.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==at(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function I(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=L(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?g:d,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&
vendor: 4,893 bytes, line 1
1(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(at(e)+" is not iterable")}return y.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(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,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(C.prototype),u(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,O.prototype={constructor:O,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(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){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(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function ct(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function ut(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){ct(i,r,o,a,s,"next",t)}function s(t){ct(i,r,o,a,s,"throw",t)}a(void 0)}))}}function lt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ft(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?lt(Object(n),!0).forEach((function(e){pt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=at(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=at(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==at(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dt={name:"RobotList",components:{RobotCard:T,AgentTags:Z,RobotSearch:(0,I.A)(it,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"header-action"},[e("div",{staticClass:"search-bar"},[e("el-form",{ref:"form",attrs:{size:"mini",inline:"",model:t.form}},[e("el-form-item",{attrs:{label:" "}},[e("el-input",{attrs:{placeholder:"智能体ID/智能体名称"},on:{input:t.fnKeyWordChange},model:{value:t.form.sw,callback:function(e){t.$set(t.form,"sw",e)},expression:"form.sw"}})],1),t._v(" "),t.showAgentType?e("el-form-item",{attrs:{label:"智能体类型:"}},[e("el-select",{attrs:{placeholder:"选择智能体类型"},on:{change:t.fnSearch},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},t._l(t.ROBOT_TYPE_LIST,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1):t._e(),t._v(" "),e("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!t.openModelAgent,expression:"!openModelAgent"}],attrs:{label:"模式:"}},[e("el-select",{attrs:{placeholder:"选择智能体模式"},on:{change:t.fnSearch},model:{value:t.form.module,callback:function(e){t.$set(t.form,"module",e)},expression:"form.module"}},t._l(t.modelList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.moduleName,value:t.id}})})),1)],1),t._v(" "),t.showAuthSelect?e("el-form-item",{attrs:{label:"权限:"}},[e("el-select",{attrs:{placeholder:"请选择权限"},on:{change:t.fnSearch},model:{value:t.form.permission,callback:function(e){t.$set(t.form,"permission",e)},expression:"form.permission"}},t._l(t.AUTH_LIST,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1):t._e()],1)],1),t._v(" "),e("div",{staticClass:"right-action"},[t.isIframeSelf?e("div",{staticClass:"recycle-robot-tips"},[t._v("提示:未通过审核的智能体只有智能体管理团队能使用。")]):t._e(),t._v(" "),t.$permission("robot:list:template")?e("div",{staticClass:"plain-button template-center",on:{click:t.fnToggleModalAgentStatus}},[e("img",{directives:[{name:"show",rawName:"v-show",value:!t.openModelAgent,expression:"!openModelAgent"}],attrs:{src:t.MODEL_AGENT_IMG}}),t._v(" "),e("i",{directives:[{name:"show",rawName:"v-show",value:t.openModelAgent,expression:"openModelAgent"}],staticClass:"iconfont",class:"icon-fanhui"}),t._v(" "),e("span",[t._v("模板中心")])]):t._e(),t._v(" "),t.isSuperManager&&t.$permission("robot:list:recycle")?e("div",{staticClass:"plain-button",on:{click:t.fnOpenRobotRecycle}},[e("i",{staticClass:"el-icon-delete"}),t._v("\n      回收站\n    ")]):t._e()])])}),[],!1,null,"26351a97",null).exports},data:function(){return{user:null,modelList:[],currentRobotTagClassifyId:c.B,openModelAgent:!1,listLoading:!1,copyingRobotIds:[],robotList:[],pageInfo:{pageNo:1,pageSize:30},isTemplateUnit:!1}},computed:ft(ft({},(0,a.mapState)(["kefuRole","unitId","userId"])),{},{isSuperManager:function(){return"MANAGE"==this.kefuRole},isIframeSelf:function(){var t=((this.$route||{}).meta||{}).isIframeSelf;return t},isFromAICC:function(){return"AICC"===((this.$route||{}).query||{}).source},wrapperBackground:function(){var t=((this.$route||{}).query||{}).forceBackground;return t?/^https?/.test(t)?"url(".concat(t,")"):t:"transparent"},tableLoadingBackground:function(){return this.isIframeSelf?"transparent":"rgba(246,246,249,0.8)"}}),created:function(){var t=this;return ut(st().mark((function e(){var n,i,a;return st().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,r.EY)();case 2:if(0===(n=e.sent).statusCode&&t.$store.commit("setOpenAbilityCenterUnit",n.data.isOpen),e.prev=4,t.listLoading=!0,t.fnIsTemplateUnit(),!t.isIframeSelf){e.next=11;break}return i=t.$route.query||{},a=i.unitId,e.next=11,(0,s.VE)(a);case 11:return t.user=t.$httpService.getCurrentUser(),e.next=14,(0,o.O6)();case 14:t.modelList=e.sent,t.fnGetRobot(),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(4),t.listLoading=!1;case 21:case"end":return e.stop()}}),e,null,[[4,18]])})))()},methods:{fnIsTemplateUnit:function(){var t=this;this.$httpService.get("/v1/manage/robot/checkIfTemplateUnit").then((function(e){0===e.statusCode&&(t.isTemplateUnit=e.data)}))},fnToAddEditRobot:function(t,e){var r=this,o="add"===t?{robotClassifyLabelId:this.currentRobotTagClassifyId===c.B?null:this.currentRobotTagClassifyId}:ft({},e),i="add"===t?this.openModelAgent?"创建模板智能体":"创建智能体":this.openModelAgent?"编辑模板智能体":"编辑智能体";this.$openDialog({common:{customClass:"add-edit-robot-dialog",showFooter:!1,top:"3.2vh",width:"830px",title:i},content:{model:"component",vm:function(){return Promise.all([n.e(51803),n.e(77541),n.e(18765)]).then(n.bind(n,17433))},options:{type:t,modelAgentCenter:this.openModelAgent,formInfo:o}}}).then((function(e){var n=e.contentVm;n&&("add"===t&&(r.pageInfo.pageNo=1),n.refresh&&(r.fnResetQueryParams(),r.fnGetRobot()))}
1))},fnUpdateUser:function(t){this.user=t},fnDeleteSuccess:function(){1===this.robotList.length&&this.pageInfo.pageNo>1&&this.pageInfo.pageNo--,this.fnGetRobot()},fnToggleModalAgentStatus:function(){this.openModelAgent=!this.openModelAgent,this.fnResetQueryParams(),this.fnGetRobot()},fnAgentTagsChange:function(t){this.currentRobotTagClassifyId=t,this.fnGetRobot()},fnResetQueryParams:function(){this.pageInfo.pageNo=1,this.pageInfo.pageSize=30,this.currentRobotTagClassifyId=c.B},fnGenerateQueryParams:function(){var t,e=(null==this||null===(t=this.$refs)||void 0===t||null===(t=t.robotSearchRef)||void 0===t?void 0:t.form)||{},n=e.sw,r=e.type,o=e.module,i=e.permission,a=this.pageInfo||{},s={sw:n,type:r,page:a.pageNo,pageSize:a.pageSize};return this.openModelAgent?s:(s.module=o,s.permission=i,s.robotClassifyLabelId=this.currentRobotTagClassifyId,this.isIframeSelf||this.isFromAICC?(s.channel=1,s):s)},isRobotCopying:function(t){return!!t&&this.copyingRobotIds.includes(t)},fnGetRobot:function(){var t=this;return ut(st().mark((function e(){var n,r,a,s,c,u,l;return st().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,i.ou)().then((function(e){0===e.statusCode&&(t.copyingRobotIds=e.data||[])})),e.prev=1,t.listLoading=!0,n=t.fnGenerateQueryParams(),e.next=6,(0,i.$H)(n);case 6:if(e.t0=e.sent,e.t0){e.next=9;break}e.t0={};case 9:return r=e.t0,a=r.data,s=a.records,c=void 0===s?[]:s,u=a.total,l=void 0===u?0:u,e.next=17,(0,o.uY)(c);case 17:if(e.t1=e.sent,e.t1){e.next=20;break}e.t1=c;case 20:t.robotList=e.t1,t.pageInfo.total=l,t.listLoading=!1,e.next=28;break;case 25:e.prev=25,e.t2=e.catch(1),t.listLoading=!1;case 28:case"end":return e.stop()}}),e,null,[[1,25]])})))()},fnPageNoChange:function(t){this.pageInfo.pageNo=t,this.fnGetRobot()},fnPageSizeChange:function(t){this.pageInfo.pageNo=1,this.pageInfo.pageSize=t,this.fnGetRobot()}}},ht=dt,gt=(0,I.A)(ht,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"list",style:{background:t.wrapperBackground}},[t.openModelAgent?t._e():e("AgentTags",{attrs:{"is-super-manager":t.isSuperManager,"is-iframe-self":t.isIframeSelf,"default-active-id":t.currentRobotTagClassifyId},on:{change:t.fnAgentTagsChange}}),t._v(" "),e("RobotSearch",{ref:"robotSearchRef",attrs:{"is-super-manager":t.isSuperManager,"is-iframe-self":t.isIframeSelf,"model-list":t.modelList},on:{modalAgentStatusChange:t.fnToggleModalAgentStatus,search:function(e){return t.fnPageNoChange(1)}}}),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"robotRef",staticClass:"list-wrap",attrs:{"element-loading-background":t.tableLoadingBackground}},[e("div",{staticClass:"scroll-container"},[t.isSuperManager&&!t.isTemplateUnit?e("div",{directives:[{name:"permission",rawName:"v-permission",value:"robot:create",expression:"'robot:create'"}],staticClass:"list-add list-robot",on:{click:function(e){return t.fnToAddEditRobot("add")}}},[e("div",{staticClass:"big-deep-color-bg"}),t._v(" "),e("div",{staticClass:"small-deep-color-bg"}),t._v(" "),e("div",{staticClass:"light-color-bg"}),t._v(" "),e("div",{staticClass:"list-add-info"},[e("img",{staticClass:"avatar",attrs:{src:n(38157),alt:"#"}}),t._v(" "),e("p",{staticStyle:{"text-align":"center",color:"#8a8b99"}},[t._v("\n            "+t._s(t.openModelAgent?t.$t("m.robot_info.create_template_agent"):t.$t("m.robot_info.create_agent"))+"\n          ")])])]):t._e(),t._v(" "),t._l(t.robotList,(function(n,r){return e("RobotCard",{key:n.robotId,staticClass:"robot-card",attrs:{origin:n,"is-copying":t.isRobotCopying(n.robotId)},on:{updateUser:t.fnUpdateUser,deleteSuccess:t.fnDeleteSuccess,openEdit:function(e){return t.fnToAddEditRobot("edit",n,r)},refreshRobotList:t.fnGetRobot}})}))],2)]),t._v(" "),e("div",{staticClass:"footer-action"},[e("el-pagination",{attrs:{"current-page":t.pageInfo.pageNo,"page-sizes":[30,60,90],layout:"prev, pager, next, jumper, total, sizes",total:t.pageInfo.total,background:""},on:{"current-change":t.fnPageNoChange,"size-change":t.fnPageSizeChange}})],1)],1)}),[],!1,null,"3386e202",null).exports},79916:function(t,e,n){t.exports=n.p+"static/img/type-name.da4984c31de03197d1d3.png"},81052:function(t,e,n){var r=n(41917);e.A=function(){return r.A.Date.now()}},88215:function(t,e,n){t.exports=n.p+"static/img/cancel_to_top.c4ed8328e143fe3cf203.svg"},94936:function(t,e,n){n.d(e,{Pk:function(){return i},c0:function(){return o},zV:function(){return r}});n(23792),n(36033),n(26099),n(3362),n(47764),n(62953);var r=new Map([["manage",{label:"后台管理角色",component:function(){return n.e(69718).then(n.bind(n,69718))}}],["front",{label:"前台使用角色",component:function(){return n.e(69718).then(n.bind(n,69718))}}],["collaborators",{label:"协作者",component:function(){return n.e(85605).then(n.bind(n,85605))}}]]),o=function(t){var e=(t||{}).id;return new Map([["robot",{label:"robotId",id:e,typeNumber:1}],["knowledge",{label:"knowledgeBaseId",id:e,typeNumber:2}]])},i=function(t){var e=(t||{}).source,n=o(t),r={};if(!n.has(e))return r;var i=n.get(e)||{},a=i.label,s=i.id,c=i.typeNumber;return r.type=c,r[a]=s,r}}}]);
2//# sourceMappingURL=7066.95a08ec9.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.