{"version":3,"sources":["before.js","main.js","after.js"],"names":["$","OTF_Main_JS","_classCallCheck","this","initPortfolio","length","initCounter","_createClass","key","value","magnificPopup","delegate","type","tLoading","mainClass","gallery","enabled","navigateByImgClick","preload","image","tError","titleSrc","item","formatter","options","$this","element","data","countTo","document","ready","jQuery"],"mappings":"yiBAAA,SAAAA,GAAA,GCAAC,GDAA,WCCA,QAAAA,KAAAC,gBAAAC,KAAAF,GACAE,KAAAC,gBACAJ,EAAA,2BAAAK,OAAA,GACAF,KAAAG,cDJA,MAAAC,cAAAN,IAAAO,IAAA,gBAAAC,MAAA,WAAAT,EAAA,4BAAAU,eCCAC,SAAA,IAAAC,KAAA,QAWAC,SAAA,2BAVAC,UAAA,iBACAC,SACAC,SAAA,EACAC,oBAAA,EACAC,SAAA,EAAA,IDNAC,OAAAC,OAAA,6DAAAC,SAAA,SAAAC,GCSAtB,MAAAA,GAAAA,GAAAA,KAAAA,gBDTAQ,IAAA,cAAAC,MAAA,WCiBAS,EAAAA,kBAAAA,KAAAA,kBAHAK,UAAA,SAAAd,EAAAe,GAKAL,MAAAA,GAAAA,QAAAA,EAAAA,UAAAA,QAAAA,0BAAAA,QAEAE,KAAAA,SAAAA,EAAAA,GACA,GAAAI,GAAAzB,EAAA0B,EACAF,GAAAA,YAAAA,MAAAC,EAAAE,KAAA,uBAJAF,EAAAG,QAAAJ,SDnBAvB,IAAAD,GAAA6B,UAAAC,MAAA,WC8BA9B,GAAAA,MC9BA+B","file":"main.js","sourcesContent":["(function ($) {","class OTF_Main_JS{\n constructor(){\n this.initPortfolio();\n if ($('body [otf-count-number]').length > 0) {\n this.initCounter();\n }\n }\n\n initPortfolio(){\n $('.portfolio-popup-gallery').magnificPopup({\n delegate : 'a',\n type : 'image',\n tLoading : 'Loading image #%curr%...',\n mainClass: 'mfp-img-mobile',\n gallery : {\n enabled : true,\n navigateByImgClick: true,\n preload : [0, 1]\n },\n image : {\n tError : 'The image #%curr% could not be loaded.',\n titleSrc: function (item) {\n return item.el.attr('title');\n }\n }\n });\n\n }\n\n initCounter() {\n $('[opal-counter]').data('countToOptions', {\n formatter: function (value, options) {\n return value.toFixed(options.decimals).replace(/\\B(?=(?:\\d{3})+(?!\\d))/g, ',');\n }\n }).each((options, element) =>{\n let $this = $(element);\n options = {...options || {}, ...$this.data('countToOptions') || {}};\n $this.countTo(options);\n });\n }\n}\n\n$(document).ready(() => {\n new OTF_Main_JS();\n})","})(jQuery);"]}