{"version":3,"sources":["core.js","components/accordion.js","components/close.js","components/configurator-steps-scroll.js","components/counter.js","components/fullscreen.js","components/gallery.js","components/graph.js","components/modal.js","components/range_slider.js","components/rate.js","components/select.js","components/slider.js","components/tabs.js","components/wow.js","parts/dots.js","parts/navigation_scroll_resize.js","parts/placeholder.js","parts/scroll_to.js","parts/show-hidden.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;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;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;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;;AC/DA;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;;ACxDA;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;;AC3CA;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;;ACrLA;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;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;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;;ACheA;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;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;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;;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;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":"app.js","sourcesContent":["// --- GLOBAL VARIABLES --- //\nvar $window = $(window);\nvar $document = $(document);\nvar $header = $( '.header' );\nvar bp_small = 768;\nvar bp_medium = 992;\nvar class_active = 'is-active';\nvar class_last = 'is-last';\nvar class_disabled = 'is-disabled';\nvar $this = null;\nvar $containers = $( 'html,body' );\n\n\n// --- COMPONENTS, PARTS --- //\n$( document ).ready( function(){\n\t// --- COMPONENTS --- //\n\tfn_components_accordion();\n\tfn_components_remove();\n\tfn_components_slider();\n\tfn_components_select();\n\tfn_components_rate();\n\tfn_components_modal();\n\tfn_components_gallery();\n\tfn_components_tabs();\n\tfn_components_counter();\n\t\n\tfn_components_wow();\n\n\tfn_components_fullscreen_navigation();\n\tfn_components_range_slider();\n\t\n\tfn_components_graph();\n\n\n\t// --- PARTS --- //\n\tfn_parts_scroll_to();\n\tfn_parts_placeholder();\n\tfn_parts_show_hidden();\n\tfn_parts_navigation_scroll_resize();\n\n});\n\n\nvar resizeTimer;\n\n// --- SCROLL EVENT --- //\n$(document).scroll(function() {\n\tif (resizeTimer) {\n\t\twindow.cancelAnimationFrame(resizeTimer);\n\t}\n\n\tresizeTimer = window.requestAnimationFrame(function () {\n\t\tfn_parts_navigation_scroll_resize();\n\t});\n});\n\n// --- RESIZE EVENT --- //\n$(window).resize(function() {\n\tif (resizeTimer) {\n\t\twindow.cancelAnimationFrame(resizeTimer);\n\t}\n\n\tresizeTimer = window.requestAnimationFrame(function () {\n\t\tfn_parts_navigation_scroll_resize();\n\t});\n});\n\n// --- LOAD EVENT --- //\n$( window ).bind( 'load' , function () {\n\tsetTimeout(function(){ \n\t\t$( '#cookies-bar' ).addClass( class_active );\n\t}, 2000);\n\tfn_components_configuratorStepsScroll();\n\tfn_parts_dots();\n\tmsieVersion();\n\tsafariVersion();\n\n});\n\nfunction msieVersion() {\n\n var ua = window.navigator.userAgent;\n var msie = ua.indexOf(\"MSIE \");\n\n if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\\:11\\./)) {\n \t$('body').addClass( 'ie' );\n }\n\n return false;\n}\n\nfunction safariVersion(){\n\tif ( /^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {\n \t$('body').addClass( 'safari' );\n\t}\n}","//====================================================\r\n// Function: Accordion\r\n//====================================================\r\nfunction fn_components_accordion(){\r\n\tif ($( '.js-accordion-group' ).length){\r\n\t\t$( '.js-accordion-trigger' ).click(function () {\r\n\t\t\tvar inst = $(this);\r\n\t\t\tvar thisItem = inst.closest( '.js-accordion-item' );\r\n\t\t\tvar content = '.js-accordion-content';\r\n\t\t\tvar accordionBlock = inst.closest( '.js-accordion-group' )\r\n\r\n\t\t\tif (thisItem.hasClass( class_active )) {\r\n\t\t\t\tthisItem.toggleClass( class_active );\r\n\t\t\t} else {\r\n\t\t\t\taccordionBlock.find( '.js-accordion-item.' + class_active + '' ).removeClass( class_active );\r\n\t\t\t\tinst.closest( '.js-accordion-item' ).addClass( class_active );\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t});\r\n\t}\r\n}","//====================================================\r\n// Function: Remove block\r\n//====================================================\r\nfunction fn_components_remove(){\r\n\tif ($( '.js-remove-trigger' ).length){\r\n\t\t$( '.js-remove-trigger' ).on('click' , function(e){\r\n\t\t\t$(this).closest( '.js-remove-block' ).remove();\r\n\t\t\t/*if ($(this).closest('.js-remove-block#cookies-bar').length){\r\n\t\t\t\t$( 'body' ).removeClass( 'page-fixed-btn' );\r\n\t\t\t}*/\r\n\t\t\te.preventDefault();\r\n\t\t});\r\n\t}\r\n}\r\n","//====================================================\r\n// Function: Configurator steps\r\n//====================================================\r\nfunction fn_components_configuratorStepsScroll(){\r\n\r\n\tvar scrollToSteps = true;\r\n\tif ($('.page-configurator-step-1').length){\r\n\t\tsessionStorage.setItem('stepsScroll', 'false');\r\n\t}\r\n\r\n\tif (sessionStorage.getItem(\"stepsScroll\") !== null) {\r\n\t\tscrollToSteps = sessionStorage.getItem(\"stepsScroll\");\r\n\t}\r\n\r\n\tif ($('.configurator-steps').length){\r\n\t\tif (scrollToSteps == 'true'){\r\n\t\t\tif ($window.width() > bp_small ){\r\n\t\t\t\tvar navigationHeight = $('.navigation').height() + 30;\r\n\t\t\t} else {\r\n\t\t\t\tvar navigationHeight = $('.navigation').height();\r\n\t\t\t}\r\n\t\t\t$( 'html, body' ).stop().delay(500).animate({\r\n\t\t\t\tscrollTop: $( '.configurator-steps' ).offset().top - navigationHeight\r\n\t\t\t}, 800);\r\n\t\t} else {\r\n\t\t\tsessionStorage.setItem('stepsScroll', 'true');\r\n\t\t}\r\n\t} \r\n}","/* ==========================================================================\r\n * Function: Counter\r\n * ======================================================================= */\r\nfunction fn_components_counter(){\r\n\tif ($( '.js-counter-group' ).length){\r\n\t\t$('.js-counter-group .js-counter-item').each(function () {\r\n\t\t $(this).prop('Counter',0).stop().animate({\r\n\t\t Counter: $(this).attr('data-number')\r\n\t\t }, {\r\n\t\t duration: 2000,\r\n\t\t easing: 'linear',\r\n\t\t step: function (now) {\r\n\t\t $(this).text(Math.ceil(now).toLocaleString());\r\n\t\t }\r\n\t\t });\r\n\t\t});\r\n\t}\r\n}","//====================================================\r\n// Initialization Fullscreeen navigation\r\n//====================================================\r\nfunction fn_components_fullscreen_navigation(){\r\n\tif ($( '.js-menu-trigger' ).length){\r\n\t\t$( '.js-menu-trigger').on('click', function(e){\r\n\t\t\t$('.js-menu-block' ).toggleClass( class_active );\r\n\t\t\te.preventDefault();\r\n\t\t});\r\n\t\t\r\n\t\t$(document).on('click', function(event) {\r\n\t\t\tif (!$(event.target).closest( '.js-menu-block' ).length) {\r\n\t\t\t\t$('.js-menu-block' ).removeClass( class_active );\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n}\r\n\r\n\r\n// function fn_checkNavigationTrigger(){\r\n// \t(function($){\r\n// \t\tif($( '.navigation' ).hasClass( 'is-collapse' )){\r\n// \t\t\t$( '.navigation' ).removeClass( 'is-collapse' );\r\n// \t\t}\r\n// \t})(jQuery);\r\n// }","//====================================================\r\n// Function: Gallery\r\n//====================================================\r\nfunction fn_components_gallery(){\r\n\tif ($( '.js-gallery' ).length){\r\n\t\t$( '.js-gallery' ).lightGallery({\r\n\t\t\tselector: '.js-gallery-item',\r\n\t\t\thash: false\r\n\t\t\t// thumbnail: false\r\n\t\t})\r\n\t}\r\n}","//====================================================\r\n// Function: Graph\r\n//====================================================\r\nfunction fn_components_graph(){\r\n\tif ($( '.js-select-graph' ).length){\r\n\t\t$( '.js-select-graph' ).on('click' , function(e){\r\n\t\t\tif (!$(this).hasClass(class_active)){\r\n\t\t\t\t$('.js-select-graph').removeClass( class_active );\r\n\t\t\t\t$(this).addClass( class_active );\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n}\r\n","//====================================================\r\n// Function: Modal\r\n//====================================================\r\nfunction fn_components_modal(){\r\n\tif ($( '.js-modal-trigger' ).length){\r\n\t\t// open modal \r\n\t\t$( document ).on( 'click', '.js-modal-trigger' , function(){\r\n\t\t\tvar inst = $(this);\r\n\t\t\tvar modalId = inst.data( 'modal' );\r\n\t\t\t\r\n\t\t\tif ($('.modal-block.is-active').length){\r\n\t\t\t\t$( '.modal-block.' + class_active + '' ).addClass( 'modal-hidden' );\r\n\t\t\t\t$( '.modal-block[data-modal=' + modalId + ']' ).addClass( class_active );\r\n\t\t\t} else {\r\n\t\t\t\t$( '.modal-block.' + class_active + '' ).removeClass( class_active );\r\n\t\t\t\t$( '.modal-overlay' ).addClass( class_active );\r\n\t\t\t\t$( '.modal-block[data-modal=' + modalId + ']' ).addClass( class_active );\r\n\t\t\t}\r\n\r\n\t\t\tif (inst.hasClass( 'js-select-another-product' )){\r\n\t\t\t\tvar productName = inst.attr('data-product-name');\r\n\t\t\t\tvar productImg = inst.attr('data-product-img');\r\n\r\n\t\t\t\t$( '.modal-block.is-active' ).find( '.js-product-name' ).text(productName);\r\n\t\t\t\t$( '.modal-block.is-active' ).find( '.js-product-img' ).attr('src', productImg);\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t});\r\n\r\n\t\t// close modal \r\n\t\t$( '.js-close-modal' ).on( 'click' , function(){\r\n\t\t\tif ($('.modal-hidden').length){\r\n\t\t\t\t$( '.modal-hidden' ).removeClass( 'modal-hidden' );\r\n\t\t\t\t$(this).closest('.modal-block.' + class_active + '').removeClass( class_active );\r\n\t\t\t} else {\r\n\t\t\t\t$( '.modal-overlay' ).removeClass( class_active );\r\n\t\t\t\t$(this).closest('.modal-block.' + class_active + '').removeClass( class_active );\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t});\r\n\r\n\t\t// close modal keypress key escape\r\n\t\t$(document).keydown(function(event) { \r\n\t\t\tif (event.keyCode == 27 && $( '.modal-block' ).hasClass( class_active )) { \r\n\t\t\t\t$( '.js-close-modal' ).trigger( 'click' );\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// close modal on click outside from modal box\r\n\t $(document).on('click', function (event) {\r\n\t if (!$(event.target).closest('.modal-body').length) {\r\n\t $('.js-close-modal').trigger('click')\r\n\t }\r\n\t })\r\n\r\n\t\t// close modal on click outside from modal box\r\n\t\t// $(document).on('click', function(event) {\r\n\t\t// \tif (!$(event.target).closest( '.modal-body' ).length) {\r\n\t\t// \t\t$( '.js-close-modal' ).trigger( 'click' );\r\n\t\t// \t}\r\n\t\t// });\r\n\r\n\t}\r\n}","/* ==========================================================================\r\n * Initialization range_slider\r\n * ======================================================================= */\r\n\r\n\r\nfunction fn_components_range_slider(){\r\n if ($('.js-range-block').length){\r\n\t\t\r\n \t$('.js-range-block').each(function(){\r\n\t\t\tvar inst = $(this);\r\n\t\t\tvar rangeSlider;\r\n\t\t\tvar rangeType = inst.attr('data-type');\r\n\t \tvar $range = inst.find('.js-range-slider-price'),\r\n\t\t\t $from = inst.find('.js-range-value'),\r\n\t\t\t min = 0,\r\n\t\t\t max = 2000,\r\n\t\t\t from,\r\n\t\t\t to;\r\n\r\n\r\n\t\t\tvar updateValues = function () {\r\n\t\t\t $from.val(from);\r\n\t\t\t};\r\n\r\n\t\t\t$range.ionRangeSlider({\r\n\t\t\t type: 'single',\r\n\t\t\t // step: 100,\r\n\t\t\t\t// from: 0,\r\n\t\t\t\tgrid: false,\r\n\t\t\t\tforce_edges: false,\r\n\t\t\t\thide_min_max: false,\r\n\t\t\t\tpostfix: ' ' + rangeType +'',\r\n\t\t\t\thide_from_to: true,\r\n\t\t\t onChange: function (data) {\r\n\t\t\t from = data.from;\r\n\t\t\t to = data.to;\r\n\t\t\t updateValues();\r\n\t\t\t }\r\n\t\t\t});\r\n\r\n\t\t\tinst = $range.data('ionRangeSlider');\r\n\r\n\t\t\t$from.keyup( function () {\r\n\t\t\t\tvar inputVal = $from.val().replace(/ /g,'');\r\n\t\t\t\tif (inputVal.length > 0){\r\n\t\t\t\t\tinst.update({\r\n\t\t\t\t from: inputVal\r\n\t\t\t\t });\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n \t});\r\n\t\t\r\n }\r\n}\r\n\r\n","//====================================================\r\n// Function: Rate\r\n//====================================================\r\nfunction fn_components_rate(){\r\n\tif ($( '.js-rate' ).length) {\r\n\t\t$( '.js-rate .js-rate-list-item' ).hover(function(){\r\n\t\t\tvar inst = $(this);\r\n\t\t\tvar list = inst.closest( '.js-rate-list' );\r\n\t\t\tvar rateBlock = inst.closest( '.js-rate' );\r\n\t\t\tvar percent = inst.data( 'percent' );\r\n\t\t\tvar id = inst.index() + 1;\r\n\r\n\t\t\tfor(i = 0; i <= 5; i++){\r\n\t\t\t\tif (i < id){\r\n\t\t\t\t\tlist.find( '.js-rate-list-item' ).eq(i).addClass( class_active );\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlist.find( '.js-rate-list-item' ).eq(i).removeClass( class_active );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\trateBlock.find( '.js-rate-input' ).val(percent);\r\n\t\t\t\r\n\t\t\trateBlock.find( '.js-rate-percent' ).text(percent);\r\n\t\t\t\r\n\t\t\t// if (percent > 0){\r\n\t\t\t// \trateBlock.addClass( 'is-rated' );\r\n\t\t\t// } else {\r\n\t\t\t// \trateBlock.removeClass( 'is-rated' );\r\n\t\t\t// }\r\n\r\n\t\t\tcallbackSetRate(id, percent);\r\n\t\t\treturn false;\r\n\t\t});\r\n\r\n\t\t// Callback for set rate\r\n\t\tfunction callbackSetRate(id, percent){\r\n\t\t\tconsole.log('HviezdiÄŤek: ' + id);\r\n\t\t\tconsole.log('Percenta: ' + percent);\r\n\t\t\tconsole.log('\\n\\n');\r\n\t\t}\r\n\t}\r\n\t\r\n}\r\n","//====================================================\r\n// Function: Select\r\n//====================================================\r\nfunction fn_components_select() {\r\n if ($('.js-select').length) {\r\n \r\n $('.js-select').each(function(){\r\n var selectText;\r\n var selectResult = $(this).closest('.js-select-block').find('.js-select-result')\r\n var select;\r\n var inst = $(this);\r\n\r\n select = $(this).select2({\r\n multiple: true,\r\n minimumResultsForSearch: Infinity,\r\n selectionAdapter: $.fn.select2.amd.require(\"CustomSelectionAdapter\"),\r\n templateSelection: (data) => {\r\n if (data.selected.length > 1){\r\n selectText = data.all.prevObject[0].dataset.textMultiple;\r\n } else {\r\n selectText = data.all.prevObject[0].dataset.textSingle;\r\n }\r\n return `${data.selected.length} ${selectText}`;\r\n },\r\n placeholder: function () {\r\n $(this).data('placeholder')\r\n },\r\n })\r\n .focus(function () {\r\n $(this).select2('open')\r\n })\r\n\r\n selectEvents(inst, selectResult, select)\r\n });\r\n }\r\n\r\n if ($('.js-select-single').length) {\r\n $('.js-select-single')\r\n .select2({\r\n minimumResultsForSearch: Infinity,\r\n placeholder: function () {\r\n $(this).data('placeholder')\r\n },\r\n })\r\n .focus(function () {\r\n $(this).select2('open')\r\n })\r\n\r\n selectEvents($('.js-select-single'))\r\n }\r\n}\r\n\r\n\r\n$.fn.select2.amd.define(\"CustomSelectionAdapter\", [\r\n \"select2/utils\",\r\n \"select2/selection/multiple\",\r\n \"select2/selection/placeholder\",\r\n \"select2/selection/eventRelay\",\r\n \"select2/selection/single\",\r\n],\r\nfunction(Utils, MultipleSelection, Placeholder, EventRelay, SingleSelection) {\r\n\r\n // Decorates MultipleSelection with Placeholder\r\n let adapter = Utils.Decorate(MultipleSelection, Placeholder);\r\n // Decorates adapter with EventRelay - ensures events will continue to fire\r\n // e.g. selected, changed\r\n adapter = Utils.Decorate(adapter, EventRelay);\r\n\r\n adapter.prototype.render = function() {\r\n // Use selection-box from SingleSelection adapter\r\n // This implementation overrides the default implementation\r\n let $selection = SingleSelection.prototype.render.call(this);\r\n return $selection;\r\n };\r\n\r\n adapter.prototype.update = function(data) {\r\n // copy and modify SingleSelection adapter\r\n this.clear();\r\n\r\n let $rendered = this.$selection.find('.select2-selection__rendered');\r\n let noItemsSelected = data.length === 0;\r\n let formatted = \"\";\r\n\r\n if (noItemsSelected) {\r\n formatted = this.options.get(\"placeholder\") || \"\";\r\n } else {\r\n let itemsData = {\r\n selected: data || [],\r\n all: this.$element.find(\"option\") || []\r\n };\r\n // Pass selected and all items to display method\r\n // which calls templateSelection\r\n formatted = this.display(itemsData, $rendered);\r\n }\r\n\r\n $rendered.empty().append(formatted);\r\n $rendered.prop('title', formatted);\r\n };\r\n\r\n return adapter;\r\n});\r\n\r\nvar searchTemplate = '';\r\n\r\nfunction selectEvents(element, result = false, select = false) {\r\n\r\n element.on('select2:open', function (e) {\r\n $(this).closest('.js-placeholder-block').addClass(class_active)\r\n if (result == false){\r\n return false;\r\n }\r\n\r\n if (select.attr('data-type') == 'search' && $('.js-search-location').length == 0){\r\n $('.select2-dropdown').prepend(searchTemplate);\r\n $('.js-search-location').focus();\r\n } else {\r\n $('.js-search-location').val('');\r\n $('.js-search-location').focus();\r\n }\r\n })\r\n\r\n element.on('select2:select', function (e) {\r\n $(this).closest('.js-placeholder-block').addClass(class_active)\r\n \r\n if (result == false){\r\n return false;\r\n }\r\n\r\n var resultItem = '
  • ' + e.params.data.text + '
  • '\r\n result.append(resultItem);\r\n element.trigger(\"change\");\r\n })\r\n\r\n element.on('select2:unselect', function (e) {\r\n if (result == false){\r\n return false;\r\n }\r\n result.find('.select-result-item[data-id=\"' + e.params.data.id + '\"]').remove(); \r\n })\r\n\r\n element.on('select2:close', function (e) {\r\n if (!$(this).val().length) {\r\n $(this).closest('.js-placeholder-block').removeClass(class_active)\r\n }\r\n })\r\n\r\n $(document).on('click', '.js-select-result-remove', function (event) {\r\n if (result == false){\r\n return false;\r\n }\r\n var inst = $(this);\r\n var resultItem = inst.closest('.js-select-result-item');\r\n var resultItemId = resultItem.data('id');\r\n $(select).find('option[value=\"' + resultItemId + '\"]').prop('selected', false).trigger(\"change\");\r\n resultItem.remove();\r\n\r\n if($(select).val().length === 0){\r\n $(select).closest('.js-placeholder-block').removeClass(class_active)\r\n }\r\n })\r\n\r\n $(document).on('keyup', '.js-search-location', function (event) {\r\n if (result == false){\r\n return false;\r\n }\r\n var input, filter, ul, li, a, i;\r\n input = document.querySelector('.js-search-location');\r\n filter = input.value.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g, \"\").toUpperCase();\r\n div = document.querySelector(\".select2-results__options\");\r\n a = div.getElementsByTagName(\"li\");\r\n for (i = 0; i < a.length; i++) {\r\n txtValue = a[i].textContent || a[i].innerText;\r\n if (txtValue.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g, \"\").toUpperCase().indexOf(filter) > -1) {\r\n a[i].style.display = \"\";\r\n } else {\r\n a[i].style.display = \"none\";\r\n }\r\n }\r\n $(select).resize();\r\n })\r\n}\r\n","//====================================================\r\n// Function: Slider\r\n//====================================================\r\nfunction fn_components_slider(){\r\n\tfn_contact_slider();\r\n\tfn_testimonials_slider();\r\n\tfn_trust_us_slider();\r\n\tfn_classic_slider();\r\n\tfn_selected_products_slider();\r\n\tfn_blog_slider();\r\n\tfn_partners_slider();\r\n\tfn_configurator_slider();\r\n\tfn_graph_slider();\r\n\tfn_hologram_slider();\r\n}\r\n\r\n\r\n(function($) {\r\n 'use strict';\r\n\r\n //create temporal object to get slick object\r\n var getSlick = function() {\r\n\tvar $tmp = $('
    ').slick();\r\n\tvar slick = $tmp[0].slick.constructor;\r\n\t$tmp.slick('unslick');\r\n\treturn slick;\r\n };\r\n\r\n if ($.fn.slick) {\r\n\tvar Slick = getSlick();\r\n\tif (Slick) {\r\n\t //hook checkResponsive method\r\n\t var checkResponsiveOrig = Slick.prototype.checkResponsive;\r\n\t Slick.prototype.checkResponsive = function(initial, forceUpdate) {\r\n\t\tvar _ = this;\r\n\t\tif (_.options.autoSlidesToShow && !_.options.infinite && _.options.variableWidth) {\r\n\t\t var sliderWidth = _.$slider.width();\r\n\t\t var width = 0, length = _.$slides.length;\r\n\t\t for (var i = 0; i < length; i++) {\r\n\t\t\twidth += $(_.$slides[i]).outerWidth();\r\n\t\t }\r\n\t\t _.averageSlidesWidth = width / length;\r\n\t\t _.options.slidesToShow = Math.floor(sliderWidth / _.averageSlidesWidth) || 1;\r\n\t\t //force update arrows\r\n\t\t if (_.lastSlidesToShow !== _.options.slidesToShow) {\r\n\t\t\t_.lastSlidesToShow = _.options.slidesToShow;\r\n\t\t\tif (initial === true) {\r\n\t\t\t _.currentSlide = _.options.initialSlide;\r\n\t\t\t}\r\n\t\t\t_.refresh(initial);\r\n\t\t }\r\n\t\t}\r\n\t\treturn checkResponsiveOrig.apply(this, arguments);\r\n\t };\r\n\t //hook getLeft method\r\n\t var getLeftOrig = Slick.prototype.getLeft;\r\n\t Slick.prototype.getLeft = function(slideIndex) {\r\n\t\tvar _ = this;\r\n\t\tif (_.options.autoSlidesToShow && !_.options.infinite && _.options.variableWidth) {\r\n\t\t var targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);\r\n\t\t if (targetSlide[0]) {\r\n\t\t\tvar diff = 0;\r\n\t\t\tif (slideIndex) {\r\n\t\t\t var sliderWidth = _.$slider.width();\r\n\t\t\t var otherSlidesWidth = (_.slideCount - slideIndex) * _.averageSlidesWidth;\r\n\t\t\t if (otherSlidesWidth < sliderWidth) {\r\n\t\t\t\tdiff = sliderWidth - otherSlidesWidth;\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\treturn (targetSlide[0].offsetLeft - diff) * -1;\r\n\t\t }\r\n\t\t return 0;\r\n\t\t}\r\n\t\treturn getLeftOrig.apply(this, arguments);\r\n\t };\r\n\t}\r\n }\r\n})(jQuery);\r\n\r\n\r\n\r\nfunction fn_contact_slider(){\r\n\tif ($( '.js-slider-contact' ).length) {\r\n\t\t$( '.js-slider-contact' ).slick({\r\n\t\t\tinfinite: true,\r\n\t\t\tdots: false,\r\n\t\t\tslidesToShow: 1,\r\n\t\t\tslidesToScroll: 1,\r\n\t\t\tarrows: true,\r\n\t\t\tautoplay: false,\r\n\t\t\tautoplaySpeed: 3000,\r\n\t\t\tcssEase: 'linear',\r\n\t\t\tfade: true,\r\n\t\t\tspeed: 500,\r\n\t\t\tvariableWidth: false,\r\n\t\t\tnextArrow: '',\r\n\t\t\tprevArrow: '',\r\n\t\t\tmobileFirst: true\r\n\t\t});\r\n\r\n\t\t$('.js-map-pin-item').click(function(){\r\n\t\t\tvar inst = $(this);\r\n\t\t\tvar pinId = inst.attr( 'data-id' );\r\n\t\t\t$('.js-map-pin-item').removeClass( class_active );\r\n\t\t\tinst.addClass( class_active );\r\n\t\t\t$( '.js-slider-contact' ).slick('slickGoTo', pinId - 1);\r\n\t\t});\r\n\r\n\t\t$('.js-slider-contact').on('afterChange', function(event, slick, currentSlide, nextSlide){\r\n\t\t\t$( '.js-map-pin-item' ).eq(currentSlide).trigger( 'click' );\r\n\t\t});\r\n\t}\r\n}\r\n\r\nfunction fn_testimonials_slider(){\r\n\tif ($( '.js-slider-testimonial' ).length) {\r\n\t\t$( '.js-slider-testimonial' ).slick({\r\n\t\t\tinfinite: true,\r\n\t\t\tdots: false,\r\n\t\t\tslidesToShow: 1,\r\n\t\t\tslidesToScroll: 1,\r\n\t\t\tarrows: false,\r\n\t\t\tautoplay: false,\r\n\t\t\tautoplaySpeed: 3000,\r\n\t\t\tcssEase: 'linear',\r\n\t\t\tfade: true,\r\n\t\t\tspeed: 500,\r\n\t\t\tvariableWidth: false,\r\n\t\t\tnextArrow: '',\r\n\t\t\tprevArrow: '',\r\n\t\t\tmobileFirst: true\r\n\t\t});\r\n\r\n\t\t$('.js-testimonial-prev').bind( 'click' ,function(){\r\n\t\t\t$( '.js-slider-testimonial' ).slick('slickPrev');\r\n\t\t});\r\n\r\n\t\t$('.js-testimonial-next').bind( 'click' ,function(){\r\n\t\t\t$( '.js-slider-testimonial' ).slick('slickNext');\r\n\t\t});\r\n\t\t\r\n\t}\r\n}\r\n\r\nfunction fn_trust_us_slider(){\r\n\tif ($( '.js-slider-trust-us' ).length) {\r\n\t\t$( '.js-slider-trust-us' ).slick({\r\n\t\t\tinfinite: true,\r\n\t\t\tdots: false,\r\n\t\t\tslidesToShow: 1,\r\n\t\t\tslidesToScroll: 1,\r\n\t\t\tarrows: false,\r\n\t\t\tautoplay: false,\r\n\t\t\tautoplaySpeed: 3000,\r\n\t\t\tcssEase: 'linear',\r\n\t\t\t// fade: true,\r\n\t\t\tspeed: 500,\r\n\t\t\tvariableWidth: false,\r\n\t\t\tnextArrow: '',\r\n\t\t\tprevArrow: '',\r\n\t\t\tmobileFirst: true\r\n\t\t});\r\n\r\n\t\t$('.js-trust-us-prev').bind( 'click' ,function(){\r\n\t\t\t$( '.js-slider-trust-us' ).slick('slickPrev');\r\n\t\t});\r\n\r\n\t\t$('.js-trust-us-next').bind( 'click' ,function(){\r\n\t\t\t$( '.js-slider-trust-us' ).slick('slickNext');\r\n\t\t});\r\n\r\n\t\t$('.js-partner-image').click(function(){\r\n\t\t\tvar inst = $(this);\r\n\t\t\tvar partnerId = inst.attr( 'data-id' );\r\n\t\t\t$('.js-partner-image').removeClass( class_active );\r\n\t\t\tinst.addClass( class_active );\r\n\t\t\t$( '.js-slider-trust-us' ).slick('slickGoTo', partnerId - 1);\r\n\t\t});\r\n\r\n\t\t$('.js-slider-trust-us').on('afterChange', function(event, slick, currentSlide, nextSlide){\r\n\t\t\t$( '.js-partner-image' ).removeClass(class_active);\r\n\t\t\t$( '.js-partner-image' ).eq(currentSlide).addClass(class_active);\r\n\t\t});\r\n\t\t\r\n\t}\r\n}\r\n\r\nfunction fn_classic_slider(){\r\n\tif ($( '.js-slider-classic' ).length) {\r\n\t\t$( '.js-slider-classic' ).slick({\r\n\t\t\tinfinite: true,\r\n\t\t\tdots: true,\r\n\t\t\tslidesToShow: 1,\r\n\t\t\tslidesToScroll: 1,\r\n\t\t\tarrows: false,\r\n\t\t\tautoplay: false,\r\n\t\t\tautoplaySpeed: 3000,\r\n\t\t\tcssEase: 'linear',\r\n\t\t\tfade: true,\r\n\t\t\tspeed: 500,\r\n\t\t\tvariableWidth: false,\r\n\t\t\tnextArrow: '',\r\n\t\t\tprevArrow: '',\r\n\t\t\tmobileFirst: true\r\n\t\t});\r\n\t}\r\n}\r\n\r\n\r\nvar sliderProductLength;\r\n\r\nfunction fn_selected_products_slider(){\r\n\tif ($( '.js-slider-selected-products' ).length) {\r\n\t\t\r\n\t\t$('.js-slider-selected-products').on('init', function(event, slick, currentSlide, nextSlide){\r\n\t\t\tsliderProductLength = slick.slideCount;\r\n\t\t\t// console.log(\"init \" + sliderProductLength);\r\n\t\t});\r\n\r\n\t\t$( '.js-slider-selected-products' ).slick({\r\n\t\t\tinfinite: false,\r\n\t\t\tdots: false,\r\n\t\t\tarrows: true,\r\n\t\t\tautoplay: false,\r\n\t\t\tautoplaySpeed: 3000,\r\n\t\t\tcssEase: 'linear',\r\n\t\t\t// fade: true,\r\n\t\t\tspeed: 500,\r\n\t\t\tvariableWidth: true,\r\n\t\t\tautoSlidesToShow: true,\r\n\t\t\tnextArrow: '',\r\n\t\t\tprevArrow: '',\r\n\t\t\tmobileFirst: true,\r\n\t\t});\r\n\r\n\t\tif (sliderProductLength == 0){\r\n\t\t\t$('.selected-products').addClass('d-none');\r\n\t\t}\r\n\r\n\t\tif (sliderProductLength > 1) {\r\n\t\t\t$('.selected-products').removeClass('slider-product-length-1 slider-product-length-2 slider-product-length-3 slider-product-length-4');\r\n\t\t\t$('.selected-products').addClass('slider-product-length-' + sliderProductLength);\r\n\t\t\t$('.js-slider-selected-products').slick(\"slickSetOption\", \"variableWidth\", true, true);\r\n\t\t} else {\r\n\t\t\t$('.selected-products').removeClass('slider-product-length-1 slider-product-length-2 slider-product-length-3 slider-product-length-4');\r\n\t\t\t$('.selected-products').addClass('slider-product-length-' + sliderProductLength);\r\n\t\t\t$('.js-slider-selected-products').slick(\"slickSetOption\", \"variableWidth\", false, true);\r\n\t\t}\r\n\r\n\r\n\t\t$('.js-slider-selected-products').on('afterChange', function(event, slick, currentSlide, nextSlide){\r\n\t\t\tif (slick.slideCount == 0) {\r\n\t\t\t\t$('.selected-products').addClass('d-none');\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (slick.slideCount > 1) {\r\n\t\t\t\t$('.selected-products').removeClass('slider-product-length-1 slider-product-length-2 slider-product-length-3 slider-product-length-4');\r\n\t\t\t\t$('.selected-products').addClass('slider-product-length-' + slick.slideCount);\r\n\t\t\t\t$('.js-slider-selected-products').slick(\"slickSetOption\", \"variableWidth\", true, true);\r\n\t\t\t} else {\r\n\t\t\t\t$('.selected-products').removeClass('slider-product-length-1 slider-product-length-2 slider-product-length-3 slider-product-length-4');\r\n\t\t\t\t$('.selected-products').addClass('slider-product-length-' + slick.slideCount);\r\n\t\t\t\t$('.js-slider-selected-products').slick(\"slickSetOption\", \"variableWidth\", false, true);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\t$(document).on('click','.js-remove-slide', function() {\r\n\t\tvar slide = $('.js-slider-selected-products .slick-current').index();\r\n\t\t$('.js-slider-selected-products').slick('slickRemove', slide, false).slick('refresh');\r\n\t\t$( '.js-close-modal' ).trigger( 'click' );\r\n\t});\r\n\r\n}\r\n\r\n\r\n\r\nfunction fn_partners_slider(){\r\n\tif ($( '.js-slider-partners' ).length) {\r\n\t\t$( '.js-slider-partners' ).slick({\r\n\t\t\tinfinite: true,\r\n\t\t\tdots: false,\r\n\t\t\tslidesToShow: 1,\r\n\t\t\tslidesToScroll: 1,\r\n\t\t\tarrows: false,\r\n\t\t\tautoplay: true,\r\n\t\t\tautoplaySpeed: 2500,\r\n\t\t\t// cssEase: 'linear',\r\n\t\t\tspeed: 500,\r\n\t\t\tvariableWidth: true,\r\n\t\t\tpauseOnHover: false,\r\n\t\t\tpauseOnFocus: false,\r\n\t\t\tnextArrow: '',\r\n\t\t\tprevArrow: '',\r\n\t\t\tmobileFirst: true\r\n\t\t});\r\n\t}\r\n}\r\n\r\nfunction fn_configurator_slider(){\r\n\tif ($( '.js-slider-configurator' ).length) {\r\n\t\t$( '.js-slider-configurator' ).slick({\r\n\t\t\tinfinite: true,\r\n\t\t\tdots: false,\r\n\t\t\tslidesToShow: 1,\r\n\t\t\tslidesToScroll: 1,\r\n\t\t\tarrows: true,\r\n\t\t\tautoplay: false,\r\n\t\t\tautoplaySpeed: 3000,\r\n\t\t\tcssEase: 'linear',\r\n\t\t\tspeed: 500,\r\n\t\t\tvariableWidth: false,\r\n\t\t\tasNavFor: '.js-slider-configurator-content',\r\n\t\t\tnextArrow: '',\r\n\t\t\tprevArrow: '',\r\n\t\t\tmobileFirst: true\r\n\t\t});\r\n\t}\r\n\r\n\tif ($( '.js-slider-configurator-content' ).length) {\r\n\t\t$( '.js-slider-configurator-content' ).slick({\r\n\t\t\tinfinite: true,\r\n\t\t\tdots: false,\r\n\t\t\tslidesToShow: 1,\r\n\t\t\tslidesToScroll: 1,\r\n\t\t\tarrows: false,\r\n\t\t\tautoplay: false,\r\n\t\t\tautoplaySpeed: 3000,\r\n\t\t\tcssEase: 'linear',\r\n\t\t\tspeed: 500,\r\n\t\t\tfade: true,\r\n\t\t\tvariableWidth: false,\r\n\t\t\ttouchMove: false,\r\n\t\t\tswipeToSlide: false,\r\n\t\t\tswipe: false,\r\n\t\t\tdraggable: false,\r\n\t\t\tasNavFor: '.js-slider-configurator',\r\n\t\t\tnextArrow: '',\r\n\t\t\tprevArrow: '',\r\n\t\t\tmobileFirst: true\r\n\t\t});\r\n\t}\r\n}\r\n\r\nfunction fn_graph_slider(){\r\n\tif ($( '.js-slider-graph' ).length) {\r\n\t\t$( '.js-slider-graph' ).slick({\r\n\t\t\tinfinite: true,\r\n\t\t\tdots: false,\r\n\t\t\tslidesToShow: 1,\r\n\t\t\tslidesToScroll: 1,\r\n\t\t\tarrows: true,\r\n\t\t\tautoplay: false,\r\n\t\t\tautoplaySpeed: 3000,\r\n\t\t\tcssEase: 'linear',\r\n\t\t\tspeed: 500,\r\n\t\t\tvariableWidth: false,\r\n\t\t\tasNavFor: '.js-slider-graph-content',\r\n\t\t\tnextArrow: '',\r\n\t\t\tprevArrow: '',\r\n\t\t\tmobileFirst: true\r\n\t\t});\r\n\t}\r\n\r\n\tif ($( '.js-slider-graph-content' ).length) {\r\n\t\t$( '.js-slider-graph-content' ).slick({\r\n\t\t\tinfinite: true,\r\n\t\t\tdots: false,\r\n\t\t\tslidesToShow: 1,\r\n\t\t\tslidesToScroll: 1,\r\n\t\t\tarrows: false,\r\n\t\t\tautoplay: false,\r\n\t\t\tautoplaySpeed: 3000,\r\n\t\t\tcssEase: 'linear',\r\n\t\t\tspeed: 500,\r\n\t\t\tfade: true,\r\n\t\t\tvariableWidth: false,\r\n\t\t\ttouchMove: false,\r\n\t\t\tswipeToSlide: false,\r\n\t\t\tswipe: false,\r\n\t\t\tdraggable: false,\r\n\t\t\tasNavFor: '.js-slider-graph',\r\n\t\t\tnextArrow: '',\r\n\t\t\tprevArrow: '',\r\n\t\t\tmobileFirst: true\r\n\t\t});\r\n\t}\r\n}\r\n\r\nfunction fn_blog_slider(){\r\n\tif ($( '.js-slider-blog' ).length) {\r\n\t\t$( '.js-slider-blog' ).slick({\r\n\t\t\tinfinite: true,\r\n\t\t\tdots: true,\r\n\t\t\tslidesToShow: 3,\r\n\t\t\tslidesToScroll: 1,\r\n\t\t\tarrows: false,\r\n\t\t\tautoplay: false,\r\n\t\t\tautoplaySpeed: 3000,\r\n\t\t\tcssEase: 'linear',\r\n\t\t\tspeed: 500,\r\n\t\t\tvariableWidth: false,\r\n\t\t\tnextArrow: '',\r\n\t\t\tprevArrow: '',\r\n\t\t\tmobileFirst: true,\r\n\t\t\tresponsive: [\r\n\t\t\t\t{\r\n\t\t\t\t\tbreakpoint: 1220,\r\n\t\t\t\t\tsettings: {\r\n\t\t\t\t\t\tslidesToShow: 3,\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tbreakpoint: 992,\r\n\t\t\t\t\tsettings: {\r\n\t\t\t\t\t\tslidesToShow: 3,\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tbreakpoint: 768,\r\n\t\t\t\t\tsettings: {\r\n\t\t\t\t\t\tslidesToShow: 2,\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tbreakpoint: 560,\r\n\t\t\t\t\tsettings: {\r\n\t\t\t\t\t\tslidesToShow: 2,\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tbreakpoint: 400,\r\n\t\t\t\t\tsettings: {\r\n\t\t\t\t\t\tslidesToShow: 1,\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tbreakpoint: 200,\r\n\t\t\t\t\tsettings: {\r\n\t\t\t\t\t\tslidesToShow: 1,\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t});\r\n\t}\r\n}\r\n\r\n\r\n\r\nfunction fn_hologram_slider(){\r\n\tif ($( '.js-slider-hologram' ).length) {\r\n\t\t$( '.js-slider-hologram' ).slick({\r\n\t\t\tinfinite: true,\r\n\t\t\tdots: false,\r\n\t\t\tslidesToShow: 1,\r\n\t\t\tslidesToScroll: 1,\r\n\t\t\tarrows: false,\r\n\t\t\tautoplay: false,\r\n\t\t\tautoplaySpeed: 3000,\r\n\t\t\tcssEase: 'linear',\r\n\t\t\t// fade: true,\r\n\t\t\tspeed: 500,\r\n\t\t\tvariableWidth: false,\r\n\t\t\tnextArrow: '',\r\n\t\t\tprevArrow: '',\r\n\t\t\tmobileFirst: true\r\n\t\t});\r\n\r\n\t\t$('.js-hologram-select').click(function(){\r\n\t\t\tvar inst = $(this);\r\n\t\t\tvar hologramItem = inst.attr( 'data-id' );\r\n\t\t\t$('.js-hologram-select').removeClass( class_active );\r\n\t\t\tinst.addClass( class_active );\r\n\t\t\t$( '.js-slider-hologram' ).slick('slickGoTo', hologramItem - 1);\r\n\t\t});\r\n\r\n\t\t$('.js-slider-hologram').on('afterChange', function(event, slick, currentSlide, nextSlide){\r\n\t\t\t$( '.js-hologram-select' ).eq(currentSlide).trigger( 'click' );\r\n\t\t});\r\n\t}\r\n}","//====================================================\r\n// Function: Tabs\r\n//====================================================\r\nfunction fn_components_tabs(){\r\n\tif ($( '.js-tabs-group' ).length){\r\n\t\t$( '.js-tabs-group .js-tabs-list-item' ).click(function() {\r\n\t\t\tvar inst = $(this);\r\n\t\t\tvar thisId = inst.attr( 'data-id' );\r\n\t\t\tvar thisTabs = $(this).closest( '.js-tabs-group' );\r\n\r\n\t\t\tif(thisId == 'undefined'){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (!inst.hasClass( class_active )){\r\n\t\t\t\tthisTabs.find( '.js-tabs-list-item.' + class_active + '' ).removeClass( class_active );\r\n\t\t\t\t$(this).closest( '.js-tabs-list-item').addClass( class_active );\r\n\t\t\t\tthisTabs.find( '.js-tabs-content .js-tabs-content-item.' + class_active + '' ).removeClass( class_active );\r\n\t\t\t\tthisTabs.find( '.js-tabs-content .js-tabs-content-item[data-id=\"'+ thisId + '\"]' ).addClass( class_active );\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t$( '.js-tabs-group .js-tabs-list-item-more' ).click(function() {\r\n\t\t\tvar inst = $(this);\r\n\t\t\tvar thisId = inst.attr( 'data-id' );\r\n\t\t\tvar thisTabs = $(this).closest( '.js-tabs-group' );\r\n\t\t\tthisTabs.find( '.js-tabs-list-item[data-id=\"'+ thisId + '\"]' ).trigger( 'click' );\r\n\t\t});\r\n\t}\r\n}\r\n","//====================================================\r\n// Initialization Wow\r\n//====================================================\r\nfunction fn_components_wow(){\r\n\tif ($('[data-sal]').length){\r\n\t\tsal({\r\n\t\t\tthreshold: 0.5\r\n\t\t});\r\n\t}\r\n}\r\n","//====================================================\r\n// Function: Dots\r\n//====================================================\r\nfunction fn_parts_dots() {\r\n\tif ($( '.dots' ).length){\r\n\t\tfn_dots( '.dots' );\r\n\t}\r\n}\r\n\r\nfunction fn_dots(elem) {\r\n\t$(elem).each(function () {\r\n\t\t$(this).dotdotdot({ 'watch' : true});\r\n\t});\r\n}\r\n","/* ==========================================================================\r\n * Function: Add navingation scroll\r\n * ======================================================================= */\r\n\r\nvar windowScrollTop;\r\nvar windowWidth;\r\n\r\nvar profileTop;\r\nvar profileprofileHeightTop;\r\n\r\nvar hologramOffset;\r\nvar hologramTop;\r\nvar hologramShow = false;\r\n\r\nvar aboutTop;\r\nvar aboutOffset;\r\nvar aboutShow = false;\r\n\r\nvar partnersTop;\r\nvar partnersOffset;\r\nvar partnersShow = false;\r\n\r\nif ($('#meeting-bar').length){\r\n\tvar meetingBar = $('#meeting-bar');\r\n}\r\n\r\nif ($('.navigation').length){\r\n\tvar navigation = $('.navigation');\r\n}\r\n\r\nif ($('#hologram-section').length){\r\n\tvar hologramSection = $('#hologram-section');\r\n}\r\n\r\nif ($('#about-section').length){\r\n\tvar aboutSection = $('#about-section');\r\n}\r\n\r\nif ($('#trust-us-section').length){\r\n\tvar partnersSection = $('#trust-us-section');\r\n}\r\n\r\nif ($('#btn-fixed').length){\r\n\tvar btnFixed = $('#btn-fixed');\r\n\tvar footer = $('.footer');\r\n}\r\n\r\nfunction fn_parts_navigation_scroll_resize(){\r\n\twindowScrollTop = $(window).scrollTop();\r\n\twindowWidth = $(window).width();\r\n\r\n\tif ($('.navigation').length){\r\n\t\tif (windowScrollTop > 1 && windowWidth > bp_small) {\r\n\t\t\tnavigation.addClass( 'navigation-scroll' );\r\n\t\t} else {\r\n\t\t\tnavigation.removeClass( 'navigation-scroll' );\r\n\t\t}\r\n\t}\r\n\r\n\tif ($('#meeting-bar').length && windowWidth < bp_medium){\r\n\t\tprofileTop = $('.main-content-profile').offset().top;\r\n\t\tprofileHeight = $('.main-content-profile').outerHeight();\r\n\r\n\t\tif ((windowScrollTop > profileTop - 60 ) && (windowScrollTop < profileHeight - 60) ) {\r\n\t\t\tmeetingBar.addClass( class_active );\r\n\t\t} else {\r\n\t\t\tmeetingBar.removeClass( class_active );\r\n\t\t}\r\n\t}\r\n\r\n\tif ($('#btn-fixed').length && windowWidth < bp_medium){\r\n\t\tfooterOffsetTop = footer.offset().top;\r\n\r\n\t\tif (windowScrollTop + $window.height() + 70 > footerOffsetTop ) {\r\n\t\t\tbtnFixed.removeClass( class_active );\r\n\t\t} else {\r\n\t\t\tbtnFixed.addClass( class_active );\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tif ($('#hologram-section').length && windowWidth > bp_small && !hologramShow){\r\n\t\tif (windowWidth > 1200 ){\r\n\t\t\thologramOffset = 400;\r\n\t\t} else {\r\n\t\t\thologramOffset = 200;\r\n\t\t}\r\n\t\thologramTop = hologramSection.offset().top - hologramOffset;\r\n\t\tif (windowScrollTop > hologramTop ) {\r\n\t\t\t$('.js-hologram-item').addClass( 'is-animated' );\r\n\t\t\thologramShow = true;\r\n\t\t}\r\n\t}\r\n\r\n\tif ($('#about-section').length && windowWidth > bp_small && !aboutShow){\r\n\t\tif (windowWidth > 1200 ){\r\n\t\t\taboutOffset = 400;\r\n\t\t} else {\r\n\t\t\taboutOffset = 200;\r\n\t\t}\r\n\t\taboutTop = aboutSection.offset().top - aboutOffset;\r\n\t\tif (windowScrollTop > aboutTop ) {\r\n\t\t\t$('.benefits-item').addClass( 'is-animated' );\r\n\t\t\taboutShow = true;\r\n\t\t}\r\n\t}\r\n\r\n\tif ($('#trust-us-section').length && windowWidth > bp_small && !partnersShow){\r\n\t\tif (windowWidth > 1200 ){\r\n\t\t\tpartnersOffset = 400;\r\n\t\t} else {\r\n\t\t\tpartnersOffset = 200;\r\n\t\t}\r\n\t\tpartnersTop = partnersSection.offset().top - partnersOffset;\r\n\t\tif (windowScrollTop > partnersTop ) {\r\n\t\t\t$('#trust-us-section').addClass( 'is-animated' );\r\n\t\t\tpartnersShow = true;\r\n\t\t}\r\n\t}\r\n}\r\n","//====================================================\r\n// Function: Placeholder\r\n//====================================================\r\nfunction fn_parts_placeholder(){\r\n\tif ($( '.js-placeholder-trigger' ).length){\r\n\t\t$( '.js-placeholder-trigger' ).focusin(function() {\r\n\t\t\t$(this).closest( '.js-placeholder-block' ).addClass( class_active );\r\n\t\t})\r\n\r\n\t\t$( '.js-placeholder-trigger' ).blur(function() {\r\n\t\t\tif (!$(this).val().length){\r\n\t\t\t\t$(this).closest( '.js-placeholder-block' ).removeClass( class_active );\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n}\r\n\r\n","//====================================================\r\n// Function: Scroll to \r\n//====================================================\r\nfunction fn_parts_scroll_to(){\r\n\tif( $( '.js-scroll-trigger' ).length ){\r\n\t\t$( '.js-scroll-trigger' ).bind( 'click' , function () {\r\n\t\t\tvar inst = $(this);\r\n\t\t\tvar target = $(this).attr( 'data-scroll' );\r\n\t\t\tvar navigationHeight = $('.navigation').height();\r\n\t\t\tif (target.length) {\r\n\t\t\t\t$( 'html, body' ).stop().animate({\r\n\t\t\t\t\tscrollTop: $( '#' + target + '' ).offset().top - navigationHeight\r\n\t\t\t\t});\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n}","//====================================================\r\n// Function: Show/hidden\r\n//====================================================\r\nfunction fn_parts_show_hidden(){\r\n\tif ($( '.js-active-class-toggle-trigger' ).length){\r\n\t\t$( '.js-active-class-toggle-trigger' ).bind( 'click' , function() {\r\n\t\t\t$(this).closest( '.js-active-block' ).find( '.js-hidden-content, .js-hidden-content-md, .js-hidden-content-sm' ).toggleClass( class_active );\r\n\t\t});\r\n\t}\r\n\r\n\tif ($( '.js-active-class-toggle' ).length){\r\n\t\t$( '.js-active-class-toggle' ).bind( 'click' , function() {\r\n\t\t\t$(this).closest( '.js-active-block' ).toggleClass( class_active ).find( '.js-hidden-content, .js-hidden-content-md, .js-hidden-content-sm' ).toggleClass( class_active );\r\n\t\t});\r\n\t}\r\n\r\n\tif ($( '.js-active-class-trigger' ).length){\r\n\t\t$( '.js-active-class-trigger' ).bind( 'click' , function() {\r\n\t\t\t$(this).closest( '.js-active-block' ).find( '.js-hidden-content' ).addClass( class_active );\r\n\t\t});\r\n\t}\r\n\r\n\tif ($( '.js-remove-class-trigger' ).length){\r\n\t\t$( '.js-remove-class-trigger' ).bind( 'click' , function() {\r\n\t\t\t$(this).closest( '.js-remove-block' ).find( '.js-hidden-content' ).removeClass( class_active );\r\n\t\t});\r\n\t}\r\n\r\n\tif ($( '.js-hidden-trigger' ).length){\r\n\t\t$( '.js-hidden-trigger' ).bind( 'click' , function() {\r\n\t\t\t$(this).hide();\r\n\t\t\t$(this).closest( '.js-hidden-block' ).find( '.js-hidden-content, .js-hidden-content-sm' ).addClass( class_active );\r\n\t\t});\r\n\t}\r\n\r\n\tif ($( '.js-checkbox-trigger' ).length){\r\n\t $(document).on('change', 'input.checkbox-hidden' , function(){\r\n\t \tvar inputBlock = $(this).closest( '.js-active-block' );\r\n var input = inputBlock.find('.js-input');\r\n if (input.prop('checked') == true){\r\n $(this).closest( '.js-active-block' ).find( '.js-hidden-content' ).addClass( class_active );\r\n } else {\r\n $(this).closest( '.js-active-block' ).find( '.js-hidden-content' ).removeClass( class_active );\r\n }\r\n });\r\n\t}\r\n}\r\n"],"sourceRoot":"/source/"}