import{d as j,P as A,j as v,O as B,Q as z,B as D,s as l,p as L,a as N,o as O,b as e,Y as y,N as s,h as a,t as o,u as n,f as i,g as r,R as b,M as _,a6 as U,ak as M}from"./index-IQ_epUwE.js";import{u as $}from"./useToast-CQMm8jKk.js";import{_ as h}from"./Button.vue_vue_type_script_setup_true_lang-beo6XCRe.js";const F={class:"w-full grid grid-cols-3 gap-6 items-stretch"},W={class:"w-full font-bold font-lato text-2xl text-white line-clamp-1"},E={class:"font-normal text-2xl text-gray-300"},Q={class:"w-full font-bold font-lato text-2xl text-white line-clamp-1"},Y={class:"font-normal text-2xl text-gray-300"},q={class:"w-full font-bold font-lato text-2xl text-white line-clamp-1"},G={class:"font-normal text-2xl text-gray-300"},H={class:"w-full font-bold font-lato text-2xl text-white line-clamp-1"},J={class:"font-normal text-2xl text-gray-300"},K={class:"w-full font-bold font-lato text-2xl text-white line-clamp-1"},X={class:"font-normal text-2xl text-gray-300"},Z={class:"w-full font-bold font-lato text-2xl text-white line-clamp-1"},tt={class:"font-normal text-2xl text-gray-300"},et={class:"w-full font-bold font-lato text-2xl text-white line-clamp-1"},st={class:"font-normal text-2xl text-gray-300"},d="bg-background-100 rounded-xl shadow-md",it=j({__name:"Settings",setup(nt,{expose:k}){function u(){return[p.value,x.value]}k({getPageRows:u});const R=A();$();const x=v(null),p=v(null),C=B(),{setRows:c}=z();function S(){c(u(),0)}D(()=>{const g=Date.now();S();const t=Date.now();l.analytics.report_tv_page_performance({page_name:C.name,load_time_ms:t-g,any_errors:!1})}),L(()=>{c([],0)});const m=["outline","outline-4","outline-roon-primary","outline-offset-8","rounded"],w=window.webapis?.productinfo,T=window.tizen?.application?.getAppInfo(),I=window.webapis?.network;function V(){M(R.currentRoute.value,{path:"/licenses"},{navigation_method:"from_settings_page_button"})}return(g,t)=>(O(),N("div",{class:a(["flex flex-col items-center justify-center gap-6 p-6 max-w-screen-xl mx-auto",n(U)])},[t[0]||(y(-1,!0),(t[0]=e("h1",{class:"text-8xl font-normal text-gray-100 font-grifo-l mb-12"},[t[3]||(t[3]=s("Settings"))])).cacheIndex=0,y(1),t[0]),e("div",F,[e("div",{class:a(["col-span-2 h-full p-6 flex flex-col gap-2",d])},[t[8]||(t[8]=e("h2",{class:"w-full text-5xl text-white font-inter tracking-tighter"},"Samsung TV Roon App",-1)),t[9]||(t[9]=e("div",{class:"text-md font-lato mb-4 text-gray-300"}," This section contains information about the Samsung TV such as the model, serial number, version, and IP address. ",-1)),e("span",W,[t[4]||(t[4]=s("Model: ")),e("span",E,o(n(w)?.getRealModel()||"Unknown"),1)]),e("span",Q,[t[5]||(t[5]=s("Serial: ")),e("span",Y,o(n(w)?.getDuid()||"Unknown"),1)]),e("span",q,[t[6]||(t[6]=s("Version: ")),e("span",G,o(n(T)?.version||"Unknown"),1)]),e("span",H,[t[7]||(t[7]=s("IP Address: ")),e("span",J,o(n(I)?.getIp()||"Unknown"),1)])]),e("div",{class:a(["col-span-1 h-full p-6 flex flex-col gap-2",d])},[t[11]||(t[11]=e("h2",{class:"w-full text-5xl text-white font-inter tracking-tighter"},"Licenses",-1)),t[12]||(t[12]=e("div",{class:"text-md font-lato mb-4 text-gray-300 flex-1"}," This section contains information about third-party software and their licenses for the Samsung TV Roon App. ",-1)),i(_,{id:"view-licenses-button",ref_key:"viewLicensesRef",ref:p,containerClass:["shrink-0","mt-12","justify-center"],centerOnScreenWhenFocused:!1,innerContainerClass:["w-fit"],focusClass:m},{default:r(({getRowItemClass:f})=>[i(b,{class:a(["flex items-center justify-center",[f(0)]]),disableOutline:!1},{default:r(()=>[i(h,{class:"w-full",variant:"primary",size:"xlarge",onClick:t[1]||(t[1]=P=>V())},{default:r(()=>t[10]||(t[10]=[s("View Licenses")])),_:1})]),_:2},1032,["class"])]),_:1},512)])]),e("div",{class:a(["w-full p-6 flex flex-col gap-2",d])},[t[17]||(t[17]=e("h2",{class:"w-full text-5xl text-white font-inter tracking-tighter"},"Roon Server",-1)),t[18]||(t[18]=e("div",{class:"text-md font-lato mb-4 text-gray-300"}," This section contains information about the Roon Server such as the name, IP address, and version. ",-1)),e("span",K,[t[13]||(t[13]=s("Name: ")),e("span",X,o(n(l).core?.display_name),1)]),e("span",Z,[t[14]||(t[14]=s("IP Address: ")),e("span",tt,o(n(l).core?.moo?.transport?.host)+":"+o(n(l).core?.moo?.transport?.port),1)]),e("span",et,[t[15]||(t[15]=s("Version: ")),e("span",st,o(n(l).core?.display_version),1)]),i(_,{id:"disconnect-button",ref_key:"disconnectRef",ref:x,containerClass:["mt-6","justify-center"],centerOnScreenWhenFocused:!1,innerContainerClass:["w-fit"],focusClass:m},{default:r(({getRowItemClass:f})=>[i(b,{class:a(["flex items-center justify-center",[f(0)]]),disableOutline:!1},{default:r(()=>[i(h,{class:"w-full",variant:"primary",size:"xlarge",onClick:t[2]||(t[2]=P=>n(l).parent.disconnect())},{default:r(()=>t[16]||(t[16]=[s("Disconnect")])),_:1})]),_:2},1032,["class"])]),_:1},512)])],2))}});export{it as default};
