1import{r as n,j as r}from"./react-Du6yjX2Q.js";const x=[{label:"Kathmandu",metres:1400,feet:4593},{label:"Pokhara",metres:822,feet:2697},{label:"Poon Hill",metres:3210,feet:10531},{label:"ABC",metres:4130,feet:13550},{label:"EBC",metres:5364,feet:17598},{label:"Thorong La",metres:5416,feet:17769}];function p(){const[o,t]=n.useState(""),[l,s]=n.useState("");function i(e){t(e),e===""||isNaN(e)?s(""):s((parseFloat(e)*3.28084).toFixed(0))}function d(e){s(e),e===""||isNaN(e)?t(""):t((parseFloat(e)/3.28084).toFixed(0))}function m(e,a){t(String(e)),s(String(a))}return r.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 shadow-sm",children:[r.jsx("h3",{className:"font-display font-bold text-gray-900 mb-4 text-base",children:"ð Elevation Converter"}),r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsxs("div",{className:"flex-1 flex items-center gap-1.5",children:[r.jsx("input",{type:"number",min:0,value:o,onChange:e=>i(e.target.value),placeholder:"0",className:"w-full rounded-xl border border-gray-200 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-400 focus:border-transparent"}),r.jsx("span",{className:"text-sm font-semibold text-gray-500 shrink-0",children:"m"})]}),r.jsx("span",{className:"text-gray-300 font-bold shrink-0",children:"â"}),r.jsxs("div",{className:"flex-1 flex items-center gap-1.5",children:[r.jsx("input",{type:"number",min:0,value:l,onChange:e=>d(e.target.value),placeholder:"0",className:"w-full rounded-xl border border-gray-200 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-400 focus:border-transparent"}),r.jsx("span",{className:"text-sm font-semibold text-gray-500 shrink-0",children:"ft"})]})]}),r.jsx("div",{className:"flex flex-wrap gap-1.5",children:x.map(({label:e,metres:a,feet:c})=>r.jsxs("button",{onClick:()=>m(a,c),className:"text-xs px-2.5 py-1 rounded-full border border-gray-200 bg-gray-50 hover:bg-primary-50 hover:border-primary-200 hover:text-primary-700 text-gray-600 transition-colors",children:[e," ",a.toLocaleString(),"m"]},e))})]})}export{p 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.