PageSourceSearch

https://beta.mewod.ai/assets/Home-8318e29e.js

js mewod.ai collected 2026-10-05 15:39:20 UTC 8,229 bytes, 1 lines download raw bytes

1import{d as e,u as a,a as t,r as l,b as r,o as s,c as o,e as n,f as i,g as c,t as d,F as u,h as g,i as v,j as h,w as p,k as f,l as w,m,p as x,n as k,q as y,s as b,v as _,E as C,x as j,y as L,z,A as S,B as I,C as N,D as B,G as M}from"./index-b25171b5.js";import{i as W}from"./index-3ee8d9b8.js";import{g as A,a as E}from"./router_controller-8f776b59.js";import{_ as O}from"./plugin-vue_export-helper-1b428a4d.js";import{_ as D}from"./loading_text-c4684dbd.js";import"./lodash-c200b85d.js";const G=e=>(x("data-v-6e8c88a4"),e=e(),k(),e),R={class:"header"},T={class:"flex flex-row justify-between w-full items-center"},q={class:"flex flex-col"},F=G((()=>c("div",{class:"mewod-ai-title"},"mewod.ai",-1))),H={class:"text-gray-300 text-sm"},J={class:"w-1/2 flex flex-row justify-end items-center"},U={class:"py-2 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdownDefaultButton"},$=["type"],K=[G((()=>c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"w-6 h-6"},[c("path",{"fill-rule":"evenodd",d:"M7.5 6a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM3.751 20.105a8.25 8.25 0 0116.498 0 .75.75 0 01-.437.695A18.683 18.683 0 0112 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 01-.437-.695z","clip-rule":"evenodd"})],-1)))],P=O(e({__name:"header",setup(e){const x=a(),{width:k,height:y}=t(),b=l("中文"),_=r(),C=[{name:"English",key:"en"},{name:"中文",key:"zh-CN"}],j=e=>{"A"===e.target.nodeName&&(b.value=e.target.innerText,localStorage.setItem("language",e.target.attributes.type.value))},L=()=>{A(_)},z=()=>{m(),E(_)},S=()=>{_.push("/profile")};return s((()=>{var e;const a=localStorage.getItem("language");b.value=(null==(e=C.filter((e=>e.key===a))[0])?void 0:e.name)||"中文"})),(e,a)=>{const t=o("el-button");return n(),i("div",R,[c("div",T,[c("div",q,[F,c("span",H,d(e.$t("ai.title")),1)]),c("div",J,[c("div",{id:"dropdown",class:"z-10 hidden bg-gray-200 divide-y divide-gray-100 rounded-lg shadow w-44 dark-gb font-normal text-sm",onClick:j},[c("ul",U,[(n(),i(u,null,g(C,((e,a)=>c("li",{key:a},[c("a",{href:"#",type:e.key,class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},d(e.name),9,$)]))),64))])]),0==v(x).isLogon?(n(),h(t,{key:0,onClick:z,class:"px-3 py-2 text-xs font-medium text-center text-white sm:dark:bg-gray-400 dark:bg-blue-500 rounded-lg"},{default:p((()=>[f(" Log In ")])),_:1})):w("",!0),0!=v(x).isLogon?(n(),i("div",{key:1,onClick:S,class:"cursor-pointer"},K)):w("",!0),0==v(x).isLogon&&v(k)>=640?(n(),h(t,{key:2,onClick:L,class:"px-3 py-2 text-xs font-medium text-center text-gray-200 sm:dark:bg-blue-500 rounded-lg ml-2"},{default:p((()=>[f(" Sign Up ")])),_:1})):w("",!0)])])])}}}),[["__scopeId","data-v-6e8c88a4"]]),Q=[c("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"},null,-1)],V=e({__name:"left_svg",props:{size:{type:Number,default:5}},setup(e){const a=e,t=y((()=>"w-"+a.size+" h-"+a.size));return(e,a)=>(n(),i("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",class:b([t.value,"w-6 h-6"]),viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Q,2))}}),X=[c("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"},null,-1)],Y=e({__name:"right_svg",props:{size:{type:Number,default:5}},setup(e){const a=e,t=y((()=>"w-"+a.size+" h-"+a.size));return(e,a)=>(n(),i("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",class:b([t.value,"w-6 h-6"]),viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},X,2))}}),Z={class:"w-full dark-gb content flex flex-row justify-between"},ee={key:0,class:"flex w-full overflow-hidden"},ae={key:1,class:"content-right w-full p-4 overflow-hidden"},te={key:0,class:"pt-4 bottom-border"},le=(e=>(x("data-v-0f52867e"),e=e(),k(),e))((()=>c("h6",{class:"mb-4 text-gray-300 text-base"},"Continue chatting",-1))),re={class:"w-full hide-scroll whitespace-nowrap overflow-x-auto"},se=["onClick"],oe={class:"w-32 h-32 rounded-lg bg-gray-800 inline-block"},ne=["src","alt"],ie={class:"text-center text-base font-medium text-gray-200"},ce={class:"relative w-full"},de=["onClick"],ue={class:"relative w-full mt-4"},ge=["onClick"],ve={class:"flex flex-col items-center"},he={class:"w-60 h-60 pb-1 rounded-lg bg-gray-800 inline-block"},pe=["src","alt"],fe={class:"mb-2 text-base font-medium dark:text-gray-200 mt-5"},we={class:"text-sm flex justify-center dark:text-gray-400 w-full whitespace-break-spaces h-10 overflow-hidden"},me={class:"pt-8"},xe=O(e({__name:"Home",setup(e){const t=a(),h=l(0),f=r(),x=l([]),k=l([]),y=l([]),A=l([]),E=l([]),O=l(),G=l(),R=l(),T=l(!1),q=l(!1);l(!1);const F=l(!1);l(!1);const H=l(!1),J=l(200);l([]),l(""),l(""),j();const U=(e,a=-1)=>{let t="/chat?id="+e;a>
10&&(t+="&c="+a),f.push(t)},$=e=>{B({id:e}).then((e=>{x.value=[...e.data.categories],k.value={...e.data.characters},A.value=[...e.data.guild_characters],E.value=[...e.data.sample_characters],localStorage.setItem("categories",JSON.stringify(x.value));const l=[q,F,H];[O,G,R].forEach(((e,a)=>{M((()=>{e.scrollWidth>e.clientWidth&&(l[a].value=!0)}))})),t.isLogon>0&&((e,t)=>{const l=a().token;if(""===l)return null;_({all:e?1:0},l).then((e=>{t(e.data)})).catch((function(e){C.error("Something wrong with the server.")}))})(!1,(e=>{y.value=e}))})).catch((function(e){C.error("Something wrong, please try again later.")}))};return s((async()=>{W(),await(async()=>{let e=localStorage.getItem("isLogon");if(!e)return;if("2"==e)return void S("","");let a=localStorage.getItem("refresh_token");a&&await I(a).then((e=>{if(0==e.code)m();else if(1==e.code){let a=e.data.access_token,l=e.data.refresh_token;t.token=a,t.refresh_token=l,S(a,l),N()}}))})(),$(1),document.documentElement.classList.add("dark")})),(e,a)=>{var l;const r=o("el-collapse-transition");return n(),i("div",null,[L(P),c("div",Z,[0==k.value.length?(n(),i("div",ee,[L(D)])):(n(),i("div",ae,[L(r,null,{default:p((()=>[v(t).isLogon!=v(z).NOT_LOGON&&y.value.length?(n(),i("div",te,[le,c("div",re,[(n(!0),i(u,null,g(y.value,((e,a)=>(n(),i("div",{onClick:a=>U(e.character_id,e.id),key:a,class:"w-[180px] h-[180px] rounded-lg shadow dark:bg-gray-700 relative inline-block mr-2 pt-3 cursor-pointer dark:hover:bg-gray-600 text-center"},[c("div",oe,[c("img",{class:"w-32 h-32 rounded-lg object-cover",src:e.character_avatar,alt:e.character_name},null,8,ne)]),c("div",ie,d(e.character_name),1)],8,se)))),128))])])):w("",!0)])),_:1}),c("div",ce,[c("div",{class:b(["absolute left-0 top-[15px] bg-gray-700 w-6 h-[54px] rounded-e-lg pt-[14px] cursor-pointer duration-500 z-20",T.value?"opacity-100":"opacity-0"]),onClick:a[0]||(a[0]=e=>{var a;(a=O.value).scrollLeft=Math.max(a.scrollLeft-J.value,0)})},[L(V)],2),c("ul",{class:"text-sm font-medium border-n overflow-x-auto w-full whitespace-nowrap overflow-hidden hide-scroll pt-4 relative",ref_key:"categoriesRef",ref:O},[(n(!0),i(u,null,g(x.value,((e,a)=>(n(),i("li",{class:"mr-2",onClick:a=>{return t=e.id,h.value=t,void M((()=>{G.value.scrollWidth>G.value.clientWidth&&(F.value=!0)}));var t},key:a},[c("a",{href:"#","aria-current":"page",class:b(["inline-block py-4 px-6 rounded-lg",h.value===e.id?"dark:bg-black dark:text-white":"dark:bg-gray-600 dark:text-white dark:hover:text-blue-400"])},d(e.name),3)],8,de)))),128))],512),c("div",{class:b([q.value?"opacity-100":"opacity-0","absolute right-0 top-[15px] bg-gray-700 w-5 h-[54px] rounded-s-lg pt-[14px] cursor-pointer duration-500"]),onClick:a[1]||(a[1]=e=>(e=>{const a=e.scrollWidth-e.clientWidth;e.scrollLeft=Math.min(e.scrollLeft+J.value,a)})(O.value))},[L(Y)],2)]),c("div",ue,[c("div",{class:"flex flex-row flex-wrap w-full hide-scroll whitespace-nowrap overflow-x-auto",ref_key:"charactersRef",ref:G},[(n(!0),i(u,null,g(null==(l=k.value[h.value])?void 0:l.characters,((e,a)=>(n(),i("div",{key:a,onClick:a=>U(e.character_id),class:"w-80 rounded-lg shadow dark:bg-gray-700 pt-6 relative inline-block mb-4 mr-4 cursor-pointer dark:hover:bg-gray-600 overflow-hidden"},[c("div",ve,[c("div",he,[c("img",{class:"w-60 h-60 rounded-lg object-cover",src:e.avatar_url,alt:e.name},null,8,pe)]),c("span",fe,d(e.name),1),c("span",we,d(e.short_description),1)])],8,ge)))),128))],512)]),c("div",me,[w("",!0)])]))])])}}}),[["__scopeId","data-v-0f52867e"]]);export{xe 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.