import Component from '@ember/component';
import layout from '../../templates/components/nypr-ui/brand-header';
export default Component.extend({
  layout,
  tagName: '',
  init() {
    let menuItems = [
      {
        name: 'WNYC',
        url: 'https://www.wnyc.org',
        svg: 'wnyc-logo',
      },
      {
        name: 'Gothamist',
        url: 'https://www.gothamist.com',
        svg: 'gothamist-logo',
      },
      {
        name: 'WNYC Studios',
        url: 'https://www.wnycstudios.org',
        svg: 'wnyc-studios-logo',
      },
      {
        name: 'NJPR',
        url: 'http://www.njpublicradio.org',
        svg: 'njpr-logo',
      },
      {
        name: 'WQXR',
        url: 'https://www.wqxr.org',
        svg: 'wqxr-logo',
      },
      {
        name: 'New Sounds',
        url: 'https://www.newsounds.org',
        svg: 'new-sounds-logo',
      },
      {
        name: 'The Greene Space',
        url: 'https://www.thegreenespace.org',
        svg: 'greene-space-logo',
      },
    ];
    this.set('menuItems', menuItems);

    this._super(...arguments);
  },
});

@@ -105,16 +105,64 @@
 eader';%0A
+import %7B getOwner %7D from '@ember/application';%0A%0A
 export d
@@ -223,16 +223,92 @@
 nit() %7B%0A
+    let config = getOwner(this).resolveRegistration('config:environment');%0A%0A
     let 
@@ -356,33 +356,33 @@
 ',%0A        url: 
-'
+%60
 https://www.wnyc
@@ -381,25 +381,103 @@
 www.wnyc.org
-'
+?utm_medium=partnersite&utm_campaign=brandheader&utm_source=$%7Bconfig.siteSlug%7D%60
 ,%0A        sv
@@ -541,33 +541,33 @@
 ',%0A        url: 
-'
+%60
 https://www.goth
@@ -575,17 +575,95 @@
 mist.com
-'
+?utm_medium=partnersite&utm_campaign=brandheader&utm_source=$%7Bconfig.siteSlug%7D%60
 ,%0A      
@@ -739,33 +739,33 @@
 ',%0A        url: 
-'
+%60
 https://www.wnyc
@@ -771,25 +771,103 @@
 cstudios.org
-'
+?utm_medium=partnersite&utm_campaign=brandheader&utm_source=$%7Bconfig.siteSlug%7D%60
 ,%0A        sv
@@ -938,25 +938,25 @@
        url: 
-'
+%60
 http://www.n
@@ -967,25 +967,103 @@
 licradio.org
-'
+?utm_medium=partnersite&utm_campaign=brandheader&utm_source=$%7Bconfig.siteSlug%7D%60
 ,%0A        sv
@@ -1122,33 +1122,33 @@
 ',%0A        url: 
-'
+%60
 https://www.wqxr
@@ -1147,25 +1147,103 @@
 www.wqxr.org
-'
+?utm_medium=partnersite&utm_campaign=brandheader&utm_source=$%7Bconfig.siteSlug%7D%60
 ,%0A        sv
@@ -1308,33 +1308,33 @@
 ',%0A        url: 
-'
+%60
 https://www.news
@@ -1338,25 +1338,103 @@
 ewsounds.org
-'
+?utm_medium=partnersite&utm_campaign=brandheader&utm_source=$%7Bconfig.siteSlug%7D%60
 ,%0A        sv
@@ -1519,17 +1519,17 @@
    url: 
-'
+%60
 https://
@@ -1550,17 +1550,95 @@
 pace.org
-'
+?utm_medium=partnersite&utm_campaign=brandheader&utm_source=$%7Bconfig.siteSlug%7D%60
 ,%0A      
@@ -1754,14 +1754,13 @@
 ts);%0A  %7D
-,
 %0A%7D);%0A

Add utm params to brand header links