芝麻web文件管理V1.00
编辑当前文件:/home4/randall/public_html/sl/wp-content/plugins/js_composer-old/assets/js/dist/settings.min.js
(o=>{o.vc||(o.vc={}),o.vc.utils={fixUnclosedTags:function(o){return o.replace(/<([^>]+)$/g,"<")},fallbackCopyTextToClipboard:function(o){var e=document.createElement("textarea");e.value=o,e.style.top="0",e.style.left="0",e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch(o){console.error("Unable to copy",o)}document.body.removeChild(e)},copyTextToClipboard:function(o){navigator.clipboard?navigator.clipboard.writeText(o):this.fallbackCopyTextToClipboard(o)}}})(window); window.vc||(window.vc={}),(()=>{function l(e){return"\\"+n[e]}vc.templateOptions={default:{evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},custom:{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g}};var a=/(.)^/,n={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},i=/\\|'|\r|\n|\u2028|\u2029/g;vc.template=function(u,e){e=_.defaults({},e,vc.templateOptions.default);var n,t=RegExp([(e.escape||a).source,(e.interpolate||a).source,(e.evaluate||a).source].join("|")+"|$","g"),c=0,o="__p+='";u.replace(t,function(e,n,t,r,a){return o+=u.slice(c,a).replace(i,l),c=a+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":t?o+="'+\n((__t=("+t+"))==null?'':__t)+\n'":r&&(o+="';\n"+r+"\n__p+='"),e}),o+="';\n",o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+(o=e.variable?o:"with(obj||{}){\n"+o+"}\n")+"return __p;\n";try{n=new Function(e.variable||"obj","_",o)}catch(e){throw e.source=o,e}function r(e){return n.call(this,e,_)}t=e.variable||"obj";return r.source="function("+t+"){\n"+o+"}",r}})(); (d=>{d(function(){var a=d('[data-vc-roles="form"]');d('[data-vc-roles="part-state"]').on("click",function(){var e=d(this);e.data("vcCustomSelector",e.find(":selected").data("vcCustomSelector")||"")}).on("change",function(){var e,a,t=d(this),c=t.data("vcRolePart"),c=d('[data-vc-role-related-part="'+c+'"]');if("*"===c.data("vcRolePartState"))return!1;e=t.val(),a=t.data("vcCustomSelector")||"",c.data("vcRolePartState").toString()===e?(c.addClass("vc_visible"),a.length&&c.find(t.data("vcCustomSelector")).prop("checked",!0)):c.removeClass("vc_visible")}),a.on("submit",function(e){var t,c={};e&&e.preventDefault&&e.preventDefault(),(t=d("#submit_btn")).attr("disabled",!0),d("#vc_wp-spinner").show(),c.action=d("#vc_settings-roles-action").val(),c.vc_nonce_field=d("#vc_nonce_field").val(),c.vc_roles={},d("[data-vc-role]").each(function(){var e=d(this),a=e.data("vcRole"),t={};e.find("select").each(function(){var e=d(this),a=e.data("vcPart");void 0===t[a]&&(t[a]={}),t[a][e.data("vcName")]=e.val()}),e.find('[data-vc-role-related-part].vc_visible [data-vc-name][type="checkbox"]').each(function(){var e=d(this),a=e.data("vcPart");void 0===t[a]&&(t[a]={}),t[a][e.data("vcName")]=e.is(":checked")?e.val():"0"}),c.vc_roles[a]=JSON.stringify(t)}),d.ajax({url:a.attr("action"),type:"POST",dataType:"json",data:c,context:this}).done(function(e){var a;d("#vc_wp-spinner").hide(),e.message&&((a=d('
')).find("strong").text(e.message),a.insertBefore(t).fadeIn(100),window.setTimeout(function(){a.slideUp(100,function(){d(this).remove(),t.attr("disabled",!1)})},2e3))})})}),d("[data-vc-accordion]").on("show.vc.accordion",function(){d(this).addClass("vc_opened")}).on("hide.vc.accordion",function(){d(this).removeClass("vc_opened")}),d('[data-vc-ui-element="panel-tab-control"]').on("click",function(e){var a=d(this),t=a.parents("fieldset").first(),c=".vc_wp-form-table";e.preventDefault(),d('[data-vc-ui-element="panel-tabs-controls"] .vc_active',t).removeClass("vc_active"),a.parent().addClass("vc_active"),e=a.data("filter"),t.attr("data-vc-roles-filter-value",e),c+=" "+e,d(".vc_wp-form-table [data-vc-capability]",t).addClass("vc_hidden"),d(c,t).removeClass("vc_hidden")}),d('[data-vc-roles="table-checkbox"]').on("change",function(){var e=d(this);(e.is(":checked")?e.parents("tr:first").find('[data-vc-name!="'+e.attr("data-vc-name")+'"]:checked'):e.parents('[data-vc-roles="table"]').first().find('[data-vc-roles-select-all-checkbox="'+e.data("vcCap")+'"]')).prop("checked",!1)}),d("[data-vc-roles-select-all-checkbox]").on("change",function(){var e=d(this),a=e.is(":checked"),t=e.parents('[data-vc-roles="table"]').first(),c=t.find(e.data("vcRelatedControls")),o=e.data("vcRolesSelectAllCheckbox");t.find('[data-vc-cap="'+o+'"]:visible').prop("checked",a),c.prop("checked",a),a&&_.defer(function(){t.find("[data-vc-roles-select-all-checkbox!="+o+"]:not([data-vc-cap])").prop("checked",!1),t.find('[data-vc-cap!="'+o+'"]:not([data-vc-roles-select-all-checkbox]):visible').prop("checked",!1)})}),d('[data-vc-role-related-part].vc_visible [data-vc-roles="table"]').each(function(){var t=d(this);t.find("thead [data-vc-roles-select-all-checkbox]").each(function(){var e=d(this),a=e.data("vcRolesSelectAllCheckbox");t.find('[data-vc-cap="'+a+'"]:not(:checked)').length||(e.prop("checked",!0),t.find('tfoot [data-vc-roles-select-all-checkbox="'+a+'"]').prop("checked",!0))})})})(window.jQuery); _.isUndefined(window.vc)&&(window.vc={}),jQuery(document).ready(function(e){_.isUndefined(window.less)||(window.vc.less={},window.vc.less.options={relativeUrls:!1,rootpath:!1},window.less.options.env=vcData.debug?"development":"production",window.less.options.logLevel=vcData.debug?4:0,window.vc.less.generateLessFormData=function(s,e){var o={};return _.isEmpty(e)||_.each(e,function(e,i){var t,n;_.isString(e)?(t=_.first(_.where(s,{name:e})),_.isObject(t)&&0<(n=t.value).length&&(o[i]=n)):_.isObject(e)&&!_.isUndefined(e.key)&&(t=_.first(_.where(s,{name:e.key})),_.isObject(t)||_.isUndefined(e.default_key)?_.isObject(t)||_.isUndefined(e.default)||(t={value:e.default}):t=_.isUndefined(o[e.default_key])?_.first(_.where(s,{name:e.default_key})):{value:o[e.default_key]},_.isObject(t))&&(n=t.value,_.isUndefined(e.modify_output)||!_.isObject(e.modify_output)||_.isEmpty(e.modify_output)||_.each(e.modify_output,function(e){_.isUndefined(e.plain)||!_.isObject(e.plain)||_.isEmpty(e.plain)||_.each(e.plain,function(e){e=e.replace("{{ value }}",n);n=e})}),n)&&0
.nav-tab-active").removeClass("nav-tab-active"),a(this).addClass("nav-tab-active")}),a(".vc_settings-tab-content").on("submit",function(){return!0}),a(".vc_show_example").on("click",function(e){e.preventDefault();e=a(".vc_helper");if(e.is(":animated"))return!1;e.toggle(100)}),a("#vc_settings-updater-button").on("click",function(e){var t=a(this),n=t.data("vcAction"),o=t.parent();return o.addClass("loading"),t.attr("disabled",!0),a.getJSON(window.ajaxurl,{action:"vc_get_"+n+"_url",_vcnonce:window.vcAdminNonce},function(e){e&&e.status?window.location=e.url:(alert("Failed to get response from server. Please try again"),o.removeClass("loading"),t.removeAttr("disabled"))}).fail(function(){alert("Failed to get response from server. Please refresh page and try again"),o.removeClass("loading"),t.removeAttr("disabled")}),e.preventDefault(),!1}),a("#vc_settings-vc-pointers-reset").on("click",function(e){e.preventDefault(),a.post(window.ajaxurl,{action:"vc_pointer_reset",_vcnonce:window.vcAdminNonce}),a(this).text(a(this).data("vcDoneTxt"))})}); (n=>{vc.showMessage=function(e,s,o,c){vc.message_timeout&&(n(".vc_message").remove(),window.clearTimeout(vc.message_timeout)),s=s||"success",o=o||1e4;var i=window.vc_mode&&"admin_page"===window.vc_mode?".metabox-composer-content":"body",c=c||i,t=n('
'+e+"
").prependTo(n(c));t.fadeIn(500),vc.message_timeout=window.setTimeout(function(){t.slideUp(500,function(){n(this).remove()}),vc.message_timeout=!1},o)},window.vc_user_access&&!window.vc_user_access().partAccess("unfiltered_html")&&vc.showMessage(window.i18nLocale.unfiltered_html_access,"type-error",15e3)})(window.jQuery); (i=>{_.isUndefined(window.vc)&&(window.vc={}),window.Vc_settingsModules=Backbone.View.extend({el:"#vc_settings-modules",events:{"change .module-toggle":"setModulesValues"},setModulesValues:function(){var e={};i(".module-toggle").each(function(){e[this.id]=!!this.checked}),i("#wpb_js_modules").val(JSON.stringify(e))}}),i(document).ready(function(){window.vc.settingModules=new window.Vc_settingsModules,i(".edit-form-info").initializeTooltips(".form-table")})})(window.jQuery); (s=>{s.fn.initializeTooltips=function(a){return this.each(function(){var t,e=this,o=s(this).next(".tooltip-content")[0];function n(){clearTimeout(t),e.setAttribute("data-show",""),r.update()}function i(){t=setTimeout(function(){e.removeAttribute("data-show")},500)}["mouseenter","focus"].forEach(function(t){e.addEventListener(t,n),o.addEventListener(t,n)}),["mouseleave","blur"].forEach(function(t){e.addEventListener(t,i),o.addEventListener(t,i)}),a=a||".vc_shortcode-param";var r=Popper.createPopper(e,o,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[10,5]}},{name:"preventOverflow",options:{boundary:e.closest(a),altAxis:!0,tether:!1,rootBoundary:"document"}}]})}),this}})(jQuery); window.vc||(window.vc={}),(()=>{function l(o,e,c,n){var l=o?o.querySelector(".wpb-color-picker"):null,r=o?o.querySelector(".vc_color-control"):null,a=o?r.value||"#EEEEEE":null,l={el:l,container:o,default:a,theme:"classic",appClass:"wpb-pickr",autoReposition:!1,swatches:(()=>{var o=["#000000","#FFFFFF","#DD3333","#DD9933","#EEEE22","#81D742","#1E73BE","#8224E3"];return o=wpbData&&wpbData.pickrColors&&wpbData.pickrColors.length?wpbData.pickrColors:o})(),position:"bottom-middle",components:{preview:!0,opacity:!0,hue:!0,interaction:{hex:!0,rgba:!0,hsla:!0,hsva:!1,cmyk:!1,input:!0,cancel:!0,clear:!1,save:!1}},i18n:{"btn:cancel":"Cancel"}},t=(e&&(l=Object.assign({},l,e)),new Pickr(l));t.on("change",_.debounce(function(o){r.value=o.toHEXA().toString(),t.applyColor(),c&&c.change&&c.change(r)},200)).on("cancel",_.debounce(function(){var o=r.dataset.prevColor||a;r.value=o,t.setColor(o),c&&c.cancel&&c.cancel(r)},200)).on("hide",function(){r.dataset.prevColor=r.value,t.hide()}),n.push(t)}vc.initColorPicker=function(o,e,c,n){e=e||{},c=c||{},n=n||[];o=(o||document).querySelectorAll(".color-group");try{e&&e.single?l(null,e,c,n):o.length&&o.forEach(function(o){l(o,e,c,n)})}catch(o){console.error("Error initializing color picker",o)}}})();