(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1939:function(e,a,t){e.exports=t.p+"files/b0b27c154c6bcece35d9a2e5a6d8520b.png"},1940:function(e,a,t){e.exports=t.p+"files/deb733e8ae657e1813261ce18d4aec46.png"},1970:function(e,a,t){"use strict";t.r(a);var n=t(307),s=t(15),r=(t(170),t(35),t(603),t(6)),o=t.n(r),p=t(28),c=t(16),i=t.n(c),l=t(172),m=t(1939),d=t.n(m),u=t(1940),g=t.n(u);function h(e){const{iosAppDownloadLink:a,history:t,location:n}=e;return o.a.createElement("div",{className:"get-app get-ios-app"},o.a.createElement("h1",{className:"get-app__header"},o.a.createElement(p.c,{id:"get_app.iosHeader",defaultMessage:"Mattermost works best if you switch to our iPhone app"})),o.a.createElement("hr",null),o.a.createElement("a",{className:"get-ios-app__app-store-link",href:Object(l.g)(a),rel:"noopener noreferrer"},o.a.createElement("img",{alt:"app store button",src:d.a})),o.a.createElement("img",{alt:"get app screenshot",className:"get-app__screenshot",src:g.a}),o.a.createElement("h2",{className:"get-ios-app__already-have-it"},o.a.createElement(p.c,{id:"get_app.alreadyHaveIt",defaultMessage:"Already have it?"})),o.a.createElement("a",{className:"btn btn-primary get-ios-app__open-mattermost",href:"mattermost://"},o.a.createElement(p.c,{id:"get_app.openMattermost",defaultMessage:"Open Mattermost"})),o.a.createElement("span",{className:"get-app__continue-with-browser"},o.a.createElement(p.c,{id:"get_app.continueWithBrowser",defaultMessage:"Or {link}",values:{link:o.a.createElement("a",{onClick:e=>{e.preventDefault();const a=new URLSearchParams(n.search).get("redirect_to");a?t.push(a):t.push("/")},className:"get-ios-app__continue"},o.a.createElement(p.c,{id:"get_app.continueWithBrowserLink",defaultMessage:"continue with browser"}))}})))}h.propTypes={location:i.a.any.isRequired,history:i.a.any.isRequired,iosAppDownloadLink:i.a.string};a.default=Object(n.connect)((function(e){return{iosAppDownloadLink:Object(s.getConfig)(e).IosAppDownloadLink}}))(h)}}]);
//# sourceMappingURL=21.b4a132831cdc8f503cd4.js.map