import { interpolate , cloneObject } from "@esri/hub-common" ; param siteTemplate param settings param transforms export function interpolateSite ( siteTemplate , settings , transforms ? ) { const template = cloneObject ( siteTemplate ) ; const legacyDcatUS11Config = cloneObject ( template . data . values . dcatConfig ) ; const feedConfigs = cloneObject ( template . data . feeds ) ; delete template . data . values . dcatConfig ; delete template . data . feeds ; const siteModel = interpolate ( template , settings , transforms ) ; if ( legacyDcatUS11Config ) { siteModel . data . values . dcatConfig = legacyDcatUS11Config ; } if ( feedConfigs ) { siteModel . data . feeds = feedConfigs ; } return siteModel ; }