1import{r as h,j as e}from"./app-DP13319Q.js";/* empty css */const p="#e040fb",T="#7b2ff7",b=[{id:"hormozi",name:"Alex Hormozi",specialty:"Offer-Driven Clarity",avatar:"AH",color:"#7b2ff7"},{id:"garyvee",name:"Gary Vaynerchuk",specialty:"Platform & Virality",avatar:"GV",color:"#e74c3c"},{id:"brunson",name:"Russell Brunson",specialty:"Funnel & Curiosity",avatar:"RB",color:"#f39c12"},{id:"kennedy",name:"Dan Kennedy",specialty:"Direct Response",avatar:"DK",color:"#27ae60"},{id:"godin",name:"Seth Godin",specialty:"Remarkable & Tribal",avatar:"SG",color:"#3498db"},{id:"patel",name:"Neil Patel",specialty:"SEO & Keywords",avatar:"NP",color:"#e67e22"},{id:"halbert",name:"Gary Halbert",specialty:"Headline Shock & Emotion",avatar:"GH",color:"#c0392b"},{id:"schwartz",name:"Eugene Schwartz",specialty:"Mass Desire & Awareness",avatar:"ES",color:"#8e44ad"},{id:"sugarman",name:"Joe Sugarman",specialty:"Slippery-Slope Curiosity",avatar:"JS",color:"#16a085"},{id:"cialdini",name:"Robert Cialdini",specialty:"Influence & Persuasion",avatar:"RC",color:"#2c3e50"},{id:"ogilvy",name:"David Ogilvy",specialty:"Brand Elegance & Research",avatar:"DO",color:"#b7410e"},{id:"abraham",name:"Jay Abraham",specialty:"Strategy of Preeminence",avatar:"JA",color:"#1a7a4a"}],W=`You are a panel of 12 world-class marketing and copywriting gurus generating URL slug suggestions. 2 31. Alex Hormozi â offer-driven clarity, specific outcomes, no fluff 42. Gary Vaynerchuk â platform virality, hooky, punchy, social-native 53. Russell Brunson â curiosity-driven, story-hint, funnel psychology 64. Dan Kennedy â direct response, urgency, specific benefit 75. Seth Godin â remarkable, tribe-focused, thought-provoking 86. Neil Patel â SEO-optimized, keyword-rich, search-intent-driven 97. Gary Halbert â emotional shock, raw headline energy, curiosity gap 108. Eugene Schwartz â mass desire, awareness-level matching, primal triggers 119. Joe Sugarman â slippery-slope intrigue, sensory language, irresistible opener 1210. Robert Cialdini â social proof, authority, scarcity, reciprocity signals 1311. David Ogilvy â brand elegance, research-driven, timeless authority 1412. Jay Abraham â strategy of preeminence, host-beneficiary, exponential value 15 16SLUG RULES â ALL 12 slugs MUST follow these: 17- Every slug MUST contain at least 1 emoji somewhere (start, middle, or end â vary the position) 18- Mix languages freely: some slugs in English, some in native UTF-8 scripts (Japanese, Arabic, Korean, Chinese, Hindi, Greek, Hebrew, Thai, Spanish with accents, French, etc.) â choose whichever script fits best for each guru's personality and the content 19- Hyphens between words/segments 20- 3â6 segments total 21- No punctuation except hyphens 22- Emojis count as segments â be creative and relevant to the content 23 24Examples of valid slugs: 25 ð-how-to-scale-fast 26 ÙÙÙ-تÙÙ Ù-ð°-بسرعة 27 grow-your-brand-ð¥-now 28 ì±ê³µ-ë¹ê²°-â¨-ì§ê¸-ìì 29 comment-réussir-ð¯-en-ligne 30 31Return ONLY this JSON array, no preamble, no markdown: 32[ 33 {"guru":"Alex Hormozi","avatar":"AH","color":"#7b2ff7","slug":"...","rationale":"One sentence explaining slug + emoji + language choice."}, 34 {"guru":"Gary Vaynerchuk","avatar":"GV","color":"#e74c3c","slug":"...","rationale":"..."}, 35 {"guru":"Russell Brunson","avatar":"RB","color":"#f39c12","slug":"...","rationale":"..."}, 36 {"guru":"Dan Kennedy","avatar":"DK","color":"#27ae60","slug":"...","rationale":"..."}, 37 {"guru":"Seth Godin","avatar":"SG","color":"#3498db","slug":"...","rationale":"..."}, 38 {"guru":"Neil Patel","avatar":"NP","color":"#e67e22","slug":"...","rationale":"..."}, 39 {"guru":"Gary Halbert","avatar":"GH","color":"#c0392b","slug":"...","rationale":"..."}, 40 {"guru":"Eugene Schwartz","avatar":"ES","color":"#8e44ad","slug":"...","rationale":"..."}, 41 {"guru":"Joe Sugarman","avatar":"JS","color":"#16a085","slug":"...","rationale":"..."}, 42 {"guru":"Robert Cialdini","avatar":"RC","color":"#2c3e50","slug":"...","rationale":"..."}, 43 {"guru":"David Ogilvy","avatar":"DO","color":"#b7410e","slug":"...","rationale":"..."}, 44 {"guru":"Jay Abraham","avatar":"JA","color":"#1a7a4a","slug":"...","rationale":"..."} 45]`,E=o=>
45{try{const r=new URL(o.trim()),s=r.pathname.split("/").map(u=>{try{return decodeURIComponent(u)}catch{return u}}).join("/");return`${r.protocol}//${r.hostname}${s}${r.search}${r.hash}`}catch{try{return decodeURIComponent(o.trim())}catch{return o.trim()}}},G=o=>o.split("-").map(r=>encodeURIComponent(r)).join("-"),L=o=>/[^\x00-\x7F]/.test(o.replace(new RegExp("\\p{Emoji}","gu"),"")),U="sk-6WgIud23PdYluNxmJp6laFlAuBCE0hfsX4PJvtBXuGcoiapI",D="https://api.moonshot.ai/v1",J="kimi-k3";function P(){const[o,r]=h.useState(""),[s,u]=h.useState(!1),[j,m]=h.useState(null),[S,v]=h.useState(""),[f,k]=h.useState(""),w=async()=>{var i,a,l,y,g,n;if(!o.trim())return;u(!0),v(""),m(null);const t=E(o);try{const c=await fetch(`${D}/chat/completions`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${U}`},body:JSON.stringify({model:J,max_tokens:8192,messages:[{role:"system",content:W},{role:"user",content:`Content URL or title: ${t}`}]})});if(!c.ok){const x=await c.json().catch(()=>({}));throw new Error(((i=x.error)==null?void 0:i.message)||`HTTP ${c.status}`)}const R=await c.json(),B=((y=(l=(a=R.choices)==null?void 0:a[0])==null?void 0:l.message)==null?void 0:y.content)||"",M=(n=(g=R.choices)==null?void 0:g[0])==null?void 0:n.finish_reason;M==="length"&&console.warn("Response was truncated due to max_tokens limit");let d=B.replace(/```json|```/g,"").trim();const C=d.match(/\[.*\]/s);if(C&&(d=C[0]),M==="length"&&!d.endsWith("]")){const x=d.lastIndexOf("}");x>0&&(d=d.substring(0,x+1)+"]")}m(JSON.parse(d))}catch(c){console.error("Parse error:",c),v(c.message||"Something went wrong. Please try again.")}finally{u(!1)}},z=t=>{const i=t;try{const a=document.createElement("textarea");a.value=i,a.setAttribute("readonly",""),a.style.cssText="position:fixed;top:-9999px;left:-9999px;opacity:0",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a)}catch{navigator.clipboard.writeText(i).catch(()=>{})}k(t),setTimeout(()=>k(""),2e3)};return e.jsxs("div",{style:{minHeight:"100vh",background:"#0d001a",fontFamily:"'DM Sans', sans-serif",color:"#f0e0ff"},children:[e.jsx("style",{children:` 46 @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap'); 47 @keyframes fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}} 48 @keyframes pulse{0%,100%{opacity:1}50%{opacity:.25}} 49 @keyframes drip{0%,100%{transform:scaleY(1) translateY(0)}50%{transform:scaleY(1.06) translateY(2px)}} 50 @keyframes shimmer{0%{background-position:200% center}100%{background-position:-200% center}} 51 *{box-sizing:border-box;margin:0;padding:0} 52 input:focus{outline:none} 53 ::-webkit-scrollbar{width:5px} 54 ::-webkit-scrollbar-track{background:#1a0030} 55 ::-webkit-scrollbar-thumb{background:#7b2ff7;border-radius:3px} 56 `}),e.jsxs("div",{style:{maxWidth:740,margin:"0 auto",padding:"44px 24px 80px"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",marginBottom:32,animation:"fadeUp .5s ease-out both"},children:[e.jsx("div",{style:{animation:"drip 3.5s ease-in-out infinite",marginBottom:14},children:e.jsxs("svg",{width:"90",height:"90",viewBox:"0 0 200 210",xmlns:"http://www.w3.org/2000/svg",children:[e.jsxs("defs",{children:[e.jsxs("radialGradient",{id:"shieldBg",cx:"50%",cy:"40%",r:"60%",children:[e.jsx("stop",{offset:"0%",stopColor:"#5a10c0"}),e.jsx("stop",{offset:"100%",stopColor:"#2d0060"})]}),e.jsxs("filter",{id:"glow",x:"-30%",y:"-30%",width:"160%",height:"160%",children:[e.jsx("feGaussianBlur",{stdDeviation:"4",result:"blur"}),e.jsxs("feMerge",{children:[e.jsx("feMergeNode",{in:"blur"}),e.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),e.jsxs("filter",{id:"softGlow",x:"-20%",y:"-20%",width:"140%",height:"140%",children:[e.jsx("feGaussianBlur",{stdDeviation:"2",result:"blur"}),e.jsxs("feMerge",{children:[e.jsx("feMergeNode",{in:"blur"}),e.jsx("feMergeNode",{in:"SourceGraphic"})]})]})]}),e.jsx("path",{d:"M100 8 L178 44 L178 118 Q178 172 100 198 Q22 172 22 118 L22 44 Z",fill:"url(#shieldBg)",stroke:"#e040fb",strokeWidth:"5",filter:"url
56(#glow)"}),e.jsx("path",{d:"M100 22 L164 52 L164 118 Q164 160 100 182 Q36 160 36 118 L36 52 Z",fill:"none",stroke:"#b040d0",strokeWidth:"1.5",opacity:".5"}),e.jsx("ellipse",{cx:"100",cy:"138",rx:"38",ry:"20",fill:"#d0d0d0"}),e.jsx("ellipse",{cx:"108",cy:"140",rx:"20",ry:"11",fill:"#c0c0c0"}),e.jsx("circle",{cx:"95",cy:"112",r:"28",fill:"#b8b8b8",stroke:"#888",strokeWidth:"2"}),e.jsx("circle",{cx:"95",cy:"112",r:"19",fill:"#cacaca",stroke:"#999",strokeWidth:"1.5"}),e.jsx("circle",{cx:"95",cy:"112",r:"11",fill:"#d8d8d8",stroke:"#aaa",strokeWidth:"1"}),e.jsx("circle",{cx:"95",cy:"112",r:"5",fill:"#c8c8c8"}),e.jsx("circle",{cx:"95",cy:"112",r:"1.5",fill:"#aaa"}),e.jsx("ellipse",{cx:"88",cy:"105",rx:"5",ry:"3",fill:"white",opacity:".25",transform:"rotate(-30 88 105)"}),e.jsx("line",{x1:"86",y1:"92",x2:"74",y2:"70",stroke:"#b0b0b0",strokeWidth:"2.5",strokeLinecap:"round"}),e.jsx("line",{x1:"104",y1:"90",x2:"116",y2:"68",stroke:"#b0b0b0",strokeWidth:"2.5",strokeLinecap:"round"}),e.jsx("circle",{cx:"73",cy:"67",r:"5",fill:"#e040fb",filter:"url(#glow)"}),e.jsx("circle",{cx:"117",cy:"65",r:"5",fill:"#e040fb",filter:"url(#glow)"}),e.jsx("text",{x:"34",y:"88",fontSize:"14",fill:"#e040fb",filter:"url(#softGlow)",opacity:".9",children:"â¦"}),e.jsx("text",{x:"150",y:"82",fontSize:"11",fill:"#e040fb",filter:"url(#softGlow)",opacity:".8",children:"â¦"}),e.jsx("text",{x:"52",y:"160",fontSize:"8",fill:"#fff",opacity:".35",children:"â¦"}),e.jsx("text",{x:"138",y:"155",fontSize:"8",fill:"#fff",opacity:".35",children:"â¦"}),e.jsx("path",{d:"M78 196 Q79 208 77 216",stroke:"#e040fb",strokeWidth:"3",fill:"none",strokeLinecap:"round",opacity:".75"}),e.jsx("path",{d:"M100 200 Q101 214 99 222",stroke:"#e040fb",strokeWidth:"3",fill:"none",strokeLinecap:"round",opacity:".75"}),e.jsx("path",{d:"M122 196 Q123 208 121 216",stroke:"#e040fb",strokeWidth:"3",fill:"none",strokeLinecap:"round",opacity:".75"}),e.jsx("ellipse",{cx:"77",cy:"217",rx:"3",ry:"4",fill:"#e040fb",opacity:".5"}),e.jsx("ellipse",{cx:"99",cy:"223",rx:"3",ry:"4.5",fill:"#e040fb",opacity:".5"}),e.jsx("ellipse",{cx:"121",cy:"217",rx:"3",ry:"4",fill:"#e040fb",opacity:".5"})]})}),e.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:1},children:[e.jsx("span",{style:{fontSize:"clamp(32px,7vw,48px)",fontWeight:800,letterSpacing:"-0.04em",background:"linear-gradient(135deg, #f8b0ff 0%, #e040fb 40%, #9b30ff 100%)",backgroundSize:"200% auto",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animation:"shimmer 4s linear infinite"},children:"Slugify"}),e.jsx("span",{style:{fontSize:"clamp(32px,7vw,48px)",fontWeight:800,letterSpacing:"-0.04em",color:"#e040fb",textShadow:"0 0 18px #e040fb, 0 0 40px #e040fbaa"},children:".ai"})]}),e.jsx("p",{style:{fontSize:13.5,color:"#7a4a9a",lineHeight:1.6,textAlign:"center",maxWidth:420,marginTop:8},children:"Paste a URL or title. 12 marketing legends craft your perfect slug â with emoji & native UTF-8 scripts."})]}),e.jsx("div",{style:{display:"flex",justifyContent:"center",flexWrap:"wrap",gap:8,marginBottom:28,animation:"fadeUp .5s .1s ease-out both"},children:b.map(t=>e.jsx("div",{title:t.name,style:{width:34,height:34,borderRadius:"50%",background:t.color,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",fontSize:9,fontWeight:700,fontFamily:"'JetBrains Mono', monospace",boxShadow:`0 0 10px ${t.color}99`},children:t.avatar},t.id))}),e.jsxs("div",{style:{animation:"fadeUp .5s .16s ease-out both",marginBottom:28},children:[e.jsx("label",{style:{display:"block",fontSize:11,fontWeight:700,color:"#6a3a8a",marginBottom:7,textTransform:"uppercase",letterSpacing:".1em",fontFamily:"'JetBrains Mono', monospace"},children:"Content URL or Title"}),e.jsxs("div",{style:{display:"flex",gap:10},children:[e.jsx("input",{value:o,onChange:t=>r(t.target.value),onKeyDown:t=>t.key==="Enter"&&w(),placeholder:"https://yourblog.com/article or paste a title",style:{flex:1,padding:"13px 16px",background:"#140028",border:"1.5px solid #3a1060",borderRadius:10,fontSize:14,fontFamily:"'DM Sans', sans-serif",color:"#f0e0ff",transition:"border-color .2s"},onFocus:t=>t.target.style.borderColor=p,onBlur:t=>t.target.style.borderColor="#3a1060"}),e.jsx("button",{onClick:w,disabled:!o.trim()||s,style:{padding:"13px 20px",background:o.trim()&&!s?`linear-gradient(135deg, ${p}, ${T})`:"#1e0040",color:o.trim()&&!s?"#fff":"#4a2070",border:"none",borderRadius:10,fontSize:13.5,fontWeight:700,cursor:o.trim()&&!s?"pointer":"default",whiteSpace:"nowrap",fontFamily:"'DM Sans', sans-serif",boxShadow:o.trim()&&!s?`0 0 18px ${p}55`:"none",transition:"all .2s"},children:s?"Generatingâ¦":"⦠Get Slugs"})]})]}),s&&e.jsxs("div",{style:{textAlign:"center",padding:"44px 0",animation:"fadeUp .3s ease-out both"},children:[e.jsx("div",{style:{display:"flex",justifyContent:"center",flexWrap:"wrap",gap:7,maxWidth:280,margin:"0 auto 14px"},children:b.map((t,i)=>e.jsx("div",{style:{width:9,height:9,borderRadius:"50%",background:t.color,animation:`pulse 1.4s ease-in-out ${i*.1}s infinite`,boxShadow:`0 0 5px ${t.color}`}},t.id))}),e.jsx("p",{style:{fontSize:13,color:"#6a3a8a",marginTop:4},children:"12 gurus are crafting your slugsâ¦"})]}),S&&e.jsx("div",{style:{background:"#200010",border:"1px solid #800",borderRadius:10,padding:"13px 16px",color:"#ff7070",fontSize:13.5,marginBottom:20},children:S}),j&&e.jsxs("div",{style:{animation:"fadeUp .4s ease-out both"},children:[e.jsx("div",{style:{fontSize:10.5,fontWeight:700,color:"#4a2070",textTransform:"uppercase",letterSpacing:".12em",marginBottom:12,fontFamily:"'JetBrains Mono', monospace"},children:"⦠12 Slug Suggestions"}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:9},children:j.map((t,i)=>{var g;const a=G(t.slug),l=L(t.slug),y=new RegExp("\\p{Emoji}","u").test(t.slug);return e.jsxs("div",{style:{border:"1.5px solid #220045",borderRadius:12,padding:"13px 15px",background:"#100022",transition:"border-color .2s, box-shadow .2s",animation:`fadeUp .4s ${i*.04}s ease-out both`},onMouseEnter:n=>{n.currentTarget.style.borderColor=t.color,n.currentTarget.style.boxShadow=`0 0 18px ${t.color}44`},onMouseLeave:n=>{n.currentTarget.style.borderColor="#220045",n.currentTarget.style.boxShadow="none"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:11,marginBottom:9},children:[e.jsx("div",{style:{width:36,height:36,borderRadius:"50%",background:t.color,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",fontSize:9.5,fontWeight:700,fontFamily:"'JetBrains Mono', monospace",boxShadow:`0 0 12px ${t.color}99`},children:t.avatar}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontSize:13,fontWeight:700,color:"#f0e0ff"},children:t.guru}),e.jsxs("div",{style:{fontSize:10.5,color:"#5a3080",display:"flex",alignItems:"center",gap:5,flexWrap:"wrap"},children:[(g=b.find(n=>n.name===t.guru))==null?void 0:g.specialty,y&&e.jsx("span",{style:{color:p,fontFamily:"'JetBrains Mono', monospace",fontSize:9},children:"ð emoji"}),l&&e.jsx("span",{style:{color:"#a040fb",fontFamily:"'JetBrains Mono', monospace",fontSize:9},children:"⦠utf-8"})]})]}),e.jsx("button",{onClick:()=>z(t.slug),style:{flexShrink:0,padding:"5px 13px",borderRadius:7,border:`1.5px solid ${f===t.slug?t.color:"#3a1060"}`,background:f===t.slug?t.color:"transparent",color:f===t.slug?"#fff":"#7a4a9a",fontSize:11.5,fontWeight:600,cursor:"pointer",transition:"all .2s",fontFamily:"'DM Sans', sans-serif",boxShadow:f===t.slug?`0 0 10px ${t.color}88`:"none"},children:f===t.slug?"Copied!":"Copy"})]}),e.jsxs("div",{style:{background:"#0a0018",borderRadius:8,padding:"9px 13px",fontFamily:"'JetBrains Mono', monospace",border:"1px solid #220045"},children:[e.jsxs("div",{style:{fontSize:15,fontWeight:700,color:l?p:"#c89fff",w
56ordBreak:"break-all",marginBottom:l?3:0,lineHeight:1.5},children:["/",t.slug]}),l&&e.jsxs("div",{style:{fontSize:10.5,color:"#4a2070",wordBreak:"break-all",lineHeight:1.4},children:["/",a]})]}),e.jsx("div",{style:{fontSize:12,color:"#6a3a8a",lineHeight:1.55,marginTop:7},children:t.rationale})]},i)})}),e.jsx("div",{style:{textAlign:"center",marginTop:28},children:e.jsx("button",{onClick:()=>{m(null),r("")},style:{background:"none",border:"1px solid #3a1060",color:p,fontSize:13,fontWeight:600,cursor:"pointer",fontFamily:"'DM Sans', sans-serif",padding:"8px 22px",borderRadius:20,transition:"all .2s"},onMouseEnter:t=>{t.currentTarget.style.background="#1a0030",t.currentTarget.style.boxShadow=`0 0 14px ${p}44`},onMouseLeave:t=>{t.currentTarget.style.background="none",t.currentTarget.style.boxShadow="none"},children:"â Try another URL"})})]})]})]})}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.