PageSourceSearch

https://fe-static-yuketang.yuketang.cn/fe/static/web/1.2.315/js/22592.bcf2d2f0.js

js yuketang.cn collected 2026-09-28 09:26:25 UTC 78,746 bytes, 1 lines download raw bytes

1(self.webpackChunkrainweb=self.webpackChunkrainweb||[]).push([["22592"],{33964:function(t,e,n){t.exports=n(28386).Symbol},65802:function(t,e,n){var i=n(33964),s=n(89764),a=n(74273),o=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?s(t):a(t)}},19418:function(t,e,n){var i=n(65802),s=n(56389),a=n(53867),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return a(t)&&s(t.length)&&!!o[i(t)]}},96238:function(t){t.exports=function(t){return function(e){return t(e)}}},87254:function(t,e,n){t.exports="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},52675:function(t,e,n){t.exports=n(83236)(Object.getPrototypeOf,Object)},89764:function(t,e,n){var i=n(33964),s=Object.prototype,a=s.hasOwnProperty,o=s.toString,r=i?i.toStringTag:void 0;t.exports=function(t){var e=a.call(t,r),n=t[r];try{t[r]=void 0;var i=!0}catch(t){}var s=o.call(t);return i&&(e?t[r]=n:delete t[r]),s}},91198:function(t,e,n){t=n.nmd(t);var i=n(87254),s=e&&!e.nodeType&&e,a=s&&t&&!t.nodeType&&t,o=a&&a.exports===s&&i.process,r=function(){try{var t=a&&a.require&&a.require("util").types;if(t)return t;return o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=r},74273:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},83236:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},28386:function(t,e,n){var i=n(87254),s="object"==typeof self&&self&&self.Object===Object&&self;t.exports=i||s||Function("return this")()},17154:function(t){t.exports=Array.isArray},56389:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},53867:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},90541:function(t,e,n){var i=n(19418),s=n(96238),a=n(91198),o=a&&a.isTypedArray;t.exports=o?s(o):i},33301:function(t,e,n){"use strict";n.d(e,{Z:function(){return v}}),n(13794),n(87481),n(63064),n(83765);var i=n(42798),s=n(18108),a=n(64101),o=n(80850),r=n.n(o);n(32927),n(35130),n(72775),n(42463),n(35350),n(80764),n(47482),n(88353),n(17718),n(60668),n(92459),n(13054),n(88761),n(63649);var l=n(6966);function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function u(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}}(t)||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 d=n(81049),_=(0,d.Z)({data:function(){return{datadata:{},checkedAll:!1,isIndeterminate:!1,checkedIdList:[],checked1:!0,checked2:!1,openList:[],checkedClassList:[]}},computed:{allClassList:function(){var t=this,e=[];for(var n in this.datadata){var i=this.datadata[n].kls_list.filter(function(e,n){return t.isPublish?e.length>=4&&!e[3]:e.length>=4&&e[3]||e.length<4});e.push.apply(e,u(i))}return e},publishList:function(){var t={};for(var e in this.datadata){var n=this.datadata[e].kls_list.filter(function(t,e){return t.length>=4&&t[3]||t.length<4});n.length&&(t[e]={course_name:this.datadata[e].course_name,kls_list:n})}return t}},props:{data1:Object,isPublish:{default:!0},endClassNum:Number,archiveNum:Number,defaultChoosedList:Array},watch:{checkedIdList:function(){for(var t,e=function(e){var s,a=function(t){s.datadata[t].kls_list.forEach(function(i){i[0]==n.checkedIdList[e]&&(o={courseId:t,classId:i[0],className:i[1]})})},o={};for(var r in t.datadata)s=t,a(r);i.push(o)},n=this,i=[],s=0;s<this.checkedIdList.length;s++)t=this,e(s);this.checkedClassList=i,this.$emit("changeCheckedClass",this.checkedIdList)}},filters:{formatLength:function(t){if(t)return(0,l.xA)(t)>32?(0,l.tb)(t,16)+"...":t}},methods:{changeCheckAll:function(){var t=this;this.checkedAll?(this.checkedIdList=this.allClassList.map(function(t,e){return t[0]}
1),Object.keys(this.datadata).forEach(function(e){t.datadata[e].checkedAllCourse=!0})):(this.checkedIdList=[],Object.keys(this.datadata).forEach(function(e){t.datadata[e].checkedAllCourse=!1})),this.isIndeterminate=!1,Object.keys(this.datadata).forEach(function(e){t.datadata[e].isIndeterminateCourse=!1})},changeCheck:function(t){var e=this;if(console.log("item"),console.log(t),0===this.checkedIdList.length)this.isIndeterminate=!1,this.checkedAll=!1,t.checkedAllCourse=!1,t.isIndeterminateCourse=!1;else if(this.checkedIdList.length===this.allClassList.length)this.isIndeterminate=!1,this.checkedAll=!0,t.isIndeterminateCourse=!1,t.checkedAllCourse=!0;else{this.isIndeterminate=!0;var n=t.kls_list.filter(function(t){return!(t.length>=4&&t[3])}).map(function(t){return t[0]}),i=n.every(function(t){return e.checkedIdList.includes(t)}),s=n.every(function(t){return!e.checkedIdList.includes(t)});i?(t.checkedAllCourse=!0,t.isIndeterminateCourse=!1):s?(t.checkedAllCourse=!1,t.isIndeterminateCourse=!1):(t.checkedAllCourse=!1,t.isIndeterminateCourse=!0)}},handleFoldCourse:function(t){var e=this.openList.indexOf(t);-1!=e?this.openList.splice(e,1):this.openList.push(t)},handleDelete:function(t,e){var n=this.checkedIdList.findIndex(function(e){return e==t});this.checkedIdList.splice(n,1),this.changeCheck(this.datadata[e])},changeCheckAllCourse:function(t){var e=t.kls_list.filter(function(t){return!(t.length>=4&&t[3])}).map(function(t){return t[0]});t.checkedAllCourse?this.checkedIdList=Array.from(new Set(this.checkedIdList.concat(e))):this.checkedIdList=this.checkedIdList.filter(function(t){return!e.includes(t)}),t.isIndeterminateCourse=!1,0===this.checkedIdList.length?(this.isIndeterminate=!1,this.checkedAll=!1):this.checkedIdList.length===this.allClassList.length?(this.isIndeterminate=!1,this.checkedAll=!0):this.isIndeterminate=!0}},mounted:function(){var t=this,e=JSON.parse(JSON.stringify(this.data1));Object.keys(e).forEach(function(t){e[t].checkedAllCourse=!1,e[t].isIndeterminateCourse=!1}),this.datadata=e,console.log("this.defaultChoosedList"),console.log(this.defaultChoosedList),this.defaultChoosedList.length&&this.checkedIdList.push(this.defaultChoosedList[0]);var n=Object.keys(this.datadata);if(n.length){var i=this.datadata[n[0]];if(this.defaultChoosedList.length){for(var s={},a=0;a<n.length;a++)if(this.datadata[n[a]].kls_list.findIndex(function(e){return e[0]==t.defaultChoosedList[0]})>-1){s=this.datadata[n[a]];break}i=s}this.changeCheck(i)}if(this.isPublish){var o,r=Object.keys(this.data1);(o=this.openList).push.apply(o,u(r))}else{var l,c=Object.keys(this.publishList);(l=this.openList).push.apply(l,u(c))}}},function(){var t=this,e=t._self._c;return t.isPublish||!t.isPublish&&Object.keys(t.publishList).length?e("div",{staticClass:"class-publish__wrap"},[e("div",{staticClass:"publish-title"},[[e("div",{staticClass:"area-title"},[e("span",{staticClass:"title f14 font-semibold text-gray-001"},[t._v(t._s(t.isPublish?"发布到哪些班级":"本次修改对哪些班级生效?"))]),t._v(" "),e("span",{staticClass:"f12 text-gray-002"},[t._v(t._s(t.isPublish?"":"(以下为已发布班级列表)"))])])]],2),t._v(" "),e("div",{staticClass:"publish-list-box"},[e("div",{staticClass:"left"},[e("div",{staticClass:"check-all"},[e("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.changeCheckAll},model:{value:t.checkedAll,callback:function(e){t.checkedAll=e},expression:"checkedAll"}}),t._v(" "),e("span",{staticClass:"f14 text-gray-001 ml4 mr8"},[t._v("全选")]),t._v(" "),e("span",{staticClass:"f12 text-gray-002"},[t._v("(已选择"+t._s(t.checkedIdList.length)+"个班级)")])],1),t._v(" "),t.isPublish?e("ul",{staticClass:"check-list"},t._l(Object.keys(t.datadata),function(n,i){return e("li",{key:i,staticClass:"course-item"},[e("div",{staticClass:"course-title"},[e("svg",{staticClass:"icon arrow mr8 text-gray-004",attrs:{"aria-hidden":"true"},on:{click:function(e){return t.handleFoldCourse(n)}}},[e("use",{attrs:{"xlink:href":t.openList.includes(n)?"#icon-xialajiantou-xiangxia":"#icon-xialajiantou-xiangyou"}})]),t._v(" "),e("el-checkbox",{attrs:{indeterminate:t.datadata[n].isIndeterminateCourse},on:{change:function(e){return t.changeCheckAllCourse(t.datadata[n])}},model:{value:t.datadata[n].checkedAllCourse,callback:function(e){t.$set(t.datadata[n],"checkedAllCourse",e)},expression:"datadata[key].checkedAllCourse"}}),t._v(" "),e("span",{staticClass:"f12 course-tag ml8 mr8"},[t._v("课程")]),t._v(" "),e("span",{staticClass:"course-name text-gray-001"},[t._v(t._s(t.datadata[n].course_name))])],1),t._v(" "),e("ul",{directives:[{name:"show",rawName:"v-show",value:t.openList.includes(n),expression:"openList.includes(key)"}],staticClass:"classroom-list"},[t._l(t.datadata[n].kls_list,function(i,s){return e("li",{key:s,staticClass:"classroom"},[i.length>=4&&i[3]?[e("el-checkbox",{attrs:{label:i[0],disabled:""},on:{change:function(e){return t.changeCheck(t.datadata[n])}},model:{value:t.checked1,callback:function(e){t.checked1=e},expression:"checked1"}}),t._v(" "),e("div",{staticClass:"class-name color-9b"},[t._v(t._s(i[1])+"(已发布)")])]:[e("el-checkbox",{attrs:{label:i[0]},on:{change:function(e){return t.changeCheck(t.datadata[n])}},model:{value:t.checkedIdList,callback:function(e){t.checkedIdList=e},expression:"checkedIdList"}}),t._v(" "),e("div",{staticClass:"class-name fr text-gray-001"},[t._v(t._s(i[1]))])]],2)}
1),t._v(" "),t.datadata[n].archive_class_num||t.datadata[n].end_class_num?e("li",{staticClass:"archive_end_class"},[e("div",{staticClass:"empty-box"}),t._v(" "),e("div",{staticClass:"archive_end_tip rounded-md f12 bg-gray-007 text-gray-003"},[t.datadata[n].archive_class_num>0?[t._v(t._s(t.datadata[n].archive_class_num)+"个班级已归档,")]:t._e(),t._v(" "),t.datadata[n].end_class_num>0?[t._v(t._s(t.datadata[n].end_class_num)+"个班级已结课,")]:t._e(),t._v(" "),t.isPublish?[t._v("不能向结课或归档班级发布")]:[t._v("结课或归档班级不能编辑发布设置")]],2)]):t._e()],2)])}),0):e("ul",{staticClass:"check-list"},t._l(Object.keys(t.publishList),function(n,i){return e("li",{key:i,staticClass:"course-item"},[e("div",{staticClass:"course-title"},[e("svg",{staticClass:"icon arrow mr8 text-gray-004",attrs:{"aria-hidden":"true"},on:{click:function(e){return t.handleFoldCourse(n)}}},[e("use",{attrs:{"xlink:href":t.openList.includes(n)?"#icon--guanbiwenjianjia":"#icon--dakaiwenjianjia"}})]),t._v(" "),e("span",{staticClass:"f12 course-tag ml8 mr8"},[t._v("课程")]),t._v(" "),e("span",{staticClass:"course-name text-gray-001"},[t._v(t._s(t.datadata[n].course_name))])]),t._v(" "),e("ul",{directives:[{name:"show",rawName:"v-show",value:t.openList.includes(n),expression:"openList.includes(key)"}],staticClass:"classroom-list"},t._l(t.datadata[n].kls_list,function(i,s){return e("li",{key:s,staticClass:"classroom"},[e("el-checkbox",{attrs:{label:i[0]},on:{change:function(e){return t.changeCheck(t.datadata[n])}},model:{value:t.checkedIdList,callback:function(e){t.checkedIdList=e},expression:"checkedIdList"}}),t._v(" "),e("div",{staticClass:"class-name fr text-gray-001"},[t._v(t._s(i[1]))])],1)}),0)])}),0),t._v(" "),t.endClassNum>0||t.archiveNum>0?e("div",{staticClass:"publish-endclass mt20"},[e("p",[t.endClassNum>0?[t._v(t._s(t.endClassNum)+"个班级已结课,")]:t._e(),t._v(" "),t.archiveNum>0?[t._v(t._s(t.archiveNum)+"个班级已归档,")]:t._e(),t._v(" "),t.isPublish?[t._v("不能向结课或归档班级发布")]:[t._v("结课或归档班级不能编辑发布设置")]],2)]):t._e()]),t._v(" "),e("div",{staticClass:"right"},t._l(t.checkedClassList,function(n){return e("el-tag",{key:n.classId,attrs:{closable:"",color:"#f5f5f5","disable-transitions":!1},on:{close:function(e){return t.handleDelete(n.classId,n.courseId)}}},[t._v("\n        "+t._s(t._f("formatLength")(n.className))+"\n      ")])}),1)])]):t._e()},[],!1,null,"3912bc21",null).exports,f=(0,d.Z)({__name:"publishLoadingDialog",props:{publishLoadingDialogInfo:{type:Object,default:function(){return{}}}},setup:function(t){return(0,s.watch)(function(){return t.publishLoadingDialogInfo.visible},function(t){t?(0,i.rJ)():(0,i.hE)()}),{__sfc:!0,props:t}}},function(){var t=this,e=t._self._c;return t._self._setupProxy,e("el-dialog",{staticClass:"custom-dialog",attrs:{visible:t.publishLoadingDialogInfo.visible,width:"416px","append-to-body":!0,"show-close":!1,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.publishLoadingDialogInfo,"visible",e)}}},[e("div",{staticClass:"dialog-main flex flex-col items-center"},[e("img",{staticClass:"loading-img",attrs:{src:"https://qn1-next.xuetangonline.com/17271612843065.gif"}}),t._v(" "),e("div",{staticClass:"text-lg font-semibold text-gray-001"},[t._v("正在发送,请勿关闭窗口")])])])},[],!1,null,"58e3ad79",null).exports,h=(0,d.Z)({__name:"publishResultDialog",props:{publishResultDialogInfo:{type:Object,default:function(){return{}}}},setup:function(t){return(0,s.watch)(function(){return t.publishResultDialogInfo.visible},function(t){t?(0,i.rJ)():(0,i.hE)()}),{__sfc:!0,props:t}}},function(){var t=this,e=t._self._c;return t._self._setupProxy,e("el-dialog",{staticClass:"custom-dialog",attrs:{visible:t.publishResultDialogInfo.visible,width:"416px","append-to-body":!0,"show-close":!1,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.publishResultDialogInfo,"visible",e)}}},[e("div",{staticClass:"dialog-main"},[e("div",{staticClass:"flex flex-col items-center"},[e("span",{class:["status-tag flex justify-center items-center",t.publishResultDialogInfo.data.fail_no>0?"fail":"success"]},[e("i",{class:["iconfont",t.publishResultDialogInfo.data.fail_no>0?"icon-cu-jingshi":"icon-cu-xuanzhong"]})]),t._v(" "),e("span",{staticClass:"text-lg font-semibold text-gray-001"},[t.publishResultDialogInfo.data.fail_no>0?[t._v(t._s(t.publishResultDialogInfo.data.fail_no)+"/"+t._s(t.publishResultDialogInfo.data.success_no+t.publishResultDialogInfo.data.fail_no)+"个班级未送达")]:[t._v("已成功发送至\n          "+t._s(t.publishResultDialogInfo.data.success_no)+" 个班级")]],2)]),t._v(" "),e("div",{staticClass:"mt20"},[e("div",{staticClass:"text-lg font-semibold text-gray-001"},[t._v("发布班级")]),t._v(" "),e("ul",{staticClass:"class-list mt5"},t._l(t.publishResultDialogInfo.data.kls_info,function(n,i){return e("li",{key:i,staticClass:"class-item"},[e("div",{staticClass:"flex justify-between items-center"},[e("div",{staticClass:"class-name"},[t._v("\n              "+t._s(n.course_name||"--")+"/"+t._s(n.classroom_name||"--")+"\n            ")]),t._v(" "),n.is_success?e("i",{staticClass:"iconfont icon-yuanquangou success-icon"}):e("span",{staticClass:"fail-txt"},[t._v("发布失败")])]),t._v(" "),n.is_success?t._e():e("div",{staticClass:"error-msg"},[t._v(t._s(n.error_msg))])])}),0)])]),t._v(" "),e("span",{staticClass:"dialog-footer flex justify-center items-center",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{staticClass:"btn-fill",staticStyle:{width:"120px"},attrs:{type:"primary",size:"small"},on:{click:function(e){t.publishResultDialogInfo.visible=!1}}},[t._v("关闭窗口")])],1)])},[],!1,null,"2774b9e6",null).exports,p=n(41990),v=(0,d.Z)({__name:"publishDialog",props:{publishDialogInfo:{type:Object,default:function(){return{}}},agentId:{type:String,default:""}},setup:function(t){var e=(0,a.eJ)(["selectedCourseInfo"]).selectedCourseInfo,n=(0,s.ref)({title:"",content:"",publish_time:"",score_deadline:"",is_discuss:1,is_send_message:1,is_score:1}),o=(0,s.ref)([]),l=(0,s.ref)({}),c=(0,s.ref)(0),u=(0,s.ref)(0),d=(0,s.ref)(0),v=(0,s.ref)([]),E=(0,s.ref)([]),m=(0,s.ref)({shortcuts:[{text:"立即发布",onClick:function(t){t.value="",t.$emit("pick","")}}],disabledDate:function(t){return t.getTime()<=Date.now()-864e5}}),C=(0,s.ref)({shortcuts:[{text:"结课时间",onClick:function(t){t.value="",t.$emit("pick","")}}],disabledDate:function(t){return t.getTime()<=Date.now()-864e5}}),T=(0,s.ref)(null),g=(0,s.ref)(null),I=(0,s.ref)(null),O=(0,s.ref)(null),A=(0,s.ref)(null),b=(0,s.ref)({visible:!1,data:{}}),S=(0,s.ref)({visible:!1,data:{}});function N(){var n,i=API.getOnlineDocumentClassrooms;request.get(i.replace(/\{agent_id\}/g,(null==(n=e.value)?void 0:n.id)||t.agentId)).then(function(t){t.success&&(l.value=t.data,c.value=Object.keys(l.value).length)})}function y(){n.value.title=t.publishDialogInfo.data.title,n.value.content=t.publishDialogInfo.data.content,n.value.publish_time="",n.value.score_deadline="",n.value.is_discuss=1,n.value.is_send_message=1,n.value.is_score=1,c.value=0,E.value=[]}function D(n){var i,s=API.getPublishResult.replace(/\{agent_id\}/g,(null==(i=e.value)?void 0:i.id)||t.agentId).replace(/\{doc_id\}/g,t.publishDialogInfo.data.id);request.get(s).then(function(t){t.success&&(console.log("status",t.data.status),2==t.data.status?(clearInterval(A.value),A.value=null,n(t.data)):(A.value&&(clearInterval(A.value),A.value=null),A.value=setInterval(function(){D(n)},2e3)))})}return(0,s.watch)(function(){return t.publishDialogInfo.visible},function(t){t?((0,i.rJ)(),y(),N()):(0,i.hE)()}),{__sfc:!0,selectedCourseInfo:e,props:t,publishForm:n,moduleOptions:o,otherClassData:l,otherClassNum:c,endClassNum:u,archiveNum:d,defaultChoosedList:v,selIdList:E,pickerOptions:m,pickerOptions2:C,publishTimeRef:T,publishArrowRef:g,examineTimeRef:I,examineArrowRef:O,publishStatusTimer:A,publishLoadingDialogInfo:b,publishResultDialogInfo:S,getData:N,clearData:y,showPublishTime:function(t){t.focus()},handleFocus:function(t){t.style.transform="rotate(-180deg)"},handleBlur:function(t){t.style.transform="rotate(0deg)"},formatTime:function(t){return r()(t).format("YYYY-MM-DD HH:mm")},changeCheckedClass:function(t){E.value=t},confirmPublish:function(){if(/^\s*$/gi.test(n.value.title))return void(0,p.Message)({message:"标题不能为空",customClass:"toastMessage courseClassToast",iconClass:"iconfont icon--xiaochicuncha"});if(!/^\s*$/gi.test(n.value.publish_time)&&n.value.publish_time<new Date)return void(0,p.Message)({message:"发布时间必须在当前时间之后",customClass:"toastMessage courseClassToast",iconClass:"iconfont icon--xiaochicuncha"});if(!/^\s*$/gi.test(n.value.score_deadline)&&n.value.score_deadline<=new Date)return(0,p.Message)({message:"考核截止时间必须在当前时间之后",customClass:"toastMessage courseClassToast",iconClass:"iconfont icon--xiaochicuncha"}),!1;if(!/^\s*$/gi.test(n.value.publish_time)&&!/^\s*$/gi.test(n.value.score_deadline)&&n.value.score_deadline<=n.value.publish_time)return(0,p.Message)({message:"考核截止时间不能早于发布时间",customClass:"toastMessage courseClassToast",iconClass:"iconfont icon--xiaochicuncha"}),!1;var i,s=Object.assign({},n.value);/^\s*$/gi.test(n.value.publish_time)&&(s.publish_time=0),/^\s*$/gi.test(n.value.score_deadline)&&(s.score_deadline=0),c.value>0&&(s.classroom_ids=E.value);var a=API.publishOnlineDocument.replace(/\{agent_id\}/g,(null==(i=e.value)?void 0:i.id)||t.agentId).replace(/\{doc_id\}/g,t.publishDialogInfo.data.id);request.post(a,s).then(function(e){e.success&&(t.publishDialogInfo.visible=!1,b.value.visible=!0,D(function(t){b.value.visible=!1,S.value.data=t,S.value.visible=!0}))}).catch(function(t){(0,p.Message)({message:"发布失败",customClass:"toastMessage courseClassToast",iconClass:"iconfont icon--xiaochicuncha icon--xiaochicuncha"})})},getPublishStatus:D,classPublish:_,publishLoadingDialog:f,publishResultDialog:h}}},function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"publish-wrap"},[e("el-dialog",{staticClass:"custom-dialog publish-dialog",attrs:{visible:t.publishDialogInfo.visible,width:"916px","append-to-body":!0,"show-close":!1,"close-on-click-modal":!1}
1,on:{"update:visible":function(e){return t.$set(t.publishDialogInfo,"visible",e)}}},[e("span",{staticClass:"dialog-header flex justify-between items-center",attrs:{slot:"title"},slot:"title"},[e("h3",{staticClass:"text-xl font-semibold text-gray-001"},[t._v("\n        "+t._s(t.publishDialogInfo.title)+"\n      ")]),t._v(" "),e("span",{staticClass:"icon-btn",on:{click:function(e){t.publishDialogInfo.visible=!1}}},[e("i",{staticClass:"iconfont icon-cuowu"})])]),t._v(" "),e("div",{staticClass:"dialog-main"},[e("div",{staticClass:"box"},[e("div",{staticClass:"item-wrap"},[e("span",{staticClass:"item"},[e("span",{staticClass:"item-label",staticStyle:{width:"56px"}},[t._v("标题")]),t._v(" "),e("el-input",{attrs:{size:"small",placeholder:"请输入标题"},model:{value:n.publishForm.title,callback:function(e){t.$set(n.publishForm,"title",e)},expression:"publishForm.title"}})],1),t._v(" "),e("div",{staticClass:"inline"},[e("span",{staticClass:"item",staticStyle:{width:"356px"}},[e("span",{staticClass:"item-label"},[t._v("发布时间")]),t._v(" "),e("div",{staticClass:"time-wrap",on:{click:function(t){return n.showPublishTime(n.publishTimeRef)}}},[e("div",{staticClass:"text-picker"},[""==n.publishForm.publish_time?[t._v("立即发布")]:[t._v(t._s(n.formatTime(n.publishForm.publish_time)))],t._v(" "),e("span",{staticClass:"arrow-box pointer"},[e("svg",{ref:"publishArrowRef",staticClass:"icon",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":"#icon-jiantoudan-xiangxia"}})])])],2),t._v(" "),e("el-date-picker",{ref:"publishTimeRef",staticClass:"publish-picker",attrs:{size:"small",type:"datetime",placeholder:"立即发布",format:"yyyy-MM-dd HH:mm","popper-class":"publish-task-picker",clearable:!1,"picker-options":n.pickerOptions,"value-format":"timestamp"},on:{focus:function(t){return n.handleFocus(n.publishArrowRef)},blur:function(t){return n.handleBlur(n.publishArrowRef)}},model:{value:n.publishForm.publish_time,callback:function(e){t.$set(n.publishForm,"publish_time",e)},expression:"publishForm.publish_time"}})],1)]),t._v(" "),e("span",{staticClass:"item"},[e("span",{staticClass:"item-label"},[t._v("考核截止时间")]),t._v(" "),e("div",[e("div",{staticClass:"time-wrap",on:{click:function(t){return n.showPublishTime(n.examineTimeRef)}}},[e("div",{staticClass:"text-picker"},[""==n.publishForm.score_deadline?[t._v("结课时间")]:[t._v(t._s(n.formatTime(n.publishForm.score_deadline)))],t._v(" "),e("span",{staticClass:"arrow-box pointer"},[e("svg",{ref:"examineArrowRef",staticClass:"icon",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":"#icon-jiantoudan-xiangxia"}})])])],2),t._v(" "),e("el-date-picker",{ref:"examineTimeRef",staticClass:"publish-picker",attrs:{size:"small",type:"datetime",placeholder:"结课时间",format:"yyyy-MM-dd HH:mm","popper-class":"publish-task-picker",clearable:!1,"picker-options":n.pickerOptions2,"value-format":"timestamp"},on:{focus:function(t){return n.handleFocus(n.examineArrowRef)},blur:function(t){return n.handleBlur(n.examineArrowRef)}},model:{value:n.publishForm.score_deadline,callback:function(e){t.$set(n.publishForm,"score_deadline",e)},expression:"publishForm.score_deadline"}})],1),t._v(" "),e("div",{staticClass:"flex items-center"},[e("i",{staticClass:"iconfont icon-weiduortanhaoorjingshi icon-gray-03"}),t._v(" "),e("span",{staticClass:"text-base text-gray-003"},[t._v("考试截止时间之后的学习行为不被计入单元完成状态")])])])])])])]),t._v(" "),e("div",{staticClass:"flex justify-between",staticStyle:{"margin-top":"12px"}},[e("div",{staticClass:"box",staticStyle:{width:"360px"}},[e("div",{staticClass:"item-wrap"},[e("span",{staticClass:"item"},[e("span",{staticClass:"item-label",staticStyle:{width:"112px"}},[t._v("是否允许评论")]),t._v(" "),e("el-radio-group",{model:{value:n.publishForm.is_discuss,callback:function(e){t.$set(n.publishForm,"is_discuss",e)},expression:"publishForm.is_discuss"}},[e("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),e("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1),t._v(" "),e("span",{staticClass:"item"},[e("span",{staticClass:"item-label",staticStyle:{width:"112px"}},[t._v("是否微信消息提醒")]),t._v(" "),e("div",[e("el-radio-group",{model:{value:n.publishForm.is_send_message,callback:function(e){t.$set(n.publishForm,"is_send_message",e)},expression:"publishForm.is_send_message"}},[e("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),e("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)])])]),t._v(" "),e("div",{staticClass:"box",staticStyle:{width:"472px"}},[e("div",{staticClass:"item-wrap"},[e("span",{staticClass:"item"},[e("span",{staticClass:"item-label",staticStyle:{width:"112px"}},[t._v("是否计入成绩")]),t._v(" "),e("div",[e("el-radio-group",{model:{value:n.publishForm.is_score,callback:function(e){t.$set(n.publishForm,"is_score",e)},expression:"publishForm.is_score"}},[e("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),e("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)])])])]),t._v(" "),n.otherClassNum>0?e(n.classPublish,{staticClass:"mt30",attrs:{data1:n.otherClassData,isPublish:!0,endClassNum:n.endClassNum,archiveNum:n.archiveNum,defaultChoosedList:n.defaultChoosedList},on:{changeCheckedClass:n.changeCheckedClass}}):t._e()],1),t._v(" "),e("span",{staticClass:"dialog-footer flex justify-end items-center",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{staticClass:"btn-outline",attrs:{size:"small"},on:{click:function(e){t.publishDialogInfo.visible=!1}}},[t._v("取消")]),t._v(" "),e("el-button",{staticClass:"btn-fill",attrs:{type:"primary",size:"small",disabled:!n.selIdList.length},on:{click:n.confirmPublish}},[t._v("确定")])],1)]),t._v(" "),e(n.publishLoadingDialog,{attrs:{publishLoadingDialogInfo:n.publishLoadingDialogInfo}}),t._v(" "),e(n.publishResultDialog,{attrs:{publishResultDialogInfo:n.publishResultDialogInfo}})],1)},[],!1,null,"c9e8dda2",null).exports},69862:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}}),n(63649);var i=n(18108),s=n(52798),a=n(85369),o=n(11079),r=(0,n(81049).Z)({__name:"documents",props:{documents:{type:Object,default:{}},currDoc:{type:Object,default:{}},loading:{type:Boolean,default:!1}},emits:["loadMore","changeDoc","hide"],setup:function(t,e){var n=e.emit,r=(0,i.ref)(""),l=(0,s.vO3)(r),c=l.y,u=l.isScrolling,d=l.arr
1ivedState,_=l.directions,f=(0,i.toRefs)(_),h=f.top,p=f.bottom;return(0,i.onMounted)(function(){}),(0,i.onBeforeUnmount)(function(){}),(0,i.watch)(c,function(t){t&&(console.log("y: ".concat(t)),console.log("toBottom:",p.value),u.value&&p.value&&t>350&&(console.log("尝试加载下一页"),a.Z.emit(o.OJ.RICH_TEXT_COMMAND,{command:"LoadNextPage",val:{top:t}})))}),{__sfc:!0,ScrollThreshold:350,props:t,listEl:r,y:c,isScrolling:u,arrivedState:d,directions:_,toTop:h,toBottom:p,emits:n,initEvent:function(){},handleSelectDoc:function(t){t&&t.id&&n("changeDoc",t)}}}},function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"docs__container"},[e("header",{staticClass:"docs--header f12 text-gray-002"},[t._v(t._s(t.$t("AICenter.Preparation.Documents")))]),t._v(" "),e("ul",{ref:"listEl",staticClass:"docs__wrap"},[t._l(t.documents.list,function(i){var s,a;return e("li",{key:i.id,staticClass:"doc__item box-between",class:{active:i.id===(null==(s=t.currDoc)?void 0:s.id)},on:{click:function(t){return n.handleSelectDoc(i)}}},[e("div",{staticClass:"box-start"},[t._m(0,!0),t._v(" "),e("p",{staticClass:"doc-title"},[t._v(t._s(i.title))])]),t._v(" "),i.id===(null==(a=t.currDoc)?void 0:a.id)?e("p",{staticClass:"icon__wrap box-center"},[e("i",{staticClass:"iconfont icon-cu-xuanzhong f14"})]):t._e()])}),t._v(" "),t.loading?e("div",{staticClass:"loading__wrapper box-center"},[t._m(1)]):t._e()],2)])},[function(){var t=this._self._c;return this._self._setupProxy,t("p",{staticClass:"icon__wrap box-center"},[t("i",{staticClass:"iconfont icon-wenzhang"})])},function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"lds-ring"},[t("div"),t("div"),t("div"),t("div")])}],!1,null,"a170421a",null).exports},20748:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return C}}),n(86067),n(42463),n(63649),n(44959),n(83765),n(63064);var i=n(33301),s=n(18108),a=n(24530),o=n(64101),r=n(31242),l=n(41990),c=n(5123),u=n(85369),d=n(11079),_=n(69862),f=n(34596),h=n(53354),p=n(1948);function v(t,e,n,i,s,a,o){try{var r=t[a](o),l=r.value}catch(t){n(t);return}r.done?e(l):Promise.resolve(l).then(i,s)}function E(t){return function(){var e=this,n=arguments;return new Promise(function(i,s){var a=t.apply(e,n);function o(t){v(a,i,s,o,r,"next",t)}function r(t){v(a,i,s,o,r,"throw",t)}o(void 0)})}}function m(t,e){var n,i,s,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=r(0),o.throw=r(1),o.return=r(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function r(r){return function(l){var c=[r,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(n=1,i&&(s=2&c[0]?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[2&c[0],s.value]),c[0]){case 0:case 1:s=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,i=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(s=(s=a.trys).length>0&&s[s.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!s||c[1]>s[0]&&c[1]<s[3])){a.label=c[1];break}if(6===c[0]&&a.label<s[1]){a.label=s[1],s=c;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(c);break}s[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],i=0}finally{n=s=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var C=(0,n(81049).Z)({__name:"index",props:{showExit:{type:Boolean,default:!1},from:{type:String,default:""}},setup:function(t){var e=(0,r.tv)(),v=(0,o.eJ)(["selectedCourseInfo","curCapabilityData"]),C=v.selectedCourseInfo,T=v.curCapabilityData,g=null;n.e("54338").then(n.t.bind(n,55692,23)).then(function(t){g={initEditor:t.default,emitter:t.emitter,EmitterEvents:t.EmitterEvents},te()}).catch(function(t){console.error("Error loading rain-docx:",t)});var I=(0,r.yj)(),O={type:"doc",content:[{type:"paragraph",attrs:{align:"",indent:0,textIndent:0}}]},A=(0,s.ref)(!1),b=(0,s.ref)(""),S=(0,s.ref)(!1),N=(0,s.ref)(""),y=Date.now(),D=(0,s.ref)(i18n.t("AICenter.Preparation.UntitledDoc")||"无标题文档"),R=(0,s.ref)(0),L=null,x=(0,s.ref)(!1),P=(0,s.ref)(!1),w=null,k=(0,s.ref)(d.Hr),M=(0,s.ref)(d.Hr.LOADING),U=(0,s.ref)(0),G=(0,s.ref)(!0),H=(0,s.computed)(function(){var t;return(null==(t=C.value)?void 0:t.level)===10}),j=(0,c.F)({category:2,course:C.value,capability:T.value,title:D.value}),W=j.documents,Y=j.currDoc,F=j.documentsLoading,B=j.initAssistant,K=j.getNextPageDocuments,V=j.getDocument,Z=j.createDocument,X=j.updateDocument,$=j.exportDocument,q=(0,s.ref)({title:"发布设置",visible:!1,data:{}}),z=(0,s.ref)(null),J=function(t){t_(t)};function Q(){var t;A.value&&(null==(t=Y.value)?void 0:t.id)&&tc({id:Y.value.id,title:Y.value.title,content:JSON.stringify(O)})}function tt(){B()}function te(){var t,e={id:y,readOnly:!1,locale:(null==(t=i18n)?void 0:t.locale)||"zh_CN",url:"https://www.yuketang.cn",title:D.value,content:"<p data-placeholder=输入内容></p>\n                <p></p>\n                <p></p>\n                <p></p>\n                <p></p>\n                <p></p>\n              ",placeholder:i18n.t("AICenter.Preparation.PleaseEnter")||"请输入...",hooks:{getContentSize:function(t){R.value=t}},uploadUrl:"".concat(API.getOnlineDocOssToken,"?agent_id=").concat(I.params.course_id,"&uvid=").concat(C.value.university_id)};L=(null==g?void 0:g.initEditor(N.value,{config:e}
1)).updateConfig,tn(),A.value=!0,M.value!==d.Hr.LOADED&&Y.value&&tc(Y.value)}function tn(){null==g||g.emitter.on(null==g?void 0:g.EmitterEvents.SYNC_RICH_TEXT_TO_APP,ts),u.Z.on(d.OJ.RICH_TEXT_COMMAND,ta);var t=b.value;t&&(t.addEventListener("mouseenter",tu),t.addEventListener("mouseleave",td))}function ti(){null==g||g.emitter.off(null==g?void 0:g.EmitterEvents.SYNC_RICH_TEXT_TO_APP,ts),u.Z.off(d.OJ.RICH_TEXT_COMMAND,ta);var t=b.value;t&&(t.removeEventListener("mouseenter",tu),t.removeEventListener("mouseleave",td))}function ts(t){var e=t.action,n=e.command,i=e.val;"update"===n?tr(i):"Typing"===n?(M.value,d.Hr.LOADING):"LoadCompleted"===n&&setTimeout(function(){M.value=d.Hr.LOADED}),"EXPORT_DOCUMENT_TO_HTML"===n&&(console.log("EXPORT_DOCUMENT_TO_HTML:",i),z.value=i)}function ta(t){var e=t.command,n=t.val;"InsertMarkdown"===e?t_(n):"LoadNextPage"===e&&to()}(0,s.onMounted)(function(){G.value=window.self==window.top,tt(),u.Z.on(p.GM.INSERT_QUICK_INSTRUCTION,J),u.Z.on(p.GM.CLEAR_DOCUMENT_CONTENT,Q),u.Z.on(p.GM.EXPORT_DOCUMENT,tp),u.Z.on(p.GM.K12_CLEAR_INSERT_SAVE_EXPORT,tE)}),(0,s.onBeforeUnmount)(function(){ti(),u.Z.off(p.GM.INSERT_QUICK_INSTRUCTION,J),u.Z.off(p.GM.CLEAR_DOCUMENT_CONTENT,Q),u.Z.off(p.GM.EXPORT_DOCUMENT,tp),u.Z.off(p.GM.K12_CLEAR_INSERT_SAVE_EXPORT,tE)}),(0,s.watch)(function(){return Y.value},function(t,e){(null==e?void 0:e.id)!==(null==t?void 0:t.id)&&A.value&&tc(t),t.content&&W.totalCount<200?P.value=!0:P.value=!1,L&&L({uploadUrl:"".concat(API.getOnlineDocOssToken,"?agent_id=").concat(I.params.course_id,"&uvid=").concat(C.value.university_id,"&doc_id=").concat(null==t?void 0:t.id)});try{var n,i=null==(n=C.value)?void 0:n.id;localStorage.setItem("AICourse".concat(i,"CurrentDoc"),t.id)}catch(t){console.error(t)}}),(0,s.watch)(function(){return W.totalCount},function(t){console.log("documents.totalCount:",t),t>=200&&(P.value=!1)});var to=(0,a.throttle)(function(){console.log("LoadNextPage"),K()},3e3,{trailing:!0}),tr=(0,a.debounce)(function(t){tl(t)},3e3,{trailing:!0});function tl(t){return E(function(){var e,n,i,s,a;return m(this,function(o){switch(o.label){case 0:if(console.log("编辑器内容更新"),!(e=Y.value)||e&&!e.id)return[2,this];if(!(t&&t.title&&t.title.trim()))return[3,2];if(console.log("标题和内容无变化 不保存"),"无标题文档"===t.title.trim()&&5===R.value&&(null==(n=C.value)?void 0:n.level)!==10)return[2,this];if(x.value)return w&&clearTimeout(w),w=setTimeout(function(){x.value=!1},3e3),[2,this];return x.value=!0,M.value=d.Hr.SAVING,s=t.title,a=JSON.stringify(t.content),[4,X({id:e.id,title:s,content:a})];case 1:o.sent(),Y.value=Object.assign({},e,{title:s,content:a}),x.value=!1,M.value=d.Hr.SAVED,U.value=tf(),(null==(i=C.value)?void 0:i.level)===10&&(console.log("k12-文档保存完成事件触发"),u.Z.emit(p.GM.DOCUMENT_SAVE_COMPLETED,{docId:e.id,title:s,content:a})),o.label=2;case 2:return[2]}})}).call(this)}function tc(t){if(t&&t.title){M.value=d.Hr.LOADING;var e=t.content?JSON.parse(t.content):O;null==g||g.emitter.emit(null==g?void 0:g.EmitterEvents.APP_TO_EDITOR,{id:y,command:"SWITCH_DOCX",val:{title:t.title,content:e}})}}function tu(){S.value=!0}function td(){S.value=!1}function t_(t){null==g||g.emitter.emit(null==g?void 0:g.EmitterEvents.RICH_TEXT_COMMAND,{id:Date.now(),action:{command:"insertMarkdown",val:t}})}function tf(){var t=new Date,e=t.getHours(),n=t.getMinutes();e=e<10?"0"+e:e,n=n<10?"0"+n:n;var i="".concat(e,":").concat(n);return console.log("当前时间是: ".concat(i)),i}function th(){null==g||g.emitter.emit(null==g?void 0:g.EmitterEvents.APP_TO_EDITOR,{id:y,command:"EXPORT_DOCUMENT_TO_HTML"})}function tp(){Y.value.content&&$()}var tv=(0,s.computed)(function(){var e;return{entity_type:"ai-edu-center"===t.from?28:d.Xs.LESSON_PREPARING_ASSISTANT.key,entity_id:null==(e=Y.value)?void 0:e.id,id:I.params.course_id,category:d.iP["lesson-prepare-assistant"],scene:d.BN.CLASSROOM_STUDENT,level:C.value.level,agentId:I.params.course_id,university_id:C.value.university_id}});function tE(t){return E(function(){return m(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),(0,l.Message)({message:"正在处理中,请勿切换页面或导出其他回答,否则会导出失败",type:"loading",customClass:"toastMessage",iconClass:"iconfont icon-loading k12-loading-rotate",duration:0}),Q(),[4,new Promise(function(t){return setTimeout(t,500)})];case 1:return e.sent(),u.Z.emit(p.GM.INSERT_QUICK_INSTRUCTION,t),[4,new Promise(function(t){var e=!1,n=function(){e||(e=!0,u.Z.off(p.GM.DOCUMENT_SAVE_COMPLETED,n),t())};u.Z.on(p.GM.DOCUMENT_SAVE_COMPLETED,n),setTimeout(function(){return E(function(){var i,s;return m(this,function(a){switch(a.label){case 0:if(e)return[3,6];e=!0,u.Z.off(p.GM.DOCUMENT_SAVE_COMPLETED,n),console.log("手动触发一次内容更新来保存文档"),a.label=1;case 1:if(a.trys.push([1,4,,5]),i=tf(),!((s=Y.value)&&s.id))return[3,3];return console.log("成功触发保存文档"),[4,tl({title:"导出对话内容"+i,content:s.content?JSON.parse(s.content):O})];case 2:a.sent(),a.label=3;case 3:return[3,5];case 4:return console.error("手动保存失败:",a.sent()),[3,5];case 5:t(),a.label=6;case 6:return[2]}})})()},1e4)})];case 2:return e.sent(),l.Message.closeAll(),tp(),(0,l.Message)({message:"内容已导出",type:"success",customClass:"toastMessage",iconClass:"iconfont icon-yuanquangou-mianzhuang icon-safe-002"}),u.Z.emit("k12-operation-completed"),[3,4];case 3:return console.error("K12清空插入保存导出失败:",e.sent()),l.Message.closeAll(),(0,l.Message)({message:"操作失败,请重新尝试",type:"error",customClass:"toastMessage"}),u.Z.emit("k12-operation-completed"),[3,4];case 4:return[2]}})})()}return{__sfc:!0,router:e,selectedCourseInfo:C,curCapabilityData:T,props:t,_docxLib:g,route:I,EmptyDoc:O,category:2,MaxCount:200,editorReady:A,moreDocsRef:b,visibleDocuments:S,editorRef:N,editorId:y,defaultTitle:D,words:R,editorConfigUpdater:L,updating:x,canNewDoc:P,updatingTimer:w,DocState:k,docState:M,savedTime:U,hasPageHeader:G,shouldHideDocx:H,documents:W,currDoc:Y,documentsLoading:F,initAssistant:
1B,getNextPageDocuments:K,getDocument:V,createDocument:Z,updateDocument:X,exportDocument:$,publishDialogInfo:q,htmlDoc:z,exChangeData:J,handleClearDocument:Q,init:tt,initDocxEditor:te,initEvent:tn,removeEvent:ti,execCommandFromEditor:ts,execCommand:ta,loadMorePageDocx:to,handleUpdateContent:tr,updateContent:tl,handleNewDoc:function(){!(W.totalCount>=200)&&P.value&&(Z({title:D.value,content:""}),M.value=d.Hr.LOADED,tr.cancel())},handleChangeDoc:function(t){t&&t.id&&(V(t.id),td(),tr.cancel())},loadDocx:tc,handleShowDocuments:tu,handleHideDocuments:td,insertMarkdown:t_,formatDateTime:tf,publishDocx:th,handlePublish:function(){Y.value.content&&(th(),q.value.data.id=Y.value.id,q.value.data.title=Y.value.title,q.value.data.content=z.value.content,q.value.visible=!0)},handleExport:tp,chatParams:tv,k12ClearInsertSaveExport:tE,publishDialog:i.Z,Documents:_.Z,AppDownloadBar:f.Z,chat:h.Z,defaultConfig:p.u_}}},function(){var t,e,n,i,s,a,o,r=this._self._c,l=this._self._setupProxy;return r("div",{staticClass:"assistant__container",class:{"ai-edu-center":"ai-edu-center"===this.from}},[r(l.AppDownloadBar,{attrs:{product:"yuketang",tips:this.$t("AICenter.Preparation.PrepareAssistantAddinGuideText")}}),this._v(" "),r("div",{staticClass:"assistant__wrap flex"},[r("section",{staticClass:"assistant__docx",class:{"hidden-docx":l.shouldHideDocx,"ai-edu-center":"ai-edu-center"===this.from}},[r("header",{staticClass:"docx__header box-between"},[r("div",{staticClass:"docx__state box-start"},[r("div",{ref:"moreDocsRef",staticClass:"docs__more J_docs_more"},[this._m(0),this._v(" "),r(l.Documents,{directives:[{name:"show",rawName:"v-show",value:l.visibleDocuments,expression:"visibleDocuments"}],attrs:{documents:l.documents,"curr-doc":l.currDoc,loading:l.documentsLoading},on:{changeDoc:l.handleChangeDoc,hide:l.handleHideDocuments}})],1),this._v(" "),r("p",{staticClass:"docx-title text-ellipsis text-gray-001"},[this._v(this._s((null==(n=l.currDoc)?void 0:n.title)||l.defaultTitle))]),this._v(" "),l.docState===l.DocState.SAVING?r("div",{staticClass:"box-start ml12 text-gray-003"},[r("span",{staticClass:"f12"},[this._v(this._s(this.$t("AICenter.Preparation.AutoSaving")))])]):this._e(),this._v(" "),l.docState===l.DocState.SAVED?r("div",{staticClass:"box-start ml12 text-gray-003"},[this._m(1),this._v(" "),r("span",{staticClass:"f12"},[this._v(this._s(this.$t("AICenter.Preparation.Saved")))]),this._v(" "),l.savedTime?r("span",{staticClass:"pl3 f12"},[this._v(this._s(l.savedTime))]):this._e()]):this._e(),this._v(" "),r("p",{staticClass:"docx-words ml8 f12 text-gray-003"},[r("span",[this._v(this._s(this.$t("AICenter.Preparation.WordCount")))]),this._v(" "),r("span",[this._v(this._s(l.words))])])]),this._v(" "),r("div",{staticClass:"docx__actions box-center"},[r("div",{staticClass:"action__item box-start text-unit-normal",class:{disable:!l.canNewDoc},on:{click:l.handleNewDoc}},[this._m(2),this._v(" "),r("span",{staticClass:"pl3 f13"},[this._v(this._s(this.$t("AICenter.Preparation.NewDoc")))])]),this._v(" "),r("div",{staticClass:"action__item box-start text-unit-normal",class:{disable:!(null==(i=l.currDoc)?void 0:i.content)},on:{click:l.handleExport}},[this._m(3),this._v(" "),r("span",{staticClass:"pl3 f13"},[this._v(this._s(this.$t("AICenter.Preparation.Export")))])]),this._v(" "),r("div",{staticClass:"action__item box-start text-unit-normal",class:{disable:!(null==(s=l.currDoc)?void 0:s.content)},on:{click:l.handlePublish}},[this._m(4),this._v(" "),r("span",{staticClass:"pl3 f13"},[this._v(this._s(this.$t("AICenter.Preparation.Publish")))])]),this._v(" "),this.showExit?r("div",{staticClass:"action__item box-start text-unit-normal",on:{click:function(t){return l.router.go(-1)}}},[this._m(5),this._v(" "),r("span",{staticClass:"pl3 f13"},[this._v(this._s(this.$t("AICenter.Preparation.Exit")))])]):this._e()])]),this._v(" "),r("div",{ref:"editorRef",staticClass:"docx__container",attrs:{id:"editor"}}),this._v(" "),l.editorReady?this._e():r("section",{staticClass:"open__wrap"},[r("div",{staticClass:"open__screen"})])]),this._v(" "),r("div",{staticClass:"assistant__chat",class:{"full-width":l.shouldHideDocx}},[(null==(a=l.currDoc)?void 0:a.id)?r(l.chat,{key:null==(o=l.currDoc)?void 0:o.id,attrs:{"chat-params":l.chatParams,options:(t=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}
1))),i.forEach(function(e){var i;i=n[e],e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i})}return t}({},l.defaultConfig),e=e={placeholder:"",title:this.$t("AICenter.Preparation.PrepareAssistant")||"智能备课助手",description:"",search_tip:this.$t("AICenter.ResourceRetrieval.SearchTopic")||"帮我找一些学习资料,主题是:",search_placeholder:this.$t("AICenter.ResourceRetrieval.SearchTopicPlaceholder")||"请输入主题",isImage:!0,isIframe:!1,isWelcomeIcon:!1,isCreate:!0,isHistory:!0,isClean:!1,isGlobalDrawer:!1,isFeedback:!1,isInsert:!0,feedbackCross:!0,imageFixed:256,isLine:!0,onlyTips:!0,imgPreview:"outside",isFile:!0,isTools:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n.push.apply(n,i)}return n})(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t),decoration:{space:"16px",offset:"ai-edu-center"===l.props.from?l.hasPageHeader?"188px":"150px":"178px"}}}):this._e()],1)]),this._v(" "),r(l.publishDialog,{attrs:{"publish-dialog-info":l.publishDialogInfo}})],1)},[function(){var t=this._self._c;return this._self._setupProxy,t("p",{staticClass:"action__item icon__wrap box-center"},[t("i",{staticClass:"iconfont icon-liebiao icon-gray-002"})])},function(){var t=this._self._c;return this._self._setupProxy,t("p",{staticClass:"box-center icon__wrap"},[t("i",{staticClass:"iconfont icon-yuanquangou f16"})])},function(){var t=this._self._c;return this._self._setupProxy,t("p",{staticClass:"box-center icon__wrap"},[t("i",{staticClass:"iconfont icon-tianjia f16"})])},function(){var t=this._self._c;return this._self._setupProxy,t("p",{staticClass:"box-center icon__wrap"},[t("i",{staticClass:"iconfont icon-xiazai f16"})])},function(){var t=this._self._c;return this._self._setupProxy,t("p",{staticClass:"box-center icon__wrap"},[t("i",{staticClass:"iconfont icon-fabu f16"})])},function(){var t=this._self._c;return this._self._setupProxy,t("p",{staticClass:"box-center icon__wrap"},[t("i",{staticClass:"iconfont icon-guanbi f16"})])}],!1,null,"39e9c1fb",null).exports},34596:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}}),n(42463);var i=n(18108),s=n(31242),a=n(73121);function o(t,e,n,i,s,a,o){try{var r=t[a](o),l=r.value}catch(t){n(t);return}r.done?e(l):Promise.resolve(l).then(i,s)}var r=(0,n(81049).Z)({__name:"AppDownloadBar",props:{product:{type:String,default:"yudou"},tips:{type:String,default:"欢迎老师们下载雨豆桌面客户端,在课堂教学中应用语小伴、智能体等,体验智能上课全流程"}},setup:function(t){var e=(0,s.yj)(),n=(0,i.ref)(""),r=(0,i.ref)(""),l=(0,i.computed)(function(){return"yuketang"===t.product}),c={WIN_ONLINE:6,WIN_OFFLINE:7,WIN7:12,MAC_INTEL:5,MAC_ARM:10},u=(0,i.reactive)({win:null,win7:null,macIntel:null,macArm:null}),d=(0,i.computed)(function(){var t,e;return(null==(t=u.macIntel)?void 0:t.version)||(null==(e=u.macArm)?void 0:e.version)||""}),_=(0,i.computed)(function(){return!!(u.win||u.win7)}),f=(0,i.computed)(function(){return!l.value&&!!u.win7}),h=(0,i.computed)(function(){return u.win||u.win7}),p=(0,i.computed)(function(){var t,e;return(null==(t=u.win)?void 0:t.version)||(null==(e=u.win7)?void 0:e.version)||""}),v=(0,i.computed)(function(){return!!(u.win||u.win7||u.macIntel||u.macArm)});function E(t){return t?{url:t.download_url,version:t.version}:null}function m(){var t;return(t=function(){var t,n,i,s,o;return function(t,e){var n,i,s,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=r(0),o.throw=r(1),o.return=r(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function r(r){return function(l){var c=[r,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(n=1,i&&(s=2&c[0]?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[2&c[0],s.value]),c[0]){case 0:case 1:s=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,i=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(s=(s=a.trys).length>0&&s[s.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!s||c[1]>s[0]&&c[1]<s[3])){a.label=c[1];break}if(6===c[0]&&a.label<s[1]){a.label=s[1],s=c;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(c);break}s[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],i=0}finally{n=s=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(r){switch(r.label){case 0:if(!(t=e.params.course_id))return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,a.ZP.get("/c27/online_courseware/mobile_app/app_version/desktop_latest/",{agent_id:t})];case 2:return s=(null==(i=r.sent())||null==(n=i.data)?void 0:n.list)||[],o={}
1,s.forEach(function(t){o[t.platform]=t}),u.win=E(o[c.WIN_ONLINE]||o[c.WIN_OFFLINE]),u.win7=E(o[c.WIN7]),u.macIntel=E(o[c.MAC_INTEL]),u.macArm=E(o[c.MAC_ARM]),[3,4];case 3:return console.error("获取桌面客户端版本失败:",r.sent()),[3,4];case 4:return[2]}})},function(){var e=this,n=arguments;return new Promise(function(i,s){var a=t.apply(e,n);function r(t){o(a,i,s,r,l,"next",t)}function l(t){o(a,i,s,r,l,"throw",t)}r(void 0)})})()}return(0,i.onMounted)(function(){m()}),{__sfc:!0,props:t,route:e,lastClickType:n,lastWinClickType:r,isYuketang:l,PLATFORM:c,downloads:u,macVersion:d,hasWin:_,showWinDropdown:f,winLink:h,winVersion:p,hasDownloads:v,toInfo:E,fetchVersions:m,handleClick:function(t){n.value=t},handleWinClick:function(t){r.value=t}}}},function(){var t=this._self._c,e=this._self._setupProxy;return t("div",{staticClass:"app-download-bar flex items-center justify-center space-x-12",class:{"is-yuketang":e.isYuketang}},[t("div",{staticClass:"app-download-bar-tips"},[this._v(this._s(this.tips))]),this._v(" "),e.isYuketang?this._e():t("img",{attrs:{src:"https://fe-static-yuketang.rainclassroom.com/fe/static/assets/rainweb/yudou-desktop-icon.png",width:"20",height:"20"}}),this._v(" "),e.hasDownloads?t("div",{staticClass:"app-download-bar-version flex items-center justify-between space-x-12"},[e.hasWin?[e.showWinDropdown?t("div",{staticClass:"app-download-bar-version-dropdown flex items-center justify-between space-x-4"},[t("a",{staticClass:"underline"},[this._v("Windows V"+this._s(e.winVersion))]),this._v(" "),t("i",{staticClass:"iconfont icon-jiantoudan-xiangxia"}),this._v(" "),t("div",{staticClass:"panel"},[t("div",{staticClass:"panel-header"},[this._v("Windows版本选择")]),this._v(" "),t("div",{staticClass:"panel-body"},[e.downloads.win?t("a",{staticClass:"flex items-center justify-between space-x-4 mb-2",class:{active:"win10"===e.lastWinClickType},attrs:{href:e.downloads.win.url},on:{click:function(t){return e.handleWinClick("win10")}}},[t("div",[this._v("Win10 版本")]),this._v(" "),t("i",{staticClass:"iconfont icon-yuanquangouda-mianzhuang"})]):this._e(),this._v(" "),t("a",{staticClass:"flex items-center justify-between space-x-4 mb-2",class:{active:"win7"===e.lastWinClickType},attrs:{href:e.downloads.win7.url},on:{click:function(t){return e.handleWinClick("win7")}}},[t("div",[this._v("Win7 版本")]),this._v(" "),t("i",{staticClass:"iconfont icon-yuanquangouda-mianzhuang"})])])])]):t("a",{staticClass:"underline",attrs:{href:e.winLink.url}},[this._v("Windows V"+this._s(e.winVersion))])]:this._e(),this._v(" "),e.downloads.macIntel||e.downloads.macArm?t("div",{staticClass:"app-download-bar-version-dropdown flex items-center justify-between space-x-4"},[t("a",{staticClass:"underline"},[this._v("Mac V"+this._s(e.macVersion))]),this._v(" "),t("i",{staticClass:"iconfont icon-jiantoudan-xiangxia"}),this._v(" "),t("div",{staticClass:"panel"},[t("div",{staticClass:"panel-header"},[this._v("Mac版本选择")]),this._v(" "),t("div",{staticClass:"panel-body"},[e.downloads.macIntel?t("a",{staticClass:"flex items-center justify-between space-x-4 mb-2",class:{active:"x64"===e.lastClickType},attrs:{href:e.downloads.macIntel.url},on:{click:function(t){return e.handleClick("x64")}}},[t("div",[this._v("Intel 芯片版本")]),this._v(" "),t("i",{staticClass:"iconfont icon-yuanquangouda-mianzhuang"})]):this._e(),this._v(" "),e.downloads.macArm?t("a",{staticClass:"flex items-center justify-between space-x-4 mb-2",class:{active:"arm64"===e.lastClickType},attrs:{href:e.downloads.macArm.url},on:{click:function(t){return e.handleClick("arm64")}}},[t("div",[this._v("M 系列芯片版本")]),this._v(" "),t("i",{staticClass:"iconfont icon-yuanquangouda-mianzhuang"})]):this._e()])])]):this._e()],2):this._e()])},[],!1,null,"190b94a6",null).exports},68213:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return l}}),n(63649),n(13794),n(87481),n(35286),n(20573),n(16446),n(13054),n(88761),n(60668),n(42463);var i=n(20748),s=n(18108),a=n(12884),o=n(64101);function r(t,e,n,i,s,a,o){try{var r=t[a](o),l=r.value}catch(t){n(t);return}r.done?e(l):Promise.resolve(l).then(i,s)}var l=(0,n(81049).Z)({__name:"lesson-assistant",setup:function(t){var e=(0,o.ol)(["setCurCapabilityData","setSelectedCourseInfo"]),n=e.setCurCapabilityData,l=e.setSelectedCourseInfo,c=(0,a._p)("aiEduCenterStore").useState,u=c(["selectedCourse"]).selectedCourse,d=(0,s.ref)(!1);function _(){var t;return(t=function(){var t;return function(t,e){var n,i,s,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=r(0),o.throw=r(1),o.return=r(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function r(r){return function(l){var c=[r,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(n=1,i&&(s=2&c[0]?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[2&c[0],s.value]),c[0]){case 0:case 1:s=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,i=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(s=(s=a.trys).length>0&&s[s.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!s||c[1]>s[0]&&c[1]<s[3])){a.label=c[1];break}if(6===c[0]&&a.label<s[1]){a.label=s[1],s=c;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(c);break}s[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],i=0}finally{n=s=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:t="".concat(API.getAgentCapability.replace(/\{id\}/,u.value.id),"?category=1&is_all_team=1"),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,request.get(t,{source:"ai_center"})];case 2:return n(e.sent().data[0]),d.value=!0,[3,5];case 3:return console.error("获取能力数据报错",e.sent()),[3,5];
1case 4:return[7];case 5:return[2]}})},function(){var e=this,n=arguments;return new Promise(function(i,s){var a=t.apply(e,n);function o(t){r(a,i,s,o,l,"next",t)}function l(t){r(a,i,s,o,l,"throw",t)}o(void 0)})})()}return(0,s.onMounted)(function(){l(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){var i;i=n[e],e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i})}return t}({},u.value)),_()}),{__sfc:!0,setCurCapabilityData:n,setSelectedCourseInfo:l,useState:c,selectedCourse:u,init:d,getCurCapabilityData:_,lessonAssistant:i.default}}},function(){var t=this._self._c,e=this._self._setupProxy;return t("div",{staticClass:"lesson-assistant"},[e.init?t(e.lessonAssistant,{attrs:{showExit:!0,from:"ai-edu-center"}}):this._e()],1)},[],!1,null,"30dc75a6",null).exports},64101:function(t,e,n){"use strict";n.d(e,{ol:function(){return p},eJ:function(){return _},Z7:function(){return h},Ab:function(){return f}});var i=n(18108);function s(t,e,n,i){return 3===t.length?t(e,n,i):t(e,n?`${n}/${i}`:i)}function a(t,e){return(0,i.computed)(()=>t.getters[e])}function o(t,e){return function(){return t.commit.apply(t,[e,...arguments])}}function r(t,e){return function(){return t.dispatch.apply(t,[e,...arguments])}}function l(t,e,n,i){if(!n)return{};if(n instanceof Array)return n.reduce((n,a)=>(n[a]=s(i,t,e,a),n),{});let a={};for(let o in n)n.hasOwnProperty(o)&&(a[o]=s(i,t,e,n[o]));return a}function c(){let t=(0,i.getCurrentInstance)();if(!t)throw Error('You must use this function within the "setup()" method, or insert the store as first argument.');let{$store:e}="proxy"in t?t.proxy:t;return e}function u(t,e){return(0,i.computed)(()=>t.state[e])}function d(t,e,n){let s=e.split("/").reduce((t,e)=>t[e],t.state);return(0,i.computed)(()=>s[n])}function _(t,e,n){let i,s,a;return arguments.length>=3?(i=t||c(),s=e||null,a=n||null):2==arguments.length?("string"==typeof t?(i=c(),s=t||null):(i=t||c(),s=null),a=e||null):(i=c(),s=null,a=t||null),l(i,s,a,s?d:u)}function f(t,e,n){let i,s,o;return arguments.length>=3?(i=t||c(),s=e||null,o=n||null):2==arguments.length?("string"==typeof t?(i=c(),s=t||null):(i=t||c(),s=null),o=e||null):(i=c(),s=null,o=t||null),l(i,s,o,a)}function h(t,e,n){let i,s,a;return arguments.length>=3?(i=t||c(),s=e||null,a=n||null):2==arguments.length?("string"==typeof t?(i=c(),s=t||null):(i=t||c(),s=null),a=e||null):(i=c(),s=null,a=t||null),l(i,s,a,o)}function p(t,e,n){let i,s,a;return arguments.length>=3?(i=t||c(),s=e||null,a=n||null):2==arguments.length?("string"==typeof t?(i=c(),s=t||null):(i=t||c(),s=null),a=e||null):(i=c(),s=null,a=t||null),l(i,s,a,r)}},12884:function(t,e,n){"use strict";n.d(e,{_p:function(){return s}});var i=n(64101);function s(t,e){let n;if(1==arguments.length)e=t;else if(n=t,!e)throw Error("Namespace is missing to provide namespaced helpers");return{useState:t=>(0,i.eJ)(n,e,t),useGetters:t=>(0,i.Ab)(n,e,t),useMutations:t=>(0,i.Z7)(n,e,t),useActions:t=>(0,i.ol)(n,e,t)}}},1948:function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{$$:function(){return x},AC:function(){return p},Cd:function(){return l},D:function(){return _},F4:function(){return u},GM:function(){return a},IP:function(){return b},Jn:function(){return C},KW:function(){return d},M:function(){return y},OT:function(){return I},Px:function(){return v},SF:function(){return O},Te:function(){return o},Ve:function(){return T},Z$:function(){return S},_g:function(){return D},aH:function(){return r},bV:function(){return M},e1:function(){return P},e5:function(){return c},h8:function(){return G},hz:function(){return L},ib:function(){return w},j$:function(){return g},kD:function(){return U},lU:function(){return k},q9:function(){return N},qf:function(){return R},r_:function(){return f},u_:function(){return m},wA:function(){return h},yv:function(){return A},zl:function(){return E}}),n(56325),n(61657),n(42463);var s,a={UPDATE_HISTORY:"update-history",UPDATE_HISTORY_LIST:"update-history-list",INSTRUCTION_EDIT:"edit-instruction",INSTRUCTION_OPEN:"open-instru
1ction",INSTRUCTION_CLOSE:"close-instruction",TODOS_DRAWER_OPEN:"todos-drawer-open",TODOS_DRAWER_CLOSE:"todos-drawer-close",TODOS_BUTTON_SHOW:"todos-button-show",TODOS_BUTTON_HIDE:"todos-button-hide",TODOS_CARD_CLOSE:"todos-card-close",INSTRUCTION_SEND:"send-instruction",INSERT_QUICK_INSTRUCTION:"insert-quick-instruction",INSTRUCTION_SEARCH:"search-instruction",EMIT_SESSION_INFO:"emit-session-info",EMIT_SEARCH_OPEN_STATUS:"emit-search-open-status",PRECIEW_IMAGE:"preview-image",INSTRUCTION_MUTIL_CHAT:"mutil-chat-instruction",BEFORE_SEND_MESSAGE:"before-send-message",UPDATE_CHAT_WINDOW_WIDTH:"update-chat-window-width",INSTRUCTION_UPDATE:"update-instruction",AI_COURSE_ID_CHANGED:"ai-course-id-changed",OPEN_CHAT_LEARNING_CENTER_WINDOW:"open-chatbot-window",CLOSE_CHAT_LEARNING_CENTER_WINDOW:"close-chatbot-window",OPEN_CHAT_ARTICLE_READER:"open-chat-article-reader",CLOSE_CHAT_ARTICLE_READER:"close-chat-article-reader",OPEN_CHAT_VIDEO_PLAYER:"open-chat-video-player",CLOSE_CHAT_VIDEO_PLAYER:"close-chat-video-player",CHAT_READY:"chat-ready",CHAT_INTERNAL_ERROR:"chat-internal-error",CHAT_LEARNING_CENTER_AGERNT_CARD_ITEM_CLICK:"chat-learning-center-anent-card-item-click",CHAT_INNER_VIDEO_STATUS_OPEN:"chat-inner-video-status-open",CHAT_INNER_VIDEO_STATUS_CLOSE:"chat-inner-video-status-close",CHAT_TO_RECEIVE_MESSAGE_START:"chat-to-receive-message-start",CHAT_TO_RECEIVE_MESSAGE_END:"chat-to-receive-message-end",CHAT_RECEIVE_CONTAINS_SENSITIVE_WORDS:"chat-receive-contains-sensitive-words",TTS_TIMEUPDATE:"tts-timeupdate",UPDATE_TTS_SUBTITLES:"update-tts-subtitles",CHAT_HISTORY_DELETED_SUCCESSFUL:"chat_history_deleted_successful",STOP_GENERATING:"stop-generating",CHAT_ACCEPT_LEARN_PROGRAM:"chat-accept-learn-program",STOP_GENERATING_DISPATCH:"stop-generating-dispatch",REFRESH_INSTRUCTION_LIST:"refresh-instruction-list",UPDATE_HISTOTY_RECORD:"update-history-record",OPEN_INPUT_TEXTAREA:"open-input-textarea",ACTION_SEND_MESSAGE:"action-send-message",EXPORT_TABLE:"export-table",PAGE_REDIRECTION:"page-redirection",STOP_MESSAGE_TRANSITING:"stop-message-transiting",UPDATE_SVG_HISTORY:"update:history",CHAT_OPEN_TTSAudioPlay:"chat-open-tts-audio-play",CHAT_PLAY_TEXT:"chat-play-text",CHAT_PLAY_AUDIO:"chat-play-audio",CHAT_WINDOW_SCROLLTO_BOTTOM:"chat-window-scrollto-bottom",SIMULATED_STREAMING_REPLY_ENDSHANDLER:"simulated-streaming-reply-endshandler",CHAT_WINDOW_SIMULATED_STREAMING_TRANSTING:"chat-window-simulated-streaming-transting",TTS_PLAY_FULL_ENDED:"tts-play-full-ended",CLEAR_DOCUMENT_CONTENT:"CLEAR_DOCUMENT_CONTENT",EXPORT_DOCUMENT:"EXPORT_DOCUMENT",DOCUMENT_SAVE_COMPLETED:"DOCUMENT_SAVE_COMPLETED",K12_CLEAR_INSERT_SAVE_EXPORT:"K12_CLEAR_INSERT_SAVE_EXPORT","K12-OPERATION-COMPLETED":"K12-OPERATION-COMPLETED",CHAT_ANSWER_RESULT:"chat-answer-result",CHAT_TOOLS_MSG_TRANSLATE:"chat_tools_msg_translate",CHAT_TOOLS_MSG_INVISIBLE:"chat-tools-msg-invisible",CHAT_TOOLS_MSG_ASSISTANT:"chat_tools_msg_assistant",CHAT_TOOLS_MSG_SPEAKING:"chat_tools_msg_speaking",CHAT_TOOLS_MSG_PLAYING:"chat_tools_msg_playing",CHAT_TOOLS_SMSG_GRAMMAR:"chat_tools_smsg_grammar",CHAT_TOOLS_SMSG_PRONOUNCE:"chat_tools_smsg_pronounce",CHAT_TOOLS_SMSG_CONTENT:"chat_tools_smsg_content",TTS_LOOP_ONCE_FINISHED:"tts_loop_once_finished",CHAT_TOOLS_MSG_STOP_SPEAKING:"chat_tools_msg_stop_speaking",OPEN_CHAT_LEARNING_PARTNER:"open-chat-learning-partner",OPEN_LESSON_PREPARE_ASSISTANT:"open-lesson-prepare-assistant",OPEN_PAGE_NAV:"open-page-nav",ENTER_INTO_WORKFLOW:"Enter-Into-Workflow",QUIT_OUT_WORKFLOW:"Quit-Out-Workflow",ANIMATE_MESSAGE_END:"animate-message-end",OPEN_STREAM_LINK_CONTENT:"open-stream-link-content",DELETE_CONVERSATION_LIST:"delete-conversation-list",RECEIVED_ITEM_COPY:"received_item_copy",RECORDING_PLAYING_PAUSE:"recording-playing-pause",RECORDING_PLAYING_CONTINUE:"recording-playing-continue",RECORDING_PLAYING_STOP:"recording-playing-stop",STOP_ALL_PLAYBACK:"stop-all-playback",STOP_OTHER_PLAYBACK:"stop-other-playback",STOP_ALL_AUDIO_PLAYER_PLAYBACK:"stop-all-audio-player-playback",SEARCH_CLOSE:"SEARCH_CLOSE"},o={API_REQUEST_FAILED:"api-request-failed"},r={UPDATE_FORMDATA:"update_formdata",UPDATE_FORMDATA_STATUS:"update_formdata_status",UPDATE_CUSTOM_COVERS:"update_custom_background"},l={UPDATA_EXT_DATA:"updata-ext-data",ACTION_CREATE_SESSION:"action-create-session",ACTION_SEND_MESSAGE:"action-send-message",ACTION_CREAT_SESSION_SEND_MESSAGE:"action-create-session-send-message",ACTION_CREATE_SESSION_SEARCH_RESOURCE:"action-create-session-search-resource",GET_CHAT_SESSION_INFO:"get-chat-session-info",CLOSE_CHATBOT_WINDOW:"CLOSE_CHATBOT_WINDOW",GOTO_LOGIN:"GOTO_LOGIN",NOT_LOGGED_IN_INIT:"NOT_LOGGED_IN_INIT",PREVIEW_IMAGE:"PREVIEW_IMAGE",CLOSE_PREVIEW_IMAGE:"CLOSE_PREVIEW_IMAGE",CHAT_READY:"chat-ready",CHAT_RECEIVE_MESSAGE:"received-message",BEFORE_SEND_MESSAGE:"before-send-message",CHAT_OPEN_TTSAudioPlay:"chat-open-tts-audio-play",ENTER_INTO_WORKFLOW:"Enter-Into-Workflow",QUIT_OUT_WORKFLOW:"Quit-Out-Workflow",CHATBOT_FOCUS:"CHATBOT_FOCUS",CHATBOT_BLUR:"CHATBOT_BLUR",SWITCH_AAVIEW_TAB:"SWITCH_AAVIEW_TAB"},c={CHAT_READY:"openapi-chat-ready",RECEIVED_MESSAGE:"openapi-received-message",BEFORE_SEND_MESSAGE:"openapi-before-send-message",RECEIVE_MESSAGE_CANCELLED:"open
1api-receive-message-be-cancelled",STOP_GENERATING:"openapi-stop-generating"},u={LIKE:1,ORIGIN:0,DISLIKE:-1},d=Symbol("chatParams"),_=Symbol("chatOptions"),f=Symbol("chatData"),h=Symbol("conversationId"),p=Symbol("cmsConfigKey"),v=Symbol("modelProvideKey"),E=Symbol("workflowAgentProvideKey"),m={title:"AI 学伴",description:"选择或输入感兴趣的问题,AI 学伴为你答疑解惑",placeholder:"学习有困惑?问问你的 AI 学伴吧~",receive_error_message:"抱歉,我暂时无法回答这个问题,让我先学习一下吧!",waiting_message:"正在思考中...",receive_cancel_message:"已取消"},C={KNOWLEDGE_BASE:1,THESIS:2,XUETANGX:3,RAINWEB:4,OTHERS:5},T={VIDEO:1,THESIS:2,TEXTBOOK:3,CASE:4,FORUM:5},g={BASE:1,THU:-1,AHU:-2,CULTIVATE:0},I={STUDENT:5,TEACHER:1,AUDITOR:6},O={CLASSROOM_INDEX:1,KNOWLEDGE_VIDEO_UNIT:2,CLASSROOM_VIDEO_UNIT:3,CLASSROOM_PLAYBACK_BUDONG:4,CLASSROOM_PLAYBACK_EXERCISE_BUDONG:5,CLASSROOM_COURSEWARE_BUDONG:6,CLASSROOM_COURSEWARE_EXERCISE_BUDONG:7,WORKBENCH:8,CLASSROOM_ARTICLE:9,CLASSROOM_FORUM:10,CLASSROOM_AUDIO_UNIT:11,CLASSROOM_LIVE_UNIT:12,CLASSROOM_EXERCISE:13,CLASSROOM_QUIZ:14,LESSON_COMMAND_TASK:15,LESSON_PPT_BUDONG:16,KNOWLEDGE_NODE_UNIT:17,KNOWLEDGE_ARTICLE_UNIT:18,KNOWLEDGE_FORUM_UNIT:19,CLASSROOM_HOMEWORK_BUDONG:20,CLASSROOM_EXAM_BUDONG:21,TRAIN_CLASSROOM_MY_JOINED:22,TRAINING_CLASS:23,SHARED_INTELLIGENT_LINK:24,TRANING_PARTNER_BUDONG:25,AI_EDU_CENTER_STUDENT:26,AI_EDU_CENTER_TEACHER:27,LEARNING_ASSISTANT_SHARE_LINK:28,KNOWLEDGE_VIDEO_UNIT_BUDONG:29,KNOWLEDGE_FORUM_UNIT_BUDONG:30,KNOWLEDGE_ARTICLE_UNIT_BUDONG:31,CLASSROOM_OPEN_HOMEWORK_ANSWER:32,MISTAKE_SET_BUDONG:33,TRAIN_Q_A_AGENT:34,KNOWLEDGE_FORUM_EXERCISE:35,KNOWLEDGE_FORUM_EXERCISE_BUDONG:36,MISTAKE_SET:37,TRAINING_PARTNER:38,CLASSROOM_VIDEO_UNIT_BUDONG:39,CLASSROOM_FORUM_BUDONG:40,CLASSROOM_ARTICLE_BUDONG:41,TRAIN_AI_SMART_SPACE:42,TEACHING_ASSISTANT_AVATAR_CHAT:101,TEACHING_ASSISTANT_SCREENSHOT_EXPLAIN:102,TEACHING_ASSISTANT_SCREENSHOT_ASK_AI:103,TEACHING_ASSISTANT_DESKTOP_CHAT:104},A={XUETANGX:1,RAIN_WEB:2},b=["qc","search_image_recommend","search_lib_recommend"],S={MULTI_ROUND_BOUNDARY:-1,RECEIVED_MESSAGE:0,BOUNDARY:-100,RECOMMENDS:-200,SENSITIVE_WORDS:1,COZE_ERROR:500005,TELEPROMPT_CARD:-300},N={KNOWLEDGE:"search_knowledge",KNOWLEDGE_SLICE:"get_related_knowledge",QUESTION:"get_exercise",QUIZ:"get_quiz"},y={REVIEW_VIDEO:0,COMMON_VIDEO:1,ARTICLE:2,THESIS:3,CASE:4},D={MutilTalk:13,WorkFlow:1},R={TALK:"talk",WORKFLOW_INIT:"say_hello",STR:"str",OBJ:"obj",SEARCH_RESULT:"search_result",SEARCH:"search",SYSTEM_AGENT:"system_agent",WORKFLOW_AGENT:"workflow-agent",SPEECH_EVALUATOR:"speech_evaluator",SPEECH_EVALUATOR_V2:"speech_evaluator_v2",AI_CORRECTION:"ai_correction",FOLLOW_READ:"follow_read"},L={DEEPSEEK:"DeepSeek",ZHIPUQINGYAN:"GLM-4-Plus",KIMI:"Moonshot-v1",ZHIPUQINGYAN_MODEL:"智谱GLM-4-Plus",KIMI_MODEL:"Moonshot-v1",DEEPSEEK_R1:"DeepSeek-R1",DEEPSEEK_V3:"DeepSeek-V3"},x={INPUT_CARD:"input_card",CORRECTION_INPUT_CARD:"correction_input_card",AI_CORRECTION_TASK_CARD:"ai_correction_task",RECOGNITION_CARD:"recognition_card",CORRECTION_CARD:"correction_card",COMMON_CARD:"common_card",CREATION_CARD:"creation_card",JUMP_LINK_CARD:"jump_link_card",KNOWLEDGE_SELECT_CARD:"node_list",EXERCISE_CARD:"ai_question",REPORT_CARD:"summary_report",UPLOAD_AUDIO_CARD:"upload_audio_card",ANALYSIS_REPORT_CARD:"analysis_report_card",UPLOAD_REPORT_CARD:"upload_report_card",STREAM_LINK_CARD:"collect_data_card",THINKING_CARD:"thinking_card",FILE_PUSH_CARD:"file_push_card",PBL_CHOICE_LIST:"pbl_choice_list",PBL_QUESTION_LIST:"pbl_question_list",ENG_PBL_QUESTION_LIST:"eng_pbl_question_kv",TEXT_CARD:"text_card",STEP_COMMON_CARD:"step_common_card"},P={TEXT:"text",RECORD:"record"},w={PLAYING:1,UNPLAYED:0,STOP:3},k={ENTITY_NULL:0,ENTITY_CLASSROOM:1,ENTITY_INSTANCE:2,ENTITY_KNOWLEDGE_GRAPH:3,ENTITY_TEACHER_WORKSPACE:4,ENTITY_PPT:5,ENTITY_PROMPT_TEST:6,ENTITY_PAOD:7,ENTITY_LESSON:8,ENTITY_SUPPORT:9,ENTITY_COURSE:10,ENTITY_DISPLAY_ASSISTANT:11,ENTITY_MAIN_STATION_CLASSROOM:12,ENTITY_MULTI_ROUND_PROMPT:13,ENTITY_LESSON_PROMPT_TASK:14,ENTITY_KG_KP:15,ENTITY_LESSON_ASSISTANT_UNKNOWN:16,ENTITY_KG_KP3:17,ENTITY_OPEN_PLATFORM:18,ENTITY_LEARNING_PLAN:19,ENTITY_GENERAL_DISCIPLINE_ENGINE:20,ENTITY_AI_PLANNING:21,ENTITY_SHARE_LINK:22,ENTITY_TRAIN_CLASS:23,ENTITY_EXERCISES_PROBLEM:24,ENTITY_QUIZ_PROBLEM:25,ENTITY_SELF_TEST_PROBLEM:26,ENTITY_WORKFLOW_SCENES:27,ENTITY_AI_CENTER:28,ENTITY_UNIVERSITY:29,ENTITY_STU_AGENT:30,ENTITY_STUDY_SPACE_KP:31,ENTITY_STUDY_SPACE_LEAF:32,ENTITY_TRAIN_UNIVERSITY:33,ENTITY_MISTAKE_NOTE:38,ENTITY_PRO_PORTAL:42,ENTITY_TRAIN_AI_SMART_SPACE:43},M={ALIYUN_DEFAULT:"1",ALIYUN_CUSTOM:"2",DOUBAO_DEFAULT:"3",DOUBAO_CUSTOM:"4"},U={UN_SUBMITTED:"0",SUBMITTED_NOT_GEN:"1",SUBMITTED_GEN:"2",SUBMITTED_FAILED:"3"},G=(i(s={},U.UN_SUBMITTED,"未提交"),i(s,U.SUBMITTED_NOT_GEN,"生成中"),i(s,U.SUBMITTED_GEN,"提交"),i(s,U.SUBMITTED_FAILED,"批改失败"),s)},5123:function(t,e,n){"use strict";n.d(e,{F:function(){return c}}),n(86067),n(42463),n(63649),n(76556),n(35350),n(13794),n(87481),n(35286),n(20573),n(16446),n(13054),n(88761),n(60668),n(88353),n(47482);var i=n(18108),s=n(41990);function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function o(t,e,n,i,s,a,o){try{var r=t[a](o),l=r.value}catch(t){n(t);return}r.done?e(l):Promise.resolve(l).then(i,s)}function r(t){return function(){var e=this,n=arguments;
1return new Promise(function(i,s){var a=t.apply(e,n);function r(t){o(a,i,s,r,l,"next",t)}function l(t){o(a,i,s,r,l,"throw",t)}r(void 0)})}}function l(t,e){var n,i,s,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=r(0),o.throw=r(1),o.return=r(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function r(r){return function(l){var c=[r,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(n=1,i&&(s=2&c[0]?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[2&c[0],s.value]),c[0]){case 0:case 1:s=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,i=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(s=(s=a.trys).length>0&&s[s.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!s||c[1]>s[0]&&c[1]<s[3])){a.label=c[1];break}if(6===c[0]&&a.label<s[1]){a.label=s[1],s=c;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(c);break}s[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],i=0}finally{n=s=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function c(t){var e=t.course,n=t.category,o=t.title;console.log("option:",t);var c=(0,i.ref)(!1),u=(0,i.reactive)({page:1,pageSize:20,totalCount:0,list:[]}),d=(0,i.ref)(null),_=(0,i.ref)(!1);function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=API.getOnlineDocumentList.replace("{agent_id}",null==e?void 0:e.id),i={page_size:u.pageSize,page:t||u.page};return request.get(n,i).then(function(e){if(e&&e.success&&e.data){console.log(e.data);var n,i=e.data,s=i.count,o=i.results;u.totalCount=s,(n=u.list).push.apply(n,function(t){if(Array.isArray(t))return a(t)}(o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(o)||function(t,e){if(t){if("string"==typeof t)return a(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u.page=t}return u}).catch(function(t){return console.error("getDocumentList:",t),null})}function h(t){var n=API.getOnlineDocument.replace("{agent_id}",null==e?void 0:e.id).replace("{doc_id}",t);return request.get(n,{}).then(function(t){return t&&t.success&&t.data&&(console.log("getDocument:",t.data),d.value=t.data),d}).catch(function(t){return console.error("getDocument:",t),null})}function p(t){var i=API.createOnlineDocument.replace("{agent_id}",null==e?void 0:e.id),s={title:null==t?void 0:t.title,agent_id:null==e?void 0:e.id,category:n,content:null==t?void 0:t.content};(null==t?void 0:t.title)&&request.post(i,s).then(function(e){if(e&&e.success&&e.data){console.log("创建文档:",e.data);var n=e.data,i=n.id;n.title,t.id=i,u.totalCount+=1,u.list.unshift(t),d.value=t}}).catch(function(t){console.error("createDocument:",t)})}return{isLoading:c,documents:u,currDoc:d,documentsLoading:_,initAssistant:function(){return r(function(){var t,n,i,s;return l(this,function(a){switch(a.label){case 0:return[4,f()];case 1:return a.sent(),u.list&&u.list.length>0?(t="AICourse".concat(null==e?void 0:e.id,"CurrentDoc"),(n=localStorage.getItem(t))?u.list.find(function(t){return t.id===Number(n)})||(n=null==(s=u.list[0])?void 0:s.id):n=null==(i=u.list[0])?void 0:i.id,h(Number(n))):p({title:o,content:""}),[2]}})})()},getDocumentList:f,getNextPageDocuments:function(){return r(function(){var t;return l(this,function(e){switch(e.label){case 0:if(console.log("getNextPageDocuments"),t=u.page,!(t*u.pageSize<u.totalCount))return[3,3];if(_.value)return[2];return _.value=!0,[4,f(t+1)];case 1:return e.sent(),[4,new Promise(function(t){setTimeout(t,1e3)})];case 2:e.sent(),_.value=!1,e.label=3;case 3:return[2]}})})()},getDocument:h,createDocument:p,updateDocument:function(t){if(null==t?void 0:t.id){var n=API.updateOnlineDocument.replace("{agent_id}",null==e?void 0:e.id).replace("{doc_id}
1",t.id),i={title:null==t?void 0:t.title,content:null==t?void 0:t.content};return request.put(n,i).then(function(e){if(e&&e.success&&e.data){console.log("updateDocument:",e.data);var n=e.data,i=n.id,s=n.order;t.id=i,t.order=s;var a=u.list,o=a.findIndex(function(t){return t.id===i});return -1!==o&&(a.splice(o,1,t),u.list=a),!0}return!1}).catch(function(t){return console.error("updateDocument:",t),!1})}},deleteDocument:function(t){var n=API.deleteOnlineDocument.replace("{agent_id}",null==e?void 0:e.id).replace("{doc_id}",t);return request.delete(n,{}).then(function(e){if(console.log(e),e&&e.success){var n=u.list,i=n.findIndex(function(e){return e.id===t});return -1!==i&&(n.splice(i,1),u.list=n),!0}return!1}).catch(function(t){return console.error("deleteDocument:",t),!1})},exportDocument:function(){var t,n=API.exportOnlineDocument.replace("{agent_id}",null==e?void 0:e.id).replace("{doc_id}",null==(t=d.value)?void 0:t.id);return request.get(n).then(function(t){return console.log(t),t&&t.success&&window.open(t.data.file_url),!1}).catch(function(t){return(0,s.Message)({message:t.msg||"导出失败,请重新尝试。",type:"error",customClass:"toastMessage",iconClass:"iconfont icon-weidu-mianzhuang"}),console.error("exportDocument:",t),!1})}}}},85369:function(t,e,n){"use strict";e.Z=(0,n(98391).Z)()},96488:function(t,e,n){"use strict";function i(){var t=null;if(window.localStorage&&(t=window.localStorage.getItem("_uuid")),!t){t="xxxxxyxxxxxyxx4xxxyxxxxxyxxxxxyxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)});try{window.localStorage.setItem("_uuid",t)}catch(t){}}return t}n.d(e,{F:function(){return i}}),n(13794),n(87481),n(42463),n(42682)},18615:function(t,e,n){"use strict";n(63064),n(35350),n(63649),n(80764),n(35621),n(87481),n(56325),n(61657),n(42463),n(79136),n(13054),n(88761),n(60668);var i=n(69800),s=n.n(i);function a(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return{get:function(e){try{var n=t.getItem(e);if(null===n)return null;try{return JSON.parse(n)}catch(t){if("undefined"===n)return;if("null"===n)return null;if("true"===n)return!0;if("false"===n)return!1;if(!isNaN(n))return Number(n);return n}}catch(e){return console.error("Error getting data from ".concat(t,":"),e),null}},set:function(e,n){try{var i=(void 0===n?"undefined":a(n))==="object"?JSON.stringify(n):n;t.setItem(e,i)}catch(e){console.error("Error setting data to ".concat(t,":"),e)}},getAttrs:function(t,e){var n=this.get(t);return(void 0===n?"undefined":a(n))!=="object"||null===n?e.map(function(){}):e.map(function(e){try{var i=e.split("."),s=n,o=!0,r=!1,l=void 0;try{for(var c,u=i[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var d=c.value;if(!(s&&(void 0===s?"undefined":a(s))==="object"&&Object.prototype.hasOwnProperty.call(s,d)))return;s=s[d]}}catch(t){r=!0,l=t}finally{try{o||null==u.return||u.return()}finally{if(r)throw l}}return s}catch(n){console.error('Error getting attribute "'.concat(e,'" from key "').concat(t,'":'),n);return}})},remove:function(e){try{t.removeItem(e)}catch(e){console.error("Error removing data from ".concat(t,":"),e)}}}}var r=Object.create(null);r.local=o(localStorage),r.session=o(sessionStorage),r.cookie={get:function(t){var e=s().get(t);if("undefined"!==e){if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;if(!isNaN(e))return Number(e);try{return JSON.parse(e)}catch(t){return e}}},set:function(t,e,n){s().set(t,e,n)},remove:function(t){s().remove(t)}},e.Z=r},92085:function(t,e,n){"use strict";var i=n(24961),s=n(8984),a=n(14716),o=n(33864),r=n(3481),l=function(t,e,n,c,u,d,_,f){for(var h,p,v=u,E=0,m=!!_&&o(_,f);E<c;)E in n&&(h=m?m(n[E],E,e):n[E],d>0&&i(h)?(p=s(h),v=l(t,e,h,p,v,d-1)-1):(a(v+1),r(t,v,h)),v++),E++;return v};t.exports=l},76556:function(t,e,n){"use strict";var i=n(39409),s=n(22826).find,a=n(11788),o="find",r=!0;o in[]&&[,][o](function(){r=!1}),i({target:"Array",proto:!0,forced:r},{find:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},46064:function(t,e,n){"use strict";var i=n(39409),s=n(92085),a=n(23368),o=n(75711),r=n(8984),l=n(53304);i({target:"Array",proto:!0},{flatMap:function(t){var e,n=o(this),i=r(n);return a(t),s(e=l(n,0),n,n,i,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},47482:function(t,e,n){"use strict";var i=n(39409),s=n(75711),a=n(4537),o=n(95460),r=n(8984),l=n(12404),c=n(14716),u=n(53304),d=n(3481),_=n(51932),f=n(11691)("splice"),h=Math.max,p=Math.min;i({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var n,i,f,v,E,m,C=s(this),T=r(C),g=a(t,T),I=arguments.length;for(0===I?n=i=0:1===I?(n=0,i=T-g):(n=I-2,i=p(h(o(e),0),T-g)),c(T+n-i),f=u(C,i),v=0;v<i;v++)(E=g+v)in C&&d(f,v,C[E]);if(l(f,i),n<i){for(v=g;v<T-i;v++)E=v+i,m=v+n,E in C?C[m]=C[E]:_(C,m);for(v=T;v>T-i+n;v--)_(C,v-1)}else if(n>i)for(v=T-i;v>g;v--)E=v+i-1,m=v+n-1,E in C?C[m]=C[E]:_(C,m);for(v=0;v<n;v++)C[v+g]=arguments[v+2];return l(C,T-i+n),f}})},12225:function(t,e,n){"use strict";n(11788)("flatMap")},57321:function(t,e,n){"use strict";var i=n(39409),s=n(71110).values;i({target:"Object",stat:!0},{values:function(t){return s(t)}})},98391:function(t,e,n){"use strict";function i(t){return{all:t=t||new Map,on:function(e,n){var i=t.get(e);i?i.push(n):t.set(e,[n])},off:function(e,n){var i=t.get(e);i&&(n?i.splice(i.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var i=t.get(e);i&&i.slice().map(function(t){t(n)}),(i=t.get("*"))&&i.slice().map(function(t){t(e,n)})}}}n.d(e,{Z:function(){return i}})}}]);

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.