import{a as t,i as n,b as f}from"./ItemInfo.js";function E(e){let a,r=e.id;if(r==n.ITEM_TYPE_SKIN)return"Одежда (ID: "+e.extraID+")";if(f(r))return`Кейс ${e.name}`;if(n.ITEM_TYPE_FERTILIZER==r)return`${e.extraName} удобрение`;if(n.ITEM_TYPE_SEEDS==r)return`Семена ${e.extraName}`;if(n.ITEM_TYPE_HARVEST==r)return`${e.extraName}`;if(n.ITEM_TYPE_WATER_CANISTER==r)return`Канистра воды (${e.extraName}л)`;if(n.ITEM_TYPE_DRINKS==r)return`Напиток '${e.extraName}'`;if(n.ITEM_TYPE_MEDICAMENT==r)return`Лекарство '${e.extraName}'`;if(n.ITEM_TYPE_CERTIFICATES==r)return`Сертификат '${e.extraName}'`;if(n.ITEM_TYPE_STOLEN_DEVICE==r)return`Украденная техника: ${e.extraName}`;if(n.ITEM_TYPE_FISH==r){if(e.extraID==0)return"Красноперка";if(e.extraID==1)return"Щука";if(e.extraID==2)return"Сом";if(e.extraID==3)return"Карась";if(e.extraID==4)return"Тунец";if(e.extraID==5)return"Лосось";if(e.extraID==6)return"Карп";if(e.extraID==7)return"Мальма";if(e.extraID==8)return"Осетр";if(e.extraID==9)return"Угорь"}if(n.ITEM_TYPE_FISHING_BAIT==r){if(e.extraID==0)return"Кусочки хлеба";if(e.extraID==1)return"Лягушка";if(e.extraID==2)return"Кузнечик";if(e.extraID==3)return"Червь";if(e.extraID==4)return"Мотыль";if(e.extraID==5)return"Опарыш"}if(n.ITEM_TYPE_FISHING_LINE==r){if(e.extraID==0)return"Леска 0.15мм";if(e.extraID==1)return"Леска 0.3мм";if(e.extraID==2)return"Леска 0.85мм"}let s=t[r].name.split("{name}");return s.length>1?s.join(`${e.extraName}`):(t[r].appendName=="data_string"?a=t[r].name(e.extraName):a=t[r].name,a)}function p(e){let a,r=e.id,s=e.extraID;try{switch(t[r].iconType){case"bait":a=`/images/fishing/bait/small/${s}.png`;break;case"fishrod":a=`/images/fishing/rod/small/${e.count}.png`;break;case"fish":a=`/images/fishing/fish/small/${s-1}.png`;break;case"skin":a=`/images/skins/small/${t[r].IconID}.png`;break;case"cloth":a=`/images/skins/small/${s}.png`;break;case"accessories":a=`/images/accessories/small/${s}.png`;break;case"dogs":a=`/images/dogs/small/${s}.png`;break;case"doghouses":a=`/images/doghouses/small/${s}.png`;break;case"roosters":a=`/images/roosters/small/${s}.png`;break;case"cats":a=`/images/cats/small/${s}.png`;break;case"catbeds":a=`/images/catbeds/small/${s}.png`;break;case"propertyAccessories":a=`/images/poperty_accessories/${s}.png`;break;case"drinks":a=`/images/drinks/${s}.png`;break;case"fertilizer":a=`/images/gardens/fertilizer/${s}.png`;break;case"seeds":a=`/images/gardens/seeds/${s}.png`;break;case"harvest":a=`/images/gardens/harvest/${s}.png`;break;case"spray":a=`/images/spray/small/${s}_${e.count}.png`;break;case"medicament":a=`/images/medicament/${s}.png`;break;case"certificates":a=`/images/certificates/${s}.png`;break;case"stolenDevices":a=`/images/stolenDevices/small/${s}.png`;break;default:a=`/images/inventoryItems/small/${r}.png`;break}}catch{a=""}return a}function m([e,a,r,s,i,I,l,g,c]){return{id:e,extraID:a,extraName:r,extraValue:s,count:i,weight:I,wear:l,caliber:g,faction:c}}export{p as a,E as g,m as p};
