1(self.webpackChunkrainweb=self.webpackChunkrainweb||[]).push([["19639"],{759:function(e){"use strict";var t={single_source_shortest_paths:function(e,n,a){var r,o,i,l,s,u,c,d={},f={};f[n]=0;var p=t.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(i in o=(r=p.pop()).value,l=r.cost,s=e[o]||{})s.hasOwnProperty(i)&&(u=l+s[i],c=f[i],(void 0===f[i]||c>u)&&(f[i]=u,p.push(i,u),d[i]=o));if(void 0!==a&&void 0===f[a])throw Error("Could not find a path from "+n+" to "+a+".");return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],a=t;a;)n.push(a),e[a],a=e[a];return n.reverse(),n},find_path:function(e,n,a){var r=t.single_source_shortest_paths(e,n,a);return t.extract_shortest_path_from_predecessor_list(r,a)},PriorityQueue:{make:function(e){var n,a=t.PriorityQueue,r={};for(n in e=e||{},a)a.hasOwnProperty(n)&&(r[n]=a[n]);return r.queue=[],r.sorter=e.sorter||a.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},47658:function(e,t,n){let a=n(47739),r=n(4130),o=n(6650),i=n(4436);function l(e,t,n,o,i){let l=[].slice.call(arguments,1),s=l.length,u="function"==typeof l[s-1];if(!u&&!a())throw Error("Callback required as last argument");if(u){if(s<2)throw Error("Too few arguments provided");2===s?(i=n,n=t,t=o=void 0):3===s&&(t.getContext&&void 0===i?(i=o,o=void 0):(i=o,o=n,n=t,t=void 0))}else{if(s<1)throw Error("Too few arguments provided");return 1===s?(n=t,t=o=void 0):2!==s||t.getContext||(o=n,n=t,t=void 0),new Promise(function(a,i){try{let i=r.create(n,o);a(e(i,t,o))}catch(e){i(e)}})}try{let a=r.create(n,o);i(null,e(a,t,o))}catch(e){i(e)}}t.create=r.create,t.toCanvas=l.bind(null,o.render),t.toDataURL=l.bind(null,o.renderToDataURL),t.toString=l.bind(null,function(e,t,n){return i.render(e,n)})},47739:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},95150:function(e,t,n){let a=n(10044).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,n=a(e),r=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7];for(let e=1;e<t-1;e++)o[e]=o[e-1]-r;return o.push(6),o.reverse()},t.getPositions=function(e){let n=[],a=t.getRowColCoords(e),r=a.length;for(let e=0;e<r;e++)for(let t=0;t<r;t++)(0!==e||0!==t)&&(0!==e||t!==r-1)&&(e!==r-1||0!==t)&&n.push([a[e],a[t]]);return n}},2276:function(e,t,n){let a=n(25064),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=a.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*r.indexOf(this.data[t]);n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},e.exports=o},75511:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},82800:function(e){function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,a){let r=e*this.size+t;this.data[r]=n,a&&(this.reservedBit[r]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},23922:function(e,t,n){let a=n(25064);function r(e){this.mode=a.BYTE,"string"==typeof e?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}r.getBitsLength=function(e){return 8*e},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=r},34937:function(e,t,n){let a=n(25350),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,
vendor: 19,258 bytes, line 1
1192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case a.L:return r[(e-1)*4+0];case a.M:return r[(e-1)*4+1];case a.Q:return r[(e-1)*4+2];case a.H:return r[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case a.L:return o[(e-1)*4+0];case a.M:return o[(e-1)*4+1];case a.Q:return o[(e-1)*4+2];case a.H:return o[(e-1)*4+3];default:return}}},25350:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}catch(e){return n}}},89886:function(e,t,n){let a=n(10044).getSymbolSize;t.getPositions=function(e){let t=a(e);return[[0,0],[t-7,0],[0,t-7]]}},47381:function(e,t,n){let a=n(10044),r=a.getBCHDigit(1335);t.getEncodedBits=function(e,t){let n=e.bit<<3|t,o=n<<10;for(;a.getBCHDigit(o)-r>=0;)o^=1335<<a.getBCHDigit(o)-r;return(n<<10|o)^21522}},63643:function(e,t){let n=new Uint8Array(512),a=new Uint8Array(256),r=1;for(let e=0;e<255;e++)n[e]=r,a[r]=e,256&(r<<=1)&&(r^=285);for(let e=255;e<512;e++)n[e]=n[e-255];t.log=function(e){if(e<1)throw Error("log("+e+")");return a[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[a[e]+a[t]]}},3880:function(e,t,n){let a=n(25064),r=n(10044);function o(e){this.mode=a.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n=(n>>>8&255)*192+(255&n),e.put(n,13)}},e.exports=o},69670:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,n=0,a=0,r=0,o=null,i=null;for(let l=0;l<t;l++){a=r=0,o=i=null;for(let s=0;s<t;s++){let t=e.get(l,s);t===o?a++:(a>=5&&(n+=3+(a-5)),o=t,a=1),(t=e.get(s,l))===i?r++:(r>=5&&(n+=3+(r-5)),i=t,r=1)}a>=5&&(n+=3+(a-5)),r>=5&&(n+=3+(r-5))}return n},t.getPenaltyN2=function(e){let t=e.size,n=0;for(let a=0;a<t-1;a++)for(let r=0;r<t-1;r++){let t=e.get(a,r)+e.get(a,r+1)+e.get(a+1,r)+e.get(a+1,r+1);(4===t||0===t)&&n++}return 3*n},t.getPenaltyN3=function(e){let t=e.size,n=0,a=0,r=0;for(let o=0;o<t;o++){a=r=0;for(let i=0;i<t;i++)a=a<<1&2047|e.get(o,i),i>=10&&(1488===a||93===a)&&n++,r=r<<1&2047|e.get(i,o),i>=10&&(1488===r||93===r)&&n++}return 40*n},t.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let a=0;a<n;a++)t+=e.data[a];return 10*Math.abs(Math.ceil(100*t/n/5)-10)},t.applyMask=function(e,n){let a=n.size;for(let r=0;r<a;r++)for(let o=0;o<a;o++)n.isReserved(o,r)||n.xor(o,r,function(e,n,a){switch(e){case t.Patterns.PATTERN000:return(n+a)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return a%3==0;case t.Patterns.PATTERN011:return(n+a)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(a/3))%2==0;case t.Patterns.PATTERN101:return n*a%2+n*a%3==0;case t.Patterns.PATTERN110:return(n*a%2+n*a%3)%2==0;case t.Patterns.PATTERN111:return(n*a%3+(n+a)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,o,r))},t.getBestMask=function(e,n){let a=Object.keys(t.Patterns).length,r=0,o=1/0;for(let i=0;i<a;i++){n(i),t.applyMask(i,e);let a=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(i,e),a<o&&(o=a,r=i)}return r}},25064:function(e,t,n){let a=n(28645),r=n(72642);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!a.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return r.testNumeric(e)?t.NUMERIC:r.testAlphanumeric(e)?t.ALPHANUMERIC:r.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}catch(e){return n}}},34678:function(e,t,n){let a=n(25064);function r(e){this.mode=a.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n;for(t=0;t+3<=this.data.length;t+=3)n=parseInt(this.data.substr(t,3),10),e.put(n,10);let a=this.data.length-t;a>0&&(n=parseInt(this.data.substr(t),10),e.put(n,3*a+1))},e.exports=r},57065:function(e,t,n){let a=n(63643);t.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let r=0;r<e.length;r++)for(let o=0;o<t.length;o++)n[r+o]^=a.mul(e[r],t[o]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){let e=n[0];for(let r=0;r<t.length;r++)n[r]^=a.mul(t[r],e);let r=0;for(;r<n.length&&0===n[r];)r++;n=n.slice(r)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let r=0;r<e;r++)n=t.mul(n,new Uint8Array([1,a.exp(r)]));return n}},4130:function(e,t,n){let a=n(10044),r=n(25350),o=n(75511),i=n(82800),l=n(95150),s=n(89886),u=n(69670),c=n(34937),d=n(27654),f=n(56323),p=n(47381),v=n(25064),h=n(96174);function m(e,t,n){let a,r,o=e.size,i=p.getEncodedBits(t,n);for(a=0;a<15;a++)r=(i>>a&1)==1,a<6?e.set(a,8,r,!0):a<8?e.set(a+1,8,r,!0):e.set(o-15+a,8,r,!0),a<8?e.set(8,o-a-1,r,!0):a<9?e.set(8,15-a-1+1,r,!0):e.set(8,15-a-1,r,!0);e.set(o-8,8,1,!0)}t.create=function(e,t){let n,p;if(void 0===e||""===e)throw Error("No input text");let g=r.M;return void 0!==t&&(g=r.from(t.errorCorrectionLevel,r.M),n=f.from(t.version),p=u.from(t.maskPattern),t.toSJISFunc&&a.setToSJISFunction(t.toSJISFunc)),function(e,t,n,r){let p;if(Array.isArray(e))p=h.fromArray(e);else if("string"==typeof e){let a=t;if(!a){let t=h.rawSplit(e);a=f.getBestVersionForData(t,n)}p=h.fromString(e,a||40)}else throw Error("Invalid data");let g=f.getBestVersionForData(p,n);if(!g)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<g)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+g+".\n")}else t=g;let _=function(e,t,n){let r=new o;n.forEach(function(t){r.put(t.mode.bit,4),r.put(t.getLength(),v.getCharCountIndicator(t.mode,e)),t.write(r)});let i=(a.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,t))*8;for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);let l=(i-r.getLengthInBits())/8;for(let e=0;e<l;e++)r.put(e%2?17:236,8);return function(e,t,n){let r,o,i=a.getSymbolTotalCodewords(t),l=i-c.getTotalCodewordsCount(t,n),s=c.getBlocksCount(t,n),u=i%s,f=s-u,p=Math.floor(i/s),v=Math.floor(l/s),h=v+1,m=p-v,g=new d(m),_=0,y=Array(s),b=Array(s),w=0,C=new Uint8Array(e.buffer);for(let e=0;e<s;e++){let t=e<f?v:h;y[e]=C.slice(_,_+t),b[e]=g.encode(y[e]),_+=t,w=Math.max(w,t)}let O=new Uint8Array(i),S=0;for(r=0;r<w;r++)for(o=0;o<s;o++)r<y[o].length&&(O[S++]=y[o][r]);for(r=0;r<m;r++)for(o=0;o<s;o++)O[S++]=b[o][r];return O}(r,e,t)}(t,n,p),y=new i(a.getSymbolSize(t));!function(e,t){let n=e.size,a=s.getPositions(t);for(let t=0;t<a.length;t++){let r=a[t][0],o=a[t][1];for(let t=-1;t<=7;t++)if(!(r+t<=-1)&&!(n<=r+t))for(let a=-1;a<=7;a++)o+a<=-1||n<=o+a||(t>=0&&t<=6&&(0===a||6===a)||a>=0&&a<=6&&(0===t||6===t)||t>=2&&t<=4&&a>=2&&a<=4?e.set(r+t,o+a,!0,!0):e.set(r+t,o+a,!1,!0))}}(y,t);let b=y.size;for(let e=8;e<b-8;e++){let t=e%2==0;y.set(e,6,t,!0),y.set(6,e,t,!0)}return!function(e,t){let n=l.getPositions(t);for(let t=0;t<n.length;t++){let a=n[t][0],r=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(a+t,r+n,!0,!0):e.set(a+t,r+n,!1,!0)}}(y,t),m(y,n,0),t>=7&&function(e,t){let n,a,r,o=e.size,i=f.getEncodedBits(t);for(let t=0;t<18;t++)n=Math.floor(t/3),a=t%3+o-8-3,r=(i>>t&1)==1,e.set(n,a,r,!0),e.set(a,n,r,!0)}(y,t),!function(e,t){let n=e.size,a=-1,r=n-1,o=7,i=0;for(let l=n-1;l>0;l-=2)for(6===l&&l--;;){for(let n=0;n<2;n++)if(!e.isReserved(r,l-n)){let a=!1;i<t.length&&(a=(t[i]>>>o&1)==1),e.set(r,l-n,a),-1==--o&&(i++,o=7)}if((r+=a)<0||n<=r){r-=a,a=-a;break}}}(y,_),isNaN(r)&&(r=u.getBestMask(y,m.bind(null,y,n))),u.applyMask(r,y),m(y,n,r),{modules:y,version:t,errorCorrectionLevel:n,maskPattern:r,segments:p}}(e,n,g,p)}},27654:function(e,t,n){let a=n(57065);function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=a.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=a.mod(t,this.genPoly),r=this.degree-n.length;if(r>0){let e=new Uint8Array(this.degree);return e.set(n,r),e}return n},e.exports=r},72642:function(e,t){let n="[0-9]+",a="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",r="(?:(?![A-Z0-9 $%*+\\-./:]|"+(a=a.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=RegExp(a,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(r,"g"),t.NUMERIC=RegExp(n,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let o=RegExp("^"+a+"$"),i=RegExp("^"+n+"$"),l=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return i.test(e)},t.testAlphanumeric=function(e){return l.test(e)}},96174:function(e,t,n){let a=n(25064),r=n(34678),o=n(2276),i=n(23922),l=n(3880),s=n(72642),u=n(10044),c=n(759);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){let a,r=[];for(;null!==(a=e.exec(n));)r.push({data:a[0],index:a.index,mode:t,length:a[0].length});return r}function p(e){let t,n,r=f(s.NUMERIC,a.NUMERIC,e),o=f(s.ALPHANUMERIC,a.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=f(s.BYTE,a.BYTE,e),n=f(s.KANJI,a.KANJI,e)):(t=f(s.BYTE_KANJI,a.BYTE,e),n=[]),r.concat(o,t,n).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function v(e,t){switch(t){case a.NUMERIC:return r.getBitsLength(e);case a.ALPHANUMERIC:return o.getBitsLength(e);case a.KANJI:return l.getBitsLength(e);case a.BYTE:return i.getBitsLength(e)}}function h(e,t){let n,s=a.getBestModeForData(e);if((n=a.from(t,s))!==a.BYTE&&n.bit<s.bit)throw Error('"'+e+'" cannot be encoded with mode '+a.toString(n)+".\n Suggested mode is: "+a.toString(s));switch(n===a.KANJI&&!u.isKanjiModeEnabled()&&(n=a.BYTE),n){case a.NUMERIC:return new r(e);case a.ALPHANUMERIC:return new o(e);case a.KANJI:return new l(e);case a.BYTE:return new i(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(h(t,null)):t.data&&e.push(h(t.data,t.mode)),e},[])},t.fromString=function(e,n){let r=function(e,t){let n={},r={start:{}},o=["start"];for(let i=0;i<e.length;i++){let l=e[i],s=[];for(let e=0;e<l.length;e++){let u=l[e],c=""+i+e;s.push(c),n[c]={node:u,lastCount:0},r[c]={};for(let e=0;e<o.length;e++){let i=o[e];n[i]&&n[i].node.mode===u.mode?(r[i][c]=v(n[i].lastCount+u.length,u.mode)-v(n[i].lastCount,u.mode),n[i].lastCount+=u.length):(n[i]&&(n[i].lastCount=u.length),r[i][c]=v(u.length,u.mode)+4+a.getCharCountIndicator(u.mode,t))}}o=s}for(let e=0;e<o.length;e++)r[o[e]].end=0;return{map:r,table:n}}(function(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];switch(r.mode){case a.NUMERIC:t.push([r,{data:r.data,mode:a.ALPHANUMERIC,length:r.length},{data:r.data,mode:a.BYTE,length:r.length}]);break;case a.ALPHANUMERIC:t.push([r,{data:r.data,mode:a.BYTE,length:r.length}]);break;case a.KANJI:t.push([r,{data:r.data,mode:a.BYTE,length:d(r.data)}]);break;case a.BYTE:t.push([{data:r.data,mode:a.BYTE,length:d(r.data)}])}}return t}(p(e,u.isKanjiModeEnabled())),n),o=c.find_path(r.map,"start","end"),i=[];for(let e=1;e<o.length-1;e++)i.push(r.table[o[e]].node);return t.fromArray(i.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},t.rawSplit=function(e){return t.fromArray(p(e,u.isKanjiModeEnabled()))}},10044:function(e,t){let n,a=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return a[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},28645:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},56323:function(e,t,n){let a=n(10044),r=n(34937),o=n(25350),i=n(25064),l=n(28645),s=a.getBCHDigit(7973);function u(e,t){return i.getCharCountIndicator(e,t)+4}t.from=function(e,t){return l.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!l.isValid(e))throw Error("Invalid QR Code version");void 0===n&&(n=i.BYTE);let o=(a.getSymbolTotalCodewords(e)-r.getTotalCodewordsCount(e,t))*8;if(n===i.MIXED)return o;let s=o-u(n,e);switch(n){case i.NUMERIC:return Math.floor(s/10*3);case i.ALPHANUMERIC:return Math.floor(s/11*2);case i.KANJI:return Math.floor(s/13);case i.BYTE:default:return Math.floor(s/8)}},t.getBestVersionForData=function(e,n){let a,r=o.from(n,o.M);if(Array.isArray(e)){if(e.length>1){for(let n=1;n<=40;n++)if(function(e,t){let n=0;return e.forEach(function(e){let a=u(e.mode,t);n+=a+e.getBitsLength()}),n}(e,n)<=t.getCapacity(n,r,i.MIXED))return n;return}if(0===e.length)return 1;a=e[0]}else a=e;return function(e,n,a){for(let r=1;r<=40;r++)if(n<=t.getCapacity(r,a,e))return r}(a.mode,a.getLength(),r)},t.getEncodedBits=function(e){if(!l.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;a.getBCHDigit(t)-s>=0;)t^=7973<<a.getBCHDigit(t)-s;return e<<12|t}},6650:function(e,t,n){let a=n(55655);t.render=function(e,t,n){var r;let o=n,i=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),o=a.getOptions(o);let l=a.getImageWidth(e.modules.size,o),s=i.getContext("2d"),u=s.createImageData(l,l);return a.qrToImageData(u.data,e,o),r=i,s.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=l,r.width=l,r.style.height=l+"px",r.style.width=l+"px",s.putImageData(u,0,0),i},t.renderToDataURL=function(e,n,a){let r=a;void 0!==r||n&&n.getContext||(r=n,n=void 0),r||(r={});let o=t.render(e,n,r),i=r.type||"image/png",l=r.rendererOpts||{};return o.toDataURL(i,l.quality)}},4436:function(e,t,n){let a=n(55655);function r(e,t){let n=e.a/255,a=t+'="'+e.hex+'"';return n<1?a+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':a}function o(e,t,n){let a=e+t;return void 0!==n&&(a+=" "+n),a}t.render=function(e,t,n){let i=a.getOptions(t),l=e.modules.size,s=e.modules.data,u=l+2*i.margin,c=i.color.light.a?"<path "+r(i.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",d="<path "+r(i.color.dark,"stroke")+' d="'+function(e,t,n){let a="",r=0,i=!1,l=0;for(let s=0;s<e.length;s++){let u=Math.floor(s%t),c=Math.floor(s/t);u||i||(i=!0),e[s]?(l++,s>0&&u>0&&e[s-1]||(a+=i?o("M",u+n,.5+c+n):o("m",r,0),r=0,i=!1),u+1<t&&e[s+1]||(a+=o("h",l),l=0)):r++}return a}(s,l,i.margin)+'"/>',f='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+('viewBox="0 0 '+u+" ")+u+'" shape-rendering="crispEdges">'+c+d+"</svg>\n";return"function"==typeof n&&n(null,f),f}},55655:function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,a=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:a,scale:a?4:r,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){let a=t.getScale(e,n);return Math.floor((e+2*n.margin)*a)},t.qrToImageData=function(e,n,a){let r=n.modules.size,o=n.modules.data,i=t.getScale(r,a),l=Math.floor((r+2*a.margin)*i),s=a.margin*i,u=[a.color.light,a.color.dark];for(let t=0;t<l;t++)for(let n=0;n<l;n++){let c=(t*l+n)*4,d=a.color.light;t>=s&&n>=s&&t<l-s&&n<l-s&&(d=u[+!!o[Math.floor((t-s)/i)*r+Math.floor((n-s)/i)]]),e[c++]=d.r,e[c++]=d.g,e[c++]=d.b,e[c]=d.a}}},65861:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}}),n(80287),n(63649),n(72775),n(42463);var a=n(18108),r=n(64768),o=n(94334),i=n(56844),l=n(61880),s=n(6966),u=n(82560),c=(0,n(81049).Z)({__name:"intelligent-agent",props:{formData:{type:Object,default:function(){return{}}},query:{type:Object,default:function(){return{}}},auth:{type:Object,default:function(){return{}}},groupList:{type:Array,default:function(){return[]}}},setup:function(e){var t=(0,u.Z)(),n=t.agentId,c=t.isStudentCreateAgentCooperation,d=(0,i.Y)(),f=function(e){d.set("name",e)};(0,a.watch)(function(){return e.formData},function(e){f(e.name)}
1,{immediate:!0,deep:!0});var p=(0,a.computed)(function(){return"/pc/upload_info/ai_course_other/?agent_id=".concat(n.value,"&uvid=").concat(e.query.university_id)}),v=(0,a.ref)(null),h=(0,a.ref)(null),m=(0,a.inject)(s.w8,(0,a.ref)({})),g=(0,a.inject)(s.Yh,(0,a.ref)("")),_=(0,a.computed)(function(){var e;return((null==m||null==(e=m.k12_subject_setting)?void 0:e.theme_id)===2||"violet"===g.value)&&!c.value}),y=(0,l.W)({agentId:n.value},{}).globalData;return{__sfc:!0,agentId:n,isStudentCreateAgentCooperation:c,RootStore:d,props:e,updateTitle:f,handleChangeAvatar:function(t){e.formData.avatar=t,"speech_evaluator_v2"===e.formData.code&&(e.formData.is_system_avatar=!1)},ossUrl:p,imageUploadRef:v,handdleOpenImgUpload:function(){e.auth.editable&&v.value&&v.value.open()},k12ClassificationRef:h,globalAgentConfig:m,currentTheme:g,isRose:_,globalData:y,handleOpenk12ClassificationDialog:function(){h.value.open()},handleConfirmSelected:function(t){var n=t.idx,a=t.odx;e.formData.category_ids=n,e.formData.category_info=a},handleDelCateTag:function(t){t&&(e.formData.category_ids=e.formData.category_ids.filter(function(e){return e!==t.id}),e.formData.category_info=e.formData.category_info.filter(function(e){return e.id!==t.id}))},ImageUpload:r.Z,k12ClassificationDialog:o.Z}}},function(){var e,t=this,n=t._self._c,a=t._self._setupProxy;return n("div",{staticClass:"flex flex-col space-x-16 intelligent-agent-config"},[n("div",{staticClass:"flex justify-center items-center space-x-8"},[n("span",{staticClass:"line"}),t._v(" "),n("span",{staticClass:"text-gray-001"},[t._v(t._s(t.$t("AICenter.AgentCooperate.IntelligentAgent")||"æºè½ä½ä¿¡æ¯"))]),t._v(" "),n("span",{staticClass:"line"})]),t._v(" "),n("el-form-item",{attrs:{prop:"name","label-width":"88px",rules:[{required:!0,message:t.$t("AICenter.AgentCooperate.TitleRequired")||"请è¾å
¥åç§°",trigger:"blur"}]}},[n("span",{staticClass:"pl0",attrs:{slot:"label"},slot:"label"},[t._v(t._s(t.$t("AICenter.AgentCooperate.Title")||"æºè½ä½åç§°"))]),t._v(" "),n("el-input",{staticClass:"form-input",on:{change:a.updateTitle},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}})],1),t._v(" "),n("el-form-item",{attrs:{"label-width":"84px"}},[n("div",{staticClass:"mt12",attrs:{slot:"label"},slot:"label"},[t._v("\n "+t._s(t.$t("AICenter.AgentCooperate.Avatar")||"头å")+"\n ")]),t._v(" "),n("div",{staticClass:"avatar-box"},[n("img",{staticClass:"avatar-img",attrs:{src:t.formData.avatar||"https://fe-static-yuketang.yuketang.cn/fe/static/assets/provue/avatar-ai-default.png",alt:"cover",width:"100%"}}),t._v(" "),t.formData.is_modify?n("span",{staticClass:"text-btn-hover space-x-10 pointer",on:{click:a.handdleOpenImgUpload}},[n("i",{staticClass:"iconfont icon-bianji-bi"}),t._v(" "),n("span",[t._v(t._s(t.$t("AICenter.AgentCooperate.Modify")||"ä¿®æ¹"))])]):t._e()])]),t._v(" "),n("el-form-item",{attrs:{label:t.$t("AICenter.AgentCooperate.Description")||"说æ",prop:"desc","label-width":"84px"}},[n("el-input",{attrs:{type:"textarea",placeholder:t.$t("AICenter.AgentCooperate.DescriptionPlaceholder")||"ä¸å¥è¯ä»ç»æºè½ä½",resize:"none"},model:{value:t.formData.desc,callback:function(e){t.$set(t.formData,"desc",e)},expression:"formData.desc"}})],1),t._v(" "),t.groupList.length?n("el-form-item",{attrs:{label:t.$t("AICenter.AgentCooperate.TeamGroup")||"æºè½ä½åç»",prop:"desc","label-width":"84px"}},[n("el-select",{staticClass:"team-group",model:{value:t.formData.team_info.team_id,callback:function(e){t.$set(t.formData.team_info,"team_id",e)},expression:"formData.team_info.team_id"}},t._l(t.groupList,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1):t._e(),t._v(" "),a.isRose?n("el-form-item",{attrs:{prop:"name","label-width":"88px",rules:[]}},[n("span",{staticClass:"pl0",attrs:{slot:"label"},slot:"label"},[t._v("æ·»å åç±»")]),t._v(" "),(null==(e=t.formData.category_info)?void 0:e.length)?n("div",{staticClass:"agent-btn-group flex space-x-8"},[n("div",{staticClass:"add-agent-btn flex items-center space-x-8",on:{click:a.handleOpenk12ClassificationDialog}},[n("i",{staticClass:"iconfont icon-tianjia2"}),t._v("\n æ·»å \n ")]),t._v(" "),t._l(t.formData.category_info,function(e){return n("div",{key:e.id,staticClass:"agent-btn flex items-center"},[n("i",{staticClass:"iconfont icon-yuanquancha-mianzhuang",on:{click:function(t){return a.handleDelCateTag(e)}}}),t._v(" "),n("div",{staticClass:"tag-text"},[t._v(t._s(e.category_short_name||e.category_name))])])})],2):n("div",{staticClass:"add-agent-btn",on:{click:a.handleOpenk12ClassificationDialog}},[n("div",{staticClass:"txt"},[t._v("æ è®°æºè½ä½éç¨åºæ¯")])])]):t._e(),t._v(" "),n(a.ImageUpload,{ref:"imageUploadRef",attrs:{"oss-url":a.ossUrl,width:320,height:320,"need-cropper":!0,"cropper-options":{aspectRatio:1},"cropper-canvas":{width:640,height:640},"init-image-url":t.formData.avatar},on:{"on-success":a.handleChangeAvatar}}),t._v(" "),a.isRose?n(a.k12ClassificationDialog,{ref:"k12ClassificationRef",attrs:{"global-data":a.globalData,"selected-data":t.formData.category_ids},on:{"on-confirm":a.handleConfirmSelected}}):t._e()],1)},[],!1,null,"148a64ca",null).exports},60458:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eC}}),n(80287),n(35350),n(83765),n(56325),n(61657),n(42463),n(79136),n(13054),n(88761),n(60668),n(17718),n(76556),n(32927),n(35130),n(63649),n(72775),n(13794),n(87481),n(80764);var a=n(73134),r=n(61933),o=n(82560),i=n(1948),l=n(53354),s=n(34124),u=n(74517),c=n(80637),d=n(73121),f=n(82393),p=n.n(f),v=n(41990),h=n(24530),m=n(18108),g=n(31242),_=n(64101),y=n(63057),b=n(56844),w=n(1402),C=n(80058),O=n(52798),S={__name:"header-bar",props:{disabled:{type:Boolean,default:!1},pageStatus:{type:Object,default:function(){return{}}},formData:{type:Object,default:function(){return{}}},publishText:{type:String,default:i18n.t("AICenter.AgentCooperate.Released")},auth:{type:Object,default:function(){return{}}},showShareAction:{type:Boolean,default:!0},loading:{type:Boolean,default:!0}},emits:["on-delete","on-publish","on-back","on-sync","on-share","on-save"],setup:function(e,t){var n=t.expose,r=t.emit,o=(0,C.F)().theme,i=(0,m.computed)(function(){return"violet"===o.value?"#7D298B":"#3D7BFF"}),l=(0,m.computed)(function(){return a.tN.k12Rpg===e.pageStatus.code?"å
±äº«å°æºè½ä½å¹¿åº":i18n.t("AICenter.AgentCooperate.ShareToCurrentAi_e2a8df")}),s=(0,m.computed)(function(){return a.tN.k12Rpg===e.pageStatus.code}),u=(0,m.computed)(function(){return e.pageStatus.code===a.tN.reviewTutor&&e.disabled}),c=(0,b.Y)(),d=(0,m.ref)(""),f=(0,m.ref)(e.pageStatus.isShare||!1);(0,m.watch)(function(){return e.pageStatus},function(e){f.value=e.isShare},{immediate:!0,deep:!0}),c.on("name",function(e){d.value=e});var p=(0,m.ref)(!1);function v(){e.auth.editable&&(p.value=!0)}function h(){e.auth.editable&&(p.value=!1)}var g=(0,m.ref)(null);return(0,O.i9H)(g,function(){return h()},{ignore:[".el-dialog__wrapper",".v-modal",".ignore-outside"]}),n({openShareAuth:v,closeShareAuth:h}),{__sfc:!0,props:e,emits:r,theme:o,switchActiveColor:i,sharedActiveTitle:l,isK12Rpg:s,isReviewTutorSyncDisabled:u,RootStore:c,name:d,is_share:f,isAuthPanel:p,handleShareAuth:function(){e.auth.editable&&f.value&&(p.value=!p.value)},openShareAuth:v,closeShareAuth:h,authSelectRef:g,AuthSelect:w.Z,AI_COOPERATION_CODE:a.tN}}},x=n(81049),A=(0,x.Z)(S,function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"header-top flex justify-between items-center"},[t("div",{staticClass:"flex items-center"},[t("div",{staticClass:"btn-back",on:{click:function(e){return n.emits("on-back")}}},[t("span",{staticClass:"iconfont icon-jiantoudan-xiangzuo-fanhui"})]),e._v(" "),t("div",{staticClass:"f16 text-gray-001 bold"},[e._v(e._s(n.name||e.formData.name))]),e._v(" "),e.pageStatus.code===n.AI_COOPERATION_CODE.get_exercise?t("div",{staticClass:"open-tips"},[e._v("\n "+e._s(e.$t("AICenter.AgentCooperate.OpenTips")||"请å°ç¥è¯å¾è°±åå¸å°ççº§å¹¶å¼æ¾ç»å¦çï¼æè½ä½¿ç¨AIéªç»æºè½æ¨é¢")+"\n ")]):e._e(
1),e._v(" "),e.pageStatus.disabled||!e.pageStatus.showSync||e.auth.readonly?e._e():t("div",{staticClass:"btn-sync flex items-center space-x-2"},[e.pageStatus.showTime&&e.pageStatus.modifyTime&&e.pageStatus.showSaveDraftTip?[t("span",{staticClass:"iconfont icon-yuanquangou"}),e._v(" "),t("span",[e._v(e._s(e.pageStatus.modifyTime)+e._s(e.$t("AICenter.AgentCooperate.AutomaticallySaveToDraft")))])]:e._e(),e._v(" "),e.pageStatus.code!==n.AI_COOPERATION_CODE.reviewTutor&&e.pageStatus.isPublish&&!e.pageStatus.isSynced?t("div",{staticClass:"sync",class:{disabled:e.pageStatus.disabled||e.disabled},attrs:{"aria-disabled":e.disabled},on:{click:function(t){e.disabled||n.emits("on-sync")}}},[e._v("\n "+e._s(e.$t("AICenter.AgentCooperate.SyncToStudents"))+"\n ")]):e._e()],2)]),e._v(" "),e.loading?e._e():[e.pageStatus.showAction?t("div",{staticClass:"btn-group flex space-x-12 items-center"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.auth.editable&&e.pageStatus.showShare,expression:"auth.editable && pageStatus.showShare"}],staticClass:"share flex items-center space-x-4"},[e.auth.readonly?e._e():t("el-switch",{staticClass:"global-switch fixed-global-switch",attrs:{"active-color":n.switchActiveColor,disabled:!e.auth.editable,"active-text":n.sharedActiveTitle},on:{change:function(e){return n.emits("on-share",n.is_share)}},model:{value:n.is_share,callback:function(e){n.is_share=e},expression:"is_share"}}),e._v(" "),e.auth.editable&&n.is_share?t("div",{staticClass:"manager-title flex items-center",on:{click:n.handleShareAuth}},[t("i",{staticClass:"iconfont icon-renshu"}),e._v(e._s(e.$t("AICenter.AgentCooperate.ManagementAuthority"))+"\n ")]):e._e(),e._v(" "),n.isAuthPanel?t("div",{staticStyle:{left:"0",top:"0",width:"100%",height:"100vh","background-color":"rgba(17, 19, 24, 0.1)",position:"fixed","z-index":"2"}}
1):e._e(),e._v(" "),n.isAuthPanel?t("div",{staticClass:"search-select-container"},[t(n.AuthSelect,{ref:"authSelectRef",attrs:{auth:e.auth},on:{"on-close":function(e){n.isAuthPanel=!1}}})],1):e._e()],1),e._v(" "),e.auth.deletable&&e.pageStatus.showDelete?t("div",{staticClass:"btn ghost",class:{disabled:!e.auth.deletable},on:{click:function(t){e.auth.deletable&&n.emits("on-delete")}}},[e._v("\n "+e._s(e.$t("AICenter.AgentCooperate.Delete"))+"\n ")]):e._e(),e._v(" "),e.pageStatus.showPublish?t("div",{staticClass:"btn primary publish-btn",class:{disabled:n.isReviewTutorSyncDisabled},attrs:{"aria-disabled":n.isReviewTutorSyncDisabled},on:{click:function(e){n.isReviewTutorSyncDisabled||n.emits("on-publish")}}},[e._v("\n "+e._s(e.publishText)+"\n ")]):e._e(),e._v(" "),n.isK12Rpg?[e.auth.editable?t("div",{staticClass:"btn primary",on:{click:function(e){return n.emits("on-save")}}},[e._v("\n ä¿å\n ")]):e._e(),e._v(" "),e.auth.shareable?t("div",{staticClass:"btn primary",on:{click:function(e){return n.emits("on-publish")}}},[e._v("\n å享\n ")]):e._e()]:e._e()],2):e._e()]],2)},[],!1,null,"5c81c35a",null).exports;n(44959),n(47482);var k=n(90789),I=n(80698),T=n(44721),E=n(32167),D=n(49135),P=n(15089);function j(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function L(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){j(o,a,r,i,l,"next",e)}function l(e){j(o,a,r,i,l,"throw",e)}i(void 0)})}}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}function M(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function N(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var B=(0,x.Z)({__name:"similar-question-test",props:{formData:{type:Object,default:function(){return{}}},courseName:{type:String,default:""}},emits:["update:formData","close"],setup:function(e,t){var n,a,r,o=t.emit,i=(0,T.N4)().UEditor,l=(0,E.ah)().problemItem,s=(0,I.V)().params.course_id,u=(0,m.ref)(null),f=(0,m.ref)(null),p=(0,m.ref)(null),v=(0,m.ref)(-1),h=(0,m.ref)(!1),g=(0,m.ref)("objective"),_=(0,m.ref)(!1),y=(0,m.ref)(!1),b=(0,m.ref)(!1),w=(0,m.ref)(!1),C=(0,m.ref)([]),O=(0,m.ref)(!1),S=(null==(n=e.formData.extra_info)?void 0:n.similar_question_setting)||{},x=(0,m.ref)(null!=(a=S.generation_role)?a:e.courseName),A=(0,m.ref)(null!=(r=S.problem_attributes)?r:[]),j=(0,m.ref)("");function B(t){var n;o("update:formData",M(R({},e.formData),{extra_info:M(R({},e.formData.extra_info),{similar_question_setting:R({},null==(n=e.formData.extra_info)?void 0:n.similar_question_setting,t)})}))}function U(e){return L(function(){var t,n;return N(this,function(a){switch(a.label){case 0:return[4,d.ZP.post(c.Z.ai_coach.generate_similar_question,e)];case 1:if(!(null==(n=a.sent())?void 0:n.success))throw Error((null==n?void 0:n.msg)||"çæç¸ä¼¼é¢å¤±è´¥");return[2,((null==(t=n.data)?void 0:t.problem)||[]).map(function(e){var t=M(R({},e),{problem_type:Number(e.type)});return delete t.type,t})]}})})()}function H(e,t){var n=e.problem_type,a=e.content||{},r=G(a,n),o=M(R({},a),{ProblemType:n,Answer:r}),i=5===n?{content:""}:r,l=Array.isArray(r)?r.reduce(function(e,t){return e[t]=!0,e},{}):r;return{problem_id:e.problem_id||e.id||"similar-question-".concat(t),index:t+1,content:o,answer:r,_answer:i,user:{answer:r,my_answer:i,my_answers:l,explain:o.Remark,is_correct:!0,is_right:!0,is_show_answer:!0,is_show_explain:!0}}}function G(e,t){var n=e.Answer;if(4!==t)return Array.isArray(n)?n.map(String):null==n?[]:[String(n)];if(n&&!Array.isArray(n)&&(void 0===n?"undefined":n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)=="object")return n;var a=e.Blanks||[];return a.length?a.reduce(function(e,t,n){return e[n+1]=t.Answers||[],e},{}):(n||[]).reduce(function(e,t,n){return e[n+1]=t,e},{})}return{__sfc:!0,UEditor:i,Problem:l,aiCourseId:s,props:e,emit:o,editorRef:u,addToLibraryRef:f,selectedQuestion:p,selectedQuestionIndex:v,addingToLibrary:h,questionType:g,hasTested:_,loading:y,timedOut:b,generationFailed:w,questions:C,closeConfirmVisible:O,setting:S,generationRole:x,problemAttributes:A,editorId:{value:"similar-question-test"},testProblemContent:j,editorConfig:{initialFrameWidth:null,initialFrameHeight:336,initialContent:"请è¾å
¥ä¹ é¢å
容",autoClearinitialContent:!0,wordCount:!1},updateSetting:B,updateGenerationRole:function(e){e.trim()&&(x.value=e,B({generation_role:e}))},updateProblemAttributes:function(e){A.value=e,B({problem_attributes:e})},handleEditorChange:function(e,t){j.value=t},handleClose:function(){if(y.value){O.value=!0;return}o("close")},confirmClose:function(){O.value=!1,o("close")},handleTest:function(){return L(function(){var e,t,n,a,r;return N(this,function(o){switch(o.label){case 0:if(n=(null==(t=u.value)||null==(e=t.getUEContent)?void 0:e.call(t))||j.value,!x.value.trim())return P.RainMessage.warning({message:"请è¾å
¥åºé¢è§è²",customClass:"similar-question-test-message"}),[2];if((0,T.Vy)(n))return P.RainMessage.warning({message:"请è¾å
¥æµè¯é¢ç®",customClass:"similar-question-test-message"}),[2];_.value=!0,y.value=!0,b.value=!1,w.value=!1,C.value=[],a={agent_id:s,problem_content:n,question_type:g.value},o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,U(a)];case 2:return C.value=o.sent().map(function(e,t){return{sourceQuestion:e,problem:H(e,t)}}),[3,5];case 3:return r=o.sent(),w.value=!0,P.RainMessage.error({message:(null==r?void 0:r.msg)||(null==r?void 0:r.message)||"çæç¸ä¼¼é¢å¤±è´¥",customClass:"similar-question-test-message"}),[3,5];case 4:return y.value=!1,[7];case 5:return[2]}})})()},generateSimilarQuestions:U,openAddToLibrary:function(e,t){return L(function(){var n;return N(this,function(a){switch(a.label){case 0:if(e.isAdded||h.value)return[2];return p.value=e,v.value=t,[4,null==(n=f.value)?void 0:n.open()];case 1:return a.sent(),[2]}})})()},normalizeProblem:H,normalizeAnswer:G,addToLibrary:function(e){return L(function(){var t,n,a,r,o,i,l,u,f,m,g;return N(this,function(_){switch(_.label){case 0:if(!p.value||h.value)return[2];t=e.library_id,n=e.folder_id,a=e.libraryInfo,r=e.node_ids,o=M(R({},p.value.content||{}),{source:"ai-agent"}),l={agent_id:Number(s),content:o,library_id:t,folder_id:n,node_ids:r,problem_type:null!=(i=o.ProblemType)?i:o.problem_type},h.value=!0,_.label=1;case 1:return _.trys.push([1,3,4,5]),[4,d.ZP.post(c.Z.question_generator.addToLibrary,l)];case 2:if(!(null==(u=_.sent())?void 0:u.success))return P.RainMessage.error({message:(null==u?void 0:u.msg)||"å å
¥é¢åºå¤±è´¥",customClass:"similar-question-test-message"}),[2];return f=v.value,(m=C.value[f])&&C.value.splice(f,1,M(R({},m),{sourceQuestion:M(R({}
1,m.sourceQuestion),{isAdded:!0,libraryInfo:a})})),P.RainMessage.success({message:"å·²å å
¥é¢åº",customClass:"similar-question-test-message"}),[3,5];case 3:return g=_.sent(),P.RainMessage.error({message:(null==g?void 0:g.msg)||"å å
¥é¢åºå¤±è´¥",customClass:"similar-question-test-message"}),[3,5];case 4:return h.value=!1,[7];case 5:return[2]}})})()},AddToLibrary:k.Z,isRichTextEmpty:T.Vy,QuestionGeneratingError:D.Ml,QuestionGeneratingLoading:D.Or,RainBtn:P.RainBtn,RainCheckbox:P.RainCheckbox,RainCheckboxGroup:P.RainCheckboxGroup,RainIconBtn:P.RainIconBtn,RainInput:P.RainInput,RainRadio:P.RainRadio,RainRadioGroup:P.RainRadioGroup,RainTextBtn:P.RainTextBtn}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("section",{staticClass:"similar-question-test"},[t("header",{staticClass:"similar-question-test__header"},[e._m(0),e._v(" "),t("el-popover",{attrs:{"popper-class":"similar-question-test-close-confirm",placement:"bottom-end",width:"232",trigger:"manual"},model:{value:n.closeConfirmVisible,callback:function(e){n.closeConfirmVisible=e},expression:"closeConfirmVisible"}},[t("div",{staticClass:"similar-question-test-close-confirm__content"},[t("i",{staticClass:"iconfont icon-weidu-mianzhuang"}),e._v(" "),t("div",{staticClass:"similar-question-test-close-confirm__body"},[t("p",[e._v("éåºåæµè¯é¢ç®ä¸ä¿å")]),e._v(" "),t("div",{staticClass:"similar-question-test-close-confirm__actions"},[t(n.RainBtn,{attrs:{type:"3",size:"mini",text:"åæ¶"},on:{click:function(e){n.closeConfirmVisible=!1}}}),e._v(" "),t(n.RainBtn,{attrs:{type:"1",size:"mini",text:"ç¡®å®"},on:{click:n.confirmClose}})],1)])]),e._v(" "),t(n.RainIconBtn,{staticClass:"similar-question-test__close",attrs:{slot:"reference",size:"28-18",color:"--cell-cell-g3",icon:"icon-cu-cha"},on:{click:n.handleClose},slot:"reference"})],1)],1),e._v(" "),t("div",{staticClass:"similar-question-test__scroll"},[t("section",{staticClass:"similar-question-test__setting"},[t("h4",{staticClass:"text-gray-001"},[e._v("AIåºç¸ä¼¼é¢è§å")]),e._v(" "),t("div",{staticClass:"similar-question-test__form-row"},[t("label",{attrs:{for:"similar-question-role"}},[e._v("åºé¢è§è²")]),e._v(" "),t("div",{staticClass:"similar-question-test__role-field"},[t(n.RainInput,{class:{"is-role-empty":!n.generationRole.trim()},attrs:{id:"similar-question-role","can-clear":!1,"is-search":!1,size:"medium",placeholder:"建议è¾å
¥åç¡®ç课ç¨åç§°"},on:{blur:n.updateGenerationRole},model:{value:n.generationRole,callback:function(e){n.generationRole=e},expression:"generationRole"}}),e._v(" "),t("span",[e._v("ä¸å®¶")])],1)]),e._v(" "),t("div",{staticClass:"similar-question-test__form-row"},[t("span",{staticClass:"similar-question-test__label"},[e._v("ä¹ é¢å±æ§")]),e._v(" "),t(n.RainCheckboxGroup,{attrs:{value:n.problemAttributes},on:{input:n.updateProblemAttributes}},[t(n.RainCheckbox,{attrs:{label:"formula"}},[e._v("æè®¡ç®ãå
¬å¼")]),e._v(" "),t(n.RainCheckbox,{attrs:{label:"image"}},[e._v("æå¾ç")])],1)],1)]),e._v(" "),t("section",{staticClass:"similar-question-test__question",class:{"similar-question-test__question--last":!n.hasTested}},[t("h4",{staticClass:"text-gray-001"},[e._v("æµè¯é¢ç®")]),e._v(" "),t(n.RainRadioGroup,{staticClass:"similar-question-test__question-type",model:{value:n.questionType,callback:function(e){n.questionType=e},expression:"questionType"}},[t(n.RainRadio,{attrs:{label:"objective"}},[e._v("客è§é¢")]),e._v(" "),t(n.RainRadio,{attrs:{label:"subjective"}},[e._v("主è§é¢")])],1),e._v(" "),t(n.UEditor,{ref:"editorRef",staticClass:"similar-question-test__editor",attrs:{config:n.editorConfig,value:n.testProblemContent,editorid:n.editorId},on:{textcontent:n.handleEditorChange}}),e._v(" "),t(n.RainBtn,{staticClass:"similar-question-test__question-action",attrs:{type:"2",size:"small",text:"åºé¢æµè¯",icon:"icon-Ai1",disabled:n.loading||!n.generationRole.trim()||n.isRichTextEmpty(n.testProblemContent),loading:n.loading},on:{click:n.handleTest}})],1),e._v(" "),n.hasTested?t("section",{staticClass:"similar-question-test__result"},[n.loading||n.generationFailed?e._e():t("div",{staticClass:"similar-question-test__result-heading"},[t("h4",{staticClass:"text-gray-001"},[e._v("çæç¸ä¼¼é¢")]),e._v(" "),t("span",[e._v("ä»
ä¾ AI åºé¢ææåèï¼ç¬¦åè¦æ±çä¹ é¢å¯å å
¥é¢åº")])]),e._v(" "),n.loading?t(n.QuestionGeneratingLoading,{staticClass:"similar-question-test__loading",attrs:{"show-loading":!1}}):n.timedOut?t("div",{staticClass:"similar-question-test__status"},[t("span",[e._v("çææ¶é´è¾é¿ï¼è¯·ç¨åéè¯")])]):n.generationFailed?t(n.QuestionGeneratingError):e._l(n.questions,function(a,r){return t("article",{key:a.sourceQuestion.id||a.sourceQuestion.problem_id||r,staticClass:"similar-question-test__problem"},[t("div",{staticClass:"similar-question-test__problem-action"},[t(n.RainTextBtn,{staticClass:"similar-question-test__library-action",attrs:{size:13,icon:"icon-tianjia2",text:a.sourceQuestion.isAdded?"å·²å å
¥é¢åº":"å å
¥é¢åº",disabled:a.sourceQuestion.isAdded||n.addingToLibrary},on:{click:function(e){return n.openAddToLibrary(a.sourceQuestion,r)}}})],1),e._v(" "),t(n.Problem,{attrs:{problem:a.problem,"disabled-status":!0,"show-result-area":!0,"show-answer":!0,"read-only":!0,"show-ai-tip":!1}})],1)})],2):e._e()]),e._v(" "),t(n.AddToLibrary,{ref:"addToLibraryRef",on:{"on-add-to-library":n.addToLibrary}}
1)],1)},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"similar-question-test__title"},[e("i",{staticClass:"iconfont icon-xiangsiti-xian"}),this._v(" "),e("h3",{staticClass:"text-gray-001"},[this._v("ç¸ä¼¼é¢æµè¯")])])}],!1,null,"75fd38f8",null).exports,U=(0,x.Z)({__name:"get-exercise-right-panel",props:{formData:{type:Object,default:function(){return{}}},courseName:{type:String,default:""}},emits:["update:formData"],setup:function(e,t){var n,a,r=t.expose,o=(0,m.ref)(""),i=((a="similar-question")in(n={})?Object.defineProperty(n,a,{value:B,enumerable:!0,configurable:!0,writable:!0}):n[a]=B,n),l=(0,m.computed)(function(){return i[o.value]||null});function s(e){i[e.type]&&(o.value=e.visible?e.type:"")}return r({handlePanelChange:s}),{__sfc:!0,activePanel:o,panelComponentMap:i,activePanelComponent:l,handlePanelChange:s,closePanel:function(){o.value=""}}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return n.activePanelComponent?t("section",{staticClass:"get-exercise-right-panel"},[n.activePanelComponent?t(n.activePanelComponent,{tag:"component",attrs:{"form-data":e.formData,"course-name":e.courseName},on:{"update:formData":function(t){return e.$emit("update:formData",t)},close:n.closePanel}}):e._e()],1):e._e()},[],!1,null,"60a33f0b",null).exports;n(52042),n(88353);var H=(0,x.Z)({__name:"k12-generation-tv",props:{currentStep:{type:Object,default:null},progress:{type:Number,default:0},guide:{type:Object,default:function(){return{current:"",completed:[],rect:null}}},steps:{type:Array,default:function(){return[]}}},setup:function(e){var t={avatar:{className:"is-avatar",label:"æ£å¨çææºè½ä½å¤´å"},opening:{className:"is-opening",label:"æ£å¨çæå¼åºç½åæ¨èé®é¢"},persona:{className:"is-persona",label:"æ£å¨çææºè½ä½äººè®¾æè¿°"}},n=(0,m.computed)(function(){var n,a=null==(n=e.guide)?void 0:n.current;return a&&t[a]?t[a]:null}),a=(0,m.ref)({top:"0px",left:"0px"}),r=(0,m.ref)(!1),o=(0,m.ref)(!1),i=(0,m.ref)(!1),l=(0,m.computed)(function(){return a.value}),s=(0,m.computed)(function(){var e;return(null==(e=n.value)?void 0:e.className)||""}),u=(0,m.computed)(function(){var e;return(null==(e=n.value)?void 0:e.label)||""}),c=(0,m.ref)(""),d=null;function f(){d&&(clearInterval(d),d=null)}(0,m.watch)(u,function(e){f(),c.value="",e&&(d=setInterval(function(){if(c.value.length>=e.length)return void f();c.value=e.slice(0,c.value.length+1)},60))},{immediate:!0}),(0,m.onBeforeUnmount)(f);var p=(0,m.computed)(function(){var t;return!!(n.value&&((null==(t=e.guide)?void 0:t.rect)||r.value))}),v=(0,m.computed)(function(){return!o.value});function h(e,t){if(!e)return null;var n=Number(e.left)||0,a=Number(e.top)||0,r=Number(e.width)||0,o={avatar:{top:a+40,left:n+40},opening:{top:a+40,left:n+.5*r},persona:{top:a+10,left:n+.5*r}}[t]||{top:a,left:n};return{top:"".concat(Math.round(o.top),"px"),left:"".concat(Math.round(o.left),"px")}}(0,m.watch)(p,function(e){e&&(o.value=!0)},{immediate:!0}),(0,m.watch)(function(){var t,n;return[e.progress,null==(t=e.guide)?void 0:t.current,null==(n=e.guide)?void 0:n.rect]},function(){var t,n;e.progress||(null==(t=e.guide)?void 0:t.current)||(null==(n=e.guide)?void 0:n.rect)||(o.value=!1,r.value=!1,i.value=!1)},{immediate:!0}),(0,m.watch)(function(){var t,n,a,r,o,i,l;return[null==(t=e.guide)?void 0:t.current,null==(a=e.guide)||null==(n=a.rect)?void 0:n.top,null==(o=e.guide)||null==(r=o.rect)?void 0:r.left,null==(l=e.guide)||null==(i=l.rect)?void 0:i.width]},function(){var t,n,o=h(null==(t=e.guide)?void 0:t.rect,null==(n=e.guide)?void 0:n.current);o&&(i.value=r.value&&(o.top!==a.value.top||o.left!==a.value.left),a.value=o,r.value=!0)},{immediate:!0});var g=(0,m.computed)(function(){var t=e.steps.filter(function(e){return e&&e.title});return t.length?t:[C()]}),_=(0,m.computed)(function(){var t=e.currentStep;if(null==t?void 0:t.title){var n=g.value.findIndex(function(e){return w(e,t)});if(n>=0)return n}return g.value.length-1}),y=(0,m.computed)(function(){return{transform:"translateY(-".concat(32*_.value,"px)")}});
1function b(e){return e.step_key||e.type||e.row_type||e.title}function w(e,t){return b(e)===b(t)||e.title===t.title}function C(){return{progress:0,step_key:"init",title:"åå¤çææºè½ä½..."}}return{__sfc:!0,GUIDE_VIEW_MAP:t,props:e,currentGuideView:n,lastGuideStyle:a,hasGuidePosition:r,hasShownGuide:o,shouldAnimateGuideMove:i,currentGuideStyle:l,currentGuideClassName:s,currentGuideLabel:u,GUIDE_TYPING_INTERVAL:60,typedGuideLabel:c,guideTypingTimer:d,clearGuideTypingTimer:f,isGuideVisible:p,shouldShowGenerationCenter:v,buildGuideStyle:h,STEP_ROW_STRIDE:32,stepList:g,activeStepIndex:_,trackStyle:y,getStepKey:b,isSameStep:w,getFallbackStep:C}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"k12-generation-tv"},[e._m(0),e._v(" "),t("div",{staticClass:"edge-tint"}),e._v(" "),t("div",{staticClass:"edge-glow"}),e._v(" "),t("div",{staticClass:"dots"}),e._v(" "),t("div",{staticClass:"bottom-band"}),e._v(" "),t("div",{staticClass:"generation-guide",class:[n.currentGuideClassName,{"is-visible":n.isGuideVisible,"is-moving":n.shouldAnimateGuideMove}],style:n.currentGuideStyle},[e._m(1),e._v(" "),t("span",{staticClass:"generation-guide__bubble"},[t("span",{staticClass:"generation-guide__ghost"},[e._v(e._s(n.currentGuideLabel))]),e._v(" "),t("span",{staticClass:"generation-guide__typed"},[e._v(e._s(n.typedGuideLabel))])])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:n.shouldShowGenerationCenter,expression:"shouldShowGenerationCenter"}],staticClass:"generation-center"},[t("div",{staticClass:"generation-steps"},[t("div",{staticClass:"generation-steps__track",style:n.trackStyle},e._l(n.stepList,function(a,r){return t("div",{key:"".concat(n.getStepKey(a),"-").concat(r),staticClass:"generation-step",class:{"is-active":r===n.activeStepIndex}},[t("span",{staticClass:"generation-step__text"},[e._v(e._s(a.title))])])}),0)])])])},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"arcs"},[e("span")])},function(){var e=this._self._c;return this._self._setupProxy,e("span",{staticClass:"generation-guide__cursor"},[e("img",{attrs:{src:"https://fe-static-yuketang.rainclassroom.com/fe/static/assets/rainweb/k12-tv-light-cursor.png",width:"34",height:"34"}})])}],!1,null,"90e46a12",null).exports,G=(0,x.Z)({__name:"k12-readonly-profile",props:{formData:{type:Object,default:function(){return{}}}},setup:function(e){var t=(0,m.computed)(function(){return(e.formData.category_info||[]).find(function(e){return e.category_short_name})||null}),n=(0,m.computed)(function(){var e;return(null==(e=t.value)?void 0:e.category_short_name)||"ææ è¯¾æ¶ä¿¡æ¯"}),a=(0,m.computed)(function(){return(e.formData.category_info||[]).filter(function(e){return!e.category_short_name})});return{__sfc:!0,props:e,lesson:t,lessonText:n,topicList:a}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("section",{staticClass:"k12-readonly-profile"},[t("div",{staticClass:"k12-readonly-profile__cover"},[n.props.formData.avatar?t("img",{attrs:{src:n.props.formData.avatar,alt:"",referrerpolicy:"no-referrer"}}):e._e()]),e._v(" "),t("div",{staticClass:"k12-readonly-profile__content"},[t("h2",{staticClass:"k12-readonly-profile__name"},[e._v(e._s(e.formData.name))]),e._v(" "),t("p",{staticClass:"k12-readonly-profile__description"},[e._v(e._s(e.formData.desc||"ææ æºè½ä½è¯´æ"))]),e._v(" "),t("div",{staticClass:"k12-readonly-profile__meta"},[t("h3",[e._v("éç¨è¯¾æ¶ï¼")]),e._v(" "),t("p",[e._v(e._s(n.lessonText))])]),e._v(" "),t("div",{staticClass:"k12-readonly-profile__meta"},[t("h3",[e._v("éç¨ä¸é¢ï¼")]),e._v(" "),n.topicList.length?t("div",{staticClass:"k12-readonly-profile__tags"},e._l(n.topicList,function(n){return t("span",{key:n.id,staticClass:"k12-readonly-profile__tag"},[e._v("\n "+e._s(n.category_name)+"\n ")])}),0):t("p",[e._v("ææ ä¸é¢")])])])])},[],!1,null,"78a37f39",null).exports;n(63064);var F=n(57877),V=n(35842),q=n(48137),z=n(94953),Z=n(49488);function J(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function K(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){J(o,a,r,i,l,"next",e)}function l(e){J(o,a,r,i,l,"throw",e)}i(void 0)})}}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}function $(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
1,trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var Y=(0,x.Z)({__name:"publishDialog",props:{query:{type:Object,default:function(){return{}}},formData:{type:Object,default:function(){return{}}},roles:{type:Object,default:function(){return{}}},chatParams:{type:Object,default:function(){}},disabled:{type:Boolean,default:!1},auth:{type:Object,default:function(){return{}}},shareMode:{type:Boolean,default:!1}},emits:["on-tap-confirm","on-tap-cancel"],setup:function(e,t){var n=t.expose,a=t.emit,r=(0,V.Z)({key:"ai_app_open_app_read",width1:"450px",width2:"350px"}),o=r.classroomFilterByUserIsAllAllowed,i=r.classroomFilterByUserRowWidth,l=r.classroomFilterByUserList,s=r.classroomFilterByUserParams,u=r.setClassroomFilterByUserParams,c=(0,m.ref)(!1),f=function(e){c.value=!0,e&&(U.value=e),window.addEventListener("resize",G),setTimeout(function(){G(),B()},0)},p=function(){c.value=!1},v=(0,m.ref)(!1),h=function(){d.ZP.get("/c27/online_courseware/agent/".concat(e.query.agentId,"/agent_conf/")).then(function(e){e.success&&(v.value=e.data.is_open_basic_class||!1)})},_=(0,m.ref)(!1),y=(0,m.ref)({}),b=(0,m.ref)([]),w=(0,m.ref)(""),C=(0,m.ref)(""),O=(0,m.ref)({}),S=(0,m.ref)(null),x=(0,m.computed)(function(){return 0!==O.value.id||"pro"===E.value}),A=(0,Z.o)(e.query,{enableClassroomPagination:!0}),k=A.isLoading,I=A.isLoadingNextClassrooms,T=A.courseWithClassroomList,E=A.class_type,D=A.classroom_mapping,P=A.category_list,j=A.getTableData,L=A.loadNextClassrooms,R=A.handleClassroomClick,M=A.hasSelectChange;(0,m.watch)(function(){return M.value},function(e){e&&(_.value=!0)});var N=function(){return K(function(){var t,n,a,r,o;return $(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),[4,d.ZP.get("/edu_admin/platform/term/for_ai_workspace/",{agent_id:e.query.agentId})];case 1:return(a=i.sent().data).term_list.some(function(e){return e.term===a.current_term})||(a.current_term=a.term_list.length>0?a.term_list[a.term_list.length-1].term:""),a.term_list.push({term:"",term_name:window.i18n.t("AICenter.OpenToClass.AllTerms")||"å
¨é¨å¦æ"}),y.value=a,w.value=(null==(t=a.term_list.find(function(e){return e.term===a.current_term}))?void 0:t.term_name)||"",C.value=(null==(n=a.term_list.find(function(e){return e.term===a.current_term}))?void 0:n.term)||0,r=a.university_logo,o=a.university_name,b.value=[{id:a.university_id,name:o,logo:r},{id:0,name:window.i18n.t("WorkflowAgent.PublishAiDialog.SelfBuiltCourses")||"èªå»ºè¯¾",logo:"https://qn-sfe.yuketang.cn/FuJdN5LKT4z56PUu1qf58Be1BOrr"}],O.value="pro"===E.value?b.value[0]:b.value[1],[4,(0,m.nextTick)()];case 2:return i.sent(),B(),j(W({isProClassroom:x.value,term:C.value},s.value)),[3,4];case 3:return i.sent(),console.error("è·å妿 ¡ä¿¡æ¯æ¥å£æ¥é"),[3,4];case 4:return[2]}})})()};function B(){S.value&&(S.value.scrollTop=0)}var U=(0,m.ref)("1"),H=(0,m.ref)("300px");function G(){var e=document.querySelector(".publish-agent-dialog");if(e){var t=e.clientHeight;H.value="".concat(Math.min(300,t-190),"px")}}var J=(0,g.yj)(),Y=(0,m.computed)(function(){return J.params.course_id||e.query.agentId}),X=(0,m.computed)(function(){return J.params.id||e.query.workflowId});return(0,m.onMounted)(function(){return K(function(){return $(this,function(e){return N(),h(),[2]})})()}),n({open:f,close:p}),{__sfc:!0,props:e,emits:a,classroomFilterByUserIsAllAllowed:o,classroomFilterByUserRowWidth:i,classroomFilterByUserList:l,classroomFilterByUserParams:s,setClassroomFilterByUserParams:u,visible:c,open:f,close:p,dialogClose:function(){window.removeEventListener("resize",G)},handleConfirm:function(){if(_.value){var e;a("on-tap-confirm",{classroom_ids:null==(e=Object.keys(D.value))?void 0:e.map(Number),category_list:P.value})}},is_open_basic_class:v,fetchIfOpen:h,selectChangeEnableBtn:_,universityInfo:y,uvOptions:b,selectedTerm:w,selectedTermId:C,curUvInfo:O,tableLayoutRef:S,isProClassroom:x,isLoading:k,isLoadingNextClassrooms:I,courseWithClassroomList:T,class_type:E,classroom_mapping:D,category_list:P,getTableData:j,loadNextClassrooms:L,handleClassroomClick:R,hasSelectChange:M,fetchUvInfo:N,handleChangeTerm:function(e){w.value=e.term_name,C.value=e.term,B(),j(W({isProClassroom:x.value,term:C.value},s.value))},handleChangeUser:function(e){u(e),B(),j(W({isProClassroom:x.value,term:C.value},s.value))},handleChangeUvInfo:function(){return K(function(){var e,t=arguments;return $(this,function(n){switch(n.label){case 0:return e=t.length>0&&void 0!==t[0]?t[0]:{},O.value=W({},O.value,e),E.value="pro",0===O.value.id&&(E.value="basic"),[4,(0,m.nextTick)()];case 1:return n.sent(),B(),0===O.value.id?j(W({isProClassroom:x.value},s.value)):j(W({isProClassroom:x.value,term:C.value},s.value)),[2]}})}).apply(this,arguments)},resetTableScrollTop:B,handleTableScroll:function(e){var t=e.target,n=t.scrollTop;t.scrollHeight-n-t.clientHeight<=80&&L()},DIALOG_TAB:{AI_PUBLISH_TO_CLASS:"1",AI_SHARE_CHAIN_CODE:"2"},activeTab:U,handleTabClick:function(e){U.value=e},maxHeight:H,updateDropDownMaxHeight:G,route:J,agentId:Y,workflowId:X,ClassroomFilterByUser:F.Z,SelectPop:q.Z,ShareLink:z.Z}}},function(){var e,t=this,n=t._self._c,a=t._self._setupProxy;return n("div",{staticClass:"create-agent-dialog"},[n("el-dialog",{attrs:{"custom-class":"theme-dialog-agent publish-agent-dialog",width:"700px",height:"560px",t
1itle:t.$t("AICenter.AgentCooperate.AgentRelease"),"append-to-body":"",visible:a.visible},on:{"update:visible":function(e){a.visible=e},close:a.dialogClose}},[n("template",{slot:"title"},[n("div",{staticClass:"dialog-tab"},[t.shareMode?t._e():n("div",{staticClass:"tab tab1",on:{click:function(e){return a.handleTabClick(a.DIALOG_TAB.AI_PUBLISH_TO_CLASS)}}},[n("span",{class:["tab-title",{"active-tab-title":a.activeTab==a.DIALOG_TAB.AI_PUBLISH_TO_CLASS}]},[t._v(t._s(t.$t("AICenter.AgentCooperate.AgentsReleasedToTeaching_619fc7")))]),t._v(" "),a.activeTab==a.DIALOG_TAB.AI_PUBLISH_TO_CLASS?n("div",{staticClass:"active-bottom-line"}):t._e()]),t._v(" "),t.auth.shareable?n("div",{staticClass:"tab tab2",on:{click:function(e){return a.handleTabClick(a.DIALOG_TAB.AI_SHARE_CHAIN_CODE)}}},[n("span",{class:["tab-title",{"active-tab-title":a.activeTab==a.DIALOG_TAB.AI_SHARE_CHAIN_CODE}]},[t._v(t._s(t.$t("AICenter.AgentCooperate.ShareAgentLinksAnd_38b700")))]),t._v(" "),a.activeTab==a.DIALOG_TAB.AI_SHARE_CHAIN_CODE?n("div",{staticClass:"active-bottom-line"}):t._e()]):t._e()])]),t._v(" "),n("div",{staticClass:"content"},[n("div",{directives:[{name:"show",rawName:"v-show",value:a.activeTab==a.DIALOG_TAB.AI_PUBLISH_TO_CLASS,expression:"activeTab == DIALOG_TAB.AI_PUBLISH_TO_CLASS"}],ref:"tableLayoutRef",staticClass:"table-layout",on:{"&scroll":function(e){return a.handleTableScroll.apply(null,arguments)}}},[n("table",{staticClass:"main-table"},[n("thead",[n("tr",{staticClass:"header"},[n("th",{staticClass:"th-cell",staticStyle:{width:"150px","border-right":"none"}},[n(a.SelectPop,{attrs:{options:a.uvOptions,disabled:!a.is_open_basic_class,type:"uv",current:a.curUvInfo,"max-height":a.maxHeight},on:{"on-change":a.handleChangeUvInfo}})],1),t._v(" "),n("th",{staticClass:"th-cell",style:"width: ".concat(a.classroomFilterByUserRowWidth,"; border-left: none;"),attrs:{colspan:"2"}},[n("div",{staticClass:"flex justify-between items-center",staticStyle:{padding:"0 4px 0 80px"}},[n("span",{staticStyle:{"line-height":"26px"}},[t._v(t._s(t.$t("AICenter.OpenToClass.CourseClass")))]),t._v(" "),a.isProClassroom?n("div",{staticClass:"term-select"},[n(a.SelectPop,{attrs:{options:a.universityInfo.term_list,type:"term",current:{name:a.selectedTerm,id:a.selectedTermId},"max-height":a.maxHeight},on:{"on-change":a.handleChangeTerm}})],1):t._e(),t._v(" "),a.classroomFilterByUserIsAllAllowed?n("div",{staticClass:"term-select"},[n(a.ClassroomFilterByUser,{attrs:{"options-visible-max-height":a.maxHeight,list:a.classroomFilterByUserList},on:{"change-user":a.handleChangeUser}})],1):t._e()])])])]),t._v(" "),n("tbody",[a.isLoading?n("tr",{staticClass:"loading-wrapper"},[n("td",{attrs:{colspan:"3",align:"center"}},[n("div",{staticClass:"loading-spin"})])]):(null==(e=a.courseWithClassroomList)?void 0:e.length)?t._l(a.courseWithClassroomList,function(e){var r=e.course_id,o=e.course_name,i=e.classroom_list;return n("tr",{key:r},[n("td",{staticClass:"course-title-cell td-cell"},[o.length<=8?n("div",{staticClass:"course-name ellipsis"},[t._v("\n "+t._s(o)+"\n ")]):n("el-popover",{attrs:{placement:"top-start",width:"200",trigger:"hover",content:o}},[n("div",{staticClass:"course-name ellipsis",attrs:{slot:"reference"},slot:"reference"},[t._v("\n "+t._s(o)+"\n ")])])],1),t._v(" "),n("td",{attrs:{colspan:"2"}},[n("table",{staticClass:"nested"},t._l(i,function(e){var r=e.classroom_id,o=e.classroom_name;return n("tr",{key:r},[n("td",{staticClass:"class-name-cell td-cell",class:{disabled:t.disabled},style:"width: ".concat(a.classroomFilterByUserRowWidth),on:{click:function(e){t.disabled||a.handleClassroomClick(r)}
1}},[n("div",{staticClass:"flex items-cneter"},[n("i",{staticClass:"iconfont",class:[r in a.classroom_mapping?"icon-duoxuanxuanzhong":"icon-duoxuanweixuanzhong"]}),t._v(" "),n("div",{staticClass:"class-name-container"},[n("el-popover",{attrs:{placement:"top-start",trigger:"hover",content:o}},[n("p",{staticClass:"class-name ellipsis",class:{selected:r in a.classroom_mapping},attrs:{slot:"reference"},slot:"reference"},[t._v("\n "+t._s(o)+"\n ")])])],1)])])])}),0)])])}):n("tr",{staticClass:"empty-row-wrapper"},[n("td",{attrs:{colspan:"3",align:"center"}},[n("img",{attrs:{src:"https://qn-sfe.yuketang.cn/o_1hudb777i1onh1mqrf0rncfu459.png",width:"56",alt:""}}),t._v(" "),n("p",{staticStyle:{color:"rgba(144, 148, 157, 1)"}},[t._v("\n "+t._s(a.isProClassroom?t.$t("AICenter.OpenToClass.EmptyClass"):t.$t("AICenter.OpenToClass.EmptySelfClass"))+"\n ")])])]),t._v(" "),a.isLoadingNextClassrooms?n("tr",{staticClass:"loading-next-wrapper"},[n("td",{attrs:{colspan:"3",align:"center"}},[n("div",{staticClass:"loading-spin"})])]):t._e()],2)])]),t._v(" "),a.activeTab==a.DIALOG_TAB.AI_SHARE_CHAIN_CODE?n("div",{staticClass:"tab-content"},[n(a.ShareLink,{attrs:{"agent-id":a.agentId,"workflow-id":a.workflowId,"chat-params":a.props.chatParams}})],1):t._e()]),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:a.activeTab==a.DIALOG_TAB.AI_PUBLISH_TO_CLASS,expression:"activeTab == DIALOG_TAB.AI_PUBLISH_TO_CLASS"}],staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:a.close}},[t._v(t._s(t.$t("AICenter.AgentCooperate.Cancelled")))]),t._v(" "),n("el-button",{attrs:{type:"primary",disabled:!a.selectChangeEnableBtn},on:{click:a.handleConfirm}},[t._v(t._s(t.$t("AICenter.AgentCooperate.Determine")))])],1)],2)],1)},[],!1,null,"76e951e4",null).exports,X=n(36688),Q=n.n(X),ee=n(85369);function et(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function en(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){et(o,a,r,i,l,"next",e)}function l(e){et(o,a,r,i,l,"throw",e)}i(void 0)})}}function ea(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var er=(0,x.Z)({__name:"sort-scene-dialog",props:{spokenChatParams:{type:Object,default:function(){return{}}},imageTimbreData:{type:Array,default:function(){return[]}},dataType:{type:String,default:""},tabId:{type:Number,default:0}},emits:["scene-update"],setup:function(e,t){var n=t.expose,r=t.emit,o=(0,m.ref)({follow_text:{color:"--unit-zuoye",name:"æç« "},follow_talk:{color:"--unit-ketang",name:"对è¯"}}),i=(0,m.ref)(!1);function l(){return en(function(){return ea(this,function(e){switch(e.label){case 0:return[4,u()];case 1:return e.sent(),i.value=!0,[2]}})})()}var s=(0,m.ref)([]);function u(){return en(function(){var t,n,r,o;return ea(this,function(i){switch(i.label){case 0:return t=API.oral_assessment.user_scenes.replace(/\{workflow_id\}/,e.spokenChatParams.workflow_id),n={order:"order",agent_id:e.spokenChatParams.agentId,page_size:1e3,page:1},e.dataType===a.tN.follow_read&&(n.tag_id=e.tabId),[4,request.get(t,n)];case 1:return o=(r=i.sent()).data,r.success&&(s.value=o),[2]}})})()}return n({open:l}),{__sfc:!0,props:e,getTag:o,sortSceneDialog:i,open:l,handleDragStart:function(e){},getAvatar:function(t){if(t.is_system_figure){console.log("item.figure_id",t.figure_id);var n=e.imageTimbreData.find(function(e){return e.id===t.figure_id});return null==n?void 0:n.image_config.square}return t.figure},emits:r,handleClose:function(){i.value=!1},CheckResult:function(){var t=API.oral_assessment.order_scene.replace(/\{workflow_id\}/,e.spokenChatParams.workflow_id),n={order:s.value};request.post(t,n).then(function(e){e.success&&(i.value=!1,ee.Z.emit("sort-update","order"),r("scene-update"))})},listData:s,getSceneList:u,draggable:Q(),AI_COOPERATION_CODE:a.tN,Tag:P.Tag}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",[t("el-dialog",{staticClass:"sort-scene-dialog",attrs:{visible:n.sortSceneDialog,width:"716px","append-to-body":!0,"show-close":!1,"before-close":n.handleClose,"close-on-click-modal":!1},on:{"update:visible":function(e){n.sortSceneDialog=e}}},[t("template",{slot:"title"},[t("div",{staticClass:"top flex items-center justify-between"},[t("span",{staticClass:"f16 group-title bold"},[e._v(e._s(e.$t("AICenter.AgentCooperate.EditTheScene")))]),e._v(" "),t("div",{staticClass:"top-close-btn",on:{click:n.handleClose}},[t("i",{staticClass:"iconfont icon-cuowu"})])])]),e._v(" "),e.dataType===n.AI_COOPERATION_CODE.speech_evaluator_v2?[t(n.draggable,{staticClass:"flex flex-col space-x-8 draggable-list",attrs:{"ghost-class":"draggable-ghost"},on:{start:function(t){e.drag=!0},update:n.handleDragStart,end:function(t){e.drag=!1}},model:{value:n.listData,callback:function(e){n.listData=e},expression:"listData"}},e._l(n.listData,function(a){return t("div",{key:a.id,staticClass:"group-item flex items-center space-x-12"},[t("span",{staticClass:"icon-item move"},[t("i",{staticClass:"iconfont icon-paixu6dian"})]),e._v(" "),t("img",{staticClass:"sort-img",attrs:{src:n.getAvatar(a)}}),e._v(" "),t("div",{staticClass:"flex group-item-box space-x-8"},[t("div",{staticClass:"flex f15 group-item-title"},[e._v(e._s(a.name))]),e._v(" "),t("div",{staticClass:"flex"},[t("div",{staticClass:"group-item-content w-264"},[t("span",{staticClass:"role-label"},[e._v(e._s(e.$t("AICenter.AgentCooperate.AiCharacters")))]),e._v(" "),t("span",[e._v(e._s(a.ai_role))])]),e._v(" "),t("div",{staticClass:"group-item-content"},[t("span",{staticClass:"role-label"},[e._v(e._s(e.$t("AICenter.AgentCooperate.MyRole")))]),e._v(" "),t("span",[e._v(e._s(a.user_role))])])])])])}),0)]:e._e(),e._v(" "),e.dataType===n.AI_COOPERATION_CODE.follow_read?[t(n.draggable,{staticClass:"flex flex-col space-x-8 draggable-list",attrs:{"ghost-class":"draggable-ghost"},on:{start:function(t){e.drag=!0},update:n.handleDragStart,end:function(t){e.drag=!1}},model:{value:n.listData,callback:function(e){n.listData=e},expression:"listData"}},e._l(n.listData,function(a){var r,o,i;return t("div",{key:a.id,staticClass:"group-item flex items-center space-x-12"},[t("span",{staticClass:"icon-item move"},[t("i",{staticClass:"iconfont icon-paixu6dian"})]),e._v(" "),t("img",{staticClass:"sort-img",attrs:{src:null==a||null==(r=a.role_list[0])?void 0:r.avatar}}),e._v(" "),t("div",{staticClass:"flex group-item-box space-x-8"},[t("div",{staticClass:"flex f15 group-item-title"},[t(n.Tag,{attrs:{color:null==(o=n.getTag[null==a?void 0:a.code])?void 0:o.color,size:"small",horizontal:!0,fillStyle:"border"}},[e._v(e._s(null==(i=n.getTag[null==a?void 0:a.code])?void 0:i.name))]),e._v("\n "+e._s(null==a?void 0:a.name)+"\n ")],1),e._v(" "),t("div",{staticClass:"flex"},[t("div",{staticClass:"group-item-content w-264"},[t("span",[e._v("æ ç¾")]),e._v(" "),t("span",{staticClass:"role-label"},[e._v(e._s(null==a?void 0:a.topic))])]),e._v(" "),t("div",{staticClass:"group-item-content"},[t("span",[e._v("é¾åº¦")]),e._v(" "),t("span",{staticClass:"role-label"},[e._v(e._s(null==a?void 0:a.level))])])])])])}),0)]:e._e(),e._v(" "),t("template",{staticClass:"dialog-footer",slot:"footer"},[t("div",{staticClass:"flex flex-end"},[t("div",{staticClass:"btn-base f14 bold pointer",on:{click:n.handleClose}},[e._v("\n "+e._s(e.$t("Base.Cancel"))+"\n ")]),e._v(" "),t("div",{staticClass:"btn-base btn-confirm f14 bold pointer",on:{click:n.CheckResult}},[e._v("\n "+e._s(e.$t("Base.Confirm"))+"\n ")])])])],2)],1)},[],!1,null,"095ecf28",null).exports,eo=n(65861),ei=(0,x.Z)({__name:"agent-intro",props:{formData:{type:Object,default:function(){return{}}},query:{type:Object,default:function(){return{}}}},setup:function(e){return{__sfc:!0,props:e}}},function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"flex flex-col space-x-16"},[e("div",{staticClass:"flex justify-center items-center space-x-8"},[e("span",{staticClass:"line"}),this._v(" "),e("span",{staticClass:"text-gray-001"},[this._v(this._s(this.$t("AICenter.AgentCooperate.Description")))]),this._v(" "),e("span",{staticClass:"line"})]),this._v(" "),e("div",{staticClass:"text-gray-002 pd-bt-16",domProps:{innerHTML:this._s(this.formData.intro)}})])},[],!1,null,"80443972",null).exports,el=n(44021),es=(0,x.Z)({__name:"system-agent",props:{formData:{type:Object,default:function(){return{}}},query:{type:Object,default:function(){return{}}},auth:{type:Object,default:function(){return{}}}},setup:function(e){var t=(0,m.computed)(function(){return e.formData.code===a.tN.thuChemAgent||e.query.code===a.tN.thuChemAgent});return{__sfc:!0,props:e,isThuChemAgent:t,IntelligentAgent:eo.Z,agentIntro:ei,ThuChemAgentConfig:el.default}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"system-agent detail-container flex flex-col scroll-y-1",class:{"detail-container--thu-chem":n.isThuChemAgent}},[n.isThuChemAgent?t(n.ThuChemAgentConfig,{attrs:{"form-data":e.formData,query:e.query,auth:e.auth},on:{"update:formData":function(t){e.formData=t},"update:form-data":function(t){e.formData=t}}}):t("div",{staticClass:"detail-container__body flex flex-col space-x-24"},[t("div",{staticClass:"detail-container__item",attrs:{id:"intelligent-agent"}},[t(n.IntelligentAgent,{attrs:{"form-data":e.formData,query:e.query,auth:e.auth},on:{"update:formData":function(t){e.formData=t},"update:form-data":function(t){e.formData=t}}})],1),e._v(" "),t("div",{staticClass:"detail-container__item",attrs:{id:"agent-intro"}},[t(n.agentIntro,{attrs:{"form-data":e.formData,query:e.query},on:{"update:formData":function(t){e.formData=t},"update:form-data":function(t){e.formData=t}}})],1)])],1)},[],!1,null,"396c4543",null).exports,eu=n(48671);function ec(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}var ed=(0,x.Z)({__name:"preview",props:{previewUrl:{type:String,default:""},isPopup:{type:Boolean,default:!1},popupContent:{type:String,default:""}},setup:function(e){var t=(0,m.computed)(function(){return e.previewUrl||""});return{__sfc:!0,props:e,displayUrl:t,handleOpenPreview:function(){var t;return(t=function(){return function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
1,trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:if(!e.previewUrl)return[2];if(!e.isPopup)return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,v.MessageBox.confirm(e.popupContent,"æç¤º",{confirmButtonText:"ç¡®å®",cancelButtonText:"åæ¶",customClass:"yktMessageBox ykt-message-box",showClose:!1,closeOnClickModal:!1})];case 2:return t.sent(),[3,4];case 3:return t.sent(),[2];case 4:return window.open(e.previewUrl,"_blank","noopener,noreferrer"),[2]}})},function(){var e=this,n=arguments;return new Promise(function(a,r){var o=t.apply(e,n);function i(e){ec(o,a,r,i,l,"next",e)}function l(e){ec(o,a,r,i,l,"throw",e)}i(void 0)})})()},RainBtn:P.RainBtn}}},function(){var e=this._self._c,t=this._self._setupProxy;return e("div",{staticClass:"outer-link-preview"},[e("div",{staticClass:"outer-link-preview__card"},[e("div",{staticClass:"outer-link-preview__title"},[this._v("å¤é¾å°å")]),this._v(" "),e("div",{staticClass:"outer-link-preview__url"},[this._v("\n "+this._s(t.displayUrl)+"\n ")]),this._v(" "),e(t.RainBtn,{staticClass:"outer-link-preview__action",attrs:{type:"1",size:"small",text:"跳转",icon:"icon-tiaozhuan",disabled:!this.previewUrl},on:{click:t.handleOpenPreview}})],1)])},[],!1,null,"6221fc8e",null).exports,ef=n(35378),ep=n(28305);function ev(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function eh(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function em(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){eh(o,a,r,i,l,"next",e)}function l(e){eh(o,a,r,i,l,"throw",e)}i(void 0)})}}function eg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}function e_(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function ey(e){return function(e){if(Array.isArray(e))return ev(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eb(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eb(e,t){if(e){if("string"==typeof e)return ev(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ev(e,t)}}function ew(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
1,trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var eC=(0,x.Z)({__name:"detail",props:{agentId:{type:[String,Number],default:""},workflowId:{type:[String,Number],default:""},code:{type:String,default:""},goBackEmit:{type:Boolean,default:!1},showDelete:{type:[Boolean,void 0],default:void 0},showShare:{type:[Boolean,void 0],default:void 0}},emits:["go-back"],setup:function(e,t){var n=t.emit,f=(0,g.yj)(),b=(0,g.tv)(),w=(0,_.eJ)(["selectedCourseInfo"]).selectedCourseInfo,C=(0,m.ref)(null),O=(0,o.Z)(e),S=O.agentId,x=O.source,k=O.isStudentCreateAgentCooperation,I=O.gotoList,T=O.user_id,E=(0,m.computed)(function(){return{category:11,entity_type:ex.value.classroom_id?1:4,entity_id:ex.value.classroom_id||0,capability_id:ex.value.capability_id,agentId:ex.value.agent_id,id:ex.value.agent_id,workflow_id:f.query.workflow_id||ex.value.workflow_id,source_id:""}}),D=(0,m.computed)(function(){return{isFile:!0,maxWord:50,isGlobalDrawer:!1,isMobile:!1}}),P=(0,m.ref)(null),j=(0,m.ref)(null),L=(0,m.ref)(null),R=(0,m.computed)(function(){var t;return{agentId:S.value,university_id:null==(t=w.value)?void 0:t.university_id,workflowId:e.workflowId||f.params.id,code:e.code||f.query.code,source:x.value}}),M=(0,m.computed)(function(){return ex.value.code===a.tN.thuChemAgent||R.value.code===a.tN.thuChemAgent}),N=(0,m.computed)(function(){return a.tN.k12Rpg===et.code}),B={avatar:[".ai-chat-header"],opening:[".chat-window-top-wrapper"],persona:["#prompt-input-multiple"]},F=null,V=(0,m.reactive)({visible:!1,currentStep:null,progress:0,steps:[],isGenerating:!1,guide:{current:"",completed:[],rect:null},closeVersion:0}),q={state:V,update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.guide?Z(e.guide):V.guide;Object.assign(V,e_(eg({},e),{steps:Array.isArray(e.steps)?ey(e.steps):V.steps,guide:t})),e.guide&&J()},close:function(){z()}};function z(){V.visible=!1,V.closeVersion+=1}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.current||"",n=t&&t===V.guide.current;return{current:t,completed:Array.isArray(e.completed)?ey(e.completed):[],rect:e.rect||(n?V.guide.rect:null)}}function J(){if(!V.guide.current||"undefined"==typeof window){V.guide=e_(eg({},V.guide),{rect:null});return}F&&window.cancelAnimationFrame(F),(0,m.nextTick)(function(){F=window.requestAnimationFrame(function(){F=null,K()})})}function K(){var e=W(V.guide.current);V.guide=e_(eg({},V.guide),{rect:e})}function W(e){var t=B[e];if(!t||"undefined"==typeof document)return null;var n=document.querySelector(".agent-cooperation-detail .right");if(!n)return null;var a=$(n,t);if(!a)return null;var r=a.getBoundingClientRect();return{top:r.top,left:r.left,width:r.width,height:r.height}}function $(e,t){var n=!0,a=!1,r=void 0;try{for(var o,i=t[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var l=o.value,s=Array.from(e.querySelectorAll(l)).find(function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return t.width>0&&t.height>0&&"none"!==n.display&&"hidden"!==n.visibility&&"0"!==n.opacity});if(s)return s}}catch(e){a=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(a)throw r}}return null}function X(){F&&"undefined"!=typeof window&&(window.cancelAnimationFrame(F),F=null)}(0,m.provide)("k12GenerationTvController",q);var Q=R.value.workflowId,et=(0,m.reactive)({isShare:!1,isSystem:!1,modifyTime:"",showTime:!1,disabled:!1,isPublish:!1,isSynced:!0,showPublish:!0,showShare:!0,showSync:!0,showDelete:!0,showAction:!0,showSaveDraftTip:!0,syncDisabled:!1,co
1de:""}),en=(0,m.computed)(function(){return[a.tN.rpg].includes(et.code)&&eC.value.editable||et.code!==a.tN.rpg});(0,m.watch)(function(){return[et.isSynced,et.code]},function(){et.showSaveDraftTip=!(et.code===a.tN.TopicRobot&&et.isSynced)},{immediate:!0,deep:!0});var ea=(0,m.ref)([]),eo=(0,m.ref)(),ei=(0,m.ref)(null),el=(0,m.ref)(!1),ec=(0,m.ref)(!1),ev=(0,eu.d)(R.value),eh=ev.state,eC=ev.auth,eO=(0,m.computed)(function(){return N.value&&1===eh.loading&&eC.value.readonly}),eS=(0,y.c)({id:Q,apis:{detail:"/c27/online_courseware/agent/workflow/".concat(Q,"/convert2form/"),edit:"/c27/online_courseware/agent/workflow/".concat(Q,"/"),delete:"/c27/online_courseware/agent/workflow/".concat(Q,"/")},updateFromServer:!1,initFormData:{agent_id:S.value},query:{agent_id:S.value,source:x.value},afterResponse:function(t){return em(function(){var n,r,o,i,l,s,u,f,p,v,h,m,g,_,y,b,C,O,x,A,I,T,E,D,P,j,L;return ew(this,function(R){switch(R.label){case 0:if(n=t.data.code===a.tN.reviewTutor,r=t.data.code===a.tN.TopicRobot||M.value,et.isShare=t.data.is_share,et.disabled=!t.data.is_modify,et.isSystem=t.data.is_system,et.showPublish=n||!et.isSystem||r,et.showShare=!(t.data.code===a.tN.TopicRobot||k.value),"boolean"==typeof e.showShare&&(et.showShare=e.showShare),"boolean"==typeof e.showDelete&&(et.showDelete=e.showDelete),et.showSync=et.showPublish&&!k.value,et.showAction=et.showPublish||et.showShare||et.showDelete||et.showSync,et.code=t.data.code,t.data.code===a.tN.commonAgent&&(eo.value=!0===t.data.use_prompt,t.data.team_info=t.data.team_info||{team_id:""},t.data.llm_config=t.data.llm_config||{provider:"xuetang",used_provider:-1,enable_thinking:!1,show_reasoning_content:!0},t.data.rag_config=t.data.rag_config||{min_score:.8,top_n:10,hybrid:!0,rag_template:"",return_source:!0,use_default_template:!0,rerank:!1,rerank_top_n:5},Array.isArray(t.data.recommend_questions)||(t.data.recommend_questions=[]),Array.isArray(t.data.qa_pairs_rq_score_range)||(t.data.qa_pairs_rq_score_range=[.8,.9]),"number"!=typeof t.data.used_kl&&(t.data.used_kl=0),"boolean"!=typeof t.data.use_mcp&&(t.data.use_mcp=!1),"boolean"!=typeof t.data.rag_config.rerank&&(t.data.rag_config.rerank=!1),"number"!=typeof t.data.rag_config.rerank_top_n&&(t.data.rag_config.rerank_top_n=5),Array.isArray(t.data.input_type_choice)&&t.data.input_type_choice.length||(t.data.input_type_choice=[1]),Array.isArray(t.data.output_type_choice)&&t.data.output_type_choice.length||(t.data.output_type_choice=[1]),null==t.data.input_default&&(t.data.input_default=t.data.input_type_choice[0]),"boolean"!=typeof t.data.auto_play_voice&&(t.data.auto_play_voice=!1),null==t.data.history_num&&(t.data.history_num=20),"boolean"!=typeof t.data.show_logo&&(t.data.show_logo=!0),"string"!=typeof t.data.logo&&(t.data.logo="")),t.data.modified&&(et.showTime=t.data.is_modify),t.data.code!==a.tN.speech_evaluator_v2)return[3,4];return et.showAction=t.data.show_evaluator_speech,[4,d.ZP.get(c.Z.pronunciation_evaluates.speech_evaluator_resource)];case 1:if(i=(o=R.sent()).data,o.success&&(ea.value=i),"number"!=typeof t.data.used_kl&&(t.data.used_kl=0),t.data.rag_config||(t.data.rag_config={min_score:0,top_n:1,rerank:!1,rerank_top_n:1,hybrid:!1}),t.data.llm_config)return[3,3];return[4,d.ZP.get("/c27/online_courseware/agent/".concat(S.value,"/agent_conf/"))];case 2:(s=R.sent()).success&&(l=s.data),t.data.llm_config={used_provider:l&&l.used_provider?l.used_provider:"æºè°±GLM-4-Plus",provider:l&&l.provider?l.provider:"xuetang"},R.label=3;case 3:t.data.language||(t.data.language="English",setTimeout(function(){e0()})),eq(t.data),R.label=4;case 4:if(t.data.code===a.tN.get_exercise&&(v=void 0===(p=(f=t.data.extra_info||{}).is_send)?"1":p,m=void 0===(h=f.knowledgegraph_recommend_item_source)?1:h,_=void 0===(g=f.learnningspace_recommend_item_source)?1:g,b=void 0===(y=f.language)?"zh-cn":y,O=void 0===(C=f.similar_question)?{}:C,A=void 0===(x=f.similar_question_setting)?{}:x,I=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(f,["is_send","knowledgegraph_recommend_item_source","learnningspace_recommend_item_source","language","similar_question","similar_question_setting"]),T=[O.has_calculation?"formula":"",O.has_image?"image":""].filter(
1Boolean),t.data.extra_info=eg({language:b,is_send:v,knowledgegraph_recommend_item_source:m,learnningspace_recommend_item_source:_,similar_question_setting:{enabled:!!(null!=(E=A.enabled)?E:O.enabled),generation_role:A.generation_role||O.expert_name||(null==(u=w.value)?void 0:u.name)||"",problem_attributes:null!=(D=A.problem_attributes)?D:T.length?T:["formula"]}},I)),t.data.code!==a.tN.follow_read)return[3,6];return[4,d.ZP.get(c.Z.pronunciation_evaluates.speech_evaluator_resource)];case 5:j=(P=R.sent()).data,P.success&&(ea.value=j),t.data.resource_type=t.data.resource_type||1,t.data.language=t.data.language||"English",["accuracy_rate","fluency_rate","integrity_rate"].some(function(e){return void 0===t.data[e]||null===t.data[e]})&&(t.data.accuracy_rate=60,t.data.fluency_rate=20,t.data.integrity_rate=20),setTimeout(function(){e0()},10),R.label=6;case 6:return(L=t.data).code===a.tN.reviewTutor&&(L.notice_content="string"==typeof L.notice_content?L.notice_content:"string"==typeof L.opening_remarks?L.opening_remarks:"",L.logo="string"==typeof L.logo?L.logo:"",L.show_logo="boolean"!=typeof L.show_logo||L.show_logo,L.team_info=L.team_info||{team_id:""}),ej(L),eL(L),[2,t]}})})()}}),ex=eS.formData,eA=eS.putItem,ek=eS.loading,eI=eS.deleteItem,eT=eS.isDelayReady,eE=(0,ef.gg)({formData:ex,outerLinkCode:a.tN.outer_link}),eD=eE.outerLinkPreviewUrl,eP=eE.fetchOuterLinkPreviewUrl;function ej(e){e.code===a.tN.rpg&&(Array.isArray(e.rpg__input_type_choice)&&0!==e.rpg__input_type_choice.length||(e.rpg__input_type_choice=[1]),Array.isArray(e.rpg__output_type_choice)&&0!==e.rpg__output_type_choice.length||(e.rpg__output_type_choice=[1]),e.rpg__input_default||(e.rpg__input_default=e.rpg__input_type_choice[0]))}(0,m.watch)(function(){var e,t,n,a;return[null==(e=ex.value)?void 0:e.code,null==(t=ex.value)?void 0:t.has_param,null==(n=ex.value)?void 0:n.redirect_link,null==(a=ex.value)?void 0:a.workflow_id]},function(e){if((function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,a,r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw a}}return o}}(e,1)||eb(e,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0]!==a.tN.outer_link){eD.value="";return}eP()},{immediate:!0});var eL=function(e){if([a.tN.rpg,a.tN.k12Rpg].includes(e.code)){var t=e.rpg__input_type_choice;te.isShowRecordBarWeb=!!(t&&Array.isArray(t)&&2===t.length&&t.includes(2)),te.isShowRecordBarWebAudio=!!(t&&Array.isArray(t)&&1===t.length&&t.includes(2));var n=e.rpg__output_type_choice;te.isShowRecordPlay=!!(n&&Array.isArray(n)&&n.includes(2)),te.isAutoPlayVoice=!!e.rpg__auto_play_voice;var r=e.rpg__voice;r?te.audioVoice=r:te.audioVoice="mashu"}else if(e.code===a.tN.commonAgent){var o,i=e.input_type_choice||[1],l=e.output_type_choice||[1];te.isShowRecordBarWeb=2===i.length&&i.includes(2),te.isShowRecordBarWebAudio=1===i.length&&i.includes(2),te.isShowRecordPlay=l.includes(2),te.isAutoPlayVoice=!!e.auto_play_voice,te.audioVoice=(null==(o=e.speak)?void 0:o.type_id_4)||"mashu"}},eR=function(){var e={agent_id:S.value,source:x.value};d.ZP.get("/c27/online_courseware/agent/workflow/".concat(Q,"/publish_status/"),e).then(function(e){e.success&&(et.isPublish=e.data.publish_status,e.data.publish_status&&ez().then(function(e){et.isSynced=e.data.sync_status}))})},eM=function(e){ex.value=eg({},ex.value,e)},eN=(0,m.ref)(!1),eB=function(e){eN.value=e.disabled};(0,m.onMounted)(function(){return em(function(){return ew(this,function(e){return eR(),tn(),window.addEventListener("resize",J),window.addEventListener("scroll",J,!0),ee.Z.on(i.aH.UPDATE_FORMDATA,eM),ee.Z.on(i.aH.UPDATE_FORMDATA_STATUS,eB),[2]})})()}),(0,m.onBeforeUnmount)(function(){window.removeEventListener("resize",J),window.removeEventListener("scroll",J,!0),X()}),(0,m.onBeforeMount)(function(){ee.Z.off(i.aH.UPDATE_FORMDATA,eM),ee.Z.off(i.aH.UPDATE_FORMDATA_STATUS,eB),tr(S.value)});var eU=(0,m.ref)(null);function eH(){return em(function(){var e;return ew(this,function(t){switch(t.label){case 0:if(to(),ex.value.code!==a.tN.speech_evaluator_v2&&ex.value.code!==a.tN.follow_read)return[3,4];if(!(e=ex.value.code===a.tN.speech_evaluator_v2))return[3,2];return[4,eJ()];case 1:e=!t.sent(),t.label=2;case 2:if(e)return[2];return[4,eq(ex.value)];case 3:if(t.sent(),0===eV.value.length)return(0,v.Message)({message:"åå¸å¤±è´¥ï¼è³å°ä¸æ¶ä¸ä¸ªåºæ¯æå¯å叿ºè½ä½",type:"error",customClass:"toastTopWarning toastTopWarningIcon",iconClass:"iconfont icon-cu-jingshi"}),[2];t.label=4;case 4:return P.value.validate(function(e){return em(function(){var t,n,a,r;return ew(this,function(o){return e?k.value?(e1(!1),[2]):(eZ().then(function(){eU.value.open(N.value?"2":"1")}),[2]):((t=P.value.fields.find(function(e){return"error"===e.validateState}))&&(n=t.$el,a=document.querySelector(".detail-container"),n&&a&&(r=n.offsetTop,a.scrollTo({top:r-100,behavior:"smooth"}
1))),[2,!1])})})()}),[2]}})})()}var eG=(0,m.ref)(null);function eF(){eG.value&&eG.value.getSceneListed()}(0,m.provide)("sceneSortChange",eF);var eV=(0,m.ref)([]);function eq(e){return em(function(){var t,n,a,r,o;return ew(this,function(i){switch(i.label){case 0:return t=c.Z.oral_assessment.user_scenes.replace(/\{workflow_id}/,e.workflow_id),n={agent_id:S.value,source:x.value},[4,d.ZP.get(t,n)];case 1:return r=(a=i.sent()).success,o=a.data,r&&(eV.value=o),[2]}})})()}var ez=function(){return em(function(){var e,t;return ew(this,function(n){switch(n.label){case 0:return e="/c27/online_courseware/agent/workflow/".concat(Q,"/sync_status/"),t={agent_id:S.value,source:x.value},[4,d.ZP.get(e,t)];case 1:return[2,n.sent()]}})})()};function eZ(){return em(function(){var e,t;return ew(this,function(n){switch(n.label){case 0:return e="/c27/online_courseware/agent/workflow/".concat(Q,"/sync/"),t={agent_id:S.value},[4,d.ZP.post(e,t)];case 1:return[2,n.sent()]}})})()}var eJ=function(){return em(function(){var e,t,n,a,r;return ew(this,function(o){switch(o.label){case 0:return e=c.Z.oral_assessment.show_assessment.replace(/\{workflow_id}/,ex.value.workflow_id),t={agent_id:S.value},[4,d.ZP.get(e,t)];case 1:if(a=(n=o.sent()).success,r=n.data,a&&!r.show_evaluator_speech)return(0,v.Message)({message:"æéæ ¡éªæªéè¿ï¼å³å°å·æ°é¡µé¢",type:"error",customClass:"toastTopWarning toastTopWarningIcon",iconClass:"iconfont icon-cu-jingshi"}),setTimeout(function(){location.reload()},2e3),[2,!1];return[2,!0]}})})()},eK=(0,m.reactive)({isSaving:!1}),eW=(0,m.ref)(null),e$=(0,m.ref)(!1);function eY(e,t){ex.value[e]=t}function eX(e){var t;(ex.value.code===a.tN.rpg||ex.value.code===a.tN.commonAgent)&&(null==(t=ex.value.llm_config)?void 0:t.provider)==="xuetang"&&(eW.value=e,e1())}function eQ(e){return em(function(){var t,n,r,o,i,l,s;return ew(this,function(u){switch(u.label){case 0:if(r=ex.value.code===a.tN.rpg||ex.value.code===a.tN.commonAgent,null===e||eW.value!==e||!r||(null==(t=ex.value.llm_config)?void 0:t.provider)!=="xuetang"||(null==(n=ex.value.llm_config)?void 0:n.used_provider)!==e)return[2];u.label=1;case 1:return u.trys.push([1,5,6,7]),[4,d.ZP.get("/c27/online_courseware/agent/workflow/".concat(Q,"/convert2form/"),{agent_id:S.value,source:x.value})];case 2:if(l=(i=u.sent()).success,s=i.data,!(l&&(null==s?void 0:s.llm_config)&&String(s.llm_config.used_provider)===String(e)&&eW.value===e&&(null==(o=ex.value.llm_config)?void 0:o.used_provider)===e))return[3,4];return e$.value=!0,eW.value=null,ex.value.llm_config=s.llm_config,[4,(0,m.nextTick)()];case 3:u.sent(),u.label=4;case 4:return[3,7];case 5:return console.log(u.sent()),[3,7];case 6:return e$.value=!1,[7];case 7:return[2]}})})()}function e0(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return em(function(){var t,n;return ew(this,function(r){return to(),(ex.value.code!==a.tN.speech_evaluator_v2||ex.value.name)&&(n=eW.value,eK.isSaving=!0,null==P||null==(t=P.value)||t.validate(function(){return em(function(){var t,r,o,i,l;return ew(this,function(s){switch(s.label){case 0:return[4,eA(ex.value,{params:{agent_id:S.value}})];case 1:if(r=(t=s.sent()).success,o=t.data,!r)return[3,10];if(!(ex.value.code===a.tN.commonAgent&&!1===eo.value&&!0===ex.value.use_prompt&&!el.value&&!ec.value))return[3,6];ec.value=!0,s.label=2;case 2:return s.trys.push([2,4,5,6]),[4,null==(l=ei.value)||null==(i=l.refreshCurrentAbilityWithContext)?void 0:i.call(l)];case 3:return el.value=!0===s.sent(),[3,6];case 4:return console.log(s.sent()),[3,6];case 5:return ec.value=!1,[7];case 6:if(e?(ex.value.code===a.tN.reviewTutor&&(et.showTime=!0,et.syncDisabled=!1),M.value&&(et.showTime=!0),et.modifyTime=p()(1e3*o.modified).format("HH:mm")):(0,v.Message)({message:"å·²ä¿å",type:"success",customClass:"toastMessage",iconClass:"iconfont icon-yuanquangou-mianzhuang"}),et.isSynced=!1,ex.value.code===a.tN.get_exercise&&eZ().then(function(){}),eL(ex.value),ex.value.code!==a.tN.outer_link)return[3,8];return[4,eP()];case 7:s.sent(),s.label=8;case 8:return[4,eQ(n)];case 9:s.sent(),s.label=10;case 10:return[2]}})})()}),eK.isSaving=!1),[2]})})()}(0,m.provide)("rolePlayingSave",e0),(0,m.provide)("rolePlayingSetFormData",eY),(0,m.provide)("rolePlayingRefreshLlmConfig",eX);var e1=(0,h.debounce)(e0,1e3);(0,m.watch)(ex,function(e,t){eC.value.editable&&e&&e.id&&!eK.isSaving&&!e$.value&&t.id&&eT.value&&(e.code===a.tN.reviewTutor&&(et.syncDisabled=!0),e1())},{deep:!0});var e2=(0,m.ref)(0),e4=(0,m.ref)(null);function e3(){return e.goBackEmit?void n("go-back"):k.value||f.query.from?void b.back():void I()}var e6=(0,m.computed)(function(){var e,t;return{entity_type:k.value?30:4,entity_id:0,id:S.value,category:11,level:null==(e=w.value)?void 0:e.level,agentId:S.value,university_id:null==(t=w.value)?void 0:t.university_id,capability_id:ex.value.capability_id,has_init:ex.value.has_init,agent_cooperation_id:Q,user_id:T}}),e5=(0,m.computed)(function(){var e,t,n,r=ex.value.extra_info||{},o=ex.value.code===a.tN.commonAgent,i=o?ex.value.logo:r.show_logo&&r.logo?r.logo:ex.value.avatar;return{extra_info:{name:ex.value.name,name_en:r.name_en,desc:ex.value.desc,opening_remarks:ex.value.opening_remarks,logo:i,avatar:ex.value.avatar,show_logo:o?ex.value.show_logo:r.show_logo,use_prompt:o?ex.value.use_prompt:r.use_prompt,allow_attachment:o?ex.value.allow_attachment:r.allow_attachment,return_source:o?null==(e=ex.value.rag_config)?void 0:e.return_source:r.return_source,input_type_choice:o?ex.value.input_type_choice:r.input_type_choice,output_type_choice:o?ex.value.output_type_choice:r.output_type_choice,input_default:o?ex.value.input_default:r.input_default,auto_play_voice:o?ex.value.auto_play_voice:r.auto_play_voice,speak:o?ex.value.speak:r.speak,op_reminder:null!=(t=ex.value.op_reminder)?t:r.op_reminder,input_tip_text:null!=(n=ex.value.input_tip_text)?n:r.input_tip_text},recommend_prompt_list:ex.value.recommend_questions}}),e8=(0,m.computed)(function(){if(!M.value)return{};var e=ex.value.speak||{};return{isShowRecordPlay:!0===e.is_open||1===e.is_open||"1"===e.is_open,isAutoPlayVoice:!1,audioVoice:e.type_id_4||"mashu",audioVoiceType:String(e.type_4||"1")}}),e7=(0,m.computed)(function(){return eO.value?{space:"28px 60px 0"}:{space:"16px 32px",offset:"128px"}}),e9=(0,m.computed)(function(){return eg(e_(eg(e_(eg({},i.u_),{avatar:ex.value.avatar,placeholder:"",title:window.i18n.t("AICenter.Preparation.PrepareAssistant")||"æºè½å¤è¯¾å©æ",description:"",search_tip:window.i18n.t("AICenter.ResourceRetrieval.SearchTopic")||"å¸®ææ¾ä¸äºå¦ä¹ èµæï¼ä¸»é¢æ¯:",search_placeholder:window.i18n.t("AICenter.ResourceRetrieval.SearchTopicPlaceholder")||"请è¾å
¥ä¸»é¢",isImage:!0,isIframe:!1,isWelcomeIcon:!1,isCreate:k.value,isHistory:k.value,isClean:!k.value,isGlobalDrawer:!1,feedbackCross:!0,imageFixed:256,onlyTips:!0,imgPreview:"outside",isFile:!0,hideLogo:!0,isAgent:!0,isTools:!0,isFeedback:!1,drawerOptions:{isGlobalDrawer:!0,isMobile:!0},isShowNetworkSearch:k.value}),te,e8.value),{code:R.value.code,inputMaskText:ex.value.code===a.tN.reviewTutor?"å½åæºè½ä½ä¸æ¯æè°è¯":"",thinkingConfig:ex.value.code===a.tN.rpg||ex.value.code===a.tN.commonAgent?ex.value.llm_config:void 0,rpgUseInputSetting:!0,isMixedImageMode:!!N.value,uploadBtnShow:k.value||N.value||M.value||ex.value.code===a.tN.commonAgent&&!0===ex.value.allow_attachment}),ex.value.code===a.tN.commonAgent?{canAttachment:!0===ex.value.allow_attachment}:{})}),te=(0,m.reactive)({isShowRecordBarWeb:!1,isAutoPlayVoice:!1,isShowRecordPlay:!1,isShowRecordBarWebAudio:!1,audioVoice:"mashu"});(0,m.watch)(function(){var e,t;return(null==(e=ex.value)?void 0:e.code)===a.tN.commonAgent?[ex.value.input_type_choice,ex.value.output_type_choice,ex.value.auto_play_voice,null==(t=ex.value.speak)?void 0:t.type_id_4]:null},function(){var e;(null==(e=ex.value)?void 0:e.code)===a.tN.commonAgent&&eL(ex.value)},{deep:!0,immediate:!0});var tt=(0,m.ref)({});function tn(){return em(function(){var e,t,n;return ew(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,(0,r.Hz)(S.value)];case 1:return t=(e=a.sent()).success,n=e.data,t&&(tt.value=n),[3,3];case 2:return console.log(a.sent()),[3,3];case 3:return[2]}})})()}var ta=(0,m.ref)([]),tr=function(e){return em(function(){var t,n,a;return ew(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,(0,r.Vv)(e)];case 1:if(n=(t=o.sent()).success,a=t.data,n)return ta.value=a.map(function(e){return{label:e.name,value:e.id,is_default:e.is_default}}),[2,a];return[2,[]];case 2:return console.log(o.sent()),[2,[]];case 3:return[2]}})})()};function to(){var e,t;ex.value.code===a.tN.reviewTutor&&(null==(t=L.value)||null==(e=t.syncEditorData)||e.call(t))}return{__sfc:!0,route:f,router:b,selectedCourseInfo:w,getExerciseRightPanelRef:C,props:e,emits:n,agentId:S,source:x,isStudentCreateAgentCooperation:k,gotoList:I,user_id:T,spokenChatParams:E,options:D,formRef:P,headerBarRef:j,templateRef:L,queryData:R,isThuChemAgent:M,isK12Rpg:N,GUIDE_TARGET_SELECTOR_MAP:B,guideMeasureRaf:F,k12GenerationTvState:V,k12GenerationTvController:q,handleCloseK12GenerationTv:z,normalizeGenerationGuide:Z,scheduleK12GenerationGuideRectSync:J,syncK12GenerationGuideRect:K,measureK12GenerationGuideTarget:W,findVisibleGuideTarget:$,clearK12GenerationGuideMeasureFrame:X,id:Q,pageStatus:et,isShowLeftPartConf:en,imageTimbreData:ea,initialCommonAgentUsePrompt:eo,chatRef:ei,hasRefreshedCommonAgentPromptCapability:el,isRefreshingCommonAgentPromptCapability:ec,authState:eh,auth:eC,isK12Readonly:eO,formData:ex,putItem:eA,loading:ek,deleteItem:eI,isDelayReady:eT,handleGetExerciseRightPanelChange:function(e){var t;null==(t=C.value)||t.handlePanelChange(e)},outerLinkPreviewUrl:eD,fetchOuterLinkPreviewUrl:eP,initRpgFormDataDefaults:ej,setAudioSettings:eL,getPublishStatus:eR,updateFormData:eM,isTemporaryDisabled:eN,updateFormDataStatus:eB,handleDelete:function(){et.disabled||(0,v.MessageBox)({title:"å 餿é",message:k.value?"å·²åå¸çççº§å°æ æ³ä½¿ç¨è¯¥æºè½ä½ï¼å é¤åæ æ³æ¢å¤ï¼è¯·ç¡®è®¤æ¯å¦å é¤ï¼":"æºè½ä½å é¤åæ æ³æ¢å¤ï¼è¯·ç¡®è®¤æ¯å¦å é¤ï¼",customClass:"yktMessageBox agent-cooperation-delete-dialog",showClose:!1,confirmButtonText:"ç¡®å®",cancelButtonText:"åæ¶",showCancelButton:!0,showConfirmButton:!0,confirmButtonClass:"delBtn",closeOnClickModal:!1}).then(function(){return em(function(){return ew(this,function(e){switch(e.label){case 0:return[4,eI({data:{agent_id:S.value}},{params:{agent_id:S.value,source:x.value}})];case 1:return e.sent().success&&e3(),[2]}})})()}).catch(function(){})},publishDialogRef:eU,handlePrimaryAction:function(){return em(function(){return ew(this,function(e){switch(e.label){case 0:if(ex.value.code!==a.tN.reviewTutor)return[3,5];if(et.syncDisabled)return[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,eZ()];case 2:return e.sent(),(0,v.Message)({message:"忥æå",type:"success",customClass:"toastMessage",iconClass:"iconfont icon-yuanquangou-mianzhuang"}),et.isSynced=!0,[3,4];case 3:return console.error("ä½ä¸å¤çåæ¥å¤±è´¥",e.sent()),(0,v.Message)({message:"åæ¥å¤±è´¥",type:"error",customClass:"toastMessage",iconClass:"iconfont icon-yuanquancha-mianzhuang icon-danger-002"}),[3,4];case 4:return[2];case 5:return[4,eH()];case 6:return e.sent(),[2]}})})()},handlePublish:eH,chatListRef:eG,syncMoblic:eF,moblieSortUpdate:function(){eG.value&&eG.value.sceneSortUpdate()},listedData:eV,getSceneList:eq,handleShare:function(e){return em(function(){return ew(this,function(t){switch(t.label){case 0:if(et.disabled||!eC.value.editable)return[2];return[4,d.ZP.post("/c27/online_courseware/agent/workflow/".concat(Q,"/share/"),{agent_id:S.value,is_share:e},{params:{agent_id:S.value,source:x.value}})];case 1:return t.sent().success&&(e?j.value.openShareAuth():j.value.closeShareAuth(),et.isShare=e),[2]}})})()},getSyncStatus:ez,handleSync:function(){return em(function(){return ew(this,function(e){return et.disabled||(to(),P.value.validate(function(e){return em(function(){return ew(this,function(t){return e&&(0,v.MessageBox)({title:"忥æé",message:"æºè½ä½è®¾ç½®åçååï¼æ¯å¦åæ¥ç»å¦çï¼",customClass:"yktMessageBox",showClose:!1,confirmButtonText:"忥ç»å¦ç",cancelButtonText:"å为è稿",showConfirmButton:!0,showCancelButton:!0,confirmButtonClass:"confirmBtn",closeOnClickModal:!1}).then(function(){return em(function(){return ew(this,function(e){return eZ().then(function(){(0,v.Message)({message:"å¦ç端已çæ",type:"success",customClass:"toastMessage",iconClass:"iconfont icon-yuanquangou-mianzhuang"}),et.isSynced=!0}).catch(function(){(0,v.Message)({message:"åæ¥å¤±è´¥",type:"error",customClass:"toastMessage",iconClass:"iconfont icon-yuanquancha-mianzhuang icon-danger-002"})}),[2]})})()}).catch(function(){e1()}),[2]})})()})),[2]})})()},asyncForm:eZ,showEvaluatorSpeech:eJ,publishForm:function(e){return em(function(){return ew(this,function(t){switch(t.label){case 0:if(ex.value.code!==a.tN.speech_evaluator_v2)return[3,2];return[4,eJ()];case 1:if(!t.sent())return[2];t.label=2;case 2:return eZ().then(function(){var t=eg({agent_id:S.value},e);d.ZP.post("/c27/online_courseware/agent/workflow/".concat(Q,"/open_entity/"),t).then(function(e){e.success&&((0,v.Message)({message:"å·²çæ",type:"success",customClass:"toastMessage",iconClass:"iconfont icon-yuanquangou-mianzhuang"}),et.isPublish=!0,et.isSynced=!0,eU.value.close())})}).catch(function(e){console.log(e)}),[2]}})})()},saveStatus:eK,pendingRolePlayingSystemModel:eW,isRefreshingRolePlayingLlmConfig:e$,setFormData:eY,handleRolePlayingSystemModelChange:eX,refreshRolePlayingLlmConfig:eQ,save:e0,autoSave:e1,handleGoBack:function(){return em(function(){var e,t,n;return ew(this,function(r){switch(r.label){case 0:if(ex.value.code===a.tN.reviewTutor||!et.isPublish||k.value||eC.value.readonly||!eC.value.editable)return e3(),[2];return[4,ez()];case 1:t=(e=r.sent()).success,n=e.data;try{if(t&&!n.sync_status)return(0,v.MessageBox)({title:"忥æé",message:"æºè½ä½è®¾ç½®åçååï¼æ¯å¦åæ¥ç»å¦çï¼",customClass:"yktMessageBox",showClose:!1,confirmButtonText:"忥ç»å¦ç",cancelButtonText:"å为è稿",showConfirmButton:!0,showCancelButton:!0,confirmButtonClass:"confirmBtn",closeOnClickModal:!1}).then(function(){return em(function(){return ew(this,function(e){return P.value.validate(function(e){return em(function(){return ew(this,function(t){return e&&eZ().then(function(){(0,v.Message)({message:"忥æå",type:"success",customClass:"toastMessage",iconClass:"iconfont icon-yuanquangou-mianzhuang"}),e3()}).catch(function(){(0,v.Message)({message:"åæ¥å¤±è´¥",type:"error",customClass:"toastMessage",iconClass:"iconfont icon-yuanquancha-mianzhuang icon-danger-002"})}),[2]})})()}),[2]})})()}).catch(function(){e3()}),[2];e3()}catch(e){console.log(e),e3()}return[2]}})})()},tabId:e2,handleTabList:function(e){if(e2.value<0){var t;e2.value=(null==(t=e[0])?void 0:t.id)||0}},handleDeleteTabList:function(e){return em(function(){return ew(this,function(t){switch(t.label){case 0:return eG.value&&eG.value.getTagList(),[4,(0,m.nextTick)()];
1case 1:return t.sent(),e&&eG.value&&eG.value.getSceneListed(),[2]}})})()},handleAddTabList:function(){eG.value&&eG.value.getTagList()},handleTabChange:function(e){e2.value=e},sortSceneDialogRef:e4,goSortList:function(e){e.code!==a.tN.speech_evaluator_v2&&e.show_evaluator_speech||e4.value.open()},goBack:e3,chatParams:e6,outerData:e5,thuChemVoiceSetting:e8,chatDecoration:e7,chatOptions:e9,audioSetting:te,roles:tt,fetchRoles:tn,groupList:ta,getAiCourseTeamListFun:tr,handleSave:function(){to(),P.value.validate(function(e){return em(function(){return ew(this,function(t){return e&&N.value&&e0(!1),[2]})})()})},syncReviewTutorEditor:to,AI_COOPERATION_CODE:a.tN,AI_COOPERATION_CODE_COMP:a.uV,Chat:l.Z,SpokenChatList:s.default,oralRepetitionList:u.default,HeaderBar:A,GetExerciseRightPanel:U,K12GenerationTv:H,K12ReadonlyProfile:G,PublishDialog:Y,SortSceneDialog:er,SystemAgent:es,OuterLinkPreview:ed,HomeworkReviewIntro:ep.Z}}},function(){var e,t,n=this,a=n._self._c,r=n._self._setupProxy;return a("div",{staticClass:"agent-cooperation-detail",class:[r.formData&&r.formData.code===r.AI_COOPERATION_CODE.speech_evaluator_v2?"speech-grid-template":r.formData&&r.formData.code===r.AI_COOPERATION_CODE.outer_link?"outer-link-grid-template":"default-grid-template",r.isShowLeftPartConf?"agent-cooperation-detail-template-default":"agent-cooperation-detail-template-right",r.isK12Readonly?"k12-readonly-grid-template":"",r.formData.code]},[a("div",{staticClass:"header"},[a(r.HeaderBar,{ref:"headerBarRef",attrs:{auth:r.auth,"form-data":r.formData,"page-status":r.pageStatus,"publish-text":r.formData.code===r.AI_COOPERATION_CODE.reviewTutor?n.$t("AICenter.AgentCooperate.Synchronization"):r.isStudentCreateAgentCooperation?n.$t("AICenter.AgentCooperate.Save"):n.$t("AICenter.AgentCooperate.Released"),disabled:r.pageStatus.syncDisabled,loading:r.loading||r.isK12Rpg&&1!==r.authState.loading},on:{"on-back":r.handleGoBack,"on-delete":r.handleDelete,"on-publish":r.handlePrimaryAction,"on-share":r.handleShare,"on-sync":r.handleSync,"on-save":r.handleSave}})],1),n._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:r.isShowLeftPartConf,expression:"isShowLeftPartConf"}],staticClass:"left"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:r.loading||r.isK12Rpg&&1!==r.authState.loading,expression:"loading || (isK12Rpg && authState.loading !== 1)"}],staticClass:"detail-main"},[r.isK12Readonly?a(r.K12ReadonlyProfile,{attrs:{"form-data":r.formData}}):n._e(),n._v(" "),r.isK12Readonly||r.isK12Rpg&&1!==r.authState.loading||!r.formData.share||!r.formData.share.user_name||r.formData.is_modify?n._e():a("div",{staticClass:"share-info"},[n._v("\n "+n._s(n.$t("AICenter.AgentCooperate.ThisAgentIsComposed_345e9d",{user_name:r.formData.share.user_name}))+"\n ")]),n._v(" "),r.isK12Readonly||r.isK12Rpg&&1!==r.authState.loading?n._e():a("el-form",{ref:"formRef",staticClass:"collapse",class:{"is-share":r.formData.share},attrs:{model:r.formData,"label-width":"120px",disabled:r.isTemporaryDisabled||!r.auth.editable||!r.formData.is_modify||r.formData.code===r.AI_COOPERATION_CODE.speech_evaluator_v2&&!r.formData.show_evaluator_speech}},[!r.isThuChemAgent&&r.formData.code&&r.AI_COOPERATION_CODE_COMP[r.formData.code]?[a(r.AI_COOPERATION_CODE_COMP[r.formData.code],{ref:"templateRef",tag:"component",attrs:{"form-data":r.formData,query:r.queryData,"chat-params":r.spokenChatParams,"page-status":r.pageStatus,"detail-disabled":r.pageStatus.disabled,"image-timbre-data":r.imageTimbreData,auth:r.auth,"group-list":r.groupList},on:{"update:formData":function(e){r.formData=e},"update:form-data":function(e){r.formData=e},"tab-list":r.handleTabList,"delete-tab-list":r.handleDeleteTabList,"add-tab-list":r.handleAddTabList,"right-panel-change":r.handleGetExerciseRightPanelChange}})]:r.isThuChemAgent||!0===r.formData.is_system?a(r.SystemAgent,{attrs:{auth:r.auth,"form-data":r.formData,query:r.queryData},on:{"update:formData":function(e){r.formData=e},"update:form-data":function(e){r.formData=e}}}):n._e()],2)],1)]),n._v(" "),r.formData.code===r.AI_COOPERATION_CODE.get_exercise?a(r.GetExerciseRightPanel,{ref:"getExerciseRightPanelRef",attrs:{"form-data":r.formData,"course-name":r.selectedCourseInfo.name},on:{"update:formData":function(e){r.formData=e},"update:form-data":function(e){r.formData=e}}}
1):n._e(),n._v(" "),a("div",{staticClass:"right",class:{"is-spoken":r.formData.code===r.AI_COOPERATION_CODE.speech_evaluator_v2||r.formData.code===r.AI_COOPERATION_CODE.follow_read,"is-outer-link":r.formData.code===r.AI_COOPERATION_CODE.outer_link}},[r.formData.code===r.AI_COOPERATION_CODE.speech_evaluator_v2||r.formData.code===r.AI_COOPERATION_CODE.follow_read?a("div",{staticClass:"right-spoken-chat pc",class:{"disalbed-click-right":r.formData.code===r.AI_COOPERATION_CODE.speech_evaluator_v2&&!r.formData.show_evaluator_speech,"w-415":r.formData.code===r.AI_COOPERATION_CODE.follow_read}},[a(r.formData.code===r.AI_COOPERATION_CODE.speech_evaluator_v2?r.SpokenChatList:r.oralRepetitionList,{ref:"chatListRef",tag:"component",staticClass:"right-preview",attrs:{"is-pc":!0,"chat-params":r.spokenChatParams,options:r.options,"form-data":r.formData,"avatar-data":r.imageTimbreData},on:{"tab-change":r.handleTabChange}})],1):n._e(),n._v(" "),(r.formData.code===r.AI_COOPERATION_CODE.speech_evaluator_v2||r.formData.code===r.AI_COOPERATION_CODE.follow_read)&&r.auth.editable?a("div",{staticClass:"flex items-center justify-center"},[a("div",{staticClass:"list-sort",class:{"disalbed-click":r.formData.code===r.AI_COOPERATION_CODE.speech_evaluator_v2&&!r.formData.show_evaluator_speech},on:{click:function(e){return r.goSortList(r.formData)}}},[a("i",{staticClass:"iconfont icon-paixu"}),n._v(" "),a("span",{staticClass:"list-sort-label"},[n._v(n._s(n.$t("AICenter.AgentCooperate.AdjustDefaultOrder")))])])]):r.formData.code===r.AI_COOPERATION_CODE.outer_link?a(r.OuterLinkPreview,{attrs:{"is-popup":r.formData.is_popup,"popup-content":r.formData.popup_content,"preview-url":r.outerLinkPreviewUrl}}):n._e(),n._v(" "),r.chatParams.capability_id&&r.formData.code!==r.AI_COOPERATION_CODE.speech_evaluator_v2&&r.formData.code!==r.AI_COOPERATION_CODE.follow_read?a(r.Chat,{ref:"chatRef",class:{"k12-readonly-chat":r.isK12Readonly,"review-tutor-chat":r.formData.code===r.AI_COOPERATION_CODE.reviewTutor},attrs:{"chat-params":(e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}({},r.chatParams),t=t={disabled:r.formData.code===r.AI_COOPERATION_CODE.reviewTutor},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e),"outer-data":r.outerData,options:r.chatOptions,decoration:r.chatDecoration},scopedSlots:n._u([{key:"top",fn:function(){return[r.formData.code===r.AI_COOPERATION_CODE.reviewTutor?a(r.HomeworkReviewIntro,{attrs:{data:{notice:r.formData.notice_content||"",avatar:r.formData.avatar},"show-start-button":!1,"show-avatar":!1,"is-mobile":!1}}):n._e()]},proxy:!0}],null,!1,0x89d22a4e)}):n._e(),n._v(" "),r.formData.is_system&&r.formData.code!==r.AI_COOPERATION_CODE.reviewTutor&&!r.isThuChemAgent?a("div",{staticClass:"chat-ui-mask flex flex-items justify-center items-center"},[a("p",[n._v("ææ¶ä¸æ¯æç³»ç»æºè½ä½è°è¯")])]):n._e()],1),n._v(" "),r.isK12Rpg&&r.k12GenerationTvState.visible?a(r.K12GenerationTv,{staticClass:"right-generation-tv",attrs:{"current-step":r.k12GenerationTvState.currentStep,guide:r.k12GenerationTvState.guide,progress:r.k12GenerationTvState.progress,steps:r.k12GenerationTvState.steps},on:{close:r.handleCloseK12GenerationTv}}):n._e(),n._v(" "),a(r.PublishDialog,{ref:"publishDialogRef",attrs:{auth:r.auth,query:r.queryData,"chat-params":r.chatParams,roles:r.roles,"share-mode":r.pageStatus.code===r.AI_COOPERATION_CODE.k12Rpg},on:{"on-tap-confirm":r.publishForm}}),n._v(" "),a(r.SortSceneDialog,{ref:"sortSceneDialogRef",attrs:{"spoken-chat-params":r.spokenChatParams,"image-timbre-data":r.imageTimbreData,"data-type":r.formData.code,"tab-id":r.tabId}
1,on:{"scene-update":r.moblieSortUpdate}})],1)},[],!1,null,"794c743b",null).exports},71221:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a={__name:"settings-btn",props:{icon:{type:String,default:"icon-shezhi2-mianzhuang"},text:{type:String,default:n(56907).a.t("AiResultDisplay.AssistantLogoSettings")},showIcon:{type:Boolean,default:!0}},setup:function(e){return{__sfc:!0}}},r=(0,n(81049).Z)(a,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"setting-btn box-center pointer"},[this.showIcon?e("i",{staticClass:"setting-icon iconfont",class:this.icon}):this._e(),this._v(" "),e("span",{staticClass:"setting-text"},[this._v(this._s(this.text))])])},[],!1,null,"d501b3ec",null).exports},21097:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}}),n(35350),n(63649);var a=n(56907),r=n(18108),o=n(68336),i=n(12884),l={__name:"image-upload",props:{initImageUrl:{type:String,default:""},width:{type:Number,default:200},height:{type:Number,default:114},needCropper:Boolean,maxSize:{type:Number,default:5e3},sizeUnit:{type:String,default:"KB"},maxSizeTips:{type:String,default:a.a.t("AiResultDisplay.ImageCannotExceedK")},cropperOptions:{type:Object,default:function(){return{aspectRatio:16/9}}},tipTxt:{type:String,default:a.a.t("AiResultDisplay.UploadImage")},accept:{type:String,default:"image/*"},tipIcon:{type:String,default:"icon-zhongfaorshuaxin"},toolTipContent:{type:String,default:""},delImage:{type:Boolean,default:!1},resetImageUrl:{type:String,default:""}},emits:["update:imageUrl","reset-image"],setup:function(e,t){var n=t.emit,a=(0,i._p)("aiResultStore").useState,l=a(["agentBasicInfo"]).agentBasicInfo,s=(0,r.ref)("");(0,r.watch)(function(){return e.initImageUrl},function(e){s.value=e},{immediate:!0}),(0,r.watch)(s,function(e){n("update:imageUrl",e)});var u=(0,r.reactive)({url:"",loading:!1,isSuccess:!0,ratio:null}),c=(0,r.computed)(function(){return"/pc/upload_info/ai_display/?agent_id=".concat(l.value.agent_id,"&uvid=").concat(l.value.university_id)});return{__sfc:!0,useState:a,agentBasicInfo:l,props:e,emits:n,imageUrl:s,uploads:u,ossUrl:c,handleBeforeUpload:function(e,t,n){u.url=t,u.ratio="|".concat(n.width,"x").concat(n.height,"|"),u.loading=!0},handleUploadSuccess:function(e){e.success;var t=e.data;u.isSuccess=!0,u.url=t.url,s.value=t.url,setTimeout(function(){return u.loading=!1},1e3)},handleUploadError:function(){u.loading=!1,u.isSuccess=!1},handleResetImageVal:function(){s.value=e.resetImageUrl,n("reset-image",s.value)},Uploader:o.Z}}},s=(0,n(81049).Z)(l,function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"input-upload-area",style:{width:e.width+"px",height:e.height+"px"}},[n.imageUrl?t("img",{staticClass:"img",attrs:{src:n.imageUrl,alt:""}}):t("div",{staticClass:"empty-img"}),e._v(" "),n.uploads.loading?t("div",{staticClass:"img-uploading"},[t("i",{staticClass:"iconfont icon-loading loading-animation"})]):e._e(),e._v(" "),t("div",{staticClass:"btn-group-box"},[(e.resetImageUrl||e.delImage)&&n.imageUrl&&n.imageUrl!==e.resetImageUrl?t("div",{staticClass:"reset-image-btn",on:{click:n.handleResetImageVal}},[t("i",{staticClass:"iconfont icon-genghuan",class:{"icon-genghuan":!e.delImage,"icon-shanchu":e.delImage}}),e._v(" "),t("span",[e._v(e._s(e.delImage?e.$t("AiResultDisplay.Delete"):e.$t("AiResultDisplay.Reset")))])]):e._e(),e._v(" "),t(n.Uploader,{staticClass:"input-upload-btn",attrs:{"allow-types":["image/png","image/jpg","image/jpeg"],"max-size":e.maxSize,"max-ratio":[6e3,6e3],"size-unit":e.sizeUnit,"max-size-tips":e.maxSizeTips,"handle-before-upload":n.handleBeforeUpload,"handle-upload-success":n.handleUploadSuccess,"handle-upload-error":n.handleUploadError,disabled:n.uploads.loading,"need-cropper":e.needCropper,"cropper-options":e.cropperOptions,"token-url":n.ossUrl,accept:e.accept,"tool-tip-content":e.toolTipContent},scopedSlots:e._u([{key:"placeholder",fn:function(){return[e._t("default",function(){return[t("span",{staticClass:"select-btn box-start pointer default-select-upload"},[t("i",{staticClass:"iconfont",class:e.tipIcon}),e._v(" "),t("span",{staticClass:"text",domProps:{textContent:e._s(e.tipTxt)}})])]})]},proxy:!0}],null,!0)})],1)])},[],!1,null,"79424045",null).exports},89718:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}}),n(80287),n(35350),n(63064),n(44959),n(76556),n(42463),n(63649),n(56325),n(61657),n(79136),n(13054),n(88761),n(60668);var a=n(56907),r=n(18108),o=n(41990),i=n(71943),l=n(21097),s=n(85369);function u(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){u(o,a,r,i,l,"next",e)}function l(e){u(o,a,r,i,l,"throw",e)}i(void 0)})}}function d(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
1,trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var f=(0,n(81049).Z)({__name:"teacher-team",props:{data:{type:Object,required:!0},universityId:{type:[Number,String],required:!0}},emits:["close"],setup:function(e,t){var n=t.emit,u=(0,r.reactive)(JSON.parse(JSON.stringify(e.data))),f="https://qn-sy.yuketang.cn/new_defaultuser.png",p="00000000-0000-0000-0000-000000000000",v=(0,r.ref)([]),h=(0,r.ref)([]),m=(0,r.ref)(u.teacher_id?[{id:u.teacher_id,name:u.teacher_name,picture:u.picture,department_id:u.department_id,department_name:u.department_name,job_title:u.job_title,intro:u.intro}]:[]),g=(0,r.ref)(!1),_=function(){return c(function(){var t;return d(this,function(n){switch(n.label){case 0:return[4,request.get("/edu_admin/data_admin/department/query_all/",{university_id:e.universityId,term:"latest"})];case 1:return v.value=(t=n.sent()).data,h.value=t.data,[2]}})})()},y=function(){return c(function(){var t,r;return d(this,function(i){switch(i.label){case 0:if(!u.teacher_name)return(0,o.Message)({message:a.a.t("AiResultDisplay.TeacherNameCannotBeEmpty"),type:"error",customClass:"toastMessage",iconClass:"iconfont icon-weidu-mianzhuang"}),[2];if(!u.picture)return(0,o.Message)({message:a.a.t("AiResultDisplay.TeacherPhotoCannotBeEmpty"),type:"error",customClass:"toastMessage",iconClass:"iconfont icon-weidu-mianzhuang"}),[2];t="/c27/api/v1/permission/teachers/".concat(u.teacher_id,"/?from=ai_display&uv_id=").concat(e.universityId),i.label=1;case 1:return i.trys.push([1,3,,4]),r={picture:u.picture,name:u.teacher_name,department_id:u.department_id==p?"":u.department_id,department_name:u.department_name,intro:u.intro,job_title:u.job_title},[4,request.put(t,r,{headers:{"university-id":e.universityId,"uv-id":e.universityId}})];case 2:return i.sent(),s.Z.emit("teacher-update"),s.Z.emit("module-notice",{moduleName:["teacher-team","first-screen"],type:"teachers"}),(0,o.Message)({message:a.a.t("AiResultDisplay.SavedSuccessfully"),type:"success",customClass:"toastMessage",iconClass:"iconfont icon-yuanquangou-mianzhuang"}),[3,4];case 3:return console.log("error",i.sent()),(0,o.Message)({message:a.a.t("AiResultDisplay.SaveFAiLed"),type:"error",customClass:"toastMessage",iconClass:"iconfont icon-weidu-mianzhuang"}),[2];case 4:return n("close"),[2]}})})()};return(0,r.onMounted)(function(){_()}),{__sfc:!0,emits:n,props:e,teacher:u,DEFAULT_AVATAR:f,newId:p,collegeList:v,displayCollegeList:h,possibleTeachers:m,loadingTeacher:g,searchTeacher:function(t){return c(function(){var n,a,r;return d(this,function(o){switch(o.label){case 0:if(!(n=t.trim()))return m.value=[],[2];g.value=!0,o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,request.get("/c27/api/v1/permission/teachers/",{offset:0,limit:1e3,status:1,name:n,uv_id:e.universityId,term:"latest",from:"ai_display"})];case 2:return m.value=(r=o.sent()).success&&(null==(a=r.data)?void 0:a.results)||[],[3,5];case 3:return console.error("Error fetching teachers:",o.sent()),m.value=[],[3,5];case 4:return g.value=!1,[7];case 5:return[2]}})})()},selectTeacher:function(e){var t=m.value.find(function(t){return t.id===e});t&&(u.teacher_id=t.id,u.teacher_name=t.name,u.picture=t.picture||f,u.department_id=t.department_id||"",u.department_name=t.department_name||"",u.job_title=t.job_title||"",u.intro=t.intro||"")},getCollegeList:_,save:y,changeDepartment:function(e){u.department_name=h.value.find(function(t){return t.department_id===e}).department_name,u.department_id=e},remoteMethod:function(e){if(""===e.trim())return h.value=v.value,h;var t=[],n=!1,a=!0,r=!1,o=void 0;try{for(var i,l=v.value[Symbol.iterator]();!(a=(i=l.next()).done);a=!0){var s=i.value;-1!==s.department_name.indexOf(e)&&t.push(s),s.department_name===e&&(n=!0)}}catch(e){r=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(r)throw o}}n||t.unshift({department_id:p,department_name:e}),h.value=t},onConfirm:function(){y()},onClose:function(){n("close")},BaseDialog:i.Z,ImageUpload:l.Z}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t(n.BaseDialog,{attrs:{title:e.$t("AiResultDisplay.EditTeacherDetAiLs"),width:"416px",height:"auto"},on:{close:n.onClose,confirm:n.onConfirm}},[t("el-form",{ref:"form",attrs:{model:n.teacher,"label-width":"52px","label-position":"left",onsubmit:"return false;"}},[t("el-form-item",{attrs:{label:e.$t("AiResultDisplay.CourseOutlineDialogTeacherTeamName")}},[t("div",{staticClass:"name-container"},[t("div",{staticClass:"upload-img-box pointer"},[t(n.ImageUpload,{staticClass:"img",attrs:{width:32,height:32,"init-image-url":n.teacher.picture,"need-cropper":!0,"cropper-options":{aspectRatio:1}},on:{"update:imageUrl":function(e){n.teacher.picture=e}}},[t("span",{staticClass:"upload-slot"})]),e._v(" "),t("i",{staticClass:"iconfont icon-bianji-bi"})],1),e._v(" "),t("el-select",{staticClass:"teacher-select",attrs:{filterable:"",remote:"",placeholder:e.$t("AiResultDisplay.PleaseEnterTeacher
1SName"),"remote-method":n.searchTeacher,loading:n.loadingTeacher},on:{change:n.selectTeacher},model:{value:n.teacher.teacher_id,callback:function(t){e.$set(n.teacher,"teacher_id",t)},expression:"teacher.teacher_id"}},e._l(n.possibleTeachers,function(a){return t("el-option",{key:a.id,staticClass:"teacher-select-option",attrs:{label:a.name,value:a.id}},[t("div",{staticClass:"teacher-option"},[t("img",{staticClass:"teacher-option__avatar",attrs:{src:a.picture||n.DEFAULT_AVATAR,alt:""}}),e._v(" "),t("span",{staticClass:"teacher-option__name"},[e._v(e._s(a.name))]),e._v(" "),a.department_name?t("span",{staticClass:"teacher-option__department"},[e._v("\n ("+e._s(a.department_name)+")\n ")]):e._e()])])}),1)],1)]),e._v(" "),t("el-form-item",{attrs:{label:e.$t("AiResultDisplay.Department")}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("AiResultDisplay.PleaseSelectDepartment"),filterable:"",remote:"","remote-method":n.remoteMethod},on:{change:n.changeDepartment},model:{value:n.teacher.department_id,callback:function(t){e.$set(n.teacher,"department_id",t)},expression:"teacher.department_id"}},e._l(n.displayCollegeList,function(a){return t("el-option",{key:a.department_id,attrs:{label:a.department_name,value:a.department_id}},[t("span",[e._v(e._s(a.department_name))]),e._v(" "),a.department_id==n.newId?t("span",[e._v(e._s(e.$t("AiResultDisplay.CourseOutlineDialogTeacherTeamNew")))]):e._e()])}),1)],1),e._v(" "),t("el-form-item",{attrs:{label:e.$t("AiResultDisplay.CourseOutlineDialogTeacherTeamTitle")}},[t("el-input",{attrs:{placeholder:e.$t("AiResultDisplay.CourseOutlineDialogTeacherTeamMax100Characters"),maxlength:100},model:{value:n.teacher.job_title,callback:function(t){e.$set(n.teacher,"job_title",t)},expression:"teacher.job_title"}})],1),e._v(" "),t("el-form-item",{attrs:{label:e.$t("AiResultDisplay.Introduction")}},[t("el-input",{attrs:{placeholder:e.$t("AiResultDisplay.Max5000Characters"),type:"textarea",maxlength:5e3,autosize:{minRows:4,maxRows:10},resize:"none"},model:{value:n.teacher.intro,callback:function(t){e.$set(n.teacher,"intro",t)},expression:"teacher.intro"}})],1)],1)],1)},[],!1,null,"5e7d71a8",null).exports},80477:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}}),n(80287),n(32927),n(35130),n(35350),n(63064),n(63649),n(35286),n(20573),n(16446),n(13054),n(88761),n(60668),n(42463),n(57952),n(86067),n(72775),n(76556),n(80764),n(52042),n(47482);var a=n(56907),r=n(18108),o=n(36688),i=n.n(o),l=n(21097);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function u(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var c=(0,n(81049).Z)({__name:"teaching-team-content",props:{teachers:{type:Array,default:function(){return[]}},agentId:{type:[Number,String],default:""},universityId:{type:[Number,String],default:""}},emits:["update:teachers"],setup:function(e,t){var n=t.emit,o=(0,r.ref)(JSON.parse(JSON.stringify(e.teachers))),s="https://qn-sy.yuketang.cn/new_defaultuser.png",c=(0,r.ref)(null),d=(0,r.ref)([]),f=(0,r.ref)(!1),p=(0,r.ref)([]);function v(){o.value.push({id:crypto.randomUUID(),teacher_id:"",teacher_name:"",picture:""}),(0,r.nextTick)(function(){return c.value[o.value.length-1].focus()}),(0,r.nextTick)(function(){var e=document.querySelector(".teching-team-dialog .content-wrap");e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}),n("update:teachers",o.value)}return(0,r.onMounted)(function(){0===o.value.length&&(v(),(0,r.nextTick)(function(){return c.value[0].focus()}))}),{__sfc:!0,props:e,emits:n,teachingTeam:o,defaultAvatar:s,selectRef:c,possibleUsers:d,loadingUser:f,openSelectIds:p,searchUser:function(t,n){if(""!==t){p.value.includes(n)||(p.value=u(p.value).concat([n]));var r={offset:0,limit:1e3,status:1,name:t,uv_id:e.universityId,term:"latest",from:"ai_display"};f.value=!0,request.get("/c27/api/v1/permission/teachers/",r).then(function(e){var n=e.success?e.data.results:[];d.value=[{name:a.a.t("AiResultDisplay.FirstScreenBasicVersionTeachingTeamContentNew",{query:t})}].concat(u(n))}).catch(function(e){console.error("Error fetching users:",e),d.value=[]}).finally(function(){f.value=!1})}else p.value=p.value.filter(function(e){return e!==n}),d.value=[]},onSelectVisibleChange:function(e,t,n){if(e&&n){p.value.includes(t)||(p.value=u(p.value).concat([t]));return}p.value=p.value.filter(function(e){return e!==t})},onSelectUser:function(e,t){var a=d.value.find(function(t){return t.id===e});o.value=o.value.map(function(e){if(e.id===t){var n,r,o;return r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}({},e,a.id&&{teacher_id:a.id}),o=o={teacher_name:a.id?a.name:a.name.slice(0,-4),picture:(null==(n=e.picture)?void 0:n.includes("ai_display"))?e.picture:a.picture||s},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n}
1)(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r}return e}),n("update:teachers",o.value)},onAddTeacher:v,onDeleteTeacher:function(e){o.value=o.value.filter(function(t){return t.id!==e}),n("update:teachers",o.value)},handleItemOrderChange:function(e){var t=e.oldIndex,a=e.newIndex,r=o.value[t];o.value.splice(t,1),o.value.splice(a,0,r),n("update:teachers",o.value)},draggable:i(),ImageUpload:l.Z}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",[t(n.draggable,{staticClass:"group-list",attrs:{tag:"ul",handle:".handle","scroll-sensitivity":200},on:{update:n.handleItemOrderChange}},e._l(n.teachingTeam,function(a){return t("li",{key:a.id,staticClass:"group-item-wrapper"},[t("div",{staticClass:"group-item box-start"},[t("span",{staticClass:"btn-icon box-center pointer handle"},[t("i",{staticClass:"iconfont icon-paixu6dian"})]),e._v(" "),t("div",{staticClass:"upload-img-box pointer"},[t(n.ImageUpload,{staticClass:"img",attrs:{width:32,height:32,"init-image-url":a.picture,"need-cropper":!0,"cropper-options":{aspectRatio:1}},on:{"update:imageUrl":function(e){a.picture=e,n.emits("update:teachers",n.teachingTeam)}}},[t("span",{staticClass:"upload-slot"})]),e._v(" "),t("i",{staticClass:"iconfont icon-bianji-bi"})],1),e._v(" "),t("div",{staticClass:"remote-select-wrapper"},[t("el-select",{ref:"selectRef",refInFor:!0,staticClass:"remote-select",attrs:{filterable:"",remote:"",placeholder:e.$t("AiResultDisplay.PleaseEnterTeacherSName"),"remote-method":function(e){return n.searchUser(e,a.id)},loading:n.loadingUser},on:{change:function(e){return n.onSelectUser(e,a.id)},"visible-change":function(e){return n.onSelectVisibleChange(e,a.id,a.teacher_name)}},model:{value:a.teacher_name,callback:function(t){e.$set(a,"teacher_name",t)},expression:"teacher.teacher_name"}},e._l(n.possibleUsers,function(a){return t("el-option",{key:a.id,staticClass:"teacher-select-option",attrs:{label:a.name,value:a.id}},[t("div",{staticClass:"teacher-item"},[t("img",{staticClass:"avatar",attrs:{width:"26",src:a.picture||n.defaultAvatar}}),e._v(" "),t("span",{staticClass:"name"},[e._v(e._s(a.name))]),e._v(" "),a.department_name?t("span",{staticClass:"number"},[e._v("("+e._s(a.department_name)+")")]):e._e()])])}),1),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!n.loadingUser,expression:"!loadingUser"}],staticClass:"remote-select-arrow",class:{"remote-select-arrow--up":n.openSelectIds.includes(a.id)}})],1),e._v(" "),n.teachingTeam.length>1?t("span",{staticClass:"btn-icon box-center pointer",on:{click:function(e){return n.onDeleteTeacher(a.id)}}},[t("i",{staticClass:"iconfont icon-shanchu"})]):e._e()])])}),0),e._v(" "),t("div",{staticClass:"add-new box-center pointer",on:{click:n.onAddTeacher}},[t("i",{staticClass:"iconfont icon-tianjia1"}),e._v(" "),t("span",[e._v(e._s(e.$t("AiResultDisplay.AddTeachers")))])])],1)},[],!1,null,"11b383a5",null).exports},46403:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}}),n(35350),n(63064),n(80764),n(87481),n(42463),n(13794),n(35286),n(20573),n(16446),n(13054),n(88761),n(60668);var a=n(56907),r=n(41990),o=n(71943),i=n(80477),l=n(85369);function s(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}var u=(0,n(81049).Z)({__name:"teaching-team-dialog",props:{teachers:{type:Array,default:function(){return[]}},agentId:{type:[Number,String],default:""},universityId:{type:[Number,String],default:""}},emits:["close","confirm","save"],setup:function(e,t){var n=t.emit,u=JSON.parse(JSON.stringify(e.teachers));function c(e){return e.map(function(e){return/^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/.test(e.id)?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}({teacher_name:e.teacher_name,picture:e.picture},e.teacher_id&&{teacher_id:e.teacher_id}):e})}return{__sfc:!0,props:e,emits:n,teachersData:u,updateTeachers:function(e){u=JSON.parse(JSON.stringify(e))},paramsTrans:c,onSubmit:function(){var t;return(t=function(){var t,o;return function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
1,trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(i){switch(i.label){case 0:if(u.some(function(e){return!e.teacher_name}))return(0,r.Message)({message:a.a.t("AiResultDisplay.TeacherInformationCannotBeEmpty"),type:"error",customClass:"toastMessage",iconClass:"iconfont icon-weidu-mianzhuang"}),[2];i.label=1;case 1:return i.trys.push([1,3,,4]),t=API.result_display.update_teacher.replace(/\{id\}/,e.agentId),o={teachers:c(u)},[4,request.put(t,o)];case 2:return n("save",i.sent().data),l.Z.emit("teacher-update"),[3,4];case 3:return console.error("Error saving teachers data:",i.sent()),[3,4];case 4:return[2]}})},function(){var e=this,n=arguments;return new Promise(function(a,r){var o=t.apply(e,n);function i(e){s(o,a,r,i,l,"next",e)}function l(e){s(o,a,r,i,l,"throw",e)}i(void 0)})})()},BaseDialog:o.Z,TeachingTeamContent:i.Z}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t(n.BaseDialog,{staticClass:"teching-team-dialog",attrs:{title:e.$t("AiResultDisplay.TeacherTeam"),width:"416px"},on:{close:function(t){return e.$emit("close")},confirm:n.onSubmit}},[t(n.TeachingTeamContent,{attrs:{teachers:e.teachers,"agent-id":e.agentId,"university-id":e.universityId},on:{"update:teachers":n.updateTeachers}})],1)},[],!1,null,null,null).exports},28864:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n(63649),n(35350);var a=n(18108),r=(0,n(81049).Z)({__name:"ScrollTip",props:{theme:{type:String,default:"dark"},scrollHeightTarget:{type:Object,default:function(){return{}}},scrollContainerTarget:{type:Object,default:function(){return{}}}},setup:function(e){var t=(0,a.ref)(!0);function n(e){var t;return(null==e||null==(t=e.ref)?void 0:t.value)?e.ref.value:(null==e?void 0:e.ref)?e.ref:(null==e?void 0:e.selector)?document.querySelector(e.selector):null}function r(){var a=n(e.scrollHeightTarget),r=n(e.scrollContainerTarget);if(!a||!r){t.value=!0;return}t.value=Math.max(Number(r.scrollTop)||0,0)-1<Math.max(Number(a.offsetHeight)-Number(r.clientHeight),0)}return(0,a.onMounted)(function(){var t=n(e.scrollContainerTarget);null==t||t.addEventListener("scroll",r,{passive:!0}),r()}),(0,a.onBeforeUnmount)(function(){var t=n(e.scrollContainerTarget);null==t||t.removeEventListener("scroll",r)}),{__sfc:!0,props:e,isVisible:t,resolveElement:n,updateVisibility:r,scrollToResource:function(){var t=n(e.scrollHeightTarget),a=n(e.scrollContainerTarget);t&&(null==a?void 0:a.scrollTo)&&a.scrollTo({top:t.offsetHeight,behavior:"smooth"})}}}},function(){var e=this._self._c,t=this._self._setupProxy;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"scroll-tip",on:{click:t.scrollToResource}},[e("div",{staticClass:"scroll-tip-content",class:"theme-".concat(this.theme)},[e("div",{staticClass:"line"}),this._v(" "),e("div",{staticClass:"dot"})])])},[],!1,null,"6618fd5a",null).exports},61449:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}}),n(63649);var a=n(1948),r=n(53354),o=n(75276),i=n(85369),l=n(18108),s=n(12884);n(35350),n(85346),n(33816),n(51054),n(41557),n(32147),n(1080),n(89382),n(63665),n(47210),n(97200),n(19296),n(97127),n(28240),n(76258),n(14087),n(67185),n(1506),n(9032),n(66265),n(38380),n(90171),n(74652),n(45622),n(88218),n(42463),n(13054),n(43207),n(19250),n(87481);var u=n(94145),c=n.n(u),d=n(81049),f=(0,d.Z)({__name:"SingleColorQrCode",props:{qrText:{type:String,default:""},size:{type:Number,default:200},logoSrc:{type:String,default:""},color:{type:String,default:"#000000"}},setup:function(e){var t=(0,l.ref)("");function n(e){var n=new Image;n.onload=function(){var e=document.createElement("canvas"),r=e.getContext("2d");e.width=n.width,e.height=n.height,r.imageSmoothingEnabled=!1,r.webkitImageSmoothingEnabled=!1,r.drawImage(n,
10,0),a(e),o(e,128),t.value=e.toDataURL("image/png")},n.src=e}function a(e){for(var t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),a=n.data,r=e.width,o=e.height,i=new Uint8ClampedArray(a),l=1;l<o-1;l++)for(var s=1;s<r-1;s++){var u=(l*r+s)*4;a[u]=Math.max(0,Math.min(255,5*i[u]-i[u-4]-i[u+4]-i[u-4*r]-i[u+4*r])),a[u+1]=Math.max(0,Math.min(255,5*i[u+1]-i[u-3]-i[u+5]-i[u-4*r+1]-i[u+4*r+1])),a[u+2]=Math.max(0,Math.min(255,5*i[u+2]-i[u-2]-i[u+6]-i[u-4*r+2]-i[u+4*r+2]))}t.putImageData(n,0,0)}function r(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:{r:0,g:0,b:0}}function o(t,n){for(var a=t.getContext("2d"),o=a.getImageData(0,0,t.width,t.height),i=o.data,l=r(e.color),s=0;s<i.length;s+=4){var u=(i[s]+i[s+1]+i[s+2])/3,c=i[s+3];u<n&&c>50?(i[s]=l.r,i[s+1]=l.g,i[s+2]=l.b,i[s+3]=255):i[s+3]=0}a.putImageData(o,0,0)}return{__sfc:!0,props:e,processedQR:t,onQRGenerated:function(e){n(e)},processBase64QR:n,applySharpen:a,hexToRgb:r,applyThreshold:o,VueQr:c()}}},function(){var e=this._self._c,t=this._self._setupProxy;return e("div",{staticClass:"component-single-color-qr-code"},[e(t.VueQr,{staticStyle:{display:"none"},attrs:{text:t.props.qrText,size:200,margin:0,"color-dark":"#000","color-light":"#fff","background-color":"#fff",callback:t.onQRGenerated,"logo-src":t.props.logoSrc}}),this._v(" "),t.processedQR?e("img",{staticClass:"sharp-qr",style:{width:"".concat(t.props.size,"px"),height:"".concat(t.props.size,"px")},attrs:{src:t.processedQR}}):this._e()],1)},[],!1,null,null,null).exports;function p(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}var v=(0,d.Z)({__name:"chat",props:{chatConf:{type:Object,default:function(){return{}}},theme:{type:String,default:"dark"}},emits:["post-message","set-ai-assistant"],setup:function(e,t){var n=t.emit,u=e.chatConf;e.theme;var c=(0,s._p)("aiSubjectStore").useState,d=c(["mode"]).mode;function v(e){n("post-message",e)}var h=(0,l.ref)(!1),m=(0,l.ref)("");function g(){var e;return(e=function(){var e,t;return function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(n){switch(n.label){case 0:if(n.trys.push([0,2,,3]),e=API.ai_subject_display.get_chat_agent_qrcode,!u.chatParams.capability_id)return[2];return[4,request.get(e,{capability_id:u.chatParams.capability_id})];case 1:if(!(t=n.sent()).data.info.sign)return h.value=!1,[2];return m.value="https://".concat(t.data.info.ykt_site_domain,"/agent/").concat(t.data.info.sign),h.value=!0,[3,3];case 2:return console.error(n.sent()),[3,3];case 3:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){p(o,a,r,i,l,"next",e)}function l(e){p(o,a,r,i,l,"throw",e)}i(void 0)})})()}return(0,l.onMounted)(function(){i.Z.on(a.GM.BEFORE_SEND_MESSAGE,v),g()}),(0,l.onBeforeUnmount)(function(){i.Z.off(a.GM.BEFORE_SEND_MESSAGE,v)}),{__sfc:!0,useState:c,mode:d,emits:n,handlePostMessage:v,hasQrcode:h,qrText:m,getChatAgentQrcode:g,ChatComponent:r.Z,SettingsBtn:o.Z,SingleColorQrCode:f}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"ai-subject-display-component-chat flex flex-col",class:"theme-".concat(e.theme)},[t(n.ChatComponent,{ref:"chatRef",attrs:{"chat-params":e.chatConf.chatParams,"chat-apis":e.chatConf.chatApis,options:e.chatConf.chatOptions,"outer-data":e.chatConf.outerData,decoration:{space:"",offset:""}}}),e._v(" "),2===n.mode?t(n.SettingsBtn,{staticClass:"layout-sett
1ing",attrs:{icon:"icon-chakanmoshi-kapian-mianzhuangorgengduo",text:e.$t("AiResultDisplay.AssistantLogoSettings")},nativeOn:{click:function(e){return e.stopPropagation(),n.emits("set-ai-assistant")}}}):e._e(),e._v(" "),n.hasQrcode?t("div",{staticClass:"chat-agent-qrcode"},[t("el-popover",{attrs:{placement:"bottom-end",width:"205",trigger:"hover","visible-arrow":!1,"popper-class":"ai-subject-display-component-chat-qrcode-popover theme-".concat(e.theme)},scopedSlots:e._u([{key:"reference",fn:function(){return[t("div",{staticClass:"btn-qrcode"},[t("i",{staticClass:"iconfont icon-erweima"}),e._v(" "),t("span",[e._v("ç§»å¨ç«¯")])])]},proxy:!0}],null,!1,0xa7691e04)},[t("div",{staticClass:"popover-content-title"},[e._v("ææºç«¯å¼å¯å¯¹è¯")]),e._v(" "),t("div",{staticClass:"popover-content-desc"},[e._v("éæ¶åå¦ç§å¼æé¢èªå交æµ")]),e._v(" "),t("div",{staticClass:"popover-content-code"},[t(n.SingleColorQrCode,{attrs:{"qr-text":n.qrText,size:94,color:"light"===e.theme?"#6158D9":"#D3DBEF"}})],1)])],1):e._e()],1)},[],!1,null,"226286f8",null).exports},5141:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var a=n(45017),r=(0,n(81049).Z)({__name:"ChemengIndex",setup:function(e){return{__sfc:!0,ExploreIndex:a.default}}},function(){var e=this._self._c;return e("div",{staticClass:"ai-subject-display-chemeng-index"},[e(this._self._setupProxy.ExploreIndex,{attrs:{"enable-main-column-scale":!1}})],1)},[],!1,null,"7285b149",null).exports},45017:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tm}}),n(63649),n(35350),n(74624),n(80764);var a=n(18108),r=n(12884);function o(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}var i=n(47827);n(16446),n(13054),n(88761),n(60668),n(42463),n(32927),n(35130),n(42682);var l=n(47658),s=n(1948),u=n(85113),c=n(71778);function d(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}var f=n(81049),p=(0,f.Z)({__name:"ExploreHomeAccompanyDialog",props:{visible:{type:Boolean,default:!1}},emits:["update:visible","closed"],setup:function(e,t){var n=t.emit,o=(0,r._p)("aiSubjectStore").useState,i=o(["agentInfo","subjectInfo"]),f=i.agentInfo,p=i.subjectInfo,v=(0,a.ref)(null),h=(0,a.ref)(""),m=(0,a.ref)(""),g=(0,a.ref)(!1),_=null,y=(0,a.computed)({get:function(){return e.visible},set:function(e){n("update:visible",e)}}),b=(0,a.computed)(function(){var e,t;return(null==(e=f.value)?void 0:e.id)||(null==(t=p.value)?void 0:t.agent_id)||""}),w=(0,a.computed)(function(){return x()});function C(){_&&(clearTimeout(_),_=null)}function O(){g.value=!1,C()}function S(){C(),_=setTimeout(function(){O()},1e4)}function x(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=n.isIframe,r=new URLSearchParams({entity_type:"22",entity_id:"0",scene:"1",category:"1",agentId:String(b.value),ent:"28",report:"1",subject_display_level:String(null!=(t=null==(e=f.value)?void 0:e.level)?t:"")});void 0!==a&&a&&r.set("subject_explore_iframe","1");var o=window.location.origin;return o.includes("localhost")?o="http://localhost:8080":o.includes("https://hhtest-envning.rainclassroom.com")?o="https://ykt-envning.rainclassroom.com":o.includes("https://hhtest-env-example.rainclassroom.com")?o="https://ykt-env-example.rainclassroom.com":(0,c.S4)()&&(o="https://www.yuketang.cn"),"".concat(o).concat("/ai-workspace","/chatbot-window?").concat(r.toString())}function A(){var e;return(e=function(){var e;return function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:if(!(e=w.value))return m.value="",[2];return[4,l.toDataURL(e,{width:160,margin:0,errorCorrectionLevel:"M"})];case 1:return m.value=t.sent(),[2]}})},function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){d(o,a,r,i,l,"next",e)}function l(e){d(o,a,r,i,l,"throw",e)}i(void 0)})})()}function k(e){var t,n;e.data&&"object"==((n=e.data)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&(null!=(t=v.value)&&t.contentWindow&&e.source!==v.value.contentWindow||e.data.action===s.Cd.CHAT_READY&&O())}function I(){window.removeEventListener("message",k)}function T(){window.removeEventListener("message",k),window.addEventListener("message",k)}
1function E(){if(!e.visible)return void O();g.value=!0,S()}return(0,a.watch)(function(){return e.visible},function(e){if(e){h.value=x({isIframe:!0}),A(),T(),E();return}O(),I()},{immediate:!0}),(0,a.watch)(function(){return h.value},function(){E()}),(0,a.watch)(function(){return w.value},function(){A()}),(0,a.onMounted)(function(){e.visible&&(T(),A())}),(0,a.onBeforeUnmount)(function(){O(),I()}),{__sfc:!0,useState:o,props:e,emit:n,agentInfo:f,subjectInfo:p,iframeRef:v,accompanyIframeSrc:h,qrCodeUrl:m,isLoading:g,loadingTimer:_,dialogVisible:y,currentAgentId:b,accompanyWindowUrl:w,clearLoadingTimer:C,finishLoading:O,startLoadingTimer:S,getAccompanyWindowUrl:x,updateQrCode:A,handleIframeMessage:k,removeMessageListener:I,addMessageListener:T,resetLoading:E,handleClosed:function(){O(),I(),h.value="",n("closed")},handleCloseClick:function(){y.value=!1},handleOpenIframePage:function(){var e=w.value;e&&window.open(e,"_blank","noopener,noreferrer")},Loading:u.Z}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("el-dialog",{attrs:{visible:n.dialogVisible,"append-to-body":"","custom-class":"ai-subject-display-home-explore__accompany-dialog",width:"80%",top:"8vh","show-close":!1,"close-on-click-modal":!1,"destroy-on-close":!0},on:{"update:visible":function(e){n.dialogVisible=e},closed:n.handleClosed},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"ai-subject-display-home-explore__accompany-header"},[t("div",{staticClass:"ai-subject-display-home-explore__accompany-scan"},[t("button",{staticClass:"ai-subject-display-home-explore__accompany-header-button ai-subject-display-home-explore__accompany-scan-button",attrs:{type:"button","aria-label":"æ«ç æ¥ç",disabled:!n.accompanyWindowUrl}},[t("svg",{staticClass:"ai-subject-display-home-explore__accompany-scan-icon",attrs:{viewBox:"0 0 16 16","aria-hidden":"true"}},[t("path",{attrs:{d:"M2 2h4v4H2V2Zm8 0h4v4h-4V2ZM2 10h4v4H2v-4Zm8 0h2v2h-2v-2Zm2 2h2v2h-2v-2Zm-4-4h2v2H8V8Zm2 4H8v2h2v-2Zm2-4h2v2h-2V8Z",fill:"currentColor"}})]),e._v("\n ææºæ«ç ä½éª\n ")]),e._v(" "),t("div",{staticClass:"ai-subject-display-home-explore__accompany-qr-panel"},[t("div",{staticClass:"ai-subject-display-home-explore__accompany-qr-title"},[e._v("微信æ«ç æ¥ç")]),e._v(" "),t("div",{staticClass:"ai-subject-display-home-explore__accompany-qr-frame"},[n.qrCodeUrl?t("img",{staticClass:"ai-subject-display-home-explore__accompany-qr-image",attrs:{src:n.qrCodeUrl,alt:"微信æ«ç æ¥ç"}}):e._e()])])]),e._v(" "),t("el-tooltip",{attrs:{content:"æ°çªå£æå¼",placement:"bottom",effect:"dark","open-delay":300}},[t("button",{staticClass:"ai-subject-display-home-explore__accompany-header-button",attrs:{type:"button","aria-label":"æ°é¡µé¢æå¼",disabled:!n.accompanyWindowUrl},on:{click:n.handleOpenIframePage}},[t("i",{staticClass:"iconfont icon-tiaozhuan"})])]),e._v(" "),t("button",{staticClass:"ai-subject-display-home-explore__accompany-header-button",attrs:{type:"button","aria-label":"å
³é"},on:{click:n.handleCloseClick}},[t("i",{staticClass:"iconfont icon-close"})])],1)]},proxy:!0}])},[e._v(" "),t("div",{staticClass:"ai-subject-display-home-explore__accompany-body"},[t("iframe",{ref:"iframeRef",staticClass:"ai-subject-display-home-explore__accompany-iframe",attrs:{title:"AIå¦ä¼´",src:n.accompanyIframeSrc}}),e._v(" "),n.isLoading?t("div",{staticClass:"ai-subject-display-home-explore__accompany-loading"},[t(n.Loading)],1):e._e()])])},[],!1,null,"924e547a",null).exports,v=n(61449);n(57321);var h=Object.freeze({DARK:"dark",LIGHT:"light"}),m=Object.freeze({CENTER:"center",SPLIT:"split",CENTER_VALUE:1,SPLIT_VALUE:2}),g=Object.freeze({DATA:"data",BACKGROUND:"background",DIGITAL_HUMAN:"digitalHuman",TEACHING_TEAM:"teachingTeam",PAGE_MODULE:"pageModule"}),_=Object.freeze({OPEN_DATA_DIALOG:"open-data-dialog",OPEN_BACKGROUND_DIALOG:"open-background-dialog",OPEN_DIGITAL_HUMAN_DIALOG:"open-digital-human-dialog",OPEN_AI_ASSISTANT:"open-ai-assistant",CLOSE_AI_ASSISTANT:"close-ai-assistant",TOGGLE_AI_ASSISTANT:"toggle-ai-assistant",SET_AI_ASSISTANT:"set-ai-assistant",POST_MESSAGE:"post-message",CLOSE:"close",SAVED:"saved",REFRESH:"refresh"});Object.freeze(Object.values(_)),Object.freeze({background:{props:["theme","layout","subjectInfo","settingJson"],emits:[]},subjectPanel:{props:["theme","layout","subjectInfo","settingJson","isEditMode","hasDigitalHuman"],emits:[_.OPEN_DATA_DIALOG]},assistantToggle:{props:["theme","layout","subjectInfo","settingJson","isEditMode","visible"],emits:[_.OPEN_AI_ASSISTANT,_.CLOSE_AI_ASSISTANT,_.TOGGLE_AI_ASSISTANT]},assistantPanel:{props:["theme","layout","subjectInfo","settingJson","isEditMode","visible"],emits:[_.CLOSE_AI_ASSISTANT,_.SET_AI_ASSISTANT,_.POST_MESSAGE]},digitalHuman:{props:["theme","layout","subjectInfo","settingJson","isEditMode","reserved"],emits:[_.OPEN_DIGITAL_HUMAN_DIALOG]},dataDialog:{props:["visible","theme","subjectInfo","settingJson"],emits:[_.CLOSE,_.SAVED,_.REFRESH]},backgroundDialog:{props:["visible","theme","subjectInfo","settingJson"],emits:[_.CLOSE,_.SAVED,_.REFRESH]},digitalHumanDialog:{props:["visible","theme","subjectInfo","settingJson"],emits:[_.CLOSE,_.SAVED,_.REFRESH]},teachingTeamDialog:{props:["visible","theme","subjectInfo","settingJson"],emits:[_.CLOSE,_.SAVED,_.REFRESH]}});var y=n(48824);function b(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}var w={__name:"ExploreHomeAssistantPanel",props:{theme:{type:String,default:"dark"},layout:{type:String,default:"center"},isEditMode:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},subjectInfo:{type:Object,default:function(){return{}}},settingJson:{type:Object,default:function(){return{}}}},emits:[_.CLOSE_AI_ASSISTANT,_.SET_AI_ASSISTANT,_.POST_MESSAGE],setup:function(e,t){var n=t.emit,o=(0,r._p)("aiSubjectStore").useState,i=o(["agentInfo","settingJson","userInfo"]),l=i.agentInfo,s=i.settingJson,u=i.userInfo,c=(0,a.ref)(null),d=(0,a.ref)(!1),f=(0,a.ref)(""),p=(0,a.computed)(function(){var t,n,a,r;return Number((null==(n=s.value)||null==(t=n.home)?void 0:t.chatType)||(null==(r=e.settingJson)||null==(a=r.home)?void 0:a.chatType)||1)}),h=0;function m(){var t;return(t=function(){var t,n,r,o,i;return function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
1,trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(s){switch(s.label){case 0:h=t=h+1,d.value=!0,f.value="",s.label=1;case 1:return s.trys.push([1,3,4,5]),n=l.value||{},r=e.subjectInfo||{},[4,(0,y.v)({agentId:n.id||(null==r?void 0:r.agent_id),universityId:n.university_id||(null==r?void 0:r.university_id),agentLevel:n.level,userInfo:u.value,chatType:p.value,nextTick:a.nextTick})];case 2:if(o=s.sent(),h!==t)return[2];return c.value=o,[3,5];case 3:if(i=s.sent(),h!==t)return[2];return c.value=null,f.value=(null==i?void 0:i.msg)||(null==i?void 0:i.message)||"请ç¨åéè¯",[3,5];case 4:return h===t&&(d.value=!1),[7];case 5:return[2]}})},function(){var e=this,n=arguments;return new Promise(function(a,r){var o=t.apply(e,n);function i(e){b(o,a,r,i,l,"next",e)}function l(e){b(o,a,r,i,l,"throw",e)}i(void 0)})})()}return(0,a.onMounted)(function(){m()}),(0,a.watch)(function(){var t,n,a,r,o,i,c,d,f,p;return[null==(t=e.subjectInfo)?void 0:t.agent_id,null==(n=e.subjectInfo)?void 0:n.university_id,null==(a=l.value)?void 0:a.id,null==(r=l.value)?void 0:r.university_id,null==(o=l.value)?void 0:o.level,null==(c=s.value)||null==(i=c.home)?void 0:i.chatType,null==(f=e.settingJson)||null==(d=f.home)?void 0:d.chatType,null==(p=u.value)?void 0:p.user_id]},function(){m()}),{__sfc:!0,useState:o,agentInfo:l,storeSettingJson:s,userInfo:u,props:e,emit:n,chatConf:c,isLoading:d,loadError:f,currentChatType:p,latestRequestId:h,loadChatConf:m,handleClose:function(){n(_.CLOSE_AI_ASSISTANT)},handleSetting:function(){n(_.SET_AI_ASSISTANT)},handlePostMessage:function(e){n(_.POST_MESSAGE,e)},Chat:v.default}}},C=(0,f.Z)(w,function(){var e=this._self._c,t=this._self._setupProxy;return e("section",{staticClass:"explore-home-assistant-panel",class:["theme-".concat(this.theme),{"is-loading":t.isLoading}]},[e("button",{staticClass:"explore-home-assistant-panel__close",attrs:{type:"button"},on:{click:t.handleClose}},[e("span",{staticClass:"explore-home-assistant-panel__close-icon",attrs:{"aria-hidden":"true"}})]),this._v(" "),t.isLoading?e("div",{staticClass:"explore-home-assistant-panel__state"},[e("div",{staticClass:"explore-home-assistant-panel__skeleton explore-home-assistant-panel__skeleton--header"}),this._v(" "),e("div",{staticClass:"explore-home-assistant-panel__skeleton explore-home-assistant-panel__skeleton--prompt"}),this._v(" "),e("div",{staticClass:"explore-home-assistant-panel__skeleton explore-home-assistant-panel__skeleton--message"}),this._v(" "),e("div",{staticClass:"explore-home-assistant-panel__skeleton explore-home-assistant-panel__skeleton--message short"}),this._v(" "),e("div",{staticClass:"explore-home-assistant-panel__skeleton explore-home-assistant-panel__skeleton--input"})]):t.loadError?e("div",{staticClass:"explore-home-assistant-panel__state is-error"},[e("p",{staticClass:"explore-home-assistant-panel__state-title"},[this._v("AI å°å©æææ¶ä¸å¯ç¨")]),this._v(" "),e("p",{staticClass:"explore-home-assistant-panel__state-desc"},[this._v(this._s(t.loadError))]),this._v(" "),e("button",{staticClass:"explore-home-assistant-panel__retry",attrs:{type:"button"},on:{click:t.loadChatConf}},[this._v("\n éæ°å è½½\n ")])]):t.chatConf?e(t.Chat,{staticClass:"explore-home-assistant-panel__chat",attrs:{"chat-conf":t.chatConf,theme:this.theme},on:{"post-message":t.handlePostMessage,"set-ai-assistant":t.handleSetting}}):e("div",{staticClass:"explore-home-assistant-panel__state"},[e("p",{staticClass:"explore-home-assistant-panel__state-title"},[this._v("å½å页颿䏿¯æ AI å°å©æ")]),this._v(" "),e("p",{staticClass:"explore-home-assistant-panel__state-desc"},[this._v("ä¿çäºæå¼ãå
³éå设置äºä»¶å£ï¼åç»å¯ä»¥ç»§ç»æ¥å
¥ã")])])],1)},[],!1,null,"47d87f9e",null).exports;n(52042);var O=(0,f.Z)({__name:"ExploreHomeTitleIcon",props:{direction:{type:String,default:"left",validator:function(e){return["left","right"].includes(e)}}},setup:function(e){var t=(0,a.getCurrentInstance)(),n="explore-home-title-icon-".concat((null==t?void 0:t.uid)||Math.random().toString(36).slice(2)),r=(0,a.computed)(function(){return"left"===e.direction}),o=(0,a.computed)(function(){return r.value?"M78.5 6H0":"M6 6H84.5"}),i=(0,a.computed)(function(){return"".concat(n,"-").concat(e.direction,"-dot-blur")}),l=(0,a.computed)(function(){return"".concat(n,"-").concat(e.direction,"-line")}),s=(0,a.computed)(function(){return r.value?{x1:78.5,x2:0}:{x1:6,x2:84.5}});return{__sfc:!0,props:e,instance:t,instanceId:n,isLeft:r,linePath:o,dotFilterId:i,lineGradientId:l,gradientPosition:s}}},function(){var e=this._self._c,t=this._self._setupProxy;return e("svg",{attrs:{width:"85",height:"12",viewBox:"0 0 85 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}}
1,[e("path",{attrs:{d:t.linePath,stroke:"url(#".concat(t.lineGradientId,")")}}),this._v(" "),e("g",{attrs:{filter:"url(#".concat(t.dotFilterId,")")}},[e("circle",t.isLeft?{attrs:{cx:"3",cy:"3",r:"3",transform:"matrix(-1 0 0 1 81.5 3)",fill:"var(--explore-home-title-icon-dot-color)"}}:{attrs:{cx:"6",cy:"6",r:"3",fill:"var(--explore-home-title-icon-dot-color)"}})]),this._v(" "),e("defs",[e("filter",{attrs:{id:t.dotFilterId,x:72.5*!!t.isLeft,y:"0",width:"12",height:"12",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"}},[e("feFlood",{attrs:{"flood-opacity":"0",result:"BackgroundImageFix"}}),this._v(" "),e("feBlend",{attrs:{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}}),this._v(" "),e("feGaussianBlur",{attrs:{stdDeviation:"1.5",result:"effect1_foregroundBlur"}})],1),this._v(" "),e("linearGradient",{attrs:{id:t.lineGradientId,x1:t.gradientPosition.x1,y1:"6.5",x2:t.gradientPosition.x2,y2:"6.5",gradientUnits:"userSpaceOnUse"}},[e("stop",{attrs:{"stop-color":"var(--explore-home-title-icon-line-color)"}}),this._v(" "),e("stop",{attrs:{offset:"1","stop-color":"var(--explore-home-title-icon-line-color)","stop-opacity":"0"}})],1)],1)])},[],!1,null,null,null).exports,S=n(49143),x=(0,f.Z)({__name:"ExploreHomeGlobalOverviewSection",props:{theme:{type:String,default:"dark"},imageProps:{type:Object,default:function(){return{}}},title:{type:String,default:"ä¸ä¸å
¨å±æ¦è§"},hasHeaderOffset:{type:Boolean,default:!1}},setup:function(e){return{__sfc:!0,ExploreHomeTitleIcon:O,SpecialtyMajorCenterGlobalOverview:S.default}}},function(){var e=this._self._c,t=this._self._setupProxy;return e("section",{staticClass:"ai-subject-display-home-explore__global-overview",class:["theme-".concat(this.theme),{"has-header-offset":this.hasHeaderOffset}]},[e("div",{staticClass:"ai-subject-display-home-explore__global-overview-bg ai-subject-display-home-explore__global-overview-bg--left"}),this._v(" "),e("div",{staticClass:"ai-subject-display-home-explore__global-overview-bg ai-subject-display-home-explore__global-overview-bg--right"}),this._v(" "),e("div",{staticClass:"ai-subject-display-home-explore__global-overview-inner"},[e("div",{staticClass:"ai-subject-display-home-explore__global-overview-title"},[e("div",{staticClass:"ai-subject-display-home-explore__global-overview-title-en"},[e("span",{staticClass:"ai-subject-display-home-explore__global-overview-title-icon",attrs:{"aria-hidden":"true"}},[e(t.ExploreHomeTitleIcon,{attrs:{direction:"left"}})],1),this._v(" "),e("span",{staticClass:"ai-subject-display-home-explore__global-overview-title-en-text"},[this._v("Major Global Overview")]),this._v(" "),e("span",{staticClass:"ai-subject-display-home-explore__global-overview-title-icon",attrs:{"aria-hidden":"true"}},[e(t.ExploreHomeTitleIcon,{attrs:{direction:"right"}})],1)]),this._v(" "),e("div",{staticClass:"ai-subject-display-home-explore__global-overview-title-text"},[this._v(this._s(this.title))])]),this._v(" "),e("div",{staticClass:"ai-subject-display-home-explore__global-overview-content"},[e(t.SpecialtyMajorCenterGlobalOverview,this._b({attrs:{"allow-navigation":!1,"show-version-switch":!1}},"SpecialtyMajorCenterGlobalOverview",this.imageProps,!1))],1)])])},[],!1,null,"efdd6f84",null).exports,A=n(28864),k=n(75276);n(80287);var I=n(87015),T=n(80698),E=n(6966),D=Object.freeze({DEFAULT:"default",ACCOMPANY_PAGE:"accompany-page",AGENT_FULLSCREEN:"agent-fullscreen"});function P(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function j(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){P(o,a,r,i,l,"next",e)}function l(e){P(o,a,r,i,l,"throw",e)}i(void 0)})}}function L(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var R={__name:"ExploreHomeAssistantToggle",props:{theme:{type:String,default:"dark"},layout:{type:String,default:"center"},isEditMode:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},subjectInfo:{type:Object,default:function(){return{}}},settingJson:{type:Object,default:function(){return{}}},isMobileLayout:{type:Boolean,default:!1}},emits:[_.OPEN_AI_ASSISTANT,_.CLOSE_AI_ASSISTANT,_.TOGGLE_AI_ASSISTANT,_.SET_AI_ASSISTANT],setup:function(e,t){var n=t.emit,o=(0,r._p)("aiSubjectStore").useState,i=o(["agentInfo","settingJson","userInfo","studyCompanion"]),l=i.agentInfo,s=i.settingJson,u=i.userInfo,c=i.studyCompanion,d=(0,I.Z)().updateSettingJson,f=(0,a.ref)(null),p=(0,a.ref)(!1),v=(0,a.computed)(function(){var t,n,a,r;return Number((null==(n=s.value)||null==(t=n.home)?void 0:t.chatType)||(null==(r=e.settingJson)||null==(a=r.home)?void 0:a.chatType)||1)}),h=(0,a.computed)(function(){return 1===v.value}),m=(0,a.computed)(function(){return h.value?"åæ¢ä¸ºå¦ä¼´":"åæ¢ä¸ºæºè½ä½"}),g=(0,a.computed)(function(){var e,t,n,a,r;return 2===v.value?(null==(n=c.value)?void 0:n.name)||(null==(r=f.value)||null==(a=r.chatOptions)?void 0:a.title)||"":(null==(t=f.value)||null==(e=t.chatOptions)?void 0:e.title)||""}),b=(0,a.computed)(function(){var e,t,n,a,r;return 2===v.value?(null==(n=c.value)?void 0:n.logo)||(null==(r=f.value)||null==(a=r.chatOptions)?void 0:a.avatar)||"":(null==(t=f.value)||null==(e=t.chatOptions)?void 0:e.avatar)||""}),w=0;function C(){return j(function(){var t,n,r,o,i,s,c,d,p,h=arguments;return L(this,function(m){switch(m.label){case 0:r=void 0===(n=(t=h.length>0&&void 0!==h[0]?h[0]:{}).chatType)?v.value:n,i=void 0!==(o=t.forceUpdate)&&o,w=s=w+1,m.label=1;case 1:return m.trys.push([1,3,,4]),c=l.value||{},d=e.subjectInfo||{},[4,(0,y.v)({agentId:c.id||(null==d?void 0:d.agent_id),universityId:c.university_id||(null==d?void 0:d.university_id),agentLevel:c.level,userInfo:u.value,chatType:r,forceUpdate:i,nextTick:a.nextTick})];case 2:if(p=m.sent(),w!==s)return[2];return f.value=p,[3,4];case 3:if(m.sent(),w!==s)return[2];return f.value=null,[3,4];case 4:return[2]}})}).apply(this,arguments)}return(0,a.onMounted)(function(){C()}),(0,a.watch)(function(){var t,n,a,r,o,i,c,d,f,p;return[null==(t=e.subjectInfo)?void 0:t.agent_id,null==(n=e.subjectInfo)?void 0:n.university_id,null==(a=l.value)?void 0:a.id,null==(r=l.value)?void 0:r.university_id,null==(o=l.value)?void 0:o.level,null==(c=s.value)||null==(i=c.home)?void 0:i.chatType,null==(f=e.settingJson)||null==(d=f.home)?void 0:d.chatType,null==(p=u.value)?void 0:p.user_id]},function(){p.value||C()}),{__sfc:!0,useState:o,agentInfo:l,storeSettingJson:s,userInfo:u,studyCompanion:c,updateSettingJson:d,props:e,emit:n,chatConf:f,isSwitchingAssistantType:p,currentChatType:v,isHomeAgentChat:h,assistantSwitchText:m,assistantTitle:g,assistantAvatar:b,latestRequestId:w,loadChatConf:C,handleOpen:function(){var t=v.value;n(_.OPEN_AI_ASSISTANT,{chatType:t,openMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isMobileLayout,n=e.chatType;return void 0!==t&&t?2===Number(void 0===n?1:n)?D.ACCOMPANY_PAGE:D.AGENT_FULLSCREEN:D.DEFAULT}({isMobileLayout:e.isMobileLayout,chatType:t})})},handleClose:function(){n(_.CLOSE_AI_ASSISTANT)},handleSetting:function(){n(_.SET_AI_ASSISTANT)},handleSwitchAssistantType:function(){return j(function(){var t,n,a;return L(this,function(r){switch(r.label){case 0:if(p.value)return[2];p.value=!0,t=h.value?2:1,r.label=1;case 1:var o,i;return r.trys.push([1,,4,5]),[4,d({home:(o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}({},(null==(n=s.value)?void 0:n.home)||(null==(a=e.settingJson)?void 0:a.home)),i=i={chatType:t}
1,Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))}),o)})];case 2:return r.sent(),[4,C({chatType:t,forceUpdate:!0})];case 3:return r.sent(),[3,5];case 4:return p.value=!1,[7];case 5:return[2]}})})()},SettingsBtn:k.Z}}},M=(0,f.Z)(R,function(){var e=this._self._c,t=this._self._setupProxy;return e("section",{staticClass:"explore-home-assistant-toggle",class:["theme-".concat(this.theme),"layout-".concat(this.layout),{"is-edit-mode":this.isEditMode,"is-visible":this.visible,"is-reserved":this.visible}]},[this.isEditMode?e("div",{staticClass:"explore-home-assistant-toggle__toolbar"},[e(t.SettingsBtn,{class:["explore-home-assistant-toggle__setting","explore-home-assistant-toggle__switch",{"is-loading":t.isSwitchingAssistantType}],attrs:{icon:"icon-qiehuanshenfen",text:t.isSwitchingAssistantType?"忢ä¸...":t.assistantSwitchText},nativeOn:{click:function(e){return e.stopPropagation(),t.handleSwitchAssistantType.apply(null,arguments)}}}),this._v(" "),t.isHomeAgentChat?e(t.SettingsBtn,{staticClass:"explore-home-assistant-toggle__setting",attrs:{icon:"icon-chakanmoshi-kapian-mianzhuangorgengduo",text:"设置"},nativeOn:{click:function(e){return e.stopPropagation(),t.handleSetting.apply(null,arguments)}}}):this._e(),this._v(" "),this.visible?e("button",{staticClass:"explore-home-assistant-toggle__collapse",attrs:{type:"button"},on:{click:t.handleClose}},[this._v("\n æ¶èµ·\n ")]):this._e()],1):this._e(),this._v(" "),e("button",{staticClass:"explore-home-assistant-toggle__trigger",attrs:{type:"button"},on:{click:t.handleOpen}},[e("span",{staticClass:"explore-home-assistant-toggle__surface"},[e("span",{staticClass:"explore-home-assistant-toggle__avatar-wrap"},[e("span",{staticClass:"explore-home-assistant-toggle__avatar"},[t.assistantAvatar?e("img",{key:t.assistantAvatar,attrs:{src:t.assistantAvatar,alt:t.assistantTitle}}):this._e()]),this._v(" "),this._m(0)]),this._v(" "),e("span",{staticClass:"explore-home-assistant-toggle__content"},[t.assistantTitle?e("span",{staticClass:"explore-home-assistant-toggle__title"},[this._v("\n hiï¼ææ¯"+this._s(t.assistantTitle)+"\n ")]):this._e(),this._v(" "),e("span",{staticClass:"explore-home-assistant-toggle__placeholder"},[this._v("请è¾å
¥æ¨çé®é¢...")])])])])])},[function(){var e=this._self._c;return this._self._setupProxy,e("span",{staticClass:"explore-home-assistant-toggle__online"},[e("span",{staticClass:"explore-home-assistant-toggle__online-inner"})])}],!1,null,"567a8c52",null).exports;n(72775),n(27281),n(13794),n(87481),n(63064),n(64213);var N=n(73121);n(61596),n(76556),n(44959),n(50928),n(35621);var B=Object.freeze({VIDEO:"video",IMAGE:"image"}),U=Object.freeze({DEFAULT_VIDEO:"defaultVideo",UPLOAD_IMAGE:"uploadImage",UPLOAD_GIF:"uploadGif",UPLOAD_VIDEO:"uploadVideo"}),H=Object.freeze({dark:["https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/ai-subject-display/video/dark/ai-subject-display-home-explore-dark-1.mp4","https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/ai-subject-display/video/dark/ai-subject-display-home-explore-dark-2.mp4","https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/ai-subject-display/video/dark/ai-subject-display-home-explore-dark-3.mp4"],light:["https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/ai-subject-display/video/light/ai-subject-display-home-explore-light-1.mp4","https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/ai-subject-display/video/light/ai-subject-display-home-explore-light-2.mp4"]});function G(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t.find(function(e){return null!=e&&"".concat(e).trim()});return void 0===a?"":"".concat(a).trim()}function F(e,t,n,a){var r=Number(e);return Number.isFinite(r)?Math.max(t,Math.min(n,r)):a}function V(){var e,t,n,a,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dark",l=((null==o?void 0:o.home)||{}).backgroundConfig||{},s=(null==l?void 0:l[i])||(null==l||null==(e=l.theme_config)?void 0:e[i])||(null==l||null==(t=l.themeMap)?void 0:t[i])||null,u=s||{},c=s?{}:l,d=H[i]||H.dark,f=(u.type||u.background_type||c.type||c.background_type)===B.IMAGE?B.IMAGE:B.VIDEO,p=function(e,t){if(!t)return 0;var n=Number(e);return Number.isNaN(n)||n<0?0:Math.min(n,t-1)}(null!=(r=null!=(a=null!=(n=u.preset_index)?n:u.presetIndex)?a:c.preset_index)?r:c.presetIndex,d.length),v=G(u.video_url,u.videoUrl,u.url,u.src,c.video_url,c.videoUrl,c.url,c.src),h=G(u.ccvid,u.video_ccvid,u.videoCcvid,c.ccvi
1d,c.video_ccvid,c.videoCcvid),m=G(u.image_url,u.imageUrl,u.background_image,c.image_url,c.imageUrl,c.background_image),g=d[p]||d[0]||"",_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,i=G(e.resource_kind,e.resourceKind,e.mode,t.resource_kind,t.resourceKind,t.mode);return Object.values(U).includes(i)?i:n===B.IMAGE?/\.gif(?:$|[?#])/i.test(a)?U.UPLOAD_GIF:U.UPLOAD_IMAGE:r||o?U.UPLOAD_VIDEO:U.DEFAULT_VIDEO}(u,c,f,m,v,h),y=function(){var e,t,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null!=(n=null!=(t=null!=(e=a.loop_play)?e:a.loopPlay)?t:r.loop_play)?n:r.loopPlay;return null==o||""===o||("string"==typeof o?"false"!==o&&"0"!==o:!!o)}(u,c),b=u.filter||c.filter||{},w={opacity:F(b.opacity,0,1,1),blur:F(b.blur,0,100,0),brightness:F(b.brightness,0,100,100)},C=G(u.file_name,u.fileName,c.file_name,c.fileName,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e||"string"!=typeof e)return"";try{var t=e.split("?")[0].split("/").pop()||"";return decodeURIComponent(t)}catch(e){return""}}(f===B.IMAGE?m:v)),O=_===U.DEFAULT_VIDEO;return{mode:_,type:f,src:f===B.IMAGE?m:v||(O?g:""),presetVideos:d,presetIndex:p,imageSrc:m,videoSrc:v,ccvid:h,loopPlay:y,filter:w,fileName:C,fallbackVideo:g,isDefault:O}}n(86067);var q=n(53132);function z(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.videoRef,n=e.videoSource,r="undefined"!=typeof window&&(0,q.wi)()&&(0,q.CL)(),o=!1,i=!1,l=!1,s=!1,u=!1,c=0;function d(){if(!r||u||s)return Promise.resolve(null);var e=null==t?void 0:t.value;if(!e)return Promise.resolve(null);e.muted=!0,e.defaultMuted=!0,e.setAttribute("muted",""),e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""),s=!0;try{var n=e.play();return Promise.resolve(n).then(function(){return!0}).catch(function(){return!1}).then(function(e){return s=!1,e})}catch(e){return s=!1,Promise.resolve(!1)}}function f(){o&&(document.removeEventListener("touchstart",v,!0),document.removeEventListener("click",v,!0),o=!1)}function p(){o||u||(document.addEventListener("touchstart",v,{capture:!0,passive:!0}),document.addEventListener("click",v,!0),o=!0)}function v(e){(null==e?void 0:e.type)==="touchstart"&&(c=Date.now()),!((null==e?void 0:e.type)==="click"&&Date.now()-c<700)&&(s||d().then(function(e){e&&f()}))}function h(e){if(e)return void f();!1===e&&p()}function m(){if(i&&!l&&(null==t?void 0:t.value)){var e=window.WeixinJSBridge;if(!(null==e?void 0:e.invoke)){i=!1;return}l=!0;try{e.invoke("getNetworkType",{},function(){l=!1,d().then(h)})}catch(e){l=!1,p()}}}function g(){m()}function _(){document.hidden||m()}function y(){var e;i=!!(null==(e=window.WeixinJSBridge)?void 0:e.invoke),m()}return r&&(0,a.watch)(function(){return null==n?void 0:n.value},function(e){var t;return(t=function(){return function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:if(f(),!e)return[2];return[4,(0,a.nextTick)()];case 1:return t.sent(),m(),[2]}})},function(){var e=this,n=arguments;
1return new Promise(function(a,r){var o=t.apply(e,n);function i(e){z(o,a,r,i,l,"next",e)}function l(e){z(o,a,r,i,l,"throw",e)}i(void 0)})})()},{immediate:!0}),(0,a.onMounted)(function(){var e;r&&(document.addEventListener("WeixinJSBridgeReady",y,!1),document.addEventListener("visibilitychange",_),window.addEventListener("pageshow",m),i=!!(null==(e=window.WeixinJSBridge)?void 0:e.invoke),(0,a.nextTick)(m))}),(0,a.onBeforeUnmount)(function(){u=!0,f(),r&&(document.removeEventListener("WeixinJSBridgeReady",y,!1),document.removeEventListener("visibilitychange",_),window.removeEventListener("pageshow",m))}),{backgroundVideoEvents:r?{loadedmetadata:g,canplay:g}:{}}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function K(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function W(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){K(o,a,r,i,l,"next",e)}function l(e){K(o,a,r,i,l,"throw",e)}i(void 0)})}}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var X={__name:"ExploreHomeBackground",props:{theme:{type:String,default:h.DARK},layout:{type:String,default:"center"},settingJson:{type:Object,default:function(){return{}}}},setup:function(e){var t=(0,a.ref)(""),n=(0,a.ref)(null),r=0,o=(0,a.computed)(function(){return V(e.settingJson,e.theme)}),i=(0,a.computed)(function(){var e=[];return o.value.filter.opacity<1&&e.push("opacity(".concat(o.value.filter.opacity,")")),o.value.filter.blur>0&&e.push("blur(".concat(o.value.filter.blur,"px)")),100!==o.value.filter.brightness&&e.push("brightness(".concat(o.value.filter.brightness,"%)")),e.length?{filter:e.join(" ")}:{}}),l=(0,a.computed)(function(){return o.value.mode===U.UPLOAD_VIDEO?t.value||o.value.videoSrc||"":o.value.src}),s=(0,a.computed)(function(){return[e.theme,o.value.type,l.value,o.value.ccvid,o.value.imageSrc,o.value.presetIndex,+!!o.value.loopPlay].join("|")}),u=(0,a.computed)(function(){var t;return $(t={},"theme-".concat(e.theme),!0),$(t,"is-image",o.value.type===B.IMAGE),$(t,"is-default",o.value.isDefault),t}),c=Z({videoRef:n,videoSource:l}).backgroundVideoEvents;function d(e){return(e||"").replace(/^http:\/\//,"https://")}function f(e){var t,n,a,r=(null==e||null==(n=e.data)||null==(t=n.playurl)?void 0:t.sources)||(null==e||null==(a=e.playurl)?void 0:a.sources)||{};return d(Object.keys(r).filter(function(e){var t;return/^quality\d+$/.test(e)&&(null==(t=r[e])?void 0:t[0])}).sort(function(e,t){return Number(t.replace("quality",""))-Number(e.replace("quality",""))}).map(function(e){return r[e][0]})[0])}function p(e){var t,n;return d((null==(n=((null==e||null==(t=e.data)?void 0:t.video)||(null==e?void 0:e.video)||[]).reduce(function(e,t){if(!(null==t?void 0:t.playurl))return e;var n=Number(t.quality),a=Number(null==e?void 0:e.quality);return!e||n>a?t:e},null))?void 0:n.playurl)||"")}function v(e){return W(function(){var t;return Y(this,function(n){switch(n.label){case 0:return t={video_id:e,provider:"cc",file_type:1,is_single:0,no_loading:!0},[4,N.ZP.get("/api/open/audiovideo/playurl",t)];case 1:return[2,f(n.sent())]}})})()}function h(e){return W(function(){return Y(this,function(t){switch(t.label){case 0:return[4,N.ZP.get("/c27/online_courseware/service/video2ccsource/".concat(e,"/"))];case 1:return[2,p(t.sent())]}})})()}function m(e){return W(function(){var t;return Y(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,v(e)];case 1:if(t=n.sent())return[2,t];return[3,3];case 2:return n.sent(),[3,3];case 3:return[2,h(e)]}})})()}return(0,a.watch)(function(){return[o.value.mode,o.value.ccvid,o.value.videoSrc]},function(e){var n=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,a,r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw a}}return o}}(e,3)||function(e,t){if(e){if("string"==typeof e)return J(e,3);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}}
1(e,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=n[0],o=n[1],i=n[2];return W(function(){var e,n;return Y(this,function(l){switch(l.label){case 0:if(r+=1,e=r,t.value="",a!==U.UPLOAD_VIDEO)return[2];if(!o)return t.value=i||"",[2];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,m(o)];case 2:return n=l.sent(),e===r&&(t.value=n),[3,4];case 3:return console.error("Failed to resolve explore background video:",l.sent()),[3,4];case 4:return[2]}})})()},{immediate:!0}),{__sfc:!0,props:e,runtimeVideoSrc:t,backgroundVideoRef:n,videoRequestToken:r,backgroundConfig:o,backgroundVisualStyle:i,renderSrc:l,backgroundRenderKey:s,rootClasses:u,backgroundVideoEvents:c,normalizePlayUrl:d,getHighestQualityAudiovideoPlayUrl:f,getHighestQualityPlayUrl:p,getPlayUrlByAudioVideo:v,getPlayUrlByVideo2ccsource:h,getExploreBackgroundPlayUrl:m,EXPLORE_HOME_BACKGROUND_TYPE:B}}},Q=(0,f.Z)(X,function(){var e=this._self._c,t=this._self._setupProxy;return e("div",{staticClass:"explore-home-background",class:t.rootClasses,style:t.backgroundVisualStyle},[t.backgroundConfig.type===t.EXPLORE_HOME_BACKGROUND_TYPE.VIDEO&&t.renderSrc?e("video",this._g({key:t.backgroundRenderKey,ref:"backgroundVideoRef",staticClass:"explore-home-background__media",attrs:{poster:t.backgroundConfig.imageSrc||"",autoplay:"",muted:"",loop:t.backgroundConfig.loopPlay,playsinline:"","webkit-playsinline":"","x5-playsinline":"",preload:"auto"},domProps:{muted:!0}},t.backgroundVideoEvents),[e("source",{attrs:{src:t.renderSrc,type:"video/mp4"}})]):t.renderSrc?e("img",{key:t.backgroundRenderKey,staticClass:"explore-home-background__media",attrs:{src:t.renderSrc,alt:""}}):e("div",{key:t.backgroundRenderKey,staticClass:"explore-home-background__fallback"})])},[],!1,null,"78f7912d",null).exports,ee=n(17504),et=n(93215);function en(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function ea(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function er(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){ea(o,a,r,i,l,"next",e)}function l(e){ea(o,a,r,i,l,"throw",e)}i(void 0)})}}function eo(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var ei=(0,f.Z)({__name:"ExploreHomeDigitalHumanVideo",props:{data:{type:Object,required:!0},theme:{type:String,default:"dark"}},setup:function(e){var t,n,r=(0,a.ref)({src:"",type:"video/webm"}),o=(0,a.ref)(!1),i=(0,a.ref)({}),l=(0,a.ref)(null),s=(0,a.ref)(null);function u(){var e,t,n=l.value;if(n){var a=n.parentElement,r=a.getBoundingClientRect(),o=a.offsetHeight?r.height/a.offsetHeight:1,i=((null==(e=window.visualViewport)?void 0:e.offsetTop)||0)+((null==(t=window.visualViewport)?void 0:t.height)||window.innerHeight),s=12+Math.max(0,r.bottom-12*o-i+10)/(o||1);n.style.bottom="".concat(s,"px")}}function c(){window.cancelAnimationFrame(n);var e=0;!function t(){u(),++e<60&&(n=window.requestAnimationFrame(t))}()}var d=(0,a.computed)(function(){var t;return{crossorigin:"anonymous",muted:!o.value,autoplay:!0,loop:!!(null==(t=e.data)?void 0:t.loop_play)}}),f=(0,a.computed)(function(){return r.value.src}),p=(0,a.computed)(function(){return!o.value});function v(){var t,n=s.value;n&&(n.muted=!o.value,n.loop=!!(null==(t=e.data)?void 0:t.loop_play))}var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.videoRef,n=e.videoSource,r=e.isMuted,o="undefined"!=typeof window&&(0,q.wi)()&&(0,q.CL)(),i=!1,l=!1,s=!1,u=!1,
1c=!1,d=!1,f=null;function p(){return(null==t?void 0:t.value)||null}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.forceMuted,n=void 0!==t&&t;if(!o||d||s||n&&c)return Promise.resolve(null);var a=p();if(!a)return Promise.resolve(null);!function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t||!!(null==r?void 0:r.value);e.muted=n,e.defaultMuted=n,e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),n?e.setAttribute("muted",""):e.removeAttribute("muted")}(a,n&&!u),s=!0;try{var i=a.play();return Promise.resolve(i).then(function(){return!0}).catch(function(){return!1}).then(function(e){return s=!1,e})}catch(e){return s=!1,Promise.resolve(!1)}}function h(){if(i&&!l&&!c&&p()){var e=window.WeixinJSBridge;if(!(null==e?void 0:e.invoke)){i=!1;return}l=!0;try{e.invoke("getNetworkType",{},function(){l=!1,v({forceMuted:!0})})}catch(e){l=!1}}}function m(){h()}function g(){var e;i=!!(null==(e=window.WeixinJSBridge)?void 0:e.invoke),h()}function _(){document.hidden||h()}return o&&((0,a.watch)(function(){return null==t?void 0:t.value},function(e){f!==e&&(f&&(f.removeEventListener("loadedmetadata",m),f.removeEventListener("canplay",m)),c=!1,(f=e)&&(f.addEventListener("loadedmetadata",m),f.addEventListener("canplay",m))),h()},{immediate:!0}),(0,a.watch)(function(){return null==n?void 0:n.value},function(e,t){var n;return(n=function(){return function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(n){switch(n.label){case 0:if(e!==t&&(c=!1),!e)return[2];return[4,(0,a.nextTick)()];case 1:return n.sent(),h(),[2]}})},function(){var e=this,t=arguments;return new Promise(function(a,r){var o=n.apply(e,t);function i(e){en(o,a,r,i,l,"next",e)}function l(e){en(o,a,r,i,l,"throw",e)}i(void 0)})})()},{immediate:!0})),(0,a.onMounted)(function(){var e;o&&(document.addEventListener("WeixinJSBridgeReady",g,!1),document.addEventListener("visibilitychange",_),window.addEventListener("pageshow",h),i=!!(null==(e=window.WeixinJSBridge)?void 0:e.invoke),(0,a.nextTick)(h))}),(0,a.onBeforeUnmount)(function(){d=!0,f&&(f.removeEventListener("loadedmetadata",m),f.removeEventListener("canplay",m),f=null),o&&(document.removeEventListener("WeixinJSBridgeReady",g,!1),document.removeEventListener("visibilitychange",_),window.removeEventListener("pageshow",h))}),{playFromUserGesture:function(){return!o||d||c||!p()||s?Promise.resolve(null):(u=!0,c=!0,v())}}}({videoRef:s,videoSource:f,isMuted:p}).playFromUserGesture;return(0,a.onMounted)(function(){return er(function(){var n,o,s,u,d,f,p,v;return eo(this,function(h){switch(h.label){case 0:return[4,(0,a.nextTick)()];case 1:h.sent(),c(),(t=new ResizeObserver(c)).observe(l.value.parentElement),window.addEventListener("resize",c),window.addEventListener("scroll",c,!0),null==(n=window.visualViewport)||n.addEventListener("resize",c),null==(o=window.visualViewport)||o.addEventListener("scroll",c),s=e.data.agent_digital_human_id,u=e.data.digital_human_video_id,h.label=2;case 2:return h.trys.push([2,4,,5]),[4,N.ZP.get("/c27/online_courseware/agent/".concat(s,"/digital_human_video/").concat(u,"/"))];case 3:var m;return(null==(p=h.sent())?void 0:p.data)&&"object"==((m=p.data)&&"undefined"!=typeof Symbol&&m.constructor===Symbol?"symbol":typeof m)&&((0,et.mH)()||!p.data.video_url)&&p.data.mp4_video_url&&(p.data.webm_video_url=p.data.video_url,p.data.video_url=p.data.mp4_video_url,p.data.video_id=p.data.mp4_video_id),(v=(null==p||null==(d=p.data)?void 0:d.video_url)||(null==p||null==(f=p.data)?void 0:f.mp4_video_url)||"")&&(r.value={src:v,type:/\.mp4/.test(v)?"video/mp4":"video/webm"},i.value=p.data.extra_data||{}),[3,5];case 4:return console.log(h.sent()),[3,5];case 5:return[2]}})})()}),(0,a.onBeforeUnmount)(function(){var e,a;null==t||t.disconnect(),window.cancelAnimationFrame(n),window.removeEventListener("resize",c),window.removeEventListener("scroll",c,!0),null==(e=window.visualVie
1wport)||e.removeEventListener("resize",c),null==(a=window.visualViewport)||a.removeEventListener("scroll",c)}),(0,a.watch)([o,function(){var t;return null==(t=e.data)?void 0:t.loop_play}],function(){return er(function(){return eo(this,function(e){switch(e.label){case 0:return[4,(0,a.nextTick)()];case 1:return e.sent(),v(),[2]}})})()},{immediate:!0}),{__sfc:!0,props:e,videoData:r,volume:o,videoStyleData:i,volumeButtonRef:l,nativeVideoRef:s,volumeButtonObserver:t,volumeButtonFrame:n,updateVolumeButtonPosition:u,handleViewportChange:c,videoOptions:d,videoSource:f,isMuted:p,syncMutedState:v,playFromUserGesture:h,handleVideoReady:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).videoElement;s.value=(null==e?void 0:e.value)||null,v()},handleToggleVolume:function(){o.value=!o.value,v(),h()},DigitalHumanVideoThemeViewport:ee.Z}}},function(){var e=this._self._c,t=this._self._setupProxy;return e("div",{staticClass:"digital-human-box",class:"theme-".concat(this.theme)},[e("button",{ref:"volumeButtonRef",staticClass:"digital-human-volume-btn",attrs:{type:"button"},on:{click:t.handleToggleVolume}},[e("i",{staticClass:"iconfont f16",class:[t.volume?"icon-yinliang":"icon-yinliang-guanbi"]})]),this._v(" "),e(t.DigitalHumanVideoThemeViewport,{staticClass:"digital-human-video-multiple-box",attrs:{"video-style-data":t.videoStyleData,options:t.videoOptions,source:t.videoData.src?[t.videoData]:[],"is-mp4":/\.mp4/.test(t.videoData.src||"")},on:{ready:t.handleVideoReady,"loadedmetadata-ready":t.handleVideoReady}})],1)},[],!1,null,"6a0023c5",null).exports;function el(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}var es="__explore-home-digital-human-empty__";function eu(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(null==t||null==(e=t.home)?void 0:e.digitalHuman)||{},a=n.video_id||"";return{raw:n,hasContent:!!a,videoId:a,loopPlay:!!n.loop_play,previewData:{agent_digital_human_id:n.agent_digital_human_id||"",digital_human_video_id:n.digital_human_video_id||"",video_id:a,loop_play:!!n.loop_play}}}function ec(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(function(e){return e.videoId})}function ed(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.loopPlay,a=void 0!==n&&n;return e&&e!==es?{agent_digital_human_id:e.agentDigitalHumanId||"",digital_human_video_id:e.digitalHumanVideoId||"",video_id:e.videoId||"",loop_play:!!a}:{agent_digital_human_id:"",digital_human_video_id:"",video_id:"",loop_play:!!a}}function ef(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ep=(0,f.Z)({__name:"ExploreHomeDigitalHuman",props:{theme:{type:String,default:"dark"},layout:{type:String,default:"center"},subjectInfo:{type:Object,default:function(){return{}}},settingJson:{type:Object,default:function(){return{}}},isEditMode:{type:Boolean,default:!1},reserved:{type:Boolean,default:!1}},emits:["open-digital-human-dialog"],setup:function(e,t){var n=t.emit,r=(0,a.computed)(function(){return eu(e.settingJson)}),o=(0,a.computed)(function(){var t,n,a;return!!(null==(a=e.settingJson)||null==(n=a.home)||null==(t=n.digitalHuman)?void 0:t.video_id)}),i=(0,a.computed)(function(){return e.reserved||o.value}),l=(0,a.computed)(function(){return e.reserved&&!o.value}),s=(0,a.computed)(function(){return o.value}),u=(0,a.computed)(function(){return e.isEditMode}),c=(0,a.computed)(function(){return"".concat(r.value.videoId||"digital-human","-").concat(+!!r.value.loopPlay)}),d=(0,a.computed)(function(){var t;return ef(t={},"theme-".concat(e.theme),!0),ef(t,"layout-".concat(e.layout),!0),ef(t,"is-edit-mode",e.isEditMode),t});return{__sfc:!0,props:e,emit:n,digitalHumanConfig:r,hasRenderableContent:o,shouldRender:i,showEmptyState:l,showPreviewComponent:s,showCenterEditButton:u,previewKey:c,componentClasses:d,SettingsBtn:k.Z,ExploreHomeDigitalHumanVideo:ei}}},function(){var e=this._self._c,t=this._self._setupProxy;return t.shouldRender?e("section",{staticClass:"explore-home-digital-human",class:t.componentClasses},[e("div",{staticClass:"explore-home-digital-human__stage",class:{"
1is-empty":t.showEmptyState,"is-ready":t.hasRenderableContent}},[t.showPreviewComponent?e(t.ExploreHomeDigitalHumanVideo,{key:t.previewKey,staticClass:"explore-home-digital-human__preview",attrs:{data:t.digitalHumanConfig.previewData,theme:this.theme}}):this._e(),this._v(" "),t.showCenterEditButton?e("button",{staticClass:"explore-home-digital-human__center-edit",attrs:{type:"button"},on:{click:function(e){return t.emit("open-digital-human-dialog")}}},[e(t.SettingsBtn,{attrs:{text:"ç¼è¾æ°å人",icon:"icon-bianji"}})],1):this._e(),this._v(" "),t.showEmptyState?e("div",{staticClass:"explore-home-digital-human__empty"}):this._e()],1)]):this._e()},[],!1,null,"6bb260a4",null).exports,ev=n(56907),eh=n(82504);function em(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function eg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var e_={__name:"ExploreHomeSubjectPanel",props:{theme:{type:String,default:h.DARK},layout:{type:String,default:m.CENTER},subjectInfo:{type:Object,default:function(){return{}}},settingJson:{type:Object,default:function(){return{}}},isEditMode:{type:Boolean,default:!1},hasDigitalHuman:{type:Boolean,default:!1},refreshKey:{type:[Number,String],default:0}},emits:[_.OPEN_DATA_DIALOG],setup:function(e,t){var n=t.emit,o=(0,r._p)("aiSubjectStore").useState,i=o(["agentInfo"]).agentInfo,l=(0,a.ref)([]),s=(0,a.ref)(!1),u=(0,a.computed)(function(){var e;return Number((null==(e=i.value)?void 0:e.id)||0)}),c=(0,a.computed)(function(){var e;return Number(null==(e=i.value)?void 0:e.level)||6}),d=(0,a.computed)(function(){var t,n;return Number(null==(n=e.settingJson)||null==(t=n.basic)?void 0:t.switch_source)||1}),f=(0,a.computed)(function(){return"en"===ev.a.locale}),p=(0,a.computed)(function(){return e.layout===m.CENTER}),v=(0,a.computed)(function(){var t,n,a,r,o;return(f.value?(null==(n=e.subjectInfo)||null==(t=n.name_info)?void 0:t.title_en)||(null==(a=e.subjectInfo)?void 0:a.en_title)||(null==(r=e.subjectInfo)?void 0:r.title):null==(o=e.subjectInfo)?void 0:o.title)||""}),g=(0,a.computed)(function(){var t,n,a;return(f.value?(null==(t=e.settingJson)?void 0:t.major_description_en)||(null==(n=e.settingJson)?void 0:n.major_description):null==(a=e.settingJson)?void 0:a.major_description)||""}),y=(0,a.computed)(function(){return!!g.value}),b=(0,a.computed)(function(){return(0,eh.tC)({configItems:l.value,agentLevel:c.value,switchSource:d.value})}),w=(0,a.computed)(function(){var e=p.value?5:2,t=b.value.cards.reduce(function(e,t){return e+("tail"===t.layoutRole?2:1)},0);return t>0&&t<=e}),C=(0,a.computed)(function(){var t;return eg(t={},"theme-".concat(e.theme),!0),eg(t,"layout-".concat(e.layout),!0),eg(t,"has-digital-human",e.hasDigitalHuman),eg(t,"is-edit-mode",e.isEditMode),eg(t,"is-english",f.value),eg(t,"is-stats-single-row",w.value),t});function O(){var e;return(e=function(){return function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:if(!u.value)return l.value=[],[2];s.value=!0,e.label=1;case 1:return e.trys.push([1,,3,4]),[4,(0,eh.x3)(u.value,c.value).cat
1ch(function(e){return console.error("Failed to load explore statistics config:",e),[]})];case 2:return l.value=e.sent(),[3,4];case 3:return s.value=!1,[7];case 4:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){em(o,a,r,i,l,"next",e)}function l(e){em(o,a,r,i,l,"throw",e)}i(void 0)})})()}return(0,a.watch)([u,c,d,function(){return e.refreshKey}],O,{immediate:!0}),{__sfc:!0,useState:o,agentInfo:i,props:e,emits:n,statisticsConfig:l,statisticsLoading:s,agentId:u,agentLevel:c,switchSource:d,isEnglish:f,isCenterLayout:p,subjectTitle:v,subjectDescription:g,shouldScrollDesc:y,statisticsResult:b,isStatsGridSingleRow:w,rootClasses:C,loadStatistics:O,SettingsBtn:k.Z,EXPLORE_HOME_EVENT:_,EXPLORE_HOME_THEME:h}}},ey=(0,f.Z)(e_,function(){var e,t,n=this,a=n._self._c,r=n._self._setupProxy;return a("section",{staticClass:"explore-home-subject-panel",class:r.rootClasses},[r.isCenterLayout?a("div",{staticClass:"explore-home-subject-panel__heading explore-home-subject-panel__heading--hero"},[a("h1",{staticClass:"explore-home-subject-panel__title"},[n._v("\n "+n._s(r.subjectTitle)+"\n ")])]):n._e(),n._v(" "),a("div",{staticClass:"explore-home-subject-panel__frame"},[a("div",{staticClass:"explore-home-subject-panel__intro"},[r.isCenterLayout?n._e():a("div",{staticClass:"explore-home-subject-panel__heading"},[a("h1",{staticClass:"explore-home-subject-panel__title"},[n._v("\n "+n._s(r.subjectTitle)+"\n ")])]),n._v(" "),a("div",{staticClass:"explore-home-subject-panel__desc-wrap",class:{"has-scroll":r.shouldScrollDesc}},[a("div",{staticClass:"explore-home-subject-panel__desc-scroll",class:"theme-".concat(n.theme)},[a("div",{staticClass:"explore-home-subject-panel__desc",domProps:{textContent:n._s(r.subjectDescription)}})])])]),n._v(" "),a("div",{staticClass:"explore-home-subject-panel__stats",class:{"has-scroll":r.statisticsResult.shouldScroll}},[n.isEditMode?a("div",{staticClass:"explore-home-subject-panel__toolbar"},[a(r.SettingsBtn,{attrs:{text:"ç¼è¾æ°æ®"},nativeOn:{click:function(e){return e.stopPropagation(),r.emits(r.EXPLORE_HOME_EVENT.OPEN_DATA_DIALOG)}}})],1):n._e(),n._v(" "),a("div",{staticClass:"explore-home-subject-panel__stats-scroll",class:(e={"has-scroll":r.statisticsResult.shouldScroll},t="theme-".concat(n.theme),t in e?Object.defineProperty(e,t,{value:!0,enumerable:!0,configurable:!0,writable:!0}):e[t]=!0,e)},[a("div",{staticClass:"explore-home-subject-panel__stats-grid"},n._l(r.statisticsResult.cards,function(e,t){return a("article",{key:e.key,staticClass:"explore-home-subject-panel__card",class:{"
1is-placeholder":e.isPlaceholder,"is-tail-card":"tail"===e.layoutRole,"is-loading":r.statisticsLoading&&!e.isPlaceholder}},[a("i",{staticClass:"iconfont explore-home-subject-panel__card-icon",class:e.icon,style:e.darkIconColor&&n.theme===r.EXPLORE_HOME_THEME.DARK?{color:e.darkIconColor}:null}),n._v(" "),a("div",{staticClass:"explore-home-subject-panel__card-body"},[a("p",{staticClass:"explore-home-subject-panel__card-value"},[n._v("\n "+n._s(r.statisticsLoading&&!e.isPlaceholder?"--":e.displayValue)+"\n ")]),n._v(" "),a("p",{staticClass:"explore-home-subject-panel__card-title"},[n._v("\n "+n._s(e.title||"æ°æ®é¡¹ ".concat(t+1))+"\n ")])])])}),0)])]),n._v(" "),n._t("mobile-digital-human")],2)])},[],!1,null,"22033b34",null).exports;function eb(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function ew(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){eb(o,a,r,i,l,"next",e)}function l(e){eb(o,a,r,i,l,"throw",e)}i(void 0)})}}function eC(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var eO={__name:"ExploreHomeStageSection",props:{theme:{type:String,default:"dark"},layout:{type:String,default:m.CENTER},isEditMode:{type:Boolean,default:!1},subjectInfo:{type:Object,default:function(){return{}}},settingJson:{type:Object,default:function(){return{}}},backgroundRefreshKey:{type:[Number,String],default:0},statisticsRefreshKey:{type:[Number,String],default:0},shouldReserveDigitalHumanSpace:{type:Boolean,default:!1},hasDigitalHumanContent:{type:Boolean,default:!1},shouldRenderMobileDigitalHuman:{type:Boolean,default:!1},shouldRenderDesktopDigitalHuman:{type:Boolean,default:!1},isAssistantOpen:{type:Boolean,default:!1},isMobileLayout:{type:Boolean,default:!1},showScrollTip:{type:Boolean,default:!0},enableMainColumnScale:{type:Boolean,default:!0},shouldEnableMainColumnScale:{type:Boolean,default:!0}},emits:["open-background-dialog","open-data-dialog","open-digital-human-dialog","open-ai-assistant","close-ai-assistant","toggle-ai-assistant","set-ai-assistant"],setup:function(e,t){var n=t.emit,r=(0,a.computed)(function(){return e.layout===m.SPLIT}),o=(0,a.ref)(null),i={mainColumnStyle:(0,a.computed)(function(){return null}),scrollTipStyle:(0,a.computed)(function(){return null})},l=e.enableMainColumnScale?function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.stageRef,o=n.layout,i=n.enabled,l=(0,a.computed)(function(){return(null==i?void 0:i.value)!==!1}),s=(0,a.ref)(1),u=(0,a.ref)(1),c=!1;function d(){var e,t;return{assistantRegionElement:null==(e=r.value)?void 0:e.querySelector(".ai-subject-display-home-explore__assistant-region"),heroRegionElement:null==(t=r.value)?void 0:t.querySelector(".ai-subject-display-home-explore__hero-region")}}function f(){c=!1,s.value=1,u.value=1}function p(){t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(function(){t=null,function(){if(!l.value||!r.value)return f();
1var e,t=(null==(e=window.visualViewport)?void 0:e.height)||window.innerHeight,n=t>0&&t<900?t/900:1,a=d(),o=a.assistantRegionElement,i=a.heroRegionElement;if(n>=1||!o||!i)return f();var p=o.getBoundingClientRect(),v=i.getBoundingClientRect();if(!c&&p.top>v.bottom+1){s.value=1,u.value=1;return}c=!0;var h=(null==o?void 0:o.getBoundingClientRect().bottom)||t,m=Math.max(t-h,0);s.value=n,u.value=n<1?Math.min(n,m>0?m/71:1):1}()})}var v=(0,a.computed)(function(){if(!l.value||s.value>=1)return null;var e,t,n=900*s.value,a=(null==o?void 0:o.value)==="split";return e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}({height:"".concat(900,"px")},a?{}:{marginBottom:"".concat(n-900,"px")}),t=t={transform:"scale(".concat(s.value,")"),transformOrigin:"top center"},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}),h=(0,a.computed)(function(){return!l.value||u.value>=1?null:{"--scroll-tip-scale":u.value}});return(0,a.onMounted)(function(){var t;if(p(),window.addEventListener("resize",p),null==(t=window.visualViewport)||t.addEventListener("resize",p),window.ResizeObserver&&r.value){var n=d(),a=n.assistantRegionElement,o=n.heroRegionElement;(e=new ResizeObserver(p)).observe(r.value),a&&e.observe(a),o&&e.observe(o)}}),(0,a.onBeforeUnmount)(function(){var n;window.removeEventListener("resize",p),null==(n=window.visualViewport)||n.removeEventListener("resize",p),t&&window.cancelAnimationFrame(t),null==e||e.disconnect()}),(0,a.watch)(o,function(){return ew(function(){return eC(this,function(e){switch(e.label){case 0:return[4,(0,a.nextTick)()];case 1:return e.sent(),p(),[2]}})})()}),(0,a.watch)(l,function(e){return ew(function(){return eC(this,function(t){switch(t.label){case 0:if(!e)return f(),[2];return[4,(0,a.nextTick)()];case 1:return t.sent(),p(),[2]}})})()}),{mainColumnStyle:v,scrollTipStyle:h}}({stageRef:o,layout:(0,a.computed)(function(){return e.layout}),enabled:(0,a.computed)(function(){return e.shouldEnableMainColumnScale})}):i;return{__sfc:!0,props:e,emit:n,isSplitLayout:r,stageRef:o,emptyStageScaleStyle:i,mainColumnStyle:l.mainColumnStyle,scrollTipStyle:l.scrollTipStyle,ScrollTip:A.Z,SettingsBtn:k.Z,ExploreHomeAssistantToggle:M,ExploreHomeBackground:Q,ExploreHomeDigitalHuman:ep,ExploreHomeSubjectPanel:ey,EXPLORE_HOME_LAYOUT:m}}},eS=(0,f.Z)(eO,function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{ref:"stageRef",staticClass:"ai-subject-display-home-explore__stage",class:{"is-split-layout":n.isSplitLayout,"is-layout-center":e.layout===n.EXPLORE_HOME_LAYOUT.CENTER,"is-layout-split":n.isSplitLayout,"has-digital-human":e.shouldReserveDigitalHumanSpace}},[e.isEditMode?t("div",{staticClass:"ai-subject-display-home-explore__background-toolbar"},[t(n.SettingsBtn,{attrs:{text:"ç¼è¾èæ¯"},nativeOn:{click:function(e){return e.stopPropagation(),n.emit("open-background-dialog")}}})],1):e._e(),e._v(" "),t("div",{staticClass:"ai-subject-display-home-explore__background-layer",class:"theme-".concat(e.theme)},[t(n.ExploreHomeBackground,{key:e.backgroundRefreshKey,attrs:{theme:e.theme,layout:e.layout,"setting-json":e.settingJson}}),e._v(" "),t("div",{staticClass:"ai-subject-display-home-explore__background-overlay"})],1),e._v(" "),t("div",{staticClass:"ai-subject-display-home-explore__main-column",style:n.mainColumnStyle},[t("div",{staticClass:"ai-subject-display-home-explore__hero-region"},[t("div",{staticClass:"ai-subject-display-home-explore__subject-panel-wrap"},[t(n.ExploreHomeSubjectPanel,{attrs:{theme:e.theme,layout:e.layout,"is-edit-mode":e.isEditMode,"subject-info":e.subjectInfo,"setting-json":e.settingJson,"has-digital-human":e.shouldReserveDigitalHumanSpace,"refresh-key":e.statisticsRefreshKey},on:{"open-data-dialog":function(e){return n.emit("open-data-dialog")}},scopedSlots:e._u([{key:"mobile-digital-human",fn:function(){return[e.shouldRenderMobileDigitalHuman?t(n.ExploreHomeDigitalHuman,{staticClass:"explore-home-sub
1ject-panel__mobile-digital-human",attrs:{theme:e.theme,layout:e.layout,"is-edit-mode":e.isEditMode,"subject-info":e.subjectInfo,"setting-json":e.settingJson,reserved:e.shouldReserveDigitalHumanSpace&&!e.hasDigitalHumanContent},on:{"open-digital-human-dialog":function(e){return n.emit("open-digital-human-dialog")}}}):e._e()]},proxy:!0}])}),e._v(" "),t("transition",{attrs:{name:"explore-shell-fade"}},[e.shouldRenderDesktopDigitalHuman?t("div",{staticClass:"ai-subject-display-home-explore__digital-human-column",class:{"has-content":e.hasDigitalHumanContent,"is-placeholder":!e.hasDigitalHumanContent}},[t(n.ExploreHomeDigitalHuman,{attrs:{theme:e.theme,layout:e.layout,"is-edit-mode":e.isEditMode,"subject-info":e.subjectInfo,"setting-json":e.settingJson,reserved:e.shouldReserveDigitalHumanSpace&&!e.hasDigitalHumanContent},on:{"open-digital-human-dialog":function(e){return n.emit("open-digital-human-dialog")}}})],1):e._e()])],1)]),e._v(" "),t("div",{staticClass:"ai-subject-display-home-explore__assistant-region"},[t(n.ExploreHomeAssistantToggle,{attrs:{theme:e.theme,layout:e.layout,"is-edit-mode":e.isEditMode,"subject-info":e.subjectInfo,"setting-json":e.settingJson,visible:e.isAssistantOpen,"is-mobile-layout":e.isMobileLayout},on:{"open-ai-assistant":function(e){return n.emit("open-ai-assistant",e)},"close-ai-assistant":function(e){return n.emit("close-ai-assistant")},"toggle-ai-assistant":function(e){return n.emit("toggle-ai-assistant")},"set-ai-assistant":function(e){return n.emit("set-ai-assistant")}}})],1)]),e._v(" "),e.showScrollTip?t(n.ScrollTip,{staticClass:"ai-subject-display-home-explore__scroll-tip",style:n.scrollTipStyle,attrs:{theme:e.theme,"scroll-height-target":{selector:".ai-subject-display-home-explore__stage"},"scroll-container-target":{selector:".ai-subject-display-home-explore"}}}):e._e()],1)},[],!1,null,"14bcb19f",null).exports;n(93292),n(17718),n(88353);var ex=n(82856);n(56325),n(61657),n(79136);var eA=n(89718),ek=n(71221);function eI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}function eT(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var eE=(0,f.Z)({__name:"TeachingTeamTeacherDetailCard",props:{teacher:{type:Object,default:function(){return{}}},theme:{type:String,default:"dark"},active:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},universityId:{type:[Number,String],default:""}},emits:["teacher-edit-open","teacher-edit-close"],setup:function(e,t){var n=t.emit,r=(0,a.ref)(!1),o=(0,a.computed)(function(){return{"teaching-team-teacher-detail-card":!0,"teaching-team-teacher-detail-card--active":e.active,"teaching-team-teacher-detail-card--light":e.theme===ex.l.LIGHT}}),i=(0,a.computed)(function(){return _(e.teacher)}),l=(0,a.computed)(function(){return h(e.teacher,["teacher_name","name","real_name"],"æå¸")}),s=(0,a.computed)(function(){return h(e.teacher,["picture","avatar","user_logo","logo"],"")}),u=(0,a.computed)(function(){var t;return!!(null==(t=e.teacher)?void 0:t.is_default_avatar)}),c=(0,a.computed)(function(){return!!(s.value&&!u.value)}),d=(0,a.computed)(function(){return h(e.teacher,["department_name","department"],"")}),f=(0,a.computed)(function(){return h(e.teacher,["job_title","teacher_title","professional_title","title","position"],"")}),p=(0,a.computed)(function(){return h(e.teacher,["introduction","intro","description","desc","profile","brief","summary"],"ææ æå¸ç®ä»")}),v=(0,a.computed)(function(){return g(l.value)});function h(e,t,n){var a=!0,r=!1,o=void 0;try{for(var i,l=t[Symbol.iterator]();!(a=(i=l.next()).done);a=!0){var s=i.value,u=m(null==e?void 0:e[s]);if(u)return u}}catch(e){r=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(r)throw o}}return n}function m(e){return Array.isArray(e)?e.map(function(e){return m(e)}
1).filter(Boolean).join(" / "):e&&(void 0===e?"undefined":eT(e))==="object"?m(e.name||e.title||e.text||e.value):null==e?"":String(e).trim()}function g(e){var t=String(e||"").trim(),n=t.match(/[\u4e00-\u9fa5]/g);return(null==n?void 0:n.length)?n.slice(-2).join(""):t.split(/\s+/).filter(Boolean).map(function(e){return e.charAt(0).toUpperCase()}).join("").slice(0,2)||t.slice(0,2).toUpperCase()||"å¸"}function _(e){var t,n,a=e&&(void 0===e?"undefined":eT(e))==="object"?eI({},e):{};return t=eI({},a),n=n={teacher_id:a.teacher_id||a.id||a.user_id||"",teacher_name:a.teacher_name||a.name||a.real_name||"",picture:a.picture||a.avatar||a.user_logo||a.logo||"",job_title:a.job_title||a.teacher_title||a.professional_title||a.title||a.position||"",intro:a.intro||a.introduction||a.description||a.desc||a.profile||a.brief||"",department_id:a.department_id||"",department_name:a.department_name||a.department||""},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t}return{__sfc:!0,props:e,emits:n,isTeacherEditDialogOpen:r,cardClass:o,teacherEditData:i,teacherName:l,teacherPicture:s,isDefaultAvatar:u,shouldShowTeacherPicture:c,teacherDepartmentName:d,teacherJobTitle:f,teacherIntro:p,teacherInitial:v,openTeacherEditDialog:function(){r.value=!0,n("teacher-edit-open")},closeTeacherEditDialog:function(){r.value=!1,n("teacher-edit-close")},pickTeacherField:h,normalizeTeacherValue:m,getTeacherAvatarText:g,normalizeTeacherEditData:_,TeacherTeamDialog:eA.Z,SettingsBtn:ek.Z}}},function(){var e=this._self._c,t=this._self._setupProxy;return e("article",{class:t.cardClass},[e("span",{staticClass:"teaching-team-teacher-detail-card__decorate",class:{"teaching-team-teacher-detail-card__decorate--visible":this.active},attrs:{"aria-hidden":"true"}}),this._v(" "),this.isEditMode?e(t.SettingsBtn,{staticClass:"teaching-team-teacher-detail-card__edit-btn",attrs:{text:"ç¼è¾",icon:"icon-bianji-bi-mianzhuang"},nativeOn:{click:function(e){return e.stopPropagation(),t.openTeacherEditDialog.apply(null,arguments)}}}):this._e(),this._v(" "),e("div",{staticClass:"teaching-team-teacher-detail-card__header"},[e("div",{staticClass:"teaching-team-teacher-detail-card__avatar",class:{"teaching-team-teacher-detail-card__avatar--default-avatar":t.isDefaultAvatar}},[t.shouldShowTeacherPicture?e("img",{attrs:{src:t.teacherPicture,alt:t.teacherName}}):e("span",[this._v(this._s(t.teacherInitial))])]),this._v(" "),e("div",{staticClass:"teaching-team-teacher-detail-card__meta"},[e("div",{staticClass:"teaching-team-teacher-detail-card__name",attrs:{title:t.teacherName}},[this._v("\n "+this._s(t.teacherName)+"\n ")]),this._v(" "),t.teacherDepartmentName?e("div",{staticClass:"teaching-team-teacher-detail-card__title",attrs:{title:t.teacherDepartmentName}},[this._v("\n "+this._s(t.teacherDepartmentName)+"\n ")]):this._e(),this._v(" "),t.teacherJobTitle?e("div",{staticClass:"teaching-team-teacher-detail-card__specialty",attrs:{title:t.teacherJobTitle}},[this._v("\n "+this._s(t.teacherJobTitle)+"\n ")]):this._e()])]),this._v(" "),e("div",{staticClass:"teaching-team-teacher-detail-card__divider"}),this._v(" "),e("div",{staticClass:"teaching-team-teacher-detail-card__intro"},[this._v("\n "+this._s(t.teacherIntro)+"\n ")]),this._v(" "),e("teleport",{attrs:{to:"body"}},[t.isTeacherEditDialogOpen?e(t.TeacherTeamDialog,{attrs:{data:t.teacherEditData,"university-id":this.universityId},on:{close:t.closeTeacherEditDialog}}):this._e()],1)],1)},[],!1,null,"4032feed",null).exports,eD=function(){};function eP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ej=(0,f.Z)({__name:"TeachingTeamStyleOne",props:{theme:{type:String,default:"dark"},isEditMode:{type:Boolean,default:!1},universityId:{type:[Number,String],default:""},teachers:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:!1},isMobileLayout:{type:Boolean,default:!1}},setup:function(e){var t=Object.freeze({dark:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/ai-subject-display/video/dark/ai-subject-display-home-explore-teaching-team-dark-1.mp4",light:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/ai-subject-display/video/light/ai-subject-display-home-explore-teaching-team-light-1.mp4"}),n=Object.freeze(["#2E4D8D","#AAABB0","#545C7C","#373F75","#2B4366","#494A4F","#38405E","#6370A5","#254674","#6D8AA1","#9393C1"]),r=Object.freeze([{slot:"prev",offset:-1},{slot:"active",offset:0},{slot:"next",offset:1}]),o=(0,a.ref)(0),i=(0,a.ref)(!1),l=(0,a.ref)(!1),s=(0,a.ref)(!1),u=(0,a.ref)([]),c=(0,a.ref)(0),d=(0,a.ref)(""),f=(0,a.ref)(!1),p=(0,a.ref)("next"),v=(0,a.ref)(""),h=(0,a.ref)(""),m=null,g=null,_=null,y=(0,a.computed)(function(){return e.teachers.map(U).filter(
1Boolean)}),b=(0,a.computed)(function(){return q(y.value)}),w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isMobileLayout,n=e.sourceTeachers,r=e.onSwipePrevious,o=void 0===r?eD:r,i=e.onSwipeNext,l=void 0===i?eD:i,s=e.onActivateTeacher,u=void 0===s?eD:s,c=e.onEnterMobile,d=void 0===c?eD:c,f=e.onLeaveMobile,p=void 0===f?eD:f,v=null,h=null,m=(0,a.computed)(function(){var e;return(e=(null==n?void 0:n.value)||[]).length<=1?e:Array.from({length:Math.ceil(3/e.length)*e.length},function(t,n){var a,r,o=e[n%e.length];return a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}({},o),r=r={key:"".concat(o.key,"-loop-").concat(n)},Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(r)).forEach(function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(r,e))}),a})}),g=(0,a.computed)(function(){return!!(null==t?void 0:t.value)});function _(){v=null,h=null}return(0,a.watch)(t,function(e){if(_(),e)return void d();p()}),(0,a.onUnmounted)(function(){_()}),{activateMobileTeacher:function(e){return!!(null==t?void 0:t.value)&&(u(e),!0)},handleTouchEnd:function(e){var n,a=null==(n=e.changedTouches)?void 0:n[0];if(!(null==t?void 0:t.value)||null===v||null===h||!a)return void _();var r=a.clientX-v,i=a.clientY-h,s=Math.abs(r),u=Math.abs(i);if(_(),!(s<48)&&!(s<=u)){if(r<0)return void l();o()}},handleTouchStart:function(e){if(!(null==t?void 0:t.value)||1!==e.touches.length)return void _();var n=e.touches[0];v=n.clientX,h=n.clientY},mobileCarouselTeachers:m,resetTouchState:_,shouldDisableAutoplay:g}}({isMobileLayout:(0,a.computed)(function(){return e.isMobileLayout}),sourceTeachers:y,onSwipePrevious:K,onSwipeNext:J,onActivateTeacher:ee,onEnterMobile:et,onLeaveMobile:er}),C=w.activateMobileTeacher,O=w.handleTouchEnd,S=w.handleTouchStart,x=w.mobileCarouselTeachers,A=w.resetTouchState,k=w.shouldDisableAutoplay,I=(0,a.computed)(function(){return{"teaching-team-style-one--light":e.theme===ex.l.LIGHT,"teaching-team-style-one--mobile":e.isMobileLayout}}),T=(0,a.ref)(null),E=(0,a.computed)(function(){return e.theme===ex.l.LIGHT?t.light:t.dark}),D=Z({videoRef:T,videoSource:E}).backgroundVideoEvents,P=(0,a.computed)(function(){return e.isMobileLayout?x.value:b.value}),j=(0,a.computed)(function(){return P.value.length>1}),L=(0,a.computed)(function(){return P.value[z(o.value,P.value.length)]}),R=(0,a.computed)(function(){var e;return(null==(e=L.value)?void 0:e.originIndex)||0}),M=(0,a.computed)(function(){var e;return eP(e={},"teaching-team-style-one__viewport--".concat(p.value),!0),eP(e,"teaching-team-style-one__viewport--animating",s.value),eP(e,"teaching-team-style-one__viewport--jumping",u.value.length>0),eP(e,"teaching-team-style-one__viewport--jumping-moving",f.value),e}),N=(0,a.computed)(function(){return u.value.length?{"--teaching-team-style-one-jump-distance":"".concat(418*c.value,"px")}:{}}),B=(0,a.computed)(function(){if(u.value.length)return u.value;var e=P.value.length;return e?1===e?[{key:P.value[0].key,slot:"active",teacher:P.value[0]}]:r.map(function(t){var n=z(o.value+t.offset,e),a=P.value[n];return{key:a.key,slot:t.slot,teacher:a}}):[]});function U(e,t){if(!e||(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object")return null;var n=G(e);return{raw:e,key:H(e,t),originIndex:t,name:n,picture:F(e),isDefaultAvatar:!!e.is_default_avatar,avatarText:V(n)}}function H(e,t){return String(e.id||e.teacher_id||e.user_id||"".concat(G(e),"-").concat(t))}function G(e){return String(e.teacher_name||e.name||e.real_name||"æå¸").trim()}function F(e){return String(e.picture||e.avatar||e.user_logo||e.logo||"").trim()}function V(e){var t=String(e||"").trim(),n=t.match(/[\u4e00-\u9fa5]/g);return(null==n?void 0:n.length)?n.slice(-2).join(""):t.split(/\s+/).filter(
1Boolean).map(function(e){return e.charAt(0).toUpperCase()}).join("").slice(0,2)||t.slice(0,2).toUpperCase()||"å¸"}function q(e){return e.length<=1?e:Array.from({length:Math.max(3,e.length)},function(t,n){var a,r,o=e[n%e.length];return a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){eP(e,t,n[t])})}return e}({},o),r=r={key:"".concat(o.key,"-loop-").concat(n)},Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(r)).forEach(function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(r,e))}),a})}function z(e,t){return t?(e%t+t)%t:0}function J(){j.value&&(Y("next"),o.value=z(o.value+1,P.value.length))}function K(){j.value&&(Y("prev"),o.value=z(o.value-1,P.value.length))}function W(e,t,n){var a;X(),p.value=t,s.value=!0,f.value=!1,c.value="next"===t?n:-n,d.value=(null==(a=P.value[e])?void 0:a.key)||"",u.value=$(t,n),window.requestAnimationFrame(function(){window.requestAnimationFrame(function(){f.value=!0})}),g=window.setTimeout(function(){s.value=!1,f.value=!1,u.value=[],c.value=0,d.value="",o.value=e,v.value="",h.value="",g=null},360)}function $(e,t){var n=P.value.length,a="next"===e?1:-1;return Array.from({length:t+1- -1+1},function(t,r){var i=-1+r,l=z(o.value+i*a,n),s=P.value[l],u=0===i?"active":-1===i?"prev":1===i?"next":"track",c="next"===e?i+1:1-i;return{key:"".concat(s.key,"-jump-").concat(e,"-").concat(i),slot:u,teacher:s,trackPosition:c,isActive:0===i||s.key===d.value,isJumpTarget:s.key===d.value}})}function Y(e){var t;p.value=e,s.value=!0,u.value=[],c.value=0,d.value="",f.value=!1,v.value=(null==(t=L.value)?void 0:t.key)||"",h.value="",X(),_=window.setTimeout(function(){h.value=v.value,_=null},100),g=window.setTimeout(function(){s.value=!1,v.value="",h.value="",g=null},700)}function X(){g&&(window.clearTimeout(g),g=null),_&&(window.clearTimeout(_),_=null)}function Q(){X(),s.value=!1,u.value=[],c.value=0,d.value="",f.value=!1,v.value="",h.value=""}function ee(e){var t=e.nextIndex,n=e.direction;Q(),p.value=n,o.value=t}function et(){eo(),Q()}function en(e){var t=P.value.length;if(!t)return"next";var n=z(o.value,t);return z(e-n,t)<=z(n-e,t)?"next":"prev"}function ea(e){var t=P.value.length;if(!t)return 0;var n=z(o.value,t);return Math.min(z(e-n,t),z(n-e,t))}function er(){eo(),!j.value||k.value||i.value||l.value||(m=window.setInterval(J,4200))}function eo(){m&&(window.clearInterval(m),m=null)}return(0,a.onMounted)(function(){er()}),(0,a.onUnmounted)(function(){eo(),Q()}),(0,a.watch)(function(){return P.value.length},function(){u.value=[],c.value=0,d.value="",f.value=!1,o.value=0,er()}),(0,a.watch)(j,function(){er()}),{__sfc:!0,BACKGROUND_VIDEO_MAP:t,AUTOPLAY_DELAY:4200,CARD_SLOT_GAP:418,VIEWPORT_EDGE_BUFFER:36,JUMP_TRACK_ANIMATION_DURATION:360,PAGINATION_ITEM_BG_COLORS:n,CARD_SLOTS:r,props:e,activeIndex:o,isAutoplayPaused:i,isTeacherEditing:l,isCarouselAnimating:s,jumpTrackCards:u,jumpTrackDistance:c,jumpTargetCardKey:d,isJumpTrackMoving:f,carouselDirection:p,movingFromCenterKey:v,movingFromCenterDimmedKey:h,autoplayTimer:m,carouselAnimationTimer:g,movingFromCenterOpacityTimer:_,sourceTeachers:y,desktopCarouselTeachers:b,activateMobileTeacher:C,handleTouchEnd:O,handleTouchStart:S,mobileCarouselTeachers:x,resetTouchState:A,shouldDisableAutoplay:k,rootClass:I,backgroundVideoRef:T,backgroundVideo:E,backgroundVideoEvents:D,carouselTeachers:P,canLoop:j,activeTeacher:L,activeOriginIndex:R,viewportClass:M,viewportStyle:N,visibleCards:B,normalizeTeacher:U,getTeacherKey:H,getTeacherName:G,getTeacherPicture:F,getTeacherAvatarText:V,buildDesktopCarouselTeachers:q,normalizeIndex:z,showNextTeacher:J,showPreviousTeacher:K,handleCardSlotClick:function(e){if("prev"===e.slot)return void K();"next"===e.slot&&J()},setActiveByOriginIndex:function(e){var t=P.value.findIndex(function(t){return t.originIndex===e});if(!(t<0)){if(!j.value){o.value=t;return}if(z(o.value,P.value.length)!==t){var n=en(t);if(!C({nextIndex:t,direction:n})){var a=ea(t);if(a>1)return void W(t,n,a);Y(n),o.value=t}}}},startJumpTrackAnimation:W,buildJumpTrackCards:$,startCarouselAnimation:Y,clearCarouselAnimationTimers:X,resetCarouselAnimationState:Q,handleMobileTeacherActivation:ee,handleEnterMobileLayout:et,getCardSlotClass:function(e){var t;return eP(t={},"teaching-team-style-one__card-slot--".concat(e.slot),!0),eP(t,"teaching-team-style-one__card-slot--jump-active",e.isActive),eP(t,"teaching-team-style-one__card-slot--jump-target",e.isJumpTarget),eP(t,"teaching-team-style-one__card-slot--moving-from-center",e.key===v.value),eP(t,"teaching-team-style-one__card-slot--moving-from-center-dimmed",e.key===h.value),t},getCardSlotStyle:function(e){return"number"!=typeof e.trackPosition?{}:{left:"".concat(418*e.trackPosition+36,"px")}},isCardActive:function(e){return"active"===e.slot||e.isActive||e.
1isJumpTarget},getPaginationDirection:en,getPaginationJumpDistance:ea,getPaginationItemStyle:function(e){var t=z(e,n.length);return{"--pagination-item-bg":n[t]}},pauseAutoplay:function(){l.value||(i.value=!0,eo())},resumeAutoplay:function(){l.value||(i.value=!1,er())},startAutoplay:er,stopAutoplay:eo,pauseForTeacherEdit:function(){l.value=!0,eo()},resumeFromTeacherEdit:function(){l.value=!1,er()},TeachingTeamTeacherDetailCard:eE}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"teaching-team-style-one",class:n.rootClass},[t("div",{staticClass:"teaching-team-style-one__main"},[t("video",e._g({ref:"backgroundVideoRef",staticClass:"teaching-team-style-one__video",attrs:{src:n.backgroundVideo,autoplay:"",muted:"",loop:"",playsinline:"","webkit-playsinline":"","x5-playsinline":"","x5-video-player-type":"h5","x5-video-player-fullscreen":"false",preload:"auto"},domProps:{muted:!0}},n.backgroundVideoEvents)),e._v(" "),t("img",{staticClass:"teaching-team-style-one__video-mask",attrs:{src:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/ai-subject-display/teaching-team-style-one__video-mask.png",alt:"","aria-hidden":"true"}}),e._v(" "),e.loading?t("div",{staticClass:"teaching-team-style-one__state"},[e._v("\n å è½½ä¸...\n ")]):n.sourceTeachers.length?t("div",{staticClass:"teaching-team-style-one__carousel"},[n.canLoop?t("button",{staticClass:"teaching-team-style-one__button teaching-team-style-one__button--prev",attrs:{type:"button","aria-label":"ä¸ä¸ä½æå¸"},on:{mouseenter:n.pauseAutoplay,mouseleave:n.resumeAutoplay,click:n.showPreviousTeacher}},[t("svg",{staticClass:"teaching-team-style-one__button-icon",attrs:{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none","aria-hidden":"true"}},[t("path",{attrs:{d:"M16.87 7.85 10.72 14l6.15 6.15",stroke:"url(#teaching-team-style-one-prev-gradient)","stroke-width":"2.4","stroke-linecap":"round","stroke-linejoin":"round"}}),e._v(" "),t("defs",[t("linearGradient",{attrs:{id:"teaching-team-style-one-prev-gradient",x1:"10.72",y1:"8.26",x2:"18.4",y2:"19.05",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{offset:"0.03","stop-color":"#2D70FF"}}),e._v(" "),t("stop",{attrs:{offset:"1","stop-color":"#9076FE"}})],1)],1)])]):e._e(),e._v(" "),n.jumpTrackCards.length?t("div",{staticClass:"teaching-team-style-one__viewport",class:n.viewportClass,style:n.viewportStyle,on:{"&touchstart":function(e){return n.handleTouchStart.apply(null,arguments)},touchend:n.handleTouchEnd,touchcancel:n.resetTouchState}},e._l(n.visibleCards,function(a){return t("div",{key:a.key,staticClass:"teaching-team-style-one__card-slot",class:n.getCardSlotClass(a),style:n.getCardSlotStyle(a),on:{mouseenter:n.pauseAutoplay,mouseleave:n.resumeAutoplay,click:function(e){return n.handleCardSlotClick(a)}}},[t(n.TeachingTeamTeacherDetailCard,{attrs:{teacher:a.teacher.raw,theme:e.theme,active:n.isCardActive(a),"is-edit-mode":e.isEditMode,"university-id":e.universityId},on:{"teacher-edit-open":n.pauseForTeacherEdit,"teacher-edit-close":n.resumeFromTeacherEdit}})],1)}),0):t("transition-group",{staticClass:"teaching-team-style-one__viewport",class:n.viewportClass,attrs:{tag:"div",name:"teaching-team-style-one-card"},nativeOn:{"&touchstart":function(e){return n.handleTouchStart.apply(null,arguments)},touchend:function(e){return n.handleTouchEnd.apply(null,arguments)},touchcancel:function(e){return n.resetTouchState.apply(null,arguments)}}},e._l(n.visibleCards,function(a){return t("div",{key:a.key,staticClass:"teaching-team-style-one__card-slot",class:n.getCardSlotClass(a),on:{mouseenter:n.pauseAutoplay,mouseleave:n.resumeAutoplay,click:function(e){return n.handleCardSlotClick(a)}}},[t(n.TeachingTeamTeacherDetailCard,{attrs:{teacher:a.teacher.raw,theme:e.theme,active:n.isCardActive(a),"is-edit-mode":e.isEditMode,"university-id":e.universityId},on:{"teacher-edit-open":n.pauseForTeacherEdit,"teacher-edit-close":n.resumeFromTeacherEdit}})],1)}),0),e._v(" "),n.canLoop?t("button",{staticClass:"teaching-team-style-one__button teaching-team-style-one__button--next",attrs:{type:"button","aria-label":"ä¸ä¸ä½æå¸"},on:{mouseenter:n.pauseAutoplay,mouseleave:n.resumeAutoplay,click:n.showNextTeacher}},[t("svg",{staticClass:"teaching-team-style-one__button-icon",attrs:{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none","aria-hidden":"true"}},[t("path",{attrs:{d:"M11.13 7.85 17.28 14l-6.15 6.15",stroke:"url
1(#teaching-team-style-one-next-gradient)","stroke-width":"2.4","stroke-linecap":"round","stroke-linejoin":"round"}}),e._v(" "),t("defs",[t("linearGradient",{attrs:{id:"teaching-team-style-one-next-gradient",x1:"11.13",y1:"8.26",x2:"18.81",y2:"19.05",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{offset:"0.03","stop-color":"#2D70FF"}}),e._v(" "),t("stop",{attrs:{offset:"1","stop-color":"#9076FE"}})],1)],1)])]):e._e(),e._v(" "),t("div",{staticClass:"teaching-team-style-one__pagination"},e._l(n.sourceTeachers,function(a){return t("button",{key:a.key,staticClass:"teaching-team-style-one__pagination-item",class:{"teaching-team-style-one__pagination-item--active":a.originIndex===n.activeOriginIndex,"teaching-team-style-one__pagination-item--default-avatar":a.isDefaultAvatar},style:n.getPaginationItemStyle(a.originIndex),attrs:{type:"button","aria-label":"æ¥ç".concat(a.name)},on:{mouseenter:n.pauseAutoplay,mouseleave:n.resumeAutoplay,click:function(e){return n.setActiveByOriginIndex(a.originIndex)}}},[t("span",{staticClass:"teaching-team-style-one__pagination-selected-bg"},[t("svg",{staticClass:"teaching-team-style-one__pagination-selected-bg-outer",attrs:{width:"70",height:"70",viewBox:"0 0 70 70",fill:"none","aria-hidden":"true"}},[t("circle",{attrs:{cx:"35",cy:"35",r:"35",fill:"rgba(60, 92, 255, 0.4)"}})]),e._v(" "),t("svg",{staticClass:"teaching-team-style-one__pagination-selected-bg-inner",attrs:{width:"59",height:"59",viewBox:"0 0 59 59",fill:"none","aria-hidden":"true"}},[t("circle",{attrs:{cx:"29.5",cy:"29.5",r:"29.5",fill:"#4A7EFF"}})])]),e._v(" "),a.picture&&!a.isDefaultAvatar?t("img",{attrs:{src:a.picture,alt:a.name}}):t("span",{staticClass:"teaching-team-style-one__pagination-initial",class:{"teaching-team-style-one__pagination-initial--default-avatar":a.isDefaultAvatar}},[e._v("\n "+e._s(a.avatarText)+"\n ")])])}),0)],1):t("div",{staticClass:"teaching-team-style-one__state"},[e._v("\n ææ æå¸ä¿¡æ¯\n ")])])])},[],!1,null,"d19d4cfa",null).exports;function eL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function eR(e,t){if(e){if("string"==typeof e)return eL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eL(e,t)}}n(92459),n(82997);var eM=(0,f.Z)({__name:"TeachingTeamStyleTwo",props:{theme:{type:String,default:"dark"},isEditMode:{type:Boolean,default:!1},universityId:{type:[Number,String],default:""},teachers:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:!1},maxRowCount:{type:Number,default:3}},setup:function(e){var t=Object.freeze({PURPLE:"purple",BLUE:"blue"}),n=Object.freeze([t.PURPLE,t.BLUE]),r=Object.freeze(["#2E4D8D","#AAABB0","#545C7C","#373F75","#2B4366","#494A4F","#38405E","#6370A5","#254674","#6D8AA1","#9393C1"]),o=(0,a.ref)(null),i=(0,a.ref)(null),l=(0,a.ref)(null),s=(0,a.ref)("right"),u=(0,a.ref)({left:0,top:0}),c=(0,a.ref)(!1),d=(0,a.ref)(!1),f=(0,a.ref)({}),p=(0,a.ref)({}),v=null,h=null,m=null,g=(0,a.computed)(function(){return{"teaching-team-style-two--light":e.theme===ex.l.LIGHT}}),_=(0,a.computed)(function(){return e.teachers.map(C).filter(Boolean)}),y=(0,a.computed)(function(){return I(_.value,e.maxRowCount)}),b=(0,a.computed)(function(){return!!l.value}),w=(0,a.computed)(function(){return{left:"".concat(u.value.left,"px"),top:"".concat(u.value.top,"px")}});function C(e,t){return e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"?{raw:e,key:O(e,t),originIndex:t,name:S(e),title:x(e),picture:A(e),isDefaultAvatar:!!e.is_default_avatar,avatarText:k(S(e))}:null}function O(e,t){return String(e.id||e.teacher_id||e.user_id||"".concat(S(e),"-").concat(t))}function S(e){return String(e.teacher_name||e.name||e.real_name||"æå¸").trim()}function x(e){return String(e.teacher_title||e.professional_title||e.job_title||e.title||e.position||"æå¸").trim()}function A(e){return String(e.picture||e.avatar||e.user_logo||e.logo||"").trim()}function k(e){var t=String(e||"").trim(),n=t.match(/[\u4e00-\u9fa5]/g);return(null==n?void 0:n.length)?n.slice(-2).join(""):t.split(/\s+/).filter(
1Boolean).map(function(e){return e.charAt(0).toUpperCase()}).join("").slice(0,2)||t.slice(0,2).toUpperCase()||"å¸"}function I(e,t){if(!e.length)return[];var n=j(e.length,t),a=Array.from({length:n},function(){return[]});return e.forEach(function(e,t){a[t%n].push(e)}),a.map(function(e,t){var n=D(e.length),a=P(n,e.length),r=a>1200,o=T(t);return{key:"row-".concat(t),items:e,direction:o,duration:"".concat(60+10*t,"s"),rowContentWidth:n,rowVisualWidth:a,shouldLoop:r,shouldMarquee:r,sequences:r?[e,e]:[e],trackStyle:E(t,n,r)}})}function T(e){return(e+1)%2==0?"right":"left"}function E(e,t,n){return n?{animationDuration:"".concat(60+10*e,"s"),"--marquee-offset":"-".concat(t+24,"px")}:{}}function D(e){return e<=0?0:231*e+24*Math.max(e-1,0)}function P(e,t){return t<=1?e:Math.max(e,1466)}function j(e,t){return 0===t?Math.max(1,Math.ceil(e/6)):Math.max(1,Math.min(Math.max(t,1),e))}function L(e,t){return t?(e%t+t)%t:0}function R(e,t,n){var a=M(e,t,n);return f.value[a]||p.value[a]||""}function M(e,t,n){return"".concat(e.key,"-").concat(t,"-").concat(n.key)}function N(e){if(e&&o.value){var t=e.getBoundingClientRect(),n=o.value.getBoundingClientRect(),a=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,i=t.right+10,l=t.left-386-10,c=a-386-16,d=i>c&&l>=16,f=B(d?l:i,16,c),p=B(t.top-114,16,r-337-16);s.value=d?"left":"right",u.value={left:f-n.left,top:p-n.top}}}function B(e,t,n){return n<t?t:Math.max(t,Math.min(e,n))}function U(){c.value=!0}function H(){v&&(window.clearTimeout(v),v=null)}function G(){d.value||(l.value=null,c.value=!1)}function F(){var e=V();if(!e.length){J({excludeKeys:[]}),f.value={};return}var t=((function(e){if(Array.isArray(e))return eL(e)})(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eR(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(function(){return Math.random()-.5}),n=Math.min(e.length,1+Math.floor(3*Math.random())),a=t.slice(0,n).reduce(function(e,t){return e[t.dataset.pulseKey]=q(),e},{});J({excludeKeys:Object.keys(a)}),f.value=a}function V(){if(!i.value)return[];var e=i.value.getBoundingClientRect(),t=e.left+120,n=e.right-120;return Array.from(i.value.querySelectorAll(".teaching-team-style-two__teacher")).filter(function(e){var a=e.getBoundingClientRect(),r=a.left+a.width/2;return r>=t&&r<=n})}function q(){return n[Math.floor(Math.random()*n.length)]}function z(){Z(),d.value||(F(),h=window.setInterval(F,2e3))}function Z(){h&&(window.clearInterval(h),h=null),m&&(window.clearTimeout(m),m=null),p.value={}}function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.excludeKeys;m&&(window.clearTimeout(m),m=null);var n=new Set(void 0===t?[]:t);p.value=Object.entries(f.value).reduce(function(e,t){var a=function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,a,r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw a}}return o}}(t,2)||eR(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=a[0],o=a[1];return n.has(r)||(e[r]=o),e},{}),Object.keys(p.value).length&&(m=window.setTimeout(function(){p.value={},m=null},720))}return(0,a.onMounted)(function(){z()}),(0,a.onUnmounted)(function(){H(),Z()}),{__sfc:!0,ROW_VISIBLE_BEST_COUNT:6,STAGE_WIDTH:1200,DESIGN_ROW_WIDTH:1466,TEACHER_ITEM_WIDTH:231,TEACHER_ITEM_GAP:24,PULSE_VISIBLE_INSET:120,DETAIL_CARD_WIDTH:386,DETAIL_CARD_HEIGHT:337,DETAIL_CARD_ANCHOR_GAP:10,DETAIL_CARD_ANCHOR_TOP_OFFSET:114,DETAIL_CARD_VIEWPORT_PADDING:16,HOVER_CLEAR_DELAY:120,PULSE_DELAY:2e3,PULSE_VARIANT:t,PULSE_VARIANTS:n,TEACHER_AVATAR_BG_COLORS:r,props:e,mainRef:o,stageRef:i,hoveredTeacher:l,hoverCardSide:s,hoverCardPosition:u,isStagePaused:c,isTeacherEditing:d,pulseTeacherMap:f,fadingPulseTeacherMap:p,hoverClearTimer:v,pulseTimer:h,fadingPulseTimer:m,rootClass:g,flatTeachers:_,teacherRows:y,hasHoveredTeacher:b,hoverCardStyle:w,normalizeTeacher:C,getTeacherKey:O,getTeacherName:S,getTeacherTitle:x,getTeacherPicture:A,getTeacherAvatarText:k,getTeacherAvatarStyle:function(e){var t=L(e,r.length);return{"--teacher-avatar-bg":r[t]}},buildTeacherRows:I,getRowDirection:T,getTrackStyle:E,getRowContentWidth:D,getRowVisualWidth:P,resolveRowCount:j,normalizeIndex:L,isHoveredTeacher:function(e){var t;return(null==(t=l.value)?void 0:t.key)===e.key},isFadingPulseTeacher:function(e,t,n){return!!p.value[M(e,t,n)]},getDisplayedPulseTeacherVariant:R,isDisplayedPulseTeacher:function(e,t,n){return!!R(e,t,n
1)},getTeacherInstanceKey:M,handleTeacherEnter:function(e,t){H(),U(),l.value=e,N(t.currentTarget)},updateHoverCardPosition:N,clamp:B,pauseRows:U,scheduleHoverClear:function(){d.value||(H(),v=window.setTimeout(G,120))},cancelHoverClear:H,clearHoveredTeacher:G,refreshPulseTeachers:F,getVisiblePulseTeacherElements:V,getRandomPulseVariant:q,startPulseTimer:z,stopPulseTimer:Z,fadeOutCurrentPulseTeachers:J,pauseForTeacherEdit:function(){d.value=!0,H(),c.value=!0,Z()},resumeFromTeacherEdit:function(){d.value=!1,G(),z()},TeachingTeamTeacherDetailCard:eE}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"teaching-team-style-two",class:n.rootClass},[t("div",{ref:"mainRef",staticClass:"teaching-team-style-two__main"},[e.loading?t("div",{staticClass:"teaching-team-style-two__state"},[e._v("\n å è½½ä¸...\n ")]):n.flatTeachers.length?t("div",{ref:"stageRef",staticClass:"teaching-team-style-two__stage",class:{"teaching-team-style-two__stage--paused":n.isStagePaused},on:{mouseenter:n.pauseRows,mouseleave:n.scheduleHoverClear}},[t("div",{staticClass:"teaching-team-style-two__rows"},e._l(n.teacherRows,function(a){return t("div",{key:a.key,staticClass:"teaching-team-style-two__row",class:["teaching-team-style-two__row--".concat(a.direction),{"teaching-team-style-two__row--marquee":a.shouldMarquee,"teaching-team-style-two__row--single-sequence":!a.shouldLoop,"teaching-team-style-two__row--static":!a.shouldMarquee,"teaching-team-style-two__row--marquee-left":a.shouldMarquee&&"left"===a.direction,"teaching-team-style-two__row--marquee-right":a.shouldMarquee&&"right"===a.direction}]},[t("div",{staticClass:"teaching-team-style-two__track",style:a.trackStyle},e._l(a.sequences,function(r,o){return t("div",{key:"".concat(a.key,"-").concat(o),staticClass:"teaching-team-style-two__sequence"},e._l(r,function(r){return t("button",{key:"".concat(a.key,"-").concat(o,"-").concat(r.key),staticClass:"teaching-team-style-two__teacher",class:{"teaching-team-style-two__teacher--active":n.isHoveredTeacher(r),"teaching-team-style-two__teacher--dimmed":n.hasHoveredTeacher&&!n.isHoveredTeacher(r),"teaching-team-style-two__teacher--pulse":n.isDisplayedPulseTeacher(a,o,r),"teaching-team-style-two__teacher--pulse-fading":n.isFadingPulseTeacher(a,o,r),"teaching-team-style-two__teacher--pulse-purple":n.getDisplayedPulseTeacherVariant(a,o,r)===n.PULSE_VARIANT.PURPLE,"teaching-team-style-two__teacher--pulse-blue":n.getDisplayedPulseTeacherVariant(a,o,r)===n.PULSE_VARIANT.BLUE},attrs:{type:"button","data-pulse-key":n.getTeacherInstanceKey(a,o,r)},on:{mouseenter:function(e){return n.handleTeacherEnter(r,e)}}},[t("span",{staticClass:"teaching-team-style-two__teacher-avatar",class:{"teaching-team-style-two__teacher-avatar--default-avatar":r.isDefaultAvatar},style:n.getTeacherAvatarStyle(r.originIndex)},[r.picture&&!r.isDefaultAvatar?t("img",{attrs:{src:r.picture,alt:r.name}}):t("span",[e._v(e._s(r.avatarText))])]),e._v(" "),t("span",{staticClass:"teaching-team-style-two__teacher-info"},[t("span",{staticClass:"teaching-team-style-two__teacher-name",attrs:{title:r.name}},[e._v("\n "+e._s(r.name)+"\n ")]),e._v(" "),t("span",{staticClass:"teaching-team-style-two__teacher-title"},[e._v("\n "+e._s(r.title)+"\n ")])])])}),0)}),0)])}),0),e._v(" "),t("div",{staticClass:"teaching-team-style-two__stage-mask",attrs:{"aria-hidden":"true"}})]):t("div",{staticClass:"teaching-team-style-two__state"},[e._v("\n ææ æå¸ä¿¡æ¯\n ")]),e._v(" "),t("transition",{attrs:{name:"teaching-team-style-two-card"}},[n.hoveredTeacher?t(n.TeachingTeamTeacherDetailCard,{staticClass:"teaching-team-style-two__detail-card",class:"teaching-team-style-two__detail-card--".concat(n.hoverCardSide),style:n.hoverCardStyle,attrs:{teacher:n.hoveredTeacher.raw,theme:e.theme,active:!0,"is-edit-mode":e.isEditMode,"university-id":e.universityId},on:{"teacher-edit-open":n.pauseForTeacherEdit,"teacher-edit-close":n.resumeFromTeacherEdit},nativeOn:{mouseenter:function(e){return n.cancelHoverClear.apply(null,arguments)},mouseleave:function(e){return n.scheduleHoverClear.apply(null,arguments)}}}
1):e._e()],1)],1)])},[],!1,null,"1ce7ac66",null).exports,eN=(0,f.Z)({__name:"TeachingTeamContent",props:{theme:{type:String,default:"dark"},isEditMode:{type:Boolean,default:!1},universityId:{type:[Number,String],default:""},settingJson:{type:Object,default:function(){return{}}},teachers:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:!1},isMobileLayout:{type:Boolean,default:!1}},setup:function(e){var t=Object.freeze({STYLE_ONE:1,STYLE_TWO:2}),n=(0,a.computed)(function(){var n,a,r;return Number(null==(r=e.settingJson)||null==(a=r.home)||null==(n=a.teachingTeam)?void 0:n.styleMode)===t.STYLE_TWO?t.STYLE_TWO:t.STYLE_ONE}),r=(0,a.computed)(function(){return n.value===t.STYLE_TWO?eM:ej}),o=(0,a.computed)(function(){return n.value===t.STYLE_ONE?{isMobileLayout:e.isMobileLayout}:{}});return{__sfc:!0,TEACHING_TEAM_STYLE_MODE:t,props:e,styleMode:n,currentStyleComponent:r,styleSpecificProps:o}}},function(){var e=this._self._c,t=this._self._setupProxy;return e("div",{staticClass:"teaching-team-content"},[e(t.currentStyleComponent,this._b({tag:"component",attrs:{theme:this.theme,"is-edit-mode":this.isEditMode,"university-id":this.universityId,teachers:this.teachers,loading:this.loading}},"component",t.styleSpecificProps,!1))],1)},[],!1,null,"1fb84fb8",null).exports,eB=n(46403),eU=n(80637),eH=n(85369);function eG(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}var eF=(0,f.Z)({__name:"ExploreHomeTeachingTeamSection",props:{theme:{type:String,default:"dark"},isEditMode:{type:Boolean,default:!1},title:{type:String,default:"ä¸ä¸æå¸å¢é"},titleEn:{type:String,default:"Major Teaching Team"},settingJson:{type:Object,default:function(){return{}}},agentId:{type:[Number,String],default:""},universityId:{type:[Number,String],default:""},hasHeaderOffset:{type:Boolean,default:!1},isMobileLayout:{type:Boolean,default:!1}},emits:["open-teaching-team-dialog"],setup:function(e,t){var n=t.emit,r=Object.freeze({STYLE_ONE:1,STYLE_TWO:2}),o="https://qn-sy.yuketang.cn/new_defaultuser.png",i=(0,a.ref)([]),l=(0,a.ref)(!1),s=(0,a.ref)(!1),u=(0,a.ref)(0),c=(0,a.computed)(function(){var t,n,a;return Number(null==(a=e.settingJson)||null==(n=a.home)||null==(t=n.teachingTeam)?void 0:t.styleMode)===r.STYLE_TWO?r.STYLE_TWO:r.STYLE_ONE}),d=(0,a.computed)(function(){return c.value===r.STYLE_ONE?"ai-subject-display-home-explore__teaching-team--style-one":"ai-subject-display-home-explore__teaching-team--style-two"}),f=(0,a.computed)(function(){return e.isMobileLayout&&c.value===r.STYLE_ONE});function p(){var t;return(t=function(){var t,n,a;return function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(r){switch(r.label){case 0:if(t=u.value+1,u.value=t,!e.agentId)return i.value=[],l.value=!1,[2];l.value=!0,r.label=1;case 1:return r.trys.push([1,3,4,5]),n=eU.Z.result_display.get_teacher_list.replace("{id}",e.agentId),[4,N.ZP.get(n)];case 2:if(a=r.sent(),t!==u.value)return[2];return i.value=a.success&&Array.isArray(a.data)?a.data.map(function(e){var t,n,a=e.picture===o;return t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}({},e),n=n={is_default_avatar:a}
1,Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t}):[],[3,5];case 3:if(console.log("getTeacherList",r.sent()),t!==u.value)return[2];return i.value=[],[3,5];case 4:return t===u.value&&(l.value=!1),[7];case 5:return[2]}})},function(){var e=this,n=arguments;return new Promise(function(a,r){var o=t.apply(e,n);function i(e){eG(o,a,r,i,l,"next",e)}function l(e){eG(o,a,r,i,l,"throw",e)}i(void 0)})})()}function v(){p()}return(0,a.onMounted)(function(){p(),eH.Z.on("teacher-update",v)}),(0,a.onBeforeUnmount)(function(){eH.Z.off("teacher-update",v)}),(0,a.watch)(function(){return e.agentId},function(){p()}),{__sfc:!0,TEACHING_TEAM_STYLE_MODE:r,DEFAULT_AVATAR:o,props:e,emit:n,teachers:i,isLoading:l,isTeacherListDialogOpen:s,latestTeacherListRequestId:u,styleMode:c,teachingTeamStyleClass:d,isMobileStyleOne:f,fetchTeacherList:p,openTeacherListDialog:function(){s.value=!0},closeTeacherListDialog:function(){s.value=!1},handleTeacherListSaved:function(e){s.value=!1,i.value=Array.isArray(e)?e:[],p()},handleTeacherUpdated:v,SettingsBtn:k.Z,ExploreHomeTitleIcon:O,TeachingTeamContent:eN,TeachingTeamDialog:eB.Z}}},function(){var e=this._self._c,t=this._self._setupProxy;return e("section",{staticClass:"ai-subject-display-home-explore__teaching-team",class:["theme-".concat(this.theme),t.teachingTeamStyleClass,{"has-header-offset":this.hasHeaderOffset,"ai-subject-display-home-explore__teaching-team--mobile":t.isMobileStyleOne}]},[this.isEditMode?e("div",{staticClass:"ai-subject-display-home-explore__teaching-team-toolbar"},[e(t.SettingsBtn,{attrs:{text:"模å设置"},nativeOn:{click:function(e){return e.stopPropagation(),t.emit("open-teaching-team-dialog")}}}
1),this._v(" "),e(t.SettingsBtn,{attrs:{text:"æå¸å表"},nativeOn:{click:function(e){return e.stopPropagation(),t.openTeacherListDialog.apply(null,arguments)}}})],1):this._e(),this._v(" "),e("div",{staticClass:"ai-subject-display-home-explore__teaching-team-title"},[e("div",{staticClass:"ai-subject-display-home-explore__teaching-team-title-en"},[e("span",{staticClass:"ai-subject-display-home-explore__teaching-team-title-icon",attrs:{"aria-hidden":"true"}},[e(t.ExploreHomeTitleIcon,{attrs:{direction:"left"}})],1),this._v(" "),e("span",{staticClass:"ai-subject-display-home-explore__teaching-team-title-en-text"},[this._v(this._s(this.titleEn))]),this._v(" "),e("span",{staticClass:"ai-subject-display-home-explore__teaching-team-title-icon",attrs:{"aria-hidden":"true"}},[e(t.ExploreHomeTitleIcon,{attrs:{direction:"right"}})],1)]),this._v(" "),e("div",{staticClass:"ai-subject-display-home-explore__teaching-team-title-text"},[this._v(this._s(this.title))])]),this._v(" "),e(t.TeachingTeamContent,{attrs:{theme:this.theme,"is-edit-mode":this.isEditMode,"university-id":this.universityId,"setting-json":this.settingJson,teachers:t.teachers,loading:t.isLoading,"is-mobile-layout":t.isMobileStyleOne}}),this._v(" "),e("teleport",{attrs:{to:"body"}},[t.isTeacherListDialogOpen?e(t.TeachingTeamDialog,{attrs:{teachers:t.teachers,"agent-id":this.agentId,"university-id":this.universityId},on:{close:t.closeTeacherListDialog,save:t.handleTeacherListSaved}}):this._e()],1)],1)},[],!1,null,"bf335afc",null).exports,eV=n(36688),eq=n.n(eV),ez=n(41990),eZ=n(71943),eJ=n(12352);function eK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function eW(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function e$(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){eW(o,a,r,i,l,"next",e)}function l(e){eW(o,a,r,i,l,"throw",e)}i(void 0)})}}function eY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}function eX(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function eQ(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var e0=(0,f.Z)({__name:"ExploreStatisticsConfigDialog",props:{visible:{type:Boolean,default:!1},theme:{type:String,default:"dark"},subjectInfo:{type:Object,default:function(){return{}}},settingJson:{type:Object,default:function(){return{}}}},emits:["close","saved","refresh"],setup:function(e,t){var n=t.emit,o=(0,r._p)("aiSubjectStore").useState,i=o(["agentInfo"]).agentInfo,l=(0,a.ref)(!1),s=(0,a.ref)(!1),u=(0,a.ref)([]),c=(0,a.ref)(""),d=(0,a.ref)(0),f=(0,a.reactive)({item_name:"",item_value:""}),p=(0,a.ref)(null),v=(0,a.ref)(null),h=(0,a.ref)(null),m=(0,a.computed)(function(){var e;return Number((null==(e=i.value)?void 0:e.id)||0)}),g=(0,a.computed)(function(){var e;return Number(null==(e=i.value)?void 0:e.level)||6}),_=(0,a.computed)(function(){var t,n;return Number(null==(n=e.settingJson)||null==(t=n.basic)?void 0:t.switch_source)||1}),y=(0,a.computed)(function(){return!!("".concat(f.item_name||"").trim()||"".concat(f.item_value||"").trim())});function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";(0,ez.Message)({message:e,type:t,customClass:"toastMessage",iconClass:"success"===t?"iconfont icon-yuanquangou-mianzhuang":"iconfont icon-weidu-mianzhuang"})}function w(){return e$(function(){return eQ(this,function(t){switch(t.label){case 0:if(!e.visible)return[2];l.value=!0,S(),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,(0,eJ.sm)({agentId:m.value,agentLevel:g.value,switchSource:_.value})];case 2:return u.value=t.sent(),C(),[3,5];case 3:return console.error("Failed to load explore statistics config:",t.sent()),b("æ°æ®é¡¹é
ç½®å 载失败ï¼è¯·ç¨åéè¯"),[3,5];case 4:return l.value=!1,[7];case 5:return[2]}})})()}function C(){u.value=u.value.map(function(e,t){return eX(eY({},e),{order:t+1})})}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 1===Number(e.is_system)}function S(){c.value="",f.item_name="",f.item_value=""}function x(){return u.value.find(function(e){return e.localId===c.value})}function A(){var e=x();(null==e?void 0:e._isNew)&&(u.value=u.value.filter(function(t){return t.localId!==e.localId}),C()),S()}function k(t){if(e.visible&&c.value){var n,a=t.target;(null!=(n=Element)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](a):a instanceof n)&&(a.closest(".explore-statistics-config-dialog__edit-fields")||a.closest(".explore-statistics-config-dialog__clear-btn")||a.closest(".explore-statistics-config-dialog__save-btn")||A())}}function I(e){return e$(function(){return eQ(this,function(t){switch(t.label){case 0:return c.value&&c.value!==e.localId&&A(),c.value=e.localId,f.item_name="".concat(e.item_name||""),f.item_value="".concat(e.item_value||""),[4,(0,a.nextTick)()];case 1:return t.sent(),T(p.value),[2]}})})()}function T(e){var t,n=Array.isArray(e)?e[0]:e;null==n||null==(t=n.focus)||t.call(n)}function E(){var e=h.value;e&&(e.scrollTop=e.scrollHeight)}function D(){var e,t=arguments.length>
10&&void 0!==arguments[0]?arguments[0]:c.value,n=u.value.find(function(e){return e.localId===t});if(!n)return S(),!0;var a="".concat(f.item_name||"").trim(),r="".concat(null!=(e=f.item_value)?e:"").trim();if(n._isNew&&(!a||!r))return b("请è¾å
¥æ°æ®é¡¹åç§°åæ°æ®å
容"),!1;if(!n._isNew&&!a&&!r)return S(),!0;if(n.item_name=a||n.item_name,O(n))n.item_value="";else{var o=(0,eJ.S9)(r||n.item_value);if(o)return b(o),!1;n.item_value=r||n.item_value,n.is_show=1}return delete n._isNew,C(),S(),!0}return(0,a.watch)(function(){return e.visible},function(e){if(!e)return void S();w()},{immediate:!0}),(0,a.onMounted)(function(){document.addEventListener("click",k)}),(0,a.onBeforeUnmount)(function(){document.removeEventListener("click",k)}),{__sfc:!0,props:e,emit:n,useState:o,agentInfo:i,isFetching:l,isSubmitting:s,statisticsItems:u,editingId:c,customItemSeed:d,editingDraft:f,editingNameInputRef:p,editingValueInputRef:v,statisticsScrollRef:h,currentAgentId:m,currentAgentLevel:g,currentSwitchSource:_,hasEditingDraftContent:y,showToast:b,loadStatisticsItems:w,normalizeStatisticsOrder:C,isSystemItem:O,isEditingItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c.value===e.localId},getSystemDefaultName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return O(e)?"".concat(eh.XF[e.item_code]||"").trim():""},shouldShowSystemDefaultName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return O(e)},resetEditingState:S,getEditingItem:x,cancelEditingItem:A,handleContentClick:function(){c.value&&A()},handleDocumentClick:k,startEditingItem:I,clearEditingDraft:function(){f.item_name="",f.item_value=""},handleCustomValueInput:function(e){f.item_value="".concat(null!=e?e:"").replace(/\D/g,"")},focusEditingInput:T,handleEditingInputEnter:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.value,n=u.value.find(function(e){return e.localId===t});if(!n)return void S();var a=!!"".concat(f.item_name||"").trim(),r=!!"".concat(null!=(e=f.item_value)?e:"").trim();if(O(n)){a&&D(t);return}if(!O(n)){if(a&&!r)return void T(v.value);if(!a&&r)return void T(p.value)}D(t)},scrollStatisticsToBottom:E,saveEditingItem:D,toggleSystemVisibility:function(e){if(c.value&&c.value!==e.localId)return void A();O(e)&&(e.is_show=+(1!==Number(e.is_show)))},handleAddCustomItem:function(){return e$(function(){var e;return eQ(this,function(t){switch(t.label){case 0:var n;if(c.value)return A(),[2];return d.value+=1,e=eX(eY({},(0,eJ.lQ)(d.value)),{_isNew:!0,order:u.value.length+1}),u.value=((function(e){if(Array.isArray(e))return eK(e)})(n=u.value)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return eK(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eK(e,t)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e]),[4,I(e)];case 1:return t.sent(),[4,(0,a.nextTick)()];case 2:return t.sent(),E(),[2]}})})()},removeCustomItem:function(e){if(c.value&&c.value!==e.localId)return void A();O(e)||(u.value=u.value.filter(function(t){return t.localId!==e.localId}),c.value===e.localId&&S(),C())},handleConfirm:function(){return e$(function(){var e,t;return eQ(this,function(a){switch(a.label){case 0:if(l.value||s.value||c.value&&!D())return[2];if(e=(0,eJ.xT)(u.value))return b(e),[2];if(!m.value)return b("æªè·åå°ä¸ä¸ IDï¼ææ¶æ æ³ä¿å"),[2];s.value=!0,a.label=1;case 1:return a.trys.push([1,3,4,5]),[4,(0,eJ.gM)(m.value,u.value)];case 2:return n("refresh",t=a.sent()),n("saved",t),b("ä¿åæå","success"),[3,5];case 3:return console.error("Failed to save explore statistics config:",a.sent()),b("ä¿å失败ï¼è¯·ç¨åéè¯"),[3,5];case 4:return s.value=!1,[7];case 5:return[2]}})})()},draggable:eq(),BaseDialog:eZ.Z}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return e.visible?t("div",[t(n.BaseDialog,{attrs:{title:"ç¼è¾æ°æ®","sub-title":"ç³»ç»æ ç¾ä¸æ¯æå é¤",width:"516px",height:"auto","dialog-class":"explore-statistics-config-dialog-shell",disabled:n.isFetching||n.isSubmitting,"confirm-text":n.isSubmitting?"ä¿åä¸...":"ç¡®å®"},on:{close:function(e){return n.emit("close")},confirm:n.handleConfirm}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:n.isFetching,expression:"isFetching"}],staticClass:"explore-statistics-config-dialog__content",class:"theme-".concat(e.theme),on:{click:n.handleContentClick}
1},[t("div",{ref:"statisticsScrollRef",staticClass:"explore-statistics-config-dialog__scroll",on:{click:n.handleContentClick}},[t(n.draggable,{staticClass:"explore-statistics-config-dialog__list",attrs:{tag:"ul",handle:".explore-statistics-config-dialog__drag-handle",draggable:".explore-statistics-config-dialog__item",disabled:!!n.editingId,"scroll-sensitivity":200},on:{end:n.normalizeStatisticsOrder},model:{value:n.statisticsItems,callback:function(e){n.statisticsItems=e},expression:"statisticsItems"}},e._l(n.statisticsItems,function(a){return t("li",{key:a.localId,staticClass:"explore-statistics-config-dialog__item",class:{"is-editing":n.isEditingItem(a),"is-hidden":n.isSystemItem(a)&&0===Number(a.is_show)},on:{click:n.handleContentClick}},[t("button",{staticClass:"explore-statistics-config-dialog__icon-btn explore-statistics-config-dialog__drag-handle",class:{"is-disabled":!!n.editingId},attrs:{type:"button",title:"ææ½æåº"},on:{click:function(e){e.stopPropagation()}}},[t("i",{staticClass:"iconfont icon-paixu6dian"})]),e._v(" "),t("div",{staticClass:"explore-statistics-config-dialog__item-body"},[n.isEditingItem(a)?[t("div",{staticClass:"explore-statistics-config-dialog__edit-fields",on:{click:function(e){e.stopPropagation()}}},[t("el-input",{ref:"editingNameInputRef",refInFor:!0,staticClass:"explore-statistics-config-dialog__name-input",attrs:{maxlength:"100",placeholder:"请è¾å
¥åç§°"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),t.preventDefault(),n.handleEditingInputEnter(a.localId))}},model:{value:n.editingDraft.item_name,callback:function(t){e.$set(n.editingDraft,"item_name","string"==typeof t?t.trim():t)},expression:"editingDraft.item_name"}}),e._v(" "),n.isSystemItem(a)?e._e():t("el-input",{ref:"editingValueInputRef",refInFor:!0,staticClass:"explore-statistics-config-dialog__value-input",attrs:{maxlength:"100",placeholder:"请è¾å
¥æ°æ®"},on:{input:n.handleCustomValueInput},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),t.preventDefault(),n.handleEditingInputEnter(a.localId))}},model:{value:n.editingDraft.item_value,callback:function(t){e.$set(n.editingDraft,"item_value","string"==typeof t?t.trim():t)},expression:"editingDraft.item_value"}})],1)]:[t("div",{staticClass:"explore-statistics-config-dialog__name-wrap"},[t("span",{staticClass:"explore-statistics-config-dialog__name"},[e._v("\n "+e._s(a.item_name)+"\n ")]),e._v(" "),n.shouldShowSystemDefaultName(a)?t("span",{staticClass:"explore-statistics-config-dialog__system-default-name"},[e._v("\n ç³»ç» ("+e._s(n.getSystemDefaultName(a))+")\n ")]):e._e()])],e._v(" "),t("div",{staticClass:"explore-statistics-config-dialog__actions"},[n.isEditingItem(a)?[n.hasEditingDraftContent?t("button",{staticClass:"explore-statistics-config-dialog__icon-btn explore-statistics-config-dialog__action-btn explore-statistics-config-dialog__clear-btn",attrs:{type:"button",title:"æ¸
é¤"},on:{click:function(e){return e.stopPropagation(),n.clearEditingDraft.apply(null,arguments)}}},[t("i",{staticClass:"iconfont icon-yuanquancha"})]):e._e(),e._v(" "),n.hasEditingDraftContent?t("button",{staticClass:"explore-statistics-config-dialog__icon-btn explore-statistics-config-dialog__action-btn explore-statistics-config-dialog__save-btn",attrs:{type:"button",title:"ä¿å"},on:{click:function(e){return e.stopPropagation(),n.saveEditingItem(a.localId)}}},[t("i",{staticClass:"iconfont icon-yuanquangou"})]):e._e()]:n.isSystemItem(a)?[t("button",{staticClass:"explore-statistics-config-dialog__icon-btn explore-statistics-config-dialog__action-btn",attrs:{type:"button",title:1===Number(a.is_show)?"éè":"æ¾ç¤º"},on:{click:function(e){return e.stopPropagation(),n.toggleSystemVisibility(a)}}},[t("i",{staticClass:"iconfont",class:1===Number(a.is_show)?"icon-yanjing":"icon-bukejian"})]),e._v(" "),t("button",{staticClass:"explore-statistics-config-dialog__icon-btn explore-statistics-config-dialog__action-btn",attrs:{type:"button",title:"ç¼è¾"},on:{click:function(e){return e.stopPropagation(),n.startEditingItem(
1a)}}},[t("i",{staticClass:"iconfont icon-bianji-bi"})])]:[t("span",{staticClass:"explore-statistics-config-dialog__value"},[e._v("\n "+e._s(a.item_value)+"\n ")]),e._v(" "),t("button",{staticClass:"explore-statistics-config-dialog__icon-btn explore-statistics-config-dialog__action-btn",attrs:{type:"button",title:"å é¤"},on:{click:function(e){return e.stopPropagation(),n.removeCustomItem(a)}}},[t("i",{staticClass:"iconfont icon-shanchu"})]),e._v(" "),t("button",{staticClass:"explore-statistics-config-dialog__icon-btn explore-statistics-config-dialog__action-btn",attrs:{type:"button",title:"ç¼è¾"},on:{click:function(e){return e.stopPropagation(),n.startEditingItem(a)}}},[t("i",{staticClass:"iconfont icon-bianji-bi"})])]],2)],2)])}),0),e._v(" "),t("button",{staticClass:"explore-statistics-config-dialog__add-btn",class:{"is-disabled":!!n.editingId},attrs:{type:"button","aria-disabled":!!n.editingId},on:{click:function(e){return e.stopPropagation(),n.handleAddCustomItem.apply(null,arguments)}}},[t("i",{staticClass:"iconfont icon-tianjia1"}),e._v(" "),t("span",[e._v("æ°å¢æ°æ®é¡¹")])])],1)])])],1):e._e()},[],!1,null,"44d78ce8",null).exports,e1=n(68336),e2=n(64955);function e4(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function e3(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){e4(o,a,r,i,l,"next",e)}function l(e){e4(o,a,r,i,l,"throw",e)}i(void 0)})}}function e6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){e6(e,t,n[t])})}return e}function e8(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function e7(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var e9=(0,f.Z)({__name:"ExploreHomeBackgroundDialog",props:{visible:{type:Boolean,default:!1},theme:{type:String,default:"dark"},subjectInfo:{type:Object,default:function(){return{}}},settingJson:{type:Object,default:function(){return{}}}},emits:["close","saved","refresh"],setup:function(e,t){var n,o,i=t.emit,l=(0,r._p)("aiSubjectStore").useState,s=l(["settingJson","agentInfo"]),u=s.settingJson,c=s.agentInfo,d=(0,I.Z)().updateSettingJson,f=Object.freeze([{value:U.DEFAULT_VIDEO,label:"é»è®¤è§é¢èæ¯"},{value:U.UPLOAD_IMAGE,label:"ä¸ä¼ å¾çï¼png/jpgï¼1M以å
ï¼",accept:".png,.jpg,.jpeg,image/png,image/jpg,image/jpeg",allowTypes:["image/png","image/jpg","image/jpeg"],maxSize:1,maxSizeTips:"æä»¶å¤§å°ä¸è¶
è¿1M
1B"},{value:U.UPLOAD_GIF,label:"ä¸ä¼ å¨å¾ï¼gifï¼20M以å
ï¼",accept:".gif,image/gif",allowTypes:["image/gif"],maxSize:20,maxSizeTips:"æä»¶å¤§å°ä¸è¶
è¿20MB"},{value:U.UPLOAD_VIDEO,label:"ä¸ä¼ è§é¢ï¼mp4ï¼100M以å
ï¼éçå¾
转ç 宿æå±ç¤ºï¼"}]),p=(0,a.reactive)({mode:U.DEFAULT_VIDEO,presetIndex:0,imageUrl:"",imageName:"",gifUrl:"",gifName:"",videoCcvid:"",videoName:"",loopPlay:!0,opacity:1,blur:0,brightness:100}),v=(0,a.reactive)((e6(n={},U.UPLOAD_IMAGE,""),e6(n,U.UPLOAD_GIF,""),e6(n,U.UPLOAD_VIDEO,""),n)),h=(0,a.reactive)((e6(o={},U.UPLOAD_IMAGE,!1),e6(o,U.UPLOAD_GIF,!1),e6(o,U.UPLOAD_VIDEO,!1),o)),m=(0,a.ref)(0),g=(0,a.ref)(null),_=(0,a.ref)(null),y=(0,a.computed)(function(){return V(e.settingJson,e.theme)}),b=(0,a.computed)(function(){return y.value.presetVideos||[]}),w=(0,a.computed)(function(){var t,n;return(null==(t=e.subjectInfo)?void 0:t.agent_id)||(null==(n=c.value)?void 0:n.id)||0}),C=(0,a.computed)(function(){var e;return(null==(e=c.value)?void 0:e.university_id)||0}),O=(0,a.computed)(function(){return"/pc/upload_info/ai_display/?agent_id=".concat(w.value,"&uvid=").concat(C.value)}),S=(0,a.computed)(function(){return Object.values(h).some(Boolean)});function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";(0,ez.Message)({message:e,type:t,customClass:"toastMessage",iconClass:"success"===t?"iconfont icon-yuanquangou-mianzhuang":"iconfont icon-weidu-mianzhuang"})}function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e||"string"!=typeof e)return"";try{var t=e.split("?")[0].split("/").pop()||"";return decodeURIComponent(t)}catch(e){return""}}function k(){_.value||(_.value=new e2.W)}function T(){m.value=0,Object.keys(h).forEach(function(e){h[e]=!1}),Object.keys(v).forEach(function(e){v[e]=""})}function E(){var e=y.value;switch(T(),p.presetIndex=e.presetIndex||0,p.imageUrl="",p.imageName="",p.gifUrl="",p.gifName="",p.videoCcvid="",p.videoName="",p.loopPlay=!!e.loopPlay,p.opacity=e.filter.opacity,p.blur=e.filter.blur,p.brightness=e.filter.brightness,e.mode){case U.UPLOAD_IMAGE:p.mode=U.UPLOAD_IMAGE,p.imageUrl=e.imageSrc||"",p.imageName=e.fileName||A(e.imageSrc);break;case U.UPLOAD_GIF:p.mode=U.UPLOAD_GIF,p.gifUrl=e.imageSrc||"",p.gifName=e.fileName||A(e.imageSrc);break;case U.UPLOAD_VIDEO:p.mode=U.UPLOAD_VIDEO,p.videoCcvid=e.ccvid||"",p.videoName=e.fileName||A(e.videoSrc||e.src);break;default:p.mode=U.DEFAULT_VIDEO}}function D(e){return e!==U.DEFAULT_VIDEO}function P(e){switch(e){case U.UPLOAD_IMAGE:return{url:p.imageUrl,name:p.imageName};case U.UPLOAD_GIF:return{url:p.gifUrl,name:p.gifName};case U.UPLOAD_VIDEO:return{url:p.videoCcvid,name:p.videoName};default:return{url:"",name:""}}}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url||"",a=t.name||"";if(e===U.UPLOAD_IMAGE){p.imageUrl=n,p.imageName=a;return}if(e===U.UPLOAD_GIF){p.gifUrl=n,p.gifName=a;return}e===U.UPLOAD_VIDEO&&(p.videoCcvid=n,p.videoName=a)}function L(e){var t;return["mp4"].includes((null==(t=((null==e?void 0:e.name)||"").split(".").pop())?void 0:t.toLowerCase())||"")?!(e.size/1024/1024>100)||(x("è§é¢æä»¶å¤§å°ä¸è¶
è¿100MB"),!1):(x("ä»
æ¯æä¸ä¼ mp4 æ ¼å¼è§é¢"),!1)}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(2===e.status){m.value=Math.max(1,Math.min(99,Number(e.percent)||0)),h[U.UPLOAD_VIDEO]=!0;return}if(4===e.status){h[U.UPLOAD_VIDEO]=!1,m.value=0,x(e.msg||"è§é¢ä¸ä¼ 失败ï¼è¯·ç¨åéè¯");return}if(0===e.status){h[U.UPLOAD_VIDEO]=!1,m.value=100;var t=e.url||"";j(U.UPLOAD_VIDEO,{url:t,name:v[U.UPLOAD_VIDEO]}),v[U.UPLOAD_VIDEO]=""}}function M(){var e={filter:{opacity:p.opacity,blur:p.blur,brightness:p.brightness}};return p.mode===U.UPLOAD_IMAGE?e8(e5({},e),{type:B.IMAGE,preset_index:0,video_url:"",image_url:p.imageUrl.trim(),resource_kind:p.mode,file_name:p.imageName.trim(),loop_play:!0}):p.mode===U.UPLOAD_GIF?e8(e5({},e),{type:B.IMAGE,preset_index:0,video_url:"",image_url:p.gifUrl.trim(),resource_kind:p.mode,file_name:p.gifName.trim(),loop_play:!0}):p.mode===U.UPLOAD_VIDEO?e8(e5({},e),{type:B.VIDEO,preset_index:0,video_url:"",ccvid:p.videoCcvid.trim(),image_url:"",resource_kind:p.mode,file_name:p.videoName.trim(),loop_play:p.loopPlay}):e8(e5({},e),{type:B.VIDEO,preset_index:p.presetIndex,video_url:"",ccvid:"",image_url:"",resource_kind:U.DEFAULT_VIDEO,file_name:"",loop_play:p.loopPlay})}function N(t){var n,a,r,o=(null==(a=e.settingJson)||null==(n=a.home)?void 0:n.backgroundConfig)||{},i=e5({},null==(r=e.settingJson)?void 0:r.home);delete i.background;var l=e8(e5({},o),{type:t.type,preset_index:t.preset_index,video_url:t.video_url,ccvid:t.ccvid||"",image_url:t.image_url,resource_kind:t.resource_kind,file_name:t.file_name,loop_play:t.loop_play,filter:t.filter,theme_config:e8(e5({},o.theme_config),e6({},e.theme,t))});return{home:e8(e5({},i),{backgroundConfig:l})}}function H(t){var n=V(u.value||{},e.theme),a=n.filter.opacity===t.filter.opacity&&n.filter.blur===t.filter.blur&&n.filter.brightness===t.filter.brightness;return t.type===B.IMAGE?n.type===B.IMAGE&&n.src===t.image_url&&n.mode===t.resource_kind&&a:t.ccvid?n.type===B.VIDEO&&n.ccvid===t.ccvid&&n.mode===t.resource_kind&&n.loopPlay===t.loop_play&&a:n.type===B.VIDEO&&Number(n.presetIndex)===Number(t.preset_index)&&n.isDefault&&n.loopPlay===t.loop_play&&a}return(0,a.watch)(function(){return e.visible},function(e){return e3(function(){return e7(this,function(t){switch(t.label){case 0:if(!e)return[3,2];return E(),[4,(0,a.nextTick)()];case 1:return t.sent(),k(),[2];case 2:return T(),[2]}})})()},{immediate:!0}),{__sfc:!0,props:e,emit:i,useState:l,storeSettingJson:u,agentInfo:c,updateSettingJson:d,backgroundOptions:f,form:p,pendingUploadNames:v,uploadingModes:h,videoUploadPercent:m,videoFileInputRef:g,videoUploader:_,currentResolvedConfig:y,presetVideos:b,currentAgentId:w,currentUniversityId:C,imageTokenUrl:O,isBusy:S,showToast:x,extractFileNameFromUrl:A,ensureVideoUploader:k,resetTransientStatus:T,resetForm:E,isUploadMode:D,handleSelectMode:function(e){p.mode=e},getModeFile:P,setModeFile:j,clearModeFile:function(e){j(e,{url:"",name:""}),e===U.UPLOAD_VIDEO&&(h[e]=!1,m.value=0,v[e]="")},getFileIconClass:function(e){if(e===U.UPLOAD_GIF)return"icon-gif";if(e===U.UPLOAD_VIDEO)return"icon-shipingeshi";var t,n=(null==(t=(P(e).name||A(P(e).url)).split(".").pop())?void 0:t.toLowerCase())||"";return"jpg"===n||"jpeg"===n?"icon-jpg":"icon-png"},getUploadButtonText:function(e){return h[e]?"ä¸ä¼ ä¸...":"éæ©æä»¶"},getVideoStatusText:function(){return h[U.UPLOAD_VIDEO]?"è§é¢ä¸ä¼ ä¸ ".concat(m.value,"%"):""},handleImageBeforeUpload:function(e,t){v[e]=(null==t?void 0:t.name)||"",h[e]=!0},handleImageUploadSuccess:function(e,t){h[e]=!1;var n,a=(null==t||null==(n=t.data)?void 0:n.url)||"";j(e,{url:a,name:v[e]||A(a)}),v[e]=""},handleImageUploadError:function(e){h[e]=!1,v[e]=""},triggerVideoUpload:function(){var e;h[U.UPLOAD_VIDEO]||null==(e=g.value)||e.click()},validateVideoFile:L,handleVideoFileChange:function(e){var t,n=null==(t=e.target.files)?void 0:t[0];e.target.value="",n&&L(n)&&(k(),v[U.UPLOAD_VIDEO]=n.name,p.videoCcvid="",p.videoName=n.name,h[U.UPLOAD_VIDEO]=!0,m.value=0,_.value.trigger(n,function(e){R(e)}))},handleVideoUploadProgress:R,buildThemeConfig:M,buildSettingPatch:N,isBackgroun
1dSaved:H,handleSave:function(){return e3(function(){var t,n;return e7(this,function(r){switch(r.label){case 0:if(S.value)return x("æä»¶ä¸ä¼ ä¸ï¼è¯·ç¨åä¿å"),[2];if(D(p.mode)&&!P(p.mode).url)return x("è¯·éæ©æä»¶"),[2];return[4,d(N(t=M()))];case 1:return r.sent(),[4,(0,a.nextTick)()];case 2:if(r.sent(),!H(t))return[2];return n={refreshToken:Date.now(),theme:e.theme,background:t},x("èæ¯è®¾ç½®å·²ä¿å","success"),i("refresh",n),i("saved",n),[2]}})})()},BaseDialog:eZ.Z,Uploader:e1.Z,EXPLORE_HOME_BACKGROUND_MODE:U}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return e.visible?t(n.BaseDialog,{attrs:{"dialog-class":"explore-home-background-dialog-shell",title:"ç¼è¾èæ¯",width:"516px",height:"auto",disabled:n.isBusy},on:{close:function(e){return n.emit("close")},confirm:n.handleSave}},[t("section",{staticClass:"explore-home-background-dialog"},[t("div",{staticClass:"explore-home-background-dialog__row"},[t("div",{staticClass:"explore-home-background-dialog__label"},[e._v("èæ¯")]),e._v(" "),t("div",{staticClass:"explore-home-background-dialog__options"},e._l(n.backgroundOptions,function(a){return t("div",{key:a.value,staticClass:"explore-home-background-dialog__option"},[t("button",{staticClass:"explore-home-background-dialog__option-trigger",class:{"is-active":n.form.mode===a.value},attrs:{type:"button"},on:{click:function(e){return n.handleSelectMode(a.value)}}},[t("span",{staticClass:"explore-home-background-dialog__radio",class:{"is-active":n.form.mode===a.value},attrs:{"aria-hidden":"true"}},[t("span",{staticClass:"explore-home-background-dialog__radio-mark"}),e._v(" "),t("span",{staticClass:"explore-home-background-dialog__radio-dot"})]),e._v(" "),t("span",{staticClass:"explore-home-background-dialog__option-label"},[e._v(e._s(a.label))])]),e._v(" "),a.value===n.EXPLORE_HOME_BACKGROUND_MODE.DEFAULT_VIDEO&&n.form.mode===a.value?t("div",{staticClass:"explore-home-background-dialog__preset-list"},e._l(n.presetVideos,function(r,o){return t("button",{key:"".concat(a.value,"-").concat(o),staticClass:"explore-home-background-dialog__preset-card",class:{"
1is-active":n.form.presetIndex===o},attrs:{type:"button"},on:{click:function(e){e.stopPropagation(),n.form.presetIndex=o}}},[r?t("video",{staticClass:"explore-home-background-dialog__preset-media",attrs:{src:r,muted:"",autoplay:"",loop:"",playsinline:"",preload:"metadata"},domProps:{muted:!0}}):e._e()])}),0):n.isUploadMode(a.value)&&n.form.mode===a.value?t("div",{staticClass:"explore-home-background-dialog__upload-slot"},[n.getModeFile(a.value).url?t("div",{staticClass:"explore-home-background-dialog__file-card"},[t("i",{staticClass:"iconfont explore-home-background-dialog__file-icon",class:n.getFileIconClass(a.value)}),e._v(" "),t("span",{staticClass:"explore-home-background-dialog__file-name"},[e._v("\n "+e._s(n.getModeFile(a.value).name||n.extractFileNameFromUrl(n.getModeFile(a.value).url))+"\n ")]),e._v(" "),t("button",{staticClass:"explore-home-background-dialog__file-remove",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),n.clearModeFile(a.value)}}},[e._v("\n å é¤\n ")])]):a.value!==n.EXPLORE_HOME_BACKGROUND_MODE.UPLOAD_VIDEO?t(n.Uploader,{staticClass:"explore-home-background-dialog__upload-trigger",attrs:{accept:a.accept,"allow-types":a.allowTypes,"max-size":a.maxSize,"size-unit":"MB","max-size-tips":a.maxSizeTips,"token-url":n.imageTokenUrl,disabled:n.uploadingModes[a.value],"handle-before-upload":function(e,t,r){return n.handleImageBeforeUpload(a.value,e,t,r)},"handle-upload-success":function(e){return n.handleImageUploadSuccess(a.value,e)},"handle-upload-error":function(){return n.handleImageUploadError(a.value)}},scopedSlots:e._u([{key:"placeholder",fn:function(){return[t("button",{staticClass:"explore-home-background-dialog__upload-btn",class:{"is-loading":n.uploadingModes[a.value]},attrs:{type:"button"}},[e._v("\n "+e._s(n.getUploadButtonText(a.value))+"\n ")])]},proxy:!0}],null,!0)}):t("button",{directives:[{name:"show",rawName:"v-show",value:!n.uploadingModes[a.value],expression:"!uploadingModes[item.value]"}],staticClass:"explore-home-background-dialog__upload-btn",class:{"is-loading":n.uploadingModes[a.value]},attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),n.triggerVideoUpload.apply(null,arguments)}}},[e._v("\n "+e._s(n.getUploadButtonText(a.value))+"\n ")]),e._v(" "),a.value===n.EXPLORE_HOME_BACKGROUND_MODE.UPLOAD_VIDEO&&n.uploadingModes[a.value]?t("div",{staticClass:"explore-home-background-dialog__upload-status"},[e._v("\n "+e._s(n.getVideoStatusText())+"\n ")]):e._e()],1):e._e(),e._v(" "),n.form.mode===a.value&&(a.value===n.EXPLORE_HOME_BACKGROUND_MODE.DEFAULT_VIDEO||a.value===n.EXPLORE_HOME_BACKGROUND_MODE.UPLOAD_VIDEO)?t("button",{staticClass:"explore-home-background-dialog__check-row",class:{"is-active":n.form.loopPlay},attrs:{type:"button",role:"checkbox","aria-checked":n.form.loopPlay?"true":"false"},on:{click:function(e){e.stopPropagation(),n.form.loopPlay=!n.form.loopPlay}}},[t("span",{staticClass:"explore-home-background-dialog__check-control",class:{"is-active":n.form.loopPlay},attrs:{"aria-hidden":"true"}},[t("span",{staticClass:"explore-home-background-dialog__check-control-box"}),e._v(" "),t("span",{staticClass:"explore-home-background-dialog__check-control-tick"})]),e._v(" "),t("span",{staticClass:"explore-home-background-dialog__check-text"},[e._v("è§é¢å¾ªç¯ææ¾")])]):e._e()])}),0)]),e._v(" "),t("div",{staticClass:"explore-home-background-dialog__filter-group"},[t("div",{staticClass:"explore-home-background-dialog__filter-title"},[e._v("滤é")]),e._v(" "),t("div",{staticClass:"explore-home-background-dialog__filter-items"},[t("div",{staticClass:"explore-home-background-dialog__filter-item"},[t("div",{staticClass:"explore-home-background-dialog__label"},[e._v("éæåº¦")]),e._v(" "),t("el-input-number",{attrs:{size:"mini",precision:1,step:.1,min:0,max:1},model:{value:n.form.opacity,callback:function(t){e.$set(n.form,"opacity",t)},expression:"form.opacity"}})],1),e._v(" "),t("div",{staticClass:"explore-home-background-dialog__filter-item"},[t("div",{staticClass:"explore-home-background-dialog__label"},[e._v("模ç³")]),e._v(" "),t("el-input-number",{attrs:{size:"mini",precision:0,step:1,min:0,max:100},model:{value:n.form.blur,callback:function(t){e.$set(n.form,"blur",t)},expression:"form.blur"}})],1),e._v(" "),t("div",{staticClass:"explore-home-background-dialog__filter-item"},[t("div",{staticClass:"explore-home-background-dialog__label"},[e._v("亮度")]),e._v(" "),t("el-input-number",{attrs:{size:"mini",precision:0,step:1,min:0,max:100},model:{value:n.form.brightness,callback:function(t){e.$set(n.form,"brightness",t)},expression:"form.brightness"}})],1)])]),e._v(" "),t("input",{ref:"videoFileInputRef",staticClass:"explore-home-background-dialog__video-input",attrs:{type:"file",accept:".mp4,video/mp4"},on:{change:n.handleVideoFileChange}}
1)])]):e._e()},[],!1,null,"bb26a774",null).exports;function te(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function tt(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){te(o,a,r,i,l,"next",e)}function l(e){te(o,a,r,i,l,"throw",e)}i(void 0)})}}function tn(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var ta=(0,f.Z)({__name:"ExploreHomeDigitalHumanDialog",props:{visible:{type:Boolean,default:!1},theme:{type:String,default:"dark"},subjectInfo:{type:Object,default:function(){return{}}},settingJson:{type:Object,default:function(){return{}}}},emits:["close","saved","refresh"],setup:function(e,t){var n=t.emit,o=(0,r._p)("aiSubjectStore").useState,i=o(["agentInfo","settingJson"]),l=i.agentInfo,s=i.settingJson,u=(0,I.Z)().updateSettingJson,c=(0,a.ref)(!1),d=(0,a.ref)(!1),f=(0,a.ref)([]),p=(0,a.ref)(es),v=(0,a.ref)(!1),h=(0,a.computed)(function(){var t,n;return(null==(t=e.subjectInfo)?void 0:t.agent_id)||(null==(n=l.value)?void 0:n.id)||0}),m=(0,a.computed)(function(){return eu(e.settingJson)}),g=(0,a.computed)(function(){return f.value.find(function(e){return e.key===p.value})||null});function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";(0,ez.Message)({message:e,type:t,customClass:"toastMessage",iconClass:"success"===t?"iconfont icon-yuanquangou-mianzhuang":"iconfont icon-weidu-mianzhuang"})}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.value;d.value=!!m.value.hasContent,v.value=!!m.value.loopPlay,p.value=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.videoId&&(null==(e=t.find(function(e){return e.videoId===n.videoId}))?void 0:e.key)||es}(e,m.value)}function b(){return tt(function(){return tn(this,function(t){switch(t.label){case 0:if(!e.visible)return[2];c.value=!0,y([]),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return(t=function(){var t;return function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(a){switch(a.label){case 0:if(!e)return[2,[]];return[4,N.ZP.get("/c27/online_courseware/agent/".concat(e,"/digit_human_list/"),{file_type:n})];case 1:var r;return[2,ec((Array.isArray(r=null==(t=a.sent())?void 0:t.data)?r:Array.isArray(null==r?void 0:r.detail)?r.detail:Array.isArray(null==r?void 0:r.results)?r.results:Array.isArray(null==r?void 0:r.list)?r.list:[]).map(function(e,t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{key:e.video_id||"digital-human-".concat(t),title:e.title||"æ°å人 ".concat(t+1),videoId:e.video_id||"",digitalHumanVideoId:e.digital_human_video_id||"",agentDigitalHumanId:e.agent_digital_human_id||"",raw:e}}(e,t)}))]}})},function(){var e=this,n=arguments;
1return new Promise(function(a,r){var o=t.apply(e,n);function i(e){el(o,a,r,i,l,"next",e)}function l(e){el(o,a,r,i,l,"throw",e)}i(void 0)})})()}(h.value,1)];case 2:return f.value=ec(t.sent()),y(f.value),[3,5];case 3:return console.error("Failed to load digital human list:",t.sent()),f.value=[],y([]),_("æ°å人å表å 载失败ï¼è¯·ç¨åéè¯"),[3,5];case 4:return c.value=!1,[7];case 5:return[2]}})})()}function w(t){var n,a,r,o=ed(t,{loopPlay:v.value});return{home:(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}({},(null==(r=e.settingJson)?void 0:r.home)||{}),a=a={digitalHuman:o},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(a)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(a,e))}),n)}}function C(e){var t=eu(s.value||{});return e.hasContent?"".concat(t.videoId||"")==="".concat(e.digitalHuman.video_id||""):!t.hasContent}return(0,a.watch)(function(){return e.visible},function(e){e&&b()},{immediate:!0}),{__sfc:!0,props:e,emit:n,useState:o,agentInfo:l,storeSettingJson:s,updateSettingJson:u,isFetching:c,showDigitalHuman:d,options:f,selectedKey:p,loopPlay:v,emptyOptionKey:es,currentAgentId:h,currentConfig:m,selectedOption:g,showToast:_,syncLocalState:y,loadOptions:b,handleToggleShow:function(e){d.value=!!e,d.value&&p.value===es&&f.value.length&&(p.value=f.value[0].key)},buildSettingPatch:w,isDigitalHumanSaved:C,handleSave:function(){return tt(function(){var e,t,r;return tn(this,function(o){switch(o.label){case 0:if(e=d.value?g.value:null,d.value&&!e)return _("è¯·éæ©å±ç¤ºçè§é¢"),[2];return t=w(e),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.loopPlay,a=ed(e,{loopPlay:void 0!==n&&n});return{refreshToken:Date.now(),hasContent:!!a.video_id,digitalHuman:a}}(e,{loopPlay:v.value}),[4,u(t)];case 1:return o.sent(),[4,(0,a.nextTick)()];case 2:if(o.sent(),!C(r))return[2];return _(r.hasContent?"æ°å人设置已ä¿å":"已忶é¦é¡µæ°å人å±ç¤º","success"),n("refresh",r),n("saved",r),[2]}})})()},BaseDialog:eZ.Z}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return e.visible?t(n.BaseDialog,{attrs:{"dialog-class":"explore-home-digital-human-dialog-shell",title:"ç¼è¾æ°å人",width:"416px",height:"auto",disabled:n.isFetching},on:{close:function(e){return n.emit("close")},confirm:n.handleSave}},[t("section",{staticClass:"explore-home-digital-human-dialog"},[t("div",{staticClass:"explore-home-digital-human-dialog__switch-row"},[t("div",{staticClass:"explore-home-digital-human-dialog__label"},[t("span",[e._v("å¨é¦é¡µå±ç¤ºæ°å人")])]),e._v(" "),t("button",{staticClass:"explore-home-digital-human-dialog__switch",class:{"is-active":n.showDigitalHuman},attrs:{type:"button",role:"switch","aria-checked":n.showDigitalHuman?"true":"false"},on:{click:function(e){return n.handleToggleShow(!n.showDigitalHuman)}}},[t("span",{staticClass:"explore-home-digital-human-dialog__switch-track"}),e._v(" "),t("span",{staticClass:"explore-home-digital-human-dialog__switch-thumb"})])]),e._v(" "),n.showDigitalHuman?t("section",{staticClass:"explore-home-digital-human-dialog__settings-card"},[t("div",{staticClass:"explore-home-digital-human-dialog__group"},[t("div",{staticClass:"explore-home-digital-human-dialog__section-label"},[t("span",[e._v("éæ©å±ç¤ºçè§é¢")])]),e._v(" "),t("div",{directives:[{name:"loading",rawName:"v-loading",value:n.isFetching,expression:"isFetching"}],staticClass:"explore-home-digital-human-dialog__options",attrs:{role:"radiogroup","aria-label":"éæ©å±ç¤ºçè§é¢"}},[e._l(n.options,function(a){return t("button",{key:a.key,staticClass:"explore-home-digital-human-dialog__option",class:{"
1is-active":n.selectedKey===a.key},attrs:{type:"button","aria-checked":n.selectedKey===a.key?"true":"false"},on:{click:function(e){n.selectedKey=a.key}}},[t("span",{staticClass:"explore-home-digital-human-dialog__option-control",class:{"is-active":n.selectedKey===a.key},attrs:{"aria-hidden":"true"}},[t("span",{staticClass:"explore-home-digital-human-dialog__option-control-mark"}),e._v(" "),t("span",{staticClass:"explore-home-digital-human-dialog__option-control-dot"})]),e._v(" "),t("span",{staticClass:"explore-home-digital-human-dialog__option-text"},[e._v(e._s(a.title))])])}),e._v(" "),n.isFetching||n.options.length?e._e():t("div",{staticClass:"explore-home-digital-human-dialog__empty"},[e._v("\n ææ å¯ç¨æ°å人è§é¢\n ")])],2)]),e._v(" "),t("div",{staticClass:"explore-home-digital-human-dialog__divider"}),e._v(" "),t("button",{staticClass:"explore-home-digital-human-dialog__check-row",class:{"is-active":n.loopPlay},attrs:{type:"button","aria-checked":n.loopPlay?"true":"false"},on:{click:function(e){n.loopPlay=!n.loopPlay}}},[t("span",{staticClass:"explore-home-digital-human-dialog__check-control",class:{"is-active":n.loopPlay},attrs:{"aria-hidden":"true"}},[t("span",{staticClass:"explore-home-digital-human-dialog__check-control-box"}),e._v(" "),t("span",{staticClass:"explore-home-digital-human-dialog__check-control-tick"})]),e._v(" "),t("span",{staticClass:"explore-home-digital-human-dialog__check-text"},[e._v("è§é¢å¾ªç¯ææ¾")])])]):e._e()])]):e._e()},[],!1,null,"49562561",null).exports,tr=n(13747);function to(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}function tl(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var ts=(0,f.Z)({__name:"TeachingTeamSettingDialog",props:{visible:{type:Boolean,default:!1},theme:{type:String,default:"dark"},subjectInfo:{type:Object,default:function(){return{}}},settingJson:{type:Object,default:function(){return{}}}},emits:["close","saved","refresh"],setup:function(e,t){var n=t.emit,o=Object.freeze({STYLE_ONE:1,STYLE_TWO:2}),i=(0,r._p)("aiSubjectStore").useState,l=i(["agentInfo","settingJson"]),s=l.agentInfo,u=l.settingJson,c=(0,I.Z)().updateSettingJson,d=Object.freeze([{value:o.STYLE_ONE,label:"æ ·å¼ä¸"},{value:o.STYLE_TWO,label:"æ ·å¼äº"}]),f=(0,a.reactive)({styleMode:o.STYLE_ONE}),p=(0,a.ref)(!1);function v(e){return e&&Object.keys(e).length>0}var h=(0,a.computed)(function(){return v(u.value)?u.value:e.settingJson||{}}),m=(0,a.computed)(function(){var e;return Number(null==(e=s.value)?void 0:e.level)||6}),g=(0,a.computed)(function(){var e=(0,tr.$P)(h.value,m.value).find(function(e){return e.key===tr.KJ.TEACHING_TEAM});return(null==e?void 0:e.title)||"ä¸ä¸æå¸å¢é"}),_=(0,a.computed)(function(){return"".concat(g.value,"设置")});function y(e){return Number(e)===o.STYLE_TWO?o.STYLE_TWO:o.STYLE_ONE}function b(){var e,t,n;f.styleMode=y(null==(n=h.value)||null==(t=n.home)||null==(e=t.teachingTeam)?void 0:e.styleMode)}function w(){var e,t=(null==(e=h.value)?void 0:e.home)||{},n=t.teachingTeam||{};return{home:tl(ti({},t),{teachingTeam:tl(ti({},n),{styleMode:f.styleMode})})}}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";(0,ez.Message)({message:e,type:t,customClass:"toastMessage",iconClass:"success"===t?"iconfont icon-yuanquangou-mianzhuang":"iconfont icon-weidu-mianzhuang"})}return(0,a.watch)(function(){return e.visible},function(e){e&&b()},{immediate:!0}
1),{__sfc:!0,TEACHING_TEAM_STYLE_MODE:o,props:e,emit:n,useState:i,agentInfo:s,storeSettingJson:u,updateSettingJson:c,styleOptions:d,form:f,isSubmitting:p,hasSettingContent:v,currentSettingJson:h,currentAgentLevel:m,teachingTeamModuleTitle:g,dialogTitle:_,normalizeStyleMode:y,syncLocalState:b,buildSettingPatch:w,showToast:C,handleSave:function(){var e;return(e=function(){var e,t,r;return function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(o){switch(o.label){case 0:if(p.value)return[2];p.value=!0,e=f.styleMode,o.label=1;case 1:return o.trys.push([1,4,5,6]),[4,c(w())];case 2:return o.sent(),[4,(0,a.nextTick)()];case 3:return o.sent(),t={refreshToken:Date.now(),styleMode:e},C("ä¸ä¸æå¸å¢é设置已ä¿å","success"),n("refresh",t),n("saved",t),[3,6];case 4:return C((null==(r=o.sent())?void 0:r.message)||"ä¸ä¸æå¸å¢é设置ä¿å失败ï¼è¯·éè¯"),[3,6];case 5:return p.value=!1,[7];case 6:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){to(o,a,r,i,l,"next",e)}function l(e){to(o,a,r,i,l,"throw",e)}i(void 0)})})()},BaseDialog:eZ.Z}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return e.visible?t(n.BaseDialog,{attrs:{"dialog-class":"teaching-team-setting-dialog-shell",title:n.dialogTitle,width:"416px",height:"auto",disabled:n.isSubmitting,"confirm-text":n.isSubmitting?"ä¿åä¸...":"ç¡®å®"},on:{close:function(e){return n.emit("close")},confirm:n.handleSave}},[t("section",{staticClass:"teaching-team-setting-dialog"},[t("div",{staticClass:"teaching-team-setting-dialog__row"},[t("div",{staticClass:"teaching-team-setting-dialog__label"},[e._v("æ ·å¼")]),e._v(" "),t("div",{staticClass:"teaching-team-setting-dialog__options",attrs:{role:"radiogroup","aria-label":"".concat(n.teachingTeamModuleTitle,"æ ·å¼")}},e._l(n.styleOptions,function(a){return t("button",{key:a.value,staticClass:"teaching-team-setting-dialog__option-trigger",class:{"is-active":n.form.styleMode===a.value},attrs:{type:"button","aria-checked":n.form.styleMode===a.value?"true":"false"},on:{click:function(e){n.form.styleMode=a.value}}},[t("span",{staticClass:"teaching-team-setting-dialog__radio",class:{"is-active":n.form.styleMode===a.value},attrs:{"aria-hidden":"true"}},[t("span",{staticClass:"teaching-team-setting-dialog__radio-mark"}),e._v(" "),t("span",{staticClass:"teaching-team-setting-dialog__radio-dot"})]),e._v(" "),t("span",{staticClass:"teaching-team-setting-dialog__option-label"},[e._v(e._s(a.label))])])}),0)])])]):e._e()},[],!1,null,"639bb3ac",null).exports,tu=n(60458);function tc(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function td(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){tc(o,a,r,i,l,"next",e)}function l(e){tc(o,a,r,i,l,"throw",e)}i(void 0)})}}function tf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){tf(e,t,n[t])})}return e}function tv(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n}
1)(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function th(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var tm=(0,f.Z)({__name:"ExploreIndex",props:{enableMainColumnScale:{type:Boolean,default:!0}},setup:function(e){var t,n=(0,r._p)("aiSubjectStore").useState,l=n(["mode","subjectInfo","settingJson","agentInfo","userInfo"]),s=l.mode,u=l.subjectInfo,c=l.settingJson,d=l.agentInfo,f=l.userInfo,v=(0,a.reactive)((tf(t={},g.DATA,!1),tf(t,g.BACKGROUND,!1),tf(t,g.DIGITAL_HUMAN,!1),tf(t,g.TEACHING_TEAM,!1),t)),_=(0,a.ref)(!1),b=(0,a.ref)(!1),w=(0,a.ref)(!1),O=(0,a.ref)({}),S=(0,a.ref)(0),A=(0,a.ref)(0),k=(0,a.ref)(0),I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scrollRef||(0,a.ref)(null),n=e.contentRef||(0,a.ref)(null),r=e.minThumbHeight||48,i=(0,a.ref)(!1),l=(0,a.ref)(!1),s=(0,a.ref)(0),u=(0,a.ref)(r),c=null,d=0,f="",p={startY:0,startScrollTop:0},v=(0,a.computed)(function(){return["overlay-scrollbar__thumb",{"is-dragging":l.value}]}),h=(0,a.computed)(function(){return{height:"".concat(u.value,"px"),transform:"translateY(".concat(s.value,"px)")}});function m(){var e=t.value;if(!e){i.value=!1;return}var n=e.scrollHeight-e.clientHeight;if(n<=1){i.value=!1,s.value=0;return}var a=e.clientHeight,o=Math.max(r,Math.round(e.clientHeight/e.scrollHeight*a)),l=Math.max(0,a-o);i.value=!0,u.value=o,s.value=n?e.scrollTop/n*l:0}function g(){d||(d=window.requestAnimationFrame(function(){d=0,m()}))}function _(e){var n=t.value;if(n){var a=n.scrollHeight-n.clientHeight,r=n.clientHeight-u.value;if(!(a<=0)&&!(r<=0)){var o=e.clientY-p.startY;n.scrollTop=p.startScrollTop+o/r*a,g()}}}function y(){l.value&&(l.value=!1,document.removeEventListener("pointermove",_),document.removeEventListener("pointerup",y),document.removeEventListener("pointercancel",y),document.body.style.userSelect=f)}return(0,a.onMounted)(function(){var e;return(e=function(){return function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:return[4,(0,a.nextTick)()];case 1:return e.sent(),"undefined"!=typeof ResizeObserver&&(c=new ResizeObserver(g),t.value&&c.observe(t.value),n.value&&c.observe(n.value)),m(),window.addEventListener("resize",g),[2]}})},function(){var t=this,n=arguments;return new Promise(function(a,r){var i=e.apply(t,n);function l(e){o(i,a,r,l,s,"next",e)}function s(e){o(i,a,r,l,s,"throw",e)}l(void 0)})})()}),(0,a.onBeforeUnmount)(function(){y(),window.removeEventListener("resize",g),c&&(c.disconnect(),c=null),d&&(window.cancelAnimationFrame(d),d=0)}),{contentRef:n,handleScroll:function(){g()},handleThumbPointerDown:function(e){if(void 0===e.button||0===e.button){var n=t.value;n&&i.value&&(e.preventDefault(),p.startY=e.clientY,p.startScrollTop=n.scrollTop,l.value=!0,f=document.body.style.userSelect,document.body.style.userSelect="none",document.addEventListener("pointermove",_),document.addEventListener("pointerup",y),document.addEventListener("pointercancel",
1y))}},hostClass:"overlay-scrollbar__host",isDragging:l,isVisible:i,requestUpdate:g,rootClass:"overlay-scrollbar__root",scrollRef:t,thumbClass:v,thumbStyle:h,update:m}}(),P=I.contentRef,j=I.handleScroll,L=I.handleThumbPointerDown,R=I.hostClass,M=I.isVisible,N=I.rootClass,B=I.scrollRef,U=I.thumbClass,H=I.thumbStyle,G=(0,a.computed)(function(){return u.value||{}}),F=(0,a.computed)(function(){return c.value||{}}),V=(0,a.computed)(function(){return function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==t||null==(e=t.name_info)?void 0:e.theme)===h.LIGHT?h.LIGHT:h.DARK}(G.value)}),q=(0,a.computed)(function(){return 2===Number(s.value)}),z=(0,a.computed)(function(){return function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!!((null==t||null==(e=t.home)?void 0:e.digitalHuman)||{}).video_id}(F.value)}),Z=(0,a.computed)(function(){return q.value||z.value}),J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.settingJson,n=e.enableMainColumnScale,r=e.hasDigitalHumanContent,o=e.shouldReserveDigitalHumanSpace,i=(0,T.V)(),l=i.go,s=i.route,u=(0,a.computed)(function(){return"1"===String(s.query.is_mobile||"")||(0,E.tq)()}),c=(0,a.computed)(function(){return u.value?m.CENTER:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Number(null==t||null==(e=t.home)?void 0:e.layout)===m.SPLIT_VALUE?m.SPLIT:m.CENTER}(null==t?void 0:t.value)}),d=(0,a.computed)(function(){return!!(null==n?void 0:n.value)&&!u.value}),f=(0,a.computed)(function(){return u.value&&!!(null==r?void 0:r.value)}),p=(0,a.computed)(function(){return!u.value&&!!(null==o?void 0:o.value)});return{goToMobileAccompanyPage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.agentId,n=e.agentLevel,a={entity_type:"22",entity_id:"0",scene:"1",category:"1",agentId:String(void 0===t?"":t),ent:"28",is_share:"1",report:"1",subject_display_level:String(void 0===n?"":n)};return"1"===String(s.query.is_mobile||"")&&(a.is_mobile="1"),l({name:"ai-chatbot-window",query:a})},isMobileLayout:u,layout:c,shouldEnableMainColumnScale:d,shouldRenderMobileDigitalHuman:f,shouldRenderDesktopDigitalHuman:p}}({settingJson:F,enableMainColumnScale:(0,a.computed)(function(){return e.enableMainColumnScale}),hasDigitalHumanContent:z,shouldReserveDigitalHumanSpace:Z}),K=J.goToMobileAccompanyPage,W=J.isMobileLayout,$=J.layout,Y=J.shouldEnableMainColumnScale,X=J.shouldRenderDesktopDigitalHuman,Q=J.shouldRenderMobileDigitalHuman,ee=(0,a.computed)(function(){var e,t;return(null==(e=d.value)?void 0:e.id)||(null==(t=G.value)?void 0:t.agent_id)||""}),et=(0,a.computed)(function(){var e;return Number(null==(e=d.value)?void 0:e.level)||6}),en=(0,a.computed)(function(){var e,t;return(null==(e=d.value)?void 0:e.university_id)||(null==(t=G.value)?void 0:t.university_id)||""}),ea=(0,a.computed)(function(){var e,t;return Number((null==(t=F.value)||null==(e=t.home)?void 0:e.chatType)||1)}),er=(0,a.computed)(function(){var e;return(null==(e=O.value)?void 0:e.agent_id)||""}),eo=(0,a.computed)(function(){var e;return(null==(e=O.value)?void 0:e.workflow_draft_id)||""}),ei=(0,a.computed)(function(){var e;return(null==(e=O.value)?void 0:e.code)||""}),el="https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/ai-subject-display/dark/",es=Object.freeze({decorateLeftImage:"".concat(el,"specialty-decision-major-decorate-left.png"),descImage:"".concat(el,"specialty-decision-major-desc-img.png"),decorateRightImage:"".concat(el,"specialty-decision-major-decorate-right.png"),targetBadgeImage:"",targetCircleImage:"".concat(el,"specialty-decision-major-circle1-1.png"),requirementCircleImage:"".concat(el,"specialty-decision-major-circle2.png"),courseCubeImage:"".concat(el,"specialty-decision-major-icon-cube.png"),courseCircleImage:"".concat(el,"specialty-decision-major-circle3.png"),resourceDecorateImage:"".concat(el,"specialty-decision-major-decorate-bottom.png")}),eu=(0,a.computed)(function(){return V.value===h.DARK?es:{}}),ec=(0,a.computed)(function(){return(0,tr.js)(F.value,et.value)}),ed=(0,a.computed)(function(){return ec.value.length>0}),ef=(0,a.computed)(function(){return ec.value.map(function(e,t){var n=0===t;return e.key===tr.KJ.GLOBAL_OVERVIEW?tv(tp({},e),{component:x,props:{theme:V.value,imageProps:eu.value,title:e.title,hasHeaderOffset:n}}):tv(tp({},e),{component:eF,props:{theme:V.value,title:e.title,isEditMode:q.value,settingJson:F.value,agentId:ee.value,universityId:en.value,titleEn:e.titleEn,hasHeaderOffset:n,isMobileLayout:W.value}})})}),ep=(0,a.computed)(function(){var e;return tf(e={},"ai-subject-display-home-explore--theme-".concat(V.value),!0),tf(e,"ai-subject-display-home-explore--layout-".concat($.value),!0),tf(e,"ai-subject-display-home-explore--edit-mode",q.value),tf(e,"ai-subject-display-home-explore--assistant-opened",_.value),tf(e,"ai-subject-display-home-explore--has-digital-human",Z.value),e});function ev(e){v[e]=!1}function eh(){return td(function(){var e,t,n,r,o,i,l=arguments;return th(this,function(s){switch(s.label){case 0:return t=void 0!==(e=(l.length>0&&void 0!==l[0]?l[0]:{}).forceUpdate)&&e,o=d.value||{}
1,[4,(0,y.v)({agentId:o.id||(null==(n=G.value)?void 0:n.agent_id),universityId:o.university_id||(null==(r=G.value)?void 0:r.university_id),agentLevel:o.level,userInfo:f.value,chatType:ea.value,forceUpdate:t,nextTick:a.nextTick})];case 1:return O.value=(null==(i=s.sent())?void 0:i.chatInfo)||{},[2,O.value]}})}).apply(this,arguments)}return{__sfc:!0,useState:n,props:e,mode:s,subjectInfo:u,settingJson:c,agentInfo:d,userInfo:f,dialogVisible:v,isAssistantOpen:_,isAccompanyDialogOpen:b,isAssistantDialogOpen:w,assistantDetailChatInfo:O,backgroundRefreshKey:S,statisticsRefreshKey:A,assistantPanelRefreshKey:k,contentScrollBodyRef:P,handleContentScroll:j,handleCustomScrollbarPointerDown:L,overlayScrollbarHostClass:R,customScrollbarVisible:M,overlayScrollbarRootClass:N,contentScrollRef:B,overlayScrollbarThumbClass:U,customScrollbarThumbStyle:H,currentSubjectInfo:G,currentSettingJson:F,theme:V,isEditMode:q,hasDigitalHumanContent:z,shouldReserveDigitalHumanSpace:Z,goToMobileAccompanyPage:K,isMobileLayout:W,layout:$,shouldEnableMainColumnScale:Y,shouldRenderDesktopDigitalHuman:X,shouldRenderMobileDigitalHuman:Q,currentAgentId:ee,currentAgentLevel:et,currentUniversityId:en,currentChatType:ea,assistantDetailAgentId:er,assistantDetailWorkflowId:eo,assistantDetailCode:ei,GLOBAL_OVERVIEW_DARK_IMAGE_BASE:el,GLOBAL_OVERVIEW_DARK_IMAGE_PROPS:es,globalOverviewImageProps:eu,visiblePageModules:ec,hasVisiblePageModules:ed,renderedPageModules:ef,rootClasses:ep,openDialog:function(e){v[e]=!0},closeDialog:ev,openAssistant:function(){var e,t,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Number((null==a?void 0:a.chatType)||ea.value),o=(null==a?void 0:a.openMode)||D.DEFAULT;if(2===r)return(null==(e=f.value)?void 0:e.user_id)?o===D.ACCOMPANY_PAGE?void K({agentId:ee.value,agentLevel:null!=(n=null==(t=d.value)?void 0:t.level)?n:""}):void(b.value=!0):void(0,i.Z)({isOpen:!0});_.value=!0},closeAssistant:function(){_.value=!1},closeAccompanyDialog:function(){b.value=!1},toggleAssistant:function(){_.value=!_.value},loadAssistantDetailChatInfo:eh,handleAssistantSettings:function(){return td(function(){return th(this,function(e){switch(e.label){case 0:return[4,eh()];case 1:return e.sent(),w.value=!0,[2]}})})()},handleAssistantPostMessage:function(){},handleDialogSaved:function(e){ev(e)},handleStatisticsRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A.value=(null==e?void 0:e.refreshToken)||Date.now()},handleBackgroundSaved:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};S.value=(null==e?void 0:e.refreshToken)||Date.now(),ev(g.BACKGROUND)},handleAssistantDetailBack:function(){return td(function(){return th(this,function(e){switch(e.label){case 0:return w.value=!1,[4,(0,a.nextTick)()];case 1:return e.sent(),[4,eh({forceUpdate:!0})];case 2:return e.sent(),k.value=Date.now(),[2]}})})()},ExploreHomeAccompanyDialog:p,ExploreHomeAssistantPanel:C,ExploreHomeStageSection:eS,ExploreStatisticsConfigDialog:e0,ExploreHomeBackgroundDialog:e9,ExploreHomeDigitalHumanDialog:ta,TeachingTeamSettingDialog:ts,AgentCooperationDetail:tu.default,EXPLORE_HOME_DIALOG:g}}},function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"ai-subject-display-home-explore",class:n.rootClasses},[t(n.ExploreHomeStageSection,{key:n.assistantPanelRefreshKey,attrs:{theme:n.theme,layout:n.layout,"is-edit-mode":n.isEditMode,"subject-info":n.currentSubjectInfo,"setting-json":n.currentSettingJson,"background-refresh-key":n.backgroundRefreshKey,"statistics-refresh-key":n.statisticsRefreshKey,"should-reserve-digital-human-space":n.shouldReserveDigitalHumanSpace,"has-digital-human-content":n.hasDigitalHumanContent,"should-render-mobile-digital-human":n.shouldRenderMobileDigitalHuman,"should-render-desktop-digital-human":n.shouldRenderDesktopDigitalHuman,"is-assistant-open":n.isAssistantOpen,"is-mobile-layout":n.isMobileLayout,"show-scroll-tip":n.hasVisiblePageModules,"enable-main-column-scale":n.props.enableMainColumnScale,"should-enable-main-column-scale":n.shouldEnableMainColumnScale},on:{"open-background-dialog":function(e){return n.openDialog(n.EXPLORE_HOME_DIALOG.BACKGROUND)},"open-data-dialog":function(e){return n.openDialog(n.EXPLORE_HOME_DIALOG.DATA)},"open-digital-human-dialog":function(e){return n.openDialog(n.EXPLORE_HOME_DIALOG.DIGITAL_HUMAN)},"open-ai-assistant":n.openAssistant,"close-ai-assistant":n.closeAssistant,"toggle-ai-assistant":n.toggleAssistant,"set-ai-assistant":n.handleAssistantSettings}}),e._v(" "),n.hasVisiblePageModules?t("div",{staticClass:"ai-subject-display-home-explore__content-layer",class:n.overlayScrollbarRootClass},[t("div",{ref:"contentScrollRef",staticClass:"ai-subject-display-home-explore__content-scroll",class:[n.overlayScrollbarHostClass,"theme-".concat(n.theme)],on:{scroll:n.handleContentScroll}},[t("div",{ref:"contentScrollBodyRef",staticClass:"ai-subject-display-home-explore__content-scroll-body"},e._l(n.renderedPageModules,function(a){return t(a.component,e._b({key:a.key,tag:"component",on:{"open-teaching-team-dialog":function(e){return n.openDialog(n.EXPLORE_HOME_DIALOG.TEACHING_TEAM)}}},"component",a.props,!1))}),1)]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:n.customScrollbarVisible,expression:"customScrollbarVisible"}],staticClass:"ai-subject-display-home-explore__content-scrollbar-thumb",class:[n.overlayScrollbarThumbClass,"theme-".concat(n.theme)],style:n.customScrollbarThumbStyle,on:{pointerdown:n.handleCustomScrollbarPointerDown}}
1)]):e._e(),e._v(" "),t("teleport",{attrs:{to:"body"}},[t("div",{staticClass:"ai-subject-display-home-explore__teleport-placeholder"},[n.isAssistantOpen?t("div",{staticClass:"ai-subject-display-home-explore__assistant-panel",class:{"is-mobile-fullscreen":n.isMobileLayout}},[t(n.ExploreHomeAssistantPanel,{key:n.assistantPanelRefreshKey,attrs:{theme:n.theme,layout:n.layout,"is-edit-mode":n.isEditMode,"subject-info":n.currentSubjectInfo,"setting-json":n.currentSettingJson,visible:n.isAssistantOpen},on:{"close-ai-assistant":n.closeAssistant,"set-ai-assistant":n.handleAssistantSettings,"post-message":n.handleAssistantPostMessage}})],1):e._e(),e._v(" "),n.dialogVisible[n.EXPLORE_HOME_DIALOG.DATA]?t(n.ExploreStatisticsConfigDialog,{attrs:{visible:n.dialogVisible[n.EXPLORE_HOME_DIALOG.DATA],theme:n.theme,"subject-info":n.currentSubjectInfo,"setting-json":n.currentSettingJson},on:{close:function(e){return n.closeDialog(n.EXPLORE_HOME_DIALOG.DATA)},refresh:n.handleStatisticsRefresh,saved:function(e){return n.handleDialogSaved(n.EXPLORE_HOME_DIALOG.DATA)}}}):e._e(),e._v(" "),n.dialogVisible[n.EXPLORE_HOME_DIALOG.BACKGROUND]?t(n.ExploreHomeBackgroundDialog,{attrs:{visible:n.dialogVisible[n.EXPLORE_HOME_DIALOG.BACKGROUND],theme:n.theme,"subject-info":n.currentSubjectInfo,"setting-json":n.currentSettingJson},on:{close:function(e){return n.closeDialog(n.EXPLORE_HOME_DIALOG.BACKGROUND)},saved:n.handleBackgroundSaved}}):e._e(),e._v(" "),n.dialogVisible[n.EXPLORE_HOME_DIALOG.DIGITAL_HUMAN]?t(n.ExploreHomeDigitalHumanDialog,{attrs:{visible:n.dialogVisible[n.EXPLORE_HOME_DIALOG.DIGITAL_HUMAN],theme:n.theme,"subject-info":n.currentSubjectInfo,"setting-json":n.currentSettingJson},on:{close:function(e){return n.closeDialog(n.EXPLORE_HOME_DIALOG.DIGITAL_HUMAN)},saved:function(e){return n.handleDialogSaved(n.EXPLORE_HOME_DIALOG.DIGITAL_HUMAN)}}}):e._e(),e._v(" "),n.dialogVisible[n.EXPLORE_HOME_DIALOG.TEACHING_TEAM]?t(n.TeachingTeamSettingDialog,{attrs:{visible:n.dialogVisible[n.EXPLORE_HOME_DIALOG.TEACHING_TEAM],theme:n.theme,"subject-info":n.currentSubjectInfo,"setting-json":n.currentSettingJson},on:{close:function(e){return n.closeDialog(n.EXPLORE_HOME_DIALOG.TEACHING_TEAM)},saved:function(e){return n.handleDialogSaved(n.EXPLORE_HOME_DIALOG.TEACHING_TEAM)}}}):e._e(),e._v(" "),n.isAssistantDialogOpen?t("div",{staticClass:"ai-subject-display-home-explore__assistant-detail-dialog"},[t(n.AgentCooperationDetail,{attrs:{"agent-id":n.assistantDetailAgentId,"workflow-id":n.assistantDetailWorkflowId,code:n.assistantDetailCode,"go-back-emit":!0,"show-share":!1,"show-delete":!1},on:{"go-back":n.handleAssistantDetailBack}})],1):e._e(),e._v(" "),t(n.ExploreHomeAccompanyDialog,{attrs:{visible:n.isAccompanyDialogOpen},on:{"update:visible":function(e){n.isAccompanyDialogOpen=e},closed:n.closeAccompanyDialog}})],1)])],1)},[],!1,null,"b8785368",null).exports},98450:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}}),n(35350);var a=(0,n(81049).Z)({__name:"tips-box",props:{tipsList:{type:Array,default:function(){return[{title:"title",content:"content"}]}},iconColor:{type:String,default:"#b6bac5"},iconClass:{type:String,default:""},visibleArrow:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},isBlack:{type:Boolean,default:!1},popoverWidth:{type:Number,default:200}},setup:function(e){return{__sfc:!0,props:e}}},function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"tips-box"},[t("el-popover",{attrs:{"visible-arrow":e.visibleArrow,"popper-class":e.isBlack?"black-icon-wenorshuoming-popover":"icon-wenorshuoming-popover ",placement:e.placement,width:e.popoverWidth,trigger:"hover"}},[e._l(e.tipsList,function(n,a){return t("div",{key:a,staticClass:"flex tips-item"},[n.title?t("p",{staticClass:"title"},[e._v("\n "+e._s(n.title)+"\n ")]):e._e(),e._v(" "),t("p",{staticClass:"content",domProps:{innerHTML:e._s(n.content)}})])}),e._v(" "),t("p",{staticClass:"icon-box box-center",class:e.iconClass,attrs:{slot:"reference"},slot:"reference"},[t("i",{staticClass:"iconfont icon-wenorshuoming",style:{"---color":e.iconColor}})])],2)],1)},[],!1,null,"03391728",null).exports},33326:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(18108),r=n(31242),o=n(64101);function i(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}var l=(0,n(81049).Z)({__name:"version-switch-select",emits:["change"],setup:function(e,t){var n=t.emit,l=(0,r.yj)(),s=(0,o.eJ)(["selectedCourseInfo"]).selectedCourseInfo,u=(0,a.ref)(""),c=(0,a.ref)([]);function d(){var e;return(null==(e=s.value)?void 0:e.id)||l.params.course_id}function f(){var e;return(e=function(){var e,t,n;return function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
1,trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(a){switch(a.label){case 0:return t=API.professional_decision_center.get_tp_version_list,n={agent_id:d()},[4,request.get(t,n)];case 1:return c.value=a.sent().data||[],p((null==(e=c.value[0])?void 0:e.id)||""),[2]}})},function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function l(e){i(o,a,r,l,s,"next",e)}function s(e){i(o,a,r,l,s,"throw",e)}l(void 0)})})()}var p=function(e){u.value=e,n("change",e)};return(0,a.onMounted)(function(){f()}),{__sfc:!0,route:l,selectedCourseInfo:s,emits:n,currentValue:u,versionOptions:c,getAgentId:d,getVersionList:f,handleChange:p}}},function(){var e=this._self._c,t=this._self._setupProxy;return t.versionOptions.length?e("div",{staticClass:"version-switch-select"},[e("el-select",{attrs:{"popper-class":"specialty-version-switch-select-dropdown",clearable:!1,"popper-append-to-body":!0},on:{change:t.handleChange},model:{value:t.currentValue,callback:function(e){t.currentValue=e},expression:"currentValue"}},this._l(t.versionOptions,function(t){return e("el-option",{key:t.id,attrs:{label:t.year_from+"ç",value:t.id}})}),1)],1):this._e()},[],!1,null,"d651e5e4",null).exports},49143:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}}),n(80764),n(42463),n(52042),n(42682),n(63649);var a=n(18108),r=n(64101),o=n(31242),i=n(98450),l=n(33326);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function u(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(e){u(o,a,r,i,l,"next",e)}function l(e){u(o,a,r,i,l,"throw",e)}i(void 0)})}}function d(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var f=(0,n(81049).Z)({__name:"global-overview",props:{allowNavigation:{type:Boolean,default:!0},showVersionSwitch:{type:Boolean,default:!0},decorateLeftImage:{type:String,default:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/specialty-decision-major-decorate-left.png"},descImage:{type:String,default:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/specialty-decision-major-desc-img.png"},decorateRightImage:{type:String,default:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/specialty-decision-major-decorate-right.png"},targetBadgeImage:{type:String,default:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/specialty-decision-major-decorate-logo-1.png"},targetCircleImage:{type:String,default:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/specialty-decision-major-circle1-1.png"},requirementCircleImage:{type:String,default:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/specialty-decision-major-circle2.png"},courseCubeImage:{type:String,default:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/specialty-decision-major-icon-cube.png"},courseCircleImage:{type:String,default:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/specialty-decision-major-circle3.png"},resourceDecorateImage:{type:String,default:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/specialty-decision-major-decorate-bottom.png"}},setup:function(e){var t=(0,r.eJ)(["selectedCourseInfo"]).selectedCourseInfo,n=(0,o.tv)(),u=(0,a.ref)(""),f=(0,a.ref)({}),p=(0,a.ref)(null),v=(0,a.ref)([]),h=(0,a.ref)(!1),m=(0,a.ref)(null),g=(0,a.computed)(function(){var e,t;return[{label:"æ¯ä¸è¦æ±",value:(null==(e=f.value)?void 0:e.total_major_requirement)||0},{label:"æ¯ä¸è¦æ±ææ ç¹",value:(null==(t=f.value)?void 0:t.total_major_indicator)||0}]}),_=(0,a.computed)(function(){var e;return(null==(e=f.value)?void 0:e.list_course)||[]}),y=(0,a.computed)(function(){var e,t,n,a;return[{label:"ç¥è¯åºèµæº",value:(null==(e=f.value)?void 0:e.total_resource)||0},{label:"ç¥è¯ç¹",value:(null==(t=f.value)?void 0:t.total_knowledge)||0}
1,{label:"å
³èå¦ä¹ å
容",value:(null==(n=f.value)?void 0:n.total_related_leaf)||0},{label:"AIå·¥å
·ä¸æºè½ä½",value:(null==(a=f.value)?void 0:a.total_prompt_and_workflow)||0}]}),b=(0,a.computed)(function(){var e=v.value.map(function(e){var t,n;return t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}({},e),n=n={isMore:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t});return h.value&&e.push({isMore:!0,display_name:"...",is_ai_course:!1}),e}),w=(0,a.computed)(function(){var e;return null==(e=t.value)?void 0:e.id});function C(){return c(function(){var e,t;return d(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=API.professional_decision_center.major_center.get_overview,t={agent_id:w.value,tp_version_id:m.value},[4,request.get(e,t)];case 1:return f.value=n.sent().data||{},[3,3];case 2:return console.log(n.sent()),[3,3];case 3:return[2]}})})()}function O(){var e,t=p.value;if(!t||!t.clientWidth||!t.clientHeight)return!1;var n=t.clientWidth,a=t.clientHeight;return((function(e){if(Array.isArray(e))return s(e)})(e=t.querySelectorAll(".course-tag-item"))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).some(function(e){var t=e.offsetLeft+e.offsetWidth,r=e.offsetTop+e.offsetHeight;return t>n||r>a})}function S(){v.value=_.value.slice(),h.value=!1}function x(){return c(function(){var e,t,n;return d(this,function(r){switch(r.label){case 0:if(!_.value.length)return v.value=[],h.value=!1,[2];return[4,(0,a.nextTick)()];case 1:if(r.sent(),!(e=p.value)||!e.clientWidth||!e.clientHeight)return S(),[2];return S(),[4,(0,a.nextTick)()];case 2:if(r.sent(),!O())return S(),[2];t=0,n=_.value.length-1,r.label=3;case 3:if(!(n>=0))return[3,6];return v.value=_.value.slice(0,n),h.value=!0,[4,(0,a.nextTick)()];case 4:if(r.sent(),!O())return t=n,[3,6];r.label=5;case 5:return n--,[3,3];case 6:if(!(t<=0))return[3,8];return v.value=_.value.slice(0,1),h.value=_.value.length>1,[4,(0,a.nextTick)()];case 7:return r.sent(),O()&&(h.value=!1),[2];case 8:return v.value=_.value.slice(0,t),h.value=!0,[2]}})})()}var A=localStorage.getItem("runtime_xtbz");function k(){var e=API.operation_details.getDataTime;request.get(e).then(function(e){e.success&&(u.value=e.data.update_datetime)}).catch(function(e){console.log(e)})}return(0,a.watch)(_,function(){(0,a.nextTick)(function(){x()})},{deep:!0}),(0,a.onMounted)(function(){(0,a.nextTick)(function(){x(),k()})}),{__sfc:!0,selectedCourseInfo:t,props:e,router:n,deadlineTime:u,overviewData:f,resourceIconTips:[{icon:"icon-jiaowuguanli",tips:"该ä¸ä¸AI课åå
³èçåAI课çç¥è¯åºèµæºæ»æ°ç¸å ã"},{icon:"icon-kechengguanli",tips:"å
³èçåAI课ç¥è¯å¾è°±çç¥è¯ç¹æ»æ°ç¸å ã"},{icon:"icon-kechengjianshe-mianzhuang",tips:"å
³èçåAI课ç¥è¯å¾è°±å
³èçå¦ä¹ å
容æ°ç¸å ã"},{icon:"icon-Ai",tips:"该ä¸ä¸AI课åå
³èçåAI课æä»¤ä¸ªæ°åæºè½ä½ç个æ°ç¸å ã"}],courseTagListRef:p,displayedCourseList:v,showCourseMore:h,currentTpVersionId:m,requirementList:g,courseList:_,resourceList:y,renderCourseTagList:b,getAgentId:w,handleVersionChange:function(e){m.value=e,C()},getOverviewData:C,isCurrentListOverflow:O,resetCourseTagDisplay:S,updateCourseTagDisplay:x,runtime_xtbz:A,handleAddCourseClick:function(){if(e.allowNavigation){var t=m.value.toString();if("localhost:8080"==location.host){var a=n.resolve({name:"course-management",params:{id:t}}).href;window.open(a,"_blank")}else if("yth"===A)window.open("/pro/pro-ai-workspace/".concat(w.value,"/ai-major-construction/").concat(t,"/course-management"));else{var r="/v2/web/ai-workspace/".concat(w.value,"/ai-major-construction/").concat(t,"/course-management");window.open(r)}}},getDeadlineTime:k,tipsBox:i.Z,versionSwitchSelect:l.Z}}},function(){var e,t=this,n=t._self._c,a=t._self._setupProxy;return n("div",{staticClass:"global-overview-page"},[n(a.versionSwitchSelect,{directives:[{name:"show",rawName:"v-show",value:t.showVersionSwitch,expression:"showVersionSwitch"}],staticClass:"version-switch-block",on:{change:a.handleVersionChange}}),t._v(" "),n("div",{staticClass:"global-overview-stage"},[n("div",{staticClass:"orbit orbit-left"},[n("img",{staticClass:"orbit-img",attrs:{src:t.decorateLeftImage,alt:""}}),t._v(" "),n("img",{staticClass:"desc-img",attrs:{src:t.descImage,alt:""}})]),t._v(" "),n("img",{staticClass:"orbit orbit-right",attrs:{src:t.decorateRightImage,alt:""}}),t._v(" "),n("div",{staticClass:"stage-content"},[n("section",{staticClass:"target-section"},[n("div",{staticClass:"target-title f18"},[t._v(t._s(a.overviewData.total_training_goal||0)+" 个å¹å
»ç®æ ")]),t._v(" "),n("div",{staticClass:"target-badge"},[n("i",{staticClass:"iconfont icon-zhishidian1 target-badge-icon"}),t._v(" "),t.targetBadgeImage?n("img",{attrs:{src:t.targetBadgeImage,alt:""}}):t._e()]),t._v(" "),n("img",{staticClass:"circle-img circle-img1",attrs:{src:t.targetCircleImage,alt:""}})]),t._v(" "),n("section",{staticClass:"requirement-section"},[n("div",{staticClass:"overview-row box-center"},t._l(a.requirementList,function(e){return n("div",{key:e.label,staticClass:"overview-card box-between"},[n("span",{staticClass:"overview-card-label f13"},[t._v(t._s(e.label))]),t._v(" "),n("span",{staticClass:"overview-card-value f14 numfamily fw800"},[t._v(t._s(e.value))])])}),0),t._v(" "),n("img",{staticClass:"circle-img",attrs:{src:t.requirementCircleImage,alt:""}})]),t._v(" "),n("section",{staticClass:"course-section flex flex-col items-center justify-center"},[n("div",{staticClass:"course-summary box-center"},[n("img",{staticClass:"icon-cube",attrs:{src:t.courseCubeImage,alt:""}}),t._v(" "),n("span",{staticClass:"summary-title f16 bold"},[t._v(t._s((null==(e=a.overviewData)?void 0:e.total_course)||0)+"é¨è¯¾ç¨")]),t._v(" "),n("div",{staticClass:"summary-chip f12 box-center bold"},[n("div",{staticClass:"box-center"},[n("span",[t._v("AI课ï¼"+t._s(a.overviewData.total_course_with_ai||0)+"é¨")]),t._v(" "),n("span",[t._v("使ç¨ï¼"+t._s(a.overviewData.total_ai_course_using_time||0)+"次")])]),t._v(" "),t.allowNavigation?n(a.tipsBox,{staticClass:"tips",attrs:{"popover-width":248,"tips-list":[{title:"AIè¯¾ä½¿ç¨æ»æ¬¡æ°",content:"该ä¸ä¸AI课åå
³èçåAI课使ç¨24å°æ¶æºè½å¦ä¼´ãæºè½ä½åä½ãè®²ä¼´ãæºè½å¤è¯¾å©æè¿è¡AIæé®çæ»æ¬¡æ°ã"},{content:"æ°æ®ç»è®¡æªæ¢è³ï¼"+a.deadlineTime+" 00:00:00"}]}}):t._e()],1)])]),t._v(" "),n("section",{staticClass:"course-tag-list-section box-center"},[n("div",{ref:"courseTagListRef",staticClass:"course-tag-list box-center"},[a.courseList.length?t._l(a.renderCourseTagList,function(e){return n("span",{key:e.key,staticClass:"course-tag course-tag-item f13 fw500 box-center",class:{"course-tag-more":e.isMore}},[e.is_ai_course&&!e.isMore?n("i",{staticClass:"iconfont icon-AIxueban"}):t._e(),t._v("\n "+t._s(e.display_name||"")+"\n ")])}):n("div",{directives:[{name:"show",rawName:"v-show",value:t.allowNavigation,expression:"allowNavigation"}],staticClass:"add-course-btn box-center",on:{click:a.handleAddCourseClick}},[n("span",{staticClass:"f14 bold"},[t._v("廿·»å 课ç¨")]),t._v(" "),n("i",{staticClass:"f12 iconfont icon-jiantoudan-xiangyou"})])],2),t._v(" "),a.courseList.length&&t.allowNavigation?n("span",{staticClass:"course-arrow box-center",on:{click:a.handleAddCourseClick}},[n("i",{staticClass:"iconfont icon-jiantoudan-xiangyou"})]):t._e(),t._v(" "),n("img",{staticClass:"circle-img",attrs:{src:t.courseCircleImage,alt:""}})]),t._v(" "),n("section",{staticClass:"resource-section"},[n("img",{attrs:{src:t.resourceDecorateImage,alt:""}}),t._v(" "),n("div",{staticClass:"resource-row box-center"},t._l(a.resourceList,function(e,r){var o,i;return n("div",{key:e.label,staticClass:"resource-card"},[n("p",{staticClass:"box-center"},[n("i",{staticClass:"iconfont overview_icon",class:null==(o=a.resourceIconTips[r])?void 0:o.icon}),t._v(" "),n("span",{staticClass:"resource-label f13"},[t._v(t._s(e.label))]),t._v(" "),t.allowNavigation?n(a.tipsBox,{staticClass:"tips",attrs:{"popover-width":248,"tips-list":[{title:e.label,content:(null==(i=a.resourceIconTips[r])?void 0:i.tips)||""},{content:"æ°æ®ç»è®¡æªæ¢è³ï¼"+a.deadlineTime+" 00:00:00"}]}}):t._e()],1),t._v(" "),n("p",{staticClass:"resource-value f14 numfamily fw-700"},[t._v(t._s(e.value))])])}
1),0)])])])],1)},[],!1,null,"1f27f473",null).exports},28305:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(15089),r=n(18108),o=n(85857),i=n(61091),l=(0,n(81049).Z)({__name:"homework-review-intro",props:{data:{type:Object,default:function(){return{}}},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1},isOpenWorkH5:{type:Boolean,default:!1},showStartButton:{type:Boolean,default:!0},showAvatar:{type:Boolean,default:!0}},emits:["start"],setup:function(e,t){var n=t.emit,l="https://fe-static-yuketang.oss-cn-beijing.aliyuncs.com/fe/static/assets/rainweb/review_tutor_agent_avatar.png",s=(0,o.BU)(),u=(0,r.computed)(function(){return e.data.avatar||l}),c=(0,r.computed)(function(){return e.data.confirm_btn||"确认ï¼å¼å§å¤ç"});function d(e){var t=(0,i.M)(e||"");return t?s.render(t):""}var f=(0,r.computed)(function(){return d(e.data.notice)});return{__sfc:!0,DEFAULT_AVATAR:l,props:e,emit:n,markdown:s,avatar:u,startLabel:c,renderMarkdown:d,noticeHtml:f,handleStart:function(){e.loading||e.disabled||n("start")},RainBtn:a.RainBtn}}},function(){var e=this._self._c,t=this._self._setupProxy;return e("section",{staticClass:"homework-review-intro",class:{"homework-review-intro--mobile":this.isMobile,"homework-review-intro--mobile-open-work-h5":this.isMobile&&this.isOpenWorkH5,"homework-review-intro--preview":!this.showStartButton}},[this.showAvatar&&!this.isMobile?e("div",{staticClass:"homework-review-intro__avatar"},[e("img",{attrs:{src:t.avatar,alt:""}})]):this._e(),this._v(" "),e("div",{staticClass:"homework-review-intro__panel"},[e("div",{staticClass:"homework-review-intro__content"},[t.noticeHtml?e("div",{staticClass:"homework-review-intro__rules ai-text-message mdit",domProps:{innerHTML:this._s(t.noticeHtml)}}):this._e()]),this._v(" "),this.showStartButton?e("div",{staticClass:"homework-review-intro__footer"},[e(t.RainBtn,{staticClass:"homework-review-intro__start",attrs:{type:"1",size:"small",text:t.startLabel,disabled:this.loading||this.disabled,loading:this.loading},on:{click:t.handleStart}})],1):this._e()])])},[],!1,null,"560e2872",null).exports},17504:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}}),n(63064),n(86067),n(42463);var a=n(18108),r=n(85419),o=n(77177);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}var l=(0,n(81049).Z)({__name:"DigitalHumanVideoThemeViewport",props:{defaultStyle:{type:Object,default:function(){return{type:"home"}}},videoStyleData:{type:Object,default:function(){return{}}},source:{type:Array,default:function(){return[]}},posterOnly:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},removeColorOptions:{type:Object,default:function(){return{}}},onElement:{type:Boolean,default:!0},notUseCanvas:{type:Boolean,default:!1},usePosterImg:{type:Boolean,default:!0},currentTime:{type:null,default:void 0},isMp4:{type:Boolean,default:!1},videoElementClassName:{type:[String,Array,Object],default:function(){return{}}},hideCanvas:{type:Boolean,default:!1}},emits:["ready","loadedmetadata-ready","theme-style-change"],setup:function(e,t){var n=t.expose,l=t.emit,s=(0,a.ref)(null),u=(0,a.computed)(function(){return e.defaultStyle}),c=(0,o.Z)(u),d=c.videoStyleRootElement,f=c.videoStyleData,p=c.currentVideoStyleData,v=c.videoThemeStyle,h=c.removeColorOptions,m=JSON.parse(JSON.stringify(f.value));(0,a.watch)(function(){return e.videoStyleData},function(e){f.value=JSON.parse(JSON.stringify(i({},m,e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&!Array.isArray(e)?e:{})))},{deep:!0,immediate:!0});var g=(0,a.computed)(function(){return i({},h.value,e.removeColorOptions)}),_=(0,a.computed)(function(){var e=v.value.videoBox||{},t=e.overflowBox||{},n=e.block||{},a=v.value.video||{};return{"--digital-human-viewport-overflow":e.overflow||"visible","--digital-human-viewport-width":t.width||"100%","--digital-human-viewport-height":t.height||"auto","--digital-human-viewport-top":t.top||"0","--digital-human-viewport-left":t.left||"0","--digital-human-video-box-z-index":e.zIndex||"11","--digital-human-video-box-width":e.width||"100%","--digital-human-video-box-height":e.height||"auto","--digital-human-video-box-transform":e.transform||"scale(1)","--digital-human-block-display":n.visible||"none","--digital-human-block-top":n.top||"0","--digital-human-block-left":n.left||"0","--digital-human-block-width":n.width||"100%","--digital-human-block-height":n.height||"0","--digital-human-video-top":a.top||"0","--digital-human-video-left":a.left||"0","--digital-human-video-width":a.width||"100%","--digital-human-video-height":a.height||"auto"}});
1(0,a.watch)([v,p,h],function(){l("theme-style-change",{videoThemeStyle:v.value,currentVideoStyleData:p.value,removeColorOptions:h.value})},{deep:!0,immediate:!0});var y=(0,a.computed)(function(){var e;return(null==(e=s.value)?void 0:e.videoElement)||null}),b=(0,a.computed)(function(){var e;return(null==(e=s.value)?void 0:e.videoBoxElement)||null}),w=(0,a.computed)(function(){var e;return(null==(e=s.value)?void 0:e.canvasElement)||null}),C=(0,a.computed)(function(){var e;return(null==(e=s.value)?void 0:e.useCanvasPlay)||!1});function O(e){var t,n;return(null==(n=s.value)||null==(t=n.initCanvas)?void 0:t.call(n,e))||Promise.resolve(!1)}function S(e){var t,n;return(null==(n=s.value)||null==(t=n.restartCanvas)?void 0:t.call(n,e))||Promise.resolve(!1)}return n({videoElement:y,videoBoxElement:b,canvasElement:w,useCanvasPlay:C,initCanvas:O,restartCanvas:S,currentVideoStyleData:p,videoThemeStyle:v,removeColorOptions:h}),{__sfc:!0,props:e,emits:l,digitalHumanVideoRef:s,defaultStyleRef:u,videoStyleRootElement:d,innerVideoStyleData:f,currentVideoStyleData:p,videoThemeStyle:v,themeRemoveColorOptions:h,initialVideoStyleData:m,mergedRemoveColorOptions:g,themeVariables:_,handleReady:function(e){l("ready",e)},handleLoadedmetadataReady:function(e){l("loadedmetadata-ready",e)},videoElement:y,videoBoxElement:b,canvasElement:w,useCanvasPlay:C,initCanvas:O,restartCanvas:S,DigitalHumanVideo:r.Z}}},function(){var e=this._self._c,t=this._self._setupProxy;return e("div",{ref:"videoStyleRootElement",staticClass:"digital-human-video-theme-root"},[e("div",{staticClass:"digital-human-video-theme-viewport",style:t.themeVariables},[e(t.DigitalHumanVideo,{ref:"digitalHumanVideoRef",attrs:{options:this.options,source:this.source,"poster-only":this.posterOnly,"remove-color-options":t.mergedRemoveColorOptions,"on-element":this.onElement,"not-use-canvas":this.notUseCanvas,"use-poster-img":this.usePosterImg,"current-time":this.currentTime,"is-mp4":this.isMp4,"video-element-class-name":this.videoElementClassName,"hide-canvas":this.hideCanvas},on:{ready:t.handleReady,"loadedmetadata-ready":t.handleLoadedmetadataReady}})],1)])},[],!1,null,"06b614c3",null).exports},82856:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var a={LIGHT:"light",DARK:"dark"}},47827:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a=n(71778);function r(e){var t=(0,a.S4)()?"yth_login_dialog":"ykt_login_dialog";window.dispatchEvent(new CustomEvent(t,{detail:e}))}},13747:function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{$P:function(){return f},KJ:function(){return o},js:function(){return p}}),n(74624),n(35350),n(50928),n(63649),n(80287),n(44959),n(92459),n(13054),n(88761),n(60668),n(42463),n(80764),n(72775),n(64213);var r,o=Object.freeze({GLOBAL_OVERVIEW:"globalOverview",TEACHING_TEAM:"teachingTeam"}),i=Object.freeze((a(r={},o.GLOBAL_OVERVIEW,{key:o.GLOBAL_OVERVIEW,title:"ä¸ä¸å
¨å±æ¦è§",titleEn:"Major Global Overview"}),a(r,o.TEACHING_TEAM,{key:o.TEACHING_TEAM,title:"ä¸ä¸æå¸å¢é",titleEn:"Major Teaching Team"}),r)),l=Object.freeze(a({},o.TEACHING_TEAM,{key:o.TEACHING_TEAM,title:"å¦ç§æå¸å¢é",titleEn:"Teaching Team"})),s=Object.freeze([o.GLOBAL_OVERVIEW,o.TEACHING_TEAM]),u=Object.freeze([o.TEACHING_TEAM]);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;return 6===Number(e)?l:i}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:11,a="".concat(e.key||""),r=c(n)[a];if(!r)return null;var o=6===Number(n);return{key:a,title:o?r.title:"".concat(e.title||e.name||r.title).trim()||r.title,titleEn:o?r.titleEn:"".concat(e.titleEn||e.en_title||r.titleEn).trim()||r.titleEn,defaultTitle:r.title,defaultTitleEn:r.titleEn,is_show:+(0!==Number(e.is_show)),order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Number(e.order);return Number.isFinite(n)&&n>0?n:t+1}(e,t)}}function f(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:11,r=Array.isArray(null==t||null==(e=t.home)?void 0:e.pageModules)?t.home.pageModules:[],o=new Set,i=r.map(function(e,t){return d(e,t,n)}).filter(function(e){return!(!e||o.has(e.key))&&(o.add(e.key),!0)});return(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;return 6===Number(e)?u:s}
1)(n).forEach(function(e){o.has(e)||i.push(d(c(n)[e],i.length,n))}),i.sort(function(e,t){return e.order-t.order}).map(function(e,t){var n,r;return n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){a(e,t,n[t])})}return e}({},e),r=r={order:t+1},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n})}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:11;return f(e,t).filter(function(e){return 1===Number(e.is_show)})}},12352:function(e,t,n){"use strict";n.d(t,{S9:function(){return d},gM:function(){return h},lQ:function(){return f},sm:function(){return v},xT:function(){return p}}),n(63649),n(72646),n(35350),n(50928),n(44959),n(13794),n(87481),n(80764),n(42463),n(56325),n(61657),n(79136),n(13054),n(88761),n(60668),n(72775);var a=n(73121),r=n(82504);function o(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var i=e.apply(t,n);function l(e){o(i,a,r,l,s,"next",e)}function s(e){o(i,a,r,l,s,"throw",e)}l(void 0)})}}function l(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var s="temp-statistics-item";function u(e){if(null==e||""===e)return!1;var t="".concat(e);return!t.startsWith("default-")&&!t.startsWith(s)}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"".concat(e).trim().replace(/^0+(?=\d)/,"")||"0"}function d(e){var t,n,a="".concat(null!=e?e:"").trim();return a?!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/^\d+$/.test("".concat(e).trim())}(a)?"èªå®ä¹æ°æ®é¡¹å
容请è¾å
¥æ°å":(t=c(a),n=c("1000000000000"),t.length!==n.length?t.length>n.length:t>n)?"èªå®ä¹æ°æ®é¡¹å
容ä¸è½è¶
è¿ä¸äº¿":"":"请è¾å
¥èªå®ä¹æ°æ®é¡¹å
容"}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return{localId:"".concat(s,"-").concat(Date.now(),"-").concat(e),id:void 0,item_name:"",item_code:"",item_value:"",is_system:0,is_show:1,order:e}}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!Array.isArray(e)||!e.length)return"请è³å°ä¿ç 1 ä¸ªæ°æ®é¡¹";if(!e.some(function(e){return 1===Number(e.is_show)}))return"请è³å°æ¾ç¤º 1 ä¸ªæ°æ®é¡¹";var t=!0,n=!1,a=void 0;try{for(var r,o=e[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var i=r.value;if(!"".concat(i.item_name||"").trim())return"请è¾å
¥æ°æ®é¡¹åç§°";if(1!==Number(i.is_system)){var l=d(i.item_value);if(l)return l}}}catch(e){n=!0,a=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw a}}return""}function v(e){return i(function(e){var t,n,a,o,i,c;return l(this,function(l){switch(l.label){case 0:if(t=e.agentId,a=void 0===(n=e.agentLevel)?6:n,i=void 0===(o=e.switchSource)?1:o,!t)return[3,2];return[4,(0,r.x3)(t,a)];case 1:return c=l.sent(),[3,3];case 2:c=[],l.label=3;case 3:var d,f,p,v,h,m;return[2,(f=(d={configItems:c,agentLevel:a,switchSource:i}).configItems,v=void 0===(p=d.agentLevel)?6:p,h=d.switchSource,((m=(0,r.A9)(void 0===f?[]:f,v)).length?m:(0,r.tz)(v,void 0===h?1:h)).map(function(e,t){var n,a=+(1===Number(e.is_system));return{localId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=u(e.id)?e.id:e.item_code||e.item_name||t;return"".concat(s,"-").concat(n,"-").concat(t)}(e,t),id:u(e.id)?e.id:void 0,item_name:"".concat(e.item_name||"").trim(),item_code:a?"".concat(e.item_code||""):"",item_value:a?"":"".concat(null!=(n=e.item_value)?n:""),is_system:a,is_show:+(0!==Number(e.is_show)),order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Number(e.order);return Number.isFinite(n)&&n>0?n:t+1}(e,t)}}))]}})}).apply(this,arguments)}function h(e){return i(function(e){var t,n,r=arguments;return l(this,function(o){switch(o.label){case 0:if(t=r.length>
11&&void 0!==r[1]?r[1]:[],!e)throw Error("agent id is required");return n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{items:e.map(function(e){var t,n=+(1===Number(e.is_system)),a={item_value:n?"":"".concat(null!=(t=e.item_value)?t:"").trim(),item_name:"".concat(e.item_name||"").trim(),is_system:n,item_code:n?"".concat(e.item_code||""):"",is_show:+(0!==Number(e.is_show))};return u(e.id)&&(a.id=e.id),a})}}(t),[4,a.ZP.post("/c27/online_courseware/agent/".concat(e,"/update_portal_statistics_config/"),n)];case 1:return o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.map(function(e,t){var n,a=+(1===Number(e.is_system));return{id:u(e.id)?e.id:e.localId,item_name:"".concat(e.item_name||"").trim(),item_code:a?"".concat(e.item_code||""):"",item_value:a?"":"".concat(null!=(n=e.item_value)?n:"").trim(),is_system:a,is_show:+(0!==Number(e.is_show)),order:t+1}});return{refreshToken:Date.now(),configItems:t,visibleCount:t.filter(function(e){return 1===Number(e.is_show)}).length}}(t)]}})}).apply(this,arguments)}},82504:function(e,t,n){"use strict";n.d(t,{A9:function(){return C},XF:function(){return p},tC:function(){return k},tz:function(){return x},x3:function(){return I}}),n(74624),n(35350),n(32927),n(35130),n(63649),n(72775),n(42463),n(80764),n(80287),n(44959),n(87481),n(76556),n(35621),n(13794),n(52042),n(47761),n(21e3),n(42682),n(52954),n(64213);var a=n(80637),r=n(73121);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function i(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function l(e){i(o,a,r,l,s,"next",e)}function s(e){i(o,a,r,l,s,"throw",e)}l(void 0)})}}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}function u(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,a,r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw a}}return o}}(e,t)||d(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}}function f(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}
1var p=Object.freeze({sub_agent_count:"ä¸ä¸è¯¾ç¨",knowledge_node_count:"ç¥è¯ç¹",prompt_count:"AIå·¥å
·",workflow_count:"æºè½ä½",resource_count:"ä¸ä¸èµæº",target_count:"å¹å
»ç®æ ",gr_count:"æ¯ä¸è¦æ±",course_target_count:"课ç¨ç®æ ",case_count:"æ¡ä¾"}),v=Object.freeze(["sub_agent_count","knowledge_node_count","prompt_count","workflow_count","resource_count"]),h=Object.freeze({name:"æ°æ®é¡¹",icon:"icon-jiaoxuefenxiorshujukanban",darkIconColor:""}),m=Object.freeze(["icon-jiaoxuefenxiorshujukanban","icon-tishi-mianzhuang","icon-huoyueorremen-mianzhuang"]),g=Object.freeze(["#668AFF","#64B2FF","#44C7FF","#7CF5FF"]),_=Object.freeze([{min:"1000000000000",power:12,label:"ä¸äº¿"},{min:"100000000000",power:11,label:"å亿"},{min:"100000000",power:8,label:"亿"},{min:"10000000",power:7,label:"åä¸"},{min:"1000000",power:6,label:"ç¾ä¸"},{min:"10000",power:4,label:"ä¸"}]),y=Object.freeze({total_uv_count:{name:"颿 ¡æ°",icon:"icon-xuexiao"},sub_agent_count:{name:"ä¸ä¸è¯¾ç¨",icon:"icon-kechengjianshe-mianzhuang",darkIconColor:"#668AFF"},total_sub_agent_count:{name:"ä¸ä¸è¯¾ç¨",icon:"icon-kechengjianshe-mianzhuang",darkIconColor:"#668AFF"},knowledge_node_count:{name:"ç¥è¯ç¹",icon:"icon-xuesheng2",darkIconColor:"#44C7FF"},prompt_count:{name:"AIå·¥å
·",icon:"icon-paiming",darkIconColor:"#7CF5FF"},workflow_count:{name:"æºè½ä½",icon:"icon-keshang-zhinengti",darkIconColor:"#668AFF"},resource_count:{name:"ä¸ä¸èµæº",icon:"icon-jiaowuguanli",darkIconColor:"#64B2FF"},target_count:{name:"å¹å
»ç®æ ",icon:"icon-fengzhi",darkIconColor:"#668AFF"},gr_count:{name:"æ¯ä¸è¦æ±",icon:"icon-xueshimao-mianzhuang",darkIconColor:"#64B2FF"},course_count:{name:"ä¸ä¸è¯¾ç¨",icon:"icon-kechengjianshe-mianzhuang",darkIconColor:"#668AFF"},course_target_count:{name:"课ç¨ç®æ ",icon:"icon-jiangpai",darkIconColor:"#44C7FF"},case_count:{name:"æ¡ä¾",icon:"icon-jiaoxueneirong-1ketang",darkIconColor:"#7CF5FF"}}),b=Object.freeze(["sub_agent_count","workflow_count","resource_count","prompt_count","knowledge_node_count","target_count","gr_count","course_target_count","case_count"]),w=Object.freeze({12:["total_uv_count","sub_agent_count","total_sub_agent_count","knowledge_node_count","prompt_count","workflow_count","resource_count"],11:{1:["sub_agent_count","workflow_count","resource_count","prompt_count","knowledge_node_count"],2:["target_count","gr_count","course_count","course_target_count","case_count","knowledge_node_count"]},6:v});function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return(Array.isArray(e)?e:[]).filter(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return 6!==Number(t)||1!==Number(e.is_system)||v.includes("".concat(e.item_code||""))}(e,t)})}function O(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=null!=(e=t.item_value)?e:"";return{id:t.id||"default-".concat(t.item_code||t.item_name||n),item_name:t.item_name||"",item_code:t.item_code||"",item_value:a,display_item_value:A(a),is_system:+(1===Number(t.is_system)),is_show:void 0===t.is_show?1:Number(t.is_show),order:Number(t.order)||n+1}}function S(e){var t,n,a=Array.isArray(e)?e:(null==e?void 0:e.items)||(null==e||null==(t=e.data)?void 0:t.items)||(null==e?void 0:e.data)||(null==e||null==(n=e.result)?void 0:n.items)||[];return(Array.isArray(a)?a:[]).map(function(e,t){return O(e,t)})}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=w[e];return(Array.isArray(n)?n:Array.isArray(null==n?void 0:n[t])?n[t]:b).map(function(e,t){var n;return O({item_name:(null==(n=y[e])?void 0:n.name)||h.name,item_code:e,is_system:1,is_show:1,order:t+1},t)})}function A(e){var t="".concat(null!=e?e:"").trim();if(!t)return"--";if(!/^\d+(\.\d+)?$/.test(t))return t;var n=_.find(function(e){var n,a,r,o,i;return n=t,a=e.min,o=(void 0===(r=c("".concat(n).split("."),1)[0])?"0":r).replace(/^0+(?=\d)/,"")||"0",i="".concat(a).replace(/^0+(?=\d)/,"")||"0",o.length!==i.length?o.length>i.length:o>=i});return n?"".concat(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=c("".concat(e).split("."),2),r=a[
10],o=a[1],i=void 0===o?"":o,l=(void 0===r?"0":r).replace(/^0+(?=\d)/,"")||"0",s="".concat(l).concat(i).replace(/^0+(?=\d)/,"")||"0",u=i.length+t,d=s.length-u,f=d>0?s.slice(0,d):"0",p=(d>0?s.slice(d):"".concat("0".repeat(Math.abs(d))).concat(s)).padEnd(n+1,"0"),v="".concat(f).concat(p.slice(0,n)).replace(/^0+(?=\d)/,"")||"0";if(Number(p[n]||"0")>=5&&(v=(BigInt(v)+1n).toString()),!n)return v;var h=v.length-n,m=h>0?v.slice(0,h):"0",g=v.slice(h>0?h:0).padStart(n,"0");return"".concat(m,".").concat(g)}(t,n.power)).concat(n.label):t}function k(e){var t=e.configItems,n=e.agentLevel,a=void 0===n?6:n,r=e.switchSource,i=C(S(void 0===t?[]:t),a).filter(function(e){return 1===Number(e.is_show)}).sort(function(e,t){return Number(e.order||0)-Number(t.order||0)}),l=i.length?i:x(a,void 0===r?1:r),c=0,f=l.map(function(e,t){var n=1===Number(e.is_system),a=n?e.item_code&&y[e.item_code]||h:u(s({},h),{icon:m[c++%m.length]});return{key:e.id||e.item_code||"".concat(e.item_name,"-").concat(t),title:e.item_name||h.name,value:e.item_value,displayValue:e.display_item_value||A(e.item_value),icon:a.icon,darkIconColor:g[t%g.length],isSystem:n,isPlaceholder:!1,rawItem:e,layoutRole:"normal"}}),p=function(e){if(Array.isArray(e))return o(e)}(f)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(f)||d(f)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return 9===p.length&&p.forEach(function(e,t){e.layoutRole=t===p.length-1?"tail":"normal"}),{cards:p,visibleCount:f.length,shouldScroll:f.length>10}}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return l(function(){var n,o;return f(this,function(i){switch(i.label){case 0:if(!e)return[2,[]];return[4,l(function(){var t,n;return f(this,function(o){switch(o.label){case 0:if(!e)return[2,{}];return t=a.Z.ai_subject_display.get_statistics_data.replace(/\{agent_id\}/,e),[4,r.ZP.get(t)];case 1:return[2,(null==(n=o.sent())?void 0:n.data)||{}]}})})().catch(function(){return{}})];case 1:return n=i.sent(),[4,r.ZP.get("/c27/online_courseware/agent/".concat(e,"/portal_statistics_config/"))];case 2:return[2,C(S(null==(o=i.sent())?void 0:o.data),t).map(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=O(e),a="".concat(n.item_code||"").trim();return a&&Object.prototype.hasOwnProperty.call(t,a)?u(s({},n),{item_value:t[a],display_item_value:A(t[a])}):n}(e,n)})]}})})()}},48824:function(e,t,n){"use strict";n.d(t,{v:function(){return w}}),n(74624),n(80287),n(63649),n(35350),n(76556),n(42463),n(57952),n(86067);var a=n(80637),r=n(60708),o=n(73121);function i(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function l(e){i(o,a,r,l,s,"next",e)}function s(e){i(o,a,r,l,s,"throw",e)}l(void 0)})}}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}function u(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function c(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;
1function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var d={placeholder:"ä½ æ³äºè§£ä»ä¹ï¼é®é®ä½ çè§åå¸å§ï½",receive_error_message:"æ±æï¼æææ¶æ æ³åçè¿ä¸ªé®é¢ï¼è®©æå
å¦ä¹ ä¸ä¸å§ï¼",waiting_message:"æ£å¨æèä¸...",receive_cancel_message:"已忶",isImage:!1,imageFixed:256,isIframe:!1,isWelcomeIcon:!1,isCreate:!1,isHistory:!1,isClean:!1,isGlobalDrawer:!1,isFeedback:!1,isInsert:!1,isMobile:!1,isTools:!1},f=null,p=null,v=null,h=0,m=1,g=Object.freeze({AGENT:1,ACCOMPANY:2}),_=Object.freeze({name:"AIå¦ä¼´",logo:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/ai-part-logo.png"});function y(e){var t=e.chatInfo,n=e.agentId,a=e.universityId,r=e.agentLevel,o=e.userInfo;return{chatParams:{entity_type:20,entity_id:0,id:n,category:11,level:r,agentId:n,university_id:a,capability_id:null==t?void 0:t.capability_id,not_logged_in:3*(null==o||!o.user_id
1)},chatOptions:u(s({},d),{title:(null==t?void 0:t.name)||"",avatar:(null==t?void 0:t.avatar)||"",description:"éæ©æè¾å
¥æå
´è¶£çé®é¢ï¼AI å¦ä¼´ä¸ºä½ ççè§£æ",placeholder:"ä½ æ³äºè§£ä»ä¹ï¼é®é®å§ï½",receive_error_message:"æ±æï¼æææ¶æ æ³åçè¿ä¸ªé®é¢ï¼è®©æå
å¦ä¹ ä¸ä¸å§ï¼",waiting_message:"æ£å¨æèä¸...",receive_cancel_message:"已忶"}),chatInfo:t}}function b(e){var t=e.capability,n=e.agentId,a=e.universityId,r=e.agentLevel,o=e.userInfo,i=(null==t?void 0:t.extra_info)||{},l=u(s({},i),{name:i.name||_.name,logo:i.logo||_.logo});return{chatParams:{entity_type:22,entity_id:0,id:n,category:1,level:r,agentId:n,university_id:a,capability_id:(null==t?void 0:t.capability_id)||(null==t?void 0:t.id),not_logged_in:3*(null==o||!o.user_id)},chatOptions:u(s({},d),{title:l.name||"",avatar:l.logo||"",description:"éæ©æè¾å
¥æå
´è¶£çé®é¢ï¼AI å¦ä¼´ä¸ºä½ ççè§£æ",placeholder:"ä½ æ³äºè§£ä»ä¹ï¼é®é®å§ï½",receive_error_message:"æ±æï¼æææ¶æ æ³åçè¿ä¸ªé®é¢ï¼è®©æå
å¦ä¹ ä¸ä¸å§ï¼",waiting_message:"æ£å¨æèä¸...",receive_cancel_message:"已忶"}),chatInfo:u(s({},t),{agent_id:n,name:l.name||"",avatar:l.logo||"",category:1})}}function w(){return l(function(){var e,t,n,i,s,u,d,w,C,O,S,x,A,k,I,T,E,D,P=arguments;return c(this,function(j){switch(j.label){case 0:if(t=(e=P.length>0&&void 0!==P[0]?P[0]:{}).agentId,n=e.universityId,i=e.agentLevel,u=void 0===(s=e.userInfo)?null:s,w=void 0===(d=e.chatType)?g.AGENT:d,O=void 0!==(C=e.forceUpdate)&&C,x=void 0===(S=e.nextTick)?null:S,A=Number(t||0),k=Number(n||0),I=Number(i||0),T=Number(w||g.AGENT),!A||12===I)return[2,null];if(T===g.ACCOMPANY&&!(null==u?void 0:u.user_id))return[2,b({capability:{agent_id:A,category:1,chat_type:T,extra_info:_},agentId:A,universityId:k,agentLevel:I,userInfo:u})];if(!O&&Number((null==f?void 0:f.agent_id)||0)===A&&Number((null==f?void 0:f.chat_type)||g.AGENT)===T){if(T===g.ACCOMPANY)return[2,b({capability:f,agentId:A,universityId:k,agentLevel:I,userInfo:u})];return[2,y({chatInfo:f,agentId:A,universityId:k,agentLevel:I,userInfo:u})]}if(O||h!==A||m!==T){var L,R;
1h=A,m=T,v=E=(T===g.ACCOMPANY?(L=A,l(function(){var e,t,n;return c(this,function(a){switch(a.label){case 0:return[4,r.ZP.getAgentAbility({id:L,category:1,agent_id:L,is_student:1})];case 1:if(t=(e=a.sent()).success,n=e.data,!t||!(null==n?void 0:n.length))return[2,{}];return[2,n.find(function(e){return 1===Number(e.category)})||{}]}})})()):(R=A,l(function(){var e,t;return c(this,function(n){switch(n.label){case 0:return[4,o.ZP.get(a.Z.co_build_display.get_chat_conf,{agent_id:R,code:"rpg"})];case 1:var r;return(t=(null==(e=n.sent())?void 0:e.data)||{}).agent_id=Number(t.agent_id||R),[4,(r=t,l(function(){var e,t;return c(this,function(n){switch(n.label){case 0:if(!(null==r?void 0:r.workflow_id))return[2,r];return[4,o.ZP.get("/c27/online_courseware/agent/workflow/".concat(r.workflow_id,"/pub_to_draft/"))];case 1:return r.workflow_draft_id=(null==(t=n.sent())||null==(e=t.data)?void 0:e.draft_id)||Number(r.workflow_id)-1,[2,r]}})})())];case 2:return n.sent(),[2,t]}})})())).finally(function(){v===E&&(h=0,m=g.AGENT,v=null)})}return[4,v];case 1:if((D=j.sent()).chat_type=T,D.agent_id=Number(D.agent_id||A),!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(){null!==p&&(clearTimeout(p),p=null),p=setTimeout(function(){f=e,p=null},100)};if(t)return t(n);n()}(D,x),T===g.ACCOMPANY)return[2,b({capability:D,agentId:A,universityId:k,agentLevel:I,userInfo:u})];return[2,y({chatInfo:D,agentId:A,universityId:k,agentLevel:I,userInfo:u})]}})}).apply(this,arguments)}},80058:function(e,t,n){"use strict";n.d(t,{F:function(){return s}}),n(82997),n(42463);var a=n(18108),r=n(69935);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var i=(0,a.ref)(r.yU.COBALT),l=function(e){if(document.body.getAttribute("data-ai-theme")!==e){var t="violet"===e?r.lB.violet:r.lB.default;document.body.setAttribute("data-ai-theme",e),Object.entries(t).forEach(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,a,r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw a}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return o(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],a=t[1];document.body.style.setProperty(n,a)})}};function s(){return"undefined"!=typeof document&&l(i.value),{theme:i,setThemeByAICourseId:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,r.i0)(e,t);i.value=n,l(n)},setTheme:function(e){i.value=e,l(e)},resetTheme:function(){i.value=r.yU.COBALT,l(r.yU.COBALT)},getThemeByAICourseId:r.i0}}},9013:function(e,t,n){"use strict";n.d(t,{Fm:function(){return r},ox:function(){return o}}),n(57321),n(42463);var a={cobalt:{aiWorkspaceLogo:"https://qn-sfe.yuketang.cn/o_1hud3sp7gknkvjech41msmbip9.png",aiAppLogo:"https://qn-sfe.yuketang.cn/o_1hsmci99h11q75fq4tcmhg8sb9.png",aiDecisionLogo:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/decision-center-logo.png",aiGradientBg:"https://qn-sfe.yuketang.cn/o_1huanvnkq1ieu1gme24r1vsh1phd9.png"},violet:{aiWorkspaceLogo:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/rose-v3-logo.png",aiAppLogo:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/ai-chineselesson/ai-app-white.png",aiDecisionLogo:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/ai-chineselesson/ai-decision-white.png",aiGradientBg:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/ai-chineselesson/[email protected]"}};function r(e){return a[e]||a.cobalt}
1function o(e){Object.values(r(e)).forEach(function(e){new Image().src=e})}},69935:function(e,t,n){"use strict";n.d(t,{i0:function(){return l},lB:function(){return s},yU:function(){return o}}),n(63649);var a=n(6966),r=n(9013),o={COBALT:"cobalt",VIOLET:"violet"},i={thu_354:o.VIOLET,thu_381:o.VIOLET,thu_382:o.VIOLET,thu_383:o.VIOLET,thu_384:o.VIOLET,thu_385:o.VIOLET,thu_386:o.VIOLET,thu_387:o.VIOLET,thu_388:o.VIOLET,thu_389:o.VIOLET};function l(e,t){if(!e)return o.COBALT;var n=o.COBALT;if(null==t?void 0:t.force)n=o.VIOLET;else{var l=(0,a.LS)()||"unknown",s="".concat(l,"_").concat(e);console.log(" 䏻颿¥æ¾:",{courseId:e,platformKey:l,envCourseKey:s}),n=i[s]||o.COBALT}return(0,r.ox)(n),n}var s={default:{"--aiworkspace-blue01":"#3d7bff","--aiworkspace-blue02":"#7c7efb","--aiworkspace-blue03":"#6984bd","--aiworkspace-blue04":"#6C6EE9","--aiworkspace-blue05":"#306df2","--aiworkspace-blue06":"#3D7BFFCC","--aiworkspace-blue07":"#409EFF","--aiworkspace-btn-bg-hover01":"#2e6bf0","--aiworkspace-btn-bg-hover02":"#376fe6","--aiworkspace-btn-bg-grey01":"#e8eaed","--aiworkspace-btn-bg-grey02":"#ecedff","--aiworkspace-btn-bg-grey03":"#3D7BFF1A","--aiworkspace-btn-bg-grey04":"#3D7BFF1A","--aiworkspace-bg-grey10":"rgba(123, 135, 178, 0.1)","--aiworkspace-bg-grey15":"rgba(123, 135, 178, 0.15)","--aiworkspace-bg-grey15-1":"#edfbff","--aiworkspace-bg-grey30":"#ecedff","--aiworkspace-bg-light01":"#F4F9FF","--aiworkspace-bg-light02":"#F4F9FF","--aiworkspace-bg-light03":"rgba(61, 123, 255, 0.1)","--aiworkspace-border-blue":"#7c7efb","--aiworkspace-font-color-normal":"#2b2e35","--aiworkspace-font-color-light":"#5f7198","--aiworkspace-font-color-grey":"#656a72","--border-border-p2":"#3D7BFFCC","--background-primary-color":"#d6e3fd","--bg-bg0":"#dee0fc"},violet:{"--aiworkspace-blue01":"#7D298B","--aiworkspace-blue02":"#ffffff","--aiworkspace-blue03":"#ffffff","--aiworkspace-blue04":"#7D298B","--aiworkspace-blue05":"#7D298B","--aiworkspace-blue06":"#7D298BCC","--aiworkspace-blue07":"#7D298B","--aiworkspace-btn-bg-hover01":"#652070","--aiworkspace-btn-bg-hover02":"#652070","--aiworkspace-btn-bg-grey01":"#F2E9F3","--aiworkspace-btn-bg-grey02":"#7B87B226","--aiworkspace-btn-bg-grey03":"#F2E9F3","--aiworkspace-btn-bg-grey04":"#FDF4FF","--aiworkspace-bg-grey10":"#ffffff1a","--aiworkspace-bg-grey15":"#edfbff33","--aiworkspace-bg-grey15-1":"#edfbff33","--aiworkspace-bg-grey30":"#edfbff33","--aiworkspace-bg-light01":"#F9F4FF","--aiworkspace-bg-light02":"#FDF4FF","--aiworkspace-bg-light03":"#7D298B1A","--aiworkspace-border-blue":"#A974B7","--aiworkspace-font-color-normal":"#ffffff","--aiworkspace-font-color-light":"#ffffff","--aiworkspace-font-color-grey":"#ffffff","--border-border-p2":"rgba(138, 26, 155, 0.6)","--background-primary-color":"rgba(246, 236, 248, 1)","--bg-bg0":"rgba(243, 232, 245, 1)"}}},64955:function(e,t,n){"use strict";n.d(t,{W:function(){return l}}),n(35621),n(87481),n(63649),n(83765),n(13794),n(81080);var a=n(69426),r=n.n(a),o=n(99040);function i(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(a,r)}var l=function(){var e;function t(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).fileInput;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.fileInput=e,this.uploader=this.videoUploadInit(),this.callback=null,this.uploading=!1,this.size=0,this.startTime=0}return e=[{key:"videoUploadInit",value:function(){var e=this,t={timeout:18e4,maxChunkSize:1048576,limitConcurrentUploads:3,createInfoRetries:5,maxRetries:10,retryTimeout:500,autoUpload:!0,fileInput:this.fileInput?r()(this.fileInput):void 0,getCategoryName:null,uploadFail:function(t,n,a){e.callback&&e.callback({status:4,msg:a}),e.uploading=!1},showTipMessage:function(){e.callback&&e.callback({status:4,msg:"å个è§é¢ä¸è½å¤§äº2G"})},cancelUpload:function(){e.uploading=!1,e.callback&&e.callback({status:4,msg:"è§é¢ä¸ä¼ 已忶"})},uploadSuccess:function(t,n,a){e.uploading=!1,e.callback&&e.callback({status:0,url:a,size:e.size,file_id:e.video_code,video_code:e.video_code,ext:n.split(".").pop()})},uploadProgress:function(t,n,a){var r=a.loaded,o=a.total,i=new Date-e.startTime;e.uploading=!0;var l="".concat(Math.round(1e3*r*100/(1024*i))/100),s=Math.floor((o-r)/(1024*l));e.callback&&e.callback({status:2,loaded:e.getSize(r),total:e.getSize(o),percent:t,percentageStr:"".concat(t,"%"),speed:"".concat(e.getSize(l),"/s"),leaveTime:e.timeFormatZh(s),size:o,file_id:e.video_code})},pauseUpload:function(e){console.log("æå",e)},createuploadinfo:function(t,n){return e.getUploadConfig({filename:t,filesize:n})}};return new o.h(t)}},{key:"getUploadConfig",value:function(e){var t=e.filename,n=e.filesize,a=this,o={};return r().ajax({url:"/c27/online_courseware/service/upload_video/",async:!1,type:"get",data:{title:t,filename:t,filesize:n},cache:!1,dataType:"json",contentType:"application/x-www-form-urlencoded; charset=UTF-8",error:function(){o={errMsg:"è·åè§é¢æä»¶vidåºé",errorType:"network"}},success:function(e){if(e.errMsg){o.errMsg="è·åè§é¢æä»¶vidåºé";return}var r=e.data;a.video_code=r.videoid,r&&(o=Object.assign(o,{success:!0,uid:r.userid,ccvid:r.videoid,servicetype:r.servicetype,name:t,uri:a.http2https(r.chunkurl),metauri:a.http2https(r.metaurl),size:n}))}}),o}},{key:"http2https",value:function(e){return e.replace(/(https|http):\/\//,"".concat(location.protocol,"//"))}},{key:"trigger",value:function(e,t){var n=[e];this.uploader.zGoOnAdd({files:n}
1),this.size=n[0].size,this.startTime=new Date,this.callback=t}},{key:"cancelUpload",value:function(){var e;return(e=function(){var e;return function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){return(e=this.uploader).jqXHRObj&&"function"==typeof e.jqXHRObj.abort&&e.jqXHRObj.abort(),[2,e]})},function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function l(e){i(o,a,r,l,s,"next",e)}function s(e){i(o,a,r,l,s,"throw",e)}l(void 0)})}).call(this)}},{key:"getSize",value:function(e){for(var t=3;e/1024>1&&t>=0;)e/=1024,t--;try{var n=(e-=0).toFixed(2).replace(/(\.00)$/,"");switch(t){case 3:return"".concat(n,"b");case 2:return"".concat(n,"k");case 1:return"".concat(n,"M");case 0:return"".concat(n,"G")}}catch(t){console.log(t,e)}}},{key:"timeFormatZh",value:function(e){var t=e/60;if(t<1)return Math.floor(e)+"ç§";if(t>=1&&t<60)return Math.floor(t)+"åé"+Math.floor(e-60*Math.floor(t))+"ç§";var n=t/60;return Math.floor(n)+"å°æ¶"+(Math.floor(t)-60*Math.floor(n))+"åé"+Math.floor(e-60*Math.floor(t))+"ç§"}}],function(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(t.prototype,e),t}()},77177:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}}),n(63064),n(63649),n(35350),n(44959),n(87481);var a=n(52798),r=n(18108),o=n(93215);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a;a=n[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}function l(e){var t=(0,r.ref)(null),n=(0,r.ref)(JSON.parse(JSON.stringify(i({},o.XN)))),l=(0,r.ref)({stylesData:{},scale:1,videoWidth:0,videoHeight:0,displayAreaWidth:0,displayAreaHeight:0,videoStyleXUint:1,videoStyleYUint:1,x:0,y:0}),s=(0,r.ref)({videoBox:{overflowBox:{width:"100%",height:"auto",transform:"translate(".concat(0,"px, ",0,"px)"),left:"0",top:"0"},overflow:"visible",width:"100%",height:"auto",zIndex:"11",transform:"scale(".concat(1,")"),block:{visible:"none",transform:"translate(-50%, 100%)",width:"100%",height:"0",left:"0",top:"0"}},video:{left:"0",top:"0",width:"100%",height:"auto"},rootElementWidth:"100%",rootElementHeight:"100%"}),u=(0,r.ref)({removeColor:"#0a9a38",removeColor2dSimilarity:13,removeColor2dSmoothness:20,useWebgl:!0,removeColorSimilarity:.06,removeColorSmoothness:0}),c=(0,a.h4X)(t),d=c.width,f=c.height;return(0,r.watch)(function(){return[e,d,f,n]},function(){var t=e.value,a=t.type,r=void 0===a?"":a,c=t.videoDisplayAreaScale,p=t.videoBox,v=void 0===p?{x:0,y:0}:p;if(d.value&&f.value){if(!r)throw Error("è¯·ä¼ å
¥type");s.value.rootElementWidth="".concat(Math.floor(d.value),"px"),s.value.rootElementHeight="".concat(Math.floor(f.value),"px");var h=n.value[r]||JSON.parse(JSON.stringify(i({},o.Tg))),m=Number(n.value.videoWidth)||1080,g=Number(n.value.videoHeight)||1920;h.x=Number(h.x)||0,h.y=Number(h.y)||0,h.hideOut=Number(h.hideOut)||0,h.displayArea.x=Number(h.displayArea.x)||0,h.displayArea.y=Number(h.displayArea.y)||0,h.displayArea.width=Number(h.displayArea.width)||m,h.displayArea.height=Number(h.displayArea.height)||g,s.value.video.width="".concat(Math.floor(m),"px"),s.value.video.height="".concat(Math.floor(g),"px"),s.value.video.left="-".concat(Math.floor(h.displayArea.x),"px"),s.value.video.top="-".concat(Math.floor(h.displayArea.y),"px"),s.value.videoBox.width="".concat(Math.floor(h.displayArea.width),"px"),s.value.videoBox.height="".concat(Math.floor(h.displayArea.height),"px");var _=f.value/h.displayArea.height*h.scale*(void 0===c?1:c),y=h.displayArea.width*_,b=h.displayArea.height*_,w=v.x,C=v.y,O=y/100,S=b/100,x=w+h.x*O,A=C+h.y*S;if(s.value.videoBox.transform="scale(".concat(_,")"),s.value.videoBox.overflow=h.hideOut?"hidden":"visible",s.value.videoBox.overflowBox.width="".concat(Math.floor(y),"px"),s.value.videoBox.overflowBox.height="".concat(Math.floor(b),"px"),s.value.videoBox.overflowBox.left="".concat(Math.floor(x),"px"),s.value.videoBox.overflowBox.top="".concat(Math.floor(A),"px"),s.value.videoBox.overflowBox.transform="translate(".concat(Math.floor(x),"px, ").concat(Math.floor(A),"px)"),Object.prototype.hasOwnProperty.call(h,"block")&&Number(h.block)){var k=h.blockStyle||{},I=(k.width+""||"100%").trim();/%$/.test(I)||(I="".concat(Math.floor(Number(I)),"px"));var T=Number(k.height)||64,E=Number(k.x)||0,D=Number(k.y)||0;
1s.value.videoBox.block.width="".concat(I),s.value.videoBox.block.height="".concat(Math.floor(T),"px"),s.value.videoBox.block.left="".concat(Math.floor(E),"px"),s.value.videoBox.block.top="".concat(Math.floor(A+b+D),"px"),s.value.videoBox.block.visible=Number(h.block)?"block":"none"}l.value={stylesData:h,scale:_,videoWidth:m,videoHeight:g,displayAreaWidth:y,displayAreaHeight:b,videoStyleXUint:O,videoStyleYUint:S,x:x,y:A},u.value=i({},u.value,n.value.mp4,Number(h.overrideCommon)&&h.common&&h.common.mp4?h.common.mp4:{})}},{deep:!0,immediate:!0}),{videoStyleRootElement:t,videoStyleData:n,currentVideoStyleData:l,videoThemeStyle:s,removeColorOptions:u,videoStyleRootElementWidth:d,videoStyleRootElementHeight:f}}},96488:function(e,t,n){"use strict";function a(){var e=null;if(window.localStorage&&(e=window.localStorage.getItem("_uuid")),!e){e="xxxxxyxxxxxyxx4xxxyxxxxxyxxxxxyxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)});try{window.localStorage.setItem("_uuid",e)}catch(e){}}return e}n.d(t,{F:function(){return a}}),n(13794),n(87481),n(42463),n(42682)},61596:function(e,t,n){"use strict";n(39409)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},21e3:function(e,t,n){"use strict";var a=n(39409),r=n(78885).end;a({target:"String",proto:!0,forced:n(60085)},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},85346:function(e,t,n){"use strict";n(35794)("Uint8",function(e){return function(t,n,a){return e(this,t,n,a)}},!0)}}]);
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.