"use strict";(globalThis.webpackChunk_plex_client_qt=globalThis.webpackChunk_plex_client_qt||[]).push([["packages_app_screens_mobile_InstallMobileAppModal_tsx-packages_app_images_mobile-qr-code_png"],{85805:(e,t,i)=>{i.d(t,{Z:()=>p});var a=i(44776),o=i(63810),n=i(73912),s=i(4322),r=i(8604),l=i(99346),d=i(9855),h=function(e,t,i,a){var o,n=arguments.length,s=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s},c=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let g=class extends r.Z{constructor(){super(...arguments),this.title="",this.message="",this.messageBottomMargin=81,this.autoResizeHeight=!0,this.includeMargins=!0,this._onLayoutMeasured=e=>{var t;this._assertValidChildren();const i=l.default.screenHeight-e.height-(this.includeMargins?l.default.screenBottomMargin:0),a=l.default.screenWidth-(this.includeMargins?2*l.default.screenHorizontalMargin:0),o=this.includeMargins?l.default.screenHorizontalMargin:0,n=e.height;this.autoResizeHeight&&this.childList.getAt(1).patch({h:i,y:n}),null===(t=this.onContentResize)||void 0===t||t.call(this,{width:a,height:i,x:o,y:n})}}static _template(){const{primaryBackground100:e}=(0,o.rS)().colors;return{x:0,y:0,w:l.default.screenWidth,h:l.default.screenHeight,Header:{type:n.Z,x:l.default.screenWidth/2,mountX:.5,flex:{direction:"column",paddingBottom:81},Title:{type:s.Z,fontSize:d.default.sizeHeading1,lineHeight:72,textColor:e,textAlign:"center",w:l.default.modalTitleWidth,maxLines:1,flexItem:{marginTop:l.default.modalHeaderTitleTop,alignSelf:"center",maxHeight:72}},Message:{type:s.Z,textAlign:"center",textColor:e,w:l.default.modalContentWidth,flexItem:{marginTop:33,alignSelf:"center"}}}}}_setup(){this.tag("Header").onMeasure=this._onLayoutMeasured}_onPropChange(){var e,t,i;this._assertValidChildren(),this.patch({Header:{type:n.Z,flex:{paddingBottom:null!==(e=this.messageBottomMargin)&&void 0!==e?e:81},Title:{type:s.Z,label:this.title},Message:{type:s.Z,label:this.message||"",fontSize:null!==(t=this.messageFontSize)&&void 0!==t?t:d.default.sizeHeading3,lineHeight:null!==(i=this.messageLineHeight)&&void 0!==i?i:d.default.lineHeightHeading3,visible:!!this.message}}})}themeChanged(){var e;const t=null!==(e=this.themeOverride)&&void 0!==e?e:(0,o.rS)(),{primaryBackground100:i}=t.colors;this.patch({Header:{type:n.Z,Title:{type:s.Z,textColor:i},Message:{type:s.Z,textColor:i}}})}_assertValidChildren(){0}};h([(0,a.q)("_onPropChange"),c("design:type",Object)],g.prototype,"title",void 0),h([(0,a.q)("_onPropChange"),c("design:type",Object)],g.prototype,"message",void 0),h([(0,a.q)("_onPropChange"),c("design:type",Number)],g.prototype,"messageBottomMargin",void 0),h([(0,a.q)("_onPropChange"),c("design:type",Number)],g.prototype,"messageFontSize",void 0),h([(0,a.q)("_onPropChange"),c("design:type",Number)],g.prototype,"messageLineHeight",void 0),h([(0,a.q)("themeChanged"),c("design:type",Object)],g.prototype,"themeOverride",void 0),h([(0,a.q)("_assertValidChildren"),c("design:type",Object)],g.prototype,"autoResizeHeight",void 0),g=h([o.y9],g);const p=g},17906:(e,t,i)=>{i.r(t),i.d(t,{default:()=>h});var a=i(3493),o=i(36725),n=i(85805),s=i(8604),r=i(12367),l=i(99346);const d=i.p+"images/mobile-qr-code.51993c13a2c0b04e5a76.png";class h extends s.Z{constructor(){super(...arguments),this._screenType=r.Z.Community,this.allowSidebar=!1}static _template(){const{screenWidth:e,screenHeight:t}=l.default;return{ModalLayout:{type:n.Z,autoResizeHeight:!1,Column:{type:a.sg,gap:"l",y:210,w:e,h:t,Title:{type:a.ij,content:(0,o.ZP)("Get the Plex app for phone and tablet"),fontName:"heading1",colorName:"primaryBackground100",x:e/2,mountX:.5},Subtitle:{type:a.ij,content:(0,o.ZP)("Enjoy everything Plex has to offer wherever you are"),fontName:"heading3",colorName:"primaryBackground100",x:e/2,mountX:.5},Background:{w:400,h:400,src:d,x:e/2,mountX:.5},Back:{type:a.zx,label:(0,o.ZP)("Back"),x:e/2,mountX:.5}}}}}_init(){this._backButton.onPress=()=>{this._navigation.canGoBack?this.close():this._navigation.navigate("HomeScreen")}}_getFocused(){return this._backButton}get _backButton(){return this.tag("ModalLayout.Column.Back")}}}}]);