PATH:
home
/
fengshp
/
www
/
wp-content
/
themes
/
themify-ultra
/
themify
/
customizer
/
js
((t,$,e)=>{"use strict";function i(t){try{t=JSON.parse(t)}catch(e){t={}}return(null===t||Array.isArray(t)||"object"!=typeof t)&&(t={}),t}function o(t){return btoa(String.fromCharCode(...(new TextEncoder).encode(t)))}var n=e.createElement("script"),s=e.getElementsByTagName("script")[0];n.src=("https:"==e.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js",n.type="text/javascript",n.async="true",s.parentNode.insertBefore(n,s);var c=wp.customize,a=!0;function l(t){var e=t.prev("li");return e.length>0&&0===e.children(".themify-control-title").length?l(e):e.index()}function r(){return Themify.loadJs("https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js",!!window.JSZip,!1)}function h(){return Themify.loadJs(Themify.url+"js/admin/notification",!!window.TF_Notification)}window.onbeforeunload=()=>{if(!wp.customize.state("saved")())return themifyCustomizerControls.confirm_on_unload},c.bind("pane-contents-reflowed",(function(){if($(".themify-subaccordion").each((function(){var t=$(this),e=t.data("accordion"),i=$("."+e+"-group");if(i.is("#customize-control-customcss_ctrl")){var o=i.find(".CodeMirror-scroll").scrollTop(),n=i.find(".CodeMirror").get(0);i.appendTo(t),void 0!==n&&"CodeMirror"in n&&(n.CodeMirror.focus(),n.CodeMirror.scrollTo(0,o))}else i.appendTo(t);$(i.get().reverse()).each((function(){if(0===$(this).children(".themify-control-title").length){var t=l($(this));$(this).appendTo(i.eq(t).children(".themify-control-sub-accordeon").first())}}))})),$('li[id*="nav_menu_locations"]').each((function(){$(this).appendTo($(this).prev().find(".themify-subaccordion"))})),a){$("#accordion-section-themify_options:visible").find(".accordion-section-title").trigger("click"),$(".themify-suba-toggle.themify-control-title").off("click").on("click",(function(t){t.preventDefault();var e=$(this).closest("li").find(".themify-control-sub-accordeon");$(this).hasClass("topen")?($(this).removeClass("topen"),e.slideUp()):($(this).addClass("topen"),e.slideDown())})),$(".themify-control-sub-accordeon").hide(),$("body").on("mouseover",".devices [data-device]",(function(t){var e=""+$(this).data("device").replace("_"," ");$(this).append('<span class="themify_customize_tooltip">'+e+"</span>")})).on("mouseout",".devices [data-device]",(function(t){$(this).children(".themify_customize_tooltip").remove()}));const t=e.getElementById("tf_customizer_import"),i=e.getElementById("tf_customizer_export");t.tfOn("click",(i=>{i.preventDefault(),window.confirm(t.dataset.msgConfirm)&&async function(t){h();const i=e.createElement("input");i.type="file",i.accept=".zip,.txt",i.tfOn("change",(async e=>{e.currentTarget.remove();try{const i=e.currentTarget.files[0],n=async e=>{const[i,n]=await Promise.all([Themify.fetch({action:"tf_customizer_import",nonce:t.nonce,data:o(e)}),h()]);i.success?(await TF_Notification.showHide("done",t.msgSuccess,1500),window.location.reload()):TF_Notification.showHide("error",t.msgError)};if("text/plain"===i.type)(new FileReader).tfOn("loadend",(function(t){try{this.readyState===FileReader.DONE&&n(t.target.result)}catch(t){}}),{passive:!0,once:!0}).readAsText(i);else{if("application/x-zip-compressed"!==i.type&&"application/zip"!==i.type)throw Error(t.msgInvalid);{await r();const e=new JSZip,o=await e.loadAsync(i),s=o.files;if(!s)throw Error(t.msgInvalid);if(!s["customizer_export.txt"])throw Error(t.msgInvalid);n(await o.file("customizer_export.txt").async("text"))}}}catch(e){await h(),TF_Notification.showHide("error",e.message)}}),{passive:!0,once:!0}).click()}(t.dataset)})),i.tfOn("click",(t=>{t.preventDefault(),Themify.fetch({action:"tf_customizer_export",nonce:i.dataset.nonce}).then((async t=>{if(t.success){const i=(t,i)=>{let o=e.createElement("a");o.download=t,o.rel="noopener",o.href=URL.createObjectURL(i),setTimeout((()=>{URL.revokeObjectURL(o.href),o=null}),7e3),o.click()};try{await r();const e=new JSZip;e.file("customizer_export.txt",t.data.data),i(t.data.name+".zip",await e.generateAsync({type:"blob"}))}catch(e){i(t.data.name+".txt",new Blob([t.data.data],{type:"text/plain"}))}}}))})),$.event.trigger("themify_customizer_ready"),a=!1}})),c.ThemifySubAccordion=c.Control.extend({ready(){var t=$(".themify-suba-toggle",this.container),e=t.next();$(".customize-control.customize-control-themify_subaccordion_end").remove(),t.on("click",(function(t){t.preventDefault(),$(this).parent().toggleClass("topen"),e.toggleClass("tpanelopen"),e.hasClass("tpanelopen")?e.slideDown():e.slideUp()}));var i=$('select[data-customize-setting-link^="nav_menu_locations"]',this.container);i.closest("label").each((function(){$(this).replaceWith($(this).contents())})),i.wrap('<div class="themify-customizer-brick" />').wrap('<div class="custom-select nav-menu-select" />')}}),c.controlConstructor.themify_subaccordion_start=c.ThemifySubAccordion,c.ThemifyControl=c.Control.extend({value:{},field:"",openMedia(){var t=this,e=$(t.field,t.container),i="";$(".open-media",t.container).on("click",(function(o){o.preventDefault(),(i=wp.media.frames.file_frame=wp.media({title:$(this).data("uploader-title"),library:{type:["image"]},button:{text:$(this).data("uploader-button-text")},multiple:!1})).on("select",(()=>{var o=i.state().get("selection").first().toJSON(),n=$('<a href="#" class="remove-image tf_close"></a><img src="'+o.url+'" />').css("display","inline-block"),s=$(".themify_control_preview",t.container),c=$("a",s),a=$("img",s);t.isResponsiveStyling()?(_.isUndefined(t.value[t.id][t.getCurrentDevice()])&&(t.value[t.id][t.getCurrentDevice()]={}),t.value[t.id][t.getCurrentDevice()].id=o.id,t.value[t.id][t.getCurrentDevice()].src=o.url):(t.value[t.id].id=o.id,t.value[t.id].src=o.url),e.val(JSON.stringify(t.value[t.id])).trigger("change"),c.length>0&&c.remove(),a.length>0&&a.remove(),s.append(n).fadeIn()})),i.open()})),$(".open-media-wrap",t.container).on("click",".remove-image",(function(i){i.preventDefault(),t.isResponsiveStyling()?(_.isUndefined(t.value[t.id][t.getCurrentDevice()])&&(t.value[t.id][t.getCurrentDevice()]={}),t.value[t.id][t.getCurrentDevice()].id="",t.value[t.id][t.getCurrentDevice()].src=""):(t.value[t.id].id="",t.value[t.id].src=""),e.val(JSON.stringify(t.value[t.id])).trigger("change"),$(this).next().remove(),$(this).remove()}))},pickColor(){const t=this,e=$(t.field,t.container),i=$(".color-select",t.container),o=$(".remove-color",t.container);let n=0;i.tfminicolors({defaultValue:"",letterCase:"lowercase",opacity:!0,swatches:themifyColorManager.toColorsArray(),show(){themifyColorManager.initColorPicker(this);const t=$(this);t.closest("li").is(":last-child")&&t.closest(".color-picker").addClass("color-picker-visible")},change(i,s){"headerwrap_background_ctrl"===t.id&&themifyCustomizerControls.header_transparnet&&n<1&&(alert(themifyCustomizerControls.header_transparnet),n++),t.isResponsiveStyling()?(_.isUndefined(t.value[t.id][t.getCurrentDevice()])&&(t.value[t.id][t.getCurrentDevice()]={}),t.value[t.id][t.getCurrentDevice()].color=i.replace("#",""),t.value[t.id][t.getCurrentDevice()].opacity=s):(t.value[t.id].color=i.replace("#",""),t.value[t.id].opacity=s),e.val(JSON.stringify(t.value[t.id])).trigger("change"),o.show()},hide(){""!=$(this).val()&&(t.isResponsiveStyling()?(_.isUndefined(t.value[t.id][t.getCurrentDevice()])&&(t.value[t.id][t.getCurrentDevice()]={}),t.value[t.id][t.getCurrentDevice()].color=$(this).val().replace("#","")):t.value[t.id].color=$(this).val().replace("#",""),e.val(JSON.stringify(t.value[t.id])).trigger("change"),o.show());const i=$(this);i.closest("li").is(":last-child")&&i.closest(".color-picker").removeClass("color-picker-visible")}}),o.on("click",(n=>{n.preventDefault(),t.isResponsiveStyling()?(_.isUndefined(t.value[t.id][t.getCurrentDevice()])&&(t.value[t.id][t.getCurrentDevice()]={}),t.value[t.id][t.getCurrentDevice()]=_.omit(t.value[t.id][t.getCurrentDevice()],"color"),t.value[t.id][t.getCurrentDevice()]=_.omit(t.value[t.id][t.getCurrentDevice()],"opacity")):(t.value[t.id]=_.omit(t.value[t.id],"color"),t.value[t.id]=_.omit(t.value[t.id],"opacity")),e.val(JSON.stringify(t.value[t.id])).trigger("change"),i.tfminicolors("value",""),i.tfminicolors("opacity",""),o.hide()}))},pickBorderColor(){const t=this,e=$(t.field,t.container),i=$(".color-select",t.container),o=$(".remove-color",t.container),n=$(".same",t.container);i.tfminicolors({defaultValue:"",letterCase:"lowercase",opacity:!0,swatches:themifyColorManager.toColorsArray(),change(i,o){var s=$(this).data("side"),c=i.replace("#","");n.prop("checked")?t.isResponsiveStyling()?(_.isUndefined(t.value[t.id][t.getCurrentDevice()])&&(t.value[t.id][t.getCurrentDevice()]={}),t.value[t.id][t.getCurrentDevice()].color=c,t.value[t.id][t.getCurrentDevice()].opacity=o,t.value[t.id][t.getCurrentDevice()].same="same"):(t.value[t.id].color=c,t.value[t.id].opacity=o,t.value[t.id].same="same"):t.isResponsiveStyling()?(_.isUndefined(t.value[t.id][t.getCurrentDevice()])&&(t.value[t.id][t.getCurrentDevice()]={}),t.value[t.id][t.getCurrentDevice()][s]=_.extend({},t.value[t.id][t.getCurrentDevice()][s],{color:c,opacity:o}),"top"===s&&(t.value[t.id][t.getCurrentDevice()].color=c,t.value[t.id][t.getCurrentDevice()].opacity=o),t.value[t.id][t.getCurrentDevice()].same=""):(t.value[t.id][s]=_.extend({},t.value[t.id][s],{color:c,opacity:o}),"top"===s&&(t.value[t.id].color=c,t.value[t.id].opacity=o),t.value[t.id].same=""),t.setting.set("{}",{silent:!0}),e.val(JSON.stringify(t.value[t.id])).trigger("change"),$(this).parent().next().show()},hide(){if($(this).val()){var i=$(this).val(),o=$(this).data("side"),s=i.replace("#","");n.prop("checked")?t.isResponsiveStyling()?(_.isUndefined(t.value[t.id][t.getCurrentDevice()])&&(t.value[t.id][t.getCurrentDevice()]={}),t.value[t.id][t.getCurrentDevice()].color=s,t.value[t.id][t.getCurrentDevice()].same="same"):(t.value[t.id].color=s,t.value[t.id].same="same"):t.isResponsiveStyling()?(_.isUndefined(t.value[t.id][t.getCurrentDevice()])&&(t.value[t.id][t.getCurrentDevice()]={}),t.value[t.id][t.getCurrentDevice()][o]=_.extend({},t.value[t.id][t.getCurrentDevice()][o],{color:s}),"top"===o&&(t.value[t.id][t.getCurrentDevice()].color=s),t.value[t.id][t.getCurrentDevice()].same=""):(t.value[t.id][o]=_.extend({},t.value[t.id][o],{color:s}),"top"===o&&(t.value[t.id].color=s),t.value[t.id].same=""),e.val(JSON.stringify(t.value[t.id])).trigger("change"),$(this).parent().next().show()}},show(){themifyColorManager.initColorPicker(this)}}),o.on("click",(function(i){i.preventDefault();const o=$(this).data("side");n.prop("checked")?t.isResponsiveStyling()?(_.isUndefined(t.value[t.id][t.getCurrentDevice()])&&(t.value[t.id][t.getCurrentDevice()]={}),t.value[t.id][t.getCurrentDevice()]=_.omit(t.value[t.id][t.getCurrentDevice()],["color","opacity"]),t.value[t.id][t.getCurrentDevice()].same="same"):(t.value[t.id].color="",t.value[t.id].opacity="",t.value[t.id].same="same"):t.isResponsiveStyling()?(_.isUndefined(t.value[t.id][t.getCurrentDevice()])&&(t.value[t.id][t.getCurrentDevice()]={}),t.value[t.id][t.getCurrentDevice()][o]=_.extend({},t.value[t.id][t.getCurrentDevice()][o],{color:"",opacity:""}),"top"===o&&(t.value[t.id][t.getCurrentDevice()]=_.omit(t.value[t.id][t.getCurrentDevice()],["color","opacity"])),t.value[t.id][t.getCurrentDevice()].same=""):(t.value[t.id][o]=_.extend({},t.value[t.id][o],{color:"",opacity:""}),"top"===o&&(t.value[t.id].color="",t.value[t.id].opacity=""),t.value[t.id].same=""),e.val(JSON.stringify(t.value[t.id])).trigger("change");const s=$(this).siblings(".tfminicolors").children(".color-select");s.tfminicolors("value",""),s.tfminicolors("opacity",""),$(this).hide()}))},transparent(t){const e=this,i=$(e.field,e.container);t.on("click",(function(){const t=$(this);t.prop("checked")?(e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].transparent="transparent"):e.value[e.id].transparent="transparent",t.parent().prev().addClass("transparent")):(e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].transparent=""):e.value[e.id].transparent="",t.parent().prev().removeClass("transparent")),i.val(JSON.stringify(e.value[e.id])).trigger("change")})),t.prop("checked")&&t.parent().prev().addClass("transparent")},dropdown(t,e){const i=this,o=$(i.field,i.container);t.on("change",(function(){const t=i.value[i.id],n=i.getCurrentDevice(),s=$("option:selected",$(this)).val();i.isResponsiveStyling()?(_.isUndefined(t[n])&&(t[n]={}),t[n][e]=s):t[e]=s,o.val(JSON.stringify(t)).trigger("change")}))},collapse(t){const e=this,i=$(e.field,e.container);t.on("click",(function(){const t=$(this);if(t.prop("checked"))e.value[e.id].disabled="disabled",t.parent().siblings(".themify-customizer-brick").stop().slideUp();else{e.value[e.id].disabled="";const i=t.parent().parent().find('input[type="checkbox"].same');i.length>0&&i.prop("checked")?t.parent().siblings(".useforall, .collapse-same").stop().slideDown():t.parent().siblings(".themify-customizer-brick").stop().slideDown()}i.val(JSON.stringify(e.value[e.id])).trigger("change")})),t.prop("checked")&&t.parent().siblings(".themify-customizer-brick").hide()},input(t,e){const i=this,o=$(i.field,i.container);t.on("keyup",(function(){i.isResponsiveStyling()?(_.isUndefined(i.value[i.id][i.getCurrentDevice()])&&(i.value[i.id][i.getCurrentDevice()]={}),i.value[i.id][i.getCurrentDevice()][e]=$(this).val()):i.value[i.id][e]=$(this).val(),o.val(JSON.stringify(i.value[i.id])).trigger("change")}))},dimension(t){const e=this,i=$(e.field,e.container);t.on("keyup",(function(){const t=e.value[e.id],o=e.getCurrentDevice(),n=$(this).val();e.isResponsiveStyling()?(_.isUndefined(t[o])&&(t[o]={}),t[o].width=n):t.width=n,i.val(JSON.stringify(t)).trigger("change")}))},dimensionSame(t){const e=this,i=$(e.field,e.container),o=$(".same",e.container);t.on("keyup",(function(){const t=$(this).data("side"),n=$(this).val();o.prop("checked")?e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].width=n,e.value[e.id][e.getCurrentDevice()].same="same"):(e.value[e.id].width=n,e.value[e.id].same="same"):e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()][t]=_.extend({},e.value[e.id][e.getCurrentDevice()][t],{width:n}),"top"===t&&(e.value[e.id][e.getCurrentDevice()].width=n),e.value[e.id][e.getCurrentDevice()].same=""):(e.value[e.id][t]=_.extend({},e.value[e.id][t],{width:n}),"top"===t&&(e.value[e.id].width=n),e.value[e.id].same=""),i.val(JSON.stringify(e.value[e.id])).trigger("change")}))},auto(t){const e=this,i=$(e.field,e.container),o=$(e.container).find("."+t.data("hide"));t.on("click",(function(){const t=$(this),n=e.value[e.id],s=e.getCurrentDevice(),c=t.prop("checked")?"auto":"";e.isResponsiveStyling()?(_.isUndefined(n[s])&&(n[s]={}),n[s].auto=c):n.auto=c,o.stop().toggleClass("hide-horizontally",c),i.val(JSON.stringify(n)).trigger("change")})),t.prop("checked")&&o.addClass("hide-horizontally")},autoSame(t){const e=this,i=$(e.field,e.container),o=$(".same",e.container);t.on("click",(function(){const t=$(this),n=t.data("hide"),s=$(this).data("side"),c={};o.prop("checked")?(t.prop("checked")?(c.auto="auto",e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].auto="auto",e.value[e.id][e.getCurrentDevice()].top=_.extend({},e.value[e.id][e.getCurrentDevice()].top,c)):(e.value[e.id].auto="auto",e.value[e.id].top=_.extend({},e.value[e.id].top,c)),$(e.container).find("."+n).stop().addClass("hide-horizontally")):(c.auto="",e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].auto="",e.value[e.id][e.getCurrentDevice()].top=_.extend({},e.value[e.id][e.getCurrentDevice()].top,c)):(e.value[e.id].auto="",e.value[e.id].top=_.extend({},e.value[e.id].top,c)),$(e.container).find("."+n).stop().removeClass("hide-horizontally")),e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].same="same"):e.value[e.id].same="same"):(t.prop("checked")?(c.auto="auto",e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()][s]=_.extend({},e.value[e.id][e.getCurrentDevice()][s],c),"top"===s&&(e.value[e.id][e.getCurrentDevice()].auto="auto")):(e.value[e.id][s]=_.extend({},e.value[e.id][s],c),"top"===s&&(e.value[e.id].auto="auto")),$(e.container).find("."+n).stop().addClass("hide-horizontally")):(c.auto="",e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()][s]=_.extend({},e.value[e.id][e.getCurrentDevice()][s],c),"top"===s&&(e.value[e.id][e.getCurrentDevice()].auto="")):(e.value[e.id][s]=_.extend({},e.value[e.id][s],c),"top"===s&&(e.value[e.id].auto="")),$(e.container).find("."+n).stop().removeClass("hide-horizontally")),e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].same=""):e.value[e.id].same=""),i.val(JSON.stringify(e.value[e.id])).trigger("change")})),t.each((function(){let t=$(this);t.prop("checked")&&$(e.container).find("."+t.data("hide")).addClass("hide-horizontally")}))},dropdownSame(t,e){const i=this,o=$(i.field,i.container),n=$(".same",i.container);t.on("change",(function(){const t=$(this).data("side"),s=$("option:selected",$(this)).val();if(n.prop("checked"))i.isResponsiveStyling()?(_.isUndefined(i.value[i.id][i.getCurrentDevice()])&&(i.value[i.id][i.getCurrentDevice()]={}),i.value[i.id][i.getCurrentDevice()][e]=s,i.value[i.id][i.getCurrentDevice()].same="same"):(i.value[i.id][e]=s,i.value[i.id].same="same");else{const o={};o[e]=s,i.isResponsiveStyling()?(_.isUndefined(i.value[i.id][i.getCurrentDevice()])&&(i.value[i.id][i.getCurrentDevice()]={}),i.value[i.id][i.getCurrentDevice()][t]=_.extend({},i.value[i.id][i.getCurrentDevice()][t],o),"top"===t&&(i.value[i.id][i.getCurrentDevice()][e]=s),i.value[i.id][i.getCurrentDevice()].same=""):(i.value[i.id][t]=_.extend({},i.value[i.id][t],o),"top"===t&&(i.value[i.id][e]=s),i.value[i.id].same="")}o.val(JSON.stringify(i.value[i.id])).trigger("change")}))},dropdownBorderSame(t){const e=this,i=$(e.field,e.container),o=$(".same",e.container);t.on("change",(function(){const t=$(this),n=t.data("side"),s=$("option:selected",t).val();o.prop("checked")?e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].style=s,e.value[e.id][e.getCurrentDevice()].same="same"):(e.value[e.id].style=s,e.value[e.id].same="same"):e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()][n]=_.extend({},e.value[e.id][e.getCurrentDevice()][n],{style:s}),"top"===n&&(e.value[e.id][e.getCurrentDevice()].style=s),e.value[e.id][e.getCurrentDevice()].same=""):(e.value[e.id][n]=_.extend({},e.value[e.id][n],{style:s}),"top"===n&&(e.value[e.id].style=s),e.value[e.id].same=""),i.val(JSON.stringify(e.value[e.id])).trigger("change"),"none"===s?t.parent().siblings(".color-picker, .border-width, .dimension-unit-label").hide():t.parent().siblings(".color-picker, .border-width, .dimension-unit-label").show()})),t.each((function(){let t=$(this);"none"===$("option:selected",t).val()?t.parent().siblings(".color-picker, .border-width, .dimension-unit-label").hide():t.parent().siblings(".color-picker, .border-width, .dimension-unit-label").show()}))},hideComponentsSame(t){const e=this,i=$(e.field,e.container),o=$(".component",e.container),n=$(".dimension-row-label:not(.same-label)",e.container),s=t.parent().parent().find(".same-label");t.on("click",(function(){$(this).prop("checked")?(e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].same="same"):e.value[e.id].same="same",o.stop().slideUp(),n.hide(),s.text(s.data("same"))):(e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].same=""):e.value[e.id].same="",o.stop().slideDown(),n.show(),s.text(s.data("notsame"))),i.val(JSON.stringify(e.value[e.id])).trigger("change")})),t.prop("checked")&&(o.hide(),n.hide(),s.text(s.data("same")))},getSelectedData(t,e,i){const o=$(".selected",t).data(e);return o||i},fontStyle(t){const e=this,i=$(e.field,e.container);$(".button",t).on("click",(function(){const o=$(this).data("style");"underline"===o?$('.button.selected[data-style="linethrough"]',t).removeClass("selected"):"linethrough"===o?$('.button.selected[data-style="underline"]',t).removeClass("selected"):"italic"===o?$('.button.selected[data-style="normal"]',t).removeClass("selected"):"normal"===o?$('.button.selected[data-style="italic"]',t).removeClass("selected"):"nostyle"===o?$('.button:not([data-style="nostyle"])',t).removeClass("selected"):$('.button[data-style="nostyle"]',t).removeClass("selected"),$(this).toggleClass("selected"),e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),$(".button",t).each((function(){e.value[e.id][e.getCurrentDevice()][$(this).data("style")]=$(this).hasClass("selected")?$(this).data("style"):""}))):$(".button",t).each((function(){e.value[e.id][$(this).data("style")]=$(this).hasClass("selected")?$(this).data("style"):""})),i.val(JSON.stringify(e.value[e.id])).trigger("change")}))},textTransform(t){const e=this,i=$(e.field,e.container);$(".button",t).on("click",(function(){const o=$(this).data("texttransform");$(".button",t).not(this).removeClass("selected"),$(this).toggleClass("selected"),"notexttransform"===o?$('.button:not([data-texttransform="notexttransform"])',t).removeClass("selected"):$('.button[data-texttransform="notexttransform"]',t).removeClass("selected"),e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].texttransform=e.getSelectedData(t,"texttransform")):e.value[e.id].texttransform=e.getSelectedData(t,"texttransform"),i.val(JSON.stringify(e.value[e.id])).trigger("change")}))},textAlign(t){const e=this,i=$(e.field,e.container);$(".button",t).on("click",(function(){const o=$(this).data("align");$(".button",t).not(this).removeClass("selected"),$(this).toggleClass("selected"),"noalign"===o?$('.button:not([data-align="noalign"])',t).removeClass("selected"):$('.button[data-align="noalign"]',t).removeClass("selected"),e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].align=e.getSelectedData(t,"align")):e.value[e.id].align=e.getSelectedData(t,"align"),i.val(JSON.stringify(e.value[e.id])).trigger("change")}))},fontFamily(t){const e=this,o=$(e.field,e.container);t.on({change(){var t=$(this).closest("li").find(".font_weight_select"),n=t.length>0&&$(this).find("option:selected").data("variants");if(e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].family=i($("option:selected",$(this)).val())):e.value[e.id].family=i($("option:selected",$(this)).val()),n){t.closest(".themify-customizer-brick").show(),n=$.trim(n).split(","),t.find("option").each((function(){-1===$.inArray($(this).val(),n)?$(this).hide():$(this).show()}));var s=t.find("option:selected");s.is(":visible")||(s.prop("selected",!1),t.find("option").each((function(){if("none"!=$(this).css("display"))return $(this).prop("selected",!0).trigger("change"),!1})))}else t.val("").find("option").hide().closest(".themify-customizer-brick").hide();o.val(JSON.stringify(e.value[e.id])).trigger("change"),$("#themify_font_preview").hide()},focusin(){var t=$(this).data("selected");if($(".themify_add_fonts").length>0){var o=$(".themify_add_fonts").html(),n=$(o);n.find("option").removeAttr("selected"),t&&n.find('option[data-value="'+t+'"]').attr("selected","selected"),$(this).html(n)}else{$("body").append('<span id="themify_font_preview"><span class="themify_font_wait"></span>Font Preview</span>');var s=i(decodeURI($("#themify_fonts_hidden").val())),c=s.cf,a=s.google,l=s.fonts;o="";if(s=null,c.length>0){for(var r in c){var h=c[r].value,d='{"fonttype":"cf","name":"'+h+'"}';f=t&&t==h?'selected="selected"':"",m=e.escapeHtml(m=c[r].name),o+="<option data-variants='"+c[r].variants+"' data-value='"+h+"' class='cf_font' "+f+" value='"+d+"'>"+m+"</option>"}c=null,$(this).children("optgroup").first().html(o),o=""}for(var r in l){var m=l[r].value;o+="<option "+(f=t&&t==m?'selected="selected"':"")+" data-value='"+(m=e.escapeHtml(m))+"' value='"+(d='{"fonttype":"websafe","name":"'+m+'"}')+"'>"+l[r].name+"</option>"}for(var r in l=null,$(this).children("optgroup.themify_wsf_optgroup").html(o),o="",a){m=a[r].name;var f=t&&t==m?'selected="selected"':"";d='{"fonttype":"google"';m=e.escapeHtml(m),o+="<option data-variants='"+a[r].variants+"' data-value='"+m+"' class='google_font' "+f+" value='"+(d+=',"name":"'+m+'"}')+"'>"+a[r].name+"</option>"}a=null,$(this).children("optgroup").last().html(o),$(this).addClass("themify_add_fonts"),$("#themify_fonts_hidden").remove(),e.fontHover()}const u=$(this);u.off("focusin").scombobox({wrap:!0,reassignId:!1,empty:!t,showDropDown:!0,beforeClose(){$("#themify_font_preview").hide()},afterClose(){var t=u.closest(".scombobox").find(".scombobox-display");$.trim(t.val())||u.data("selected","").find("option:selected").prop("selected",!1).trigger("change"),$("#themify_font_preview").is(":visible")&&!u.find(".scombobox-list").is(":visible")&&$("#themify_font_preview").hide()}})}})},escapeHtml(t){const e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.replace(/[&<>"']/g,(t=>e[t]))},fontHover(){$(".themify_combobox").on("mouseover",".scombobox-list p",(function(t){t.stopImmediatePropagation();var e=$("#themify_font_preview");if($(this).data("value")&&$(this).is(":visible")){var o=i($(this).data("value")),n=$(this).offset();e.css({top:n.top-7,left:n.left+260}),"google"!==o.fonttype&&"cf"!==o.fonttype||$(this).hasClass("themify_font_loaded")?e.css("font-family",o.name).removeClass("themify_show_wait").show():($(".themify_combobox .scombobox-list p").removeClass("current"),$(this).addClass("current"),e.addClass("themify_show_wait"),setTimeout((()=>{var t=$(".themify_combobox p.current");if(t.closest(".scombobox-list").is(":visible")){var o=i(t.data("value")),n=t.offset(),s={fontloading(i,o){e.css("font-family",i).removeClass("themify_show_wait"),t.addClass("themify_font_loaded")}};e.css({top:n.top-7,left:n.left+260}).show(),"google"===o.fonttype?s.google={families:[o.name]}:s.custom={families:[o.name],urls:[themifyCustomizerControls.cf_api_url+o.name]},WebFont.load(s)}else e.hide()}),800))}else e.hide()}))},inputOption(t,e){const i=this,o=$(i.field,i.container);let n;t.on("keyup",(function(){const t=$(this).val();"blogname"===e&&$(".customize-control-themify_logo").find(".site-name").each((function(){$(this).val(t)})),clearTimeout(n),n=setTimeout((()=>{$.post(ajaxurl,{action:"themify_customizer_save_option",option:e,value:t,nonce:themifyCustomizerControls.nonce},(t=>{"saved"===t&&(i.value[i.id]||(i.value[i.id]={}),i.value[i.id].stamp=(new Date).getTime(),o.val(JSON.stringify(i.value[i.id])).trigger("change"))}))}),750)}))},saveOption(t,e){const i=this;$.post(ajaxurl,{action:"themify_customizer_save_option",option:t,value:e,nonce:themifyCustomizerControls.nonce},(t=>{"saved"===t&&i.saveOptionCallback()}))},saveOptionCallback(){},changeMode(t){const e=this,i=$(e.field,e.container);$(t+"-mode",e.container).each((function(){$(this).on("click",(function(){var o=$(this);$(t+"-mode-wrap",e.container).hide(),$(t+"-"+o.val()+"-mode",e.container).show(),e.value[e.id]||(e.value[e.id]={}),e.value[e.id].mode=o.val(),i.val(JSON.stringify(e.value[e.id])).trigger("change")}))})),$(t+"-mode-wrap",e.container).hide(),$(t+"-"+$('input[type="radio"]'+t+"-mode:checked").val()+"-mode",e.container).show()},addQueryArg:(t,e,i)=>Themify.updateQueryString(t,e,i),getParameterByName(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");const i=RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null},isResponsiveStyling:()=>"desktop"!==c.previewedDevice.get(),getCurrentDevice:()=>c.previewedDevice.get(),radioChange(t,e){const i=this,o=$(i.field,i.container),n=t.find('input[type="radio"]:checked').val();t.find('input[type="radio"]').on("click",(function(){let n=$(this).val();i.value[i.id]||(i.value[i.id]={}),i.isResponsiveStyling()?(i.value[i.id][i.getCurrentDevice()]||(i.value[i.id][i.getCurrentDevice()]={}),i.value[i.id][i.getCurrentDevice()][e]=n):(i.value[i.id][e]=n,t.closest(".customize-control").data("deskValue",n)),t.nextAll('[class*="-mode-wrap"]').hide(),t.nextAll('[class*="-'+n+'-mode"]').show(),o.val(JSON.stringify(i.value[i.id])).trigger("change")})),t.nextAll('[class*="-mode-wrap"]').hide(),t.nextAll('[class*="-'+n+'-mode"]').show()}}),c.ThemifyFont=c.ThemifyControl.extend({field:".themify_font_control",ready(){const t=this,e=$(t.field,t.container);t.value||(t.value={}),t.value[t.id]=e.val()?i(e.val()):{},t.collapse($(".disable-control",t.container)),t.fontFamily($(".themify_font_family",t.container)),t.input($(".font_size_num",t.container),"sizenum"),t.dropdown($(".font_size_unit",t.container),"sizeunit"),t.input($(".letter_spacing",t.container),"letterspacing"),t.dropdown($(".letter_spacing_unit",t.container),"letterspacingunit"),t.input($(".font_line_num",t.container),"linenum"),t.dropdown($(".font_line_unit",t.container),"lineunit"),t.dropdown($(".font_weight_select",t.container),"weight"),t.fontStyle($(".themify_font_style",t.container)),t.textTransform($(".themify_text_transform",t.container)),t.textAlign($(".themify_font_align",t.container))}}),c.controlConstructor.themify_font=c.ThemifyFont,c.controlConstructor.themify_text_decoration=c.ThemifyFont,c.ThemifyLogo=c.ThemifyControl.extend({field:".themify_logo_control",ready(){const t=this,e=$(t.field,t.container);t.value||(t.value={}),t.value[t.id]=e.val()?i(e.val()):{},t.inputOption($(".site-name",t.container),"blogname"),t.input($(".site-link",t.container),"link"),t.openMedia(),t.input($(".img-width",t.container),"imgwidth"),t.input($(".img-height",t.container),"imgheight"),t.collapse($(".disable-control",t.container)),t.fontFamily($(".themify_font_family",t.container)),t.input($(".font_size_num",t.container),"sizenum"),t.dropdown($(".font_size_unit",t.container),"sizeunit"),t.input($(".font_line_num",t.container),"linenum"),t.dropdown($(".font_line_unit",t.container),"lineunit"),t.input($(".letter_spacing",t.container),"letterspacing"),t.dropdown($(".letter_spacing_unit",t.container),"letterspacingunit"),t.dropdown($(".font_weight_select",t.container),"weight"),t.fontStyle($(".themify_font_style",t.container)),t.textTransform($(".themify_text_transform",t.container)),t.textAlign($(".themify_font_align",t.container)),t.pickColor(),t.radioChange($(".logo-modes",t.container),"mode")}}),c.controlConstructor.themify_logo=c.ThemifyLogo,c.ThemifyTagline=c.ThemifyControl.extend({field:".themify_tagline_control",ready(){const t=this,e=$(t.field,t.container);t.value||(t.value={}),t.value[t.id]=e.val()?i(e.val()):{},t.changeMode(".tagline"),t.inputOption($(".site-description",t.container),"blogdescription"),t.openMedia(),t.input($(".img-width",t.container),"imgwidth"),t.input($(".img-height",t.container),"imgheight"),t.collapse($(".disable-control",t.container)),t.fontFamily($(".themify_font_family",t.container)),t.input($(".font_size_num",t.container),"sizenum"),t.dropdown($(".font_size_unit",t.container),"sizeunit"),t.input($(".letter_spacing",t.container),"letterspacing"),t.dropdown($(".letter_spacing_unit",t.container),"letterspacingunit"),t.input($(".font_line_num",t.container),"linenum"),t.dropdown($(".font_line_unit",t.container),"lineunit"),t.dropdown($(".font_weight_select",t.container),"weight"),t.fontStyle($(".themify_font_style",t.container)),t.textTransform($(".themify_text_transform",t.container)),t.textAlign($(".themify_font_align",t.container)),t.pickColor(),t.input($(".site-description-link",t.container),"link")}}),c.controlConstructor.themify_tagline=c.ThemifyTagline,c.ThemifyBackground=c.ThemifyControl.extend({field:".themify_background_control",noImage(t){const e=this,i=$(e.field,e.container),o=$(".open-media-wrap, .image-label, .background-style, .background-position",e.container);t.on("click",(function(){e.value[e.id]||(e.value[e.id]={}),$(this).prop("checked")?(e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].noimage="noimage"):e.value[e.id].noimage="noimage",o.stop().slideUp()):(e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].noimage=""):e.value[e.id].noimage="",o.stop().slideDown()),i.val(JSON.stringify(e.value[e.id])).trigger("change")})),t.prop("checked")&&o.hide()},fixedBg(t){const e=this,i=$(e.field,e.container);t.on("click",(function(){e.value[e.id]||(e.value[e.id]={}),$(this).prop("checked")?e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].fixedbg="fixed"):e.value[e.id].fixedbg="fixed":e.isResponsiveStyling()?(_.isUndefined(e.value[e.id][e.getCurrentDevice()])&&(e.value[e.id][e.getCurrentDevice()]={}),e.value[e.id][e.getCurrentDevice()].fixedbg=""):e.value[e.id].fixedbg="",i.val(JSON.stringify(e.value[e.id])).trigger("change")}))},ready(){const t=this,e=$(t.field,t.container);t.value[t.id]=e.val()?i(e.val()):{},t.noImage($(".disable-control",t.container)),t.fixedBg($('.fixed-bg input[type="checkbox"]',t.container)),t.openMedia(),t.dropdown($(".image-style",t.container),"style"),t.dropdown($(".position-style",t.container),"position"),t.pickColor(),t.transparent($(".color-transparent",t.container))}}),c.controlConstructor.themify_background=c.ThemifyBackground,c.ThemifyColor=c.ThemifyControl.extend({field:".themify_color_control",ready(){const t=this,e=$(t.field,t.container);t.value[t.id]=e.val()?i(e.val()):{},t.pickColor(),t.transparent($(".color-transparent",t.container))}}),c.controlConstructor.themify_color=c.ThemifyColor,c.ThemifyImage=c.ThemifyBackground.extend({field:".themify_image_control",ready(){const t=this,e=$(t.field,t.container);t.value[t.id]=e.val()?i(e.val()):{},t.input($(".img-width",t.container),"imgwidth"),t.input($(".img-height",t.container),"imgheight"),t.openMedia()}}),c.controlConstructor.themify_image=c.ThemifyImage,c.ThemifyBorder=c.ThemifyControl.extend({field:".themify_border_control",ready(){const t=this,e=$(t.field,t.container);if(e.val())t.value[t.id]=i(e.val());else{const e={color:"",opacity:"",style:"",width:""};t.value[t.id]={},t.value[t.id].top=e,t.value[t.id].left=e,t.value[t.id].bottom=e,t.value[t.id].right=e}t.collapse($(".disable-control",t.container)),t.pickBorderColor(),t.dropdownBorderSame($(".border-style",t.container)),t.dimensionSame($(".dimension-width",t.container)),t.hideComponentsSame($(".same",t.container))}}),c.controlConstructor.themify_border=c.ThemifyBorder,c.ThemifyMargin=c.ThemifyControl.extend({field:".themify_margin_control",ready(){const t=this,e=$(t.field,t.container);if(e.val())t.value[t.id]=i(e.val());else{const e={width:"",unit:"px"};t.value[t.id]={},t.value[t.id].top=e,t.value[t.id].left=e,t.value[t.id].bottom=e,t.value[t.id].right=e}t.collapse($(".disable-control",t.container)),t.dimensionSame($(".dimension-width",t.container)),t.dropdownSame($(".dimension-unit",t.container),"unit"),t.autoSame($(".auto-prop",t.container)),t.hideComponentsSame($(".same",t.container))}}),c.controlConstructor.themify_margin=c.ThemifyMargin,c.ThemifyPadding=c.ThemifyMargin.extend({field:".themify_padding_control"}),c.controlConstructor.themify_padding=c.ThemifyPadding,c.ThemifyWidth=c.ThemifyControl.extend({field:".themify_width_control",ready(){const t=this,e=$(t.field,t.container);t.value[t.id]=e.val()?i(e.val()):{width:"",unit:"px",auto:""},t.dimension($(".dimension-width",t.container)),t.dropdown($(".dimension-unit",t.container),"unit"),t.auto($(".auto-prop",t.container))}}),c.controlConstructor.themify_width=c.ThemifyWidth,c.ThemifyHeight=c.ThemifyWidth.extend({field:".themify_height_control"}),c.controlConstructor.themify_height=c.ThemifyHeight,c.ThemifyPosition=c.ThemifyControl.extend({field:".themify_position_control",dropdownPosition(t,e){const i=this,o=$(i.field,i.container),n=t.find("option:selected").val();t.on("change",(function(){const t=$(this),n=$("option:selected",t).val();i.value[i.id]||(i.value[i.id]={}),i.value[i.id][e]=n,o.val(JSON.stringify(i.value[i.id])).trigger("change"),n&&"static"!==n?t.closest(".themify-customizer-brick").parent().find(".position-wrap").show():t.closest(".themify-customizer-brick").parent().find(".position-wrap").hide()})),n&&"static"!==n?t.closest(".themify-customizer-brick").parent().find(".position-wrap").show():t.closest(".themify-customizer-brick").parent().find(".position-wrap").hide()},ready(){const t=this,e=$(t.field,t.container);t.value[t.id]=e.val()?i(e.val()):{position:""},t.dropdownPosition($(".position",t.container),"position"),t.dimensionSame($(".dimension-width",t.container)),t.dropdownSame($(".dimension-unit",t.container),"unit"),t.autoSame($(".auto-prop",t.container))}}),c.controlConstructor.themify_position=c.ThemifyPosition,c.ThemifyCustomCSS=c.ThemifyControl.extend({field:".themify_customcss_control",expand(t){$(".themify-expand",t.container).on("click",(e=>{e.preventDefault(),t.editor.codemirror.setOption("fullScreen",!0),$(".close-custom-css-expanded").addClass("enable-expanded-area"),$(".close-custom-css-expanded").on("click",(()=>{t.editor.codemirror.setOption("fullScreen",!1),$(".close-custom-css-expanded").removeClass("enable-expanded-area")}))}))},ready(){const t=this,e=$(t.field,t.container),i=$(".customcss",t.container);t.value[t.id]=e.data("value")?function(t){return(new TextDecoder).decode(Uint8Array.from(atob(t),(t=>t.charCodeAt(0))))}(e.data("value")):"",e.data("value",""),e.val(t.value[t.id]),t.initSyntaxHighlightingEditor(),t.expand(t,i)},initSyntaxHighlightingEditor(t){if(void 0===wp.codeEditor)return;let e,i,o=this;e=t?t.find("textarea"):o.container.find("textarea"),i=wp.codeEditor.defaultSettings?_.clone(wp.codeEditor.defaultSettings):{},i.codemirror=_.extend({},i.codemirror,{indentUnit:2,tabSize:2,mode:"css"}),o.editor=wp.codeEditor.initialize(e,i),$(o.editor.codemirror.display.lineDiv).attr({role:"textbox","aria-multiline":"true","aria-label":o.params.label,"aria-describedby":"editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4"}),o.editor.codemirror.on("change",(t=>{o.container.find("textarea").val(t.getValue()).trigger("change")})),o.editor.codemirror.on("keydown",(function(t,e){27==e.keyCode&&e.stopPropagation()})),c("customcss",(t=>{t.validate=e=>{const i=wp.CodeMirror.lint.css(e,{errors:1}),o="invalid_css";return i&&i.length>0?t.notifications.add(o,new wp.customize.Notification(o,{message:themifyCustomizerControls.invalid_css,type:"warning"})):t.notifications.remove(o),e}}))}}),c.controlConstructor.themify_customcss=c.ThemifyCustomCSS,c.ThemifyImageSelect=c.ThemifyControl.extend({field:".themify_image_select_control",ready(){var t=this,e=$(t.field,t.container);t.value[t.id]=e.val()?i(e.val()):{type:"",selected:""},$(".image-select",t.container).on("click",(function(i){i.preventDefault(),t.value[t.id].selected=$(this).data("option"),e.val(JSON.stringify(t.value[t.id])).trigger("change")}))}}),c.controlConstructor.themify_image_select=c.ThemifyImageSelect,c.ThemifyTools=c.ThemifyControl.extend({field:".themify_tools_control",clearing:!1,saveOptionCallback(){$("#customize-header-actions").find(".save").trigger("click")},ready(){var t=this;c.bind("saved",(()=>{if(c.ThemifyTools.field){if("true"===t.getParameterByName("cleared"))window.location.reload();else{var e=window.top.location.href;e="#"==e[e.length-1]?e.replace("#",""):e,window.top.location=e}c.ThemifyTools.field=!1}})),$(".clearall",t.container).on("click",(function(){if(window.confirm(themifyCustomizerControls.clearMessage)){c.ThemifyTools.field=!0,$(".themify-customizer-value-field").each((function(){$(this).val("").trigger("change")})),c.previewer.send("themify-customize-clearall");var e=$(".customize-control-themify_logo").find(".site-name").val(),i=$(".customize-control-themify_tagline").find(".site-name").val(),o=$(this).data("sitename"),n=$(this).data("tagline");e!=o||i!=n?(t.saveOption("blogname",o),t.saveOption("blogdescription",n)):t.saveOptionCallback()}})),$(".customize-export",t.container).on("click",(t=>{"Published"!=$("#customize-header-actions").find(".save").val()&&(window.confirm(themifyCustomizerControls.exportMessage)||t.preventDefault())}))}}),c.controlConstructor.themify_tools=c.ThemifyTools,function(){var t,e;$("body").on("click","#customize-footer-actions .devices button",(function(){var i=$(this).data("device"),o=$("#customize-preview");"object"==typeof themifyCustomizerControls.responsiveBreakpoints&&(t=themifyCustomizerControls.responsiveBreakpoints[i])?("tablet_landscape"===i&&(t=976),e={width:t+"px",marginLeft:-t/2}):e={width:"",marginLeft:""},o.css(e)}))}(),$("body").on("click","#customize-control-start_mobile_menu_acc_ctrl > .themify-suba-toggle",(function(t){var e=$("#customize-preview > iframe")[0].contentWindow;$(this).closest(".customize-control").hasClass("topen")?($("#customize-footer-actions .preview-desktop").click(),setTimeout((()=>{$("#customize-preview").width()>themifyCustomizerControls.mobile_menu_trigger_point&&$("#customize-preview").css({width:themifyCustomizerControls.mobile_menu_trigger_point+"px",marginLeft:($("#customize-preview").width()-themifyCustomizerControls.mobile_menu_trigger_point)/2}),setTimeout((()=>{e.jQuery("body").hasClass("mobile-menu-visible")||e.jQuery("#menu-icon span").click()}),1e3)}),1e3)):$("#customize-footer-actions .preview-desktop").click()})).on("click","#customize-footer-actions button",(function(){$(this).hasClass("preview-desktop")||$("#customize-control-start_mobile_menu_acc_ctrl.topen .themify-suba-toggle").click()}))})(wp,jQuery,document);
[+]
..
[-] jquery-scombobox.min.js
[edit]
[-] themify-customize-control.js.gz
[edit]
[-] themify-customize-control.js
[edit]
[-] jquery-scombobox.min.js.gz
[edit]
[-] themify-customize-preview.js
[edit]
[-] themify-customize-preview.js.gz
[edit]