1import{f as re,r as d,j as e,a as F}from"./vendor-react-BPv6TnFg.js";import{u as ae,c as se,s as ie,C as I,X as S}from"./index-CjMpuxY_.js";import{T as Z}from"./triangle-alert-DciQAs-Z.js";import{S as ne}from"./search-Dx_Vf7QJ.js";import{F as le}from"./funnel-Oxh7D9tC.js";import{C as V}from"./clock-XjjXrK8y.js";import{E as W}from"./external-link-8tYDWFyC.js";import{I as _}from"./info-CmXjp3rK.js";import{C as de}from"./chevron-left-DgzP6gvr.js";import{C as oe}from"./chevron-right-D1krafTt.js";import{C as ce}from"./circle-check-N40dl5BR.js";import{R as me}from"./radar-Cej12AOM.js";import{Z as he}from"./zap-DEMO1ikr.js";import{T as O}from"./trending-up-E0ZxCj4S.js";import{A as xe}from"./arrow-right-xPl6LD6m.js";import{T as ge}from"./trending-down-Bsub037_.js";const ze=({embedded:c=!1})=>{var B;const{t:o,language:a}=ae(),{theme:r}=se(),[R,U]=re(),[y,K]=d.useState(""),[x,J]=d.useState("all"),[ue,be]=d.useState({importantNews:!0,externalConditions:!0}),[v,H]=d.useState([]),[G,X]=d.useState(!0),[z,q]=d.useState(null),[Y,Q]=d.useState("news"),g=c?Y:R.get("tab")||"news",[m,u]=d.useState({isOpen:!1,images:[],currentIndex:0,title:""}),[n,w]=d.useState(null),[h,ee]=d.useState(null);d.useEffect(()=>{L()},[]),d.useEffect(()=>{if(!c)return;const t=i=>{Q(i.detail)};return window.addEventListener("newsTabChange",t),()=>{window.removeEventListener("newsTabChange",t)}},[c]),d.useEffect(()=>{const t=i=>{const l=i.detail,p=v.find(te=>te.id===l);p&&w(p)};return window.addEventListener("openNewsById",t),()=>{window.removeEventListener("openNewsById",t)}},[v]);const L=async()=>{try{const{data:t,error:i}=await ie.from("news_items").select("*").order("date",{ascending:!1}).order("created_at",{ascending:!1});if(i)throw i;H(t||[])}catch(t){console.error("Error fetching news:",t),q("Error fetching news items")}finally{X(!1)}},j=[{title:a==="en"?"US Interest Rate Decisions":"US Zinsentscheidungen",influence:10,description:a==="en"?"The key interest rate is the rate at which banks can borrow money from the central bank and serves as a central monetary policy tool for controlling inflation, economic growth, and credit demand. An increase curbs inflation and the economy, a decrease stimulates investment and consumption.":"Der Leitzins ist der Zinssatz, zu dem sich Banken Geld von der Zentralbank leihen können, und dient als zentrales Steuerungsinstrument der Geldpolitik, um Inflation, Wirtschaftswachstum und Kreditvergabe zu beeinflussen â eine Erhöhung bremst Inflation und Wirtschaft, eine Senkung fördert Investitionen und Konsum.",impact:"high"},{title:a==="en"?"Japan Interest Rate Decisions":"Japan Zinsentscheidungen",influence:5,description:a==="en"?"Unlike US interest rate decisions, the volatility caused by Japan is difficult to assess. Especially in 2025, interest rate changes in Japan are expected to be highly volatile. So caution is advised!":"Anders als bei US Zinsentscheidungen, ist die Volatilität durch Japan sehr schwer einzuschätzen. Vor allem in 2025 sind Zinserhöhungen teils als hoch volatil einzustufen! Somit Vorsicht!",impact:"medium"},{title:a==="en"?"EU Interest Rate Decisions":"EU Zinsentscheidungen",influence:2,description:a==="en"?"Unlike US interest rate decisions, EU decisions generally have little influence on the crypto market and are therefore usually only relevant in exceptional cases for market volatility.":"Anders als bei US Zinsentscheidungen, ist die Volatilität durch die EU extrem schwach. Die EU hat generell sehr wenig Einfluss auf den Kryptomarkt und sorgt somit nur in Ausnahmefällen für Volatilität am Markt.",impact:"low"},{title:a==="en"?"US PCE Core Rate":"US PCE Kernrate",influence:7,description:a==="en"?"Price development of consumer spending in the USA, excluding volatile components like food and energy, to better reflect core inflation. It is the most important inflation indicator of the Fed and is considered an important indicator for monetary policy decisions.":"Preisentwicklung der Konsumausgaben in den USA ohne volatile Komponenten wie Lebensmittel und Energie, um die Kerninflation besser abzubilden. Es ist der wichtigste Inflationsindikator der Fed und gilt als wichtiger Indikator für geldpolitische Entscheidungen.",impact:"high"},{title:a==="en"?"World Holidays":"Weltweite Feiertage",influence:5,description:a==="en"?"On holidays, the lack of liquidity in the retail market makes it easier for the big players in the crypto market to manipulate prices, which can lead to sudden and unexpected volatility during global trading sessions.":"An Feiertagen macht die fehlende Liquidität im Retail-Markt es den groÃen Playern im Kryptomarkt leichter, die Preise zu manipulieren, was zu plötzlicher und unerwarteter Volatilität während der globalen Handelssitzungen führen kann.",impact:"medium"},{title:a==="en"?"US Initial Jobless Claims":"US Erstanträge Arbeitslosenhilfe",influence:6,description:a==="en"?"The US initial jobless claims show the number of new applications for unemployment benef
1its and serve as an early indicator of the economic situation and the labor market. Rising claims indicate an economic slowdown and falling claims indicate robust employment growth.":"Die US-Erstanträge auf Arbeitslosenhilfe zeigen die Anzahl der Neuanträge auf Arbeitslosenunterstützung und dienen als Frühindikator für die Wirtschaftslage und den Arbeitsmarkt. Steigende Anträge deuten auf eine Wirtschaftsabschwächung und fallende Anträge auf robustes Beschäftigungswachstum hin.",impact:"medium"},{title:a==="en"?"Global Gross Domestic Products (GDP)":"Globales Bruttoinlandsprodukt (BIP)",influence:4,description:a==="en"?"The Gross Domestic Product (GDP) measures the total economic value of all goods and services produced in a country within a specific period and is a central metric for economic performance, prosperity, and comparison between countries.":"Das Bruttoinlandsprodukt (BIP) misst den gesamten wirtschaftlichen Wert aller in einem Land produzierten Güter und Dienstleistungen innerhalb eines bestimmten Zeitraums und ist eine zentrale Kennzahl für Wirtschaftsleistung, Wohlstand und Ländervergleich.",impact:"medium"},{title:a==="en"?"US Consumer Price Index (CPI)":"US Verbraucherpreisindex (VPI)",influence:6,description:a==="en"?"The US Consumer Price Index (CPI) measures the average price change of a basket of goods and services and serves as a central inflation indicator showing how much the cost of living is increasing or falling, and thus influences the Fed's interest rate policy.":"Der US-Verbraucherpreisindex (VPI) misst die durchschnittliche Preisänderung eines Warenkorbs und dient als zentraler Inflationsindikator, der zeigt, wie stark die Lebenshaltungskosten steigen oder fallen, und beeinflusst damit die Zinspolitik der Fed.",impact:"high"},{title:a==="en"?"EU Consumer Price Index (CPI)":"EU Verbraucherpreisindex (VPI)",influence:2,description:a==="en"?"Unlike the US CPI, EU volatility is generally weak. The EU generally has little influence on the crypto market and is therefore only relevant in exceptional cases for market volatility.":"Anders als beim US-VPI ist die Volatilität durch die EU generell schwach. Die EU hat generell wenig Einfluss auf den Kryptomarkt und ist daher nur in Ausnahmefällen für die Marktvolatilität relevant.",impact:"low"},{title:a==="en"?"US JOLTS Job Openings":"US JOLTS Stellenangebote",influence:4,description:a==="en"?"The JOLTS job openings measure the number of vacant, unfilled jobs in the US and serve as an important indicator of labor market dynamics. A high number indicates a robust labor market and a low number indicates an economic slowdown and hiring restraint.":"Die JOLTS-Stellenangebote messen die Anzahl der vakanten, unbesetzten Stellen in den USA und dienen als wichtiger Indikator für die Arbeitsmarktdynamik. Eine hohe Zahl deutet auf einen robusten Arbeitsmarkt und eine niedrige Zahl auf eine Wirtschaftsabschwächung und Einstellungszurückhaltung hin.",impact:"medium"},{title:a==="en"?"US ADP Employment Change":"US ADP Beschäftigungsänderung",influence:6,description:a==="en"?"The ADP Employment Change shows monthly changes in private employment in the US and gives an early indication of labor market trends, with rising numbers signaling economic expansion and falling numbers indicating a slowdown.":"Die ADP-Beschäftigungsänderung zeigt monatliche Veränderungen der privaten Beschäftigung in den USA und gibt einen frühen Hinweis auf Arbeitsmarkttrends, wobei steigende Zahlen auf Wirtschaftsexpansion und fallende Zahlen auf Abschwächung hindeuten.",impact:"high"},{title:a==="en"?"US Unemployment Rate":"US Arbeitslosenquote",influence:8,description:a==="en"?"US unemployment figures show changes in unemployment outside the agricultural sector and are a central indicator for economic development, with rising numbers indicating economic slowdown and falling numbers suggesting economic growth.":"Die US-Arbeitslosenzahlen zeigen Veränderungen der Arbeitslosigkeit auÃerhalb des Agrarsektors und sind ein zentraler Indikator für die Wirtschaftsentwicklung, wobei steigende Zahlen auf Wirtschaftsabschwächung und fallende Zahlen auf Wirtschaftswachstum hindeuten.",impact:"high"},{title:a==="en"?"US FOMC Meeting Minutes":"US FOMC Sitzungsprotokolle",influence:5,description:a==="en"?"The FOMC meeting minutes provide detailed insights into the Federal Reserve's discussions about interest rates, inflation, and economic growth and often contain market-relevant clues about possible future monetary policy decisions.":"Die FOMC-Sitzungsprotokolle geben detaillierte Einblicke in die Diskussionen der Federal Reserve über Zinsen, Inflation und Wirtschaftswachstum und enthalten oft marktrelevante Hinweise auf mögliche künftige geldpolitische Entscheidungen.",impact:"medium"}];[...j].sort((t,i)=>i.influence-t.influence),Math.max(...j.map(t=>t.influence));const N=t=>t<=2?"from-green-400 to-green-600":t<=6?"from-[#1A1714] to-[#2A2520]":"from-red-400 to-red-600",b=j.filter(t=>{const i=t.title.toLowerCase().includes(y.toLowerCase()),l=x==="all"||t.impact===x;return i&&l}),f=v.filter(t=>{const i=a==="de"?t.title_de:t.title_en,l=i==null?void 0:i.toLowerCase().includes(y.toLowerCase()),p=x==="all"||t.impact.toLowerCase()===x;return l&&p}),P=(t,i,l)=>{u({isOpen:!0,images:t,currentIndex:i,title:l})},k=()=>{u({isOpen:!1,images:[],currentIndex:0,title:""})},D=()=>{u(t=>({...t,currentIndex:(t.currentIndex+1)%t.images.length}))},M=()=>{u(t=>({...t,currentIndex:t.currentIndex===0?t.images.length-1:t.currentIndex-1}))},T=t=>{m.isOpen&&(t.key==="Escape"?k():t.key==="ArrowRight"?D():t.key==="ArrowLeft"&&M())};d.useEffect(()=>(document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)),[m.isOpen]);const s=t=>{switch(t.toLowerCase()){case"high":return{bg:"bg-gradient-to-r from-red-500/20 to-red-600/10",border:"border-red-500/20",text:"text-red-500",icon:e.jsx(I,{className:"h-4 w-4 mr-1"})};case"medium":return{bg:"bg-gradient-to-r from-[#1A1714] to-[#2A2520]",border:"border-[#2A2520]",text:"text-yellow-500",icon:e.jsx(Z,{className:"h-4 w-4 mr-1"})};case"low":return{bg:"bg-gradient-to-r from-green-500/20 to-green-600/10",border:"border-green-500/20",text:"text-green-500",icon:e.jsx(ce,{className:"h-4 w-4 mr-1"})};default:return{bg:"bg-gradient-to-r from-gray-500/20 to-gray-600/10",border:"border-gray-500/20",text:"text-gray-500",icon:e.jsx(_,{className:"h-4 w-4 mr-1"})}}},A=t=>{switch(t==null?void 0:t.toLowerCase()){case"bullish":return e.jsx(O,{className:"h-5 w-5 mr-2 text-green-500"});case"bearish":return e.jsx(ge,{className:"h-5 w-5 mr-2 text-red-500"});default:return e.jsx(xe,{className:"h-5 w-5 mr-2 text-gray-400"})}},$=t=>{switch(t==null?void 0:t.toLowerCase()){case"bullish":return"text-green-500 bg-green-500/10 border-green-500/20";case"bearish":return"text-red-500 bg-red-500/10 border-red-500/20";default:return"text-gray-500 bg-gray-500/10 border-gray-500/20"}},C=(t=0,i=0)=>e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-6",children:[e.jsxs("div",{className:"".concat(r==="dark"?"bg-white/5":"bg-white"," backdrop-blur-sm rounded-xl p-4 border ").concat(r==="dark"?"border-white/10":"border-gray-200"),children:[e.jsxs("div",{className:"flex flex-col items-start mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(me,{className:"h-4 w-4 text-amber-400 mr-2"}),e.jsx("span",{className:"text-sm font-medium ".concat(r==="dark"?"text-gray-200":"text-gray-700"),children:a==="de"?"Wahrscheinlichkeit":"Probability"})]}),e.jsxs("span",{className:"mt-1 text-sm font-semibold bg-gradient-to-r from-[#C9A96E] to-[#C9A96E] bg-clip-text text-transparent",children:[t,"%"]})]}),e.jsx("div",{className:"h-3 ".concat(r==="dark"?"bg-[#1A1714]/50":"bg-gray-100"," rounded-full overflow-hidden backdrop-blur-sm"),children:e.jsx("div",{className:"h-full bg-gradient-to-r from-[#C9A96E] to-[#C9A96E] rounded-full transition-all duration-700 ease-out",style:{width:"".concat(t,"%"),boxShadow:"0 0 10px rgba(153,125,65,0.4)"}})})]}),e.jsxs("div",{className:"".concat(r==="dark"?"bg-white/5":"bg-white"," backdrop-blur-sm rounded-xl p-4 border ").concat(r==="dark"?"border-white/10":"border-gray-200"),children:[e.jsxs("div",{className:"flex flex-col items-start mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(he,{className:"h-4 w-4 text-amber-400 mr-2"}),e.jsx("span",{className:"text-sm font-medium ".concat(r==="dark"?"text-gray-200":"text-gray-700"),children:a==="de"?"Stärke des Impacts":"Strength of Impact"})]}),e.jsxs("span",{className:"mt-1 text-sm font-semibold bg-gradient-to-r from-[#C9A96E] to-[#C9A96E] bg-clip-text text-transparent",children:[i,"%"]})]}),e.jsx("div",{className:"h-3 ".concat(r==="dark"?"bg-[#1A1714]/50":"bg-gray-100"," rounded-full overflow-hidden backdrop-blur-sm"),children:e.jsx("div",{className:"h-full bg-gradient-to-r from-[#C9A96E] to-[#C9A96E] rounded-full transition-all duration-700 ease-out",style:{width:"".concat(i,"%"),boxShadow:"0 0 10px rgba(153,125,65,0.4)"}})})]})]}),E=(t=[])=>e.jsxs("div",{className:"mt-6",children:[e.jsxs("div",{className:"flex items-center mb-3",children:[e.jsx(O,{className:"h-4 w-4 text-teal-400 mr-2"}),e.jsx("span",{className:"text-sm font-medium ".concat(r==="dark"?"text-gray-200":"text-gray-700"),children:a==="de"?"Betroffene Märkte":"Affected Markets"})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.map((i,l)=>e.jsx("span",{className:"px-3 py-1.5 bg-gradient-to-r from-teal-500/10 to-teal-600/5 border border-teal-500/20 rounded-lg text-sm text-teal-400 font-medium",children:i},l))})]});return G?e.jsxs("div",{className:"min-h-screen ".concat(r==="dark"?"bg-[#080C17]":"bg-gray-50"," p-6 flex items-center justify-center"),children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsxs("div",{className:"relative h-16 w-16",children:[e.jsx("div",{className:"absolute inset-0 rounded-full border-t-2 border-r-2 border-[#C9A96E] animate-spin"}),e.jsx("div",{className:"absolute inset-2 rounded-full border-t-2 border-r-2 border-[#C9A96E] animate-spin-slow"}),e.jsx("div",{className:"absolute inset-4 rounded-full border-t-2 border-r-2 border-teal-500 animate-spin-slower"})]}),e.jsx("div",{className:"mt-4 ".concat(r==="dark"?"text-gray-400":"text-gray-600"),children:"Loading market intelligence..."})]}),e.jsx("style",{children:"\n @keyframes spin-slow {\n to { transform: rotate(360deg); }\n }\n @keyframes spin-slower {\n to { transform: rotate(-360deg); }\n }\n .animate-spin-slow {\n animation: spin-slow 2s linear infinite;\n }\n .animate-spin-slower {\n animation: spin-slower 3s linear infinite;\n }\n "})]}):z?e.jsx("div",{className:"min-h-screen ".concat(r==="dark"?"bg-[#080C17]":"bg-gray-50"," p-6 flex items-center justify-center"),children:e.jsxs("div",{className:"max-w-md w-full backdrop-blur-md ".concat(r==="dark"?"bg-red-900/10 border-red-500/20":"bg-white border-red-200"," border rounded-xl p-6 shadow-lg"),children:[e.jsxs("div",{className:"flex items-center mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-red-500/20 flex items-center justify-center mr-4",children:e.jsx(Z,{className:"h-6 w-6 text-red-500"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold ".concat(r==="dark"?"text-white":"text-gray-900"),children:"Error"}),e.jsx("p",{className:"text-red-400",children:z})]})]}),e.jsx("button",{onClick:()=>L(),className:"w-full mt-4 py-2 bg-gradient-to-r from-red-600 to-red-700 text-white rounded-lg hover:from-red-700 hover:to-red-800 transition-all duration-300",children:"Retry"})]})}):e.jsxs("div",{className:c?"":"min-h-screen ".concat(r==="dark"?"bg-gradient-to-b from-[#080C17] to-[#0B1120]":"bg-gradient-to-b from-gray-50 to-white"),children:[!c&&e.jsx("div",{className:"h-20"}),e.jsxs("div",{className:c?"space-y-6":"max-w-[1800px] mx-auto px-4 md:px-6 pb-10 relative z-10",children:[!c&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"rounded-2xl p-8 mb-8 border relative overflow-hidden ".concat(r==="dark"?"bg-gradient-to-br from-[#101522] to-[#0A0A0A] border-gray-800/30":"bg-gradient-to-br from-white to-gray-100 border-gray-200"),children:[e.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 roun
1ded-full blur-3xl bg-transparent"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-96 h-96 rounded-full blur-3xl bg-transparent"}),e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{className:"inline-block w-8 h-0.5 bg-gradient-to-r from-[#C9A96E]/60 via-[#C9A96E]/70 to-[#C9A96E]/80 mr-3"}),e.jsx("span",{className:"text-sm font-semibold tracking-wider text-amber-400 uppercase",children:"Market Intelligence"})]}),e.jsxs("div",{className:"flex items-center space-x-1 p-1 bg-white/5 backdrop-blur-md rounded-xl border border-gray-200 dark:border-white/10",children:[e.jsx("button",{onClick:()=>U({tab:"news"}),className:"px-3 sm:px-4 py-1 rounded-lg transition-all duration-300 text-xs sm:text-sm ".concat(g==="news"?"bg-gradient-to-r from-[#C9A96E] to-[#C9A96E] text-white shadow-lg":"text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white hover:bg-white/5"),children:a==="de"?"Wichtige Nachrichten":"Important News"}),e.jsx("button",{onClick:()=>U({tab:"conditions"}),className:"px-3 sm:px-4 py-1 rounded-lg transition-all duration-300 text-xs sm:text-sm ".concat(g==="conditions"?"bg-gradient-to-r from-[#C9A96E] to-[#C9A96E] text-white shadow-lg":"text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white hover:bg-white/5"),children:a==="de"?"Externe Bedingungen":"External Conditions"})]})]}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold ".concat(r==="dark"?"text-white":"text-gray-900"," mb-4"),children:o("news.title")}),e.jsx("p",{className:"".concat(r==="dark"?"text-gray-300":"text-gray-600"," max-w-3xl"),children:o("news.subtitle")})]})]}),e.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center mt-6",children:[e.jsx("div",{className:"mb-4 md:mb-0"}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-3",children:[e.jsxs("div",{className:"relative w-full sm:w-auto",children:[e.jsx("div",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400",children:e.jsx(ne,{size:16})}),e.jsx("input",{type:"text",placeholder:a==="de"?"Suchen...":"Search...",className:"py-2 pl-10 pr-4 ".concat(r==="dark"?"bg-white/5 border-white/10 text-white":"bg-white border-gray-200 text-gray-900"," backdrop-blur-md border rounded-lg focus:outline-none focus:ring-2 focus:ring-[#C9A96E] focus:border-transparent w-full md:w-64 transition-all duration-300"),value:y,onChange:t=>K(t.target.value)})]}),e.jsxs("div",{className:"relative w-full sm:w-auto",children:[e.jsxs("select",{className:"appearance-none py-2 pl-4 pr-10 ".concat(r==="dark"?"bg-white/5 border-white/10 text-white":"bg-white border-gray-200 text-gray-900"," backdrop-blur-md border rounded-lg focus:outline-none focus:ring-2 focus:ring-[#C9A96E] focus:border-transparent transition-all duration-300 w-full"),value:x,onChange:t=>J(t.target.value),children:[e.jsx("option",{value:"all",children:o("news.allImpacts")}),e.jsx("option",{value:"high",children:o("news.highImpact")}),e.jsx("option",{value:"medium",children:o("news.mediumImpact")}),e.jsx("option",{value:"low",children:o("news.lowImpact")})]}),e.jsx(le,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400",size:16})]})]})]})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[e.jsx("div",{className:"absolute right-0 top-20 w-72 h-72 ".concat(r==="dark"?"bg-gradient-to-br from-[#C9A96E]/5 to-[#C9A96E]/10":"bg-gradient-to-br from-[#C9A96E]/5 to-[#C9A96E]/5"," rounded-full filter blur-3xl")}),e.jsx("div",{className:"absolute left-1/4 bottom-1/3 w-96 h-96 ".concat(r==="dark"?"bg-gradient-to-br from-teal-500/5 to-[#C9A96E]/10":"bg-gradient-to-br from-teal-500/5 to-[#C9A96E]/5"," rounded-full filter blur-3xl")}),e.jsx("div",{className:"absolute -bottom-20 -right-20 w-80 h-80 bg-gradient-to-br from-[#C9A96E]/5 to-[#2A2520] rounded-full filter blur-3xl"})]}),g==="news"&&e.jsx("div",{className:"relative z-10",children:c?e.jsx("div",{className:"rounded-2xl shadow-xl transition-all duration-300 bg-gradient-to-br from-white to-[#0A0A0A] dark:from-[#1A1714] dark:to-[#1A1714] hover:from-[#0A0A0A] hover:to-white dark:hover:from-[#1A1714] dark:hover:to-[#1A1714] border border-[#2A2520] dark:border-[#2A2520] shadow-[0_4px_16px_rgba(153,125,65,0.12)] hover:shadow-[0_8px_32px_rgba(153,125,65,0.18)] p-6",children:e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:f.length>0?f.map((t,i)=>e.jsx("div",{className:"group relative overflow-hidden ".concat(c?"bg-gradient-to-r from-[#C9A96E]/60 via-[#C9A96E]/70 to-[#C9A96E]/80 p-[2px] rounded-lg cursor-pointer hover:scale-[1.02] transition-transform shadow-lg dark:shadow-none":"backdrop-blur-lg ".concat(r==="dark"?"bg-gradient-to-br from-white/[0.07] to-white/[0.02] border-white/10":"bg-white border-gray-200"," border rounded-xl transition-all duration-500 hover:border-[#C9A96E]/20 hover:shadow-xl hover:shadow-[#C9A96E]/15 hover:-translate-y-1")),style:c?{}:{animation:"fadeIn 0.6s ease-out forwards ".concat(i*.1,"s"),opacity:0}
1,children:c?e.jsxs("div",{className:"bg-white dark:bg-[#1A1714] rounded-lg flex flex-col h-full cursor-pointer border border-transparent dark:border-[#2A2520]",onClick:()=>w(t),children:[t.image_url&&e.jsxs("div",{className:"relative w-full",style:{paddingTop:"56.25%"},children:[e.jsx("img",{src:t.image_url,alt:a==="de"?t.title_de:t.title_en,className:"absolute inset-0 w-full h-full object-cover rounded-t-lg",onError:l=>{l.target.style.display="none"}}),t.images&&t.images.length>1&&e.jsxs("div",{className:"absolute bottom-2 right-2 bg-black bg-opacity-60 text-white text-xs px-2 py-1 rounded",children:["+",t.images.length-1," ",a==="en"?"more":"mehr"]})]}),e.jsxs("div",{className:"p-3 sm:p-4 flex flex-col flex-grow",children:[e.jsx("div",{className:"flex items-start justify-between mb-2",children:e.jsx("h3",{className:"text-sm sm:text-base font-semibold ".concat(r==="dark"?"text-white":"text-gray-900"," line-clamp-2 flex-grow"),children:a==="de"?t.title_de:t.title_en})}),e.jsx("p",{className:"text-xs sm:text-sm ".concat(r==="dark"?"text-gray-400":"text-gray-600"," line-clamp-3 mb-2 flex-grow"),children:a==="de"?t.description_de:t.description_en}),e.jsxs("div",{className:"flex items-center justify-between mt-auto",children:[e.jsxs("div",{className:"flex items-center px-2 py-0.5 rounded-lg text-xs font-medium ".concat(s(t.impact).bg," ").concat(s(t.impact).text," border ").concat(s(t.impact).border),children:[s(t.impact).icon,o("news.".concat(t.impact.toLowerCase(),"Impact"))]}),e.jsx("span",{className:"text-xs bg-transparent dark:bg-transparent text-[#C9A96E] dark:text-amber-400 px-1.5 sm:px-2 py-0.5 sm:py-1 rounded",children:new Date(t.date).toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"})})]})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#C9A96E]/5 via-[#C9A96E]/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),e.jsxs("div",{className:"px-6 pt-6 pb-4 border-b ".concat(r==="dark"?"border-white/5":"border-gray-100"," relative"),children:[e.jsx("div",{className:"absolute top-0 right-0 h-16 w-16",children:e.jsx("div",{className:"absolute top-0 right-0 w-full h-full overflow-hidden rounded-br-xl",style:{clipPath:"polygon(100% 0, 0% 0, 100% 100%)"},children:e.jsx("div",{className:"w-full h-full ".concat(s(t.impact).bg)})})}),e.jsx("h3",{className:"text-xl font-bold ".concat(r==="dark"?"text-white":"text-gray-900"," mb-2 pr-16"),children:a==="de"?t.title_de:t.title_en}),e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsxs("div",{className:"flex items-center px-3 py-1 rounded-lg text-xs font-medium ".concat(s(t.impact).bg," ").concat(s(t.impact).text," border ").concat(s(t.impact).border),children:[s(t.impact).icon,o("news.".concat(t.impact.toLowerCase(),"Impact"))]}),e.jsxs("div",{className:"flex items-center text-gray-400 text-xs",children:[e.jsx(V,{className:"h-3 w-3 mr-1"}),new Date(t.date).toLocaleDateString()]})]})]}),e.jsxs("div",{className:"p-6",children:[t.image_url&&e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"relative cursor-pointer group inline-block",onClick:()=>{const l=t.images&&t.images.length>0?t.images:[t.image_url];P(l,0,a==="de"?t.title_de:t.title_en)},children:[e.jsx("img",{src:t.image_url,alt:a==="de"?t.title_de:t.title_en,className:"w-64 h-40 object-cover rounded border border-gray-200 dark:border-gray-700 transition-transform duration-200 group-hover:scale-105",onError:l=>{l.target.style.display="none"}}),e.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-0 group-hover:bg-opacity-20 transition-all duration-200 rounded flex items-center justify-center",children:e.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 bg-white bg-opacity-90 rounded-full p-1",children:e.jsx(W,{className:"w-3 h-3 text-gray-700"})})}),t.images&&t.images.length>1&&e.jsxs("div",{className:"absolute top-1 right-1 bg-black bg-opacity-60 text-white text-xs px-1 py-0.5 rounded-full",children:["+",t.images.length-1]})]})}),e.jsx("div",{className:"".concat(r==="dark"?"text-gray-300":"text-gray-600"," text-sm leading-relaxed mb-6 whitespace-pre-wrap"),children:a==="de"?t.description_de:t.description_en}),e.jsx("div",{className:"flex items-center mb-5",children:e.jsxs("div",{className:"flex items-center px-3 py-2 rounded-lg text-sm font-medium border ".concat($(t.direction)),children:[A(t.direction),e.jsx("span",{children:t.direction||"Neutral"})]})}),C(t.probability,t.strength),t.affected_markets&&t.affected_markets.length>0&&E(t.affected_markets)]})]})},t.id)):e.jsx("div",{className:"col-span-full flex items-center justify-center p-12 text-center",children:e.jsxs("div",{children:[e.jsx(I,{className:"h-12 w-12 text-amber-400 mx-auto mb-3"}),e.jsx("h3",{className:"text-lg font-semibold ".concat(r==="dark"?"text-white":"text-gray-900"," mb-2"),children:a==="de"?"Keine Nachrichten gefunden":"No news items found"})]})})})}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:f.length>0?f.map((t,i)=>e.jsxs("div",{className:"group relative overflow-hidden backdrop-blur-lg ".concat(r==="dark"?"bg-gradient-to-br from-white/[0.07] to-white/[0.02] border-white/10":"bg-white border-gray-200"," border rounded-xl transition-all duration-500 hover:border-[#C9A96E]/20 hover:shadow-xl hover:shadow-[#C9A96E]/15 hover:-translate-y-1"),style:{animation:"fadeIn 0.6s ease-out forwards ".concat(i*.1,"s"),opacity:0}
1,children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#C9A96E]/5 via-[#C9A96E]/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),e.jsxs("div",{className:"px-6 pt-6 pb-4 border-b ".concat(r==="dark"?"border-white/5":"border-gray-100"," relative"),children:[e.jsx("div",{className:"absolute top-0 right-0 h-16 w-16",children:e.jsx("div",{className:"absolute top-0 right-0 w-full h-full overflow-hidden rounded-br-xl",style:{clipPath:"polygon(100% 0, 0% 0, 100% 100%)"},children:e.jsx("div",{className:"w-full h-full ".concat(s(t.impact).bg)})})}),e.jsx("h3",{className:"text-xl font-bold ".concat(r==="dark"?"text-white":"text-gray-900"," mb-2 pr-16"),children:a==="de"?t.title_de:t.title_en}),e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsxs("div",{className:"flex items-center px-3 py-1 rounded-lg text-xs font-medium ".concat(s(t.impact).bg," ").concat(s(t.impact).text," border ").concat(s(t.impact).border),children:[s(t.impact).icon,o("news.".concat(t.impact.toLowerCase(),"Impact"))]}),e.jsxs("div",{className:"flex items-center text-gray-400 text-xs",children:[e.jsx(V,{className:"h-3 w-3 mr-1"}),new Date(t.date).toLocaleDateString()]})]})]}),e.jsxs("div",{className:"p-6",children:[t.image_url&&e.jsx("div",{className:"mb-4",children:e.jsxs("div",{className:"relative cursor-pointer group inline-block",onClick:()=>{const l=t.images&&t.images.length>0?t.images:[t.image_url];P(l,0,a==="de"?t.title_de:t.title_en)},children:[e.jsx("img",{src:t.image_url,alt:a==="de"?t.title_de:t.title_en,className:"w-64 h-40 object-cover rounded border border-gray-200 dark:border-gray-700 transition-transform duration-200 group-hover:scale-105",onError:l=>{l.target.style.display="none"}}),e.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-0 group-hover:bg-opacity-20 transition-all duration-200 rounded flex items-center justify-center",children:e.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 bg-white bg-opacity-90 rounded-full p-1",children:e.jsx(W,{className:"w-3 h-3 text-gray-700"})})}),t.images&&t.images.length>1&&e.jsxs("div",{className:"absolute top-1 right-1 bg-black bg-opacity-60 text-white text-xs px-1 py-0.5 rounded-full",children:["+",t.images.length-1]})]})}),e.jsx("div",{className:"".concat(r==="dark"?"text-gray-300":"text-gray-600"," text-sm leading-relaxed mb-6 whitespace-pre-wrap"),children:a==="de"?t.description_de:t.description_en}),e.jsx("div",{className:"flex items-center mb-5",children:e.jsxs("div",{className:"flex items-center px-3 py-2 rounded-lg text-sm font-medium border ".concat($(t.direction)),children:[A(t.direction),e.jsx("span",{children:t.direction||"Neutral"})]})}),C(t.probability,t.strength),t.affected_markets&&t.affected_markets.length>0&&E(t.affected_markets)]})]},t.id)):e.jsx("div",{className:"col-span-full flex items-center justify-center p-12 backdrop-blur-md ".concat(r==="dark"?"bg-white/5 border-white/10":"bg-white border-gray-200"," border rounded-xl"),children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-transparent mb-4",children:e.jsx(I,{className:"h-8 w-8 text-amber-400"})}),e.jsx("h3",{className:"text-xl font-semibold ".concat(r==="dark"?"text-white":"text-gray-900"," mb-2"),children:a==="de"?"Keine Nachrichten gefunden":"No news items found"}),e.jsx("p",{className:r==="dark"?"text-gray-400":"text-gray-600",children:a==="de"?"Versuchen Sie die Filter anzupassen":"Try adjusting your filters"})]})})})}),g==="conditions"&&e.jsx("div",{className:"relative z-10",children:c?e.jsx("div",{className:"rounded-2xl shadow-xl transition-all duration-300 bg-gradient-to-br from-white to-[#0A0A0A] dark:from-[#1A1714] dark:to-[#1A1714] hover:from-[#0A0A0A] hover:to-white dark:hover:from-[#1A1714] dark:hover:to-[#1A1714] border border-[#2A2520] dark:border-[#2A2520] shadow-[0_4px_16px_rgba(153,125,65,0.12)] hover:shadow-[0_8px_32px_rgba(153,125,65,0.18)] p-6",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[b.map((t,i)=>e.jsxs("div",{className:"group relative backdrop-blur-md ".concat(r==="dark"?"bg-gradient-to-br from-white/[0.07] to-white/[0.02] border-white/10":"bg-white border-gray-200"," border rounded-xl transition-all duration-500 hover:border-[#C9A96E]/20 hover:shadow-xl hover:shadow-[#C9A96E]/15 hover:-translate-y-1 overflow-hidden"),style:{animation:"fadeIn 0.6s ease-out forwards ".concat(i*.1,"s"),opacity:0}
1,children:[e.jsx("div",{className:"h-1 w-full ".concat(s(t.impact).bg)}),e.jsxs("div",{className:"p-6 relative",children:[e.jsxs("div",{className:"flex justify-between mb-4",children:[e.jsxs("div",{className:"px-3 py-1 rounded-full text-xs font-medium flex items-center ".concat(s(t.impact).bg," ").concat(s(t.impact).text," border ").concat(s(t.impact).border),children:[s(t.impact).icon,o("news.".concat(t.impact,"Impact"))]}),e.jsx("div",{className:"w-10 h-10 rounded-full ".concat(s(t.impact).bg," border ").concat(s(t.impact).border," flex items-center justify-center"),children:e.jsx("span",{className:"text-lg font-bold ".concat(s(t.impact).text),children:t.influence})})]}),e.jsx("h3",{className:"text-xl font-bold ".concat(r==="dark"?"text-white":"text-gray-900"," mb-3"),children:t.title}),e.jsxs("div",{className:"mb-6",children:[e.jsx("div",{className:"text-xs ".concat(r==="dark"?"text-gray-400":"text-gray-600"," mb-1"),children:a==="de"?"Einfluss auf den Markt":"Market Influence"}),e.jsx("div",{className:"h-2 ".concat(r==="dark"?"bg-[#1A1714]/50":"bg-gray-100"," rounded-full overflow-hidden"),children:e.jsx("div",{className:"h-full rounded-full bg-gradient-to-r ".concat(N(t.influence)),style:{width:"".concat(t.influence/10*100,"%"),transition:"width 1s cubic-bezier(0.65, 0, 0.35, 1)",boxShadow:t.influence>7?"0 0 8px rgba(239, 68, 68, 0.5)":""}})}),e.jsxs("div",{className:"mt-1 flex justify-between text-xs ".concat(r==="dark"?"text-gray-500":"text-gray-400"),children:[e.jsx("span",{children:a==="de"?"Niedrig":"Low"}),e.jsx("span",{children:a==="de"?"Mittel":"Medium"}),e.jsx("span",{children:a==="de"?"Hoch":"High"})]})]}),e.jsx("div",{className:"mb-4",children:e.jsx("div",{className:"".concat(r==="dark"?"text-gray-300":"text-gray-600"," text-sm leading-relaxed whitespace-pre-wrap"),children:t.description})})]})]},i)),b.length===0&&e.jsx("div",{className:"col-span-full flex items-center justify-center p-12 text-center",children:e.jsxs("div",{children:[e.jsx(_,{className:"h-12 w-12 text-amber-400 mx-auto mb-3"}),e.jsx("h3",{className:"text-lg font-semibold ".concat(r==="dark"?"text-white":"text-gray-900"," mb-2"),children:a==="de"?"Keine Bedingungen gefunden":"No conditions found"})]})})]})}):e.jsxs(e.Fragment,{children:[b.map((t,i)=>e.jsxs("div",{className:"group relative backdrop-blur-md ".concat(r==="dark"?"bg-gradient-to-br from-white/[0.07] to-white/[0.02] border-white/10":"bg-white border-gray-200"," border rounded-xl transition-all duration-500 hover:border-[#C9A96E]/20 hover:shadow-xl hover:shadow-[#C9A96E]/15 hover:-translate-y-1 overflow-hidden"),style:{animation:"fadeIn 0.6s ease-out forwards ".concat(i*.1,"s"),opacity:0},children:[e.jsx("div",{className:"h-1 w-full ".concat(s(t.impact).bg)}),e.jsxs("div",{className:"p-6 relative",children:[e.jsxs("div",{className:"flex justify-between mb-4",children:[e.jsxs("div",{className:"px-3 py-1 rounded-full text-xs font-medium flex items-center ".concat(s(t.impact).bg," ").concat(s(t.impact).text," border ").concat(s(t.impact).border),children:[s(t.impact).icon,o("news.".concat(t.impact,"Impact"))]}),e.jsx("div",{className:"w-10 h-10 rounded-full ".concat(s(t.impact).bg," border ").concat(s(t.impact).border," flex items-center justify-center"),children:e.jsx("span",{className:"text-lg font-bold ".concat(s(t.impact).text),children:t.influence})})]}),e.jsx("h3",{className:"text-xl font-bold ".concat(r==="dark"?"text-white":"text-gray-900"," mb-3"),children:t.title}),e.jsxs("div",{className:"mb-6",children:[e.jsx("div",{className:"text-xs ".concat(r==="dark"?"text-gray-400":"text-gray-600"," mb-1"),children:a==="de"?"Einfluss auf den Markt":"Market Influence"}),e.jsx("div",{className:"h-2 ".concat(r==="dark"?"bg-[#1A1714]/50":"bg-gray-100"," rounded-full overflow-hidden"),children:e.jsx("div",{className:"h-full rounded-full bg-gradient-to-r ".concat(N(t.influence)),style:{width:"".concat(t.influence/10*100,"%"),transition:"width 1s cubic-bezier(0.65, 0, 0.35, 1)",boxShadow:t.influence>7?"0 0 8px rgba(239, 68, 68, 0.5)":""}})}),e.jsxs("div",{className:"mt-1 flex justify-between text-xs ".concat(r==="dark"?"text-gray-500":"text-gray-400"),children:[e.jsx("span",{children:a==="de"?"Niedrig":"Low"}),e.jsx("span",{children:a==="de"?"Mittel":"Medium"}),e.jsx("span",{children:a==="de"?"Hoch":"High"})]})]}),e.jsx("div",{className:"mb-4",children:e.jsx("div",{className:"".concat(r==="dark"?"text-gray-300":"text-gray-600"," text-sm leading-relaxed whitespace-pre-wrap"),children:t.description})})]})]},i)),b.length===0&&e.jsx("div",{className:"col-span-full flex items-center justify-center p-12 backdrop-blur-md ".concat(r==="dark"?"bg-white/5 border-white/10":"bg-white border-gray-200"," border rounded-xl"),children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-transparent mb-4",children:e.jsx(_,{className:"h-8 w-8 text-amber-400"})}),e.jsx("h3",{className:"text-xl font-semibold ".concat(r==="dark"?"text-white":"text-gray-900"," mb-2"),children:a==="de"?"Keine Bedingungen gefunden":"No conditions foun
1d"}),e.jsx("p",{className:r==="dark"?"text-gray-400":"text-gray-600",children:a==="de"?"Versuchen Sie die Filter anzupassen":"Try adjusting your filters"})]})})]})})]}),m.isOpen&&e.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center bg-black bg-opacity-90",onClick:k,children:e.jsxs("div",{className:"relative max-w-7xl max-h-full w-full h-full flex items-center justify-center p-4",children:[e.jsx("button",{onClick:k,className:"absolute top-6 right-6 z-10 bg-black bg-opacity-50 text-white rounded-full p-3 hover:bg-opacity-70 transition-all duration-200",children:e.jsx(S,{className:"w-6 h-6"})}),m.images.length>1&&e.jsx("button",{onClick:t=>{t.stopPropagation(),M()},className:"absolute left-6 top-1/2 transform -translate-y-1/2 z-10 bg-black bg-opacity-50 text-white rounded-full p-3 hover:bg-opacity-70 transition-all duration-200",children:e.jsx(de,{className:"w-6 h-6"})}),m.images.length>1&&e.jsx("button",{onClick:t=>{t.stopPropagation(),D()},className:"absolute right-6 top-1/2 transform -translate-y-1/2 z-10 bg-black bg-opacity-50 text-white rounded-full p-3 hover:bg-opacity-70 transition-all duration-200",children:e.jsx(oe,{className:"w-6 h-6"})}),e.jsx("div",{className:"relative w-full h-full flex items-center justify-center",children:e.jsx("img",{src:m.images[m.currentIndex],alt:m.title,className:"max-w-full max-h-full object-contain rounded-lg",onClick:t=>t.stopPropagation()})}),m.images.length>1&&e.jsxs("div",{className:"absolute bottom-4 left-1/2 transform -translate-x-1/2 bg-black bg-opacity-50 text-white px-3 py-1 rounded-full text-sm",children:[m.currentIndex+1," / ",m.images.length]}),e.jsx("div",{className:"absolute bottom-4 left-4 right-4 text-center",children:e.jsx("h3",{className:"text-white text-lg font-semibold bg-black bg-opacity-50 rounded-lg px-4 py-2 max-w-2xl mx-auto",children:m.title})})]})}),n&&F.createPortal(e.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-[99999] p-3",children:e.jsxs("div",{className:"".concat(r==="dark"?"bg-[#1A1714]":"bg-white"," rounded-lg w-full max-w-4xl max-h-[95vh] overflow-hidden flex flex-col border border-[#2A2520] dark:border-[#2A2520]"),children:[e.jsxs("div",{className:"flex items-center justify-between p-5 border-b ".concat(r==="dark"?"border-[#2A2520]":"border-gray-200"),children:[e.jsx("h2",{className:"text-xl font-bold ".concat(r==="dark"?"text-white":"text-gray-900"),children:a==="de"?n.title_de:n.title_en}),e.jsx("button",{onClick:()=>w(null),className:"p-2 rounded-lg ".concat(r==="dark"?"hover:bg-surface-elevated":"hover:bg-gray-100"," transition-colors"),children:e.jsx(S,{className:"w-6 h-6 ".concat(r==="dark"?"text-amber-400":"text-gray-600")})})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto",children:[n.images&&n.images.length>0&&e.jsx("div",{className:"grid grid-cols-1 gap-4 p-6",children:n.images.map((t,i)=>e.jsx("img",{src:t,alt:"".concat(a==="de"?n.title_de:n.title_en," ").concat(i+1),className:"w-full h-auto rounded-lg",onError:l=>{l.target.style.display="none"}},i))}),!((B=n.images)!=null&&B.length)&&n.image_url&&e.jsx("div",{className:"p-6",children:e.jsx("img",{src:n.image_url,alt:a==="de"?n.title_de:n.title_en,className:"w-full h-auto rounded-lg",onError:t=>{t.target.style.display="none"}})}),e.jsxs("div",{className:"px-6 pb-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("div",{className:"flex items-center px-3 py-1 rounded-lg text-sm font-medium ".concat(s(n.impact).bg," ").concat(s(n.impact).text," border ").concat(s(n.impact).border),children:[s(n.impact).icon,o("news.".concat(n.impact.toLowerCase(),"Impact"))]}),e.jsx("span",{className:"text-sm bg-transparent dark:bg-transparent text-[#C9A96E] dark:text-amber-400 px-3 py-1.5 rounded font-medium",children:new Date(n.date).toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"})})]}),e.jsx("div",{className:"".concat(r==="dark"?"text-gray-300":"text-gray-600"," text-base leading-relaxed mb-6 whitespace-pre-wrap"),children:a==="de"?n.description_de:n.description_en}),n.direction&&e.jsx("div",{className:"flex items-center mb-6",children:e.jsxs("div",{className:"flex items-center px-4 py-2 rounded-lg text-base font-medium border ".concat($(n.direction)),children:[A(n.direction),e.jsx("span",{children:n.direction})]})}),(n.probability||n.strength)&&C(n.probability,n.strength),n.affected_markets&&n.affected_markets.length>0&&E(n.affected_markets)]})]})]})}),document.body),h&&F.createPortal(e.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-[99999] p-3",children:e.jsxs("div",{className:"".concat(r==="dark"?"bg-[#1A1714]":"bg-white"," rounded-lg w-full max-w-3xl max-h-[90vh] overflow-hidden flex flex-col border border-[#2A2520] dark:border-[#2A2520]"),children:[e.jsxs("div",{className:"flex items-center justify-between p-5 border-b ".concat(r==="dark"?"border-[#2A2520]":"border-gray-200"),children:[e.jsx("h2",{className:"text-xl font-bold ".concat(r==="dark"?"text-white":"text-gray-900"),children:h.title}),e.jsx("button",{onClick:()=>ee(null),className:"p-2 rounded-lg ".concat(r==="dark"?"hover:bg-surface-elevated":"hover:bg-gray-100"," transition-colors"),children:e.jsx(S,{className:"w-6 h-6 ".concat(r==="dark"?"text-amber-400":"text-gray-600")})})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs("div",{className:"flex items-center px-3 py-1.5 rounded-lg text-sm font-medium ".concat(s(h.impact).bg," ").concat(s(h.impact).text," border ").concat(s(h.impact).border),children:[s(h.impact).icon,o("news.".concat(h.impact,"Impact"))]}),e.jsxs("div",{className:"text-2xl font-bold bg-gradient-to-br from-[#C9A96E] to-[#C9A96E] bg-clip-text text-transparent",children:[h.influence,"/10"]})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("div",{className:"text-sm ".concat(r==="dark"?"text-gray-400":"text-gray-600"," mb-2"),children:a==="de"?"Einfluss auf den Markt":"Market Influence"}),e.jsx("div",{className:"h-3 ".concat(r==="dark"?"bg-[#1A1714]/50":"bg-gray-100"," rounded-full overflow-hidden"),children:e.jsx("div",{className:"h-full rounded-full bg-gradient-to-r ".concat(N(h.influence)),style:{width:"".concat(h.influence/10*100,"%"),transition:"width 1s cubic-bezier(0.65, 0, 0.35, 1)",boxShadow:h.influence>7?"0 0 8px rgba(239, 68, 68, 0.5)":""}})}),e.jsxs("div",{className:"mt-2 flex justify-between text-sm ".concat(r==="dark"?"text-gray-500":"text-gray-400"),children:[e.jsx("span",{children:a==="de"?"Niedrig":"Low"}),e.jsx("span",{children:a==="de"?"Mittel":"Medium"}),e.jsx("span",{children:a==="de"?"Hoch":"High"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold ".concat(r==="dark"?"text-white":"text-gray-900"," mb-3"),children:a==="de"?"Beschreibung":"Description"}),e.jsx("div",{className:"".concat(r==="dark"?"text-gray-300":"text-gray-600"," text-base leading-relaxed whitespace-pre-wrap"),children:h.description})]})]})]})}),document.body),e.jsx("style",{children:"\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n \n @keyframes fadeInUp {\n from { \n opacity: 0;\n transform: translateY(20px);\n }\n to { \n opacity: 1;\n transform: translateY(0);\n }\n }\n \n @keyframes scaleX {\n from { transform: scaleX(0); }\n to { transform: scaleX(1); }\n }\n "})]})]})};export{ze 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.