1import{r as l,j as e}from"./vendor-react-BPv6TnFg.js";import{c as h,d as p,e as i,X as o}from"./index-CjMpuxY_.js";import{T as b}from"./TradingCalculatorV2-LFeLk9bj.js";import{P as g}from"./ProOverlay-CHYw1Kim.js";import{u}from"./useIsFreeUser-BxzC4pLv.js";import{C as d}from"./calculator-BtUf9Sxc.js";import{P as f}from"./play-DmC2bzUf.js";import{I as n}from"./info-CmXjp3rK.js";import"./upload-CkG57FOo.js";import"./link-UhPiwTyW.js";import"./loader-circle-BeFOVUOQ.js";import"./check-Bw1x4fK5.js";import"./save-DjynxUFd.js";import"./folder-CT3U1Jbf.js";import"./calendar-BIvnJaKf.js";import"./trash-2-DG4kpofm.js";import"./pdf-tools-COZ6cDCj.js";import"./folder-open-BNSayKi9.js";import"./download-DH6cOcdr.js";import"./arrow-right-xPl6LD6m.js";import"./trending-up-E0ZxCj4S.js";import"./settings-05ppW2mO.js";import"./shield-CizWUd_J.js";import"./triangle-alert-DciQAs-Z.js";import"./minus-BHVOTVSs.js";import"./plus-BDZlOKxp.js";import"./circle-check-big-WQ8c21bC.js";import"./UpgradePromoModal-Dw2TzShs.js";const X=()=>{const[t,s]=l.useState(!1),[c,a]=l.useState(!1),{theme:r}=h(),{user:m}=p(),x=u();return l.useEffect(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t]),e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:()=>{s(!0),i("floating_calculator_open","tools","floating_widget")},className:"floating-calculator fixed bottom-28 right-6 z-10 h-14 w-14 rounded-full shadow-2xl transition-all duration-300 hover:scale-110 hover:shadow-3xl ".concat(r==="dark"?"bg-gradient-to-br from-[#C9A96E] to-[#C9A96E] hover:from-[#C9A96E] hover:to-[#C9A96E]":"bg-gradient-to-br from-[#C9A96E] to-[#C9A96E] hover:from-white hover:to-[#C9A96E]"," flex items-center justify-center group"),"aria-label":"Open Trading Calculator",children:e.jsx(d,{className:"h-6 w-6 group-hover:rotate-12 transition-transform duration-300 text-[#0A0A0A]"})}),t&&e.jsxs("div",{className:"fixed inset-0 z-[99999] flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:()=>s(!1)}),e.jsxs("div",{className:"relative w-full max-w-7xl h-[90vh] mx-4 overflow-hidden rounded-2xl shadow-2xl ".concat(r==="dark"?"bg-[var(--color-bg-deep)]":"bg-white"),children:[e.jsxs("div",{className:"flex items-center justify-between p-4 border-b ".concat(r==="dark"?"border-gray-800 bg-[#111111]":"border-gray-200 bg-gray-50"),children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-10 w-10 bg-gradient-to-r from-[#C9A96E] to-[#C9A96E] rounded-lg flex items-center justify-center",children:e.jsx(d,{className:"h-5 w-5 text-white"})}),e.jsx("h2",{className:"text-xl font-bold ".concat(r==="dark"?"text-white":"text-gray-900"),children:"Trading Calculator Pro"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("button",{onClick:()=>{a(!0),i("tutorial_video_open","education","calculator_tutorial")},className:"flex items-center gap-1 px-3 py-1.5 bg-red-600 hover:bg-red-700 text-white text-sm font-medium rounded-lg transition-colors",children:[e.jsx(f,{className:"h-3.5 w-3.5",fill:"white"}),e.jsx("span",{children:"TUTORIAL"})]}),e.jsxs("div",{className:"relative group",children:[e.jsx("button",{className:"p-2 rounded-lg transition-all ".concat(r==="dark"?"bg-[#1A1714]/50 hover:bg-gray-700 text-gray-300 hover:text-white border border-gray-700":"bg-gray-100 hover:bg-gray-200 text-gray-600 hover:text-gray-800 border border-gray-300"," cursor-help"),children:e.jsx(n,{className:"h-5 w-5"})}),e.jsxs("div",{className:"absolute right-0 top-full mt-3 w-96 rounded-xl shadow-2xl opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 z-50 ".concat(r==="dark"?"bg-gradient-to-br from-[#1A1714] to-[#0A0A0A] border border-gray-700":"bg-gradient-to-br from-white to-gray-50 border border-gray-200"),children:[e.jsxs("div",{className:"p-5",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4 pb-3 border-b ".concat(r==="dark"?"border-gray-700":"border-gray-200"),children:[e.jsx("div",{className:"p-1.5 rounded-lg bg-surface-elevated",children:e.jsx(n,{className:"h-4 w-4 text-amber-600 dar
1k:text-amber-400"})}),e.jsx("h3",{className:"font-bold text-base ".concat(r==="dark"?"text-white":"text-gray-900"),children:"TradingView Import - Best Practice"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("h4",{className:"font-semibold text-sm mb-2 flex items-center gap-1.5 ".concat(r==="dark"?"text-amber-400":"text-amber-600"),children:[e.jsx("span",{className:"text-lg",children:"ð"})," Text-Setup"]}),e.jsxs("div",{className:"space-y-1.5 ml-6 text-sm ".concat(r==="dark"?"text-gray-300":"text-gray-700"),children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-green-400 mt-0.5",children:"â"}),e.jsx("span",{children:"Hoher Kontrast (weià auf dunkel)"})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-green-400 mt-0.5",children:"â"}),e.jsx("span",{children:"GroÃe, fette Schrift"})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-green-400 mt-0.5",children:"â"}),e.jsx("span",{children:"Labels: Entry, Stop Loss, TP1/Teilprofit, RB1/Double Up"})]})]})]}),e.jsxs("div",{children:[e.jsxs("h4",{className:"font-semibold text-sm mb-2 flex items-center gap-1.5 ".concat(r==="dark"?"text-amber-400":"text-amber-600"),children:[e.jsx("span",{className:"text-lg",children:"ð"})," Chart-Regeln"]}),e.jsxs("div",{className:"space-y-1.5 ml-6 text-sm ".concat(r==="dark"?"text-gray-300":"text-gray-700"),children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-green-400 mt-0.5",children:"â"}),e.jsx("span",{children:"NUR Trading-Level einzeichnen"})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-red-400 mt-0.5",children:"â"}),e.jsx("span",{children:"Keine Indikatoren/Trendlinien"})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-red-400 mt-0.5",children:"â"}),e.jsx("span",{children:'"Durchschnittsentry" weglassen'})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-red-400 mt-0.5",children:"â"}),e.jsx("span",{children:"Keine Ãberlappungen"})]})]})]}),e.jsx("div",{className:"mt-4 p-3 rounded-lg bg-surface-elevated border border-[#2A2520]",children:e.jsxs("div",{className:"text-sm font-medium flex items-center gap-2 ".concat(r==="dark"?"text-amber-400":"text-amber-700"),children:[e.jsx("span",{children:"ð¡"}),e.jsx("span",{children:"Tipp: Sauberer Chart = Bessere Erkennung"})]})}),e.jsx("div",{className:"mt-3 p-3 rounded-lg bg-surface-elevated border border-[#2A2520]",children:e.jsxs("div",{className:"text-sm font-bold flex items-center gap-2 ".concat(r==="dark"?"text-orange-400":"text-orange-700"),children:[e.jsx("span",{children:"â ï¸"}),e.jsx("span",{children:"Levels Immer Ãberprüfen"})]})})]})]}),e.jsx("div",{className:"absolute -top-2 right-6 w-0 h-0 border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-b-[10px] ".concat(r==="dark"?"border-b-[#1A1714]":"border-b-white")})]})]}),e.jsx("button",{onClick:()=>s(!1),className:"p-2 rounded-lg transition-colors ".concat(r==="dark"?"hover:bg-surface-elevated text-gray-400 hover:text-white":"hover:bg-gray-100 text-gray-600 hover:text-gray-900"),children:e.jsx(o,{className:"h-5 w-5"})})]})]}),e.jsx("div",{className:"h-[calc(100%-72px)] overflow-y-auto",children:m?e.jsx(g,{isLocked:x,children:e.jsx(b,{isPopup:!0,onShowTutorial:()=>a(!0),onClose:()=>s(!1)})}):e.jsx("div",{className:"flex items-center justify-center h-full text-gray-400",children:"Please log in to use the calculator"})})]})]}),c&&e.jsx("div",{className:"fixed inset-0 bg-black/80 z-[100000] flex items-center justify-center p-4",children:e.jsxs("div",{className:"relative bg-white dark:bg-surface-elevated rounded-lg max-w-5xl w-full max-h-[90vh] overflow-hidden",children:[e.jsx("button",{onClick:()=>a(!1),className:"absolute top-4 right-4 z-10 p-2 bg-black/50 hover:bg-black/70 text-white rounded-full transition-colors",children:e.jsx(o,{className:"h-6 w-6"})}),e.jsx("div",{className:"relative w-full",style:{paddingBottom:"56.25%"},children:e.jsx("video",{className:"absolute inset-0 w-full h-full",controls:!0,autoPlay:!0,muted:!0,preload:"auto",playsInl
1ine:!0,src:"https://bsmvcmmwkmaqpgrmvjql.supabase.co/storage/v1/object/sign/video/Tutorial%20Trading%20Calculator.mp4?token=eyJraWQiOiJzdG9yYWdlLXVybC1zaWduaW5nLWtleV8wMDBlZmYxOC02ZTRmLTRiMmItYWJhYi01N2ZjMzU0YjFlM2QiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJ2aWRlby9UdXRvcmlhbCBUcmFkaW5nIENhbGN1bGF0b3IubXA0IiwiaWF0IjoxNzU2OTE1MjcxLCJleHAiOjMzMjYxMzc5MjcxfQ.hrBzqN9ONSujZsviSzTfJ_TpmMaAM_towwuUA7jCzvY"})})]})})]})};export{X 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.