{"version":3,"sources":["webpack:///core-ad63d5606b66127bda78.js","webpack:///./js/utils.js","webpack:///./Content/js/core/index.js","webpack:///./Content/js/core/back-to-top.js","webpack:///./Content/js/core/validation.js","webpack:///./js/plugins/validation/jquery.validate.nl.js","webpack:///./components/cendris/js/cendris.js","webpack:///./js/plugins/jquery/jquery.custom-select.js","webpack:///./js/general.js","webpack:///./js/menu.js","webpack:///./js/model-selector.js","webpack:///./js/plugins/jquery/jquery.switchview.js","webpack:///./js/plugins/jquery/jquery.forms.js"],"names":["webpackJsonp","110","module","exports","__webpack_require__","jQuery","$","registerNamespace","namespace","object","parts","split","parent","window","i","length","undefined","querystring","name","replace","regex","RegExp","results","exec","location","search","decodeURIComponent","scrollPage","e","delay","currentTarget","elem","this","href","attr","paddingTop","css","offset","arguments","data","scrollLength","top","parseInt","preventDefault","hash","animate","scrollTop","call","188","require","sticky_relocate","window_top","anchor","div_top","addClass","removeClass","scroll","189","backTop","document","getElementsByClassName","offsetOpacity","scrollDuration","scrolling","addEventListener","event","requestAnimationFrame","checkBackToTop","windowTop","scrollY","documentElement","classList","add","remove","duration","start","currentTime","animateScroll","timestamp","progress","val","Math","max","easeInOutQuad","scrollTo","t","b","c","d","190","191","extend","validator","messages","required","remote","email","url","date","dateISO","number","digits","creditcard","equalTo","extension","maxlength","format","minlength","rangelength","range","min","iban","dateNL","phoneNL","mobileNL","postalcodeNL","bankaccountNL","giroaccountNL","bankorgiroaccountNL","192","global","getAddress","input","successCallback","errorCallback","zipcode","housenumber","ajax","type","contentType","dataType","success","isFunction","error","app","cendris","fn","options","each","_this","fillValue","selector","value","index","className","readonly","editable","is","prop","html","on","hide","ZipCode","HouseNumber","street","Street","city","City","show","193","children","text","customSelect","194","ready","click","toggleClass","find","slideToggle","195","popupTimeout","Menu","$root","bindUIActions","prototype","open","menuItem","isMenuActive","hasClass","fadeIn","close","fadeOut","closePopup","openPopup","closest","keepOpen","Modernizr","touchevents","targetElement","toElement","relatedTarget","proxy","target","menu","196","$this","$lineArea","$carItem","$moreContent","carId","get","then","height","nHeight","outerHeight","setTimeout","24","toggleInputStatus","scope","view","attrs","disable","trigger","bindClick","toggle","switchView","settings","indexOf","50","validation","activeForms","createValidationMap","form","rules","atts","attributes","n","attrName","nodeName","attrValue","attrStart","ruleName","substr","key","methods","toLowerCase","JSON","parse","formHandler","$form","action","serialize","Status","Success","errorList","ValidationErrors","ErrorMessage","prepend","complete","submit","validateForm","validate","submitHandler","highlight","unhighlight","errorPlacement","noop","push","resetFormValidation","resetForm","onEditableClick","init","utils","register"],"mappings":"AAAAA,cAAc,IAERC,IACA,SAAUC,EAAQC,EAASC,GAEjC,cAC4B,SAASC,ICNrC,SAAWC,GAQV,QAASC,GAAkBC,EAAWC,GACrC,GAAIC,GAAQF,EAAUG,MAAM,IAC5B,IAAIC,GAASC,MAEb,KAAK,GAAIC,GAAI,EAAGA,EAAIJ,EAAMK,OAAQD,IAAK,CACtC,GAAIF,EAAOF,EAAMI,MAAQE,WAAaJ,EAAOF,EAAMI,MAAQ,KAAM,CAChEF,EAAOF,EAAMI,OAGd,GAAIA,GAAKJ,EAAMK,OAAS,EACvBH,EAAOF,EAAMI,IAAML,CACpBG,GAASA,EAAOF,EAAMI,KAGxBP,EAAkB,qBAAsBA,EAOxC,SAASU,GAAYC,GACpBA,EAAOA,EAAKC,QAAQ,OAAQ,OAAOA,QAAQ,OAAQ,MACnD,IAAIC,GAAQ,GAAIC,QAAO,SAAWH,EAAO,aACxCI,EAAUF,EAAMG,KAAKV,OAAOW,SAASC,OACtC,OAAOH,KAAY,KAAO,GAAKI,mBAAmBJ,EAAQ,GAAGH,QAAQ,MAAO,MAG7EZ,EAAkB,4BAA6BU,EAQ/C,SAASU,GAAWC,EAAGC,GACtB,GAAIA,GAAQA,EAAQA,EAAQ,CAC5B,IAAID,EAAEE,cAAe,CACpB,GAAIC,GAAOzB,EAAE0B,MACZC,EAAO3B,EAAEyB,EAAKG,KAAK,SACnBC,EAAaF,EAAKlB,OAASkB,EA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OmG,WAAW0C,KAAO,WAClB,GAAI/P,EAAEkI,GAAGmH,SAAU,CACxBrP,EAAE,4BAA4BoP,gBAIhClI,GAAOe,QAAQ8H,KAAO,WAErB,GAAI/P,EAAEkI,GAAGD,SAAWjI,EAAE,0BAA0BS,QAAUT,EAAE,8BAA8BS,OAAQ,CACjGT,EAAE,sDAAsDiI,SACvDV,QAAS,yBACTC,YAAa,6BACb4B,OAAQ,wBACRE,KAAM,yBAKTtJ,GAAEkI,GAAGkH,aAAeA,CAEpBpP,GAAE,WACDkH,EAAOmG,WAAW0C,MAClB7I,GAAOe,QAAQ8H,MAEf/P,GAAE,eAAegJ,GAAG,QAAS,YAAa8G,EAE1C9P,GAAEO,QAAQyI,GAAG,sBAAuB4G,IAGrC5H,KAAIgI,MAAMC,SAAS,uBAAwB/I,EAAOmG,WAClDrF,KAAIgI,MAAMC,SAAS,oBAAqB/I,EAAOe,WAC7ClI,KZ6pB0B0C,KAAK5C,EAASC,EAAoB,OAI5D","file":"core-ad63d5606b66127bda78.js","sourcesContent":["webpackJsonp([6],{\n\n/***/ 110:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(jQuery) {\n\n(function ($) {\n\n\t/// \n\t/// Registers the namespace.\n\t/// \n\t/// The namespace.\n\t/// The object.\n\t/// \n\tfunction registerNamespace(namespace, object) {\n\t\tvar parts = namespace.split('.');\n\t\tvar parent = window;\n\n\t\tfor (var i = 0; i < parts.length; i++) {\n\t\t\tif (parent[parts[i]] === undefined || parent[parts[i]] === null) {\n\t\t\t\tparent[parts[i]] = {};\n\t\t\t}\n\n\t\t\tif (i == parts.length - 1) parent[parts[i]] = object;\n\t\t\tparent = parent[parts[i]];\n\t\t}\n\t}\n\tregisterNamespace('app.utils.register', registerNamespace);\n\n\t/// \n\t/// Gets the value for the specified name from the query string.\n\t/// \n\t/// The name.\n\t/// Returns the value from the query string for the specified name.\n\tfunction querystring(name) {\n\t\tname = name.replace(/[\\[]/, \"\\\\[\").replace(/[\\]]/, \"\\\\]\");\n\t\tvar regex = new RegExp(\"[\\\\?&]\" + name + \"=([^&#]*)\"),\n\t\t results = regex.exec(window.location.search);\n\t\treturn results === null ? \"\" : decodeURIComponent(results[1].replace(/\\+/g, \" \"));\n\t}\n\n\tregisterNamespace('app.utils.url.querystring', querystring);\n\n\t/// \n\t/// Scrolls the page to the specified point.\n\t/// \n\t/// The e.\n\t/// The delay.\n\t/// \n\tfunction scrollPage(e, delay) {\n\t\tvar delay = delay ? delay : 0;\n\t\tif (e.currentTarget) {\n\t\t\tvar elem = $(this),\n\t\t\t href = $(elem.attr('href')),\n\t\t\t paddingTop = href.length ? href.css('paddingTop').replace('px', '') : 0,\n\t\t\t offset = arguments[0].data.offset ? arguments[0].data.offset : 0;\n\n\t\t\tvar scrollLength = href.offset().top - offset + parseInt(paddingTop);\n\n\t\t\te.preventDefault();\n\t\t\tlocation.hash = elem.attr('href');\n\n\t\t\tif (href.length === 0) return false;\n\t\t} else {\n\t\t\tscrollLength = e;\n\t\t}\n\n\t\t$('html, body').animate({\n\t\t\tscrollTop: scrollLength\n\t\t}, delay);\n\t};\n\n\tregisterNamespace('app.utils.page.scroll', scrollPage);\n})(jQuery);\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))\n\n/***/ }),\n\n/***/ 188:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {\n\n__webpack_require__(189);\n__webpack_require__(190);\n__webpack_require__(110);\n__webpack_require__(24);\n__webpack_require__(193);\n__webpack_require__(194);\n__webpack_require__(195);\n__webpack_require__(196);\n\n// sticky menu functionality\nfunction sticky_relocate() {\n var window_top = $(window).scrollTop();\n var anchor = $('#sticky-anchor');\n\n if (anchor.length) {\n var div_top = anchor.offset().top;\n if (window_top > div_top) {\n $('#sticky').addClass('stick');\n } else {\n $('#sticky').removeClass('stick');\n }\n }\n}\n\n$(function () {\n $(window).scroll(sticky_relocate);\n sticky_relocate();\n});\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))\n\n/***/ }),\n\n/***/ 189:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar backTop = document.getElementsByClassName('js-cd-top')[0],\n\n// browser window scroll (in pixels) after which the \"back to top\" link is shown\noffset = 300,\n\n//browser window scroll (in pixels) after which the \"back to top\" link opacity is reduced\noffsetOpacity = 1200,\n scrollDuration = 700,\n scrolling = false;\n\nif (backTop) {\n //update back to top visibility on scrolling\n window.addEventListener(\"scroll\", function (event) {\n if (!scrolling) {\n scrolling = true;\n\n window.requestAnimationFrame(checkBackToTop);\n }\n });\n //smooth scroll to top\n backTop.addEventListener('click', function (event) {\n event.preventDefault();\n\n scrollTop(scrollDuration);\n });\n}\n\nfunction checkBackToTop() {\n var windowTop = window.scrollY || document.documentElement.scrollTop;\n\n if (windowTop > offset) {\n backTop.classList.add('cd-top--show');\n } else {\n backTop.classList.remove('cd-top--show');\n backTop.classList.remove('cd-top--fade-out');\n }\n\n if (windowTop > offsetOpacity) backTop.classList.add('cd-top--fade-out');\n\n scrolling = false;\n}\n\nfunction scrollTop(duration) {\n var start = window.scrollY || document.documentElement.scrollTop,\n currentTime = null;\n\n var animateScroll = function animateScroll(timestamp) {\n if (!currentTime) currentTime = timestamp;\n\n var progress = timestamp - currentTime;\n\n var val = Math.max(Math.easeInOutQuad(progress, start, -start, duration), 0);\n\n window.scrollTo(0, val);\n\n if (progress < duration) {\n window.requestAnimationFrame(animateScroll);\n }\n };\n\n window.requestAnimationFrame(animateScroll);\n}\n\nMath.easeInOutQuad = function (t, b, c, d) {\n t /= d / 2;\n if (t < 1) return c / 2 * t * t + b;\n t--;\n return -c / 2 * (t * (t - 2) - 1) + b;\n};\n\n/***/ }),\n\n/***/ 190:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n__webpack_require__(110);\n__webpack_require__(105);\n__webpack_require__(104);\n__webpack_require__(191);\n__webpack_require__(192);\n__webpack_require__(50);\n\n/***/ }),\n\n/***/ 191:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(jQuery) {\n\n/*\n * Translated default messages for the jQuery validation plugin.\n * Locale: NL (Dutch; Nederlands, Vlaams)\n */\n(function ($) {\n\t$.extend($.validator.messages, {\n\t\trequired: \"Dit is een verplicht veld.\",\n\t\tremote: \"Controleer dit veld.\",\n\t\temail: \"Vul hier een geldig e-mailadres in.\",\n\t\turl: \"Vul hier een geldige URL in.\",\n\t\tdate: \"Vul hier een geldige datum in.\",\n\t\tdateISO: \"Vul hier een geldige datum in (ISO-formaat).\",\n\t\tnumber: \"Vul hier een geldig getal in.\",\n\t\tdigits: \"Vul hier alleen getallen in.\",\n\t\tcreditcard: \"Vul hier een geldig creditcardnummer in.\",\n\t\tequalTo: \"Vul hier dezelfde waarde in.\",\n\t\textension: \"Vul hier een waarde in met een geldige extensie.\",\n\t\tmaxlength: $.validator.format(\"Vul hier maximaal {0} tekens in.\"),\n\t\tminlength: $.validator.format(\"Vul hier minimaal {0} tekens in.\"),\n\t\trangelength: $.validator.format(\"Vul hier een waarde in van minimaal {0} en maximaal {1} tekens.\"),\n\t\trange: $.validator.format(\"Vul hier een waarde in van minimaal {0} en maximaal {1}.\"),\n\t\tmax: $.validator.format(\"Vul hier een waarde in kleiner dan of gelijk aan {0}.\"),\n\t\tmin: $.validator.format(\"Vul hier een waarde in groter dan of gelijk aan {0}.\"),\n\n\t\t// for validations in additional-methods.js\n\t\tiban: \"Vul hier een geldig IBAN in.\",\n\t\tdateNL: \"Vul hier een geldige datum in.\",\n\t\tphoneNL: \"Vul hier een geldig Nederlands telefoonnummer in.\",\n\t\tmobileNL: \"Vul hier een geldig Nederlands mobiel telefoonnummer in.\",\n\t\tpostalcodeNL: \"Vul hier een geldige postcode in.\",\n\t\tbankaccountNL: \"Vul hier een geldig bankrekeningnummer in.\",\n\t\tgiroaccountNL: \"Vul hier een geldig gironummer in.\",\n\t\tbankorgiroaccountNL: \"Vul hier een geldig bank- of gironummer in.\"\n\t});\n})(jQuery);\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))\n\n/***/ }),\n\n/***/ 192:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(jQuery) {\n\n(function ($) {\n var global = {};\n\n global.getAddress = function (input, successCallback, errorCallback) {\n var zipcode = input.zipcode,\n housenumber = input.housenumber;\n\n if (zipcode) {\n zipcode = zipcode.replace(' ', '');\n housenumber = housenumber.replace(' ', '');\n $.ajax({\n type: 'POST',\n url: '/api/zipcode/check/' + zipcode + '/' + housenumber,\n data: '{}',\n contentType: 'application/json; charset=utf-8',\n dataType: 'json',\n success: function success(data) {\n if ($.isFunction(successCallback)) successCallback(data);\n },\n error: function error(data) {\n if (errorCallback && $.isFunction(errorCallback)) errorCallback(data);\n }\n });\n }\n };\n\n if (!window.app) {\n window.app = {};\n }\n window.app.cendris = global;\n})(jQuery);\n\n(function ($) {\n $.fn.cendris = function (options) {\n this.each(function () {\n var _this = $(this);\n\n function fillValue(selector, value, options) {\n $(selector).each(function (index, elem) {\n // If readonly, also add class show-label\n var className = options.readonly ? 'readonly show-label ' : '';\n\n if (options.editable === true) {\n className = className += 'editable ';\n } else if (options.editable === false) {\n className = className += 'editable-not-visible ';\n }\n\n // If value is given back from Cendris\n if (value) {\n if ($(elem).is(':input')) $(elem).val(value).prop('readonly', options.readonly).parent().addClass(className).removeClass('hide-label');else $(elem).html(value);\n } else {\n if ($(elem).is(':input')) $(elem).prop('readonly', false).parent().removeClass('editable editable-not-visible readonly show-label').addClass('hide-label');\n }\n });\n }\n\n _this.on('change', function () {\n var zipcode = $(options.zipcode).val(),\n housenumber = $(options.housenumber).val();\n\n if (zipcode && housenumber) {\n _this.parent().addClass('form-control-loader');\n app.cendris.getAddress({ zipcode: zipcode, housenumber: housenumber }, function (data) {\n if (data) {\n $('.address').hide();\n\n fillValue(options.zipcode, data.ZipCode, {});\n fillValue(options.housenumber, data.HouseNumber, {});\n fillValue(options.street, data.Street, { readonly: true, editable: true });\n fillValue(options.city, data.City, { readonly: true, editable: false });\n } else {\n $('.address').show();\n }\n _this.parent().removeClass('form-control-loader');\n }, function (data) {\n $('.address').show();\n\n fillValue(options.street, null, { readonly: true, editable: true });\n fillValue(options.city, null, { readonly: true, editable: false });\n\n _this.parent().removeClass('form-control-loader');\n });\n }\n });\n });\n };\n})(jQuery);\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))\n\n/***/ }),\n\n/***/ 193:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(jQuery) {\n\n(function ($) {\n\tfunction fillValue(elem) {\n\t\t$(elem).parent().children('span').html($('option:selected', $(elem)).text());\n\t};\n\n\t$.fn.customSelect = function () {\n\t\tthis.each(function () {\n\t\t\tfillValue(this);\n\t\t\t$(this).on('change', function () {\n\t\t\t\tfillValue(this);\n\t\t\t});\n\t\t});\n\t};\n\n\t// Init\n\t$(function () {\n\t\t$('.select:not(.select-default) select').customSelect();\n\t});\n})(jQuery);\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))\n\n/***/ }),\n\n/***/ 194:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {\n\n$(document).ready(function () {\n\t/* Dealerlist collapse */\n\t$('.car_compare .show_btn .expand').click(function () {\n\t\t$('.car_compare .con_table').addClass('on');$('.con_table .show_btn').addClass('off');$(\".show_btn .expand\").hide();$(\".show_btn .collapse\").show();return false;\n\t});\n\t$('.car_compare .show_btn .collapse').click(function () {\n\t\t$('.car_compare .con_table').removeClass('on');$('.car_compare .show_btn').removeClass('off');$(\".show_btn .expand\").show();$(\".show_btn .collapse\").hide();return false;\n\t});\n\t$('.car_compare .title').click(function () {\n\t\t$(this).parent().toggleClass('on');\n\t});\n\n\t/* =Review Toggle\r\n ------------------------------------------------------------*/\n\t$('.toggles h3').click(function () {\n\t\t$(this).parent().find(\"h3\").toggleClass(\"active\");\n\t\t$(this).parent().find(\".toggle_content\").slideToggle(200);\n\t});\n\n\t$(\".atoggle\").click(function () {\n\t\t$('.panel').slideToggle(\"slow\");\n\t});\n});\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))\n\n/***/ }),\n\n/***/ 195:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(jQuery) {\n\n(function ($) {\n\tvar popupTimeout = null;\n\n\tfunction Menu() {\n\t\tthis.$root = $('.header');\n\t\tthis.bindUIActions();\n\t}\n\n\tMenu.prototype.open = function (menuItem) {\n\t\tif (!$('#' + menuItem).length) return;\n\n\t\tvar isMenuActive = $('#' + menuItem).hasClass('active');\n\n\t\tif (!isMenuActive) {\n\t\t\t$('[data-menu=\"' + menuItem + '\"], #' + menuItem).addClass('active');\n\t\t\t$('.menu-overlay').fadeIn(200);\n\t\t}\n\t};\n\n\tMenu.prototype.close = function (event) {\n\t\t$('.popout > div', this.$root).add('.gnb li a', this.$root).removeClass('active');\n\t\t$('.menu-overlay').fadeOut(200);\n\t\tthis.closePopup();\n\t};\n\n\tMenu.prototype.openPopup = function (event) {\n\t\tevent.preventDefault();\n\t\tthis.closePopup();\n\t\t$('.showroom', this.$root).addClass('car-active');\n\t\t$(event.currentTarget).closest('.car-item').addClass('active');\n\t};\n\n\tMenu.prototype.closePopup = function (e) {\n\t\t$('.car-item', this.$root).removeClass('active');\n\t\t$('.showroom', this.$root).removeClass('car-active');\n\t};\n\n\tMenu.prototype.keepOpen = function () {\n\t\t$('.popout > div.active, [data-menu][data-menu!=\"close\"].active', this.$root).addClass('active');\n\t};\n\n\tMenu.prototype.bindUIActions = function () {\n\t\tvar _this = this;\n\n\t\t// Open menu\n\t\tif (!window.Modernizr.touchevents) {\n\t\t\t$('[data-menu][data-menu!=\"close\"]', this.$root).on('mouseenter', function (e) {\n\t\t\t\t_this.open($(this).data('menu'));\n\t\t\t}).on('mouseleave', function (e) {\n\n\t\t\t\t// If next element is part of popout, don't close\n\t\t\t\tvar targetElement = e.toElement || e.relatedTarget; // bugfix: use relatedTarget in FireFox.\n\t\t\t\tif (!$('#' + $(this).data('menu')).find(targetElement).length) {\n\t\t\t\t\t_this.close();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$('.popout', this.$root).on('mouseenter', this.keepOpen).on('mouseleave', function (e) {\n\t\t\t\tif (!$('.gnb').find(e.toElement).length) {\n\t\t\t\t\t_this.close();\n\t\t\t\t}\n\t\t\t});\n\t\t\t// Open car popup\n\t\t\t$('.car-item > a', this.$root).on('mouseenter', function (e) {\n\t\t\t\t_this.openPopup(e);\n\t\t\t});\n\t\t\t// Close car popup\n\t\t\t$('.car-item', this.$root).on('mouseleave', $.proxy(this.closePopup, this));\n\t\t} else {\n\t\t\t$('[data-menu][data-menu!=\"close\"]', this.$root).on('click', function (e) {\n\t\t\t\t_this.open($(this).data('menu'));\n\t\t\t});\n\n\t\t\t// Open car popup\n\t\t\t$('.car-item > a', this.$root).on('click', function (e) {\n\t\t\t\t_this.openPopup(e);\n\t\t\t});\n\t\t\t// Close car popup\n\t\t\t$(window).on('switchView', $.proxy(this.closePopup, this));\n\t\t}\n\n\t\t// Close menu\n\t\t$('[data-menu=\"close\"]', this.$root).on('click', $.proxy(this.close, this));\n\n\t\t// Close car popup\n\t\t$('.showroom', this.$root).on('click', function (e) {\n\t\t\tif ($(e.target).hasClass('tab-pane') || $(e.target).hasClass('nav-tabs') || $(e.target).parent().hasClass('nav-tabs')) {\n\t\t\t\t_this.closePopup();\n\t\t\t}\n\t\t});\n\t};\n\n\t$(function () {\n\t\tvar menu = new Menu();\n\t});\n})(jQuery);\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))\n\n/***/ }),\n\n/***/ 196:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(jQuery) {\n\n(function ($) {\n\n $(document).on(\"click\", \".btn-car-more\", function (e) {\n e.preventDefault();\n\n var $this = $(this);\n\n var $lineArea = $this.closest(\".car-row\");\n var $carItem = $this.closest('.car-item');\n var $moreContent = $carItem.find(\".car-more-content\");\n\n var carId = $carItem.data('id');\n\n $.get('/modelselector/detail/' + carId).then(function (html) {\n $moreContent.html(html);\n\n if (!$this.hasClass(\"on\")) {\n $(\".btn-car-more\").removeClass(\"on\");\n $this.addClass(\"on\");\n $(\".car-more-content\").hide();\n $moreContent.show();\n $(\".model-selector .car-row\").css({ height: 190 });\n var nHeight = $moreContent.outerHeight() ? $moreContent.outerHeight() + 40 : 40;\n $lineArea.css({ height: 190 + nHeight });\n } else {\n $this.removeClass(\"on\");\n $lineArea.css({ height: 190 });\n setTimeout(function () {\n $moreContent.hide();\n }, 200);\n }\n\n setTimeout(function () {\n $(\"body,html\").animate({ scrollTop: $this.closest(\".car-item\").offset().top }, 500);\n }, 300);\n });\n });\n\n $(document).on(\"click\", \".car-more-close\", function (e) {\n e.preventDefault();\n\n var $lineArea = $(this).closest(\".car-row\");\n var $moreContent = $(this).closest(\".car-item\").find(\".car-more-content\");\n $(\".btn-car-more\").removeClass(\"on\");\n $lineArea.css({ height: 190 });\n setTimeout(function () {\n $moreContent.hide();\n }, 200);\n });\n})(jQuery);\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))\n\n/***/ }),\n\n/***/ 24:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(jQuery) {\n\n(function ($) {\n\tvar global = {\n\t\toptions: {}\n\t};\n\n\tfunction toggleInputStatus(scope, view, attrs) {\n\t\tif (attrs.disable) {\n\t\t\t$(scope).find('input, select').prop('disabled', true);\n\t\t\t$(view).find('input, select').prop('disabled', false);\n\t\t}\n\t\t$('img.lazy').trigger('unveil');\n\t};\n\n\tfunction bindClick(scope, view, attrs) {\n\t\tif (attrs.toggle) {\n\t\t\tif ($(view).hasClass('active')) {\n\t\t\t\t$('[data-switchview-scope=\"' + scope + '\"], ' + scope).removeClass('active');\n\t\t\t\t$('[data-switchview-target=\"' + view + '\"], ' + view).removeClass('active');\n\t\t\t} else {\n\t\t\t\t$('[data-switchview-scope=\"' + scope + '\"], ' + scope).removeClass('active');\n\t\t\t\t$('[data-switchview-target=\"' + view + '\"], ' + view).addClass('active');\n\t\t\t}\n\t\t} else {\n\t\t\t$('[data-switchview-scope=\"' + scope + '\"], ' + scope).removeClass('active');\n\t\t\t$('[data-switchview-target=\"' + view + '\"], ' + view).addClass('active');\n\t\t}\n\t\ttoggleInputStatus(scope, view, attrs);\n\t\t$(window).trigger('switchView');\n\t};\n\n\t$.fn.switchView = function (options) {\n\t\treturn this.each(function () {\n\t\t\tvar settings = $.extend(global.options, options),\n\t\t\t trigger = $(this),\n\t\t\t scope = trigger.data('switchview-scope'),\n\t\t\t view = trigger.data('switchview-target'),\n\t\t\t attrs = {\n\t\t\t\tdisable: trigger.data('switchview-disable') !== undefined ? trigger.data('switchview-disable') : true,\n\t\t\t\ttoggle: trigger.data('switchview-toggle') !== undefined ? trigger.data('switchview-toggle') : false\n\t\t\t};\n\n\t\t\t// Init\n\t\t\tif (scope.indexOf(',') > -1) {\n\t\t\t\t$.each(scope.split(','), function (index, scope) {\n\t\t\t\t\t$.each(view.split(','), function (index, view) {\n\t\t\t\t\t\ttoggleInputStatus(scope, view, attrs);\n\t\t\t\t\t});\n\t\t\t\t});\n\n\t\t\t\ttrigger.on('click switchView', function (event) {\n\t\t\t\t\t$.each(scope.split(', '), function (index, scope) {\n\t\t\t\t\t\t$.each(view.split(', '), function (index, view) {\n\t\t\t\t\t\t\tbindClick(scope, view, attrs);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\ttoggleInputStatus(scope, view, attrs);\n\t\t\t\ttrigger.on('click switchView', function (event) {\n\t\t\t\t\tbindClick(scope, view, attrs);\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t};\n\n\t$(function () {\n\t\t$('[data-switchview-scope]').switchView();\n\t});\n})(jQuery);\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))\n\n/***/ }),\n\n/***/ 50:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(jQuery) {\n\n(function ($) {\n\tvar global = {\n\t\tvalidation: {},\n\t\tcendris: {}\n\t},\n\t activeForms = [];\n\n\tfunction createValidationMap(form) {\n\t\tvar rules = {};\n\n\t\t$('input, select, textarea', form).each(function (index, elem) {\n\t\t\tfor (var i = 0, atts = elem.attributes, n = atts.length; i < n; i++) {\n\t\t\t\tvar attrName = atts[i].nodeName,\n\t\t\t\t attrValue = atts[i].value,\n\t\t\t\t attrStart = 'data-val-';\n\t\t\t\tif (attrName.indexOf(attrStart) > -1) {\n\t\t\t\t\tvar ruleName = attrName.substr(attrStart.length);\n\t\t\t\t\t// Get case-sensitive rule name\n\t\t\t\t\tfor (var key in $.validator.methods) {\n\t\t\t\t\t\tif (ruleName == key.toLowerCase()) ruleName = key;\n\t\t\t\t\t}\n\t\t\t\t\t// Apply rule to element\n\t\t\t\t\trules[elem.name] = rules[elem.name] || {};\n\t\t\t\t\tif (attrName === 'data-val-required-if-no') {\n\t\t\t\t\t\trules[elem.name][ruleName] = attrValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trules[elem.name][ruleName] = JSON.parse(attrValue.toLowerCase()); // JSON.parse for converting string to bool, float, etc\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\treturn rules;\n\t}\n\n\t// Form handler\n\tfunction formHandler(form) {\n\t\tvar $form = $(form);\n\t\t$form.find(':submit').prop('disabled', true).addClass('btn-loader');\n\t\tif ($form.data('async') === true) {\n\t\t\t$.ajax({\n\t\t\t\turl: form.action,\n\t\t\t\tdata: $form.serialize(),\n\t\t\t\tdataType: 'json',\n\t\t\t\ttype: 'post',\n\t\t\t\tsuccess: function success(data) {\n\t\t\t\t\tif (data.Status === 1 || data.Success) {\n\t\t\t\t\t\t$form.addClass('form-processed');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$('.error-list', $form).remove();\n\n\t\t\t\t\t\tvar errorList = '';\n\t\t\t\t\t\t$.each(data.ValidationErrors, function (index, error) {\n\t\t\t\t\t\t\terrorList += '
  • ' + error.ErrorMessage + '
  • ';\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tif ($('.form-container', $form).length) {\n\t\t\t\t\t\t\t$('.form-container', $form).prepend('
    ');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$form.prepend('
    ');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$form.trigger('submitSuccess');\n\t\t\t\t},\n\t\t\t\terror: function error() {\n\t\t\t\t\t$('.error-list', $form).remove();\n\n\t\t\t\t\tif ($('.form-container', $form).length) {\n\t\t\t\t\t\t$('.form-container', $form).prepend('
    ');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$form.prepend('
    ');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tcomplete: function complete() {\n\n\t\t\t\t\t$form.find(':submit').prop('disabled', false).addClass('btn-loader');\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tform.submit();\n\t\t}\n\t}\n\n\tfunction validateForm() {\n\t\tthis.each(function (index, elem) {\n\t\t\t$(elem).validate({\n\t\t\t\trules: createValidationMap(elem),\n\t\t\t\tsubmitHandler: formHandler,\n\t\t\t\thighlight: function highlight(elem) {\n\t\t\t\t\t$(elem).parent().addClass('error').removeClass('valid');\n\t\t\t\t},\n\t\t\t\tunhighlight: function unhighlight(elem) {\n\t\t\t\t\t$(elem).parent().removeClass('error').addClass('valid');\n\t\t\t\t},\n\t\t\t\terrorPlacement: $.noop\n\t\t\t});\n\t\t\tactiveForms.push($(elem));\n\t\t});\n\t}\n\n\tfunction resetFormValidation() {\n\t\tif (activeForms.length) {\n\t\t\t$.each(activeForms, function (index, form) {\n\t\t\t\t$(form).validate().resetForm();\n\t\t\t\t$('.error, .valid', form).removeClass('error valid');\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction onEditableClick(e) {\n\t\t$('.editable, .editable-not-visible', 'form, .form').removeClass('readonly editable editable-not-visible show-label').addClass('hide-label').children('input').prop('readonly', false);\n\t}\n\n\tglobal.validation.init = function () {\n\t\tif ($.fn.validate) {\n\t\t\t$('[data-validation=\"true\"]').validateForm();\n\t\t}\n\t};\n\n\tglobal.cendris.init = function () {\n\t\t// We shall check the zipcode in combination with the housenumber. A zipcode without housenumber shall not pass.\n\t\tif ($.fn.cendris && $('[data-cendris-zipcode]').length && $('[data-cendris-housenumber]').length) {\n\t\t\t$('[data-cendris-zipcode], [data-cendris-housenumber]').cendris({\n\t\t\t\tzipcode: '[data-cendris-zipcode]',\n\t\t\t\thousenumber: '[data-cendris-housenumber]',\n\t\t\t\tstreet: '[data-cendris-street]',\n\t\t\t\tcity: '[data-cendris-city]'\n\t\t\t});\n\t\t}\n\t};\n\n\t$.fn.validateForm = validateForm;\n\t// Init\n\t$(function () {\n\t\tglobal.validation.init();\n\t\tglobal.cendris.init();\n\n\t\t$('form, .form').on('click', '.editable', onEditableClick);\n\n\t\t$(window).on('formValidationReset', resetFormValidation);\n\t});\n\n\tapp.utils.register('app.forms.validation', global.validation);\n\tapp.utils.register('app.forms.cendris', global.cendris);\n})(jQuery);\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))\n\n/***/ })\n\n},[188]);\n\n\n// WEBPACK FOOTER //\n// core-ad63d5606b66127bda78.js","(function ($) {\r\n\r\n\t/// \r\n\t/// Registers the namespace.\r\n\t/// \r\n\t/// The namespace.\r\n\t/// The object.\r\n\t/// \r\n\tfunction registerNamespace(namespace, object) {\r\n\t\tvar parts = namespace.split('.');\r\n\t\tvar parent = window;\r\n\r\n\t\tfor (var i = 0; i < parts.length; i++) {\r\n\t\t\tif (parent[parts[i]] === undefined || parent[parts[i]] === null) {\r\n\t\t\t\tparent[parts[i]] = {};\r\n\t\t\t}\r\n\r\n\t\t\tif (i == parts.length - 1)\r\n\t\t\t\tparent[parts[i]] = object;\r\n\t\t\tparent = parent[parts[i]];\r\n\t\t}\r\n\t}\r\n\tregisterNamespace('app.utils.register', registerNamespace);\r\n\r\n\t/// \r\n\t/// Gets the value for the specified name from the query string.\r\n\t/// \r\n\t/// The name.\r\n\t/// Returns the value from the query string for the specified name.\r\n\tfunction querystring(name) {\r\n\t\tname = name.replace(/[\\[]/, \"\\\\[\").replace(/[\\]]/, \"\\\\]\");\r\n\t\tvar regex = new RegExp(\"[\\\\?&]\" + name + \"=([^&#]*)\"),\r\n\t\t\tresults = regex.exec(window.location.search);\r\n\t\treturn results === null ? \"\" : decodeURIComponent(results[1].replace(/\\+/g, \" \"));\r\n\t}\r\n\r\n\tregisterNamespace('app.utils.url.querystring', querystring);\r\n\r\n\t/// \r\n\t/// Scrolls the page to the specified point.\r\n\t/// \r\n\t/// The e.\r\n\t/// The delay.\r\n\t/// \r\n\tfunction scrollPage(e, delay) {\r\n\t\tvar delay = delay ? delay : 0;\r\n\t\tif (e.currentTarget) {\r\n\t\t\tvar elem = $(this),\r\n\t\t\t\thref = $(elem.attr('href')),\r\n\t\t\t\tpaddingTop = href.length ? href.css('paddingTop').replace('px', '') : 0,\r\n\t\t\t\toffset = arguments[0].data.offset ? arguments[0].data.offset : 0;\r\n\r\n\t\t\tvar scrollLength = (href.offset().top - offset) + parseInt(paddingTop);\r\n\r\n\t\t\te.preventDefault();\r\n\t\t\tlocation.hash = elem.attr('href');\r\n\r\n\t\t\tif (href.length === 0) return false;\r\n\t\t} else {\r\n\t\t\tscrollLength = e;\r\n\t\t}\r\n\r\n\t\t$('html, body').animate({\r\n\t\t\tscrollTop: scrollLength\r\n\t\t}, delay);\r\n\t};\r\n\r\n\tregisterNamespace('app.utils.page.scroll', scrollPage);\r\n})(jQuery);\n\n\n// WEBPACK FOOTER //\n// ./js/utils.js","require('./back-to-top');\nrequire('./validation');\nrequire('../../../js/utils');\nrequire('../../../js/plugins/jquery/jquery.switchview');\nrequire('../../../js/plugins/jquery/jquery.custom-select');\nrequire('../../../js/general');\nrequire('../../../js/menu');\nrequire('../../../js/model-selector');\n\n// sticky menu functionality\nfunction sticky_relocate() {\n var window_top = $(window).scrollTop();\n var anchor = $('#sticky-anchor');\n\n if (anchor.length) {\n var div_top = anchor.offset().top;\n if (window_top > div_top) {\n $('#sticky').addClass('stick');\n } else {\n $('#sticky').removeClass('stick');\n }\n\n }\n}\n\n$(function () {\n $(window).scroll(sticky_relocate);\n sticky_relocate();\n});\n\n\n\n\n// WEBPACK FOOTER //\n// ./Content/js/core/index.js","var backTop = document.getElementsByClassName('js-cd-top')[0],\n // browser window scroll (in pixels) after which the \"back to top\" link is shown\n offset = 300,\n //browser window scroll (in pixels) after which the \"back to top\" link opacity is reduced\n offsetOpacity = 1200,\n scrollDuration = 700,\n scrolling = false;\n\nif (backTop) {\n //update back to top visibility on scrolling\n window.addEventListener(\"scroll\", function (event) {\n if (!scrolling) {\n scrolling = true;\n \n window.requestAnimationFrame(checkBackToTop);\n }\n });\n //smooth scroll to top\n backTop.addEventListener('click', function (event) {\n event.preventDefault();\n\n scrollTop(scrollDuration);\n });\n}\n\nfunction checkBackToTop() {\n var windowTop = window.scrollY || document.documentElement.scrollTop;\n\n if (windowTop > offset) {\n backTop.classList.add('cd-top--show');\n } \n else {\n backTop.classList.remove('cd-top--show');\n backTop.classList.remove('cd-top--fade-out');\n }\n\n if (windowTop > offsetOpacity)\n backTop.classList.add('cd-top--fade-out');\n\n scrolling = false;\n}\n\nfunction scrollTop(duration) {\n var start = window.scrollY || document.documentElement.scrollTop,\n currentTime = null;\n\n var animateScroll = function (timestamp) {\n if (!currentTime) currentTime = timestamp;\n\n var progress = timestamp - currentTime;\n\n var val = Math.max(Math.easeInOutQuad(progress, start, -start, duration), 0);\n\n window.scrollTo(0, val);\n\n if (progress < duration) {\n window.requestAnimationFrame(animateScroll);\n }\n };\n\n window.requestAnimationFrame(animateScroll);\n}\n\nMath.easeInOutQuad = function (t, b, c, d) {\n t /= d / 2;\n if (t < 1) return c / 2 * t * t + b;\n t--;\n return -c / 2 * (t * (t - 2) - 1) + b;\n};\n\n\n\n// WEBPACK FOOTER //\n// ./Content/js/core/back-to-top.js","require('~/js/utils');\nrequire('~/js/plugins/validation/jquery.validate');\nrequire('~/js/plugins/validation/additional-methods');\nrequire('~/js/plugins/validation/jquery.validate.nl');\nrequire('~/components/cendris/js/cendris');\nrequire('~/js/plugins/jquery/jquery.forms');\n\n\n// WEBPACK FOOTER //\n// ./Content/js/core/validation.js","/*\n * Translated default messages for the jQuery validation plugin.\n * Locale: NL (Dutch; Nederlands, Vlaams)\n */\n(function($) {\n\t$.extend($.validator.messages, {\n\t\trequired: \"Dit is een verplicht veld.\",\n\t\tremote: \"Controleer dit veld.\",\n\t\temail: \"Vul hier een geldig e-mailadres in.\",\n\t\turl: \"Vul hier een geldige URL in.\",\n\t\tdate: \"Vul hier een geldige datum in.\",\n\t\tdateISO: \"Vul hier een geldige datum in (ISO-formaat).\",\n\t\tnumber: \"Vul hier een geldig getal in.\",\n\t\tdigits: \"Vul hier alleen getallen in.\",\n\t\tcreditcard: \"Vul hier een geldig creditcardnummer in.\",\n\t\tequalTo: \"Vul hier dezelfde waarde in.\",\n\t\textension: \"Vul hier een waarde in met een geldige extensie.\",\n\t\tmaxlength: $.validator.format(\"Vul hier maximaal {0} tekens in.\"),\n\t\tminlength: $.validator.format(\"Vul hier minimaal {0} tekens in.\"),\n\t\trangelength: $.validator.format(\"Vul hier een waarde in van minimaal {0} en maximaal {1} tekens.\"),\n\t\trange: $.validator.format(\"Vul hier een waarde in van minimaal {0} en maximaal {1}.\"),\n\t\tmax: $.validator.format(\"Vul hier een waarde in kleiner dan of gelijk aan {0}.\"),\n\t\tmin: $.validator.format(\"Vul hier een waarde in groter dan of gelijk aan {0}.\"),\n\n\t\t// for validations in additional-methods.js\n\t\tiban: \"Vul hier een geldig IBAN in.\",\n\t\tdateNL: \"Vul hier een geldige datum in.\",\n\t\tphoneNL: \"Vul hier een geldig Nederlands telefoonnummer in.\",\n\t\tmobileNL: \"Vul hier een geldig Nederlands mobiel telefoonnummer in.\",\n\t\tpostalcodeNL: \"Vul hier een geldige postcode in.\",\n\t\tbankaccountNL: \"Vul hier een geldig bankrekeningnummer in.\",\n\t\tgiroaccountNL: \"Vul hier een geldig gironummer in.\",\n\t\tbankorgiroaccountNL: \"Vul hier een geldig bank- of gironummer in.\"\n\t});\n}(jQuery));\n\n\n\n// WEBPACK FOOTER //\n// ./js/plugins/validation/jquery.validate.nl.js","(function ($) {\r\n var global = {};\r\n\r\n global.getAddress = function (input, successCallback, errorCallback) {\r\n var zipcode = input.zipcode,\r\n housenumber = input.housenumber;\r\n\r\n if (zipcode) {\r\n zipcode = zipcode.replace(' ', '');\r\n housenumber = housenumber.replace(' ', '');\r\n $.ajax({\r\n type: 'POST',\r\n url: '/api/zipcode/check/' + zipcode + '/' + housenumber,\r\n data: '{}',\r\n contentType: 'application/json; charset=utf-8',\r\n dataType: 'json',\r\n success: function (data) {\r\n if ($.isFunction(successCallback))\r\n successCallback(data);\r\n },\r\n error: function (data) {\r\n if (errorCallback && $.isFunction(errorCallback))\r\n errorCallback(data);\r\n }\r\n });\r\n }\r\n };\r\n\r\n if (!window.app) { window.app = {}; }\r\n window.app.cendris = global;\r\n\r\n}(jQuery));\r\n\r\n(function ($) {\r\n $.fn.cendris = function (options) {\r\n this.each(function () {\r\n var _this = $(this);\r\n\r\n function fillValue(selector, value, options) {\r\n $(selector).each(function (index, elem) {\r\n // If readonly, also add class show-label\r\n var className = options.readonly ? 'readonly show-label ' : '';\r\n\r\n if (options.editable === true) {\r\n className = className += 'editable ';\r\n } else if (options.editable === false) {\r\n className = className += 'editable-not-visible ';\r\n }\r\n\r\n // If value is given back from Cendris\r\n if (value) {\r\n if ($(elem).is(':input'))\r\n $(elem).val(value)\r\n .prop('readonly', options.readonly)\r\n .parent()\r\n .addClass(className)\r\n .removeClass('hide-label');\r\n else\r\n $(elem).html(value);\r\n } else {\r\n if ($(elem).is(':input'))\r\n $(elem)\r\n .prop('readonly', false)\r\n .parent()\r\n .removeClass('editable editable-not-visible readonly show-label').addClass('hide-label');\r\n }\r\n });\r\n }\r\n\r\n _this.on('change', function () {\r\n var zipcode = $(options.zipcode).val(),\r\n housenumber = $(options.housenumber).val();\r\n\r\n if (zipcode && housenumber) {\r\n _this.parent().addClass('form-control-loader');\r\n app.cendris.getAddress({ zipcode: zipcode, housenumber: housenumber }, function (data) {\r\n if (data) {\r\n $('.address').hide();\r\n\r\n fillValue(options.zipcode, data.ZipCode, {});\r\n fillValue(options.housenumber, data.HouseNumber, {});\r\n fillValue(options.street, data.Street, { readonly: true, editable: true });\r\n fillValue(options.city, data.City, { readonly: true, editable: false });\r\n } else {\r\n $('.address').show();\r\n }\r\n _this.parent().removeClass('form-control-loader');\r\n },\r\n function (data) {\r\n $('.address').show();\r\n \r\n fillValue(options.street, null, { readonly: true, editable: true });\r\n fillValue(options.city, null, { readonly: true, editable: false });\r\n\r\n _this.parent().removeClass('form-control-loader');\r\n });\r\n }\r\n });\r\n });\r\n }\r\n}(jQuery));\n\n\n// WEBPACK FOOTER //\n// ./components/cendris/js/cendris.js","(function ($) {\r\n\tfunction fillValue(elem) {\r\n\t\t$(elem).parent().children('span')\r\n\t\t\t.html($('option:selected', $(elem)).text());\r\n\t};\r\n\r\n\t$.fn.customSelect = function () {\r\n\t\tthis.each(function () {\r\n\t\t\tfillValue(this);\r\n\t\t\t$(this).on('change', function () {\r\n\t\t\t\tfillValue(this);\r\n\t\t\t});\r\n\t\t});\r\n\t};\r\n\r\n\t// Init\r\n\t$(function () {\r\n\t\t$('.select:not(.select-default) select').customSelect();\r\n\t});\r\n})(jQuery);\n\n\n// WEBPACK FOOTER //\n// ./js/plugins/jquery/jquery.custom-select.js","$(document).ready(function () {\r\n\t/* Dealerlist collapse */\r\n\t$('.car_compare .show_btn .expand').click(function () { $('.car_compare .con_table').addClass('on'); $('.con_table .show_btn').addClass('off'); $(\".show_btn .expand\").hide(); $(\".show_btn .collapse\").show(); return false; });\r\n\t$('.car_compare .show_btn .collapse').click(function () { $('.car_compare .con_table').removeClass('on'); $('.car_compare .show_btn').removeClass('off'); $(\".show_btn .expand\").show(); $(\".show_btn .collapse\").hide(); return false; });\r\n\t$('.car_compare .title').click(function () { $(this).parent().toggleClass('on'); });\r\n\r\n\t/* =Review Toggle\r\n\t------------------------------------------------------------*/\r\n\t$('.toggles h3').click(function () {\r\n\t\t$(this).parent().find(\"h3\").toggleClass(\"active\");\r\n\t\t$(this).parent().find(\".toggle_content\").slideToggle(200);\r\n\t});\r\n\r\n\t\r\n $(\".atoggle\").click(function () {\r\n $('.panel').slideToggle(\"slow\");\r\n });\r\n});\n\n\n// WEBPACK FOOTER //\n// ./js/general.js","(function ($) {\r\n\tvar popupTimeout = null;\r\n\r\n\r\n\tfunction Menu() {\r\n\t\tthis.$root = $('.header');\r\n\t\tthis.bindUIActions();\r\n\t}\r\n\r\n\tMenu.prototype.open = function (menuItem) {\r\n\t\tif (!$('#' + menuItem).length) return;\r\n\r\n\t\tvar isMenuActive = $('#' + menuItem).hasClass('active');\r\n\r\n\t\tif (!isMenuActive) {\r\n\t\t\t$('[data-menu=\"' + menuItem + '\"], #' + menuItem).addClass('active');\r\n\t\t\t$('.menu-overlay').fadeIn(200);\r\n\t\t}\r\n\t};\r\n\r\n\tMenu.prototype.close = function (event) {\r\n\t\t$('.popout > div', this.$root).add('.gnb li a', this.$root).removeClass('active');\r\n\t\t$('.menu-overlay').fadeOut(200);\r\n\t\tthis.closePopup();\r\n\t};\r\n\r\n\tMenu.prototype.openPopup = function (event) {\r\n\t\tevent.preventDefault();\r\n\t\tthis.closePopup();\r\n\t\t$('.showroom', this.$root).addClass('car-active');\r\n\t\t$(event.currentTarget).closest('.car-item').addClass('active');\r\n\t};\r\n\t\r\n\tMenu.prototype.closePopup = function (e) {\r\n\t\t$('.car-item', this.$root).removeClass('active');\r\n\t\t$('.showroom', this.$root).removeClass('car-active');\r\n\t};\r\n\r\n\tMenu.prototype.keepOpen = function () {\r\n\t\t$('.popout > div.active, [data-menu][data-menu!=\"close\"].active', this.$root).addClass('active');\r\n\t};\r\n\r\n\tMenu.prototype.bindUIActions = function () {\r\n\t\tvar _this = this;\r\n\r\n\t\t// Open menu\r\n\t\tif (!window.Modernizr.touchevents) {\r\n\t\t\t$('[data-menu][data-menu!=\"close\"]', this.$root).on('mouseenter', function (e) {\r\n\t\t\t\t_this.open($(this).data('menu'));\r\n\t\t\t}).on('mouseleave', function (e) {\r\n\r\n\t\t\t\t// If next element is part of popout, don't close\r\n\t\t\t\tvar targetElement = e.toElement || e.relatedTarget; // bugfix: use relatedTarget in FireFox.\r\n\t\t\t\tif (!$('#' + $(this).data('menu')).find(targetElement).length) {\r\n\t\t\t\t\t_this.close();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t$('.popout', this.$root)\r\n\t\t\t\t.on('mouseenter', this.keepOpen)\r\n\t\t\t\t.on('mouseleave', function (e) {\r\n\t\t\t\t\tif (!$('.gnb').find(e.toElement).length) {\r\n\t\t\t\t\t\t_this.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t // Open car popup\r\n\t\t\t$('.car-item > a', this.$root).on('mouseenter', function (e) { _this.openPopup(e); });\r\n\t\t // Close car popup\r\n\t\t\t$('.car-item', this.$root).on('mouseleave', $.proxy(this.closePopup, this));\r\n\r\n\t\t} else {\r\n\t\t\t$('[data-menu][data-menu!=\"close\"]', this.$root).on('click', function (e) {\r\n\t\t\t\t_this.open($(this).data('menu'));\r\n\t\t\t});\r\n\r\n\t\t // Open car popup\r\n\t\t\t$('.car-item > a', this.$root).on('click', function (e) { _this.openPopup(e); });\r\n\t\t // Close car popup\r\n\t\t\t$(window).on('switchView', $.proxy(this.closePopup, this));\r\n\t\t}\r\n\r\n\t\t// Close menu\r\n\t\t$('[data-menu=\"close\"]', this.$root).on('click', $.proxy(this.close, this));\r\n\r\n\t\t// Close car popup\r\n\t\t$('.showroom', this.$root).on('click', function (e) {\r\n\t\t\tif ($(e.target).hasClass('tab-pane') || $(e.target).hasClass('nav-tabs') || $(e.target).parent().hasClass('nav-tabs')) {\r\n\t\t\t\t_this.closePopup();\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\t$(function () {\r\n\t\tvar menu = new Menu();\r\n\t});\r\n})(jQuery);\n\n\n// WEBPACK FOOTER //\n// ./js/menu.js","(function ($) {\n \n $(document).on(\"click\", \".btn-car-more\", function (e) {\n e.preventDefault();\n\n var $this = $(this);\n\n var $lineArea = $this.closest(\".car-row\");\n var $carItem = $this.closest('.car-item');\n var $moreContent = $carItem.find(\".car-more-content\");\n\n var carId = $carItem.data('id');\n\n $.get('/modelselector/detail/' + carId).then(function (html) {\n $moreContent.html(html);\n\n if (!$this.hasClass(\"on\")) {\n $(\".btn-car-more\").removeClass(\"on\");\n $this.addClass(\"on\");\n $(\".car-more-content\").hide();\n $moreContent.show();\n $(\".model-selector .car-row\").css({ height: 190 });\n var nHeight = $moreContent.outerHeight() ? $moreContent.outerHeight() + 40 : 40;\n $lineArea.css({ height: 190 + nHeight });\n } else {\n $this.removeClass(\"on\");\n $lineArea.css({ height: 190 });\n setTimeout(function () {\n $moreContent.hide();\n }, 200);\n }\n\n setTimeout(function () {\n $(\"body,html\").animate({ scrollTop: $this.closest(\".car-item\").offset().top }, 500);\n }, 300);\n });\n });\n\n $(document).on(\"click\", \".car-more-close\", function (e) {\n e.preventDefault();\n\n var $lineArea = $(this).closest(\".car-row\");\n var $moreContent = $(this).closest(\".car-item\").find(\".car-more-content\");\n $(\".btn-car-more\").removeClass(\"on\");\n $lineArea.css({ height: 190 });\n setTimeout(function () {\n $moreContent.hide();\n }, 200);\n });\n})(jQuery);\n\n\n// WEBPACK FOOTER //\n// ./js/model-selector.js","(function ($) {\r\n\tvar global = {\r\n\t\toptions: {}\r\n\t};\r\n\r\n\tfunction toggleInputStatus(scope, view, attrs) {\r\n\t\tif (attrs.disable) {\r\n\t\t\t$(scope).find('input, select').prop('disabled', true);\r\n\t\t\t$(view).find('input, select').prop('disabled', false);\r\n\t\t}\r\n\t\t$('img.lazy').trigger('unveil');\r\n\t};\r\n\r\n\tfunction bindClick(scope, view, attrs) {\r\n\t\tif (attrs.toggle) {\r\n\t\t\tif ($(view).hasClass('active')) {\r\n\t\t\t\t$('[data-switchview-scope=\"' + scope + '\"], ' + scope).removeClass('active');\r\n\t\t\t\t$('[data-switchview-target=\"' + view + '\"], ' + view).removeClass('active');\r\n\t\t\t} else {\r\n\t\t\t\t$('[data-switchview-scope=\"' + scope + '\"], ' + scope).removeClass('active');\r\n\t\t\t\t$('[data-switchview-target=\"' + view + '\"], ' + view).addClass('active'); \r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$('[data-switchview-scope=\"' + scope + '\"], ' + scope).removeClass('active'); \r\n\t\t\t$('[data-switchview-target=\"' + view + '\"], ' + view).addClass('active'); \r\n\t\t}\r\n\t\ttoggleInputStatus(scope, view, attrs);\r\n\t\t$(window).trigger('switchView');\r\n\t};\r\n\r\n\t$.fn.switchView = function (options) {\r\n\t\treturn this.each(function () {\r\n\t\t\tvar settings = $.extend(global.options, options),\r\n\t\t\t\ttrigger = $(this),\r\n\t\t\t\tscope = trigger.data('switchview-scope'),\r\n\t\t\t\tview = trigger.data('switchview-target'),\r\n\t\t\t\tattrs = {\r\n\t\t\t\t\tdisable: trigger.data('switchview-disable') !== undefined ? trigger.data('switchview-disable') : true,\r\n\t\t\t\t\ttoggle: trigger.data('switchview-toggle') !== undefined ? trigger.data('switchview-toggle') : false\r\n\t\t\t\t};\r\n\r\n\t\t\t// Init\r\n\t\t\tif (scope.indexOf(',') > -1) {\r\n\t\t\t\t$.each(scope.split(','), function (index, scope) {\r\n\t\t\t\t\t$.each(view.split(','), function (index, view) {\r\n\t\t\t\t\t\ttoggleInputStatus(scope, view, attrs);\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\r\n\t\t\t\ttrigger.on('click switchView', function (event) {\r\n\t\t\t\t\t$.each(scope.split(', '), function (index, scope) {\r\n\t\t\t\t\t\t$.each(view.split(', '), function (index, view) {\r\n\t\t\t\t\t\t\tbindClick(scope, view, attrs);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t});\r\n\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t});\r\n\t\t\t} else {\r\n\t\t\t\ttoggleInputStatus(scope, view, attrs);\r\n\t\t\t\ttrigger.on('click switchView', function (event) {\r\n\t\t\t\t\tbindClick(scope, view, attrs);\r\n\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\t$(function () {\r\n\t\t$('[data-switchview-scope]').switchView();\r\n\t});\r\n})(jQuery);\n\n\n// WEBPACK FOOTER //\n// ./js/plugins/jquery/jquery.switchview.js","(function ($) {\r\n\tvar global = {\r\n\t\tvalidation: {},\r\n\t\tcendris: {}\r\n\t}, activeForms = [];\r\n\r\n\tfunction createValidationMap(form) {\r\n\t\tvar rules = {};\r\n\r\n\t\t$('input, select, textarea', form).each(function (index, elem) {\r\n\t\t\tfor (var i = 0, atts = elem.attributes, n = atts.length; i < n; i++) {\r\n var attrName = atts[i].nodeName,\r\n attrValue = atts[i].value,\r\n attrStart = 'data-val-';\r\n if (attrName.indexOf(attrStart) > -1) {\r\n var ruleName = attrName.substr(attrStart.length);\r\n // Get case-sensitive rule name\r\n for (var key in $.validator.methods) {\r\n if (ruleName == key.toLowerCase())\r\n ruleName = key;\r\n }\r\n // Apply rule to element\r\n rules[elem.name] = rules[elem.name] || {};\r\n if (attrName === 'data-val-required-if-no') {\r\n rules[elem.name][ruleName] = attrValue;\r\n } else {\r\n rules[elem.name][ruleName] = JSON.parse(attrValue.toLowerCase()); // JSON.parse for converting string to bool, float, etc\r\n }\r\n }\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn rules;\r\n\t}\r\n\r\n\t// Form handler\r\n\tfunction formHandler(form) {\r\n var $form = $(form);\r\n $form.find(':submit').prop('disabled', true).addClass('btn-loader');\r\n\t\tif ($form.data('async') === true) {\r\n $.ajax({\r\n\t\t\t\turl: form.action,\r\n\t\t\t\tdata: $form.serialize(),\r\n\t\t\t\tdataType: 'json',\r\n\t\t\t\ttype: 'post',\r\n\t\t\t\tsuccess: function (data) {\r\n\t\t\t\t\tif (data.Status === 1 || data.Success) {\r\n\t\t\t\t\t\t$form.addClass('form-processed');\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$('.error-list', $form).remove();\r\n\r\n\t\t\t\t\t\tvar errorList = '';\r\n\t\t\t\t\t\t$.each(data.ValidationErrors, function (index, error) {\r\n\t\t\t\t\t\t\terrorList += '
  • ' + error.ErrorMessage + '
  • ';\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif ($('.form-container', $form).length) {\r\n\t\t\t\t\t\t\t$('.form-container', $form).prepend('
    ');\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$form.prepend('
    ');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$form.trigger('submitSuccess');\r\n\t\t\t\t},\r\n\t\t\t\terror: function () {\r\n\t\t\t\t\t$('.error-list', $form).remove();\r\n\r\n\t\t\t\t\tif ($('.form-container', $form).length) {\r\n\t\t\t\t\t\t$('.form-container', $form).prepend('
    ');\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$form.prepend('
    ');\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tcomplete: function () {\r\n\t\t\t\t\r\n $form.find(':submit').prop('disabled', false).addClass('btn-loader');\r\n\t\t\t\t}\r\n\t\t\t});\r\n } else {\r\n\t\t\tform.submit();\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tfunction validateForm() {\r\n\t\tthis.each(function (index, elem) {\r\n\t\t\t$(elem).validate({\r\n\t\t\t\trules: createValidationMap(elem),\r\n\t\t\t\tsubmitHandler: formHandler,\r\n\t\t\t\thighlight: function (elem) { $(elem).parent().addClass('error').removeClass('valid'); },\r\n\t\t\t\tunhighlight: function (elem) { $(elem).parent().removeClass('error').addClass('valid'); },\r\n\t\t\t\terrorPlacement: $.noop\r\n\t\t\t});\r\n\t\t\tactiveForms.push($(elem));\r\n\t\t});\r\n\t}\r\n\r\n\tfunction resetFormValidation() {\r\n\t\tif (activeForms.length) {\r\n\t\t\t$.each(activeForms, function (index, form) {\r\n\t\t\t\t$(form).validate().resetForm();\r\n\t\t\t\t$('.error, .valid', form).removeClass('error valid');\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tfunction onEditableClick(e) {\r\n\t\t$('.editable, .editable-not-visible', 'form, .form')\r\n\t\t\t.removeClass('readonly editable editable-not-visible show-label')\r\n\t\t\t.addClass('hide-label')\r\n\t\t\t.children('input')\r\n\t\t\t.prop('readonly', false);\r\n\t}\r\n\r\n\tglobal.validation.init = function () {\r\n if ($.fn.validate) {\r\n\t\t\t$('[data-validation=\"true\"]').validateForm();\r\n\t\t}\r\n\t};\r\n\r\n\tglobal.cendris.init = function () {\r\n\t\t// We shall check the zipcode in combination with the housenumber. A zipcode without housenumber shall not pass.\r\n\t\tif ($.fn.cendris && $('[data-cendris-zipcode]').length && $('[data-cendris-housenumber]').length) {\r\n\t\t\t$('[data-cendris-zipcode], [data-cendris-housenumber]').cendris({\r\n\t\t\t\tzipcode: '[data-cendris-zipcode]',\r\n\t\t\t\thousenumber: '[data-cendris-housenumber]',\r\n\t\t\t\tstreet: '[data-cendris-street]',\r\n\t\t\t\tcity: '[data-cendris-city]'\r\n\t\t\t});\r\n\t\t}\r\n\t};\r\n\r\n\t$.fn.validateForm = validateForm;\r\n\t// Init\r\n\t$(function () {\r\n\t\tglobal.validation.init();\r\n\t\tglobal.cendris.init();\r\n\r\n\t\t$('form, .form').on('click', '.editable', onEditableClick);\r\n\r\n\t\t$(window).on('formValidationReset', resetFormValidation);\r\n\t});\r\n\r\n\tapp.utils.register('app.forms.validation', global.validation);\r\n\tapp.utils.register('app.forms.cendris', global.cendris);\r\n})(jQuery);\n\n\n// WEBPACK FOOTER //\n// ./js/plugins/jquery/jquery.forms.js"],"sourceRoot":""}