1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34191],{11398:(e,t,a)=>{a.d(t,{B:()=>r,Q:()=>i});var s=a(71041);let i=(0,s.createContext)(void 0),r=(0,s.createContext)(void 0)},19069:(e,t,a)=>{a.d(t,{A:()=>W});var s=a(74429),i=a(68445),r=a(11398),n=a(74253),o=a(85901),l=a(69272),c=a.n(l),d=a(71041),g=a(50123);function h({locale:e,slug:t}){let a=e.toLowerCase(),i=(({locale:e,slug:t})=>{let a,s="https://www.cmcmarkets.com".replace(/\/+$/g,"");return`${s}/${e.toLowerCase()}${!(a=t.replace(/^\/+|\/+$/g,""))||"home"===a||"undefined"===a?"":`/${a}`}`})({locale:e,slug:t});return(0,s.jsx)("link",{rel:"alternate",href:i,hrefLang:a},`${a}-${t||"home"}`)}var m=a(79627);function p({seoData:e}){return e.getDefaultSeoData()}function u({seoData:e}){return e.getSchema()}function f(){let e=["pillar","en-ae","eo","it-it","nb-no","sv-se"],t=[];return m.sM.map(a=>{let s=a.toLowerCase();"eo"===s&&(s="en"),e.includes(s)||t.includes(s)||t.push(s)}),t.sort()}let y={awards:{default:["2023 WINNER No.1 Web Platform ForexBrokers.com Awards","2022 WINNER Best Mobile Trading Platform ADVFN International Financial Awards","2022 WINNER Best CFD Provider Online Money Awards"],en:["2023 WINNER No.1 Web Platform ForexBrokers.com Awards","2022 WINNER Best Mobile Trading Platform ADVFN International Financial Awards","2022 WINNER Best CFD Provider Online Money Awards"]},contactPoint:{default:{contactType:"Client Support",email:"[email protected]",telephone:"020 7170 8200"},en:{contactType:"Client Support",email:"[email protected]",telephone:"020 3003 8080"}},description:{default:"Spread bet and trade CFDs with CMC Markets, a leading global provider with 30 years' experience. Trade on thousands of financial instruments, across FX, indices, commodities, shares, ETFs & treasuries.",en:"Trade with leverage on forex, indices, commodities, cryptos, shares, and more. Choose from over 10,000 instruments on MT4, MT5, TradingView and Next Generation trading platforms."},feedbackPolicy:{default:"https://www.cmcmarkets.com/en-gb/important-information",en:"https://www.cmcmarkets.com/en-gb/important-information"},knowsAbout:{default:["Indices","Forex","Commodities","Shares","ETFs","Treasuries"],en:["Indices","Forex","Commodities","Shares","ETFs","Treasuries","Share Baskets","CFD Trading","Spread Betting","Options Trading"]},legalName:{default:"CMC Markets UK plc",en:"CMC Markets Bermuda Limited"},offices:{default:{addressCountry:"GB",addressLocality:"London",postalCode:"EC3A 7BX",streetAddress:"CMC Markets, 133 Houndsditch"},en:{addressCountry:"BM",addressLocality:"Hamilton",postalCode:"HM11",streetAddress:"No. 9 Par-La-Ville Road, Fifth Floor, S. E. Pearman Building"}},socialMedias:{default:{facebook:"https://www.facebook.com/cmcmarkets.uk/",linkedin:"https://uk.linkedin.com/company/cmc-markets",wikipedia:"https://en.wikipedia.org/wiki/CMC_Markets",x:"https://x.com/CMCMarkets",youtube:"https://www.youtube.com/user/CMCMarketsPLC"},en:{facebook:"https://www.facebook.com/cmcmarkets.uk/",linkedin:"https://uk.linkedin.com/company/cmc-markets",wikipedia:"https://en.wikipedia.org/wiki/CMC_Markets",x:"https://x.com/CMCMarkets",youtube:"https://www.youtube.com/user/CMCMarketsPLC"}}},k=e=>e?.taxonomy?.isLearn===!0||!!(Array.isArray(e.components)&&e?.components?.some(e=>e?.sys?.contentType?.sys?.id==="nLearnArticle"));class w{static getInstance(e,t){if(k(e))return new D(e,t);let a=e?.data;if(a?.metadata?.tags&&Array.isArray(a.metadata.tags)){for(let s of a.metadata.tags)if(s?.sys.id==="faqPage")return new S(e,t)}return e?.data?.sys?.contentType?.sys?.id==="nNewsArticle"?new M(e,t):new A(e,t)}}class C{constructor(e,t){if(this.pageData=e,this.region=this.resolveRegion(this.pageData?.locale),this.contentType=this.assertContentType(),this.nofollow=!0,this.noindex=!0,void 0!==e.seoIndex){let t=e.seoIndex.split(",");this.nofollow="nofollow"==t[1],this.noindex="noindex"==t[0]}else"LearnArticle"!=this.contentType&&(this.nofollow=!1,this.noindex=!1);this.pageData?.data?.fields?.components?.length>0&&(this.components=this.pageData.data.fields.components[0]),this._orgsData=t}
1getAddress(){return this.getSeoDataByKey({key:"offices",region:this.region})}getAdditionalMetaTags(){let e=[];return e.push({name:"twitter:card",content:"summary"}),e.push({name:"twitter:creator",content:"@cmcmarkets"}),e.push({name:"twitter:site",content:"@cmcmarkets"}),e}getAwards(){let e=this.getSeoDataByKey({key:"awards",region:this.region});return!1===Array.isArray(e)||0==e.length?[]:e}getBrand(){return{id:this.getSiteUrlRegional(),type:"organization",logo:this.getSiteLogo(),name:this.getSiteName(),description:this.getPageDescription(),sameAs:this.getSocialMedias()}}getContactPoint(){return this.getSeoDataByKey({key:"contactPoint",region:this.region})}getContentType(){return this.contentType}getCopyrightYear(){return new Date().getFullYear().toString()}getDatePublished(){return this.pageData?.data?.sys?.updatedAt||""}getDefaultImage(){return{url:this.getSiteLogo(),width:424,height:240}}getEntryFirstPublishedDate(){let e=this.pageData?.data?.fields?.components?.[0]?.sys?.contentType?.sys?.id==="nLearnArticle"?this.pageData?.data?.fields?.components?.[0]:this.pageData?.data;return e?.fields?.createdAt||e?.sys?.firstPublishedAt||e?.sys?.createdAt||""}getEntryImages(){return this.components?.fields?.heroImage?.fields?.file?.url?[`https:${this.components?.fields?.heroImage?.fields?.file?.url}`]:[this.getDefaultImage()?.url]}getEntryImage(){return this.components?.fields?.heroImage?.fields?.file?.url?[{url:`https:${this.components?.fields?.heroImage?.fields?.file?.url}`,width:this.components?.fields?.heroImage?.fields?.file?.details?.image?.width||724,height:this.components?.fields?.heroImage?.fields?.file?.details?.image?.height||483}]:[this.getDefaultImage()]}getEntryPublishedDate(){let e=this.pageData?.data?.fields?.components?.[0]?.sys?.contentType?.sys?.id==="nLearnArticle"?this.pageData?.data?.fields?.components?.[0]:this.pageData?.data;return e?.fields?.updatedAt||e?.sys?.publishedAt||e?.sys?.updatedAt||""}getFeedbackPolicy(){return this.getSeoDataByKey({key:"feedbackPolicy",region:this.region})}getNoFollowStatus(){return this.nofollow}getNoIndexStatus(){return this.noindex}getKeywords(){return console.log("seo-service SeoHelper::getKeywords() not implemented yet!"),""}getKnowsAbout(){return this.getSeoDataByKey({key:"knowsAbout",region:this.region})}getPageDescription(){return this.pageData.description}getPageTitle(){return this.pageData.title}getPublisher(){return{"@type":"Organization",name:this.getSiteName(),logo:this.getSiteLogo()}}getSeoDataByKey({key:e,region:t}){let a,s="en-gb"==(t=this.mapRegion(t))?"default":t;try{if(!this._orgsData||void 0===this._orgsData||null==this._orgsData)throw Error("orgsData is not set");let t=this._orgsData[e];if(void 0===t)throw Error(`orgData key: data for ${e} is not defined.`);if(a=t[s],void 0===a)throw Error(`orgData key: data for ${e} was not found for ${s} region.`)}catch(t){"string"==typeof t?console.error(`orgData key: ${e} region: ${s} not found. error type was string.`):t instanceof Error&&console.error(`orgData key: ${e} region: ${s} not found. ${t.message}`)}return a}getSiteDescription(){let e=this.getSeoDataByKey({key:"description",region:this.region});return"string"==typeof e?e:""}getSiteLogo(){return"https://cdn.cmcmarkets.com/global/images/logo-cmc-markets.png"}getSiteName(e="non-legal"){return"legal"===e?this.getSeoDataByKey({key:"legalName",region:this.region}):"CMC Markets"}getSiteUrlRegional(){return"https://www.cmcmarkets.com/"+this.region}getSocialMedias(){return Object.values(this.getSeoDataByKey({key:"socialMedias",region:this.region}))}mapRegion(e){return"eo"==e?"en":e}resolveRegion(e){let t="string"==typeof e&&e.trim()?e.toLocaleLowerCase():"en-gb";return this.mapRegion(t)}assertContentType(){return k(this.pageData)?"LearnArticle":this.pageData?.data?.sys?.contentType?.sys?.id==="nNewsArticle"?"NewsArticle":"WebPage"}renderDefaultSeoData(e,t,a){let i="";return(this.getNoIndexStatus()||this.getNoFollowStatus())&&(i=`${this.getNoIndexStatus()?"noindex":"index"}, ${this.getNoFollowStatus()?"nofollow":"follow"}`),(0,s.jsxs)(c(),{children:[(0,s.jsx)("title",{children:this.getPageTitle()}),(0,s.jsx)("meta",{name:"description",content:this.getPageDescription()}),(0,s.jsx)("link",{rel:"canonical",href:a}),i&&(0,s.jsx)("meta",{name:"robots",content:i}),(0,s.jsx)("meta",{property:"og:title",content:e?.title}
1),(0,s.jsx)("meta",{property:"og:description",content:e?.description}),(0,s.jsx)("meta",{property:"og:url",content:e?.url}),(0,s.jsx)("meta",{property:"og:type",content:e?.type||"website"}),function({slug:e,localisedSlugs:t}){return"home"===e||""===e||"/"===e?f().map(t=>h({locale:t,slug:e})):t?Object.entries(t).map(([e,t])=>f().includes(e.toLowerCase())?h({locale:e.toLowerCase(),slug:t}):(0,s.jsx)(s.Fragment,{})):[]}({slug:this.pageData.slug,localisedSlugs:this.pageData?.data?.fields?.nPageMetadata?.fields?.metadata?.slugs??void 0}),e?.siteName&&(0,s.jsx)("meta",{property:"og:site_name",content:e?.siteName}),e?.images&&e.images.length>0&&(0,s.jsx)("meta",{property:"og:image",content:e.images[0]}),e?.images&&e.images.length>0&&e.images[0].width&&(0,s.jsx)("meta",{property:"og:image:width",content:e.images[0].width.toString()}),e?.images&&e.images.length>0&&e.images[0].height&&(0,s.jsx)("meta",{property:"og:image:height",content:e.images[0].height.toString()}),t.map((e,t)=>(0,s.jsx)("meta",{...e},t))]})}getBreadCrumbSchema(e=""){let t=""!==e?`${e}/${this.pageData.slug}`:this.pageData.slug;if("home"===t||""===t||"/"===t)return(0,s.jsx)(s.Fragment,{});let a=[{name:"Home",item:this.getSiteUrlRegional()}],i=t.split("/").filter(e=>""!==e);return i.map(e=>{a.push({name:e.charAt(0).toUpperCase()+e.slice(1).replace(/-/g," "),item:`${this.get
1SiteUrlRegional()}/${i.slice(0,a.length).join("/")}`})}),(0,s.jsx)(o.gk,{items:a})}getInPageFaqs(){let e=[];return this.pageData?.data?.fields?.components&&this.pageData.data.fields.components.forEach(t=>{let a=t?.fields?.slots||t?.fields?.slot1||t?.fields?.slot2||t?.fields?.faqs;Array.isArray(a)&&a.forEach(t=>{Array.isArray(t?.fields?.slots)?t.fields.slots.forEach(t=>{this.extractFaqFromSlot(t,e)}):this.extractFaqFromSlot(t,e)}),this.extractFaqFromSlot(t,e)}),e}extractFaqFromSlot(e,t){e?.sys?.contentType?.sys?.id==="nFaq"&&e?.fields?.question&&e?.fields?.answer&&t.push({question:e.fields.question,answer:(0,n.l)(e.fields.answer)})}}class b extends C{constructor(e,t){super(e,t),this.author=this.components?.fields?.author}getArticleAuthor(){return void 0==this.author||void 0==this.author.fields?this.getDefaultAuthor():[{name:this.author.fields.title}]}getArticleSection(){return void 0==this.pageData.taxonomy?"undefined":this.pageData.taxonomy.title}getAuthors(){return this.author?.fields?.title==void 0?this.getDefaultAuthor():[{name:this.author?.fields?.title}]}getContentBody(){if(void 0==this.components)return"";let e=(0,n.l)(this.components?.fields?.articleBody);return e.replace(/{{{(.*?)}}}/g,"").trim()}getDefaultAuthor(){return{name:"CMC Markets",url:this.getSiteUrlRegional(),"@type":"Organization"}}}class D extends b{constructor(e,t){super(e,t)}getCanonicalUrl(){return this.getSiteUrlRegional()+"/"+this.pageData.slug}getDefaultSeoData(){let e=this.getOpenGraphData(),t=this.getAdditionalMetaTags(),a=this.getCanonicalUrl();return this.renderDefaultSeoData(e,t,a)}getOpenGraphData(){return{url:this.getCanonicalUrl(),title:this.getPageTitle(),description:this.getPageDescription(),images:this.getEntryImages()||[],siteName:this.getSiteName(),type:"article"}}getSchema(){let e=this.getInPageFaqs();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.dp,{author:this.getAuthors(),dateModified:this.getEntryPublishedDate(),datePublished:this.getEntryFirstPublishedDate(),description:this.getPageDescription(),image:this.getEntryImages(),publisher:this.getPublisher(),headline:this.getPageTitle(),url:this.getCanonicalUrl()}),e.length>0&&(0,s.jsx)(o.bl,{questions:e}),this.getBreadCrumbSchema()]})}}class M extends b{constructor(e,t){super(e,t),this.newsPrefix=g.r[this.pageData.locale]}
1getCanonicalUrl(){return`${this.getSiteUrlRegional()}/${this.newsPrefix}/${this.pageData.slug}`}getDefaultSeoData(){let e=this.getOpenGraphData(),t=this.getAdditionalMetaTags(),a=this.getCanonicalUrl();return this.renderDefaultSeoData(e,t,a)}getOpenGraphData(){return{url:this.getCanonicalUrl(),title:this.getPageTitle(),description:this.getPageDescription(),images:this.getEntryImages()||[],siteName:this.getSiteName(),type:"article"}}getSchema(){let e=this.getInPageFaqs();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.dp,{author:this.getAuthors(),dateModified:this.getEntryPublishedDate(),datePublished:this.getEntryFirstPublishedDate(),description:this.getPageDescription(),image:this.getEntryImages(),headline:this.getPageTitle(),publisher:this.getPublisher(),url:this.getCanonicalUrl(),mainEntityOfPage:{"@type":"WebPage","@id":this.getCanonicalUrl()}}),e.length>0&&(0,s.jsx)(o.bl,{questions:e}),this.getBreadCrumbSchema(this.newsPrefix)]})}}class S extends b{constructor(e,t){super(e,t)}getCanonicalUrl(){return"home"==this.pageData.slug||"undefined"==this.pageData.slug?this.getSiteUrlRegional():this.getSiteUrlRegional()+"/"+this.pageData.slug}getDefaultSeoData(){let e=this.getOpenGraphData(),t=this.getAdditionalMetaTags(),a=this.getCanonicalUrl();return this.renderDefaultSeoData(e,t,a)}getOpenGraphData(){return{url:this.getCanonicalUrl(),title:this.getPageTitle(),description:this.getPageDescription(),images:this.getEntryImages()||[],siteName:this.getSiteName()}}getSchema(){let e=this.pageData?.components?.[0]?.fields?.slot2?.[0]?.fields?.slots,t=[];return Array.isArray(e)&&e.forEach(e=>{this.extractFaqFromSlot(e,t)}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.bl,{questions:t}),this.getBreadCrumbSchema()]})}}class A extends C{constructor(e,t){super(e,t)}getCanonicalUrl(){return"home"==this.pageData.slug||"undefined"==this.pageData.slug?this.getSiteUrlRegional():this.getSiteUrlRegional()+"/"+this.pageData.slug}getDefaultSeoData(){let e=this.getOpenGraphData(),t=this.getAdditionalMetaTags(),a=this.getCanonicalUrl();return this.renderDefaultSeoData(e,t,a)}getOpenGraphData(){return{url:this.getCanonicalUrl(),title:this.getPageTitle(),description:this.getPageDescription(),images:this.getEntryImages()||[],siteName:this.getSiteName()}}getSchema(){let e=this.getInPageFaqs();if(!("home"==this.pageData.slug&&["en","en-gb"].includes(this.region)))return(0,s.jsxs)(s.Fragment,{children:[this.getBreadCrumbSchema(),e.length>0&&(0,s.jsx)(o.bl,{questions:e})]});{let t=this.getContactPoint(),a=this.getAddress(),i={"@context":"https://schema.org","@type":"Organization",name:this.getSiteName(),legalName:this.getSiteName("legal"),description:this.getSiteDescription(),url:this.getSiteUrlRegional(),logo:this.getSiteLogo(),foundingDate:"1989",sameAs:this.getSocialMedias(),address:{"@type":"PostalAddress",...a},contactPoint:{"@type":"ContactPoint",...t}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c(),{children:(0,s.jsx)("script",{id:"organization-jsonld-Organization",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(i)}})}),this.getBreadCrumbSchema(),e.length>0&&(0,s.jsx)(o.bl,{questions:e})]})}}}let x=["\xb9","\xb2","\xb3","â´","âµ","â¶","â·","â¸","â¹","\xb9â°","\xb9\xb9","\xb9\xb2","\xb9\xb3","\xb9â´","\xb9âµ"],P=()=>{let[e,t]=(0,d.useState)([]),[a,i]=(0,d.useState)(-1),[r,n]=(0,d.useState)(!1),o=(0,d.useCallback)(e=>{let t=[];return e.nodeType===Node.TEXT_NODE?x.forEach(a=>{e.textContent?.includes(a)&&t.push(e.parentElement)}):e.nodeType===Node.ELEMENT_NODE&&e.childNodes.forEach(e=>{t=t.concat(o(e))}),t},[]);(0,d.useEffect)(()=>{t(o(document.body))},[o,a]);let l=(0,d.useCallback)(t=>{i(a=>"increment"===t?Math.min(a+1,e.length-1):Math.max(a-1,0)),n(!0)},[e.length]),c=(0,d.useCallback)(()=>{document.querySelectorAll(".bg-yellow-500").forEach(e=>{e.classList.remove("bg-yellow-500")}),n(!1)},[]);return((0,d.useEffect)(()=>{let e=e=>{"ArrowRight"===e.key?l("increment"):"ArrowLeft"===e.key?l("decrement"):"z"===e.key&&c()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[l,c]),(0,d.useEffect)(()=>{e.length>0&&e.forEach((e,t)=>{t===a?(e.classList.add("bg-yellow-500"),e.scrollIntoView({behavior:"smooth",block:"center"})):e.classList.remove("bg-yellow-500")})},[a,e]),m.O_)?null:(0,s.jsx)(s.Fragment,{children:r&&e.length>0&&(0,s.jsxs)("div",{className:"fixed bottom-4 left-0 right-0 z-50 mx-4 max-w-2xl rounded border border-white-90 bg-white/80 p-2 text-center text-xs xs:mx-auto",children:[(0,s.jsxs)("p",{className:"mb-0",children:["Use"," ",(0,s.jsx)("kbd",{className:"cursor-pointer rounded border border-gray-400 px-1 py-0.5",onClick:()=>{l("decrement")},children:"â"})," ","and"," ",(0,s.jsx)("kbd",{className:"cursor-pointer rounded border border-gray-400 px-1 py-0.5",onClick:()=>{l("increment")},children:"â"})," ","keys to navigate through dynamic footnotes. Press"," ",(0,s.jsx)("kbd",{className:"cursor-pointer rounded border border-gray-400 px-1 py-0.5",onClick:()=>{c()},children:"z"})," ","to close."]}),(0,s.jsxs)("p",{children:["Currently viewing footnote ",(0,s.jsx)("strong",{children:a+1})," of"," ",(0,s.jsx)("strong",{children:e.length})]})]})})};var T=a(30806);a(95972);var E=a(73875),N=a(28921);let F={"light-hard":"dark-hard","light-medium":"dark-medium","light-soft":"dark-soft","dark-hard":"light-hard","dark-medium":"light-medium","dark-soft":"light-soft","white-100":"navy-100","white-90":"navy-70","white-85":"dark-soft","navy-100":"white-100","navy-70":"white-90","transparent-light":"transparent-dark","transparent-dark":"transparent-light","light-blur":"dark-blur","dar
1k-blur":"light-blur"},I={spectre:"default",default:"spectre",invest:"invest-dark","invest-dark":"invest",securities:"securities-dark","securities-dark":"securities"};function L(){let{flip:e}=function(e={}){let{themeAttribute:t="data-theme",brandAttribute:a="data-brand",selector:s="[data-theme]",themeLockAttribute:i="data-theme-lock",brandLockAttribute:r="data-brand-lock",flipBrand:n=!0}=e,o=e=>e?F[e]??null:null,l=e=>e?I[e]??null:null;return{flip:(0,d.useCallback)(()=>{let e="u">typeof document?document:null;e&&e.querySelectorAll(s).forEach(e=>{if("nTitle"===e.getAttribute("component-name")){let t=e.closest('[component-name="nBanner"]');if(null!==t&&(t?.querySelector("img.n-banner-cover")||t?.querySelector(".n-banner-cover>video")))return}if("menu_v3"!==e.getAttribute("component-name")){if(!e.hasAttribute(i)){let a=o(e.getAttribute(t));a&&e.setAttribute(t,a)}if(n&&!e.hasAttribute(r)&&e.hasAttribute(a)){let t=l(e.getAttribute(a));t&&e.setAttribute(a,t)}}})},[void 0,s,t,a,i,r,n]),flipElement:(0,d.useCallback)(e=>{if(e){if(!e.hasAttribute(i)){let a=o(e.getAttribute(t));a&&e.setAttribute(t,a)}if(n&&!e.hasAttribute(r)&&e.hasAttribute(a)){let t=l(e.getAttribute(a));t&&e.setAttribute(a,t)}}},[t,a,i,r,n])}}();return(0,s.jsx)("button",{type:"button","aria-label":"Toggle theme",onClick:()=>e(),className:"flex items-center justify-center w-10 h-10 rounded-full bg-gray-100 dark:bg-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 transition-colors border border-gray-200 dark:border-gray-700 focus:outline-none focus:ring-2 focus:ring-gray-400 fixed top-32 left-10 z-50",children:(0,s.jsx)(N.default,{className:"w-6 h-6 text-gray-700 dark:text-gray-200 transition-colors"})})}function v({helper:e}){return(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Organization",name:e.getSiteName(),url:e.getSiteUrlRegional(),logo:e.getSiteLogo(),description:e.getSiteDescription(),legalName:e.getSiteName("legal"),foundingDate:"1989",sameAs:e.getSocialMedias(),address:{"@type":"PostalAddress",...e.getAddress()},brand:e.getBrand()})}},"org-schema")}function j({helper:e}){let t={"@context":"https://schema.org","@type":e.isNews()?"NewsArticle":"Article",headline:e.getPageTitle(),description:e.getPageDescription(),url:e.getCanonicalUrl(),datePublished:e.getEntryFirstPublishedDate(),dateModified:e.getEntryPublishedDate(),publisher:e.getPublisher()},a=e.getEntryImages();a.length>0&&(t.image=a[0]);let i=e.getAuthor();return i&&void 0!==i.name?t.author={"@type":"Person",name:i.name,image:i.image}:t.author={"@type":"Organization",name:e.getSiteName(),logo:{"@type":"ImageObject",url:e.getSiteLogo()}},e.isNews()&&(t.mainEntityOfPage={"@type":"WebPage","@id":e.getCanonicalUrl()}),(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}},"article-schema")}function B({helper:e}){let t=e.getBreadcrumbItems();if(0===t.length)return(0,s.jsx)(s.Fragment,{});let a={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:t.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.name,item:e.item}))};return(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}},"breadcrumb-schema")}function _(e){if(0===e.length)return(0,s.jsx)(s.Fragment,{});let t={"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))};return(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}},"faq-schema")}function R({helper:e}){return _(e.getPageFaqItems())}function $({helper:e}){return _(e.getInPageFaqItems())}function O({helper:e}){let t=e.getImageFromProfilePage(),a={"@context":"https://schema.org","@type":"ProfilePage",mainEntity:{"@type":"Person","@id":e.getCanonicalUrl(),name:e.getPageTitle(),url:e.getCanonicalUrl()}};return t&&t?.length>0?a.mainEntity.image=t:a.mainEntity.image=e.getSiteLogo(),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}},"person-schema")})}let U=JSON.parse('{"awards":{"default":[],"en":["2023 WINNER No.1 Web Platform ForexBrokers.com Awards","2022 WINNER Best Mobile Trading Platform ADVFN International Financial Awards","2022 WINNER Best CFD Provider Online Money Awards"],"en-gb":["2023 WINNER No.1 Web Platform ForexBrokers.com Awards","2022 WINNER Best Mobile Trading Platform ADVFN International Financial Awards","2022 WINNER Best CFD Provider Online Money Awards"]},"contactPoint":{"default":{"contactType":"Client Support","email":"[email protected]","telephone":"020 7170 8200"},"ar":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8078"},"bn":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8079"},"de-at":{"contactType":"Client Support","email":"[email protected]","telephone":"+49 69 22 22 440 44"},"de-de":{"contactType":"Client Support","email":"[email protected]","telephone":"+49 69 22 22 440 44"},"en":{"contactType":"Client Support","email":"[email protected]","telephone":"020 3003 8080"},"en-ca":{"contactType":"Client Support","email":"[email protected]","telephone":"+1 866 884 2608"},"en-de":{"contactType":"Client Support","email":"[email protected]","telephone":"+49 69 22 22 440 44"},"en-gb":{"contactType":"Client Support","email":"[email protected]","telephone":"020 7170 8200"},"en-ie":{"contactType":"Client Support","email":"[email protected]","telephone":"+353(0)1 256 3000"},"en-sg":{"contactType":"Client Support","email":"[email protected]","telephone":"1800 559 6000"},"es":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8081"}
1,"es-es":{"contactType":"Client Support","email":"[email protected]","telephone":"+34 91 114 07 05"},"fr":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8082"},"fr-ca":{"contactType":"Client Support","email":"[email protected]","telephone":"+1 866 884 2608"},"hi":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8083"},"id":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8084"},"ko":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8085"},"ms":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8086"},"pl-pl":{"contactType":"Client Support","email":"[email protected]","telephone":"+48 22 160 56 00"},"pt":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8087"},"th":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8088"},"tl":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8089"},"tr":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8090"},"vi":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8091"},"zh":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8092"},"zh-ca":{"contactType":"Client Support","email":"[email protected]","telephone":"+1 866 884 2608"},"zh-hk":{"contactType":"Client Support","email":"[email protected]","telephone":"+44 (0)20 3003 8093"},"zh-nz":{"contactType":"Client Support","email":"[email protected]","telephone":"0800 26 26 27"}},"description":{"default":"Spread bet and trade CFDs with CMC Markets, a leading global provider with 30 years\' experience. Trade on thousands of financial instruments, across FX, indices, commodities, shares, ETFs & treasuries.","en":"Trade with leverage on forex, indices, commodities, cryptos, shares, and more. Choose from over 10,000 instruments on MT4, MT5, TradingView and Next Generation trading platforms.","en-ca":"Start trading on 11,000+ instruments with Canada\'s trusted CFD broker, CMC Markets. CIRO-regulated, CAD accounts and bilingual support offered.","en-gb":"Spread bet and trade CFDs with CMC Markets, a leading global provider with 30 years\' experience. Trade on thousands of financial instruments, across FX, indices, commodities, shares, ETFs & treasuries."},"feedbackPolicy":{"default":"","en-gb":"https://www.cmcmarkets.com/en-gb/important-information"},"knowsAbout":{"default":[],"en":["Indices","Forex","Commodities","Shares","ETFs","Treasuries","Share Baskets","CFD Trading","Spread Betting","Options Trading"],"en-gb":["Indices","Forex","Commodities","Shares","ETFs","Treasuries"]},"legalName":{"default":"CMC Markets UK plc","alcatraz":"CMC Markets Bermuda Limited","de-at":"CMC Markets Germany GmbH","de-de":"CMC Markets Germany GmbH","en":"CMC Markets Bermuda Limited","en-ca":"CMC Markets Canada Inc.","en-de":"CMC Markets Germany GmbH","en-gb":"CMC Markets UK plc","en-ie":"CMC Markets Germany GmbH","en-sg":"CMC Markets Singapore Pte. Ltd.","es-es":"CMC Markets Germany GmbH","fr-ca":"CMC Markets Canada Inc.","pl-pl":"CMC Markets Germany GmbH","zh-ca":"CMC Markets Canada Inc.","zh-nz":"CMC Markets NZ Limited"},"offices":{"default":{"addressCountry":"GB","addressLocality":"London","postalCode":"EC3A 7BX","streetAddress":"CMC Markets, 133 Houndsditch"},"alcatraz":{"addressCountry":"BM","addressLocality":"Hamilton","postalCode":"HM11","streetAddress":"9 Par-la-Ville Road, Fifth floor of S. E. Pearman Building"},"de-at":{"addressCountry":"DE","addressLocality":"Frankfurt am Main","postalCode":"60311","streetAddress":"Garden Tower, Neue Mainzer Str. 46-50"},"de-de":{"addressCountry":"DE","addressLocality":"Frankfurt am Main","postalCode":"60311","streetAddress":"Garden Tower, Neue Mainzer Str. 46-50"},"en":{"addressCountry":"BM","addressLocality":"Hamilton","postalCode":"HM11","streetAddress":"No. 9 Par-La-Ville Road, Fifth Floor, S. E. Pearman Bu
1ilding"},"en-ca":{"addressCountry":"CA","addressLocality":"Toronto","postalCode":"M5J 0E7","streetAddress":"CMC Markets Canada, 81 Bay Street, Suite 3550"},"en-de":{"addressCountry":"DE","addressLocality":"Frankfurt am Main","postalCode":"60311","streetAddress":"Garden Tower, Neue Mainzer Str. 46-50"},"en-gb":{"addressCountry":"GB","addressLocality":"London","postalCode":"EC3A 7BX","streetAddress":"CMC Markets, 133 Houndsditch"},"en-ie":{"addressCountry":"GB","addressLocality":"London","postalCode":"EC3A 7BX","streetAddress":"CMC Markets, 133 Houndsditch"},"en-sg":{"addressCountry":"SG","addressLocality":"Singapore","postalCode":"018916","streetAddress":"2 Central Boulevard, 25-03, IOI Central Boulevard Towers"},"es-es":{"addressCountry":"ES","addressLocality":"Madrid","postalCode":"28046","streetAddress":"Paseo de la Castellana, 40, 9\xaa planta"},"fr-ca":{"addressCountry":"CA","addressLocality":"Toronto","postalCode":"M5J 0E7","streetAddress":"81 Bay Street, Suite 3550"},"pl-pl":{"addressCountry":"PL","addressLocality":"Warsaw","postalCode":"00-113","streetAddress":"ul. Emilii Plater 53"},"zh-ca":{"addressCountry":"CA","addressLocality":"Toronto","postalCode":"M5J 0E7","streetAddress":"81 Bay Street, Suite 3550"},"zh-nz":{"addressCountry":"NZ","addressLocality":"Auckland","postalCode":"1010","streetAddress":"Level 39, ANZ Centre, 23-29 Albert Street"}},"socialMedias":{"default":{},"alcatraz":{"linkedin":"https://www.linkedin.com/company/cmc-markets/","wikipedia":"https://en.wikipedia.org/wiki/CMC_Markets","x":"https://x.com/CMCMarkets","youtube":"https://www.youtube.com/@CMCMarketsPLC"},"de-at":{"facebook":"https://www.facebook.com/CMCMarkets.Deutschland/","linkedin":"https://www.linkedin.com/company/cmc-markets/","wikipedia":"https://en.wikipedia.org/wiki/CMC_Markets","x":"https://x.com/CMCMarkets_DE","youtube":"https://x.com/CMCMarkets_DE"},"de-de":{"facebook":"https://www.facebook.com/CMCMarkets.Deutschland/","linkedin":"https://www.linkedin.com/company/cmc-markets/","wikipedia":"https://en.wikipedia.org/wiki/CMC_Markets","x":"https://x.com/CMCMarkets_DE","youtube":"https://x.com/CMCMarkets_DE"},"en":{"facebook":"https://www.facebook.com/cmcmarkets.uk/","linkedin":"https://uk.linkedin.com/company/cmc-markets","wikipedia":"https://en.wikipedia.org/wiki/CMC_Markets","x":"https://x.com/CMCMarkets","youtube":"https://www.youtube.com/user/CMCMarketsPLC"},"en-ca":{"facebook":"https://www.facebook.com/cmcmarketscanada/","linkedin":"https://www.linkedin.com/company/cmc-markets-ca","wikipedia":"https://en.wikipedia.org/wiki/CMC_Markets","x":"https://x.com/CMCMarkets_CA","youtube":"https://www.youtube.com/user/CMCMarketsCanada"},"en-de":{"facebook":"https://www.facebook.com/CMCMarkets.Deutschland/","linkedin":"https://www.linkedin.com/company/cmc-markets/","wikipedia":"https://en.wikipedia.org/wiki/CMC_Markets","x":"https://x.com/CMCMarkets_DE","youtube":"https://www.youtube.com/@CMCMarketsDE"},"en-gb":{"facebook":"https://www.facebook.com/cmcmarkets.uk/","linkedin":"https://uk.linkedin.com/company/cmc-markets","wikipedia":"https://en.wikipedia.org/wiki/CMC_Markets","x":"https://x.com/CMCMarkets","youtube":"https://www.youtube.com/user/CMCMarketsPLC"},"en-ie":{"facebook":"https://www.facebook.com/cmcmarkets.uk/","linkedin":"https://www.linkedin.com/company/cmc-markets/","wikipedia":"https://en.wikipedia.org/wiki/CMC_Markets","x":"https://x.com/CMCMarkets","youtube":"https://www.youtube.com/@CMCMarketsIreland"},"en-sg":{"facebook":"https://www.facebook.com/cmcmarketssingapore/","instagram":"https://www.instagram.com/cmcsg/","linkedin":"https://www.linkedin.com/company/cmc-singapore/","wikipedia":"https://en.wikipedia.org/wiki/CMC_Markets","x":"https://x.com/CMCMarketsSG","youtube":"https://www.youtube.com/@CMCMarketsSingapore"},"es-es":{"facebook":"https://www.facebook.com/CMCMarketsSpain/","linkedin":"https://www.linkedin.com/company/cmc-markets/","wikipedia":"https://en.wikipedia.org/wiki/CMC_Markets","x":"https://x.com/CMCMarkets"},"fr-ca":{"facebook":"https://www.facebook.com/cmcmarketscanada/","linkedin":"https://www.linkedin.com/company/cmc-markets-ca","wikipedia":"https://en.wikipedia.org/wiki/CMC_Markets","x":"https://x.com/CMCMarkets_CA","youtube":"https://www.youtube.com/@CMCMarketsCanada"},"pl-pl":{"facebook":"https://www.facebook.com/CMCMarketsPolska/","instagram":"https://www.instagram.com/cmcmarkets_pl/","linkedin":"https://www.linkedin.com/company/cmc-markets/","wikipedia":"https://en.wikipedia.org/wiki/CMC_Markets","x":"https://x.com/CMCMarkets_PL","youtube":"https://www.youtube.com/@CMCMarketsPolska"},"zh-ca":{"facebook":"https://www.facebook.com/cmcmarketscanada/","linkedin":"https://www.linkedin.com/company/cmc-markets-ca","wikipedia":"https://en.wikipedia.org/wiki/CMC_Markets","x":"https://x.com/CMCMarkets_CA","youtube":"https://www.youtube.com/@CMCMarketsCanada"},"zh-nz":{"facebook":"https://www.facebook.com/CMCMarketsANZ/","linkedin":"https://www.linkedin.com/company/cmc-markets-apac/","wikipedia":"https://en.wikipedia.org/wiki/CMC_Markets","x":"https://x.com/CMCMarkets","youtube":"https://www.youtube.com/@CMCMarketsCanada"}}}');var q=a(16023);function z({pageData:e}){let t=new G(U,e.pageData?.locale),a=new H(e,t),i=a.getSchemaTypes();return 0===i.length?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(s.Fragment,{children:i.map(e=>{switch(e){case"Organization":return(0,s.jsx)(v,{helper:a},e);case"LearnArticle":case"NewsArticle":return(0,s.jsx)(j,{helper:a},e);case"FAQ":return(0,s.jsx)(R,{helper:a},e);case"InPageFAQ":return(0,s.jsx)($,{helper:a},e);case"Breadcrumb":return(0,s.jsx)(B,{helper:a},e);case"ProfilePage":return(0,s.jsx)(O,{helper:a},e);default:return null}})})}class H{constructor(e,t){this.seoData=e,this.staticDataProvider=t,this.regionsWithOrgSchema=f(),this.mappedRegion=H.getMappedRegion(this.seoData.pageData?.locale)}getSchemaTypes(){let e=[];return this.isRegionWithOrgSchema()&&this.isHomePage()&&e.push("Organization"),this.isLearnPage()&&e.push("LearnArticle"),this.isNews()&&e.push("NewsArticle"),this.isFaqPage()&&e.push("FAQ"),this.isHomePage()||e.push("Breadcrumb"),this.hasInPageFaqs()&&e.push("InPageFAQ"),this.isProfilePage()&&e.push("ProfilePage"),e}isHomePage(){let e=this.seoData.pageData?.slug;return"home"===e||""===e||"/"===e}isFaqPage(){let e=this.seoData.pageData?.data;if(e?.metadata?.tags&&Array.isArray(e.metadata.tags)){for(let t of e.metadata.tags)if(t?.sys?.id==="faqPage")return!0}return!1}isLearnPage(){let e=this.seoData?.components?.fields?.taxonomy?.isLearn;return"boolean"==typeof e?e:!!(Array.isArray(this.seoData.pageData?.components)&&this.seoData.pageData.components.some(e=>e?.sys?.contentType?.sys?.id==="nLearnArticle"))}isNews(){return this.seoData.pageData?.data?.sys?.contentType?.sys?.id==="nNewsArticle"}
1isProfilePage(){return this.seoData.pageData?.data?.fields?.internalName?.includes("Analyst")===!0}isArticleContent(){return"author"in this.seoData}getAuthor(){let e={};return this.isArticleContent()?this.seoData.author?.fields!==void 0&&this.seoData.author?.fields?.title!==void 0&&(e.name=this.seoData.author.fields.title,this.seoData.author?.fields.image!=void 0&&(e.image=`https:${this.seoData.author?.fields.image.fields.file.url}`)):console.error("getAuthor: seoData is not ArticleContent, returning empty object"),e}getDefaultAuthor(){return{name:"CMC Markets",url:this.getSiteUrlRegional(),"@type":"Organization"}}hasAuthors(){if(this.isNews()||this.isLearnPage()){let e=this.getAuthor();return void 0!==e.title&&void 0!==e.image}return!1}isRegionWithOrgSchema(){return this.regionsWithOrgSchema.includes(this.mappedRegion)}static getMappedRegion(e){return e?"eo"===e?"en":e.toLowerCase():"en-gb"}getCanonicalUrl(){let e=this.seoData.pageData?.slug;if(this.isHomePage())return this.getSiteUrlRegional();if(this.isNews()){let t=this.getNewsPrefix();return t?`${this.getSiteUrlRegional()}/${t}/${e}
1`:`${this.getSiteUrlRegional()}/${e}`}return`${this.getSiteUrlRegional()}/${e}`}getNewsPrefix(){let e=this.seoData.pageData?.locale;if(!e)return;let t=e.includes("-")?`${e.split("-")[0]}-${e.split("-")[1].toUpperCase()}`:e;return g.r[t]}getEntryPublishedDate(){return this.seoData.pageData?.data?.fields?.updatedAt||this.seoData.pageData?.data?.sys?.publishedAt||this.seoData.pageData?.data?.sys?.updatedAt||""}getEntryFirstPublishedDate(){return this.seoData.pageData?.data?.fields?.createdAt||this.seoData.pageData?.data?.sys?.firstPublishedAt||this.seoData.pageData?.data?.sys?.createdAt||""}getContentBody(){if(this.seoData.pageData?.components==void 0)return"";let e=(0,n.l)(this.seoData.pageData?.components[0].fields?.articleBody);return e.replace(/{{{(.*?)}}}/g,"").trim()}getEntryImage(){if(this.isArticleContent()){let e=this.getContentBody();if(e){let t=[...e.matchAll(/<img[^>]+src="([^">]+)"/g)];if(t.length>0)return t.map(e=>e[1])}}return this.seoData.pageData?.data?.fields?.heroImage?.fields?.file?.url?[{url:`https:${this.seoData.pageData?.data?.fields?.heroImage?.fields?.file?.url}`,width:this.seoData.pageData?.data?.fields?.heroImage?.fields?.file?.details?.image?.width||724,height:this.seoData.pageData?.data?.fields?.heroImage?.fields?.file?.details?.image?.height||483}
1]:[this.getSiteLogo()]}getEntryImages(){let e=this.seoData.components;if(this.isProfilePage())return this.getImageFromProfilePage();if(this.isNews()||this.isLearnPage())return this.getImagesFromArticleBody();if(this.getEntryImage(),Array.isArray(e)){for(let t of e)if(t.sys?.contentType?.sys?.id==="nTile"&&t.fields?.image?.fields?.file?.url)return[`https:${t.fields.image.fields.file.url}`]}return this.seoData.pageData?.components[0]&&this.seoData.pageData?.components[0].fields&&this.seoData.pageData?.components[0].fields?.heroImage?this.seoData.pageData?.components[0].fields?.heroImage?.fields?.file?.url?[`https:${this.seoData.pageData?.components[0].fields?.heroImage?.fields?.file?.url}`]:[this.getSiteLogo()]:this.getSiteLogo()}getImagesFromArticleBody(){let e=[];if(0===(this.seoData.components?.fields?.articleBody?.content||[]).length)return e;for(let t of this.seoData.components.fields.articleBody.content){if("embedded-asset-block"!==t.nodeType)continue;let a=t.data?.target?.fields?.file?.url||"";a.length>0&&e.push(`https:${a}`)}return e}getImageFromProfilePage(){let e=this.seoData.components;if(this.isProfilePage()&&void 0!==e.fields.slot2){let t=e.fields.slot2.fields?.asset?.fields?.file?.url;if("nAssetWrapper"===e.fields.slot2.sys.contentType.sys.id&&t)return`https:${t}`}return null}getAddress(){return this.staticDataProvider.getSeoDataByKey("offices",this.mappedRegion)}getAwards(){return this.staticDataProvider.getSeoDataByKey("awards",this.mappedRegion)}getBrand(){return{id:this.getSiteUrlRegional(),type:"organization",logo:this.getSiteLogo(),name:this.getSiteName(),description:this.getPageDescription()}}getPageDescription(){return this.seoData.pageData?.data?.fields?.description||""}getPageTitle(){return this.seoData.pageData?.data?.fields?.title||""}getPublisher(){return{"@type":"Organization",name:this.getSiteName(),logo:this.getSiteLogo()}}getSiteDescription(){let e=this.staticDataProvider.getSeoDataByKey("description",this.mappedRegion);return"string"==typeof e?e:""}getSiteLogo(){return"https://cdn.cmcmarkets.com/global/images/logo-cmc-markets.png"}getSiteName(e){return"legal"===e?this.staticDataProvider.getSeoDataByKey("legalName",this.mappedRegion):"CMC Markets"}getSiteUrlRegional(){return`https://www.cmcmarkets.com/${this.mappedRegion}`}getSocialMedias(){return Object.values(this.staticDataProvider.getSeoDataByKey("socialMedias",this.mappedRegion))}getBreadcrumbItems(){let e=this.seoData.pageData?.slug||"";if("home"===e||""===e||"/"===e)return[];if(this.isNews()){let t=this.getNewsPrefix();t&&(e=`${t}/${e}`)}let t=[{name:"Home",item:this.getSiteUrlRegional()}],a=e.split("/").filter(e=>""!==e);return a.forEach(e=>{t.push({name:e.charAt(0).toUpperCase()+e.slice(1).replace(/-/g," "),item:`${this.get
1SiteUrlRegional()}/${a.slice(0,t.length).join("/")}`})}),t}getPageFaqItems(){let e=[],t=this.seoData.pageData?.components?.[0]?.fields?.slot2?.[0]?.fields?.slots;return Array.isArray(t)&&t.forEach(t=>{t?.sys?.contentType?.sys?.id==="nFaq"&&t?.fields?.question&&t?.fields?.answer&&e.push({question:t.fields.question,answer:(0,n.l)(t.fields.answer)})}),e}getInPageFaqItems(){let e=[],t=this.seoData.pageData?.components;return Array.isArray(t)&&t.forEach(t=>{let a=t?.fields?.slots||t?.fields?.slot1||t?.fields?.slot2||t?.fields?.faqs;Array.isArray(a)&&a.forEach(t=>{Array.isArray(t?.fields?.slots)?t.fields.slots.forEach(t=>{this.extractFaqFromSlot(t,e)}):this.extractFaqFromSlot(t,e)}),this.extractFaqFromSlot(t,e)}),e}hasInPageFaqs(){return this.getInPageFaqItems().length>0}extractFaqFromSlot(e,t){e?.sys?.contentType?.sys?.id==="nFaq"&&e?.fields?.question&&e?.fields?.answer&&t.push({question:e.fields.question,answer:(0,n.l)(e.fields.answer)})}}class G{constructor(e,t){this.staticData=e,this.region=t,this.regionType=this.getRegionType()}getSeoDataByKey(e,t){let a;t=H.getMappedRegion(t);try{if(!this.staticData)throw Error("staticData is not set");let s=this.staticData[e];if(void 0===s)throw Error(`staticData key: data for ${e} is not defined.`);if(a=s[t],void 0!==a)return a;if(Object.keys(s).includes(this.regionType))return s[this.regionType];return s.default}catch(a){throw a instanceof Error&&console.error(`staticData key: ${e} region: ${t} not found. ${a.message}`),Error(`staticData key: ${e} region: ${t} not found. ${a}`)}}getRegionType(){return(0,q.$r)(this.region)?"alcatraz":"retail"}}function W({data:e}){let t,a=new E.A(e);t=i.$?.SEO_SCHEMA?U:y;let n=w.getInstance(a,t);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p,{seoData:n}),i.$?.THEME_TOGGLER?(0,s.jsx)(L,{}):null,a.components.map((e,t)=>(0,s.jsx)(r.Q.Provider,{value:t,children:(0,s.jsx)(T.A,{data:e,abovefold:`${0===t}`})},e.sys.id)),(0,s.jsx)(P,{}),i.$?.SEO_SCHEMA?(0,s.jsx)(z,{pageData:n}):(0,s.jsx)(u,{seoData:n})]})}},50123:(e,t,a)=>{a.d(t,{b:()=>f,r:()=>p});var s=a(74429),i=a(19069),r=a(73222),n=a(79627),o=a(22759),l=a(37037),c=a(66961),d=a(16023),g=a(73875),h=a(72147),m=a(71041);let p={pillar:"news","de-AT":"nachrichten-und-analysen","de-DE":"nachrichten-und-analysen",en:"news","en-CA":"market-news","en-DE":"news-and-analysis","en-GB":"news-and-analysis","en-IE":"news-and-analysis","en-SG":"news-and-analysis",es:"noticias","es-ES":"noticias-analisis-mercado",fr:"actualites","fr-FR":"actualites-et-analyses","it-IT":"notizie-e-analisi","pl-PL":"puls-rynku",securities:"securities/marktnac
1hrichten"},u={notFound:!0};function f(e){return{getServerSideProps:async t=>{let a=t.query.dynamic_news,s=t.resolvedUrl?.includes("/securities/")||!1,i=(0,d.OE)(e,!0);if(s?p.securities:p[i],!n.sM.includes(i))return u;let g=Array.isArray(a)?a.join("/"):a;if(!i||!g||"pillar"===i)return u;let h=await o.default.client("published").getEntries({locale:i,include:10,content_type:"nNewsArticle","fields.slug":`${g}`,"fields.slug[exists]":!0});if(!h||0===h.total)return u;let m=[],f=h.items[0];return f?.fields?.articleBody&&(f.fields.articleBody=(0,c.A)({keywords:f.fields.keywords,document:f.fields.articleBody,locale:i})),m=f.fields.relatedArticles&&Array.isArray(f.fields.relatedArticles)?f.fields.relatedArticles.filter(e=>!(e.fields?.relatedArticles&&Array.isArray(e.fields.relatedArticles))||!e.fields.relatedArticles.some(e=>e.sys.id===f.sys.id)).map(e=>({id:e?.sys?.id,heroHeading:e?.fields?.heroHeading??null,heroDescription:e?.fields?.heroDescription??null,heroSolidBackground:e?.fields?.heroSolidBackground??null,heroImage:e?.fields?.heroImage??null,slug:e?.fields?.slug??null,theme:e?.fields?.theme??null,locale:e?.sys?.locale??null})):((await o.default.client("published").getEntries({locale:i,include:2,content_type:"nNewsArticle","fields.slug[exists]":!0,"sys.id[ne]":f?.sys?.id,order:"-fields.newsDate,sys.createdAt",limit:3})).items||[]).map(e=>({id:e?.sys?.id,heroHeading:e?.fields?.heroHeading??null,heroDescription:e?.fields?.heroDescription??null,heroImage:e?.fields?.heroImage??null,slug:e?.fields?.slug??null,theme:e?.fields?.theme??null,locale:e?.sys?.locale??null})),f.fields.relatedArticles=m,(0,l.Vp)(i,"published",{props:{data:f,menu:(0,d.$r)(i)?r.Xi.ALCATRAZ_MAIN_MENU:s?r.Xi.SECURITIES_MAIN_MENU:"en-gb"===i.toLowerCase()?r.Xi.RETAIL_CFD_RW_MENU_V2:r.Xi.RETAIL_MAIN_MENU,footer:(0,d.$r)(i)?r.pV.ALCATRAZ_MAIN_FOOTER:s?r.pV.SECURITIES_MAIN_FOOTER:"en-gb"===i.toLowerCase()?r.pV.RETAIL_CFD_RW_FOOTER_V2:r.pV.RETAIL_MAIN_FOOTER}})},NewsPageComponent:({data:e,locale:t})=>{let{asPath:a,isReady:r,reload:n}=(0,h.useRouter)();if((0,m.useEffect)(()=>{let t=`news-page-recovery:${a}`;e?sessionStorage.removeItem(t):!r||sessionStorage.getItem(t)||(sessionStorage.setItem(t,"true"),n())},[a,e,r,n]),!e)return null;let o=g.A.convertNewsArticleToPage(e,t);return(0,s.jsx)(i.A,{data:o})}}}}}]);
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.