"use strict";(self.webpackChunkfl_assistant=self.webpackChunkfl_assistant||[]).push([[634],{6233:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var s=n(1594),l=n.n(s),c=n(9665),a=n(2578),o=n(6075),u=n(3768);const r=({baseURL:e})=>{const t=(0,c.useHistory)(),{isCloudConnected:n}=(0,o.useSystemState)("isCloudConnected"),{isBBExtension:s}=(0,o.getSystemConfig)();return n?l().createElement(a.Selection.Provider,null,l().createElement(c.Switch,null,l().createElement(c.Route,{exact:!0,path:`${e}`,component:u.u}),l().createElement(c.Route,{path:`${e}/:id`,component:u.w}))):(s?t.replace("/bbapp"):t.replace("/fl-cloud-connect"),null)}}}]);