var e=Object.defineProperty,t=(t,s,i)=>((t,s,i)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[s]=i)(t,"symbol"!=typeof s?s+"":s,i);import{a7 as s,l as i}from"./utils-lib.js?v=20260328163632";import{a7 as n}from"./base-lib.js?v=20260328163632";import"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";class a{constructor(e){t(this,"name",""),t(this,"isCompatible",!1),t(this,"version",""),t(this,"updateTime",""),t(this,"dependencies",{}),t(this,"compatibleTips",(()=>"当前面板版本过低不兼容扩展 ".concat(this.name))),this.name=(null==e?void 0:e.name)||"",this.updateTime=(null==e?void 0:e.updateTime)||"",this.dependencies=null==e?void 0:e.dependencies,this.version=this.dependencies.vue.version,this.checkCompatibility(),this.isCompatible||this.compatible()}checkCompatibility(){this.dependencies.hooks,this.isCompatible=this.version.startsWith("3."),this.isCompatible}checkElement(e){return document.querySelector(e)}async compatible(){const{vue:e}=this.dependencies,{default:t}=await s((async()=>{const{default:e}=await import("./compatible.js?v=20260328163632");return{default:e}}),[],import.meta.url),i=e.defineComponent(t);n(i,{dependencies:this.dependencies,message:this.compatibleTips()}).mount("#extension")}}class o extends a{constructor(e){super(e),t(this,"contentRefs",{}),this.isCompatible&&(this.name=i("腾讯云专项版"))}extensionElement(e={}){const{vue:t}=this.dependencies;return e&&(this.dependencies={...this.dependencies,...e}),[this.statusbar(t),this.rulesTable(t),this.productIntroduce(t),this.productFreeTag(t)]}async statusbar(e){try{const t=this.checkElement("#extension");if(!t)return!1;const{default:i}=await s((async()=>{const{default:e}=await import("./statusbar.js?v=20260328163632");return{default:e}}),[],import.meta.url),a=e.defineComponent(i);return n(a,{dependencies:this.dependencies}).mount(t)}catch(t){}}async rulesTable(e){try{const t=this.checkElement("#extension-rulesTable");if(!t)return!1;const{default:i}=await s((async()=>{const{default:e}=await import("./rules-table.js?v=20260328163632");return{default:e}}),[],import.meta.url),a=e.defineComponent(i);return n(a,{dependencies:this.dependencies}).mount(t)}catch(t){}}async binduser(e){}async binduserPopup(){}async productIntroduce(e){}async productFreeTag(e){}}export{o as default};
