import{r as _}from"./index.70d38b82.js";const E={ONLINE_COURSE:"\u5728\u7EBF\u8BFE\u7A0B",LIVE_TEACHING:"\u6559\u5B66\u76F4\u64AD",MOCK_EXAMINATION:"\u6A21\u62DF\u8003\u8BD5",ERROR_CONSOLIDATION:"\u9519\u9898\u5DE9\u56FA",CLASS_NOTE:"\u8BFE\u5802\u7B14\u8BB0",ONLINE_FAQ:"\u5728\u7EBF\u7B54\u7591",RESOURCE_VIEW:"\u8D44\u6E90\u67E5\u770B",SYSTEM_USE:"\u7CFB\u7EDF\u4F7F\u7528"};function s(r,{isListenerUnload:e,...o}={}){if(!r)throw Error("\u4E0A\u62A5\u7C7B\u578B\u9519\u8BEF");return{mounted(){var t;if((t=this.isCancelReport)!=null&&t.call(this))return console.warn("\u4E0A\u62A5\u5DF2\u4E2D\u65AD\uFF0C\u4E0A\u62A5\u6570\u636E\uFF1A",r);this.reportData(),e&&window.addEventListener("beforeunload",this.reportData)},beforeDestroy(){e&&window.removeEventListener("beforeunload",this.reportData),this.reportData()},methods:{...o,async reportData(t){var a;t&&(t.returnValue="\u5C06\u8981\u9000\u51FA\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F"),_({...(a=this.handleReportData)==null?void 0:a.call(this),id:this.__report_data_id__,type:r}).then(({data:i})=>this.__report_data_id__=i)}}}}export{E as R,s as d};
