import { HubProduct , IGroupTemplate } from "../types" ; import { cloneObject } from "@esri/hub-common" ; import { WELLKNOWNTEAMS } from "../well-known-teams" ; param { string } product export function getTeamsAvailableInProduct ( product , portalApiVersion ) { console . warn ( "Hub.js::getTeamsAvailableInProduct Deprecation warning portalApiVersion will be removed at v10.0.0" ) ; const teams = WELLKNOWNTEAMS ; const filterFn = ( tmpl ) => { return tmpl . config . availableIn . indexOf ( product ) > - 1 ; } ; return cloneObject ( teams ) . filter ( filterFn ) ; }