PageSourceSearch

https://tronbid.energy/_next/static/chunks/5110.e976fcb77347de48.js

js tronbid.energy collected 2026-10-09 02:53:14 UTC 8,808 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5110],{2644:(e,t,r)=>{r.d(t,{_e:()=>s,aT:()=>i,lU:()=>a});var n=r(3699);function a(e,t){return"".concat(60===e?60:15).concat(l[t])}let l=(0,n.I3)({en:"m",ru:" мин",zh:"分钟"}),i=(0,n.I3)({en:{heading:"Energy Calculator",subtitle:"Find out how much energy you need for your USDT transfers",pageTitle:"TRON Energy Calculator",walletLabel:"TRON USDT TRC-20 recipient address (not your own wallet)",walletPlaceholder:"T...",estimateCta:"Estimate Energy",estimating:"Estimating...",invalidAddress:"Invalid TRON wallet address.",calculationFailed:"Calculation failed.",transferEnergyAbout:"About {{amount}} energy will be needed for the transfer",rowEnergyFeeHint:"Energy payment only per on-chain parameters;\nbandwidth and dynamic energy may add cost.",rowHasUsdt:"Has USDT (TRC-20): {{value}}",usdtYes:"yes",usdtNo:"no",usdtUnknown:"could not check",quickPackage:"Recommended package {{energy}} / {{duration}} — {{priceTrx}}",quickPriceMissing:"—",rentThisPackage:"Rent this package"},ru:{heading:"Калькулятор энергии",subtitle:"Узнайте, сколько энергии нужно для переводов USDT",pageTitle:"Калькулятор энергии TRON",walletLabel:"Адрес получателя USDT TRC-20 в сети TRON (не ваш кошелёк)",walletPlaceholder:"T...",estimateCta:"Рассчитать энергию",estimating:"Расчет...",invalidAddress:"Некорректный адрес TRON кошелька.",calculationFailed:"Не удалось выполнить расчет.",transferEnergyAbout:"Понадобится энергии около {{amount}}",rowEnergyFeeHint:"Только оплата energy по параметру сети; bandwidth и dynamic energy могут добавить расход.",rowHasUsdt:"Есть USDT (TRC-20): {{value}}",usdtYes:"да",usdtNo:"нет",usdtUnknown:"не удалось проверить",quickPackage:"Рекомендуемый пакет {{energy}} / {{duration}} — {{priceTrx}}",quickPriceMissing:"—",rentThisPackage:"Арендовать этот пакет"},zh:{heading:"能量计算器",subtitle:"估算 USDT 转账所需的 TRON 能量",pageTitle:"TRON 能量计算器",walletLabel:"TRON USDT TRC-20 收款地址(非您自己的钱包)",walletPlaceholder:"T...",estimateCta:"估算能量",estimating:"估算中...",invalidAddress:"TRON 钱包地址无效。",calculationFailed:"计算失败。",transferEnergyAbout:"完成转账大约需要 {{amount}} 能量",rowEnergyFeeHint:"仅为按链上参数估算的 energy 费用;带宽与动态能量可能会增加成本。",rowHasUsdt:"是否有 USDT(TRC-20):{{value}}",usdtYes:"有",usdtNo:"无",usdtUnknown:"无法检测",quickPackage:"推荐套餐 {{energy}} / {{duration}} — {{priceTrx}}",quickPriceMissing:"—",rentThisPackage:"租赁此套餐"}});function s(e,t){let r=i[t];return!0===e?r.usdtYes:!1===e?r.usdtNo:r.usdtUnknown}},2954:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1658).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},3732:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(1658).A)("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]])},5110:(e,t,r)=>{r.r(t),r.d(t,{CalculatorPageClient:()=>h});var n=r(2964),a=r(7690),l=r.n(a),i=r(1896),s=r(3732),d=r(2954),o=r(7522),c=r(2644),u=r(201),m=r(3903),g=r(7825);function h(e){let{locale:t,initialWallet:r="",variant:a="page"}=e,[h,y]=(0,i.useState)(r),[x,p]=(0,i.useState)(!1),[b,f]=(0,i.useState)(""),[k,w]=(0,i.useState)(null),T=h.trim().startsWith("T"),N=c.aT[t],_=(0,i.useMemo)(()=>{if(!k)return(0,m.KO)(t,"/quick-rent");let e=new URLSearchParams({energy:String(k.recommended_energy),duration:String(k.recommended_duration_minutes),payer:h.trim()});return"".concat((0,m.KO)(t,"/quick-rent"),"?").concat(e.toString())},[t,k,h]),v=async()=>{p(!0),f(""),w(null);try{let e=await (0,g.X$)("/api/v2/quick-rent/calculator",{method:"POST",body:JSON.stringify({wallet_address:h.trim()})});w((0,o.R)(e))}catch(e){f("INVALID_ADDRESS"===(e instanceof g.Ec?e.code:"Error")?N.invalidAddress:N.calculationFailed)}finally{p(!1)}};return(0,n.jsx)("section",{className:"home"===a?"py-20 bg-muted/50":"container mx-auto px-4 max-w-xl pt-24 pb-12",children:(0,n.jsx)("div",{className:"home"===a?"container mx-auto px-4":"",children:(0,n.jsxs)("div",{className:"home"===a?"max-w-2xl mx-auto":"",children:["home"===a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-3",children:[(0,n.jsx)(s.A,{className:"w-6 h-6 text-primary"}),(0,n.jsx)("h2",{className:"section-heading text-foreground",children:N.heading})]}),(0,n.jsx)("p",{className:"text-center text-muted-foreground mb-8",children:N.subtitle})]}):(0,n.jsx)("h1",{className:"text-3xl font-heading font-bold mb-4",children:N.pageTitle}),(0,n.jsxs)("div",{className:"".concat("home"===a?"bg-card rounded-2xl border border-border p-6 md:p-8 shadow-sm":"bg-card rounded-2xl border border-border p-6 space-y-4"," ").concat("home"===a?"":"space-y-4"),children:[(0,n.jsx)("label",{className:"text-sm font-medium text-foreground mb-2 block",children:N.walletLabel}),(0,n.jsx)("input",{value:h,onChange:e=>y(e.target.value),placeholder:N.walletPlaceholder,className:"w-full px-4 py-3 rounded-lg border border-border bg-background"}),(0,n.jsx)("button",{type:"button",onClick:()=>void v(),disabled:!T||x,className:"w-full cta-button py-3 rounded-xl text-primary-foreground disabled:opacity-60 mt-4",children:x?N.estimating:N.estimateCta}),b?(0,n.jsx)("p",{className:"text-red-500 text-sm mt-2",children:b}):null,k?(0,n.jsxs)("div",{className:"mt-4 space-y-2 rounded-lg border border-border bg-muted/40 p-4 text-left text-sm",children:[(0,n.jsx)("p",{className:"font-medium text-foreground leading-snug",children:N.transferEnergyAbout.replace("{{amount}}",(0,u.Mf)(k.recommended_energy))}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground leading-snug whitespace-pre-line",children:N.rowEnergyFeeHint}),(0,n.jsx)("p",{className:"text-foreground",children:N.rowHasUsdt.replace("{{value}}",(0,c._e)(k.has_usdt,t))}),(0,n.jsx)("p",{className:"text-foreground",children:function(e,t){let r=c.aT[e],n=(0,u.Mf)(t.recommended_energy),a=(0,c.lU)(t.recommended_duration_minutes,e),l=null!=t.quick_price_trx&&""!==t.quick_price_trx?"".concat((0,u.hR)(t.quick_price_trx)," TRX"):r.quickPriceMissing;return r.quickPackage.replace("{{energy}}",n).replace("{{duration}}",a).replace("{{priceTrx}}",l)}(t,k)}),(0,n.jsxs)(l(),{href:_,className:"inline-flex items-center gap-2 mt-2 rounded-lg border border-border bg-background px-4 py-2.5 text-sm font-medium text-foreground transition-colors hover:bg-muted/80 ".concat("home"===a?"w-full justify-center":""),children:[N.rentThisPackage,"home"===a?(0,n.jsx)(d.A,{className:"w-4 h-4 shrink-0"}):null]})]}):null]})]})})})}},7522:(e,t,r)=>{function n(e,t){for(let r of t){let t=e[r];if("number"==typeof t&&Number.isFinite(t))return t;if("string"==typeof t&&""!==t.trim()){let e=parseFloat(t);if(Number.isFinite(e))return e}}}function a(e){var t,r,a,l,i,s,d,o,c;if(!e||"object"!=typeof e)throw Error("Invalid calculator response");let u=Math.max(0,Math.round(null!=(t=n(e,["estimated_energy","estimatedEnergy"]))?t:0)),m=n(e,["estimated_energy_fee_trx","estimatedEnergyFeeTrx"]),g=n(e,["estimated_network_fee_trx","estimatedNetworkFeeTrx"]),h=null!=(r=null!=m?m:g)?r:0,y=null!=(a=null!=g?g:m)?a:0,x=Math.round(null!=(l=n(e,["recommended_energy","recommendedEnergy"]))?l:131e3),p=Math.round(null!=(i=n(e,["recommended_duration_minutes","recommendedDurationMinutes"]))?i:15),b=null!=(s=e.quick_price_trx)?s:e.quickPriceTrx,f=null==b||""===b?null:"number"==typeof b&&Number.isFinite(b)?String(b):String(b).trim()||null,k=Math.round(null!=(d=n(e,["
1save_percent","savePercent"]))?d:0),w=n(e,["baseline_fee_trx","baselineFeeTrx"]),T=void 0!==w&&Number.isFinite(w)?w:null;return{wallet_address:String(null!=(c=null!=(o=e.wallet_address)?o:e.walletAddress)?c:"").trim(),estimated_energy:u,estimated_energy_fee_trx:h,estimated_network_fee_trx:y,has_usdt:function(e,t){for(let r of t){let t=e[r];if(!0===t||!1===t)return t;if(null===t)break}return null}(e,["has_usdt","hasUsdt"]),recommended_energy:x,recommended_duration_minutes:60===p?60:15,quick_price_trx:f,save_percent:k,baseline_fee_trx:T}}r.d(t,{R:()=>a})}}]);

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.