1import{r as e}from"./rolldown-runtime-S-ySWqyJ.js";import{i as t,r as n}from"./framework-CXnKph_e.js";import{t as r}from"./bms-supplements-BHkX-Rxy.js";var i=e(t(),1),a=n(),o=[`Length and Height`,`Distance and Journeys`,`Area`,`Dry Volume`,`Liquid Volume`,`Dry and Liquid Volume`,`Liquid or Dry Volume`,`Weight and Mass`,`Money and Coinage`,`Weight, Money, and Coinage`,`Time and Timekeeping`],s=e=>({"Dry Volume":`Dry Capacity`,"Liquid Volume":`Liquid Capacity`,"Dry and Liquid Volume":`Dry or Liquid Capacity`,"Liquid or Dry Volume":`Liquid or Dry Capacity`,"Weight, Money, and Coinage":`Weight and Monetary Units`})[e]||e;function c(e,t){return e===null?`â`:`${Math.abs(e)>=1e3?e.toLocaleString(void 0,{maximumFractionDigits:2}):e.toLocaleString(void 0,{maximumFractionDigits:4})} ${t}`}function l(e,t,n){if(e===null)return`â`;let r=(e,t,n=2)=>`${e.toLocaleString(void 0,{maximumFractionDigits:n})} ${t}`;if(t===`m`){let t=e*39.3700787;if(t<12)return r(t,`in`,2);if(e<160.9344){let e=Math.floor(t/12);return`${e.toLocaleString()} ft ${r(t-e*12,`in`,1)}`}return r(e/1609.344,`mi`,3)}return t===`km`?r(e*.621371192,`mi`,2):t===`m2`?e>=404.685642?r(e/4046.8564224,`acres`,2):r(e*10.7639104,`sq ft`,1):t===`L`?n===`Dry Volume`?e>=35.2390702?r(e/35.2390702,`US bu`,2):r(e/1.10122094,`US dry qt`,2):e>=3.785411784?r(e/3.785411784,`US gal`,2):r(e*1.05668821,`US qt`,2):t===`g`?e>=453.59237?r(e/453.59237,`lb`,2):r(e/28.3495231,`oz`,2):t===`kg`?r(e*2.20462262,`lb`,2):t===`s`?e>=3600?r(e/3600,`hr`,2):e>=60?r(e/60,`min`,2):r(e,`sec`,2):`Same unit`}function u(e,t,n){if(e===null)return(0,a.jsx)(`span`,{children:`â`});let r=l(e,t,n);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{className:`metric`,children:c(e,t)}),r!==`Same unit`&&(0,a.jsx)(`span`,{className:`customary`,children:r})]})}function d(e){return`$${e.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}`}function f(){let[e,t]=(0,i.useState)(!1),[n,c]=(0,i.useState)(``),[l,f]=(0,i.useState)(``),[p,m]=(0,i.useState)(``),[h,g]=(0,i.useState)(`1`),[_,v]=(0,i.useState)(`silver`),[y,b]=(0,i.useState)(`63.33`),[x,S]=(0,i.useState)(`4335.27`),[C,w]=(0,i.useState)(`100`),[T,E]=(0,i.useState)(`250.20`),D=o.filter(e=>r.some(t=>t.category===e)),O=(0,i.useMemo)(()=>[...new Set(r.filter(e=>e.category===n).map(e=>e.canonical_name))].sort(),[n]),k=(0,i.useMemo)(()=>r.filter(e=>e.category===n&&e.canonical_name===l),[n,l]),A=r.find(e=>e.conversion_id===p),j=Number(h)||0,M=!!A&&A.preferred_value!==null,N=!!A&&A.category.includes(`Money`)&&M&&(A.si_unit===`g`||A.si_unit===`kg`),P=e=>!A||e===null?0:e*(A.si_unit===`kg`?1e3:1)*j,F=_===`gold`?Number(x)||0:Number(y)||0,I=e=>P(e)/31.1034768*F*((Number(C)||0)/100),L=e=>{c(e),f(``),m(``)},R=e=>{f(e);let t=r.filter(t=>t.category===n&&t.canonical_name===e);m(t.length===1?t[0].conversion_id:``),v(e===`Daric`?`gold`:`silver`)};return(0,a.jsxs)(`main`,{className:`calculator-page`,children:[(0,a.jsxs)(`header`,{children:[(0,a.jsx)(`a`,{className:`mark marklink`,href:`/`,children:`BMS`}),(0,a.jsxs)(`button`,{className:`menub`,onClick:()=>t(!e),"aria-label":`Open menu`,children:[(0,a.jsx)(`span`,{children:`â°`}),` MENU`]})]}),e&&(0,a.jsxs)(`nav`,{children:[(0,a.jsx)(`a`,{className:`navlink`,href:`/`,children:`Research Engine`}),(0,a.jsx)(`a`,{className:`navlink`,href:`/calculator`,children:`Conversion Calculator`})]}),(0,a.jsxs)(`section`,{className:`calc-hero`,children:[(0,a.jsx)(`p`,{className:`eyebrow`,children:`THE BIBLICAL METRICS SYSTEMâ¢`}),(0,a.jsxs)(`h1`,{children:[`Conversion`,(0,a.jsx)(`br`,{}),`Calculator`]}),(0,a.jsx)(`p`,{className:`dek`,children:`Move from category to unit to historical model, then translate a biblical quantity into a responsible modern range.`})]}),(0,a.jsxs)(`section`,{className:`calculator standalone`,children:[(0,a.jsx)(`p`,{className:`eyebrow`,children:`CONVERT A QUANTITY`}),(0,a.jsx)(`h2`,{children:`Calculate a modern range`}),(0,a.jsxs)(`div`,{className:`progressive-controls`,children:[(0,a.jsxs)(`label`,{children:[`1 · Measurement category`,(0,a.jsxs)(`select`,{value:n,onChange:e=>L(e.target.value),children:[(0,a.jsx)(`option`,{value:``,children:`Select a categoryâ¦`}),D.map(e=>(0,a.jsx)(`option`,{value:e,children:s(e)},e))]})]}),(0,a.jsxs)(`label`,{children:[`2 · Biblical unit`,(0,a.jsxs)(`select`,{disabled:!n,value:l,onCh
1ange:e=>R(e.target.value),children:[(0,a.jsx)(`option`,{value:``,children:n?`Select a unitâ¦`:`Choose a category firstâ¦`}),O.map(e=>(0,a.jsx)(`option`,{children:e},e))]})]}),(0,a.jsxs)(`label`,{children:[`3 · Historical model`,(0,a.jsxs)(`select`,{disabled:!l,value:p,onChange:e=>m(e.target.value),children:[(0,a.jsx)(`option`,{value:``,children:l?`Select a modelâ¦`:`Choose a unit firstâ¦`}),k.map(e=>(0,a.jsx)(`option`,{value:e.conversion_id,children:e.variant_name},e.conversion_id))]})]}),(0,a.jsxs)(`label`,{children:[`4 · Quantity`,(0,a.jsx)(`input`,{type:`number`,min:`0`,step:`any`,value:h,onChange:e=>g(e.target.value)})]})]}),A?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(`div`,{className:`selection-summary`,children:[(0,a.jsx)(`span`,{children:s(A.category)}),(0,a.jsx)(`b`,{children:A.canonical_name}),(0,a.jsx)(`span`,{children:A.variant_name})]}),(0,a.jsxs)(`div`,{className:`result`,children:[(0,a.jsxs)(`div`,{children:[(0,a.jsx)(`span`,{children:`MINIMUM`}),(0,a.jsx)(`b`,{children:M?u(j*A.minimum_value,A.si_unit,A.category):`Context required`})]}),(0,a.jsxs)(`div`,{className:`preferred`,children:[(0,a.jsx)(`span`,{children:`PREFERRED`}),(0,a.jsx)(`b`,{children:M?u(j*A.preferred_value,A.si_unit,A.category):`No fixed value`})]}),(0,a.jsxs)(`div`,{children:[(0,a.jsx)(`span`,{children:`MAXIMUM`}),(0,a.jsx)(`b`,{children:M?u(j*A.maximum_value,A.si_unit,A.category):`Context required`})]})]}),(0,a.jsx)(`p`,{className:`unitnote`,children:`Metric (SI) is shown first; the derived U.S. customary equivalent follows.`}),N&&(0,a.jsxs)(`div`,{className:`moneyvalue`,children:[(0,a.jsx)(`p`,{className:`eyebrow`,children:`MODERN VALUE PERSPECTIVES`}),(0,a.jsx)(`h3`,{children:`What might this represent today?`}),(0,a.jsxs)(`div`,{className:`moneycontrols`,children:[(0,a.jsxs)(`label`,{children:[`Material`,(0,a.jsxs)(`select`,{value:_,onChange:e=>v(e.target.value),children:[(0,a.jsx)(`option`,{value:`silver`,children:`Silver`}),(0,a.jsx)(`option`,{value:`gold`,children:`Gold`})]})]}),(0,a.jsxs)(`label`,{children:[`Spot price per troy ounce ($)`,(0,a.jsx)(`input`,{type:`number`,min:`0`,step:`.01`,value:_===`gold`?x:y,onChange:e=>_===`gold`?S(e.target.value):b(e.target.value)})]}),(0,a.jsxs)(`label`,{children:[`Assumed fineness (%)`,(0,a.jsx)(`input`,{type:`number`,min:`0`,max:`100`,step:`.1`,value:C,onChange:e=>w(e.target.value)})]})]}),(0,a.jsxs)(`div`,{className:`valuecards`,children:[(0,a.jsxs)(`div`,{children:[(0,a.jsx)(`span`,{children:`METAL VALUE RANGE`}),(0,a.jsxs)(`b`,{children:[d(I(A.minimum_value)),` â `,d(I(A.maximum_value))]}),(0,a.jsx)(`small`,{children:`Modern bullion value only; not ancient purchasing power.`})]}),A.canonical_name===`Denarius`&&(0,a.jsxs)(`div`,{children:[(0,a.jsx)(`span`,{children:`LABOR-VALUE ANALOGY`}),(0,a.jsx)(`b`,{children:d(j*(Number(T)||0))}),(0,a.jsxs)(`label`,{children:[`Modern daily wage ($)`,(0,a.jsx)(`input`,{type:`number`,min:`0`,step:`.01`,value:T,onChange:e=>E(e.target.value)})]}),(0,a.jsx)(`small`,{children:`Matthew 20:2 presents one denarius as an agreed dayâs wage. This is an analogy, not an exchange rate.`})]})]}),(0,a.jsx)(`p`,{className:`marketnote`,children:`Market and wage inputs are editable. Physical metal value, ancient purchasing power, and modern labor value are distinct comparisons.`})]}),(0,a.jsxs)(`p`,{className:`caution`,children:[(0,a.jsx)(`b`,{children:A.publication_tier.replaceAll(`_`,` `)}),` · `,A.caution_note||A.audit_note||A.derivation]}),A.scripture_reference&&(0,a.jsx)(`p`,{className:`sourcejump`,children:(0,a.jsxs)(`a`,{href:A.scripture_url,target:`_blank`,rel:`noreferrer`,children:[`Read `,A.scripture_reference,` in the KJV â`]})})]}):(0,a.jsx)(`div`,{className:`calcempty`,children:`Begin with a measurement category. Each later choice will show only relevant options.`})]}),(0,a.jsxs)(`section`,{className:`return-panel`,children:[(0,a.jsx)(`p`,{className:`eyebrow`,children:`RESEARCH THE SOURCES`}),(0,a.jsx)(`h2`,{children:`Need the biblical landscape?`}),(0,a.jsx)(`p`,{children:`Return to the Research Engine to find every indexed unit, model, and likely Scripture occurrence.`}),(0,a.jsx)(`a`,{className:`primarylink`,href:`/`,children:`Open the Research Engine â`})]}),(0,a.jsxs)(`footer`,{children:[(0,a.jsx)(`b`,{children:`The Biblical Metrics Systemâ¢`}),(0,a.jsx)(`span`,{children:`Research Engine 1.1.1`}),(0,a.jsx)(`span`,{children:`© 2026 James Moseley. All Rights Reserved.`})]})]})}export{f as default};
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.