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,QAAS,OACTC,OAAQ,CACNhC,OAAQ,SACR0B,KAAM,WAIZO,KAAMC,EAAAA,EACNC,MAAO,CACLlC,MAAOmC,EAAAA,EACP5B,OAAQ,CACN6B,UAAW,CACTC,OAAQ,uBAEV1B,yBAA0B,CACxB,eAAgB1D,KAAKkC,kBAO/BlC,KAAKC,QAAQC,iBAAiB,SAAUF,KAAKqF,eAAejF,KAAKJ,MACnE,CAEAuC,iBAAAA,GACE,MAAM+C,EAAqBhE,SAASC,eAAe,uBACnD,OAAI+D,GAAsBA,EAAmBC,MACpCC,KAAKC,MAAMH,EAAmBC,OAEhC,CAAC,CACV,CAEA,oBAAMF,CAAehF,GAGnB,MAAMqF,QAAmB1F,KAAKwC,cAAcmD,OAEtCC,EAAW5F,KAAKC,QACJ2F,EAASxD,cAAc,iCAErBd,SAASC,eAAe,uBAEhCgE,MAAQC,KAAKK,UAAUH,GACnCE,EAASE,QACX,E,wBC9IF,IAAIC,EAAM,CACT,mBAAoB,MACpB,mCAAoC,MACpC,yBAA0B,MAC1B,aAAc,MACd,+BAAgC,MAChC,6BAA8B,MAC9B,6CAA8C,MAC9C,mCAAoC,MACpC,uBAAwB,MACxB,yCAA0C,OAI3C,SAASC,EAAeC,GACvB,IAAIC,EAAKC,EAAsBF,GAC/B,OAAOG,EAAoBF,EAC5B,CACA,SAASC,EAAsBF,GAC9B,IAAIG,EAAoBC,EAAEN,EAAKE,GAAM,CACpC,IAAIK,EAAI,IAAIC,MAAM,uBAAyBN,EAAM,KAEjD,MADAK,EAAEvB,KAAO,mBACHuB,CACP,CACA,OAAOP,EAAIE,EACZ,CACAD,EAAeQ,KAAO,WACrB,OAAOC,OAAOD,KAAKT,EACpB,EACAC,EAAeU,QAAUP,EACzBQ,EAAOC,QAAUZ,EACjBA,EAAeE,GAAK,K","sources":["webpack://app/./app/javascript/packs/application.js","webpack://app/./app/javascript/controllers/application.js","webpack://app/./app/javascript/controllers/index.js","webpack://app/./app/javascript/controllers/corporate_signup_controller.js","webpack://app/./app/javascript/controllers/notification_controller.js","webpack://app/./app/javascript/controllers/editor_controller.js","webpack://app/./app/javascript/controllers/ sync \\.js$"],"sourcesContent":["// Support component names relative to this directory:\nvar componentRequireContext = require.context(\"components\", true);\nvar ReactRailsUJS = require(\"react_ujs\");\nReactRailsUJS.useContext(componentRequireContext);\n\n// Import Stimulus controllers\nimport \"./i18n\";\nimport { Application } from \"@hotwired/stimulus\";\nimport { definitionsFromContext } from \"@hotwired/stimulus-webpack-helpers\";\n\n// Initialize Stimulus application\nconst application = Application.start();\nconst context = require.context(\"controllers\", true, /\\.js$/);\napplication.load(definitionsFromContext(context));\n","import { Application } from \"@hotwired/stimulus\";\nimport { Turbo } from \"@hotwired/turbo-rails\"\n\n\nconst application = Application.start();\n\n// Configure Stimulus development experience\napplication.debug = false;\nwindow.Stimulus = application;\n\nexport { application };\n","// This file is auto-generated by ./bin/rails stimulus:manifest:update\n// Run that command whenever you add a new controller or create them with\n// ./bin/rails generate stimulus controllerName\n\nimport { application } from \"./application\"\n\nimport EditorController from \"./editor_controller\"\nimport CorporateSignupController from \"./corporate_signup_controller\"\napplication.register(\"editor\", EditorController)\napplication.register(\"corporate-signup\", CorporateSignupController)\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() {\n console.log(\"Corporate Signup Controller connected\")\n this.element.addEventListener(\"submit\", this.handleSubmit.bind(this))\n }\n\n async handleSubmit(event) {\n event.preventDefault(); // Prevent the default form submission\n\n const formData = new FormData(this.element);\n const response = await fetch(this.element.action, {\n method: \"POST\",\n body: formData,\n headers: {\n \"X-Requested-With\": \"XMLHttpRequest\",\n \"Accept\": \"application/json\"\n }\n });\n\n const data = await response.json();\n\n if (response.ok) {\n this.showNotification(data.message, \"success\");\n this.displaySuccessContent(data.message); // Pass the success message to displaySuccessContent\n } else {\n this.showNotification(data.message || \"There was an error with the sign-up form. Please try again.\", \"error\");\n }\n }\n\n showNotification(message, type) {\n const notificationArea = document.getElementById(\"notification_area\");\n notificationArea.innerHTML = `\n
${message}
\n${successMessage}
\n\n Thank you for joining NowCollab! We appreciate your interest and will review your information shortly. \n Our team will reach out to you within 3 business days with the next steps.\n
\n\n While you wait, feel free to connect with us on social media or check out some useful links.\n
\n