1import{Ad as D,Af as v,Dd as M,Df as U,If as l,Jc as N,Nf as w,Qd as T,Sf as E,Tn as B,Vf as a,Xd as h,Zd as t,c as F,ci as x,ef as z,gf as C,if as o,ja as L,o as Y,oa as q,on as G,pa as H,po as K,pp as g,sa as P,vf as y,yc as W}from"./C_1SyR6j.js";import{t as j}from"./BADXJMpm.js";import{t as J}from"./CyWREYE5.js";import{t as R}from"./CAJV2pmQ.js";import"./DmTxPdAM.js";import{t as Q}from"./C3qrCsaT.js";import{t as X}from"./CFbWAjcE.js";import"./DqbGmgNE.js";import{r as Z,t as ee}from"./B5SLbbPZ.js";var te={__name:"InventoryCheckStatisticsPanel",props:{size:{type:String,default:"default"}},setup(b){const{t:r}=P(),{$httpService:d}=D(),c=l(!0),s=l(null),_=h(()=>[{id:1,title:r("statistics_panel.inventory_scans"),value:s.value?.inventoryScans||0,hasPlus:!0},{id:2,title:r("statistics_panel.avg_inventory_value"),value:s.value?.avgInventoryValue||0,currencySymbol:"$"},{id:3,title:r("statistics_panel.most_expensive_inventory"),value:s.value?.mostExpensiveInventory||0,currencySymbol:"$"},{id:4,title:r("statistics_panel.avg_items_amount"),value:s.value?.avgItemsAmount||0}]),p=()=>{c.value=!0,d.getInventoryReviewStatistics().then(n=>{s.value=n||null}).catch(()=>{s.value=null}).finally(()=>{c.value=!1})};return C(()=>{p()}),(n,u)=>(y(),T(J,{"stats-data-list":a(_),"is-loading":a(c),size:b.size},null,8,["stats-data-list","is-loading","size"]))}},ae=te,se={class:"sign-in-inventory-check-page"},ne={class:"sign-in-inventory-check-page__main"},ie={class:"check-inventory"},re={class:"search"},oe={class:"search__title"},le={class:"banner"},ce={class:"banner__text"},_e=["innerHTML"],ue={class:"banner__subtitle"},ve={class:"banner__action"},de={class:"stats"},pe={class:"sign-in-inventory-check-page__info"},me="steam-inventory-value",fe=100,ge={__name:"sign_in",setup(b){const r=H(),{$httpService:d}=D(),{locale:c}=P(),s=M(),_=q(),p=B(),n=l(""),u=l(!0),m=l(!1),f=l([]),S=h(()=>r.state.user.userInformation.isUserLogged),k=h(()=>r.getters.isMobileDevice),$=()=>{if(!n.value)return;const e=Z(n.value);e?.target&&(e.type===ee.TRADE_URL&&W.set(N,e.tradeUrl||n.value.trim()),s.push(_({name:L,params:{target:e.target}})))},A=()=>{S.value||(u.value=!0,m.value=!1,d.getInventoryReviewLeaderboard({game:K,scope:"global",sort:"inventory_price",direction:x,limit:fe}).then(({list:e})=>{f.value=e||[]}).catch(()=>{f.value=[],m.value=!0}).finally(()=>{u.value=!1}))};return U(S,e=>{e&&s.push(_({name:L,params:{target:"my"}}))},{immediate:!0}),C(()=>{A()}),(e,i)=>{const I=E("base-button"),O=E("base-field");return y(),z("div",se,[t("section",ne,[t("div",ie,[t("div",re,[t("span",oe,g(e.$t("inventory_check.check_inventory")),1),o(O,{modelValue:a(n),"onUpdate:modelValue":i[0]||(i[0]=V=>w(n)?n.value=V:null),modelModifiers:{trim:!0},class:"search__input",placeholder:e.$t("inventory_check.steam_id_or_steam_profile_url")},{icon:v(()=>[...i[1]||(i[1]=[t("img",{src:R,alt:"search icon"},null,-1)])]),afterButton:v(()=>[o(I,{class:"base-field__action-button check-inventory__button",type:"info","is-icon-button":"",size:"xs",onOnClick:$},{default:v(()=>[...i[2]||(i[2]=[t("img",{src:R,alt:"search icon"},null,-1)])]),_:1})]),_:1},8,["modelValue","placeholder"])]),o(X,{loading:a(u),"has-error":a(m),"users-data":a(f),type:"global"},null,8,["loading","has-error","users-data"])]),t("div",le,[t("div",ce,[t("h2",{class:"banner__title",innerHTML:e.$t("inventory_check.calculate_steam_inventory_value")},null,8,_e),t("p",ue,g(e.$t("inventory_check.find_out_the_value")),1)]),t("div",ve,[o(I,{size:a(k)?"default":"lg","min-width":a(k)?"100%":"310px","text-transform":"uppercase",onOnClick:a(p)},{default:v(()=>[i[3]||(i[3]=t("img",{src:j,alt:"icon"},null,-1)),t("i",null,g(e.$t("base.sign_in_via_steam")),1)]),_:1},8,["size","min-width","onOnClick"]),o(Y,{width:"100%",height:"32px","template-variant":a(F).microReviewCount},null,8,["template-variant"])])])]),t("section",de,[o(ae)]),t("section",pe,[(y(),T(Q,{key:`seo-block-${a(c)}`,"seo-key":me,"faq-title":e.$t("main_layout.faq"),class:"sign-in-inventory-check-page__seo"},null,8,["faq-title"]))])])}}},Te=G(ge,[["__scopeId","data-v-c84f0614"]]);export{Te 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.