PageSourceSearch

https://devtoys.pages.dev/assets/text-to-nato-alphabet-ea6727f6.js

js devtoys.pages.dev collected 2026-10-03 06:41:03 UTC 1,292 bytes, 1 lines download raw bytes

1import{d as f,n as x,b,v,o as u,f as c,k as s,i as a,x as y,w as i,l as p,t as A,g as _,V as C,y as N,z as g,m as k}from"./index-d26c182c.js";const T=["Alpha","Bravo","Charlie","Delta","Echo","Foxtrot","Golf","Hotel","India","Juliet","Kilo","Lima","Mike","November","Oscar","Papa","Quebec","Romeo","Sierra","Tango","Uniform","Victor","Whiskey","X-ray","Yankee","Zulu"];function V({letter:o}){return o.toLowerCase().charCodeAt(0)-"a".charCodeAt(0)}function O({text:o}){return o.split("").map(t=>{const e=V({letter:t});return T[e]??t}).join(" ")}const B={key:0},w=_("div",{"mb-2":""}," Your text in NATO phonetic alphabet ",-1),I={"mt-3":"",flex:"","justify-center":""},W=f({__name:"text-to-nato-alphabet",setup(o){const t=x(""),e=b(()=>O({text:t.value})),{copy:l}=v({source:e,text:"NATO alphabet string copied."});return(L,n)=>{const d=N,m=g,h=k;return u(),c("div",null,[s(d,{value:a(t),"onUpdate:value":n[0]||(n[0]=r=>y(t)?t.value=r:null),label:"Your text to convert to NATO phonetic alphabet",placeholder:"Put your text here...",clearable:"","mb-5":""},null,8,["value"]),a(e)?(u(),c("div",B,[w,s(m,null,{default:i(()=>[p(A(a(e)),1)]),_:1}),_("div",I,[s(h,{autofocus:"",onClick:n[1]||(n[1]=r=>a(l)())},{default:i(()=>[p(" Copy NATO string ")]),_:1})])])):C("",!0)])}}});export{W 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.