1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DUcaIhuh.js","./entry.DoeuMQR2.css","./BwaCzynT.js","./Loader.Ca-OXzUY.css"])))=>i.map(i=>d[i]); 2import{c as F,o as r,w as A,y as O,t as G,f as e,J as R,Q as $,a as te,q as se,r as l,m as ne,ao as re,i,v as U,d as D,F as B,z as P,e as u,M as C,X as ae,j,x as le,k as N}from"./DUcaIhuh.js";import{D as ie}from"./BkAofjjI.js";import{S as oe}from"./BvGM0aUN.js";import{u as me}from"./xNOD2Qls.js";import{i as p}from"./DUCg-AFJ.js";import{u as de}from"./BDhmwT9y.js";const ce={__name:"TradeInstrumentsComponentsTradeInstrumentsItem",props:{instrument:{type:Object,required:!0},isSingleItem:{type:Boolean,default:!1}},setup(n){const _=n,{instrumentSlug:a}=me(_);return(o,w)=>{const x=$;return r(),F(x,{dir:"ltr",class:"block overflow-hidden overflow-ellipsis whitespace-nowrap",to:("useRouteLink"in o?o.useRouteLink:e(R))().routeName("instrument.index",{slug:e(a)})},{default:A(()=>[O(G(n.instrument.displayName),1)]),_:1},8,["to"])}}},ue=j(()=>N(()=>import("./DUcaIhuh.js").then(n=>n.bG),__vite__mapDeps([0,1]),import.meta.url).then(n=>n.default||n)),pe=j(()=>N(()=>import("./BwaCzynT.js"),__vite__mapDeps([2,0,1,3]),import.meta.url).then(n=>n.default||n)),_e=["innerHTML"],xe={"data-motion":"a__u5",class:"a__i grid-rows[repeat(4,96px_auto_auto)] grid grid-cols-2 gap-x-10 sm:space-y-0 md:gap-x-12 lg:grid-cols-3 lg:grid-rows-[repeat(2,96px_auto_auto)] lg:gap-y-12 xl:grid-cols-4 2xl:lg:grid-rows-[96px_auto_auto] 2xl:grid-cols-5 2xl:gap-x-6 3xl:grid-cols-[repeat(auto-fit,minmax(0,1fr))] 3xl:grid-rows-[96px_auto_auto] [&>*:nth-last-child(-n+2)]:mb-0"},ge={class:"mb-auto grid w-full grid-cols-2 gap-0.5 lg:gap-1"},ye={class:"col-span-full"},he={key:1,class:"col-span-full flex w-full items-center justify-center"},we={__name:"TradeInstruments",setup(n){const{$lang:_,$trans:a,$device:o,$dynamicDomain:w,$isAsiaOrGlobal:x,$isSpanishUser:v}=te(),g=de(),{vMotion:T}=se(),y=l(null),M=l(null),E=l(!1),m=l(null),h=l(null),z=l(null),V=s=>{s.forEach(d=>{d.isIntersecting&&(new oe(z.value,{slideToClickedSlide:!0,slidesPerView:"auto",spaceBetween:"5%",breakpoints:{1900:{slidesPerView:7,spaceBetween:50}}}),m.value.unobserve(d.target))})};async function Q(){E.value=!0;try{await g.fetchInstruments(),y.value=g.getTradeInstruments.filter(s=>k[s.display_name]?(s.instruments=s.instruments.filter(d=>k[s.display_name].some(b=>d.id.includes(b))),s.instruments.length>0):!1)}catch{M.value="Error fetching instruments. Please try again later."}E.value=!1}const W={"Spread Betting":"/images/trade-instruments/Chart-Icon.webp",Forex:"/images/trade-instruments/money.webp","Shares CFD":"/images/trade-instruments/chart.webp","Shares CFD (Delayed 15 min.)":"/images/trade-instruments/chart.webp",Indices:"/images/trade-instruments/flag.webp",Cryptocurrency:"/images/trade-instruments/bit-coin.webp","ETFs CFD":"/images/trade-instruments/octagon.webp","ETFs CFD (Delayed 15 min.)":"/images/trade-instruments/octagon.webp",Commodities:"/images/trade-instruments/oil.webp",Bonds:"/images/trade-instruments/doc.webp"},I={Forex:"/lottie/forex.json","Shares CFD":"/lottie/shares.json","Shares CFD (Delayed 15 min.)":"/lottie/shares.json",Indices:"/lottie/indices.json",Cryptocurrency:"/lottie/crypto.json","ETFs CFD":"/lottie/etfs.json","ETFs CFD (Delayed 15 min.)":"/lottie/etfs.json",Commodities:"/lottie/commodities.json",Bonds:"/lottie/bonds.json"},q=new Set(["ETFs CFD","Cryptocurrency","Stocks","Commodities"]),H=new Set(["Shares CFD","Indices"]),f=l([]),Y=s=>!!I[s]&&!f.value.includes(s),J=s=>{console.error(`Lottie failed to load for group: ${s}, falling back to image`),f.value=[...f.value,s]},L={Forex:"forex.index","Shares CFD":"shares.index","Shares CFD (Delayed 15 min.)":"shares.index",Indices:v()?"indeces-esl.index":"indeces.index",Cryptocurrency:"cryptocurrencies.index","ETFs CFD":"etf.index","ETFs CFD (Delayed 15 min.)":"etf.index",Commodities:v()?"commodities-esl.index":"commodities.index",Bonds:"bonds.index"},k={Forex:["EURUSD","GBPUSD","USDJPY"],"Shares CFD":["AAPL.US","META.US","TSLA.US"],"Shares CFD (Delayed 15 min.)":["AAPL.US","META.US","TSLA.US"],Indices:["UsaTec","Ger40","UsaInd"],Cryptocurrency:["BTCUSD","ETHUSD","ADAUSD"],"ETFs CFD":["QQQ.US","SPY.US","IWM.US"],"ETFs CFD (Delayed 15 min.)":["QQQ.US","SPY.US","IWM.US"],Commodities:["GOLD","Brent","LCrude"],Bonds:["EuBund","EuBTP","EuBbl"]},K=s=>{switch(s){case"Currencies":return"currencies";
2case"Shares CFD":return"shares";case"Shares CFD (Delayed 15 min.)":return"shares";case"Indices":return"indices";case"ETFs CFD":return"etfs";case"ETFs CFD (Delayed 15 min.)":return"etfs";case"Commodities":return"commodities";case"Cryptocurrency":return"cryptocurrency";case"-sb":return"sb";case"Forex":return"forex";case"Bonds":return"bonds";default:return""}};ne(async()=>{Q().then(()=>{m.value=new IntersectionObserver(V,{root:null,threshold:0}),h.value&&m.value.observe(h.value)})}),re(()=>{m.value&&m.value.disconnect()});const c=s=>s;return(s,d)=>{const b=le,X=$,Z=ue,ee=pe;return r(),i("section",{ref_key:"observerTarget",ref:h,class:"container mx-auto flex flex-col pb-6 pt-10 lg:px-8 lg:pb-24 lg:pt-16 2xl:px-12"},[U(D("h2",{"data-motion":"a__u2",class:"a__i animated-text mb-10 ml-0 text-center text-3xl leading-tight sm:mb-14 md:leading-tight lg:mb-[74px] lg:max-w-3xl lg:text-left lg:text-5xl xl:max-w-full rtl:ml-auto rtl:mr-0 rtl:lg:text-right",innerHTML:e(a)("trade-instruments_heading-index",e(g).getTradeInstrumentsGroupCount)},null,8,_e),[[e(T)]]),U((r(),i("div",xe,[e(y)!=null?(r(!0),i(B,{key:0},P(e(y),t=>(r(),i("div",{class:"row-span-3 mb-10 grid grid-cols-1 grid-rows-subgrid gap-y-2.5 lg:mb-0 lg:gap-y-7",key:`trade-instruments-group-${t.display_name}`},[Y(t.display_name)?(r(),F(e(ie),{key:0,src:I[t.display_name],autoplay:!0,loop:!0,class:C(["mr-auto h-[104px] w-[104px] lg:-ml-[18px] lg:h-24 rtl:ml-auto",{"ltr:-ml-[10px] rtl:-mr-[10px]":t.display_name==="Cryptocurrency","ltr:-ml-3 ltr:lg:-ml-[26px] rtl:-mr-3 rtl:lg:-mr-[26px]":e(q).has(t.display_name),"ltr:-ml-3 ltr:lg:-ml-6 rtl:-mr-3 rtl:lg:-mr-6":e(H).has(t.display_name),"rtl:-mr-3 rtl:lg:-mr-6":t.display_name!=="Forex","-ml-[18px] rtl:-mr-[6px] rtl:lg:-mr-[20px]":t.display_name==="Forex","mt-4 lg:mt-0 ltr:-ml-7 rtl:-mr-7":t.display_name==="Commodities"}]),onError:S=>J(t.display_name)},null,8,["src","class","onError"])):(r(),F(b,{key:1,quality:"100",format:"gif",loading:"lazy",width:e(o).isDesktop?128:84.4,height:e(o).isDesktop?96:61.9,class:C(["mr-auto h-[61.9px] w-auto lg:h-24 rtl:ml-auto",{"pt-4":t.display_name==="Commodities","pb-2":t.display_name!=="Commodities","rtl:-mr-8 rtl:lg:-mr-[55px]":t.display_name!=="Forex","rtl:-mr-[6px] rtl:lg:-mr-[20px]":t.display_name==="Forex"}]),src:W[t.display_name]||t.display_name,alt:e(a)(e(p)[c(t.display_name)])},null,8,["width","height","class","src","alt"])),u(X,{to:("useRouteLink"in s?s.useRouteLink:e(R))().routeName(L[t.display_name]),title:e(x)()?("replaceForbiddenWords"in s?s.replaceForbiddenWords:e(ae))(e(a)(e(p)[c(t.display_name)]),e(_),e(w).identifier):e(a)(e(p)[c(t.display_name)]),class:"mb-3 select-none text-base font-bold leading-[1.25] text-blue transition-colors hover:text-skybluehover sm:text-lg md:text-xl lg:mb-0 lg:text-3xl lg:leading-none"},{default:A(()=>[O(G(e(a)(e(p)[c(t.display_name.replace(" (Delayed 15 min.)",""))])),1)]),_:2},1032,["to","title"]),D("ul",ge,[(r(!0),i(B,null,P(t.instruments,S=>(r(),i("li",{key:`trade-instruments-instrument-${S.id}`,class:C(["rounded-[4px] border border-indigo px-2 text-center text-sm leading-[1.325] text-indigo hover:border-[#1976D2] hover:bg-[#1976D2]/5 lg:px-2.5 lg:text-xl lg:leading-[1.325]",{"col-span-full":t.instruments.length==1}])},[u(ce,{instrument:S},null,8,["instrument"])],2))),128)),D("li",ye,[u(Z,{classes:"flex items-center gap-2 text-[13px] leading-[1.56] lg:gap-2.5 lg:text-base hover:text-[#045FB9]","have-animation":!1,link:L[t.display_name],theme:"blue",label:e(a)(`buttons_all-${K(t.display_name)}`),haveAnimation:!1},null,8,["link","label"])])])]))),128)):(r(),i("div",he,[u(ee,{color:"#919191",height:"12.8rem",size:{width:"6rem",height:"6rem"}})]))])),[[e(T)]])],512)}}};export{we 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.