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ckB,eACpKT,EAAEU,oBAKLC,YAAW,WACV1B,EAAE,gBAAgB2B,IAAI,cAAcC,MAAK,SAACC,EAAGC,GAC5C,IAAMC,EAAe/B,EAAE8B,GACjBE,EAAQD,EAAa7B,KAAK,cAAgB,IAAM6B,EAAa7B,KAAK,cAAgB,IAAM6B,EAAa7B,KAAK,cAC1G+B,EAAWF,EAAa7B,KAAK,iBAAmB6B,EAAa7B,KAAK,iBAAmB8B,EAC3FD,EAAaG,MAAM,mBAAqBF,EAAQ,KAAOC,EAAW,SAClEF,EAAaI,SAAS,aAAaC,YAElC,KAGHpC,EAAE,WAAWG,GAAG,SAAS,WAIxB,OAHAH,EAAE,cAAcqC,QAAQ,CACvBf,UAAW,GACT,OACI,KAIJtB,EAAE,mBAAmBsC,OAAS,GAC7BtC,EAAE,yBAAyBsC,OAAS,GACvCtC,EAAE,UAAUuC,IAAI,aAAc,KAIhCvC,EAAEwC,QAAQC,QAAO,WACZzC,EAAE,GAAMsB,YAAc,IACzBtB,EAAE,WAAWmC,SAAS,kBAEtBnC,EAAE,WAAWY,YAAY,qBAK3B,IAAI8B,EAAY1C,EAAE,UAAU2C,SAC5B3C,EAAEwC,QAAQC,QAAO,WACZzC,EAAEwC,QAAQlB,aAAeoB,GAC5B1C,EAAE,UAAUmC,SAAS,gBACrBnC,EAAE,QAAQuC,IAAI,cAAeG,EAAY,MACzC1C,EAAE,8BAA8BuC,IAAI,cAAe,OAC/CvC,EAAEwC,QAAQlB,aAAeoB,EAAY,GACxC1C,EAAE,UAAUmC,SAAS,eAGtBnC,EAAE,UAAUY,YAAY,0BACxBZ,EAAE,QAAQuC,IAAI,cAAe","sources":["webpack://2sic-standard-skin-template/./src/ts/theme.ts"],"sourcesContent":["$(function () {\r\n\t/* Open all PDF links in a new window */\r\n\t$('a[href$=\".pdf\"]').attr('target', '_blank');\r\n\r\n  \r\n\t/* Mobile Navigation */\r\n\t$('.ly-hamburger').on(\"click\", () => {\r\n\t\t$('.ly-hamburger').toggleClass('open');\r\n    $('#nav-mobile').toggleClass('open');\r\n\t\t$('body').toggleClass('ly-disablescroll');\r\n\t});\r\n\r\n\t\r\n\t$('#nav-mobile .ly-navopener').on('click', () => {\r\n\t\tif(!$(event.currentTarget).parent().parent().hasClass('ly-active')) {\r\n\t\t\tif(!$(event.currentTarget).parents('.has-child').hasClass('ly-active')) {\r\n\t\t\t\t$('.ly-active').find('ul:first').slideUp();\r\n\t\t\t\t$('.ly-active').removeClass('ly-active');\r\n\t\t\t}\r\n\t\t\t$(event.currentTarget).parent().parent().toggleClass('ly-active').find('ul:first').slideDown();\r\n\t\t} else {\r\n\t\t\t$(event.currentTarget).parent().parent().toggleClass('ly-active').find('ul:first').slideUp();\r\n\t\t}\r\n\t});\r\n\r\n\r\n\r\n\t/* Desktop Navigation */\r\n\t$('.ly-nav-sub .ly-navopener').on('click', () => {\r\n\t\tif(!$(event.currentTarget).parent().parent().hasClass('ly-active')) {\r\n\t\t\tif(!$(event.currentTarget).parents('.has-child').hasClass('ly-active')) {\r\n\t\t\t\t$('.ly-active').find('ul:first').slideUp();\r\n\t\t\t\t$('.ly-active').removeClass('ly-active');\r\n\t\t\t}\r\n\t\t\t$(event.currentTarget).parent().parent().toggleClass('ly-active').find('ul:first').slideDown();\r\n\t\t} else {\r\n\t\t\t$(event.currentTarget).parent().parent().toggleClass('ly-active').find('ul:first').slideUp();\r\n\t\t}\r\n\t});\r\n\r\n\r\n\t/* Prevent \"Overscroll\" on iOS devices */\r\n\tlet touchStartEvent: JQueryEventObject;\r\n\t$(\".sidr\").on({\r\n\t\ttouchstart: (e: JQueryEventObject) => {\r\n\t\t\ttouchStartEvent = e;\r\n\t\t},\r\n\t\ttouchmove: (e: JQueryEventObject) => {\r\n\t\t\tvar touchStart = touchStartEvent.originalEvent || (touchStartEvent.originalEvent as TouchEvent).touches[0];\r\n\t\t\tvar touchMove = e.originalEvent || (e.originalEvent as TouchEvent).touches[0];\r\n\r\n\t\t\t// Cancel event if menu is already on top or bottom\r\n\t\t\tif (((touchMove as MouseEvent).pageY > (touchStart as MouseEvent).pageY && e.currentTarget.scrollTop == 0) ||\r\n\t\t\t\t((touchMove as MouseEvent).pageY < (touchStart as MouseEvent).pageY && e.currentTarget.scrollTop + (e.currentTarget as HTMLElement).offsetHeight >= e.currentTarget.scrollHeight))\r\n\t\t\t\te.preventDefault();\r\n\t\t}\r\n\t});\r\n\r\n\t/* mailencrypting */\r\n\tsetTimeout(() => {\r\n\t\t$('[data-madr1]').not('.madr-done').each((i, item) => {\r\n\t\t\tconst mailLinkElem = $(item);\r\n\t\t\tconst maddr = mailLinkElem.attr('data-madr1') + '@' + mailLinkElem.attr('data-madr2') + '.' + mailLinkElem.attr('data-madr3');\r\n\t\t\tconst linktext = mailLinkElem.attr('data-linktext') ? mailLinkElem.attr('data-linktext') : maddr;\r\n\t\t\tmailLinkElem.after('<a href=\"mailto:' + maddr + '\">' + linktext + '</a> ');\r\n\t\t\tmailLinkElem.addClass('madr-done').hide();\r\n\t\t})\r\n\t}, 500);\r\n\r\n\t/* Go to top button */\r\n\t$('.ly-top').on('click', () => {\r\n\t\t$(\"html, body\").animate({\r\n\t\t\tscrollTop: 0\r\n\t\t}, 1200);\r\n\t\treturn false;\r\n\t});\r\n\r\n\t// Check if DNN < 9\r\n\tif ($(\"body.role-admin\").length > 0) {\r\n\t\tif ($(\".personalBarContainer\").length > 0) {\r\n\t\t\t$(\"header\").css(\"margin-top\", \"0\");\r\n\t\t}\r\n\t}\r\n\r\n\t$(window).scroll(() => {\r\n\t\tif ($(this).scrollTop() > 200) {\r\n\t\t\t$('.ly-top').addClass('ly-top-visible');\r\n\t\t} else {\r\n\t\t\t$('.ly-top').removeClass('ly-top-visible');\r\n\t\t}\r\n\t});\r\n\r\n\t// Sticky header\r\n\tvar navheight = $('header').height();\r\n\t$(window).scroll(() => {\r\n\t\tif ($(window).scrollTop() >= navheight) {\r\n\t\t\t$('header').addClass('fixed-header');\r\n\t\t\t$('body').css('padding-top', navheight + 'px');\r\n\t\t\t$('body.va-layout-landingpage').css('padding-top', '0px');\r\n\t\t\tif ($(window).scrollTop() >= navheight + 1) {\r\n\t\t\t\t$('header').addClass('fixed-top');\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$('header').removeClass('fixed-header fixed-top');\r\n\t\t\t$('body').css('padding-top', '0px');\r\n\t\t}\r\n\t});\r\n});"],"names":["$","touchStartEvent","attr","on","toggleClass","event","currentTarget","parent","hasClass","find","slideUp","parents","removeClass","slideDown","touchstart","e","touchmove","touchStart","originalEvent","touches","touchMove","pageY","scrollTop","offsetHeight","scrollHeight","preventDefault","setTimeout","not","each","i","item","mailLinkElem","maddr","linktext","after","addClass","hide","animate","length","css","window","scroll","navheight","height"],"sourceRoot":""}