1import{_ as m}from"./q-BKZ00VYc.js";import{a as h,c as C}from"./q-a31nBSqg.js";import{ag as E,b as d,aq as k,ar as y,L as u,A as w,e as o,R as l,v as p,x as _}from"./q-BbAwZY-b.js";import{f as x,d as L}from"./q-BE5rSsQ6.js";const g=k(y("s_34A5qJbxupo")),R=E(d(()=>m(()=>Promise.resolve().then(()=>S),void 0),"s_sLiSF6Tc6Dw")),A=({resolveValue:e})=>{const t=e(g)?.config;return{title:t?.metaTitle||"World of Tanks Account Calculator | igitems",meta:[{name:"description",content:t?.metaDescription||"Calculate the value of your World of Tanks account. Get an accurate estimate based on tanks, win rate, gold, and credits."},{name:"robots",content:"index, follow"},{name:"author",content:"igitems"}]}},q=Object.freeze(Object.defineProperty({__proto__:null,default:R,head:A,useGameTypeConfig:g},Symbol.toStringTag,{value:"Module"})),B=()=>{const e=g(),r=x(),t=u(!1),i=u(null),s=u(null),a=e.value.gameType,f=e.value.config,c=u({tanks:0,premium:0,rarePremium:0,tierVii:0,tierIx:0,tierX:0,win:50,gold:0,credit:0,region:"Europe"}),T=[{name:"tanks",label:"Total Tanks",description:"Total number of tanks owned",type:"NUMBER",min:0,max:1e3,icon:"zqg3m3EJ9edj7Q6SdCXTCg7WhEBfhBA8.svg"},{name:"premium",label:"Premium Tanks",description:"Number of premium tanks owned",type:"NUMBER",min:0,max:300,icon:"zqg3m3EJ9edj7Q6SdCXTCg7WhEBfhBA8.svg"},{name:"rarePremium",label:"Rare Premium Tanks",description:"Number of rare premium tanks owned",type:"NUMBER",min:0,max:30,icon:"zqg3m3EJ9edj7Q6SdCXTCg7WhEBfhBA8.svg"},{name:"tierVii",label:"Tier VIII Tanks",description:"Number of tier VIII tanks owned",type:"NUMBER",min:0,max:100,icon:"zqg3m3EJ9edj7Q6SdCXTCg7WhEBfhBA8.svg"},{name:"tierIx",label:"Tier IX Tanks",description:"Number of tier IX tanks owned",type:"NUMBER",min:0,max:50,icon:"zqg3m3EJ9edj7Q6SdCXTCg7WhEBfhBA8.svg"},{name:"tierX",label:"Tier X Tanks",description:"Number of tier X tanks owned",type:"NUMBER",min:0,max:50,icon:"zqg3m3EJ9edj7Q6SdCXTCg7WhEBfhBA8.svg"},{name:"win",label:"Win Rate %",description:"Your win rate percentage",type:"NUMBER",min:0,max:99,icon:"JKJJYoTN7zcCnu69Eo7cAXh8TboKueJ5.svg"},{name:"gold",label:"Gold",description:"Amount of gold owned",type:"NUMBER",min:0,max:1e5,icon:"kC2KLqTEfatmuAuXnTFJLMFHLtPqEKzB.svg"},{name:"credit",label:"Credits",description:"Amount of credits owned",type:"NUMBER",min:0,max:1e8,icon:"kC2KLqTEfatmuAuXnTFJLMFHLtPqEKzB.svg"},{name:"region",label:"Region",description:"Your server region",type:"SELECT",options:["Europe","North America","Russia","Asia","Console"],icon:"kquDDNvRbCi34ZcNwrK9xSKRi98DTtwY.svg"}],b=d(()=>m(()=>Promise.resolve().then(()=>j),void 0),"s_1lhv3n0L9Zg",[t,i,s,c,r]),v=d(()=>m(()=>Promise.resolve().then(()=>I),void 0),"s_9fVGbdIejpc",[c]);return w(h,{title:"World of Tanks Account Calculator",description:"Estimate the value of your World of Tanks account based on tanks, win rate, gold, and credits.",gameName:"World of Tanks",bgImg:a?.backgroundImg,bgImgMobile:a?.backgroundImgMobile,inputs:T,get state(){return c.value},onStateChange$:v,onCalculate$:b,get price(){return i.value},get priceRange(){return s.value},get loading(){return t.value},gameTypeUrl:"/world-of-tanks",productTypeUrl:"ACCOUNT",config:f,gameType:a,showMobileCta:!0,get hubLinkCount(){return e.value.hubLinkCount},[o]:{title:o,description:o,gameName:o,state:l(n=>n.value,[c]),onStateChange$:o,onCalculate$:o,price:l(n=>n.value,[i]),priceRange:l(n=>n.value,[s]),loading:l(n=>n.value,[t]),gameTypeUrl:o,productTypeUrl:o,showMobileCta:o,hubLinkCount:l(n=>n.value.hubLinkCount,[e])}},3,"n8_0")},S=Object.freeze(Object.defineProperty({__proto__:null,s_sLiSF6Tc6Dw:B},Symbol.toStringTag,{value:"Module"})),N=(e,r)=>{const[t]=p();t.value={...t.value,[e]:r}},I=Object.freeze(Object.defineProperty({__proto__:null,_hW:_,s_9fVGbdIejpc:N},Symbol.toStringTag,{value:"Module"})),M=async()=>{const[e,r,t,i,s]=p();e.value=!0;try{const a=await C.calculate("wot",i.value);r.value=a.price,t.value=a.priceRange}catch(a){console.error(a),s.toast({title:L(a,"Error calculating price"),variant:"destructive"})}finally{e.value=!1}},j=Object.freeze(Object.defineProperty({__proto__:null,_hW:_,s_1lhv3n0L9Zg:M},Symbol.toStringTag,{value:"Module"}));
1export{_ as _hW,q as i,M as s_1lhv3n0L9Zg,N as s_9fVGbdIejpc,B as s_sLiSF6Tc6Dw};
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.