{"version":3,"sources":["../es6/app.popup.js"],"names":["$","App","Popup","gallerySelector","imageSelector","imageGallerySelector","videoSelector","nextLabel","previousLabel","imagePopupOptions","closeMarkup","image","titleSrc","item","el","find","attr","type","zoom","easing","enabled","duration","videoPopupOptions","disableOn","init","bind","self","magnificPopup","each","extend","delegate","gallery","arrowMarkup","tCounter","tPrev","tNext","jQuery"],"mappings":";;AAAC,WAASA,CAAT,EAAY;;AAET;;AAEA;;;;AAGAC,QAAIC,KAAJ,GAAY;;AAERC,yBAAiB,gBAFT;AAGRC,uBAAe,cAHP;AAIRC,8BAAsB,sBAJd;AAKRC,uBAAe,cALP;AAMRC,mBAAW,UANH;AAORC,uBAAe,QAPP;;AASZC,2BAAmB;AACXC,yBAAa,+DADF;AAEXC,mBAAO;AACHC,0BAAU,kBAASC,IAAT,EAAe;AACrB,2BAAOA,KAAKC,EAAL,CAAQC,IAAR,CAAa,KAAb,EAAoBC,IAApB,CAAyB,KAAzB,CAAP;AACH;AAHE,aAFI;AAOXC,kBAAM,OAPK;AAQXC,kBAAM;AACFC,wBAAQ,aADN;AAEFC,yBAAS,IAFP;AAGFC,0BAAU;AAHR;AARK,SATP;;AAwBRC,2BAAmB;AACfZ,yBAAa,+DADE;AAEfa,uBAAW,GAFI;AAGfN,kBAAM,QAHS;AAIfC,kBAAM;AACFC,wBAAQ,aADN;AAEFC,yBAAS,IAFP;AAGFC,0BAAU;AAHR;AAJS,SAxBX;;AAmCR;;;AAGAG,cAAM,gBAAW;AACb,iBAAKC,IAAL;AACH,SAxCO;;AA0CR;;;AAGAA,cAAM,gBAAW;;AAEb,gBAAIC,OAAO,IAAX;;AAEA;AACA1B,cAAE,KAAKI,aAAP,EAAsBuB,aAAtB,CAAoC,KAAKlB,iBAAzC;;AAEA;AACAT,cAAE,KAAKG,eAAP,EAAwByB,IAAxB,CAA6B,YAAW;AACpC5B,kBAAE,IAAF,EAAQ2B,aAAR,CAAsB3B,EAAE6B,MAAF,CAAS;AAC3BC,8BAAUJ,KAAKrB,oBADY;AAE3B0B,6BAAS;AACLC,qCAAa,sFADR;AAELZ,iCAAS,IAFJ;AAGLa,kCAAU,mDAHL;AAILC,+BAAOR,KAAKlB,aAJP;AAKL2B,+BAAOT,KAAKnB;AALP;AAFkB,iBAAT,EASnBmB,KAAKjB,iBATc,CAAtB;AAUH,aAXD;;AAaA;AACAT,cAAE,KAAKM,aAAP,EAAsBqB,aAAtB,CAAoC,KAAKL,iBAAzC;AACH;AApEO,KAAZ;AAuEH,CA9EA,EA8ECc,MA9ED,CAAD","file":"app.popup.js","sourcesContent":["(function($) {\n\n 'use strict';\n\n /**\n * Popup object\n */\n App.Popup = {\n\n gallerySelector: '.gallery-popup',\n imageSelector: '.image-popup',\n imageGallerySelector: '.image-popup-gallery',\n videoSelector: '.video-popup',\n nextLabel: 'Volgende',\n previousLabel: 'Vorige',\n\n\t\t\t\timagePopupOptions: {\n closeMarkup: 'Sluiten',\n image: {\n titleSrc: function(item) {\n return item.el.find('img').attr('alt');\n }\n },\n type: 'image',\n zoom: {\n easing: 'ease-in-out',\n enabled: true,\n duration: 200\n }\n },\n\n videoPopupOptions: {\n closeMarkup: 'Sluiten',\n disableOn: 767,\n type: 'iframe',\n zoom: {\n easing: 'ease-in-out',\n enabled: true,\n duration: 20000\n }\n },\n\n /**\n * Initialise the object\n */\n init: function() {\n this.bind();\n },\n\n /**\n * Set up event handlers\n */\n bind: function() {\n\n var self = this;\n\n // Image popup\n $(this.imageSelector).magnificPopup(this.imagePopupOptions);\n\n // Gallery popup\n $(this.gallerySelector).each(function() {\n $(this).magnificPopup($.extend({\n delegate: self.imageGallerySelector,\n gallery: {\n arrowMarkup: '',\n enabled: true,\n tCounter: '%curr% / %total%',\n tPrev: self.previousLabel,\n tNext: self.nextLabel\n },\n }, self.imagePopupOptions));\n });\n\n // Video popup\n $(this.videoSelector).magnificPopup(this.videoPopupOptions);\n }\n }\n\n}(jQuery));"]}