"use strict";(globalThis.webpackChunk_plex_client_qt=globalThis.webpackChunk_plex_client_qt||[]).push([["packages_app_screens_privacy_ProfilePrivacyScreen_tsx"],{9355:(t,e,i)=>{i.r(e),i.d(e,{default:()=>d});var n=i(3493),a=i(80038),r=i(36725),o=i(7453),s=i(95794),l=i(11381),c=i(99346),h=function(t,e,i,n){var a,r=arguments.length,o=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(o=(r<3?a(o):r>3?a(e,i,o):a(e,i))||o);return r>3&&o&&Object.defineProperty(e,i,o),o},u=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class d extends l.Z{constructor(){super(...arguments),this.allowSidebar=!1,this._onClose=()=>{var t;null!==(t=this.initialData)&&void 0!==t&&t.onboarding&&((0,a.aW)(a.Jh,{input:{hasSeenOnboarding:!0,hasSeenOnboardingV2:!0}}),this._userManager.current&&(this._userManager.current.onboarding={hasSeenOnboarding:!0,hasSeenOnboardingV2:!0})),this.result=this._privacy.privacySettings,this._modal.closeCurrent()}}get _finish(){return this.tag("Column.Finish")}get _privacy(){return this.tag("Column.Privacy")}get _title(){return this.tag("Column.Title")}get _caption(){return this.tag("Column.Caption")}static _template(){const{screenWidth:t,screenHeight:e}=c.default;return{Column:{type:n.sg,gap:"xl",fixedWidth:t,fixedHeight:e,align:"center",verticalAlign:"middle",visible:!1,Title:{type:n.ij,textAlign:"center",fontName:"display3",colorName:"textDefault"},Subtitle:{type:n.ij,textAlign:"center",content:(0,r.ZP)("Choose what type of activity you want to share with your friends."),fontName:"body1",colorName:"textPrimary"},Caption:{type:n.ij,textAlign:"center",content:(0,r.ZP)("Your Profile Privacy settings are currently set to: Private."),fontName:"body1",colorName:"textPrimary",visible:!1},Privacy:{type:o.Z},Finish:{type:n.zx,visible:!1,label:(0,r.ZP)("Finish")},Disclaimer:{type:n.ij,w:1096,textAlign:"center",content:(0,r.ZP)("If you are a resident of the United States, your above Watch History setting will apply for two years and then revert to private unless you choose to renew your consent. All other choices will remain in effect until you change them."),fontName:"caption",colorName:"textMuted"}}}}async _init(){var t,e,i,n,o,s;this._title.content=null!==(t=this.initialData)&&void 0!==t&&t.onboarding||null!==(e=this.initialData)&&void 0!==e&&e.isNewUserOnboarding?(0,r.ZP)("You’re in control"):(0,r.ZP)("Profile Privacy Settings");const l=!(null===(i=this.initialData)||void 0===i||!i.onboarding)||!(null===(n=this.initialData)||void 0===n||!n.isNewUserOnboarding);this._privacy.onboarding=l,this._caption.visible=l,this._privacy.navigatedFromSettings=null===(o=this.initialData)||void 0===o?void 0:o.navigatedFromSettings,this._finish.visible=l,this._finish.onPress=this._onClose,null!==(s=this.initialData)&&void 0!==s&&s.onboarding&&await(0,a.aW)(a.X6,{input:{friends:a._B.FriendsOfFriends}}),requestAnimationFrame((()=>{this.tag("Column").visible=!0}))}_getFocused(){return this.tag("Column")}_handleBack(){var t,e;return(null===(t=this.initialData)||void 0===t||!t.onboarding||null!==(e=this.initialData)&&void 0!==e&&e.isNewUserOnboarding)&&this._onClose(),!0}}h([(0,s.Z)("userManager"),u("design:type",Object)],d.prototype,"_userManager",void 0)}}]);