File Editor
Directories:
.. (Back)
ext
stores
utils
Files:
bfb_admin_script.js
block-layout-frontend-preview.js
builder.js
cache_notice.js
cpt-modules-wrapper.js
failure_notice.js
library_category.js
library_scripts.js
page-settings-metabox.js
reset_memory_limit_increase_setting.js
roles_admin.js
Create New File
Create
Edit File: library_scripts.js
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=156)}({0:function(t,e){t.exports=jQuery},1:function(t,e){var n=Array.isArray;t.exports=n},10:function(t,e){t.exports=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r}},13:function(t,e,n){var o=n(5),r=n(3);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==o(t)}},156:function(t,e,n){"use strict";(function(t){var e=r(n(19)),o=r(n(60));function r(t){return t&&t.__esModule?t:{default:t}}t((function(){var n=window.location.href.split("edit.php")[1];if(!(0,e.default)(n)){var r=t("#toplevel_page_et_divi_library").find(".wp-submenu li");r.removeClass("current"),r.find("a").each((function(){var e=t(this),o=e.attr("href");-1!=="edit.php".concat(n).indexOf(o)&&e.closest("li").addClass("current")})),t("#toplevel_page_et_divi_library").removeClass("wp-not-current-submenu").addClass("wp-has-current-submenu"),t("a.toplevel_page_et_divi_library").removeClass("wp-not-current-submenu").addClass("wp-has-current-submenu wp-menu-open")}t("body").on("click",".add-new-h2, a.page-title-action",(function(){return t("body").addClass("et-core-nbfc").append(et_pb_new_template_options.modal_output),!1})),t("body").on("click",".et_pb_prompt_dont_proceed",(function(){var e=t(this).closest(".et_pb_modal_overlay");e.addClass("et_pb_modal_closing"),setTimeout((function(){t("body").removeClass("et-core-nbfc"),e.remove()}),600)})),t("body").on("change","#new_template_type",(function(){var e=t(this).val(),n=t(".et_module_tabs_options"),o=t("#et_pb_template_global"),r=o.closest("label");"module"===e||"fullwidth_module"===e?n.css("display","block"):n.css("display","none"),"layout"===e?(o.prop("checked",!1),r.css("display","none")):r.css("display","block")})),t("body").on("click",".et_pb_create_template:not(.clicked_button)",(function(){var n=t(this),r=n.closest(".et_pb_prompt_modal");if(""===r.find("#et_pb_new_template_name").val())r.find("#et_pb_new_template_name").trigger("focus");else{var i=[],a="";r.find("input, select").each((function(){var n=t(this);if(!(0,e.default)(n.attr("id"))&&""!==n.val()){if("checkbox"===n.attr("type")&&!n.is(":checked"))return;i.push({field_id:n.attr("id"),field_val:n.val()})}})),t(".layout_cats_container input").is(":checked")&&t(".layout_cats_container input").each((function(){var e=t(this);e.is(":checked")&&(a+=""!==a?",".concat(e.val()):e.val())})),i.push({field_id:"selected_cats",field_val:a}),n.addClass("clicked_button"),n.closest(".et_pb_prompt_buttons").find(".spinner").addClass("et_pb_visible_spinner"),t.ajax({type:"POST",url:et_pb_new_template_options.ajaxurl,dataType:"json",data:{action:"et_pb_add_new_layout",et_admin_load_nonce:et_pb_new_template_options.et_admin_load_nonce,et_layout_options:JSON.stringify(i)},success:function(t){(0,e.default)(t)||""===t||(window.location.href=(0,o.default)(t.edit_link))}})}}))}))}).call(this,n(0))},19:function(t,e){t.exports=function(t){return void 0===t}},2:function(t,e,n){var o=n(35),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},24:function(t,e,n){var o=n(8),r=n(10),i=n(1),a=n(13),c=o?o.prototype:void 0,u=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return r(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}},3:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},35:function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(61))},5:function(t,e,n){var o=n(8),r=n(62),i=n(63),a=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?r(t):i(t)}},6:function(t,e,n){var o=n(24);t.exports=function(t){return null==t?"":o(t)}},60:function(t,e,n){var o=n(6),r=n(64),i=/&(?:amp|lt|gt|quot|#39);/g,a=RegExp(i.source);t.exports=function(t){return(t=o(t))&&a.test(t)?t.replace(i,r):t}},61:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},62:function(t,e,n){var o=n(8),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,c=o?o.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var o=!0}catch(t){}var r=a.call(t);return o&&(e?t[c]=n:delete t[c]),r}},63:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},64:function(t,e,n){var o=n(65)({"&":"&","<":"<",">":">",""":'"',"'":"'"});t.exports=o},65:function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},8:function(t,e,n){var o=n(2).Symbol;t.exports=o}});
Save Changes
Rename File
Rename