PageSourceSearch

https://fieldcalc.app/_next/static/chunks/903.6e2a90fcd015edf9.js

js fieldcalc.app collected 2026-10-02 00:26:28 UTC 3,288 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[903],{50903:function(e,t,l){l.r(t),l.d(t,{default:function(){return c}});var o=l(57437),s=l(2265),a=l(70682),u=l(1592);let i={plow:{key:"opPlow",metric:25,us:2.7},chisel:{key:"opChisel",metric:12,us:1.3},subsoil:{key:"opSubsoil",metric:30,us:3.2},plant:{key:"opPlant",metric:5.5,us:.6},spray:{key:"opSpray",metric:3,us:.3},fert:{key:"opFert",metric:4,us:.4},combine:{key:"opCombine",metric:18,us:2},cart:{key:"opCart",metric:8,us:.9},mow:{key:"opMow",metric:7,us:.75},bale:{key:"opBale",metric:10,us:1.1},custom:{key:"opCustom",metric:10,us:1.1}};function c(){var e,t;let{t:l}=(0,u.NT)(),[c,n]=(0,s.useState)("metric"),[r,g]=(0,s.useState)("plow"),[d,f]=(0,s.useState)("10"),[m,p]=(0,s.useState)("100"),[b,C]=(0,s.useState)("1"),[v,h]=(0,s.useState)("1.50"),x="metric"===c,y=x?"ha":"ac",j=x?"L":"gal",k=x?"$/L":"$/gal",W=x?null===(e=i[r])||void 0===e?void 0:e.metric:null===(t=i[r])||void 0===t?void 0:t.us,N="custom"===r?(0,a.OK)(d):null!=W?W:0,O=(0,a.OK)(m)*(0,a.OK)(b),w=N*O,S=w*(0,a.OK)(v),_=O>0?S/O:0;return(0,o.jsx)(a.tG,{children:(0,o.jsxs)("div",{className:"space-y-4",children:[(0,o.jsx)(a.nj,{tabs:[{key:"metric",label:l("toolWidgets.fuelCost.tabMetric")},{key:"us",label:l("toolWidgets.fuelCost.tabUs")}],active:c,onChange:n}),(0,o.jsx)(a.mg,{label:l("toolWidgets.fuelCost.operation"),value:r,onChange:e=>g(e.target.value),options:Object.entries(i).map(e=>{let[t,o]=e;return{value:t,label:l("toolWidgets.fuelCost.".concat(o.key))}})}),"custom"===r&&(0,o.jsx)(a._s,{label:l("toolWidgets.fuelCost.customFuelRate",{unit:"".concat(j,"/").concat(y)}),type:"number",value:d,onChange:e=>f(e.target.value),suffix:"".concat(j,"/").concat(y),min:"0",step:"0.1"}),(0,o.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,o.jsx)(a._s,{label:l("toolWidgets.fuelCost.fieldArea",{unit:y}),type:"number",value:m,onChange:e=>p(e.target.value),suffix:y,min:"0"}),(0,o.jsx)(a._s,{label:l("toolWidgets.fuelCost.passes"),type:"number",value:b,onChange:e=>C(e.target.value),suffix:"\xd7",min:"1"})]}),(0,o.jsx)(a._s,{label:l("toolWidgets.fuelCost.fuelPrice",{unit:k}),type:"number",value:v,onChange:e=>h(e.target.value),suffix:k,min:"0",step:"0.01"}),O>0&&N>0?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(a.O5,{children:[(0,o.jsx)(a.e7,{label:l("toolWidgets.fuelCost.totalFuel",{unit:j}),value:(0,a.ZN)(w,1),highlight:!0}),(0,o.jsx)(a.e7,{label:l("toolWidgets.fuelCost.totalCost"),value:"$".concat((0,a.ZN)(S,2)),highlight:!0})]}),(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsx)(a.O0,{label:l("toolWidgets.fuelCost.fuelRate"),value:"".concat((0,a.ZN)(N,2)," ").concat(j,"/").concat(y)}),(0,o.jsx)(a.O0,{label:l("toolWidgets.fuelCost.totalAreaWorked"),value:"".concat((0,a.ZN)(O,1)," ").concat(y)}),(0,o.jsx)(a.O0,{label:l("toolWidgets.fuelCost.costPerArea",{unit:y}),value:"$".concat((0,a.ZN)(_,2)),copyable:!0}),(0,o.jsx)(a.O0,{label:l("toolWidgets.fuelCost.totalFuelRow"),value:"".concat((0,a.ZN)(w,1)," ").concat(j),copyable:!0}),(0,o.jsx)(a.O0,{label:l("toolWidgets.fuelCost.totalCostRow"),value:"$".concat((0,a.ZN)(S,2)),copyable:!0})]})]}):(0,o.jsx)(a.qX,{tone:"warn",children:l("toolWidgets.fuelCost.errorArea")}),(0,o.jsx)(a.qX,{tone:"info",children:l("toolWidgets.fuelCost.infoDefaults")})]})})}}}]);

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.