import{aq as F,ar as P,v as V}from"./main.js";import{as as h,au as f,ar as b,ay as D,B as H,ax as N,b0 as L,j as q,aC as M,H as a,F as E,r as $,s as W,bC as S,bw as l,bv as c,bt as m,k as g,bE as y,bo as R,by as A,bD as T,b3 as G,bu as B}from"./_plugin-vue_export-helper.js";import{a as J}from"./headers.js";import{b as K,_ as Q}from"./Grid.js";import{_ as U}from"./Divider.js";import{_ as X}from"./Avatar.js";import"./get-slot.js";import"./utils.js";import"./Tag.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({},D.props),{title:String,titleExtra:String,description:String,descriptionClass:String,descriptionStyle:[String,Object],content:String,contentClass:String,contentStyle:[String,Object],contentIndented:Boolean}),ee=H({name:"Thing",props:Z,setup(t,{slots:e}){const{mergedClsPrefixRef:_,inlineThemeDisabled:u,mergedRtlRef:s}=N(t),w=D("Thing","-thing",Y,F,t,_),v=L("Thing",s,_),p=q(()=>{const{self:{titleTextColor:r,textColor:n,titleFontWeight:o,fontSize:d},common:{cubicBezierEaseInOut:C}}=w.value;return{"--n-bezier":C,"--n-font-size":d,"--n-text-color":n,"--n-title-font-weight":o,"--n-title-text-color":r}}),i=u?M("thing",void 0,p,t):void 0;return()=>{var r;const{value:n}=_,o=v?v.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,o&&`${n}-thing--rtl`],style:u?void 0:p.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=P("depot",()=>{async function t(){return(await V.get("/depot/readdepot")).data}return{getDepotinfo:t}}),ue={__name:"depot",setup(t){const e=te(),{getDepotinfo:_}=e,u=$([]);let s=$([]);async function w(){u.value=await _(),v()}function v(){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(([o,d])=>({key:o,...d})).sort((o,d)=>o.sort-d.sort);s.value[i]=n}}W(w);const p=async()=>{try{await navigator.clipboard.writeText(u.value[1])}catch(i){console.error("Failed to copy text:",i)}};return $(!1),(i,r)=>{const n=G,o=U,d=Q,C=J,j=X,O=ee,k=K;return m(),S("div",null,[l(k,{cols:"1",responsive:"screen"},{default:c(()=>[l(d,null,{default:c(()=>[l(n,{onClick:p,tag:"a",href:"https://arkntools.app/#/material",target:"_blank"},{default:c(()=>r[0]||(r[0]=[g(" 明日方舟工具箱代码 点击复制 ")])),_:1}),l(o)]),_:1}),l(d,null,{default:c(()=>[g(" 扫描时间："+y(R(u)[2])+" ",1),r[1]||(r[1]=A("br",null,null,-1)),r[2]||(r[2]=g(" 注：万以下的数字并不会计入，如“龙门币 245万” “资质凭证 2万” ")),l(o)]),_:1}),(m(!0),S(E,null,T(R(s),(I,z)=>(m(),B(d,{key:z},{default:c(()=>[l(C,null,{default:c(()=>[g(y(z.slice(1)),1)]),_:2},1024),l(k,{"x-gap":"10px","y-gap":"10px",cols:"2 m:6 l:6 ",responsive:"screen"},{default:c(()=>[(m(!0),S(E,null,T(I,x=>(m(),B(d,{key:x},{default:c(()=>[l(O,null,{avatar:c(()=>[l(j,{color:"000",size:"large",src:"/depot/"+x.icon+".webp"},null,8,["src"])]),header:c(()=>[g(y(x.key),1)]),description:c(()=>[g("拥有："+y(x.number),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024),l(o)]),_:2},1024))),128))]),_:1})])}}};export{ue as default};
