drill.define(async t=>{await t("./o-frame.css");let s=$("<style></style>");document.head.appendChild(s.ele),$.register({tag:"o-frame",data:{},temp:'\n        <div class="o_top">\n            <div class="o_leftbtns" xv-slot="btns">\n            </div>\n            <div class="o_top_title" xv-tar="title">我是标题</div>\n            <div class="o_top_rightcon" xv-slot="tools"></div>\n            <div class="windows_topright" style="display:none;">\n                <div class="windows_tomin_btn" frame-btn-type="minimize"></div>\n                <div class="windows_tobig_btn" frame-btn-type="maximize"></div>\n                <div class="windows_tonormal_btn" frame-btn-type="unmaximize"></div>\n                <div class="windows_close_btn" frame-btn-type="close"></div>\n            </div>\n        </div>\n        <div class="o_main" xv-content></div>',inited(){this.$btns.on("click",".o_btn",t=>{let{delegateTarget:s}=t;if(s.class.contains("active"))return;let i=s.hostkey;this.$btns.forEach((t,s)=>{i==s?t.class.add("active"):t.class.remove("active")}),this.$tools.forEach((t,s)=>{i==s?t.class.remove("hide"):t.class.add("hide")}),this.forEach((t,s)=>{i==s?t.class.remove("hide"):t.class.add("hide")})}),this.$btns[0].ele.click();let i="";this.$btns.forEach((t,s)=>{let e=t.attr("a-color");i+=`o-frame .o_top .o_btn:nth-child(${s+1}):after{\n                    background-color: ${e};\n                }`;let a=t.data.icon;a&&(t.style["background-image"]=`url(${a})`)}),s.html+=i,window.process?(this.queShadow(".windows_topright").display="",t("./appframe").post(this)):$("o-frame").queShadow(".o_leftbtns").style["margin-left"]="50px"}})});