{"version":3,"sources":["node_modules/browser-pack/_prelude.js","bundle.js","ts/anchor.ts","ts/faq.ts","ts/lightbox.ts","ts/loadMore.ts","ts/main.ts","ts/menu.ts","ts/popup.ts"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","__extends","this","extendStatics","Object","setPrototypeOf","__proto__","Array","d","b","hasOwnProperty","__","constructor","prototype","create","Anchors","_this","items","nav","$","parse","each","index","item","anchorItem","data","anchor_1","Anchor","push","hashchange","event","hash","window","location","replace","console","log","id","element","addClass","stop","animate","scrollTop","target","offset","top","outerHeight","removeClass","on","bind","_super","click","attr","split","pop","2","Faq","hide","first","show","topics","find","FaqItems","topic","FaqTopics","open","preventDefault","tab","hasClass","content","toggle","close","3","Lightbox","LightboxItems","lightbox","currentImg","nextImg","next","prevImg","prev","src","type","img","videoElement","galleryLength","parent","append","closeBtn","nextBtn","prevBtn","link","eq","empty","4","defineProperty","value","LoadMore","LoadMoreElements","text","slice","btn","more","filter","5","./anchor","./faq","./lightbox","./loadMore","./menu","./popup","6","Menu","destroy","resize","height","width","navpos","navpostion","toggleClass","menu","innerHeight","css","padding-top","7","getCookie","cname","name","ca","document","cookie","charAt","substring","indexOf","Popup","cookiename","setTimeout"],"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,GAAA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AAKC,SAASC,OAAO7E,MAAM,KACtBlE,EAAI,EAAGA,EAAI6I,EAAGlI,OAAQX,IAAK,CAElC,IADA,GAAIE,GAAI2I,EAAG7I,GACW,KAAfE,EAAE8I,OAAO,IAAW9I,EAAIA,EAAE+I,UAAU,EAC3C,IAAG/I,EAAEgJ,QAAQN,OAAa,MAAO1I,GAAE+I,UAAUL,EAAKjI,OAAQT,EAAES,QAE9D,MAAO,GAhCX,GAAAwI,GAAA,WAKI,QAAAA,KACEpI,KAAKoC,QAAUnB,EAAE,YACjB,IAAIoH,GAAaV,EAAU,cACT,WAAdU,GACEpH,EAAEa,QAAQoF,SAAW,KACrBpF,OAAOwG,WAAW,WAClBrH,EAAE,aAAaoB,SAAS,mBACvB,KAGPrC,KAAKqE,MAAQrE,KAAKoC,QAAQuB,KAAK,aAC3B3D,KAAKoC,QAAQxC,QACjBI,KAAKqE,MAAMvB,GAAG,QAAS,WACrB9C,KAAKoC,QAAQS,YAAY,kBACzBkF,SAASC,OAAS,gEAClBjF,KAAK/C,OAGb,MAAAoI,KAWY,IAAIA,aP2VL","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\\n \\n \\n \\n \\t\\t\\t\\t\\n \";\r\n this.videoElement = \"
\\n \\n \\n
\";\r\n }\r\n LightboxItems.prototype.open = function (event) {\r\n event.preventDefault();\r\n var galleryLength = this.element.parent().find(\"li\").length;\r\n var index = this.element.index();\r\n this.lightbox.addClass('u-is-visible');\r\n $(\".c-lightbox__image\").attr('src', this.element.find('.js-lightbox__inner').attr('href'));\r\n if (this.type == 'video') {\r\n this.lightbox.find('.c-lightbox__inner').append(this.videoElement);\r\n }\r\n else if (this.type == 'image') {\r\n this.lightbox.find('.c-lightbox__inner').append(this.img);\r\n }\r\n this.closeBtn = this.lightbox.find('.c-lightbox__close');\r\n this.closeBtn.on('click', this.close.bind(this));\r\n this.nextBtn = this.lightbox.find('.c-lightbox__next');\r\n this.prevBtn = this.lightbox.find('.c-lightbox__prev');\r\n this.nextBtn.on('click', function () {\r\n if (index < galleryLength) {\r\n index++;\r\n }\r\n if (index == galleryLength - 1) {\r\n this.nextBtn.hide();\r\n }\r\n if (index > 0) {\r\n this.prevBtn.show();\r\n }\r\n var link = this.element.parent().find(\"li\").eq(index).find(\"a\");\r\n $(\".c-lightbox__image\").attr('src', link.attr('href'));\r\n }.bind(this));\r\n $(\".c-lightbox__image\").on('click', function () {\r\n console.log('text');\r\n if (index < galleryLength) {\r\n index++;\r\n }\r\n if (index == galleryLength - 1) {\r\n this.nextBtn.hide();\r\n }\r\n if (index > 0) {\r\n this.prevBtn.show();\r\n }\r\n var link = this.element.parent().find(\"li\").eq(index).find(\"a\");\r\n $(\".c-lightbox__image\").attr('src', link.attr('href'));\r\n }.bind(this));\r\n if (!this.element.prev().length) {\r\n this.prevBtn.hide();\r\n }\r\n if (!this.element.next().length) {\r\n this.nextBtn.hide();\r\n }\r\n this.prevBtn.on('click', function () {\r\n if (index == 1) {\r\n this.prevBtn.hide();\r\n }\r\n if (index < galleryLength) {\r\n this.nextBtn.show();\r\n }\r\n index--;\r\n var link = this.element.parent().find(\"li\").eq(index).find(\"a\");\r\n $(\".c-lightbox__image\").attr('src', link.attr('href'));\r\n }.bind(this));\r\n };\r\n LightboxItems.prototype.close = function () {\r\n this.lightbox.removeClass('u-is-visible');\r\n $('.c-lightbox__inner').empty();\r\n };\r\n return LightboxItems;\r\n}());\r\nvar lichtbox = new Lightbox();\r\n},{}],4:[function(require,module,exports){\n\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar LoadMore = /** @class */ (function () {\r\n function LoadMore() {\r\n this.element = $('.js-LoadMore');\r\n var loadMoreElements;\r\n this.element.each(function (index, item) {\r\n var items = $(item);\r\n var loadMoreElements = new LoadMoreElements(items);\r\n });\r\n }\r\n return LoadMore;\r\n}());\r\nvar LoadMoreElements = /** @class */ (function () {\r\n function LoadMoreElements(items) {\r\n this.element = items;\r\n this.items = this.element.find('.js-item');\r\n this.text = this.element.attr('data-text');\r\n if (this.items.length > 9) {\r\n this.element.append(\"\\n
\\n \\n
\\n \");\r\n this.items.hide();\r\n this.items.slice(0, 9).show();\r\n }\r\n this.items.hide();\r\n this.items.slice(0, 9).show();\r\n this.btn = this.element.find('.js-btn');\r\n this.btn.on('click', this.more.bind(this));\r\n }\r\n LoadMoreElements.prototype.more = function () {\r\n this.items.filter(':hidden').slice(0, 6).show();\r\n if (this.items.length == this.items.filter(':visible').length) {\r\n this.btn.hide();\r\n }\r\n };\r\n return LoadMoreElements;\r\n}());\r\nexports.LoadMoreElements = LoadMoreElements;\r\nvar loadmore = new LoadMore();\r\n},{}],5:[function(require,module,exports){\n\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nrequire(\"./menu\");\r\n// import \"./fade\";\r\nrequire(\"./loadMore\");\r\nrequire(\"./faq\");\r\nrequire(\"./lightbox\");\r\nrequire(\"./anchor\");\r\nrequire(\"./popup\");\r\n},{\"./anchor\":1,\"./faq\":2,\"./lightbox\":3,\"./loadMore\":4,\"./menu\":6,\"./popup\":7}],6:[function(require,module,exports){\nvar Menu = /** @class */ (function () {\r\n function Menu() {\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 //Scroll function\r\n // vind positie nav\r\n // vind positie top scherm\r\n // als positie top scherm > nav is.\r\n // nav position fixed geven\r\n if ($(window).width() >= 769) {\r\n this.navpos = $('.o-navigation').offset().top;\r\n $(window).on(\"scroll\", this.navpostion.bind(this));\r\n }\r\n }\r\n Menu.prototype.navpostion = function (navpos) {\r\n var nav = $('.o-navigation');\r\n var scrollTop = $(window).scrollTop();\r\n if (scrollTop >= this.navpos) {\r\n if (!nav.hasClass(\"is-sticky\")) {\r\n nav.addClass(\"is-sticky\");\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n else {\r\n nav.removeClass(\"is-sticky\");\r\n }\r\n };\r\n Menu.prototype.toggle = function (event) {\r\n event.preventDefault();\r\n $('body').toggleClass('is-activeNav');\r\n };\r\n Menu.prototype.destroy = function () {\r\n if ($('.is-activeNav').length) {\r\n $('body').removeClass('is-activeNav');\r\n }\r\n };\r\n Menu.prototype.height = function () {\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 }\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},{}],7:[function(require,module,exports){\nvar Popup = /** @class */ (function () {\r\n function Popup() {\r\n this.element = $(\".js-popup\");\r\n var cookiename = getCookie(\"verdelpopup\");\r\n if (cookiename != \"closed\") {\r\n if ($(window).width() >= 600) {\r\n window.setTimeout(function () {\r\n $(\".js-popup\").addClass(\"js-popup--show\");\r\n }, 5000);\r\n }\r\n }\r\n this.close = this.element.find(\".js-close\");\r\n if (!this.element.length)\r\n return;\r\n this.close.on('click', function () {\r\n this.element.removeClass(\"js-popup--show\");\r\n document.cookie = \"verdelpopup=closed; expires=0; path=/; SameSite=None; secure\";\r\n }.bind(this));\r\n }\r\n return Popup;\r\n}());\r\nfunction getCookie(cname) {\r\n var name = cname + \"=\";\r\n var ca = document.cookie.split(';');\r\n for (var i = 0; i < ca.length; i++) {\r\n var c = ca[i];\r\n while (c.charAt(0) == ' ')\r\n c = c.substring(1);\r\n if (c.indexOf(name) != -1)\r\n return c.substring(name.length, c.length);\r\n }\r\n return \"\";\r\n}\r\nvar popup = new Popup();\r\n},{}]},{},[5])\n\n","class Anchors {\r\n items = [];\r\n public hash: any;\r\n nav = $('nav');\r\n constructor() {\r\n this.parse();\r\n $(window).on('hashchange', this.hashchange.bind(this));\r\n\r\n }\r\n\r\n public parse = () => {\r\n $('a[data-anchor]').each((index, item) => {\r\n let anchor;\r\n let anchorItem = $(item);\r\n if (!anchorItem.data('anchor')) {\r\n let anchor = new Anchor(anchorItem);\r\n anchorItem.data('anchor', anchor);\r\n this.items.push(anchor);\r\n }\r\n })\r\n this.hashchange(event);\r\n }\r\n\r\n public hashchange = (event) => {\r\n const hash = window.location.hash.replace('#', '');\r\n this.hash = hash;\r\n if (this.hash != hash || !event) {\r\n console.log(\"test\")\r\n if (hash) {\r\n console.log(\"test\")\r\n for (let i = 0; i < this.items.length; i++) {\r\n let item = this.items[i];\r\n console.log(item)\r\n if (item.id == hash) {\r\n $(item.element.addClass('is-active'));\r\n $('body, html').stop(true).animate({'scrollTop' : item.target.offset().top - this.nav.outerHeight()});\r\n } else {\r\n $(item.element.removeClass('is-active'));\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n\r\n\r\nclass Anchor extends Anchors {\r\n element: any;\r\n id: any;\r\n target: any;\r\n constructor(element) {\r\n super();\r\n this.element = element;\r\n console.log(element)\r\n if(!this.element.length) return;\r\n this.element.on('click', this.click.bind(this));\r\n\r\n this.id = this.element.attr('href').split('#').pop();\r\n\r\n this.target = $('#' + this.id);\r\n this.target.attr('id', 'js-' + this.id);\r\n }\r\n\r\n public click = (event) => {\r\n if(this.id == window.location.hash.replace('#', '')) {\r\n console.log(Anchors)\r\n\r\n }\r\n }\r\n}\r\nlet anchors = new Anchors();\r\n","class Faq {\r\n element = $('.js-faq');\r\n items: any;\r\n topics: any;\r\n constructor() {\r\n $('article').hide();\r\n $('article').first().show();\r\n $('.js-faq--topic').first().addClass('active');\r\n $('.js-accessibility').hide();\r\n this.topics = this.element.find('.js-faq--topics a');\r\n this.items = this.element.find('.js-item');\r\n let openItems;\r\n let openTopics;\r\n this.items.each((index, item) => {\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 $('#'+$('.js-faq--topic.active').attr('aria-controls')).find('.js-item').first().addClass('active');\r\n }\r\n}\r\n\r\nclass FaqTopics {\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 // hideArticles() {\r\n // $('article').removeClass('show');\r\n // }\r\n // deslectAllTabs() {\r\n // $('js-faq--topics a').attr('aria-selected', false);\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 }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\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 if(this.element.hasClass('active')) {\r\n this.element.removeClass('active');\r\n }else {\r\n $('.js-item.active').removeClass('active');\r\n this.element.addClass('active');\r\n }\r\n }\r\n\r\n close() {\r\n\r\n }\r\n\r\n}\r\n\r\nlet faq = new Faq();\r\n","class Lightbox {\r\n element = $('.js-lightbox');\r\n items: any;\r\n constructor() {\r\n this.items = this.element.find('.js-item');\r\n let openItems;\r\n this.items.each((index, item) => {\r\n let items = $(item);\r\n let openItems = new LightboxItems(items);\r\n });\r\n\r\n }\r\n}\r\n\r\n\r\nclass LightboxItems {\r\n element: any;\r\n lightbox = $('.c-lightbox');\r\n src: any;\r\n type: any;\r\n img: any;\r\n videoElement: any;\r\n closeBtn: any;\r\n nextBtn: any;\r\n prevBtn: any;\r\n\r\n currentImg: any;\r\n nextImg: any;\r\n prevImg: any;\r\n\r\n constructor(items) {\r\n this.element = items;\r\n this.currentImg = this.element;\r\n this.nextImg = this.currentImg.next();\r\n this.prevImg = this.currentImg.prev();\r\n\r\n\r\n if(!this.lightbox.length) return;\r\n this.element.find('.js-lightbox__inner').on('click', this.open.bind(this));\r\n this.src = this.element.find('.js-lightbox__inner').attr('href');\r\n this.type = this.element.attr('data-type');\r\n this.img = `
\r\n \r\n \r\n \r\n \t\t\t\t\r\n
`;\r\n this.videoElement = `
\r\n \r\n \r\n
`;\r\n }\r\n open(event) {\r\n event.preventDefault();\r\n let galleryLength = this.element.parent().find(\"li\").length;\r\n let index = this.element.index();\r\n this.lightbox.addClass('u-is-visible');\r\n\r\n $(\".c-lightbox__image\").attr('src', this.element.find('.js-lightbox__inner').attr('href'));\r\n if (this.type == 'video') {\r\n this.lightbox.find('.c-lightbox__inner').append(this.videoElement);\r\n }else if (this.type == 'image') {\r\n this.lightbox.find('.c-lightbox__inner').append(this.img);\r\n }\r\n\r\n this.closeBtn = this.lightbox.find('.c-lightbox__close');\r\n this.closeBtn.on('click', this.close.bind(this));\r\n this.nextBtn = this.lightbox.find('.c-lightbox__next');\r\n this.prevBtn = this.lightbox.find('.c-lightbox__prev');\r\n\r\n this.nextBtn.on('click', function() {\r\n if(index < galleryLength) {\r\n index++;\r\n }\r\n if (index == galleryLength - 1) {\r\n this.nextBtn.hide();\r\n }\r\n if (index > 0) {\r\n this.prevBtn.show();\r\n }\r\n let link = this.element.parent().find(\"li\").eq(index).find(\"a\");\r\n $(\".c-lightbox__image\").attr('src', link.attr('href'));\r\n }.bind(this));\r\n\r\n $(\".c-lightbox__image\").on('click', function() {\r\n console.log('text')\r\n if(index < galleryLength) {\r\n index++;\r\n }\r\n if (index == galleryLength - 1) {\r\n this.nextBtn.hide();\r\n }\r\n if (index > 0) {\r\n this.prevBtn.show();\r\n }\r\n let link = this.element.parent().find(\"li\").eq(index).find(\"a\");\r\n $(\".c-lightbox__image\").attr('src', link.attr('href'));\r\n }.bind(this));\r\n\r\n if(!this.element.prev().length) {\r\n this.prevBtn.hide();\r\n }\r\n if(!this.element.next().length) {\r\n this.nextBtn.hide();\r\n }\r\n this.prevBtn.on('click', function() {\r\n if(index == 1) {\r\n this.prevBtn.hide();\r\n }\r\n if(index < galleryLength ) {\r\n this.nextBtn.show();\r\n }\r\n index--;\r\n let link = this.element.parent().find(\"li\").eq(index).find(\"a\");\r\n $(\".c-lightbox__image\").attr('src', link.attr('href'));\r\n }.bind(this));\r\n\r\n }\r\n\r\n close() {\r\n this.lightbox.removeClass('u-is-visible');\r\n $('.c-lightbox__inner').empty();\r\n }\r\n\r\n}\r\n\r\nlet lichtbox = new Lightbox();\r\n","class LoadMore {\r\n element = $('.js-LoadMore');\r\n constructor() {\r\n let loadMoreElements;\r\n this.element.each((index, item) => {\r\n let items = $(item);\r\n let loadMoreElements = new LoadMoreElements(items);\r\n });\r\n }\r\n}\r\n\r\nexport class LoadMoreElements {\r\n element: any;\r\n items: any;\r\n text: any;\r\n btn: any;\r\n constructor(items) {\r\n this.element = items;\r\n this.items = this.element.find('.js-item');\r\n this.text = this.element.attr('data-text');\r\n if (this.items.length > 9) {\r\n this.element.append(`\r\n
\r\n \r\n
\r\n `)\r\n this.items.hide();\r\n this.items.slice(0, 9).show();\r\n }\r\n this.items.hide();\r\n this.items.slice(0, 9).show();\r\n this.btn = this.element.find('.js-btn');\r\n this.btn.on('click', this.more.bind(this));\r\n }\r\n\r\n more() {\r\n this.items.filter(':hidden').slice(0, 6).show();\r\n if (this.items.length == this.items.filter(':visible').length) {\r\n this.btn.hide();\r\n }\r\n }\r\n}\r\nlet loadmore = new LoadMore();\r\n","\r\nimport \"./menu\";\r\n// import \"./fade\";\r\nimport \"./loadMore\";\r\nimport \"./faq\";\r\nimport \"./lightbox\";\r\nimport \"./anchor\";\r\nimport \"./popup\";\r\n","class Menu {\r\n menu: any;\r\n navpos: 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 //Scroll function\r\n // vind positie nav\r\n // vind positie top scherm\r\n // als positie top scherm > nav is.\r\n // nav position fixed geven\r\n if ($(window).width() >= 769) {\r\n \t this.navpos = $('.o-navigation').offset().top as number;\r\n $(window).on(\"scroll\", this.navpostion.bind(this));\r\n }\r\n }\r\n\r\n navpostion(navpos){\r\n const nav = $('.o-navigation');\r\n\r\n const scrollTop = $(window).scrollTop() as number;\r\n if(scrollTop >= this.navpos) {\r\n if(!nav.hasClass(\"is-sticky\")) {\r\n nav.addClass(\"is-sticky\");\r\n }else {\r\n return;\r\n }\r\n }else {\r\n nav.removeClass(\"is-sticky\");\r\n }\r\n\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 Popup {\r\n element: any;\r\n close: any;\r\n popup: any;\r\n cookiename: any;\r\n constructor() {\r\n this.element = $(\".js-popup\");\r\n let cookiename = getCookie(\"verdelpopup\");\r\n if (cookiename != \"closed\") {\r\n if ($(window).width() >= 600) {\r\n window.setTimeout(function(){\r\n $(\".js-popup\").addClass(\"js-popup--show\");\r\n }, 5000);\r\n }\r\n }\r\n this.close = this.element.find(\".js-close\");\r\n if(!this.element.length) return;\r\n this.close.on('click', function() {\r\n this.element.removeClass(\"js-popup--show\");\r\n document.cookie = \"verdelpopup=closed; expires=0; path=/; SameSite=None; secure\";\r\n }.bind(this));\r\n\r\n }\r\n}\r\nfunction getCookie(cname) {\r\n let name = cname + \"=\";\r\n let ca = document.cookie.split(';');\r\n for (let i = 0; i < ca.length; i++) {\r\n let c = ca[i];\r\n while (c.charAt(0) == ' ') c = c.substring(1);\r\n if(c.indexOf(name) != -1) return c.substring(name.length, c.length);\r\n }\r\n return \"\";\r\n}\r\nlet popup = new Popup();\r\n"]}