{"version":3,"sources":["home.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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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":"home.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= 2) {\n owlValue = 2;\n } //education\n\n\n $('.educations .owl-carousel').owlCarousel({\n items: 1,\n nav: true,\n dots: true,\n transitionStyle: \"fade\",\n smartSpeed: 700,\n margin: 30,\n //fluidSpeed:1000,\n loop: false,\n mouseDrag: true,\n navText: '',\n responsive: {\n 0: {\n stagePadding: 30,\n margin: 15\n },\n 576: {\n items: 1,\n slideBy: 1,\n stagePadding: 0\n },\n 768: {\n items: owlValue,\n slideBy: owlValue,\n stagePadding: 0\n }\n }\n });\n}\n\n},{}],4:[function(require,module,exports){\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = _default;\n\nfunction _default() {\n //fix popup\n\n /*if (!Cookies.get(\"popup\")) {\r\n \tvar popup = $(\"body\").data(\"popup\");\r\n \n \tif (popup) {\r\n \t\t$.fancybox.open({\r\n \t\t\tsrc : popup,\r\n \t\t\ttype : 'ajax',\r\n \t\t\topts : {\r\n \t\t\t\t//afterShow : function( instance, current ) {\r\n \t\t\t\t\t//console.info( 'done!' );\r\n \t\t\t\t//},\r\n \t\t\t\tafterClose : function( instance, current ) {\r\n \t\t\t\t\tCookies.set(\"popup\", true, {expires: 999});\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t});\r\n \t}\r\n }*/\n var popup = $(\"body\").data(\"popup\");\n var getUrl = window.location.pathname.replace('/', '');\n var url = '/ajax/get-popup?page=' + getUrl;\n\n if (popup != '') {\n if (!Cookies.get(\"popup\")) {\n $.ajax({\n type: 'GET',\n url: url,\n dataType: 'json',\n success: function success(response) {\n //console.log(response.popup.image);\n if (response.status) {\n var image, figure, title, subcontent, button;\n\n if (response.popup.onlyImage) {\n image = '\"\"';\n } else {\n image = '';\n }\n\n if (response.popup.image && !response.popup.onlyImage) {\n figure = '
';\n } else {\n figure = '';\n }\n\n if (response.popup.title) {\n title = '

' + response.popup.title + '

';\n } else {\n title = '';\n }\n\n if (response.popup.subcontent) {\n subcontent = '' + response.popup.subcontent + '

';\n } else {\n subcontent = '';\n }\n\n if (response.popup.button_link && response.popup.button_text) {\n button = '' + response.popup.button_text + '';\n } else {\n button = '';\n }\n\n if (!response.popup.youtube_link) {\n $.fancybox.open({\n src: popup,\n type: 'ajax',\n opts: {\n afterLoad: function afterLoad(instance, current) {\n //console.info( 'done!' );\n $(\".dynamic-popup\").append(image + figure + '
' + title + subcontent + button + '
');\n },\n afterClose: function afterClose(instance, current) {\n Cookies.set(\"popup\", true, {\n expires: 999\n });\n }\n }\n });\n } else {\n $.fancybox.open({\n src: response.popup.youtube_link,\n //type : 'ajax',\n opts: {\n afterClose: function afterClose(instance, current) {\n Cookies.set(\"popup\", true, {\n expires: 999\n });\n }\n }\n });\n }\n }\n }\n });\n }\n }\n}\n\n},{}],5:[function(require,module,exports){\n\"use strict\";\n\nvar _common = _interopRequireDefault(require(\"./app/common\"));\n\nvar _education = _interopRequireDefault(require(\"./app/education\"));\n\nvar _popup = _interopRequireDefault(require(\"./app/popup\"));\n\nvar _cookie = _interopRequireDefault(require(\"./app/cookie\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n$(document).ready(function () {\n (0, _common[\"default\"])();\n (0, _education[\"default\"])();\n (0, _popup[\"default\"])();\n (0, _cookie[\"default\"])(); //popular-content\n\n $('.popular-content .owl-carousel').owlCarousel({\n items: 1,\n nav: false,\n dots: true,\n transitionStyle: \"fade\",\n smartSpeed: 700,\n margin: 30,\n loop: false,\n mouseDrag: false,\n responsive: {\n 0: {\n stagePadding: 30,\n margin: 15\n },\n 576: {\n items: 1,\n slideBy: 1\n },\n 768: {\n items: 2,\n slideBy: 2\n }\n }\n });\n resize();\n $(window).resize(function () {\n resize();\n });\n});\n\nfunction resize() {\n var windowHeight = $(window).height();\n var hero = $('.hero__video figure');\n var headerHeight = $('header').height();\n hero.height(windowHeight - headerHeight + 16);\n}\n\n},{\"./app/common\":1,\"./app/cookie\":2,\"./app/education\":3,\"./app/popup\":4}]},{},[5]);\n"]}