File: //proc/self/cwd/wp-content/themes/news-event/inc/customizer/assets/customizer-preview.min.js
!function(e){const t={newsEventGenerateStyleTag:function(t,o){t&&(e("head #"+o).length>0?e("head #"+o).html(t):e("head").append('<style id="'+o+'">'+t+"</style>"))},newsEventGenerateTypoCss:function(e={}){const{selector:t="body.news-event-variables",value:o,property:n}=e,{preset:i="-1",font_family:a,font_weight:r,text_transform:l,text_decoration:d,font_size:c,line_height:p,letter_spacing:u}=o,y="body.news-event-variables"===t,h=y?n:t;s.typoFontsEnqueue(o);var _="";return y?_+="body.news-event-variables {\n":_=h+"{\n",a&&(_+=`${y?`${h}-family`:"font-family"}: ${this.newsEventGetTypographyFormat(i,a.value,"-family")};\n`),r&&(_+=`${y?`${h}-weight`:"font-weight"}: ${this.newsEventGetTypographyFormat(i,r.value,"-weight")};\n${y?`${h}-style`:"font-style"}: ${this.newsEventGetTypographyFormat(i,r.variant,"-style")};\n`),l&&(_+=`${y?`${h}-texttransform`:"text-transform"}: ${this.newsEventGetTypographyFormat(i,l,"-texttransform")};\n`),d&&(_+=`${y?`${h}-textdecoration`:"text-decoration"}: ${this.newsEventGetTypographyFormat(i,d,"-textdecoration")};\n`),c.desktop&&(_+=`${y?`${h}-size`:"font-size"}: ${this.newsEventGetTypographyFormat(i,c.desktop,"-size")};\n`),p.desktop&&(_+=`${y?`${h}-lineheight`:"line-height"}: ${this.newsEventGetTypographyFormat(i,p.desktop,"-lineheight")};\n`),u.desktop&&(_+=`${y?`${h}-letterspacing`:"letter-spacing"}: ${this.newsEventGetTypographyFormat(i,u.desktop,"-letterspacing")};\n`),y||(_+="}"),y||(_+=`@media(max-width: 940px) {\n${y?"body.news-event-variables ":`${h} `} {\n`),p.tablet&&(_+=`${y?`${h}-lineheight-tab`:"line-height"}: ${this.newsEventGetTypographyFormat(i,p.tablet,"-lineheight-tab")};\n`),u.tablet&&(_+=`${y?`${h}-letterspacing-tab`:"letter-spacing"}: ${this.newsEventGetTypographyFormat(i,u.tablet,"-letterspacing-tab")};\n`),c.tablet&&(_+=`${y?`${h}-size-tab`:"font-size"}: ${this.newsEventGetTypographyFormat(i,c.tablet,"-size-tab")};\n`),y||(_+="}}"),y||(_+=`@media(max-width: 610px) {\n${y?"body.news-event-variables ":`${h} `} {\n`),p.smartphone&&(_+=`${y?`${h}-lineheight-mobile`:"line-height"}: ${this.newsEventGetTypographyFormat(i,p.smartphone,"-lineheight-mobile")};\n`),u.smartphone&&(_+=`${y?`${h}-letterspacing-mobile`:"letter-spacing"}: ${this.newsEventGetTypographyFormat(i,u.smartphone,"-letterspacing-mobile")};\n`),c.smartphone&&(_+=`${y?`${h}-size-mobile`:"font-size"}: ${this.newsEventGetTypographyFormat(i,c.smartphone,"-size-mobile")};\n`),y||(_+="}}"),y&&(_+="}"),_},newsEventGetTypographyFormat:function(e,t,o){if("-1"===e){return["-size","-lineheight","-letterspacing","-lineheight-tab","-letterspacing-tab","-size-tab","-lineheight-mobile","-letterspacing-mobile","-size-mobile"].includes(o)?t+"px":t}return"var(--news-event-global-preset-typography-"+(parseInt(e)+1)+"-font"+o+")"}},o={generateId:e=>e.replaceAll("_","-"),color(e={}){const o=this;let{controlId:n,selector:i="body.news-event-variables",property:s="background"}=e,a=this.generateId(n),r="body.news-event-variables"===i;wp.customize(n,(function(e){e.bind((function(e){let n="",l="object"==typeof e;if(l&&"hover"in e){let t=`${s}${r?"-":":"}hover`,{initial:a,hover:l}=e;n+=`${i} { ${s}: ${o.getColorCSS(a)}; }\n`,n+=`${i} { ${t}: ${o.getColorCSS(l)}; }\n`}else n+=l&&"image"in e?`${i} { ${l?o.getColorCSS(e):e}; }`:`${i} { ${s}: ${l?o.getColorCSS(e):e}; }`;t.newsEventGenerateStyleTag(n,"news-event-"+a)}))}))},getColorCSS(e){let t="";switch(e.type){case"image":let{repeat:o="no-repeat",position:n="left top",attachment:i="fixed",size:s="auto"}=e;"id"in e.image&&(t+="background-image: url("+e.image.url+");\n"),t+=" background-repeat: "+o+";\n",t+=" background-position: "+n+";\n",t+=" background-attachment: "+i+";\n",t+=" background-size: "+s+";\n";break;default:t=a.getFormatedColor(e[e.type]);break}return t},typography(e={}){let{controlId:o,selector:n="body.news-event-variables",property:i}=e,s=this.generateId(o);wp.customize(o,(function(e){e.bind((function(e){let o=t.newsEventGenerateTypoCss({value:e,selector:n,property:i});t.newsEventGenerateStyleTag(o,"news-event-"+s)}))}))},number(e={}){let{controlId:o,selector:n,property:i}=e,s=this.generateId(o);wp.customize(o,(function(e){e.bind((function(e){let o=`${n}{ ${i}: ${e}px }`;t.newsEventGenerateStyleTag(o,"news-event-"+s)}))}))},responsiveSlider(e={}){let{controlId:o,selector:n="body.news-event-variables",property:i="border-radius",unit:s="px"}=e,a=this.generateId(o),r="body.news-event-variables"===n;wp.customize(o,(function(e){e.bind((function(e){let{desktop:o,tablet:l,smartphone:d}=e,c="";r?(c+=`${n} {\n`,o&&(c+=`${i} : ${o}${s};\n`),l&&(c+=`${i}-tab: ${l}${s};\n`),d&&(c+=`${i}-mobile: ${d}${s};\n`),c+="}"):(o&&(c+=`${n} { ${i}: ${o}${s} }`),l&&(c+=`@media(max-width: 940px) { ${n} { ${i}: ${l}${s} } }`),d&&(c+=`@media(max-width: 610px) { ${n} { ${i}: ${d}${s} } }`)),t.newsEventGenerateStyleTag(c,"news-event-"+a)}))}))},globalContentLayout(t={}){let{controlId:o,selector:n,prefix:i="width-"}=t;wp.customize(o,(function(t){t.bind((function(t){let o=e(n);o.removeClass(`${i}boxed--layout ${i}full-width--layout`),"global"===t?e("body").hasClass("global-content-layout--boxed--layout")?o.addClass(`${i}boxed--layout`):o.addClass(`${i}full-width--layout`):o.addClass(i+t)}))}))},toggleClassWithPrefix(t={}){let{controlId:o,selector:n="body",prefix:i=""}=t;wp.customize(o,(function(t){t.bind((function(t){e(n).removeClass((function(e,t){return t.split(/\s+/).filter((e=>e.startsWith(i))).join(" ")})).addClass(i+t)}))}))},toggleClass(t={}){let{controlId:o,selector:n="body",classToToggle:i=""}=t;wp.customize(o,(function(t){t.bind((function(t){t?e(n).addClass(i):e(n).removeClass(i)}))}))},border(e={}){let{controlId:o,selector:n="body",property:i="border"}=e,s=this.generateId(o);wp.customize(o,(function(e){e.bind((function(e){let{type:o,color:r,width:l}=e;cssCode=`${n} {\n`,cssCode+="none"===o?`${i}: none;`:`${i}: ${l}px ${o} ${a.getFormatedColor(r)};`,cssCode+="}",t.newsEventGenerateStyleTag(cssCode,"news-event-"+s)}))}))},dimension(e={}){let{controlId:o,selector:n="body",property:i="padding"}=e,s=this.generateId(o);wp.customize(o,(function(e){e.bind((function(e){let{desktop:o,tablet:a,smartphone:r}=e;cssCode="",o&&(cssCode+=`${n} { ${i}: ${o.top}px ${o.right}px ${o.bottom}px ${o.left}px; }`),a&&(cssCode+=`@media(max-width: 940px) { ${n} { ${i}: ${a.top}px ${a.right}px ${a.bottom}px ${a.left}px; } }`),r&&(cssCode+=`@media(max-width: 610px) { ${n} { ${i}: ${r.top}px ${r.right}px ${r.bottom}px ${r.left}px; } }`),t.newsEventGenerateStyleTag(cssCode,"news-event-"+s)}))}))},boxShadow(e={}){let{controlId:o,selector:n="body"}=e,s=this.generateId(o);wp.customize(o,(function(e){e.bind((function(e){var o="";if(e&&"none"!=e.option){let t=`${"outset"===e.type?"":e.type} ${e.hoffset}px ${e.voffset}px ${e.blur}px ${e.spread}px ${i(e.color)}`;o+=`${n} { box-shadow: ${t}; -webkit-box-shadow: ${t}; -moz-box-shadow ${t} }`}else o+=`${n} { box-shadow: 0px 0px 0px 0px; }`;t.newsEventGenerateStyleTag(o,"news-event-"+s)}))}))}};o.toggleClassWithPrefix({controlId:"post_title_hover_effects",prefix:"news-event-title-"}),o.toggleClassWithPrefix({controlId:"website_layout",removeClass:"site-boxed--layout site-full-width--layout",prefix:"site-"}),o.toggleClassWithPrefix({controlId:"site_image_hover_effects",prefix:"news-event-image-hover--effect-"}),o.toggleClassWithPrefix({controlId:"main_banner_six_trailing_posts_layout",prefix:"layout--",selector:"#main-banner-section.banner-layout--six"}),o.color({controlId:"theme_color",property:"--news-event-global-preset-theme-color"}),wp.customize("solid_presets",(function(e){e.bind((function(e){if(Array.isArray(e)){let o="body.news-event-variables{\n";e.map(((e,t)=>{o+=`--news-event-global-preset-color-${t+1}: ${a.getFormatedColor(e)};\n`})),o+="\n}",t.newsEventGenerateStyleTag(o,"news-event-solid-presets")}}))})),wp.customize("gradient_presets",(function(e){e.bind((function(e){if(Array.isArray(e)){let o="body.news-event-variables{\n";e.map(((e,t)=>{o+=`--news-event-global-preset-gradient-color-${t+1}: ${a.getFormatedColor(e)};\n`})),o+="\n}",t.newsEventGenerateStyleTag(o,"news-event-gradient-presets")}}))})),o.toggleClassWithPrefix({controlId:"header_menu_hover_effect",prefix:"hover-effect--",selector:"#site-navigation"}),wp.customize("blogname",(function(t){t.bind((function(t){e(".site-title a").text(t)}))})),wp.customize("blogdescription",(function(t){t.bind((function(t){e(".site-description").text(t)}))})),wp.customize("blogdescription_option",(function(t){t.bind((function(t){t?e(".site-description").css({clip:"auto",position:"relative"}):e(".site-description").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"})}))})),wp.customize("header_textcolor",(function(t){t.bind((function(t){"blank"===t?e(".site-title").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}):e(".site-title").css({clip:"auto",position:"relative"})}))})),o.color({controlId:"header_textcolor",selector:"body header.site-header .main-header .site-title a",property:"color"}),o.color({controlId:"site_description_color",selector:".site-description",property:"color"}),o.typography({controlId:"site_title_typo",property:"--site-title"}),o.typography({controlId:"site_tagline_typo",property:"--site-tagline"}),o.color({controlId:"site_background_color",property:"--site-bk-color"});var n=newsEventPreviewObject.totalCats;function i(e){return null==e?e:e.indexOf("--news-event-global-preset")>=0?"var( "+e+" )":e}n&&Object.values(n).forEach((function(e){wp.customize("category_"+e+"_color",(function(o){o.bind((function(o){let n="",{initial:s,hover:a}=o;s&&(n+="body #page .post-categories .cat-item.cat-"+e+" a{ background : "+i(s[s.type])+" } ",n+="body #page .news-event-category-no-bk .post-categories .cat-item.cat-"+e.term_id+" a { color : "+i(s[s.type])+" } "),a&&(n+="body #page .post-categories .cat-item.cat-"+e+" a:hover { background : "+i(a[a.type])+" } ",n+="body #page .news-event-category-no-bk .post-categories .cat-item.cat-"+e.term_id+" a:hover { color : "+i(a[a.type])+" } "),t.newsEventGenerateStyleTag(n,"news-event-category-"+e+"-style")}))}))})),o.typography({controlId:"site_section_block_title_typo",property:"--block-title"}),o.typography({controlId:"site_archive_post_title_typo",property:"--post-title"}),o.typography({controlId:"site_archive_post_meta_typo",property:"--meta"}),o.typography({controlId:"site_archive_post_content_typo",property:"--content"}),o.typography({controlId:"global_button_typo",property:"--post-link-btn"}),o.color({controlId:"top_header_background_color_group",selector:".news_event_main_body .site-header.layout--default .top-header"}),o.responsiveSlider({controlId:"header_vertical_padding",property:"--header-padding"}),o.color({controlId:"header_background_color_group",selector:"body.news_event_main_body .site-header.layout--default .site-branding-section, .search-popup--style-three .site-header.layout--three .search-form-wrap"}),o.color({controlId:"header_newsletter_background_color",property:"--newsletter-bk-color"}),o.color({controlId:"header_menu_background_color_group",selector:".news_event_main_body .site-header.layout--default .menu-section, .news_event_main_body .site-header.layout--three .header-smh-button-wrap, .search-popup--style-three .site-header.layout--one .search-form-wrap, .search-popup--style-three .site-header.layout--two .search-form-wrap"}),o.color({controlId:"header_sub_menu_background_color_group",selector:".news_event_main_body .main-navigation ul.menu ul, .news_event_main_body .main-navigation ul.nav-menu ul"}),o.typography({controlId:"header_menu_typo",property:"--menu"}),o.typography({controlId:"header_sub_menu_typo",property:"--submenu"}),o.toggleClassWithPrefix({controlId:"off_canvas_position",prefix:"off-canvas-sidebar-appear--",selector:"body.news_event_main_body"}),o.responsiveSlider({controlId:"main_banner_image_border_radius",property:"border-radius",selector:"body #main-banner-section article"}),o.color({controlId:"full_width_blocks_background_color_group",selector:".news_event_main_body #full-width-section, body #full-width-section .layout--four .news-list-post-wrap .list-item .post-title, #full-width-section .news-grid.layout--four .post-element, #full-width-section .news-carousel.layout--four .post-element"}),o.color({controlId:"leftc_rights_blocks_background_color_group",selector:".news_event_main_body #leftc-rights-section, body #leftc-rights-section .layout--four .news-list-post-wrap .list-item .post-title, #leftc-rights-section .news-grid.layout--four .post-element, #leftc-rights-section .widget .posts-grid-wrap .post-content-wrap, #leftc-rights-section .news-carousel.layout--four .post-element"}),o.color({controlId:"lefts_rightc_blocks_background_color_group",selector:".news_event_main_body #lefts-rightc-section, body #lefts-rightc-section .layout--four .news-list-post-wrap .list-item .post-title, #lefts-rightc-section .news-grid.layout--four .post-element, #lefts-rightc-section .widget .posts-grid-wrap.layout-two .post-content-wrap, #lefts-rightc-section .news-carousel.layout--four .post-element"}),o.color({controlId:"bottom_full_width_blocks_background_color_group",selector:".news_event_main_body #bottom-full-width-section, body #bottom-full-width-section .layout--four .news-list-post-wrap .list-item .post-title, #bottom-full-width-section .news-grid.layout--four .post-element, #bottom-full-width-section .news-carousel.layout--four .post-element"}),o.color({controlId:"two_column_background_color_group",selector:".news_event_main_body .two-column-section, body .two-column-section .layout--four .news-list-post-wrap .list-item .post-title, .two-column-section .news-grid.layout--four .post-element, .two-column-section .news-carousel.layout--four .post-element"}),o.responsiveSlider({controlId:"archive_image_ratio",property:"--news-event-archive-image-ratio",unit:""}),o.responsiveSlider({controlId:"archive_vertical_spacing_top",property:"--archive-padding-top"}),o.responsiveSlider({controlId:"archive_vertical_spacing_bottom",property:"--archive-padding-bottom"}),wp.customize("single_post_show_original_image_option",(function(t){t.bind((function(t){t?e("body.news_event_main_body.single main#primary .post-inner-wrapper .post-thumbnail").addClass("show-original-image"):e("body.news_event_main_body.single main#primary .post-inner-wrapper .post-thumbnail").removeClass("show-original-image")}))})),wp.customize("single_post_related_posts_title",(function(t){t.bind((function(t){var o=e("body.news_event_main_body #theme-content .post-inner-wrapper .single-related-posts-section");o.find(".news-event-block-title").length>0?o.find(".news-event-block-title span").text(t):o.find(".related_post_close").after('<h2 class="news-event-block-title"><span>'+t+"</span></h2>")}))})),o.responsiveSlider({controlId:"single_post_image_ratio",property:"--news-event-single-image-ratio",unit:""}),o.typography({controlId:"single_post_title_typo",property:"--single-title"}),o.typography({controlId:"single_post_meta_typo",property:"--single-meta"}),o.typography({controlId:"single_post_content_typo",property:"--single-content"}),o.typography({controlId:"single_post_content_h1_typo",property:"--single-content-h1"}),o.typography({controlId:"single_post_content_h2_typo",property:"--single-content-h2"}),o.typography({controlId:"single_post_content_h3_typo",property:"--single-content-h3"}),o.typography({controlId:"single_post_content_h4_typo",property:"--single-content-h4"}),o.typography({controlId:"single_post_content_h5_typo",property:"--single-content-h5"}),o.typography({controlId:"single_post_content_h6_typo",property:"--single-content-h6"}),wp.customize("single_page_show_original_image_option",(function(t){t.bind((function(t){t?e("body.news_event_main_body.page main#primary .post-inner-wrapper .post-thumbnail").addClass("show-original-image"):e("body.news_event_main_body.page main#primary .post-inner-wrapper .post-thumbnail").removeClass("show-original-image")}))})),o.responsiveSlider({controlId:"single_page_image_ratio",property:"--news-event-page-image-ratio",unit:""}),o.border({controlId:"footer_top_border",selector:"body .site-footer.dark_bk",property:"border-top"}),o.color({controlId:"footer_background_color_group",selector:"body.news_event_main_body .site-footer .main-footer, body .dark_bk .posts-grid-wrap.layout-two .post-content-wrap"}),o.color({controlId:"bottom_footer_background_color_group",selector:"body.news_event_main_body .site-footer .bottom-footer"}),wp.customize("bottom_footer_menu_option",(function(t){t.bind((function(t){t?e(".bottom-footer .bottom-menu").show():e(".bottom-footer .bottom-menu").hide()}))})),wp.customize("preloader_type",(function(t){t.bind((function(t){var o=e("body .news_event_loading_box .loader-item");e("body .news_event_loading_box").show(),setTimeout((function(){e("body .news_event_loading_box").hide()}),2e3),o.removeClass(),o.addClass("loader-item loader-"+t)}))})),wp.customize("single_post_related_posts_title",(function(t){t.bind((function(t){e(".single-related-posts-section .news-event-block-title span").text(t)}))})),wp.customize("footer_section_width",(function(t){t.bind((function(t){"boxed-width"==t?(e("footer .main-footer").removeClass("full-width").addClass("boxed-width"),e("footer .main-footer .footer-inner").removeClass("news-event-container-fluid").addClass("news-event-container")):(e("footer .main-footer").removeClass("boxed-width").addClass("full-width"),e("footer .main-footer .footer-inner").removeClass("news-event-container").addClass("news-event-container-fluid"))}))})),o.toggleClassWithPrefix({controlId:"archive_page_layout",prefix:"post-layout--"}),o.color({controlId:"site_title_hover_textcolor",selector:"body header.site-header .main-header .site-title a:hover",property:"color"}),o.border({controlId:"widgets_styles_image_border",selector:".widget .post_thumb_image, .widget .widget-tabs-content .post-thumb, .widget .popular-posts-wrap article .post-thumb, .widget.widget_news_event_news_filter_tabbed_widget .tabs-content-wrap .post-thumb, .widget .news-event-widget-carousel-posts .post-thumb-wrap, .author-wrap.layout-two .post-thumb, .widget_news_event_category_collection_widget .categories-wrap .category-item, .news-event-advertisement-block img"}),o.responsiveSlider({controlId:"widgets_styles_image_border_radius",selector:".widget .post_thumb_image, .widget .widget-tabs-content .post-thumb, .widget .popular-posts-wrap article .post-thumb, .widget.widget_news_event_news_filter_tabbed_widget .tabs-content-wrap .post-thumb, .widget .news-event-widget-carousel-posts .post-thumb-wrap, .author-wrap.layout-two .post-thumb, .widget .news-event-widget-carousel-posts.layout--two .slick-list, .widget_news_event_category_collection_widget .categories-wrap .category-item, .news-event-advertisement-block img"}),o.boxShadow({controlId:"widgets_styles_image_box_shadow",selector:".widget .post_thumb_image, .widget .widget-tabs-content .post-thumb, .widget .popular-posts-wrap article .post-thumb, .widget.widget_news_event_news_filter_tabbed_widget .tabs-content-wrap .post-thumb, .widget .news-event-widget-carousel-posts.layout--two .slick-list, .author-wrap.layout-two .post-thumb, .widget_news_event_category_collection_widget .categories-wrap .category-item"}),o.responsiveSlider({controlId:"news_event_site_logo_width",selector:"body .site-branding img",property:"width"}),wp.customize("website_author_before_icon",(function(t){t.bind((function(t){let o="icon"==t.type?" "+t.value:"";e("body .byline .url.fn.n.author_name").attr("class","url fn n author_name"+o)}))})),wp.customize("frontpage_sidebar_sticky_option",(function(t){t.bind((function(t){t?e("body").hasClass("home")&&e("body").hasClass("page-template-default")&&e("body").addClass("sidebar-sticky"):e("body").hasClass("home")&&e("body").hasClass("page-template-default")&&e("body").removeClass("sidebar-sticky")}))})),wp.customize("archive_sidebar_sticky_option",(function(t){t.bind((function(t){t?(e("body").hasClass("home")&&e("body").hasClass("blog")||e("body").hasClass("archive"))&&e("body").addClass("sidebar-sticky"):(e("body").hasClass("home")&&e("body").hasClass("blog")||e("body").hasClass("archive"))&&e("body").removeClass("sidebar-sticky")}))})),wp.customize("single_sidebar_sticky_option",(function(t){t.bind((function(t){t?e("body").hasClass("single")&&e("body").addClass("sidebar-sticky"):e("body").hasClass("single")&&e("body").removeClass("sidebar-sticky")}))})),wp.customize("page_sidebar_sticky_option",(function(t){t.bind((function(t){t?e("body").hasClass("page")&&e("body").addClass("sidebar-sticky"):e("body").hasClass("page")&&e("body").removeClass("sidebar-sticky")}))})),wp.customize("site_background_animation",(function(t){t.bind((function(t){if(e("body").removeClass("background-animation--one background-animation--two background-animation--three background-animation--none").addClass(`background-animation--${t}`),!e("body .news-event-background-animation").length){let t='<div class="news-event-background-animation">';for(let e=0;e<14;e++)t+='<span class="item"></span>';t+="</div>",e("body #page.site").append(t)}}))})),o.color({controlId:"animation_object_color",property:"--news-event-animation-object-color"}),wp.customize("stt_responsive_option",(function(e){e.bind((function(e){var o="";e.desktop||(o+="body #news-event-scroll-to-top.show { display: none }"),e.tablet?o+="@media(max-width: 940px) { body #news-event-scroll-to-top.show { display : block } }":o+="@media(max-width: 940px) { body #news-event-scroll-to-top.show { display : none } }",e.mobile?o+="@media(max-width: 610px) { body #news-event-scroll-to-top.show { display : block } }":o+="@media(max-width: 610px) { body #news-event-scroll-to-top.show { display : none } }",t.newsEventGenerateStyleTag(o,"news-event-scroll-to-top-responsive-option")}))})),wp.customize("website_content_layout",(function(t){t.bind((function(t){e("body").removeClass("global-content-layout--boxed--layout global-content-layout--full-width--layout").addClass("global-content-layout--"+t),"global"===wp.customize("ticker_news_width_layout").get()&&e("body .after-header").removeClass("ticker-news-section--boxed--layout ticker-news-section--full-width--layout").addClass("ticker-news-section--"+t),"global"===wp.customize("main_banner_width_layout").get()&&e("#main-banner-section").removeClass("width-boxed--layout width-full-width--layout").addClass("width-"+t),"global"===wp.customize("full_width_blocks_width_layout").get()&&e("#full-width-section").removeClass("width-boxed--layout width-full-width--layout").addClass("width-"+t),"global"===wp.customize("leftc_rights_blocks_width_layout").get()&&e("#leftc-rights-section").removeClass("width-boxed--layout width-full-width--layout").addClass("width-"+t),"global"===wp.customize("lefts_rightc_blocks_width_layout").get()&&e("#lefts-rightc-section").removeClass("width-boxed--layout width-full-width--layout").addClass("width-"+t),"global"===wp.customize("bottom_full_width_blocks_width_layout").get()&&e("#bottom-full-width-section").removeClass("width-boxed--layout width-full-width--layout").addClass("width-"+t),"global"===wp.customize("bottom_footer_width_layout").get()&&e("body .bottom-footer").removeClass("width-boxed--layout width-full-width--layout").addClass("width-"+t),"global"===wp.customize("archive_width_layout").get()&&e(".archive #primary.site-main, .home #primary.site-main").removeClass("width-boxed--layout width-full-width--layout").addClass("width-"+t),"global"===wp.customize("single_post_width_layout").get()&&e(".single #primary.site-main").removeClass("width-boxed--layout width-full-width--layout").addClass("width-"+t),"global"===wp.customize("single_page_width_layout").get()&&e(".page #primary.site-main").removeClass("width-boxed--layout width-full-width--layout").addClass("width-"+t),"global"===wp.customize("error_page_width_layout").get()&&e(".error404 #primary.site-main").removeClass("width-boxed--layout width-full-width--layout").addClass("width-"+t),"global"===wp.customize("search_page_width_layout").get()&&e(".search #primary.site-main").removeClass("width-boxed--layout width-full-width--layout").addClass("width-"+t),"global"===wp.customize("two_column_section_layout").get()&&e("#two-column-section").removeClass("width-boxed--layout width-full-width--layout").addClass("width-"+t),"global"===wp.customize("header_width_layout").get()&&e("body").removeClass("header-width--boxed--layout header-width--full-width--layout").addClass("header-width--"+t)}))})),o.globalContentLayout({controlId:"ticker_news_width_layout",selector:"body .after-header",prefix:"ticker-news-section--"}),o.globalContentLayout({controlId:"main_banner_width_layout",selector:"#main-banner-section"}),o.globalContentLayout({controlId:"full_width_blocks_width_layout",selector:"#full-width-section"}),o.globalContentLayout({controlId:"leftc_rights_blocks_width_layout",selector:"#leftc-rights-section"}),o.globalContentLayout({controlId:"lefts_rightc_blocks_width_layout",selector:"#lefts-rightc-section"}),o.globalContentLayout({controlId:"bottom_full_width_blocks_width_layout",selector:"#bottom-full-width-section"}),o.globalContentLayout({controlId:"bottom_footer_width_layout",selector:"body .bottom-footer"}),o.globalContentLayout({controlId:"archive_width_layout",selector:".archive #primary.site-main, .home #primary.site-main"}),o.globalContentLayout({controlId:"single_post_width_layout",selector:".single #primary.site-main"}),o.globalContentLayout({controlId:"single_page_width_layout",selector:".page #primary.site-main"}),o.globalContentLayout({controlId:"error_page_width_layout",selector:".error404 #primary.site-main"}),o.globalContentLayout({controlId:"search_page_width_layout",selector:".search #primary.site-main"}),o.globalContentLayout({controlId:"two_column_section_layout",selector:"#two-column-section"}),o.globalContentLayout({controlId:"header_width_layout",selector:"body",prefix:"header-width--"}),o.number({selector:"body .social-icons .social-icon",controlId:"social_icons_border_radius",property:"border-radius"}),wp.customize("header_ads_banner_responsive_option",(function(e){e.bind((function(e){var o="";e.desktop||(o+="body .after-header .ads-banner { display: none }"),e.tablet?o+="@media(max-width: 940px) { body .after-header .ads-banner { display : block } }":o+="@media(max-width: 940px) { body .after-header .ads-banner { display : none } }",e.mobile?o+="@media(max-width: 610px) { body .after-header .ads-banner { display : block } }":o+="@media(max-width: 610px) { body .after-header .ads-banner { display : none } }",t.newsEventGenerateStyleTag(o,"news-event-header-ads-banner-responsive-option")}))}));const s={typoFontsEnqueue:function(e){const{font_family:t,font_weight:o}=e;let n,i=document.getElementById("news-event-generated-typo-fonts"),s="https://fonts.googleapis.com/css2?",a="italic"===o.variant?"ital,wght@":"wght@";if(null!==i){let t=new URL(i.href).search,o=this.parseTheFontsQuery(t,e);i.href=s+o}else{let e=document.createElement("link");e.rel="stylesheet",e.id="news-event-generated-typo-fonts",n="family="+t.value+":"+a+o.value,e.href=s+n,document.head.appendChild(e)}},parseTheFontsQuery:function(e,t){const{font_weight:o,font_family:n}=t;let i=e.replaceAll("?","").replaceAll("&","").split("family="),s="italic"===o.variant?"ital":"wght";var a=[n.value],r={[n.value]:[o.value]},l={[n.value]:[s]};let d=a.map((e=>e.replaceAll("%20"," ")));return i.forEach((e=>{if(""!==e){let t=e.split(":"),o=t[0];d.includes(o)||d.push(o);let n=t[1].split("@"),i=n[1].replaceAll("0,","").replaceAll("1,","").replaceAll(",",""),s=n[0];r[o]||(r[o]=[]),l[o]||(l[o]=[]),l[o].includes(s)||l[o].push(...s.split(",")),r[o].includes(i)||r[o].push(...i.split(";"))}})),d.map((e=>{let t=r[e].sort(((e,t)=>e-t)),o=[...new Set(t)],n=[...new Set(l[e])];var i,s=[];return n.includes("ital")?(o.forEach((e=>{void 0!==e&&""!==e&&s.push("0,"+e+";")})),o.forEach(((e,t)=>{void 0!==e&&""!==e&&s.push("1,"+e+(t+1===o.length?"":";"))})),i=s.join("")):i=o.join(";"),"family="+e+":"+n.sort()+"@"+i})).join("&")}},a={getFormatedColor:function(e){if(null!=e)return e.includes("preset")?"var("+e+")":e}}}(jQuery);