1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{1065:(e,t,a)=>{"use strict";a.d(t,{$w:()=>g,CY:()=>f,Eg:()=>x,GH:()=>d,HJ:()=>i,S_:()=>c,T$:()=>p,ZV:()=>v,k_:()=>u,oE:()=>o,qJ:()=>h,r_:()=>r,vC:()=>b,wm:()=>n,wn:()=>m});let r=[{id:"cubic_feet",label:"Cubic Feet",abbreviation:"ft\xb3",category:"cubic"},{id:"cubic_inches",label:"Cubic Inches",abbreviation:"in\xb3",category:"cubic"},{id:"cubic_yards",label:"Cubic Yards",abbreviation:"yd\xb3",category:"cubic"},{id:"cubic_meters",label:"Cubic Meters",abbreviation:"m\xb3",category:"cubic"},{id:"cubic_centimeters",label:"Cubic Centimeters",abbreviation:"cm\xb3",category:"cubic"},{id:"gallons_us",label:"Gallons (US)",abbreviation:"gal",category:"capacity"},{id:"gallons_uk",label:"Gallons (UK)",abbreviation:"gal UK",category:"capacity"},{id:"liters",label:"Liters",abbreviation:"L",category:"capacity"},{id:"milliliters",label:"Milliliters",abbreviation:"mL",category:"capacity"},{id:"board_feet",label:"Board Feet",abbreviation:"BF",category:"specialty"}],i=[{id:"feet",label:"Feet",abbreviation:"ft"},{id:"inches",label:"Inches",abbreviation:"in"},{id:"yards",label:"Yards",abbreviation:"yd"},{id:"meters",label:"Meters",abbreviation:"m"},{id:"centimeters",label:"Centimeters",abbreviation:"cm"}],s={cubic_feet:1,cubic_inches:1/1728,cubic_yards:27,cubic_meters:35.3147,cubic_centimeters:1/28316.8,gallons_us:.133681,gallons_uk:.160544,liters:.0353147,milliliters:353147e-10,board_feet:1/12},l={feet:1,inches:1/12,yards:3,meters:3.28084,centimeters:.0328084};function n(e,t,a){return e*s[t]/s[a]}function o(e,t){return r.map(a=>({unit:a.id,value:n(e,t,a.id),label:a.label,abbreviation:a.abbreviation}))}function c(e,t){return e*l[t]}function d(e,t,a,r,i,s){let n=e*l[r];return n*(t*l[i])*(a*l[s])}function b(e,t,a,r){let i=e*l[a];return Math.PI*i*i*(t*l[r])}function m(e,t){let a=e*l[t];return 4/3*Math.PI*a*a*a}function u(e,t,a,r){let i=e*l[a];return 1/3*Math.PI*i*i*(t*l[r])}function x(e,t,a){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,i=e*t*(a/12)*(1+r/100);return{cubicFeet:i,cubicYards:i/27,bags60lb:Math.ceil(i/.45),bags80lb:Math.ceil(i/.6)}}function h(e,t,a){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1.25,i=e*t*a*r;return{cubicFeet:i,cubicYards:i/27,truckLoads:Math.ceil(i/27/10)}}function g(e,t,a){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.85,s=e*t*a/1728*r/i,l=.0283168*s;return{cubicFeet:s,cubicMeters:l,cbm:l}}function f(e,t,a){let r,i=t.height*l[a];if("rectangular"===e&&t.length&&t.width)r=t.length*l[a]*(t.width*l[a])*i;else if("cylindrical"===e&&t.diameter){let e=t.diameter/2*l[a];r=Math.PI*e*e*i}else r=0;return{cubicFeet:r,gallonsUS:7.48052*r,liters:28.3168*r}}function p(e,t,a){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=e*t*a*r/12;return{boardFeet:i,cubicFeet:i/12}}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(Math.abs(e)>=1e9||1e-6>Math.abs(e)&&0!==e)return e.toExponential(t);if(Math.abs(e)>=1e3)return e.toLocaleString("en-US",{maximumFractionDigits:t});let a=Math.pow(10,t);return String(Math.round(e*a)/a)}},1584:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,2619,23)),Promise.resolve().then(a.bind(a,2481)),Promise.resolve().then(a.bind(a,3496))},2481:(e,t,a)=>{"use strict";a.d(t,{HomeCalculatorClient:()=>k});var r=a(5155),i=a(7909),s=a(2115),l=a(5299),n=a(9847),o=a(7217),c=a(8042),d=a(5530),b=a(647),m=a(2529),u=a(7910),x=a(1065);let h=()=>(0,r.jsx)("div",{className:"flex min-h-48 items-center justify-center rounded-xl border border-gray-100 bg-gray-50",children:(0,r.jsx)(l.A,{className:"h-6 w-6 animate-spin text-gray-300"})}),g=(0,i.default)(()=>Promise.all([a.e(6570),a.e(9722)]).then(a.bind(a,9722)).then(e=>e.DimensionCalculator),{loadableGenerated:{webpack:()=>[9722]},ssr:!1,loading:h}),f=(0,i.default)(()=>Promise.all([a.e(6570),a.e(2536)]).then(a.bind(a,2536)).then(e=>e.SceneCalculators),{loadableGenerated:{webpack:()=>[2536]},ssr:!1,loading:h}),p=(0,i.default)(()=>a.e(8139).then(a.bind(a,8139)).then(e=>
1e.BatchCalculator),{loadableGenerated:{webpack:()=>[8139]},ssr:!1,loading:h}),v=(0,i.default)(()=>Promise.all([a.e(2337),a.e(9421)]).then(a.bind(a,9421)).then(e=>e.HistorySidebar),{loadableGenerated:{webpack:()=>[9421]},ssr:!1,loading:()=>(0,r.jsx)("div",{className:"h-40 rounded-2xl border border-gray-100 bg-white"})}),y=(0,i.default)(()=>Promise.all([a.e(9367),a.e(1831),a.e(2274),a.e(2318),a.e(1736)]).then(a.bind(a,1736)),{loadableGenerated:{webpack:()=>[1736]},ssr:!1,loading:h}),j=(0,i.default)(()=>a.e(3356).then(a.bind(a,3356)).then(e=>e.HomeCalculatorStateBridge),{loadableGenerated:{webpack:()=>[3356]},ssr:!1,loading:h}),N=[{value:"direct",label:"Direct Conversion",icon:n.A},{value:"dimension",label:"Dimensions",icon:o.A},{value:"scene",label:"Scene Calculators",icon:c.A},{value:"batch",label:"Batch Calculator",icon:d.A}];function w(e){let{value:t,unit:a,onValueChange:i,onUnitChange:l}=e,o=x.r_.find(e=>e.id===a),c=(0,s.useMemo)(()=>(0,x.oE)(Math.max(0,t||0),a),[t,a]);return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsx)("div",{className:"rounded-xl border border-primary-100 bg-gradient-to-br from-primary-50/30 to-white shadow-sm",children:(0,r.jsx)("div",{className:"p-6",children:(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-end",children:[(0,r.jsxs)("label",{className:"flex-1",children:[(0,r.jsx)("span",{className:"mb-1.5 block text-sm font-medium text-gray-700",children:"Volume Value"}),(0,r.jsxs)("div",{className:"relative flex items-center",children:[(0,r.jsx)("input",{type:"number",value:t||"",onChange:function(e){let t=Number.parseFloat(e.target.value);i(Number.isFinite(t)?t:0)},placeholder:"Enter volume...",min:0,step:"any",inputMode:"decimal",className:"flex h-12 w-full rounded-xl border border-gray-200 bg-white px-4 py-3 pr-14 text-base font-medium text-gray-900 shadow-sm transition-all duration-200 placeholder:text-gray-400 hover:border-gray-300 focus:border-primary-500 focus:outline-none focus:ring-4 focus:ring-blue-100"}),o&&(0,r.jsx)("span",{className:"pointer-events-none absolute right-4 text-sm font-medium text-gray-400",children:o.abbreviation})]})]}),(0,r.jsxs)("label",{className:"sm:w-52",children:[(0,r.jsx)("span",{className:"mb-1.5 block text-sm font-medium text-gray-700",children:"Unit"}),(0,r.jsx)("select",{value:a,onChange:e=>l(e.target.value),className:"flex h-12 w-full rounded-xl border border-gray-200 bg-white px-4 py-3 text-sm font-medium text-gray-900 shadow-sm transition-all duration-200 hover:border-gray-300 focus:border-primary-500 focus:outline-none focus:ring-2 focus:ring-primary-100",children:x.r_.map(e=>(0,r.jsxs)("option",{value:e.id,children:[e.label," (",e.abbreviation,")"]},e.id))})]})]})})}),(0,r.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-400",children:[(0,r.jsx)(n.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{children:"Conversion Results"})]}),(0,r.jsx)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-5",children:c.map(e=>(0,r.jsxs)("div",{className:e.unit===a?"rounded-xl border border-primary-200 bg-primary-50/50 p-4 shadow-sm ring-1 ring-primary-200":"rounded-xl border border-gray-100 bg-white p-4 shadow-sm transition hover:border-gray-200 hover:shadow-md",children:[(0,r.jsx)("p",{className:"text-xs font-medium uppercase tracking-wider text-gray-400",children:e.abbreviation}),(0,r.jsx)("p",{className:"mt-1 font-mono text-lg font-semibold text-gray-900",children:(0,x.ZV)(e.value)}),(0,r.jsx)("p",{className:"mt-0.5 text-xs text-gray-500",children:e.label})]},e.unit))})]})}function C(e){let{value:t,activeMode:a,onClick:i,children:s}=e,l=t===a;return(0,r.jsx)("button",{type:"button",onClick:()=>i(t),className:"inline-flex items-center justify-center whitespace-nowrap rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 ".concat(l?"bg-white font-semibold text-primary-600 shadow-sm":"text-gray-600 hover:text-gray-900"),"aria-pressed":l,children:s})}
1function k(){let[e,t]=(0,s.useState)("direct"),[a,i]=(0,s.useState)(1),[l,n]=(0,s.useState)("cubic_feet"),[o,c]=(0,s.useState)(!1),[d,x]=(0,s.useState)(!1);return(0,r.jsxs)("div",{id:"calculator",className:"scroll-mt-20",children:[(0,r.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsxs)("div",{className:"mb-1.5 inline-flex items-center gap-1.5 rounded-full border border-blue-200 bg-blue-50 px-3 py-1 text-[11px] font-semibold uppercase tracking-wider text-blue-700",children:[(0,r.jsx)(b.A,{className:"h-3 w-3"}),"Volume Converter"]}),(0,r.jsxs)("h1",{className:"text-2xl font-extrabold tracking-tight text-gray-900 sm:text-3xl",children:["Convert volumes ",(0,r.jsx)("span",{className:"text-gradient",children:"cubic to feet"})," instantly."]}),(0,r.jsx)("p",{className:"mt-1 text-sm text-gray-500 sm:text-base",children:"Free cubic to feet calculator with 10+ units, on-demand visualization, and clear formula-based results."})]}),(0,r.jsxs)("div",{className:"flex shrink-0 items-center gap-4 text-xs text-gray-400 sm:gap-5",children:[(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)(m.A,{className:"h-3.5 w-3.5 text-green-500"}),"Free"]}),(0,r.jsxs)("span",{className:"hidden items-center gap-1 sm:flex",children:[(0,r.jsx)(u.A,{className:"h-3.5 w-3.5 text-blue-500"}),"No Sign-up"]})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-8 lg:flex-row",children:[(0,r.jsxs)("div",{className:"min-w-0 flex-1 space-y-8",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"inline-flex w-full items-center gap-1 rounded-xl bg-gray-100 p-1 sm:w-auto",children:N.map(a=>{let{value:i,label:s,icon:l}=a;return(0,r.jsxs)(C,{value:i,activeMode:e,onClick:t,children:[(0,r.jsx)(l,{className:"mr-2 h-4 w-4"}),s]},i)})}),(0,r.jsxs)("div",{className:"mt-4",children:["direct"===e&&(0,r.jsx)(w,{value:a,unit:l,onValueChange:i,onUnitChange:n}),"direct"!==e&&(0,r.jsxs)(j,{mode:e,children:["dimension"===e&&(0,r.jsx)(g,{}),"scene"===e&&(0,r.jsx)(f,{}),"batch"===e&&(0,r.jsx)(p,{})]})]})]}),"direct"===e&&(o?(0,r.jsx)(y,{}):(0,r.jsxs)("div",{className:"rounded-2xl border border-dashed border-blue-200 bg-blue-50/70 p-5 text-center",children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-slate-900",children:"3D volume preview is ready when you need it."}),(0,r.jsx)("p",{className:"mt-1 text-sm text-slate-600",children:"Keep the calculator fast by loading the visualizer only on demand."}),(0,r.jsx)("button",{type:"button",onClick:()=>c(!0),className:"mt-4 rounded-xl bg-blue-600 px-4 py-2 text-sm font-bold text-white transition hover:bg-blue-700",children:"Show 3D Preview"})]}))]}),(0,r.jsx)("aside",{className:"w-full shrink-0 lg:w-80",children:(0,r.jsx)("div",{className:"sticky top-24",children:d?(0,r.jsx)(v,{}):(0,r.jsxs)("div",{className:"rounded-2xl border border-gray-100 bg-white p-5 shadow-sm",children:[(0,r.jsx)("h2",{className:"text-sm font-semibold text-gray-900",children:"History"}),(0,r.jsx)("p",{className:"mt-2 text-sm leading-6 text-gray-500",children:"Calculation history loads only when opened to keep the calculator fast."}),(0,r.jsx)("button",{type:"button",onClick:()=>x(!0),className:"mt-4 rounded-xl border border-slate-200 px-4 py-2 text-sm font-semibold text-slate-700 transition hover:bg-slate-50",children:"Open History"})]})})})]})]})}},3496:(e,t,a)=>{"use strict";a.d(t,{Accordion:()=>o,AccordionContent:()=>b,AccordionItem:()=>c,AccordionTrigger:()=>d});var r=a(5155),i=a(2115),s=a(6083),l=a(4033),n=a(4269);let o=s.bL,c=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,r.jsx)(s.q7,{ref:t,className:(0,n.cn)("border-b border-gray-100 last:border-0",a),...i})});c.displayName="AccordionItem";let d=i.forwardRef((e,t)=>{let{className:a,children:i,...o}=e;return(0,r.jsx)(s.Y9,{className:"flex",children:(0,r.jsxs)(s.l9,{ref:t,className:(0,n.cn)("flex flex-1 items-center justify-between py-5 text-left text-base font-medium text-gray-900 transition-all duration-200","hover:text-primary-600","[&[data-state=open]>svg]:rotate-180",a),...o,children:[i,(0,r.jsx)(l.A,{className:"h-5 w-5 text-gray-400 shrink-0 transition-transform duration-200"})]})})});d.displayName="AccordionTrigger";let b=i.forwardRef((e,t)=>
1{let{className:a,children:i,...l}=e;return(0,r.jsx)(s.UC,{ref:t,className:"overflow-hidden text-gray-600 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",...l,children:(0,r.jsx)("div",{className:(0,n.cn)("pb-5 text-[15px] leading-relaxed",a),children:i})})});b.displayName="AccordionContent"},4269:(e,t,a)=>{"use strict";a.d(t,{cn:()=>s});var r=a(2821),i=a(5889);function s(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,i.QP)((0,r.$)(t))}}},e=>{e.O(0,[2619,9779,7260,1386,8441,1255,7358],()=>e(e.s=1584)),_N_E=e.O()}]);
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.