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,KAAK2I,cAAc/G,wBAC7B,OAAO0E,KAAK0C,IAAI1C,KAAK2C,IAAItH,EAAIE,EAAIvC,OAAO4J,YAAc,IAAK,GAAI,IACjE,EAED,EAvBQ3H,QAAU,CAAE,U","sources":["webpack:///./app/javascript/packs/controllers/ sync \\.js$","webpack:///./app/javascript/packs/application.js","webpack:///./app/javascript/packs/controllers/animated_plane_button_controller.js","webpack:///./app/javascript/packs/controllers/autofocus_controller.js","webpack:///./app/javascript/packs/controllers/choose_a_time_controller.js","webpack:///./app/javascript/packs/controllers/form_controller.js","webpack:///./app/javascript/packs/controllers/header_controller.js","webpack:///./app/javascript/packs/controllers/leskaart_steps_controller.js","webpack:///./app/javascript/packs/controllers/modal_controller.js","webpack:///./app/javascript/packs/controllers/planning_devices_controller.js","webpack:///./app/javascript/packs/controllers/pricing_controller.js","webpack:///./app/javascript/packs/controllers/select_nav_controller.js","webpack:///./app/javascript/packs/controllers/selectable_controller.js","webpack:///./app/javascript/packs/controllers/signed_up_controller.js","webpack:///./app/javascript/packs/controllers/signup_form_controller.js","webpack:///./app/javascript/packs/controllers/toggle_controller.js","webpack:///./app/javascript/packs/controllers/video_controller.js","webpack:///./app/javascript/packs/controllers/video_player_controller.js","webpack:///./app/javascript/packs/controllers/widget_push_notification_controller.js"],"sourcesContent":["var map = {\n\t\"./animated_plane_button_controller.js\": 260,\n\t\"./autofocus_controller.js\": 708,\n\t\"./choose_a_time_controller.js\": 470,\n\t\"./form_controller.js\": 555,\n\t\"./header_controller.js\": 927,\n\t\"./leskaart_steps_controller.js\": 194,\n\t\"./modal_controller.js\": 304,\n\t\"./planning_devices_controller.js\": 613,\n\t\"./pricing_controller.js\": 288,\n\t\"./select_nav_controller.js\": 830,\n\t\"./selectable_controller.js\": 825,\n\t\"./signed_up_controller.js\": 380,\n\t\"./signup_form_controller.js\": 1,\n\t\"./toggle_controller.js\": 36,\n\t\"./video_controller.js\": 325,\n\t\"./video_player_controller.js\": 242,\n\t\"./widget_push_notification_controller.js\": 710,\n\t\"packs/controllers/animated_plane_button_controller.js\": 260,\n\t\"packs/controllers/autofocus_controller.js\": 708,\n\t\"packs/controllers/choose_a_time_controller.js\": 470,\n\t\"packs/controllers/form_controller.js\": 555,\n\t\"packs/controllers/header_controller.js\": 927,\n\t\"packs/controllers/leskaart_steps_controller.js\": 194,\n\t\"packs/controllers/modal_controller.js\": 304,\n\t\"packs/controllers/planning_devices_controller.js\": 613,\n\t\"packs/controllers/pricing_controller.js\": 288,\n\t\"packs/controllers/select_nav_controller.js\": 830,\n\t\"packs/controllers/selectable_controller.js\": 825,\n\t\"packs/controllers/signed_up_controller.js\": 380,\n\t\"packs/controllers/signup_form_controller.js\": 1,\n\t\"packs/controllers/toggle_controller.js\": 36,\n\t\"packs/controllers/video_controller.js\": 325,\n\t\"packs/controllers/video_player_controller.js\": 242,\n\t\"packs/controllers/widget_push_notification_controller.js\": 710\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 451;","// Remember scroll position\n(function(){\n var scrollPositions = {};\n\n addEventListener(\"turbo:before-render\", function(){\n document.querySelectorAll(\"[data-turbo-permanent]\").forEach(function(element){ \n scrollPositions[element.id] = element.scrollTop;\n });\n });\n\n addEventListener(\"turbo:render\", function(){\n document.querySelectorAll(\"[data-turbo-permanent]\").forEach(function(element){ \n element.scrollTop = scrollPositions[element.id];\n });\n });\n})();\n\nwindow.throttle = function(callback, wait, immediate = false) {\n let timeout = null \n let initialCall = true\n \n return function() {\n const callNow = immediate && initialCall\n const next = () => {\n callback.apply(this, arguments)\n timeout = null\n }\n \n if (callNow) { \n initialCall = false\n next()\n }\n\n if (!timeout) {\n timeout = setTimeout(next, wait)\n }\n }\n}\n\nimport { Application } from \"stimulus\"\nimport { definitionsFromContext } from \"stimulus/webpack-helpers\"\n\nimport \"./application.css\"\n\n// Boot\nrequire(\"@rails/ujs\").start()\nimport \"@hotwired/turbo\"\n\nconst application = Application.start()\nconst controllers = require.context(\"./controllers\", true, /\\.js$/)\napplication.load(definitionsFromContext(controllers))","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n\n connect() {\n this.element.addEventListener('click', function() {\n this.element.classList.add('animated-plane-activated')\n }.bind(this))\n\n // Instantly click\n if (this.element.dataset.autoClick == \"1\") this.element.click()\n }\n\n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n \n connect() {\n this.element.focus()\n }\n \n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n\n openIntercom() {\n Intercom('show');\n }\n\n}\n\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n \n static targets = [ \"form\" ]\n\n submit() {\n this.formTarget.requestSubmit()\n }\n\n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"navigation\"]\n \n connect() {\n document.addEventListener(\"scroll\", this.scroll.bind(this), {passive: true})\n }\n \n disconnect() {\n document.removeEventListener(\"scroll\", this.scroll.bind(this))\n }\n\n changeHeaderColors = throttle(function() {\n this.sections.forEach(function(section) {\n let box = section.getBoundingClientRect()\n if (box.y <= 50 && (box.y + box.height) >= 50)\n this.element.dataset.bgColor = section.dataset.bgColor\n }.bind(this))\n }, 100)\n\n scroll(event) {\n this.changeHeaderColors()\n }\n\n toggleNav(event) {\n event.preventDefault()\n this.navigationTarget.classList.toggle('open')\n }\n\n get sections() {\n return Array.from(document.querySelectorAll(\"[data-bg-color]\"))\n }\n\n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"video\" ]\n\n step1() {\n this.videoTarget.currentTime = 0\n }\n\n step2() {\n this.videoTarget.currentTime = 14\n }\n\n step3() {\n this.videoTarget.currentTime = 30\n }\n\n}","import { Controller } from \"stimulus\"\n\nrequire('cleave.js/dist/cleave.js')\n\nexport default class extends Controller {\n static targets = [ \"postalCode\" ]\n\n connect() {\n this.open()\n if (this.hasPostalCodeTarget) {\n this.cleavePostalCodeField()\n }\n }\n\n open() {\n setTimeout(function() {\n this.element.classList.add('open')\n }.bind(this), 100)\n }\n\n close() {\n document.querySelector('#modal').innerHTML = \"\"\n document.querySelectorAll('.animated-plane-activated').forEach(function(button) {\n button.classList.remove('animated-plane-activated')\n })\n }\n\n preventClose(event) {\n event.stopPropagation()\n }\n\n cleavePostalCodeField() {\n let params = {blocks: [4, 2], uppercase: true, delimiter: ' '}\n\n // Reset cleave instance\n if (this.cleaveInstance) this.cleaveInstance.destroy()\n this.cleaveInstance = new Cleave(this.postalCodeTarget, params)\n }\n\n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n switchDevices() {\n this.element.classList.toggle('switched')\n }\n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"total\", \"totalSub\", \"fulltime\", \"parttime\", \"fulltimeLicenses\", \"parttimeLicenses\", \"parttimeGroup\", \"theoryExplainer\", \"theoryPrice\" ]\n\n connect() {\n this.fulltimeTarget.value = localStorage.getItem('fulltimeCount') || 1\n this.parttimeTarget.value = localStorage.getItem('parttimeCount') || 0\n \n this.theory = false\n this.homework = false\n \n this.calculatePrice()\n }\n \n track() {\n gtag('event', 'pricing', {'price': this.price})\n }\n\n calculatePrice(event) {\n // Set license counters\n this.fulltimeLicensesTarget.innerText = this.fulltime\n this.parttimeLicensesTarget.innerText = this.parttime\n\n // Set total price\n this.totalTarget.innerText = this.price\n \n // Set theory price\n let instructors = this.fulltime + this.parttime\n let studentsperyear = this.fte * 40 - 5\n let theorypricing = (this.theoryPrice * 12) / (studentsperyear)\n this.theoryPriceTarget.innerText = theorypricing.toFixed(2).replace(\".\", \",\").replace(\",00\", \",-\")\n \n if (instructors == 1) {\n this.theoryExplainerTarget.innerText = `Jouw rijschool heeft ${instructors} instructeur en per jaar leid je gemiddeld ${studentsperyear} leerlingen op.`\n } else {\n this.theoryExplainerTarget.innerText = `Jouw rijschool heeft ${instructors} instructeurs en per jaar leiden jullie samen gemiddeld ${studentsperyear} leerlingen op.`\n }\n\n // Toggle active class\n this.parttimeGroupTarget.classList.toggle(\"pricing-slider-inactive\", this.parttime == 0)\n\n // Set localStorage\n localStorage.setItem('fulltimeCount', this.fulltime)\n localStorage.setItem('parttimeCount', this.parttime)\n localStorage.setItem('licenseCount', this.licenses)\n }\n \n toggleTheory(event) {\n this.theory = event.currentTarget.checked\n this.calculatePrice()\n }\n \n toggleHomework(event) {\n this.homework = event.currentTarget.checked\n this.calculatePrice()\n }\n \n get fte() {\n return this.fulltime + this.parttime * 0.5\n }\n\n get price() {\n let price = this.fixedRate + this.fulltime * this.fulltimeRate + this.parttime * this.parttimeRate\n price = Math.round(price * 100) / 100\n \n if (this.theory) {\n price = price + this.theoryPrice\n }\n \n if (this.homework) {\n price = price + this.homeworkRate\n }\n \n if (price > 450) {\n this.totalSubTarget.classList.add('hidden')\n return \"Op aanvraag\"\n } else {\n this.totalSubTarget.classList.remove('hidden')\n return \"€\" + price.toFixed(2).replace(\".\", \",\").replace(\",00\", \",-\")\n } \n }\n\n get fulltime() {\n return parseInt(this.fulltimeTarget.value)\n }\n\n get parttime() {\n return parseInt(this.parttimeTarget.value)\n }\n\n get licenses() {\n return this.fulltime + this.parttime\n }\n\n get fulltimeRate() {\n if (this.licenses <= 4) {\n return 45\n } else if (this.licenses <= 9) {\n return 33\n } else if (this.licenses <= 14) {\n return 28\n } else if (this.licenses <= 19) {\n return 23.5\n } else if (this.licenses <= 22) {\n return 21.5\n } else if (this.licenses <= 23) {\n return 21\n } else if (this.licenses <= 24) {\n return 20.5\n } else if (this.licenses <= 25) {\n return 20\n } else if (this.licenses <= 26) {\n return 19.5\n } else {\n return 19\n }\n }\n\n get parttimeRate() {\n return Math.round(this.fulltimeRate * 0.55 * 100) / 100\n }\n\n get fixedRate() {\n if (this.licenses <= 4) {\n return 0\n } else if (this.licenses <= 9) {\n return 30\n } else if (this.licenses <= 14) {\n return 60\n } else if (this.licenses <= 19) {\n return 100\n } else if (this.licenses <= 25) {\n return 120\n } else {\n return 150\n }\n }\n \n get theoryPrice() {\n let theoryPrice = this.theoryFixedRate + this.fulltime * this.theoryFulltimeRate + this.parttime * this.theoryParttimeRate\n return Math.round(theoryPrice * 100) / 100\n }\n \n get theoryFixedRate() {\n if (this.licenses <= 4) {\n return 0\n } else if (this.licenses <= 9) {\n return 20\n } else if (this.licenses <= 14) {\n return 40\n } else if (this.licenses <= 19) {\n return 60\n } else {\n return 80\n }\n }\n \n get theoryFulltimeRate() {\n if (this.licenses <= 4) {\n return 40\n } else if (this.licenses <= 9) {\n return 30\n } else if (this.licenses <= 14) {\n return 25\n } else if (this.licenses <= 19) {\n return 21\n } else {\n return 17\n }\n }\n \n get theoryParttimeRate() {\n return Math.round(this.theoryFulltimeRate * 0.55 * 100) / 100\n }\n \n get homeworkRate() {\n return Math.round(this.fte * 6 * 100) / 100\n }\n\n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n \n navigate(event) {\n let value = this.element.value\n if (value.length > 0) {\n window.location = value\n }\n }\n \n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"selectable\" ]\n \n select(event) {\n this.selectableTargets.forEach(function(selectable) {\n selectable.classList.remove(...this.classes)\n }.bind(this))\n event.currentTarget.classList.add(...this.classes)\n }\n \n get classes() {\n return this.element.dataset.selectableClass.split(\" \")\n }\n \n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n \n connect() {\n gtag('event', 'sign_up', {'method': \"Website\"})\n }\n \n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"instructors\"]\n\n connect() {\n if (this.licenseCount > 25) {\n this.instructorsTarget.value = 999\n } else {\n this.instructorsTarget.value = this.licenseCount\n }\n }\n\n get licenseCount() {\n return localStorage.getItem(\"licenseCount\") || 1\n }\n\n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"uncheckedContent\", \"checkedContent\", \"checkbox\"]\n \n toggle() {\n this.checkedContentTarget.classList.toggle(\"hidden\", !this.checked)\n this.uncheckedContentTarget.classList.toggle(\"hidden\", this.checked)\n this.element.classList.toggle(\"button-outline\", !this.checked)\n }\n \n get checked() {\n return this.checkboxTarget.checked\n }\n \n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"video\", \"play\", \"pause\", \"controls\" ]\n \n play() {\n this.videoTarget.play()\n }\n \n pause() {\n this.videoTarget.pause()\n }\n \n rewind() {\n this.videoTarget.currentTime = 0\n }\n \n toggleButtons() {\n if (this.videoTarget.paused) {\n this.playTarget.classList.remove(\"hidden\")\n this.pauseTarget.classList.add(\"hidden\")\n this.controlsTarget.classList.remove(\"opacity-0\")\n } else {\n this.playTarget.classList.add(\"hidden\")\n this.pauseTarget.classList.remove(\"hidden\")\n this.controlsTarget.classList.add(\"opacity-0\")\n }\n }\n \n}","import { Controller } from \"stimulus\"\nimport Plyr from \"plyr\"\n\nexport default class extends Controller {\n\n connect() {\n let player = new Plyr(this.element, {controls: this.controls, autoplay: this.autoplay})\n \n // Track video play\n gtag('event', 'video_play', {'embed_id': this.embedId})\n }\n \n get autoplay() {\n return this.element.hasAttribute(\"autoplay\")\n }\n\n get controls() {\n return [\"play\", \"play-large\", \"progress\", \"fullscreen\"]\n }\n \n get embedId() {\n return this.element.dataset.plyrEmbedId\n }\n\n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"message\" ]\n \n connect() {\n document.addEventListener(\"scroll\", this.animate.bind(this), {passive: true})\n }\n \n disconnect() {\n document.removeEventListener(\"scroll\", this.animate.bind(this))\n }\n\n transformMessage = throttle(function() {\n this.messageTarget.style.transform = `translateY(${this.percentageInView - 50}%)`\n }, 16)\n\n animate() {\n this.transformMessage()\n }\n\n get percentageInView() {\n let box = this.messageTarget.getBoundingClientRect()\n return Math.min(Math.max(box.y / window.innerHeight * 100, 0), 100)\n }\n\n}\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","scrollPositions","addEventListener","document","querySelectorAll","forEach","element","scrollTop","window","throttle","callback","wait","immediate","timeout","initialCall","callNow","next","apply","this","arguments","setTimeout","require","application","Application","controllers","load","definitionsFromContext","Controller","connect","classList","add","bind","dataset","autoClick","click","focus","openIntercom","Intercom","submit","formTarget","requestSubmit","targets","changeHeaderColors","sections","section","box","getBoundingClientRect","y","height","bgColor","scroll","passive","disconnect","removeEventListener","event","toggleNav","preventDefault","navigationTarget","toggle","Array","from","step1","videoTarget","currentTime","step2","step3","open","hasPostalCodeTarget","cleavePostalCodeField","close","querySelector","innerHTML","button","remove","preventClose","stopPropagation","cleaveInstance","destroy","Cleave","postalCodeTarget","blocks","uppercase","delimiter","switchDevices","fulltimeTarget","value","localStorage","getItem","parttimeTarget","theory","homework","calculatePrice","track","gtag","price","fulltimeLicensesTarget","innerText","fulltime","parttimeLicensesTarget","parttime","totalTarget","instructors","studentsperyear","fte","theorypricing","theoryPrice","theoryPriceTarget","toFixed","replace","theoryExplainerTarget","parttimeGroupTarget","setItem","licenses","toggleTheory","currentTarget","checked","toggleHomework","fixedRate","fulltimeRate","parttimeRate","Math","round","homeworkRate","totalSubTarget","parseInt","theoryFixedRate","theoryFulltimeRate","theoryParttimeRate","navigate","length","location","select","selectableTargets","selectable","classes","selectableClass","split","licenseCount","instructorsTarget","checkedContentTarget","uncheckedContentTarget","checkboxTarget","play","pause","rewind","toggleButtons","paused","playTarget","pauseTarget","controlsTarget","Plyr","controls","autoplay","embedId","hasAttribute","plyrEmbedId","transformMessage","messageTarget","style","transform","percentageInView","animate","min","max","innerHeight"],"sourceRoot":""}