(()=>{"use strict";let t={};const e="itt-global-footer",s=t=>e+"__"+t,a=(t,e)=>(e instanceof Array?e.forEach((e=>a(t,e))):e instanceof Node&&t.appendChild(e),t),l=(t,e)=>{let s=e||{},a=document.createElement(t);return Object.keys(s).forEach((t=>{"textContent"===t?a.textContent=s[t]:a.setAttribute(t,s[t])})),a},r=(t,e,s)=>{let a=e||{},l=document.createElementNS(s||"http://www.w3.org/2000/svg",t);return Object.keys(a).forEach((t=>{"textContent"===t?l.textContent=a[t]:l.setAttribute(t,a[t])})),l},o=t=>document.createTextNode(t),n=t=>{let e=r("svg");return e.appendChild(r("use",{href:"/static/images/footer/sprite.svg#"+t})),e},c=()=>!!t.support,i=()=>t.languages&&t.languages.length>1,g=()=>t.socials&&t.socials.length>0,u=()=>!!t.ageRestriction,d=()=>!!t.withItt,m=()=>{if(!i())return null;let e=l("ul",{class:s("languages-list")}),r=null;t.languages.forEach((t=>{null===r&&(r=t),t.active?r=t:a(e,a(l("li",{class:s("languages-list-item")}),[a(l("a",{href:t.url,class:s("languages-list-item-link"),textContent:t.label}),l("i",{class:s("languages-flag flag-"+t.code)}))]))}));let n=l("div",{class:s("languages")});return a(n,[a(l("span",{class:s("languages-current")}),[l("i",{class:s("languages-flag flag-"+r.code)}),o(r.label)]),e]),n},h=()=>{if(!g())return null;let e=l("ul",{class:s("so")});return t.socials.forEach((t=>{a(e,[a(l("li",{class:s("so-item")}),a(l("a",{href:t.url,class:s("so-item-link"),target:"_blank"}),n("icon-"+t.code)))])})),e};window.addEventListener("DOMContentLoaded",(()=>{t=Object.assign({selector:"#itt-global-footer",languages:[],support:!1,socials:!1,theme:"dark",cssBackgroundColor:null,withItt:!1},window.__ITTFOOTER||{});const r=document.querySelector(t.selector);r.classList.add(e),r.classList.add(e+"-"+t.theme),t.cssBackgroundColor&&r.setAttribute("style","background:"+t.cssBackgroundColor);const p=l("div",{class:s("container")});let f=1;g()&&f++,(c()||i())&&f++;let b="";switch(f){case 1:b=s("row_single");break;case 2:b=s("row_double")}const k=l("div",{class:s("row "+b)});g()&&a(k,a(l("div",{class:s("row-item")}),h())),(c()||i()||u())&&a(k,a(l("div",{class:s("row-item")}),[c()?a(l("a",{href:t.support.url,target:"_blank",class:s("support"),textContent:t.support.label}),n("icon-support")):null,m()])),a(k,a(l("div",{class:s("row-item")}),[l("a",{href:"https://my.games",target:"_blank",class:s("logo")+" "+s("logo-mygames")}),d()?l("a",{href:"https://it-territory.com",target:"_blank",class:s("logo")+" "+s("logo-itt")}):null,u()?l("span",{class:s("age-restriction"),textContent:t.ageRestriction}):null])),a(p,k);const w=l("div",{class:s("copyright"),textContent:"© "+(new Date).getFullYear()+" MY.GAMES B.V. All rights reserved. All trademarks are the property of their respective owners."});a(w,[l("br"),o("All trademarks are the property of their respective owners."),l("br"),l("a",{href:"https://documentation.my.games/terms/mygames_eula",target:"_blank",textContent:"License Agreement",class:s("copyright-link")}),o(" | "),l("a",{href:"https://documentation.my.games/terms/mygames_privacy",target:"_blank",textContent:"Privacy Policy",class:s("copyright-link")})]),a(p,w),a(r,p)}))})();