1import{a as m,r as o,H as f,i as h,o as l,M as C,f as n,m as p,n as w,p as y,q as k,ah as v,v as x,c as u}from"./DCKa3JjV.js";const U=["src","height"],E={__name:"TradingCentralEconomicCalendarComponentsGuest",props:{height:{type:String,default:"100%"}},setup(e){const{$lang:r}=m(),t=o(encodeURIComponent(f().getSignInURL()||""));return(s,a)=>(l(),h("iframe",{id:"tradingcentral",src:`https://site.tradingcentral.com/zsaf7a/serve.shtml?page=economic_calendar_prelogin&lang=${n(r)}&loginurl=${n(t)}`,class:C(`w-full h-[${e.height==="100%"?e.height:e.height+"px"}]`),allowfullscreen:"true",frameborder:"0",width:"100%",title:"TradingCentral Economic Calendar Widget",height:e.height},null,10,U))}},I=["src","height"],B={__name:"TradingCentralEconomicCalendarComponentsLogged",props:{height:{type:String,default:"100%"},userId:{type:[Number,Boolean],default:1}},setup(e){const r=e,t=o(null),{$lang:s,$apiBase:a,$getCfHeader:i}=m();p(async()=>{t.value=await _()});const _=async()=>new Promise(async(g,d)=>{try{const c=r.userId?`?userId=${r.userId}&locale=${s}`:"",$=await w(a(`get-trading-central-calendar-token${c}`),{headers:i()},"$7UlEGDRpb-");g($.data.value.url)}catch(c){d(c)}});return(g,d)=>n(t)?(l(),h("iframe",{key:0,id:"tradingcentral",class:C(`w-full h-[${e.height==="100%"?e.height:e.height+"px"}]`),src:n(t),allowfullscreen:"true",frameborder:"0",title:"TradingCentral Economic Calendar Widget",width:"100%",height:e.height},null,10,I)):y("",!0)}},L={class:"a__i h-[170vw] w-full lg:h-[857px]","data-motion":"a__u2 a__100"},T={__name:"TradingCentralEconomicCalendar",props:{height:{type:String,default:"100%"}},setup(e){const{vMotion:r}=k();let t=o(!1);v(async()=>{t.value=await s()});async function s(){return new Promise(a=>{f().check().then(i=>{i.Logged&&i.Uid&&a(i.Uid),a(!1)}).catch(()=>{a(!1)})})}return(a,i)=>x((l(),h("div",L,[n(t)?(l(),u(B,{key:0,height:e.height,"user-id":n(t)},null,8,["height","user-id"])):(l(),u(E,{key:1,height:e.height},null,8,["height"]))])),[[n(r)]])}};export{T 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.