import FormHandler from './form';

const DonationForm = new FormHandler({
  rangesAttach: $('.carousel__slide--range .carousel__radios'),
  amountsAttach: $('.carousel__slide--amount .carousel__radios'),
  outerContainer: $('#carousel-outer'),
  innerContainer: $('#carousel-inner'),
  carouselSlides: $('[class*=carousel__slide]'),
  prevButton: $('#prev'),
  nextButton: $('#next'),
  submitButton: $('#submit'),
  manualInput: $('#amount-input'),
  form: $('.carousel__form'),
  errorMessage: $('#error-message'),
  frequenciesRadios: '.carousel__slide--frequency .carousel__radio',
  rangesRadios: '.carousel__slide--range .carousel__radio',
  amountsRadios: '.carousel__slide--amount .carousel__radio',
  defaultFrequenciesIndex: 1,
  defaultRangesIndex: 1,
  defaultAmountsIndex: 1,
  startSlide: 0,
  animationLength: 400,
  frequenciesToRanges: [
    [1, 2, 3, 4],
    [5, 6, 7, 8],
    [9, 10, 11, 12],
    [13, 14, 15, 16]
  ],
  rangesToAmounts: [
    [17, 18, 19, 20],
    [21, 22, 23, 24],
    [25, 26, 27, 28],
    [29, 30, 31, 32]
  ]
});

DonationForm.doInitialEvents();
DonationForm.initCarousel();
DonationForm.bindAllEvents();

@@ -28,16 +28,76 @@
 form';%0A%0A
+(function resetForm() %7B%0A  document.forms%5B0%5D.reset();%0A%7D)();%0A%0A
 const Do
@@ -177,30 +177,32 @@
  .carousel__
-radios
+fieldset
 '),%0A  amount
@@ -489,22 +489,22 @@
 ut: $('#
-amount
+manual
 -input')
@@ -861,16 +861,45 @@
 ide: 0,%0A
+  startFrequency: 'monthly',%0A
   animat
@@ -941,92 +941,209 @@
 es: 
-%5B
+%7B
 %0A    
-%5B1, 2, 3, 4%5D,%0A    %5B5, 6, 7, 8%5D,%0A    %5B9, 10, 11, 12%5D,%0A    %5B13, 14, 15, 16
+once: %5B'$35-$100', '$101-$500', '$501-$999', '$1,000-$5,000'%5D,%0A    monthly: %5B'$5-$34', '$35-$64', '$65-$83', '$84-$417'%5D,%0A    yearly: %5B'$35-$100', '$101-$500', '$501-$999', '$1,000-$5,000'
 %5D%0A  
-%5D,
+%7D,%0A
 %0A  r
@@ -1162,138 +1162,403 @@
 ts: 
-%5B%0A    %5B17, 18, 19, 20
+%7B%0A    once: %5B%0A      %5B35, 55, 75, 100%5D,%0A      %5B101, 150, 300, 500%5D,%0A      %5B501, 650, 850, 999%5D,%0A      %5B1000, 2500, 4500, 5000%5D%0A    
 %5D,%0A
+%0A
     
-%5B21, 22, 23, 2
+monthly: %5B%0A      %5B5, 15, 25, 3
 4%5D,%0A
+  
     %5B
-25, 26, 27, 28%5D,%0A    %5B29, 30, 31, 32%5D%0A  %5D%0A%7D);%0A%0ADonationForm.doInitialEvents(
+35, 45, 55, 64%5D,%0A      %5B65, 75, 80, 83%5D,%0A      %5B84, 146, 209, 417%5D%0A    %5D,%0A%0A    yearly: %5B%0A      %5B35, 55, 75, 100%5D,%0A      %5B101, 150, 300, 500%5D,%0A      %5B501, 650, 850, 999%5D,%0A      %5B1000, 2500, 4500, 5000%5D%0A    %5D%0A  %7D%0A%7D
 );%0A
+%0A
 Dona

remove nonexistent method call