PageSourceSearch

https://textkits.org/_next/static/chunks/6645.446d61d50f86400d.js

js textkits.org collected 2026-10-01 13:08:16 UTC 25,343 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6645],{13804:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(19904).A)("refresh-ccw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},17181:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(19904).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},28150:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(19904).A)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},39867:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(19904).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},46645:(e,t,a)=>{a.r(t),a.d(t,{default:()=>N});var l=a(95155),s=a(12115),r=a(24033),n=a(5917),i=a(75426),o=a(17181),c=a(39867),d=a(84383),m=a(13804),x=a(85757),u=a(28150),h=a(95740),p=a(27329),b=a(56367),f=a(49498),g=a(70517),v=a(70676);let w=[{value:"markdown",label:"Markdown",shortLabel:"MD"},{value:"python",label:"Python raw",shortLabel:"Py"},{value:"javascript",label:"JS template",shortLabel:"JS"},{value:"comment",label:"Block comment",shortLabel:"/* */"},{value:"html",label:"HTML pre",shortLabel:"HTML"}];function y(e,t){let a=URL.createObjectURL(e),l=document.createElement("a");l.href=a,l.download=t,l.click(),URL.revokeObjectURL(a)}function j(e){let{text:t,font:a,alignment:l,trimBlankEdges:s,smushCharacters:r}=e,n=new URLSearchParams({text:t,font:a,align:l,trim:s?"1":"0",smush:r?"1":"0"});return"".concat(window.location.origin).concat(window.location.pathname,"?").concat(n.toString())}async function k(e){let{title:t,text:a,url:l}=e;return!function(){var e;if("undefined"==typeof navigator||"function"!=typeof navigator.share)return!1;if(null==(e=navigator.userAgentData)?void 0:e.mobile)return!0;let t=navigator.userAgent||"",a=/Android|iPhone|iPad|iPod|Mobile/i.test(t),l="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;return a||l}()?(await navigator.clipboard.writeText(l),"copied"):(await navigator.share({title:t,text:a,url:l}),"shared")}function N(){var e;let t=(0,s.useRef)(null),a=(0,s.useRef)(null),[N,A]=(0,s.useState)("TEXTKITS"),[_,C]=(0,s.useState)("classic"),[S,T]=(0,s.useState)(!1),[E,L]=(0,s.useState)("center"),[M,z]=(0,s.useState)(80),[I,P]=(0,s.useState)(!0),[R,V]=(0,s.useState)(!1),[F,O]=(0,s.useState)(!1),[U,B]=(0,s.useState)(""),[q,D]=(0,s.use
1State)(!1),[G,H]=(0,s.useState)("The preview updates as you type."),J=(0,v.iZ)({text:N,font:_,alignment:E,wrapWidth:M,trimBlankEdges:I,smushCharacters:R}),X=null!=(e=v.Vj.find(e=>e.value===_))?e:v.Vj[0],K=v.Vj.filter((e,t,a)=>a.findIndex(t=>t.figletFont===e.figletFont)===t),W=v.rA.filter(e=>"all"!==e.value).map(e=>({...e,fonts:K.filter(t=>t.category===e.value)})).filter(e=>e.fonts.length>0),Z=Math.max(J.width,1),Q=Math.min(1,22/Math.max(J.lineCount,1)),Y="clamp(0.16rem, calc((100cqw / ".concat(Z,") * ").concat(1.55*Q,"), 1.05rem)");async function $(){let e=(0,v.JV)({text:N,font:_,alignment:E,wrapWidth:M,trimBlankEdges:I,smushCharacters:R});try{await navigator.clipboard.writeText(e),O(!0),H("Output copied to clipboard."),(0,g.nj)({action:"copy",path:"/ascii-art-generator/",text:e}),t.current&&window.clearTimeout(t.current),t.current=window.setTimeout(()=>{O(!1)},1500)}catch(e){H("Copy failed in this browser.")}}async function ee(){let e=j({text:N,font:_,alignment:E,wrapWidth:M,trimBlankEdges:I,smushCharacters:R});try{let a=await k({title:"ASCII Text Generator",text:"Share this ASCII text setup from TextKits.",url:e});D(!0),H("shared"===a?"Share sheet opened.":"Share link copied."),t.current&&window.clearTimeout(t.current),t.current=window.setTimeout(()=>{D(!1)},1500)}catch(e){if((null==e?void 0:e.name)==="AbortError")return;H("Copy link failed in this browser.")}}async function et(e){var a,l;let s=function(e,t){let a=String(null!=e?e:"");if("markdown"===t)return"```text\n".concat(a,"\n```");if("python"===t)return"BANNER = r'''\n".concat(a.replace(/'''/g,"\\'\\'\\'"),"\n'''\nprint(BANNER)");if("javascript"===t)return"const banner = String.raw`\n".concat(a.replace(/`/g,"\\`"),"\n`;\nconsole.log(banner);");if("comment"===t)return"/*\n".concat(a,"\n*/");if("html"===t)return"<pre>\n".concat(String(null!=a?a:"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"\n</pre>");return a}(J.text,e),r=null!=(l=null==(a=w.find(t=>t.value===e))?void 0:a.label)?l:"developer";try{await navigator.clipboard.writeText(s),B(e),H("".concat(r," copy format copied.")),(0,g.nj)({action:"copy",path:"/ascii-art-generator/",text:s}),t.current&&window.clearTimeout(t.current),t.current=window.setTimeout(()=>{B("")},1500)}catch(e){H("Developer copy failed in this browser.")}}async function ea(){let e=document.createElement("canvas"),t=J.text.split("\n"),a=e.getContext("2d");if(!a)return void H("PNG export is not available in this browser.");let l=Math.max(640,16*J.width+60),s=Math.max(240,28*t.length+80);e.width=l,e.height=s,a.fillStyle="#111827",a.fillRect(0,0,l,s),a.fillStyle="#f8fafc",a.font="".concat(20,'px "JetBrains Mono", monospace'),a.textBaseline="top",t.forEach((e,t)=>{a.fillText(e,30,30+28*t)}),e.toBlob(e=>{if(!e)return void H("PNG export failed.");y(e,"ascii-art.png"),H("PNG downloaded."),(0,g.nj)({action:"download",path:"/ascii-art-generator/",shareUrl:j({text:N,font:_,alignment:E,wrapWidth:M,trimBlankEdges:I,smushCharacters:R}),text:N})})}return(0,s.useEffect)(()=>()=>{t.current&&window.clearTimeout(t.current)},[]),(0,s.useEffect)(()=>{function e(e){a.current&&!a.current.contains(e.target)&&T(!1)}function t(e){"Escape"===e.key&&T(!1)}return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[]),(0,s.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t=(0,g.wF)(),a=e.get("text"),l=e.get("font"),s=e.get("align"),r=e.has("width")?Number(e.get("width")):null;t&&A(t.slice(0,120)),a&&A(a.slice(0,120)),v.Vj.some(e=>e.value===l)&&C(l),v.Ll.some(e=>e.value===s)&&L(s),Number.isFinite(r)&&z(Math.min(120,Math.max(10,Math.round(r)))),e.has("trim")&&P("0"!==e.get("trim")),e.has("smush")&&V("0"!==e.get("smush"))},[]),(0,l.jsx)("section",{className:"mx-auto mt-6 w-full max-w-[84rem]",id:"tool",children:(0,l.jsx)("div",{className:"min-w-0 rounded-[2.5rem] border-[6px] border-slate-950 bg-white p-4 shadow-[0_40px_120px_-50px_rgba(15,23,42,0.32)] sm:p-5 lg:p-6",children:(0,l.jsxs)("div",{className:"grid min-w-0 gap-4 lg:grid-cols-[minmax(0,0.9fr)_minmax(0,1.1fr)] lg:gap-5",children:[(0,l.jsxs)("aside",{className:"min-w-0 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,l.jsxs)("div",{className:"flex min-w-0 items-end justify-between gap-4",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("h2",{id:"ascii-art-input-heading",className:"text-3xl font-black tracking-tighter text-slate-950",children:"Input Text"}),(0,l.jsx)("p",{className:"mt-1 text-base font-medium leading-relaxed text-slate-600",children:"Type a short phrase and preview a banner-style ASCII output."})]}),(0,l.jsxs)("span",{className:"rounded-full border-2 border-slate-100 bg-slate-50 px-3 py-2 text-sm font-black text-slate-700",children:[N.length," chars"]})]}),(0,l.jsx)(b.T,{id:"ascii-art-text-input","aria-labelledby":"ascii-art-input-heading",value:N,onChange:e=>A(e.target.value),placeholder:"Type your text",className:"mt-4 min-h-[150px] rounded-[1.5rem] border-2 border-emerald-500 px-4 py-4 font-mono text-xl font-medium leading-tight text-slate-900 shadow-none placeholder:text-slate-500 focus-visible:border-emerald-600"}),(0,l.jsxs)("div",{className:"mt-5",children:[(0,l.jsxs)("div",{className:"flex items-end justify-between gap-3",children:[(0,l.jsx)("p",{id:"ascii-art-font-label",className:"text-lg font-black tracking-tight text-slate-950",children:"ASCII Font"}),(0,l.jsxs)("span",{className:"shrink-0 rounded-full border-2 border-slate-100 bg-slate-50 px-3 py-1 text-xs font-black text-slate-700",children:[K.length," fonts"]})]}),(0,l.jsxs)("div",{ref:a,className:"relative mt-3",children:[(0,l.jsxs)("button",{type:"button",id:"ascii-art-font-button","aria-labelledby":"ascii-art-font-label ascii-art-font-button","aria-expanded":S,"aria-controls":"ascii-art-font-panel",onClick:()=>T(e=>!e),className:"flex h-14 w-full min-w-0 items-center justify-between gap-3 rounded-[1.4rem] border-2 border-slate-200 bg-white px-4 text-left text-base font-black text-slate-900 outline-none transition hover:border-slate-300 focus:border-emerald-300",children:[(0,l.jsx)("span",{className:"truncate",children:X.label}),(0,l.jsx)(r.A,{className:(0,f.cn)("size-5 shrink-0 text-slate-500 transition",S?"rotate-180":""),"aria-hidden":"true"})]}),S?(0,l.jsxs)("div",{id:"ascii-art-font-panel",className:"absolute left-0 right-0 z-30 mt-3 max-h-[28rem] overflow-auto rounded-[1.75rem] border-2 border-slate-200 bg-white p-4 shadow-[0_28px_80px_-40px_rgba(15,23,42,0.45)]",children:[(0,l.jsx)("p",{className:"mb-3 px-2 text-xs font-black uppercase tracking-[0.12em] text-slate-400",children:"Press Esc to close"}),(0,l.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:W.map(e=>(0,l.jsxs)("section",{className:"min-w-0",children:[(0,l.jsx)("h3",{className:"px-2 text-xs font-black uppercase tracking-[0.14em] text-slate-500",children:e.label}),(0,l.jsx)("div",{className:"mt-2 grid gap-1",children:e.fonts.map(e=>{let t=e.value===_||e.figletFont===X.figletFont;return(0,l.jsxs)("button",{type:"button",onClick:()=>{C(e.value),H("".concat(e.label," font selected."))},className:(0,f.cn)("flex min-h-10 min-w-0 items-center justify-between gap-3 rounded-[1rem] border-2 px-3 py-2 text-left text-sm font-black text-slate-800 transition hover:border-emerald-200 hover:bg-emerald-50 hover:text-emerald-800",t?"border-emerald-600 bg-emerald-50 text-emerald-800":"border-transparent bg-white"),children:[(0,l.jsx)("span",{className:"truncate",children:e.label}),t?(0,l.jsx)(n.A,{className:"size-4 shrink-0 text-emerald-700"}):null]},e.value)})})]},e.value))})]}):null]})]}),(0,l.jsxs)("div",{className:"mt-5",children:[(0,l.jsx)("p",{id:"ascii-art-alignment-label",className:"text-lg font-black tracking-tight text-slate-950",children:"Alignment"}),(0,l.jsx)("div",{role:"group","aria-labelledby":"ascii-art-alignment-label",className:"mt-3 grid grid-cols-3 gap-2",children:v.Ll.map(e=>{var t;return(0,l.jsx)("button",{type:"button",onClick:()=>L(e.value),className:(t=E===e.value,(0,f.cn)("inline-flex h-11 min-w-0 items-center justify-center rounded-full border-2 px-2 text-xs font-black uppercase tracking-[0.04em] transition sm:px-4 sm:text-sm sm:tracking-[0.12em]",t?"border-emerald-700 bg-emerald-700 text-white shadow-[0_8px_0_0_#065f46]":"border-slate-200 bg-white text-slate-700 hover:border-slate-300 hover:bg-slate-50")),children:e.label},e.value)})})]}),(0,l.jsxs)("div",{className:"mt-5 grid gap-3",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>P(e=>!e),"aria-pressed":I,"aria-label":"Trim blank edges ".concat(I?"enabled":"disabled"),className:(0,f.cn)("flex items-center justify-between rounded-[1.35rem] border-2 px-4 py-3 text-left",I?"border-emerald-200 bg-emerald-50":"border-slate-200 bg-white"),children:[(0,l.jsx)("span",{className:"text-base font-black text-slate-950",children:"Trim Blank Edges"}),(0,l.jsx)("span",{className:(0,f.cn)("rounded-full px-3 py-1 text-sm font-black",I?"bg-emerald-700 text-white":"bg-slate-100 text-slate-700"),
1children:I?"On":"Off"})]}),(0,l.jsxs)("button",{type:"button",onClick:()=>V(e=>!e),"aria-pressed":R,"aria-label":"Smush characters ".concat(R?"enabled":"disabled"),className:(0,f.cn)("flex items-center justify-between rounded-[1.35rem] border-2 px-4 py-3 text-left",R?"border-emerald-200 bg-emerald-50":"border-slate-200 bg-white"),children:[(0,l.jsx)("span",{className:"text-base font-black text-slate-950",children:"Smush Characters"}),(0,l.jsx)("span",{className:(0,f.cn)("rounded-full px-3 py-1 text-sm font-black",R?"bg-emerald-700 text-white":"bg-slate-100 text-slate-700"),children:R?"On":"Off"})]})]}),(0,l.jsxs)("div",{className:"mt-6",children:[(0,l.jsx)("p",{className:"text-sm font-black tracking-tight text-slate-950 sm:text-lg",children:"Load Example"}),(0,l.jsx)("div",{className:"mt-2 flex flex-wrap gap-2 sm:mt-3",children:v.OU.map(e=>(0,l.jsx)("button",{type:"button",onClick:()=>{A(e),H("Example loaded.")},className:"rounded-full border-2 border-slate-200 bg-white px-3 py-1.5 text-xs font-black uppercase tracking-[0.08em] text-slate-600 transition hover:border-emerald-200 hover:bg-emerald-50 hover:text-emerald-700 sm:px-4 sm:py-2 sm:text-sm sm:tracking-[0.12em]",children:e},e))})]})]}),(0,l.jsxs)("section",{className:"min-w-0 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,l.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("h2",{className:"text-xl font-black tracking-tighter text-slate-950 sm:text-3xl",children:[(0,l.jsx)("span",{className:"sm:hidden",children:"Preview"}),(0,l.jsx)("span",{className:"hidden sm:inline",children:"ASCII Preview"})]}),(0,l.jsx)("p",{className:"mt-1 hidden text-base font-medium leading-relaxed text-slate-600 sm:block",children:"Wide ASCII output scales down so the full shape stays visible."})]}),(0,l.jsxs)("div",{className:"hidden items-center gap-2 sm:flex",children:[(0,l.jsxs)("span",{className:"rounded-full border-2 border-slate-100 bg-slate-50 px-3 py-2 text-sm font-black text-slate-700",children:[J.width," wide"]}),(0,l.jsxs)("span",{className:"rounded-full border-2 border-slate-100 bg-slate-50 px-3 py-2 text-sm font-black text-slate-700",children:[J.lineCount," lines"]})]})]}),(0,l.jsx)("div",{className:"mt-4 rounded-[1.75rem] border-2 border-slate-950 bg-slate-950 p-4 shadow-[0_26px_72px_-44px_rgba(15,23,42,0.42)]",style:{containerType:"inline-size"},children:(0,l.jsx)("pre",{"aria-label":"ASCII text preview",className:"overflow-auto whitespace-pre font-mono leading-[1.15] text-slate-100",style:{fontSize:Y},children:J.text})}),(0,l.jsxs)("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-4",children:[(0,l.jsxs)("button",{type:"button",onClick:$,className:"inline-flex h-10 items-center justify-center gap-1 rounded-full border-4 border-emerald-800 bg-emerald-700 text-xs font-black uppercase tracking-[0.04em] text-white shadow-[0_6px_0_0_#065f46] transition active:translate-y-1.5 active:shadow-none sm:h-12 sm:gap-2 sm:text-sm sm:tracking-[0.12em] sm:shadow-[0_8px_0_0_#065f46] sm:active:translate-y-2",children:[F?(0,l.jsx)(n.A,{className:"size-4"}):(0,l.jsx)(i.A,{className:"size-4"}),(0,l.jsx)("span",{className:"sm:hidden",children:F?"Copied":"Copy"}),(0,l.jsx)("span",{className:"hidden sm:inline",children:F?"Copied":"Copy Output"})]}),(0,l.jsxs)("button",{type:"button",onClick:ee,className:"inline-flex h-10 items-center justify-center gap-1 rounded-full border-2 border-slate-200 bg-white text-xs font-black uppercase tracking-[0.04em] text-slate-800 transition hover:bg-slate-50 sm:h-12 sm:gap-2 sm:text-sm sm:tracking-[0.12em]",children:[q?(0,l.jsx)(n.A,{className:"size-4 text-emerald-600"}):(0,l.jsx)(o.A,{className:"size-4"}),(0,l.jsx)("span",{children:q?"Copied":"Share"})]}),(0,l.jsxs)("button",{type:"button",onClick:function(){y(new Blob([(0,v.JV)({text:N,font:_,alignment:E,wrapWidth:M,trimBlankEdges:I,smushCharacters:R})],{type:"text/plain;charset=utf-8"}),"ascii-art.txt"),H("TXT downloaded."),(0,g.nj)({action:"download",path:"/ascii-art-generator/",shareUrl:j({text:N,font:_,alignment:E,wrapWidth:M,trimBlankEdges:I,smushCharacters:R}),text:N})},className:"inline-flex h-10 items-center justify-center gap-1 rounded-full border-2 border-slate-200 bg-white text-xs font-black uppercase tracking-[0.04em] text-slate-800 transition hover:bg-slate-50 sm:h-12 sm:gap-2 sm:text-sm sm:tracking-[0.12em]",children:[(0,l.jsx)(c.A,{className:"size-4"}),(0,l.jsx)("span",{className:"sm:hidden",children:"TXT"}),(0,l.jsx)("span",{className:"hidden sm:inline",children:"Download TXT"})]}),(0,l.jsxs)("button",{type:"button",onClick:ea,className:"inline-flex h-10 items-center justify-center gap-1 rounded-full border-2 border-slate-200 bg-white text-xs font-black uppercase tracking-[0.04em] text-slate-800 transition hover:bg-slate-50 sm:h-12 sm:gap-2 sm:text-sm sm:tracking-[0.12em]",children:[(0,l.jsx)(d.A,{className:"size-4"}),(0,l.jsx)("span",{className:"sm:hidden",children:"PNG"}),(0,l.jsx)("span",{className:"hidden sm:inline",children:"Export PNG"})]})]}),(0,l.jsx)("div",{className:"mt-2 grid gap-2",children:(0,l.jsxs)("button",{type:"button",onClick:function(){A(""),C("classic"),T(!1),L("center"),z(80),P(!0),V(!1),H("Editor cleared.")},className:"inline-flex h-10 items-center justify-center gap-2 rounded-full border-2 border-slate-200 bg-white text-xs font-black uppercase tracking-[0.08em] text-slate-700 transition hover:bg-slate-50 sm:h-12 sm:text-sm sm:tracking-[0.12em]",children:[(0,l.jsx)(m.A,{className:"size-4"}),"Clear"]})}),(0,l.jsxs)("div",{className:"mt-4 rounded-[1.45rem] border-2 border-slate-100 bg-slate-50 p-4",children:[(0,l.jsx)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"inline-flex items-center gap-2 text-sm font-black uppercase tracking-[0.12em] text-slate-700",children:[(0,l.jsx)(x.A,{className:"size-4 text-emerald-600"}),"Dev-ready copy"]}),(0,l.jsx)("p",{className:"mt-1 text-sm font-medium leading-relaxed text-slate-600",children:"Copy this ASCII text generator output with code-safe wrappers."})]})}),(0,l.jsx)("div",{className:"mt-3 grid grid-cols-2 gap-2 sm:grid-cols-5",children:w.map(e=>(0,l.jsxs)("button",{type:"button",onClick:()=>et(e.value),className:"inline-flex h-10 min-w-0 items-center justify-center gap-1 rounded-full border-2 border-white bg-white px-2 text-xs font-black uppercase tracking-[0.04em] text-slate-700 transition hover:border-emerald-200 hover:bg-emerald-50 hover:text-emerald-700 sm:tracking-[0.08em]",title:"Copy as ".concat(e.label),children:[U===e.value?(0,l.jsx)(n.A,{className:"size-4 text-emerald-600"}):(0,l.jsx)(u.A,{className:"size-4"}),(0,l.jsx)("span",{className:"sm:hidden",children:e.shortLabel}),(0,l.jsx)("span",{className:"hidden sm:inline",children:e.shortLabel})]},e.value))})]}),(0,l.jsxs)("div",{className:"mt-4 hidden rounded-[1.3rem] border-2 border-slate-100 bg-slate-50 px-4 py-3 sm:block",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 text-sm font-black uppercase tracking-[0.12em] text-slate-600",children:[(0,l.jsx)(h.A,{className:"size-4 text-emerald-600"}),J.fontLabel]}),(0,l.jsx)("p",{className:"mt-2 text-sm font-medium leading-relaxed text-slate-700",children:G})]}),(0,l.jsx)(p.Ay,{currentPath:"/ascii-art-generator/"})]})]})})})}},56367:(e,t,a)=>{a.d(t,{T:()=>
1o});var l=a(95155),s=a(12115),r=a(65229),n=a(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",o=s.forwardRef((e,t)=>{var a;let{className:o,value:c,defaultValue:d,onChange:m,onFocus:x,readOnly:u,disabled:h,placeholder:p,"data-mobile-full-height":b,...f}=e,[g,v]=s.useState(!1),w=s.useRef(null),y=s.useRef(null),j=!u&&!h&&!b,k=null!=(a=null!=c?c:d)?a:"",N="string"==typeof o&&o.includes("convert-normal-input-attention");function A(){return window.matchMedia("(max-width: 639px)").matches}return(s.useImperativeHandle(t,()=>({get element(){return w.current},focus:()=>{var e;if(j&&A())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,a=arguments.length,l=Array(a),s=0;s<a;s++)l[s]=arguments[s];return null==(t=w.current)||null==(e=t.setSelectionRange)?void 0:e.call(t,...l)},get selectionStart(){var e,t;return null!=(t=null==(e=w.current)?void 0:e.selectionStart)?t:0},get selectionEnd(){var a,l;return null!=(l=null==(a=w.current)?void 0:a.selectionEnd)?l:0},get value(){var s;return null==(s=w.current)?void 0:s.value}})),s.useEffect(()=>{if(!g)return;let e=document.body.style.overflow;function t(e){"Escape"===e.key&&v(!1)}return 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)}},[g]),j)?(0,l.jsxs)(l.Fragment,{children:[(0,l.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,l.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||p||"Tap to enter text..."})}),(0,l.jsx)("textarea",{ref:w,value:c,defaultValue:d,onChange:m,onFocus:function(e){null==x||x(e),j&&A()&&(e.currentTarget.blur(),v(!0))},readOnly:u,disabled:h,placeholder:p,className:(0,n.cn)(i,"hidden sm:flex",o),...f}),g?(0,l.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,l.jsx)("button",{type:"button",className:"absolute inset-0","aria-label":"Close text editor",onClick:()=>v(!1)}),(0,l.jsxs)("div",{className:"relative w-full rounded-[2rem] border-4 border-slate-100 bg-white p-4 shadow-2xl",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-sm font-black uppercase tracking-[0.08em] text-slate-500",children:"Text"}),(0,l.jsx)("p",{className:"text-lg font-black tracking-tight text-slate-950",children:"Edit input"})]}),(0,l.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,l.jsx)(r.A,{className:"size-5"})})]}),(0,l.jsx)("textarea",{ref:y,value:c,defaultValue:d,onChange:m,onFocus:x,placeholder:p,maxLength:f.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,l.jsxs)("div",{className:"mt-3 grid grid-cols-[1fr_auto] gap-2",children:[(0,l.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,l.jsx)("button",{type:"button",onClick:()=>{null==m||m({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,l.jsx)("textarea",{ref:w,value:c,defaultValue:d,onChange:m,onFocus:x,readOnly:u,disabled:h,placeholder:p,"data-mobile-full-height":b,className:(0,n.cn)(i,o),...f})});o.displayName="Textarea"},65229:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(19904).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},75426:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(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"}]])},84383:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(19904).A)("image-down",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19 3 3v-5.5",key:"9ldu5r"}],["path",{d:"m17 22 3-3",key:"1nkfve"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},85757:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(19904).A)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]])}}]);

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.