import{M as w,N as y,r as i,l as n,S as M,J as t,w as e,K as B,_ as s,$ as l,m as c,V as m,a3 as f}from"./index-9b57d2d5.js";import{b as _,V as p,d,c as g}from"./VCard-16a977eb.js";import{b as V}from"./index-a0309372.js";import{V as v}from"./VBtn-68192c05.js";import"./VImg-601f5a2c.js";import"./VAvatar-089c55ac.js";import"./group-8817b070.js";import"./VProgressCircular-6b2fd430.js";import"./resizeObserver-a80b315a.js";const E=w({__name:"Forecast",setup(N){const{t:C}=y(),o=i(!1),r=i(!1),u=i(""),k=async function(){o.value=!0;const a=await f.createModel();o.value=!1,u.value=C("settings.forecast_r2score")+" "+a.data.r2.toFixed(2)},$=async function(){r.value=!0,await f.tuneModel(),r.value=!1};return(a,T)=>(n(),M(B,null,[t(_,{class:"m-4 max-w-sm elevation-6"},{default:e(()=>[t(p,null,{default:e(()=>[s(l(a.$t("settings.forecast_create_model")),1)]),_:1}),t(d,null,{default:e(()=>[s(l(a.$t("settings.forecast_create_model_text"))+" ",1),o.value?(n(),c(V,{key:0,indeterminate:"",class:"m-2"})):m("",!0)]),_:1}),u.value!=""?(n(),c(d,{key:0},{default:e(()=>[s(l(u.value),1)]),_:1})):m("",!0),t(g,null,{default:e(()=>[t(v,{class:"m-2",onClick:k},{default:e(()=>[s(l(a.$t("settings.forecast_create")),1)]),_:1})]),_:1})]),_:1}),t(_,{class:"m-4 max-w-sm elevation-6"},{default:e(()=>[t(p,null,{default:e(()=>[s(l(a.$t("settings.forecast_tune_model")),1)]),_:1}),t(d,null,{default:e(()=>[s(l(a.$t("settings.forecast_tune_model_text"))+" ",1),r.value?(n(),c(V,{key:0,indeterminate:"",class:"m-2"})):m("",!0)]),_:1}),t(g,null,{default:e(()=>[t(v,{class:"m-2",onClick:$},{default:e(()=>[s(l(a.$t("settings.forecast_tune")),1)]),_:1})]),_:1})]),_:1})],64))}});export{E as default};
