"use strict";(globalThis.webpackChunk_plex_client_qt=globalThis.webpackChunk_plex_client_qt||[]).push([["packages_app_screens_playbackErrorInfoModal_PlaybackErrorInfoModal_tsx"],{11612:(e,t,a)=>{a.r(t),a.d(t,{default:()=>g});var i=a(73912),n=a(4322),l=a(44399),o=a(47809),s=a(95794),r=a(69294),c=a(8604),p=a(99346),u=a(9855),d=function(e,t,a,i){var n,l=arguments.length,o=l<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,i);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(l<3?n(o):l>3?n(t,a,o):n(t,a))||o);return l>3&&o&&Object.defineProperty(t,a,o),o},f=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const h=p.default.screenWidth-2*p.default.screenHorizontalMargin-30;class g extends c.Z{static _template(){return{Details:{type:l.Z,x:p.default.screenHorizontalMargin,y:p.default.screenTopMargin,w:h+30,h:p.default.screenHeight-p.default.screenTopMargin-p.default.screenBottomMargin,pageOverlap:u.default.lineHeightLarge,clipping:!0,Layout:{type:i.Z,flex:{direction:"column"}}}}}onClosed(){var e,t;null===(e=this.initialData)||void 0===e||null===(t=e.onClosed)||void 0===t||t.call(e)}_getFocused(){return this.tag("Details")}_pushLine(e,t){t.length>130?(e.push(t.substring(0,130)),e.push(t.substring(130))):e.push(t)}onNavigatedTo(){if(!this.initialData)return;const e=[`${this.initialData.errorInfo.logMessage}, reason: ${this.initialData.errorInfo.reason}`],t=this._appConfig.deviceInfo;if(e.push(`deviceVendor: ${t.deviceVendor}, model: ${t.deviceModel}, chipset: ${t.chipset||"unknown"}, deviceResolution: ${t.deviceResolution}, playbackMaxResolution: ${t.playbackMaxResolution||"unknown"}`),this.initialData.playable){const t=(0,o.Z)(this.initialData.playable.metadataItem);e.push(`${t.playerPrimaryTitle||""} • ${t.playerSecondaryTitle||""}`);const a=(0,r.Z)(this.initialData.playable);for(const t in a){const i=a[t];let n;"X-Plex-Client-Profile-Extra"===t?(n=i.split("+"),this._pushLine(e,n[0])):(n=i.split("\n"),this._pushLine(e,`${t}: ${n[0]}`)),n.length>1&&n.slice(1).forEach((t=>this._pushLine(e,t)))}}this.patch({Details:{type:l.Z,Layout:{type:i.Z,UnnamedChild0:{type:n.Z,label:e.join("\n"),w:h,fontSize:u.default.sizeNormal,lineHeight:u.default.lineHeightNormal}}}})}}d([(0,s.Z)("appConfig"),f("design:type",Object)],g.prototype,"_appConfig",void 0)}}]);