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