{"version":3,"sources":["main.js"],"names":["$","document","on","e","preventDefault","this","toggleClass","ready","$status","$slickElement","event","slick","currentSlide","i","text","placeholder","window","mp","mn","mns","innerWidth","scrollTop","addClass","removeClass","allTabLinks","allTabContents","each","wrapper","group","data","scope","tabs","filter","content","index","a","attr","location","hash","filtered","tab","activeTab","href","delay","queue","next","is","length","eq","prev","trigger","last","accordion","accordionHeader","accordionContent","accordionActiveClass","find","hide","end","self","slideToggle","fancybox","maxWidth","maxHeight","fitToView","width","height","autoSize","closeClick","openEffect","closeEffect","click","jQuery"],"mappings":"CAAC,SAASA,GAYVA,EAAEC,UAAUC,GAAG,QAAS,qBAAsB,SAASC,GACtDA,EAAEC,iBACFJ,EAAEK,MAAMC,YAAY,4BACpBN,EAAE,QAAQM,YAAY,gBACtBN,EAAE,aAAaM,YAAY,qBAG5BN,EAAEC,UAAUM,MAAM,SAAUP,GAK3B,GAAIQ,GAAUR,EAAE,uBACZS,EAAiBT,EAAE,UAEvBS,GAAcP,GAAG,0BAA2B,SAAUQ,EAAOC,EAAOC,GAEnE,GAAIC,IAAKD,EAAeA,EAAe,GAAK,CAC5CJ,GAAQM,KAAKD,KAGdJ,EAAcE,QAKdX,EAAE,mBAAmBe,cAKrBf,EAAEgB,QAAQd,GAAG,qBAAsB,WAClC,GAAIe,GAAKjB,EAAE,SACPkB,EAAKlB,EAAE,aACPmB,EAAM,QAENH,QAAOI,WAAa,MAAQpB,EAAEK,MAAMgB,YAAc,KACrDJ,EAAGK,SAASH,GACZD,EAAGI,SAASH,KAEZF,EAAGM,YAAYJ,GACfD,EAAGK,YAAYJ,MAOjBnB,EAAEC,UAAUC,GAAG,QAAS,iBAAkB,SAASC,GAClDA,EAAEC,iBACFJ,EAAEK,MAAMC,YAAY,UACpBN,EAAE,sBAAsBM,YAAY,YAMrCN,EAAEC,UAAUC,GAAG,QAAS,+BAAgC,WACvDF,EAAE,sBAAsBuB,YAAY,4BACpCvB,EAAE,aAAauB,YAAY,mBAC3BvB,EAA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AAQ,SAETL,EAAKT,KAAK,UACVC,SAASC,KAAOO,EAAKT,KAAK,QAE7C,QAIF1B,EAAMN,oBAQR,IAAIgD,GAAY,mBACZC,EAAkB,0BAClBC,EAAmB,2BACnBC,EAAuB,kBAE3BvD,GAAEoD,GACDI,KAAKF,GAAkBG,OAAOC,MAE9BxD,GAAG,QAASmD,EAAiB,SAAU3C,GACvC,GAAIiD,GAAO3D,EAAEK,KAEbsD,GAAKrD,YAAYiD,GACfV,KAAKS,GAAkBM,YAAY,cACjCF,MAEJhD,EAAMN,mBAMPJ,EAAE,wBAAwBoC,KAAK,MAAM,WACrCpC,EAAE,wBAAwB6D,UACzBC,SAAW,IACXC,UAAY,IACZC,WAAY,EACZC,MAAS,MACTC,OAAU,MACVC,UAAW,EACXC,YAAa,EACbC,WAAa,OACbC,YAAc,SAKZtE,EAAE,wBAAwBuE,MAAM,SAASpE,GACzCA,EAAEC,sBAMJoE","file":"main.min.js","sourcesContent":["(function($) {\r\n\r\n/* Detect IE10\r\n ========================================================================== */\r\n\r\nif (/*@cc_on!@*/false && document.documentMode === 10) {\r\n document.documentElement.className+=' ie10';\r\n}\r\n\r\n/* Navigation Toggle\r\n ========================================================================== */\r\n\r\n$(document).on('click', '.navigation-toggle', function(e) {\r\n\te.preventDefault();\r\n\t$(this).toggleClass('navigation-toggle-active');\r\n\t$('body').toggleClass('body-overlay');\r\n\t$('#masthead').toggleClass('navigation-open');\r\n});\r\n\r\n$(document).ready(function ($) {\r\n\r\n\t/* Slider\r\n\t ========================================================================== */\r\n\r\n\tvar $status = $('.slider-paging-info');\r\n\tvar $slickElement = $('.slides');\r\n\r\n\t$slickElement.on('init reInit afterChange', function (event, slick, currentSlide) {\r\n\t\t//currentSlide is undefined on init -- set it to 0 in this case (currentSlide is 0 based)\r\n\t\tvar i = (currentSlide ? currentSlide : 0) + 1;\r\n\t\t$status.text(i);\r\n\t});\r\n\r\n\t$slickElement.slick();\r\n\r\n\t/* HTML5 Placeholder\r\n\t ========================================================================== */\r\n\r\n\t$('input, textarea').placeholder();\r\n\r\n\t/* Sticky Navigation\r\n\t ========================================================================== */\r\n\r\n\t$(window).on(\"load scroll resize\", function () {\r\n\t\tvar mp = $(\"#page\");\r\n\t\tvar\tmn = $(\"#masthead\");\r\n\t\tvar\tmns = \"sticky\";\r\n\r\n\t\tif( window.innerWidth < 1023 && $(this).scrollTop() > 112 ) {\r\n\t\t\tmp.addClass(mns);\r\n\t\t\tmn.addClass(mns);\r\n\t\t} else {\r\n\t\t\tmp.removeClass(mns);\r\n\t\t\tmn.removeClass(mns);\r\n\t\t}\r\n\t});\r\n\r\n\t/* Close Tabset\r\n\t ========================================================================== */\r\n\r\n\t$(document).on('click', '.tabset-action', function(e) {\r\n\t\te.preventDefault();\r\n\t\t$(this).toggleClass('closed');\r\n\t\t$('.home-content-area').toggleClass('closed');\r\n\t});\r\n\r\n\t/* Menu\r\n\t ========================================================================== */\r\n\r\n\t$(document).on('click', '.menu-site a, .site-branding', function() {\r\n\t\t$('.navigation-toggle').removeClass('navigation-toggle-active');\r\n\t\t$('#masthead').removeClass('navigation-open');\r\n\t\t$('body').removeClass('body-overlay');\r\n\t});\r\n\r\n\t/* Tabset\r\n\t ========================================================================== */\r\n\r\n\tvar allTabLinks = $('[data-tab]');\r\n\tvar\tallTabContents = $('[data-content]');\r\n\r\n\t$('[data-tabset]').each(function () {\r\n\t\tvar wrapper = $(this);\r\n\t\tvar\tgroup \t= wrapper.data('tab-group');\r\n\t\tvar\tscope \t= '[data-tab-group=' + group + ']';\r\n\t\tvar\ttabs \t= allTabLinks.filter(scope);\r\n\t\tvar\tcontent = allTabContents.filter(scope);\r\n\r\n\t\t// Init Tab\r\n\r\n\t\t$(window).on('load', function () {\r\n\t\t\t$('[data-tab]' + scope).each(function (index, a) {\r\n\t\t\t\tif ($(a).attr('href') === window.location.hash) {\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\ttabs\r\n\t\t\t\t\t\t.removeClass('tab-link-active')\r\n\t\t\t\t\t\t.filter(\"[data-tab='1']\")\r\n\t\t\t\t\t\t.addClass('tab-link-active');\r\n\r\n\t\t\t\t\tcontent\r\n\t\t\t\t\t\t.removeClass('tab-active tab-active-complete')\r\n\t\t\t\t\t\t.filter(\"[data-content='1']\")\r\n\t\t\t\t\t\t.addClass(\"tab-active-complete tab-active\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\t// Hashchange Tab\r\n var filtered = false;\r\n\r\n\t\t$(window).on('hashchange load', function () {\r\n\t\t\t$('[data-tab]' + scope).each(function (index, a) {\r\n\t\t\t\tvar tab = $(this);\r\n\t\t\t\tvar activeTab = tab.data('tab');\r\n\r\n if (!filtered && location.hash === '#trbar') {\r\n $slickElement.slick('slickFilter', '.slide-filter-bar').slick('slickGoTo', 0, true);\r\n filtered = true;\r\n } else if (filtered && location.hash !== '#trbar') {\r\n $slickElement.slick('slickUnfilter');\r\n filtered = false;\r\n }\r\n\r\n\t\t\t\tif ($(a).attr('href') === window.location.hash && window.location.href) {\r\n\t\t\t\t\ttabs\r\n\t\t\t\t\t\t.removeClass('tab-link-active')\r\n\t\t\t\t\t\t.filter(\"[data-tab=\"+ activeTab +\"]\")\r\n\t\t\t\t\t\t.addClass('tab-link-active');\r\n\r\n\t\t\t\t\tcontent\r\n\t\t\t\t\t\t.removeClass('tab-active tab-active-complete')\r\n\t\t\t\t\t\t.filter('[data-content=' + activeTab + ']')\r\n\t\t\t\t\t\t.addClass(\"tab-active\")\r\n\t\t\t\t\t\t.delay(300).queue(function(next){\r\n\t\t\t\t\t\t\tif (tab.is('.tab-link-active')) {\r\n\t\t\t\t\t\t\t\t$(this).addClass(\"tab-active-complete\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tnext();\r\n\t\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t});\r\n\r\n\t\t// Tabs\r\n\r\n\t\ttabs.on('click', function () {\r\n\t\t\tvar tab = $(this);\r\n\t\t\tvar\tactiveTab = tab.data('tab');\r\n\r\n\t\t\t$('.home-content-area').removeClass('closed'); // Open content if closed\r\n\t\t\t$('.tabset-action').removeClass('closed'); // Open tabset action if closed\r\n\r\n\t\t\ttabs\r\n\t\t\t\t.removeClass('tab-link-active')\r\n\t\t\t\t.filter(\"[data-tab=\"+ activeTab +\"]\")\r\n\t\t\t\t.addClass('tab-link-active');\r\n\r\n\t\t\tcontent\r\n\t\t\t\t.removeClass('tab-active tab-active-complete')\r\n\t\t\t\t.filter('[data-content=' + activeTab + ']')\r\n\t\t\t\t.addClass(\"tab-active\")\r\n\t\t\t\t.delay(300).queue(function(next){\r\n\t\t\t\t\tif (tab.is('.tab-link-active')) {\r\n\t\t\t\t\t\t$(this).addClass(\"tab-active-complete\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tnext();\r\n\t\t\t\t});\r\n\t\t});\r\n\r\n\t\t// Link Tab\r\n\r\n\t\twrapper.on('click', '[data-tab-link]' + scope, function () {\r\n\t\t\tvar tab = $(this);\r\n\t\t\tvar\tactiveTab = tab.data('tab-link');\r\n\r\n\t\t\t$('.home-content-area').removeClass('closed'); // Open content if closed\r\n\t\t\t$('.tabset-action').removeClass('closed'); // Open tabset action if closed\r\n\r\n\t\t\ttabs\r\n\t\t\t\t.removeClass('tab-link-active')\r\n\t\t\t\t.filter(\"[data-tab=\"+ activeTab +\"]\")\r\n\t\t\t\t.addClass('tab-link-active');\r\n\r\n\t\t\tcontent\r\n\t\t\t\t.removeClass('tab-active tab-active-complete')\r\n\t\t\t\t.filter('[data-content=' + activeTab + ']')\r\n\t\t\t\t.addClass(\"tab-active\")\r\n\t\t\t\t.delay(300).queue(function(next){\r\n\t\t\t\t\t$(this).addClass(\"tab-active-complete\");\r\n\t\t\t\t\tnext();\r\n\t\t\t\t});\r\n\t\t});\r\n\r\n\t\t// Pevious Tab\r\n\r\n\t\twrapper.on('click', '[data-tab-prev]' + scope, function (event) {\r\n\t\t\tfor (var i = tabs.length - 1; i >= 0; i--) {\r\n\t\t\t\tvar tab = tabs.eq(i);\r\n\r\n\t\t\t\tif (tab.is('.tab-link-active')) {\r\n var prev = tabs.eq(i - 1);\r\n\r\n prev.trigger('click');\r\n\r\n if (prev.attr('href')) {\r\n location.hash = prev.attr('href');\r\n }\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tevent.preventDefault();\r\n\t\t});\r\n\r\n\t\t// Next Tab\r\n\r\n\t\twrapper.on('click', '[data-tab-next]' + scope, function (event) {\r\n\t\t\tfor (var i = 0, last = tabs.length; i < last; i++) {\r\n\t\t\t\tvar tab = tabs.eq(i);\r\n\r\n\t\t\t\tif (tab.is('.tab-link-active')) {\r\n var next = tabs.eq((i + 1) % last);\r\n\r\n next.trigger('click');\r\n\r\n if (next.attr('href')) {\r\n location.hash = next.attr('href');\r\n }\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tevent.preventDefault();\r\n\t\t});\r\n\r\n\t});\r\n\r\n\t/* Accordion\r\n\t ========================================================================== */\r\n\r\n\tvar accordion = '[data-accordion]';\r\n\tvar\taccordionHeader = '[data-accordion-header]';\r\n\tvar\taccordionContent = '[data-accordion-content]';\r\n\tvar\taccordionActiveClass = 'accordion-active';\r\n\r\n\t$(accordion)\r\n\t.find(accordionContent).hide().end()\r\n\r\n\t.on('click', accordionHeader, function (event) {\r\n\t\tvar self = $(this);\r\n\r\n\t\tself.toggleClass(accordionActiveClass)\r\n\t\t\t.next(accordionContent).slideToggle(function(){\r\n\t\t\t}).end();\r\n\r\n\t\tevent.preventDefault();\r\n\r\n\t});\r\n\r\n\t\t/* Gallery Shortcode Fancybox\r\n\t ========================================================================== */\r\n\t$(\".gallery-thumbnail a\").attr(\"rel\",\"gallery\");\r\n\t$(\".gallery-thumbnail a\").fancybox({\r\n\t\tmaxWidth\t: 800,\r\n\t\tmaxHeight\t: 600,\r\n\t\tfitToView\t: false,\r\n\t\twidth\t\t: '70%',\r\n\t\theight\t\t: '70%',\r\n\t\tautoSize\t: false,\r\n\t\tcloseClick\t: false,\r\n\t\topenEffect\t: 'none',\r\n\t\tcloseEffect\t: 'none'\r\n\t});\r\n\r\n /* ShareThis\r\n ========================================================================== */\r\n $('a.st_sharethis_large').click(function(e){\r\n e.preventDefault();\r\n });\r\n\r\n\r\n}); // end.ready\r\n\r\n}(jQuery));\r\n"],"sourceRoot":"/source/"}