import header from './header.js';
import elementClosestPolyfill from './polyfills/element.closest.polyfill.js';
import editMultiSelect from './edit-multi-select.js';
import editRichText from './edit-rich-text.js';
import editLocation from './edit-location.js';
import editMedia from './edit-media.js';
import editLinkSet from './edit-link-set.js';
import editLinkList from './edit-link-list.js';
import editWarning from './edit-warning.js';

// polyfills
elementClosestPolyfill();

// common
header.init();

// case edit form
// only init edit form fields if on edit page
// todo: handle dynamic imports of edit field js so we don't import if not needed
if (window.location.pathname.indexOf('edit') > 0) {
  editMultiSelect.init();
  editRichText.init();
  editLocation.init();
  editLinkSet.init();
  editLinkList.init();
  editMedia.init();
  editWarning.init();
}

@@ -345,56 +345,8 @@
 s';%0A
-import editLinkList from './edit-link-list.js';%0A
 impo
@@ -749,31 +749,8 @@
 ();%0A
-  editLinkList.init();%0A
   ed

fix merge conflict mistake