PageSourceSearch

https://textkits.org/_next/static/chunks/9245.45a5aea285da1f47.js

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

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9245],{49245:(e,t,l)=>{l.r(t),l.d(t,{default:()=>v});var r=l(95155),a=l(12115),s=l(5917),n=l(75426),i=l(71360),d=l(73161),o=l(27329),c=l(71724),x=l(56367),u=l(49498),m=l(98126),b=l(70517);let h={clean:"border-emerald-100 bg-emerald-50 text-emerald-700",glitched:"border-blue-100 bg-blue-50 text-blue-700",zalgo:"border-rose-100 bg-rose-50 text-rose-700",mirrored:"border-violet-100 bg-violet-50 text-violet-700",tiny:"border-amber-100 bg-amber-50 text-amber-700",symbolic:"border-pink-100 bg-pink-50 text-pink-700",aesthetic:"border-sky-100 bg-sky-50 text-sky-700"};function p(e){let{item:t,copiedKey:l,onCopy:a}=e,i=l===t.key;return(0,r.jsx)("article",{className:"rounded-[1.75rem] border-2 border-slate-100 bg-white px-4 py-4 shadow-[0_12px_34px_-28px_rgba(15,23,42,0.24)] sm:px-5",children:(0,r.jsxs)("div",{className:"flex min-w-0 items-start gap-3",children:[(0,r.jsx)("div",{className:(0,u.cn)("shrink-0 rounded-xl border px-2.5 py-1.5 text-[0.78rem] font-black tracking-tight sm:rounded-2xl sm:px-3 sm:py-2 sm:text-sm",h[t.key]),children:t.label}),(0,r.jsx)("div",{className:"min-w-0 flex-1 pt-1",children:t.output?(0,r.jsx)("div",{className:(0,u.cn)("scrollbar-hide min-w-0 font-mono text-slate-950","zalgo"===t.key?"overflow-visible whitespace-normal py-3 text-[0.9rem] leading-[2.2] [overflow-wrap:anywhere] sm:text-[1rem] lg:text-[1.15rem]":"overflow-x-auto overflow-y-hidden whitespace-nowrap text-[0.85rem] leading-[1.45] sm:text-[1.1rem] lg:text-[1.55rem]"),children:t.output}):(0,r.jsx)("p",{className:"text-base font-medium leading-relaxed text-slate-400",children:"Enter text to generate this style."})}),(0,r.jsx)(d.$,{type:"button",variant:"ghost",size:"icon",onClick:()=>a(t.key,t.output),disabled:!t.output,"aria-label":"Copy ".concat(t.label),className:"size-9 shrink-0 rounded-xl border-2 border-slate-100 bg-white text-slate-700 shadow-none hover:bg-slate-50 hover:text-slate-950 sm:size-11 sm:rounded-2xl",children:i?(0,r.jsx)(s.A,{className:"size-5 text-emerald-600"}):(0,r.jsx)(n.A,{className:"size-5"})})]})})}function g(e){let{checked:t,onCheckedChange:l,ariaLabelledBy:a}=e;return(0,r.jsx)("button",{type:"button",role:"switch","aria-checked":t,"aria-labelledby":a,onClick:()=>l(!t),className:(0,u.cn)("relative inline-flex h-11 w-20 shrink-0 items-center rounded-full border-2 transition",t?"border-emerald-700 bg-emerald-700":"border-slate-200 bg-slate-200"),children:(0,r.jsx)("span",{className:(0,u.cn)("block size-8 rounded-full bg-white shadow-[0_6px_18px_rgba(15,23,42,0.18)] transition",t?"translate-x-10":"translate-x-1")})})}function f(e){let{className:t,...l}=e;return(0,r.jsx)(d.$,{...l,className:(0,u.cn)("h-10 rounded-[1.2rem] border-2 px-3 text-sm font-black tracking-tight shadow-[0_8px_24px_-18px_rgba(15,23,42,0.22)] sm:h-14 sm:px-5 sm:text-lg",t)})}function v(){let e=(0,a.useRef)(null),[t,l]=(0,a.useState)("textkits"),[d,u]=(0,a.useState)(54),[h,v]=(0,a.useState)(!0),[w,y]=(0,a.useState)(""),j=(0,a.useDeferredValue)(t),k=(0,m.qV)(d),N=(0,m.pI)({text:j,intensity:k,favorReadable:h}),_=(0,m.pQ)(N),C=_.length>0,z={background:"linear-gradient(90deg, #14935f 0%, #14935f ".concat(k,"%, #e2e8f0 ").concat(k,"%, #e2e8f0 100%)")};async function A(t,l){if(l)try{await navigator.clipboard.writeText(l),y(t),e.current&&window.clearTimeout(e.current),e.current=window.setTimeout(()=>{y("")},1800),(0,b.nj)({action:"copy",path:"/weird-text-generator/",text:l})}catch(e){y("")}}return(0,a.useEffect)(()=>{let e=(0,b.wF)();e&&l(e.slice(0,200))},[]),(0,a.useEffect)(()=>()=>{e.current&&window.clearTimeout(e.current)},[]),(0,r.jsxs)("section",{className:"mx-auto mt-6 w-full max-w-6xl",id:"tool",children:[(0,r.jsx)("div",{className:"rounded-[2.5rem] border-[6px] border-slate-950 bg-white/90 p-4 shadow-[0_40px_120px_-50px_rgba(15,23,42,0.32)] backdrop-blur sm:p-5 lg:rounded-[3rem] lg:p-6",children:(0,r.jsxs)("div",{className:"grid gap-4 lg:grid-cols-[minmax(0,0.92fr)_minmax(0,1.08fr)] lg:gap-5",children:[(0,r.jsxs)("section",{className:"rounded-[2rem] border-2 border-slate-100 bg-white p-5 shadow-[0_18px_50px_-40px_rgba(15,23,42,0.24)] sm:p-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{id:"weird-text-input-heading",className:"text-3xl font-black tracking-tighter text-slate-950",children:"Input Text"}),(0,r.jsxs)("div",{className:"relative mt-4",children:[(0,r.jsx)(x.T,{id:"weird-text-input",n
1ame:"weirdTextInput","aria-labelledby":"weird-text-input-heading",value:t,maxLength:200,onChange:e=>l(e.target.value),placeholder:"Type your text",className:"min-h-[110px] resize-none rounded-[1.5rem] border-2 border-emerald-500 px-5 py-4 pb-14 font-mono text-[1.1rem] font-medium leading-[1.45] text-slate-950 shadow-none placeholder:text-slate-300 focus-visible:border-emerald-600 focus-visible:ring-0 sm:min-h-[208px] sm:text-[1.9rem] sm:leading-[1.25]"}),(0,r.jsxs)("div",{className:"pointer-events-none absolute bottom-4 right-4 text-base font-medium text-slate-500",children:[t.length," / ",200]})]})]}),(0,r.jsxs)("div",{className:"mt-6 border-t-2 border-slate-100 pt-6",children:[(0,r.jsx)("div",{className:"flex items-center justify-between gap-4",children:(0,r.jsx)("h3",{id:"weird-text-intensity-label",className:"text-2xl font-black tracking-tighter text-slate-950",children:"Intensity"})}),(0,r.jsxs)("div",{className:"mt-4 flex items-center gap-3 text-lg font-medium text-slate-500",children:[(0,r.jsx)("span",{children:"Subtle"}),(0,r.jsx)("input",{id:"weird-text-intensity",name:"weirdTextIntensity",type:"range",min:"0",max:"100",step:"1",value:k,onChange:e=>u(Number(e.target.value)),"aria-labelledby":"weird-text-intensity-label",className:"weird-range h-2.5 flex-1 cursor-pointer appearance-none rounded-full border border-transparent",style:z}),(0,r.jsx)("span",{children:"Chaotic"})]})]}),(0,r.jsx)("div",{className:"mt-6 border-t-2 border-slate-100 pt-6",children:(0,r.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{id:"favor-readable-label",className:"text-2xl font-black tracking-tighter text-slate-950",children:"Favor Readable"}),(0,r.jsx)("p",{className:"mt-2 text-lg font-medium leading-relaxed text-slate-500",children:"Keep more readable results in the list."})]}),(0,r.jsx)(g,{checked:h,onCheckedChange:v,ariaLabelledBy:"favor-readable-label"})]})}),(0,r.jsx)("div",{className:"mt-8",children:(0,r.jsxs)(f,{type:"button",variant:"outline",onClick:function(){l(""),y("")},className:"w-full border-slate-950 bg-white text-slate-950 hover:bg-slate-50 sm:w-auto",children:[(0,r.jsx)(i.A,{className:"size-5"}),"Clear"]})})]}),(0,r.jsxs)("section",{"aria-live":"polite",className:"rounded-[2rem] border-2 border-slate-100 bg-white p-5 shadow-[0_18px_50px_-40px_rgba(15,23,42,0.24)] sm:p-6",children:[(0,r.jsx)("div",{className:"flex items-center gap-3",children:(0,r.jsx)("h2",{className:"text-3xl font-black tracking-tighter text-slate-950",children:"Style Results"})}),(0,r.jsx)("div",{className:"mt-5 space-y-3",children:N.map(e=>(0,r.jsx)(p,{item:e,copiedKey:w,onCopy:A},e.key))}),(0,r.jsx)("div",{className:"mt-5",children:(0,r.jsxs)(f,{type:"button",onClick:()=>A("all",_),disabled:!C,className:"w-full border-emerald-800 bg-emerald-700 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",children:["all"===w?(0,r.jsx)(s.A,{className:"size-5"}):(0,r.jsx)(n.A,{className:"size-5"}),"Copy All"]})}),(0,r.jsx)(o.Ay,{currentPath:"/weird-text-generator/"})]})]})}),(0,r.jsx)(c.A,{})]})}},56367:(e,t,l)=>{l.d(t,{T:()=>d});var r=l(95155),a=l(12115),s=l(65229),n=l(49498);let i="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",d=a.forwardRef((e,t)=>{var l;let{className:d,value:o,defaultValue:c,onChange:x,onFocus:u,readOnly:m,disabled:b,placeholder:h,"data-mobile-full-height":p,...g}=e,[f,v]=a.useState(!1),w=a.useRef(null),y=a.useRef(null),j=!m&&!b&&!p,k=null!=(l=null!=o?o:c)?l:"",N="string"==typeof d&&d.includes("convert-normal-input-attention");function _(){return window.matchMedia("(max-width: 639px)").matches}return(a.useImperativeHandle(t,()=>({get element(){return w.current},focus:()=>{var e;if(j&&_())return void v(!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,l=arguments.length,r=Array(l),a=0;a<l;a++)r[a]=arguments[a];return null==(t=w.current)||null==(e=t.setSelectionRange)?void 0:e.call(t,...r)},get selectionStart(){var e,t;return null!=(t=null==(e=w.current)?void 0:e.selectionStart)?t:0},get selectionEnd(){var l,r;return null!=(r=null==(l=w.current)?void 0:l.selectionEnd)?r:0},get value(){var a;return null==(a=w.current)?void 0:a.value}})),a.useEffect(()=>{if(!f)return;let e=document.body.style.overflow;function t(e){"Escape"===e.key&&v(!1)}
1return document.body.style.overflow="hidden",window.requestAnimationFrame(()=>{var e;null==(e=y.current)||e.focus()}),window.addEventListener("keydown",t),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",t)}},[f]),j)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:()=>v(!0),className:(0,n.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,r.jsx)("span",{className:(0,n.cn)("line-clamp-5 block text-xl font-black leading-tight",k?"text-slate-900":"text-slate-300"),children:k||h||"Tap to enter text..."})}),(0,r.jsx)("textarea",{ref:w,value:o,defaultValue:c,onChange:x,onFocus:function(e){null==u||u(e),j&&_()&&(e.currentTarget.blur(),v(!0))},readOnly:m,disabled:b,placeholder:h,className:(0,n.cn)(i,"hidden sm:flex",d),...g}),f?(0,r.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,r.jsx)("button",{type:"button",className:"absolute inset-0","aria-label":"Close text editor",onClick:()=>v(!1)}),(0,r.jsxs)("div",{className:"relative w-full rounded-[2rem] border-4 border-slate-100 bg-white p-4 shadow-2xl",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-black uppercase tracking-[0.08em] text-slate-500",children:"Text"}),(0,r.jsx)("p",{className:"text-lg font-black tracking-tight text-slate-950",children:"Edit input"})]}),(0,r.jsx)("button",{type:"button",onClick:()=>v(!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,r.jsx)(s.A,{className:"size-5"})})]}),(0,r.jsx)("textarea",{ref:y,value:o,defaultValue:c,onChange:x,onFocus:u,placeholder:h,maxLength:g.maxLength,className:(0,n.cn)(i,"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,r.jsxs)("div",{className:"mt-3 grid grid-cols-[1fr_auto] gap-2",children:[(0,r.jsx)("button",{type:"button",onClick:()=>v(!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,r.jsx)("button",{type:"button",onClick:()=>{null==x||x({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,r.jsx)("textarea",{ref:w,value:o,defaultValue:c,onChange:x,onFocus:u,readOnly:m,disabled:b,placeholder:h,"data-mobile-full-height":p,className:(0,n.cn)(i,d),...g})});d.displayName="Textarea"},65229:(e,t,l)=>{l.d(t,{A:()=>r});let r=(0,l(19904).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},71724:(e,t,l)=>{l.d(t,{A:()=>a});var r=l(95155);function a(e){let{saves:t=!1,className:l=""}=e;return(0,r.jsx)("p",{className:"mt-4 text-center text-3xl font-medium leading-tight text-slate-500 sm:text-[2.625rem] ".concat(l).trim(),children:t?"Runs and saves in your browser.":"Runs locally in your browser."})}},75426:(e,t,l)=>{l.d(t,{A:()=>r});let r=(0,l(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.