{"version":3,"names":[],"mappings":"","sources":["scripts.bundle.js"],"sourcesContent":["var Helpers = (function () {\n function throttle(fn, threshhold, scope) {\n threshhold || (threshhold = 250);\n var last, deferTimer;\n return function () {\n var context = scope || this;\n var now = +new Date(),\n args = arguments;\n if (last && now < last + threshhold) {\n // hold on to it\n clearTimeout(deferTimer);\n deferTimer = setTimeout(function () {\n last = now;\n fn.apply(context, args);\n }, threshhold);\n } else {\n last = now;\n fn.apply(context, args);\n }\n };\n }\n\n function isIE() {\n var ua = window.navigator.userAgent; //Check the userAgent property of the window.navigator object\n var msie = ua.indexOf(\"MSIE \"); // IE 10 or older\n var trident = ua.indexOf(\"Trident/\"); //IE 11\n\n return msie > 0 || trident > 0;\n }\n\n function fixObjectFit() {\n if (\"objectFit\" in document.documentElement.style === false) {\n $(\"img[data-object-fit]\").each(function () {\n var imgUri = $(this)\n .attr(\"src\")\n .replace(/\\(/g, \"%28\")\n .replace(/\\)/g, \"%29\");\n $(this)\n .css({\n backgroundImage: \"url(\" + imgUri + \")\",\n backgroundPosition: \"center\",\n backgroundSize: $(this).attr(\"data-object-fit\"),\n })\n .attr(\n \"src\",\n \"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='\" +\n $(this).width() +\n \"' height='\" +\n $(this).height() +\n \"'%3E%3C/svg%3E\"\n )\n .removeAttr(\"data-object-fit\");\n });\n }\n }\n\n function onElementHeightChange(elm, callback) {\n var lastHeight = elm.clientHeight,\n newHeight;\n (function run() {\n newHeight = elm.clientHeight;\n if (lastHeight != newHeight) callback();\n lastHeight = newHeight;\n\n if (elm.onElementHeightChangeTimer)\n clearTimeout(elm.onElementHeightChangeTimer);\n\n elm.onElementHeightChangeTimer = setTimeout(run, 200);\n })();\n }\n\n function generateRandomInteger(min, max) {\n return Math.floor(min + Math.random() * (max + 1 - min));\n }\n\n function getUrlParameter(sParam) {\n var sPageURL = window.location.search.substring(1),\n sURLVariables = sPageURL.split(\"&\"),\n sParameterName,\n i;\n\n for (i = 0; i < sURLVariables.length; i++) {\n sParameterName = sURLVariables[i].split(\"=\");\n\n if (sParameterName[0] === sParam) {\n return sParameterName[1] === undefined\n ? true\n : decodeURIComponent(sParameterName[1]);\n }\n }\n }\n\n function setUrlParameter(query) {\n if (history.pushState) {\n var newurl =\n window.location.protocol +\n \"//\" +\n window.location.host +\n window.location.pathname +\n \"?\" +\n query;\n window.history.pushState({ path: newurl }, \"\", newurl);\n }\n }\n\n return {\n throttle: function (fn, threshhold, scope) {\n return throttle(fn, threshhold, scope);\n },\n isIE: function () {\n return isIE();\n },\n fixObjectFit: function () {\n return fixObjectFit();\n },\n onElementHeightChange: function (elm, callback) {\n return onElementHeightChange(elm, callback);\n },\n generateRandomInteger(min, max) {\n return generateRandomInteger(min, max);\n },\n getUrlParameter(sParam) {\n return getUrlParameter(sParam);\n },\n setUrlParameter(query) {\n return setUrlParameter(query);\n },\n };\n})();\n\n(function ($) {\n \"use strict\";\n\n var $html = $(\"html\"),\n isTouch = $html.hasClass(\"touchevents\"),\n $body = $(\"body\");\n var windowWidth = Math.max($(window).width(), window.innerWidth);\n var locoScroll;\n var resizeEnd;\n\n /*flatpickr*/\n if (typeof flatpickr !== \"undefined\") {\n flatpickr.localize(flatpickr.l10ns[window.locale ? window.locale : \"tr\"]);\n }\n\n /*cookie-policy-toast*/\n if ($(\".cookie-policy-toast\").length > 0) {\n $(\".cookie-policy-toast\").toast(\"show\");\n }\n\n /*Title animate*/\n if ($(\".unfold-animate\").length > 0) {\n $(\".unfold-animate\").each(function () {\n var thisText = $(this).html();\n\n var thisHtml =\n '' +\n thisText\n .split(/ (?=[^>]*(?:<|$))/)\n .join(' ') +\n \"\";\n $(this).html(thisHtml);\n var delay = -1,\n prev_offset = 0;\n $(this)\n .find(\".mask\")\n .each(function () {\n var offset = $(this).position().top;\n if (prev_offset != offset) {\n prev_offset = offset;\n delay++;\n }\n $(this).addClass(\"delay\" + delay);\n });\n\n $(this)\n .find(\"span\")\n .each(function () {\n if ($(this).find(\"br\").length > 0) {\n $(this).after(\"
\").find(\"br\").remove();\n }\n });\n });\n }\n\n /*Page transitions*/\n if ($body.hasClass(\"location-animate\")) {\n setTimeout(function () {\n $(\".location-animate\").addClass(\"page-visible\");\n if (!$html.hasClass(\"preload-page\")) {\n $html.addClass(\"page-load\");\n }\n }, 500);\n }\n\n var pageTransitions = true;\n $body.on(\n \"click\",\n 'a[href^=\"mailto\"], a[href^=\"tel\"], a[href^=\"viber\"], .js-open-gallery',\n function () {\n pageTransitions = false;\n clearTimeout(resizeEnd);\n resizeEnd = setTimeout(function () {\n pageTransitions = true;\n }, 50);\n }\n );\n $body.on(\"click\", \"a\", function (e) {\n if (\n $(this).closest(\"#bx-panel\").length ||\n $(this).closest(\".bx-component-opener\").length\n ) {\n return;\n }\n if (\n pageTransitions &&\n $(this).attr(\"target\") != \"_blank\" &&\n !$(this).hasClass(\"prevent-transitions\") &&\n !$(this).hasClass(\"disabled\") &&\n !$(this).hasClass(\"js-load-more\")\n ) {\n e.preventDefault();\n var newLocation = $(this).attr(\"href\");\n $(\".location-animate\").removeClass(\"page-visible\");\n\n setTimeout(function () {\n window.location = newLocation;\n }, 200);\n }\n });\n\n /*Header*/\n var scrollDefaultPosition = 0;\n function stickyHeader(wST) {\n if (wST > scrollDefaultPosition) {\n $html.addClass(\"sticky-header short-header-view\");\n }\n\n if (scrollDefaultPosition > wST) {\n $html.removeClass(\"short-header-view\");\n }\n\n if (wST <= 1) {\n if ($html.hasClass(\"sticky-header\")) {\n $html.removeClass(\"sticky-header\");\n }\n }\n\n scrollDefaultPosition = wST;\n }\n stickyHeader(0);\n\n /* header base nav first and last item padding fix */\n if (\n $(\".tp-header .nav.nav-first-level > .nav-item:not(.d-lg-none)\").length > 0\n ) {\n $(\".tp-header .nav.nav-first-level > .nav-item:not(.d-lg-none)\")\n .first()\n .find(\".nav-link\")\n .addClass(\"pl-lg-0\");\n $(\".tp-header .nav.nav-first-level > .nav-item:not(.d-lg-none)\")\n .last()\n .find(\".nav-link\")\n .addClass(\"pr-lg-0\");\n }\n\n /*mobile header search*/\n var $mobileSearchWrapper = $(\".mobile-search-wrapper\"),\n $mobileSearchInput = $(\".mobile-search-input\"),\n $mobileSearchButton = $(\".mobile-search-button\");\n\n function submitMobileSearch() {\n var url = $mobileSearchWrapper.data(\"path\");\n if (url && $mobileSearchInput.val().length > 0) {\n location.href = url + $mobileSearchInput.val();\n }\n }\n\n $mobileSearchInput.keypress(function (e) {\n if (e.which == 13) {\n submitMobileSearch();\n return false;\n }\n });\n $mobileSearchButton.on(\"click\", function (e) {\n submitMobileSearch();\n return false;\n });\n\n /*header search*/\n var $searchWrapper = $(\".search-wrapper\"),\n $searchInput = $(\".search-input\"),\n $searchButton = $(\".search-button\");\n\n function submitSearch() {\n var url = $searchWrapper.data(\"path\");\n if (url && $searchInput.val().length > 0) {\n location.href = url + $searchInput.val();\n }\n }\n\n $searchInput.keypress(function (e) {\n if (e.which == 13) {\n submitSearch();\n return false;\n }\n });\n $(document).on(\"click\", function (e) {\n if ($(e.target).is($searchButton) && $searchWrapper.hasClass(\"focused\")) {\n submitSearch();\n return false;\n }\n if ($.contains($searchWrapper[0], e.target)) {\n $searchWrapper.addClass(\"focused\");\n $searchInput.focus();\n } else {\n $searchWrapper.removeClass(\"focused\");\n $searchInput.val(\"\");\n }\n });\n\n /*sticky table header*/\n var $stickyTable = $(\".table-sticky-header\");\n var $stickyTableHead = $(\".table-sticky-header thead\");\n var $globalHeader = $(\".tp-header\");\n\n function stickyTableHeader(wST) {\n if ($stickyTable.length > 0 && $stickyTableHead.length > 0) {\n var topOffset = $globalHeader.height();\n var bottomOffset = 250;\n\n if (windowWidth > 991 && $html.hasClass(\"short-header-view\")) {\n topOffset = topOffset - 55;\n }\n\n if (\n $stickyTable.offset().top < topOffset &&\n $stickyTable.height() + $stickyTable.offset().top > bottomOffset\n ) {\n $stickyTableHead.addClass(\"sticky\");\n $stickyTableHead[0].style.transform =\n \"translateY(\" + (topOffset - $stickyTable.offset().top) + \"px)\";\n } else {\n $stickyTableHead.removeClass(\"sticky\");\n }\n }\n }\n\n /*Nav*/\n $(\".js-open-nav\").click(function () {\n if (!$html.hasClass(\"opened-nav\")) {\n $html.addClass(\"opened-nav\");\n\n $(\"#nav > ul > li\").each(function () {\n if (\n $(this).hasClass(\"active\") &&\n $(this).find(\".dropdown\").length > 0\n ) {\n $(this).addClass(\"opened-dropdown\").find(\".dropdown\").show();\n }\n });\n\n /*Old ios version bug fix*/\n /*if ($html.hasClass(\"ios\") && $html.hasClass(\"touchevents\")) {\n $(\"html, body\").animate(\n {\n scrollTop: scrolledY + 1,\n },\n 50\n );\n }*/\n } else {\n $html.removeClass(\"opened-nav\");\n setTimeout(function () {\n $(\"#nav li\").removeClass(\"opened-dropdown\").find(\".dropdown\").hide();\n }, 300);\n }\n });\n\n /*Quick menu*/\n var $quickMenu = undefined;\n\n function quickMenuFix() {\n if (windowWidth > 991) {\n var width = 0;\n $quickMenu.find(\"a\").each(function () {\n if (width < $(this).outerWidth()) {\n width = $(this).outerWidth();\n }\n });\n $quickMenu.find(\"a\").width(width);\n } else {\n $quickMenu.find(\"a\").css(\"width\", \"auto\");\n }\n }\n function quickMenuInit() {\n if ($quickMenu == undefined) {\n $quickMenu = $(\".quick-menu\");\n var $preview = $quickMenu.find(\".quick-menu-preview\");\n var $dropdown = $quickMenu.find(\".qucik-menu-dropdown\");\n var $firstChild = $dropdown.find(\"a\").eq(0);\n var href = $firstChild.attr(\"href\");\n var target = $firstChild.attr(\"target\");\n if (href) {\n $preview.attr(\"href\", href);\n }\n if (target) {\n $preview.attr(\"target\", target);\n }\n $preview.html($firstChild.html());\n $firstChild.remove();\n\n //quickMenuFix();\n }\n }\n\n if ($(\".quick-menu\").length > 0) {\n quickMenuInit();\n }\n\n /*Index slider*/\n var indexSlider = undefined;\n function indexSliderInit() {\n if (indexSlider == undefined) {\n indexSlider = new Swiper(\".index-slider .swiper-container\", {\n slidesPerView: 1,\n loop: true,\n autoplay: {\n delay: 10000,\n },\n navigation: {\n nextEl: \".swiper-button-next\",\n prevEl: \".swiper-button-prev\",\n },\n /*on: {\n init: function () {\n console.log(\"swiper initialized\");\n var currentVideo = $(\n \"[data-swiper-slide-index=\" + this.realIndex + \"]\"\n ).find(\"video\");\n currentVideo.trigger(\"play\");\n },\n },*/\n });\n\n /*var sliderVideos = $(\".swiper-slide video\");\n\n indexSlider.on(\"slideChange\", function () {\n console.log(\"slide changed\");\n \n sliderVideos.each(function (index) {\n this.currentTime = 0;\n });\n \n var prevVideo = $(\n \"[data-swiper-slide-index=\" + this.previousIndex + \"]\"\n ).find(\"video\");\n var currentVideo = $(\n \"[data-swiper-slide-index=\" + this.realIndex + \"]\"\n ).find(\"video\");\n prevVideo.trigger(\"stop\");\n currentVideo.trigger(\"play\");\n });*/\n\n /*var v = document.getElementsByTagName(\"video\")[0];\n\n indexSlider.on(\"slideChange\", function () {\n console.log(\"a\");\n $(\"video\").trigger(\"stop\");\n });\n\n v.addEventListener(\n \"canplay\",\n function () {\n console.log(\"canplay\");\n $(\"video\").trigger(\"play\");\n indexSlider.autoplay.stop();\n },\n true\n );\n\n v.addEventListener(\n \"ended\",\n function () {\n console.log(\"ended\");\n indexSlider.autoplay.start();\n },\n true\n );*/\n }\n }\n\n if ($(\".index-slider\").length > 0) {\n indexSliderInit();\n }\n\n /*regular slider*/\n function sliderInit() {\n $(\".tp-slider .swiper-container\").each(function (index) {\n var slider = new Swiper($(this)[0], {\n spaceBetween: 30,\n slidesPerView: \"auto\",\n speed: 400,\n loop: false,\n centeredSlides: false,\n grabCursor: true,\n pagination: {\n el: $(this).parents(\".tp-slider\").find(\".swiper-pagination\"),\n clickable: true,\n },\n navigation: {\n prevEl: $(this).parents(\".tp-slider\").find(\".swiper-btn-prev\"),\n nextEl: $(this).parents(\".tp-slider\").find(\".swiper-btn-next\"),\n },\n on: {\n transitionStart: function () {\n if (!slider.isEnd) {\n slider.$el.removeClass(\"reached-end\");\n }\n },\n transitionEnd: function () {\n if (slider.isEnd) {\n slider.$el.addClass(\"reached-end\");\n }\n },\n reachBeginning: function () {\n if ($html.hasClass(\"no-touchevents\")) {\n $body.removeClass(\"pointer\");\n }\n },\n reachEnd: function () {\n if ($html.hasClass(\"no-touchevents\")) {\n $body.removeClass(\"pointer\");\n }\n },\n },\n breakpoints: {\n 576: {\n spaceBetween: 65,\n },\n },\n });\n });\n }\n\n if ($(\".tp-slider\").length > 0) {\n sliderInit();\n }\n\n /*cc slider*/\n function ccSliderInit() {\n $(\".tp-cc-slider .swiper-container\").each(function (index) {\n var ccSlider = new Swiper($(this)[0], {\n effect: \"fade\",\n loop: true,\n autoplay: {\n delay: 5000,\n },\n pagination: {\n el: $(this).parents(\".tp-cc-slider\").find(\".swiper-pagination\"),\n clickable: true,\n },\n });\n });\n }\n\n if ($(\".tp-cc-slider\").length > 0) {\n ccSliderInit();\n }\n\n /*inputmask*/\n if ($(\"[data-mask]\").length > 0) {\n $(\"[data-mask]\").each(function () {\n var $this = $(this);\n if ($this.data(\"mask\").length > 0) {\n $this.inputmask({\n mask: $this.data(\"mask\"),\n });\n }\n });\n }\n\n /*select2*/\n if ($(\".tp-select__select2\").length > 0) {\n $(\".tp-select__select2\").each(function () {\n var options = {\n theme: \"flat\",\n language: \"tr\",\n dropdownParent: $(\"[data-scroll-container]\"),\n };\n if ($(this).data(\"no-search\")) {\n options.minimumResultsForSearch = Infinity;\n }\n $(this).select2(options);\n\n /*document.addEventListener(\n \"scroll\",\n function (event) {\n console.log(event.target.id);\n if ($(event.target).hasClass(\"select2-results__options\")) {\n console.log(\"scrolling\");\n if (locoScroll) {\n locoScroll.stop();\n }\n }\n },\n true\n );*/\n\n $(this).on(\"select2:open\", function (e) {\n var $this = $(this);\n $(\".select2-container--open\")\n .on(\"mouseenter\", function () {\n if (locoScroll) {\n locoScroll.stop();\n }\n })\n .on(\"mouseleave\", function () {\n if (locoScroll) {\n locoScroll.start();\n }\n });\n\n $body.on(\"touchstart\", function (e) {\n var $target = $(e.target);\n if (!$target.closest(\".select2-container--open\").length > 0) {\n $this.select2(\"close\");\n if (locoScroll) {\n locoScroll.start();\n }\n } else {\n if (locoScroll) {\n locoScroll.stop();\n }\n }\n });\n });\n\n $(this).on(\"select2:close\", function (e) {\n if (locoScroll) {\n locoScroll.start();\n }\n });\n });\n }\n\n /*select2 populator*/\n\n function initSelectPopulator() {\n var $populator = $(\"[data-select2-populate]\");\n var target = $populator.data(\"select2-populate\");\n var $target = $(\".tp-select__select2[name='\" + target + \"']\");\n var $parent = $target.parents(\".tp-select\");\n var targetOriginalText = $target.text();\n var $loader = $(\n '
{{address}}
\\\n \\\n Haritada Göster\\\n \\\n