import{b7 as V,b8 as F,au as P,b5 as L,b9 as N,b6 as H,ba as M,v as A}from"./main.js";import{aw as h,ax as f,ay as b,aA as B,D as Q,az as U,aL as W,j as X,aD as q,I as a,F as E,r as $,u as G,bV as C,bT as o,bS as c,bQ as v,k as g,bX as y,bM as R,bU as J,b_ as T,bo as K,bR as D}from"./_plugin-vue_export-helper.js";const Y=h("thing",`
 display: flex;
 transition: color .3s var(--n-bezier);
 font-size: var(--n-font-size);
 color: var(--n-text-color);
`,[h("thing-avatar",`
 margin-right: 12px;
 margin-top: 2px;
 `),h("thing-avatar-header-wrapper",`
 display: flex;
 flex-wrap: nowrap;
 `,[h("thing-header-wrapper",`
 flex: 1;
 `)]),h("thing-main",`
 flex-grow: 1;
 `,[h("thing-header",`
 display: flex;
 margin-bottom: 4px;
 justify-content: space-between;
 align-items: center;
 `,[f("title",`
 font-size: 16px;
 font-weight: var(--n-title-font-weight);
 transition: color .3s var(--n-bezier);
 color: var(--n-title-text-color);
 `)]),f("description",[b("&:not(:last-child)",`
 margin-bottom: 4px;
 `)]),f("content",[b("&:not(:first-child)",`
 margin-top: 12px;
 `)]),f("footer",[b("&:not(:first-child)",`
 margin-top: 12px;
 `)]),f("action",[b("&:not(:first-child)",`
 margin-top: 12px;
 `)])])]),Z=Object.assign(Object.assign({},B.props),{title:String,titleExtra:String,description:String,descriptionClass:String,descriptionStyle:[String,Object],content:String,contentClass:String,contentStyle:[String,Object],contentIndented:Boolean}),ee=Q({name:"Thing",props:Z,setup(t,{slots:e}){const{mergedClsPrefixRef:_,inlineThemeDisabled:u,mergedRtlRef:s}=U(t),w=B("Thing","-thing",Y,V,t,_),x=W("Thing",s,_),m=X(()=>{const{self:{titleTextColor:r,textColor:n,titleFontWeight:l,fontSize:d},common:{cubicBezierEaseInOut:S}}=w.value;return{"--n-bezier":S,"--n-font-size":d,"--n-text-color":n,"--n-title-font-weight":l,"--n-title-text-color":r}}),i=u?q("thing",void 0,m,t):void 0;return()=>{var r;const{value:n}=_,l=x?x.value:!1;return(r=i==null?void 0:i.onRender)===null||r===void 0||r.call(i),a("div",{class:[`${n}-thing`,i==null?void 0:i.themeClass,l&&`${n}-thing--rtl`],style:u?void 0:m.value},e.avatar&&t.contentIndented?a("div",{class:`${n}-thing-avatar`},e.avatar()):null,a("div",{class:`${n}-thing-main`},!t.contentIndented&&(e.header||t.title||e["header-extra"]||t.titleExtra||e.avatar)?a("div",{class:`${n}-thing-avatar-header-wrapper`},e.avatar?a("div",{class:`${n}-thing-avatar`},e.avatar()):null,e.header||t.title||e["header-extra"]||t.titleExtra?a("div",{class:`${n}-thing-header-wrapper`},a("div",{class:`${n}-thing-header`},e.header||t.title?a("div",{class:`${n}-thing-header__title`},e.header?e.header():t.title):null,e["header-extra"]||t.titleExtra?a("div",{class:`${n}-thing-header__extra`},e["header-extra"]?e["header-extra"]():t.titleExtra):null),e.description||t.description?a("div",{class:[`${n}-thing-main__description`,t.descriptionClass],style:t.descriptionStyle},e.description?e.description():t.description):null):null):a(E,null,e.header||t.title||e["header-extra"]||t.titleExtra?a("div",{class:`${n}-thing-header`},e.header||t.title?a("div",{class:`${n}-thing-header__title`},e.header?e.header():t.title):null,e["header-extra"]||t.titleExtra?a("div",{class:`${n}-thing-header__extra`},e["header-extra"]?e["header-extra"]():t.titleExtra):null):null,e.description||t.description?a("div",{class:[`${n}-thing-main__description`,t.descriptionClass],style:t.descriptionStyle},e.description?e.description():t.description):null),e.default||t.content?a("div",{class:[`${n}-thing-main__content`,t.contentClass],style:t.contentStyle},e.default?e.default():t.content):null,e.footer?a("div",{class:`${n}-thing-main__footer`},e.footer()):null,e.action?a("div",{class:`${n}-thing-main__action`},e.action()):null))}}}),te=F("depot",()=>{async function t(){return(await P.get("/depot/readdepot")).data}return{getDepotinfo:t}}),ie={__name:"depot",setup(t){const e=te(),{getDepotinfo:_}=e,u=$([]);let s=$([]);async function w(){u.value=await _(),x()}function x(){s.value={...u.value[0]};for(const i in s.value)if(s.value.hasOwnProperty(i)){const r=s.value[i],n=Object.entries(r).map(([l,d])=>({key:l,...d})).sort((l,d)=>l.sort-d.sort);s.value[i]=n}}G(w);const m=async()=>{try{await navigator.clipboard.writeText(u.value[1])}catch(i){console.error("Failed to copy text:",i)}};return $(!1),(i,r)=>{const n=K,l=N,d=H,S=M,j=A,O=ee,k=L;return v(),C("div",null,[o(k,{cols:"1",responsive:"screen"},{default:c(()=>[o(d,null,{default:c(()=>[o(n,{onClick:m,tag:"a",href:"https://arkntools.app/#/material",target:"_blank"},{default:c(()=>r[0]||(r[0]=[g(" 明日方舟工具箱代码 点击复制 ")])),_:1}),o(l)]),_:1}),o(d,null,{default:c(()=>[g(" 扫描时间："+y(R(u)[2])+" ",1),r[1]||(r[1]=J("br",null,null,-1)),r[2]||(r[2]=g(" 注：万以下的数字并不会计入，如“龙门币 245万” “资质凭证 2万” ")),o(l)]),_:1}),(v(!0),C(E,null,T(R(s),(I,z)=>(v(),D(d,{key:z},{default:c(()=>[o(S,null,{default:c(()=>[g(y(z.slice(1)),1)]),_:2},1024),o(k,{"x-gap":"10px","y-gap":"10px",cols:"2 m:6 l:6 ",responsive:"screen"},{default:c(()=>[(v(!0),C(E,null,T(I,p=>(v(),D(d,{key:p},{default:c(()=>[o(O,null,{avatar:c(()=>[o(j,{color:"000",size:"large",src:"/depot/"+p.icon+".webp"},null,8,["src"])]),header:c(()=>[g(y(p.key),1)]),description:c(()=>[g("拥有："+y(p.number),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024),o(l)]),_:2},1024))),128))]),_:1})])}}};export{ie as default};
