text: module.exports = {
  
      props: ['importer'],
  
      data: function() {
          return {
              exporting: false,
              exported: false,
              exportFailed: false,
              exportError: null,
              importing: false,
              imported: false,
              summary: null,
              showAllPages: false,
              showCollections: [],
              showTaxonomies: [],
              showGlobals: [],
          }
      },
  
      computed: {
          totalPages: function () {
              return Object.keys(this.summary.pages).length;
          }
      },
  
      ready() {
          this.summary = Statamic.ImportSummary;
      },
  
      methods: {
  
          import: function () {
              this.importing = true;
              this.$http.post(cp_url('import/import'), { summary: this.summary }).success(function (response) {
                  this.importing = false;
                  this.imported = true;
                  console.log(response);
              });
          },
  
          hasDuplicates (collection) {
              return !! this.duplicateCount(collection);
          },
  
          duplicateCount: function (items) {
              let count = 0;
  
              _.each(items, (item) => {
                  if (! item.exists) {
                      return;
                  }
  
                  count++;
              });
  
              return count;
          },
  
          uncheckDuplicates: function(items) {
              _.each(items, (item) => {
                  if (! item.exists) {
                      return;
                  }
  
                  item._checked = false;
              });
          },
  
          size: function (obj) {
              return _.size(obj);
          },
  
          showCollection: function (collection) {
              this.showCollections.push(collection);
              _.uniq(this.showCollections);
          },
  
          hideCollection: function (hidden) {
              this.showCollections = _.reject(this.showCollections, function (c) {
                  return c === hidden;
              })
          },
  
          shouldShowCollection: function (collection) {
              return _.contains(this.showCollections, collection);
          },
  
          showTaxonomy: function (taxonomy) {
              this.showTaxonomies.push(taxonomy);
              _.uniq(this.showTaxonomies);
          },
  
          hideTaxonomy: function (hidden) {
              this.showTaxonomies = _.reject(this.showTaxonomies, function (t) {
                  return t === hidden;
              })
          },
  
          shouldShowTaxonomy: function (taxonomy) {
              return _.contains(this.showTaxonomies, taxonomy);
          },
  
          showGlobal: function (global) {
              this.showGlobals.push(global);
              _.uniq(this.showGlobals);
          },
  
          hideGlobal: function (hidden) {
              this.showGlobals = _.reject(this.showGlobals, function (g) {
                  return g === hidden;
              })
          },
  
          shouldShowGlobal: function (global) {
              return _.contains(this.showGlobals, global);
          }
      }
  };
  