PageSourceSearch

https://textkits.org/_next/static/chunks/9798.86b4bb122488b647.js

js textkits.org collected 2026-09-24 10:23:23 UTC 15,929 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9798],{9798:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var a=r(95155),l=r(12115),n=r(5917),o=r(75426),s=r(73161),i=r(27329),d=r(56367),c=r(49498),u=r(44632),m=r(70517);function h(e){var t,r;let{item:l,copiedKey:i,onCopy:d}=e,u=i===l.key;return(0,a.jsxs)("article",{className:"rounded-[2rem] border-4 border-slate-100 bg-slate-50/80 p-5 shadow-[0_20px_50px_-38px_rgba(15,23,42,0.2)] sm:p-6",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsx)("div",{className:"min-w-0",children:(0,a.jsx)("h2",{className:"text-2xl font-black tracking-tighter text-slate-950 sm:text-[1.7rem]",children:l.title})}),(0,a.jsx)(s.$,{type:"button",variant:"ghost",size:"icon",onClick:()=>d(l.key,l.output),disabled:!l.output,"aria-label":"Copy ".concat(l.title),className:"size-11 shrink-0 rounded-[1rem] border-2 border-white bg-white text-slate-700 shadow-sm hover:bg-white hover:text-slate-950",children:u?(0,a.jsx)(n.A,{className:"size-5 text-emerald-600"}):(0,a.jsx)(o.A,{className:"size-5"})})]}),(0,a.jsx)("div",{className:(0,c.cn)("mt-4 rounded-[1.6rem] border-4 border-white px-4 py-4 sm:px-5","victorian-rewrite"===(t=l.key)?"bg-amber-50/55":"shakespearean-rewrite"===t?"bg-stone-50":"vintage-serif"===t?"bg-amber-50/40":"bg-white/90"),children:l.output?(0,a.jsx)("div",{className:(0,c.cn)("min-h-[5.5rem] whitespace-pre-wrap break-words font-medium leading-relaxed","vintage-serif"===(r=l.key)?"text-center font-serif text-[1.25rem] uppercase tracking-[0.08em] text-stone-700 sm:text-[1.5rem]":"victorian-rewrite"===r?"text-center font-serif text-[1.2rem] italic text-amber-900 sm:text-[1.55rem]":"shakespearean-rewrite"===r?"text-center font-serif text-[1.22rem] italic text-stone-900 sm:text-[1.6rem]":"gothic"===r?"text-[1.2rem] leading-relaxed text-slate-900 sm:text-[1.5rem]":"text-[1.18rem] leading-relaxed text-slate-900 sm:text-[1.45rem]"),children:l.output}):(0,a.jsx)("p",{className:"min-h-[5.5rem] text-lg font-medium leading-relaxed text-slate-400",children:"Type something above to preview this result."})})]})}function p(){let e=(0,l.useRef)(null),[t,r]=(0,l.useState)(u.or),[c,p]=(0,l.useState)(""),[x,f]=(0,l.useState)(""),b=(0,l.useDeferredValue)(t),g=(0,l.useMemo)(()=>(0,u.vV)(b),[b]),y=(0,l.useMemo)(()=>(0,u.Lx)(g),[g]);function w(t,r){p(t),f(r),e.current&&window.clearTimeout(e.current),e.current=window.setTimeout(()=>{p(""),f("")},1800)}async function v(e,t){if(t)try{var r,a;await navigator.clipboard.writeText(t),w(e,"".concat(null!=(a=null==(r=g.find(t=>t.key===e))?void 0:r.title)?a:"Result"," copied.")),(0,m.nj)({action:"copy",path:"/old-timey-text-generator/",text:t})}catch(e){p(""),f("Copy failed in this browser.")}}async function k(){if(y)try{await navigator.clipboard.writeText(y),w("all","All results copied."),(0,m.nj)({action:"copy",path:"/old-timey-text-generator/",text:y})}catch(e){p(""),f("Copy failed in this browser.")}}return(0,l.useEffect)(()=>{let e=(0,m.wF)();e&&r(e.slice(0,u.h6))},[]),(0,l.useEffect)(()=>()=>{e.current&&window.clearTimeout(e.current)},[]),(0,a.jsx)("section",{className:"mx-auto mt-4 w-full max-w-6xl",id:"tool",children:(0,a.jsxs)("div",{className:"rounded-[2.5rem] border-[6px] border-slate-100 bg-white p-5 shadow-[0_36px_90px_-52px_rgba(15,23,42,0.28)] sm:rounded-[3rem] sm:p-8 lg:p-10",children:[(0,a.jsxs)("div",{className:"rounded-[2rem] border-4 border-slate-100 bg-slate-50/70 p-4 sm:rounded-[2.4rem] sm:p-5",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsx)("div",{children:(0,a.jsx)("p",{className:"text-sm font-black uppercase tracking-[0.14em] text-slate-500",children:"Enter Your Text"})}),(0,a.jsxs)("span",{className:"shrink-0 text-sm font-black uppercase tracking-[0.14em] text-slate-400",children:[t.length," / ",u.h6]})]}),(0,a.jsx)(d.T,{value:t,maxLength:u.h6,onChange:e=>r(e.target.value),placeholder:"Type modern text here...",className:"mt-4 min-h-[148px] resize-none rounded-[1.7rem] border-4 border-emerald-500 bg-white px-5 py-4 text-[1.15rem] font-medium leading-relaxed text-slate-950 shadow-none placeholder:text-slate-300 focus-visible:border-emerald-600 focus-visible:ring-0 sm:min-h-[190p
1x] sm:px-6 sm:py-5 sm:text-[1.55rem]"}),(0,a.jsx)("p",{className:"mt-3 text-sm font-medium leading-relaxed text-slate-500 sm:hidden",children:"Type once and the styles update below."}),(0,a.jsx)("p",{className:"mt-3 hidden text-base font-medium leading-relaxed text-slate-600 sm:block",children:"Old English, Gothic, vintage-style, and archaic rewrite results update as you type."})]}),(0,a.jsx)("div",{className:"mt-6 grid gap-4 lg:grid-cols-2",children:g.map(e=>(0,a.jsx)(h,{item:e,copiedKey:c,onCopy:v},e.key))}),(0,a.jsxs)("div",{className:"mt-6 rounded-[2rem] border-4 border-slate-100 bg-slate-50/70 p-4 text-center sm:p-5",children:[(0,a.jsxs)(s.$,{type:"button",onClick:k,disabled:!y,className:"h-14 w-full rounded-[1.5rem] border-4 border-emerald-800 bg-emerald-700 text-lg font-black text-white shadow-[0_8px_0_0_#065f46] hover:bg-emerald-800 hover:shadow-[0_8px_0_0_#064e3b] active:translate-y-2 active:shadow-none sm:h-16 sm:text-xl",children:["all"===c?(0,a.jsx)(n.A,{className:"size-5"}):(0,a.jsx)(o.A,{className:"size-5"}),"Copy All Results"]}),(0,a.jsx)(i.Ay,{currentPath:"/old-timey-text-generator/"}),(0,a.jsx)("p",{className:"mt-4 text-base font-medium leading-relaxed text-slate-400 sm:text-lg",children:"Runs locally in your browser."}),(0,a.jsx)("p",{"aria-live":"polite",className:"mt-2 min-h-6 text-sm font-medium text-emerald-700",children:x})]})]})})}},44632:(e,t,r)=>{r.d(t,{or:()=>n,h6:()=>o,vV:()=>f,Lx:()=>b});let a={fallbackPrefix:"Pray,",phraseRules:[["hello","good day"],["hi","good day"],["goodbye","farewell"],["thank you","I thank you"],["excuse me","pardon me"],["please go away","pray, be gone"],["come here","do come here"],["go away","pray, be gone"],["leave me alone","do leave me be"],["how are you","how do you fare"],["my friend","my good friend"],["my dear","my good dear"],["you lazy fool","you indolent simpleton"],["lazy fool","indolent simpleton"],["can you","would you be so kind as to"]],wordRules:[["before","ere"],["between","betwixt"],["among","amongst"],["while","whilst"],["often","oft"],["near","nigh"],["maybe","perhaps"],["yes","indeed"],["no","nay"],["consume","partake of"],["lazy","indolent"],["fool","simpleton"],["man","gentleman"],["woman","lady"],["girl","young lady"],["boy","young man"],["get","obtain"],["buy","purchase"],["help","assist"],["start","commence"],["show","present"],["bad","dreadful"],["ugh","good heavens"]]},l={fallbackPrefix:"Verily,",phraseRules:[["hello","good morrow"],["hi","good morrow"],["goodbye","fare thee well"],["thank you","I thank thee"],["excuse me","prithee pardon me"],["please go away","prithee get thee gone"],["come here","come hither"],["go away","get thee gone"],["leave me alone","leave me be"],["how are you","how dost thou fare"],["you are","thou art"],["you were","thou wert"],["you have","thou hast"],["you do","thou dost"],["you will","thou wilt"],["are you","art thou"],["have you","hast thou"],["do you","dost thou"],["my friend","mine good fellow"],["you lazy fool","thou slothful knave"],["lazy fool","slothful knave"],["my good friend","mine honoured friend"],["can you","canst thou"]],wordRules:[["before","ere"],["often","oft"],["your","thy"],["yours","thine"],["friend","good fellow"],["has","hath"],["does","doth"],["here","hither"],["there","thither"],["consume","devour"],["lazy","slothful"],["fool","knave"],["yes","aye"],["no","nay"],["maybe","perchance"],["perhaps","perchance"],["soon","anon"],["never","ne'er"],["ever","e'er"],["over","o'er"],["even","e'en"],["woman","lady"],["girl","lass"],["boy","lad"],["man","sirrah"],["please","prithee"],["ugh","fie"]]},n="The old bell tolls at midnight.",o=220;function s(e,t){return Array.from({length:t},(t,r)=>String.fromCodePoint(e+r))}function i(e){let{upper:t,lower:r}=e,a=new Map;return Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZ").forEach((e,r)=>{var l;a.set(e,null!=(l=t[r])?l:e)}),Array.from("abcdefghijklmnopqrstuvwxyz").forEach((e,t)=>{var l;a.set(e,null!=(l=r[t])?l:e)}),a}let d=i({upper:[120068,120069,8493,120071,120072,120073,120074,8460,8465,120077,120078,120079,120080,120081,120082,120083,120084,8476,120086,120087,120088,120089,120090,120091,120092,8488].map(e=>String.fromCodePoint(e)),lower:s(120094,26)}),c=i({upper:s(120172,26),lower:s(120198,26)});function u(e,t){return Array.from(e,e=>{var r;return null!=(r=t.get(e))?r:e}).join("")}function m(e){return String(null!=e?e:"").replace(/\s+/g," ").trim()}function h(e,t){return t.reduce((e,t)=>
1{let[r,a]=t,l=RegExp("\\b".concat(r,"\\b"),"gi");return e.replace(l,e=>e?e===e.toUpperCase()?a.toUpperCase():e[0]===e[0].toUpperCase()?a.charAt(0).toUpperCase()+a.slice(1):a:a)},e)}function p(e,t){var r,a;let l=function(e){let t=m(e);return t?t.charAt(0).toUpperCase()+t.slice(1):""}(e);if(!l)return"";let n=h(l,t.phraseRules),o=h(n,t.wordRules);return a=String(null!=(r=o===l?"".concat(t.fallbackPrefix," ").concat(l.toLowerCase()):o)?r:"").replace(/\s+([,.;!?])/g,"$1").replace(/([,.;!?])(?!\s|$)/g,"$1 ").replace(/(\b(?:my|thy|thine|mine)\s+[a-z']+)\s+(you|thou)\b/gi,"$1, $2").replace(/(^|[.!?]\s+)([a-z])/g,(e,t,r)=>"".concat(t).concat(r.toUpperCase())).replace(/\s{2,}/g," ").trim(),/[.!?]$/.test(a)?a:"".concat(a,".")}let x=[{key:"old-english",title:"Old English",description:"Classic blackletter styling for names, emblems, and headers.",build:function(e){return u(e,d)}},{key:"bold-old-english",title:"Bold Old English",description:"A heavier ceremonial version with more headline weight.",build:function(e){return u(e,c)}},{key:"gothic",title:"Gothic",description:"All-caps medieval display styling with a harder edge.",build:function(e){return u(e.toUpperCase(),d)}},{key:"vintage-serif",title:"Vintage Serif",description:"Readable antique framing with light ornamental flourishes.",build:function(e){let t=m(e).toLowerCase().replace(/\b([a-z])/g,e=>e.toUpperCase());return t?"".concat("❦"," ").concat(t.toUpperCase()," ").concat("❦"):""}},{key:"victorian-rewrite",title:"Victorian Rewrite",description:"A softer antique rewrite with light formal phrasing.",build:function(e){return p(e,a)}},{key:"shakespearean-rewrite",title:"Shakespearean Rewrite",description:"A more theatrical rewrite with stronger archaic language.",build:function(e){return p(e,l)}}];function f(e){let t=String(null!=e?e:"").slice(0,o);return x.map(e=>({...e,output:t.trim()?e.build(t):""}))}function b(e){return e.filter(e=>e.output).map(e=>"".concat(e.title,"\n").concat(e.output)).join("\n\n")}},56367:(e,t,r)=>{r.d(t,{T:()=>i});var a=r(95155),l=r(12115),n=r(65229),o=r(49498);let s="flex min-h-[120px] w-full rounded-[1.8rem] border border-slate-200 bg-white px-5 py-4 text-base text-slate-900 shadow-[0_8px_24px_-18px_rgba(15,23,42,0.28)] outline-none transition placeholder:text-slate-400 focus-visible:border-emerald-200 focus-visible:ring-2 focus-visible:ring-emerald-500/20 disabled:cursor-not-allowed disabled:opacity-50",i=l.forwardRef((e,t)=>{var r;let{className:i,value:d,defaultValue:c,onChange:u,onFocus:m,readOnly:h,disabled:p,placeholder:x,"data-mobile-full-height":f,...b}=e,[g,y]=l.useState(!1),w=l.useRef(null),v=l.useRef(null),k=!h&&!p&&!f,j=null!=(r=null!=d?d:c)?r:"",N="string"==typeof i&&i.includes("convert-normal-input-attention");function C(){return window.matchMedia("(max-width: 639px)").matches}return(l.useImperativeHandle(t,()=>({get element(){return w.current},focus:()=>{var e;if(k&&C())return void y(!0);null==(e=w.current)||e.focus()},blur:()=>{var e;return null==(e=w.current)?void 0:e.blur()},select:()=>{var e;return null==(e=w.current)?void 0:e.select()},setSelectionRange:function(){for(var e,t,r=arguments.length,a=Array(r),l=0;l<r;l++)a[l]=arguments[l];return null==(t=w.current)||null==(e=t.setSelectionRange)?void 0:e.call(t,...a)},get selectionStart(){var e,t;return null!=(t=null==(e=w.current)?void 0:e.selectionStart)?t:0},get selectionEnd(){var r,a;return null!=(a=null==(r=w.current)?void 0:r.selectionEnd)?a:0},get value(){var l;return null==(l=w.current)?void 0:l.value}})),l.useEffect(()=>{if(!g)return;let e=document.body.style.overflow;function t(e){"Escape"===e.key&&y(!1)}return document.body.style.overflow="hidden",window.requestAnimationFrame(()=>{var e;null==(e=v.current)||e.focus()}),window.addEventListener("keydown",t),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",t)}},[g]),k)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",onClick:()=>y(!0),className:(0,o.cn)("block min-h-40 w-full rounded-[1.4rem] border border-slate-200 bg-white px-4 py-4 text-left shadow-[0_8px_24px_-18px_rgba(15,23,42,0.28)] sm:hidden",N?"convert-normal-input-attention border-emerald-500":""),"aria-label":"Open text editor",children:(0,a.jsx)("span",{className:(0,o.cn)("line-clamp-5 block text-xl font-black leading-tight",j?"text-slate-900":"text-slate-300"),children:j||x||"Tap to enter text..."})}),(0,a.jsx)("textarea",{ref:w,value:d,defaultValue:c,onChange:u,onFocus:function(e){null==m||m(e),k&&C()&&(e.currentTarget.blur(),y(!0))},readOnly:h,disabled:p,placeholder:x,className:(0,o.cn)(s,"hidden sm:flex",i),...b}),g?(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-end bg-slate-950/55 px-3 py-4 backdrop-blur-sm sm:hidden",role:"dialog","aria-modal":"true","aria-label":"Text input editor",children:[(0,a.jsx)("button",{type:"button",className:"absolute inset-0","aria-label":"Close text editor",onClick:()=>y(!1)}),(0,a.jsxs)("div",{className:"relative w-full rounded-[2rem] border-4 border-slate-100 bg-white p-4 shadow-2xl",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-black uppercase tracking-[0.08em] text-slate-500",children:"Text"}),(0,a.jsx)("p",{className:"text-lg font-black tracking-tight text-slate-950",children:"Edit input"})]}),(0,a.jsx)("button",{type:"button",onClick:()=>y(!1),className:"inline-flex size-10 items-center justify-center rounded-full border-2 border-slate-100 bg-white text-slate-700","aria-label":"Close text editor",children:(0,a.jsx)(n.A,{className:"size-5"})})]}),(0,a.jsx)("textarea",{ref:v,value:d,defaultValue:c,onChange:u,onFocus:m,placeholder:x,maxLength:b.maxLength,className:(0,o.cn)(s,"mt-3 min-h-[45vh] resize-none rounded-[1.4rem] border-2 border-slate-100 bg-slate-50 p-4 text-xl font-bold leading-tight text-slate-900 shadow-none placeholder:text-slate-300 focus-visible:border-emerald-200 focus-visible:ring-2 focus-visible:ring-emerald-500/20"),"data-mobile-full-height":"true"}),(0,a.jsxs)("div",{className:"mt-3 grid grid-cols-[1fr_auto] gap-2",children:[(0,a.jsx)("button",{type:"button",onClick:()=>y(!1),className:"inline-flex h-12 items-center justify-center rounded-full border-4 border-emerald-800 bg-emerald-700 px-6 text-base font-black text-white shadow-[0_6px_0_0_#065f46] active:translate-y-1.5 active:shadow-none",children:"Done"}),(0,a.jsx)("button",{type:"button",onClick:()=>{null==u||u({target:{value:""},currentTarget:{value:""}})},className:"inline-flex h-12 items-center justify-center rounded-full border-2 border-slate-200 bg-white px-5 text-base font-black text-slate-700",children:"Clear"})]})]})]}):null]}):(0,a.jsx)("textarea",{ref:w,value:d,defaultValue:c,onChange:u,onFocus:m,readOnly:h,disabled:p,placeholder:x,"data-mobile-full-height":f,className:(0,o.cn)(s,i),...b})});i.displayName="Textarea"},65229:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(19904).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},75426:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(19904).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])}}]);

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.