1import{_ as Se}from"./CgZlvs-U.js";import{e as Te,r as j,A as Y,z as Ae,B as Ne,g as q,u as Le,i as We,j as De,c as s,k as c,F as y,a as r,p as b,t as i,x as m,w as p,q as d,y as $,l as v,E as f,s as Be,G as Ve,o as t,d as N,b as w,m as ee,v as te,M as ze}from"./BMTcipvY.js";import{u as Re}from"./DRsb7u_t.js";import{C as Ee,a as re}from"./ClzGugfK.js";import{Z as Pe}from"./B3R5mC6L.js";import{c as se}from"./BlpXNbwo.js";import{I as He}from"./BXNc7ohy.js";import{_ as qe}from"./DlAUqK2U.js";const Fe=se("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Ue=se("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]),Ie={class:"min-h-screen bg-white"},Oe={class:"relative h-[50vh] md:h-[60vh] overflow-hidden bg-[#0a0a0f]"},Ge=["src","alt"],Ze={key:1,class:"w-full h-full bg-gradient-to-br from-cyan-900 via-[#0a0a0f] to-violet-900"},Qe={class:"absolute inset-0 flex items-end"},Je={class:"container mx-auto px-4 pb-16 w-full"},Ke={class:"flex justify-center"},Xe={class:"w-full max-w-5xl"},Ye={class:"flex items-center gap-4 mb-4"},et={class:"text-5xl md:text-6xl drop-shadow-lg animate-bounce-slow"},tt={class:"text-4xl md:text-7xl font-bold text-white drop-shadow-2xl tracking-tight"},rt={class:"text-xl md:text-2xl text-gray-300 leading-relaxed drop-shadow"},st={key:0,class:"mt-6"},lt={class:"container mx-auto px-4 py-16"},ot={class:"flex justify-center"},at={class:"w-full max-w-5xl space-y-20"},nt={key:0},it={key:1,class:"prose prose-xl max-w-none text-gray-700 leading-relaxed"},dt=["innerHTML"],ut=["src","poster"],ct=["src","alt"],gt={key:0,class:"text-center text-sm text-gray-600 mt-4 italic"},ht=["src","poster"],xt=["src"],yt={class:"text-3xl font-bold text-gray-900"},bt={class:"text-xl text-gray-700 leading-relaxed"},vt=["onScroll"],ft=["src","poster"],_t=["src"],pt=["onClick"],wt=["onClick"],kt={class:"flex justify-center gap-2 mt-3"},mt=["aria-label","onClick"],$t=["src","poster","autoplay"],Ct=["src"],Mt={key:6,class:"space-y-8"},jt=["src","poster"],St=["src"],Tt={key:0,class:"text-center text-xs text-gray-600 font-medium"},At={key:7,class:"bg-gray-50 border border-gray-200 rounded-3xl p-10"},Nt={key:0,class:"text-cyan-500"},Lt={key:8,class:"overflow-x-auto rounded-3xl border border-gray-200 bg-gray-50 shadow-2xl"},Wt={class:"w-full border-collapse"},Dt={class:"bg-gray-100"},Bt={class:"divide-y divide-gray-200"},Vt={key:9,class:"space-y-6"},zt={class:"flex items-center gap-3 mb-8"},Rt={class:"w-10 h-10 bg-cyan-500/20 rounded-xl flex items-center justify-center text-cyan-600"},Et={class:"grid grid-cols-1 gap-6"},Pt={class:"flex flex-col md:flex-row md:items-center justify-between gap-8"},Ht={class:"flex-grow space-y-3"},qt={class:"flex items-center gap-2"},Ft={class:"px-2 py-0.5 bg-cyan-500/10 text-cyan-600 text-[10px] font-bold uppercase tracking-widest rounded"},Ut={class:"text-gray-900 font-bold text-lg"},It={class:"relative group/code"},Ot={class:"text-sm text-gray-700 block bg-white p-4 rounded-xl border border-gray-300 break-all leading-relaxed font-mono"},Gt=["onClick"],Zt={key:10,class:"space-y-8"},Qt={class:"flex items-center gap-3 mb-8"},Jt={class:"w-10 h-10 bg-violet-500/20 rounded-xl flex items-center justify-center text-violet-600"},Kt=["src","poster"],Xt=["src","alt"],Yt={key:2,class:"w-full h-full flex flex-col items-center justify-center p-4 text-center"},er={class:"text-[10px] text-gray-800 mt-1"},tr={class:"text-[10px] text-gray-800 mt-1"},rr={key:2,class:"col-span-full text-center py-12 text-gray-400"},sr={key:11,class:"bg-white rounded-3xl p-12 md:p-16"},lr={class:"space-y-0"},or=["onClick"],ar={class:"text-gray-900 text-lg font-medium pr-8 group-hover:text-gray-600 transition-colors"},nr={class:"mx-4 flex items-center gap-2"},ir={class:"w-full h-full",viewBox:"0 0 1200 40",preserveAspectRatio:"none"},dr=["stroke","stroke-width"],ur={class:"w-full h-full",viewBox:"0 0 1200 20",preserveAspectRatio:"none"},cr=["stroke","stroke-width"],gr={key:5,class:"w-full h-6 relative flex items-center justify-center"},hr={class:"mx-6 flex items-center gap-1.5"},xr={class:"text-2xl text-gray-700 mb-6 italic leading-relaxed"},yr={class:"flex items-center gap-4"},br=["src"],vr={class:"font-bold text-gray-900 text-lg"},fr={class:"text-sm text-gray-600"},_r={class:"text-5xl font-bold text-gray-900 mb-3"},pr={class:"text-lg text-gray-600"},wr={key:16,class:"border border-gray-200 rounded-3xl overflow-hidden bg-white shadow-xl"},kr={class:"flex border-b border-gray-200 bg-gray-50"},mr=["onClick"],$r={class:"p-8 bg-white"},Cr={class:"text-lg text-gray-700 leading-relaxed"},Mr={key:17,class:"border border-gray-200 rounded-3xl overflow-hidden bg-white shadow-xl"},jr=["onClick"],Sr={class:"font-bold text-gray-900 text-lg"},Tr={key:18,class:"bg-gray-900 rounded-3xl p-8 overflow-x-auto shadow-2xl"},Ar={class:"flex items-center justify-between mb-4"},Nr={class:"text-xs text-gray-400 uppercase tracking-wider"},Lr={class:"text-sm text-gray-100 font-mono leading-relaxed"},Wr={class:"text-4xl mb-4"},Dr={class:"font-bold text-gray-900 text-xl mb-3"},Br={class:"text-gray-700 leading-relaxed"},Vr={class:"text-4xl font-bold mb-6"},zr={class:"text-xl mb-8 opacity-90"},Rr={key:1,class:"container mx-auto px-4 py-32 text-center"},Er=Te({__name:"[slug]",async setup(Pr){let L,F;const{isVideoWork:le,getWorkImageUrl:U,getWorkVideoUrl:oe,getWorkVideoPoster:ae}=Re(),S=j(null),R=j(0),T=j(null),ne=o=>{S.value===o?S.value=null:S.value=o},ie=o=>{T.value===o?T.value=null:T.value=o},C=(o="medium")=>({thin:"1px",medium:"2px",thick:"4px","extra-thick":"6px"})[o]||"2px",de=(o="medium")=>({small:"py-4",medium:"py-8",large:"py-12","extra-large":"py-16"})[o]||"py-8",I=(o="gray")=>
1({gray:"#d1d5db",blue:"#3b82f6",purple:"#a855f7",pink:"#ec4899",indigo:"#6366f1",gradient:"#a855f7"})[o]||"#d1d5db",k=(o="gray")=>({gray:"bg-gray-300",blue:"bg-blue-500",purple:"bg-purple-500",pink:"bg-pink-500",indigo:"bg-indigo-500",gradient:"bg-gradient-to-r from-purple-500 via-pink-500 to-indigo-500"})[o]||"bg-gray-300",E=(o="gray")=>({gray:"border-gray-300",blue:"border-blue-500",purple:"border-purple-500",pink:"border-pink-500",indigo:"border-indigo-500",gradient:"border-purple-500"})[o]||"border-gray-300",ue=(o="solid",l="gray")=>{const g="w-full border-t",e={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted",double:"border-double"}[o]||"border-solid",h=E(l);return`${g} ${e} ${h}`},_=o=>!o||o==="#"?!1:o.startsWith("/")&&!o.startsWith("//"),ce=o=>{const l="inline-block px-8 py-3 rounded-xl font-bold transition-all";switch(o){case"remix":return`${l} bg-gradient-to-r from-violet-600 to-pink-600 text-white shadow-[0_0_20px_rgba(139,92,246,0.3)] hover:shadow-[0_0_25px_rgba(139,92,246,0.5)] hover:scale-105`;case"white":return`${l} bg-white text-gray-900 hover:bg-gray-100 shadow-lg`;case"primary":return`${l} bg-gradient-to-r from-purple-600 to-indigo-600 text-white hover:from-purple-700 hover:to-indigo-700 shadow-sm hover:shadow-md`;case"outline":return`${l} bg-transparent border-2 border-white text-white hover:bg-white/10`;case"secondary":return`${l} bg-gray-600 text-white hover:bg-gray-700 shadow-sm hover:shadow-md`;case"success":return`${l} bg-green-600 text-white hover:bg-green-700 shadow-sm hover:shadow-md`;case"danger":return`${l} bg-red-600 text-white hover:bg-red-700 shadow-sm hover:shadow-md`;case"blue":return`${l} bg-blue-600 text-white hover:bg-blue-700 shadow-sm hover:shadow-md`;case"blue-violet":return`${l} bg-gradient-to-r from-blue-600 to-violet-600 text-white hover:from-blue-700 hover:to-violet-700 shadow-sm hover:shadow-md`;case"cyan":return`${l} bg-cyan-500 text-white hover:bg-cyan-600 shadow-sm hover:shadow-md`;case"violet":return`${l} bg-violet-600 text-white hover:bg-violet-700 shadow-sm hover:shadow-md`;default:return`${l} bg-gradient-to-r from-violet-600 to-pink-600 text-white shadow-[0_0_20px_rgba(139,92,246,0.3)] hover:shadow-[0_0_25px_rgba(139,92,246,0.5)] hover:scale-105`}},ge=(o,l=!1)=>{if(l&&o==="outline")return"bg-transparent border-2 border-gray-600 text-gray-700 hover:bg-gray-50";switch(o){case"remix":return"bg-gradient-to-r from-violet-600 to-pink-600 text-white shadow-[0_0_20px_rgba(139,92,246,0.3)] hover:shadow-[0_0_25px_rgba(139,92,246,0.5)] hover:scale-105";case"white":return"bg-white text-gray-900 hover:bg-gray-100 shadow-lg";case"primary":return"bg-gradient-to-r from-purple-600 to-indigo-600 text-white hover:from-purple-700 hover:to-indigo-700 shadow-sm hover:shadow-md";case"outline":return"bg-transparent border-2 border-white text-white hover:bg-white/10";case"secondary":return"bg-gray-600 text-white hover:bg-gray-700 shadow-sm hover:shadow-md";case"success":return"bg-green-600 text-white hover:bg-green-700 shadow-sm hover:shadow-md";case"danger":return"bg-red-600 text-white hover:bg-red-700 shadow-sm hover:shadow-md";case"blue":return"bg-blue-600 text-white hover:bg-blue-700 shadow-sm hover:shadow-md";case"blue-violet":return"bg-gradient-to-r from-blue-600 to-violet-600 text-white hover:from-blue-700 hover:to-violet-700 shadow-sm hover:shadow-md";case"cyan":return"bg-cyan-500 text-white hover:bg-cyan-600 shadow-sm hover:shadow-md";case"violet":return"bg-violet-600 text-white hover:bg-violet-700 shadow-sm hover:shadow-md";default:return"bg-gradient-to-r from-violet-600 to-pink-600 text-white shadow-[0_0_20px_rgba(139,92,246,0.3)] hover:shadow-[0_0_25px_rgba(139,92,246,0.5)] hover:scale-105"}},O=Y(),he=Ae(),xe=ze(),{data:ye,pending:be}=([L,F]=Ne(async()=>Ve(`topic-${O.params.slug}`,async()=>{try{let o=he.baseUrl;const l=await $fetch(`${o}/api/topic/${O.params.slug}`);return l.success?l.data:null}catch(o){return console.error("Failed to fetch topic:",o),null}})),L=await L,F(),L),u=q(()=>ye.value),ve=q(()=>{const o=u.value?.config?.featured_image_focus;if(!o||typeof o!="string")return{};const l=o.split(",").map(Number),g=Number.isNaN(l[0])?50:Math.min(100,Math.max(0,l[0])),e=Number.isNaN(l[1])?50:Math.min(100,Math.max(0,l[1]));return{objectPosition:`${g}% ${e}%`}});if(u.value){const o=u.value.meta_title||u.value.title,l=u.value.meta_description||u.value.excerpt||"",g=u.value.og_image||u.value.featured_image||"",e=u.value.meta_keywords||"",h=[{name:"description",content:l},{property:"og:title",content:o},{property:"og:description",content:l},{name:"twitter:title",content:o},{name:"twitter:description",content:l}];g&&h.push({property:"og:image",content:g},{name:"twitter:image",content:g}),e&&h.push({name:"keywords",content:e});const a=Y(),n=window.location.origin,x=`${n}/topic/${a.params.slug}`;Le({title:`${o} | AI Creative Topic`,meta:h,link:[{rel:"canonical",href:x}],script:[{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"Article",headline:o,description:l,...g&&{image:g},datePublished:u.value.created_at,dateModified:u.value.updated_at||u.value.created_at,url:x,publisher:{"@type":"Organization",name:"VidGen",url:n}})}]})}const W=q(()=>u.value?.config?.components||[]),G={none:"none",sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)"},fe={none:"",cyan:"0 0 24px rgba(6, 182, 212, 0.5), 0 0 48px rgba(6, 182, 212, 0.25)",purple:"0 0 24px rgba(147, 51, 234, 0.5), 0 0 48px rgba(147, 51, 234, 0.25)",blue:"0 0 24px rgba(59, 130, 246, 0.5), 0 0 48px rgba(59, 130, 246, 0.25)",white:"0 0 24px rgba(255, 255, 255, 0.4), 0 0 48px rgba(255, 255, 255, 0.2)",green:"0 0 24px rgba(34, 197, 94, 0.5), 0 0 48px rgba(34, 197, 94, 0.25)",pink:"0 0 24px rgba(236, 72, 153, 0.5), 0 0 48px rgba(236, 72, 153, 0.25)",amber:"0 0 24px rgba(245, 158, 11, 0.5), 0 0 48px rgba(245, 158, 11, 0.25)",orange:"0 0 24px rgba(249, 115, 22, 0.5), 0 0 48px rgba(249, 115, 22, 0.25)",red:"0 0 24px rgba(239, 68, 68, 0.5), 0 0 48px rgba(239, 68, 68, 0.25)",yellow:"0 0 24px rgba(234, 179, 8, 0.5), 0 0 48px rgba(234, 179, 8, 0.25)"},_e={full:"max-w-full",large:"max-w-[90%]",medium:"max-w-[75%]",small:"max-w-[50%]"};function D(o){const l=G[o?.media_shadow||"2xl"]||G["2xl"],g=fe[o?.media_glow||"none"]||"";return g?`${l}, ${g}`:l}function P(o){return o==="top"||o==="bottom"}function pe(o){return o==="right"?"flex-col md:flex-row-reverse md:items-center":o==="top"?"flex-col":o==="bottom"?"flex-col-reverse":"flex-col md:flex-row md:items-center"}function we(o){const l=Number(o?.media_width_percent),g=Number.isFinite(l)&&l>0&&l<100?`${l}%`:"100%";return P(o?.layout)?{width:g,marginLeft:"auto",marginRight:"auto"}:{}}function ke(o){return o==="center"?"text-center":o==="right"?"text-right":"text-left"}function Z(o){return _e[o?.media_size||"full"]||"max-w-full"}function H(o){return{auto:"","1/1":"aspect-square","4/3":"aspect-[4/3]","3/4":"aspect-[3/4]","3/2":"aspect-[3/2]","2/3":"aspect-[2/3]","16/9"
1:"aspect-video","9/16":"aspect-[9/16]","21/9":"aspect-[21/9]","9/21":"aspect-[9/21]","2/1":"aspect-[2/1]","5/4":"aspect-[5/4]","4/5":"aspect-[4/5]"}[o||"auto"]||""}const A=j({}),Q=j({}),J=j({}),B=j({});function me(o,l){Q.value[o]=l,A.value[o]===void 0&&(A.value[o]=0)}function $e(o,l,g){const e=`${o}-${l}`;J.value[e]=g}function V(o){return A.value[o]??0}function Ce(o,l){const g=l.target,h=W.value[o];if(!h?.items?.length)return;const a=h.items.length,n=g.scrollLeft,x=g.scrollWidth-g.clientWidth;if(x<=0)return;const M=Math.round(n/x*(a-1));A.value[o]=Math.max(0,Math.min(M,a-1))}function z(o,l){const e=W.value[o];if(!e?.items?.length)return;const h=e.items.length,a=Math.max(0,Math.min(l,h-1));A.value[o]=a;const n=`${o}-${a}`,x=J.value[n],M=Q.value[o];if(M&&x){const je=x.offsetLeft-(M.offsetWidth-x.offsetWidth)/2;M.scrollTo({left:Math.max(0,je),behavior:"smooth"})}}function K(){W.value.forEach((l,g)=>{if(l.type!=="carousel"||!l.items?.length||l.items.length<=1)return;const e=(l.interval??3)*1e3;B.value[g]=Be(()=>{const h=l.items.length,a=(V(g)+1)%h;z(g,a)},e)})}function X(){Object.keys(B.value).forEach(o=>{const l=B.value[Number(o)];l&&clearInterval(l)}),B.value={}}We(()=>{K()}),De(()=>{X()});const Me=o=>{navigator.clipboard.writeText(o),xe.success("Prompt copied to clipboard!")};return(o,l)=>{const g=Se;return t(),s("div",Ie,[u.value?(t(),s(y,{key:0},[r("div",Oe,[u.value.featured_image?(t(),s("img",{key:0,src:u.value.featured_image,alt:u.value.title,class:"w-full h-full object-cover",style:b(ve.value)},null,12,Ge)):(t(),s("div",Ze)),l[3]||(l[3]=r("div",{class:"absolute inset-0 bg-gradient-to-t from-[#0a0a0f] via-[#0a0a0f]/40 to-transparent"},null,-1)),r("div",Qe,[r("div",Je,[r("div",Ke,[r("div",Xe,[r("div",Ye,[r("span",et,i(u.value.icon||"ð"),1),r("h1",tt,i(u.value.title),1)]),r("p",rt,i(u.value.excerpt),1),u.value.config?.hero_button_text||u.value.config?.hero_button_link?(t(),s("div",st,[(t(),m($(_(u.value.config.hero_button_link)?"NuxtLink":"a"),{to:_(u.value.config.hero_button_link)?u.value.config.hero_button_link:void 0,href:_(u.value.config.hero_button_link)?void 0:u.value.config.hero_button_link||"#",target:_(u.value.config.hero_button_link)?void 0:"_blank",class:d(ce(u.value.config?.hero_button_style))},{default:p(()=>[N(i(u.value.config.hero_button_text||"äºè§£æ´å¤"),1)]),_:1},8,["to","href","target","class"]))])):c("",!0)])])])])]),r("div",lt,[r("div",ot,[r("div",at,[(t(!0),s(y,null,v(W.value,(e,h)=>(t(),s("div",{key:h,class:"relative"},[e.type==="heading"?(t(),s("div",nt,[(t(),m($("h"+e.level),{class:d(["font-bold text-gray-900 tracking-tight",{"text-4xl md:text-5xl":e.level===1,"text-3xl md:text-4xl border-l-4 border-cyan-500 pl-6":e.level===2,"text-2xl md:text-3xl":e.level===3}])},{default:p(()=>[N(i(e.text),1)]),_:2},1032,["class"]))])):c("",!0),e.type==="rich_text"?(t(),s("div",it,[r("div",{innerHTML:e.content},null,8,dt)])):c("",!0),e.type==="single_image"?(t(),s("div",{key:2,class:d(["group mx-auto w-full",Z(e)])},[(t(),m($(e.link?"a":"div"),{href:e.link,target:e.link?"_blank":null,class:"block"},{default:p(()=>[r("div",{class:d(["w-full rounded-3xl border border-gray-200 overflow-hidden transition-transform duration-500 group-hover:scale-[1.01]",H(e.aspect_ratio)]),style:b({boxShadow:D(e)})},[e.media_type==="video"&&e.video_url?(t(),s("video",{key:0,src:e.video_url,poster:e.poster_url,class:"w-full h-full object-cover",autoplay:"",muted:"",loop:"",playsinline:""},null,8,ut)):(t(),s("img",{key:1,src:e.image_url,alt:e.alt,class:"w-full h-full object-cover"},null,8,ct))],6)]),_:2},1032,["href","target"])),e.alt?(t(),s("p",gt,i(e.alt),1)):c("",!0)],2)):c("",!0),e.type==="image_text"?(t(),s("div",{key:3,class:d(["flex gap-12",pe(e.layout)])},[r("div",{class:d(P(e.layout)?"w-full":"w-full md:w-1/2")},[(t(),m($(e.link?"a":"div"),{href:e.link,target:e.link?"_blank":null,class:"block",style:b(we(e))},{default:p(()=>[r("div",{class:d(["w-full rounded-3xl border border-gray-200 overflow-hidden",H(e.aspect_ratio||"1/1")]),style:b({boxShadow:D(e)})},[e.media_type==="video"&&e.video_url?(t(),s("video",{key:0,src:e.video_url,poster:e.poster_url,class:"w-full h-full object-cover",autoplay:"",muted:"",loop:"",playsinline:""},null,8,ht)):(t(),s("img",{key:1,src:e.image_url,class:"w-full h-full object-cover"},null,8,xt))],6)]),_:2},1032,["href","target","style"]))],2),r("div",{class:d([P(e.layout)?"w-full":"w-full md:w-1/2","space-y-6",ke(e.text_align)])}
1,[r("h3",yt,i(e.title),1),r("p",bt,i(e.content),1)],2)],2)):c("",!0),e.type==="carousel"?(t(),s("div",{key:4,class:"relative group w-full",onMouseenter:l[0]||(l[0]=a=>X()),onMouseleave:l[1]||(l[1]=a=>K())},[r("div",{ref_for:!0,ref:a=>me(h,a),class:"flex overflow-x-auto gap-6 pb-4 snap-x no-scrollbar scroll-smooth",onScroll:a=>Ce(h,a)},[(t(!0),s(y,null,v(e.items,(a,n)=>(t(),s("div",{key:n,ref_for:!0,ref:x=>$e(h,n,x),class:"min-w-[80%] md:min-w-[60%] w-full max-w-[80%] md:max-w-[60%] snap-center shrink-0 flex"},[(t(),m($(a.link?"a":"div"),{href:a.link,target:"_blank",class:"block w-full aspect-video overflow-hidden rounded-3xl border border-gray-200 shadow-xl"},{default:p(()=>[a.type==="video"&&a.video_url?(t(),s("video",{key:0,src:a.video_url,poster:a.poster_url,class:"w-full h-full object-cover",autoplay:"",muted:"",loop:"",playsinline:""},null,8,ft)):(t(),s("img",{key:1,src:a.image_url,class:"w-full h-full object-cover"},null,8,_t))]),_:2},1032,["href"]))]))),128))],40,vt),e.items?.length>1?(t(),s("button",{key:0,type:"button","aria-label":"ä¸ä¸å¼ ",class:"absolute left-0 top-1/2 -translate-y-1/2 -translate-x-2 md:translate-x-0 w-10 h-10 rounded-full bg-white/90 shadow-lg border border-gray-200 flex items-center justify-center text-gray-700 hover:bg-cyan-500 hover:text-white transition-all z-10",onClick:a=>z(h,(V(h)-1+e.items.length)%e.items.length)},[w(f(Ee),{class:"w-5 h-5"})],8,pt)):c("",!0),e.items?.length>1?(t(),s("button",{key:1,type:"button","aria-label":"ä¸ä¸å¼ ",class:"absolute right-0 top-1/2 -translate-y-1/2 translate-x-2 md:translate-x-0 w-10 h-10 rounded-full bg-white/90 shadow-lg border border-gray-200 flex items-center justify-center text-gray-700 hover:bg-cyan-500 hover:text-white transition-all z-10",onClick:a=>z(h,(V(h)+1)%e.items.length)},[w(f(re),{class:"w-5 h-5"})],8,wt)):c("",!0),r("div",kt,[(t(!0),s(y,null,v(e.items,(a,n)=>(t(),s("button",{key:n,type:"button","aria-label":`第 ${n+1} å¼ `,class:d(["w-2.5 h-2.5 rounded-full transition-all focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:ring-offset-2",V(h)===n?"bg-cyan-500 scale-110":"bg-gray-300 hover:bg-gray-400"]),onClick:x=>z(h,n)},null,10,mt))),128))])],32)):c("",!0),e.type==="video"?(t(),s("div",{key:5,class:d(["mx-auto w-full aspect-video rounded-3xl overflow-hidden border border-gray-200 bg-black",Z(e)]),style:b({boxShadow:D(e)})},[e.video_url?.endsWith(".mp4")?(t(),s("video",{key:0,src:e.video_url,poster:e.poster_url,controls:"",autoplay:e.autoplay,class:"w-full h-full"},null,8,$t)):(t(),s("iframe",{key:1,src:e.video_url,frameborder:"0",allow:"autoplay; fullscreen; picture-in-picture",allowfullscreen:"",class:"w-full h-full"},null,8,Ct))],6)):c("",!0),e.type==="multi_image"?(t(),s("div",Mt,[r("div",{class:d(["grid",`gap-${e.gap||4}`]),style:b(`grid-template-columns: repeat(${e.columns||3}, 1fr)`)},[(t(!0),s(y,null,v(e.images,(a,n)=>(t(),s("div",{key:n,class:"space-y-3"},[r("div",{class:d(["w-full rounded-2xl border border-gray-200 hover:border-cyan-500/50 transition-all overflow-hidden",H(e.aspect_ratio||"1/1")]),style:b({boxShadow:D(e)})},[a.media_type==="video"&&a.video_url?(t(),s("video",{key:0,src:a.video_url,poster:a.poster_url,class:"w-full h-full object-cover",autoplay:"",muted:"",loop:"",playsinline:""},null,8,jt)):(t(),s("img",{key:1,src:a.image_url,class:"w-full h-full object-cover"},null,8,St))],6),a.caption?(t(),s("p",Tt,i(a.caption),1)):c("",!0)]))),128))],6)])):c("",!0),e.type==="list"?(t(),s("div",At,[(t(),m($(e.list_type==="ordered"?"ol":"ul"),{class:d(["space-y-4",e.list_type==="ordered"?"list-decimal list-inside":""])},{default:p(()=>[(t(!0),s(y,null,v(e.items,(a,n)=>(t(),s("li",{key:n,class:"text-xl text-gray-700 flex gap-4"},[e.list_type!=="ordered"?(t(),s("span",Nt,"â¢")):c("",!0),r("span",{class:d(e.list_type==="ordered"?"inline":"")},i(a),3)]))),128))]),_:2},1032,["class"]))])):c("",!0),e.type==="table"?(t(),s("div",Lt,[r("table",Wt,[r("thead",null,[r("tr",Dt,[(t(!0),s(y,null,v(e.headers,a=>(t(),s("th",{key:a,class:"px-8 py-6 text-left text-sm font-bold text-gray-700 uppercase tracking-widest border-b border-gray-300"},i(a),1))),128))])]),r("tbody",Bt,[(t(!0),s(y,null,v(e.rows,(a,n)=>(t(),s("tr",{key:n,class:"hover:bg-gray-50 transition-colors"},[(t(!0),s(y,null,v(a,(x,M)=>(t(),s("td",{key:M,class:"px-8 py-6 text-lg text-gray-700"},i(x),1))),128))]))),128))])])])):c("",!0),e.type==="prompts"?(t(),s("div",Vt,[r("div",zt,[r("div",Rt,[w(f(Pe),{class:"w-6 h-6"})]),l[4]||(l[4]=r("h3",{class:"text-2xl font-bold text-gray-900"},"Creative Magic",-1))]),r("div",Et,[(t(!0),s(y,null,v(e.items,(a,n)=>(t(),s("div",{key:n,class:"group relative bg-gray-50 border border-gray-200 rounded-3xl p-8 hover:border-cyan-500/50 hover:bg-gray-100 transition-all duration-500"},[r("div",Pt,[r("div",Ht,[r("div",qt,[r("span",Ft,i(a.model||"General"),1),r("span",Ut,i(a.label||"Template "+(n+1)),1)]),r("div",It,[r("code",Ot,i(a.prompt),1),r("button",{onClick:x=>Me(a.prompt),class:"absolute top-2 right-2 p-2 bg-gray-100 hover:bg-gray-200 rounded-lg text-gray-600 hover:text-gray-900 transition-all opacity-0 group-hover/code:opacity-100"},[w(f(Ue),{class:"w-4 h-4"})],8,Gt)])]),w(g,{to:`/generate?prompt=${encodeURIComponent(a.prompt)}`,class:"shrink-0 px-8 py-4 bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-700 hover:to-indigo-700 text-white font-bold rounded-2xl transition-all duration-200 shadow-sm hover:shadow-md hover:-translate-y-1 text-center"},{default:p(()=>[...l[5]||(l[5]=[N(" Generate ",-1)])]),_:1},8,["to"])])]))),128))])])):c("",!0),e.type==="gallery"?(t(),s("div",Zt,[r("div",Qt,[r("div",Jt,[w(f(He),{class:"w-6 h-6"})]),l[6]||(l[6]=r("h3",{class:"text-2xl font-bold text-gray-900"},"Community Inspiration",-1))]),r("div",{class:"grid gap-6",style:b(`grid-template-columns: repeat(${e.columns||3}, 1fr)`)},[e.works&&e.works.length>0?(t(!0),s(y,{key:0},v(e.works,a=>(t(),s("div",{key:a.id,class:"aspect-square bg-gray-50 border border-gray-200 rounded-2xl overflow-hidden hover:border-violet-500/50 hover:shadow-lg transition-all group"},[w(g,{to:a.url_slug?`/prompt/${a.url_slug}`:a.short_code?`/prompt/${a.short_code}`:`/detail/${a.id}`,class:"w-full h-full block"},{default:p(()=>[f(le)(a)?(t(),s("video",{key:0,src:f(oe)(a),poster:f(ae)(a),class:"w-full h-full object-cover",autoplay:"",muted:"",loop:"",playsinline:"",onError:l[2]||(l[2]=n=>n.target.style.display="none")},null,40,Kt)):f(U)(a)?(t(),s("img",{key:1,src:f(U)(a),class:"w-full h-full object-cover",alt:a.title||`ä½å #${a.id}`},null,8,Xt)):(t(),s("div",Yt,[l[7]||(l[7]=r("span",{class:"text-xs font-bold text-gray-600 uppercase tracking-widest group-hover:text-violet-600"},"View Work",-1)),r("span",er,"#"+i(a.id),1)]))]),_:2},1032,["to"])]))),128)):e.work_ids&&e.work_ids.length>0?(t(!0),s(y,{key:1},v(e.work_ids,a=>(t(),s("div",{key:a,class:"aspect-square bg-gray-50 border border-gray-200 rounded-2xl flex items-center justify-center hover:bg-gray-100 transition-all group overflow-hidden"},[w(g,{to:`/prompt/${a}`,class:"w-full h-full flex flex-col items-center justify-center p-4 text-center"},{default:p(()=>[l[8]||(l[8]=r("span",{class:"text-xs font-bold text-gray-600 uppercase tracking-widest group-hover:text-violet-600"},"View Work",-1)),r("span",tr,"#"+i(a),1)]),_:2},1032,["to"])]))),128)):(t(),s("div",rr," ææ ä½å "))],4)])):c("",!0),e.type==="faq"?(t(),s("div",sr,[l[9]||(l[9]=r("h2",{class:"text-center text-4xl md:text-5xl font-bold text-gray-900 mb-12 tracking-tight"},"FAQS",-1)),r("div",lr,[(t(!0),s(y,null,v(e.items,(a,n)=>(t(),s("div",{key:n,class:"border-b border-gray-200 last:border-b-0"},[r("button",{type:"button",onClick:x=>ne(n),class:"w-full flex items-center justify-between py-6 text-left group"},[r("span",ar,i(a.question||"é®é¢å
容"),1),w(f(re),{class:d(["w-5 h-5 text-gray-400 flex-shrink-0 transition-transform",{"rotate-90":S.value===n}])},null,8,["class"])],8,or),ee(r("div",{class:"pb-6 text-gray-600 leading-relaxed whitespace-pre-wrap"},i(a.answer||"çæ¡å
容"),513),[[te,S.value===n]])]))),128))])])):c("",!0),e.type==="button"?(t(),s("div",{key:12,class:d([{"flex justify-start":e.align==="left","flex justify-center":e.align==="center"||!e.align,"flex justify-end":e.align==="right"},"py-8"])},[(t(),m($(_(e.link)?"NuxtLink":"a"),{to:_(e.link)?e.link:void 0,href:_(e.link)?void 0:e.link||"#",target:_(e.link)?void 0:e.target||"_self",style:b({marginLeft:e.offset_x!=null&&e.offset_x!==""?`${Number(e.offset_x)}px`:void 0,marginTop:e.offset_y!=null&&e.offset_y!==""?`${Number(e.offset_y)}px`:void 0}),class:d([ge(e.style,!0),e.size==="small"?"px-4 py-2 text-sm":e.size==="large"?"px-8 py-4 text-lg":"px-6 py-3 text-base",e.width==="full"?"w-full":"inline-block","rounded-xl font-semibold transition-all duration-200 cursor-pointer"])},{default:p(()=>[N(i(e.text||"æé®ææ¬"),1)]),_:2},1032,["to","href","target","style","class"]))],2)):c("",!0),e.type==="divider"?(t(),s("div",{key:13,class:d(de(e.spacing))},[["solid","dashed","dotted","double"].includes(e.style||"solid")?(t(),s("div",{key:0,class:d(ue(e.style,e.color)),style:b(`border-width: ${C(e.thickness)}`)},null,6)):e.style==="gradient"?(t(),s("div",{key:1,class:"w-full bg-gradient-to-r from-purple-500 via-pink-500 to-indigo-500",style:b(`height: ${C(e.thickness)}`)},null,4)):e.style==="ornamental"?(t(),s("div",{key:2,class:"w-full relative flex items-center justify-center",style:b(`height: ${C(e.thickness)}`)},[r("div",{class:d(["flex-1 h-px",k(e.color)])},null,2),r("div",nr,[r("div",{class:d(["w-12 h-px",k(e.color)])},null,2),r("div",{class:d(["w-2 h-2 rounded-full border-2",E(e.color)])},null,2),r("div",{class:d(["w-12 h-px",k(e.color)])},null,2)]),r("div",{class:d(["flex-1 h-px",k(e.color)])},null,2)],4)):e.style==="wave"?(t(),s("div",{key:3,class:"w-full relative overflow-hidden",style:b(`height: ${C(e.thickness)}`)},[(t(),s("svg",ir,[r("path",{d:"M0,20 Q300,0 600,20 T1200,20",stroke:I(e.color),"stroke-width":C(e.thickness),fill:"none","stroke-linecap":"round"},null,8,dr)]))],4)):e.style==="zigzag"?(t(),s("div",{key:4,class:"w-full relative",style:b(`height: ${C(e.thickness)}`)},[(t(),s("svg",ur,[r("polyline",{points:"0,10 30,0 60,10 90,0 120,10 150,0 180,10 210,0 240,10 270,
10 300,10 330,0 360,10 390,0 420,10 450,0 480,10 510,0 540,10 570,0 600,10 630,0 660,10 690,0 720,10 750,0 780,10 810,0 840,10 870,0 900,10 930,0 960,10 990,0 1020,10 1050,0 1080,10 1110,0 1140,10 1170,0 1200,10",stroke:I(e.color),"stroke-width":C(e.thickness),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,8,cr)]))],4)):e.style==="decorative"?(t(),s("div",gr,[r("div",{class:d(["flex-1 h-px",k(e.color)])},null,2),r("div",hr,[r("div",{class:d(["w-1.5 h-1.5 rounded-full",k(e.color)])},null,2),r("div",{class:d(["w-2.5 h-2.5 rounded-full border-2",E(e.color)])},null,2),r("div",{class:d(["w-1.5 h-1.5 rounded-full",k(e.color)])},null,2)]),r("div",{class:d(["flex-1 h-px",k(e.color)])},null,2)])):c("",!0)],2)):c("",!0),e.type==="quote"?(t(),s("div",{key:14,class:d([{"bg-gray-50 border-l-4 border-blue-500 p-8":e.style==="default","border-2 border-gray-200 p-8":e.style==="bordered","bg-gradient-to-r from-purple-600 to-indigo-600 text-white p-8":e.style==="gradient","p-8":e.style==="minimal"},"rounded-3xl"])},[l[10]||(l[10]=r("div",{class:"text-5xl text-gray-400 mb-6"},'"',-1)),r("p",xr,i(e.text),1),r("div",yr,[e.avatar?(t(),s("img",{key:0,src:e.avatar,class:"w-12 h-12 rounded-full"},null,8,br)):c("",!0),r("div",null,[r("div",vr,i(e.author),1),r("div",fr,i(e.role),1)])])],2)):c("",!0),e.type==="stats"?(t(),s("div",{key:15,class:"grid gap-8",style:b(`grid-template-columns: repeat(${e.columns||3}, 1fr)`)},[(t(!0),s(y,null,v(e.items,(a,n)=>(t(),s("div",{key:n,class:"text-center p-8 bg-gray-50 rounded-3xl border border-gray-200"},[r("div",_r,i(a.number),1),r("div",pr,i(a.label),1)]))),128))],4)):c("",!0),e.type==="tabs"?(t(),s("div",wr,[r("div",kr,[(t(!0),s(y,null,v(e.tabs,(a,n)=>(t(),s("button",{key:n,onClick:x=>R.value=n,class:d([R.value===n?"border-b-2 border-blue-500 text-blue-600":"text-gray-600 hover:text-gray-900","px-8 py-4 text-base font-medium transition-colors"])},i(a.title),11,mr))),128))]),r("div",$r,[r("div",Cr,i(e.tabs[R.value]?.content),1)])])):c("",!0),e.type==="accordion"?(t(),s("div",Mr,[(t(!0),s(y,null,v(e.items,(a,n)=>(t(),s("div",{key:n,class:"border-b border-gray-200 last:border-b-0"},[r("button",{onClick:x=>ie(n),class:"w-full p-6 bg-gray-50 flex items-center justify-between hover:bg-gray-100 transition-colors"},[r("span",Sr,i(a.title),1),w(f(Fe),{class:d([T.value===n?"rotate-180":"","w-6 h-6 text-gray-400 transition-transform"])},null,8,["class"])],8,jr),ee(r("div",{class:"p-6 bg-white text-gray-700 leading-relaxed"},i(a.content),513),[[te,T.value===n]])]))),128))])):c("",!0),e.type==="code_block"?(t(),s("div",Tr,[r("div",Ar,[r("span",Nr,i(e.language||"javascript"),1)]),r("pre",Lr,[r("code",null,i(e.code),1)])])):c("",!0),e.type==="features"?(t(),s("div",{key:19,class:"grid gap-8",style:b(`grid-template-columns: repeat(${e.columns||3}, 1fr)`)},[(t(!0),s(y,null,v(e.items,(a,n)=>(t(),s("div",{key:n,class:"p-8 bg-gray-50 rounded-3xl border border-gray-200"},[r("div",Wr,i(a.icon||"â"),1),r("h3",Dr,i(a.title),1),r("p",Br,i(a.description),1)]))),128))],4)):c("",!0),e.type==="cta"?(t(),s("div",{key:20,class:d([{"bg-gradient-to-r from-purple-600 to-indigo-600 text-white":e.style==="gradient","bg-blue-600 text-white":e.style==="solid","bg-white border-2 border-gray-300 text-gray-900":e.style==="outline","bg-gray-50 text-gray-900":e.style==="minimal"},"rounded-3xl p-16 text-center shadow-2xl"])}
1,[r("h2",Vr,i(e.title),1),r("p",zr,i(e.description),1),(t(),m($(_(e.button_link)?"NuxtLink":"a"),{to:_(e.button_link)?e.button_link:void 0,href:_(e.button_link)?void 0:e.button_link||"#",target:_(e.button_link)?void 0:"_blank",class:"inline-block px-10 py-4 bg-white text-gray-900 rounded-xl font-bold text-lg hover:bg-gray-100 transition-all shadow-lg cursor-pointer"},{default:p(()=>[N(i(e.button_text),1)]),_:2},1032,["to","href","target"]))],2)):c("",!0)]))),128))])])])],64)):f(be)?(t(),s("div",Rr,[...l[11]||(l[11]=[r("div",{class:"w-12 h-12 border-4 border-cyan-500/30 border-t-cyan-500 rounded-full animate-spin mx-auto mb-4"},null,-1),r("p",{class:"text-gray-600 font-medium"},"Loading Topic...",-1)])])):c("",!0)])}}}),Qr=qe(Er,[["__scopeId","data-v-c01f9950"]]);export{Qr 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.