1import{d as e,b as r,r as a,o as t,_ as l,G as s,E as o,e as i,f as d,g as n,t as c,F as u,h as g,l as v,s as p,i as m,X as x,k as h,y as k,p as w,n as f}from"./index-b25171b5.js";import{_ as b}from"./settings_svg-10d80c61.js";import{i as y}from"./index-3ee8d9b8.js";import{d as _}from"./controller-aa1def94.js";import{s as j}from"./mewod-10b9e961.js";import{_ as C}from"./plugin-vue_export-helper-1b428a4d.js";import"./lodash-c200b85d.js";import"./router_controller-8f776b59.js";import"./aigc-2eb3aff5.js";const H=e=>(w("data-v-a2f435ba"),e=e(),f(),e),B={class:"flex flex-row justify-between text-xl"},I=[H((()=>n("svg",{fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",class:"w-7",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)))],L={class:"align-middle"},M=[H((()=>n("svg",{fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"w-6",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"})],-1)))],S={class:"text-center"},z={class:"inline-block mt-5 w-24 h-24 bg-[#5d0196] rounded-full text-6xl leading-[96px] font-medium"},E=["src"],F={class:"text-center mt-2 text-sm"},N={class:"flex flex-wrap text-sm font-medium text-center text-gray-500 border-b border-gray-200 dark:border-gray-700 dark:text-gray-400"},$={class:"mr-2"},A=["onClick"],D={key:0,class:"mt-4 overflow-y-auto pr-4",style:{height:"calc(100% - 250px)"}},G={class:"overflow-hidden"},J={class:"inline-block w-16 h-16 bg-[#5d0196] rounded-full text-3xl leading-[64px] font-medium text-center"},O=["src"],V=["onClick"],X={class:"text-base"},Z={class:"text-xs my-1"},q={class:"text-xs"},K=H((()=>n("svg",{class:"w-3 h-3 text-gray-800 dark:text-white inline-block","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 18"},[n("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 5h2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-2v3l-4-3H8m4-13H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h2v3l4-3h4a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1Z"})],-1))),P={class:"h-16 leading-[64px]"},Q=["id","data-dropdown-toggle"],R={class:"w-8 h-8 rounded-lg border border-gray-600 inline-block flex flex-row justify-center items-center cursor-pointer"},T=["id"],U=["aria-labelledby"],W=["onClick"],Y={key:1,class:"mt-4"},ee=C(e({__name:"profile",setup(e){const w=r(),f=a(1),C=a({}),H=()=>{w.back()},ee=()=>{w.push("/edit")};return t((()=>{let e=localStorage.getItem("access_token");l({},e||"").then((e=>{1===e.code?(C.value={...e.msg},C.value.avatar=e.msg.avatar||_(e.msg.id+""),s((()=>{y()}))):o.error("个人信æ¯è·å失败")})).catch((e=>{o.error("个人信æ¯è·å失败")}))})),document.documentElement.classList.add("dark"),(e,r)=>{var a,t,l;return i(),d("div",{class:p(["w-full h-[100vh] dark:dark-gb dark:text-white py-4",m(x)()?"px-4":"px-40"])},[n("div",B,[n("span",{class:"inline-block cursor-pointer align-middle",onClick:H},I),n("span",L,c(C.value.user_login),1),n("span",{class:"align-middle cursor-pointer",onClick:ee},M)]),n("div",S,[n("span",z,[n("img",{class:"w-full h-full rounded-full",src:C.value.avatar},null,8,E)])]),n("div",F,c(C.value.user_email),1),n("ul",N,[(i(),d(u,null,g(1,(e=>n("li",$,[n("a",{href:"#","aria-current":"page",onClick:r=>{return a=e,void(f.value=a);var a},class:p(f.value==e?"inline-block p-4 text-blue-600 bg-gray-100 rounded-t-lg active dark:bg-gray-800 dark:text-blue-500":"inline-block p-4 rounded-t-lg hover:text-gray-600 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-300")},c(1==e?"My Characters":"History"),11,A)]))),64))]),1==f.value&&(null==(t=null==(a=C.value)?void 0:a.characters)?void 0:t.length)?(i(),d("div",D,[(i(!0),d(u,null,g(null==(l=C.value)?void 0:l.characters,((e,r)=>(i(),d("div",{key:r,class:"flex flex-row justify-between mt-5"},[n("div",G,[n("div",J,[n("img",{class:"w-full h-full rounded-full",src:e.avatar_url},null,8,O)]),n("div",{class:"inline-block text-left ml-4 cursor-pointer",onClick:r=>{return a=e.id,void w.push("/chat?id="+a);var a}},[n("div",X,c(e.name),1),n("div",Z,c(e.greeting),1),n("div",q,[K,h(" "+c(e.messages_count),1)])],8,V)]),n("div",P,[n("button",{id:"dropdownHoverButton"+r,"data-dropdown-toggle":"dropdownHover"+r,"data-dropdown-trigger":"click",class:"text-xs font-medium text-center text-white dark:bg-transparent roun
1ded-sm",type:"button"},[n("span",R,[k(b)])],8,Q),n("div",{id:"dropdownHover"+r,class:"z-10 hidden bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700"},[n("ul",{class:"p-2 px-4 text-sm text-gray-700 dark:text-gray-200 leading-10","aria-labelledby":"dropdownHoverButton"+r},[(i(!0),d(u,null,g(m(j),(r=>(i(),d("li",{key:r.stepId,onClick:a=>((e,r)=>{const a={...e,character_id:e.id};let t=a.voice_rate;a.voice_rate=t<=1?100*(t-.5)+"":50+50*(t-1)+"",localStorage.setItem("formInfo",JSON.stringify(a||{})),w.push(`character-create?step=${r}&id=${e.id}`)})(e,r.stepId),class:"cursor-pointer"}," Edit "+c(r.name),9,W)))),128))],8,U)],8,T)])])))),128))])):v("",!0),2==f.value?(i(),d("div",Y,"page2")):v("",!0)],2)}}}),[["__scopeId","data-v-a2f435ba"]]);export{ee as default};
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.