summaryrefslogtreecommitdiff
path: root/assets/js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/minified/customizer-controls-toggle.min.js1
-rw-r--r--assets/js/minified/customizer-controls.min.js1
-rw-r--r--assets/js/minified/customizer-dependency.min.js0
-rw-r--r--assets/js/minified/customizer-preview.min.js1
-rw-r--r--assets/js/minified/extend-customizer.min.js1
-rw-r--r--assets/js/minified/flexibility.min.js1
-rw-r--r--assets/js/minified/frontend.min.js1
-rw-r--r--assets/js/minified/mobile-cart.min.js1
-rw-r--r--assets/js/minified/navigation.min.js1
-rw-r--r--assets/js/minified/skip-link-focus-fix.min.js1
-rw-r--r--assets/js/minified/style.min.js1
-rw-r--r--assets/js/minified/wp-color-picker-alpha.min.js1
-rw-r--r--assets/js/unminified/customizer-controls-toggle.js134
-rw-r--r--assets/js/unminified/customizer-controls.js96
-rw-r--r--assets/js/unminified/customizer-preview.js1587
-rw-r--r--assets/js/unminified/extend-customizer.js349
-rw-r--r--assets/js/unminified/flexibility.js466
-rw-r--r--assets/js/unminified/frontend.js976
-rw-r--r--assets/js/unminified/mobile-cart.js152
-rw-r--r--assets/js/unminified/navigation.js595
-rw-r--r--assets/js/unminified/skip-link-focus-fix.js37
-rw-r--r--assets/js/unminified/style.js595
22 files changed, 4998 insertions, 0 deletions
diff --git a/assets/js/minified/customizer-controls-toggle.min.js b/assets/js/minified/customizer-controls-toggle.min.js
new file mode 100644
index 0000000..8925dcd
--- /dev/null
+++ b/assets/js/minified/customizer-controls-toggle.min.js
@@ -0,0 +1 @@
+!function(e){ASTControlTrigger={triggerHook:function(t,s){e("body").trigger("astra-control-trigger."+t,s)},addHook:function(t,s){e("body").on("astra-control-trigger."+t,s)},removeHook:function(t,s){e("body").off("astra-control-trigger."+t,s)}},ASTCustomizerToggles={"astra-settings[display-site-title-responsive]":[],"astra-settings[display-site-tagline-responsive]":[],"astra-settings[ast-header-retina-logo]":[],custom_logo:[],"astra-settings[header-main-rt-section]":[],"astra-settings[hide-custom-menu-mobile]":[],"astra-settings[blog-width]":[],"astra-settings[blog-post-structure]":[],"astra-settings[blog-single-post-structure]":[],"astra-settings[blog-single-width]":[],"astra-settings[blog-single-meta]":[],"astra-settings[footer-sml-layout]":[],"astra-settings[footer-sml-section-1]":[],"astra-settings[footer-sml-section-2]":[],"astra-settings[footer-sml-divider]":[],"astra-settings[header-main-sep]":[],"astra-settings[disable-primary-nav]":[],"astra-settings[footer-adv]":[],"astra-settings[shop-archive-width]":[],"astra-settings[mobile-header-logo]":[],"astra-settings[different-mobile-logo]":[]}}(jQuery); \ No newline at end of file
diff --git a/assets/js/minified/customizer-controls.min.js b/assets/js/minified/customizer-controls.min.js
new file mode 100644
index 0000000..2dd09df
--- /dev/null
+++ b/assets/js/minified/customizer-controls.min.js
@@ -0,0 +1 @@
+!function(c){var e=wp.customize;ASTCustomizer={controls:{},init:function(){ASTCustomizer._initToggles()},_initToggles:function(){ASTControlTrigger.triggerHook("astra-toggle-control",e),c.each(ASTCustomizerToggles,function(t,n){e(t,function(i){c.each(n,function(t,o){c.each(o.controls,function(t,n){e.control(n,function(n){function t(t){n.container.toggle(o.callback(t))}t(i.get()),i.bind(t)})})})})})}},c(function(){ASTCustomizer.init()})}(jQuery),function(t){t.sectionConstructor["astra-pro"]=t.Section.extend({attachEvents:function(){},isContextuallyActive:function(){return!0}})}(wp.customize); \ No newline at end of file
diff --git a/assets/js/minified/customizer-dependency.min.js b/assets/js/minified/customizer-dependency.min.js
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/assets/js/minified/customizer-dependency.min.js
diff --git a/assets/js/minified/customizer-preview.min.js b/assets/js/minified/customizer-preview.min.js
new file mode 100644
index 0000000..5358a11
--- /dev/null
+++ b/assets/js/minified/customizer-preview.min.js
@@ -0,0 +1 @@
+function astra_font_size_rem(t,e,o){var s="";return""!=t&&(o=null!=typeof o?o:"desktop",s="font-size: "+t+"px;",e&&((e=wp.customize("astra-settings[font-size-body]").get()).desktop=""!=e.desktop?e.desktop:15,e.tablet=""!=e.tablet?e.tablet:e.desktop,e.mobile=""!=e.mobile?e.mobile:e.tablet,s+="font-size: "+t/e[o]+"rem;")),s}function astra_color_responsive_css(n,a,r,i){wp.customize(a,function(t){t.bind(function(t){var e,o,s;t.desktop||t.mobile||t.tablet?(a=(a=a.replace("[","-")).replace("]",""),jQuery("style#"+a+"-"+n).remove(),(s=o=e="")!=t.desktop&&(e=r+": "+t.desktop),""!=t.tablet&&(o=r+": "+t.tablet),""!=t.mobile&&(s=r+": "+t.mobile),jQuery("head").append('<style id="'+a+"-"+n+'">'+i+"\t{ "+e+" }@media (max-width: 768px) {"+i+"\t{ "+o+" } }@media (max-width: 544px) {"+i+"\t{ "+s+" } }</style>")):jQuery("style#"+a+"-"+n).remove()})})}function astra_responsive_font_size(a,r){wp.customize(a,function(t){t.bind(function(t){var e,o,s,n;t.desktop||t.mobile||t.tablet?(a=(a=a.replace("[","-")).replace("]",""),s=o=e="",n="font-size",jQuery("style#"+a+"-"+n).remove(),""!=t.desktop&&(e="font-size: "+t.desktop+t["desktop-unit"]),""!=t.tablet&&(o="font-size: "+t.tablet+t["tablet-unit"]),""!=t.mobile&&(s="font-size: "+t.mobile+t["mobile-unit"]),"px"==t["desktop-unit"]&&(e=astra_font_size_rem(t.desktop,!0,"desktop")),jQuery("head").append('<style id="'+a+"-"+n+'">'+r+"\t{ "+e+" }@media (max-width: 768px) {"+r+"\t{ "+o+" } }@media (max-width: 544px) {"+r+"\t{ "+s+" } }</style>")):jQuery("style#"+a+"-font-size").remove()})})}function astra_responsive_spacing(i,u,c,l){wp.customize(i,function(t){t.bind(function(o){var s,n,a,t,e="",r="padding";o.desktop.top||o.desktop.right||o.desktop.bottom||o.desktop.left||o.tablet.top||o.tablet.right||o.tablet.bottom||o.tablet.left||o.mobile.top||o.mobile.right||o.mobile.bottom||o.mobile.left?(null!=typeof l&&(e=(e=l+"").replace(/,/g,"-")),null!=typeof c&&(r=c+""),i=(i=i.replace("[","-")).replace("]",""),jQuery("style#"+i+"-"+r+"-"+e).remove(),a=n=s="",t=null!=typeof l?l:["top","bottom","right","left"],jQuery.each(t,function(t,e){""!=o.desktop[e]&&(s+=r+"-"+e+": "+o.desktop[e]+o["desktop-unit"]+";")}),jQuery.each(t,function(t,e){""!=o.tablet[e]&&(n+=r+"-"+e+": "+o.tablet[e]+o["tablet-unit"]+";")}),jQuery.each(t,function(t,e){""!=o.mobile[e]&&(a+=r+"-"+e+": "+o.mobile[e]+o["mobile-unit"]+";")}),jQuery("head").append('<style id="'+i+"-"+r+"-"+e+'">'+u+"\t{ "+s+" }@media (max-width: 768px) {"+u+"\t{ "+n+" } }@media (max-width: 544px) {"+u+"\t{ "+a+" } }</style>")):(wp.customize.preview.send("refresh"),jQuery("style#"+i+"-"+r+"-"+e).remove())})})}function astra_css_font_size(o,s){wp.customize(o,function(t){t.bind(function(t){var e;t?(o=(o=o.replace("[","-")).replace("]",""),jQuery("style#"+o).remove(),e="font-size: "+t,(!isNaN(t)||0<=t.indexOf("px"))&&(e=astra_font_size_rem(t=t.replace("px",""),!0)),jQuery("head").append('<style id="'+o+'">'+s+"\t{ "+e+" }</style>")):jQuery("style#"+o).remove()})})}function get_hexdec(t){t=t.toString(16);return parseInt(t,16)}function astra_css(e,o,s,n){wp.customize(e,function(t){t.bind(function(t){e=(e=e.replace("[","-")).replace("]",""),t||0===t?(void 0!==n&&("url"===n?t="url("+t+")":t+=n),jQuery("style#"+e+"-"+o).remove(),jQuery("head").append('<style id="'+e+"-"+o+'">'+s+"\t{ "+o+": "+t+" }</style>"),"unset"===t&&jQuery("style#"+e+"-"+o).remove()):jQuery("style#"+e+"-"+o).remove()})})}function astra_add_dynamic_css(t,e){t=(t=t.replace("[","-")).replace("]",""),jQuery("style#"+t).remove(),jQuery("head").append('<style id="'+t+'">'+e+"</style>")}function astra_background_obj_css(t,e,o,s){var n="",a=e["background-image"],r=e["background-color"];""===r&&""===a?jQuery("style#"+o).remove():(void 0!==e["background-type"]&&""!==e["background-type"]&&("color"===e["background-type"]?""!==a&&""!==r&&void 0!==r&&"unset"!==r?n="background-image: linear-gradient(to right, "+r+", "+r+"), url("+a+");":void 0!==a&&""!==a&&"unset"!==a||(n="background-color: "+r+";"):"image"===e["background-type"]?(""===a||""===r||void 0===r||"unset"===r||r.includes("linear-gradient")||r.includes("radial-gradient")||(n="background-image: linear-gradient(to right, "+r+", "+r+"), url("+a+");"),(void 0===r||""===r||"unset"===r||r.includes("linear-gradient")||r.includes("radial-gradient"))&&""!==a&&(n="background-image: url("+a+");")):"gradient"===e["background-type"]&&""!==r&&"unset"!==r&&(n="background-image: "+r+";")),""!==a&&(n+="background-repeat: "+e["background-repeat"]+";",n+="background-position: "+e["background-position"]+";",n+="background-size: "+e["background-size"]+";",n+="background-attachment: "+e["background-attachment"]+";"),astra_add_dynamic_css(o,s.replace("{{css}}",n)))}function astra_generate_outside_font_family_css(a,r){wp.customize(a,function(t){t.bind(function(t,e){var o="font-family",s="",n=t.split(",")[0];n=n.replace(/'/g,""),a=(a=a.replace("[","-")).replace("]",""),jQuery("style#"+a+"-"+o).remove(),n in astraCustomizer.googleFonts&&(n=n.split(" ").join("+"),jQuery("link#"+a).remove(),s='<link id="'+a+'" href="https://fonts.googleapis.com/css?family='+n+'" rel="stylesheet">'),jQuery("head").append('<style id="'+a+"-"+o+'">'+r+"\t{ "+o+": "+t+" }</style>"+s)})})}function astra_generate_font_weight_css(s,n,a,r){wp.customize(n,function(t){t.bind(function(t){n=(n=n.replace("[","-")).replace("]","");var e,o="";t?("undefined"!=typeof unit&&("url"===unit?t="url("+t+")":t+=unit),e=(e=(e=wp.customize._value[s]._value).split(","))[0].replace(/'/g,""),jQuery("style#"+n+"-"+a).remove(),e in astraCustomizer.googleFonts&&(jQuery("#"+s).remove(),o="inherit"===t?'<link id="'+s+'" href="https://fonts.googleapis.com/css?family='+e+'" rel="stylesheet">':'<link id="'+s+'" href="https://fonts.googleapis.com/css?family='+e+"%3A"+t+'" rel="stylesheet">'),jQuery("head").append('<style id="'+n+"-"+a+'">'+r+"\t{ "+a+": "+t+" }</style>"+o)):jQuery("style#"+n).remove()})})}function astra_apply_responsive_background_css(c,l,d,t,m){wp.customize(c,function(t){t.bind(function(t){var e,o,s,n,a,r,i,u;m=(m=m||"")||"header",c=(c=c.replace("[","-")).replace("]",""),""!==t[d]&&void 0!==t[d]&&(e="",o=t[d]["background-image"],s=t.tablet["background-image"],n=t.desktop["background-image"],a=t[d]["background-color"],r=!!t.tablet["background-image"],i=!!t.desktop["background-image"],void 0!==t[d]["background-type"]&&""!==t[d]["background-type"]&&("color"===t[d]["background-type"]?""!==o&&""!==a&&void 0!==a&&"unset"!==a?e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+o+");":"mobile"===d?i?e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+n+");":r?e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+s+");":(e="background-color: "+a+";",e+="background-image: none;"):"tablet"===d?i?e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+n+");":(e="background-color: "+a+";",e+="background-image: none;"):void 0!==o&&""!==o||(e="background-color: "+a+";",e+="background-image: none;"):"image"===t[d]["background-type"]?(""===o||""===a||void 0===a||"unset"===a||a.includes("linear-gradient")||a.includes("radial-gradient")||(e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+o+");"),(void 0===a||""===a||"unset"===a||a.includes("linear-gradient")||a.includes("radial-gradient"))&&""!==o&&(e="background-image: url("+o+");")):"gradient"===t[d]["background-type"]&&""!==a&&"unset"!==a&&(e="background-image: "+a+";")),""!==o&&(e+="background-repeat: "+t[d]["background-repeat"]+";",e+="background-position: "+t[d]["background-position"]+";",e+="background-size: "+t[d]["background-size"]+";",e+="background-attachment: "+t[d]["background-attachment"]+";"),jQuery("style#"+c+"-"+d+"-"+m).remove(),"desktop"==d&&(u='<style id="'+c+"-"+d+"-"+m+'">'+l+"\t{ "+e+" }</style>"),"tablet"==d&&(u='<style id="'+c+"-"+d+"-"+m+'">@media (max-width: 768px) {'+l+"\t{ "+e+" } }</style>"),"mobile"==d&&(u='<style id="'+c+"-"+d+"-"+m+'">@media (max-width: 544px) {'+l+"\t{ "+e+" } }</style>"),jQuery("head").append(u))})})}function getChangedKey(t,e){t=isJsonString(t)?JSON.parse(t):t,e=isJsonString(e)?JSON.parse(e):e;for(var o in t){if(!e.hasOwnProperty(o)||!t.hasOwnProperty(o))return o;if(!1===function(t,e){var o=Object.prototype.toString.call(t);if(0<=["[object Array]","[object Object]"].indexOf(o)){if("string"==typeof getChangedKey(t,e))return!1}else{if(o!==Object.prototype.toString.call(e))return!1;if("[object Function]"===o){if(t.toString()!==e.toString())return!1}else if(t!==e)return!1}}(t[o],e[o]))return o}return!0}function isJsonString(t){try{JSON.parse(t)}catch(t){return!1}return!0}function hasWordPressWidgetBlockEditor(){return astraCustomizer.has_block_editor_support||!1}!function(a){wp.customize("astra-settings[ast-header-responsive-logo-width]",function(t){t.bind(function(t){""!=t.desktop||""!=t.tablet||""!=t.mobile?(astra_add_dynamic_css("ast-header-responsive-logo-width","#masthead .site-logo-img .custom-logo-link img { max-width: "+t.desktop+"px; } @media( max-width: 768px ) { #masthead .site-logo-img .custom-logo-link img { max-width: "+t.tablet+"px; } #masthead .site-logo-img img { max-height: "+t.tablet+"px; } } @media( max-width: 544px ) { .ast-header-break-point .site-branding img, .ast-header-break-point #masthead .site-logo-img .custom-logo-link img { max-width: "+t.mobile+"px; }#masthead .site-logo-img img { max-height: "+t.mobile+"px; } .astra-logo-svg{width: "+t.mobile+"px !important; } }"),astra_add_dynamic_css("mobile-header-logo-width",".ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img { max-width: "+t.tablet+"px; } @media( max-width: 768px ) { .ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img { max-width: "+t.tablet+"px; } @media( max-width: 544px ) { .ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img { max-width: "+t.mobile+"px; }")):wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[display-site-title-responsive]",function(t){t.bind(function(t){var e=t.desktop?"block":"none",o=t.tablet?"block":"none",t=t.mobile?"block":"none";astra_add_dynamic_css("display-site-title-responsive",".ast-site-title-wrap .site-title { display: "+e+";} @media( max-width: "+(astraBuilderPreview.tablet_break_point||768)+"px) { .ast-site-title-wrap .site-title { display: "+o+";} } @media( max-width: "+(astraBuilderPreview.mobile_break_point||544)+"px) { .ast-site-title-wrap .site-title { display: "+t+";} }")})}),wp.customize("astra-settings[display-site-tagline-responsive]",function(t){t.bind(function(t){var e=t.desktop?"block":"none",o=t.tablet?"block":"none",t=t.mobile?"block":"none";astra_add_dynamic_css("display-site-tagline-responsive",".ast-site-title-wrap .site-description { display: "+e+";} @media( max-width: "+(astraBuilderPreview.tablet_break_point||768)+"px) { .ast-site-title-wrap .site-description { display: "+o+";} } @media( max-width: "+(astraBuilderPreview.mobile_break_point||544)+"px) { .ast-site-title-wrap .site-description { display: "+t+";} }")})}),wp.customize("astra-settings[site-content-width]",function(t){t.bind(function(t){var e="@media (min-width: 554px) {";e+=".ast-container, .fl-builder #content .entry-header { max-width: "+(40+parseInt(t))+"px } ",e+="}",jQuery("body").hasClass("ast-page-builder-template")&&(e+="@media (min-width: 554px) {",e+=".ast-page-builder-template .comments-area { max-width: "+(40+parseInt(t))+"px } ",e+="}"),astra_add_dynamic_css("site-content-width",e)})}),wp.customize("astra-settings[header-main-menu-label]",function(t){t.bind(function(t){var e;0<a("button.main-header-menu-toggle .mobile-menu-wrap .mobile-menu").length?""!=t?a("button.main-header-menu-toggle .mobile-menu-wrap .mobile-menu").text(t):a("button.main-header-menu-toggle .mobile-menu-wrap").remove():(e=a("button.main-header-menu-toggle").html(),""!=t&&(e+='<div class="mobile-menu-wrap"><span class="mobile-menu">'+t+"</span> </div>"),a("button.main-header-menu-toggle").html(e))})}),astra_apply_responsive_background_css("astra-settings[site-layout-outside-bg-obj-responsive]","body, .ast-separate-container","desktop"),astra_apply_responsive_background_css("astra-settings[site-layout-outside-bg-obj-responsive]","body, .ast-separate-container","tablet"),astra_apply_responsive_background_css("astra-settings[site-layout-outside-bg-obj-responsive]","body, .ast-separate-container","mobile"),wp.customize("astra-settings[blog-max-width]",function(t){t.bind(function(t){var e="@media all and ( min-width: 921px ) {";jQuery("body").hasClass("ast-woo-shop-archive")||(e+=".blog .site-content > .ast-container,.archive .site-content > .ast-container{ max-width: "+parseInt(t)+"px } "),jQuery("body").hasClass("ast-fluid-width-layout")&&(e+=".blog .site-content > .ast-container,.archive .site-content > .ast-container{ padding-left:20px; padding-right:20px; } "),astra_add_dynamic_css("blog-max-width",e+="}")})}),wp.customize("astra-settings[blog-single-max-width]",function(t){t.bind(function(t){var e="@media all and ( min-width: 921px ) {";e+=".single-post .site-content > .ast-container{ max-width: "+(40+parseInt(t))+"px } ",jQuery("body").hasClass("ast-fluid-width-layout")&&(e+=".single-post .site-content > .ast-container{ padding-left:20px; padding-right:20px; } "),astra_add_dynamic_css("blog-single-max-width",e+="}")})}),wp.customize("astra-settings[edd-archive-max-width]",function(t){t.bind(function(t){astra_add_dynamic_css("edd-archive-max-width",".ast-edd-archive-page .site-content > .ast-container { max-width: "+parseInt(t)+"px } ")})}),wp.customize("astra-settings[site-sidebar-width]",function(t){t.bind(function(t){var e;!jQuery("body").hasClass("ast-no-sidebar")&&15<=t&&t<=50&&(e="@media (min-width: 769px) {",e+="#primary { width: "+(100-parseInt(t))+"% } ",e+="#secondary { width: "+t+"% } ",astra_add_dynamic_css("site-sidebar-width",e+="}"))})}),wp.customize("astra-settings[header-main-sep]",function(t){t.bind(function(t){var e="body.ast-header-break-point .main-header-bar { border-bottom-width: "+t+"px }";e+=".ast-desktop .main-header-bar {",e+="border-bottom-width: "+t+"px",astra_add_dynamic_css("header-main-sep",e+="}")})}),wp.customize("astra-settings[footer-sml-divider]",function(t){t.bind(function(t){jQuery(".ast-small-footer").css("border-top-width",t+"px")})}),wp.customize("astra-settings[footer-adv-border-width]",function(t){t.bind(function(t){jQuery(".footer-adv .footer-adv-overlay").css("border-top-width",t+"px")})}),wp.customize("astra-settings[footer-adv-border-color]",function(t){t.bind(function(t){jQuery(".footer-adv .footer-adv-overlay").css("border-top-color",t)})}),wp.customize("astra-settings[footer-sml-divider-color]",function(t){t.bind(function(t){jQuery(".ast-small-footer").css("border-top-color",t)})}),wp.customize("astra-settings[button-radius]",function(t){t.bind(function(t){var e='.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"]'+(hasWordPressWidgetBlockEditor()?', form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button':"")+"{ border-radius: "+parseInt(t)+"px } ";jQuery("body").hasClass("woocommerce")&&(e+=".woocommerce a.button, .woocommerce button.button, .woocommerce .product a.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled] { border-radius: "+parseInt(t)+"px } "),astra_add_dynamic_css("button-radius",e)})}),wp.customize("astra-settings[header-main-sep]",function(t){t.bind(function(t){var e=" body.ast-header-break-point .main-header-bar { border-bottom-width: "+t+"px } ";e+=".ast-desktop .main-header-bar {",e+="border-bottom-width: "+t+"px",astra_add_dynamic_css("header-main-sep",e+="}")})}),wp.customize("astra-settings[header-main-sep-color]",function(t){t.bind(function(t){var e;""==t&&wp.customize.preview.send("refresh"),t&&(e=" .ast-desktop .main-header-bar { border-bottom-color: "+t+"; } ",astra_add_dynamic_css("header-main-sep-color",e+=" body.ast-header-break-point .main-header-bar { border-bottom-color: "+t+"; } "))})}),wp.customize("astra-settings[mobile-header-toggle-btn-style-color]",function(t){t.bind(function(t){""!=t?astra_add_dynamic_css("primary-toggle-button-color",jQuery(".menu-toggle").hasClass("ast-mobile-menu-buttons-fill")?".ast-header-break-point .ast-mobile-menu-buttons-fill.menu-toggle { background: "+t+"}":jQuery(".menu-toggle").hasClass("ast-mobile-menu-buttons-outline")?".ast-header-break-point .ast-mobile-menu-buttons-outline.menu-toggle { border: 1px solid "+t+"; color: "+t+"}":".ast-header-break-point .ast-mobile-menu-buttons-minimal.menu-toggle { color: "+t+"}"):wp.customize.preview.send("refresh")})}),astra_responsive_font_size("astra-settings[font-size-site-tagline]",".site-header .site-description"),astra_responsive_font_size("astra-settings[font-size-site-title]",".site-title"),astra_responsive_font_size("astra-settings[font-size-entry-title]",".ast-single-post .entry-title, .page-title"),astra_responsive_font_size("astra-settings[font-size-archive-summary-title]",".ast-archive-description .ast-archive-title"),astra_responsive_font_size("astra-settings[font-size-page-title]","body:not(.ast-single-post) .entry-title"),1==astraCustomizer.includeAnchorsInHeadindsCss?(astra_responsive_font_size("astra-settings[font-size-h1]","h1, .entry-content h1, .entry-content h1 a"),astra_responsive_font_size("astra-settings[font-size-h2]","h2, .entry-content h2, .entry-content h2 a"),astra_responsive_font_size("astra-settings[font-size-h3]","h3, .entry-content h3, .entry-content h3 a"),astra_responsive_font_size("astra-settings[font-size-h4]","h4, .entry-content h4, .entry-content h4 a"),astra_responsive_font_size("astra-settings[font-size-h5]","h5, .entry-content h5, .entry-content h5 a"),astra_responsive_font_size("astra-settings[font-size-h6]","h6, .entry-content h6, .entry-content h6 a")):(astra_responsive_font_size("astra-settings[font-size-h1]","h1, .entry-content h1"),astra_responsive_font_size("astra-settings[font-size-h2]","h2, .entry-content h2"),astra_responsive_font_size("astra-settings[font-size-h3]","h3, .entry-content h3"),astra_responsive_font_size("astra-settings[font-size-h4]","h4, .entry-content h4"),astra_responsive_font_size("astra-settings[font-size-h5]","h5, .entry-content h5"),astra_responsive_font_size("astra-settings[font-size-h6]","h6, .entry-content h6")),wp.customize("astra-settings[para-margin-bottom]",function(t){t.bind(function(t){""==t&&wp.customize.preview.send("refresh"),t&&astra_add_dynamic_css("para-margin-bottom"," p, .entry-content p { margin-bottom: "+t+"em; } ")})}),wp.customize("astra-settings[underline-content-links]",function(t){t.bind(function(t){astra_add_dynamic_css("underline-content-links",t?".ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a) { text-decoration: underline; } ":".ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a) { text-decoration: unset; } ")})}),astraCustomizer.page_builder_button_style_css?1==astraCustomizer.includeAnchorsInHeadindsCss?("color-typo"!=astraCustomizer.elementor_default_color_font_setting&&"typo"!=astraCustomizer.elementor_default_color_font_setting||astra_css("astra-settings[headings-line-height]","line-height",".elementor-widget-heading h1.elementor-heading-title, .elementor-widget-heading h2.elementor-heading-title, .elementor-widget-heading h3.elementor-heading-title, .elementor-widget-heading h4.elementor-heading-title, .elementor-widget-heading h5.elementor-heading-title, .elementor-widget-heading h6.elementor-heading-title"),astra_css("astra-settings[headings-line-height]","line-height","h1, .entry-content h1, .entry-content h1 a, h2, .entry-content h2, .entry-content h2 a, h3, .entry-content h3, .entry-content h3 a, h4, .entry-content h4, .entry-content h4 a, h5, .entry-content h5, .entry-content h5 a, h6, .entry-content h6, .entry-content h6 a, .site-title, .site-title a")):("color-typo"!=astraCustomizer.elementor_default_color_font_setting&&"typo"!=astraCustomizer.elementor_default_color_font_setting||astra_css("astra-settings[headings-line-height]","line-height",".elementor-widget-heading h1.elementor-heading-title, .elementor-widget-heading h2.elementor-heading-title, .elementor-widget-heading h3.elementor-heading-title, .elementor-widget-heading h4.elementor-heading-title, .elementor-widget-heading h5.elementor-heading-title, .elementor-widget-heading h6.elementor-heading-title"),astra_css("astra-settings[headings-line-height]","line-height","h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6, .site-title, .site-title a")):1==astraCustomizer.includeAnchorsInHeadindsCss?astra_css("astra-settings[headings-line-height]","line-height","h1, .entry-content h1, .entry-content h1 a, h2, .entry-content h2, .entry-content h2 a, h3, .entry-content h3, .entry-content h3 a, h4, .entry-content h4, .entry-content h4 a, h5, .entry-content h5, .entry-content h5 a, h6, .entry-content h6, .entry-content h6 a, .site-title, .site-title a"):astra_css("astra-settings[headings-line-height]","line-height","h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6, .site-title, .site-title a"),1==astraCustomizer.includeAnchorsInHeadindsCss?(astra_generate_outside_font_family_css("astra-settings[headings-font-family]","h1, .entry-content h1, .entry-content h1 a, h2, .entry-content h2, .entry-content h2 a, h3, .entry-content h3, .entry-content h3 a, h4, .entry-content h4, .entry-content h4 a, h5, .entry-content h5, .entry-content h5 a, h6, .entry-content h6, .entry-content h6 a, .site-title, .site-title a"),astra_generate_font_weight_css("astra-settings[headings-font-family]","astra-settings[headings-font-weight]","font-weight","h1, .entry-content h1, .entry-content h1 a, h2, .entry-content h2, .entry-content h2 a, h3, .entry-content h3, .entry-content h3 a, h4, .entry-content h4, .entry-content h4 a, h5, .entry-content h5, .entry-content h5 a, h6, .entry-content h6, .entry-content h6 a, .site-title, .site-title a"),astra_css("astra-settings[headings-text-transform]","text-transform","h1, .entry-content h1, .entry-content h1 a, h2, .entry-content h2, .entry-content h2 a, h3, .entry-content h3, .entry-content h3 a, h4, .entry-content h4, .entry-content h4 a, h5, .entry-content h5, .entry-content h5 a, h6, .entry-content h6, .entry-content h6 a, .site-title, .site-title a")):(astra_generate_outside_font_family_css("astra-settings[headings-font-family]","h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6, .site-title, .site-title a"),astra_generate_font_weight_css("astra-settings[headings-font-family]","astra-settings[headings-font-weight]","font-weight","h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6, .site-title, .site-title a"),astra_css("astra-settings[headings-text-transform]","text-transform","h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6, .site-title, .site-title a")),astra_css("astra-settings[footer-color]","color",".ast-small-footer"),astra_css("astra-settings[footer-link-color]","color",".ast-small-footer a"),astra_css("astra-settings[footer-link-h-color]","color",".ast-small-footer a:hover"),wp.customize("astra-settings[footer-bg-obj]",function(t){t.bind(function(t){astra_background_obj_css(wp.customize,t,"footer-bg-obj"," .ast-small-footer > .ast-footer-overlay { {{css}} }")})}),astra_css("astra-settings[footer-adv-wgt-title-color]","color",".footer-adv .widget-title, .footer-adv .widget-title a"),astra_css("astra-settings[footer-adv-text-color]","color",".footer-adv"),astra_css("astra-settings[footer-adv-link-color]","color",".footer-adv a"),astra_css("astra-settings[footer-adv-link-h-color]","color",".footer-adv a:hover, .footer-adv .no-widget-text a:hover, .footer-adv a:focus, .footer-adv .no-widget-text a:focus"),wp.customize("astra-settings[footer-adv-bg-obj]",function(t){t.bind(function(t){astra_background_obj_css(wp.customize,t,"footer-adv-bg-obj"," .footer-adv-overlay { {{css}} }")})}),wp.customize("astra-settings[shop-archive-max-width]",function(t){t.bind(function(t){var e="@media all and ( min-width: 921px ) {";e+=".ast-woo-shop-archive .site-content > .ast-container{ max-width: "+parseInt(t)+"px } ",jQuery("body").hasClass("ast-fluid-width-layout")&&(e+=".ast-woo-shop-archive .site-content > .ast-container{ padding-left:20px; padding-right:20px; } "),astra_add_dynamic_css("shop-archive-max-width",e+="}")})}),wp.customize("astra-settings[mobile-header-toggle-btn-style]",function(t){t.bind(function(t){astra_add_dynamic_css("mobile-header-toggle-btn-style",""===wp.customize("astra-settings[mobile-header-toggle-btn-color]").get()&&"fill"===t?n=' [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg { fill: #ffffff; } ':"");var e=a(document).find(".ast-mobile-menu-buttons .menu-toggle");e.removeClass("ast-mobile-menu-buttons-default ast-mobile-menu-buttons-fill ast-mobile-menu-buttons-outline"),e.removeClass("ast-mobile-menu-buttons-default ast-mobile-menu-buttons-fill ast-mobile-menu-buttons-minimal"),e.addClass("ast-mobile-menu-buttons-"+t);var o=wp.customize("astra-settings[theme-color]").get(),s="#ffffff",e=wp.customize("astra-settings[mobile-header-toggle-btn-color]").get(),s=s="fill"!==t?o:s,n='[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {';n+="fill: "+(s=""!==e&&null!=e?e:s)+";",n+="}",n+='[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-wrap .mobile-menu {',n+="color: "+s+";",n+="}",n+='[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-fill, [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal {',n+="color: "+s+";",n+="border: none;",n+="}",n+='[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-outline {',n+="color: "+s+";",astra_add_dynamic_css("mobile-header-toggle-btn-style",n+="}")})}),wp.customize("astra-settings[mobile-header-toggle-btn-border-radius]",function(t){t.bind(function(t){astra_add_dynamic_css("mobile-header-toggle-btn-border-radius",".ast-header-break-point .main-header-bar .ast-button-wrap .menu-toggle { border-radius: "+parseInt(t)+"px } ")})}),wp.customize("astra-settings[primary-submenu-border]",function(t){t.bind(function(t){var e,o=wp.customize("astra-settings[primary-submenu-b-color]").get();""!=t.top||""!=t.right||""!=t.bottom||""!=t.left?(e=".ast-desktop .main-header-menu.submenu-with-border .sub-menu",e+="{",e+="border-top-width:"+t.top+"px;",e+="border-right-width:"+t.right+"px;",e+="border-left-width:"+t.left+"px;",e+="border-bottom-width:"+t.bottom+"px;",e+="border-color:"+o+";",e+="border-style: solid;",e+="}",e+=".ast-desktop .main-header-menu.submenu-with-border .sub-menu .sub-menu",e+="{",e+="top:-"+t.top+"px;",e+="}",e+="@media (min-width: 769px){",e+=".main-header-menu .sub-menu .menu-item.ast-left-align-sub-menu:hover > .sub-menu, .main-header-menu .sub-menu .menu-item.ast-left-align-sub-menu.focus > .sub-menu",e+="{",e+="margin-left:-"+(+t.left+ +t.right)+"px;",e+="}",astra_add_dynamic_css("primary-submenu-border",e+="}")):wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[primary-submenu-b-color]",function(t){t.bind(function(t){var e,o=wp.customize("astra-settings[primary-submenu-border]").get();""!=t?""==o.top&&""==o.right&&""==o.bottom&&""==o.left||(e=".ast-desktop .main-header-menu.submenu-with-border .sub-menu",e+="{",e+="border-top-width:"+o.top+"px;",e+="border-right-width:"+o.right+"px;",e+="border-left-width:"+o.left+"px;",e+="border-bottom-width:"+o.bottom+"px;",e+="border-color:"+t+";",e+="border-style: solid;",e+="}",e+=".ast-desktop .main-header-menu.submenu-with-border .sub-menu .sub-menu",e+="{",e+="top:-"+o.top+"px;",e+="}",e+="@media (min-width: 769px){",e+=".main-header-menu .sub-menu .menu-item.ast-left-align-sub-menu:hover > .sub-menu, .main-header-menu .sub-menu .menu-item.ast-left-align-sub-menu.focus > .sub-menu",e+="{",e+="margin-left:-"+(+o.left+ +o.right)+"px;",e+="}",astra_add_dynamic_css("primary-submenu-border-color",e+="}")):wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[primary-submenu-item-b-color]",function(t){t.bind(function(t){var e,o=wp.customize("astra-settings[primary-submenu-item-border]").get();""!=t?1==o&&(e="",e+=".ast-desktop .main-header-menu.submenu-with-border .sub-menu .menu-link",e+="{",e+="border-bottom-width:"+(!0===o?"1px;":"0px;"),e+="border-color:"+t+";",e+="border-style: solid;",astra_add_dynamic_css("primary-submenu-item-b-color",e+="}")):wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[primary-submenu-item-border]",function(t){t.bind(function(t){var e,o=wp.customize("astra-settings[primary-submenu-item-b-color]").get();!0===t?(e=".ast-desktop .main-header-menu.submenu-with-border .sub-menu .menu-link",e+="{",e+="border-bottom-width:"+(!0===t?"1px;":"0px;"),e+="border-color:"+o+";",e+="border-style: solid;",astra_add_dynamic_css("primary-submenu-item-border",e+="}")):wp.customize.preview.send("refresh")})}),astra_css("astra-settings[header-main-rt-section-button-text-color]","color",".main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button"),astra_css("astra-settings[header-main-rt-section-button-back-color]","background-color",".main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button"),astra_css("astra-settings[header-main-rt-section-button-text-h-color]","color",".main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover"),astra_css("astra-settings[header-main-rt-section-button-back-h-color]","background-color",".main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover"),astra_css("astra-settings[header-main-rt-section-button-border-radius]","border-radius",".main-header-bar .ast-container .button-custom-menu-item .ast-custom-button-link .ast-custom-button","px"),astra_css("astra-settings[header-main-rt-section-button-border-color]","border-color",".main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button"),astra_css("astra-settings[header-main-rt-section-button-border-h-color]","border-color",".main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover"),astra_responsive_spacing("astra-settings[header-main-rt-section-button-padding]",".main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button","padding",["top","right","bottom","left"]),astra_generate_outside_font_family_css("astra-settings[primary-header-button-font-family]",".main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button, .ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button"),astra_responsive_font_size("astra-settings[primary-header-button-font-size]",".main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button, .ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button"),astra_css("astra-settings[primary-header-button-font-weight]","font-weight",".main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button, .ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button"),astra_css("astra-settings[primary-header-button-line-height]","line-height",".main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button, .ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button"),astra_css("astra-settings[primary-header-button-text-transform]","text-transform",".main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button, .ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button"),astra_css("astra-settings[primary-header-button-letter-spacing]","letter-spacing",".main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button, .ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button","px"),wp.customize("astra-settings[header-main-rt-section-button-border-size]",function(t){t.bind(function(t){var e;""==t.top&&""==t.right&&""==t.bottom&&""==t.left||(e=".main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button",e+="{",e+="border-top-width:"+t.top+"px;",e+="border-right-width:"+t.right+"px;",e+="border-left-width:"+t.left+"px;",e+="border-bottom-width:"+t.bottom+"px;",e+="border-style: solid;",astra_add_dynamic_css("header-main-rt-section-button-border-size",e+="}"))})});var t="",o="",e="";astraCustomizer.page_builder_button_style_css&&("color-typo"!=astraCustomizer.elementor_default_color_font_setting&&"color"!=astraCustomizer.elementor_default_color_font_setting&&"font"!=astraCustomizer.elementor_default_color_font_setting||(o=", .elementor-button-wrapper .elementor-button, .elementor-button-wrapper .elementor-button:visited",e=t=", .elementor-button-wrapper .elementor-button.elementor-size-sm, .elementor-button-wrapper .elementor-button.elementor-size-xs, .elementor-button-wrapper .elementor-button.elementor-size-md, .elementor-button-wrapper .elementor-button.elementor-size-lg, .elementor-button-wrapper .elementor-button.elementor-size-xl, .elementor-button-wrapper .elementor-button")),astra_css("astra-settings[button-radius]","border-radius",'.menu-toggle, button, .ast-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"]'+t,"px"),wp.customize("astra-settings[theme-button-border-group-border-size]",function(t){t.bind(function(t){var e;""==t.top&&""==t.right&&""==t.bottom&&""==t.left||(astraCustomizer.gb_outline_buttons_patterns_support&&!astraCustomizer.updated_gb_outline_button_patterns?wp.customize.preview.send("refresh"):(e=hasWordPressWidgetBlockEditor()?', form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button':"",e='.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .wp-block-button .wp-block-button__link'+o+e,e+="{",e+="border-top-width:"+t.top+"px;",e+="border-right-width:"+t.right+"px;",e+="border-left-width:"+t.left+"px;",e+="border-bottom-width:"+t.bottom+"px;",e+="border-style: solid;",astra_add_dynamic_css("theme-button-border-group-border-size",e+="}")))})}),astra_responsive_spacing("astra-settings[theme-button-padding]",'.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .woocommerce a.button, .woocommerce button.button, .woocommerce .product a.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled], .wp-block-button .wp-block-button__link'+e+(u=hasWordPressWidgetBlockEditor()?', form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button':""),"padding",["top","bottom"]),astra_responsive_spacing("astra-settings[theme-button-padding]",'.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .woocommerce a.button, .woocommerce button.button, .woocommerce .product a.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled], .wp-block-button .wp-block-button__link'+e+u,"padding",["left","right"]),wp.customize("astra-settings[transparent-header-button-border-group]",function(t){t.bind(function(t){var e=JSON.parse(t)["header-main-rt-trans-section-button-border-size"];""==e.top&&""==e.right&&""==e.bottom&&""==e.left||(t=".ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button",t+="{",t+="border-top-width:"+e.top+"px;",t+="border-right-width:"+e.right+"px;",t+="border-left-width:"+e.left+"px;",t+="border-bottom-width:"+e.bottom+"px;",t+="border-style: solid;",astra_add_dynamic_css("header-main-rt-trans-section-button-border-size",t+="}"))})}),astra_generate_outside_font_family_css("astra-settings[font-family-site-title]",".site-title, .site-title a"),astra_generate_font_weight_css("astra-settings[font-family-site-title]","astra-settings[font-weight-site-title]","font-weight",".site-title, .site-title a"),astra_responsive_font_size("astra-settings[font-size-site-title]",".site-title, .site-title a"),astra_css("astra-settings[line-height-site-title]","line-height",".site-title, .site-title a"),astra_css("astra-settings[text-transform-site-title]","text-transform",".site-title, .site-title a"),astra_generate_outside_font_family_css("astra-settings[font-family-site-tagline]",".site-header .site-description"),astra_generate_font_weight_css("astra-settings[font-family-site-tagline]","astra-settings[font-weight-site-tagline]","font-weight",".site-header .site-description"),astra_responsive_font_size("astra-settings[font-size-site-tagline]",".site-header .site-description"),astra_css("astra-settings[line-height-site-tagline]","line-height",".site-header .site-description"),astra_css("astra-settings[text-transform-site-tagline]","text-transform",".site-header .site-description");var s,n,r,i,u=hasWordPressWidgetBlockEditor()?', form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button':"",c=hasWordPressWidgetBlockEditor()?', form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:hover, form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:focus':"";astraCustomizer.page_builder_button_style_css?(e=t=i=r=n=s="","color-typo"!=astraCustomizer.elementor_default_color_font_setting&&"color"!=astraCustomizer.elementor_default_color_font_setting||(n=s=",.elementor-button-wrapper .elementor-button, .elementor-button-wrapper .elementor-button:visited",t=", .elementor-button-wrapper .elementor-button, .elementor-button-wrapper .elementor-button:visited",e=i=r=",.elementor-button-wrapper .elementor-button:hover, .elementor-button-wrapper .elementor-button:focus"),astra_css("astra-settings[button-color]","color",'.menu-toggle, button, .ast-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .wp-block-button .wp-block-button__link, .ast-custom-button'+s+u),astra_css("astra-settings[button-bg-color]","background-color",'.menu-toggle, button, .ast-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .wp-block-button .wp-block-button__link, .ast-custom-button'+n+u),astra_css("astra-settings[button-h-color]","color",'button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .button:hover, input[type=reset]:hover, input[type=reset]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus, .wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link:focus, .ast-custom-button:hover, .ast-custom-button:focus'+r+c),astra_css("astra-settings[button-bg-h-color]","background-color",'button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .button:hover, input[type=reset]:hover, input[type=reset]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus, .wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link:focus, .ast-custom-button:hover, .ast-custom-button:focus'+i+c),astra_css("astra-settings[theme-button-border-group-border-color]","border-color",'.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .wp-block-button .wp-block-button__link'+t+u),astra_css("astra-settings[theme-button-border-group-border-h-color]","border-color",'button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .ast-custom-button:hover, .button:hover, input[type=reset]:hover, input[type=reset]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus, .wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link:focus'+e+c)):(astra_css("astra-settings[button-color]","color",'.menu-toggle, button, .ast-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .ast-custom-button'+u),astra_css("astra-settings[button-bg-color]","background-color",'.menu-toggle, button, .ast-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .ast-custom-button'+u),astra_css("astra-settings[button-bg-color]","border-color",'.menu-toggle, button, .ast-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .ast-custom-button'+u),astra_css("astra-settings[button-h-color]","color",'button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .button:hover, input[type=reset]:hover, input[type=reset]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus, .ast-custom-button:hover, .ast-custom-button:focus'+c),astra_css("astra-settings[button-bg-h-color]","background-color",'button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .button:hover, input[type=reset]:hover, input[type=reset]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus, .ast-custom-button:hover, .ast-custom-button:focus'+c),astra_responsive_spacing("astra-settings[theme-button-padding]",'.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .woocommerce a.button, .woocommerce button.button, .woocommerce .product a.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled]'+u,"padding",["top","bottom"]),astra_responsive_spacing("astra-settings[theme-button-padding]",'.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .woocommerce a.button, .woocommerce button.button, .woocommerce .product a.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled]'+u,"padding",["left","right"])),wp.customize.bind("preview-ready",function(){wp.customize.selectiveRefresh.bind("render-partials-response",function(t){return!(t.contents.hasOwnProperty("astra-settings[footer-desktop-items]")||!t.contents.hasOwnProperty("astra-settings[header-desktop-items]")&&!t.contents.hasOwnProperty("astra-settings[header-mobile-items]"))&&void setTimeout(function(){document.dispatchEvent(new CustomEvent("astLayoutWidthChanged",{detail:{response:t}}))},10)}),wp.customize.selectiveRefresh.bind("partial-content-rendered",function(t){return!t.partial.id.includes("footer")&&(sessionStorage.setItem("astPartialContentRendered",!0),void document.dispatchEvent(new CustomEvent("astPartialContentRendered",{detail:{response:t}})))}),wp.customize.selectiveRefresh.bind("partial-content-rendered",function(t){wp.customize.preview.send("AstraBuilderPartialContentRendered",t)}),wp.customize.preview.bind("astPreviewDeviceChanged",function(t){document.dispatchEvent(new CustomEvent("astPreviewDeviceChanged",{detail:t}))})}),wp.customize("astra-settings[related-posts-based-on]",function(t){t.bind(function(){wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[related-posts-order-by]",function(t){t.bind(function(){wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[related-posts-order]",function(t){t.bind(function(){wp.customize.preview.send("refresh")})}),astra_css("astra-settings[related-posts-text-color]","color",".ast-related-post-content .entry-header .ast-related-post-title a, .ast-related-post-content .ast-related-post-excerpt"),astra_css("astra-settings[related-posts-meta-color]","color",".ast-related-post-content .entry-meta, .ast-related-post-content .entry-meta *"),astra_css("astra-settings[related-posts-title-color]","color",".ast-single-related-posts-container .ast-related-posts-title-section .ast-related-posts-title"),astra_css("astra-settings[related-posts-background-color]","background-color",".ast-single-related-posts-container"),astra_css("astra-settings[related-posts-link-color]","color",".ast-related-post-content .ast-related-post-cta a"),astra_css("astra-settings[related-posts-link-hover-color]","color",".ast-related-post-content .ast-related-post-cta a:hover"),astra_css("astra-settings[related-posts-meta-link-hover-color]","color",".ast-related-post-content .entry-meta a:hover, .ast-related-post-content .entry-meta span a span:hover"),astra_generate_outside_font_family_css("astra-settings[related-posts-title-font-family]",".ast-related-post-content .entry-header .ast-related-post-title, .ast-related-post-content .entry-header .ast-related-post-title a"),astra_css("astra-settings[related-posts-title-font-weight]","font-weight",".ast-related-post-content .entry-header .ast-related-post-title, .ast-related-post-content .entry-header .ast-related-post-title a"),astra_responsive_font_size("astra-settings[related-posts-title-font-size]",".ast-related-post-content .entry-header .ast-related-post-title, .ast-related-post-content .entry-header .ast-related-post-title a"),astra_css("astra-settings[related-posts-title-line-height]","line-height",".ast-related-post-content .entry-header .ast-related-post-title, .ast-related-post-content .entry-header .ast-related-post-title a"),astra_css("astra-settings[related-posts-title-text-transform]","text-transform",".ast-related-post-content .entry-header .ast-related-post-title, .ast-related-post-content .entry-header .ast-related-post-title a"),astra_generate_outside_font_family_css("astra-settings[related-posts-section-title-font-family]",".ast-single-related-posts-container .ast-related-posts-title-section .ast-related-posts-title"),astra_css("astra-settings[related-posts-section-title-font-weight]","font-weight",".ast-single-related-posts-container .ast-related-posts-title-section .ast-related-posts-title"),astra_responsive_font_size("astra-settings[related-posts-section-title-font-size]",".ast-single-related-posts-container .ast-related-posts-title-section .ast-related-posts-title"),astra_css("astra-settings[related-posts-section-title-line-height]","line-height",".ast-single-related-posts-container .ast-related-posts-title-section .ast-related-posts-title"),astra_css("astra-settings[related-posts-section-title-text-transform]","text-transform",".ast-single-related-posts-container .ast-related-posts-title-section .ast-related-posts-title"),astra_css("astra-settings[releted-posts-title-alignment]","text-align",".ast-single-related-posts-container .ast-related-posts-title-section .ast-related-posts-title"),astra_generate_outside_font_family_css("astra-settings[related-posts-meta-font-family]",".ast-related-post-content .entry-meta, .ast-related-post-content .entry-meta *"),astra_css("astra-settings[related-posts-meta-font-weight]","font-weight",".ast-related-post-content .entry-meta, .ast-related-post-content .entry-meta *"),astra_responsive_font_size("astra-settings[related-posts-meta-font-size]",".ast-related-post-content .entry-meta, .ast-related-post-content .entry-meta *"),astra_css("astra-settings[related-posts-meta-line-height]","line-height",".ast-related-post-content .entry-meta, .ast-related-post-content .entry-meta *"),astra_css("astra-settings[related-posts-meta-text-transform]","text-transform",".ast-related-post-content .entry-meta, .ast-related-post-content .entry-meta *"),astra_generate_outside_font_family_css("astra-settings[related-posts-content-font-family]",".ast-related-post-content .ast-related-post-excerpt"),astra_css("astra-settings[related-posts-content-font-weight]","font-weight",".ast-related-post-content .ast-related-post-excerpt"),astra_responsive_font_size("astra-settings[related-posts-content-font-size]",".ast-related-post-content .ast-related-post-excerpt"),astra_css("astra-settings[related-posts-content-line-height]","line-height",".ast-related-post-content .ast-related-post-excerpt"),astra_css("astra-settings[related-posts-content-text-transform]","text-transform",".ast-related-post-content .ast-related-post-excerpt"),astra_css("astra-settings[header-color-site-title]","color",".ast-site-identity .site-title a, .ast-site-identity .site-title"),astra_css("astra-settings[header-color-h-site-title]","color",".ast-site-identity .site-title a:hover, .ast-site-identity .site-title:hover"),astra_css("astra-settings[header-color-site-tagline]","color",".ast-site-identity .site-description")}(jQuery); \ No newline at end of file
diff --git a/assets/js/minified/extend-customizer.min.js b/assets/js/minified/extend-customizer.min.js
new file mode 100644
index 0000000..5b7a9a3
--- /dev/null
+++ b/assets/js/minified/extend-customizer.min.js
@@ -0,0 +1 @@
+!function(a){var i=wp.customize;i.bind("pane-contents-reflowed",function(){var e=[];i.section.each(function(t){"ast_section"===t.params.type&&void 0!==t.params.section&&e.push(t)}),e.sort(i.utils.prioritySort).reverse(),a.each(e,function(t,e){a("#sub-accordion-section-"+e.params.section).children(".section-meta").after(e.headContainer)});var n=[];i.panel.each(function(t){"ast_panel"===t.params.type&&void 0!==t.params.panel&&n.push(t)}),n.sort(i.utils.prioritySort).reverse(),a.each(n,function(t,e){a("#sub-accordion-panel-"+e.params.panel).children(".panel-meta").after(e.headContainer)})});var t=wp.customize.Panel.prototype.embed,s=wp.customize.Panel.prototype.isContextuallyActive,e=wp.customize.Panel.prototype.attachEvents;wp.customize.Panel=wp.customize.Panel.extend({attachEvents:function(){var n;"ast_panel"===this.params.type&&void 0!==this.params.panel?(e.call(this),(n=this).expanded.bind(function(t){var e=i.panel(n.params.panel);t?e.contentContainer.addClass("current-panel-parent"):e.contentContainer.removeClass("current-panel-parent")}),n.container.find(".customize-panel-back").off("click keydown").on("click keydown",function(t){i.utils.isKeydownButNotEnterEvent(t)||(t.preventDefault(),n.expanded()&&i.panel(n.params.panel).expand())})):e.call(this)},embed:function(){"ast_panel"===this.params.type&&void 0!==this.params.panel?(t.call(this),a("#sub-accordion-panel-"+this.params.panel).append(this.headContainer)):t.call(this)},isContextuallyActive:function(){if("ast_panel"!==this.params.type)return s.call(this);var e=this,n=this._children("panel","section");i.panel.each(function(t){t.params.panel&&t.params.panel===e.id&&n.push(t)}),n.sort(i.utils.prioritySort);var a=0;return _(n).each(function(t){t.active()&&t.isContextuallyActive()&&(a+=1)}),0!==a}});var n=wp.customize.Section.prototype.embed,o=wp.customize.Section.prototype.isContextuallyActive,c=wp.customize.Section.prototype.attachEvents;wp.customize.Section=wp.customize.Section.extend({attachEvents:function(){var n;"ast_section"===this.params.type&&void 0!==this.params.section?(c.call(this),(n=this).expanded.bind(function(t){var e=i.section(n.params.section);t?e.contentContainer.addClass("current-section-parent"):e.contentContainer.removeClass("current-section-parent")}),n.container.find(".customize-section-back").off("click keydown").on("click keydown",function(t){i.utils.isKeydownButNotEnterEvent(t)||(t.preventDefault(),n.expanded()&&i.section(n.params.section).expand())})):c.call(this)},embed:function(){"ast_section"===this.params.type&&void 0!==this.params.section?(n.call(this),a("#sub-accordion-section-"+this.params.section).append(this.headContainer)):n.call(this)},isContextuallyActive:function(){if("ast_section"!==this.params.type)return o.call(this);var e=this,n=this._children("section","control");i.section.each(function(t){t.params.section&&t.params.section===e.id&&n.push(t)}),n.sort(i.utils.prioritySort);var a=0;return _(n).each(function(t){void 0!==t.isContextuallyActive?t.active()&&t.isContextuallyActive()&&(a+=1):t.active()&&(a+=1)}),0!==a}})}(jQuery); \ No newline at end of file
diff --git a/assets/js/minified/flexibility.min.js b/assets/js/minified/flexibility.min.js
new file mode 100644
index 0000000..03bf78f
--- /dev/null
+++ b/assets/js/minified/flexibility.min.js
@@ -0,0 +1 @@
+!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).flexibility=e()}(function(){return function l(n,o,f){function i(r,e){if(!o[r]){if(!n[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(s)return s(r,!0);t=new Error("Cannot find module '"+r+"'");throw t.code="MODULE_NOT_FOUND",t}t=o[r]={exports:{}};n[r][0].call(t.exports,function(e){var t=n[r][1][e];return i(t||e)},t,t.exports,l,n,o,f)}return o[r].exports}for(var s="function"==typeof require&&require,e=0;e<f.length;e++)i(f[e]);return i}({1:[function(e,t,r){t.exports=function(e){var t,r,l,n=-1;if(1<e.lines.length&&"flex-start"===e.style.alignContent)for(t=0;l=e.lines[++n];)l.crossStart=t,t+=l.cross;else if(1<e.lines.length&&"flex-end"===e.style.alignContent)for(t=e.flexStyle.crossSpace;l=e.lines[++n];)l.crossStart=t,t+=l.cross;else if(1<e.lines.length&&"center"===e.style.alignContent)for(t=e.flexStyle.crossSpace/2;l=e.lines[++n];)l.crossStart=t,t+=l.cross;else if(1<e.lines.length&&"space-between"===e.style.alignContent)for(r=e.flexStyle.crossSpace/(e.lines.length-1),t=0;l=e.lines[++n];)l.crossStart=t,t+=l.cross+r;else if(1<e.lines.length&&"space-around"===e.style.alignContent)for(t=(r=2*e.flexStyle.crossSpace/(2*e.lines.length))/2;l=e.lines[++n];)l.crossStart=t,t+=l.cross+r;else for(r=e.flexStyle.crossSpace/e.lines.length,t=e.flexStyle.crossInnerBefore;l=e.lines[++n];)l.crossStart=t,l.cross+=r,t+=l.cross}},{}],2:[function(e,t,r){t.exports=function(e){for(var t,r=-1;line=e.lines[++r];)for(t=-1;child=line.children[++t];){var l=child.style.alignSelf;"flex-start"===(l="auto"===l?e.style.alignItems:l)?child.flexStyle.crossStart=line.crossStart:"flex-end"===l?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:"center"===l?child.flexStyle.crossStart=line.crossStart+(line.cross-child.flexStyle.crossOuter)/2:(child.flexStyle.crossStart=line.crossStart,child.flexStyle.crossOuter=line.cross,child.flexStyle.cross=child.flexStyle.crossOuter-child.flexStyle.crossBefore-child.flexStyle.crossAfter)}}},{}],3:[function(e,t,r){t.exports=function(e,t){var r="row"===t||"row-reverse"===t,l=e.mainAxis;l?r&&"inline"===l||!r&&"block"===l||(e.flexStyle={main:e.flexStyle.cross,cross:e.flexStyle.main,mainOffset:e.flexStyle.crossOffset,crossOffset:e.flexStyle.mainOffset,mainBefore:e.flexStyle.crossBefore,mainAfter:e.flexStyle.crossAfter,crossBefore:e.flexStyle.mainBefore,crossAfter:e.flexStyle.mainAfter,mainInnerBefore:e.flexStyle.crossInnerBefore,mainInnerAfter:e.flexStyle.crossInnerAfter,crossInnerBefore:e.flexStyle.mainInnerBefore,crossInnerAfter:e.flexStyle.mainInnerAfter,mainBorderBefore:e.flexStyle.crossBorderBefore,mainBorderAfter:e.flexStyle.crossBorderAfter,crossBorderBefore:e.flexStyle.mainBorderBefore,crossBorderAfter:e.flexStyle.mainBorderAfter}):(e.flexStyle=r?{main:e.style.width,cross:e.style.height,mainOffset:e.style.offsetWidth,crossOffset:e.style.offsetHeight,mainBefore:e.style.marginLeft,mainAfter:e.style.marginRight,crossBefore:e.style.marginTop,crossAfter:e.style.marginBottom,mainInnerBefore:e.style.paddingLeft,mainInnerAfter:e.style.paddingRight,crossInnerBefore:e.style.paddingTop,crossInnerAfter:e.style.paddingBottom,mainBorderBefore:e.style.borderLeftWidth,mainBorderAfter:e.style.borderRightWidth,crossBorderBefore:e.style.borderTopWidth,crossBorderAfter:e.style.borderBottomWidth}:{main:e.style.height,cross:e.style.width,mainOffset:e.style.offsetHeight,crossOffset:e.style.offsetWidth,mainBefore:e.style.marginTop,mainAfter:e.style.marginBottom,crossBefore:e.style.marginLeft,crossAfter:e.style.marginRight,mainInnerBefore:e.style.paddingTop,mainInnerAfter:e.style.paddingBottom,crossInnerBefore:e.style.paddingLeft,crossInnerAfter:e.style.paddingRight,mainBorderBefore:e.style.borderTopWidth,mainBorderAfter:e.style.borderBottomWidth,crossBorderBefore:e.style.borderLeftWidth,crossBorderAfter:e.style.borderRightWidth},"content-box"===e.style.boxSizing&&("number"==typeof e.flexStyle.main&&(e.flexStyle.main+=e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),"number"==typeof e.flexStyle.cross&&(e.flexStyle.cross+=e.flexStyle.crossInnerBefore+e.flexStyle.crossInnerAfter+e.flexStyle.crossBorderBefore+e.flexStyle.crossBorderAfter))),e.mainAxis=r?"inline":"block",e.crossAxis=r?"block":"inline","number"==typeof e.style.flexBasis&&(e.flexStyle.main=e.style.flexBasis+e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),e.flexStyle.mainOuter=e.flexStyle.main,e.flexStyle.crossOuter=e.flexStyle.cross,"auto"===e.flexStyle.mainOuter&&(e.flexStyle.mainOuter=e.flexStyle.mainOffset),"auto"===e.flexStyle.crossOuter&&(e.flexStyle.crossOuter=e.flexStyle.crossOffset),"number"==typeof e.flexStyle.mainBefore&&(e.flexStyle.mainOuter+=e.flexStyle.mainBefore),"number"==typeof e.flexStyle.mainAfter&&(e.flexStyle.mainOuter+=e.flexStyle.mainAfter),"number"==typeof e.flexStyle.crossBefore&&(e.flexStyle.crossOuter+=e.flexStyle.crossBefore),"number"==typeof e.flexStyle.crossAfter&&(e.flexStyle.crossOuter+=e.flexStyle.crossAfter)}},{}],4:[function(e,t,r){var n=e("../reduce");t.exports=function(r){var l;0<r.mainSpace&&(0<(l=n(r.children,function(e,t){return e+parseFloat(t.style.flexGrow)},0))&&(r.main=n(r.children,function(e,t){return"auto"===t.flexStyle.main?t.flexStyle.main=t.flexStyle.mainOffset+parseFloat(t.style.flexGrow)/l*r.mainSpace:t.flexStyle.main+=parseFloat(t.style.flexGrow)/l*r.mainSpace,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,e+t.flexStyle.mainOuter},0),r.mainSpace=0))}},{"../reduce":12}],5:[function(e,t,r){var n=e("../reduce");t.exports=function(r){var l;r.mainSpace<0&&(0<(l=n(r.children,function(e,t){return e+parseFloat(t.style.flexShrink)},0))&&(r.main=n(r.children,function(e,t){return t.flexStyle.main+=parseFloat(t.style.flexShrink)/l*r.mainSpace,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,e+t.flexStyle.mainOuter},0),r.mainSpace=0))}},{"../reduce":12}],6:[function(e,t,r){var n=e("../reduce");t.exports=function(e){var t;e.lines=[t={main:0,cross:0,children:[]}];for(var r,l=-1;r=e.children[++l];)"nowrap"===e.style.flexWrap||0===t.children.length||"auto"===e.flexStyle.main||e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter>=t.main+r.flexStyle.mainOuter?(t.main+=r.flexStyle.mainOuter,t.cross=Math.max(t.cross,r.flexStyle.crossOuter)):e.lines.push(t={main:r.flexStyle.mainOuter,cross:r.flexStyle.crossOuter,children:[]}),t.children.push(r);e.flexStyle.mainLines=n(e.lines,function(e,t){return Math.max(e,t.main)},0),e.flexStyle.crossLines=n(e.lines,function(e,t){return e+t.cross},0),"auto"===e.flexStyle.main&&(e.flexStyle.main=Math.max(e.flexStyle.mainOffset,e.flexStyle.mainLines+e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter)),"auto"===e.flexStyle.cross&&(e.flexStyle.cross=Math.max(e.flexStyle.crossOffset,e.flexStyle.crossLines+e.flexStyle.crossInnerBefore+e.flexStyle.crossInnerAfter+e.flexStyle.crossBorderBefore+e.flexStyle.crossBorderAfter)),e.flexStyle.crossSpace=e.flexStyle.cross-e.flexStyle.crossInnerBefore-e.flexStyle.crossInnerAfter-e.flexStyle.crossBorderBefore-e.flexStyle.crossBorderAfter-e.flexStyle.crossLines,e.flexStyle.mainOuter=e.flexStyle.main+e.flexStyle.mainBefore+e.flexStyle.mainAfter,e.flexStyle.crossOuter=e.flexStyle.cross+e.flexStyle.crossBefore+e.flexStyle.crossAfter}},{"../reduce":12}],7:[function(n,e,t){e.exports=function(e){for(var t,r,l=-1;t=e.children[++l];)n("./flex-direction")(t,e.style.flexDirection);for(n("./flex-direction")(e,e.style.flexDirection),n("./order")(e),n("./flexbox-lines")(e),n("./align-content")(e),l=-1;r=e.lines[++l];)r.mainSpace=e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter-r.main,n("./flex-grow")(r),n("./flex-shrink")(r),n("./margin-main")(r),n("./margin-cross")(r),n("./justify-content")(r,e.style.justifyContent,e);n("./align-items")(e)}},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(e,t,r){t.exports=function(e,t,r){var l,n,o,r=r.flexStyle.mainInnerBefore,f=-1;if("flex-end"===t)for(l=e.mainSpace,l+=r;o=e.children[++f];)o.flexStyle.mainStart=l,l+=o.flexStyle.mainOuter;else if("center"===t)for(l=e.mainSpace/2,l+=r;o=e.children[++f];)o.flexStyle.mainStart=l,l+=o.flexStyle.mainOuter;else if("space-between"===t)for(n=e.mainSpace/(e.children.length-1),l=0,l+=r;o=e.children[++f];)o.flexStyle.mainStart=l,l+=o.flexStyle.mainOuter+n;else if("space-around"===t)for(l=(n=2*e.mainSpace/(2*e.children.length))/2,l+=r;o=e.children[++f];)o.flexStyle.mainStart=l,l+=o.flexStyle.mainOuter+n;else for(l=0,l+=r;o=e.children[++f];)o.flexStyle.mainStart=l,l+=o.flexStyle.mainOuter}},{}],9:[function(e,t,r){t.exports=function(e){for(var t,r=-1;t=e.children[++r];){var l=0;"auto"===t.flexStyle.crossBefore&&++l,"auto"===t.flexStyle.crossAfter&&++l;var n=e.cross-t.flexStyle.crossOuter;"auto"===t.flexStyle.crossBefore&&(t.flexStyle.crossBefore=n/l),"auto"===t.flexStyle.crossAfter&&(t.flexStyle.crossAfter=n/l),"auto"===t.flexStyle.cross?t.flexStyle.crossOuter=t.flexStyle.crossOffset+t.flexStyle.crossBefore+t.flexStyle.crossAfter:t.flexStyle.crossOuter=t.flexStyle.cross+t.flexStyle.crossBefore+t.flexStyle.crossAfter}}},{}],10:[function(e,t,r){t.exports=function(e){for(var t,r=0,l=-1;t=e.children[++l];)"auto"===t.flexStyle.mainBefore&&++r,"auto"===t.flexStyle.mainAfter&&++r;if(0<r){for(l=-1;t=e.children[++l];)"auto"===t.flexStyle.mainBefore&&(t.flexStyle.mainBefore=e.mainSpace/r),"auto"===t.flexStyle.mainAfter&&(t.flexStyle.mainAfter=e.mainSpace/r),"auto"===t.flexStyle.main?t.flexStyle.mainOuter=t.flexStyle.mainOffset+t.flexStyle.mainBefore+t.flexStyle.mainAfter:t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter;e.mainSpace=0}}},{}],11:[function(e,t,r){var l=/^(column|row)-reverse$/;t.exports=function(e){e.children.sort(function(e,t){return e.style.order-t.style.order||e.index-t.index}),l.test(e.style.flexDirection)&&e.children.reverse()}},{}],12:[function(e,t,r){t.exports=function(e,t,r){for(var l=e.length,n=-1;++n<l;)n in e&&(r=t(r,e[n],n));return r}},{}],13:[function(e,t,r){var l=e("./read"),n=e("./write"),o=e("./readAll"),f=e("./writeAll");t.exports=function(e){f(o(e))},t.exports.read=l,t.exports.write=n,t.exports.readAll=o,t.exports.writeAll=f},{"./read":15,"./readAll":16,"./write":17,"./writeAll":18}],14:[function(e,t,r){t.exports=function(e,t,r){var l=e[t],n=String(l).match(f);if(n)return o=n[1],"px"===(n=n[2])?+o:"cm"===n?.3937*o*96:"in"===n?96*o:"mm"===n?.3937*o*96/10:"pc"===n?12*o*96/72:"pt"===n?96*o/72:"rem"===n?16*o:function(e,t){i.style.cssText="border:none!important;clip:rect(0 0 0 0)!important;display:block!important;font-size:1em!important;height:0!important;margin:0!important;padding:0!important;position:relative!important;width:"+e+"!important",t.parentNode.insertBefore(i,t.nextSibling);e=i.offsetWidth;return t.parentNode.removeChild(i),e}(l,r);var o=t.match(a);return o?"none"!==e["border"+o[1]+"Style"]&&s[l]||0:l};var f=/^([-+]?\d*\.?\d+)(%|[a-z]+)$/,i=document.createElement("div"),s={medium:4,none:0,thick:6,thin:2},a=/^border(Bottom|Left|Right|Top)Width$/},{}],15:[function(e,t,r){t.exports=function(e){var t={alignContent:"stretch",alignItems:"stretch",alignSelf:"auto",borderBottomStyle:"none",borderBottomWidth:0,borderLeftStyle:"none",borderLeftWidth:0,borderRightStyle:"none",borderRightWidth:0,borderTopStyle:"none",borderTopWidth:0,boxSizing:"content-box",display:"inline",flexBasis:"auto",flexDirection:"row",flexGrow:0,flexShrink:1,flexWrap:"nowrap",justifyContent:"flex-start",height:"auto",marginTop:0,marginRight:0,marginLeft:0,marginBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,paddingBottom:0,maxHeight:"none",maxWidth:"none",minHeight:0,minWidth:0,order:0,position:"static",width:"auto"};if(e instanceof Element){var r,l=e.hasAttribute("data-style"),n=l?e.getAttribute("data-style"):e.getAttribute("style")||"";for(r in l||e.setAttribute("data-style",n),function(e,t){for(var r in e)r in t&&!f.test(r)&&(e[r]=t[r])}(t,window.getComputedStyle&&getComputedStyle(e)||{}),function(e,t){for(var r in e){var l;r in t?e[r]=t[r]:(l=r.replace(/[A-Z]/g,"-$&").toLowerCase())in t&&(e[r]=t[l])}"-js-display"in t&&(e.display=t["-js-display"])}(t,e.currentStyle||{}),function(e,t){for(var r;r=o.exec(t);){var l=r[1].toLowerCase().replace(/-[a-z]/g,function(e){return e.slice(1).toUpperCase()});e[l]=r[2]}}(t,n),t)t[r]=i(t,r,e);n=e.getBoundingClientRect();t.offsetHeight=n.height||e.offsetHeight,t.offsetWidth=n.width||e.offsetWidth}return{element:e,style:t}};var o=/([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g,f=/^(alignSelf|height|width)$/,i=e("./getComputedLength")},{"./getComputedLength":14}],16:[function(e,t,r){function c(e){var t=e instanceof Element,r=t&&e.getAttribute("data-style"),e=t&&e.currentStyle&&e.currentStyle["-js-display"];return l.test(r)||n.test(e)}t.exports=function(e){var t=[];return function e(t,r){for(var l,n=c(t),o=[],f=-1;l=t.childNodes[++f];){var i=3===l.nodeType&&!/^\s*$/.test(l.nodeValue);n&&i&&(s=l,(l=t.insertBefore(document.createElement("flex-item"),s)).appendChild(s));var s,i=l instanceof Element;i&&(s=e(l,r),n&&((i=l.style).display="inline-block",i.position="absolute",s.style=y(l).style,o.push(s)))}var a={element:t,children:o};return n&&(a.style=y(t).style,r.push(a)),a}(e,t),t};var y=e("../read"),l=/(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i,n=/^(inline-)?flex$/i},{"../read":15}],17:[function(e,t,r){function i(e){return"string"==typeof e?e:Math.max(e,0)+"px"}t.exports=function(e){s(e);var t=e.element.style,r="inline"===e.mainAxis?["main","cross"]:["cross","main"];t.boxSizing="content-box",t.display="block",t.position="relative",t.width=i(e.flexStyle[r[0]]-e.flexStyle[r[0]+"InnerBefore"]-e.flexStyle[r[0]+"InnerAfter"]-e.flexStyle[r[0]+"BorderBefore"]-e.flexStyle[r[0]+"BorderAfter"]),t.height=i(e.flexStyle[r[1]]-e.flexStyle[r[1]+"InnerBefore"]-e.flexStyle[r[1]+"InnerAfter"]-e.flexStyle[r[1]+"BorderBefore"]-e.flexStyle[r[1]+"BorderAfter"]);for(var l,n=-1;l=e.children[++n];){var o=l.element.style,f="inline"===l.mainAxis?["main","cross"]:["cross","main"];o.boxSizing="content-box",o.display="block",o.position="absolute","auto"!==l.flexStyle[f[0]]&&(o.width=i(l.flexStyle[f[0]]-l.flexStyle[f[0]+"InnerBefore"]-l.flexStyle[f[0]+"InnerAfter"]-l.flexStyle[f[0]+"BorderBefore"]-l.flexStyle[f[0]+"BorderAfter"])),"auto"!==l.flexStyle[f[1]]&&(o.height=i(l.flexStyle[f[1]]-l.flexStyle[f[1]+"InnerBefore"]-l.flexStyle[f[1]+"InnerAfter"]-l.flexStyle[f[1]+"BorderBefore"]-l.flexStyle[f[1]+"BorderAfter"])),o.top=i(l.flexStyle[f[1]+"Start"]),o.left=i(l.flexStyle[f[0]+"Start"]),o.marginTop=i(l.flexStyle[f[1]+"Before"]),o.marginRight=i(l.flexStyle[f[0]+"After"]),o.marginBottom=i(l.flexStyle[f[1]+"After"]),o.marginLeft=i(l.flexStyle[f[0]+"Before"])}};var s=e("../flexbox")},{"../flexbox":7}],18:[function(e,t,r){t.exports=function(e){for(var t,r=-1;t=e[++r];)l(t)};var l=e("../write")},{"../write":17}]},{},[13])(13)}); \ No newline at end of file
diff --git a/assets/js/minified/frontend.min.js b/assets/js/minified/frontend.min.js
new file mode 100644
index 0000000..702201e
--- /dev/null
+++ b/assets/js/minified/frontend.min.js
@@ -0,0 +1 @@
+var astraGetParents=function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),a=t.length;0<=--a&&t.item(a)!==this;);return-1<a});for(var a=[];e&&e!==document;e=e.parentNode)(!t||e.matches(t))&&a.push(e);return a},getParents=function(e,t){console.warn("getParents() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraGetParents() instead."),astraGetParents(e,t)},astraToggleClass=function(e,t){e.classList.contains(t)?e.classList.remove(t):e.classList.add(t)},toggleClass=function(e,t){console.warn("toggleClass() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraToggleClass() instead."),astraToggleClass(e,t)};!function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}();var astraTriggerEvent=function(e,t){var a=new CustomEvent(t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});e.dispatchEvent(a)};!function(){var i=document.querySelectorAll("#masthead .main-header-menu-toggle"),c=document.getElementById("masthead"),l={},d="",u=document.body,m="";function e(e){d=e.detail.type;var t=document.querySelectorAll(".menu-toggle");if("dropdown"===d&&(document.getElementById("ast-mobile-popup").classList.remove("active","show"),g("updateHeader")),"off-canvas"===d)for(var a=0;a<t.length;a++)void 0!==t[a]&&t[a].classList.contains("toggled")&&t[a].click();n(d)}function g(e){var t="";if(null==(m=c.querySelector("#ast-mobile-header"))||"dropdown"!==m.dataset.type||"updateHeader"===e){t=(void 0!==e&&"updateHeader"!==e?e.closest(".ast-mobile-popup-inner"):document.querySelector("#ast-mobile-popup")).querySelectorAll(".menu-item-has-children");for(var a=0;a<t.length;a++){t[a].classList.remove("ast-submenu-expanded");for(var n=t[a].querySelectorAll(".sub-menu"),s=0;s<n.length;s++)n[s].style.display="none"}var o=document.querySelectorAll(".menu-toggle");document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open"),document.documentElement.classList.remove("ast-off-canvas-active");for(var l=0;l<o.length;l++)o[l].classList.remove("toggled"),o[l].style.display="flex"}}function n(e){var t=document.querySelectorAll("#ast-mobile-header .menu-toggle"),a=document.querySelectorAll("#ast-desktop-header .menu-toggle");if(void 0===e&&null!==c)if(m=c.querySelector("#ast-mobile-header"))e=m.dataset.type;else{var n=c.querySelector("#ast-desktop-header");if(!n)return;e=n.dataset.toggleType}if("off-canvas"===e){for(var s=document.getElementById("menu-toggle-close"),o=document.querySelector(".ast-mobile-popup-inner").getElementsByTagName("a"),l=0;l<t.length;l++)t[l].removeEventListener("click",astraNavMenuToggle,!1),t[l].addEventListener("click",popupTriggerClick,!1),t[l].trigger_type="mobile";for(l=0;l<a.length;l++)a[l].removeEventListener("click",astraNavMenuToggle,!1),a[l].addEventListener("click",popupTriggerClick,!1),a[l].trigger_type="desktop";for(s.addEventListener("click",function(e){document.getElementById("ast-mobile-popup").classList.remove("active","show"),g(this)}),document.addEventListener("keyup",function(e){27===e.keyCode&&(e.preventDefault(),document.getElementById("ast-mobile-popup").classList.remove("active","show"),g())}),document.addEventListener("click",function(e){e.target===document.querySelector(".ast-mobile-popup-drawer.active .ast-mobile-popup-overlay")&&(document.getElementById("ast-mobile-popup").classList.remove("active","show"),g())}),link=0,len=o.length;link<len;link++)null!==o[link].getAttribute("href")&&"#"!==o[link].getAttribute("href")&&(o[link].addEventListener("click",p,!0),o[link].headerType="off-canvas");AstraToggleSetup()}else if("dropdown"===e){var s=document.querySelector(".ast-mobile-header-content"),e=document.querySelector(".ast-desktop-header-content"),r=s.getElementsByTagName("a"),i=e.getElementsByTagName("a");for(link=0,len=r.length;link<len;link++)null!==r[link].getAttribute("href")&&"#"!==r[link].getAttribute("href")&&(r[link].addEventListener("click",p,!0),r[link].headerType="dropdown");for(link=0,len=i.length;link<len;link++)i[link].addEventListener("click",p,!0),i[link].headerType="dropdown";for(l=0;l<t.length;l++)t[l].removeEventListener("click",popupTriggerClick,!1),t[l].addEventListener("click",astraNavMenuToggle,!1),t[l].trigger_type="mobile";for(l=0;l<a.length;l++)a[l].removeEventListener("click",popupTriggerClick,!1),a[l].addEventListener("click",astraNavMenuToggle,!1),a[l].trigger_type="desktop";AstraToggleSetup()}v()}function p(e){switch(e.currentTarget.headerType){case"dropdown":for(var t=document.querySelectorAll(".menu-toggle.toggled"),a=0;a<t.length;a++)t[a].click();break;case"off-canvas":document.getElementById("menu-toggle-close").click()}}""!==(m=null!=c?c.querySelector("#ast-mobile-header"):m)&&null!==m&&(d=m.dataset.type),document.addEventListener("astMobileHeaderTypeChange",e,!1),popupTriggerClick=function(e){var t=e.currentTarget.trigger_type,e=document.getElementById("ast-mobile-popup");u.classList.contains("ast-popup-nav-open")||u.classList.add("ast-popup-nav-open"),u.classList.contains("ast-main-header-nav-open")||u.classList.add("ast-main-header-nav-open"),document.documentElement.classList.contains("ast-off-canvas-active")||document.documentElement.classList.add("ast-off-canvas-active"),"desktop"===t&&(e.querySelector(".ast-mobile-popup-content").style.display="none",e.querySelector(".ast-desktop-popup-content").style.display="block"),"mobile"===t&&(e.querySelector(".ast-desktop-popup-content").style.display="none",e.querySelector(".ast-mobile-popup-content").style.display="block"),this.style.display="none",e.classList.add("active","show")},window.addEventListener("load",function(){n()}),document.addEventListener("astLayoutWidthChanged",function(){n()}),document.addEventListener("astPartialContentRendered",function(){i=document.querySelectorAll(".main-header-menu-toggle"),u.classList.remove("ast-main-header-nav-open"),document.addEventListener("astMobileHeaderTypeChange",e,!1),n(),v()});var s=window.innerWidth;window.addEventListener("resize",function(){var e,t,a,n;"INPUT"!==document.activeElement.tagName&&(e=document.getElementById("menu-toggle-close"),t=document.querySelector(".menu-toggle.toggled"),a=document.querySelector("#masthead > #ast-desktop-header .ast-desktop-header-content"),n=document.querySelector(".elementor-editor-active"),a&&(a.style.display="none"),window.innerWidth!==s&&(t&&null===n&&t.click(),document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open")),e&&null===n&&e.click(),o(),"dropdown"===d&&AstraToggleSetup())}),document.addEventListener("DOMContentLoaded",function(){var e,t;for(AstraToggleSetup(),e=document.querySelectorAll(".navigation-accessibility"),t=0;t<=e.length-1;t++)e[t]&&function(e){if(e){var t=e.getElementsByTagName("button")[0];if(void 0!==t||void 0!==(t=e.getElementsByTagName("a")[0])){var a=e.getElementsByTagName("ul")[0];if(void 0!==a){a.setAttribute("aria-expanded","false"),-1===a.className.indexOf("nav-menu")&&(a.className+=" nav-menu"),t.onclick=function(){-1!==e.className.indexOf("toggled")?(e.className=e.className.replace(" toggled",""),t.setAttribute("aria-expanded","false"),a.setAttribute("aria-expanded","false")):(e.className+=" toggled",t.setAttribute("aria-expanded","true"),a.setAttribute("aria-expanded","true"))};for(var n=a.getElementsByTagName("a"),s=a.getElementsByTagName("ul"),o=0,l=s.length;o<l;o++)s[o].parentNode.setAttribute("aria-haspopup","true");for(o=0,l=n.length;o<l;o++)n[o].addEventListener("focus",b,!0),n[o].addEventListener("blur",b,!0),n[o].addEventListener("click",f,!0)}else t.style.display="none"}}}(e[t])});var o=function(){var e=u.style.overflow;u.style.overflow="hidden";var t=document.documentElement.clientWidth;if(u.style.overflow=e,astra.break_point<t||0===t){if(0<i.length)for(var a=0;a<i.length;a++)null!==i[a]&&i[a].classList.remove("toggled");u.classList.remove("ast-header-break-point"),u.classList.add("ast-desktop"),astraTriggerEvent(u,"astra-header-responsive-enabled")}else u.classList.add("ast-header-break-point"),u.classList.remove("ast-desktop"),astraTriggerEvent(u,"astra-header-responsive-disabled")},v=function(){var e,t,a=document.querySelectorAll(".ast-account-action-login")[0];void 0!==a&&(e=document.getElementById("ast-hb-login-close"),t=document.getElementById("ast-hb-account-login-wrap"),a.onclick=function(e){e.preventDefault(),e.stopPropagation(),t.classList.contains("show")||t.classList.add("show")},e.onclick=function(e){e.preventDefault(),t.classList.remove("show")})};o(),AstraToggleSubMenu=function(e){e.preventDefault();var t=this.parentNode;t.classList.contains("ast-submenu-expanded")&&document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")&&(this.classList.contains("ast-menu-toggle")||""!==(e=t.querySelector("a").getAttribute("href"))&&"#"!==e&&(window.location=e));for(var a=t.querySelectorAll(".menu-item-has-children"),n=0;n<a.length;n++){a[n].classList.remove("ast-submenu-expanded");var s=a[n].querySelector(".sub-menu, .children");null!==s&&(s.style.display="none")}for(var o=t.parentNode.querySelectorAll(".menu-item-has-children"),n=0;n<o.length;n++)if(o[n]!=t){o[n].classList.remove("ast-submenu-expanded");for(var l=o[n].querySelectorAll(".sub-menu"),r=0;r<l.length;r++)l[r].style.display="none"}t.classList.contains("menu-item-has-children")&&(astraToggleClass(t,"ast-submenu-expanded"),t.classList.contains("ast-submenu-expanded")?t.querySelector(".sub-menu").style.display="block":t.querySelector(".sub-menu").style.display="none")},AstraNavigationMenu=function(e){console.warn("AstraNavigationMenu() function has been deprecated since version 1.6.5 or above of Astra Theme and will be removed in the future.")},AstraToggleMenu=function(e){if(console.warn("AstraToggleMenu() function has been deprecated since version 1.6.5 or above of Astra Theme and will be removed in the future. Use AstraToggleSubMenu() instead."),0<e.length)for(var t=0;t<e.length;t++)e[t].addEventListener("click",AstraToggleSubMenu,!1)},AstraToggleSetup=function(){var e,t;if(0<(t="off-canvas"===d||"full-width"===d?(e=document.querySelectorAll("#ast-mobile-popup, #ast-mobile-header"),u.classList.contains("ast-header-break-point")?document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle"):document.querySelectorAll("#ast-desktop-header .main-header-menu-toggle")):u.classList.contains("ast-header-break-point")?(e=document.querySelectorAll("#ast-mobile-header"),document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle")):(e=document.querySelectorAll("#ast-desktop-header"),document.querySelectorAll("#ast-desktop-header .main-header-menu-toggle"))).length)for(var a=0;a<t.length;a++)if(t[a].setAttribute("data-index",a),l[a]||(l[a]=t[a],t[a].addEventListener("click",astraNavMenuToggle,!1)),void 0!==e[a])for(var n,s=0;s<e.length;s++)if(0<(n=document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")?e[s].querySelectorAll("ul.main-header-menu .menu-item-has-children > .menu-link, ul.main-header-menu .ast-menu-toggle"):e[s].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var o=0;o<n.length;o++)n[o].addEventListener("click",AstraToggleSubMenu,!1)},astraNavMenuToggle=function(e){e.preventDefault();var t=e.target.closest("#ast-desktop-header"),a=document.querySelector("#masthead > #ast-desktop-header .ast-desktop-header-content");n=null!=t&&""!==t?t.querySelector(".main-header-menu-toggle"):document.querySelector("#masthead > #ast-desktop-header .main-header-menu-toggle");t=document.querySelector("#masthead > #ast-desktop-header .ast-desktop-header-content .main-header-bar-navigation");if("desktop"===e.currentTarget.trigger_type)return null!==t&&""!==t&&void 0!==t&&(astraToggleClass(t,"toggle-on"),t.classList.contains("toggle-on")?t.style.display="block":t.style.display=""),astraToggleClass(n,"toggled"),void(n.classList.contains("toggled")?(u.classList.add("ast-main-header-nav-open"),"dropdown"===d&&(a.style.display="block")):(u.classList.remove("ast-main-header-nav-open"),a.style.display="none"));t=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-bar-navigation");i=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-menu-toggle");var n="0",a=!1;if(null!==this.closest("#ast-fixed-header")&&(t=document.querySelectorAll("#ast-fixed-header > #ast-mobile-header .main-header-bar-navigation"),i=document.querySelectorAll("#ast-fixed-header .main-header-menu-toggle"),n="0",a=!0),void 0===t[n])return!1;for(var s=t[n].querySelectorAll(".menu-item-has-children"),o=0;o<s.length;o++){s[o].classList.remove("ast-submenu-expanded");for(var l=s[o].querySelectorAll(".sub-menu"),r=0;r<l.length;r++)l[r].style.display="none"}-1!==(this.getAttribute("class")||"").indexOf("main-header-menu-toggle")&&(astraToggleClass(t[n],"toggle-on"),astraToggleClass(i[n],"toggled"),a&&1<i.length&&astraToggleClass(i[1],"toggled"),t[n].classList.contains("toggle-on")?(t[n].style.display="block",u.classList.add("ast-main-header-nav-open")):(t[n].style.display="",u.classList.remove("ast-main-header-nav-open")))},u.addEventListener("astra-header-responsive-enabled",function(){var e=document.querySelectorAll(".main-header-bar-navigation");if(0<e.length)for(var t=0;t<e.length;t++){null!=e[t]&&(e[t].classList.remove("toggle-on"),e[t].style.display="");for(var a=e[t].getElementsByClassName("sub-menu"),n=0;n<a.length;n++)a[n].style.display="";for(var s=e[t].getElementsByClassName("children"),o=0;o<s.length;o++)s[o].style.display="";for(var l=e[t].getElementsByClassName("ast-search-menu-icon"),r=0;r<l.length;r++)l[r].classList.remove("ast-dropdown-active"),l[r].style.display=""}},!1);var t,a,r;a=navigator.userAgent,r=a.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],/trident/i.test(r[1])?t=/\brv[ :]+(\d+)/g.exec(a)||[]:"Chrome"===r[1]&&null!=(t=a.match(/\bOPR|Edge\/(\d+)/))||(r=r[2]?[r[1],r[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(t=a.match(/version\/(\d+)/i))&&r.splice(1,1,t[1]),"Safari"===r[0]&&r[1]<11&&bodyElement.classList.add("ast-safari-browser-less-than-11"));for(var h=document.getElementsByClassName("astra-search-icon"),y=0;y<h.length;y++)h[y].onclick=function(e){var t;this.classList.contains("slide-search")&&(e.preventDefault(),(t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon")).classList.contains("ast-dropdown-active")?(""!==(t.querySelector(".search-field").value||"")&&t.querySelector(".search-form").submit(),t.classList.remove("ast-dropdown-active")):(t.classList.add("ast-dropdown-active"),t.querySelector(".search-field").setAttribute("autocomplete","off"),setTimeout(function(){t.querySelector(".search-field").focus()},200)))};function f(){var e=this||"";if(e&&!e.classList.contains("astra-search-icon")&&null===e.closest(".ast-builder-menu")&&-1!==new String(e).indexOf("#")){var t=e.parentNode;if(u.classList.contains("ast-header-break-point"))document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")&&t.classList.contains("menu-item-has-children")||(document.querySelector(".main-header-menu-toggle").classList.remove("toggled"),(t=document.querySelector(".main-header-bar-navigation")).classList.remove("toggle-on"),t.style.display="none",astraTriggerEvent(document.querySelector("body"),"astraMenuHashLinkClicked"));else for(;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&-1!==e.className.indexOf("focus")&&(e.className=e.className.replace(" focus","")),e=e.parentElement}}function b(){for(var e=this;-1===e.className.indexOf("navigation-accessibility");)"li"===e.tagName.toLowerCase()&&e.classList.toggle("focus"),e=e.parentElement}u.onclick=function(e){if(void 0!==e.target.classList&&!e.target.classList.contains("ast-search-menu-icon")&&0===astraGetParents(e.target,".ast-search-menu-icon").length&&0===astraGetParents(e.target,".ast-search-icon").length)for(var t=document.getElementsByClassName("ast-search-menu-icon"),a=0;a<t.length;a++)t[a].classList.remove("ast-dropdown-active")},"querySelector"in document&&"addEventListener"in window&&(u.addEventListener("mousedown",function(){u.classList.add("ast-mouse-clicked")}),u.addEventListener("keydown",function(){u.classList.remove("ast-mouse-clicked")}))}(); \ No newline at end of file
diff --git a/assets/js/minified/mobile-cart.min.js b/assets/js/minified/mobile-cart.min.js
new file mode 100644
index 0000000..66f5fc4
--- /dev/null
+++ b/assets/js/minified/mobile-cart.min.js
@@ -0,0 +1 @@
+!function(){var t,a,c,e,o=document.getElementById("astra-mobile-cart-drawer"),n=document.getElementById("masthead");function d(){var e,t,c;document.addEventListener("keyup",function(e){27===e.keyCode&&(e.preventDefault(),o.classList.remove("active"),document.documentElement.classList.remove("ast-mobile-cart-active"),updateTrigger())}),document.addEventListener("click",function(e){e.target===document.querySelector(".ast-mobile-cart-active .astra-mobile-cart-overlay")&&(o.classList.remove("active"),document.documentElement.classList.remove("ast-mobile-cart-active"))}),void 0!==a&&""!==a&&null!==a&&(e=document.querySelectorAll(".ast-mobile-header-wrap .ast-header-woo-cart"),t=document.querySelector(".ast-mobile-header-wrap .ast-header-edd-cart"),c=document.querySelector(".astra-cart-drawer-close"),0<e.length&&e.forEach(function(e){void 0!==e&&""!==e&&null!==e&&(e.addEventListener("click",cartFlyoutOpen,!1),e.cart_type="woocommerce")}),void 0!==t&&""!==t&&null!==t&&(t.addEventListener("click",cartFlyoutOpen,!1),t.cart_type="edd"),void 0!==c&&""!==c&&null!==c&&c.addEventListener("click",cartFlyoutClose,!1))}n&&(t="",a=n.querySelector("#ast-mobile-header"),c="",void 0!==o&&""!==o&&null!==o&&(t=o.querySelector(".widget_shopping_cart.woocommerce"),c=o.querySelector(".widget_edd_cart_widget")),cartFlyoutOpen=function(e){e.preventDefault();e=e.currentTarget.cart_type;"woocommerce"===e&&document.body.classList.contains("woocommerce-cart")||(o.classList.remove("active"),o.classList.remove("woocommerce-active"),o.classList.remove("edd-active"),void 0!==o&&""!==o&&null!==o&&(o.classList.add("active"),document.documentElement.classList.add("ast-mobile-cart-active"),void 0!==c&&""!==c&&null!==c&&(c.style.display="block","woocommerce"===e&&(c.style.display="none",o.classList.add("woocommerce-active"))),void 0!==t&&""!==t&&null!==t&&(t.style.display="block","edd"===e&&(t.style.display="none",o.classList.add("edd-active")))))},cartFlyoutClose=function(e){e.preventDefault(),void 0!==o&&""!==o&&null!==o&&(o.classList.remove("active"),document.documentElement.classList.remove("ast-mobile-cart-active"))},window.addEventListener("resize",function(){var e=document.querySelector(".astra-cart-drawer-close");void 0!==e&&""!==e&&null!==e&&"INPUT"!==document.activeElement.tagName&&e.click()}),window.addEventListener("load",function(){d()}),document.addEventListener("astLayoutWidthChanged",function(){d()}),document.addEventListener("astPartialContentRendered",function(){d()}),window.addEventListener("resize",function(){clearTimeout(e),e=setTimeout(function(){d(),document.dispatchEvent(new CustomEvent("astLayoutWidthChanged",{detail:{response:""}}))},50)}))}(); \ No newline at end of file
diff --git a/assets/js/minified/navigation.min.js b/assets/js/minified/navigation.min.js
new file mode 100644
index 0000000..9294d9e
--- /dev/null
+++ b/assets/js/minified/navigation.min.js
@@ -0,0 +1 @@
+var astraGetParents=function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),a=t.length;0<=--a&&t.item(a)!==this;);return-1<a});for(var a=[];e&&e!==document;e=e.parentNode)(!t||e.matches(t))&&a.push(e);return a},getParents=function(e,t){console.warn("getParents() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraGetParents() instead."),astraGetParents(e,t)},astraToggleClass=function(e,t){e.classList.contains(t)?e.classList.remove(t):e.classList.add(t)},toggleClass=function(e,t){console.warn("toggleClass() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraToggleClass() instead."),astraToggleClass(e,t)};!function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}();var astraTriggerEvent=function(e,t){var a=new CustomEvent(t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});e.dispatchEvent(a)};!function(){function e(){var e=document.querySelector("body").style.overflow;document.querySelector("body").style.overflow="hidden";var t=window.innerWidth;document.querySelector("body").style.overflow=e;var a=astra.break_point,s=document.querySelectorAll(".main-header-bar-wrap");if(0<s.length)for(var n=0;n<s.length;n++)"DIV"==s[n].tagName&&s[n].classList.contains("main-header-bar-wrap")&&(a<t?(null!=r[n]&&r[n].classList.remove("toggled"),document.body.classList.remove("ast-header-break-point"),document.body.classList.add("ast-desktop"),astraTriggerEvent(document.body,"astra-header-responsive-enabled")):(document.body.classList.add("ast-header-break-point"),document.body.classList.remove("ast-desktop"),astraTriggerEvent(document.body,"astra-header-responsive-disabled")))}var r=document.querySelectorAll(".main-header-menu-toggle"),n={};e(),AstraToggleSubMenu=function(){var e,t=this.parentNode;t.classList.contains("ast-submenu-expanded")&&document.querySelector("header.site-header").classList.contains("ast-menu-toggle-link")&&(this.classList.contains("ast-menu-toggle")||(""===(e=t.querySelector("a").getAttribute("href"))&&"#"===e||(window.location=e)));for(var a=t.querySelectorAll(".menu-item-has-children"),s=0;s<a.length;s++){a[s].classList.remove("ast-submenu-expanded");var n=a[s].querySelector(".sub-menu, .children");null!==n&&(n.style.display="none")}for(var o=t.parentNode.querySelectorAll(".menu-item-has-children"),s=0;s<o.length;s++)if(o[s]!=t){o[s].classList.remove("ast-submenu-expanded");for(var r=o[s].querySelectorAll(".sub-menu"),l=0;l<r.length;l++)r[l].style.display="none"}t.classList.contains("menu-item-has-children")&&(astraToggleClass(t,"ast-submenu-expanded"),t.classList.contains("ast-submenu-expanded")?t.querySelector(".sub-menu").style.display="block":t.querySelector(".sub-menu").style.display="none")},AstraNavigationMenu=function(e){console.warn("AstraNavigationMenu() function has been deprecated since version 1.6.5 or above of Astra Theme and will be removed in the future.")},AstraToggleMenu=function(e){if(console.warn("AstraToggleMenu() function has been deprecated since version 1.6.5 or above of Astra Theme and will be removed in the future. Use AstraToggleSubMenu() instead."),0<e.length)for(var t=0;t<e.length;t++)e[t].addEventListener("click",AstraToggleSubMenu,!1)},AstraToggleSetup=function(){var e=document.querySelectorAll(".main-header-bar-navigation");if(0<r.length)for(var t,a=0;a<r.length;a++)if(r[a].setAttribute("data-index",a),n[a]||(n[a]=r[a],r[a].addEventListener("click",astraNavMenuToggle,!1)),void 0!==e[a])if(0<(t=document.querySelector("header.site-header").classList.contains("ast-menu-toggle-link")?e[a].querySelectorAll(".ast-header-break-point .main-header-menu .menu-item-has-children > .menu-link, .ast-header-break-point ul.main-header-menu .ast-menu-toggle"):e[a].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var s=0;s<t.length;s++)t[s].addEventListener("click",AstraToggleSubMenu,!1)},astraNavMenuToggle=function(e){e.preventDefault();var t=document.querySelectorAll(".main-header-bar-navigation"),e=this.getAttribute("data-index");if(void 0===t[e])return!1;for(var a=t[e].querySelectorAll(".menu-item-has-children"),s=0;s<a.length;s++){a[s].classList.remove("ast-submenu-expanded");for(var n=a[s].querySelectorAll(".sub-menu"),o=0;o<n.length;o++)n[o].style.display="none"}-1!==(this.getAttribute("class")||"").indexOf("main-header-menu-toggle")&&(astraToggleClass(t[e],"toggle-on"),astraToggleClass(r[e],"toggled"),t[e].classList.contains("toggle-on")?(t[e].style.display="block",document.body.classList.add("ast-main-header-nav-open")):(t[e].style.display="",document.body.classList.remove("ast-main-header-nav-open")))},document.body.addEventListener("astra-header-responsive-enabled",function(){var e=document.querySelectorAll(".main-header-bar-navigation");if(0<e.length)for(var t=0;t<e.length;t++){null!=e[t]&&(e[t].classList.remove("toggle-on"),e[t].style.display="");for(var a=e[t].getElementsByClassName("sub-menu"),s=0;s<a.length;s++)a[s].style.display="";for(var n=e[t].getElementsByClassName("children"),o=0;o<n.length;o++)n[o].style.display="";for(var r=e[t].getElementsByClassName("ast-search-menu-icon"),l=0;l<r.length;l++)r[l].classList.remove("ast-dropdown-active"),r[l].style.display=""}},!1),window.addEventListener("resize",function(){"INPUT"!==document.activeElement.tagName&&(e(),AstraToggleSetup())}),document.addEventListener("DOMContentLoaded",function(){var e,t;for(AstraToggleSetup(),e=document.querySelectorAll(".navigation-accessibility"),t=0;t<=e.length-1;t++)e[t]&&function(e){if(e){var t=e.getElementsByTagName("button")[0];if(void 0!==t||void 0!==(t=e.getElementsByTagName("a")[0])){var a=e.getElementsByTagName("ul")[0];if(void 0!==a){a.setAttribute("aria-expanded","false"),-1===a.className.indexOf("nav-menu")&&(a.className+=" nav-menu"),t.onclick=function(){-1!==e.className.indexOf("toggled")?(e.className=e.className.replace(" toggled",""),t.setAttribute("aria-expanded","false"),a.setAttribute("aria-expanded","false")):(e.className+=" toggled",t.setAttribute("aria-expanded","true"),a.setAttribute("aria-expanded","true"))};for(var s=a.getElementsByTagName("a"),n=a.getElementsByTagName("ul"),o=0,r=n.length;o<r;o++)n[o].parentNode.setAttribute("aria-haspopup","true");for(o=0,r=s.length;o<r;o++)s[o].addEventListener("focus",d,!0),s[o].addEventListener("blur",u,!0),s[o].addEventListener("click",c,!0)}else t.style.display="none"}}}(e[t])});var t,a,s;a=navigator.userAgent,s=a.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],/trident/i.test(s[1])?t=/\brv[ :]+(\d+)/g.exec(a)||[]:"Chrome"===s[1]&&null!=(t=a.match(/\bOPR|Edge\/(\d+)/))||(s=s[2]?[s[1],s[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(t=a.match(/version\/(\d+)/i))&&s.splice(1,1,t[1]),t=document.body,"Safari"===s[0]&&s[1]<11&&t.classList.add("ast-safari-browser-less-than-11"));for(var o,l=document.getElementsByClassName("astra-search-icon"),i=0;i<l.length;i++)l[i].onclick=function(e){var t;this.classList.contains("slide-search")&&(e.preventDefault(),(t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon")).classList.contains("ast-dropdown-active")?(""!==(t.querySelector(".search-field").value||"")&&t.querySelector(".search-form").submit(),t.classList.remove("ast-dropdown-active")):(t.classList.add("ast-dropdown-active"),t.querySelector(".search-field").setAttribute("autocomplete","off"),setTimeout(function(){t.querySelector(".search-field").focus()},200)))};function c(){var e=this||"";if(e&&!e.classList.contains("astra-search-icon")&&-1!==new String(e).indexOf("#")){var t=e.parentNode;if(!document.body.classList.contains("ast-header-break-point")||document.querySelector("header.site-header").classList.contains("ast-menu-toggle-link")&&t.classList.contains("menu-item-has-children"))for(;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&-1!==e.className.indexOf("focus")&&(e.className=e.className.replace(" focus","")),e=e.parentElement;else{document.querySelector(".main-header-menu-toggle").classList.remove("toggled");var a=document.querySelector(".main-header-bar-navigation");a.classList.remove("toggle-on"),a.style.display="none";var s=document.querySelector(".menu-below-header-toggle"),t=document.querySelector(".ast-below-header"),a=document.querySelector(".ast-below-header-actual-nav");s&&t&&a&&(s.classList.remove("toggled"),t.classList.remove("toggle-on"),a.style.display="none");s=document.querySelector(".menu-above-header-toggle"),t=document.querySelector(".ast-above-header"),a=document.querySelector(".ast-above-header-navigation");s&&t&&a&&(s.classList.remove("toggled"),t.classList.remove("toggle-on"),a.style.display="none"),astraTriggerEvent(document.querySelector("body"),"astraMenuHashLinkClicked")}}}function d(){for(var e=this;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&(-1!==e.className.indexOf("focus")?e.className=e.className.replace(" focus",""):e.className+=" focus"),e=e.parentElement}function u(){var e=this||"";if(-1===new String(e).indexOf("#")||!document.body.classList.contains("ast-mouse-clicked"))for(;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&(-1!==e.className.indexOf("focus")?e.className=e.className.replace(" focus",""):e.className+=" focus"),e=e.parentElement}document.body.onclick=function(e){if(void 0!==e.target.classList&&!e.target.classList.contains("ast-search-menu-icon")&&0===astraGetParents(e.target,".ast-search-menu-icon").length&&0===astraGetParents(e.target,".ast-search-icon").length)for(var t=document.getElementsByClassName("ast-search-menu-icon"),a=0;a<t.length;a++)t[a].classList.remove("ast-dropdown-active")},"querySelector"in document&&"addEventListener"in window&&((o=document.body).addEventListener("mousedown",function(){o.classList.add("ast-mouse-clicked")}),o.addEventListener("keydown",function(){o.classList.remove("ast-mouse-clicked")}))}(); \ No newline at end of file
diff --git a/assets/js/minified/skip-link-focus-fix.min.js b/assets/js/minified/skip-link-focus-fix.min.js
new file mode 100644
index 0000000..f85253c
--- /dev/null
+++ b/assets/js/minified/skip-link-focus-fix.min.js
@@ -0,0 +1 @@
+!function(){var e=-1<navigator.userAgent.toLowerCase().indexOf("webkit"),t=-1<navigator.userAgent.toLowerCase().indexOf("opera"),n=-1<navigator.userAgent.toLowerCase().indexOf("msie");(e||t||n)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var e,t=location.hash.substring(1);/^[A-z0-9_-]+$/.test(t)&&(e=document.getElementById(t))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())},!1)}(); \ No newline at end of file
diff --git a/assets/js/minified/style.min.js b/assets/js/minified/style.min.js
new file mode 100644
index 0000000..8c96dae
--- /dev/null
+++ b/assets/js/minified/style.min.js
@@ -0,0 +1 @@
+var astraGetParents=function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),a=t.length;0<=--a&&t.item(a)!==this;);return-1<a});for(var a=[];e&&e!==document;e=e.parentNode)t&&!e.matches(t)||a.push(e);return a},getParents=function(e,t){console.warn("getParents() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraGetParents() instead."),astraGetParents(e,t)},astraToggleClass=function(e,t){e.classList.contains(t)?e.classList.remove(t):e.classList.add(t)},toggleClass=function(e,t){console.warn("toggleClass() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraToggleClass() instead."),astraToggleClass(e,t)};!function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}();var astraTriggerEvent=function(e,t){var a=new CustomEvent(t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});e.dispatchEvent(a)};!function(){function e(){var e=document.querySelector("body").style.overflow;document.querySelector("body").style.overflow="hidden";var t=window.innerWidth;document.querySelector("body").style.overflow=e;var a=astra.break_point,s=document.querySelectorAll(".main-header-bar-wrap");if(0<s.length)for(var n=0;n<s.length;n++)"DIV"==s[n].tagName&&s[n].classList.contains("main-header-bar-wrap")&&(a<t?(null!=r[n]&&r[n].classList.remove("toggled"),document.body.classList.remove("ast-header-break-point"),document.body.classList.add("ast-desktop"),astraTriggerEvent(document.body,"astra-header-responsive-enabled")):(document.body.classList.add("ast-header-break-point"),document.body.classList.remove("ast-desktop"),astraTriggerEvent(document.body,"astra-header-responsive-disabled")))}var t,a,s,r=document.querySelectorAll(".main-header-menu-toggle"),n={};e(),AstraToggleSubMenu=function(){var e,t=this.parentNode;t.classList.contains("ast-submenu-expanded")&&document.querySelector("header.site-header").classList.contains("ast-menu-toggle-link")&&(this.classList.contains("ast-menu-toggle")||""===(e=t.querySelector("a").getAttribute("href"))&&"#"===e||(window.location=e));for(var a=t.querySelectorAll(".menu-item-has-children"),s=0;s<a.length;s++){a[s].classList.remove("ast-submenu-expanded");var n=a[s].querySelector(".sub-menu, .children");null!==n&&(n.style.display="none")}for(var o=t.parentNode.querySelectorAll(".menu-item-has-children"),s=0;s<o.length;s++)if(o[s]!=t){o[s].classList.remove("ast-submenu-expanded");for(var r=o[s].querySelectorAll(".sub-menu"),l=0;l<r.length;l++)r[l].style.display="none"}t.classList.contains("menu-item-has-children")&&(astraToggleClass(t,"ast-submenu-expanded"),t.classList.contains("ast-submenu-expanded")?t.querySelector(".sub-menu").style.display="block":t.querySelector(".sub-menu").style.display="none")},AstraNavigationMenu=function(e){console.warn("AstraNavigationMenu() function has been deprecated since version 1.6.5 or above of Astra Theme and will be removed in the future.")},AstraToggleMenu=function(e){if(console.warn("AstraToggleMenu() function has been deprecated since version 1.6.5 or above of Astra Theme and will be removed in the future. Use AstraToggleSubMenu() instead."),0<e.length)for(var t=0;t<e.length;t++)e[t].addEventListener("click",AstraToggleSubMenu,!1)},AstraToggleSetup=function(){var e=document.querySelectorAll(".main-header-bar-navigation");if(0<r.length)for(var t,a=0;a<r.length;a++)if(r[a].setAttribute("data-index",a),n[a]||(n[a]=r[a],r[a].addEventListener("click",astraNavMenuToggle,!1)),void 0!==e[a]&&0<(t=document.querySelector("header.site-header").classList.contains("ast-menu-toggle-link")?e[a].querySelectorAll(".ast-header-break-point .main-header-menu .menu-item-has-children > .menu-link, .ast-header-break-point ul.main-header-menu .ast-menu-toggle"):e[a].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var s=0;s<t.length;s++)t[s].addEventListener("click",AstraToggleSubMenu,!1)},astraNavMenuToggle=function(e){e.preventDefault();var t=document.querySelectorAll(".main-header-bar-navigation");if(void 0===t[e=this.getAttribute("data-index")])return!1;for(var a=t[e].querySelectorAll(".menu-item-has-children"),s=0;s<a.length;s++){a[s].classList.remove("ast-submenu-expanded");for(var n=a[s].querySelectorAll(".sub-menu"),o=0;o<n.length;o++)n[o].style.display="none"}-1!==(this.getAttribute("class")||"").indexOf("main-header-menu-toggle")&&(astraToggleClass(t[e],"toggle-on"),astraToggleClass(r[e],"toggled"),t[e].classList.contains("toggle-on")?(t[e].style.display="block",document.body.classList.add("ast-main-header-nav-open")):(t[e].style.display="",document.body.classList.remove("ast-main-header-nav-open")))},document.body.addEventListener("astra-header-responsive-enabled",function(){var e=document.querySelectorAll(".main-header-bar-navigation");if(0<e.length)for(var t=0;t<e.length;t++){null!=e[t]&&(e[t].classList.remove("toggle-on"),e[t].style.display="");for(var a=e[t].getElementsByClassName("sub-menu"),s=0;s<a.length;s++)a[s].style.display="";for(var n=e[t].getElementsByClassName("children"),o=0;o<n.length;o++)n[o].style.display="";for(var r=e[t].getElementsByClassName("ast-search-menu-icon"),l=0;l<r.length;l++)r[l].classList.remove("ast-dropdown-active"),r[l].style.display=""}},!1),window.addEventListener("resize",function(){"INPUT"!==document.activeElement.tagName&&(e(),AstraToggleSetup())}),document.addEventListener("DOMContentLoaded",function(){var e,t;for(AstraToggleSetup(),e=document.querySelectorAll(".navigation-accessibility"),t=0;t<=e.length-1;t++)e[t]&&function(e){if(e){var t=e.getElementsByTagName("button")[0];if(void 0!==t||void 0!==(t=e.getElementsByTagName("a")[0])){var a=e.getElementsByTagName("ul")[0];if(void 0!==a){a.setAttribute("aria-expanded","false"),-1===a.className.indexOf("nav-menu")&&(a.className+=" nav-menu"),t.onclick=function(){-1!==e.className.indexOf("toggled")?(e.className=e.className.replace(" toggled",""),t.setAttribute("aria-expanded","false"),a.setAttribute("aria-expanded","false")):(e.className+=" toggled",t.setAttribute("aria-expanded","true"),a.setAttribute("aria-expanded","true"))};for(var s=a.getElementsByTagName("a"),n=a.getElementsByTagName("ul"),o=0,r=n.length;o<r;o++)n[o].parentNode.setAttribute("aria-haspopup","true");for(o=0,r=s.length;o<r;o++)s[o].addEventListener("focus",d,!0),s[o].addEventListener("blur",u,!0),s[o].addEventListener("click",c,!0)}else t.style.display="none"}}}(e[t])}),s=(a=navigator.userAgent).match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],/trident/i.test(s[1])?t=/\brv[ :]+(\d+)/g.exec(a)||[]:"Chrome"===s[1]&&null!=(t=a.match(/\bOPR|Edge\/(\d+)/))||(s=s[2]?[s[1],s[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(t=a.match(/version\/(\d+)/i))&&s.splice(1,1,t[1]),t=document.body,"Safari"===s[0]&&s[1]<11&&t.classList.add("ast-safari-browser-less-than-11"));for(var o,l=document.getElementsByClassName("astra-search-icon"),i=0;i<l.length;i++)l[i].onclick=function(e){var t;this.classList.contains("slide-search")&&(e.preventDefault(),(t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon")).classList.contains("ast-dropdown-active")?(""!==(t.querySelector(".search-field").value||"")&&t.querySelector(".search-form").submit(),t.classList.remove("ast-dropdown-active")):(t.classList.add("ast-dropdown-active"),t.querySelector(".search-field").setAttribute("autocomplete","off"),setTimeout(function(){t.querySelector(".search-field").focus()},200)))};function c(){var e=this||"";if(e&&!e.classList.contains("astra-search-icon")&&-1!==new String(e).indexOf("#")){var t=e.parentNode;if(!document.body.classList.contains("ast-header-break-point")||document.querySelector("header.site-header").classList.contains("ast-menu-toggle-link")&&t.classList.contains("menu-item-has-children"))for(;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&-1!==e.className.indexOf("focus")&&(e.className=e.className.replace(" focus","")),e=e.parentElement;else{document.querySelector(".main-header-menu-toggle").classList.remove("toggled"),(s=document.querySelector(".main-header-bar-navigation")).classList.remove("toggle-on"),s.style.display="none";var a=document.querySelector(".menu-below-header-toggle"),t=document.querySelector(".ast-below-header"),s=document.querySelector(".ast-below-header-actual-nav");a&&t&&s&&(a.classList.remove("toggled"),t.classList.remove("toggle-on"),s.style.display="none"),a=document.querySelector(".menu-above-header-toggle"),t=document.querySelector(".ast-above-header"),s=document.querySelector(".ast-above-header-navigation"),a&&t&&s&&(a.classList.remove("toggled"),t.classList.remove("toggle-on"),s.style.display="none"),astraTriggerEvent(document.querySelector("body"),"astraMenuHashLinkClicked")}}}function d(){for(var e=this;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&(-1!==e.className.indexOf("focus")?e.className=e.className.replace(" focus",""):e.className+=" focus"),e=e.parentElement}function u(){var e=this||"";if(-1===new String(e).indexOf("#")||!document.body.classList.contains("ast-mouse-clicked"))for(;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&(-1!==e.className.indexOf("focus")?e.className=e.className.replace(" focus",""):e.className+=" focus"),e=e.parentElement}document.body.onclick=function(e){if(void 0!==e.target.classList&&!e.target.classList.contains("ast-search-menu-icon")&&0===astraGetParents(e.target,".ast-search-menu-icon").length&&0===astraGetParents(e.target,".ast-search-icon").length)for(var t=document.getElementsByClassName("ast-search-menu-icon"),a=0;a<t.length;a++)t[a].classList.remove("ast-dropdown-active")},"querySelector"in document&&"addEventListener"in window&&((o=document.body).addEventListener("mousedown",function(){o.classList.add("ast-mouse-clicked")}),o.addEventListener("keydown",function(){o.classList.remove("ast-mouse-clicked")}))}(); \ No newline at end of file
diff --git a/assets/js/minified/wp-color-picker-alpha.min.js b/assets/js/minified/wp-color-picker-alpha.min.js
new file mode 100644
index 0000000..ae2a079
--- /dev/null
+++ b/assets/js/minified/wp-color-picker-alpha.min.js
@@ -0,0 +1 @@
+!function(n){var l,o,e,a,i,s,p,c;n.wp.wpColorPicker.prototype._hasAlpha||(l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==",o='<div class="wp-picker-holder" />',e='<div class="wp-picker-container" />',a='<input type="button" class="button button-small" />',(i=void 0!==wpColorPickerL10n.current)?s='<a tabindex="0" class="wp-color-result" />':(s='<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>',p="<label></label>",c='<span class="screen-reader-text"></span>'),Color.fn.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var t=parseInt(this._color,10).toString(16);return this.error?"":(t.length<6&&(t=("00000"+t).substr(-6)),"#"+t)},n.widget("wp.wpColorPicker",n.wp.wpColorPicker,{_hasAlpha:!0,_create:function(){if(n.support.iris){var r=this,t=r.element;if(n.extend(r.options,t.data()),"hue"===r.options.type)return r._createHueOnly();r.close=n.proxy(r.close,r),r.initialValue=t.val(),t.addClass("wp-color-picker"),i?(t.hide().wrap(e),r.wrap=t.parent(),r.toggler=n(s).insertBefore(t).css({backgroundColor:r.initialValue}).attr("title",wpColorPickerL10n.pick).attr("data-current",wpColorPickerL10n.current),r.pickerContainer=n(o).insertAfter(t),r.button=n(a).addClass("hidden")):(t.parent("label").length||(t.wrap(p),r.wrappingLabelText=n(c).insertBefore(t).text(wpColorPickerL10n.defaultLabel)),r.wrappingLabel=t.parent(),r.wrappingLabel.wrap(e),r.wrap=r.wrappingLabel.parent(),r.toggler=n(s).insertBefore(r.wrappingLabel).css({backgroundColor:r.initialValue}),r.toggler.find(".wp-color-result-text").text(wpColorPickerL10n.pick),r.pickerContainer=n(o).insertAfter(r.wrappingLabel),r.button=n(a)),r.options.defaultColor?(r.button.addClass("wp-picker-default").val(wpColorPickerL10n.defaultString),i||r.button.attr("aria-label",wpColorPickerL10n.defaultAriaLabel)):(r.button.addClass("wp-picker-clear").val(wpColorPickerL10n.clear),i||r.button.attr("aria-label",wpColorPickerL10n.clearAriaLabel)),i?t.wrap('<span class="wp-picker-input-wrap" />').after(r.button):(r.wrappingLabel.wrap('<span class="wp-picker-input-wrap hidden" />').after(r.button),r.inputWrapper=t.closest(".wp-picker-input-wrap")),t.iris({target:r.pickerContainer,hide:r.options.hide,width:r.options.width,mode:r.options.mode,palettes:r.options.palettes,change:function(t,o){r.options.alpha?(r.toggler.css({"background-image":"url("+l+")"}),i?r.toggler.html('<span class="color-alpha" />'):(r.toggler.css({position:"relative"}),0==r.toggler.find("span.color-alpha").length&&r.toggler.append('<span class="color-alpha" />')),r.toggler.find("span.color-alpha").css({width:"30px",height:"28px",position:"absolute",top:0,left:0,"border-top-left-radius":"2px","border-bottom-left-radius":"2px",background:o.color.toString()})):r.toggler.css({backgroundColor:o.color.toString()}),n.isFunction(r.options.change)&&r.options.change.call(this,t,o)}}),t.val(r.initialValue),r._addListeners(),r.options.hide||r.toggler.click()}},_addListeners:function(){var o=this;o.wrap.on("click.wpcolorpicker",function(t){t.stopPropagation()}),o.toggler.click(function(){o.toggler.hasClass("wp-picker-open")?o.close():o.open()}),o.element.on("change",function(t){""!==n(this).val()&&!o.element.hasClass("iris-error")||(o.options.alpha?(i&&o.toggler.removeAttr("style"),o.toggler.find("span.color-alpha").css("backgroundColor","")):o.toggler.css("backgroundColor",""),n.isFunction(o.options.clear)&&o.options.clear.call(this,t))}),o.button.on("click",function(t){n(this).hasClass("wp-picker-clear")?(o.element.val(""),o.options.alpha?(i&&o.toggler.removeAttr("style"),o.toggler.find("span.color-alpha").css("backgroundColor","")):o.toggler.css("backgroundColor",""),n.isFunction(o.options.clear)&&o.options.clear.call(this,t),o.element.trigger("change")):n(this).hasClass("wp-picker-default")&&o.element.val(o.options.defaultColor).change()})}}),n.widget("a8c.iris",n.a8c.iris,{_create:function(){var r,t,o,e,a,i;this._super(),this.options.alpha=this.element.data("alpha")||!1,this.element.is(":input")||(this.options.alpha=!1),void 0!==this.options.alpha&&this.options.alpha&&(t=(r=this).element,e=(o=n('<div class="iris-strip iris-slider iris-alpha-slider"><div class="iris-slider-offset iris-slider-offset-alpha"></div></div>').appendTo(r.picker.find(".iris-picker-inner"))).find(".iris-slider-offset-alpha"),e={aContainer:o,aSlider:e},void 0!==t.data("custom-width")?r.options.customWidth=parseInt(t.data("custom-width"))||0:r.options.customWidth=100,r.options.defaultWidth=t.width(),(r._color._alpha<1||-1!=r._color.toString().indexOf("rgb"))&&t.width(parseInt(88)),n.each(e,function(t,o){r.controls[t]=o}),r.controls.square.css({"margin-right":"0"}),e=r.picker.width()-r.controls.square.width()-20,i=e/2-(a=e/6),n.each(["aContainer","strip"],function(t,o){r.controls[o].width(i).css({"margin-left":a+"px"})}),r._initControls(),r._change())},_initControls:function(){var r;this._super(),this.options.alpha&&(r=this).controls.aSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*r._color._alpha),slide:function(t,o){r._color._alpha=parseFloat(o.value/100),r._change.apply(r,arguments)}})},_change:function(){this._super();var t,o,r,e,a,i=this,n=i.element;this.options.alpha&&(t=i.controls,o=parseInt(100*i._color._alpha),r=["rgb("+(a=i._color.toRgb()).r+","+a.g+","+a.b+") 0%","rgba("+a.r+","+a.g+","+a.b+", 0) 100%"],e=i.options.defaultWidth,i.options.customWidth,a=i.picker.closest(".wp-picker-container").find(".wp-color-result"),t.aContainer.css({background:"linear-gradient(to bottom, "+r.join(", ")+"), url("+l+")"}),a.hasClass("wp-picker-open")&&(t.aSlider.slider("value",o),i._color._alpha<1?(t.strip.attr("style",t.strip.attr("style").replace(/rgba\(([0-9]+,)(\s+)?([0-9]+,)(\s+)?([0-9]+)(,(\s+)?[0-9\.]+)\)/g,"rgb($1$3$5)")),n.width(parseInt(88))):n.width(e))),n.data("reset-alpha")&&i.picker.find(".iris-palette-container").on("click.palette",".iris-palette",function(){i._color._alpha=1,i.active="external",i._change()}),n.trigger("change")},_addInputListeners:function(e){function t(t){var o=new Color(e.val()),r=e.val();e.removeClass("iris-error"),o.error?""!==r&&e.addClass("iris-error"):o.toString()!==a._color.toString()&&("keyup"===t.type&&r.match(/^[0-9a-fA-F]{3}$/)||a._setOption("color",o.toString()))}var a=this;e.on("change",t).on("keyup",a._debounce(t,100)),a.options.hide&&e.on("focus",function(){a.show()})}}))}(jQuery),jQuery(document).ready(function(t){t(".color-picker").wpColorPicker()}); \ No newline at end of file
diff --git a/assets/js/unminified/customizer-controls-toggle.js b/assets/js/unminified/customizer-controls-toggle.js
new file mode 100644
index 0000000..0cdfa01
--- /dev/null
+++ b/assets/js/unminified/customizer-controls-toggle.js
@@ -0,0 +1,134 @@
+/**
+ * Customizer controls toggles
+ *
+ * @package Astra
+ */
+
+( function( $ ) {
+
+
+ /**
+ * Trigger hooks
+ */
+ ASTControlTrigger = {
+
+ /**
+ * Trigger a hook.
+ *
+ * @since 1.0.0
+ * @method triggerHook
+ * @param {String} hook The hook to trigger.
+ * @param {Array} args An array of args to pass to the hook.
+ */
+ triggerHook: function( hook, args )
+ {
+ $( 'body' ).trigger( 'astra-control-trigger.' + hook, args );
+ },
+
+ /**
+ * Add a hook.
+ *
+ * @since 1.0.0
+ * @method addHook
+ * @param {String} hook The hook to add.
+ * @param {Function} callback A function to call when the hook is triggered.
+ */
+ addHook: function( hook, callback )
+ {
+ $( 'body' ).on( 'astra-control-trigger.' + hook, callback );
+ },
+
+ /**
+ * Remove a hook.
+ *
+ * @since 1.0.0
+ * @method removeHook
+ * @param {String} hook The hook to remove.
+ * @param {Function} callback The callback function to remove.
+ */
+ removeHook: function( hook, callback )
+ {
+ $( 'body' ).off( 'astra-control-trigger.' + hook, callback );
+ },
+ };
+
+ /**
+ * Helper class that contains data for showing and hiding controls.
+ *
+ * @since 1.0.0
+ * @class ASTCustomizerToggles
+ */
+ ASTCustomizerToggles = {
+
+ 'astra-settings[display-site-title-responsive]' : [],
+
+ 'astra-settings[display-site-tagline-responsive]' : [],
+
+ 'astra-settings[ast-header-retina-logo]' :[],
+
+ 'custom_logo' : [],
+
+ /**
+ * Section - Header
+ *
+ * @link ?autofocus[section]=section-header
+ */
+
+ /**
+ * Layout 2
+ */
+ // Layout 2 > Right Section > Text / HTML
+ // Layout 2 > Right Section > Search Type
+ // Layout 2 > Right Section > Search Type > Search Box Type.
+ 'astra-settings[header-main-rt-section]' : [],
+
+
+ 'astra-settings[hide-custom-menu-mobile]' :[],
+
+
+ /**
+ * Blog
+ */
+ 'astra-settings[blog-width]' :[],
+
+ 'astra-settings[blog-post-structure]' :[],
+
+ /**
+ * Blog Single
+ */
+ 'astra-settings[blog-single-post-structure]' : [],
+
+ 'astra-settings[blog-single-width]' : [],
+
+ 'astra-settings[blog-single-meta]' :[],
+
+
+ /**
+ * Small Footer
+ */
+ 'astra-settings[footer-sml-layout]' : [],
+
+ 'astra-settings[footer-sml-section-1]' :[],
+
+ 'astra-settings[footer-sml-section-2]' :[],
+
+ 'astra-settings[footer-sml-divider]' :[],
+
+ 'astra-settings[header-main-sep]' :[],
+
+ 'astra-settings[disable-primary-nav]' :[],
+
+ /**
+ * Footer Widgets
+ */
+ 'astra-settings[footer-adv]' :[],
+
+ 'astra-settings[shop-archive-width]' :[],
+
+ 'astra-settings[mobile-header-logo]' :[],
+
+ 'astra-settings[different-mobile-logo]' :[],
+
+ };
+
+} )( jQuery ); \ No newline at end of file
diff --git a/assets/js/unminified/customizer-controls.js b/assets/js/unminified/customizer-controls.js
new file mode 100644
index 0000000..f074bb5
--- /dev/null
+++ b/assets/js/unminified/customizer-controls.js
@@ -0,0 +1,96 @@
+/**
+ * Customizer controls
+ *
+ * @package Astra
+ */
+
+( function( $ ) {
+
+ /* Internal shorthand */
+ var api = wp.customize;
+
+ /**
+ * Helper class for the main Customizer interface.
+ *
+ * @since 1.0.0
+ * @class ASTCustomizer
+ */
+ ASTCustomizer = {
+
+ controls : {},
+
+ /**
+ * Initializes our custom logic for the Customizer.
+ *
+ * @since 1.0.0
+ * @method init
+ */
+ init: function()
+ {
+ ASTCustomizer._initToggles();
+ },
+
+ /**
+ * Initializes the logic for showing and hiding controls
+ * when a setting changes.
+ *
+ * @since 1.0.0
+ * @access private
+ * @method _initToggles
+ */
+ _initToggles: function()
+ {
+
+ // Trigger the Adv Tab Click trigger.
+ ASTControlTrigger.triggerHook( 'astra-toggle-control', api );
+
+ // Loop through each setting.
+ $.each( ASTCustomizerToggles, function( settingId, toggles ) {
+
+ // Get the setting object.
+ api( settingId, function( setting ) {
+
+ // Loop though the toggles for the setting.
+ $.each( toggles, function( i, toggle ) {
+
+ // Loop through the controls for the toggle.
+ $.each( toggle.controls, function( k, controlId ) {
+
+ // Get the control object.
+ api.control( controlId, function( control ) {
+
+ // Define the visibility callback.
+ var visibility = function( to ) {
+ control.container.toggle( toggle.callback( to ) );
+ };
+
+ // Init visibility.
+ visibility( setting.get() );
+
+ // Bind the visibility callback to the setting.
+ setting.bind( visibility );
+ });
+ });
+ });
+ });
+
+ });
+ }
+ };
+
+ $( function() { ASTCustomizer.init(); } );
+
+})( jQuery );
+
+
+( function( api ) {
+ // Extends our custom astra-pro section.
+ api.sectionConstructor['astra-pro'] = api.Section.extend( {
+ // No events for this type of section.
+ attachEvents: function () {},
+ // Always make the section active.
+ isContextuallyActive: function () {
+ return true;
+ }
+ } );
+} )( wp.customize ); \ No newline at end of file
diff --git a/assets/js/unminified/customizer-preview.js b/assets/js/unminified/customizer-preview.js
new file mode 100644
index 0000000..34e2d7a
--- /dev/null
+++ b/assets/js/unminified/customizer-preview.js
@@ -0,0 +1,1587 @@
+/**
+ * This file adds some LIVE to the Theme Customizer live preview. To leverage
+ * this, set your custom settings to 'postMessage' and then add your handling
+ * here. Your javascript should grab settings from customizer controls, and
+ * then make any necessary changes to the page using jQuery.
+ *
+ * @package Astra
+ */
+
+/**
+ * Generate font size in PX & REM
+ */
+function astra_font_size_rem( size, with_rem, device ) {
+
+ var css = '';
+
+ if( size != '' ) {
+
+ var device = ( typeof device != undefined ) ? device : 'desktop';
+
+ // font size with 'px'.
+ css = 'font-size: ' + size + 'px;';
+
+ // font size with 'rem'.
+ if ( with_rem ) {
+ var body_font_size = wp.customize( 'astra-settings[font-size-body]' ).get();
+
+ body_font_size['desktop'] = ( body_font_size['desktop'] != '' ) ? body_font_size['desktop'] : 15;
+ body_font_size['tablet'] = ( body_font_size['tablet'] != '' ) ? body_font_size['tablet'] : body_font_size['desktop'];
+ body_font_size['mobile'] = ( body_font_size['mobile'] != '' ) ? body_font_size['mobile'] : body_font_size['tablet'];
+
+ css += 'font-size: ' + ( size / body_font_size[device] ) + 'rem;';
+ }
+ }
+
+ return css;
+}
+
+
+/**
+ * Apply CSS for the element
+ */
+function astra_color_responsive_css( addon, control, css_property, selector ) {
+
+ wp.customize( control, function( value ) {
+ value.bind( function( value ) {
+ if ( value.desktop || value.mobile || value.tablet ) {
+ // Remove <style> first!
+ control = control.replace( '[', '-' );
+ control = control.replace( ']', '' );
+ jQuery( 'style#' + control + '-' + addon ).remove();
+
+ var DeskVal = '',
+ TabletFontVal = '',
+ MobileVal = '';
+
+ if ( '' != value.desktop ) {
+ DeskVal = css_property + ': ' + value.desktop;
+ }
+ if ( '' != value.tablet ) {
+ TabletFontVal = css_property + ': ' + value.tablet;
+ }
+ if ( '' != value.mobile ) {
+ MobileVal = css_property + ': ' + value.mobile;
+ }
+
+ // Concat and append new <style>.
+ jQuery( 'head' ).append(
+ '<style id="' + control + '-' + addon + '">'
+ + selector + ' { ' + DeskVal + ' }'
+ + '@media (max-width: 768px) {' + selector + ' { ' + TabletFontVal + ' } }'
+ + '@media (max-width: 544px) {' + selector + ' { ' + MobileVal + ' } }'
+ + '</style>'
+ );
+
+ } else {
+ jQuery( 'style#' + control + '-' + addon ).remove();
+ }
+
+ } );
+ } );
+}
+
+
+/**
+ * Responsive Font Size CSS
+ */
+function astra_responsive_font_size( control, selector ) {
+
+ wp.customize( control, function( value ) {
+ value.bind( function( value ) {
+
+ if ( value.desktop || value.mobile || value.tablet ) {
+ // Remove <style> first!
+ control = control.replace( '[', '-' );
+ control = control.replace( ']', '' );
+
+ var fontSize = '',
+ tabletFontSize = '',
+ mobileFontSize = '',
+ css_property = 'font-size';
+
+ jQuery( 'style#' + control + '-' + css_property ).remove();
+
+ if ( '' != value.desktop ) {
+ fontSize = 'font-size: ' + value.desktop + value['desktop-unit'];
+ }
+ if ( '' != value.tablet ) {
+ tabletFontSize = 'font-size: ' + value.tablet + value['tablet-unit'];
+ }
+ if ( '' != value.mobile ) {
+ mobileFontSize = 'font-size: ' + value.mobile + value['mobile-unit'];
+ }
+
+ if( value['desktop-unit'] == 'px' ) {
+ fontSize = astra_font_size_rem( value.desktop, true, 'desktop' );
+ }
+
+ // Concat and append new <style>.
+ jQuery( 'head' ).append(
+ '<style id="' + control + '-' + css_property + '">'
+ + selector + ' { ' + fontSize + ' }'
+ + '@media (max-width: 768px) {' + selector + ' { ' + tabletFontSize + ' } }'
+ + '@media (max-width: 544px) {' + selector + ' { ' + mobileFontSize + ' } }'
+ + '</style>'
+ );
+
+ } else {
+ jQuery( 'style#' + control + '-font-size' ).remove();
+ }
+
+ } );
+ } );
+}
+
+/**
+ * Responsive Spacing CSS
+ */
+function astra_responsive_spacing( control, selector, type, side ) {
+
+ wp.customize( control, function( value ) {
+ value.bind( function( value ) {
+ var sidesString = "";
+ var spacingType = "padding";
+ if ( value.desktop.top || value.desktop.right || value.desktop.bottom || value.desktop.left || value.tablet.top || value.tablet.right || value.tablet.bottom || value.tablet.left || value.mobile.top || value.mobile.right || value.mobile.bottom || value.mobile.left ) {
+ if ( typeof side != undefined ) {
+ sidesString = side + "";
+ // Replace comma character with dash, necessary to separate out spacing dimensions.
+ sidesString = sidesString.replace(/,/g , "-");
+ }
+ if ( typeof type != undefined ) {
+ spacingType = type + "";
+ }
+ // Remove <style> first!
+ control = control.replace( '[', '-' );
+ control = control.replace( ']', '' );
+ jQuery( 'style#' + control + '-' + spacingType + '-' + sidesString ).remove();
+
+ var desktopPadding = '',
+ tabletPadding = '',
+ mobilePadding = '';
+
+ var paddingSide = ( typeof side != undefined ) ? side : [ 'top','bottom','right','left' ];
+
+ jQuery.each(paddingSide, function( index, sideValue ){
+ if ( '' != value['desktop'][sideValue] ) {
+ desktopPadding += spacingType + '-' + sideValue +': ' + value['desktop'][sideValue] + value['desktop-unit'] +';';
+ }
+ });
+
+ jQuery.each(paddingSide, function( index, sideValue ){
+ if ( '' != value['tablet'][sideValue] ) {
+ tabletPadding += spacingType + '-' + sideValue +': ' + value['tablet'][sideValue] + value['tablet-unit'] +';';
+ }
+ });
+
+ jQuery.each(paddingSide, function( index, sideValue ){
+ if ( '' != value['mobile'][sideValue] ) {
+ mobilePadding += spacingType + '-' + sideValue +': ' + value['mobile'][sideValue] + value['mobile-unit'] +';';
+ }
+ });
+
+ // Concat and append new <style>.
+ jQuery( 'head' ).append(
+ '<style id="' + control + '-' + spacingType + '-' + sidesString + '">'
+ + selector + ' { ' + desktopPadding +' }'
+ + '@media (max-width: 768px) {' + selector + ' { ' + tabletPadding + ' } }'
+ + '@media (max-width: 544px) {' + selector + ' { ' + mobilePadding + ' } }'
+ + '</style>'
+ );
+
+ } else {
+ wp.customize.preview.send( 'refresh' );
+ jQuery( 'style#' + control + '-' + spacingType + '-' + sidesString ).remove();
+ }
+
+ } );
+ } );
+}
+
+/**
+ * CSS
+ */
+function astra_css_font_size( control, selector ) {
+
+ wp.customize( control, function( value ) {
+ value.bind( function( size ) {
+
+ if ( size ) {
+
+ // Remove <style> first!
+ control = control.replace( '[', '-' );
+ control = control.replace( ']', '' );
+ jQuery( 'style#' + control ).remove();
+
+ var fontSize = 'font-size: ' + size;
+ if ( ! isNaN( size ) || size.indexOf( 'px' ) >= 0 ) {
+ size = size.replace( 'px', '' );
+ fontSize = astra_font_size_rem( size, true );
+ }
+
+ // Concat and append new <style>.
+ jQuery( 'head' ).append(
+ '<style id="' + control + '">'
+ + selector + ' { ' + fontSize + ' }'
+ + '</style>'
+ );
+
+ } else {
+
+ jQuery( 'style#' + control ).remove();
+ }
+
+ } );
+ } );
+}
+
+/**
+ * Return get_hexdec()
+ */
+function get_hexdec( hex ) {
+ var hexString = hex.toString( 16 );
+ return parseInt( hexString, 16 );
+}
+
+/**
+ * Apply CSS for the element
+ */
+function astra_css( control, css_property, selector, unit ) {
+
+ wp.customize( control, function( value ) {
+ value.bind( function( new_value ) {
+
+ // Remove <style> first!
+ control = control.replace( '[', '-' );
+ control = control.replace( ']', '' );
+
+ if ( new_value || 0 === new_value ) {
+
+ /**
+ * If ( unit == 'url' ) then = url('{VALUE}')
+ * If ( unit == 'px' ) then = {VALUE}px
+ * If ( unit == 'em' ) then = {VALUE}em
+ * If ( unit == 'rem' ) then = {VALUE}rem.
+ */
+ if ( 'undefined' != typeof unit) {
+
+ if ( 'url' === unit ) {
+ new_value = 'url(' + new_value + ')';
+ } else {
+ new_value = new_value + unit;
+ }
+ }
+
+ // Remove old.
+ jQuery( 'style#' + control + '-' + css_property ).remove();
+
+ // Concat and append new <style>.
+ jQuery( 'head' ).append(
+ '<style id="' + control + '-' + css_property + '">'
+ + selector + ' { ' + css_property + ': ' + new_value + ' }'
+ + '</style>'
+ );
+
+ if( 'unset' === new_value ){
+ jQuery( 'style#' + control + '-' + css_property ).remove();
+ }
+
+ } else {
+ // Remove old.
+ jQuery( 'style#' + control + '-' + css_property ).remove();
+ }
+
+ } );
+ } );
+}
+
+
+/**
+ * Dynamic Internal/Embedded Style for a Control
+ */
+function astra_add_dynamic_css( control, style ) {
+ control = control.replace( '[', '-' );
+ control = control.replace( ']', '' );
+ jQuery( 'style#' + control ).remove();
+
+ jQuery( 'head' ).append(
+ '<style id="' + control + '">' + style + '</style>'
+ );
+}
+
+/**
+ * Generate background_obj CSS
+ */
+function astra_background_obj_css( wp_customize, bg_obj, ctrl_name, style ) {
+
+ var gen_bg_css = '';
+ var bg_img = bg_obj['background-image'];
+ var bg_color = bg_obj['background-color'];
+
+ if( '' === bg_color && '' === bg_img ) {
+ jQuery( 'style#' + ctrl_name ).remove();
+ }else{
+ if( undefined !== bg_obj['background-type'] && '' !== bg_obj['background-type'] ) {
+
+ if ( ( 'color' === bg_obj['background-type'] ) ) {
+
+ if ( '' !== bg_img && '' !== bg_color && undefined !== bg_color && 'unset' !== bg_color ) {
+
+ gen_bg_css = 'background-image: linear-gradient(to right, ' + bg_color + ', ' + bg_color + '), url(' + bg_img + ');';
+ } else if ( undefined === bg_img || '' === bg_img || 'unset' === bg_img ) {
+
+ gen_bg_css = 'background-color: ' + bg_color + ';';
+
+ }
+ } else if ( 'image' === bg_obj['background-type'] ) {
+
+ if ( '' !== bg_img && '' !== bg_color && undefined !== bg_color && 'unset' !== bg_color && ! bg_color.includes("linear-gradient") && ! bg_color.includes("radial-gradient") ) {
+
+ gen_bg_css = 'background-image: linear-gradient(to right, ' + bg_color + ', ' + bg_color + '), url(' + bg_img + ');';
+ }
+ if ( ( undefined === bg_color || '' === bg_color || 'unset' === bg_color || bg_color.includes("linear-gradient") || bg_color.includes("radial-gradient") ) && '' !== bg_img ) {
+ gen_bg_css = 'background-image: url(' + bg_img + ');';
+ }
+ } else if ( 'gradient' === bg_obj['background-type'] ) {
+ if ( '' !== bg_color && 'unset' !== bg_color ) {
+ gen_bg_css = 'background-image: ' + bg_color + ';';
+ }
+ }
+ }
+
+ if ( '' !== bg_img ) {
+
+ gen_bg_css += 'background-repeat: ' + bg_obj['background-repeat'] + ';';
+ gen_bg_css += 'background-position: ' + bg_obj['background-position'] + ';';
+ gen_bg_css += 'background-size: ' + bg_obj['background-size'] + ';';
+ gen_bg_css += 'background-attachment: ' + bg_obj['background-attachment'] + ';';
+ }
+
+ var dynamicStyle = style.replace( "{{css}}", gen_bg_css );
+
+ astra_add_dynamic_css( ctrl_name, dynamicStyle );
+ }
+}
+
+/*
+* Generate Font Family CSS
+*/
+function astra_generate_outside_font_family_css( control, selector ) {
+ wp.customize( control, function (value) {
+ value.bind( function ( value, oldValue ) {
+
+ var cssProperty = 'font-family';
+ var link = '';
+
+ var fontName = value.split(",")[0];
+ // Replace ' character with space, necessary to separate out font prop value.
+ fontName = fontName.replace(/'/g, '');
+
+ // Remove <style> first!
+ control = control.replace( '[', '-' );
+ control = control.replace( ']', '' );
+
+ jQuery('style#' + control + '-' + cssProperty ).remove();
+
+ if ( fontName in astraCustomizer.googleFonts ) {
+ // Remove old.
+
+ var fontName = fontName.split(' ').join('+');
+
+ jQuery('link#' + control).remove();
+ link = '<link id="' + control + '" href="https://fonts.googleapis.com/css?family=' + fontName + '" rel="stylesheet">';
+ }
+
+ // Concat and append new <style> and <link>.
+ jQuery('head').append(
+ '<style id="' + control + '-' + cssProperty + '">'
+ + selector + ' { ' + cssProperty + ': ' + value + ' }'
+ + '</style>'
+ + link
+ );
+ });
+ });
+}
+
+/*
+* Generate Font Weight CSS
+*/
+function astra_generate_font_weight_css( font_control, control, css_property, selector ) {
+ wp.customize( control, function( value ) {
+ value.bind( function( new_value ) {
+
+ control = control.replace( '[', '-' );
+ control = control.replace( ']', '' );
+ var link = '';
+
+ if ( new_value ) {
+
+ /**
+ * If ( unit == 'url' ) then = url('{VALUE}')
+ * If ( unit == 'px' ) then = {VALUE}px
+ * If ( unit == 'em' ) then = {VALUE}em
+ * If ( unit == 'rem' ) then = {VALUE}rem.
+ */
+ if ( 'undefined' != typeof unit) {
+
+ if ( 'url' === unit ) {
+ new_value = 'url(' + new_value + ')';
+ } else {
+ new_value = new_value + unit;
+ }
+ }
+
+ var fontName = wp.customize._value[font_control]._value;
+ fontName = fontName.split(',');
+ fontName = fontName[0].replace( /'/g, '' );
+
+ // Remove old.
+ jQuery( 'style#' + control + '-' + css_property ).remove();
+
+ if ( fontName in astraCustomizer.googleFonts ) {
+ // Remove old.
+
+ jQuery('#' + font_control).remove();
+ if( new_value === "inherit" ) {
+ link = '<link id="' + font_control + '" href="https://fonts.googleapis.com/css?family=' + fontName + '" rel="stylesheet">';
+ } else {
+ link = '<link id="' + font_control + '" href="https://fonts.googleapis.com/css?family=' + fontName + '%3A' + new_value + '" rel="stylesheet">';
+ }
+ }
+
+ // Concat and append new <style>.
+ jQuery( 'head' ).append(
+ '<style id="' + control + '-' + css_property + '">'
+ + selector + ' { ' + css_property + ': ' + new_value + ' }'
+ + '</style>'
+ + link
+ );
+
+ } else {
+ // Remove old.
+ jQuery( 'style#' + control ).remove();
+ }
+
+ } );
+ });
+}
+
+/**
+ * Apply CSS for the element
+ */
+function astra_apply_responsive_background_css( control, selector, device, singleColorSelector, addon ) {
+ wp.customize( control, function( value ) {
+ value.bind( function( bg_obj ) {
+
+ addon = addon || '';
+ singleColorSelector = singleColorSelector || '';
+
+ addon = ( addon ) ? addon : 'header';
+
+ control = control.replace( '[', '-' );
+ control = control.replace( ']', '' );
+
+ if( '' === bg_obj[device] || undefined === bg_obj[device] ){
+ return;
+ }
+
+ var gen_bg_css = '';
+ var bg_img = bg_obj[device]['background-image'];
+ var bg_tab_img = bg_obj['tablet']['background-image'];
+ var bg_desk_img = bg_obj['desktop']['background-image'];
+ var bg_color = bg_obj[device]['background-color'];
+ var tablet_css = ( bg_obj['tablet']['background-image'] ) ? true : false;
+ var desktop_css = ( bg_obj['desktop']['background-image'] ) ? true : false;
+
+ if( undefined !== bg_obj[device]['background-type'] && '' !== bg_obj[device]['background-type'] ) {
+ if ( ( 'color' === bg_obj[device]['background-type'] ) ) {
+ if ( '' !== bg_img && '' !== bg_color && undefined !== bg_color && 'unset' !== bg_color ) {
+ gen_bg_css = 'background-image: linear-gradient(to right, ' + bg_color + ', ' + bg_color + '), url(' + bg_img + ');';
+ } else if ( 'mobile' === device ) {
+ if ( desktop_css ) {
+ gen_bg_css = 'background-image: linear-gradient(to right, ' + bg_color + ', ' + bg_color + '), url(' + bg_desk_img + ');';
+ } else if ( tablet_css ) {
+ gen_bg_css = 'background-image: linear-gradient(to right, ' + bg_color + ', ' + bg_color + '), url(' + bg_tab_img + ');';
+ } else {
+ gen_bg_css = 'background-color: ' + bg_color + ';';
+ gen_bg_css += 'background-image: none;';
+ }
+ } else if ( 'tablet' === device ) {
+ if ( desktop_css ) {
+ gen_bg_css = 'background-image: linear-gradient(to right, ' + bg_color + ', ' + bg_color + '), url(' + bg_desk_img + ');';
+ } else {
+ gen_bg_css = 'background-color: ' + bg_color + ';';
+ gen_bg_css += 'background-image: none;';
+ }
+ } else if ( undefined === bg_img || '' === bg_img ) {
+ gen_bg_css = 'background-color: ' + bg_color + ';';
+ gen_bg_css += 'background-image: none;';
+ }
+ } else if ( 'image' === bg_obj[device]['background-type'] ) {
+ if ( '' !== bg_img && '' !== bg_color && undefined !== bg_color && 'unset' !== bg_color && ! bg_color.includes("linear-gradient") && ! bg_color.includes("radial-gradient") ) {
+ gen_bg_css = 'background-image: linear-gradient(to right, ' + bg_color + ', ' + bg_color + '), url(' + bg_img + ');';
+ }
+ if ( ( undefined === bg_color || '' === bg_color || 'unset' === bg_color || bg_color.includes("linear-gradient") || bg_color.includes("radial-gradient") ) && '' !== bg_img ) {
+ gen_bg_css = 'background-image: url(' + bg_img + ');';
+ }
+ } else if ( 'gradient' === bg_obj[device]['background-type'] ) {
+ if ( '' !== bg_color && 'unset' !== bg_color ) {
+ gen_bg_css = 'background-image: ' + bg_color + ';';
+ }
+ }
+ }
+
+ if ( '' !== bg_img ) {
+
+ gen_bg_css += 'background-repeat: ' + bg_obj[device]['background-repeat'] + ';';
+ gen_bg_css += 'background-position: ' + bg_obj[device]['background-position'] + ';';
+ gen_bg_css += 'background-size: ' + bg_obj[device]['background-size'] + ';';
+ gen_bg_css += 'background-attachment: ' + bg_obj[device]['background-attachment'] + ';';
+ }
+
+ // Remove old.
+ jQuery( 'style#' + control + '-' + device + '-' + addon ).remove();
+
+
+ if ( 'desktop' == device ) {
+ var dynamicStyle = '<style id="' + control + '-' + device + '-' + addon + '">'
+ + selector + ' { ' + gen_bg_css + ' }'
+ + '</style>'
+ }
+ if ( 'tablet' == device ) {
+ var dynamicStyle = '<style id="' + control + '-' + device + '-' + addon + '">'
+ + '@media (max-width: 768px) {' + selector + ' { ' + gen_bg_css + ' } }'
+ + '</style>'
+ }
+ if ( 'mobile' == device ) {
+ var dynamicStyle = '<style id="' + control + '-' + device + '-' + addon + '">'
+ + '@media (max-width: 544px) {' + selector + ' { ' + gen_bg_css + ' } }'
+ + '</style>'
+ }
+
+ // Concat and append new <style>.
+ jQuery( 'head' ).append(
+ dynamicStyle
+ );
+ });
+ });
+}
+
+function getChangedKey( value, other ) {
+
+ value = isJsonString(value) ? JSON.parse(value) : value;
+ other = isJsonString(other) ? JSON.parse(other) : other;
+
+ // Compare two items
+ var compare = function ( item1, item2 ) {
+
+ // Get the object type
+ var itemType = Object.prototype.toString.call(item1);
+
+ // If an object or array, compare recursively
+ if (['[object Array]', '[object Object]'].indexOf(itemType) >= 0) {
+ if ('string' == typeof getChangedKey(item1, item2)) {
+ return false;
+ }
+ }
+
+ // Otherwise, do a simple comparison
+ else {
+
+ // If the two items are not the same type, return false
+ if (itemType !== Object.prototype.toString.call(item2)) return false;
+
+ // Else if it's a function, convert to a string and compare
+ // Otherwise, just compare
+ if (itemType === '[object Function]') {
+ if (item1.toString() !== item2.toString()) return false;
+ } else {
+ if (item1 !== item2) return false;
+ }
+
+ }
+ };
+
+ for ( var key in value ) {
+ if ( other.hasOwnProperty(key) && value.hasOwnProperty(key) ) {
+ if ( compare( value[key], other[key] ) === false ) return key;
+ } else {
+ return key;
+ }
+ }
+
+ // If nothing failed, return true
+ return true;
+
+}
+
+function isJsonString( str ) {
+
+ try {
+ JSON.parse(str);
+ } catch (e) {
+ return false;
+ }
+ return true;
+}
+
+function hasWordPressWidgetBlockEditor() {
+ return astraCustomizer.has_block_editor_support || false;
+}
+
+( function( $ ) {
+
+ /*
+ * Site Identity Logo Width
+ */
+ wp.customize( 'astra-settings[ast-header-responsive-logo-width]', function( setting ) {
+ setting.bind( function( logo_width ) {
+ if ( logo_width['desktop'] != '' || logo_width['tablet'] != '' || logo_width['mobile'] != '' ) {
+ var dynamicStyle = '#masthead .site-logo-img .custom-logo-link img { max-width: ' + logo_width['desktop'] + 'px; } @media( max-width: 768px ) { #masthead .site-logo-img .custom-logo-link img { max-width: ' + logo_width['tablet'] + 'px; } #masthead .site-logo-img img { max-height: ' + logo_width['tablet'] + 'px; } } @media( max-width: 544px ) { .ast-header-break-point .site-branding img, .ast-header-break-point #masthead .site-logo-img .custom-logo-link img { max-width: ' + logo_width['mobile'] + 'px; }' +
+ '#masthead .site-logo-img img { max-height: ' + logo_width['mobile'] + 'px; } .astra-logo-svg{width: ' + logo_width['mobile'] + 'px !important; } }';
+ astra_add_dynamic_css( 'ast-header-responsive-logo-width', dynamicStyle );
+ var mobileLogoStyle = '.ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img { max-width: ' + logo_width['tablet'] + 'px; } @media( max-width: 768px ) { .ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img { max-width: ' + logo_width['tablet'] + 'px; } @media( max-width: 544px ) { .ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img { max-width: ' + logo_width['mobile'] + 'px; }';
+ astra_add_dynamic_css( 'mobile-header-logo-width', mobileLogoStyle );
+ }
+ else{
+ wp.customize.preview.send( 'refresh' );
+ }
+ } );
+ } );
+
+ /*
+ * Responsive Logo Visibility
+ */
+ wp.customize( 'astra-settings[display-site-title-responsive]', function( setting ) {
+ setting.bind( function( logo_visibility ) {
+ var desktopTitleVisibility = ( logo_visibility['desktop'] ) ? 'block' : 'none';
+ var tabletTitleVisibility = ( logo_visibility['tablet'] ) ? 'block' : 'none';
+ var mobileTitleVisibility = ( logo_visibility['mobile'] ) ? 'block' : 'none';
+ var tabletBreakPoint = astraBuilderPreview.tablet_break_point || 768,
+ mobileBreakPoint = astraBuilderPreview.mobile_break_point || 544;
+ var dynamicStyle = '.ast-site-title-wrap .site-title { display: ' + desktopTitleVisibility + ';} @media( max-width: ' + tabletBreakPoint + 'px) { .ast-site-title-wrap .site-title { display: ' + tabletTitleVisibility + ';} } @media( max-width: ' + mobileBreakPoint + 'px) { .ast-site-title-wrap .site-title { display: ' + mobileTitleVisibility + ';} }';
+ astra_add_dynamic_css( 'display-site-title-responsive', dynamicStyle );
+ } );
+ } );
+
+ /*
+ * Responsive Tagline Visibility
+ */
+ wp.customize( 'astra-settings[display-site-tagline-responsive]', function( setting ) {
+ setting.bind( function( tagline_visibility ) {
+ var desktopTaglineVisibility = ( tagline_visibility['desktop'] ) ? 'block' : 'none';
+ var tabletTaglineVisibility = ( tagline_visibility['tablet'] ) ? 'block' : 'none';
+ var mobileTaglineVisibility = ( tagline_visibility['mobile'] ) ? 'block' : 'none';
+ var tabletBreakPoint = astraBuilderPreview.tablet_break_point || 768,
+ mobileBreakPoint = astraBuilderPreview.mobile_break_point || 544;
+ var dynamicStyle = '.ast-site-title-wrap .site-description { display: ' + desktopTaglineVisibility + ';} @media( max-width: ' + tabletBreakPoint + 'px) { .ast-site-title-wrap .site-description { display: ' + tabletTaglineVisibility + ';} } @media( max-width: ' + mobileBreakPoint + 'px) { .ast-site-title-wrap .site-description { display: ' + mobileTaglineVisibility + ';} }';
+ astra_add_dynamic_css( 'display-site-tagline-responsive', dynamicStyle );
+ } );
+ } );
+
+ /*
+ * Full width layout
+ */
+ wp.customize( 'astra-settings[site-content-width]', function( setting ) {
+ setting.bind( function( width ) {
+ var dynamicStyle = '@media (min-width: 554px) {';
+ dynamicStyle += '.ast-container, .fl-builder #content .entry-header { max-width: ' + ( 40 + parseInt( width ) ) + 'px } ';
+ dynamicStyle += '}';
+ if ( jQuery( 'body' ).hasClass( 'ast-page-builder-template' ) ) {
+ dynamicStyle += '@media (min-width: 554px) {';
+ dynamicStyle += '.ast-page-builder-template .comments-area { max-width: ' + ( 40 + parseInt( width ) ) + 'px } ';
+ dynamicStyle += '}';
+ }
+
+ astra_add_dynamic_css( 'site-content-width', dynamicStyle );
+
+ } );
+ } );
+
+ /*
+ * Full width layout
+ */
+ wp.customize( 'astra-settings[header-main-menu-label]', function( setting ) {
+ setting.bind( function( label ) {
+ if( $('button.main-header-menu-toggle .mobile-menu-wrap .mobile-menu').length > 0 ) {
+ if ( label != '' ) {
+ $('button.main-header-menu-toggle .mobile-menu-wrap .mobile-menu').text(label);
+ } else {
+ $('button.main-header-menu-toggle .mobile-menu-wrap').remove();
+ }
+ } else {
+ var html = $('button.main-header-menu-toggle').html();
+ if( '' != label ) {
+ html += '<div class="mobile-menu-wrap"><span class="mobile-menu">'+ label +'</span> </div>';
+ }
+ $('button.main-header-menu-toggle').html( html )
+ }
+ } );
+ } );
+
+ /*
+ * Layout Body Background
+ */
+ astra_apply_responsive_background_css( 'astra-settings[site-layout-outside-bg-obj-responsive]', 'body, .ast-separate-container', 'desktop' );
+ astra_apply_responsive_background_css( 'astra-settings[site-layout-outside-bg-obj-responsive]', 'body, .ast-separate-container', 'tablet' );
+ astra_apply_responsive_background_css( 'astra-settings[site-layout-outside-bg-obj-responsive]', 'body, .ast-separate-container', 'mobile' );
+
+ /*
+ * Blog Custom Width
+ */
+ wp.customize( 'astra-settings[blog-max-width]', function( setting ) {
+ setting.bind( function( width ) {
+
+ var dynamicStyle = '@media all and ( min-width: 921px ) {';
+
+ if ( ! jQuery( 'body' ).hasClass( 'ast-woo-shop-archive' ) ) {
+ dynamicStyle += '.blog .site-content > .ast-container,.archive .site-content > .ast-container{ max-width: ' + ( parseInt( width ) ) + 'px } ';
+ }
+
+ if ( jQuery( 'body' ).hasClass( 'ast-fluid-width-layout' ) ) {
+ dynamicStyle += '.blog .site-content > .ast-container,.archive .site-content > .ast-container{ padding-left:20px; padding-right:20px; } ';
+ }
+ dynamicStyle += '}';
+ astra_add_dynamic_css( 'blog-max-width', dynamicStyle );
+
+ } );
+ } );
+
+ /*
+ * Single Blog Custom Width
+ */
+ wp.customize( 'astra-settings[blog-single-max-width]', function( setting ) {
+ setting.bind( function( width ) {
+
+ var dynamicStyle = '@media all and ( min-width: 921px ) {';
+
+ dynamicStyle += '.single-post .site-content > .ast-container{ max-width: ' + ( 40 + parseInt( width ) ) + 'px } ';
+
+ if ( jQuery( 'body' ).hasClass( 'ast-fluid-width-layout' ) ) {
+ dynamicStyle += '.single-post .site-content > .ast-container{ padding-left:20px; padding-right:20px; } ';
+ }
+ dynamicStyle += '}';
+ astra_add_dynamic_css( 'blog-single-max-width', dynamicStyle );
+
+ } );
+ } );
+
+ /*
+ * EDD Archive Custom Width
+ */
+ wp.customize( 'astra-settings[edd-archive-max-width]', function( setting ) {
+ setting.bind( function( width ) {
+
+ var dynamicStyle = '.ast-edd-archive-page .site-content > .ast-container { max-width: ' + parseInt( width ) + 'px } ';
+
+ astra_add_dynamic_css( 'edd-archive-max-width', dynamicStyle );
+
+ } );
+ } );
+
+ /**
+ * Primary Width Option
+ */
+ wp.customize( 'astra-settings[site-sidebar-width]', function( setting ) {
+ setting.bind( function( width ) {
+
+ if ( ! jQuery( 'body' ).hasClass( 'ast-no-sidebar' ) && width >= 15 && width <= 50 ) {
+
+ var dynamicStyle = '@media (min-width: 769px) {';
+
+ dynamicStyle += '#primary { width: ' + ( 100 - parseInt( width ) ) + '% } ';
+ dynamicStyle += '#secondary { width: ' + width + '% } ';
+ dynamicStyle += '}';
+
+ astra_add_dynamic_css( 'site-sidebar-width', dynamicStyle );
+ }
+
+ } );
+ } );
+
+ /**
+ * Header Bottom Border
+ */
+ wp.customize( 'astra-settings[header-main-sep]', function( setting ) {
+ setting.bind( function( border ) {
+
+ var dynamicStyle = 'body.ast-header-break-point .main-header-bar { border-bottom-width: ' + border + 'px }';
+
+ dynamicStyle += '.ast-desktop .main-header-bar {';
+ dynamicStyle += 'border-bottom-width: ' + border + 'px';
+ dynamicStyle += '}';
+
+ astra_add_dynamic_css( 'header-main-sep', dynamicStyle );
+
+ } );
+ } );
+
+ /**
+ * Small Footer Top Border
+ */
+ wp.customize( 'astra-settings[footer-sml-divider]', function( value ) {
+ value.bind( function( border_width ) {
+ jQuery( '.ast-small-footer' ).css( 'border-top-width', border_width + 'px' );
+ } );
+ } );
+
+ /**
+ * Footer Widget Top Border
+ */
+ wp.customize( 'astra-settings[footer-adv-border-width]', function( value ) {
+ value.bind( function( border_width ) {
+ jQuery( '.footer-adv .footer-adv-overlay' ).css( 'border-top-width', border_width + 'px' );
+ } );
+ } );
+
+
+ wp.customize( 'astra-settings[footer-adv-border-color]', function( value ) {
+ value.bind( function( border_color ) {
+ jQuery( '.footer-adv .footer-adv-overlay' ).css( 'border-top-color', border_color );
+ } );
+ } );
+
+
+ /**
+ * Small Footer Top Border Color
+ */
+ wp.customize( 'astra-settings[footer-sml-divider-color]', function( value ) {
+ value.bind( function( border_color ) {
+ jQuery( '.ast-small-footer' ).css( 'border-top-color', border_color );
+ } );
+ } );
+
+ /**
+ * Button Border Radius
+ */
+ wp.customize( 'astra-settings[button-radius]', function( setting ) {
+ setting.bind( function( border ) {
+
+ var search_button_selector = hasWordPressWidgetBlockEditor() ? ', form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button' : '' ;
+
+ var dynamicStyle = '.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"]' + search_button_selector + '{ border-radius: ' + ( parseInt( border ) ) + 'px } ';
+ if ( jQuery( 'body' ).hasClass( 'woocommerce' ) ) {
+ dynamicStyle += '.woocommerce a.button, .woocommerce button.button, .woocommerce .product a.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled] { border-radius: ' + ( parseInt( border ) ) + 'px } ';
+ }
+
+ astra_add_dynamic_css( 'button-radius', dynamicStyle );
+
+ } );
+ } );
+
+ /**
+ * Header Bottom Border width
+ */
+ wp.customize( 'astra-settings[header-main-sep]', function( value ) {
+ value.bind( function( border ) {
+
+ var dynamicStyle = ' body.ast-header-break-point .main-header-bar { border-bottom-width: ' + border + 'px } ';
+
+ dynamicStyle += '.ast-desktop .main-header-bar {';
+ dynamicStyle += 'border-bottom-width: ' + border + 'px';
+ dynamicStyle += '}';
+
+ astra_add_dynamic_css( 'header-main-sep', dynamicStyle );
+
+ } );
+ } );
+
+ /**
+ * Header Bottom Border color
+ */
+ wp.customize( 'astra-settings[header-main-sep-color]', function( value ) {
+ value.bind( function( color ) {
+ if (color == '') {
+ wp.customize.preview.send( 'refresh' );
+ }
+
+ if ( color ) {
+
+ var dynamicStyle = ' .ast-desktop .main-header-bar { border-bottom-color: ' + color + '; } ';
+ dynamicStyle += ' body.ast-header-break-point .main-header-bar { border-bottom-color: ' + color + '; } ';
+
+ astra_add_dynamic_css( 'header-main-sep-color', dynamicStyle );
+ }
+
+ } );
+ } );
+
+ /**
+ * Primary Toggle Button Color
+ */
+ wp.customize( 'astra-settings[mobile-header-toggle-btn-style-color]', function( setting ) {
+ setting.bind( function( toggle_button_color ) {
+ if ( toggle_button_color != '' ) {
+ if( jQuery( '.menu-toggle' ).hasClass( 'ast-mobile-menu-buttons-fill' ) ) {
+ var dynamicStyle = '.ast-header-break-point .ast-mobile-menu-buttons-fill.menu-toggle { background: ' + toggle_button_color + '}';
+ }
+ else if( jQuery( '.menu-toggle' ).hasClass( 'ast-mobile-menu-buttons-outline' ) ) {
+ var dynamicStyle = '.ast-header-break-point .ast-mobile-menu-buttons-outline.menu-toggle { border: 1px solid ' + toggle_button_color + '; color: ' + toggle_button_color + '}';
+ }
+ else {
+ var dynamicStyle = '.ast-header-break-point .ast-mobile-menu-buttons-minimal.menu-toggle { color: ' + toggle_button_color + '}';
+ }
+ astra_add_dynamic_css( 'primary-toggle-button-color', dynamicStyle );
+ }
+ else{
+ wp.customize.preview.send( 'refresh' );
+ }
+ });
+ });
+
+
+ astra_responsive_font_size( 'astra-settings[font-size-site-tagline]', '.site-header .site-description' );
+ astra_responsive_font_size( 'astra-settings[font-size-site-title]', '.site-title' );
+
+ astra_responsive_font_size( 'astra-settings[font-size-entry-title]', '.ast-single-post .entry-title, .page-title' );
+ astra_responsive_font_size( 'astra-settings[font-size-archive-summary-title]', '.ast-archive-description .ast-archive-title' );
+ astra_responsive_font_size( 'astra-settings[font-size-page-title]', 'body:not(.ast-single-post) .entry-title' );
+
+ // Check if anchors should be loaded in the CSS for headings.
+ if (true == astraCustomizer.includeAnchorsInHeadindsCss) {
+ astra_responsive_font_size('astra-settings[font-size-h1]', 'h1, .entry-content h1, .entry-content h1 a');
+ astra_responsive_font_size('astra-settings[font-size-h2]', 'h2, .entry-content h2, .entry-content h2 a');
+ astra_responsive_font_size('astra-settings[font-size-h3]', 'h3, .entry-content h3, .entry-content h3 a');
+ astra_responsive_font_size('astra-settings[font-size-h4]', 'h4, .entry-content h4, .entry-content h4 a');
+ astra_responsive_font_size('astra-settings[font-size-h5]', 'h5, .entry-content h5, .entry-content h5 a');
+ astra_responsive_font_size('astra-settings[font-size-h6]', 'h6, .entry-content h6, .entry-content h6 a');
+ } else {
+ astra_responsive_font_size('astra-settings[font-size-h1]', 'h1, .entry-content h1');
+ astra_responsive_font_size('astra-settings[font-size-h2]', 'h2, .entry-content h2');
+ astra_responsive_font_size('astra-settings[font-size-h3]', 'h3, .entry-content h3');
+ astra_responsive_font_size('astra-settings[font-size-h4]', 'h4, .entry-content h4');
+ astra_responsive_font_size('astra-settings[font-size-h5]', 'h5, .entry-content h5');
+ astra_responsive_font_size('astra-settings[font-size-h6]', 'h6, .entry-content h6');
+ }
+
+ // paragraph margin bottom.
+ wp.customize( 'astra-settings[para-margin-bottom]', function( value ) {
+ value.bind( function( marginBottom ) {
+ if ( marginBottom == '' ) {
+ wp.customize.preview.send( 'refresh' );
+ }
+
+ if ( marginBottom ) {
+ var dynamicStyle = ' p, .entry-content p { margin-bottom: ' + marginBottom + 'em; } ';
+ astra_add_dynamic_css( 'para-margin-bottom', dynamicStyle );
+ }
+
+ } );
+ } );
+
+ // Add preview underline in customizer for content links.
+ wp.customize( 'astra-settings[underline-content-links]', function( setting ) {
+ setting.bind( function( value ) {
+ var dynamicStyle = '';
+ if ( value ) {
+ dynamicStyle = '.ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a) { text-decoration: underline; } ';
+ astra_add_dynamic_css( 'underline-content-links', dynamicStyle );
+ } else {
+ dynamicStyle = '.ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a) { text-decoration: unset; } ';
+ astra_add_dynamic_css( 'underline-content-links', dynamicStyle );
+ }
+ } );
+ } );
+
+ if ( astraCustomizer.page_builder_button_style_css ) {
+ if (true == astraCustomizer.includeAnchorsInHeadindsCss) {
+ if ( 'color-typo' == astraCustomizer.elementor_default_color_font_setting || 'typo' == astraCustomizer.elementor_default_color_font_setting ) {
+ astra_css('astra-settings[headings-line-height]', 'line-height', '.elementor-widget-heading h1.elementor-heading-title, .elementor-widget-heading h2.elementor-heading-title, .elementor-widget-heading h3.elementor-heading-title, .elementor-widget-heading h4.elementor-heading-title, .elementor-widget-heading h5.elementor-heading-title, .elementor-widget-heading h6.elementor-heading-title');
+ }
+ astra_css('astra-settings[headings-line-height]', 'line-height', 'h1, .entry-content h1, .entry-content h1 a, h2, .entry-content h2, .entry-content h2 a, h3, .entry-content h3, .entry-content h3 a, h4, .entry-content h4, .entry-content h4 a, h5, .entry-content h5, .entry-content h5 a, h6, .entry-content h6, .entry-content h6 a, .site-title, .site-title a');
+ } else {
+ if ( 'color-typo' == astraCustomizer.elementor_default_color_font_setting || 'typo' == astraCustomizer.elementor_default_color_font_setting ) {
+ astra_css('astra-settings[headings-line-height]', 'line-height', '.elementor-widget-heading h1.elementor-heading-title, .elementor-widget-heading h2.elementor-heading-title, .elementor-widget-heading h3.elementor-heading-title, .elementor-widget-heading h4.elementor-heading-title, .elementor-widget-heading h5.elementor-heading-title, .elementor-widget-heading h6.elementor-heading-title');
+ }
+ astra_css('astra-settings[headings-line-height]', 'line-height', 'h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6, .site-title, .site-title a');
+ }
+ } else {
+ if (true == astraCustomizer.includeAnchorsInHeadindsCss) {
+ astra_css('astra-settings[headings-line-height]', 'line-height', 'h1, .entry-content h1, .entry-content h1 a, h2, .entry-content h2, .entry-content h2 a, h3, .entry-content h3, .entry-content h3 a, h4, .entry-content h4, .entry-content h4 a, h5, .entry-content h5, .entry-content h5 a, h6, .entry-content h6, .entry-content h6 a, .site-title, .site-title a');
+ } else {
+ astra_css('astra-settings[headings-line-height]', 'line-height', 'h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6, .site-title, .site-title a');
+ }
+ }
+
+ // Check if anchors should be loaded in the CSS for headings.
+ if (true == astraCustomizer.includeAnchorsInHeadindsCss) {
+ astra_generate_outside_font_family_css('astra-settings[headings-font-family]', 'h1, .entry-content h1, .entry-content h1 a, h2, .entry-content h2, .entry-content h2 a, h3, .entry-content h3, .entry-content h3 a, h4, .entry-content h4, .entry-content h4 a, h5, .entry-content h5, .entry-content h5 a, h6, .entry-content h6, .entry-content h6 a, .site-title, .site-title a');
+ astra_generate_font_weight_css( 'astra-settings[headings-font-family]', 'astra-settings[headings-font-weight]', 'font-weight', 'h1, .entry-content h1, .entry-content h1 a, h2, .entry-content h2, .entry-content h2 a, h3, .entry-content h3, .entry-content h3 a, h4, .entry-content h4, .entry-content h4 a, h5, .entry-content h5, .entry-content h5 a, h6, .entry-content h6, .entry-content h6 a, .site-title, .site-title a' );
+ astra_css('astra-settings[headings-text-transform]', 'text-transform', 'h1, .entry-content h1, .entry-content h1 a, h2, .entry-content h2, .entry-content h2 a, h3, .entry-content h3, .entry-content h3 a, h4, .entry-content h4, .entry-content h4 a, h5, .entry-content h5, .entry-content h5 a, h6, .entry-content h6, .entry-content h6 a, .site-title, .site-title a');
+ } else {
+ astra_generate_outside_font_family_css('astra-settings[headings-font-family]', 'h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6, .site-title, .site-title a');
+ astra_generate_font_weight_css( 'astra-settings[headings-font-family]', 'astra-settings[headings-font-weight]', 'font-weight', 'h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6, .site-title, .site-title a' );
+ astra_css('astra-settings[headings-text-transform]', 'text-transform', 'h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6, .site-title, .site-title a');
+ }
+
+
+ // Footer Bar.
+ astra_css( 'astra-settings[footer-color]', 'color', '.ast-small-footer' );
+ astra_css( 'astra-settings[footer-link-color]', 'color', '.ast-small-footer a' );
+ astra_css( 'astra-settings[footer-link-h-color]', 'color', '.ast-small-footer a:hover' );
+
+ // Footer Bar background.
+ wp.customize( 'astra-settings[footer-bg-obj]', function( value ) {
+ value.bind( function( bg_obj ) {
+ var dynamicStyle = ' .ast-small-footer > .ast-footer-overlay { {{css}} }';
+ astra_background_obj_css( wp.customize, bg_obj, 'footer-bg-obj', dynamicStyle );
+ } );
+ } );
+
+ // Footer Widgets.
+ astra_css( 'astra-settings[footer-adv-wgt-title-color]', 'color', '.footer-adv .widget-title, .footer-adv .widget-title a' );
+ astra_css( 'astra-settings[footer-adv-text-color]', 'color', '.footer-adv' );
+ astra_css( 'astra-settings[footer-adv-link-color]', 'color', '.footer-adv a' );
+ astra_css( 'astra-settings[footer-adv-link-h-color]', 'color', '.footer-adv a:hover, .footer-adv .no-widget-text a:hover, .footer-adv a:focus, .footer-adv .no-widget-text a:focus' );
+
+ // Footer Widget background.
+ wp.customize( 'astra-settings[footer-adv-bg-obj]', function( value ) {
+ value.bind( function( bg_obj ) {
+ var dynamicStyle = ' .footer-adv-overlay { {{css}} }';
+ astra_background_obj_css( wp.customize, bg_obj, 'footer-adv-bg-obj', dynamicStyle );
+ } );
+ } );
+
+ /*
+ * Woocommerce Shop Archive Custom Width
+ */
+ wp.customize( 'astra-settings[shop-archive-max-width]', function( setting ) {
+ setting.bind( function( width ) {
+
+ var dynamicStyle = '@media all and ( min-width: 921px ) {';
+
+ dynamicStyle += '.ast-woo-shop-archive .site-content > .ast-container{ max-width: ' + ( parseInt( width ) ) + 'px } ';
+
+ if ( jQuery( 'body' ).hasClass( 'ast-fluid-width-layout' ) ) {
+ dynamicStyle += '.ast-woo-shop-archive .site-content > .ast-container{ padding-left:20px; padding-right:20px; } ';
+ }
+ dynamicStyle += '}';
+ astra_add_dynamic_css( 'shop-archive-max-width', dynamicStyle );
+
+ } );
+ } );
+
+ //[1] Primary Menu Toggle Button Style.
+ wp.customize( 'astra-settings[mobile-header-toggle-btn-style]', function( setting ) {
+ setting.bind( function( icon_style ) {
+ var icon_color = wp.customize('astra-settings[mobile-header-toggle-btn-color]').get();
+
+ if ( '' === icon_color && 'fill' === icon_style ) {
+ var dynamicStyle = ' [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg { fill: #ffffff; } ';
+ astra_add_dynamic_css( 'mobile-header-toggle-btn-style', dynamicStyle );
+ } else {
+ astra_add_dynamic_css( 'mobile-header-toggle-btn-style', '' );
+ }
+
+ var buttons = $(document).find('.ast-mobile-menu-buttons .menu-toggle');
+ buttons.removeClass('ast-mobile-menu-buttons-default ast-mobile-menu-buttons-fill ast-mobile-menu-buttons-outline');
+ buttons.removeClass('ast-mobile-menu-buttons-default ast-mobile-menu-buttons-fill ast-mobile-menu-buttons-minimal');
+ buttons.addClass( 'ast-mobile-menu-buttons-' + icon_style );
+
+ var themeColor = wp.customize( 'astra-settings[theme-color]' ).get();
+ var defaultColor = '#ffffff';
+ var toggleButtonColor = wp.customize( 'astra-settings[mobile-header-toggle-btn-color]' ).get();
+
+ if ( 'fill' !== icon_style ) {
+ defaultColor = themeColor
+ }
+
+ var iconColor = defaultColor;
+
+ if ( '' !== toggleButtonColor && undefined !== toggleButtonColor && null !== toggleButtonColor ) {
+ iconColor = toggleButtonColor
+ }
+
+ var dynamicStyle = '[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {';
+ dynamicStyle += 'fill: ' + iconColor + ';';
+ dynamicStyle +='}';
+
+ dynamicStyle += '[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-wrap .mobile-menu {';
+ dynamicStyle += 'color: ' + iconColor + ';';
+ dynamicStyle +='}';
+
+ dynamicStyle += '[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-fill, [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal {';
+ dynamicStyle += 'color: ' + iconColor + ';';
+ dynamicStyle += 'border: none;';
+ dynamicStyle +='}';
+
+ dynamicStyle += '[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-outline {';
+ dynamicStyle += 'color: ' + iconColor + ';';
+ dynamicStyle +='}';
+ ;
+ astra_add_dynamic_css( 'mobile-header-toggle-btn-style', dynamicStyle );
+
+ } );
+ } );
+
+ //[1] Toggle Button Border Radius.
+ wp.customize( 'astra-settings[mobile-header-toggle-btn-border-radius]', function( setting ) {
+ setting.bind( function( border ) {
+
+ var dynamicStyle = '.ast-header-break-point .main-header-bar .ast-button-wrap .menu-toggle { border-radius: ' + ( parseInt( border ) ) + 'px } ';
+ astra_add_dynamic_css( 'mobile-header-toggle-btn-border-radius', dynamicStyle );
+
+ } );
+ } );
+
+ /**
+ * Primary Submenu border
+ */
+ wp.customize( 'astra-settings[primary-submenu-border]', function( value ) {
+ value.bind( function( border ) {
+ var color = wp.customize( 'astra-settings[primary-submenu-b-color]' ).get();
+
+ if( '' != border.top || '' != border.right || '' != border.bottom || '' != border.left ) {
+
+ var dynamicStyle = '.ast-desktop .main-header-menu.submenu-with-border .sub-menu';
+ dynamicStyle += '{';
+ dynamicStyle += 'border-top-width:' + border.top + 'px;';
+ dynamicStyle += 'border-right-width:' + border.right + 'px;';
+ dynamicStyle += 'border-left-width:' + border.left + 'px;';
+ dynamicStyle += 'border-bottom-width:' + border.bottom + 'px;';
+ dynamicStyle += 'border-color:' + color + ';';
+ dynamicStyle += 'border-style: solid;';
+ dynamicStyle += '}';
+
+ dynamicStyle += '.ast-desktop .main-header-menu.submenu-with-border .sub-menu .sub-menu';
+ dynamicStyle += '{';
+ dynamicStyle += 'top:-' + border.top + 'px;';
+ dynamicStyle += '}';
+
+ // Submenu items goes outside?
+ dynamicStyle += '@media (min-width: 769px){';
+ dynamicStyle += '.main-header-menu .sub-menu .menu-item.ast-left-align-sub-menu:hover > .sub-menu, .main-header-menu .sub-menu .menu-item.ast-left-align-sub-menu.focus > .sub-menu';
+ dynamicStyle += '{';
+ dynamicStyle += 'margin-left:-' + ( +border.left + +border.right ) + 'px;';
+ dynamicStyle += '}';
+ dynamicStyle += '}';
+
+ astra_add_dynamic_css( 'primary-submenu-border', dynamicStyle );
+ } else {
+ wp.customize.preview.send( 'refresh' );
+ }
+ } );
+ } );
+ /**
+ * Primary Submenu border COlor
+ */
+ wp.customize( 'astra-settings[primary-submenu-b-color]', function( value ) {
+ value.bind( function( color ) {
+ var border = wp.customize( 'astra-settings[primary-submenu-border]' ).get();
+ if ( '' != color ) {
+ if( '' != border.top || '' != border.right || '' != border.bottom || '' != border.left ) {
+
+ var dynamicStyle = '.ast-desktop .main-header-menu.submenu-with-border .sub-menu';
+ dynamicStyle += '{';
+ dynamicStyle += 'border-top-width:' + border.top + 'px;';
+ dynamicStyle += 'border-right-width:' + border.right + 'px;';
+ dynamicStyle += 'border-left-width:' + border.left + 'px;';
+ dynamicStyle += 'border-bottom-width:' + border.bottom + 'px;';
+ dynamicStyle += 'border-color:' + color + ';';
+ dynamicStyle += 'border-style: solid;';
+ dynamicStyle += '}';
+
+ dynamicStyle += '.ast-desktop .main-header-menu.submenu-with-border .sub-menu .sub-menu';
+ dynamicStyle += '{';
+ dynamicStyle += 'top:-' + border.top + 'px;';
+ dynamicStyle += '}';
+
+ // Submenu items goes outside?
+ dynamicStyle += '@media (min-width: 769px){';
+ dynamicStyle += '.main-header-menu .sub-menu .menu-item.ast-left-align-sub-menu:hover > .sub-menu, .main-header-menu .sub-menu .menu-item.ast-left-align-sub-menu.focus > .sub-menu';
+ dynamicStyle += '{';
+ dynamicStyle += 'margin-left:-' + ( +border.left + +border.right ) + 'px;';
+ dynamicStyle += '}';
+ dynamicStyle += '}';
+
+ astra_add_dynamic_css( 'primary-submenu-border-color', dynamicStyle );
+ }
+ } else {
+ wp.customize.preview.send( 'refresh' );
+ }
+ } );
+ } );
+
+
+ /**
+ * Primary Submenu border COlor
+ */
+ wp.customize('astra-settings[primary-submenu-item-b-color]', function (value) {
+ value.bind(function (color) {
+ var insideBorder = wp.customize('astra-settings[primary-submenu-item-border]').get();
+ if ('' != color) {
+ if ( true == insideBorder ) {
+
+ var dynamicStyle = '';
+
+ dynamicStyle += '.ast-desktop .main-header-menu.submenu-with-border .sub-menu .menu-link';
+ dynamicStyle += '{';
+ dynamicStyle += 'border-bottom-width:' + ( ( true === insideBorder ) ? '1px;' : '0px;' );
+ dynamicStyle += 'border-color:' + color + ';';
+ dynamicStyle += 'border-style: solid;';
+ dynamicStyle += '}';
+
+
+ astra_add_dynamic_css('primary-submenu-item-b-color', dynamicStyle);
+ }
+ } else {
+ wp.customize.preview.send('refresh');
+ }
+ });
+ });
+
+ /**
+ * Primary Submenu border COlor
+ */
+ wp.customize( 'astra-settings[primary-submenu-item-border]', function( value ) {
+ value.bind( function( border ) {
+ var color = wp.customize( 'astra-settings[primary-submenu-item-b-color]' ).get();
+
+ if( true === border ) {
+ var dynamicStyle = '.ast-desktop .main-header-menu.submenu-with-border .sub-menu .menu-link';
+ dynamicStyle += '{';
+ dynamicStyle += 'border-bottom-width:' + ( ( true === border ) ? '1px;' : '0px;' );
+ dynamicStyle += 'border-color:' + color + ';';
+ dynamicStyle += 'border-style: solid;';
+ dynamicStyle += '}';
+
+ astra_add_dynamic_css( 'primary-submenu-item-border', dynamicStyle );
+ } else {
+ wp.customize.preview.send( 'refresh' );
+ }
+
+ } );
+ } );
+
+ astra_css( 'astra-settings[header-main-rt-section-button-text-color]', 'color', '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' );
+ astra_css( 'astra-settings[header-main-rt-section-button-back-color]', 'background-color', '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' );
+ astra_css( 'astra-settings[header-main-rt-section-button-text-h-color]', 'color', '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover' );
+ astra_css( 'astra-settings[header-main-rt-section-button-back-h-color]', 'background-color', '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover' );
+ astra_css( 'astra-settings[header-main-rt-section-button-border-radius]', 'border-radius', '.main-header-bar .ast-container .button-custom-menu-item .ast-custom-button-link .ast-custom-button', 'px' );
+ astra_css( 'astra-settings[header-main-rt-section-button-border-color]', 'border-color', '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' );
+ astra_css( 'astra-settings[header-main-rt-section-button-border-h-color]', 'border-color', '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover' );
+ astra_responsive_spacing( 'astra-settings[header-main-rt-section-button-padding]','.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button', 'padding', ['top', 'right', 'bottom', 'left' ] );
+
+ // Header custom button - Typography preview stylings.
+ astra_generate_outside_font_family_css( 'astra-settings[primary-header-button-font-family]', '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button, .ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' );
+
+ astra_responsive_font_size( 'astra-settings[primary-header-button-font-size]', '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button, .ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' );
+
+ astra_css( 'astra-settings[primary-header-button-font-weight]', 'font-weight', '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button, .ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' );
+
+ astra_css( 'astra-settings[primary-header-button-line-height]', 'line-height', '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button, .ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' );
+
+ astra_css( 'astra-settings[primary-header-button-text-transform]', 'text-transform', '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button, .ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' );
+
+ astra_css( 'astra-settings[primary-header-button-letter-spacing]', 'letter-spacing', '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button, .ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button', 'px' );
+
+ /**
+ * Custom Button border
+ */
+ wp.customize( 'astra-settings[header-main-rt-section-button-border-size]', function( value ) {
+ value.bind( function( border ) {
+ if( '' != border.top || '' != border.right || '' != border.bottom || '' != border.left ) {
+ var dynamicStyle = '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button';
+ dynamicStyle += '{';
+ dynamicStyle += 'border-top-width:' + border.top + 'px;';
+ dynamicStyle += 'border-right-width:' + border.right + 'px;';
+ dynamicStyle += 'border-left-width:' + border.left + 'px;';
+ dynamicStyle += 'border-bottom-width:' + border.bottom + 'px;';
+ dynamicStyle += 'border-style: solid;';
+ dynamicStyle += '}';
+
+ astra_add_dynamic_css( 'header-main-rt-section-button-border-size', dynamicStyle );
+ }
+ } );
+ } );
+
+ var ele_border_radius_selector = '';
+ var ele_border_width_selector = '';
+ var ele_padding_selector = '';
+
+ if ( astraCustomizer.page_builder_button_style_css ) {
+ if ( 'color-typo' == astraCustomizer.elementor_default_color_font_setting || 'color' == astraCustomizer.elementor_default_color_font_setting || 'font' == astraCustomizer.elementor_default_color_font_setting ) {
+ ele_border_radius_selector = ', .elementor-button-wrapper .elementor-button.elementor-size-sm, .elementor-button-wrapper .elementor-button.elementor-size-xs, .elementor-button-wrapper .elementor-button.elementor-size-md, .elementor-button-wrapper .elementor-button.elementor-size-lg, .elementor-button-wrapper .elementor-button.elementor-size-xl, .elementor-button-wrapper .elementor-button';
+ ele_border_width_selector = ', .elementor-button-wrapper .elementor-button, .elementor-button-wrapper .elementor-button:visited';
+ ele_padding_selector = ', .elementor-button-wrapper .elementor-button.elementor-size-sm, .elementor-button-wrapper .elementor-button.elementor-size-xs, .elementor-button-wrapper .elementor-button.elementor-size-md, .elementor-button-wrapper .elementor-button.elementor-size-lg, .elementor-button-wrapper .elementor-button.elementor-size-xl, .elementor-button-wrapper .elementor-button';
+ }
+ }
+
+ astra_css( 'astra-settings[button-radius]', 'border-radius', '.menu-toggle, button, .ast-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"]' + ele_border_radius_selector, 'px' );
+
+ /**
+ * Button border
+ */
+ wp.customize( 'astra-settings[theme-button-border-group-border-size]', function( value ) {
+ value.bind( function( border ) {
+ if( '' != border.top || '' != border.right || '' != border.bottom || '' != border.left ) {
+ if( astraCustomizer.gb_outline_buttons_patterns_support && ! astraCustomizer.updated_gb_outline_button_patterns ) {
+ wp.customize.preview.send( 'refresh' );
+ } else {
+ var search_button_selector = hasWordPressWidgetBlockEditor() ? ', form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button' : '' ;
+ var dynamicStyle = '.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .wp-block-button .wp-block-button__link' + ele_border_width_selector + search_button_selector;
+ dynamicStyle += '{';
+ dynamicStyle += 'border-top-width:' + border.top + 'px;';
+ dynamicStyle += 'border-right-width:' + border.right + 'px;';
+ dynamicStyle += 'border-left-width:' + border.left + 'px;';
+ dynamicStyle += 'border-bottom-width:' + border.bottom + 'px;';
+ dynamicStyle += 'border-style: solid;';
+ dynamicStyle += '}';
+
+ astra_add_dynamic_css( 'theme-button-border-group-border-size', dynamicStyle );
+ }
+ }
+ } );
+ } );
+
+ var search_button_selector = hasWordPressWidgetBlockEditor() ? ', form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button' : '' ;
+
+ astra_responsive_spacing( 'astra-settings[theme-button-padding]','.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .woocommerce a.button, .woocommerce button.button, .woocommerce .product a.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled], .wp-block-button .wp-block-button__link' + ele_padding_selector + search_button_selector, 'padding', [ 'top', 'bottom' ] );
+
+ astra_responsive_spacing( 'astra-settings[theme-button-padding]','.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .woocommerce a.button, .woocommerce button.button, .woocommerce .product a.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled], .wp-block-button .wp-block-button__link' + ele_padding_selector + search_button_selector, 'padding', [ 'left', 'right' ] );
+
+ /**
+ * Button border
+ */
+ wp.customize( 'astra-settings[transparent-header-button-border-group]', function( value ) {
+ value.bind( function( value ) {
+
+ var optionValue = JSON.parse(value);
+ var border = optionValue['header-main-rt-trans-section-button-border-size'];
+
+ if( '' != border.top || '' != border.right || '' != border.bottom || '' != border.left ) {
+ var dynamicStyle = '.ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button';
+ dynamicStyle += '{';
+ dynamicStyle += 'border-top-width:' + border.top + 'px;';
+ dynamicStyle += 'border-right-width:' + border.right + 'px;';
+ dynamicStyle += 'border-left-width:' + border.left + 'px;';
+ dynamicStyle += 'border-bottom-width:' + border.bottom + 'px;';
+ dynamicStyle += 'border-style: solid;';
+ dynamicStyle += '}';
+
+ astra_add_dynamic_css( 'header-main-rt-trans-section-button-border-size', dynamicStyle );
+ }
+ } );
+ } );
+
+ // Site Title - Font family
+ astra_generate_outside_font_family_css( 'astra-settings[font-family-site-title]', '.site-title, .site-title a' );
+
+ // Site Title - Font Weight
+ astra_generate_font_weight_css( 'astra-settings[font-family-site-title]', 'astra-settings[font-weight-site-title]', 'font-weight', '.site-title, .site-title a' );
+
+ // Site Title - Font Size
+ astra_responsive_font_size( 'astra-settings[font-size-site-title]', '.site-title, .site-title a' );
+
+ // Site Title - Line Height
+ astra_css( 'astra-settings[line-height-site-title]', 'line-height', '.site-title, .site-title a' );
+
+ // Site Title - Text Transform
+ astra_css( 'astra-settings[text-transform-site-title]', 'text-transform', '.site-title, .site-title a' );
+
+ // Site tagline - Font family
+ astra_generate_outside_font_family_css( 'astra-settings[font-family-site-tagline]', '.site-header .site-description' );
+
+ // Site Tagline - Font Weight
+ astra_generate_font_weight_css( 'astra-settings[font-family-site-tagline]', 'astra-settings[font-weight-site-tagline]', 'font-weight', '.site-header .site-description' );
+
+ // Site Tagline - Font Size
+ astra_responsive_font_size( 'astra-settings[font-size-site-tagline]', '.site-header .site-description' );
+
+ // Site Tagline - Line Height
+ astra_css( 'astra-settings[line-height-site-tagline]', 'line-height', '.site-header .site-description' );
+
+ // Site Tagline - Text Transform
+ astra_css( 'astra-settings[text-transform-site-tagline]', 'text-transform', '.site-header .site-description' );
+
+ var search_button_selector = hasWordPressWidgetBlockEditor() ? ', form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button' : '' ;
+ var search_button_hover_selector = hasWordPressWidgetBlockEditor() ? ', form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:hover, form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:focus' : '' ;
+
+ if ( astraCustomizer.page_builder_button_style_css ) {
+
+ var btn_color_ele = '';
+ var btn_bg_color_ele = '';
+ var btn_h_color_ele = '';
+ var btn_bg_h_color_ele = '';
+ var btn_border_color_ele = '';
+ var btn_border_h_color_ele = '';
+
+ if ( 'color-typo' == astraCustomizer.elementor_default_color_font_setting || 'color' == astraCustomizer.elementor_default_color_font_setting ) {
+ // Theme Button - Text Color
+ btn_color_ele = ',.elementor-button-wrapper .elementor-button, .elementor-button-wrapper .elementor-button:visited';
+
+ // Theme Button - Background Color
+ btn_bg_color_ele = ',.elementor-button-wrapper .elementor-button, .elementor-button-wrapper .elementor-button:visited';
+
+ // Theme Button - Text Hover Color
+ btn_h_color_ele = ',.elementor-button-wrapper .elementor-button:hover, .elementor-button-wrapper .elementor-button:focus';
+
+ // Theme Button - Background Hover Color
+ btn_bg_h_color_ele = ',.elementor-button-wrapper .elementor-button:hover, .elementor-button-wrapper .elementor-button:focus';
+
+ // Theme Button - Border Color
+ btn_border_color_ele = ', .elementor-button-wrapper .elementor-button, .elementor-button-wrapper .elementor-button:visited';
+
+ // Theme Button - Border Hover Color
+ btn_border_h_color_ele = ',.elementor-button-wrapper .elementor-button:hover, .elementor-button-wrapper .elementor-button:focus';
+ }
+
+ // Theme Button - Text Color
+ astra_css( 'astra-settings[button-color]', 'color', '.menu-toggle, button, .ast-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .wp-block-button .wp-block-button__link, .ast-custom-button' + btn_color_ele + search_button_selector );
+
+ // Theme Button - Background Color
+ astra_css( 'astra-settings[button-bg-color]', 'background-color', '.menu-toggle, button, .ast-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .wp-block-button .wp-block-button__link, .ast-custom-button' + btn_bg_color_ele + search_button_selector );
+
+ // Theme Button - Text Hover Color
+ astra_css( 'astra-settings[button-h-color]', 'color', 'button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .button:hover, input[type=reset]:hover, input[type=reset]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus, .wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link:focus, .ast-custom-button:hover, .ast-custom-button:focus' + btn_h_color_ele + search_button_hover_selector );
+
+ // Theme Button - Background Hover Color
+ astra_css( 'astra-settings[button-bg-h-color]', 'background-color', 'button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .button:hover, input[type=reset]:hover, input[type=reset]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus, .wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link:focus, .ast-custom-button:hover, .ast-custom-button:focus' + btn_bg_h_color_ele + search_button_hover_selector );
+
+ astra_css( 'astra-settings[theme-button-border-group-border-color]', 'border-color', '.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .wp-block-button .wp-block-button__link' + btn_border_color_ele + search_button_selector );
+
+ // Theme Button - Border Hover Color
+ astra_css( 'astra-settings[theme-button-border-group-border-h-color]', 'border-color', 'button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .ast-custom-button:hover, .button:hover, input[type=reset]:hover, input[type=reset]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus, .wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link:focus' + btn_border_h_color_ele + search_button_hover_selector );
+
+ } else {
+ // Theme Button - Text Color
+ astra_css( 'astra-settings[button-color]', 'color', '.menu-toggle, button, .ast-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .ast-custom-button' + search_button_selector );
+
+ // Theme Button - Background Color
+ astra_css( 'astra-settings[button-bg-color]', 'background-color', '.menu-toggle, button, .ast-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .ast-custom-button' + search_button_selector );
+
+ // Theme Button - Border Color
+ astra_css( 'astra-settings[button-bg-color]', 'border-color', '.menu-toggle, button, .ast-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .ast-custom-button' + search_button_selector );
+
+ // Theme Button - Text Hover Color
+ astra_css( 'astra-settings[button-h-color]', 'color', 'button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .button:hover, input[type=reset]:hover, input[type=reset]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus, .ast-custom-button:hover, .ast-custom-button:focus' + search_button_hover_selector );
+
+ // Theme Button - Background Hover Color
+ astra_css( 'astra-settings[button-bg-h-color]', 'background-color', 'button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .button:hover, input[type=reset]:hover, input[type=reset]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus, .ast-custom-button:hover, .ast-custom-button:focus' + search_button_hover_selector );
+
+ astra_responsive_spacing( 'astra-settings[theme-button-padding]','.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .woocommerce a.button, .woocommerce button.button, .woocommerce .product a.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled]' + search_button_selector, 'padding', [ 'top', 'bottom' ] );
+ astra_responsive_spacing( 'astra-settings[theme-button-padding]','.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"], .woocommerce a.button, .woocommerce button.button, .woocommerce .product a.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled]' + search_button_selector, 'padding', [ 'left', 'right' ] );
+ }
+
+ // Global custom event which triggers when partial refresh occurs.
+ wp.customize.bind('preview-ready', function () {
+
+ wp.customize.selectiveRefresh.bind('render-partials-response', function (response) {
+
+ if( response.contents.hasOwnProperty('astra-settings[footer-desktop-items]')
+ || ( ! ( response.contents.hasOwnProperty('astra-settings[header-desktop-items]')
+ || response.contents.hasOwnProperty('astra-settings[header-mobile-items]') ) ) ) {
+ return false;
+ }
+
+ setTimeout( function () {
+ document.dispatchEvent( new CustomEvent( "astLayoutWidthChanged", { "detail": { 'response' : response } }) );
+ }, 10 );
+
+ });
+
+ wp.customize.selectiveRefresh.bind('partial-content-rendered', function (response) {
+
+ if( response.partial.id.includes("footer") ) {
+ return false;
+ }
+
+ sessionStorage.setItem('astPartialContentRendered', true);
+ document.dispatchEvent( new CustomEvent( "astPartialContentRendered", { "detail": { 'response' : response } }) );
+
+ });
+
+ wp.customize.selectiveRefresh.bind('partial-content-rendered', function (response) {
+
+ wp.customize.preview.send( 'AstraBuilderPartialContentRendered', response );
+
+ });
+
+ wp.customize.preview.bind( 'astPreviewDeviceChanged', function( device ) {
+ document.dispatchEvent( new CustomEvent( "astPreviewDeviceChanged", { "detail": device }) );
+
+ } );
+
+ })
+
+ /**
+ * Related Posts Query Arguments - Customizer preview support.
+ */
+ wp.customize( 'astra-settings[related-posts-based-on]', function( setting ) {
+ setting.bind( function() {
+ wp.customize.preview.send( 'refresh' );
+ } );
+ } );
+ wp.customize( 'astra-settings[related-posts-order-by]', function( setting ) {
+ setting.bind( function() {
+ wp.customize.preview.send( 'refresh' );
+ } );
+ } );
+ wp.customize( 'astra-settings[related-posts-order]', function( setting ) {
+ setting.bind( function() {
+ wp.customize.preview.send( 'refresh' );
+ } );
+ } );
+
+ /**
+ * Related Posts color stylings.
+ */
+ astra_css( 'astra-settings[related-posts-text-color]', 'color', '.ast-related-post-content .entry-header .ast-related-post-title a, .ast-related-post-content .ast-related-post-excerpt' );
+ astra_css( 'astra-settings[related-posts-meta-color]', 'color', '.ast-related-post-content .entry-meta, .ast-related-post-content .entry-meta *' );
+ astra_css( 'astra-settings[related-posts-title-color]', 'color', '.ast-single-related-posts-container .ast-related-posts-title-section .ast-related-posts-title' );
+ astra_css( 'astra-settings[related-posts-background-color]', 'background-color', '.ast-single-related-posts-container' );
+ astra_css( 'astra-settings[related-posts-link-color]', 'color', '.ast-related-post-content .ast-related-post-cta a' );
+ astra_css( 'astra-settings[related-posts-link-hover-color]', 'color', '.ast-related-post-content .ast-related-post-cta a:hover' );
+ astra_css( 'astra-settings[related-posts-meta-link-hover-color]', 'color', '.ast-related-post-content .entry-meta a:hover, .ast-related-post-content .entry-meta span a span:hover' );
+
+ // Related Posts - Customizer preview for Post Title.
+ astra_generate_outside_font_family_css( 'astra-settings[related-posts-title-font-family]', '.ast-related-post-content .entry-header .ast-related-post-title, .ast-related-post-content .entry-header .ast-related-post-title a' );
+ astra_css( 'astra-settings[related-posts-title-font-weight]', 'font-weight', '.ast-related-post-content .entry-header .ast-related-post-title, .ast-related-post-content .entry-header .ast-related-post-title a' );
+ astra_responsive_font_size( 'astra-settings[related-posts-title-font-size]', '.ast-related-post-content .entry-header .ast-related-post-title, .ast-related-post-content .entry-header .ast-related-post-title a' );
+ astra_css( 'astra-settings[related-posts-title-line-height]', 'line-height', '.ast-related-post-content .entry-header .ast-related-post-title, .ast-related-post-content .entry-header .ast-related-post-title a' );
+ astra_css( 'astra-settings[related-posts-title-text-transform]', 'text-transform', '.ast-related-post-content .entry-header .ast-related-post-title, .ast-related-post-content .entry-header .ast-related-post-title a' );
+
+ // Related Posts - Customizer preview for Section Title.
+ astra_generate_outside_font_family_css( 'astra-settings[related-posts-section-title-font-family]', '.ast-single-related-posts-container .ast-related-posts-title-section .ast-related-posts-title' );
+ astra_css( 'astra-settings[related-posts-section-title-font-weight]', 'font-weight', '.ast-single-related-posts-container .ast-related-posts-title-section .ast-related-posts-title' );
+ astra_responsive_font_size( 'astra-settings[related-posts-section-title-font-size]', '.ast-single-related-posts-container .ast-related-posts-title-section .ast-related-posts-title' );
+ astra_css( 'astra-settings[related-posts-section-title-line-height]', 'line-height', '.ast-single-related-posts-container .ast-related-posts-title-section .ast-related-posts-title' );
+ astra_css( 'astra-settings[related-posts-section-title-text-transform]', 'text-transform', '.ast-single-related-posts-container .ast-related-posts-title-section .ast-related-posts-title' );
+ astra_css( 'astra-settings[releted-posts-title-alignment]', 'text-align', '.ast-single-related-posts-container .ast-related-posts-title-section .ast-related-posts-title' );
+
+ // Related Posts - Customizer preview for Post Meta.
+ astra_generate_outside_font_family_css( 'astra-settings[related-posts-meta-font-family]', '.ast-related-post-content .entry-meta, .ast-related-post-content .entry-meta *' );
+ astra_css( 'astra-settings[related-posts-meta-font-weight]', 'font-weight', '.ast-related-post-content .entry-meta, .ast-related-post-content .entry-meta *' );
+ astra_responsive_font_size( 'astra-settings[related-posts-meta-font-size]', '.ast-related-post-content .entry-meta, .ast-related-post-content .entry-meta *' );
+ astra_css( 'astra-settings[related-posts-meta-line-height]', 'line-height', '.ast-related-post-content .entry-meta, .ast-related-post-content .entry-meta *' );
+ astra_css( 'astra-settings[related-posts-meta-text-transform]', 'text-transform', '.ast-related-post-content .entry-meta, .ast-related-post-content .entry-meta *' );
+
+ // Related Posts - Customizer preview for Post Content.
+ astra_generate_outside_font_family_css( 'astra-settings[related-posts-content-font-family]', '.ast-related-post-content .ast-related-post-excerpt' );
+ astra_css( 'astra-settings[related-posts-content-font-weight]', 'font-weight', '.ast-related-post-content .ast-related-post-excerpt' );
+ astra_responsive_font_size( 'astra-settings[related-posts-content-font-size]', '.ast-related-post-content .ast-related-post-excerpt' );
+ astra_css( 'astra-settings[related-posts-content-line-height]', 'line-height', '.ast-related-post-content .ast-related-post-excerpt' );
+ astra_css( 'astra-settings[related-posts-content-text-transform]', 'text-transform', '.ast-related-post-content .ast-related-post-excerpt' );
+
+ // Title Color.
+ astra_css(
+ 'astra-settings[header-color-site-title]',
+ 'color',
+ '.ast-site-identity .site-title a, .ast-site-identity .site-title'
+ );
+
+ // Title Hover Color.
+ astra_css(
+ 'astra-settings[header-color-h-site-title]',
+ 'color',
+ '.ast-site-identity .site-title a:hover, .ast-site-identity .site-title:hover'
+ );
+
+ // Tagline Color.
+ astra_css(
+ 'astra-settings[header-color-site-tagline]',
+ 'color',
+ '.ast-site-identity .site-description'
+ );
+
+} )( jQuery );
diff --git a/assets/js/unminified/extend-customizer.js b/assets/js/unminified/extend-customizer.js
new file mode 100644
index 0000000..e82d516
--- /dev/null
+++ b/assets/js/unminified/extend-customizer.js
@@ -0,0 +1,349 @@
+/**
+ * Extend Customizer Panel
+ *
+ * @package Astra
+ */
+
+( function( $ ) {
+
+ var api = wp.customize;
+
+ api.bind( 'pane-contents-reflowed', function() {
+
+ // Reflow sections
+ var sections = [];
+
+ api.section.each( function( section ) {
+
+ if (
+ 'ast_section' !== section.params.type ||
+ 'undefined' === typeof section.params.section
+ ) {
+
+ return;
+
+ }
+
+ sections.push( section );
+
+ });
+
+ sections.sort( api.utils.prioritySort ).reverse();
+
+ $.each( sections, function( i, section ) {
+
+ var parentContainer = $( '#sub-accordion-section-' + section.params.section );
+
+ parentContainer.children( '.section-meta' ).after( section.headContainer );
+
+ });
+
+ // Reflow panels
+ var panels = [];
+
+ api.panel.each( function( panel ) {
+
+ if (
+ 'ast_panel' !== panel.params.type ||
+ 'undefined' === typeof panel.params.panel
+ ) {
+
+ return;
+
+ }
+
+ panels.push( panel );
+
+ });
+
+ panels.sort( api.utils.prioritySort ).reverse();
+
+ $.each( panels, function( i, panel ) {
+
+ var parentContainer = $( '#sub-accordion-panel-' + panel.params.panel );
+
+ parentContainer.children( '.panel-meta' ).after( panel.headContainer );
+
+ });
+
+ });
+
+
+ // Extend Panel
+ var _panelEmbed = wp.customize.Panel.prototype.embed;
+ var _panelIsContextuallyActive = wp.customize.Panel.prototype.isContextuallyActive;
+ var _panelAttachEvents = wp.customize.Panel.prototype.attachEvents;
+
+ wp.customize.Panel = wp.customize.Panel.extend({
+ attachEvents: function() {
+
+ if (
+ 'ast_panel' !== this.params.type ||
+ 'undefined' === typeof this.params.panel
+ ) {
+
+ _panelAttachEvents.call( this );
+
+ return;
+
+ }
+
+ _panelAttachEvents.call( this );
+
+ var panel = this;
+
+ panel.expanded.bind( function( expanded ) {
+
+ var parent = api.panel( panel.params.panel );
+
+ if ( expanded ) {
+
+ parent.contentContainer.addClass( 'current-panel-parent' );
+
+ } else {
+
+ parent.contentContainer.removeClass( 'current-panel-parent' );
+
+ }
+
+ });
+
+ panel.container.find( '.customize-panel-back' )
+ .off( 'click keydown' )
+ .on( 'click keydown', function( event ) {
+
+ if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
+
+ return;
+
+ }
+
+ event.preventDefault(); // Keep this AFTER the key filter above
+
+ if ( panel.expanded() ) {
+
+ api.panel( panel.params.panel ).expand();
+
+ }
+
+ });
+
+ },
+ embed: function() {
+
+ if (
+ 'ast_panel' !== this.params.type ||
+ 'undefined' === typeof this.params.panel
+ ) {
+
+ _panelEmbed.call( this );
+
+ return;
+
+ }
+
+ _panelEmbed.call( this );
+
+ var panel = this;
+ var parentContainer = $( '#sub-accordion-panel-' + this.params.panel );
+
+ parentContainer.append( panel.headContainer );
+
+ },
+ isContextuallyActive: function() {
+
+ if (
+ 'ast_panel' !== this.params.type
+ ) {
+
+ return _panelIsContextuallyActive.call( this );
+
+ }
+
+ var panel = this;
+ var children = this._children( 'panel', 'section' );
+
+ api.panel.each( function( child ) {
+
+ if ( ! child.params.panel ) {
+
+ return;
+
+ }
+
+ if ( child.params.panel !== panel.id ) {
+
+ return;
+
+ }
+
+ children.push( child );
+
+ });
+
+ children.sort( api.utils.prioritySort );
+
+ var activeCount = 0;
+
+ _( children ).each( function ( child ) {
+
+ if ( child.active() && child.isContextuallyActive() ) {
+
+ activeCount += 1;
+
+ }
+
+ });
+
+ return ( activeCount !== 0 );
+
+ }
+
+ });
+
+
+ // Extend Section
+ var _sectionEmbed = wp.customize.Section.prototype.embed;
+ var _sectionIsContextuallyActive = wp.customize.Section.prototype.isContextuallyActive;
+ var _sectionAttachEvents = wp.customize.Section.prototype.attachEvents;
+
+ wp.customize.Section = wp.customize.Section.extend({
+ attachEvents: function() {
+
+ if (
+ 'ast_section' !== this.params.type ||
+ 'undefined' === typeof this.params.section
+ ) {
+
+ _sectionAttachEvents.call( this );
+
+ return;
+
+ }
+
+ _sectionAttachEvents.call( this );
+
+ var section = this;
+
+ section.expanded.bind( function( expanded ) {
+
+ var parent = api.section( section.params.section );
+
+ if ( expanded ) {
+
+ parent.contentContainer.addClass( 'current-section-parent' );
+
+ } else {
+
+ parent.contentContainer.removeClass( 'current-section-parent' );
+
+ }
+
+ });
+
+ section.container.find( '.customize-section-back' )
+ .off( 'click keydown' )
+ .on( 'click keydown', function( event ) {
+
+ if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
+
+ return;
+
+ }
+
+ event.preventDefault(); // Keep this AFTER the key filter above
+
+ if ( section.expanded() ) {
+
+ api.section( section.params.section ).expand();
+
+ }
+
+ });
+
+ },
+ embed: function() {
+
+ if (
+ 'ast_section' !== this.params.type ||
+ 'undefined' === typeof this.params.section
+ ) {
+
+ _sectionEmbed.call( this );
+
+ return;
+
+ }
+
+ _sectionEmbed.call( this );
+
+ var section = this;
+ var parentContainer = $( '#sub-accordion-section-' + this.params.section );
+
+ parentContainer.append( section.headContainer );
+
+ },
+ isContextuallyActive: function() {
+
+ if (
+ 'ast_section' !== this.params.type
+ ) {
+
+ return _sectionIsContextuallyActive.call( this );
+
+ }
+
+ var section = this;
+ var children = this._children( 'section', 'control' );
+
+ api.section.each( function( child ) {
+
+ if ( ! child.params.section ) {
+
+ return;
+
+ }
+
+ if ( child.params.section !== section.id ) {
+
+ return;
+
+ }
+
+ children.push( child );
+
+ });
+
+ children.sort( api.utils.prioritySort );
+
+ var activeCount = 0;
+
+ _( children ).each( function ( child ) {
+
+ if ( 'undefined' !== typeof child.isContextuallyActive ) {
+
+ if ( child.active() && child.isContextuallyActive() ) {
+
+ activeCount += 1;
+
+ }
+
+ } else {
+
+ if ( child.active() ) {
+
+ activeCount += 1;
+
+ }
+
+ }
+
+ });
+
+ return ( activeCount !== 0 );
+
+ }
+
+ });
+
+})( jQuery ); \ No newline at end of file
diff --git a/assets/js/unminified/flexibility.js b/assets/js/unminified/flexibility.js
new file mode 100644
index 0000000..ec34e1b
--- /dev/null
+++ b/assets/js/unminified/flexibility.js
@@ -0,0 +1,466 @@
+/**
+ * Flexibility is a JavaScript polyfill for Flexbox By Jonathan Neal, 10up. (https://github.com/jonathantneal/flexibility)
+ * Licensed under MIT ( https://github.com/jonathantneal/flexibility/blob/master/LICENSE.md )
+ */
+! function(e) {
+ if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
+ else if ("function" == typeof define && define.amd) define([], e);
+ else {
+ var t;
+ t = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this, t.flexibility = e()
+ }
+}(function() {
+ return function e(t, r, l) {
+ function n(f, i) {
+ if (!r[f]) {
+ if (!t[f]) {
+ var s = "function" == typeof require && require;
+ if (!i && s) return s(f, !0);
+ if (o) return o(f, !0);
+ var a = new Error("Cannot find module '" + f + "'");
+ throw a.code = "MODULE_NOT_FOUND", a
+ }
+ var c = r[f] = {
+ exports: {}
+ };
+ t[f][0].call(c.exports, function(e) {
+ var r = t[f][1][e];
+ return n(r ? r : e)
+ }, c, c.exports, e, t, r, l)
+ }
+ return r[f].exports
+ }
+ for (var o = "function" == typeof require && require, f = 0; f < l.length; f++) n(l[f]);
+ return n
+ }({
+ 1: [function(e, t, r) {
+ t.exports = function(e) {
+ var t, r, l, n = -1;
+ if (e.lines.length > 1 && "flex-start" === e.style.alignContent)
+ for (t = 0; l = e.lines[++n];) l.crossStart = t, t += l.cross;
+ else if (e.lines.length > 1 && "flex-end" === e.style.alignContent)
+ for (t = e.flexStyle.crossSpace; l = e.lines[++n];) l.crossStart = t, t += l.cross;
+ else if (e.lines.length > 1 && "center" === e.style.alignContent)
+ for (t = e.flexStyle.crossSpace / 2; l = e.lines[++n];) l.crossStart = t, t += l.cross;
+ else if (e.lines.length > 1 && "space-between" === e.style.alignContent)
+ for (r = e.flexStyle.crossSpace / (e.lines.length - 1), t = 0; l = e.lines[++n];) l.crossStart = t, t += l.cross + r;
+ else if (e.lines.length > 1 && "space-around" === e.style.alignContent)
+ for (r = 2 * e.flexStyle.crossSpace / (2 * e.lines.length), t = r / 2; l = e.lines[++n];) l.crossStart = t, t += l.cross + r;
+ else
+ for (r = e.flexStyle.crossSpace / e.lines.length, t = e.flexStyle.crossInnerBefore; l = e.lines[++n];) l.crossStart = t, l.cross += r, t += l.cross
+ }
+ }, {}],
+ 2: [function(e, t, r) {
+ t.exports = function(e) {
+ for (var t, r = -1; line = e.lines[++r];)
+ for (t = -1; child = line.children[++t];) {
+ var l = child.style.alignSelf;
+ "auto" === l && (l = e.style.alignItems), "flex-start" === l ? child.flexStyle.crossStart = line.crossStart : "flex-end" === l ? child.flexStyle.crossStart = line.crossStart + line.cross - child.flexStyle.crossOuter : "center" === l ? child.flexStyle.crossStart = line.crossStart + (line.cross - child.flexStyle.crossOuter) / 2 : (child.flexStyle.crossStart = line.crossStart, child.flexStyle.crossOuter = line.cross, child.flexStyle.cross = child.flexStyle.crossOuter - child.flexStyle.crossBefore - child.flexStyle.crossAfter)
+ }
+ }
+ }, {}],
+ 3: [function(e, t, r) {
+ t.exports = function l(e, l) {
+ var t = "row" === l || "row-reverse" === l,
+ r = e.mainAxis;
+ if (r) {
+ var n = t && "inline" === r || !t && "block" === r;
+ n || (e.flexStyle = {
+ main: e.flexStyle.cross,
+ cross: e.flexStyle.main,
+ mainOffset: e.flexStyle.crossOffset,
+ crossOffset: e.flexStyle.mainOffset,
+ mainBefore: e.flexStyle.crossBefore,
+ mainAfter: e.flexStyle.crossAfter,
+ crossBefore: e.flexStyle.mainBefore,
+ crossAfter: e.flexStyle.mainAfter,
+ mainInnerBefore: e.flexStyle.crossInnerBefore,
+ mainInnerAfter: e.flexStyle.crossInnerAfter,
+ crossInnerBefore: e.flexStyle.mainInnerBefore,
+ crossInnerAfter: e.flexStyle.mainInnerAfter,
+ mainBorderBefore: e.flexStyle.crossBorderBefore,
+ mainBorderAfter: e.flexStyle.crossBorderAfter,
+ crossBorderBefore: e.flexStyle.mainBorderBefore,
+ crossBorderAfter: e.flexStyle.mainBorderAfter
+ })
+ } else t ? e.flexStyle = {
+ main: e.style.width,
+ cross: e.style.height,
+ mainOffset: e.style.offsetWidth,
+ crossOffset: e.style.offsetHeight,
+ mainBefore: e.style.marginLeft,
+ mainAfter: e.style.marginRight,
+ crossBefore: e.style.marginTop,
+ crossAfter: e.style.marginBottom,
+ mainInnerBefore: e.style.paddingLeft,
+ mainInnerAfter: e.style.paddingRight,
+ crossInnerBefore: e.style.paddingTop,
+ crossInnerAfter: e.style.paddingBottom,
+ mainBorderBefore: e.style.borderLeftWidth,
+ mainBorderAfter: e.style.borderRightWidth,
+ crossBorderBefore: e.style.borderTopWidth,
+ crossBorderAfter: e.style.borderBottomWidth
+ } : e.flexStyle = {
+ main: e.style.height,
+ cross: e.style.width,
+ mainOffset: e.style.offsetHeight,
+ crossOffset: e.style.offsetWidth,
+ mainBefore: e.style.marginTop,
+ mainAfter: e.style.marginBottom,
+ crossBefore: e.style.marginLeft,
+ crossAfter: e.style.marginRight,
+ mainInnerBefore: e.style.paddingTop,
+ mainInnerAfter: e.style.paddingBottom,
+ crossInnerBefore: e.style.paddingLeft,
+ crossInnerAfter: e.style.paddingRight,
+ mainBorderBefore: e.style.borderTopWidth,
+ mainBorderAfter: e.style.borderBottomWidth,
+ crossBorderBefore: e.style.borderLeftWidth,
+ crossBorderAfter: e.style.borderRightWidth
+ }, "content-box" === e.style.boxSizing && ("number" == typeof e.flexStyle.main && (e.flexStyle.main += e.flexStyle.mainInnerBefore + e.flexStyle.mainInnerAfter + e.flexStyle.mainBorderBefore + e.flexStyle.mainBorderAfter), "number" == typeof e.flexStyle.cross && (e.flexStyle.cross += e.flexStyle.crossInnerBefore + e.flexStyle.crossInnerAfter + e.flexStyle.crossBorderBefore + e.flexStyle.crossBorderAfter));
+ e.mainAxis = t ? "inline" : "block", e.crossAxis = t ? "block" : "inline", "number" == typeof e.style.flexBasis && (e.flexStyle.main = e.style.flexBasis + e.flexStyle.mainInnerBefore + e.flexStyle.mainInnerAfter + e.flexStyle.mainBorderBefore + e.flexStyle.mainBorderAfter), e.flexStyle.mainOuter = e.flexStyle.main, e.flexStyle.crossOuter = e.flexStyle.cross, "auto" === e.flexStyle.mainOuter && (e.flexStyle.mainOuter = e.flexStyle.mainOffset), "auto" === e.flexStyle.crossOuter && (e.flexStyle.crossOuter = e.flexStyle.crossOffset), "number" == typeof e.flexStyle.mainBefore && (e.flexStyle.mainOuter += e.flexStyle.mainBefore), "number" == typeof e.flexStyle.mainAfter && (e.flexStyle.mainOuter += e.flexStyle.mainAfter), "number" == typeof e.flexStyle.crossBefore && (e.flexStyle.crossOuter += e.flexStyle.crossBefore), "number" == typeof e.flexStyle.crossAfter && (e.flexStyle.crossOuter += e.flexStyle.crossAfter)
+ }
+ }, {}],
+ 4: [function(e, t, r) {
+ var l = e("../reduce");
+ t.exports = function(e) {
+ if (e.mainSpace > 0) {
+ var t = l(e.children, function(e, t) {
+ return e + parseFloat(t.style.flexGrow)
+ }, 0);
+ t > 0 && (e.main = l(e.children, function(r, l) {
+ return "auto" === l.flexStyle.main ? l.flexStyle.main = l.flexStyle.mainOffset + parseFloat(l.style.flexGrow) / t * e.mainSpace : l.flexStyle.main += parseFloat(l.style.flexGrow) / t * e.mainSpace, l.flexStyle.mainOuter = l.flexStyle.main + l.flexStyle.mainBefore + l.flexStyle.mainAfter, r + l.flexStyle.mainOuter
+ }, 0), e.mainSpace = 0)
+ }
+ }
+ }, {
+ "../reduce": 12
+ }],
+ 5: [function(e, t, r) {
+ var l = e("../reduce");
+ t.exports = function(e) {
+ if (e.mainSpace < 0) {
+ var t = l(e.children, function(e, t) {
+ return e + parseFloat(t.style.flexShrink)
+ }, 0);
+ t > 0 && (e.main = l(e.children, function(r, l) {
+ return l.flexStyle.main += parseFloat(l.style.flexShrink) / t * e.mainSpace, l.flexStyle.mainOuter = l.flexStyle.main + l.flexStyle.mainBefore + l.flexStyle.mainAfter, r + l.flexStyle.mainOuter
+ }, 0), e.mainSpace = 0)
+ }
+ }
+ }, {
+ "../reduce": 12
+ }],
+ 6: [function(e, t, r) {
+ var l = e("../reduce");
+ t.exports = function(e) {
+ var t;
+ e.lines = [t = {
+ main: 0,
+ cross: 0,
+ children: []
+ }];
+ for (var r, n = -1; r = e.children[++n];) "nowrap" === e.style.flexWrap || 0 === t.children.length || "auto" === e.flexStyle.main || e.flexStyle.main - e.flexStyle.mainInnerBefore - e.flexStyle.mainInnerAfter - e.flexStyle.mainBorderBefore - e.flexStyle.mainBorderAfter >= t.main + r.flexStyle.mainOuter ? (t.main += r.flexStyle.mainOuter, t.cross = Math.max(t.cross, r.flexStyle.crossOuter)) : e.lines.push(t = {
+ main: r.flexStyle.mainOuter,
+ cross: r.flexStyle.crossOuter,
+ children: []
+ }), t.children.push(r);
+ e.flexStyle.mainLines = l(e.lines, function(e, t) {
+ return Math.max(e, t.main)
+ }, 0), e.flexStyle.crossLines = l(e.lines, function(e, t) {
+ return e + t.cross
+ }, 0), "auto" === e.flexStyle.main && (e.flexStyle.main = Math.max(e.flexStyle.mainOffset, e.flexStyle.mainLines + e.flexStyle.mainInnerBefore + e.flexStyle.mainInnerAfter + e.flexStyle.mainBorderBefore + e.flexStyle.mainBorderAfter)), "auto" === e.flexStyle.cross && (e.flexStyle.cross = Math.max(e.flexStyle.crossOffset, e.flexStyle.crossLines + e.flexStyle.crossInnerBefore + e.flexStyle.crossInnerAfter + e.flexStyle.crossBorderBefore + e.flexStyle.crossBorderAfter)), e.flexStyle.crossSpace = e.flexStyle.cross - e.flexStyle.crossInnerBefore - e.flexStyle.crossInnerAfter - e.flexStyle.crossBorderBefore - e.flexStyle.crossBorderAfter - e.flexStyle.crossLines, e.flexStyle.mainOuter = e.flexStyle.main + e.flexStyle.mainBefore + e.flexStyle.mainAfter, e.flexStyle.crossOuter = e.flexStyle.cross + e.flexStyle.crossBefore + e.flexStyle.crossAfter
+ }
+ }, {
+ "../reduce": 12
+ }],
+ 7: [function(e, t, r) {
+ function l(t) {
+ for (var r, l = -1; r = t.children[++l];) e("./flex-direction")(r, t.style.flexDirection);
+ e("./flex-direction")(t, t.style.flexDirection), e("./order")(t), e("./flexbox-lines")(t), e("./align-content")(t), l = -1;
+ for (var n; n = t.lines[++l];) n.mainSpace = t.flexStyle.main - t.flexStyle.mainInnerBefore - t.flexStyle.mainInnerAfter - t.flexStyle.mainBorderBefore - t.flexStyle.mainBorderAfter - n.main, e("./flex-grow")(n), e("./flex-shrink")(n), e("./margin-main")(n), e("./margin-cross")(n), e("./justify-content")(n, t.style.justifyContent, t);
+ e("./align-items")(t)
+ }
+ t.exports = l
+ }, {
+ "./align-content": 1,
+ "./align-items": 2,
+ "./flex-direction": 3,
+ "./flex-grow": 4,
+ "./flex-shrink": 5,
+ "./flexbox-lines": 6,
+ "./justify-content": 8,
+ "./margin-cross": 9,
+ "./margin-main": 10,
+ "./order": 11
+ }],
+ 8: [function(e, t, r) {
+ t.exports = function(e, t, r) {
+ var l, n, o, f = r.flexStyle.mainInnerBefore,
+ i = -1;
+ if ("flex-end" === t)
+ for (l = e.mainSpace, l += f; o = e.children[++i];) o.flexStyle.mainStart = l, l += o.flexStyle.mainOuter;
+ else if ("center" === t)
+ for (l = e.mainSpace / 2, l += f; o = e.children[++i];) o.flexStyle.mainStart = l, l += o.flexStyle.mainOuter;
+ else if ("space-between" === t)
+ for (n = e.mainSpace / (e.children.length - 1), l = 0, l += f; o = e.children[++i];) o.flexStyle.mainStart = l, l += o.flexStyle.mainOuter + n;
+ else if ("space-around" === t)
+ for (n = 2 * e.mainSpace / (2 * e.children.length), l = n / 2, l += f; o = e.children[++i];) o.flexStyle.mainStart = l, l += o.flexStyle.mainOuter + n;
+ else
+ for (l = 0, l += f; o = e.children[++i];) o.flexStyle.mainStart = l, l += o.flexStyle.mainOuter
+ }
+ }, {}],
+ 9: [function(e, t, r) {
+ t.exports = function(e) {
+ for (var t, r = -1; t = e.children[++r];) {
+ var l = 0;
+ "auto" === t.flexStyle.crossBefore && ++l, "auto" === t.flexStyle.crossAfter && ++l;
+ var n = e.cross - t.flexStyle.crossOuter;
+ "auto" === t.flexStyle.crossBefore && (t.flexStyle.crossBefore = n / l), "auto" === t.flexStyle.crossAfter && (t.flexStyle.crossAfter = n / l), "auto" === t.flexStyle.cross ? t.flexStyle.crossOuter = t.flexStyle.crossOffset + t.flexStyle.crossBefore + t.flexStyle.crossAfter : t.flexStyle.crossOuter = t.flexStyle.cross + t.flexStyle.crossBefore + t.flexStyle.crossAfter
+ }
+ }
+ }, {}],
+ 10: [function(e, t, r) {
+ t.exports = function(e) {
+ for (var t, r = 0, l = -1; t = e.children[++l];) "auto" === t.flexStyle.mainBefore && ++r, "auto" === t.flexStyle.mainAfter && ++r;
+ if (r > 0) {
+ for (l = -1; t = e.children[++l];) "auto" === t.flexStyle.mainBefore && (t.flexStyle.mainBefore = e.mainSpace / r), "auto" === t.flexStyle.mainAfter && (t.flexStyle.mainAfter = e.mainSpace / r), "auto" === t.flexStyle.main ? t.flexStyle.mainOuter = t.flexStyle.mainOffset + t.flexStyle.mainBefore + t.flexStyle.mainAfter : t.flexStyle.mainOuter = t.flexStyle.main + t.flexStyle.mainBefore + t.flexStyle.mainAfter;
+ e.mainSpace = 0
+ }
+ }
+ }, {}],
+ 11: [function(e, t, r) {
+ var l = /^(column|row)-reverse$/;
+ t.exports = function(e) {
+ e.children.sort(function(e, t) {
+ return e.style.order - t.style.order || e.index - t.index
+ }), l.test(e.style.flexDirection) && e.children.reverse()
+ }
+ }, {}],
+ 12: [function(e, t, r) {
+ function l(e, t, r) {
+ for (var l = e.length, n = -1; ++n < l;) n in e && (r = t(r, e[n], n));
+ return r
+ }
+ t.exports = l
+ }, {}],
+ 13: [function(e, t, r) {
+ function l(e) {
+ i(f(e))
+ }
+ var n = e("./read"),
+ o = e("./write"),
+ f = e("./readAll"),
+ i = e("./writeAll");
+ t.exports = l, t.exports.read = n, t.exports.write = o, t.exports.readAll = f, t.exports.writeAll = i
+ }, {
+ "./read": 15,
+ "./readAll": 16,
+ "./write": 17,
+ "./writeAll": 18
+ }],
+ 14: [function(e, t, r) {
+ function l(e, t, r) {
+ var l = e[t],
+ f = String(l).match(o);
+ if (!f) {
+ var a = t.match(s);
+ if (a) {
+ var c = e["border" + a[1] + "Style"];
+ return "none" === c ? 0 : i[l] || 0
+ }
+ return l
+ }
+ var y = f[1],
+ x = f[2];
+ return "px" === x ? 1 * y : "cm" === x ? .3937 * y * 96 : "in" === x ? 96 * y : "mm" === x ? .3937 * y * 96 / 10 : "pc" === x ? 12 * y * 96 / 72 : "pt" === x ? 96 * y / 72 : "rem" === x ? 16 * y : n(l, r)
+ }
+
+ function n(e, t) {
+ f.style.cssText = "border:none!important;clip:rect(0 0 0 0)!important;display:block!important;font-size:1em!important;height:0!important;margin:0!important;padding:0!important;position:relative!important;width:" + e + "!important", t.parentNode.insertBefore(f, t.nextSibling);
+ var r = f.offsetWidth;
+ return t.parentNode.removeChild(f), r
+ }
+ t.exports = l;
+ var o = /^([-+]?\d*\.?\d+)(%|[a-z]+)$/,
+ f = document.createElement("div"),
+ i = {
+ medium: 4,
+ none: 0,
+ thick: 6,
+ thin: 2
+ },
+ s = /^border(Bottom|Left|Right|Top)Width$/
+ }, {}],
+ 15: [function(e, t, r) {
+ function l(e) {
+ var t = {
+ alignContent: "stretch",
+ alignItems: "stretch",
+ alignSelf: "auto",
+ borderBottomStyle: "none",
+ borderBottomWidth: 0,
+ borderLeftStyle: "none",
+ borderLeftWidth: 0,
+ borderRightStyle: "none",
+ borderRightWidth: 0,
+ borderTopStyle: "none",
+ borderTopWidth: 0,
+ boxSizing: "content-box",
+ display: "inline",
+ flexBasis: "auto",
+ flexDirection: "row",
+ flexGrow: 0,
+ flexShrink: 1,
+ flexWrap: "nowrap",
+ justifyContent: "flex-start",
+ height: "auto",
+ marginTop: 0,
+ marginRight: 0,
+ marginLeft: 0,
+ marginBottom: 0,
+ paddingTop: 0,
+ paddingRight: 0,
+ paddingLeft: 0,
+ paddingBottom: 0,
+ maxHeight: "none",
+ maxWidth: "none",
+ minHeight: 0,
+ minWidth: 0,
+ order: 0,
+ position: "static",
+ width: "auto"
+ },
+ r = e instanceof Element;
+ if (r) {
+ var l = e.hasAttribute("data-style"),
+ i = l ? e.getAttribute("data-style") : e.getAttribute("style") || "";
+ l || e.setAttribute("data-style", i);
+ var s = window.getComputedStyle && getComputedStyle(e) || {};
+ f(t, s);
+ var c = e.currentStyle || {};
+ n(t, c), o(t, i);
+ for (var y in t) t[y] = a(t, y, e);
+ var x = e.getBoundingClientRect();
+ t.offsetHeight = x.height || e.offsetHeight, t.offsetWidth = x.width || e.offsetWidth
+ }
+ var S = {
+ element: e,
+ style: t
+ };
+ return S
+ }
+
+ function n(e, t) {
+ for (var r in e) {
+ var l = r in t;
+ if (l) e[r] = t[r];
+ else {
+ // Replace uppercase characters with lowercase.
+ var n = r.replace(/[A-Z]/g, "-$&").toLowerCase(),
+ o = n in t;
+ o && (e[r] = t[n])
+ }
+ }
+ var f = "-js-display" in t;
+ f && (e.display = t["-js-display"])
+ }
+
+ function o(e, t) {
+ for (var r; r = i.exec(t);) {
+ // Replace lowercase characters with uppercase.
+ var l = r[1].toLowerCase().replace(/-[a-z]/g, function(e) {
+ return e.slice(1).toUpperCase()
+ });
+ e[l] = r[2]
+ }
+ }
+
+ function f(e, t) {
+ for (var r in e) {
+ var l = r in t;
+ l && !s.test(r) && (e[r] = t[r])
+ }
+ }
+ t.exports = l;
+ var i = /([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g,
+ s = /^(alignSelf|height|width)$/,
+ a = e("./getComputedLength")
+ }, {
+ "./getComputedLength": 14
+ }],
+ 16: [function(e, t, r) {
+ function l(e) {
+ var t = [];
+ return n(e, t), t
+ }
+
+ function n(e, t) {
+ for (var r, l = o(e), i = [], s = -1; r = e.childNodes[++s];) {
+ var a = 3 === r.nodeType && !/^\s*$/.test(r.nodeValue);
+ if (l && a) {
+ var c = r;
+ r = e.insertBefore(document.createElement("flex-item"), c), r.appendChild(c)
+ }
+ var y = r instanceof Element;
+ if (y) {
+ var x = n(r, t);
+ if (l) {
+ var S = r.style;
+ S.display = "inline-block", S.position = "absolute", x.style = f(r).style, i.push(x)
+ }
+ }
+ }
+ var m = {
+ element: e,
+ children: i
+ };
+ return l && (m.style = f(e).style, t.push(m)), m
+ }
+
+ function o(e) {
+ var t = e instanceof Element,
+ r = t && e.getAttribute("data-style"),
+ l = t && e.currentStyle && e.currentStyle["-js-display"],
+ n = i.test(r) || s.test(l);
+ return n
+ }
+ t.exports = l;
+ var f = e("../read"),
+ i = /(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i,
+ s = /^(inline-)?flex$/i
+ }, {
+ "../read": 15
+ }],
+ 17: [function(e, t, r) {
+ function l(e) {
+ o(e);
+ var t = e.element.style,
+ r = "inline" === e.mainAxis ? ["main", "cross"] : ["cross", "main"];
+ t.boxSizing = "content-box", t.display = "block", t.position = "relative", t.width = n(e.flexStyle[r[0]] - e.flexStyle[r[0] + "InnerBefore"] - e.flexStyle[r[0] + "InnerAfter"] - e.flexStyle[r[0] + "BorderBefore"] - e.flexStyle[r[0] + "BorderAfter"]), t.height = n(e.flexStyle[r[1]] - e.flexStyle[r[1] + "InnerBefore"] - e.flexStyle[r[1] + "InnerAfter"] - e.flexStyle[r[1] + "BorderBefore"] - e.flexStyle[r[1] + "BorderAfter"]);
+ for (var l, f = -1; l = e.children[++f];) {
+ var i = l.element.style,
+ s = "inline" === l.mainAxis ? ["main", "cross"] : ["cross", "main"];
+ i.boxSizing = "content-box", i.display = "block", i.position = "absolute", "auto" !== l.flexStyle[s[0]] && (i.width = n(l.flexStyle[s[0]] - l.flexStyle[s[0] + "InnerBefore"] - l.flexStyle[s[0] + "InnerAfter"] - l.flexStyle[s[0] + "BorderBefore"] - l.flexStyle[s[0] + "BorderAfter"])), "auto" !== l.flexStyle[s[1]] && (i.height = n(l.flexStyle[s[1]] - l.flexStyle[s[1] + "InnerBefore"] - l.flexStyle[s[1] + "InnerAfter"] - l.flexStyle[s[1] + "BorderBefore"] - l.flexStyle[s[1] + "BorderAfter"])), i.top = n(l.flexStyle[s[1] + "Start"]), i.left = n(l.flexStyle[s[0] + "Start"]), i.marginTop = n(l.flexStyle[s[1] + "Before"]), i.marginRight = n(l.flexStyle[s[0] + "After"]), i.marginBottom = n(l.flexStyle[s[1] + "After"]), i.marginLeft = n(l.flexStyle[s[0] + "Before"])
+ }
+ }
+
+ function n(e) {
+ return "string" == typeof e ? e : Math.max(e, 0) + "px"
+ }
+ t.exports = l;
+ var o = e("../flexbox")
+ }, {
+ "../flexbox": 7
+ }],
+ 18: [function(e, t, r) {
+ function l(e) {
+ for (var t, r = -1; t = e[++r];) n(t)
+ }
+ t.exports = l;
+ var n = e("../write")
+ }, {
+ "../write": 17
+ }]
+ }, {}, [13])(13)
+});
diff --git a/assets/js/unminified/frontend.js b/assets/js/unminified/frontend.js
new file mode 100644
index 0000000..e0c9dc4
--- /dev/null
+++ b/assets/js/unminified/frontend.js
@@ -0,0 +1,976 @@
+/**
+ * File fronend.js
+ *
+ * Handles toggling the navigation menu for small screens and enables tab
+ * support for dropdown menus.
+ *
+ * @package Astra
+ */
+
+/**
+ * Get all of an element's parent elements up the DOM tree
+ *
+ * @param {Node} elem The element.
+ * @param {String} selector Selector to match against [optional].
+ * @return {Array} The parent elements.
+ */
+var astraGetParents = function ( elem, selector ) {
+
+ // Element.matches() polyfill.
+ if ( ! Element.prototype.matches) {
+ Element.prototype.matches =
+ Element.prototype.matchesSelector ||
+ Element.prototype.mozMatchesSelector ||
+ Element.prototype.msMatchesSelector ||
+ Element.prototype.oMatchesSelector ||
+ Element.prototype.webkitMatchesSelector ||
+ function(s) {
+ var matches = (this.document || this.ownerDocument).querySelectorAll( s ),
+ i = matches.length;
+ while (--i >= 0 && matches.item( i ) !== this) {}
+ return i > -1;
+ };
+ }
+
+ // Setup parents array.
+ var parents = [];
+
+ // Get matching parent elements.
+ for ( ; elem && elem !== document; elem = elem.parentNode ) {
+
+ // Add matching parents to array.
+ if ( selector ) {
+ if ( elem.matches( selector ) ) {
+ parents.push( elem );
+ }
+ } else {
+ parents.push( elem );
+ }
+ }
+ return parents;
+};
+
+/**
+ * Deprecated: Get all of an element's parent elements up the DOM tree
+ *
+ * @param {Node} elem The element.
+ * @param {String} selector Selector to match against [optional].
+ * @return {Array} The parent elements.
+ */
+var getParents = function ( elem, selector ) {
+ console.warn( 'getParents() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraGetParents() instead.' );
+ astraGetParents( elem, selector );
+}
+
+/**
+ * Toggle Class funtion
+ *
+ * @param {Node} elem The element.
+ * @param {String} selector Selector to match against [optional].
+ * @return {Array} The parent elements.
+ */
+var astraToggleClass = function ( el, className ) {
+ if ( el.classList.contains( className ) ) {
+ el.classList.remove( className );
+ } else {
+ el.classList.add( className );
+ }
+};
+
+/**
+ * Deprecated: Toggle Class funtion
+ *
+ * @param {Node} elem The element.
+ * @param {String} selector Selector to match against [optional].
+ * @return {Array} The parent elements.
+ */
+var toggleClass = function ( el, className ) {
+ console.warn( 'toggleClass() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraToggleClass() instead.' );
+ astraToggleClass( el, className );
+};
+
+// CustomEvent() constructor functionality in Internet Explorer 9 and higher.
+(function () {
+
+ if (typeof window.CustomEvent === "function") return false;
+ function CustomEvent(event, params) {
+ params = params || { bubbles: false, cancelable: false, detail: undefined };
+ var evt = document.createEvent('CustomEvent');
+ evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
+ return evt;
+ }
+ CustomEvent.prototype = window.Event.prototype;
+ window.CustomEvent = CustomEvent;
+})();
+
+/**
+ * Trigget custom JS Event.
+ *
+ * @since 1.4.6
+ *
+ * @link https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent
+ * @param {Node} el Dom Node element on which the event is to be triggered.
+ * @param {Node} typeArg A DOMString representing the name of the event.
+ * @param {String} A CustomEventInit dictionary, having the following fields:
+ * "detail", optional and defaulting to null, of type any, that is an event-dependent value associated with the event.
+ */
+var astraTriggerEvent = function astraTriggerEvent( el, typeArg ) {
+ var customEventInit =
+ arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
+
+ var event = new CustomEvent(typeArg, customEventInit);
+ el.dispatchEvent(event);
+};
+
+( function() {
+
+ var menu_toggle_all = document.querySelectorAll( '#masthead .main-header-menu-toggle' ),
+ main_header_masthead = document.getElementById('masthead'),
+ menu_click_listeners = {},
+ mobileHeaderType = '',
+ body = document.body,
+ mobileHeader = '';
+
+ if ( undefined !== main_header_masthead && null !== main_header_masthead ) {
+
+ mobileHeader = main_header_masthead.querySelector("#ast-mobile-header");
+ }
+
+ if ( '' !== mobileHeader && null !== mobileHeader ) {
+
+ mobileHeaderType = mobileHeader.dataset.type;
+ }
+
+ document.addEventListener( 'astMobileHeaderTypeChange', updateHeaderType, false );
+
+ /**
+ * Updates the header type.
+ */
+ function updateHeaderType( e ) {
+
+ mobileHeaderType = e.detail.type;
+ var popupTrigger = document.querySelectorAll( '.menu-toggle' );
+
+ if( 'dropdown' === mobileHeaderType ) {
+
+ document.getElementById( 'ast-mobile-popup' ).classList.remove( 'active', 'show' );
+ updateTrigger('updateHeader');
+ }
+
+ if ( 'off-canvas' === mobileHeaderType ) {
+
+ for ( var item = 0; item < popupTrigger.length; item++ ) {
+ if ( undefined !== popupTrigger[item] && popupTrigger[item].classList.contains( 'toggled') ) {
+ popupTrigger[item].click();
+ }
+ }
+ }
+
+ init( mobileHeaderType );
+
+ }
+
+ /**
+ * Opens the Popup when trigger is clicked.
+ */
+ popupTriggerClick = function ( event ) {
+
+ var triggerType = event.currentTarget.trigger_type;
+ var popupWrap = document.getElementById( 'ast-mobile-popup' );
+
+ if ( ! body.classList.contains( 'ast-popup-nav-open' ) ) {
+ body.classList.add( 'ast-popup-nav-open' );
+ }
+
+ if ( ! body.classList.contains( 'ast-main-header-nav-open' ) ) {
+ body.classList.add( 'ast-main-header-nav-open' );
+ }
+
+ if ( ! document.documentElement.classList.contains( 'ast-off-canvas-active' ) ) {
+ document.documentElement.classList.add( 'ast-off-canvas-active' );
+ }
+
+ if ( 'desktop' === triggerType ) {
+
+ popupWrap.querySelector( '.ast-mobile-popup-content' ).style.display = 'none';
+ popupWrap.querySelector( '.ast-desktop-popup-content' ).style.display = 'block';
+ }
+ if ( 'mobile' === triggerType ) {
+
+ popupWrap.querySelector( '.ast-desktop-popup-content' ).style.display = 'none';
+ popupWrap.querySelector( '.ast-mobile-popup-content' ).style.display = 'block';
+ }
+ this.style.display = 'none';
+
+ popupWrap.classList.add( 'active', 'show' );
+ }
+
+ /**
+ * Closes the Trigger when Popup is Closed.
+ */
+ function updateTrigger(currentElement) {
+
+ mobileHeader = main_header_masthead.querySelector( "#ast-mobile-header" );
+ var parent_li_sibling = '';
+
+ if( undefined !== mobileHeader && null !== mobileHeader && 'dropdown' === mobileHeader.dataset.type && 'updateHeader' !== currentElement ) {
+ return;
+ }
+ if ( undefined !== currentElement && 'updateHeader' !== currentElement ) {
+
+ parent_li_sibling = currentElement.closest( '.ast-mobile-popup-inner' ).querySelectorAll('.menu-item-has-children');
+
+ } else {
+ var popup = document.querySelector( '#ast-mobile-popup' );
+ parent_li_sibling = popup.querySelectorAll('.menu-item-has-children');
+
+ }
+
+ for ( var j = 0; j < parent_li_sibling.length; j++ ) {
+
+ parent_li_sibling[j].classList.remove('ast-submenu-expanded');
+
+ var all_sub_menu = parent_li_sibling[j].querySelectorAll('.sub-menu');
+ for ( var k = 0; k < all_sub_menu.length; k++ ) {
+ all_sub_menu[k].style.display = 'none';
+ }
+ }
+
+ var popupTrigger = document.querySelectorAll( '.menu-toggle' );
+
+ document.body.classList.remove( 'ast-main-header-nav-open', 'ast-popup-nav-open' );
+ document.documentElement.classList.remove( 'ast-off-canvas-active' );
+
+ for ( var item = 0; item < popupTrigger.length; item++ ) {
+
+ popupTrigger[item].classList.remove( 'toggled' );
+
+ popupTrigger[item].style.display = 'flex';
+ }
+ }
+
+ /**
+ * Main Init Function.
+ */
+ function init( mobileHeaderType ) {
+
+ var popupTriggerMobile = document.querySelectorAll( '#ast-mobile-header .menu-toggle' );
+ var popupTriggerDesktop = document.querySelectorAll( '#ast-desktop-header .menu-toggle' );
+
+ if ( undefined === mobileHeaderType && null !== main_header_masthead ) {
+
+ mobileHeader = main_header_masthead.querySelector("#ast-mobile-header");
+ if( mobileHeader ) {
+ mobileHeaderType = mobileHeader.dataset.type;
+ } else {
+ var desktopHeader = main_header_masthead.querySelector("#ast-desktop-header");
+ if ( desktopHeader ) {
+
+ mobileHeaderType = desktopHeader.dataset.toggleType;
+ } else {
+ return;
+ }
+ }
+ }
+
+ if ( 'off-canvas' === mobileHeaderType ) {
+ var popupClose = document.getElementById( 'menu-toggle-close' ),
+ popupInner = document.querySelector( '.ast-mobile-popup-inner' ),
+ popupLinks = popupInner.getElementsByTagName('a');
+
+ for ( var item = 0; item < popupTriggerMobile.length; item++ ) {
+
+ popupTriggerMobile[item].removeEventListener("click", astraNavMenuToggle, false);
+ // Open the Popup when click on trigger
+ popupTriggerMobile[item].addEventListener("click", popupTriggerClick, false);
+ popupTriggerMobile[item].trigger_type = 'mobile';
+
+ }
+ for ( var item = 0; item < popupTriggerDesktop.length; item++ ) {
+
+ popupTriggerDesktop[item].removeEventListener("click", astraNavMenuToggle, false);
+ // Open the Popup when click on trigger
+ popupTriggerDesktop[item].addEventListener("click", popupTriggerClick, false);
+ popupTriggerDesktop[item].trigger_type = 'desktop';
+
+ }
+
+ //Close Popup on CLose Button Click.
+ popupClose.addEventListener("click", function( e ) {
+ document.getElementById( 'ast-mobile-popup' ).classList.remove( 'active', 'show' );
+ updateTrigger(this);
+ });
+
+ // Close Popup if esc is pressed.
+ document.addEventListener( 'keyup', function (event) {
+ // 27 is keymap for esc key.
+ if ( event.keyCode === 27 ) {
+ event.preventDefault();
+ document.getElementById( 'ast-mobile-popup' ).classList.remove( 'active', 'show' );
+ updateTrigger();
+ }
+ });
+
+ // Close Popup on outside click.
+ document.addEventListener('click', function (event) {
+
+ var target = event.target;
+ var modal = document.querySelector( '.ast-mobile-popup-drawer.active .ast-mobile-popup-overlay' );
+ if ( target === modal ) {
+ document.getElementById( 'ast-mobile-popup' ).classList.remove( 'active', 'show' );
+ updateTrigger();
+ }
+ });
+
+ // Close Popup on # link click inside Popup.
+ for ( link = 0, len = popupLinks.length; link < len; link++ ) {
+ if( null !== popupLinks[link].getAttribute("href") && '#' !== popupLinks[link].getAttribute("href") ){
+ popupLinks[link].addEventListener( 'click', triggerToggleClose, true );
+ popupLinks[link].headerType = 'off-canvas';
+ }
+ }
+
+ AstraToggleSetup();
+ } else if ( 'dropdown' === mobileHeaderType ) {
+
+ var mobileDropdownContent = document.querySelector( '.ast-mobile-header-content' ),
+ desktopDropdownContent = document.querySelector( '.ast-desktop-header-content' ),
+ mobileLinks = mobileDropdownContent.getElementsByTagName('a'),
+ desktopLinks = desktopDropdownContent.getElementsByTagName('a');
+
+ // Close Popup on # link click inside Popup.
+ for ( link = 0, len = mobileLinks.length; link < len; link++ ) {
+ if( null !== mobileLinks[link].getAttribute("href") && '#' !== mobileLinks[link].getAttribute("href") ){
+ mobileLinks[link].addEventListener( 'click', triggerToggleClose, true );
+ mobileLinks[link].headerType = 'dropdown';
+ }
+ }
+
+ // Close Popup on # link click inside Popup.
+ for ( link = 0, len = desktopLinks.length; link < len; link++ ) {
+ desktopLinks[link].addEventListener( 'click', triggerToggleClose, true );
+ desktopLinks[link].headerType = 'dropdown';
+ }
+
+ for ( var item = 0; item < popupTriggerMobile.length; item++ ) {
+
+ popupTriggerMobile[item].removeEventListener("click", popupTriggerClick, false);
+ popupTriggerMobile[item].addEventListener('click', astraNavMenuToggle, false);
+ popupTriggerMobile[item].trigger_type = 'mobile';
+
+ }
+ for ( var item = 0; item < popupTriggerDesktop.length; item++ ) {
+
+ popupTriggerDesktop[item].removeEventListener("click", popupTriggerClick, false);
+ popupTriggerDesktop[item].addEventListener('click', astraNavMenuToggle, false);
+ popupTriggerDesktop[item].trigger_type = 'desktop';
+
+ }
+
+ AstraToggleSetup();
+ }
+
+ accountPopupTrigger();
+
+ }
+
+ function triggerToggleClose( event ) {
+
+ var headerType = event.currentTarget.headerType;
+
+ switch( headerType ) {
+
+ case 'dropdown':
+
+ var popupTrigger = document.querySelectorAll( '.menu-toggle.toggled' );
+
+ for ( var item = 0; item < popupTrigger.length; item++ ) {
+
+ popupTrigger[item].click();
+ }
+ break;
+ case 'off-canvas':
+
+ var popupClose = document.getElementById( 'menu-toggle-close' );
+
+ popupClose.click();
+ break;
+ default:
+ break;
+ }
+ }
+
+ window.addEventListener( 'load', function() {
+ init();
+ } );
+ document.addEventListener( 'astLayoutWidthChanged', function() {
+ init();
+ } );
+
+ document.addEventListener( 'astPartialContentRendered', function() {
+
+ menu_toggle_all = document.querySelectorAll( '.main-header-menu-toggle' );
+
+ body.classList.remove("ast-main-header-nav-open");
+
+ document.addEventListener( 'astMobileHeaderTypeChange', updateHeaderType, false );
+
+ init();
+
+ accountPopupTrigger();
+
+ } );
+
+ var mobile_width = window.innerWidth;
+ function AstraHandleResizeEvent() {
+
+ var menu_offcanvas_close = document.getElementById('menu-toggle-close');
+ var menu_dropdown_close = document.querySelector('.menu-toggle.toggled');
+ var desktop_header_content = document.querySelector('#masthead > #ast-desktop-header .ast-desktop-header-content');
+ var elementor_editor = document.querySelector('.elementor-editor-active');
+
+ if ( desktop_header_content ) {
+ desktop_header_content.style.display = 'none';
+ }
+
+ if ( window.innerWidth !== mobile_width ) {
+ if ( menu_dropdown_close && null === elementor_editor ) {
+ menu_dropdown_close.click();
+ }
+ document.body.classList.remove( 'ast-main-header-nav-open', 'ast-popup-nav-open' );
+ }
+
+ if( menu_offcanvas_close && null === elementor_editor ) {
+ menu_offcanvas_close.click();
+ }
+ updateHeaderBreakPoint();
+
+ if ( 'dropdown' === mobileHeaderType ) {
+ AstraToggleSetup();
+ }
+ }
+
+ window.addEventListener('resize', function(){
+ // Skip resize event when keyboard display event triggers on devices.
+ if( 'INPUT' !== document.activeElement.tagName ) {
+ AstraHandleResizeEvent();
+ }
+ } );
+
+ document.addEventListener('DOMContentLoaded', function () {
+ AstraToggleSetup();
+ /**
+ * Navigation Keyboard Navigation.
+ */
+ var container, count;
+
+ container = document.querySelectorAll( '.navigation-accessibility' );
+
+ for ( count = 0; count <= container.length - 1; count++ ) {
+ if ( container[count] ) {
+ navigation_accessibility( container[count] );
+ }
+ }
+ });
+
+ var get_window_width = function () {
+
+ return document.documentElement.clientWidth;
+ }
+
+ /* Add break point Class and related trigger */
+ var updateHeaderBreakPoint = function () {
+
+ // Content overrflowing out of screen can give incorrect window.innerWidth.
+ // Adding overflow hidden and then calculating the window.innerWidth fixes the problem.
+ var originalOverflow = body.style.overflow;
+ body.style.overflow = 'hidden';
+ var ww = get_window_width();
+ body.style.overflow = originalOverflow;
+
+ var break_point = astra.break_point;
+
+ /**
+ * This case is when one hits a URL one after the other via `Open in New Tab` option
+ * Chrome returns the value of outer width as 0 in this case.
+ * This mis-calculates the width of the window and header seems invisible.
+ * This could be fixed by using `0 === ww` condition below.
+ */
+ if (ww > break_point || 0 === ww) {
+ //remove menu toggled class.
+ if ( menu_toggle_all.length > 0 ) {
+
+ for (var i = 0; i < menu_toggle_all.length; i++) {
+
+ if( null !== menu_toggle_all[i] ) {
+ menu_toggle_all[i].classList.remove('toggled');
+ }
+ }
+ }
+ body.classList.remove("ast-header-break-point");
+ body.classList.add("ast-desktop");
+ astraTriggerEvent(body, "astra-header-responsive-enabled");
+
+ } else {
+
+ body.classList.add("ast-header-break-point");
+ body.classList.remove("ast-desktop");
+ astraTriggerEvent(body, "astra-header-responsive-disabled")
+ }
+ }
+
+ var accountPopupTrigger = function () {
+ // Account login form popup.
+ var header_account_trigger = document.querySelectorAll( '.ast-account-action-login' )[0];
+
+ if( undefined !== header_account_trigger ) {
+
+ var header_account__close_trigger = document.getElementById( 'ast-hb-login-close' );
+ var login_popup = document.getElementById( 'ast-hb-account-login-wrap' );
+
+ header_account_trigger.onclick = function( event ) {
+ event.preventDefault();
+ event.stopPropagation();
+ if ( ! login_popup.classList.contains( 'show' ) ) {
+ login_popup.classList.add( 'show' );
+ }
+ };
+
+ header_account__close_trigger.onclick = function( event ) {
+ event.preventDefault();
+ login_popup.classList.remove( 'show' );
+ };
+ }
+ }
+
+ updateHeaderBreakPoint();
+
+ AstraToggleSubMenu = function( event ) {
+
+ event.preventDefault();
+
+ var parent_li = this.parentNode;
+
+ if ( parent_li.classList.contains('ast-submenu-expanded') && document.querySelector('header.site-header').classList.contains('ast-builder-menu-toggle-link') ) {
+
+ if (!this.classList.contains('ast-menu-toggle')) {
+
+ var link = parent_li.querySelector('a').getAttribute('href');
+ if ( '' !== link && '#' !== link) {
+ window.location = link;
+ }
+ }
+ }
+
+ var parent_li_child = parent_li.querySelectorAll('.menu-item-has-children');
+ for (var j = 0; j < parent_li_child.length; j++) {
+
+ parent_li_child[j].classList.remove('ast-submenu-expanded');
+ var parent_li_child_sub_menu = parent_li_child[j].querySelector('.sub-menu, .children');
+ if( null !== parent_li_child_sub_menu ) {
+ parent_li_child_sub_menu.style.display = 'none';
+ }
+ }
+
+ var parent_li_sibling = parent_li.parentNode.querySelectorAll('.menu-item-has-children');
+ for (var j = 0; j < parent_li_sibling.length; j++) {
+
+ if (parent_li_sibling[j] != parent_li) {
+
+ parent_li_sibling[j].classList.remove('ast-submenu-expanded');
+ var all_sub_menu = parent_li_sibling[j].querySelectorAll('.sub-menu');
+ for (var k = 0; k < all_sub_menu.length; k++) {
+ all_sub_menu[k].style.display = 'none';
+ }
+ }
+ }
+
+ if (parent_li.classList.contains('menu-item-has-children') ) {
+ astraToggleClass(parent_li, 'ast-submenu-expanded');
+ if (parent_li.classList.contains('ast-submenu-expanded')) {
+ parent_li.querySelector('.sub-menu').style.display = 'block';
+ } else {
+ parent_li.querySelector('.sub-menu').style.display = 'none';
+ }
+ }
+ };
+
+ AstraNavigationMenu = function( parentList ) {
+ console.warn( 'AstraNavigationMenu() function has been deprecated since version 1.6.5 or above of Astra Theme and will be removed in the future.' );
+ };
+
+ AstraToggleMenu = function( astra_menu_toggle ) {
+ console.warn('AstraToggleMenu() function has been deprecated since version 1.6.5 or above of Astra Theme and will be removed in the future. Use AstraToggleSubMenu() instead.');
+
+ // Add Eventlisteners for Submenu.
+ if (astra_menu_toggle.length > 0) {
+ for (var i = 0; i < astra_menu_toggle.length; i++) {
+ astra_menu_toggle[i].addEventListener('click', AstraToggleSubMenu, false);
+ }
+ }
+ };
+
+ AstraToggleSetup = function () {
+
+ if ( 'off-canvas' === mobileHeaderType || 'full-width' === mobileHeaderType ) {
+ // comma separated selector added, if menu is outside of Off-Canvas then submenu is not clickable, it work only for Off-Canvas area with dropdown style.
+ var __main_header_all = document.querySelectorAll( '#ast-mobile-popup, #ast-mobile-header' );
+ if ( body.classList.contains('ast-header-break-point') ) {
+
+ var menu_toggle_all = document.querySelectorAll( '#ast-mobile-header .main-header-menu-toggle' );
+ } else {
+ menu_toggle_all = document.querySelectorAll( '#ast-desktop-header .main-header-menu-toggle' );
+ }
+ } else {
+
+ if ( body.classList.contains('ast-header-break-point') ) {
+
+ var __main_header_all = document.querySelectorAll( '#ast-mobile-header' ),
+ menu_toggle_all = document.querySelectorAll( '#ast-mobile-header .main-header-menu-toggle' );
+ } else {
+
+ var __main_header_all = document.querySelectorAll( '#ast-desktop-header' ),
+ menu_toggle_all = document.querySelectorAll( '#ast-desktop-header .main-header-menu-toggle' );
+ }
+ }
+
+ if (menu_toggle_all.length > 0) {
+
+ for (var i = 0; i < menu_toggle_all.length; i++) {
+
+ menu_toggle_all[i].setAttribute('data-index', i);
+
+ if ( ! menu_click_listeners[i] ) {
+ menu_click_listeners[i] = menu_toggle_all[i];
+ menu_toggle_all[i].addEventListener('click', astraNavMenuToggle, false);
+ }
+
+ if ('undefined' !== typeof __main_header_all[i]) {
+
+ // To handle the comma seprated selector added above we need this loop.
+ for( var mainHeaderCount =0; mainHeaderCount < __main_header_all.length; mainHeaderCount++ ){
+
+ if (document.querySelector('header.site-header').classList.contains('ast-builder-menu-toggle-link')) {
+ var astra_menu_toggle = __main_header_all[mainHeaderCount].querySelectorAll('ul.main-header-menu .menu-item-has-children > .menu-link, ul.main-header-menu .ast-menu-toggle');
+ } else {
+ var astra_menu_toggle = __main_header_all[mainHeaderCount].querySelectorAll('ul.main-header-menu .ast-menu-toggle');
+ }
+ // Add Eventlisteners for Submenu.
+ if (astra_menu_toggle.length > 0) {
+
+ for (var j = 0; j < astra_menu_toggle.length; j++) {
+
+ astra_menu_toggle[j].addEventListener('click', AstraToggleSubMenu, false);
+ }
+ }
+ }
+ }
+ }
+ }
+ };
+
+ astraNavMenuToggle = function ( event ) {
+
+ event.preventDefault();
+
+ var desktop_header = event.target.closest('#ast-desktop-header');
+
+ var desktop_header_content = document.querySelector('#masthead > #ast-desktop-header .ast-desktop-header-content');
+
+ if ( null !== desktop_header && undefined !== desktop_header && '' !== desktop_header ) {
+
+ var desktop_toggle = desktop_header.querySelector( '.main-header-menu-toggle' );
+ } else {
+ var desktop_toggle = document.querySelector('#masthead > #ast-desktop-header .main-header-menu-toggle');
+ }
+
+ var desktop_menu = document.querySelector('#masthead > #ast-desktop-header .ast-desktop-header-content .main-header-bar-navigation');
+
+ if ( 'desktop' === event.currentTarget.trigger_type ) {
+
+ if ( null !== desktop_menu && '' !== desktop_menu && undefined !== desktop_menu ) {
+ astraToggleClass(desktop_menu, 'toggle-on');
+ if (desktop_menu.classList.contains('toggle-on')) {
+ desktop_menu.style.display = 'block';
+ } else {
+ desktop_menu.style.display = '';
+ }
+ }
+ astraToggleClass(desktop_toggle, 'toggled');
+ if ( desktop_toggle.classList.contains( 'toggled' ) ) {
+ body.classList.add("ast-main-header-nav-open");
+ if ( 'dropdown' === mobileHeaderType ) {
+ desktop_header_content.style.display = 'block';
+ }
+ } else {
+ body.classList.remove("ast-main-header-nav-open");
+ desktop_header_content.style.display = 'none';
+ }
+ return;
+ }
+
+ var __main_header_all = document.querySelectorAll('#masthead > #ast-mobile-header .main-header-bar-navigation');
+ menu_toggle_all = document.querySelectorAll( '#masthead > #ast-mobile-header .main-header-menu-toggle' )
+ var event_index = '0';
+ var sticky_header = false;
+ if ( null !== this.closest( '#ast-fixed-header' ) ) {
+
+ __main_header_all = document.querySelectorAll('#ast-fixed-header > #ast-mobile-header .main-header-bar-navigation');
+ menu_toggle_all = document.querySelectorAll( '#ast-fixed-header .main-header-menu-toggle' )
+
+ event_index = '0';
+ sticky_header = true;
+
+ }
+
+ if ('undefined' === typeof __main_header_all[event_index]) {
+ return false;
+ }
+ var menuHasChildren = __main_header_all[event_index].querySelectorAll('.menu-item-has-children');
+ for (var i = 0; i < menuHasChildren.length; i++) {
+ menuHasChildren[i].classList.remove('ast-submenu-expanded');
+ var menuHasChildrenSubMenu = menuHasChildren[i].querySelectorAll('.sub-menu');
+ for (var j = 0; j < menuHasChildrenSubMenu.length; j++) {
+ menuHasChildrenSubMenu[j].style.display = 'none';
+ }
+ }
+
+ var menu_class = this.getAttribute('class') || '';
+
+ if ( menu_class.indexOf('main-header-menu-toggle') !== -1 ) {
+ astraToggleClass(__main_header_all[event_index], 'toggle-on');
+ astraToggleClass(menu_toggle_all[event_index], 'toggled');
+ if ( sticky_header && 1 < menu_toggle_all.length ) {
+ astraToggleClass(menu_toggle_all['1'], 'toggled');
+ }
+ if (__main_header_all[event_index].classList.contains('toggle-on')) {
+ __main_header_all[event_index].style.display = 'block';
+ body.classList.add("ast-main-header-nav-open");
+ } else {
+ __main_header_all[event_index].style.display = '';
+ body.classList.remove("ast-main-header-nav-open");
+ }
+ }
+ };
+
+ body.addEventListener("astra-header-responsive-enabled", function () {
+
+ var __main_header_all = document.querySelectorAll('.main-header-bar-navigation');
+
+ if (__main_header_all.length > 0) {
+
+ for (var i = 0; i < __main_header_all.length; i++) {
+ if (null != __main_header_all[i]) {
+ __main_header_all[i].classList.remove('toggle-on');
+ __main_header_all[i].style.display = '';
+ }
+
+ var sub_menu = __main_header_all[i].getElementsByClassName('sub-menu');
+ for (var j = 0; j < sub_menu.length; j++) {
+ sub_menu[j].style.display = '';
+ }
+ var child_menu = __main_header_all[i].getElementsByClassName('children');
+ for (var k = 0; k < child_menu.length; k++) {
+ child_menu[k].style.display = '';
+ }
+
+ var searchIcons = __main_header_all[i].getElementsByClassName('ast-search-menu-icon');
+ for (var l = 0; l < searchIcons.length; l++) {
+ searchIcons[l].classList.remove('ast-dropdown-active');
+ searchIcons[l].style.display = '';
+ }
+ }
+ }
+ }, false);
+
+ var get_browser = function () {
+ var ua = navigator.userAgent,tem,M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
+ if(/trident/i.test(M[1])) {
+ tem = /\brv[ :]+(\d+)/g.exec(ua) || [];
+ return;
+ }
+ if( 'Chrome' === M[1] ) {
+ tem = ua.match(/\bOPR|Edge\/(\d+)/)
+ if(tem != null) {
+ return;
+ }
+ }
+ M = M[2]? [M[1], M[2]]: [navigator.appName, navigator.appVersion, '-?'];
+ if((tem = ua.match(/version\/(\d+)/i)) != null) {
+ M.splice(1,1,tem[1]);
+ }
+
+ if( 'Safari' === M[0] && M[1] < 11 ) {
+ bodyElement.classList.add( "ast-safari-browser-less-than-11" );
+ }
+ }
+
+ get_browser();
+
+ /* Search Script */
+ var SearchIcons = document.getElementsByClassName( 'astra-search-icon' );
+ for (var i = 0; i < SearchIcons.length; i++) {
+
+ SearchIcons[i].onclick = function(event) {
+ if ( this.classList.contains( 'slide-search' ) ) {
+ event.preventDefault();
+ var sibling = this.parentNode.parentNode.parentNode.querySelector( '.ast-search-menu-icon' );
+ if ( ! sibling.classList.contains( 'ast-dropdown-active' ) ) {
+ sibling.classList.add( 'ast-dropdown-active' );
+ sibling.querySelector( '.search-field' ).setAttribute('autocomplete','off');
+ setTimeout(function() {
+ sibling.querySelector( '.search-field' ).focus();
+ },200);
+ } else {
+ var searchTerm = sibling.querySelector( '.search-field' ).value || '';
+ if( '' !== searchTerm ) {
+ sibling.querySelector( '.search-form' ).submit();
+ }
+ sibling.classList.remove( 'ast-dropdown-active' );
+ }
+ }
+ }
+ }
+
+ /* Hide Dropdown on body click*/
+ body.onclick = function( event ) {
+ if ( typeof event.target.classList !== 'undefined' ) {
+ if ( ! event.target.classList.contains( 'ast-search-menu-icon' ) && astraGetParents( event.target, '.ast-search-menu-icon' ).length === 0 && astraGetParents( event.target, '.ast-search-icon' ).length === 0 ) {
+ var dropdownSearchWrap = document.getElementsByClassName( 'ast-search-menu-icon' );
+ for (var i = 0; i < dropdownSearchWrap.length; i++) {
+ dropdownSearchWrap[i].classList.remove( 'ast-dropdown-active' );
+ }
+ }
+ }
+ }
+
+ /**
+ * Navigation Keyboard Navigation.
+ */
+ function navigation_accessibility( container ) {
+ if ( ! container ) {
+ return;
+ }
+
+ var button = container.getElementsByTagName( 'button' )[0];
+ if ( 'undefined' === typeof button ) {
+ button = container.getElementsByTagName( 'a' )[0];
+ if ( 'undefined' === typeof button ) {
+ return;
+ }
+ }
+
+ var menu = container.getElementsByTagName( 'ul' )[0];
+
+ // Hide menu toggle button if menu is empty and return early.
+ if ( 'undefined' === typeof menu ) {
+ button.style.display = 'none';
+ return;
+ }
+
+ menu.setAttribute( 'aria-expanded', 'false' );
+ if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
+ menu.className += ' nav-menu';
+ }
+
+ button.onclick = function() {
+ if ( -1 !== container.className.indexOf( 'toggled' ) ) {
+ container.className = container.className.replace( ' toggled', '' );
+ button.setAttribute( 'aria-expanded', 'false' );
+ menu.setAttribute( 'aria-expanded', 'false' );
+ } else {
+ container.className += ' toggled';
+ button.setAttribute( 'aria-expanded', 'true' );
+ menu.setAttribute( 'aria-expanded', 'true' );
+ }
+ };
+
+ // Get all the link elements within the menu.
+ var links = menu.getElementsByTagName( 'a' );
+ var subMenus = menu.getElementsByTagName( 'ul' );
+
+
+ // Set menu items with submenus to aria-haspopup="true".
+ for ( var i = 0, len = subMenus.length; i < len; i++ ) {
+ subMenus[i].parentNode.setAttribute( 'aria-haspopup', 'true' );
+ }
+
+ // Each time a menu link is focused or blurred, toggle focus.
+ for ( i = 0, len = links.length; i < len; i++ ) {
+ links[i].addEventListener( 'focus', toggleFocus, true );
+ links[i].addEventListener( 'blur', toggleFocus, true );
+ links[i].addEventListener( 'click', toggleClose, true );
+ }
+ }
+
+ /**
+ * Close the Toggle Menu on Click on hash (#) link.
+ *
+ * @since 1.3.2
+ * @return void
+ */
+ function toggleClose( )
+ {
+ var self = this || '',
+ hash = '#';
+
+ if( self && ! self.classList.contains('astra-search-icon') && null === self.closest('.ast-builder-menu') ) {
+ var link = new String( self );
+ if( link.indexOf( hash ) !== -1 ) {
+ var link_parent = self.parentNode;
+ if ( body.classList.contains('ast-header-break-point') ) {
+ if( ! ( document.querySelector('header.site-header').classList.contains('ast-builder-menu-toggle-link') && link_parent.classList.contains('menu-item-has-children') ) ) {
+ /* Close Builder Header Menu */
+ var builder_header_menu_toggle = document.querySelector( '.main-header-menu-toggle' );
+ builder_header_menu_toggle.classList.remove( 'toggled' );
+
+ var main_header_bar_navigation = document.querySelector( '.main-header-bar-navigation' );
+ main_header_bar_navigation.classList.remove( 'toggle-on' );
+
+ main_header_bar_navigation.style.display = 'none';
+
+ astraTriggerEvent( document.querySelector('body'), 'astraMenuHashLinkClicked' );
+ }
+
+ } else {
+ while ( -1 === self.className.indexOf( 'nav-menu' ) ) {
+ // On li elements toggle the class .focus.
+ if ( 'li' === self.tagName.toLowerCase() ) {
+ if ( -1 !== self.className.indexOf( 'focus' ) ) {
+ self.className = self.className.replace( ' focus', '' );
+ }
+ }
+ self = self.parentElement;
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Sets or removes .focus class on an element on focus.
+ */
+ function toggleFocus() {
+ var self = this;
+ // Move up through the ancestors of the current link until we hit .nav-menu.
+ while ( -1 === self.className.indexOf( 'navigation-accessibility' ) ) {
+ // On li elements toggle the class .focus.
+ if ( 'li' === self.tagName.toLowerCase() ) {
+ self.classList.toggle('focus');
+ }
+ self = self.parentElement;
+ }
+ }
+
+ /* Add class if mouse clicked and remove if tab pressed */
+ if ( 'querySelector' in document && 'addEventListener' in window ) {
+ body.addEventListener( 'mousedown', function() {
+ body.classList.add( 'ast-mouse-clicked' );
+ } );
+
+ body.addEventListener( 'keydown', function() {
+ body.classList.remove( 'ast-mouse-clicked' );
+ } );
+ }
+
+})();
diff --git a/assets/js/unminified/mobile-cart.js b/assets/js/unminified/mobile-cart.js
new file mode 100644
index 0000000..7a1ff65
--- /dev/null
+++ b/assets/js/unminified/mobile-cart.js
@@ -0,0 +1,152 @@
+/**
+ *
+ * Handle Mobile Cart events.
+ *
+ * @since 3.1.0
+ * @package Astra
+ */
+
+(function () {
+
+ var cart_flyout = document.getElementById('astra-mobile-cart-drawer'),
+ main_header_masthead = document.getElementById('masthead');
+
+ // Return if masthead not exixts.
+ if (!main_header_masthead) {
+ return;
+ }
+
+ var woo_data = '',
+ mobileHeader = main_header_masthead.querySelector("#ast-mobile-header"),
+ edd_data = '';
+
+ if (undefined !== cart_flyout && '' !== cart_flyout && null !== cart_flyout) {
+ woo_data = cart_flyout.querySelector('.widget_shopping_cart.woocommerce');
+ edd_data = cart_flyout.querySelector('.widget_edd_cart_widget');
+ }
+
+ /**
+ * Opens the Cart Flyout.
+ */
+ cartFlyoutOpen = function (event) {
+ event.preventDefault();
+ var current_cart = event.currentTarget.cart_type;
+
+ if ('woocommerce' === current_cart && document.body.classList.contains('woocommerce-cart')) {
+ return;
+ }
+ cart_flyout.classList.remove('active');
+ cart_flyout.classList.remove('woocommerce-active');
+ cart_flyout.classList.remove('edd-active');
+ if (undefined !== cart_flyout && '' !== cart_flyout && null !== cart_flyout) {
+ cart_flyout.classList.add('active');
+ document.documentElement.classList.add('ast-mobile-cart-active');
+ if (undefined !== edd_data && '' !== edd_data && null !== edd_data) {
+ edd_data.style.display = 'block';
+ if ('woocommerce' === current_cart) {
+ edd_data.style.display = 'none';
+ cart_flyout.classList.add('woocommerce-active');
+ }
+ }
+ if (undefined !== woo_data && '' !== woo_data && null !== woo_data) {
+ woo_data.style.display = 'block';
+ if ('edd' === current_cart) {
+ woo_data.style.display = 'none';
+ cart_flyout.classList.add('edd-active');
+ }
+ }
+ }
+ }
+
+ /**
+ * Closes the Cart Flyout.
+ */
+ cartFlyoutClose = function (event) {
+ event.preventDefault();
+ if (undefined !== cart_flyout && '' !== cart_flyout && null !== cart_flyout) {
+ cart_flyout.classList.remove('active');
+ document.documentElement.classList.remove('ast-mobile-cart-active');
+ }
+ }
+
+ /**
+ * Main Init Function.
+ */
+ function cartInit() {
+ // Close Popup if esc is pressed.
+ document.addEventListener('keyup', function (event) {
+ // 27 is keymap for esc key.
+ if (event.keyCode === 27) {
+ event.preventDefault();
+ cart_flyout.classList.remove('active');
+ document.documentElement.classList.remove('ast-mobile-cart-active');
+ updateTrigger();
+ }
+ });
+
+ // Close Popup on outside click.
+ document.addEventListener('click', function (event) {
+ var target = event.target;
+ var cart_modal = document.querySelector('.ast-mobile-cart-active .astra-mobile-cart-overlay');
+
+ if (target === cart_modal) {
+ cart_flyout.classList.remove('active');
+ document.documentElement.classList.remove('ast-mobile-cart-active');
+ }
+ });
+
+ if (undefined !== mobileHeader && '' !== mobileHeader && null !== mobileHeader) {
+
+ // Mobile Header Cart Flyout.
+ var woo_carts = document.querySelectorAll('.ast-mobile-header-wrap .ast-header-woo-cart');
+ var edd_cart = document.querySelector('.ast-mobile-header-wrap .ast-header-edd-cart');
+ var cart_close = document.querySelector('.astra-cart-drawer-close');
+
+ if( 0 < woo_carts.length ){
+ woo_carts.forEach(function callbackFn(woo_cart) {
+ if (undefined !== woo_cart && '' !== woo_cart && null !== woo_cart) {
+ woo_cart.addEventListener("click", cartFlyoutOpen, false);
+ woo_cart.cart_type = 'woocommerce';
+ }
+ })
+ }
+ if (undefined !== edd_cart && '' !== edd_cart && null !== edd_cart) {
+ edd_cart.addEventListener("click", cartFlyoutOpen, false);
+ edd_cart.cart_type = 'edd';
+ }
+ if (undefined !== cart_close && '' !== cart_close && null !== cart_close) {
+ cart_close.addEventListener("click", cartFlyoutClose, false);
+ }
+ }
+
+ }
+
+ window.addEventListener('resize', function () {
+ // Close Cart
+ var cart_close = document.querySelector('.astra-cart-drawer-close');
+ if (undefined !== cart_close && '' !== cart_close && null !== cart_close && 'INPUT' !== document.activeElement.tagName ) {
+ cart_close.click();
+ }
+ });
+
+ window.addEventListener('load', function () {
+ cartInit();
+ });
+ document.addEventListener('astLayoutWidthChanged', function () {
+ cartInit();
+ });
+
+ document.addEventListener('astPartialContentRendered', function () {
+ cartInit();
+ });
+
+ var layoutChangeDelay;
+ window.addEventListener('resize', function () {
+ clearTimeout(layoutChangeDelay);
+ layoutChangeDelay = setTimeout(function () {
+ cartInit();
+ document.dispatchEvent(new CustomEvent("astLayoutWidthChanged", {"detail": {'response': ''}}));
+ }, 50);
+ });
+
+})();
diff --git a/assets/js/unminified/navigation.js b/assets/js/unminified/navigation.js
new file mode 100644
index 0000000..8504f19
--- /dev/null
+++ b/assets/js/unminified/navigation.js
@@ -0,0 +1,595 @@
+/**
+ * File navigation.js
+ *
+ * Handles toggling the navigation menu for small screens and enables tab
+ * support for dropdown menus.
+ *
+ * @package Astra
+ */
+
+/**
+ * Get all of an element's parent elements up the DOM tree
+ *
+ * @param {Node} elem The element.
+ * @param {String} selector Selector to match against [optional].
+ * @return {Array} The parent elements.
+ */
+var astraGetParents = function ( elem, selector ) {
+
+ // Element.matches() polyfill.
+ if ( ! Element.prototype.matches) {
+ Element.prototype.matches =
+ Element.prototype.matchesSelector ||
+ Element.prototype.mozMatchesSelector ||
+ Element.prototype.msMatchesSelector ||
+ Element.prototype.oMatchesSelector ||
+ Element.prototype.webkitMatchesSelector ||
+ function(s) {
+ var matches = (this.document || this.ownerDocument).querySelectorAll( s ),
+ i = matches.length;
+ while (--i >= 0 && matches.item( i ) !== this) {}
+ return i > -1;
+ };
+ }
+
+ // Setup parents array.
+ var parents = [];
+
+ // Get matching parent elements.
+ for ( ; elem && elem !== document; elem = elem.parentNode ) {
+
+ // Add matching parents to array.
+ if ( selector ) {
+ if ( elem.matches( selector ) ) {
+ parents.push( elem );
+ }
+ } else {
+ parents.push( elem );
+ }
+ }
+ return parents;
+};
+
+/**
+ * Deprecated: Get all of an element's parent elements up the DOM tree
+ *
+ * @param {Node} elem The element.
+ * @param {String} selector Selector to match against [optional].
+ * @return {Array} The parent elements.
+ */
+var getParents = function ( elem, selector ) {
+ console.warn( 'getParents() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraGetParents() instead.' );
+ astraGetParents( elem, selector );
+}
+
+/**
+ * Toggle Class funtion
+ *
+ * @param {Node} elem The element.
+ * @param {String} selector Selector to match against [optional].
+ * @return {Array} The parent elements.
+ */
+var astraToggleClass = function ( el, className ) {
+ if ( el.classList.contains( className ) ) {
+ el.classList.remove( className );
+ } else {
+ el.classList.add( className );
+ }
+};
+
+/**
+ * Deprecated: Toggle Class funtion
+ *
+ * @param {Node} elem The element.
+ * @param {String} selector Selector to match against [optional].
+ * @return {Array} The parent elements.
+ */
+var toggleClass = function ( el, className ) {
+ console.warn( 'toggleClass() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraToggleClass() instead.' );
+ astraToggleClass( el, className );
+};
+
+// CustomEvent() constructor functionality in Internet Explorer 9 and higher.
+(function () {
+
+ if (typeof window.CustomEvent === "function") return false;
+ function CustomEvent(event, params) {
+ params = params || { bubbles: false, cancelable: false, detail: undefined };
+ var evt = document.createEvent('CustomEvent');
+ evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
+ return evt;
+ }
+ CustomEvent.prototype = window.Event.prototype;
+ window.CustomEvent = CustomEvent;
+})();
+
+/**
+ * Trigget custom JS Event.
+ *
+ * @since 1.4.6
+ *
+ * @link https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent
+ * @param {Node} el Dom Node element on which the event is to be triggered.
+ * @param {Node} typeArg A DOMString representing the name of the event.
+ * @param {String} A CustomEventInit dictionary, having the following fields:
+ * "detail", optional and defaulting to null, of type any, that is an event-dependent value associated with the event.
+ */
+var astraTriggerEvent = function astraTriggerEvent( el, typeArg ) {
+ var customEventInit =
+ arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
+
+ var event = new CustomEvent(typeArg, customEventInit);
+ el.dispatchEvent(event);
+};
+
+( function() {
+
+ var menu_toggle_all = document.querySelectorAll( '.main-header-menu-toggle' );
+ var menu_click_listeners = {};
+
+ /* Add break point Class and related trigger */
+ var updateHeaderBreakPoint = function () {
+
+ // Content overrflowing out of screen can give incorrect window.innerWidth.
+ // Adding overflow hidden and then calculating the window.innerWidth fixes the problem.
+ var originalOverflow = document.querySelector('body').style.overflow;
+ document.querySelector('body').style.overflow = 'hidden';
+ var ww = window.innerWidth;
+ document.querySelector('body').style.overflow = originalOverflow;
+
+ var break_point = astra.break_point,
+ headerWrap = document.querySelectorAll('.main-header-bar-wrap');
+
+ if (headerWrap.length > 0) {
+ for (var i = 0; i < headerWrap.length; i++) {
+
+ if (headerWrap[i].tagName == 'DIV' && headerWrap[i].classList.contains('main-header-bar-wrap')) {
+ if (ww > break_point) {
+ //remove menu toggled class.
+ if (null != menu_toggle_all[i]) {
+ menu_toggle_all[i].classList.remove('toggled');
+ }
+ document.body.classList.remove("ast-header-break-point");
+ document.body.classList.add("ast-desktop");
+ astraTriggerEvent(document.body, "astra-header-responsive-enabled");
+
+ } else {
+
+ document.body.classList.add("ast-header-break-point");
+ document.body.classList.remove("ast-desktop");
+ astraTriggerEvent(document.body, "astra-header-responsive-disabled")
+ }
+ }
+ }
+ }
+ }
+
+ updateHeaderBreakPoint();
+
+ AstraToggleSubMenu = function() {
+ var parent_li = this.parentNode;
+ if (parent_li.classList.contains('ast-submenu-expanded') && document.querySelector("header.site-header").classList.contains("ast-menu-toggle-link")) {
+ if (!this.classList.contains('ast-menu-toggle')) {
+ var link = parent_li.querySelector('a').getAttribute('href');
+ if ('' !== link || '#' !== link) {
+ window.location = link;
+ }
+ }
+ }
+
+ var parent_li_child = parent_li.querySelectorAll('.menu-item-has-children');
+ for (var j = 0; j < parent_li_child.length; j++) {
+
+ parent_li_child[j].classList.remove('ast-submenu-expanded');
+ var parent_li_child_sub_menu = parent_li_child[j].querySelector('.sub-menu, .children');
+ if( null !== parent_li_child_sub_menu ) {
+ parent_li_child_sub_menu.style.display = 'none';
+ }
+ }
+
+ var parent_li_sibling = parent_li.parentNode.querySelectorAll('.menu-item-has-children');
+ for (var j = 0; j < parent_li_sibling.length; j++) {
+
+ if (parent_li_sibling[j] != parent_li) {
+
+ parent_li_sibling[j].classList.remove('ast-submenu-expanded');
+ var all_sub_menu = parent_li_sibling[j].querySelectorAll('.sub-menu');
+ for (var k = 0; k < all_sub_menu.length; k++) {
+ all_sub_menu[k].style.display = 'none';
+ }
+ }
+ }
+
+ if (parent_li.classList.contains('menu-item-has-children') ) {
+ astraToggleClass(parent_li, 'ast-submenu-expanded');
+ if (parent_li.classList.contains('ast-submenu-expanded')) {
+ parent_li.querySelector('.sub-menu').style.display = 'block';
+ } else {
+ parent_li.querySelector('.sub-menu').style.display = 'none';
+ }
+ }
+ };
+
+ AstraNavigationMenu = function( parentList ) {
+ console.warn( 'AstraNavigationMenu() function has been deprecated since version 1.6.5 or above of Astra Theme and will be removed in the future.' );
+ };
+
+ AstraToggleMenu = function( astra_menu_toggle ) {
+ console.warn('AstraToggleMenu() function has been deprecated since version 1.6.5 or above of Astra Theme and will be removed in the future. Use AstraToggleSubMenu() instead.');
+
+ // Add Eventlisteners for Submenu.
+ if (astra_menu_toggle.length > 0) {
+ for (var i = 0; i < astra_menu_toggle.length; i++) {
+ astra_menu_toggle[i].addEventListener('click', AstraToggleSubMenu, false);
+ }
+ }
+ };
+
+ AstraToggleSetup = function () {
+ var __main_header_all = document.querySelectorAll('.main-header-bar-navigation');
+
+ if (menu_toggle_all.length > 0) {
+
+ for (var i = 0; i < menu_toggle_all.length; i++) {
+
+ menu_toggle_all[i].setAttribute('data-index', i);
+
+ if ( ! menu_click_listeners[i] ) {
+ menu_click_listeners[i] = menu_toggle_all[i];
+ menu_toggle_all[i].addEventListener('click', astraNavMenuToggle, false);
+ }
+
+ if ('undefined' !== typeof __main_header_all[i]) {
+
+ if (document.querySelector("header.site-header").classList.contains("ast-menu-toggle-link")) {
+ var astra_menu_toggle = __main_header_all[i].querySelectorAll('.ast-header-break-point .main-header-menu .menu-item-has-children > .menu-link, .ast-header-break-point ul.main-header-menu .ast-menu-toggle');
+ } else {
+ var astra_menu_toggle = __main_header_all[i].querySelectorAll('ul.main-header-menu .ast-menu-toggle');
+ }
+
+ // Add Eventlisteners for Submenu.
+ if (astra_menu_toggle.length > 0) {
+ for (var j = 0; j < astra_menu_toggle.length; j++) {
+ astra_menu_toggle[j].addEventListener('click', AstraToggleSubMenu, false);
+ }
+ }
+
+ }
+ }
+ }
+ };
+
+ astraNavMenuToggle = function ( event ) {
+ event.preventDefault();
+ var __main_header_all = document.querySelectorAll('.main-header-bar-navigation');
+ var event_index = this.getAttribute('data-index');
+
+ if ('undefined' === typeof __main_header_all[event_index]) {
+ return false;
+ }
+
+ var menuHasChildren = __main_header_all[event_index].querySelectorAll('.menu-item-has-children');
+ for (var i = 0; i < menuHasChildren.length; i++) {
+ menuHasChildren[i].classList.remove('ast-submenu-expanded');
+ var menuHasChildrenSubMenu = menuHasChildren[i].querySelectorAll('.sub-menu');
+ for (var j = 0; j < menuHasChildrenSubMenu.length; j++) {
+ menuHasChildrenSubMenu[j].style.display = 'none';
+ }
+ }
+
+ var menu_class = this.getAttribute('class') || '';
+
+ if ( menu_class.indexOf('main-header-menu-toggle') !== -1 ) {
+ astraToggleClass(__main_header_all[event_index], 'toggle-on');
+ astraToggleClass(menu_toggle_all[event_index], 'toggled');
+ if (__main_header_all[event_index].classList.contains('toggle-on')) {
+ __main_header_all[event_index].style.display = 'block';
+ document.body.classList.add("ast-main-header-nav-open");
+ } else {
+ __main_header_all[event_index].style.display = '';
+ document.body.classList.remove("ast-main-header-nav-open");
+ }
+ }
+ };
+
+ document.body.addEventListener("astra-header-responsive-enabled", function () {
+
+ var __main_header_all = document.querySelectorAll('.main-header-bar-navigation');
+
+ if (__main_header_all.length > 0) {
+
+ for (var i = 0; i < __main_header_all.length; i++) {
+ if (null != __main_header_all[i]) {
+ __main_header_all[i].classList.remove('toggle-on');
+ __main_header_all[i].style.display = '';
+ }
+
+ var sub_menu = __main_header_all[i].getElementsByClassName('sub-menu');
+ for (var j = 0; j < sub_menu.length; j++) {
+ sub_menu[j].style.display = '';
+ }
+ var child_menu = __main_header_all[i].getElementsByClassName('children');
+ for (var k = 0; k < child_menu.length; k++) {
+ child_menu[k].style.display = '';
+ }
+
+ var searchIcons = __main_header_all[i].getElementsByClassName('ast-search-menu-icon');
+ for (var l = 0; l < searchIcons.length; l++) {
+ searchIcons[l].classList.remove('ast-dropdown-active');
+ searchIcons[l].style.display = '';
+ }
+ }
+ }
+ }, false);
+
+ window.addEventListener('resize', function () {
+ // Skip resize event when keyboard display event triggers on devices.
+ if( 'INPUT' !== document.activeElement.tagName ) {
+ updateHeaderBreakPoint();
+ AstraToggleSetup();
+ }
+ });
+
+ document.addEventListener('DOMContentLoaded', function () {
+ AstraToggleSetup();
+ /**
+ * Navigation Keyboard Navigation.
+ */
+ var container, count;
+
+ container = document.querySelectorAll( '.navigation-accessibility' );
+
+ for ( count = 0; count <= container.length - 1; count++ ) {
+ if ( container[count] ) {
+ navigation_accessibility( container[count] );
+ }
+ }
+ });
+
+
+ var get_browser = function () {
+ var ua = navigator.userAgent,tem,M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
+ if(/trident/i.test(M[1])) {
+ tem = /\brv[ :]+(\d+)/g.exec(ua) || [];
+ return;
+ }
+ if( 'Chrome' === M[1] ) {
+ tem = ua.match(/\bOPR|Edge\/(\d+)/)
+ if(tem != null) {
+ return;
+ }
+ }
+ M = M[2]? [M[1], M[2]]: [navigator.appName, navigator.appVersion, '-?'];
+ if((tem = ua.match(/version\/(\d+)/i)) != null) {
+ M.splice(1,1,tem[1]);
+ }
+
+ var bodyElement = document.body;
+ if( 'Safari' === M[0] && M[1] < 11 ) {
+ bodyElement.classList.add( "ast-safari-browser-less-than-11" );
+ }
+ }
+
+ get_browser();
+
+ /* Search Script */
+ var SearchIcons = document.getElementsByClassName( 'astra-search-icon' );
+ for (var i = 0; i < SearchIcons.length; i++) {
+
+ SearchIcons[i].onclick = function(event) {
+ if ( this.classList.contains( 'slide-search' ) ) {
+ event.preventDefault();
+ var sibling = this.parentNode.parentNode.parentNode.querySelector( '.ast-search-menu-icon' );
+ if ( ! sibling.classList.contains( 'ast-dropdown-active' ) ) {
+ sibling.classList.add( 'ast-dropdown-active' );
+ sibling.querySelector( '.search-field' ).setAttribute('autocomplete','off');
+ setTimeout(function() {
+ sibling.querySelector( '.search-field' ).focus();
+ },200);
+ } else {
+ var searchTerm = sibling.querySelector( '.search-field' ).value || '';
+ if( '' !== searchTerm ) {
+ sibling.querySelector( '.search-form' ).submit();
+ }
+ sibling.classList.remove( 'ast-dropdown-active' );
+ }
+ }
+ }
+ }
+
+ /* Hide Dropdown on body click*/
+ document.body.onclick = function( event ) {
+ if ( typeof event.target.classList !== 'undefined' ) {
+ if ( ! event.target.classList.contains( 'ast-search-menu-icon' ) && astraGetParents( event.target, '.ast-search-menu-icon' ).length === 0 && astraGetParents( event.target, '.ast-search-icon' ).length === 0 ) {
+ var dropdownSearchWrap = document.getElementsByClassName( 'ast-search-menu-icon' );
+ for (var i = 0; i < dropdownSearchWrap.length; i++) {
+ dropdownSearchWrap[i].classList.remove( 'ast-dropdown-active' );
+ }
+ }
+ }
+ }
+
+ /**
+ * Navigation Keyboard Navigation.
+ */
+ function navigation_accessibility( container ) {
+ if ( ! container ) {
+ return;
+ }
+
+ var button = container.getElementsByTagName( 'button' )[0];
+ if ( 'undefined' === typeof button ) {
+ button = container.getElementsByTagName( 'a' )[0];
+ if ( 'undefined' === typeof button ) {
+ return;
+ }
+ }
+
+ var menu = container.getElementsByTagName( 'ul' )[0];
+
+ // Hide menu toggle button if menu is empty and return early.
+ if ( 'undefined' === typeof menu ) {
+ button.style.display = 'none';
+ return;
+ }
+
+ menu.setAttribute( 'aria-expanded', 'false' );
+ if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
+ menu.className += ' nav-menu';
+ }
+
+ button.onclick = function() {
+ if ( -1 !== container.className.indexOf( 'toggled' ) ) {
+ container.className = container.className.replace( ' toggled', '' );
+ button.setAttribute( 'aria-expanded', 'false' );
+ menu.setAttribute( 'aria-expanded', 'false' );
+ } else {
+ container.className += ' toggled';
+ button.setAttribute( 'aria-expanded', 'true' );
+ menu.setAttribute( 'aria-expanded', 'true' );
+ }
+ };
+
+ // Get all the link elements within the menu.
+ var links = menu.getElementsByTagName( 'a' );
+ var subMenus = menu.getElementsByTagName( 'ul' );
+
+
+ // Set menu items with submenus to aria-haspopup="true".
+ for ( var i = 0, len = subMenus.length; i < len; i++ ) {
+ subMenus[i].parentNode.setAttribute( 'aria-haspopup', 'true' );
+ }
+
+ // Each time a menu link is focused or blurred, toggle focus.
+ for ( i = 0, len = links.length; i < len; i++ ) {
+ links[i].addEventListener( 'focus', toggleFocus, true );
+ links[i].addEventListener( 'blur', toggleBlurFocus, true );
+ links[i].addEventListener( 'click', toggleClose, true );
+ }
+ }
+
+ /**
+ * Close the Toggle Menu on Click on hash (#) link.
+ *
+ * @since 1.3.2
+ * @return void
+ */
+ function toggleClose( )
+ {
+ var self = this || '',
+ hash = '#';
+
+ if( self && ! self.classList.contains('astra-search-icon') ) {
+ var link = new String( self );
+ if( link.indexOf( hash ) !== -1 ) {
+ var link_parent = self.parentNode;
+ if ( document.body.classList.contains('ast-header-break-point') && ! ( document.querySelector("header.site-header").classList.contains("ast-menu-toggle-link") && link_parent.classList.contains("menu-item-has-children") ) ) {
+
+ /* Close Main Header Menu */
+ var main_header_menu_toggle = document.querySelector( '.main-header-menu-toggle' );
+ main_header_menu_toggle.classList.remove( 'toggled' );
+
+ var main_header_bar_navigation = document.querySelector( '.main-header-bar-navigation' );
+ main_header_bar_navigation.classList.remove( 'toggle-on' );
+
+ main_header_bar_navigation.style.display = 'none';
+
+ /* Close Below Header Menu */
+ var before_header_menu_toggle = document.querySelector( '.menu-below-header-toggle' );
+ var before_header_bar_navigation = document.querySelector( '.ast-below-header' );
+ var before_header_bar = document.querySelector( '.ast-below-header-actual-nav' );
+
+ if ( before_header_menu_toggle && before_header_bar_navigation && before_header_bar ) {
+ before_header_menu_toggle.classList.remove( 'toggled' );
+ before_header_bar_navigation.classList.remove( 'toggle-on' );
+ before_header_bar.style.display = 'none';
+ }
+
+ /* Close After Header Menu */
+ var after_header_menu_toggle = document.querySelector( '.menu-above-header-toggle' );
+ var after_header_bar_navigation = document.querySelector( '.ast-above-header' );
+ var after_header_bar = document.querySelector( '.ast-above-header-navigation' );
+
+ if ( after_header_menu_toggle && after_header_bar_navigation && after_header_bar ) {
+ after_header_menu_toggle.classList.remove( 'toggled' );
+ after_header_bar_navigation.classList.remove( 'toggle-on' );
+ after_header_bar.style.display = 'none';
+ }
+
+ astraTriggerEvent( document.querySelector('body'), 'astraMenuHashLinkClicked' );
+ } else {
+ while ( -1 === self.className.indexOf( 'nav-menu' ) ) {
+ // On li elements toggle the class .focus.
+ if ( 'li' === self.tagName.toLowerCase() ) {
+ if ( -1 !== self.className.indexOf( 'focus' ) ) {
+ self.className = self.className.replace( ' focus', '' );
+ }
+ }
+ self = self.parentElement;
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Sets or removes .focus class on an element on focus.
+ */
+ function toggleFocus() {
+ var self = this;
+ // Move up through the ancestors of the current link until we hit .nav-menu.
+ while ( -1 === self.className.indexOf( 'nav-menu' ) ) {
+
+ // On li elements toggle the class .focus.
+ if ( 'li' === self.tagName.toLowerCase() ) {
+ if ( -1 !== self.className.indexOf( 'focus' ) ) {
+ self.className = self.className.replace( ' focus', '' );
+ } else {
+ self.className += ' focus';
+ }
+ }
+
+ self = self.parentElement;
+ }
+ }
+
+ /**
+ * Sets or removes .focus class on an element on blur.
+ */
+ function toggleBlurFocus() {
+ var self = this || '',
+ hash = '#';
+ var link = new String( self );
+ if( link.indexOf( hash ) !== -1 && document.body.classList.contains('ast-mouse-clicked') ) {
+ return;
+ }
+ // Move up through the ancestors of the current link until we hit .nav-menu.
+ while ( -1 === self.className.indexOf( 'nav-menu' ) ) {
+
+ // On li elements toggle the class .focus.
+ if ( 'li' === self.tagName.toLowerCase() ) {
+ if ( -1 !== self.className.indexOf( 'focus' ) ) {
+ self.className = self.className.replace( ' focus', '' );
+ } else {
+ self.className += ' focus';
+ }
+ }
+
+ self = self.parentElement;
+ }
+ }
+
+ /* Add class if mouse clicked and remove if tab pressed */
+ if ( 'querySelector' in document && 'addEventListener' in window ) {
+ var body = document.body;
+
+ body.addEventListener( 'mousedown', function() {
+ body.classList.add( 'ast-mouse-clicked' );
+ } );
+
+ body.addEventListener( 'keydown', function() {
+ body.classList.remove( 'ast-mouse-clicked' );
+ } );
+ }
+
+} )();
diff --git a/assets/js/unminified/skip-link-focus-fix.js b/assets/js/unminified/skip-link-focus-fix.js
new file mode 100644
index 0000000..97496af
--- /dev/null
+++ b/assets/js/unminified/skip-link-focus-fix.js
@@ -0,0 +1,37 @@
+/**
+ * File skip-link-focus-fix.js
+ *
+ * Helps with accessibility for keyboard only users.
+ * This is the source file for what is minified in the astra_skip_link_focus_fix() PHP function.
+ *
+ * Learn more: https://github.com/Automattic/_s/pull/136
+ *
+ * @package Astra
+ */
+
+( function() {
+ var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
+ is_opera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1,
+ is_ie = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1;
+
+ if ( ( is_webkit || is_opera || is_ie ) && document.getElementById && window.addEventListener ) {
+ window.addEventListener( 'hashchange', function() {
+ var id = location.hash.substring( 1 ),
+ element;
+
+ if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
+ return;
+ }
+
+ element = document.getElementById( id );
+
+ if ( element ) {
+ if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
+ element.tabIndex = -1;
+ }
+
+ element.focus();
+ }
+ }, false );
+ }
+})();
diff --git a/assets/js/unminified/style.js b/assets/js/unminified/style.js
new file mode 100644
index 0000000..8504f19
--- /dev/null
+++ b/assets/js/unminified/style.js
@@ -0,0 +1,595 @@
+/**
+ * File navigation.js
+ *
+ * Handles toggling the navigation menu for small screens and enables tab
+ * support for dropdown menus.
+ *
+ * @package Astra
+ */
+
+/**
+ * Get all of an element's parent elements up the DOM tree
+ *
+ * @param {Node} elem The element.
+ * @param {String} selector Selector to match against [optional].
+ * @return {Array} The parent elements.
+ */
+var astraGetParents = function ( elem, selector ) {
+
+ // Element.matches() polyfill.
+ if ( ! Element.prototype.matches) {
+ Element.prototype.matches =
+ Element.prototype.matchesSelector ||
+ Element.prototype.mozMatchesSelector ||
+ Element.prototype.msMatchesSelector ||
+ Element.prototype.oMatchesSelector ||
+ Element.prototype.webkitMatchesSelector ||
+ function(s) {
+ var matches = (this.document || this.ownerDocument).querySelectorAll( s ),
+ i = matches.length;
+ while (--i >= 0 && matches.item( i ) !== this) {}
+ return i > -1;
+ };
+ }
+
+ // Setup parents array.
+ var parents = [];
+
+ // Get matching parent elements.
+ for ( ; elem && elem !== document; elem = elem.parentNode ) {
+
+ // Add matching parents to array.
+ if ( selector ) {
+ if ( elem.matches( selector ) ) {
+ parents.push( elem );
+ }
+ } else {
+ parents.push( elem );
+ }
+ }
+ return parents;
+};
+
+/**
+ * Deprecated: Get all of an element's parent elements up the DOM tree
+ *
+ * @param {Node} elem The element.
+ * @param {String} selector Selector to match against [optional].
+ * @return {Array} The parent elements.
+ */
+var getParents = function ( elem, selector ) {
+ console.warn( 'getParents() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraGetParents() instead.' );
+ astraGetParents( elem, selector );
+}
+
+/**
+ * Toggle Class funtion
+ *
+ * @param {Node} elem The element.
+ * @param {String} selector Selector to match against [optional].
+ * @return {Array} The parent elements.
+ */
+var astraToggleClass = function ( el, className ) {
+ if ( el.classList.contains( className ) ) {
+ el.classList.remove( className );
+ } else {
+ el.classList.add( className );
+ }
+};
+
+/**
+ * Deprecated: Toggle Class funtion
+ *
+ * @param {Node} elem The element.
+ * @param {String} selector Selector to match against [optional].
+ * @return {Array} The parent elements.
+ */
+var toggleClass = function ( el, className ) {
+ console.warn( 'toggleClass() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraToggleClass() instead.' );
+ astraToggleClass( el, className );
+};
+
+// CustomEvent() constructor functionality in Internet Explorer 9 and higher.
+(function () {
+
+ if (typeof window.CustomEvent === "function") return false;
+ function CustomEvent(event, params) {
+ params = params || { bubbles: false, cancelable: false, detail: undefined };
+ var evt = document.createEvent('CustomEvent');
+ evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
+ return evt;
+ }
+ CustomEvent.prototype = window.Event.prototype;
+ window.CustomEvent = CustomEvent;
+})();
+
+/**
+ * Trigget custom JS Event.
+ *
+ * @since 1.4.6
+ *
+ * @link https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent
+ * @param {Node} el Dom Node element on which the event is to be triggered.
+ * @param {Node} typeArg A DOMString representing the name of the event.
+ * @param {String} A CustomEventInit dictionary, having the following fields:
+ * "detail", optional and defaulting to null, of type any, that is an event-dependent value associated with the event.
+ */
+var astraTriggerEvent = function astraTriggerEvent( el, typeArg ) {
+ var customEventInit =
+ arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
+
+ var event = new CustomEvent(typeArg, customEventInit);
+ el.dispatchEvent(event);
+};
+
+( function() {
+
+ var menu_toggle_all = document.querySelectorAll( '.main-header-menu-toggle' );
+ var menu_click_listeners = {};
+
+ /* Add break point Class and related trigger */
+ var updateHeaderBreakPoint = function () {
+
+ // Content overrflowing out of screen can give incorrect window.innerWidth.
+ // Adding overflow hidden and then calculating the window.innerWidth fixes the problem.
+ var originalOverflow = document.querySelector('body').style.overflow;
+ document.querySelector('body').style.overflow = 'hidden';
+ var ww = window.innerWidth;
+ document.querySelector('body').style.overflow = originalOverflow;
+
+ var break_point = astra.break_point,
+ headerWrap = document.querySelectorAll('.main-header-bar-wrap');
+
+ if (headerWrap.length > 0) {
+ for (var i = 0; i < headerWrap.length; i++) {
+
+ if (headerWrap[i].tagName == 'DIV' && headerWrap[i].classList.contains('main-header-bar-wrap')) {
+ if (ww > break_point) {
+ //remove menu toggled class.
+ if (null != menu_toggle_all[i]) {
+ menu_toggle_all[i].classList.remove('toggled');
+ }
+ document.body.classList.remove("ast-header-break-point");
+ document.body.classList.add("ast-desktop");
+ astraTriggerEvent(document.body, "astra-header-responsive-enabled");
+
+ } else {
+
+ document.body.classList.add("ast-header-break-point");
+ document.body.classList.remove("ast-desktop");
+ astraTriggerEvent(document.body, "astra-header-responsive-disabled")
+ }
+ }
+ }
+ }
+ }
+
+ updateHeaderBreakPoint();
+
+ AstraToggleSubMenu = function() {
+ var parent_li = this.parentNode;
+ if (parent_li.classList.contains('ast-submenu-expanded') && document.querySelector("header.site-header").classList.contains("ast-menu-toggle-link")) {
+ if (!this.classList.contains('ast-menu-toggle')) {
+ var link = parent_li.querySelector('a').getAttribute('href');
+ if ('' !== link || '#' !== link) {
+ window.location = link;
+ }
+ }
+ }
+
+ var parent_li_child = parent_li.querySelectorAll('.menu-item-has-children');
+ for (var j = 0; j < parent_li_child.length; j++) {
+
+ parent_li_child[j].classList.remove('ast-submenu-expanded');
+ var parent_li_child_sub_menu = parent_li_child[j].querySelector('.sub-menu, .children');
+ if( null !== parent_li_child_sub_menu ) {
+ parent_li_child_sub_menu.style.display = 'none';
+ }
+ }
+
+ var parent_li_sibling = parent_li.parentNode.querySelectorAll('.menu-item-has-children');
+ for (var j = 0; j < parent_li_sibling.length; j++) {
+
+ if (parent_li_sibling[j] != parent_li) {
+
+ parent_li_sibling[j].classList.remove('ast-submenu-expanded');
+ var all_sub_menu = parent_li_sibling[j].querySelectorAll('.sub-menu');
+ for (var k = 0; k < all_sub_menu.length; k++) {
+ all_sub_menu[k].style.display = 'none';
+ }
+ }
+ }
+
+ if (parent_li.classList.contains('menu-item-has-children') ) {
+ astraToggleClass(parent_li, 'ast-submenu-expanded');
+ if (parent_li.classList.contains('ast-submenu-expanded')) {
+ parent_li.querySelector('.sub-menu').style.display = 'block';
+ } else {
+ parent_li.querySelector('.sub-menu').style.display = 'none';
+ }
+ }
+ };
+
+ AstraNavigationMenu = function( parentList ) {
+ console.warn( 'AstraNavigationMenu() function has been deprecated since version 1.6.5 or above of Astra Theme and will be removed in the future.' );
+ };
+
+ AstraToggleMenu = function( astra_menu_toggle ) {
+ console.warn('AstraToggleMenu() function has been deprecated since version 1.6.5 or above of Astra Theme and will be removed in the future. Use AstraToggleSubMenu() instead.');
+
+ // Add Eventlisteners for Submenu.
+ if (astra_menu_toggle.length > 0) {
+ for (var i = 0; i < astra_menu_toggle.length; i++) {
+ astra_menu_toggle[i].addEventListener('click', AstraToggleSubMenu, false);
+ }
+ }
+ };
+
+ AstraToggleSetup = function () {
+ var __main_header_all = document.querySelectorAll('.main-header-bar-navigation');
+
+ if (menu_toggle_all.length > 0) {
+
+ for (var i = 0; i < menu_toggle_all.length; i++) {
+
+ menu_toggle_all[i].setAttribute('data-index', i);
+
+ if ( ! menu_click_listeners[i] ) {
+ menu_click_listeners[i] = menu_toggle_all[i];
+ menu_toggle_all[i].addEventListener('click', astraNavMenuToggle, false);
+ }
+
+ if ('undefined' !== typeof __main_header_all[i]) {
+
+ if (document.querySelector("header.site-header").classList.contains("ast-menu-toggle-link")) {
+ var astra_menu_toggle = __main_header_all[i].querySelectorAll('.ast-header-break-point .main-header-menu .menu-item-has-children > .menu-link, .ast-header-break-point ul.main-header-menu .ast-menu-toggle');
+ } else {
+ var astra_menu_toggle = __main_header_all[i].querySelectorAll('ul.main-header-menu .ast-menu-toggle');
+ }
+
+ // Add Eventlisteners for Submenu.
+ if (astra_menu_toggle.length > 0) {
+ for (var j = 0; j < astra_menu_toggle.length; j++) {
+ astra_menu_toggle[j].addEventListener('click', AstraToggleSubMenu, false);
+ }
+ }
+
+ }
+ }
+ }
+ };
+
+ astraNavMenuToggle = function ( event ) {
+ event.preventDefault();
+ var __main_header_all = document.querySelectorAll('.main-header-bar-navigation');
+ var event_index = this.getAttribute('data-index');
+
+ if ('undefined' === typeof __main_header_all[event_index]) {
+ return false;
+ }
+
+ var menuHasChildren = __main_header_all[event_index].querySelectorAll('.menu-item-has-children');
+ for (var i = 0; i < menuHasChildren.length; i++) {
+ menuHasChildren[i].classList.remove('ast-submenu-expanded');
+ var menuHasChildrenSubMenu = menuHasChildren[i].querySelectorAll('.sub-menu');
+ for (var j = 0; j < menuHasChildrenSubMenu.length; j++) {
+ menuHasChildrenSubMenu[j].style.display = 'none';
+ }
+ }
+
+ var menu_class = this.getAttribute('class') || '';
+
+ if ( menu_class.indexOf('main-header-menu-toggle') !== -1 ) {
+ astraToggleClass(__main_header_all[event_index], 'toggle-on');
+ astraToggleClass(menu_toggle_all[event_index], 'toggled');
+ if (__main_header_all[event_index].classList.contains('toggle-on')) {
+ __main_header_all[event_index].style.display = 'block';
+ document.body.classList.add("ast-main-header-nav-open");
+ } else {
+ __main_header_all[event_index].style.display = '';
+ document.body.classList.remove("ast-main-header-nav-open");
+ }
+ }
+ };
+
+ document.body.addEventListener("astra-header-responsive-enabled", function () {
+
+ var __main_header_all = document.querySelectorAll('.main-header-bar-navigation');
+
+ if (__main_header_all.length > 0) {
+
+ for (var i = 0; i < __main_header_all.length; i++) {
+ if (null != __main_header_all[i]) {
+ __main_header_all[i].classList.remove('toggle-on');
+ __main_header_all[i].style.display = '';
+ }
+
+ var sub_menu = __main_header_all[i].getElementsByClassName('sub-menu');
+ for (var j = 0; j < sub_menu.length; j++) {
+ sub_menu[j].style.display = '';
+ }
+ var child_menu = __main_header_all[i].getElementsByClassName('children');
+ for (var k = 0; k < child_menu.length; k++) {
+ child_menu[k].style.display = '';
+ }
+
+ var searchIcons = __main_header_all[i].getElementsByClassName('ast-search-menu-icon');
+ for (var l = 0; l < searchIcons.length; l++) {
+ searchIcons[l].classList.remove('ast-dropdown-active');
+ searchIcons[l].style.display = '';
+ }
+ }
+ }
+ }, false);
+
+ window.addEventListener('resize', function () {
+ // Skip resize event when keyboard display event triggers on devices.
+ if( 'INPUT' !== document.activeElement.tagName ) {
+ updateHeaderBreakPoint();
+ AstraToggleSetup();
+ }
+ });
+
+ document.addEventListener('DOMContentLoaded', function () {
+ AstraToggleSetup();
+ /**
+ * Navigation Keyboard Navigation.
+ */
+ var container, count;
+
+ container = document.querySelectorAll( '.navigation-accessibility' );
+
+ for ( count = 0; count <= container.length - 1; count++ ) {
+ if ( container[count] ) {
+ navigation_accessibility( container[count] );
+ }
+ }
+ });
+
+
+ var get_browser = function () {
+ var ua = navigator.userAgent,tem,M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
+ if(/trident/i.test(M[1])) {
+ tem = /\brv[ :]+(\d+)/g.exec(ua) || [];
+ return;
+ }
+ if( 'Chrome' === M[1] ) {
+ tem = ua.match(/\bOPR|Edge\/(\d+)/)
+ if(tem != null) {
+ return;
+ }
+ }
+ M = M[2]? [M[1], M[2]]: [navigator.appName, navigator.appVersion, '-?'];
+ if((tem = ua.match(/version\/(\d+)/i)) != null) {
+ M.splice(1,1,tem[1]);
+ }
+
+ var bodyElement = document.body;
+ if( 'Safari' === M[0] && M[1] < 11 ) {
+ bodyElement.classList.add( "ast-safari-browser-less-than-11" );
+ }
+ }
+
+ get_browser();
+
+ /* Search Script */
+ var SearchIcons = document.getElementsByClassName( 'astra-search-icon' );
+ for (var i = 0; i < SearchIcons.length; i++) {
+
+ SearchIcons[i].onclick = function(event) {
+ if ( this.classList.contains( 'slide-search' ) ) {
+ event.preventDefault();
+ var sibling = this.parentNode.parentNode.parentNode.querySelector( '.ast-search-menu-icon' );
+ if ( ! sibling.classList.contains( 'ast-dropdown-active' ) ) {
+ sibling.classList.add( 'ast-dropdown-active' );
+ sibling.querySelector( '.search-field' ).setAttribute('autocomplete','off');
+ setTimeout(function() {
+ sibling.querySelector( '.search-field' ).focus();
+ },200);
+ } else {
+ var searchTerm = sibling.querySelector( '.search-field' ).value || '';
+ if( '' !== searchTerm ) {
+ sibling.querySelector( '.search-form' ).submit();
+ }
+ sibling.classList.remove( 'ast-dropdown-active' );
+ }
+ }
+ }
+ }
+
+ /* Hide Dropdown on body click*/
+ document.body.onclick = function( event ) {
+ if ( typeof event.target.classList !== 'undefined' ) {
+ if ( ! event.target.classList.contains( 'ast-search-menu-icon' ) && astraGetParents( event.target, '.ast-search-menu-icon' ).length === 0 && astraGetParents( event.target, '.ast-search-icon' ).length === 0 ) {
+ var dropdownSearchWrap = document.getElementsByClassName( 'ast-search-menu-icon' );
+ for (var i = 0; i < dropdownSearchWrap.length; i++) {
+ dropdownSearchWrap[i].classList.remove( 'ast-dropdown-active' );
+ }
+ }
+ }
+ }
+
+ /**
+ * Navigation Keyboard Navigation.
+ */
+ function navigation_accessibility( container ) {
+ if ( ! container ) {
+ return;
+ }
+
+ var button = container.getElementsByTagName( 'button' )[0];
+ if ( 'undefined' === typeof button ) {
+ button = container.getElementsByTagName( 'a' )[0];
+ if ( 'undefined' === typeof button ) {
+ return;
+ }
+ }
+
+ var menu = container.getElementsByTagName( 'ul' )[0];
+
+ // Hide menu toggle button if menu is empty and return early.
+ if ( 'undefined' === typeof menu ) {
+ button.style.display = 'none';
+ return;
+ }
+
+ menu.setAttribute( 'aria-expanded', 'false' );
+ if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
+ menu.className += ' nav-menu';
+ }
+
+ button.onclick = function() {
+ if ( -1 !== container.className.indexOf( 'toggled' ) ) {
+ container.className = container.className.replace( ' toggled', '' );
+ button.setAttribute( 'aria-expanded', 'false' );
+ menu.setAttribute( 'aria-expanded', 'false' );
+ } else {
+ container.className += ' toggled';
+ button.setAttribute( 'aria-expanded', 'true' );
+ menu.setAttribute( 'aria-expanded', 'true' );
+ }
+ };
+
+ // Get all the link elements within the menu.
+ var links = menu.getElementsByTagName( 'a' );
+ var subMenus = menu.getElementsByTagName( 'ul' );
+
+
+ // Set menu items with submenus to aria-haspopup="true".
+ for ( var i = 0, len = subMenus.length; i < len; i++ ) {
+ subMenus[i].parentNode.setAttribute( 'aria-haspopup', 'true' );
+ }
+
+ // Each time a menu link is focused or blurred, toggle focus.
+ for ( i = 0, len = links.length; i < len; i++ ) {
+ links[i].addEventListener( 'focus', toggleFocus, true );
+ links[i].addEventListener( 'blur', toggleBlurFocus, true );
+ links[i].addEventListener( 'click', toggleClose, true );
+ }
+ }
+
+ /**
+ * Close the Toggle Menu on Click on hash (#) link.
+ *
+ * @since 1.3.2
+ * @return void
+ */
+ function toggleClose( )
+ {
+ var self = this || '',
+ hash = '#';
+
+ if( self && ! self.classList.contains('astra-search-icon') ) {
+ var link = new String( self );
+ if( link.indexOf( hash ) !== -1 ) {
+ var link_parent = self.parentNode;
+ if ( document.body.classList.contains('ast-header-break-point') && ! ( document.querySelector("header.site-header").classList.contains("ast-menu-toggle-link") && link_parent.classList.contains("menu-item-has-children") ) ) {
+
+ /* Close Main Header Menu */
+ var main_header_menu_toggle = document.querySelector( '.main-header-menu-toggle' );
+ main_header_menu_toggle.classList.remove( 'toggled' );
+
+ var main_header_bar_navigation = document.querySelector( '.main-header-bar-navigation' );
+ main_header_bar_navigation.classList.remove( 'toggle-on' );
+
+ main_header_bar_navigation.style.display = 'none';
+
+ /* Close Below Header Menu */
+ var before_header_menu_toggle = document.querySelector( '.menu-below-header-toggle' );
+ var before_header_bar_navigation = document.querySelector( '.ast-below-header' );
+ var before_header_bar = document.querySelector( '.ast-below-header-actual-nav' );
+
+ if ( before_header_menu_toggle && before_header_bar_navigation && before_header_bar ) {
+ before_header_menu_toggle.classList.remove( 'toggled' );
+ before_header_bar_navigation.classList.remove( 'toggle-on' );
+ before_header_bar.style.display = 'none';
+ }
+
+ /* Close After Header Menu */
+ var after_header_menu_toggle = document.querySelector( '.menu-above-header-toggle' );
+ var after_header_bar_navigation = document.querySelector( '.ast-above-header' );
+ var after_header_bar = document.querySelector( '.ast-above-header-navigation' );
+
+ if ( after_header_menu_toggle && after_header_bar_navigation && after_header_bar ) {
+ after_header_menu_toggle.classList.remove( 'toggled' );
+ after_header_bar_navigation.classList.remove( 'toggle-on' );
+ after_header_bar.style.display = 'none';
+ }
+
+ astraTriggerEvent( document.querySelector('body'), 'astraMenuHashLinkClicked' );
+ } else {
+ while ( -1 === self.className.indexOf( 'nav-menu' ) ) {
+ // On li elements toggle the class .focus.
+ if ( 'li' === self.tagName.toLowerCase() ) {
+ if ( -1 !== self.className.indexOf( 'focus' ) ) {
+ self.className = self.className.replace( ' focus', '' );
+ }
+ }
+ self = self.parentElement;
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Sets or removes .focus class on an element on focus.
+ */
+ function toggleFocus() {
+ var self = this;
+ // Move up through the ancestors of the current link until we hit .nav-menu.
+ while ( -1 === self.className.indexOf( 'nav-menu' ) ) {
+
+ // On li elements toggle the class .focus.
+ if ( 'li' === self.tagName.toLowerCase() ) {
+ if ( -1 !== self.className.indexOf( 'focus' ) ) {
+ self.className = self.className.replace( ' focus', '' );
+ } else {
+ self.className += ' focus';
+ }
+ }
+
+ self = self.parentElement;
+ }
+ }
+
+ /**
+ * Sets or removes .focus class on an element on blur.
+ */
+ function toggleBlurFocus() {
+ var self = this || '',
+ hash = '#';
+ var link = new String( self );
+ if( link.indexOf( hash ) !== -1 && document.body.classList.contains('ast-mouse-clicked') ) {
+ return;
+ }
+ // Move up through the ancestors of the current link until we hit .nav-menu.
+ while ( -1 === self.className.indexOf( 'nav-menu' ) ) {
+
+ // On li elements toggle the class .focus.
+ if ( 'li' === self.tagName.toLowerCase() ) {
+ if ( -1 !== self.className.indexOf( 'focus' ) ) {
+ self.className = self.className.replace( ' focus', '' );
+ } else {
+ self.className += ' focus';
+ }
+ }
+
+ self = self.parentElement;
+ }
+ }
+
+ /* Add class if mouse clicked and remove if tab pressed */
+ if ( 'querySelector' in document && 'addEventListener' in window ) {
+ var body = document.body;
+
+ body.addEventListener( 'mousedown', function() {
+ body.classList.add( 'ast-mouse-clicked' );
+ } );
+
+ body.addEventListener( 'keydown', function() {
+ body.classList.remove( 'ast-mouse-clicked' );
+ } );
+ }
+
+} )();