芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/timucuy.com/wp-content/themes/hestia/assets/js/admin/customizer-controls.min.js
function acp_get_alpha_value_from_color(e){var t;return t=(e=e.replace(/ /g,"")).match(/rgba\(\d+\,\d+\,\d+\,([^\)]+)\)/)?(t=100*parseFloat(e.match(/rgba\(\d+\,\d+\,\d+\,([^\)]+)\)/)[1]).toFixed(2),parseInt(t)):100}function acp_update_alpha_value_on_color_control(e,t,r,i){var o,n,a;o=t.data("a8cIris"),n=t.data("wpWpColorPicker"),o._color._alpha=e,a=o._color.toString(),t.val(a),n.toggler.css({"background-color":a}),i&&acp_update_alpha_value_on_alpha_slider(e,r),t.wpColorPicker("color",a)}function acp_update_alpha_value_on_alpha_slider(e,t){t.slider("value",e),t.find(".ui-slider-handle").text(e.toString())}function media_upload(e){"use strict";jQuery("body").on("click",e,function(){var r="#"+jQuery(this).attr("id"),i=jQuery(this).parent().children("input:text"),o=!0;return wp.media.editor.send.attachment=function(e,t){if(!o)return wp.media.editor.send.attachment(r,[e,t]);if(void 0!==i)switch(e.size){case"full":i.val(t.sizes.full.url),i.trigger("change");break;case"medium":i.val(t.sizes.medium.url),i.trigger("change");break;case"thumbnail":i.val(t.sizes.thumbnail.url),i.trigger("change");break;default:i.val(t.url),i.trigger("change")}o=!1},wp.media.editor.open(e),!1})}function customizer_repeater_uniqid(e,t){"use strict";var r,i;void 0===e&&(e="");var o=function(e,t){return t<(e=parseInt(e,10).toString(16)).length?e.slice(e.length-t):t>e.length?new Array(t-e.length+1).join("0")+e:e};return i||(i={}),i.uniqidSeed||(i.uniqidSeed=Math.floor(123456789*Math.random())),i.uniqidSeed++,r=e,r+=o(parseInt((new Date).getTime()/1e3,10),8),r+=o(i.uniqidSeed,5),t&&(r+=(10*Math.random()).toFixed(8).toString()),r}function customizer_repeater_refresh_social_icons(e){"use strict";var i=[];e.find(".customizer-repeater-social-repeater-container").each(function(){var e=jQuery(this).find(".icp").val(),t=jQuery(this).find(".customizer-repeater-social-repeater-link").val(),r=jQuery(this).find(".customizer-repeater-social-repeater-id").val();r||(r="customizer-repeater-social-repeater-"+customizer_repeater_uniqid(),jQuery(this).find(".customizer-repeater-social-repeater-id").val(r)),""!==e&&""!==t&&i.push({icon:e,link:t,id:r})}),e.find(".social-repeater-socials-repeater-colector").val(JSON.stringify(i)),customizer_repeater_refresh_general_control_values()}function customizer_repeater_refresh_general_control_values(){"use strict";jQuery(".customizer-repeater-general-control-repeater").each(function(){var f=[],e=jQuery(this);e.find(".customizer-repeater-general-control-repeater-container").each(function(){var e=jQuery(this).find(".icp").val(),t=jQuery(this).find(".customizer-repeater-text-control").val(),r=jQuery(this).find(".customizer-repeater-link-control").val(),i=jQuery(this).find(".customizer-repeater-text2-control").val(),o=jQuery(this).find(".customizer-repeater-link2-control").val(),n=jQuery(this).find("input.customizer-repeater-color-control").val(),a=jQuery(this).find("input.customizer-repeater-color2-control").val(),c=jQuery(this).find(".custom-media-url").val(),s=jQuery(this).find(".customizer-repeater-image-choice").val(),l=jQuery(this).find(".customizer-repeater-title-control").val(),u=jQuery(this).find(".customizer-repeater-subtitle-control").val(),p=jQuery(this).find(".social-repeater-box-id").val();p||(p="social-repeater-"+customizer_repeater_uniqid(),jQuery(this).find(".social-repeater-box-id").val(p));var d=jQuery(this).find(".social-repeater-socials-repeater-colector").val(),h=jQuery(this).find(".customizer-repeater-shortcode-control").val();""===t&&""===c&&""===l&&""===u&&""===e&&""===r&&""===s&&""===d&&""===h&&""===n||f.push({icon_value:"customizer_repeater_none"===s?"":e,color:n,color2:a,text:escapeHtml(t),link:r,text2:escapeHtml(i),link2:o,image_url:"customizer_repeater_none"===s?"":c,choice:s,title:escapeHtml(l),subtitle:escapeHtml(u),social_repeater:escapeHtml(d),id:p,shortcode:escapeHtml(h)})}),e.find(".customizer-repeater-colector").val(JSON.stringify(f)),e.find(".customizer-repeater-colector").trigger("change")})}jQuery(document).ready(function(){"use strict";jQuery.aboutBackground={init:function(){this.updateBackgroundControl(),this.updateBackgroundControlBuffer(),this.focusMenu(),this.updateEditorLink()},updateBackgroundControl:function(){wp.customize("page_on_front",function(e){e.bind(function(e){jQuery.ajax({type:"POST",data:{action:"update_image_buffer",pid:e,nonce:imageObject.imagenonce},url:imageObject.ajaxurl,success:function(e){var t,r=e.data;t=""!==r&&"undefined"!==r?'
About background
Remove
Change Image
':'
About background
\n
No image selected
Default
Select image
',wp.customize.control("hestia_feature_thumbnail").container[0].innerHTML=t,wp.customize.instance("hestia_feature_thumbnail").previewer.refresh()}})})})},updateBackgroundControlBuffer:function(){wp.customize("hestia_feature_thumbnail",function(e){e.bind(function(e){jQuery.ajax({type:"POST",url:imageObject.ajaxurl,data:{action:"update_image_buffer",value:e,nonce:imageObject.imagenonce}})})})},focusMenu:function(){wp.customize.previewer.bind("trigger-focus-menu",function(){wp.customize.section("menu_locations").focus()})},updateEditorLink:function(){wp.customize("page_on_front",function(e){e.bind(function(e){if(void 0!==wp.customize.control("hestia_shortcut_editor")){var t=wp.customize.control("hestia_shortcut_editor").container[0].innerHTML.replace(/(post=).*?(&)/,"$1"+e+"$2");wp.customize.control("hestia_shortcut_editor").container[0].innerHTML=t}})})}},jQuery.aboutBackground.init(),wp.customize("hestia_team_content",function(e){e.bind(function(){var r,i="";jQuery.isFunction(wp.customize._value.hestia_authors_on_blog)&&(r=wp.customize._value.hestia_authors_on_blog()),jQuery("#customize-control-hestia_team_content .customizer-repeater-general-control-repeater-container").each(function(){var e=jQuery(this).find(".customizer-repeater-title-control").val(),t=jQuery(this).find(".social-repeater-box-id").val();void 0!==e&&""!==e&&void 0!==t&&""!==t&&(i+='
"+e+"
")}),jQuery("#customize-control-hestia_authors_on_blog .repeater-multiselect-team").html(i)})}),void 0!==wp.customize.control("hestia_placeholder_sidebar_1")&&wp.customize.control("hestia_placeholder_sidebar_1").section("sidebar-widgets-sidebar-1"),void 0!==wp.customize.control("hestia_placeholder_sidebar_woocommerce")&&wp.customize.control("hestia_placeholder_sidebar_woocommerce").section("sidebar-widgets-sidebar-woocommerce"),jQuery(document).on("click",".quick-links a",function(e){e.preventDefault(),e.stopPropagation();var t=jQuery(this).data("control-focus");t&&(wp.customize.control(t).focus(),jQuery("label."+t).click());var r=jQuery(this).data("section-focus");r&&wp.customize.section(r).focus()}),jQuery(".focus-customizer-header-image").on("click",function(e){e.preventDefault(),wp.customize.section("header_image").focus()});var r=wp.customize;void 0!==r&&r.hasOwnProperty("previewer")&&(r.previewer.bind("hestia-customize-disable-section",function(e){jQuery("[data-customize-setting-link="+e+"]").trigger("click")}),r.previewer.bind("hestia-customize-focus-control",function(e){wp.customize.control(e).focus()})),r.control("header_video",function(t){t.deferred.embedded.done(function(){var e=function(){r.section(t.section()).notifications.remove("video_header_not_available")};e(),t.active.bind(e)})})}),Color.prototype.toString=function(e){if("no-alpha"==e)return this.toCSS("rgba","1").replace(/\s+/g,"");if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var t=parseInt(this._color,10).toString(16);if(this.error)return"";if(t.length<6)for(var r=6-t.length-1;0<=r;r--)t="0"+t;return"#"+t},jQuery(document).ready(function(l){l(".alpha-color-control").each(function(){var n,i,e,t,a,r,c,s,o;n=l(this),i=n.val().replace(/\s+/g,""),e=n.attr("data-palette"),t=n.attr("data-show-opacity"),a=n.attr("data-default-color"),r={change:function(e,t){var r,i,o;r=n.attr("data-customize-setting-link"),i=n.wpColorPicker("color"),a==i&&(o=acp_get_alpha_value_from_color(i),s.find(".ui-slider-handle").text(o)),wp.customize(r,function(e){e.set(i)}),c.find(".transparency").css("background-color",t.color.toString("no-alpha"))},palettes:-1!==e.indexOf("|")?e.split("|"):"false"!=e},n.wpColorPicker(r),c=n.parents(".wp-picker-container:first"),l('
').appendTo(c.find(".wp-picker-holder")),s=c.find(".alpha-slider"),o={create:function(e,t){var r=l(this).slider("value");l(this).find(".ui-slider-handle").text(r),l(this).siblings(".transparency ").css("background-color",i)},value:acp_get_alpha_value_from_color(i),range:"max",step:1,min:0,max:100,animate:300},s.slider(o),"true"==t&&s.find(".ui-slider-handle").addClass("show-opacity"),c.find(".min-click-zone").on("click",function(){acp_update_alpha_value_on_color_control(0,n,s,!0)}),c.find(".max-click-zone").on("click",function(){acp_update_alpha_value_on_color_control(100,n,s,!0)}),c.find(".iris-palette").on("click",function(){var e,t;acp_update_alpha_value_on_alpha_slider(t=acp_get_alpha_value_from_color(e=l(this).css("background-color")),s),100!=t&&(e=e.replace(/[^,]+(?=\))/,(t/100).toFixed(2))),n.wpColorPicker("color",e)}),c.find(".button.wp-picker-clear").on("click",function(){var e=n.attr("data-customize-setting-link");n.wpColorPicker("color","#ffffff"),wp.customize(e,function(e){e.set("")}),acp_update_alpha_value_on_alpha_slider(100,s)}),c.find(".button.wp-picker-default").on("click",function(){acp_update_alpha_value_on_alpha_slider(acp_get_alpha_value_from_color(a),s)}),n.on("input",function(){acp_update_alpha_value_on_alpha_slider(acp_get_alpha_value_from_color(l(this).val()),s)}),s.slider().on("slide",function(e,t){acp_update_alpha_value_on_color_control(parseFloat(t.value)/100,n,s,!1),l(this).find(".ui-slider-handle").text(t.value)})})}),function(i){"use strict";wp.hestiaSelect={init:function(){var e=this;i(".hestia-fs-main-input, .hestia-fs-input-addon").on("click",function(e){return i(this).parent().toggleClass("active"),i(".hestia-ss-wrap.active .hestia-fs-search input").focus(),e.stopPropagation(),!1}),i(".hestia-fs-option").on("click",function(){var e=i(this).data("option"),t=i(".hestia-ss-wrap.active input.hestia-fs-main-input"),r=i(".hestia-ss-wrap.active .hestia-ss-collector");return i(".hestia-ss-wrap.active").removeClass("active"),t.val(e),"Default"===e&&(e=""),r.val(e),r.trigger("change"),!1}),i(".hestia-fs-search input").on("keyup",function(){return e.search(i(this)),!1}),i(document).mouseup(function(e){var t=i(".hestia-ss-wrap.active .hestia-fs-dropdown");t.is(e.target)||0!==t.has(e.target).length||i(".hestia-ss-wrap.active").removeClass("active")})},search:function(e){var t=jQuery(".hestia-ss-wrap.active .hestia-fs-options-wrapper"),r=e.val().toLowerCase();0
i").on("click",function(){var e=o(this).attr("class").toString(),t=o(this).parents(".iconpicker-popover").prev().find(".icp");t.val(e),t.attr("value",e);var r=t.next(".input-group-addon"),i='
';return r.empty(),r.append(i),t.trigger("change"),!1})},search:function(e){var t=e.parent().next().find(".iconpicker-items"),r=e.val().toLowerCase();0
'),r.find("input.customizer-repeater-color-control").wpColorPicker(i),r.find("div.customizer-repeater-color2-control .wp-picker-container").replaceWith('
'),r.find("input.customizer-repeater-color2-control").wpColorPicker(i),r.find(".customizer-repeater-subtitle-control").val(""),r.find(".customizer-repeater-shortcode-control").val(""),e.find(".customizer-repeater-general-control-repeater-container:first").parent().append(r),customizer_repeater_refresh_general_control_values())}return!1}),e.on("click",".social-repeater-general-control-remove-field",function(){return void 0!==jQuery(this).parent()&&jQuery(this).parent().hide(500,function(){jQuery(this).parent().remove(),customizer_repeater_refresh_general_control_values()}),!1}),e.on("keyup",".customizer-repeater-title-control",function(){customizer_repeater_refresh_general_control_values()}),jQuery("input.customizer-repeater-color-control").wpColorPicker(i),jQuery("input.customizer-repeater-color2-control").wpColorPicker(i),e.on("keyup",".customizer-repeater-subtitle-control",function(){customizer_repeater_refresh_general_control_values()}),e.on("keyup",".customizer-repeater-shortcode-control",function(){customizer_repeater_refresh_general_control_values()}),e.on("keyup",".customizer-repeater-text-control",function(){customizer_repeater_refresh_general_control_values()}),e.on("keyup",".customizer-repeater-link-control",function(){customizer_repeater_refresh_general_control_values()}),e.on("keyup",".customizer-repeater-text2-control",function(){customizer_repeater_refresh_general_control_values()}),e.on("keyup",".customizer-repeater-link2-control",function(){customizer_repeater_refresh_general_control_values()}),jQuery(".customizer-repeater-general-control-droppable").sortable({axis:"y",update:function(){customizer_repeater_refresh_general_control_values()}}),e.on("click",".social-repeater-add-social-item",function(e){e.preventDefault();var t=jQuery(this).parent(),r="customizer-repeater-social-repeater-"+customizer_repeater_uniqid();if(void 0!==t){var i=t.find(".customizer-repeater-social-repeater-container:first").clone(!0,!0);void 0!==i&&(i.find(".icp").val(""),i.find(".input-group-addon").find(".fa").attr("class","fa"),i.find(".social-repeater-remove-social-item").show(),i.find(".customizer-repeater-social-repeater-link").val(""),i.find(".customizer-repeater-social-repeater-id").val(r),t.find(".customizer-repeater-social-repeater-container:first").parent().append(i))}return!1}),e.on("click",".social-repeater-remove-social-item",function(e){e.preventDefault();var t=jQuery(this).parent(),r=jQuery(this).parent().parent();return t.remove(),customizer_repeater_refresh_social_icons(r),!1}),e.on("keyup",".customizer-repeater-social-repeater-link",function(e){return e.preventDefault(),customizer_repeater_refresh_social_icons(jQuery(this).parent().parent()),!1}),e.on("change",".customizer-repeater-social-repeater-container .icp",function(e){return e.preventDefault(),customizer_repeater_refresh_social_icons(jQuery(this).parent().parent().parent()),!1})});var entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function escapeHtml(e){"use strict";return e=String(e).replace(new RegExp("\r?\n","g"),"
"),e=String(e).replace(/\\/g,"\"),String(e).replace(/[&<>"'\/]/g,function(e){return entityMap[e]})}jQuery(window).on("load",function(){"use strict";var o,n={subscribe:"#accordion-section-sidebar-widgets-subscribe-widgets",big_title:"#accordion-section-sidebar-widgets-sidebar-big-title"};Object.keys(n).forEach(function(e){var t=jQuery(n[e]),r=wp.customize.control("hestia_"+e+"_hide");void 0!==r&&(o=r.setting.get());var i="dashicons-visibility";!0===o?(i="dashicons-hidden",t.find(".accordion-section-title").addClass("hestia-section-hidden").removeClass("hestia-section-visible")):t.find(".accordion-section-title").addClass("hestia-section-visible").removeClass("hestia-section-hidden"),t.find(".screen-reader-text").after('
')});var e=jQuery(".hestia-toggle-section");e.each(function(){var e,t=jQuery(this).data("control");void 0!==wp.customize.control(t)&&(e=wp.customize.control(t).setting.get());var r=jQuery(this).parent();if(void 0!==t&&""!==t){var i="dashicons-visibility";!0===e?(i="dashicons-hidden",r.addClass("hestia-section-hidden").removeClass("hestia-section-visible")):r.addClass("hestia-section-visible").removeClass("hestia-section-hidden"),jQuery(this).children().attr("class","dashicons "+i)}}),e.on("click",function(e){e.stopPropagation();var t=jQuery(this).data("control"),r=jQuery(this).parent(),i=wp.customize.control(t).setting.get();if(void 0!==t&&""!==t){var o="dashicons-visibility";!1===i?(o="dashicons-hidden",r.addClass("hestia-section-hidden").removeClass("hestia-section-visible")):r.addClass("hestia-section-visible").removeClass("hestia-section-hidden"),wp.customize.control(t).setting.set(!i),jQuery(this).children().attr("class","dashicons "+o)}}),jQuery("ul").find("[data-customize-setting-link]").on("click",function(){var e=jQuery(this).data("customize-setting-link");if(!(["hestia_big_title_hide","hestia_features_hide","hestia_about_hide","hestia_shop_hide","hestia_portfolio_hide","hestia_team_hide","hestia_pricing_hide","hestia_ribbon_hide","hestia_testimonials_hide","hestia_subscribe_hide","hestia_clients_bar_hide","hestia_blog_hide","hestia_contact_hide"].indexOf(e)<=-1)){var t=jQuery(this).parent().parent().parent().attr("id");t=t.replace("sub-","");var r=jQuery("#"+t).find(".accordion-section-title");if(void 0!==t&&""!==t&&wp.customize.control(e)&&wp.customize.control(e).setting){var i="dashicons-visibility";!1===wp.customize.control(e).setting.get()?(i="dashicons-hidden",r.addClass("hestia-section-hidden").removeClass("hestia-section-visible")):(r.addClass("hestia-section-visible"),r.removeClass("hestia-section-hidden")),r.find(".hestia-toggle-section").children().attr("class","dashicons "+i)}}})}),function(e,w){var t=w.Control.extend({ready:function(){var b=this;b.container.find(".buttonset").buttonset(),w.bind("ready",function(){w(b.id,function(e){var t=function(e){var t,r,i,o,n,a,c,s,l,u,p=b.params.subcontrols,d=b.section(),h=wp.customize.section(d).container,f=e,m=p[f];if(void 0!==b.params.parent){var v=b.params.parent,_=wp.customize.control(v);if(void 0!==_){var g=_.setting._value,z=_.params.subcontrols[g];void 0!==z&&0===z.length&&(m=[])}}var y=Object.values(p);for(t in y=[].concat.apply([],y))if("widgets"===(o=y[t]))jQuery(h).children('li[class*="widget"]').css("display","none");else{if(void 0!==(a=wp.customize.control(o)).params.subcontrols)for(r in a.params.subcontrols)for(i in a.params.subcontrols[r])n=w.control(a.params.subcontrols[r][i]).selector,jQuery(n).hide();void 0!==a&&(n=a.selector,jQuery(n).hide())}for(t in m)if("widgets"===(o=m[t]))jQuery(h).children('li[class*="widget"]').css("display","list-item");else if(void 0!==(a=wp.customize.control(o))&&(n=a.selector,jQuery(n).show(),f=a.setting._value,void 0!==wp.customize.control(o).params.subcontrols))for(r in l=wp.customize.control(o).params.subcontrols[f])u=l[r],void 0!==(c=wp.customize.control(u))&&(s=c.selector,jQuery(s).show())};t(e.get()),e.bind(t)})})}});w.controlConstructor["radio-image"]=t,w.controlConstructor["select-hiding"]=t}(jQuery,wp.customize);var hestia_customize_scroller=function(r){"use strict";r(function(){var t=wp.customize;r('ul[id*="hestia_frontpage_sections"] .accordion-section').not(".panel-meta").each(function(){r(this).on("click",function(){var e=r(this).attr("aria-owns").split("_").pop();t.previewer.send("clicked-customizer-section",e)})})})};hestia_customize_scroller(jQuery),wp.customize.controlConstructor["interface-tabs"]=wp.customize.Control.extend({ready:function(){wp.customize.previewer.bind("tab-previewer-edit",function(e){jQuery(e.selector).trigger("click")}),wp.customize.previewer.bind("focus-control",function(e){setTimeout(function(){void 0!==wp.customize.control(e)&&wp.customize.control(e).focus()},100)}),wp.customize.previewer.bind("focus-section",function(e){setTimeout(function(){wp.customize.section(e).focus()},100)}),wp.customize.previewer.bind("ready",function(){for(var e=window.location.search.substr(1).split("&"),t={},r=0;r
label."+t["autofocus[control]"]).trigger("click")})}),this.init(),this.handleClick()},init:function(){var n=this,a=n.section();setTimeout(function(){jQuery('li[id^="customize-control-sidebars_widgets"]').each(function(){jQuery(this).on("DOMNodeInserted",function(){jQuery(".hestia-customizer-tab.active > label").trigger("click")})})},100),wp.customize.bind("ready",function(){n.hideAllControls(a);var e=Object.keys(n.params.controls)[0],t=n.params.controls[e],r=[];for(var i in t)if(t.hasOwnProperty(i)){if(!1===jQuery.isEmptyObject(t[i])&&void 0!==wp.customize.control(i)){var o=wp.customize.control(i).setting._value;r=r.concat(t[i][o])}r.push(i)}n.showControls(r,a)})},hideAllControls:function(e){var t=wp.customize.section(e).controls(),r=this.id;for(var i in t){var o=t[i].id;if("widgets"===o){var n=wp.customize.section(e).container;jQuery(n).children('li[class*="widget"]').css("display","none")}else if(o!==r){var a=wp.customize.control(o).selector;jQuery(a).hide()}}},handleClick:function(){var n=this,a=n.section(),e=n.container;jQuery(e).find(".hestia-customizer-tab").on("click",function(){jQuery(this).parent().find(".hestia-customizer-tab").removeClass("active"),jQuery(this).addClass("active"),n.hideAllControls(a);var e=jQuery(this).data("tab"),t=n.params.controls[e],r=[];for(var i in t){if(!1===jQuery.isEmptyObject(t[i])&&void 0!==wp.customize.control(i)){var o=wp.customize.control(i).setting._value;r=r.concat(t[i][o])}r.push(i)}n.showControls(r,a)})},showControls:function(e,t){for(var r in e){var i=e[r];if("widgets"===i){var o=wp.customize.section(t).container;jQuery(o).children('li[class*="widget"]').css("display","list-item")}else if(void 0!==wp.customize.control(i)){var n=wp.customize.control(i).selector;jQuery(n).show()}}}});