{"version":3,"sources":["node_modules/browser-pack/_prelude.js","ts/faq.ts","bundle.js","ts/main.ts","ts/menu.ts","ts/paths.ts"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","Faq","this","element","$","hide","first","show","addClass","topics","find","categories","items","removeClass","each","index","item","FaqItems","topic","FaqTopics","categorie","FaqCategories","on","open","bind","prototype","event","preventDefault","tab","attr","hasClass","list","content","toggle","2","Object","defineProperty","value","./faq","./menu","./paths","3","Menu","destroy","window","resize","height","toggleClass","width","menu","innerHeight","css","padding-top","4","Paths","switchers","werkgevers","switcherEvent","werkgeversEvent","closest"],"mappings":"CAAA,WAAA,QAAAA,GAAAC,EAAAC,EAAAC,GAAA,QAAAC,GAAAC,EAAAC,GAAA,IAAAJ,EAAAG,GAAA,CAAA,IAAAJ,EAAAI,GAAA,CAAA,GAAAE,GAAA,kBAAAC,UAAAA,OAAA,KAAAF,GAAAC,EAAA,MAAAA,GAAAF,GAAA,EAAA,IAAAI,EAAA,MAAAA,GAAAJ,GAAA,EAAA,IAAAK,GAAA,GAAAC,OAAA,uBAAAN,EAAA,IAAA,MAAAK,GAAAE,KAAA,mBAAAF,EAAA,GAAAG,GAAAX,EAAAG,IAAAS,WAAAb,GAAAI,GAAA,GAAAU,KAAAF,EAAAC,QAAA,SAAAd,GAAA,GAAAE,GAAAD,EAAAI,GAAA,GAAAL,EAAA,OAAAI,GAAAF,GAAAF,IAAAa,EAAAA,EAAAC,QAAAd,EAAAC,EAAAC,EAAAC,GAAA,MAAAD,GAAAG,GAAAS,QAAA,IAAA,GAAAL,GAAA,kBAAAD,UAAAA,QAAAH,EAAA,EAAAA,EAAAF,EAAAa,OAAAX,IAAAD,EAAAD,EAAAE,GAAA,OAAAD,GAAA,MAAAJ,OAAAiB,GAAA,SAAAT,EAAAU,EAAAJ,GCAA,GAAAK,GAAA,WAKE,QAAAA,KAJEC,KAAAC,QAAUC,EAAE,WAKZA,EAAE,WAAWC,OACbD,EAAE,WAAWE,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AY,iBAE1BL,EAAAjB,UAAAkB,QAAA,WACQvC,EAAE,iBAAiBN,QACnBM,EAAE,QAAQS,YAAY,iBAI9B6B,EAAAjB,UAAAqB,OAAA,WACQ1C,EAAEwC,QAAQI,SAAW,IACrB9C,KAAK+C,KAAO7C,EAAE,UAAU8C,cAEjB9C,EAAEwC,QAAQI,SAAW,KAC5B5C,EAAE,QAAQ+C,KAAKC,cAAe,SAG1CV,IACW,IAAIA,QF4GTW,GAAG,SAAS/D,EAAQU,EAAOJ,GGxIjC,GAAA0D,GAAA,WAII,QAAAA,KACEpD,KAAKC,QAAUC,EAAE,iBAQjBF,KAAKqD,UAAYnD,EAAE,8BACnBF,KAAKsD,WAAapD,EAAE,+BACpBF,KAAKqD,UAAUjC,GAAG,QAASpB,KAAKuD,cAAcjC,KAAKtB,OACnDA,KAAKsD,WAAWlC,GAAG,QAASpB,KAAKwD,gBAAgBlC,KAAKtB,OAgB5D,MAbIoD,GAAA7B,UAAAgC,cAAA,SAAc/B,GACZA,EAAMC,iBACNzB,KAAKqD,UAAUI,QAAQ,eAAenD,SAAS,iBAE/CJ,EAAE,+BAA+BI,SAAS,cAC1CJ,EAAE,iBAAiBM,KAAK,oBAAoBF,SAAS,4BAEvD8C,EAAA7B,UAAAiC,gBAAA,SAAgBhC,GACdA,EAAMC,iBACNzB,KAAKsD,WAAWG,QAAQ,eAAenD,SAAS,kBAChDJ,EAAE,gCAAgCI,SAAS,cAC3CJ,EAAE,iBAAiBM,KAAK,oBAAoBF,SAAS,4BAE3D8C,IAGY,IAAIA,aHoIL","file":"bundle.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i {\r\n let items = $(item);\r\n let openItems = new FaqItems(items);\r\n });\r\n this.topics.each((index, item) => {\r\n let topic = $(item);\r\n let openTopics = new FaqTopics(topic);\r\n });\r\n\r\n this.categories.each((index, item) => {\r\n let categorie = $(item);\r\n let openCategory = new FaqCategories(categorie);\r\n });\r\n $('.faq__categorie').hide();\r\n $('.faq__categorie').first().show();\r\n\r\n }\r\n}\r\n\r\n\r\nclass FaqCategories {\r\n element: any;\r\n constructor(topic) {\r\n this.element = topic;\r\n this.element.on('click', this.open.bind(this));\r\n\r\n }\r\n\r\n open(event) {\r\n event.preventDefault();\r\n let tab = '#' + this.element.attr('aria-controls');\r\n $('.faq__categorie').hide();\r\n $(tab).show();\r\n if(this.element.hasClass('active')) {\r\n this.element.removeClass('active');\r\n $(tab).hide();\r\n }else {\r\n $('.js-faq--categorie.active').removeClass('active');\r\n this.element.addClass('active');\r\n }\r\n }\r\n\r\n}\r\n\r\n\r\n\r\nclass FaqTopics {\r\n element: any;\r\n list: any;\r\n constructor(topic) {\r\n this.element = topic;\r\n this.element.find('h2').on('click', this.open.bind(this));\r\n this.list = this.element.find(\".c-faq__questionsList\");\r\n this.list.find(\".c-faq__question\").first().addClass('active');\r\n }\r\n\r\n open(event) {\r\n event.preventDefault();\r\n let tab = '#' + this.element.attr('aria-controls');\r\n $('article').hide();\r\n $(tab).show();\r\n if(this.element.hasClass('active')) {\r\n this.element.removeClass('active');\r\n $(tab).hide();\r\n }else {\r\n $('.js-faq--topic.active').removeClass('active');\r\n this.element.addClass('active');\r\n }\r\n }\r\n\r\n}\r\n\r\nclass FaqItems {\r\n element: any;\r\n content: any;\r\n constructor(items) {\r\n this.element = items;\r\n this.content = this.element.find('dd');\r\n this.element.on('mouseup', this.toggle.bind(this));\r\n // this.element.removeClass('active');\r\n }\r\n toggle() {\r\n event.preventDefault();\r\n if(this.element.hasClass('active')) {\r\n this.element.removeClass('active');\r\n }else {\r\n $('.c-faq__question.active').removeClass('active');\r\n this.element.addClass('active');\r\n }\r\n }\r\n\r\n\r\n}\r\n\r\nlet faq = new Faq();\r\n","(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i= 600) {\r\n this.menu = $('.c-nav').innerHeight();\r\n // $('body').css({\"padding-top\": `${this.menu - 0}px`});\r\n }\r\n else if ($(window).width() <= 600) {\r\n $('body').css({ \"padding-top\": \"0px\" });\r\n }\r\n };\r\n return Menu;\r\n}());\r\nvar menu = new Menu();\r\n},{}],4:[function(require,module,exports){\nvar Paths = /** @class */ (function () {\r\n function Paths() {\r\n this.element = $(\".js-infocards\");\r\n // this.btn = this.element.find('.c-info');\r\n // this.btn.each((index, item) => {\r\n // let btn = $(item);\r\n // let newBtn = new InfoBtns(btn);\r\n //\r\n // });\r\n this.switchers = $(\"[data-btn='voorswitchers']\");\r\n this.werkgevers = $(\"[data-btn='voorwerkgevers']\");\r\n this.switchers.on('click', this.switcherEvent.bind(this));\r\n this.werkgevers.on('click', this.werkgeversEvent.bind(this));\r\n }\r\n Paths.prototype.switcherEvent = function (event) {\r\n event.preventDefault();\r\n this.switchers.closest(\".js-infoset\").addClass('animate--left');\r\n // this.switchers.closest(\".js-infoset\").addClass('is-hidden');\r\n $(\"[data-type='voorswitchers']\").addClass(\"is-visible\");\r\n $(\".u-arrow--alt\").find(\".u-arrow__shadow\").addClass(\"u-arrow__shadow--active\");\r\n };\r\n Paths.prototype.werkgeversEvent = function (event) {\r\n event.preventDefault();\r\n this.werkgevers.closest(\".js-infoset\").addClass('animate--right');\r\n $(\"[data-type='voorwerkgevers']\").addClass(\"is-visible\");\r\n $(\".u-arrow--alt\").find(\".u-arrow__shadow\").addClass(\"u-arrow__shadow--active\");\r\n };\r\n return Paths;\r\n}());\r\nvar paths = new Paths();\r\n},{}]},{},[2])\n\n","\r\nimport \"./menu\";\r\n// import \"./fade\";\r\n// import \"./loadMore\";\r\nimport \"./faq\";\r\n// import \"./lightbox\";\r\n// import \"./anchor\";\r\nimport \"./paths\";\r\n","class Menu {\r\n menu: any;\r\n constructor() {\r\n $('.c-nav-toggle').on('click', this.toggle.bind(this));\r\n $('main').on('click', this.destroy.bind(this));\r\n $(window).resize(this.destroy.bind(this));\r\n $(window).resize(this.height.bind(this));\r\n // this.height();\r\n }\r\n toggle(event){\r\n event.preventDefault();\r\n $('body').toggleClass('is-activeNav');\r\n }\r\n destroy() {\r\n if ($('.is-activeNav').length) {\r\n $('body').removeClass('is-activeNav');\r\n }\r\n }\r\n\r\n height() {\r\n if ($(window).width() >= 600) {\r\n this.menu = $('.c-nav').innerHeight();\r\n // $('body').css({\"padding-top\": `${this.menu - 0}px`});\r\n } else if ($(window).width() <= 600) {\r\n $('body').css({\"padding-top\": `0px`});\r\n }\r\n }\r\n}\r\nlet menu = new Menu();\r\n","class Paths {\r\n element: any;\r\n switchers: any;\r\n werkgevers: any;\r\n constructor() {\r\n this.element = $(\".js-infocards\");\r\n // this.btn = this.element.find('.c-info');\r\n // this.btn.each((index, item) => {\r\n // let btn = $(item);\r\n // let newBtn = new InfoBtns(btn);\r\n //\r\n // });\r\n\r\n this.switchers = $(\"[data-btn='voorswitchers']\");\r\n this.werkgevers = $(\"[data-btn='voorwerkgevers']\");\r\n this.switchers.on('click', this.switcherEvent.bind(this));\r\n this.werkgevers.on('click', this.werkgeversEvent.bind(this));\r\n\r\n }\r\n switcherEvent(event){\r\n event.preventDefault();\r\n this.switchers.closest(\".js-infoset\").addClass('animate--left');\r\n // this.switchers.closest(\".js-infoset\").addClass('is-hidden');\r\n $(\"[data-type='voorswitchers']\").addClass(\"is-visible\");\r\n $(\".u-arrow--alt\").find(\".u-arrow__shadow\").addClass(\"u-arrow__shadow--active\");\r\n }\r\n werkgeversEvent(event){\r\n event.preventDefault();\r\n this.werkgevers.closest(\".js-infoset\").addClass('animate--right');\r\n $(\"[data-type='voorwerkgevers']\").addClass(\"is-visible\");\r\n $(\".u-arrow--alt\").find(\".u-arrow__shadow\").addClass(\"u-arrow__shadow--active\");\r\n }\r\n}\r\n\r\n\r\nlet paths = new Paths();\r\n"]}