System.register(["./vue-legacy-a77002d8.js","./index-legacy-e38592e5.js","./withInstall-legacy-a4ca9144.js","./useVModel-legacy-71bf3ab2.js"],(function(a,e){"use strict";var l,s,t,n,o,r,u,c,i,v,d,p,h,b,f,m,y,g,k,w,C,_,j;return{setters:[a=>{l=a.f,s=a.A,t=a.B,n=a.C,o=a.h,r=a.g,u=a.j,c=a.o,i=a.D,v=a.k,d=a.w,p=a.E,h=a.F,b=a.G,f=a.H,m=a.I,y=a.J,g=a.v,k=a.c,w=a.K,C=a.r,_=a.a},a=>{j=a.P},null,null],execute:function(){const e={class:"s-header-user-info-dropdown"},x={class:"small-userinfo"},I={class:"header"},U=["src"],A={class:"user-name"},D={class:"user-options-box"},G=["onClick"],L=p("div",{class:"line"},null,-1),P={class:"user-info"},R=["src"],B=l({__name:"UserDropdown",setup(a){const l={avatar:new URL("/assets/avatar-7b85ead6.svg",self.location).href},g=s(),k=t(),w=n(),C=o(!1),_=r((()=>w.getters["user/token"])),B=r((()=>w.getters["user/userInfo"])),E=[{label:"个人信息",value:""},{label:"创作记录",value:"/CreationRecord"},{label:"产品订单",value:""},{label:"合作咨询",value:""}],F=async()=>{_.value&&(await w.dispatch("user/Logout"),C.value=!1)};return u((()=>{(async()=>{w.dispatch("user/UserInfo")})()})),(a,s)=>(c(),i("div",null,[v(h(j),{placement:"left-bottom",overlayClassName:"user-popup","destroy-on-close":"",trigger:"click",visible:C.value,"onUpdate:visible":s[0]||(s[0]=a=>C.value=a)},{content:d((()=>[p("div",e,[p("div",x,[p("div",I,[p("img",{class:"avatar",src:h(B).avatar?h(B).avatar:l.avatar,alt:""},null,8,U),p("span",A,b(h(B).name??"---"),1)]),p("div",D,[(c(),i(f,null,m(E,(a=>p("div",{key:a.value,class:"user-option",onClick:e=>(a=>{if(!a.value)return;const e=k.resolve({path:a.value});window.open(e.href),C.value=!1})(a)},[p("div",{class:y(["real-option",{active:h(g).path==a.value}])},b(a.label),3)],8,G))),64))]),L,p("div",{class:"logout-box",onClick:F},"退出登录")])])])),default:d((()=>[p("div",P,[p("img",{src:h(B).avatar?h(B).avatar:l.avatar,alt:""},null,8,R)])])),_:1},8,["visible"])]))}}),E={class:"custom-layout-head"},F={class:"layout-head-left"},H=p("span",null,"AI GPT",-1),J=["onClick"],K={class:"layout-head-right"},M=l({__name:"header",setup(a){const e=s(),l=t(),n=o(e.path);g((()=>e.path),(a=>{n.value=a}));const r=[{label:"首页",path:"/"}];return(a,e)=>(c(),i("div",E,[p("div",F,[H,(c(),i(f,null,m(r,(a=>p("div",{class:y(["layout-chose-button",{active:a.path===n.value}]),key:a.path,onClick:e=>(a=>{l.replace({path:a.path})})(a)},b(a.label),11,J))),64))]),p("div",K,[v(B)])]))}}),N={class:"custom-layout"},S={class:"custom-content narrow-scrollbar"},T={class:"center-box"};a("default",l({__name:"content",setup(a){const e=s();return(a,l)=>{const s=C("router-view");return c(),i("div",N,[h(e).meta.header?(c(),k(M,{key:0})):w("",!0),p("div",S,[p("div",T,[v(s,null,{default:d((({Component:a})=>[(c(),k(_(a)))])),_:1})])])])}}}))}}}));
