PageSourceSearch

https://cubictofeetcalculator.cc/_next/static/chunks/2536.84f1566566b2629c.js

js cubictofeetcalculator.cc collected 2026-10-05 20:43:09 UTC 27,626 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2536],{574:(e,t,a)=>{a.d(t,{UC:()=>Y,B8:()=>q,bL:()=>P,l9:()=>$});var r=a(2115),n=a(2556),s=a(3468),i=a(9118),l=a(4446),o=a(8946),d=a(8142),c=a(222),u=a(3558),m=a(6218),p=a(5155),h="rovingFocusGroup.onEntryFocus",x={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[f,g,y]=(0,i.N)(b),[v,j]=(0,s.A)(b,[y]),[w,N]=v(b),C=r.forwardRef((e,t)=>(0,p.jsx)(f.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(f.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(D,{...e,ref:t})})}));C.displayName=b;var D=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:s,loop:i=!1,dir:o,currentTabStopId:f,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:v,onEntryFocus:j,preventScrollOnEntryFocus:N=!1,...C}=e,D=r.useRef(null),F=(0,l.s)(t,D),S=(0,m.jH)(o),[k,T]=(0,u.i)({prop:f,defaultProp:null!=y?y:null,onChange:v,caller:b}),[K,B]=r.useState(!1),L=(0,c.c)(j),R=g(a),A=r.useRef(!1),[V,U]=r.useState(0);return r.useEffect(()=>{let e=D.current;if(e)return e.addEventListener(h,L),()=>e.removeEventListener(h,L)},[L]),(0,p.jsx)(w,{scope:a,orientation:s,dir:S,loop:i,currentTabStopId:k,onItemFocus:r.useCallback(e=>T(e),[T]),onItemShiftTab:r.useCallback(()=>B(!0),[]),onFocusableItemAdd:r.useCallback(()=>U(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>U(e=>e-1),[]),children:(0,p.jsx)(d.sG.div,{tabIndex:K||0===V?-1:0,"data-orientation":s,...C,ref:F,style:{outline:"none",...e.style},onMouseDown:(0,n.mK)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,n.mK)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!K){let t=new CustomEvent(h,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=R().filter(e=>e.focusable);M([e.find(e=>e.active),e.find(e=>e.id===k),...e].filter(Boolean).map(e=>e.ref.current),N)}}A.current=!1}),onBlur:(0,n.mK)(e.onBlur,()=>B(!1))})})}),F="RovingFocusGroupItem",S=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:s=!0,active:i=!1,tabStopId:l,children:c,...u}=e,m=(0,o.B)(),h=l||m,x=N(F,a),b=x.currentTabStopId===h,y=g(a),{onFocusableItemAdd:v,onFocusableItemRemove:j,currentTabStopId:w}=x;return r.useEffect(()=>{if(s)return v(),()=>j()},[s,v,j]),(0,p.jsx)(f.ItemSlot,{scope:a,id:h,focusable:s,active:i,children:(0,p.jsx)(d.sG.span,{tabIndex:b?0:-1,"data-orientation":x.orientation,...u,ref:t,onMouseDown:(0,n.mK)(e.onMouseDown,e=>{s?x.onItemFocus(h):e.preventDefault()}),onFocus:(0,n.mK)(e.onFocus,()=>x.onItemFocus(h)),onKeyDown:(0,n.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void x.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,a){var r;let n=(r=e.key,"rtl"!==a?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return k[n]}(e,x.orientation,x.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=y().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){"prev"===t&&a.reverse();let r=a.indexOf(e.currentTarget);a=x.loop?function(e,t){return e.map((a,r)=>e[(t+r)%e.length])}(a,r+1):a.slice(r+1)}setTimeout(()=>M(a))}}),children:"function"==typeof c?c({isCurrentTabStop:b,hasTabStop:null!=w}):c})})});S.displayName=F;var k={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function M(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=document.activeElement;for(let r of e)if(r===a||(r.focus({preventScroll:t}),document.activeElement!==a))return}var T=a(6842),K="Tabs",[B,L]=(0,s.A)(K,[j]),R=j(),[A,V]=B(K),U=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:r,onValueChange:n,defaultValue:s,orientation:i="horizontal",dir:l,activationMode:c="automatic",...h}=e,x=(0,m.jH)(l),[b,f]=(0,u.i)({prop:r,onChange:n,defaultProp:null!=s?s:"",caller:K});return(0,p.jsx)(A,{scope:a,baseId:(0,o.B)(),value:b,onValueChange:f,orientation:i,dir:x,activationMode:c,children:(0,p.jsx)(d.sG.div,{dir:x,"data-orientation":i,...h,ref:t})})});U.displayName=K;var I="TabsList",H=r.forwardRef((e,t)=>
1{let{__scopeTabs:a,loop:r=!0,...n}=e,s=V(I,a),i=R(a);return(0,p.jsx)(C,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:r,children:(0,p.jsx)(d.sG.div,{role:"tablist","aria-orientation":s.orientation,...n,ref:t})})});H.displayName=I;var E="TabsTrigger",W=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:r,disabled:s=!1,...i}=e,l=V(E,a),o=R(a),c=_(l.baseId,r),u=G(l.baseId,r),m=r===l.value;return(0,p.jsx)(S,{asChild:!0,...o,focusable:!s,active:m,children:(0,p.jsx)(d.sG.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":u,"data-state":m?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...i,ref:t,onMouseDown:(0,n.mK)(e.onMouseDown,e=>{s||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(r)}),onKeyDown:(0,n.mK)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(r)}),onFocus:(0,n.mK)(e.onFocus,()=>{let e="manual"!==l.activationMode;m||s||!e||l.onValueChange(r)})})})});W.displayName=E;var Z="TabsContent",z=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:n,forceMount:s,children:i,...l}=e,o=V(Z,a),c=_(o.baseId,n),u=G(o.baseId,n),m=n===o.value,h=r.useRef(m);return r.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,p.jsx)(T.C,{present:s||m,children:a=>{let{present:r}=a;return(0,p.jsx)(d.sG.div,{"data-state":m?"active":"inactive","data-orientation":o.orientation,role:"tabpanel","aria-labelledby":c,hidden:!r,id:u,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:r&&i})}})});function _(e,t){return"".concat(e,"-trigger-").concat(t)}function G(e,t){return"".concat(e,"-content-").concat(t)}z.displayName=Z;var P=U,q=H,$=W,Y=z},968:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(1847).A)("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]])},1186:(e,t,a)=>{a.d(t,{bq:()=>u,eb:()=>p,gC:()=>m,l6:()=>d,yv:()=>c});var r=a(5155),n=a(2115),s=a(3926),i=a(4033),l=a(5917),o=a(4269);let d=s.bL;s.YJ;let c=s.WT,u=n.forwardRef((e,t)=>{let{className:a,children:n,...l}=e;return(0,r.jsxs)(s.l9,{ref:t,className:(0,o.cn)("flex h-12 w-full items-center justify-between gap-2 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","disabled:cursor-not-allowed disabled:opacity-50","data-[placeholder]:text-gray-400",a),...l,children:[n,(0,r.jsx)(s.In,{asChild:!0,children:(0,r.jsx)(i.A,{className:"h-4 w-4 text-gray-400 shrink-0"})})]})});u.displayName=s.l9.displayName;let m=n.forwardRef((e,t)=>{let{className:a,children:n,position:i="popper",...l}=e;return(0,r.jsx)(s.ZL,{children:(0,r.jsx)(s.UC,{ref:t,className:(0,o.cn)("relative z-50 max-h-72 min-w-[8rem] overflow-hidden rounded-xl border border-gray-200 bg-white shadow-lg","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2","popper"===i&&"data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",a),position:i,...l,children:(0,r.jsx)(s.LM,{className:(0,o.cn)("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n})})})});m.displayName=s.UC.displayName;let p=n.forwardRef((e,t)=>{let{className:a,children:n,...i}=e;return(0,r.jsxs)(s.q7,{ref:t,className:(0,o.cn)("relative flex w-full cursor-pointer select-none items-center rounded-lg py-2.5 pl-3 pr-8 text-sm text-gray-700 outline-none transition-colors","hover:bg-primary-50 hover:text-primary-700","focus:bg-primary-50 focus:text-primary-700","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...i,children:[(0,r.jsx)("span",{className:"absolute right-2 flex h-4 w-4 items-center justify-center",children:(0,r.jsx)(s.VF,{children:(0,r.jsx)(l.A,{className:"h-4 w-4 text-primary-600"})})}),(0,r.jsx)(s.p4,{children:n})]})});p.displayName=s.q7.displayName},1546:(e,t,a)=>{a.d(t,{l:()=>i});var r=a(9203),n=a(1138),s=a(9863);let i=(0,n.v)()((0,s.Zr)(e=>({mode:"direct",setMode:t=>e({mode:t}),directValue:1,directUnit:"cubic_feet",setDirectValue:t=>e({directValue:t}),setDirectUnit:t=>e({directUnit:t}),shape:"box",setShape:t=>e({shape:t}),dimLength:1,dimWidth:1,dimHeight:1,dimRadius:1,dimLengthUnit:"feet",dimWidthUnit:"feet",dimHeightUnit:"feet",dimRadiusUnit:"feet",setDimLength:t=>e({dimLength:t}),setDimWidth:t=>e({dimWidth:t}),setDimHeight:t=>e({dimHeight:t}),setDimRadius:t=>e({dimRadius:t}),setDimLengthUnit:t=>e({dimLengthUnit:t}),setDimWidthUnit:t=>e({dimWidthUnit:t}),setDimHeightUnit:t=>e({dimHeightUnit:t}),setDimRadiusUnit:t=>e({dimRadiusUnit:t}),sceneType:"concrete",setSceneType:t=>e({sceneType:t}),precision:4,setPrecision:t=>e({precision:t}),show3D:!0,toggle3D:()=>e(e=>({show3D:!e.show3D})),history:[],addHistory:t=>e(e=>({history:[{...t,id:(0,r.h)("history"),timestamp:Date.now(),favorite:!1},...e.history].slice(0,100)})),toggleFavorite:t=>e(e=>({history:e.history.map(e=>e.id===t?{...e,favorite:!e.favorite}:e)})),clearHistory:()=>e({history:[]}),updateNote:(t,a)=>e(e=>({history:e.history.map(e=>e.id===t?{...e,note:a}:e)})),deleteHistoryEntry:t=>e(e=>({history:e.history.filter(e=>e.id!==t)})),historyFilter:"all",setHistoryFilter:t=>e({historyFilter:t}),historySearch:"",setHistorySearch:t=>e({historySearch:t})}),{name:"cubic-calculator-storage",partialize:e=>({history:e.history,precision:e.precision,show3D:e.show3D})}))},2536:(e,t,a)=>{a.r(t),a.d(t,{SceneCalculators:()=>k}
1);var r=a(5155),n=a(2115),s=a(1546),i=a(1065),l=a(5142),o=a(6948),d=a(3406),c=a(1186),u=a(8042),m=a(1847);let p=(0,m.A)("Shovel",[["path",{d:"M2 22v-5l5-5 5 5-5 5z",key:"1fh25c"}],["path",{d:"M9.5 14.5 16 8",key:"1smz5x"}],["path",{d:"m17 2 5 5-.5.5a3.53 3.53 0 0 1-5 0s0 0 0 0a3.53 3.53 0 0 1 0-5L17 2",key:"1q8uv5"}]]),h=(0,m.A)("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);var x=a(968);let b=(0,m.A)("TreePine",[["path",{d:"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z",key:"cpyugq"}],["path",{d:"M12 22v-3",key:"kmzjlo"}]]);var f=a(4033);let g=[{id:"concrete",label:"Concrete",icon:(0,r.jsx)(u.A,{className:"h-4 w-4"})},{id:"earthwork",label:"Earthwork",icon:(0,r.jsx)(p,{className:"h-4 w-4"})},{id:"shipping",label:"Shipping",icon:(0,r.jsx)(h,{className:"h-4 w-4"})},{id:"water_tank",label:"Water Tank",icon:(0,r.jsx)(x.A,{className:"h-4 w-4"})},{id:"lumber",label:"Lumber",icon:(0,r.jsx)(b,{className:"h-4 w-4"})}];function y(e){let{label:t,value:a,unit:n}=e;return(0,r.jsxs)("div",{className:"rounded-xl border border-gray-100 bg-gray-50 p-4",children:[(0,r.jsx)("p",{className:"text-xs font-medium uppercase tracking-wider text-gray-400",children:t}),(0,r.jsxs)("p",{className:"mt-1 font-mono text-xl font-bold text-gray-900",children:[(0,i.ZV)(a)," ",(0,r.jsx)("span",{className:"text-sm font-medium text-gray-500",children:n})]})]})}let v=[{id:"foundation",label:"Foundation / Footing",waste:8},{id:"slab",label:"Slab / Floor",waste:4},{id:"driveway",label:"Driveway / Sidewalk",waste:4},{id:"wall",label:"Wall / Column",waste:7},{id:"stairs",label:"Stairs",waste:12},{id:"custom",label:"Custom",waste:-1}];function j(e,t,a){return Number.isNaN(e)?"Enter a valid number.":void 0!==t&&e<t?"Must be at least ".concat(t,"."):void 0!==a&&e>a?"Must be ".concat(a," or less."):""}function w(e,t,a){"Enter"===e.key&&(e.preventDefault(),t(),e.currentTarget.blur()),"Escape"===e.key&&(e.preventDefault(),a())}function N(){let[e,t]=(0,n.useState)(10),[a,o]=(0,n.useState)(10),[d,c]=(0,n.useState)(4),[u,m]=(0,n.useState)(10),[p,h]=(0,n.useState)("custom"),[x,b]=(0,n.useState)(!1),[g,N]=(0,n.useState)(150),[C,D]=(0,n.useState)(50),F=(0,s.l)(e=>e.addHistory),S=(0,i.Eg)(Math.max(0,e||0),Math.max(0,a||0),Math.max(0,d||0),Math.max(0,u||0)),k=.0283168*S.cubicFeet,M=S.cubicYards*g,T=S.cubicYards*C;function K(){S.cubicFeet>0&&F({mode:"scene",inputValue:S.cubicFeet,inputUnit:"concrete",resultCubicFeet:S.cub
1icFeet,note:""})}function B(e){return t=>{let a=parseFloat(t.target.value);e(isNaN(a)?0:a)}}function L(e){return t=>w(t,K,()=>e(0))}return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:v.map(e=>(0,r.jsx)("button",{onClick:()=>(function(e){h(e);let t=v.find(t=>t.id===e);t&&t.waste>=0&&m(t.waste)})(e.id),className:"rounded-full border px-3 py-1.5 text-xs font-medium transition-all duration-200 ".concat(p===e.id?"border-primary-500 bg-primary-50 text-primary-700":"border-gray-200 text-gray-600 hover:border-gray-300 hover:bg-gray-50"),children:e.label},e.id))}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsx)(l.p,{label:"Length (ft)",value:e||"",onChange:B(t),onBlur:K,onKeyDown:L(t),min:0,step:"any",error:j(e,0)||void 0,autoFocus:!0}),(0,r.jsx)(l.p,{label:"Width (ft)",value:a||"",onChange:B(o),onBlur:K,onKeyDown:L(o),min:0,step:"any",error:j(a,0)||void 0}),(0,r.jsx)(l.p,{label:"Depth (inches)",value:d||"",onChange:B(c),onBlur:K,onKeyDown:L(c),min:0,step:"any",error:j(d,0)||void 0}),(0,r.jsx)(l.p,{label:"Waste (%)",value:u||"",onChange:B(m),onBlur:()=>{h("custom"),K()},onKeyDown:L(m),min:0,max:100,step:"1",error:j(u,0,100)||void 0})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-5",children:[(0,r.jsx)(y,{label:"Volume",value:S.cubicFeet,unit:"ft\xb3"}),(0,r.jsx)(y,{label:"Volume",value:S.cubicYards,unit:"yd\xb3"}),(0,r.jsx)(y,{label:"Volume",value:k,unit:"m\xb3"}),(0,r.jsx)(y,{label:"60 lb Bags",value:S.bags60lb,unit:"bags"}),(0,r.jsx)(y,{label:"80 lb Bags",value:S.bags80lb,unit:"bags"})]}),(0,r.jsxs)("div",{className:"rounded-xl border border-gray-100",children:[(0,r.jsxs)("button",{onClick:()=>b(!x),className:"flex w-full items-center justify-between px-4 py-3 text-sm font-medium text-gray-700 transition-colors hover:bg-gray-50",children:[(0,r.jsx)("span",{children:"\uD83D\uDCB0 Cost Estimation"}),(0,r.jsx)(f.A,{className:"h-4 w-4 text-gray-400 transition-transform duration-200 ".concat(x?"rotate-180":"")})]}),x&&(0,r.jsxs)("div",{className:"border-t border-gray-100 px-4 pb-4 pt-3 space-y-3",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsx)(l.p,{label:"Price per yd\xb3 ($)",value:g||"",onChange:B(N),onKeyDown:L(N),min:0,step:"any",error:j(g,0)||void 0}),(0,r.jsx)(l.p,{label:"Labor per yd\xb3 ($)",value:C||"",onChange:B(D),onKeyDown:L(D),min:0,step:"any",error:j(C,0)||void 0})]}),(0,r.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,r.jsxs)("div",{className:"rounded-xl border border-emerald-100 bg-emerald-50 p-4",children:[(0,r.jsx)("p",{className:"text-xs font-medium uppercase tracking-wider text-emerald-500",children:"Material"}),(0,r.jsxs)("p",{className:"mt-1 font-mono text-xl font-bold text-emerald-700",children:["$",(0,i.ZV)(M,2)]})]}),(0,r.jsxs)("div",{className:"rounded-xl border border-emerald-100 bg-emerald-50 p-4",children:[(0,r.jsx)("p",{className:"text-xs font-medium uppercase tracking-wider text-emerald-500",children:"Labor"}),(0,r.jsxs)("p",{className:"mt-1 font-mono text-xl font-bold text-emerald-700",children:["$",(0,i.ZV)(T,2)]})]}),(0,r.jsxs)("div",{className:"rounded-xl border border-emerald-200 bg-emerald-100 p-4",children:[(0,r.jsx)("p",{className:"text-xs font-medium uppercase tracking-wider text-emerald-600",children:"Total"}),(0,r.jsxs)("p",{className:"mt-1 font-mono text-xl font-bold text-emerald-800",children:["$",(0,i.ZV)(M+T,2)]})]})]})]})]})]})}function C(){let[e,t]=(0,n.useState)(20),[a,o]=(0,n.useState)(10),[d,c]=(0,n.useState)(3),[u,m]=(0,n.useState)(1.25),p=(0,s.l)(e=>e.addHistory),h=(0,i.qJ)(Math.max(0,e||0),Math.max(0,a||0),Math.max(0,d||0),Math.max(0,u||1));function x(){h.cubicFeet>0&&p({mode:"scene",inputValue:h.cubicFeet,inputUnit:"earthwork",resultCubicFeet:h.cubicFeet,note:""})}function b(e){return t=>{let a=parseFloat(t.target.value);e(isNaN(a)?0:a)}}function f(e){return t=>w(t,x,()=>e(0))}return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsx)(l.p,{label:"Length (ft)",value:e||"",onChange:b(t),onBlur:x,onKeyDown:f(t),min:0,step:"any",error:j(e,0)||void 0,autoFocus:!0}),(0,r.jsx)(l.p,{label:"Width (ft)",value:a||"",onChange:b(o),onBlur:x,onKeyDown:f(o),min:0,step:"any",error:j(a,0)||void 0}),(0,r.jsx)(l.p,{label:"Depth (ft)",value:d||"",onChange:b(c),onBlur:x,onKeyDown:f(c),min:0,step:"any",error:j(d,0)||void 0}),(0,r.jsx)(l.p,{label:"Swell Factor",value:u||"",onChange:b(m),onBlur:x,onKeyDown:f(m),min:1,step:"0.05",error:j(u,1)||void 0})]}),(0,r.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,r.jsx)(y,{label:"Volume",value:h.cubicFeet,unit:"ft\xb3"}),(0,r.jsx)(y,{label:"Volume",value:h.cubicYards,unit:"yd\xb3"}),(0,r.jsx)(y,{label:"Truck Loads",value:h.truckLoads,unit:"loads"})]})]})}
1function D(){let[e,t]=(0,n.useState)(24),[a,o]=(0,n.useState)(18),[d,c]=(0,n.useState)(12),[u,m]=(0,n.useState)(1),[p,h]=(0,n.useState)(85),x=(0,s.l)(e=>e.addHistory),b=(0,i.$w)(Math.max(0,e||0),Math.max(0,a||0),Math.max(0,d||0),Math.max(1,u||1),Math.max(.01,(p||85)/100));function f(){b.cubicFeet>0&&x({mode:"scene",inputValue:b.cubicFeet,inputUnit:"shipping",resultCubicFeet:b.cubicFeet,note:""})}function g(e){return t=>{let a=parseFloat(t.target.value);e(isNaN(a)?0:a)}}function v(e){return t=>w(t,f,()=>e(0))}return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3",children:[(0,r.jsx)(l.p,{label:"Length (in)",value:e||"",onChange:g(t),onBlur:f,onKeyDown:v(t),min:0,step:"any",error:j(e,0)||void 0,autoFocus:!0}),(0,r.jsx)(l.p,{label:"Width (in)",value:a||"",onChange:g(o),onBlur:f,onKeyDown:v(o),min:0,step:"any",error:j(a,0)||void 0}),(0,r.jsx)(l.p,{label:"Height (in)",value:d||"",onChange:g(c),onBlur:f,onKeyDown:v(c),min:0,step:"any",error:j(d,0)||void 0}),(0,r.jsx)(l.p,{label:"Quantity",value:u||"",onChange:g(m),onBlur:f,onKeyDown:v(m),min:1,step:"1",error:j(u,1)||void 0}),(0,r.jsx)(l.p,{label:"Load Rate (%)",value:p||"",onChange:g(h),onBlur:f,onKeyDown:v(h),min:1,max:100,step:"1",error:j(p,1,100)||void 0})]}),(0,r.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,r.jsx)(y,{label:"Total Volume",value:b.cubicFeet,unit:"ft\xb3"}),(0,r.jsx)(y,{label:"Volume",value:b.cubicMeters,unit:"m\xb3"}),(0,r.jsx)(y,{label:"CBM",value:b.cbm,unit:"CBM"})]})]})}function F(){let[e,t]=(0,n.useState)("rectangular"),[a,o]=(0,n.useState)(4),[d,u]=(0,n.use
1State)(3),[m,p]=(0,n.useState)(5),[h,x]=(0,n.useState)(3),[b,f]=(0,n.useState)("feet"),g=(0,s.l)(e=>e.addHistory),v=(0,i.CY)(e,{length:Math.max(0,a||0),width:Math.max(0,d||0),height:Math.max(0,m||0),diameter:Math.max(0,h||0)},b);function N(){v.cubicFeet>0&&g({mode:"scene",inputValue:v.cubicFeet,inputUnit:"water_tank",resultCubicFeet:v.cubicFeet,note:""})}function C(e){return t=>{let a=parseFloat(t.target.value);e(isNaN(a)?0:a)}}function D(e){return t=>w(t,N,()=>e(0))}return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:()=>t("rectangular"),className:"flex-1 rounded-xl border-2 px-4 py-3 text-sm font-medium transition-all duration-200 ".concat("rectangular"===e?"border-primary-500 bg-primary-50 text-primary-700":"border-gray-200 text-gray-600 hover:border-gray-300"),children:"Rectangular"}),(0,r.jsx)("button",{onClick:()=>t("cylindrical"),className:"flex-1 rounded-xl border-2 px-4 py-3 text-sm font-medium transition-all duration-200 ".concat("cylindrical"===e?"border-primary-500 bg-primary-50 text-primary-700":"border-gray-200 text-gray-600 hover:border-gray-300"),children:"Cylindrical"})]}),(0,r.jsxs)("div",{className:"mb-3",children:[(0,r.jsx)("label",{className:"mb-1.5 block text-sm font-medium text-gray-700",children:"Measurement Unit"}),(0,r.jsxs)(c.l6,{value:b,onValueChange:e=>f(e),children:[(0,r.jsx)(c.bq,{className:"w-48",children:(0,r.jsx)(c.yv,{})}),(0,r.jsxs)(c.gC,{children:[(0,r.jsx)(c.eb,{value:"feet",children:"Feet"}),(0,r.jsx)(c.eb,{value:"inches",children:"Inches"}),(0,r.jsx)(c.eb,{value:"meters",children:"Meters"}),(0,r.jsx)(c.eb,{value:"centimeters",children:"Centimeters"})]})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:["rectangular"===e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.p,{label:"Length",value:a||"",onChange:C(o),onBlur:N,onKeyDown:D(o),min:0,step:"any",error:j(a,0)||void 0,autoFocus:!0}),(0,r.jsx)(l.p,{label:"Width",value:d||"",onChange:C(u),onBlur:N,onKeyDown:D(u),min:0,step:"any",error:j(d,0)||void 0})]}):(0,r.jsx)(l.p,{label:"Diameter",value:h||"",onChange:C(x),onBlur:N,onKeyDown:D(x),min:0,step:"any",error:j(h,0)||void 0,autoFocus:!0}),(0,r.jsx)(l.p,{label:"Height",value:m||"",onChange:C(p),onBlur:N,onKeyDown:D(p),min:0,step:"any",error:j(m,0)||void 0})]}),(0,r.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,r.jsx)(y,{label:"Volume",value:v.cubicFeet,unit:"ft\xb3"}),(0,r.jsx)(y,{label:"Capacity",value:v.gallonsUS,unit:"gal"}),(0,r.jsx)(y,{label:"Capacity",value:v.liters,unit:"L"})]})]})}function S(){let[e,t]=(0,n.useState)(1),[a,o]=(0,n.useState)(6),[d,c]=(0,n.useState)(8),[u,m]=(0,n.useState)(1),p=(0,s.l)(e=>e.addHistory),h=(0,i.T$)(Math.max(0,e||0),Math.max(0,a||0),Math.max(0,d||0),Math.max(1,u||1));function x(){h.cubicFeet>0&&p({mode:"scene",inputValue:h.boardFeet,inputUnit:"lumber",resultCubicFeet:h.cubicFeet,note:""})}function b(e){return t=>{let a=parseFloat(t.target.value);e(isNaN(a)?0:a)}}function f(e){return t=>w(t,x,()=>e(0))}return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsx)(l.p,{label:"Thickness (inches)",value:e||"",onChange:b(t),onBlur:x,onKeyDown:f(t),min:0,step:"any",error:j(e,0)||void 0,autoFocus:!0}),(0,r.jsx)(l.p,{label:"Width (inches)",value:a||"",onChange:b(o),onBlur:x,onKeyDown:f(o),min:0,step:"any",error:j(a,0)||void 0}),(0,r.jsx)(l.p,{label:"Length (feet)",value:d||"",onChange:b(c),onBlur:x,onKeyDown:f(c),min:0,step:"any",error:j(d,0)||void 0}),(0,r.jsx)(l.p,{label:"Quantity",value:u||"",onChange:b(m),onBlur:x,onKeyDown:f(m),min:1,step:"1",error:j(u,1)||void 0})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsx)(y,{label:"Board Feet",value:h.boardFeet,unit:"BF"}),(0,r.jsx)(y,{label:"Volume",value:h.cubicFeet,unit:"ft\xb3"})]})]})}function k(){let e=(0,s.l)(e=>e.sceneType),t=(0,s.l)(e=>e.setSceneType);return(0,r.jsx)("div",{className:"space-y-6",children:(0,r.jsxs)(d.Tabs,{value:e,onValueChange:e=>t(e),children:[(0,r.jsx)(d.TabsList,{className:"w-full flex-wrap",children:g.map(e=>(0,r.jsxs)(d.TabsTrigger,{value:e.id,className:"flex items-center gap-1.5 text-xs sm:text-sm",children:[e.icon,e.label]},e.id))}),(0,r.jsx)(d.TabsContent,{value:"concrete",children:(0,r.jsx)(o.Zp,{children:(0,r.jsx)(o.Wu,{className:"p-6",children:(0,r.jsx)(N,{})})})}),(0,r.jsx)(d.TabsContent,{value:"earthwork",children:(0,r.jsx)(o.Zp,{children:(0,r.jsx)(o.Wu,{className:"p-6",children:(0,r.jsx)(C,{})})})}),(0,r.jsx)(d.TabsContent,{value:"shipping",children:(0,r.jsx)(o.Zp,{children:(0,r.jsx)(o.Wu,{className:"p-6",children:(0,r.jsx)(D,{})})})}),(0,r.jsx)(d.TabsContent,{value:"water_tank",children:(0,r.jsx)(o.Zp,{children:(0,r.jsx)(o.Wu,{className:"p-6",children:(0,r.jsx)(F,{})})})}),(0,r.jsx)(d.TabsContent,{value:"lumber",children:(0,r.jsx)(o.Zp,{children:(0,r.jsx)(o.Wu,{className:"p-6",children:(0,r.jsx)(S,{})})})})]})})}},3406:(e,t,a)=>{a.d(t,{Tabs:()=>l,TabsContent:()=>c,TabsList:()=>
1o,TabsTrigger:()=>d});var r=a(5155),n=a(2115),s=a(574),i=a(4269);let l=s.bL,o=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.B8,{ref:t,className:(0,i.cn)("inline-flex items-center gap-1 rounded-xl bg-gray-100 p-1",a),...n})});o.displayName=s.B8.displayName;let d=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.l9,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-lg px-4 py-2.5 text-sm font-medium text-gray-600 transition-all duration-200","hover:text-gray-900","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","data-[state=active]:bg-white data-[state=active]:text-primary-600 data-[state=active]:shadow-sm data-[state=active]:font-semibold",a),...n})});d.displayName=s.l9.displayName;let c=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.UC,{ref:t,className:(0,i.cn)("mt-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2",a),...n})});c.displayName=s.UC.displayName},5142:(e,t,a)=>{a.d(t,{p:()=>i});var r=a(5155),n=a(2115),s=a(4269);let i=n.forwardRef((e,t)=>{let{className:a,label:i,suffix:l,error:o,helperText:d,type:c="number",id:u,...m}=e,p=u||n.useId(),h="".concat(p,"-message"),x=o||d;return(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[i&&(0,r.jsx)("label",{htmlFor:p,className:"text-sm font-medium text-gray-700",children:i}),(0,r.jsxs)("div",{className:"relative flex items-center",children:[(0,r.jsx)("input",{id:p,type:c,className:(0,s.cn)("flex h-12 w-full rounded-xl border border-gray-200 bg-white px-4 py-3 text-base font-medium text-gray-900 shadow-sm transition-all duration-200","placeholder:text-gray-400","hover:border-gray-300 hover:shadow","focus:border-primary-500 focus:outline-none focus:ring-4 focus:ring-blue-100 focus:shadow-md","aria-[invalid=true]:border-red-400 aria-[invalid=true]:ring-4 aria-[invalid=true]:ring-red-100","disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-gray-50",l&&"pr-14",a),"aria-invalid":!!o,"aria-describedby":x?h:void 0,ref:t,...m}),l&&(0,r.jsx)("span",{className:"absolute right-4 text-sm font-medium text-gray-400 pointer-events-none",children:l})]}),x&&(0,r.jsx)("p",{id:h,className:(0,s.cn)("text-xs",o?"text-red-600":"text-gray-500"),children:x})]})});i.displayName="Input"},6948:(e,t,a)=>{a.d(t,{Wu:()=>i,Zp:()=>s});var r=a(5155);a(2115);var n=a(4269);function s(e){let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,n.cn)("rounded-xl border border-gray-100 bg-white shadow-sm transition-all duration-200",t),...a})}function i(e){let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,n.cn)("p-6 pt-0",t),...a})}},9203:(e,t,a)=>{a.d(t,{h:()=>r});function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";if("undefined"!=typeof crypto){if("function"==typeof crypto.randomUUID)return crypto.randomUUID();if("function"==typeof crypto.getRandomValues){let t=crypto.getRandomValues(new Uint32Array(2));return"".concat(e,"-").concat(t[0].toString(36),"-").concat(t[1].toString(36))}}return"".concat(e,"-").concat(Date.now().toString(36),"-").concat(Math.random().toString(36).slice(2))}}}]);

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.