"use strict";(self.webpackChunkelement_web=self.webpackChunkelement_web||[]).push([[172],{"./src/async-components/structures/CompatibilityView.tsx":(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var l=a("./node_modules/react/index.js"),r=a("./node_modules/matrix-react-sdk/src/SdkConfig.ts"),n=a("./src/languageHandler.tsx");const m=({onAccept:e})=>{const t=r.cp.get("brand"),a=r.cp.get("mobile_builds");let m;const o=null==a?void 0:a.ios;null!==o&&(m=l.createElement(l.Fragment,null,l.createElement("p",null,l.createElement("strong",null,"iOS")," (iPhone or iPad)"),l.createElement("a",{href:o,target:"_blank",rel:"noreferrer noopener",className:"mx_ClearDecoration"},l.createElement("img",{height:"48",src:"themes/element/img/download/apple.svg",alt:"Apple App Store"}))));let c=[l.createElement("p",{className:"mx_Spacer",key:"header"},l.createElement("strong",null,"Android"))];const s=null==a?void 0:a.android,i=null==a?void 0:a.fdroid;null!==s&&c.push(l.createElement("a",{href:s,target:"_blank",rel:"noreferrer noopener",className:"mx_ClearDecoration",key:"android"},l.createElement("img",{height:"48",src:"themes/element/img/download/google.svg",alt:"Google Play Store"}))),null!==i&&c.push(l.createElement("a",{href:i,target:"_blank",rel:"noreferrer noopener",className:"mx_ClearDecoration",key:"fdroid"},l.createElement("img",{height:"48",src:"themes/element/img/download/fdroid.svg",alt:"F-Droid"}))),1===c.length&&(c=[]);let _=l.createElement("h2",{id:"step2_heading"},(0,n._t)("use_brand_on_mobile",{brand:t}));return c.length||m||(_=null),l.createElement("div",{className:"mx_ErrorView"},l.createElement("div",{className:"mx_ErrorView_container"},l.createElement("div",{className:"mx_HomePage_header"},l.createElement("span",{className:"mx_HomePage_logo"},l.createElement("img",{height:"42",src:"themes/element/img/logos/element-logo.svg",alt:"Element"})),l.createElement("h1",null,(0,n._t)("incompatible_browser|title"))),l.createElement("div",{className:"mx_HomePage_col"},l.createElement("div",{className:"mx_HomePage_row"},l.createElement("div",null,l.createElement("h2",{id:"step1_heading"},(0,n._t)("incompatible_browser|summary",{brand:t})),l.createElement("p",null,(0,n._t)("incompatible_browser|features",{brand:t})),l.createElement("p",null,(0,n._t)("incompatible_browser|browser_links",{},{chromeLink:e=>l.createElement("a",{href:"https://www.google.com/chrome"},e),firefoxLink:e=>l.createElement("a",{href:"https://firefox.com"},e),safariLink:e=>l.createElement("a",{href:"https://apple.com/safari"},e)})),l.createElement("p",null,(0,n._t)("incompatible_browser|feature_warning")),l.createElement("button",{onClick:e},(0,n._t)("incompatible_browser|continue_warning"))))),l.createElement("div",{className:"mx_HomePage_col"},l.createElement("div",{className:"mx_HomePage_row"},l.createElement("div",null,_,m,c))),l.createElement("div",{className:"mx_HomePage_row mx_Center mx_Spacer"},l.createElement("p",{className:"mx_Spacer"},l.createElement("a",{href:"https://element.io",target:"_blank",className:"mx_FooterLink"},(0,n._t)("go_to_element_io"))))))}}}]);
//# sourceMappingURL=compatibility-view.js.map