{"version":3,"sources":["main.min.js"],"names":["jQuery","$"],"mappings":"AAAAA,OAAO,SAASC","file":"main.min.js","sourcesContent":["jQuery(function($) {\n // Set Image for different devices\n function _set_image( selector, photo, photo_tablet, photo_phone ) {\n var _screen = $( document ).width();\n\n if( _screen < 768 ) {\n if( photo_phone && photo_phone.length > 0 ) {\n $( selector ).attr( 'src', photo_phone );\n }\n } else if( _screen < 981 && _screen > 767 ) {\n if( photo_tablet && photo_tablet.length > 0 ) {\n $( selector ).attr( 'src', photo_tablet );\n }\n } else {\n $( selector ).attr( 'src', photo );\n }\n }\n\n\n var swapped_img_parent = $('.ba-swapped-img-selector');\n\n if( swapped_img_parent.length > 0 ) {\n swapped_img_parent.each( function() {\n\n var swapped_img = $(this).find('.ba-swapped-img'),\n img_schema = swapped_img.data('schema');\n\n if( img_schema && typeof( img_schema ) === 'object' ) {\n\n var photo = img_schema['desktop'],\n photo_hover = img_schema['hover'],\n photo_tablet = img_schema['tablet'],\n photo_phone = img_schema['phone'];\n\n if( photo_hover && photo_hover.length > 0 ){\n\n $( this ).on( 'hover', function() {\n $( swapped_img ).attr( 'src', photo_hover );\n $( swapped_img ).addClass( 'ba-img-hovered' );\n } )\n\n $( this ).on( 'mouseleave', function() {\n _set_image( swapped_img, photo, photo_tablet, photo_phone );\n $( swapped_img ).removeClass( 'ba-img-hovered' );\n } )\n }\n\n _set_image( swapped_img, photo, photo_tablet, photo_phone );\n\n if( photo_tablet && photo_tablet.length > 0 || photo_tablet && photo_phone.length > 0 ) {\n $(window).on('resize', function() {\n _set_image( swapped_img, photo, photo_tablet, photo_phone );\n } )\n }\n }\n\n } );\n }\n\n var ba_img_lightbox = $('.ba-lightbox');\n if( ba_img_lightbox ) {\n\n try {\n ba_img_lightbox.magnificPopup({\n type: 'image',\n mainClass: 'mfp-with-zoom',\n gallery: { enabled:false },\n zoom: {\n enabled: true,\n duration: 300,\n easing: 'ease-in-out',\n }\n } );\n\n } catch(e) {\n return;\n }\n }\n\n var ba_carousel = $( '.ba-carousel' );\n\n if ( ba_carousel ) {\n\n var _pre_settings = {\n edgeFriction : .35,\n useTransform : true,\n touchThreshold : 600,\n };\n\n\n\n ba_carousel.each( function() {\n var _user_settings = $(this).data('settings');\n var _settings = Object.assign( _pre_settings, _user_settings );\n $( this ).slick( _settings );\n } );\n }\n});"]}