System.register(["../../../../common/index-legacy.sLMPZLm9.js","../index-legacy.DvuPgGlN.js","../../../../common/vue-router-legacy.BDEEsdoO.js","../../../../common/index-legacy.Bk-po7Kp.js","../../../../common/index-legacy.DjPCm-Xr.js","../../../../common/index-legacy.NSn_Zdym.js"],(function(e,n){"use strict";var t,a,s,u,o,g,i,l,c,d,r,y,m,v,x;return{setters:[e=>{t=e.d,a=e.w,s=e.q,u=e.x,o=e.S,g=e.n,i=e.v,l=e.u,c=e.s,d=e.l},e=>{r=e.u,y=e.g,m=e.b},e=>{v=e.u},e=>{x=e.u},null,null],execute:function(){e("default",t({__name:"IndexPage",setup(e){const n=v(),t=r(),{on:p}=x("saaiSettingsSaved"),S=y("pages/ConnectPage.vue"),j=y("pages/AiAgentSettingsPage.vue"),f=y("pages/SettingsPage.vue"),k=y("pages/DashboardPage.vue");return p((e=>{"product-questions-ai"===e&&setTimeout((()=>{window.location.reload()}),1e3)})),a((()=>n.query.agent),(e=>{t.agent=e?t.aiAgents[t.getAgentIndex(e)]:null})),(e,t)=>(g(),s(o,null,{fallback:u((()=>[d(m)])),default:u((()=>{var e,t;return[l(c)().isConnected?null!=(null===(e=l(n).query)||void 0===e?void 0:e.agent)?(g(),s(l(j),{key:1})):"storeagent-settings"===(null===(t=l(n).query)||void 0===t?void 0:t.page)?(g(),s(l(f),{key:2})):l(c)().isConnected?(g(),s(l(k),{key:3})):i("",!0):(g(),s(l(S),{key:0}))]})),_:1}))}}))}}}));
