{"version":3,"sources":["core.min.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"core.min.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 0) {\n // Cache selectors\n var lastId,\n topMenu = $(\"header\"),\n topMenuHeight = topMenu.outerHeight(),\n // All list items\n menuItems = topMenu.find(\".header-wrapper__nav ul li a.hash-url\"),\n // Anchors corresponding to menu items\n scrollItems = menuItems.map(function () {\n var item = $($(this).attr(\"href\"));\n\n if (item.length) {\n return item;\n }\n }); // Bind click handler to menu items\n // so we can get a fancy scroll animation\n\n menuItems.click(function (e) {\n var href = $(this).attr(\"href\"),\n offsetTop = href === \"#\" ? 0 : $(href).offset().top - topMenuHeight + 1;\n menuItems.removeClass('active');\n $(this).addClass('active');\n $('.header-collapse').removeAttr('style');\n $('.navbar-trigger').addClass('collapsed');\n $('html, body').stop().animate({\n scrollTop: offsetTop\n }, 700);\n e.preventDefault();\n }); // Bind to scroll\n\n $(window).scroll(function () {\n // Get container scroll position\n var fromTop = $(this).scrollTop() + topMenuHeight; // Get id of current scroll item\n\n var cur = scrollItems.map(function () {\n if ($(this).offset().top <= fromTop) return this;\n }); // Get the id of the current element\n\n cur = cur[cur.length - 1];\n var id = cur && cur.length ? cur[0].id : \"\";\n\n if (lastId !== id) {\n lastId = id; // Set/remove active class\n\n menuItems.parent().removeClass(\"active\").end().filter(\"[href='#\" + id + \"']\").parent().addClass(\"active\");\n }\n });\n }\n\n var menu = ['QR AVI', 'TOKEN FESTİVALİ', 'İNDİRİMLİ ÖN SATIŞ', 'ÖN SATIŞ', 'ARZ KOŞULLARI'];\n var swiper = new Swiper(\".supply-calendar .swiper\", {\n speed: 800,\n autoHeight: true,\n //effect: 'fade',\n pagination: {\n el: \".supply-calendar .swiper-pagination\",\n clickable: true,\n renderBullet: function renderBullet(index, className) {\n return '' + menu[index] + \"\";\n }\n },\n navigation: {\n nextEl: \".supply-calendar .swiper-button-next\",\n prevEl: \".supply-calendar .swiper-button-prev\"\n }\n }); // var operatingSystem, userAgentString = navigator.userAgent;\n // var link = $(\"#store\");\n // if (userAgentString.indexOf(\"iPhone\") > -1 || userAgentString.indexOf(\"iPod\") > -1 || userAgentString.indexOf(\"iPad\") > -1) {\n // operatingSystem = \"iOS\";\n // link.attr(\"href\", \"https://apps.apple.com/tr/app/bitexensahada/id1603985409\");\n // } else if (/Android/.test(userAgentString)) {\n // operatingSystem = \"Android\";\n // link.attr(\"href\", \"https://play.google.com/store/apps/details?id=com.exenpay.bitexensahada\");\n // }\n // } else if (/Windows Phone/.test(userAgentString)) {\n // operatingSystem = \"Windows Phone\";\n // link.attr(\"href\", \"http://www.windowsphone.com/en-us/store\");\n // }\n\n var _popup = Cookies.get(\"popup\");\n\n if (window.location.pathname == '/') {\n if (_popup != \"true\") {\n $.fancybox.open({\n src: '/assets/ajax/popup.html',\n type: 'ajax',\n height: 700,\n autoSize: true,\n afterClose: function afterClose() {\n Cookies.set(\"popup\", \"true\", {\n expires: 1\n });\n }\n });\n }\n } //fix popup\n // $.fancybox.open({\n // src:'/assets/ajax/popup.html',\n // type:'ajax',\n // autoSize: true\n // });\n\n\n var swiper1 = new Swiper(\".usage-areas .swiper\", {\n slidesPerView: 4,\n spaceBetween: 0,\n speed: 700,\n breakpoints: {\n 0: {\n slidesPerView: 1\n },\n 610: {\n slidesPerView: 2\n },\n 991: {\n slidesPerView: 4\n }\n }\n });\n var swiper2 = new Swiper(\".sss-section .swiper\", {\n slidesPerView: 2,\n spaceBetween: 30,\n speed: 700,\n breakpoints: {\n 0: {\n slidesPerView: 1,\n spaceBetween: 24\n },\n 767: {\n slidesPerView: 2,\n spaceBetween: 30\n }\n },\n navigation: {\n nextEl: \".sss-section .swiper-button-next\",\n prevEl: \".sss-section .swiper-button-prev\"\n }\n });\n var swiper3 = new Swiper(\".partners-section .swiper\", {\n slidesPerView: 2,\n spaceBetween: 30,\n speed: 700,\n breakpoints: {\n 0: {\n slidesPerView: 1,\n spaceBetween: 24\n },\n 767: {\n slidesPerView: 2,\n spaceBetween: 30\n },\n 991: {\n slidesPerView: 3,\n spaceBetween: 30\n }\n },\n navigation: {\n nextEl: \".partners-section .swiper-button-next\",\n prevEl: \".partners-section .swiper-button-prev\"\n }\n });\n var swiper4 = new Swiper(\".road-map .swiper\", {\n direction: \"horizontal\",\n slidesPerView: \"auto\",\n freeMode: true\n /*scrollbar: {\n //el: \".swiper-scrollbar\",\n draggable: true,\n snapOnRelease:false\n },*/\n //mousewheel: true,\n\n });\n});\n\n},{}]},{},[1]);\n"]}