import { Application } from "stimulus";
import { definitionsFromContext } from "stimulus/webpack-helpers";
import Flatpickr from "stimulus-flatpickr";

const application = Application.start();
const context = require.context("./controllers", true, /\.js$/);
application.load(definitionsFromContext(context));

// Manually register Flatpickr as a stimulus controller
application.register("flatpickr", Flatpickr);

@@ -103,52 +103,8 @@
 rs%22;
-%0Aimport Flatpickr from %22stimulus-flatpickr%22;
 %0A%0Aco
@@ -262,107 +262,4 @@
 ));%0A
-%0A// Manually register Flatpickr as a stimulus controller%0Aapplication.register(%22flatpickr%22, Flatpickr);%0A

remove duplicate Flatpickr controller registration