PageSourceSearch

https://www.creatorcrack.com/_next/static/chunks/app/page-8c777a10…?dpl=dpl_GoBeCe7qkxn16WSK9dWSenqvLr44

js creatorcrack.com collected 2026-10-02 01:26:51 UTC 68,989 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{41986:function(e,t,n){Promise.resolve().then(n.bind(n,20327))},20327:function(e,t,n){"use strict";n.d(t,{HomeClient:function(){return eu}});var l=n(57437),a=n(2265);function r(e){let{name:t,size:n=16,className:a=""}=e;return(0,l.jsx)("img",{src:"/icons/landing/".concat(t,".png"),alt:"",width:n,height:n,className:"inline-block shrink-0 object-contain ".concat(a),style:{width:n,height:n}})}var s=n(45107),i=n(3274),o=n(22468),d=n(6884),c=n(40036),u=n(14392),x=n(42421),m=n(66706),g=n(6419),b=n(1958),f=n(98607),p=n(11945);function h(e){var t;let{alt:n,idx:a,copied:r,adoptingIdx:s,showAdopt:c,copyTitle:u,handleAdopt:x,copyLabel:m,highlight:g,compact:b}=e,f=(null!==(t=n.score)&&void 0!==t?t:0)>=90||g;return(0,l.jsxs)("div",{className:"rounded-xl p-".concat(b?3:4," border flex items-start gap-3 group").concat(f?" glow-pulse":""),style:{background:g?"rgba(255,31,110,0.06)":"rgba(255,255,255,0.04)",borderColor:f?"rgba(255,31,110,0.4)":"rgba(255,255,255,0.08)"},children:[(0,l.jsx)("span",{className:"shrink-0 text-xs font-heading font-bold px-2 py-0.5 rounded-md",style:{background:f?"rgba(255,31,110,0.25)":"rgba(255,31,110,0.15)",color:"#ff1f6e",border:"1px solid rgba(255,31,110,0.3)"},children:n.score}),(0,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsx)("p",{className:"text-sm font-heading font-bold text-white",children:n.titel})}),(0,l.jsxs)("div",{className:"shrink-0 flex items-center gap-1.5",children:[(0,l.jsx)("button",{onClick:()=>u(n.titel,a),className:"p-1.5 rounded-lg text-[#5f5f66] hover:text-[#ff1f6e] transition-colors",title:m,children:r===a?(0,l.jsx)(o.Z,{size:14,className:"text-green-400"}):(0,l.jsx)(d.Z,{size:14})}),c&&(0,l.jsx)("button",{onClick:()=>x(n,a),disabled:null!==s,className:"w-8 h-8 rounded-full flex items-center justify-center transition-all disabled:opacity-50 disabled:cursor-not-allowed",title:"\xdcbernehmen - bewertet diesen Titel als neuen Haupttitel",style:{background:"rgba(34,197,94,0.12)",border:"1px solid rgba(34,197,94,0.45)",color:"#22c55e"},children:s===a?(0,l.jsx)(i.Z,{size:12,className:"animate-spin"}):(0,l.jsx)(o.Z,{size:14})})]})]})}function y(e){var t,n;let{result:r,t:s,titel:i,lang:o,password:d,modelTier:y,onCreditUsed:j,onLimitReached:v,onGenerating:k,onGenerated:N,onGenerationFailed:w,isLoggedIn:S=null,onLoginRequired:C,onAdoptAlternative:z}=e,T=(0,p.Pp)(),A=(0,p.Fc)(null!=y?y:T),[D,R]=(0,a.useState)(null),[E,Z]=(0,a.useState)(null),[F,L]=(0,a.useState)([...null!==(t=r.alternativen)&&void 0!==t?t:[]].sort((e,t)=>{var n,l;return(null!==(n=t.score)&&void 0!==n?n:0)-(null!==(l=e.score)&&void 0!==l?l:0)})),[P,B]=(0,a.useState)(!1),[_,M]=(0,a.useState)(null),[O,U]=(0,a.useState)(!1),[K,I]=(0,a.useState)(!1),[G,q]=(0,a.useState)(!1);async function H(e,t){await navigator.clipboard.writeText(e),R(t),setTimeout(()=>R(null),2e3)}async function W(e,t){if(z&&null===E){Z(t);try{await z(e.titel)}finally{Z(null)}}}async function V(){B(!0),M(null);try{var e;let t=await fetch("/api/refresh-alternatives",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({titel:i,password:d||void 0,language:o})}),n=await t.json();if(401===t.status||"login_required"===n.error||402===t.status||"insufficient_credits"===n.error||429===t.status){v();return}if(!t.ok){M(s.errApiFailed);return}let l=[...null!==(e=n.alternativen)&&void 0!==e?e:[]].sort((e,t)=>{var n,l;return(null!==(n=t.score)&&void 0!==n?n:0)-(null!==(l=e.score)&&void 0!==l?l:0)});L(l),j(n.remainingAnalyses,n.tier)}catch(e){M(s.errTimeout)}finally{B(!1)}}let J=F[0],Y=J&&(null!==(n=J.score)&&void 0!==n?n:0)>r.score;return(0,l.jsxs)("div",{className:"animate-fade-in space-y-4 mt-6",children:[(0,l.jsxs)("div",{className:"rounded-xl border overflow-hidden",style:{background:"rgba(255,255,255,0.04)",borderColor:"rgba(255,255,255,0.08)"},children:[(0,l.jsxs)("div",{className:"p-5 flex flex-col sm:flex-row items-center gap-6",children:[(0,l.jsx)(g.Z,{score:r.score,size:120,label:s.resultScore}),(0,l.jsxs)("div",{className:"flex-1 w-full space-y-3",children:[(0,l.jsx)(b.Z,{label:s.resultSeo,score:r.seo_score}),(0,l.jsx)(b.Z,{label:s.resultEmotion,score:r.emotion_score}),(0,l.jsx)(b.Z,{label:s.resultNeugier,score:r.neugier_score})]})]}),(0,l.jsxs)("button",{type:"button",onClick:()=>
1{if(!1===S&&C){C();return}q(!0)},className:"group w-full flex items-center justify-center gap-2.5 py-3.5 font-heading font-bold transition-all relative overflow-hidden",style:{fontSize:"14px",letterSpacing:"0.02em",background:"linear-gradient(90deg, rgba(255,31,110,0.12) 0%, rgba(168,85,247,0.12) 100%)",borderTop:"1px solid rgba(255,255,255,0.06)",color:"#fff"},onMouseEnter:e=>{e.currentTarget.style.background="linear-gradient(90deg, rgba(255,31,110,0.22) 0%, rgba(168,85,247,0.22) 100%)"},onMouseLeave:e=>{e.currentTarget.style.background="linear-gradient(90deg, rgba(255,31,110,0.12) 0%, rgba(168,85,247,0.12) 100%)"},children:[(0,l.jsx)(c.Z,{size:15,style:{color:"#ff1f6e"}}),(0,l.jsx)("span",{children:"Thumbnail zum Titel erstellen"}),(0,l.jsxs)("span",{className:"text-[10px] px-2 py-0.5 rounded-full font-bold font-body ml-1",style:{background:"rgba(255,255,255,0.1)",color:"#fff"},children:[A," Credits"]})]})]}),J&&(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-1",children:[(0,l.jsx)("span",{className:"text-xs font-heading font-bold uppercase tracking-wider",style:{color:Y?"#ff1f6e":"#a1a1aa"},children:Y?"\uD83C\uDFC6 KI-Empfehlung":"\uD83D\uDCA1 Alternative"}),(0,l.jsxs)("button",{type:"button",onClick:()=>I(e=>!e),className:"text-[10px] font-body flex items-center gap-1 hover:text-white transition-colors",style:{color:"#ffd000"},children:[K?(0,l.jsx)(u.Z,{size:12}):(0,l.jsx)(x.Z,{size:12}),K?"Details schlie\xdfen":"Bewertung & alle Alternativen"]})]}),(0,l.jsx)("div",{onClick:()=>I(e=>!e),className:"cursor-pointer",children:(0,l.jsx)(h,{alt:J,idx:0,copied:D,adoptingIdx:E,showAdopt:!!z,copyTitle:H,handleAdopt:W,copyLabel:s.resultCopy,highlight:Y})}),(0,l.jsx)("p",{className:"text-[10px] font-body px-1",style:{color:"#5f5f66"},children:Y?"St\xe4rker als dein Titel - kopieren oder \xfcbernehmen.":"Dein Titel ist stark - hier eine Alternative zur Auswahl."})]}),K&&(0,l.jsxs)("div",{className:"space-y-4 animate-fade-in",children:[(0,l.jsxs)("div",{className:"rounded-xl p-4 border",style:{background:"rgba(255,255,255,0.04)",borderColor:"rgba(255,255,255,0.08)"},children:[(0,l.jsx)("p",{className:"text-sm text-[#ccc] font-body leading-relaxed",children:r.bewertung}),r.annahmen&&(0,l.jsxs)("div",{className:"mt-2",children:[(0,l.jsxs)("button",{onClick:()=>U(e=>!e),className:"flex items-center gap-1 text-xs text-[#5f5f66] hover:text-[#a1a1aa] transition-colors font-body",children:[O?(0,l.jsx)(u.Z,{size:12}):(0,l.jsx)(x.Z,{size:12}),s.resultAnnahmen]}),O&&(0,l.jsx)("p",{className:"mt-1.5 text-xs text-[#666] font-body italic leading-relaxed pl-4 border-l border-white/10",children:r.annahmen})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsx)("h3",{className:"text-sm font-heading font-bold text-white",children:"Weitere Alternativen"}),(0,l.jsxs)("button",{onClick:V,disabled:P,className:"flex items-center gap-1.5 text-xs font-body px-3 py-1.5 rounded-lg transition-all disabled:opacity-50",style:{background:"rgba(255,31,110,0.12)",border:"1px solid rgba(255,31,110,0.25)",color:"#ff1f6e"},children:[(0,l.jsx)(m.Z,{size:11,className:P?"animate-spin":""}),P?s.resultRefreshing:s.resultRefreshBtn]})]}),(0,l.jsx)("p",{className:"text-xs text-[#5f5f66] font-body mb-3",children:s.resultAltScoreHint}),_&&(0,l.jsx)("p",{className:"text-red-400 text-xs font-body mb-2",children:_}),(0,l.jsx)("div",{className:"space-y-2",children:F.slice(1).map((e,t)=>(0,l.jsx)(h,{alt:e,idx:t+1,copied:D,adoptingIdx:E,showAdopt:!!z,copyTitle:H,handleAdopt:W,copyLabel:s.resultCopy},t+1))})]}),r.kurztipp&&(0,l.jsx)("div",{className:"rounded-xl p-4 border",style:{background:"rgba(255,208,0,0.06)",borderColor:"rgba(255,208,0,0.2)"},children:(0,l.jsxs)("p",{className:"text-sm font-body text-yellow-200",children:[(0,l.jsxs)("span",{className:"font-bold text-[#ffd000]",children:[s.resultKurztipp,": "]}
1),r.kurztipp]})})]}),G&&(0,l.jsx)(f.Z,{mode:"reference",titleHint:i,externalModelTier:y,t:s,lang:o,password:d,onClose:()=>q(!1),onResult:j,onLimitReached:()=>v(),onLoginRequired:C,onGenerating:()=>{q(!1),null==k||k()},onGenerated:N,onGenerationFailed:w})]})}var j=n(13672),v=n(77444),k=n(37667);function N(e){let{t,lang:n,password:r,modelTier:s,isLoggedIn:o=null,onLimitReached:d,onLoginRequired:c,onResult:u}=e,[x,m]=(0,a.useState)(""),[g,b]=(0,a.useState)(!1),[f,h]=(0,a.useState)(null),[N,w]=(0,a.useState)(null),[S,C]=(0,a.useState)(0),[z,T]=(0,a.useState)([]),A=(0,a.useRef)(null),D=(0,p.Pp)(),R=(0,p.I1)(null!=s?s:D);function E(){C(e=>e+1),setTimeout(()=>{var e;null===(e=A.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},100)}function Z(e,t){C(e=>Math.max(0,e-1)),T(n=>[...n,{imageUrl:e,analysis:t}])}async function F(e){let l=await fetch("/api/analyze-title",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({titel:e,password:r||void 0,language:n})}),a=await l.json();if(429===l.status){var s;d(null!==(s=a.remaining)&&void 0!==s?s:0);return}if(!l.ok){w(t.errApiFailed);return}h(a.result),a.cached||u(a.remainingAnalyses,a.tier)}async function L(e){if(e.preventDefault(),!x.trim()){w(t.errNoTitle);return}if(x.length>100){w(t.errTitleTooLong);return}w(null),b(!0),h(null),T([]),C(0);try{await F(x)}catch(e){w(t.errTimeout)}finally{b(!1)}}async function P(e){w(null),m(e);try{await F(e)}catch(e){w(t.errTimeout)}}(0,a.useEffect)(()=>{(0,v.Bv)(x||void 0)},[x]),(0,a.useEffect)(()=>{let e=(0,v.xB)();(null==e?void 0:e.titel)&&m(e.titel)},[]);let B=100-x.length;return(0,l.jsxs)("div",{children:[(0,l.jsxs)("form",{onSubmit:L,className:"space-y-3",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("textarea",{className:"w-full bg-[#111] border border-white/[0.08] rounded-xl px-4 py-3 text-white font-body placeholder-[#444] focus:outline-none focus:border-[#ff1f6e]/50 transition-colors resize-none text-sm",rows:2,placeholder:t.titelPlaceholder,value:x,onChange:e=>m(e.target.value.replace(/[\r\n]+/g," ").slice(0,100)),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),L(e))},maxLength:100}),(0,l.jsxs)("div",{className:"absolute bottom-2 right-3 flex items-center gap-3",children:[(0,l.jsx)("button",{type:"button",onClick:()=>m(t.titelExample),className:"text-xs text-[#555] hover:text-[#ff1f6e] transition-colors font-body",children:t.titelExampleBtn}),(0,l.jsxs)("span",{className:"text-xs font-body",style:{color:B<20?"#ef4444":B<50?"#f97316":"#555"},children:[B," ",t.titelCharsLeft]})]})]}),N&&(0,l.jsx)("p",{className:"text-red-400 text-sm font-body",children:N}),(0,l.jsx)("button",{type:"submit",disabled:g||!x.trim(),className:"w-full py-3 rounded-xl font-heading font-bold text-white transition-all disabled:opacity-40 flex items-center justify-center gap-2",style:{background:"linear-gradient(135deg, #ff1f6e, #c91858)",boxShadow:g?"none":"0 0 20px rgba(255,31,110,0.35), 0 0 60px rgba(255,31,110,0.12)"},children:g?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{size:16,className:"animate-spin"}),t.titelAnalyzing]}):t.titelAnalyzeBtn})]}),g&&(0,l.jsxs)("div",{className:"mt-6 space-y-3 animate-pulse",children:[(0,l.jsx)("div",{className:"h-32 rounded-xl bg-[#141414]"}),(0,l.jsx)("div",{className:"h-20 rounded-xl bg-[#141414]"}),(0,l.jsx)("div",{className:"h-24 rounded-xl bg-[#141414]"})]}),f&&!g&&(0,l.jsx)(y,{result:f,t:t,titel:x,lang:n,password:r,modelTier:s,onCreditUsed:u,onLimitReached:()=>{C(e=>Math.max(0,e-1)),d(0)},onGenerating:E,onGenerated:Z,onGenerationFailed:()=>C(e=>Math.max(0,e-1)),isLoggedIn:o,onLoginRequired:c,onAdoptAlternative:P}),z.map((e,a)=>(0,l.jsx)(j.r,{imageUrl:e.imageUrl,fileOrUrl:e.imageUrl,analysis:e.analysis,modelTier:null!=s?s:D,defaultOpen:!0,label:"↓ Thumbnail #".concat(a+1),title:x,t:t,lang:n,password:r,onResult:u,onLimitReached:d,onNewCard:(e,t)=>Z(e,t),onGenerating:E,onGenerationFailed:()=>C(e=>Math.max(0,e-1)),onLoginRequired:c},a)),Array.from({length:S}).map((e,t)=>(0,l.jsx)("div",{ref:0===t?A:void 0,className:"mt-4",children:(0,l.jsx)(k.Z,{avgDurationMs:R,index:t,total:S,modelLabel:(0,p.Bz)(null!=s?s:D)})},"loading-".concat(t)))]})}var w=n(58184),S=n(74697),C=n(54817),z=n(91773),T=n(33874),A=n(97154);let D=["image/jpeg","image/png","image/webp"];function R(e){let{t,lang:n,password:r,modelTier:s,isLoggedIn:o=null,onLimitReached:d,onLoginRequired:c,onResult:u}=e,[x,m]=(0,a.useState)(null),[g,b]=(0,a.useState)(null),[h,y]=(0,a.useState)(!1),[N,R]=(0,a.useState)(!1),[E,Z]=(0,a.useState)([]),[F,L]=(0,a.useState)(null),[P,B]=(0,a.useState)(!1),[_,M]=(0,a.useState)(0),O
1=(0,a.useRef)(null),U=(0,p.Pp)(),K=(0,p.Fc)(null!=s?s:U),I=(0,p.I1)(null!=s?s:U),G=_>=3,[q,H]=(0,a.useState)([]),W=(0,a.useRef)(null),V=(0,a.useRef)(new Map),J=(0,a.useRef)(new Map),Y=(0,a.useRef)(!1),Q=(0,a.useRef)(!1),$=(0,a.useRef)(null),X=q.some(e=>"running"===e.status);function ee(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];H(l=>l.map(l=>l.id===e?{...l,status:"failed",message:t,aborted:n}:l))}async function et(e,t){let n=W.current;if(!n)return;let l=new AbortController;J.current.set(e,l);let a=n(t),r=a.get("prompt");"string"==typeof r&&r.trim()&&V.current.set(e,r);let s=await (0,T.M)(a,{signal:l.signal});if(J.current.delete(e),"success"===s.kind){if(window.dispatchEvent(new CustomEvent("credits-updated",{detail:{remaining:null}})),"number"==typeof s.remaining){let e=$.current;(null===e||s.remaining<e)&&($.current=s.remaining,u(s.remaining,s.tier))}Z(t=>[...t,{id:"gen-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),file:new File([],"generated.png",{type:"image/png"}),preview:s.imageUrl,result:s.analysis,prompt:V.current.get(e)}]),H(t=>t.filter(t=>t.id!==e));return}if("aborted"===s.kind){window.dispatchEvent(new CustomEvent("credits-updated",{detail:{remaining:null}})),ee(e,"Abgebrochen. Achtung: der Server rechnet dieses Bild trotzdem fertig, die Credits sind verbraucht.",!0);return}if("login"===s.kind){Y.current||(Y.current=!0,null==c||c()),ee(e,"Anmeldung erforderlich.");return}if("credits"===s.kind||"rate"===s.kind){Q.current||(Q.current=!0,d(s.remaining)),ee(e,"credits"===s.kind?"Nicht genug Credits f\xfcr dieses Bild.":"Limit erreicht.");return}s.refunded&&window.dispatchEvent(new CustomEvent("credits-updated",{detail:{remaining:null}})),ee(e,s.message)}(0,a.useEffect)(()=>{x&&g?(0,v._k)({dataUrl:g,name:x.name,type:x.type}):(0,v._k)(void 0)},[x,g]),(0,a.useEffect)(()=>{if(0===E.length){(0,v.fg)(void 0);return}(0,v.fg)(E.map(e=>({id:e.id,dataUrl:e.preview,name:e.file.name,type:e.file.type,result:e.result,prompt:e.prompt})))},[E]),(0,a.useEffect)(()=>{let e=!1,t=(0,v.xB)();if(t)return t.thumb&&(0,v.Bo)(t.thumb.dataUrl,t.thumb.name,t.thumb.type).then(n=>{!e&&n&&(m(n),b(t.thumb.dataUrl))}
1),t.analyzedThumbs&&t.analyzedThumbs.length>0&&Promise.all(t.analyzedThumbs.map(async e=>{let t=await (0,v.Bo)(e.dataUrl,e.name,e.type);return t?{id:e.id,file:t,preview:e.dataUrl,result:e.result,prompt:e.prompt}:null})).then(t=>{if(e)return;let n=t.filter(e=>null!==e);n.length>0&&Z(n)}),()=>{e=!0}},[]);let en="cc_gen_thumbs_v1";async function el(e){if(!D.includes(e.type)){L(t.errWrongFileType);return}if(e.size>8388608){L(t.errFileTooLarge);return}let n=await (0,A.T)(e);L(null),m(n);let l=new FileReader;l.onload=e=>{var n;let l=null===(n=e.target)||void 0===n?void 0:n.result,a=new Image;a.onload=()=>{let e=a.width/a.height;if(e<1.6||e>1.85){L(t.errNotSquare),m(null);return}b(l)},a.src=l},l.readAsDataURL(n)}(0,a.useEffect)(()=>{let e=E.filter(e=>e.preview.startsWith("http")).map(e=>({id:e.id,url:e.preview,result:e.result,prompt:e.prompt}));try{0===e.length?localStorage.removeItem(en):localStorage.setItem(en,JSON.stringify({ts:Date.now(),items:e}))}catch(e){}},[E]),(0,a.useEffect)(()=>{try{var e;let t=localStorage.getItem(en);if(!t)return;let n=JSON.parse(t);if(!(null==n?void 0:null===(e=n.items)||void 0===e?void 0:e.length)||Date.now()-n.ts>864e5){localStorage.removeItem(en);return}Z(e=>e.length>0?e:n.items.map(e=>({id:e.id,file:new File([],"generated.png",{type:"image/png"}),preview:e.url,result:e.result,prompt:e.prompt})))}catch(e){}},[]);let ea=(0,a.useCallback)(e=>{e.preventDefault(),y(!1);let t=e.dataTransfer.files[0];t&&el(t)},[]);async function er(e){if(e.preventDefault(),!x||!g){L(t.errNoFile);return}L(null),R(!0);try{let e=new FormData;e.append("file",x),e.append("language",n),r&&e.append("password",r);let a=await fetch("/api/analyze-thumbnail",{method:"POST",body:e});if(413===a.status){L(t.errFileTooLarge);return}let s=await a.json();if(429===a.status){var l;d(null!==(l=s.remaining)&&void 0!==l?l:0);return}if(!a.ok){L(t.errApiFailed);return}Z(e=>[...e,{id:"".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),file:x,preview:g,result:s.result}]),u(s.remainingAnalyses,s.tier),m(null),b(null),O.current&&(O.current.value="")}catch(e){L(t.errTimeout)}finally{R(!1)}}return(0,l.jsxs)("div",{children:[(0,l.jsxs)("form",{onSubmit:er,className:"space-y-3",children:[g?(0,l.jsxs)("div",{className:"relative rounded-xl overflow-hidden border border-white/[0.08]",children:[(0,l.jsx)("img",{src:g,alt:"Thumbnail preview",className:"w-full max-h-56 object-contain bg-black"}),(0,l.jsx)("button",{type:"button",onClick:function(){m(null),b(null),O.current&&(O.current.value="")},className:"absolute top-2 right-2 p-1.5 rounded-lg bg-black/70 text-[#888] hover:text-white transition-colors",children:(0,l.jsx)(S.Z,{size:14})}),(0,l.jsxs)("div",{className:"absolute bottom-2 left-2 text-xs bg-black/70 px-2 py-1 rounded font-body text-[#888]",children:[t.thumbRemove," ↑"]})]}):(0,l.jsxs)("div",{className:"relative border-2 border-dashed rounded-xl p-8 text-center cursor-pointer transition-all",style:{borderColor:h?"#ff1f6e":"rgba(255,255,255,0.12)",background:h?"rgba(255,31,110,0.06)":"rgba(20,20,20,0.5)",boxShadow:h?"0 0 20px rgba(255,31,110,0.2)":"none"},onDragOver:e=>{e.preventDefault(),y(!0)},onDragLeave:()=>y(!1),onDrop:ea,onClick:()=>{var e;return null===(e=O.current)||void 0===e?void 0:e.click()},children:[(0,l.jsx)(w.Z,{size:32,className:"mx-auto mb-3 text-[#555]"}),(0,l.jsx)("p",{className:"text-sm font-body text-[#888]",children:t.thumbDropzone}),(0,l.jsx)("p",{className:"text-xs font-body text-[#555] mt-1",children:t.thumbDropzoneHint}),(0,l.jsx)("input",{ref:O,type:"file",className:"hidden",accept:"image/jpeg,image/png,image/webp",onChange:e=>{var t;return(null===(t=e.target.files)||void 0===t?void 0:t[0])&&el(e.target.files[0])}})]}),F&&(0,l.jsx)("p",{className:"text-red-400 text-sm font-body",children:F}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,l.jsx)("button",{type:"submit",disabled:N||!x,className:"py-3 rounded-xl font-heading font-bold text-white transition-all disabled:opacity-40 flex items-center justify-center gap-2",style:{background:"linear-gradient(135deg, #ff1f6e, #c91858)",boxShadow:N?"none":"0 0 14px rgba(255,31,110,0.2)",fontSize:"14px"},children:N?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{size:16,className:"animate-spin"}),t.thumbAnalyzing]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(C.Z,{size:14}),t.thumbAnalyzeBtn]})}),(0,l.jsxs)("button",{type:"button",onClick:function(){if(L(null),!1===o&&c){c();return}if(X){L("Ein Batch l\xe4uft gerade. Warte bis er fertig ist oder brich ihn ab.");return}if(G){L("Maximal ".concat(3," Generierungen gleichzeitig. Warte bis eine fertig ist."));return}B(!0)},disabled:N||X,title:X?"Batch l\xe4uft - warte oder brich ihn ab":void 0,className:"py-3 rounded-xl font-heading font-bold transition-all disabled:opacity-40 flex items-center justify-center gap-2 relative",style:{background:"linear-gradient(135deg, rgba(168,85,247,0.18), rgba(255,31,110,0.18))",border:"1px solid rgba(255,31,110,0.35)",color:"#fff",fontSize:"14px"},children:[(0,l.jsx)(z.Z,{size:14}),t.thumbDirectGenerateBtn,(0,l.jsxs)("span",{className:"text-[10px] px-2 py-0.5 rounded-full font-bold font-body ml-1",style:{background:"rgba(255,255,255,0.1)",color:"#fff"},children:[K," Credits"]})]})]}),(0,l.jsx)("p",{className:"text-xs font-body text-center",style:{color:"#666"},children:t.thumbDirectGenerateHint}),!1===o&&(0,l.jsxs)("p",{className:"text-xs font-body text-center",style:{color:"#666"},children:[(0,l.jsx)("a",{href:"/login",onClick:()=>(0,v.Ae)(),className:"font-bold hover:underline",style:{color:"#ff1f6e"},children:"Kostenlos anmelden"}
1),": 100 Credits/Monat, Thumbnails erstellen, Kombi-Analyse, Studio-Zugang."]})]}),N&&(0,l.jsxs)("div",{className:"mt-6 space-y-3 animate-pulse",children:[(0,l.jsx)("div",{className:"h-32 rounded-xl bg-[#141414]"}),(0,l.jsx)("div",{className:"h-20 rounded-xl bg-[#141414]"})]}),Array.from({length:_}).map((e,t)=>(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(k.Z,{avgDurationMs:I,index:t,total:_,modelLabel:(0,p.Bz)(null!=s?s:U)})},"loading-".concat(t))),q.length>0&&(0,l.jsxs)("div",{className:"mt-4 space-y-2",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("p",{className:"text-xs font-heading font-bold text-[#888] uppercase tracking-wider",children:"Mehrfach-Generierung"}),X&&(0,l.jsx)("button",{type:"button",onClick:function(){J.current.forEach(e=>e.abort()),J.current.clear()},className:"text-xs font-body font-bold px-2.5 py-1 rounded-lg transition-colors",style:{background:"rgba(239,68,68,0.1)",border:"1px solid rgba(239,68,68,0.3)",color:"#ef4444"},children:"Batch abbrechen"})]}),(0,l.jsx)("div",{className:"grid grid-cols-2 gap-3",children:q.map(e=>"running"===e.status?(0,l.jsx)(k.Z,{avgDurationMs:I,index:e.idx,total:e.total,modelLabel:(0,p.Bz)(null!=s?s:U)},e.id):(0,l.jsxs)("div",{className:"rounded-xl flex flex-col items-center justify-center gap-2 p-3 text-center",style:{aspectRatio:"16/9",background:e.aborted?"rgba(255,255,255,0.03)":"rgba(239,68,68,0.05)",border:e.aborted?"1px solid rgba(255,255,255,0.12)":"1px solid rgba(239,68,68,0.3)"},children:[(0,l.jsx)("p",{className:"text-[11px] font-body leading-snug",style:{color:e.aborted?"#888":"#f87171"},children:e.message}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>{H(t=>t.map(t=>t.id===e.id?{...t,status:"running",message:void 0,aborted:!1}:t)),et(e.id,e.idx)},className:"text-[11px] font-body font-bold px-2.5 py-1 rounded-lg transition-colors",style:{background:"rgba(255,31,110,0.1)",border:"1px solid rgba(255,31,110,0.3)",color:"#ff1f6e"},children:["Nochmal (",K," Cr.)"]}),(0,l.jsx)("button",{type:"button",onClick:()=>{var t;return t=e.id,void H(e=>e.filter(e=>e.id!==t))},className:"text-[11px] font-body px-2.5 py-1 rounded-lg text-[#888] hover:text-white transition-colors",style:{border:"1px solid rgba(255,255,255,0.12)"},children:"Verwerfen"})]})]},e.id))}),X&&(0,l.jsx)("p",{className:"text-[11px] font-body",style:{color:"#666"},children:"Abbrechen stoppt nur die Anzeige - bereits gestartete Bilder rechnet der Server fertig, deren Credits sind verbraucht."})]}),E.map(e=>(0,l.jsx)(j.Z,{result:e.result,imageUrl:e.preview,originalFile:e.file.size>0?e.file:void 0,fileUrl:0===e.file.size?e.preview:void 0,prompt:e.prompt,t:t,lang:n,password:r,initialModelTier:s,onResult:u,onLimitReached:d,onLoginRequired:c},e.id)),P&&(0,l.jsx)(f.Z,{mode:"reference",preloadFile:null!=x?x:void 0,preloadImageUrl:null!=g?g:void 0,externalModelTier:s,t:t,lang:n,password:r,onClose:()=>B(!1),onResult:u,onLimitReached:d,onLoginRequired:c,onGenerating:()=>M(e=>e+1),onGenerated:function(e,t,n,l){B(!1),M(e=>Math.max(0,e-1)),Z(n=>[...n,{id:"gen-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),file:new File([],"generated.png",{type:"image/png"}),preview:e,result:t,prompt:l}])},onGenerationFailed:()=>M(e=>Math.max(0,e-1)),batchEnabled:!0,onBatchStart:function(e,t){W.current=e,Y.current=!1,Q.current=!1,$.current=null;let n=Array.from({length:t},(e,n)=>({id:"batch-".concat(Date.now(),"-").concat(n,"-").concat(Math.random().toString(36).slice(2,6)),idx:n,total:t,status:"running"}));
1H(n),n.forEach(e=>{et(e.id,e.idx)})}})]})}var E=n(92940),Z=n(59884),F=n(69472);let L={"PERFEKTES MATCH":{color:"#ffd000",bg:"linear-gradient(135deg, rgba(255,208,0,0.18), rgba(255,31,110,0.14))",border:"rgba(255,208,0,0.7)",glow:"0 0 24px rgba(255,208,0,0.45), 0 0 48px rgba(255,31,110,0.25)"},"PASST GUT":{color:"#22c55e",bg:"linear-gradient(135deg, rgba(34,197,94,0.12), rgba(0,200,255,0.08))",border:"rgba(34,197,94,0.5)",glow:"0 0 16px rgba(34,197,94,0.4)"},"SCHWACHER FIT":{color:"#f97316",bg:"linear-gradient(135deg, rgba(249,115,22,0.12), rgba(255,255,255,0.04))",border:"rgba(249,115,22,0.5)",glow:"0 0 14px rgba(249,115,22,0.35)"},WIDERSPRUCH:{color:"#ef4444",bg:"rgba(239,68,68,0.08)",border:"rgba(239,68,68,0.45)",glow:"0 0 14px rgba(239,68,68,0.35)"}};function P(e){var t;let{titelResult:n,thumbResult:r,kombiResult:s,imageUrl:c,title:f,originalFile:h,t:y,lang:v,password:k,initialModelTier:N,onResult:w,onLimitReached:S}=e,C=(0,p.Pp)(),[z,T]=(0,a.useState)([]),[A,D]=(0,a.useState)(null);function R(e){D(t=>t===e?null:e)}let[E,P]=(0,a.useState)(f),[B,_]=(0,a.useState)(n),[M,O]=(0,a.useState)(null),[U,K]=(0,a.useState)(null),[I,G]=(0,a.useState)(!1),[q,H]=(0,a.useState)(!1),[W,V]=(0,a.useState)(null),[J,Y]=(0,a.useState)(s),Q=L[J.synergie_label]||L["PASST GUT"];function $(e,t,n,l){T(a=>[...a,{imageUrl:e,analysis:t,modelTier:n,prompt:l,generatedAt:Date.now()}]),t.score>=85&&window.setTimeout(()=>(0,Z.P)(),150)}async function X(e,t){await navigator.clipboard.writeText(e),K(t),setTimeout(()=>K(null),1800)}async function ee(e,t){if(null===M){O(t);try{let t=await fetch("/api/analyze-title",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({titel:e.titel,password:k||void 0,language:v})}),l=await t.json();if(429===t.status){var n;S(null!==(n=l.remaining)&&void 0!==n?n:0);return}if(!t.ok)return;P(e.titel),_(l.result),l.cached||w(l.remainingAnalyses,l.tier),await et(e.titel)}finally{O(null)}}}async function et(e){if(q)return;H(!0),V(null);let t=()=>{let t=new FormData;return t.append("titel",e.trim()),t.append("file",h),t.append("language",v),k&&t.append("password",k),t};try{let e=await fetch("/api/analyze-synergy",{method:"POST",body:t()}),l=await e.json();if((401===e.status||"login_required"===l.error)&&(await new Promise(e=>setTimeout(e,200)),e=await fetch("/api/analyze-synergy",{method:"POST",body:t()}),l=await e.json()),429===e.status){var n;G(!0),S(null!==(n=l.remaining)&&void 0!==n?n:0);return}if(401===e.status||"login_required"===l.error){G(!0),S(0);return}if(500===e.status&&"server_misconfigured"===l.error){G(!0),V("Server-Konfigurationsfehler. Bitte Admin kontaktieren.");return}if(402===e.status||"insufficient_credits"===l.error){G(!0),S(0);return}if(!e.ok){G(!0),V(y.errApiFailed);return}Y(l.kombiResult),G(!1),w(l.remainingAnalyses,l.tier)}catch(e){V(y.errTimeout)}finally{H(!1)}}async function en(){return et(E)}let el=[...null!==(t=B.alternativen)&&void 0!==t?t:[]].sort((e,t)=>{var n,l;return(null!==(n=t.score)&&void 0!==n?n:0)-(null!==(l=e.score)&&void 0!==l?l:0)}),ea=I?"#f97316":Q.color;return(0,l.jsxs)("div",{className:"animate-fade-in space-y-4 mt-6",children:[(0,l.jsxs)("div",{className:"grid grid-cols-3 gap-2 text-center",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>R("titel"),className:"rounded-xl p-3 flex flex-col items-center gap-1 relative cursor-pointer transition-all",style:{background:"titel"===A?"rgba(168,85,247,0.08)":"#141414",border:"1px solid ".concat("titel"===A?"rgba(168,85,247,0.55)":"rgba(168,85,247,0.25)")},title:"titel"===A?"Details schlie\xdfen":"Titel-Details anzeigen",children:[(0,l.jsx)("span",{style:{position:"absolute",top:4,right:6,color:"#a855f7",opacity:.7},children:"titel"===A?(0,l.jsx)(u.Z,{size:12}):(0,l.jsx)(x.Z,{size:12})}),(0,l.jsx)("p",{className:"text-[9px] font-heading font-bold uppercase tracking-wider",style:{color:"#555"},children:"Titel"}),(0,l.jsx)(g.Z,{score:B.score,size:64})]}),(0,l.jsxs)("button",{type:"button",onClick:()=>R("thumb"),className:"rounded-xl p-3 flex flex-col items-center gap-1 relative cursor-pointer transition-all",style:{background:"thumb"===A?"rgba(34,197,94,0.08)":"#141414",border:"1px solid ".concat("thumb"===A?"rgba(34,197,94,0.55)":"rgba(34,197,94,0.25)")}
1,title:"thumb"===A?"Details schlie\xdfen":"Thumbnail-Details anzeigen",children:[(0,l.jsx)("span",{style:{position:"absolute",top:4,right:6,color:"#22c55e",opacity:.7},children:"thumb"===A?(0,l.jsx)(u.Z,{size:12}):(0,l.jsx)(x.Z,{size:12})}),(0,l.jsx)("p",{className:"text-[9px] font-heading font-bold uppercase tracking-wider",style:{color:"#555"},children:"Thumbnail"}),(0,l.jsx)(g.Z,{score:r.score,size:64})]}),(0,l.jsxs)("button",{type:"button",onClick:()=>R("synergy"),className:"rounded-xl p-3 flex flex-col items-center gap-1 relative cursor-pointer transition-all",style:{background:I?"rgba(249,115,22,0.06)":Q.bg,border:"1.5px solid ".concat(I?"rgba(249,115,22,0.5)":Q.border),boxShadow:I?"0 0 14px rgba(249,115,22,0.3)":Q.glow,opacity:I?.65:1},title:"synergy"===A?"Erkl\xe4rung schlie\xdfen":"Synergie-Erkl\xe4rung anzeigen",children:[(0,l.jsx)("span",{style:{position:"absolute",top:4,right:6,color:I?"#f97316":Q.color,opacity:.7},children:"synergy"===A?(0,l.jsx)(u.Z,{size:12}):(0,l.jsx)(x.Z,{size:12})}),(0,l.jsx)("p",{className:"text-[9px] font-heading font-bold uppercase tracking-wider",style:{color:ea},children:"Synergie"}),(0,l.jsx)(g.Z,{score:J.synergie_score,size:64}),(0,l.jsx)("p",{className:"text-[9px] font-heading font-bold leading-tight mt-0.5",style:{color:ea},children:I?"VERALTET":J.synergie_label})]})]}),I&&(0,l.jsxs)("button",{type:"button",onClick:en,disabled:q,className:"w-full flex items-center justify-center gap-2 px-3 py-2 rounded-xl text-xs font-heading font-bold transition-all disabled:opacity-50",style:{background:"rgba(249,115,22,0.08)",border:"1px solid rgba(249,115,22,0.4)",color:"#f97316"},children:[q?(0,l.jsx)(i.Z,{size:12,className:"animate-spin"}):(0,l.jsx)(m.Z,{size:12}),"Synergie neu pr\xfcfen - Titel hat sich ge\xe4ndert (",F.SB," Credits)"]}),W&&(0,l.jsx)("p",{className:"text-red-400 text-xs font-body text-center",children:W}),"titel"===A&&(0,l.jsxs)("div",{className:"space-y-3 animate-fade-in rounded-xl p-3 border",style:{background:"rgba(168,85,247,0.04)",borderColor:"rgba(168,85,247,0.3)"},children:[(0,l.jsxs)("div",{className:"rounded-lg px-3 py-2",style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.05)"},children:[(0,l.jsx)("span",{className:"text-[9px] font-heading font-bold uppercase tracking-wider mr-2",style:{color:"#5f5f66"},children:"Aktueller Titel"}),(0,l.jsx)("span",{className:"text-sm text-white font-body",children:E})]}),B.bewertung&&(0,l.jsx)("div",{className:"rounded-lg p-3 border",style:{background:"rgba(255,255,255,0.04)",borderColor:"rgba(255,255,255,0.08)"},children:(0,l.jsx)("p",{className:"text-xs text-[#ccc] font-body leading-relaxed",children:B.bewertung})}),(0,l.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[(0,l.jsxs)("div",{className:"rounded-lg p-3 border",style:{background:"rgba(0,255,85,0.05)",borderColor:"rgba(0,255,85,0.2)"},children:[(0,l.jsx)("h4",{className:"text-[10px] font-heading font-bold text-green-400 mb-1.5 uppercase tracking-wider",children:y.resultStaerken}),(0,l.jsx)("ul",{className:"space-y-0.5",children:B.staerken.map((e,t)=>(0,l.jsxs)("li",{className:"text-xs text-[#aaa] font-body flex gap-1.5",children:[(0,l.jsx)("span",{className:"text-green-500 shrink-0",children:"+"}),e]},t))})]}),(0,l.jsxs)("div",{className:"rounded-lg p-3 border",style:{background:"rgba(255,51,51,0.05)",borderColor:"rgba(255,51,51,0.2)"},children:[(0,l.jsx)("h4",{className:"text-[10px] font-heading font-bold text-red-400 mb-1.5 uppercase tracking-wider",children:y.resultSchwaechen}),(0,l.jsx)("ul",{className:"space-y-0.5",children:B.schwaechen.map((e,t)=>(0,l.jsxs)("li",{className:"text-xs text-[#aaa] font-body flex gap-1.5",children:[(0,l.jsx)("span",{className:"text-red-500 shrink-0",children:"−"}),e]},t))})]})]}),el.length>0&&(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsx)("p",{className:"text-[10px] font-heading font-bold uppercase tracking-wider px-1",style:{color:"#5f5f66"},children:"Alternativen"}),el.map((e,t)=>(0,l.jsxs)("div",{className:"flex items-start gap-2 rounded-lg px-3 py-2",style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.05)"},children:[(0,l.jsx)("span",{className:"text-[10px] font-bold px-1.5 py-0.5 rounded shrink-0 mt-0.5",style:{background:"rgba(255,31,110,0.15)",color:"#ff1f6e",border:"1px solid rgba(255,31,110,0.25)"},children:e.score}),(0,l.jsx)("p",{className:"text-xs text-white font-body flex-1 leading-snug",children:e.titel}),(0,l.jsxs)("div",{className:"shrink-0 flex items-center gap-1.5",children:[(0,l.jsx)("button",{type:"button",onClick:()=>X(e.titel,t),title:y.resultCopy,className:"p-1 rounded text-[#5f5f66] hover:text-[#ff1f6e] transition-colors",children:U===t?(0,l.jsx)(o.Z,{size:11,className:"text-green-400"}):(0,l.jsx)(d.Z,{size:11})}),(0,l.jsx)("button",{type:"button",onClick:()=>ee(e,t),disabled:null!==M,title:"\xdcbernehmen - Titel aktualisieren, Synergie wird veraltet",className:"w-7 h-7 rounded-full flex items-center justify-center transition-all disabled:opacity-50 disabled:cursor-not-allowed",style:{background:"rgba(34,197,94,0.12)",border:"1px solid rgba(34,197,94,0.45)",color:"#22c55e"},children:M===t?(0,l.jsx)(i.Z,{size:11,className:"animate-spin"}):(0,l.jsx)(o.Z,{size:12})})]})]},t))]}),B.kurztipp&&(0,l.jsxs)("div",{className:"rounded-lg p-3 border text-xs font-body text-yellow-200",style:{background:"rgba(247,197,0,0.06)",borderColor:"rgba(247,197,0,0.2)"},children:[(0,l.jsxs)("span",{className:"font-bold text-[#ffd000]",children:[y.resultKurztipp,": "]}),B.kurztipp]})]}),"thumb"===A&&(0,l.jsxs)("div",{className:"space-y-3 animate-fade-in rounded-xl p-3 border",style:{background:"rgba(34,197,94,0.04)",borderColor:"rgba(34,197,94,0.3)"},children:[(0,l.jsxs)("div",{className:"rounded-lg p-3 space-y-2",style:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.08)"},children:[(0,l.jsx)(b.Z,{label:"Auff\xe4lligkeit",score:r.auffaelligkeit}),(0,l.jsx)(b.Z,{label:"Klickrate",score:r.klickrate}),(0,l.jsx)(b.Z,{label:"Lesbarkeit",score:r.lesbarkeit}),(0,l.jsx)(b.Z,{label:"Kontrast",score:r.kontrast}),(0,l.jsx)(b.Z,{label:"Emotion",score:r.emotionaler_trigger})]}),r.was_funktioniert&&(0,l.jsxs)("div",{className:"rounded-lg p-3 border",style:{background:"rgba(0,255,85,0.05)",borderColor:"rgba(0,255,85,0.2)"},children:[(0,l.jsx)("h4",{className:"text-[10px] font-heading font-bold text-green-400 mb-1 uppercase tracking-wider",children:y.thumbWhatWorks}),(0,l.jsx)("p",{className:"text-xs text-[#aaa] font-body leading-relaxed",children:r.was_funktioniert})]}),r.verbesserungen&&r.verbesserungen.length>0&&(0,l.jsxs)("div",{className:"rounded-lg p-3 border",style:{background:"rgba(239,68,68,0.05)",borderColor:"rgba(239,68,68,0.2)"},children:[(0,l.jsx)("h4",{className:"text-[10px] font-heading font-bold text-red-400 mb-1.5 uppercase tracking-wider",children:y.thumbImprovements}),(0,l.jsx)("ol",{className:"space-y-1.5",children:r.verbesserungen.map((e,t)=>(0,l.jsxs)("li",{className:"flex gap-2 text-xs text-[#aaa] font-body",children:[(0,l.jsx)("span",{className:"shrink-0 w-4 h-4 rounded-full flex items-center justify-center text-[9px] font-bold",style:{background:"rgba(239,68,68,0.2)",color:"#ef4444"},children:t+1}),e]},t))})]}
1),r.kurztipp&&(0,l.jsxs)("div",{className:"rounded-lg p-3 border text-xs font-body text-yellow-200",style:{background:"rgba(247,197,0,0.06)",borderColor:"rgba(247,197,0,0.2)"},children:[(0,l.jsxs)("span",{className:"font-bold text-[#ffd000]",children:[y.resultKurztipp,": "]}),r.kurztipp]})]}),"synergy"===A&&(0,l.jsx)("div",{className:"rounded-xl overflow-hidden animate-fade-in",style:{border:"1px solid ".concat(Q.border),background:"#141414"},children:(0,l.jsxs)("div",{className:"px-4 py-3 space-y-3",children:[(0,l.jsx)("p",{className:"text-sm text-[#ccc] font-body leading-relaxed",children:J.synergie_bewertung}),(0,l.jsx)("ol",{className:"space-y-2",children:J.kombi_tipps.map((e,t)=>(0,l.jsxs)("li",{className:"flex gap-3 text-xs text-[#aaa] font-body",children:[(0,l.jsx)("span",{className:"shrink-0 w-4 h-4 rounded-full flex items-center justify-center text-[9px] font-bold",style:{background:Q.border,color:Q.color},children:t+1}),e]},t))}),J.kurztipp&&(0,l.jsxs)("div",{className:"rounded-lg p-3 border text-xs font-body text-yellow-200",style:{background:"rgba(247,197,0,0.06)",borderColor:"rgba(247,197,0,0.2)"},children:[(0,l.jsxs)("span",{className:"font-bold",children:[y.resultKurztipp,": "]}),J.kurztipp]})]})}),(0,l.jsx)(j.r,{imageUrl:c,fileOrUrl:h,analysis:r,modelTier:null!=N?N:C,defaultOpen:!1,title:E,t:y,lang:v,password:k,onResult:w,onLimitReached:S,onNewCard:$}),z.map((e,t)=>(0,l.jsx)(j.r,{imageUrl:e.imageUrl,fileOrUrl:e.imageUrl,analysis:e.analysis,modelTier:e.modelTier,prompt:e.prompt,generatedAt:e.generatedAt,defaultOpen:!0,label:"↓ KI-Ergebnis #".concat(t+1),title:E,t:y,lang:v,password:k,onResult:w,onLimitReached:S,onNewCard:$},t))]})}let B=(0,a.createContext)(null);function _(e){let{setTab:t,children:n}=e,[r,s]=(0,a.useState)(null),i=(0,a.useCallback)(e=>{s({...e,nonce:Date.now()}),t("combo")},[t]),o=(0,a.useCallback)(()=>{s(null)},[]);return(0,l.jsx)(B.Provider,{value:{setTab:t,jumpToCombo:i,comboPrefill:r,consumeComboPrefill:o},children:n})}let M=["image/jpeg","image/png","image/webp"];function O(e){var t;let{t:n,lang:r,password:s,modelTier:o,remaining:d,isLoggedIn:c=null,onLimitReached:u,onLoginRequired:x,onResult:m}=e,g=(0,a.useContext)(B),[b,f]=(0,a.useState)(""),[p,h]=(0,a.useState)(null),[y,j]=(0,a.useState)(null),[k,N]=(0,a.useState)(!1),[C,z]=(0,a.useState)("idle"),[T,D]=(0,a.useState)(null),[R,Z]=(0,a.useState)(null),[L,_]=(0,a.useState)(null),[O,U]=(0,a.useState)(null),K=(0,a.useRef)(null),I="idle"!==C&&"done"!==C;async function G(e){if(!M.includes(e.type)){U(n.errWrongFileType);return}if(e.size>8388608){U(n.errFileTooLarge);return}let t=await (0,A.T)(e);U(null),h(t);let l=new FileReader;l.onload=e=>{var t;let l=null===(t=e.target)||void 0===t?void 0:t.result,a=new Image;a.onload=()=>{let e=a.width/a.height;if(e<1.6||e>1.85){U(n.errNotSquare),h(null);return}j(l)},a.src=l},l.readAsDataURL(t)}(0,a.useEffect)(()=>{p&&y&&b?(0,v.fN)({titel:b,dataUrl:y,name:p.name,type:p.type}):(0,v.fN)(void 0)},[p,y,b]),(0,a.useEffect)(()=>{let e=!1,t=(0,v.xB)();if(null==t?void 0:t.combo)return f(t.combo.titel),(0,v.Bo)(t.combo.dataUrl,t.combo.name,t.combo.type).then(n=>{!e&&n&&(h(n),j(t.combo.dataUrl))}),()=>{e=!0}},[]);let q=(0,a.useCallback)(e=>{e.preventDefault(),N(!1);let t=e.dataTransfer.files[0];t&&G(t)},[]);async function H(e,t){z("kombi");try{let a=()=>{let n=new FormData;return n.append("titel",t.trim()),n.append("file",e),n.append("language",r),s&&n.append("password",s),n},i=await fetch("/api/analyze-synergy",{method:"POST",body:a()}),o=await i.json();if((401===i.status||"login_required"===o.error)&&(await new Promise(e=>setTimeout(e,200)),i=await fetch("/api/analyze-synergy",{method:"POST",body:a()}),o=await i.json()),429===i.status){var l;z("idle"),u(null!==(l=o.remaining)&&void 0!==l?l:0);return}if(401===i.status||"login_required"===o.error){z("idle"),x?x():u(0);return}if(500===i.status&&"server_misconfigured"===o.error){z("idle"),U("Server-Konfigurationsfehler. Bitte Admin kontaktieren.");return}if(402===i.status||"insufficient_credits"===o.error){z("idle"),u(0);return}if(!i.ok){z("idle"),U(n.errApiFailed);return}_(o.kombiResult),"number"==typeof o.remainingAnalyses&&window.dispatchEvent(new CustomEvent("credits-updated",{detail:{remaining:o.remainingAnalyses}})),m(o.remainingAnalyses,o.tier),z("done")}catch(e){z("idle"),U(n.errTimeout)}}async function W(e){if(e.preventDefault(),!b.trim()){U(n.errNoTitle);return}if(b.length>100){U(n.errTitleTooLong);return}if(!p){U(n.errNoFile);return}U(null),D(null),Z(null),_(null),z("title");let t=!1===c||null===c&&null===d,l=null!==d&&d<=0;if(t||l){setTimeout(()=>z("thumb"),700),setTimeout(()=>z("kombi"),1400),setTimeout(()=>{z("idle"),t&&x?x():u(null!=d?d:0)},2200);return}try{let e=setTimeout(()=>z("thumb"),1200),t=setTimeout(()=>z("kombi"),2400),l=()=>{let e=new FormData;return e.append("titel",b.trim()),e.append("file",p),e.append("language",r),s&&e.append("password",s),T&&e.append("existingTitelResult",JSON.stringify(T)),R&&e.append("existingThumbResult",JSON.stringify(R)),e},i=await fetch("/api/analyze-combo",{method:"POST",body:l()}),o=await i.json();if((401===i.status||"login_required"===o.error)&&(await new Promise(e=>
1setTimeout(e,300)),i=await fetch("/api/analyze-combo",{method:"POST",body:l()}),o=await i.json()),(401===i.status||"login_required"===o.error)&&(await new Promise(e=>setTimeout(e,600)),i=await fetch("/api/analyze-combo",{method:"POST",body:l()}),o=await i.json()),clearTimeout(e),clearTimeout(t),429===i.status){var a;z("idle"),u(null!==(a=o.remaining)&&void 0!==a?a:0);return}if(401===i.status||"login_required"===o.error){z("idle"),x?x():u(0);return}if(500===i.status&&"server_misconfigured"===o.error){z("idle"),U("Server-Konfigurationsfehler. Bitte Admin kontaktieren.");return}if(402===i.status||"insufficient_credits"===o.error){z("idle"),u(0);return}if(!i.ok){z("idle"),U(n.errApiFailed);return}D(o.titelResult),Z(o.thumbResult),_(o.kombiResult),"number"==typeof o.remainingAnalyses&&window.dispatchEvent(new CustomEvent("credits-updated",{detail:{remaining:o.remainingAnalyses}})),m(o.remainingAnalyses,o.tier),z("done")}catch(e){z("idle"),U(n.errTimeout)}}(0,a.useEffect)(()=>{if(!(null==g?void 0:g.comboPrefill))return;let e=g.comboPrefill,t=!1;return async function(){try{var n;let l=await (await fetch(e.imageDataUrl)).blob(),a=null!==(n=e.imageMimeType.split("/")[1])&&void 0!==n?n:"jpg",r=new File([l],"thumbnail.".concat(a),{type:e.imageMimeType});if(t)return;f(e.titel.slice(0,100)),h(r),j(e.imageDataUrl),D(e.titelResult),Z(e.thumbResult),_(null),U(null),await H(r,e.titel)}finally{t||null==g||g.consumeComboPrefill()}}(),()=>{t=!0}},[null==g?void 0:null===(t=g.comboPrefill)||void 0===t?void 0:t.nonce]);let V=100-b.length,J=(T?0:F._K)+(R?0:F.yL)+F.SB,Y=null===d||d>=J,Q=[{key:"title",label:n.comboAnalyzingTitle},{key:"thumb",label:n.comboAnalyzingThumb},{key:"kombi",label:n.comboAnalyzingKombi}],$=Q.findIndex(e=>e.key===C),X=!!b.trim()&&!!p;return(0,l.jsxs)("div",{children:[(0,l.jsxs)("form",{onSubmit:W,className:"space-y-3",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("textarea",{className:"w-full bg-[#111] border border-white/[0.08] rounded-xl px-4 py-3 text-white font-body placeholder-[#444] focus:outline-none focus:border-[#ff1f6e]/50 transition-colors resize-none text-sm",rows:2,placeholder:n.titelPlaceholder,value:b,onChange:e=>f(e.target.value.replace(/[\r\n]+/g," ").slice(0,100)),maxLength:100}),(0,l.jsxs)("div",{className:"absolute bottom-2 right-3 flex items-center gap-3",children:[(0,l.jsx)("button",{type:"button",onClick:()=>f(n.titelExample),className:"text-xs text-[#555] hover:text-[#ff1f6e] transition-colors font-body",children:n.titelExampleBtn}),(0,l.jsxs)("span",{className:"text-xs font-body",style:{color:V<20?"#ef4444":V<50?"#f97316":"#555"},children:[V," ",n.titelCharsLeft]})]})]}),y?(0,l.jsxs)("div",{className:"relative rounded-xl overflow-hidden border border-white/[0.08]",children:[(0,l.jsx)("img",{src:y,alt:"Thumbnail",className:"w-full max-h-40 object-contain bg-black"}),(0,l.jsx)("button",{type:"button",onClick:function(){h(null),j(null),K.current&&(K.current.value="")},className:"absolute top-2 right-2 p-1.5 rounded-lg bg-black/70 text-[#888] hover:text-white transition-colors",children:(0,l.jsx)(S.Z,{size:14})})]}):(0,l.jsxs)("div",{className:"border-2 border-dashed rounded-xl p-6 text-center cursor-pointer transition-all",style:{borderColor:k?"#ff1f6e":"rgba(255,255,255,0.12)",background:k?"rgba(255,31,110,0.06)":"rgba(20,20,20,0.5)"},onDragOver:e=>{e.preventDefault(),N(!0)},onDragLeave:()=>N(!1),onDrop:q,onClick:()=>{var e;return null===(e=K.current)||void 0===e?void 0:e.click()},children:[(0,l.jsx)(w.Z,{size:24,className:"mx-auto mb-2 text-[#555]"}),(0,l.jsx)("p",{className:"text-xs font-body text-[#888]",children:n.thumbDropzone}),(0,l.jsx)("p",{className:"text-xs font-body text-[#555] mt-0.5",children:n.thumbDropzoneHint}),(0,l.jsx)("input",{ref:K,type:"file",className:"hidden",accept:"image/jpeg,image/png,image/webp",onChange:e=>{var t;return(null===(t=e.target.files)||void 0===t?void 0:t[0])&&G(e.target.files[0])}})]}),O&&(0,l.jsx)("p",{className:"text-red-400 text-sm font-body",children:O}),(0,l.jsx)("button",{type:"submit",disabled:I||!X||!Y,className:"w-full py-3 rounded-xl font-heading font-bold transition-all flex items-center justify-center gap-2",style:{background:X?"linear-gradient(135deg, #ff1f6e, #c91858)":"#161616",border:X?"1px solid transparent":"1px solid rgba(255,255,255,0.1)",boxShadow:X&&!I?"0 0 20px rgba(255,31,110,0.35)":"none",cursor:
1I||!X?"not-allowed":"pointer"},children:I?(0,l.jsxs)("span",{className:"flex items-center gap-2 text-white",children:[(0,l.jsx)(i.Z,{size:16,className:"animate-spin"}),Q[Math.max(0,$)].label]}):(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsx)("span",{className:b.trim()?"animate-pulse":"",style:{color:b.trim()?"#00ff55":"#ff5b6e"},children:"Titel"}),(0,l.jsx)("span",{style:{color:X?"#fff":"#666"},children:"+"}),(0,l.jsx)("span",{className:p?"animate-pulse":"",style:{color:p?"#00ff55":"#ff5b6e"},children:"Thumbnail"}),(0,l.jsx)("span",{style:{color:X?"#fff":"#888"},children:"Kombi analysieren"}),(0,l.jsxs)("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full font-bold inline-flex items-center gap-1",style:{background:"rgba(255,255,255,0.18)",color:"#fff"},children:[(0,l.jsx)("img",{src:"/icons/landing/muenze.png",alt:"",width:11,height:11,className:"object-contain",style:{width:11,height:11}}),J]})]})}),!Y&&null!==d&&(0,l.jsx)("p",{className:"text-xs text-red-400 text-center",children:n.errNotEnoughCredits(J,d)}),!1===c&&(0,l.jsxs)("p",{className:"text-xs font-body text-center",style:{color:"#666"},children:[(0,l.jsx)("a",{href:"/login",onClick:()=>(0,v.Ae)(),className:"font-bold hover:underline",style:{color:"#ff1f6e"},children:"Kostenlos anmelden"}),": 100 Credits/Monat, Thumbnails erstellen, Kombi-Analyse, Studio-Zugang."]})]}),I&&(0,l.jsx)("div",{className:"mt-4 flex items-center justify-center gap-3",children:Q.map((e,t)=>{let n=t<$,a=t===$;return(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-body transition-all",style:{background:n?"rgba(34,197,94,0.12)":a?"rgba(255,31,110,0.15)":"rgba(255,255,255,0.04)",border:"1px solid ".concat(n?"rgba(34,197,94,0.3)":a?"rgba(255,31,110,0.3)":"rgba(255,255,255,0.06)"),color:n?"#22c55e":a?"#ff1f6e":"#555"},children:[n?(0,l.jsx)(E.Z,{size:12}):a?(0,l.jsx)(i.Z,{size:12,className:"animate-spin"}):(0,l.jsx)("span",{className:"w-3 h-3 rounded-full bg-current opacity-30"}),e.label.replace("...","")]}),t<Q.length-1&&(0,l.jsx)("span",{className:"text-[#333]",children:"→"})]},e.key)})}),T&&R&&L&&"done"===C&&(0,l.jsx)(P,{titelResult:T,thumbResult:R,kombiResult:L,imageUrl:y,title:b,originalFile:p,t:n,lang:r,password:s,initialModelTier:o,onResult:m,onLimitReached:u})]})}var U=n(17973),K=n(17814),I=n(84662),G=n(7324),q=n(81334);let H={generate:"Melde dich kostenlos an, um Thumbnails zu erstellen. Du bekommst 100 Gratis-Credits im Monat.",combo:"Melde dich kostenlos an, um die Kombi-Analyse zu nutzen. Du bekommst 100 Gratis-Credits im Monat.",generic:"Melde dich kostenlos an, um dieses Feature zu nutzen. Du bekommst 100 Gratis-Credits im Monat."};function W(e){let{open:t,onClose:n,feature:a="generic"}=e;return t?(0,l.jsx)("div",{className:"fixed inset-0 bg-black/70 flex items-center justify-center z-50",onClick:n,children:(0,l.jsxs)("div",{className:"rounded-xl p-6 max-w-md w-full mx-4",style:{background:"rgba(15,15,30,0.98)",border:"1px solid rgba(255,255,255,0.1)"},onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("h2",{className:"text-xl font-heading font-black mb-2 text-white",children:"Kostenlos anmelden"}),(0,l.jsx)("p",{className:"text-sm text-[#a1a1aa] mb-3 font-body",children:H[a]}),(0,l.jsx)("p",{className:"text-xs mb-6 font-body",style:{color:"#5f5f66"},children:"100 Credits/Monat \xb7 Thumbnails erstellen \xb7 Kombi-Analyse \xb7 Studio-Zugang"}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)("a",{href:"/login?mode=signup",onClick:()=>(0,v.Ae)(),className:"flex-1 rounded py-2 text-center text-sm font-body font-bold text-white",style:{background:"#ff1f6e"},children:"Kostenlos registrieren"}),(0,l.jsx)("a",{href:"/login",onClick:()=>(0,v.Ae)(),className:"flex-1 rounded py-2 text-center text-sm font-body font-bold transition-colors",style:{border:"1px solid rgba(255,31,110,0.5)",color:"#ff1f6e"},children:"Anmelden"})]}),(0,l.jsx)("button",{onClick:n,className:"block w-full mt-3 text-xs font-body text-[#5f5f66] hover:text-[#a1a1aa] transition-colors text-center",children:"Sp\xe4ter"})]})}):null}var V=n(26474),J=n(81822);function Y(e){let{onAccepted:t,reKonsent:n=!1,previousVersion:r=null}=e,[s,i]=(0,a.useState)(!1),[o,d]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!1),[x,m]=(0,a.useState)(null);async function g(){u(!0),m(null);let e=await fetch("/api/profile/accept-terms",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({termsAccepted:s,drittlandConsent:o})});if(!e.ok){let t=await e.json().catch(()=>({}));m((null==t?void 0:t.message)||"Speichern fehlgeschlagen."),u(!1);return}u(!1),t()}return(0,l.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",style:{background:"rgba(0,0,0,0.85)",backdropFilter:"blur(8px)"},children:(0,l.jsxs)("div",{className:"max-w-lg w-full rounded-2xl p-6",style:{background:"#161618",border:"1px solid rgba(255,255,255,0.08)"},children:[(0,l.jsx)("h2",{className:"font-heading font-black text-white mb-3",style:{fontSize:"22px"},children:"Bevor wir loslegen"}),n&&(0,l.jsxs)("div",{className:"mb-4 p-3 rounded-lg text-sm",style:{background:"rgba(255,200,0,0.1)",color:"#ffcc00",border:"1px solid rgba(255,200,0,0.2)"},children:["Wir haben unsere Bedingungen aktualisiert (von v",null!=r?r:"?"," auf v",J.E,"). Bitte erneut akzeptieren um das Tool weiter zu nutzen."]}),(0,l.jsx)("p",{className:"text-sm mb-5",style:{color:"#bbbbcc"},children:"Kurz die Spielregeln best\xe4tigen, dann geht's los."}),(0,l.jsxs)("label",{className:"flex items-start gap-3 mb-5 curs
1or-pointer",children:[(0,l.jsx)("input",{type:"checkbox",checked:s,onChange:e=>i(e.target.checked),className:"mt-1"}),(0,l.jsxs)("span",{className:"text-sm",style:{color:"#dddde5"},children:["Ich habe die"," ",(0,l.jsx)("a",{href:"/datenschutz",target:"_blank",style:{color:"#ff1f6e"},children:"Datenschutzerkl\xe4rung"})," ","und die"," ",(0,l.jsx)("a",{href:"/agb",target:"_blank",style:{color:"#ff1f6e"},children:"Nutzungsbedingungen"})," ","gelesen und stimme zu."]})]}),(0,l.jsxs)("label",{className:"flex items-start gap-3 mb-5 cursor-pointer",children:[(0,l.jsx)("input",{type:"checkbox",checked:o,onChange:e=>d(e.target.checked),className:"mt-1"}),(0,l.jsxs)("span",{className:"text-sm",style:{color:"#a1a1aa"},children:[(0,l.jsx)("strong",{style:{color:"#dddde5"},children:"Optional:"})," Ich willige ein, dass bei Nutzung der Premium-Bildgenerierung (H2) meine hochgeladenen Bilder und Prompts \xfcber den API-Vermittler LaoZhang AI mit Sitz in China verarbeitet werden. China hat kein mit der EU vergleichbares Datenschutzniveau, Beh\xf6rdenzugriffe sind m\xf6glich (Art. 49 Abs. 1 lit. a DSGVO). Ohne H\xe4kchen kannst du das Tool ganz normal mit H1 nutzen. Jederzeit widerrufbar unter Profil → Einwilligungen."]})]}),x&&(0,l.jsx)("div",{className:"text-sm mb-4 p-3 rounded-lg",style:{background:"rgba(255,80,80,0.1)",color:"#ff8080"},children:x}),(0,l.jsx)("button",{onClick:g,disabled:!s||c,className:"w-full py-3 rounded-xl font-heading font-black transition-all",style:{background:s?"#ff1f6e":"rgba(255,255,255,0.05)",color:s?"white":"#666",cursor:s&&!c?"pointer":"not-allowed"},children:c?"Speichere…":"Loslegen"})]})})}function Q(){let[e,t]=(0,a.useState)(null),[n,r]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{let e=!1;return fetch("/api/profile/consent-status").then(e=>e.ok?e.json():null).then(n=>{!e&&n&&t(n)}).catch(()=>{}),()=>{e=!0}},[]),!e||n||!e.authenticated||!(!e.accepted||!e.current))return null;let s=e.accepted&&!e.current;return(0,l.jsx)(Y,{reKonsent:s,previousVersion:e.acceptedVersion,onAccepted:()=>r(!0)})}var $=n(29631);let X=[{title:"YouTube Million\xe4rs Club",price:"0 €",line:"Die deutsche Community, die wirklich Kan\xe4le baut. Kein Geschw\xe4tz.",cta:"Kostenlos beitreten",href:"https://www.skool.com/youtubede/about",accent:"#00c8ff"},{title:"Coaching",price:"90 Tage",line:"Partnerschaft. Wir bauen deinen profitablen Kanal gemeinsam. Limitierte Pl\xe4tze.",cta:"Coaching ansehen",href:"https://organisierte-freiheit.de/coaching",accent:"#ff1f6e",badge:"Beste Ergebnisse"},{title:"Skool Premium",price:"69 $ / Mt.",line:"Schritt-f\xfcr-Schritt Fahrplan, Nischen-Goldmine, Prompts und Tools.",cta:"Premium freischalten",href:"https://www.skool.com/youtubede/plans",accent:"#ffd000"}];function ee(){let[e,t]=(0,a.useState)(!0);return e?(0,l.jsx)("div",{className:"mt-6 text-center",children:(0,l.jsxs)("button",{onClick:()=>t(!1),className:"inline-flex items-center gap-1.5 text-sm font-heading font-bold transition-colors hover:text-white",style:{color:"#a1a1aa"},children:[(0,l.jsx)("span",{style:{color:"#ff1f6e"},children:"✦"})," Produzier nicht allein. Produzier profitabel. ",(0,l.jsx)("span",{style:{color:"#5f5f66"},children:"▾"})]})}):(0,l.jsxs)("div",{className:"relative rounded-2xl mt-6 p-5 sm:p-6",style:{background:"rgba(11,11,20,0.94)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",border:"1px solid rgba(255,255,255,0.1)",boxShadow:"0 24px 60px rgba(0,0,0,0.45)"},children:[(0,l.jsx)("button",{onClick:function(){t(!0)},"aria-label":"Ausblenden",className:"absolute top-3 right-3 w-7 h-7 flex items-center justify-center rounded-lg transition-colors",style:{color:"#5f5f66",background:"rgba(255,255,255,0.04)"},children:"✕"}),(0,l.jsxs)("div",{className:"text-center mb-5",children:[(0,l.jsxs)("h3",{className:"font-heading font-black text-white",style:{fontSize:"22px",lineHeight:1.1},children:["Produzier nicht allein. ",(0,l.jsx)("span",{style:{color:"#ff1f6e"},children:"Produzier profitabel."})]}),(0,l.jsx)("p",{className:"font-body mt-2",style:{fontSize:"13px",color:"#a1a1aa"},children:"Die beste deutsche YouTube-Community."})]}),(0,l.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:X.map(e=>(0,l.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"relative flex flex-col rounded-xl p-4 transition-transform hover:-translate-y-1",style:{background:"rgba(255,255,255,0.025)",border:"1px solid ".concat(e.accent,"40"),textDecoration:"none"},children:[e.badge&&(0,l.jsx)("span",{className:"absolute -top-2 left-1/2 -translate-x-1/2 whitespace-nowrap font-heading font-bold",style:{fontSize:"9px",letterSpacing:"0.12em",textTransform:"uppercase",background:e.accent,color:"#09090b",padding:"3px 10px",borderRadius:"100px"},children:e.badge}),(0,l.jsx)("div",{className:"font-heading font-black text-white",style:{fontSize:"18px"},children:e.title}),(0,l.jsx)("div",{className:"font-heading font-black italic",style:{fontSize:"20px",color:e.accent,marginTop:"2px"},children:e.price}),(0,l.jsx)("p",{className:"font-body flex-1 mt-2",style:{fontSize:"12px",color:"#a1a1aa",lineHeight:1.45},children:e.line}),(0,l.jsxs)("div",{className:"font-heading font-bold text-center mt-3 rounded-lg py-2 transition-colors",style:{fontSize:"13px",color:e.accent,background:"".concat(e.accent,"14"),border:"1px solid ".concat(e.accent,"44")},children:[e.cta," →"]})]},e.title))})]})}let et={de:{badge:"Gratis",headline:"YouTube schauen ist ab jetzt Recherche",sub:"Die Extension zeigt dir direkt auf YouTube, welches Video \xfcberperformt. Was dich interessiert, liegt mit einem Klick in deiner Videoproduktion.",cta:"Extension holen"},en:{badge:"Free",headline:"Watching YouTube is research now",sub:"The extension shows you right on YouTube which video is outperforming. One click and it lands in your production.",cta:"Get the extension"}};function en(e){var t;let{lang:n}=e,[s,i]=(0,a.useState)(null),[o,d]=(0,a.useState)(et),c=null!==(t=o[n])&&void 0!==t?t:o.de;return((0,a.useEffect)(()=>{let e=!0;return fetch("/api/extension-link").then(e=>e.ok?e.json():null).then(t=>{e&&t&&(t.texts&&d(t.texts),t.url&&i(t.url))}).catch(()=>{}),()=>{e=!1}},[]),s)?(0,l.jsxs)("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-4 roun
1ded-xl p-4 mt-8 transition-all hover:brightness-125",style:{background:"rgba(11,11,20,0.9)",border:"1px solid rgba(0,255,85,0.22)",textDecoration:"none"},children:[(0,l.jsx)("span",{className:"shrink-0",children:(0,l.jsx)(r,{name:"funken",size:28})}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,l.jsx)("span",{className:"text-[10px] font-heading font-black px-1.5 py-0.5 rounded-full",style:{background:"rgba(0,255,85,0.14)",color:"#00ff55"},children:c.badge}),(0,l.jsx)("span",{className:"font-heading font-bold text-sm text-white",children:c.headline})]}),(0,l.jsx)("div",{className:"text-xs mt-1",style:{color:"#a1a1aa"},children:c.sub})]}),(0,l.jsxs)("span",{className:"ml-auto shrink-0 text-xs font-bold whitespace-nowrap",style:{color:"#00ff55"},children:[c.cta," →"]})]}):null}var el=n(29183);function ea(e){let{items:t,lang:n,reverse:a,speed:r}=e,s=[...t,...t];return(0,l.jsx)("div",{className:"cc-marquee-row",style:{"--cc-marquee-speed":"".concat(r,"s")},children:(0,l.jsx)("div",{className:"cc-marquee-track ".concat(a?"cc-marquee-reverse":""),children:s.map((e,t)=>(0,l.jsxs)("div",{className:"cc-marquee-card",children:[(0,l.jsx)("img",{src:(0,el.Zl)(e),alt:"",loading:t<6?"eager":"lazy",decoding:"async",draggable:!1}),e.nachbau&&(0,l.jsx)("span",{className:"cc-marquee-tag",children:e.views>0?"".concat("de"===n?"Nachbau \xb7 Original":"Recreated \xb7 original"," ").concat((0,el.rl)(e.views,n)):"de"===n?"Nachbau":"Recreated"})]},"".concat(e.id,"-").concat(t)))})})}function er(e){let{items:t,lang:n="de"}=e,a=(0,el.I3)(null!=t?t:null,el.b3),r=Math.ceil(a.length/2),s=a.slice(0,r),i=a.length-r>=4?a.slice(r):s;return(0,l.jsxs)("div",{className:"cc-marquee-backdrop","aria-hidden":!0,children:[(0,l.jsx)(ea,{items:s,lang:n,reverse:!1,speed:Math.max(48,8*s.length)}),(0,l.jsx)(ea,{items:i,lang:n,reverse:!0,speed:Math.max(56,9*i.length)})]})}var es=n(91087),ei=n(78647),eo=n(40651),ed=n(74105);let ec={H1:{icon:"/icons/rail/blitz.png",activeBg:"rgba(255,255,255,0.1)",activeColor:"#fff"},H2:{icon:"/icons/landing/funken.png",activeBg:"rgba(0,255,85,0.12)",activeColor:"#00ff55"},H3:{icon:"/icons/rail/flamme.png",activeBg:"rgba(255,140,0,0.14)",activeColor:"#ff8c00"},default:{icon:"/icons/rail/blitz.png",activeBg:"rgba(255,255,255,0.1)",activeColor:"#fff"}};function eu(e){let{initialMarquee:t}=e,[n,i]=(0,a.useState)("de");(0,a.useEffect)(()=>{i((0,I.yg)())},[]);let o=(0,a.useCallback)(e=>{i(e),(0,I.ZV)(e)},[]),[d,c]=(0,a.useState)("title"),[u,x]=(0,a.useState)(""),[m,g]=(0,a.useState)(null),[b,f]=(0,a.useState)(null),[h,y]=(0,a.useState)(()=>(0,p._2)((0,G.O)(p.aU.generate))),[j,k]=(0,a.useState)(!1),[w,S]=(0,a.useState)(!1),[C,z]=(0,a.useState)(0),[T,A]=(0,a.useState)(null),[D,E]=(0,a.useState)(!1),Z=(0,ei.t)(t),[F,L]=(0,a.useState)(null),[P,B]=(0,a.useState)(null),M=(0,K.t)(n),{slots:H}=(0,p.u3)();(0,a.useEffect)(()=>{j||0===H.length||y((0,p._2)((0,G.O)(H)))},[H,j]);let J=(0,a.useCallback)((e,t)=>{g(e),f(t)},[]),Y=(0,a.useCallback)(e=>{z(e),S(!0)},[]);(0,a.useEffect)(()=>{(0,V.e)().auth.getUser().then(e=>{let{data:t}=e;return L(!!t.user)}).catch(()=>L(!1))},[]),(0,a.useEffect)(()=>{(0,v.Qe)(d)},[d]),(0,a.useEffect)(()=>{(0,v.Ec)(h)},[h]),(0,a.useEffect)(()=>{let e=(0,v.xB)();e&&(e.tab&&c(e.tab),e.modelTier&&(y(e.modelTier),k(!0)),setTimeout(()=>(0,v.FF)(),0))},[]),(0,a.useCallback)(e=>{x(e),f("member"),g(10),S(!1),A({message:"de"===n?"✓ Freigeschaltet! 100 Credits verf\xfcgbar.":"✓ Unlocked! 100 credits available.",type:"success"})},[n]);let X=[{key:"title",label:M.tabTitle,icon:"titel"},{key:"thumbnail",label:M.tabThumbnail,icon:"thumbnail"},{key:"combo",label:M.tabCombo,icon:"kombi",badge:M.tabComboNew}];return(0,l.jsxs)(_,{setTab:c,children:[(0,l.jsx)(Q,{}),(0,l.jsx)($.default,{intensity:"subtle"}),(0,l.jsx)(er,{items:Z.marquee,lang:n}),(0,l.jsxs)("div",{className:"min-h-screen flex flex-col relative z-10",children:[(0,l.jsx)(s.Z,{lang:n,onLangChange:o,remaining:m,tier:b,t:M}),(0,l.jsxs)("main",{className:"flex-1 max-w-2xl mx-auto w-full px-4 py-8",children:[(0,l.jsxs)("div",{className:"text-center mb-10",children:[(0,l.jsxs)("h1",{className:"font-heading font-black text-4xl sm:text-5xl leading-tight",style:{letterSpacing:"-0.01em"},children:[(0,l.jsx)("span",{className:"text-white",children:"de"===n?"Geht dein Video ":"Is your video going "}),(0,l.jsx)("span",{className:"text-glow-green",style:{color:"#00ff55",textShadow:"0 0 14px rgba(0,255,85,0.95), 0 0 32px rgba(0,255,85,0.7), 0 0 60px rgba(0,255,85,0.45)"},children:"viral"})]}),(0,l.jsxs)("h2",{className:"font-heading font-black text-2xl sm:text-3xl leading-tight mt-1",style:{letterSpacing:"-0.01em"},children:[(0,l.jsx)("span",{className:"text-white",children:"de"===n?"oder wird’s ":"or will it get "}),(0,l.jsx)("span",{style:{color:"#ff1f6e"},children:"de"===n?"vergraben?":"buried?"})]})]}),(0,l.jsx)("div",{className:"flex justify-center mb-3",children:(0,l.jsx)("div",{className:"flex rounded-full p-0.5 gap-0.5",style:{background:"rgba(11,11,20,0.9)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",border:"1px solid rgba(255,255,255,0.08)"},children:(H.length>0?H:p.aU.generate).map(e=>{var t;let n=(0,p._2)(e.slot),a=h===n,r=null!==(t=ec[e.slot])&&void 0!==t?t:ec.default,s="".concat(e.slot," \xb7 ").concat(e.creditCost," Credits");return(0,l.jsxs)("button",{onClick:()=>{y(n),k(!0)},title:s,className:"flex items-center gap-1.5 px-3 py-1 rounded-full text-[11px] font-heading font-bold transition-all",style:{background:a?r.activeBg:"transparent",color:a?r.activeColor:"#5f5f66"},children:[(0,l.jsx)("img",{src:r.icon,alt:"",width:11,height:11,className:"object-contain",style:{width:11,height:11,opacity:a?1:.45}})," ",e.slot]},e.slot)})})}),(0,l.jsx)("div",{className:"flex rounded-xl p-1 mb-6",style:{background:"rgba(11,11,20,0.9)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",border:"1px solid rgba(255,255,255,0.08)"},children:X.map(e=>(0,l.jsxs)("button",{onClick:()=>c(e.key),className:"flex-1 flex items-center justify-center gap-1.5 py-2.5 rounded-lg font-heading font-bold transition-all relative",style:{fontSize:"15px",letterSpacing:"0.02em",...d===e.ke
1y?{background:"#ff1f6e",color:"#fff",boxShadow:"0 0 18px rgba(255,31,110,0.4)"}:{color:"#5f5f66"}},children:[(0,l.jsx)(r,{name:e.icon,size:17,className:d===e.key?"":"opacity-50"}),e.label,e.badge&&(0,l.jsx)("span",{className:"text-[9px] px-1.5 py-0.5 rounded-full font-bold font-body",style:{background:d===e.key?"rgba(255,255,255,0.25)":"rgba(255,31,110,0.2)",color:d===e.key?"#fff":"#ff1f6e"},children:e.badge})]},e.key))}),(0,l.jsxs)("div",{className:"rounded-2xl p-5 sm:p-6",style:{background:"rgba(11,11,20,0.94)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",border:"1px solid rgba(255,255,255,0.1)",boxShadow:"0 24px 60px rgba(0,0,0,0.45)"},children:[(0,l.jsx)("div",{style:{display:"title"===d?"block":"none"},children:(0,l.jsx)(N,{t:M,lang:n,password:u,modelTier:h,isLoggedIn:F,onLimitReached:Y,onLoginRequired:()=>B("generate"),onResult:J})}),(0,l.jsx)("div",{style:{display:"thumbnail"===d?"block":"none"},children:(0,l.jsx)(R,{t:M,lang:n,password:u,modelTier:h,isLoggedIn:F,onLimitReached:Y,onLoginRequired:()=>B("generate"),onResult:J})}),(0,l.jsx)("div",{style:{display:"combo"===d?"block":"none"},children:(0,l.jsx)(O,{t:M,lang:n,password:u,modelTier:h,remaining:m,isLoggedIn:F,onLimitReached:Y,onLoginRequired:()=>B("combo"),onResult:J})})]}),(0,l.jsxs)("p",{className:"mt-4 text-center text-xs leading-relaxed",style:{color:"#a1a1aa"},children:[ed.J[n].toolPriceLine(Z.data.creditsByTier.free,(0,eo.Ky)(Z.data))," ",(0,l.jsx)("a",{href:"/preise",className:"font-heading font-bold hover:underline whitespace-nowrap",style:{color:"#ff1f6e"},children:ed.J[n].toolPriceCta})]}),(0,l.jsx)(en,{lang:n}),(0,l.jsx)(ee,{})]}),(0,l.jsx)(es.C,{t:M,onBugReport:()=>E(!0)}),(0,l.jsx)(q.R,{open:D,onClose:()=>E(!1)}),(0,l.jsx)(W,{open:null!==P,feature:null!=P?P:"generic",onClose:()=>B(null)}),w&&(0,l.jsx)("div",{className:"fixed inset-0 flex items-center justify-center z-50",style:{background:"rgba(0,0,0,0.8)",backdropFilter:"blur(8px)"},children:(0,l.jsxs)("div",{className:"w-full max-w-sm mx-4 rounded-2xl p-6 space-y-4",style:{background:"rgba(10,10,20,0.98)",border:"1px solid rgba(255,255,255,0.1)"},children:[(0,l.jsx)("button",{onClick:()=>S(!1),className:"absolute top-4 right-4 text-[#5f5f66] hover:text-white",children:"✕"}),(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("div",{className:"flex justify-center mb-2",children:(0,l.jsx)(r,{name:"muenze",size:44})}),(0,l.jsx)("h2",{className:"font-heading font-black text-2xl text-white mb-1",children:"de"===n?"Credits aufgebraucht":"Out of credits"}),(0,l.jsx)("p",{className:"text-sm",style:{color:"#a1a1aa"},children:"de"===n?"Hol dir mehr Credits - kostenlos.":"Get more credits - for free."})]}),(0,l.jsxs)("a",{href:"https://organisierte-freiheit.de/coaching",target:"_blank",rel:"noopener",onClick:()=>S(!1),className:"flex items-center gap-3 rounded-xl p-4 transition-all",style:{background:"rgba(0,200,255,0.06)",border:"1px solid rgba(0,200,255,0.25)",textDecoration:"none"},children:[(0,l.jsx)("span",{className:"text-2xl",children:"\uD83D\uDC8E"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-heading font-bold text-sm",style:{color:"#00c8ff"},children:"1:1 VIP-Coaching"}),(0,l.jsx)("div",{className:"text-xs mt-0.5",style:{color:"#a1a1aa"},children:"de"===n?"1800 Credits/Monat + Kanal gemeinsam aufbauen":"1800 credits/month + we build your channel together"})]}),(0,l.jsx)("span",{className:"ml-auto text-xs font-bold",style:{color:"#00c8ff"},children:"→"})]}),(0,l.jsxs)("a",{href:"https://www.skool.com/youtube-millionars-klub-7610/about?ref=cd100d920c67477d9c400c2361b0a3c2",target:"_blank",rel:"noopener",onClick:()=>S(!1),className:"flex items-center gap-3 rounded-xl p-4 transition-all",style:{background:"rgba(255,208,0,0.06)",border:"1px solid rgba(255,208,0,0.25)",textDecoration:"none"},children:[(0,l.jsx)("span",{className:"text-2xl",children:"\uD83D\uDC51"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-heading font-bold text-sm",style:{color:"#ffd000"},children:"YouTube Million\xe4rs Klub"}),(0,l.jsx)("div",{className:"text-xs mt-0.5",style:{color:"#a1a1aa"},children:"de"===n?"300 Credits/Monat - kostenlos":"300 credits/month - free"})]}),(0,l.jsx)("span",{className:"ml-auto text-xs font-bold",style:{color:"#ffd000"},children:"de"===n?"GRATIS →":"FREE →"})]}),(0,l.jsxs)("a",{href:"/login",onClick:()=>{(0,v.Ae)(),S(!1)},className:"flex items-center gap-3 rounded-xl p-4 transition-all",style:{background:"rgba(255,31,110,0.06)",border:"1px solid rgba(255,31,110,0.2)",textDecoration:"none"},children:[(0,l.jsx)(r,{name:"muenze",size:26}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-heading font-bold text-sm",style:{color:"#ff1f6e"},children:"de"===n?"Kostenlos anmelden / Login":"Sign up free / Log in"}),(0,l.jsx)("div",{className:"text-xs mt-0.5",style:{color:"#a1a1aa"},children:"de"===n?"100 Credits/Monat - sofort starten":"100 credits/month - start right away"})]}),(0,l.jsx)("span",{className:"ml-auto text-xs font-bold",style:{color:"#ff1f6e"},children:"→"})]}),(0,l.jsx)("button",{onClick:()=>S(!1),className:"w-full text-xs py-2 transition-colors",style:{color:"#333"},children:"Sp\xe4ter"})]})}),T&&(0,l.jsx)(U.Z,{message:T.message,type:T.type,onClose:()=>A(null)})]})]})}},81822:function(e,t,n){"use strict";n.d(t,{E:function(){return l}});let l="2.0"}},function(e){e.O(0,[7101,9762,1888,231,4868,7322,251,3870,965,7669,1496,8354,6626,3672,7301,7478,7023,1744],function(){return e(e.s=41986)}),_N_E=e.O()}]);

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.