"use strict";const c=require("./FetchConfigsUtils-c73b687c.js"),s=require("./MockVars-66680ee9.js"),l=require("classnames"),i=require("react"),u=require("./useAppConfigs-4e45ddb8.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=d(i);const p=e=>{const{state:{playerPortalConfigData:t}}=u.useAppConfigs(),{children:n,className:o}=e,a=location.pathname.includes("/player-portal")?s.mockLauncherDownloadLink:t==null?void 0:t.launcherDownloadLink.data.value;return f.createElement("a",{className:l(o,"btn small btn-primary","launcherDownloadButton",!a&&"disabled",c.OverrideCSS.TITLE_FONT),title:a||"Not available",target:"_blank",rel:"noreferrer",href:a||"",onClick:r=>{a||r.preventDefault()}},n)};exports.LauncherDownloadButton=p;
