(function(a,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(a=typeof globalThis<"u"?globalThis:a||self,t(a["tradingview-vue"]={},a.Vue))})(this,function(a,t){"use strict";window.TradingView=window.TradingView||{};const u=t.defineComponent({name:"WChart",props:{options:{type:Object,default:()=>({})}},setup(e){const n=t.ref("tradingview-chart"),o=t.ref("tradingview-chart-script"),i={width:980,height:610,symbol:"NASDAQ:AAPL",interval:"D",timezone:"Etc/UTC",theme:"light",style:"1",locale:"en",toolbar_bg:"#f1f3f6",enable_publishing:!1,allow_symbol_change:!0,container_id:"tradingview-chart"},r=()=>typeof window<"u"&&window.document&&window.document.createElement,s=()=>document.getElementById(o.value),m=()=>s()!==null,w=p=>{if(!r()||m())return;const l=document.createElement("script");l.id=o.value+Date.now().toString(36),l.type="text/javascript",l.async=!0,l.src="https://s3.tradingview.com/tv.js",l.onload=p,document.getElementsByTagName("head")[0].appendChild(l)},f=()=>{setTimeout(()=>{if(typeof window.TradingView>"u")return;const p={...i,...e.options};if(p.container_id!==n.value){console.error('container_id in Chart component must be "tradingview-chart"');return}new window.TradingView.widget(Object.assign({container_id:n},p))},300)};return t.onMounted(()=>{w(()=>f())}),{container:n}}}),c=(e,n)=>{const o=e.__vccOpts||e;for(const[i,r]of n)o[i]=r;return o},h=["id"];function _(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{id:e.container},null,8,h)}const b=c(u,[["render",_]]),d=(e,n,o,i)=>{const r=t.ref(n),s=t.ref(o),m=t.ref(),w=()=>typeof window<"u"&&window.document&&window.document.createElement,f=()=>document.getElementById(s.value),p=()=>f()!==null,l=()=>{if(!w()||p())return;const g=document.createElement("script");g.id=s.value,g.type="text/javascript",g.async=!0,g.src=i,g.textContent=JSON.stringify(e),m.value&&m.value.appendChild(g)};return t.onMounted(()=>{setTimeout(()=>{l()},300)}),{container:r,tradingview:m}},y=t.defineComponent({name:"WCompanyProfile",props:{options:{type:Object,default:()=>({})}},setup(e){const n={symbol:"NASDAQ:AAPL",width:480,height:650,colorTheme:"light",isTransparent:!1,locale:"en",...e.options},{container:o,tradingview:i}=d(n,"tradingview-company-profile","tradingview-company-profile-script","https://s3.tradingview.com/external-embedding/embed-widget-symbol-profile.js");return{container:o,tradingview:i}}}),$=["id"];function C(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,$)}const v=c(y,[["render",C]]),E=t.defineComponent({name:"WCryptoMarket",props:{options:{type:Object,default:()=>({})}},setup(e){const n={width:"100%",height:"100%",defaultColumn:"overview",screener_type:"crypto_mkt",displayCurrency:"USD",colorTheme:"light",locale:"en",...e.options},{container:o,tradingview:i}=d(n,"tradingview-crypto-market","tradingview-crypto-market-script","https://s3.tradingview.com/external-embedding/embed-widget-screener.js");return{container:o,tradingview:i}}}),T=["id"];function S(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{id:e.container,ref:"tradingview"},null,8,T)}const B=c(E,[["render",S]]),k=t.defineComponent({name:"WEconomicCalendar",props:{options:{type:Object,default:()=>({})}},setup(e){const n={colorTheme:"light",isTransparent:!1,width:"510",height:"600",locale:"en",importanceFilter:"-1,0,1",...e.options},{container:o,tradingview:i}=d(n,"tradingview-economic-calendar","tradingview-economic-calendar-script","https://s3.tradingview.com/external-embedding/embed-widget-events.js");return{container:o,tradingview:i}}}),F=["id"];function D(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,F)}const O=c(k,[["render",D]]),U=t.defineComponent({name:"WForexCrossRates",props:{options:{type:Object,default:()=>({})}},setup(e){const n={symbol:"NASDAQ:AAPL",color:"blak",isTransparent:!1,largeChartUrl:"",displayMode:"regular",width:"100%",height:"100%",locale:"br",...e.options},{container:o,tradingview:i}=d(n,"tradingview-forex-cross-rates","tradingview-forex-cross-rates-script","https://s3.tradingview.com/external-embedding/embed-widget-forex-cross-rates.js");return{container:o,tradingview:i}}}),M=["id"];function N(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,M)}const X=c(U,[["render",N]]),A=t.defineComponent({name:"WForexHeatMap",props:{options:{type:Object,default:()=>({})}},setup(e){const n={width:770,height:400,currencies:["EUR","USD","JPY","GBP","CHF","AUD","CAD","NZD","CNY"],isTransparent:!1,colorTheme:"light",locale:"en",...e.options},{container:o,tradingview:i}=d(n,"tradingview-forex-heat-map","tradingview-forex-heat-map-script","https://s3.tradingview.com/external-embedding/embed-widget-forex-heat-map.js");return{container:o,tradingview:i}}}),j=["id"];function P(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{id:e.container,ref:"tradingview"},null,8,j)}const L=c(A,[["render",P]]),I=t.defineComponent({name:"WFundamentalData",props:{options:{type:Object,default:()=>({})}},setup(e){const n={symbol:"NASDAQ:AAPL",colorTheme:"light",isTransparent:!1,largeChartUrl:"",displayMode:"regular",width:480,height:830,locale:"en",...e.options},{container:o,tradingview:i}=d(n,"tradingview-fundamental-data","tradingview-fundamental-data-script","https://s3.tradingview.com/external-embedding/embed-widget-financials.js");return{container:o,tradingview:i}}}),R=["id"];function x(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,R)}const G=c(I,[["render",x]]),W=t.defineComponent({name:"WMarketData",props:{options:{type:Object,default:()=>({})}},setup(e){const n={width:770,height:450,symbolsGroups:[{name:"Indices",originalName:"Indices",symbols:[{name:"FOREXCOM:SPXUSD",displayName:"S&P 500"},{name:"FOREXCOM:NSXUSD",displayName:"US 100"},{name:"FOREXCOM:DJI",displayName:"Dow 30"},{name:"INDEX:NKY",displayName:"Nikkei 225"},{name:"INDEX:DEU40",displayName:"DAX Index"},{name:"FOREXCOM:UKXGBP",displayName:"UK 100"}]},{name:"Futures",originalName:"Futures",symbols:[{name:"CME_MINI:ES1!",displayName:"S&P 500"},{name:"CME:6E1!",displayName:"Euro"},{name:"COMEX:GC1!",displayName:"Gold"},{name:"NYMEX:CL1!",displayName:"Crude Oil"},{name:"NYMEX:NG1!",displayName:"Natural Gas"},{name:"CBOT:ZC1!",displayName:"Corn"}]},{name:"Bonds",originalName:"Bonds",symbols:[{name:"CME:GE1!",displayName:"Eurodollar"},{name:"CBOT:ZB1!",displayName:"T-Bond"},{name:"CBOT:UB1!",displayName:"Ultra T-Bond"},{name:"EUREX:FGBL1!",displayName:"Euro Bund"},{name:"EUREX:FBTP1!",displayName:"Euro BTP"},{name:"EUREX:FGBM1!",displayName:"Euro BOBL"}]},{name:"Forex",originalName:"Forex",symbols:[{name:"FX:EURUSD"},{name:"FX:GBPUSD"},{name:"FX:USDJPY"},{name:"FX:USDCHF"},{name:"FX:AUDUSD"},{name:"FX:USDCAD"}]}],showSymbolLogo:!0,colorTheme:"light",isTransparent:!1,locale:"en",...e.options},{container:o,tradingview:i}=d(n,"tradingview-market-data","tradingview-market-data-script","https://s3.tradingview.com/external-embedding/embed-widget-market-quotes.js");return{container:o,tradingview:i}}}),V=["id"];function Y(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,V)}const H=c(W,[["render",Y]]),Q=t.defineComponent({name:"WMiniChart",props:{options:{type:Object,default:()=>({})}},setup(e){const n={symbol:"FX:EURUSD",width:350,height:220,locale:"en",dateRange:"12M",colorTheme:"light",trendLineColor:"rgba(41, 98, 255, 1)",underLineColor:"rgba(41, 98, 255, 0.3)",underLineBottomColor:"rgba(41, 98, 255, 0)",isTransparent:!1,autosize:!1,largeChartUrl:"",...e.options},{container:o,tradingview:i}=d(n,"tradingview-mini-chart","tradingview-mini-chart-script","https://s3.tradingview.com/external-embedding/embed-widget-mini-symbol-overview.js");return{container:o,tradingview:i}}}),J=["id"];function K(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,J)}const Z=c(Q,[["render",K]]),q=t.defineComponent({name:"WScreener",props:{options:{type:Object,default:()=>({})}},setup(e){const n={width:1100,height:523,defaultColumn:"overview",defaultScreen:"general",market:"forex",showToolbar:!0,colorTheme:"light",locale:"en",...e.options},{container:o,tradingview:i}=d(n,"tradingview-screener","tradingview-screener-script","https://s3.tradingview.com/external-embedding/embed-widget-screener.js");return{container:o,tradingview:i}}}),z=["id"];function ee(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,z)}const te=c(q,[["render",ee]]),ne=t.defineComponent({name:"WSingleTicker",props:{options:{type:Object,default:()=>({})}},setup(e){const n={symbol:"FX:EURUSD",width:350,colorTheme:"light",isTransparent:!1,locale:"en",...e.options},{container:o,tradingview:i}=d(n,"tradingview-single-ticker","tradingview-single-ticker-script","https://s3.tradingview.com/external-embedding/embed-widget-single-quote.js");return{container:o,tradingview:i}}}),oe=["id"];function ie(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,oe)}const re=c(ne,[["render",ie]]),ae=t.defineComponent({name:"WSnaps",props:{options:{type:Object,default:()=>({})}},setup(e){const n={feedMode:"all_symbols",colorTheme:"light",isTransparent:!1,displayMode:"regular",width:480,height:830,locale:"en",...e.options},{container:o,tradingview:i}=d(n,"tradingview-snaps","tradingview-snaps-script","https://s3.tradingview.com/external-embedding/embed-widget-timeline.js");return{container:o,tradingview:i}}}),se=["id"];function ce(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,se)}const de=c(ae,[["render",ce]]),le=t.defineComponent({name:"WStockMarket",props:{options:{type:Object,default:()=>({})}},setup(e){const n={colorTheme:"light",dateRange:"12M",exchange:"US",showChart:!0,locale:"en",largeChartUrl:"",isTransparent:!1,showSymbolLogo:!1,showFloatingTooltip:!1,width:"400",height:"600",plotLineColorGrowing:"rgba(41, 98, 255, 1)",plotLineColorFalling:"rgba(41, 98, 255, 1)",gridLineColor:"rgba(240, 243, 250, 0)",scaleFontColor:"rgba(120, 123, 134, 1)",belowLineFillColorGrowing:"rgba(41, 98, 255, 0.12)",belowLineFillColorFalling:"rgba(41, 98, 255, 0.12)",belowLineFillColorGrowingBottom:"rgba(41, 98, 255, 0)",belowLineFillColorFallingBottom:"rgba(41, 98, 255, 0)",symbolActiveColor:"rgba(41, 98, 255, 0.12)",...e.options},{container:o,tradingview:i}=d(n,"tradingview-stock-market","tradingview-stock-market-script","https://s3.tradingview.com/external-embedding/embed-widget-hotlists.js");return{container:o,tradingview:i}}}),pe=["id"];function me(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,pe)}const ge=c(le,[["render",me]]);window.TradingView=window.TradingView||{};const we=t.defineComponent({name:"WSymbolOverview",props:{options:{type:Object,default:()=>({})}},setup(e){const n=t.ref("tradingview-symbol-overview"),o=t.ref("tradingview-symbol-overview-script"),i={symbols:[["Apple","AAPL"],["Google","GOOGL"],["Microsoft","MSFT"]],chartOnly:!1,width:1e3,height:400,locale:"en",colorTheme:"light",gridLineColor:"rgba(240, 243, 250, 0)",fontColor:"#787B86",isTransparent:!1,autosize:!1,showVolume:!1,scalePosition:"no",scaleMode:"Normal",fontFamily:"Trebuchet MS, sans-serif",noTimeScale:!1,valuesTracking:"1",chartType:"area",lineColor:"#2962FF",bottomColor:"rgba(41, 98, 255, 0)",topColor:"rgba(41, 98, 255, 0.3)",container_id:"tradingview-symbol-overview"},r=()=>typeof window<"u"&&window.document&&window.document.createElement,s=()=>document.getElementById(o.value),m=()=>s()!==null,w=p=>{if(!r()||m())return;const l=document.createElement("script");l.id=o.value+Date.now().toString(36),l.type="text/javascript",l.async=!0,l.src="https://s3.tradingview.com/tv.js",l.onload=p,document.getElementsByTagName("head")[0].appendChild(l)},f=()=>{setTimeout(()=>{if(typeof window.TradingView>"u")return;const p={...i,...e.options};if(p.container_id!==n.value){console.error('container_id in SymbolOverview component must be "tradingview-symbol-overview"');return}new window.TradingView.MediumWidget(Object.assign({container_id:n},p))},300)};return t.onMounted(()=>{w(()=>f())}),{container:n}}}),fe=["id"];function ue(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,fe)}const he=c(we,[["render",ue]]),_e=t.defineComponent({name:"WTechnicalAnalysis",props:{options:{type:Object,default:()=>({})}},setup(e){const n={interval:"1m",width:425,isTransparent:!1,height:450,symbol:"NASDAQ:AAPL",showIntervalTabs:!0,locale:"en",colorTheme:"light",...e.options},{container:o,tradingview:i}=d(n,"tradingview-technical-analysis","tradingview-technical-analysis-script","https://s3.tradingview.com/external-embedding/embed-widget-technical-analysis.js");return{container:o,tradingview:i}}}),be=["id"];function ye(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,be)}const $e=c(_e,[["render",ye]]),Ce=t.defineComponent({name:"WTicker",props:{options:{type:Object,default:()=>({})}},setup(e){const n={symbols:[{proName:"FOREXCOM:SPXUSD",title:"S&P 500"},{proName:"FOREXCOM:NSXUSD",title:"US 100"},{proName:"FX_IDC:EURUSD",title:"EUR/USD"},{proName:"BITSTAMP:BTCUSD",title:"Bitcoin"},{proName:"BITSTAMP:ETHUSD",title:"Ethereum"}],colorTheme:"light",isTransparent:!1,showSymbolLogo:!0,locale:"en",...e.options},{container:o,tradingview:i}=d(n,"tradingview-ticker","tradingview-ticker-script","https://s3.tradingview.com/external-embedding/embed-widget-tickers.js");return{container:o,tradingview:i}}}),ve=["id"];function Ee(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,ve)}const Te=c(Ce,[["render",Ee]]),Se=t.defineComponent({name:"WTickerTape",props:{options:{type:Object,default:()=>({})}},setup(e){const n={symbols:[{proName:"FOREXCOM:SPXUSD",title:"S&P 500"},{proName:"FOREXCOM:NSXUSD",title:"US 100"},{proName:"FX_IDC:EURUSD",title:"EUR/USD"},{proName:"BITSTAMP:BTCUSD",title:"Bitcoin"},{proName:"BITSTAMP:ETHUSD",title:"Ethereum"}],showSymbolLogo:!0,colorTheme:"light",isTransparent:!1,displayMode:"adaptive",locale:"en",...e.options},{container:o,tradingview:i}=d(n,"tradingview-ticker-tape","tradingview-ticker-tape-script","https://s3.tradingview.com/external-embedding/embed-widget-ticker-tape.js");return{container:o,tradingview:i}}}),Be=["id"];function ke(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,Be)}const Fe=c(Se,[["render",ke]]),De=t.defineComponent({name:"WMarketOverview",props:{options:{type:Object,default:()=>({})}},setup(e){const n={colorTheme:"light",dateRange:"12M",showChart:!0,locale:"en",largeChartUrl:"",isTransparent:!1,showSymbolLogo:!0,showFloatingTooltip:!1,width:"400",height:"660",plotLineColorGrowing:"rgba(41, 98, 255, 1)",plotLineColorFalling:"rgba(41, 98, 255, 1)",gridLineColor:"rgba(240, 243, 250, 0)",scaleFontColor:"rgba(120, 123, 134, 1)",belowLineFillColorGrowing:"rgba(41, 98, 255, 0.12)",belowLineFillColorFalling:"rgba(41, 98, 255, 0.12)",belowLineFillColorGrowingBottom:"rgba(41, 98, 255, 0)",belowLineFillColorFallingBottom:"rgba(41, 98, 255, 0)",symbolActiveColor:"rgba(41, 98, 255, 0.12)",tabs:[{title:"Indices",symbols:[{s:"FOREXCOM:SPXUSD",d:"S&P 500"},{s:"FOREXCOM:NSXUSD",d:"US 100"},{s:"FOREXCOM:DJI",d:"Dow 30"},{s:"INDEX:NKY",d:"Nikkei 225"},{s:"INDEX:DEU40",d:"DAX Index"},{s:"FOREXCOM:UKXGBP",d:"UK 100"}],originalTitle:"Indices"},{title:"Futures",symbols:[{s:"CME_MINI:ES1!",d:"S&P 500"},{s:"CME:6E1!",d:"Euro"},{s:"COMEX:GC1!",d:"Gold"},{s:"NYMEX:CL1!",d:"Crude Oil"},{s:"NYMEX:NG1!",d:"Natural Gas"},{s:"CBOT:ZC1!",d:"Corn"}],originalTitle:"Futures"},{title:"Bonds",symbols:[{s:"CME:GE1!",d:"Eurodollar"},{s:"CBOT:ZB1!",d:"T-Bond"},{s:"CBOT:UB1!",d:"Ultra T-Bond"},{s:"EUREX:FGBL1!",d:"Euro Bund"},{s:"EUREX:FBTP1!",d:"Euro BTP"},{s:"EUREX:FGBM1!",d:"Euro BOBL"}],originalTitle:"Bonds"},{title:"Forex",symbols:[{s:"FX:EURUSD"},{s:"FX:GBPUSD"},{s:"FX:USDJPY"},{s:"FX:USDCHF"},{s:"FX:AUDUSD"},{s:"FX:USDCAD"}],originalTitle:"Forex"}],...e.options},{container:o,tradingview:i}=d(n,"tradingview-market-overview","tradingview-market-overview-script","https://s3.tradingview.com/external-embedding/embed-widget-market-overview.js");return{container:o,tradingview:i}}}),Oe=["id"];function Ue(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,Oe)}const Me=c(De,[["render",Ue]]),Ne=t.defineComponent({name:"WSymbolInfo",props:{options:{type:Object,default:()=>({symbol:"NASDAQ:AAPL",width:1e3,locale:"en",colorTheme:"light",isTransparent:!1})}},setup(e){const n={symbol:"NASDAQ:AAPL",width:1e3,locale:"en",colorTheme:"light",isTransparent:!1,...e.options},{container:o,tradingview:i}=d(n,"tradingview-symbol-info","tradingview-symbol-info-script","https://s3.tradingview.com/external-embedding/embed-widget-symbol-info.js");return{container:o,tradingview:i}}}),Xe=["id"];function Ae(e,n,o,i,r,s){return t.openBlock(),t.createElementBlock("div",{ref:"tradingview",id:e.container},null,8,Xe)}const je=c(Ne,[["render",Ae]]);a.Chart=b,a.CompanyProfile=v,a.CryptoMarket=B,a.EconomicCalendar=O,a.ForexCrossRates=X,a.ForexHeatMap=L,a.FundamentalData=G,a.MarketData=H,a.MarketOverview=Me,a.MiniChart=Z,a.Screener=te,a.SingleTicker=re,a.Snaps=de,a.StockMarket=ge,a.SymbolInfo=je,a.SymbolOverview=he,a.TechnicalAnalysis=$e,a.Ticker=Te,a.TickerTape=Fe,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});