1import{d as m,b as f,r as i,Q as p,f as h}from"./e3jp4aij.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"ecos-frontend-cp@12213eb99e1069e82980933c1ec51c50139958dd"};var o=new a.Error().stack;o&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[o]="ab4c5ce9-ae09-4a4e-92c1-09a6462af5ac",a._sentryDebugIdIdentifier="sentry-dbid-ab4c5ce9-ae09-4a4e-92c1-09a6462af5ac")}catch{}})();const g={hashrate:75,revenue:"$1,220.48",totalBTC:"0.018893",BTCPerDay:"0.000039",contract:3},v={hashrate:1008,revenue:"$1.94",BTCPerDay:"0.00052416",totalBTC:"0.00003",totalMiningPower:4,model:"Antminer S21"},y={hashrate:504,duration:"60 days",totalBTC:"0.1530512",BTCPerDay:"0.00026208",totalMiningPower:2,revenue:"$9,881.44",renter:"Demo renter"},b={availableUnits:1,pricePerUnit:"1580"},T={btcRate:64551.7,fpps:4795e-10},D={id:83,generation:6,active:1,name:"Demo cloud mining contract",contract_price_settings:{min:99,sale:{hashrate:10,electricity:5},period:{max:60,min:1},prepaid_electricity_days:{min:5,fixed:5}},service_charge:.01,th_price_in_device:.00186,forecast_settings:[1e5,12e4,15e4,2e5]},_={id:345353039,priceUsd:99,hashrateTh:119,durationDays:365},w=[{id:101,name:"Antminer S21 188TH/s",powerTh:188,price:3280,roi:.26},{id:102,name:"Antminer S21 188TH/s",powerTh:188,price:3280,roi:.26},{id:103,name:"Antminer S21 200TH/s",powerTh:200,price:3729,roi:.25}],I=[{id:201,name:"Cloud mining 100 TH/s",hashrateTh:100,price:990,roi:18.4,discount:8},{id:202,name:"Cloud mining 250 TH/s",hashrateTh:250,price:2475,roi:19.1,discount:14},{id:203,name:"Cloud mining 500 TH/s",hashrateTh:500,price:4950,roi:20.2,discount:20}],C={cloud:g,asic:v,rent:y,sm:b,market:T,calculator:D,promoEntry:_,marketplaceOffers:w,hashrateOffers:I},u=C,S=m("miningFarmInfo",()=>{const o=f().public.API_V2_URL,s=i(0),l=i(0),c=i(!1),d=i(!1),t=i("");let r=null;return{fpps:s,btcRate:l,loading:c,loaded:d,error:t,loadMiningFarmInfo:(n=!1)=>r||(d.value&&!n?Promise.resolve():p("access-token-user").value?(c.value=!0,t.value="",r=(async()=>{try{const e=await h(`${o}/mining-farm/info`);if(!e.ok||!e.data.data){t.value=e.ok?"Failed to load mining farm info":e.failure.message;return}s.value=e.data.data.fpps,l.value=e.data.data.btc_rate,d.value=!0}catch(e){t.value=e instanceof Error?e.message:"Unknown error occurred"}finally{c.value=!1,r=null}})(),r):(s.value=u.market.fpps,l.value=u.market.btcRate,d.value=!0,c.value=!1,t.value="",Promise.resolve())),formatFpps:n=>n.toFixed(8),formatBtcRate:n=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(n)}});export{u as d,S as u};
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.