diff --git a/README.md b/README.md
index 1e568ba..3b93675 100644
--- a/README.md
+++ b/README.md
@@ -548,6 +548,27 @@ Manage WordPress Options from the Settings > Options page. Options value (string
## 📋 Changelog
+### 0.9.0.2
+
+**ACF Extended Pro 0.9.0.2:**
+
+* Module: Global Field Location - Fixed Field Group Location escaping issues
+* Field Groups: Advanced Locations - Fixed Field Group Location escaping issues
+* Field: Payment - Fixed `{field:payment}` Template Tag output
+* Field: Flexible Content - Grid - Added translatable strings
+* Global: Country/Currency/Language - Added PHP filters to allow customization
+
+**ACF Extended Basic 0.9.0.2:**
+
+* Module: Form - Enhanced load/validate/submit/render hooks strategy
+* Module: Form - Fixed instruction placement undefined key warning
+* Module: Form - "Current Post" Target/Source now correctly use the WP Query loop `post_id`
+* Module: Form - Enhanced multiple forms on single page support
+* Module: Form - Added missing `wpautop()` on email content when using "Content Editor"
+* Module: Form - Fixed Taxonomy "Load Terms" & Image "Featured Thumbnail" compatibility
+* Fields Condition - Enhanced `acf.newCondition` closer to native ACF logic
+* Global: Updated French translation
+
### 0.9.0.1
* Module: Forms - Fixed upgrade issues when using distant Auto Update
diff --git a/acf-extended.php b/acf-extended.php
index 456012a..4db7ee0 100644
--- a/acf-extended.php
+++ b/acf-extended.php
@@ -2,7 +2,7 @@
/**
* Plugin Name: Advanced Custom Fields: Extended
* Description: All-in-one enhancement suite that improves WordPress & Advanced Custom Fields.
- * Version: 0.9.0.1
+ * Version: 0.9.0.2
* Author: ACF Extended
* Plugin URI: https://www.acf-extended.com
* Author URI: https://www.acf-extended.com
@@ -19,7 +19,7 @@
class ACFE{
// vars
- var $version = '0.9.0.1';
+ var $version = '0.9.0.2';
/**
* construct
@@ -190,9 +190,9 @@ function load(){
acfe_include('includes/modules/form/module-form-compatibility.php');
acfe_include('includes/modules/form/module-form-deprecated.php');
acfe_include('includes/modules/form/module-form-fields.php');
+ acfe_include('includes/modules/form/module-form-format.php');
acfe_include('includes/modules/form/module-form-front.php');
acfe_include('includes/modules/form/module-form-front-render.php');
- acfe_include('includes/modules/form/module-form-hooks.php');
acfe_include('includes/modules/form/module-form-shortcode.php');
acfe_include('includes/modules/form/module-form-upgrades.php');
diff --git a/assets/js/acfe-input.js b/assets/js/acfe-input.js
index 2713a1d..95968cd 100644
--- a/assets/js/acfe-input.js
+++ b/assets/js/acfe-input.js
@@ -4488,9 +4488,22 @@
// - this field is used to setup the conditional logic events
var field = target.getField(rule.field);
- // ACF Extended: Check in all form if targeted field not found
+ // acfe
+ // found target, but not the field to check value against
if (target && !field) {
- field = acf.getField(rule.field);
+
+ // find the field in the whole page
+ // we must add this step because acf.getField('do_not_exists') will still instantiate the field
+ var findField = acf.findField(rule.field);
+
+ // find field
+ if (findField.length) {
+
+ //instatiate field once found
+ field = acf.getField(rule.field);
+
+ }
+
}
// bail ealry if no target or no field (possible if field doesn't exist due to HTML error)
diff --git a/assets/js/acfe-input.min.js b/assets/js/acfe-input.min.js
index a137b38..bed4da6 100644
--- a/assets/js/acfe-input.min.js
+++ b/assets/js/acfe-input.min.js
@@ -1 +1 @@
-jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acf.registerConditionForFieldType("contains","checkbox"),acf.registerConditionForFieldType("contains","radio"),acf.registerConditionForFieldType("equalTo","acfe_code_editor"),acf.registerConditionForFieldType("notEqualTo","acfe_code_editor"),acf.registerConditionForFieldType("patternMatch","acfe_code_editor"),acf.registerConditionForFieldType("contains","acfe_code_editor"),acf.registerConditionForFieldType("hasValue","acfe_code_editor"),acf.registerConditionForFieldType("hasNoValue","acfe_code_editor"),acf.registerConditionForFieldType("equalTo","date_picker"),acf.registerConditionForFieldType("notEqualTo","date_picker"),acf.registerConditionForFieldType("patternMatch","date_picker"),acf.registerConditionForFieldType("contains","date_picker"),acf.registerConditionForFieldType("greaterThan","date_picker"),acf.registerConditionForFieldType("lessThan","date_picker"),acf.registerConditionForFieldType("equalTo","date_time_picker"),acf.registerConditionForFieldType("notEqualTo","date_time_picker"),acf.registerConditionForFieldType("patternMatch","date_time_picker"),acf.registerConditionForFieldType("contains","date_time_picker"),acf.registerConditionForFieldType("equalTo","acfe_forms"),acf.registerConditionForFieldType("notEqualTo","acfe_forms"),acf.registerConditionForFieldType("patternMatch","acfe_forms"),acf.registerConditionForFieldType("contains","acfe_forms"),acf.registerConditionForFieldType("hasValue","acfe_forms"),acf.registerConditionForFieldType("hasNoValue","acfe_forms"),acf.registerConditionForFieldType("equalTo","acfe_hidden"),acf.registerConditionForFieldType("notEqualTo","acfe_hidden"),acf.registerConditionForFieldType("patternMatch","acfe_hidden"),acf.registerConditionForFieldType("contains","acfe_hidden"),acf.registerConditionForFieldType("hasValue","acfe_hidden"),acf.registerConditionForFieldType("hasNoValue","acfe_hidden"),acf.registerConditionForFieldType("equalTo","acfe_post_statuses"),acf.registerConditionForFieldType("notEqualTo","acfe_post_statuses"),acf.registerConditionForFieldType("patternMatch","acfe_post_statuses"),acf.registerConditionForFieldType("contains","acfe_post_statuses"),acf.registerConditionForFieldType("hasValue","acfe_post_statuses"),acf.registerConditionForFieldType("hasNoValue","acfe_post_statuses"),acf.registerConditionForFieldType("equalTo","acfe_post_types"),acf.registerConditionForFieldType("notEqualTo","acfe_post_types"),acf.registerConditionForFieldType("patternMatch","acfe_post_types"),acf.registerConditionForFieldType("contains","acfe_post_types"),acf.registerConditionForFieldType("hasValue","acfe_post_types"),acf.registerConditionForFieldType("hasNoValue","acfe_post_types"),acf.registerConditionForFieldType("equalTo","acfe_slug"),acf.registerConditionForFieldType("notEqualTo","acfe_slug"),acf.registerConditionForFieldType("patternMatch","acfe_slug"),acf.registerConditionForFieldType("contains","acfe_slug"),acf.registerConditionForFieldType("hasValue","acfe_slug"),acf.registerConditionForFieldType("hasNoValue","acfe_slug"),acf.registerConditionForFieldType("equalTo","acfe_taxonomies"),acf.registerConditionForFieldType("notEqualTo","acfe_taxonomies"),acf.registerConditionForFieldType("patternMatch","acfe_taxonomies"),acf.registerConditionForFieldType("contains","acfe_taxonomies"),acf.registerConditionForFieldType("hasValue","acfe_taxonomies"),acf.registerConditionForFieldType("hasNoValue","acfe_taxonomies"),acf.registerConditionForFieldType("equalTo","taxonomy"),acf.registerConditionForFieldType("notEqualTo","taxonomy"),acf.registerConditionForFieldType("patternMatch","taxonomy"),acf.registerConditionForFieldType("contains","taxonomy"),acf.registerConditionForFieldType("hasValue","taxonomy"),acf.registerConditionForFieldType("hasNoValue","taxonomy"),acf.registerConditionForFieldType("equalTo","acfe_taxonomy_terms"),acf.registerConditionForFieldType("notEqualTo","acfe_taxonomy_terms"),acf.registerConditionForFieldType("patternMatch","acfe_taxonomy_terms"),acf.registerConditionForFieldType("contains","acfe_taxonomy_terms"),acf.registerConditionForFieldType("hasValue","acfe_taxonomy_terms"),acf.registerConditionForFieldType("hasNoValue","acfe_taxonomy_terms"),acf.registerConditionForFieldType("equalTo","time_picker"),acf.registerConditionForFieldType("notEqualTo","time_picker"),acf.registerConditionForFieldType("patternMatch","time_picker"),acf.registerConditionForFieldType("contains","time_picker"),acf.registerConditionForFieldType("equalTo","acfe_user_roles"),acf.registerConditionForFieldType("notEqualTo","acfe_user_roles"),acf.registerConditionForFieldType("patternMatch","acfe_user_roles"),acf.registerConditionForFieldType("contains","acfe_user_roles"),acf.registerConditionForFieldType("hasValue","acfe_user_roles"),acf.registerConditionForFieldType("hasNoValue","acfe_user_roles")),function(c){var i;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(i=[],acfe.registerEventForFieldType=function(e,t,a){i.push({fieldType:e,events:t="string"==typeof t?[t]:t,callback:a||!1})},acfe.getEvents=function(t){t=acf.parseArgs(t,{fieldType:""});var a=[];return i.map(function(e){t.fieldType&&-1===e.fieldType.indexOf(t.fieldType)||a.push(e)}),a},new acf.Model({actions:{new_field:"newField"},priority:20,data:{},parseEvent:function(e){return e.match(/^(\S+)\s*(.*)$/)},newField:function(o){this.set(o.cid,o.val()),acfe.getEvents({fieldType:o.get("type")}).map(function(n){n.events.map(function(e){e=this.parseEvent(e);o.on(e[1],e[2],this.proxy(function(e){var t=o.val(),a=this.get(o.cid),i=c(e.currentTarget);(n.callback||this.proxy(function(e,t,a,i,n){var o=e,c=t;"object"==typeof o&&(o=JSON.stringify(o)),(c="object"==typeof c?JSON.stringify(c):c)!==o&&(this.set(a.cid,e),acf.doAction("acfe/change_field",e,t,a,i,n),acf.doAction("acfe/change_field/type="+a.get("type"),e,t,a,i,n),acf.doAction("acfe/change_field/name="+a.get("name"),e,t,a,i,n),acf.doAction("acfe/change_field/key="+a.get("key"),e,t,a,i,n))}))(t,a,o,e,i)}))},this)},this)}}),acfe.registerEventForFieldType("button_group","change"),acfe.registerEventForFieldType("checkbox","change"),acfe.registerEventForFieldType("color_picker","change"),acfe.registerEventForFieldType("date_picker","change"),acfe.registerEventForFieldType("date_time_picker","change"),acfe.registerEventForFieldType("email",["input","change"]),acfe.registerEventForFieldType("file","change"),acfe.registerEventForFieldType("flexible_content","change"),acfe.registerEventForFieldType("gallery","change"),acfe.registerEventForFieldType("google_map","change"),acfe.registerEventForFieldType("image","change"),acfe.registerEventForFieldType("link","change"),acfe.registerEventForFieldType("number",["input","change"]),acfe.registerEventForFieldType("oembed","change"),acfe.registerEventForFieldType("page_link","change"),acfe.registerEventForFieldType("post_object","change"),acfe.registerEventForFieldType("relationship","change"),acfe.registerEventForFieldType("password",["input","change"]),acfe.registerEventForFieldType("radio","change"),acfe.registerEventForFieldType("range",["input","change"]),acfe.registerEventForFieldType("repeater","change"),acfe.registerEventForFieldType("select","change"),acfe.registerEventForFieldType("taxonomy","change"),acfe.registerEventForFieldType("text",["input","change"]),acfe.registerEventForFieldType("textarea",["input","change"]),acfe.registerEventForFieldType("time_picker","change"),acfe.registerEventForFieldType("true_false","change"),acfe.registerEventForFieldType("url",["input","change"]),acfe.registerEventForFieldType("user","change"),acfe.registerEventForFieldType("wysiwyg","change"),acfe.registerEventForFieldType("acfe_advanced_link","change"),acfe.registerEventForFieldType("acfe_block_types","change"),acfe.registerEventForFieldType("acfe_countries","change"),acfe.registerEventForFieldType("acfe_currencies","change"),acfe.registerEventForFieldType("acfe_code_editor","change"),acfe.registerEventForFieldType("acfe_date_range_picker","change"),acfe.registerEventForFieldType("acfe_field_groups","change"),acfe.registerEventForFieldType("acfe_field_types","change"),acfe.registerEventForFieldType("acfe_fields","change"),acfe.registerEventForFieldType("acfe_forms","change"),acfe.registerEventForFieldType("acfe_hidden","change"),acfe.registerEventForFieldType("acfe_image_selector","change"),acfe.registerEventForFieldType("acfe_image_sizes","change"),acfe.registerEventForFieldType("acfe_languages","change"),acfe.registerEventForFieldType("acfe_menu_locations","change"),acfe.registerEventForFieldType("acfe_options_pages","change"),acfe.registerEventForFieldType("acfe_payment","change"),acfe.registerEventForFieldType("acfe_payment_cart","change"),acfe.registerEventForFieldType("acfe_payment_selector","change"),acfe.registerEventForFieldType("acfe_phone_number","change"),acfe.registerEventForFieldType("acfe_post_formats","change"),acfe.registerEventForFieldType("acfe_post_statuses","change"),acfe.registerEventForFieldType("acfe_post_types","change"),acfe.registerEventForFieldType("acfe_recaptcha","change"),acfe.registerEventForFieldType("acfe_taxonomies","change"),acfe.registerEventForFieldType("acfe_taxonomy_terms","change"),acfe.registerEventForFieldType("acfe_templates","change"),acfe.registerEventForFieldType("acfe_user_roles","change"),acfe.registerEventForFieldType("acfe_slug",["input","change"]))}(jQuery),function(l){var i,r,f,n,o,c;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(i=[],acfe.FieldExtender=function(e){var t=acfe.extractVar(e,"id",acf.uniqueId("extender"));return e.type=acfe.getArray(e.type),e.dependencies=acfe.getArray(e.dependencies),e.extender=t,i.push(e),t},r=acf.Field.prototype.setup,acf.Field.prototype.setup=function(e){r.apply(this,arguments);var t=f(this);if(t.length){var a,i=Object.getPrototypeOf(this);this.extenders=[];for(a of t){this.extenders.push(a.extender);var n=l.extend(!0,{},a),o=acfe.extractVar(n,"events");acfe.extractVars(n,"type","condition","dependencies"),n.hasOwnProperty("setup")&&n.setup.apply(this,arguments);function c(){}c.prototype=Object.create(i),l.extend(c.prototype,n),o&&(c.prototype.events=l.extend(!0,{},c.prototype.events,o)),c.prototype.__parent__=i,i=c.prototype}this.getParent=function(e){for(var t=Object.getPrototypeOf(this);t;){if(t.extender===e)return t.__parent__;if(!t.__parent__)return t;t=t.__parent__}return t},Object.setPrototypeOf(this,i)}},f=function(e){var t,a=[];for(t of o(e))a.push(n(t));return a},n=function(e){for(var t of i)if(t.extender===e)return t;return!1},o=function(e){var t,a={};for(t of i)acfe.inArray(e.get("type"),t.type)&&(t.hasOwnProperty("condition")&&!t.condition.apply(e,arguments)||(a[t.extender]=t.dependencies));return c(a)},c=function(e,i=e,t=[],a=0){const n=(e="object"==typeof e&&!Array.isArray(e)?Object.keys(e):e).reduce(function(e,t,a){return i[t].every(Array.prototype.includes,e)&&e.push(t),e},t);t=e.filter(function(e){return!n.includes(e)});return t.length&&a<=e.length?c(t,i,n,a+1):n})}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({actions:{new_field:"newField"},priority:1,validateField:function(e){return!!e.has("ftype")&&!acf.getFieldType(e.get("type")).prototype.get("ftype")},newField:function(e){this.validateField(e)&&(e.set("rtype",e.get("type"),!0),e.set("type",e.get("ftype"),!0),e.$el.attr("data-type",e.get("ftype")),e.$el.removeAttr("data-ftype"),delete e.data.ftype)}}),function(i){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({field:!1,placement:!1,actions:{new_field:"newField"},newField:function(e){(this.field=e).has("instructionTooltip")&&this.setTooltip(),e.has("instructionAboveField")&&this.setAboveField(),e.has("instructionPlacement")&&this.overridePlacement(e.get("instructionPlacement"))},setTooltip:function(){var e=acfe.versionCompare(acf.get("wp_version"),">=","5.5")?"dashicons-info-outline":"dashicons-info";this.field.$labelWrap().prepend(''),this.field.$labelWrap().find(".description").remove()},setAboveField:function(){this.field.$inputWrap().prepend('
")),"label"===e?this.field.$labelWrap().append(a):"above_field"===e?this.field.$inputWrap().prepend(a):"field"===e?this.field.$inputWrap().append(a):"tooltip"===e&&(e=acfe.versionCompare(acf.get("wp_version"),">=","5.5")?"dashicons-info-outline":"dashicons-info",this.field.$labelWrap().prepend(i('')),a.remove())}})}(jQuery),function(n){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({actions:{new_field:"newField"},getFieldType:function(e){return e.get("rtype",e.get("type"))},validateField:function(e){return!!e.has("acfeLabels")&&("checkbox"===this.getFieldType(e)||"radio"===this.getFieldType(e))},newField:function(e){if(this.validateField(e)){var t,a,i=e.get("acfeLabels");switch(this.getFieldType(e)){case"checkbox":for(t in i)a=i[t],e.$control().find('input[type=checkbox][value="'+a+'"]').closest("ul").before(""+t+"");break;case"radio":for(t in i)a=i[t],e.$control().find('input[type=radio][value="'+a+'"]').closest("li").addClass("parent").prepend(""+t+"");e.$control().hasClass("acf-hl")&&e.$control().find("li.parent").each(function(){n(this).nextUntil("li.parent").addBack().wrapAll("
'),this.$el.find("> .acf-input").append(''+this.get("acfeCloneModalButton")+""),this.initializeModal())},initializeModal:function(){var e,t=this.$labelWrap().find("label").text().trim();this.$el.is("td")&&(t=this.get("acfeCloneModalButton"),(e=this.$el.closest("table").find(' > thead th[data-key="'+this.get("key")+'"]')).length&&(t=acfe.getTextNode(e))),t.length||(t=this.get("acfeCloneModalButton")),this.getModal({title:t,size:this.has("acfeCloneModalSize")?this.get("acfeCloneModalSize"):"large",footer:!!this.has("acfeCloneModalClose")&&acf.__("Close"),class:"acfe-modal-edit-"+this.get("name")+" acfe-modal-edit-"+this.get("key")})},onDuplicate:function(e,t,a){a.find(".acf-input:first > a[data-modal]").remove()}}),acf.registerFieldType(e))}(jQuery),function(t){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acf.Field.extend({wait:!1,type:"acfe_code_editor",editor:{},events:{showField:"onShow",duplicateField:"onDuplicate"},$control:function(){return this.$("> .acf-input > .acf-input-wrap")},$input:function(){return this.$control().find("> textarea")},initialize:function(){var e;acf.isset(wp,"codeEditor")&&(e={lineNumbers:this.get("lines"),lineWrapping:!0,styleActiveLine:!1,continueComments:!0,indentUnit:this.get("indentUnit"),tabSize:1,indentWithTabs:!1,autoRefresh:!0,mode:this.get("mode"),extraKeys:{Tab:function(e){e.execCommand("indentMore")},"Shift-Tab":function(e){e.execCommand("indentLess")}}},e=acf.applyFilters("acfe/fields/code_editor/args",e,this),e=acf.applyFilters("acfe/fields/code_editor/args/name="+this.get("name"),e,this),e=acf.applyFilters("acfe/fields/code_editor/args/key="+this.get("key"),e,this),this.editor=wp.codeEditor.initialize(this.$input().get(0),{codemirror:t.extend(wp.codeEditor.defaultSettings.codemirror,e)}),this.get("rows")&&(this.editor.codemirror.getScrollerElement().style.minHeight=18.5*this.get("rows")+"px"),this.get("maxRows")&&(this.editor.codemirror.getScrollerElement().style.maxHeight=18.5*this.get("maxRows")+"px"),this.editor.codemirror.on("change",this.proxy(this.onEditorChange)),acf.doAction("acfe/fields/code_editor/init",this.editor,this),acf.doAction("acfe/fields/code_editor/init/name="+this.get("name"),this.editor,this),acf.doAction("acfe/fields/code_editor/init/key="+this.get("key"),this.editor,this))},onEditorChange:function(e,t){this.editor.codemirror.save(),this.$input().change()},onShow:function(){this.editor.codemirror&&this.editor.codemirror.refresh()},onDuplicate:function(e,t,a){a.find(".CodeMirror:last").remove()}}),acf.registerFieldType(e))}(jQuery),function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acf.Field.extend({wait:"new_field",type:"acfe_column",$control:function(){return this.$(".acf-fields:first")},initialize:function(){if(this.$el.is("td")&&(this.$el.closest(".acf-table").find('th[data-type="acfe_column"]').remove(),this.remove()),this.get("endpoint"))return this.$el.find("> .acf-label").remove(),void this.$el.find("> .acf-input").remove();var e=this.$el,t=this.$el.find("> .acf-label"),a=(this.$inputWrap(),this.$control());t.remove();t=e.parent();t.addClass("acfe-column-wrapper"),a.addClass(t.hasClass("-left")?"-left":""),a.addClass(t.hasClass("-clear")?"-clear":""),a.append(e.nextUntil(".acf-field-acfe-column",".acf-field"))}}),acf.registerFieldType(e))}(jQuery),function(t){var a;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(a=acf.models.FlexibleContentField,acf.models.FlexibleContentField=a.extend({addSortable:function(a){1!=this.get("max")&&this.$layoutsWrap().sortable({items:" > .layout",handle:"> .acf-fc-layout-handle",forceHelperSize:!1,forcePlaceholderSize:!0,revert:50,tolerance:"pointer",scroll:!0,stop:function(e,t){a.render()},update:function(e,t){a.$input().trigger("change")}})},add:function(e){var t=a.prototype.add.apply(this,arguments);t.length&&t.data("added",!0)}}),new acf.Model({actions:{invalid_field:"onInvalidField",valid_field:"onValidField"},onInvalidField:function(e){e.$el.parents(".layout").addClass("acfe-flexible-modal-edit-error")},onValidField:function(e){e.$el.parents(".layout").each(function(){var e=t(this);e.find(".acf-error").length||e.removeClass("acfe-flexible-modal-edit-error")})}}))}(jQuery),function(i){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acfe.FieldExtender({id:"fc_append",type:"flexible_content",initialize:function(){this.getParent(e).initialize.apply(this,arguments),this.addEvents({appendLayout:"acfeAppendLayout"})},acfeAppendLayout:function(e,t,a){a.is(".acfe-layout-duplicated")||(this.has("acfeFlexibleModalEdition")?this.acfeModalEdit(null,a):this.openLayout(a));var i=acfe.getModal(a.closest(".acfe-modal.-open"));i?this.acfeScrollToLayout(a,i.$content()):a.is(".acfe-layout-duplicated")?this.acfeScrollToLayout(a):this.setTimeout(function(){a.data("added")&&this.acfeScrollToLayout(a)},10)},acfeScrollToLayout:function(e,t){var a=t||!1;t=t||i("body, html"),acf.isInView(e)||(e=a?e.position().top:e.offset().top-i(window).height()/2,t.animate({scrollTop:e},500))}}))}(jQuery),function(o){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&acfe.FieldExtender({id:"fc_async",type:"flexible_content",condition:function(){return this.has("acfeFlexibleAjax")},add:function(n){if(n=acf.parseArgs(n,{layout:"",before:!1}),!this.allowAdd())return!1;var e={action:"acfe/flexible/models",field_key:this.get("key"),layout:n.layout},t=this.proxy(function(e){if(e){var t=o(e),a=acf.uniqid(),i="acf["+this.get("key")+"][acfcloneindex]",e=this.$control().find("> input[type=hidden]").attr("name")+"["+a+"]",e=acf.duplicate({target:t,search:i,replace:e,append:this.proxy(function(e,t){n.before?n.before.before(t):this.$layoutsWrap().append(t),acf.enable(t,this.cid),this.render()})});return e.attr("data-id",a),this.$input().trigger("change"),e}});o.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),dataType:"html",type:"post",beforeSend:function(){o("body").addClass("-loading")},success:t,complete:function(){o("body").removeClass("-loading")}})}})}(jQuery),function(r){var n;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&((n=acf.getFieldType("flexible_content").prototype).events["click [data-acfe-flexible-control-clone]"]="acfeCloneLayout",n.acfeCloneLayout=function(e,t){var a,i=this,n=t.closest(".layout"),o=n.data("layout"),c=r(i.$popup().html()),l=i.$layouts(),c=c.find('[data-layout="'+o+'"]'),c=(c.data("min"),c.data("max")||0),o=(a=o,l.filter(function(){return r(this).data("layout")===a}).length);if(c&&c<=o)return t.addClass("disabled"),!1;t.removeClass("disabled"),i.acfeFixInputs(n);o=n.clone();i.acfeCleanLayouts(o);t=t.closest(".acf-flexible-content").find("> input[type=hidden]").attr("name"),i.acfeDuplicate({layout:o,before:n,parent:t})},n.events["click [data-acfe-flexible-control-copy]"]="acfeCopyLayout",n.acfeCopyLayout=function(e,t){var a=t.closest(".layout").clone(),t=this.$control().find("> input[type=hidden]").attr("name");this.acfeFixInputs(a),this.acfeCleanLayouts(a);var i=JSON.stringify({source:t,layouts:a[0].outerHTML});navigator.clipboard.writeText(i).then(function(){return alert(acf.__("Layout data has been copied to your clipboard.")+"\n"+acf.__('You can now paste it in the same Flexible Content on another page, using the "Paste" button action.')),!0}).catch(function(){var e=r('').appendTo(r("body"));e.attr("value",i).select(),document.execCommand("copy")?alert(acf.__("Layout data has been copied to your clipboard.")+"\n"+acf.__('You can now paste it in the same Flexible Content on another page, using the "Paste" button action.')):prompt(acf.__("Please copy the following layout(s) data to your clipboard.")+"\n"+acf.__('You can now paste it in the same Flexible Content on another page, using the "Paste" button action.'),i),e.remove()})},n.acfeCopyLayouts=function(){var t=this,e=t.$layoutsWrap().clone(),a=t.$control().find("> input[type=hidden]").attr("name");t.acfeFixInputs(e),t.acfeCleanLayouts(e);var i=JSON.stringify({source:a,layouts:e.html()});navigator.clipboard.writeText(i).then(function(){return alert(acf.__("Layouts data have been copied to your clipboard.")+"\n"+acf.__('You can now paste it in the same Flexible Content on another page, using the "Paste" button action.')),!0}).catch(function(){var e=r('').appendTo(t.$el);e.attr("value",i).select(),document.execCommand("copy")?alert(acf.__("Layouts data have been copied to your clipboard.")+"\n"+acf.__('You can now paste it in the same Flexible Content on another page, using the "Paste" button action.')):prompt(acf.__("Please copy the following layout(s) data to your clipboard.")+"\n"+acf.__('You can now paste it in the same Flexible Content on another page, using the "Paste" button action.'),i),e.remove()})},n.acfePasteLayouts=function(){var n=this,e=prompt(acf.__("Please paste previously copied layout data in the following field:"));if(null!=e&&""!==e)try{var t=JSON.parse(e),i=t.source,a=r(t.layouts).closest("[data-layout]");if(!a.length)return alert("No layouts data available");var o=r(n.$popup().html()),c=n.$layouts(),l=[];if(a.each(function(){var e,t=r(this),a=t.data("layout"),i=o.find('[data-layout="'+a+'"]'),i=(i.data("min"),i.data("max")||0),a=(e=a,c.filter(function(){return r(this).data("layout")===e}).length);i&&i<=a||n.$clone(t.attr("data-layout")).length&&l.push(t)}),!l.length)return alert("No layouts could be pasted");r.each(l,function(){var e=r(this),t=i+"["+e.attr("data-id")+"]",a=n.$control().find("> input[type=hidden]").attr("name");n.acfeDuplicate({layout:e,before:!1,search:t,parent:a})})}catch(e){console.log(e),alert("Invalid data")}},n.events['click [data-name="acfe-flexible-control-button"]']="acfeControl",n.acfeControl=function(e,t){var a=this,i=t.next(".tmpl-acfe-flexible-control-popup").html();new(acf.models.TooltipConfirm.extend({render:function(){this.html(this.get("text")),this.$el.addClass("acf-fc-popup")}}))({target:t,targetConfirm:!1,text:i,context:a,confirm:function(e,t){"paste"===t.attr("data-acfe-flexible-control-action")?a.acfePasteLayouts():"copy"===t.attr("data-acfe-flexible-control-action")&&a.acfeCopyLayouts()}}).on("click","a","onConfirm")},n.acfeDuplicate=function(a){if(a=acf.parseArgs(a,{layout:"",before:!1,parent:!1,search:"",replace:""}),!this.allowAdd())return!1;var i=acf.uniqid();a.parent&&(a.search||(a.search=a.parent+"["+a.layout.attr("data-id")+"]"),a.replace=a.parent+"["+i+"]");var e,t={target:a.layout,search:a.search,replace:a.replace,append:this.proxy(function(e,t){t.addClass("acfe-layout-duplicated"),t.attr("data-id",i),a.before?a.before.after(t):this.$layoutsWrap().append(t),acf.enable(t,this.cid),this.render()})};e=acfe.versionCompare(acf.get("acf_version"),"<","5.9")?acf.duplicate(t):n.acfeNewAcfDuplicate(t),this.$input().trigger("change");t=acf.getFields({type:"tab",parent:e});return t.length&&r.each(t,function(){this.$el.hasClass("acf-hidden")&&this.tab.$el.addClass("acf-hidden")}),e},n.acfeNewAcfDuplicate=function(e){e instanceof jQuery&&(e={target:e}),(e=acf.parseArgs(e,{target:!1,search:"",replace:"",rename:!0,before:function(e){},after:function(e,t){},append:function(e,t){e.after(t)}})).target=e.target||e.$el;var t=e.target;e.search=e.search||t.attr("data-id"),e.replace=e.replace||acf.uniqid(),e.before(t),acf.doAction("before_duplicate",t);var a=t.clone();return e.rename&&acf.rename({target:a,search:e.search,replace:e.replace,replacer:"function"==typeof e.rename?e.rename:null}),a.removeClass("acf-clone"),a.find(".ui-sortable").removeClass("ui-sortable"),e.after(t,a),acf.doAction("after_duplicate",t,a),e.append(t,a),acf.doAction("append",a),a},n.acfeFixInputs=function(e){e.find("input").each(function(){r(this).attr("value",this.value)}),e.find("textarea").each(function(){r(this).html(this.value)}),e.find("input:radio,input:checkbox").each(function(){this.checked?r(this).attr("checked","checked"):r(this).attr("checked",!1)}),e.find("option").each(function(){this.selected?r(this).attr("selected","selected"):r(this).attr("selected",!1)})},n.acfeCleanLayouts=function(e){e.find(".acf-editor-wrap").each(function(){var e=r(this);e.find(".wp-editor-container div").remove(),e.find(".wp-editor-container textarea").css("display","")}),e.find(".acf-date-picker").each(function(){r(this).find("input.input").removeClass("hasDatepicker").removeAttr("id")}),e.find(".acf-time-picker").each(function(){r(this).find("input.input").removeClass("hasDatepicker").removeAttr("id")}),e.find(".acf-date-time-picker").each(function(){r(this).find("input.input").removeClass("hasDatepicker").removeAttr("id")}),e.find(".acfe-field-code-editor").each(function(){r(this).find(".CodeMirror").remove()}),e.find(".acf-color-picker").each(function(){var e=r(this),t=e.find("> input"),a=e.find(".wp-picker-container input.wp-color-picker").clone();t.after(a),e.find(".wp-picker-container").remove()}),e.find(".acf-field-post-object").each(function(){var e=r(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden").removeClass()}),e.find(".acf-field-page-link").each(function(){var e=r(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden").removeClass()}),e.find(".acf-field-select").each(function(){var e=r(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden").removeClass()}),e.find(".acf-field-font-awesome").each(function(){var e=r(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden")}),e.find(".acf-tab-wrap").each(function(){var e=r(this),t=e.closest(".acf-fields"),a=[];r.each(e.find("li a"),function(){a.push(r(this))}),t.find("> .acf-field-tab").each(function(){$current_tab=r(this),r.each(a,function(){var e=r(this);e.attr("data-key")===$current_tab.attr("data-key")&&$current_tab.find("> .acf-input").append(e)})}),e.remove()}),e.find(".acf-field-accordion").each(function(){var e=r(this);e.find("> .acf-accordion-title > .acf-accordion-icon").remove(),e.after('
")),"label"===e?this.field.$labelWrap().append(a):"above_field"===e?this.field.$inputWrap().prepend(a):"field"===e?this.field.$inputWrap().append(a):"tooltip"===e&&(e=acfe.versionCompare(acf.get("wp_version"),">=","5.5")?"dashicons-info-outline":"dashicons-info",this.field.$labelWrap().prepend(i('')),a.remove())}})}(jQuery),function(n){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({actions:{new_field:"newField"},getFieldType:function(e){return e.get("rtype",e.get("type"))},validateField:function(e){return!!e.has("acfeLabels")&&("checkbox"===this.getFieldType(e)||"radio"===this.getFieldType(e))},newField:function(e){if(this.validateField(e)){var t,a,i=e.get("acfeLabels");switch(this.getFieldType(e)){case"checkbox":for(t in i)a=i[t],e.$control().find('input[type=checkbox][value="'+a+'"]').closest("ul").before(""+t+"");break;case"radio":for(t in i)a=i[t],e.$control().find('input[type=radio][value="'+a+'"]').closest("li").addClass("parent").prepend(""+t+"");e.$control().hasClass("acf-hl")&&e.$control().find("li.parent").each(function(){n(this).nextUntil("li.parent").addBack().wrapAll("
'),this.$el.find("> .acf-input").append(''+this.get("acfeCloneModalButton")+""),this.initializeModal())},initializeModal:function(){var e,t=this.$labelWrap().find("label").text().trim();this.$el.is("td")&&(t=this.get("acfeCloneModalButton"),(e=this.$el.closest("table").find(' > thead th[data-key="'+this.get("key")+'"]')).length&&(t=acfe.getTextNode(e))),t.length||(t=this.get("acfeCloneModalButton")),this.getModal({title:t,size:this.has("acfeCloneModalSize")?this.get("acfeCloneModalSize"):"large",footer:!!this.has("acfeCloneModalClose")&&acf.__("Close"),class:"acfe-modal-edit-"+this.get("name")+" acfe-modal-edit-"+this.get("key")})},onDuplicate:function(e,t,a){a.find(".acf-input:first > a[data-modal]").remove()}}),acf.registerFieldType(e))}(jQuery),function(t){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acf.Field.extend({wait:!1,type:"acfe_code_editor",editor:{},events:{showField:"onShow",duplicateField:"onDuplicate"},$control:function(){return this.$("> .acf-input > .acf-input-wrap")},$input:function(){return this.$control().find("> textarea")},initialize:function(){var e;acf.isset(wp,"codeEditor")&&(e={lineNumbers:this.get("lines"),lineWrapping:!0,styleActiveLine:!1,continueComments:!0,indentUnit:this.get("indentUnit"),tabSize:1,indentWithTabs:!1,autoRefresh:!0,mode:this.get("mode"),extraKeys:{Tab:function(e){e.execCommand("indentMore")},"Shift-Tab":function(e){e.execCommand("indentLess")}}},e=acf.applyFilters("acfe/fields/code_editor/args",e,this),e=acf.applyFilters("acfe/fields/code_editor/args/name="+this.get("name"),e,this),e=acf.applyFilters("acfe/fields/code_editor/args/key="+this.get("key"),e,this),this.editor=wp.codeEditor.initialize(this.$input().get(0),{codemirror:t.extend(wp.codeEditor.defaultSettings.codemirror,e)}),this.get("rows")&&(this.editor.codemirror.getScrollerElement().style.minHeight=18.5*this.get("rows")+"px"),this.get("maxRows")&&(this.editor.codemirror.getScrollerElement().style.maxHeight=18.5*this.get("maxRows")+"px"),this.editor.codemirror.on("change",this.proxy(this.onEditorChange)),acf.doAction("acfe/fields/code_editor/init",this.editor,this),acf.doAction("acfe/fields/code_editor/init/name="+this.get("name"),this.editor,this),acf.doAction("acfe/fields/code_editor/init/key="+this.get("key"),this.editor,this))},onEditorChange:function(e,t){this.editor.codemirror.save(),this.$input().change()},onShow:function(){this.editor.codemirror&&this.editor.codemirror.refresh()},onDuplicate:function(e,t,a){a.find(".CodeMirror:last").remove()}}),acf.registerFieldType(e))}(jQuery),function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acf.Field.extend({wait:"new_field",type:"acfe_column",$control:function(){return this.$(".acf-fields:first")},initialize:function(){if(this.$el.is("td")&&(this.$el.closest(".acf-table").find('th[data-type="acfe_column"]').remove(),this.remove()),this.get("endpoint"))return this.$el.find("> .acf-label").remove(),void this.$el.find("> .acf-input").remove();var e=this.$el,t=this.$el.find("> .acf-label"),a=(this.$inputWrap(),this.$control());t.remove();t=e.parent();t.addClass("acfe-column-wrapper"),a.addClass(t.hasClass("-left")?"-left":""),a.addClass(t.hasClass("-clear")?"-clear":""),a.append(e.nextUntil(".acf-field-acfe-column",".acf-field"))}}),acf.registerFieldType(e))}(jQuery),function(t){var a;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(a=acf.models.FlexibleContentField,acf.models.FlexibleContentField=a.extend({addSortable:function(a){1!=this.get("max")&&this.$layoutsWrap().sortable({items:" > .layout",handle:"> .acf-fc-layout-handle",forceHelperSize:!1,forcePlaceholderSize:!0,revert:50,tolerance:"pointer",scroll:!0,stop:function(e,t){a.render()},update:function(e,t){a.$input().trigger("change")}})},add:function(e){var t=a.prototype.add.apply(this,arguments);t.length&&t.data("added",!0)}}),new acf.Model({actions:{invalid_field:"onInvalidField",valid_field:"onValidField"},onInvalidField:function(e){e.$el.parents(".layout").addClass("acfe-flexible-modal-edit-error")},onValidField:function(e){e.$el.parents(".layout").each(function(){var e=t(this);e.find(".acf-error").length||e.removeClass("acfe-flexible-modal-edit-error")})}}))}(jQuery),function(i){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acfe.FieldExtender({id:"fc_append",type:"flexible_content",initialize:function(){this.getParent(e).initialize.apply(this,arguments),this.addEvents({appendLayout:"acfeAppendLayout"})},acfeAppendLayout:function(e,t,a){a.is(".acfe-layout-duplicated")||(this.has("acfeFlexibleModalEdition")?this.acfeModalEdit(null,a):this.openLayout(a));var i=acfe.getModal(a.closest(".acfe-modal.-open"));i?this.acfeScrollToLayout(a,i.$content()):a.is(".acfe-layout-duplicated")?this.acfeScrollToLayout(a):this.setTimeout(function(){a.data("added")&&this.acfeScrollToLayout(a)},10)},acfeScrollToLayout:function(e,t){var a=t||!1;t=t||i("body, html"),acf.isInView(e)||(e=a?e.position().top:e.offset().top-i(window).height()/2,t.animate({scrollTop:e},500))}}))}(jQuery),function(o){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&acfe.FieldExtender({id:"fc_async",type:"flexible_content",condition:function(){return this.has("acfeFlexibleAjax")},add:function(n){if(n=acf.parseArgs(n,{layout:"",before:!1}),!this.allowAdd())return!1;var e={action:"acfe/flexible/models",field_key:this.get("key"),layout:n.layout},t=this.proxy(function(e){if(e){var t=o(e),a=acf.uniqid(),i="acf["+this.get("key")+"][acfcloneindex]",e=this.$control().find("> input[type=hidden]").attr("name")+"["+a+"]",e=acf.duplicate({target:t,search:i,replace:e,append:this.proxy(function(e,t){n.before?n.before.before(t):this.$layoutsWrap().append(t),acf.enable(t,this.cid),this.render()})});return e.attr("data-id",a),this.$input().trigger("change"),e}});o.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),dataType:"html",type:"post",beforeSend:function(){o("body").addClass("-loading")},success:t,complete:function(){o("body").removeClass("-loading")}})}})}(jQuery),function(r){var n;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&((n=acf.getFieldType("flexible_content").prototype).events["click [data-acfe-flexible-control-clone]"]="acfeCloneLayout",n.acfeCloneLayout=function(e,t){var a,i=this,n=t.closest(".layout"),o=n.data("layout"),c=r(i.$popup().html()),l=i.$layouts(),c=c.find('[data-layout="'+o+'"]'),c=(c.data("min"),c.data("max")||0),o=(a=o,l.filter(function(){return r(this).data("layout")===a}).length);if(c&&c<=o)return t.addClass("disabled"),!1;t.removeClass("disabled"),i.acfeFixInputs(n);o=n.clone();i.acfeCleanLayouts(o);t=t.closest(".acf-flexible-content").find("> input[type=hidden]").attr("name"),i.acfeDuplicate({layout:o,before:n,parent:t})},n.events["click [data-acfe-flexible-control-copy]"]="acfeCopyLayout",n.acfeCopyLayout=function(e,t){var a=t.closest(".layout").clone(),t=this.$control().find("> input[type=hidden]").attr("name");this.acfeFixInputs(a),this.acfeCleanLayouts(a);var i=JSON.stringify({source:t,layouts:a[0].outerHTML});navigator.clipboard.writeText(i).then(function(){return alert(acf.__("Layout data has been copied to your clipboard.")+"\n"+acf.__('You can now paste it in the same Flexible Content on another page, using the "Paste" button action.')),!0}).catch(function(){var e=r('').appendTo(r("body"));e.attr("value",i).select(),document.execCommand("copy")?alert(acf.__("Layout data has been copied to your clipboard.")+"\n"+acf.__('You can now paste it in the same Flexible Content on another page, using the "Paste" button action.')):prompt(acf.__("Please copy the following layout(s) data to your clipboard.")+"\n"+acf.__('You can now paste it in the same Flexible Content on another page, using the "Paste" button action.'),i),e.remove()})},n.acfeCopyLayouts=function(){var t=this,e=t.$layoutsWrap().clone(),a=t.$control().find("> input[type=hidden]").attr("name");t.acfeFixInputs(e),t.acfeCleanLayouts(e);var i=JSON.stringify({source:a,layouts:e.html()});navigator.clipboard.writeText(i).then(function(){return alert(acf.__("Layouts data have been copied to your clipboard.")+"\n"+acf.__('You can now paste it in the same Flexible Content on another page, using the "Paste" button action.')),!0}).catch(function(){var e=r('').appendTo(t.$el);e.attr("value",i).select(),document.execCommand("copy")?alert(acf.__("Layouts data have been copied to your clipboard.")+"\n"+acf.__('You can now paste it in the same Flexible Content on another page, using the "Paste" button action.')):prompt(acf.__("Please copy the following layout(s) data to your clipboard.")+"\n"+acf.__('You can now paste it in the same Flexible Content on another page, using the "Paste" button action.'),i),e.remove()})},n.acfePasteLayouts=function(){var n=this,e=prompt(acf.__("Please paste previously copied layout data in the following field:"));if(null!=e&&""!==e)try{var t=JSON.parse(e),i=t.source,a=r(t.layouts).closest("[data-layout]");if(!a.length)return alert("No layouts data available");var o=r(n.$popup().html()),c=n.$layouts(),l=[];if(a.each(function(){var e,t=r(this),a=t.data("layout"),i=o.find('[data-layout="'+a+'"]'),i=(i.data("min"),i.data("max")||0),a=(e=a,c.filter(function(){return r(this).data("layout")===e}).length);i&&i<=a||n.$clone(t.attr("data-layout")).length&&l.push(t)}),!l.length)return alert("No layouts could be pasted");r.each(l,function(){var e=r(this),t=i+"["+e.attr("data-id")+"]",a=n.$control().find("> input[type=hidden]").attr("name");n.acfeDuplicate({layout:e,before:!1,search:t,parent:a})})}catch(e){console.log(e),alert("Invalid data")}},n.events['click [data-name="acfe-flexible-control-button"]']="acfeControl",n.acfeControl=function(e,t){var a=this,i=t.next(".tmpl-acfe-flexible-control-popup").html();new(acf.models.TooltipConfirm.extend({render:function(){this.html(this.get("text")),this.$el.addClass("acf-fc-popup")}}))({target:t,targetConfirm:!1,text:i,context:a,confirm:function(e,t){"paste"===t.attr("data-acfe-flexible-control-action")?a.acfePasteLayouts():"copy"===t.attr("data-acfe-flexible-control-action")&&a.acfeCopyLayouts()}}).on("click","a","onConfirm")},n.acfeDuplicate=function(a){if(a=acf.parseArgs(a,{layout:"",before:!1,parent:!1,search:"",replace:""}),!this.allowAdd())return!1;var i=acf.uniqid();a.parent&&(a.search||(a.search=a.parent+"["+a.layout.attr("data-id")+"]"),a.replace=a.parent+"["+i+"]");var e,t={target:a.layout,search:a.search,replace:a.replace,append:this.proxy(function(e,t){t.addClass("acfe-layout-duplicated"),t.attr("data-id",i),a.before?a.before.after(t):this.$layoutsWrap().append(t),acf.enable(t,this.cid),this.render()})};e=acfe.versionCompare(acf.get("acf_version"),"<","5.9")?acf.duplicate(t):n.acfeNewAcfDuplicate(t),this.$input().trigger("change");t=acf.getFields({type:"tab",parent:e});return t.length&&r.each(t,function(){this.$el.hasClass("acf-hidden")&&this.tab.$el.addClass("acf-hidden")}),e},n.acfeNewAcfDuplicate=function(e){e instanceof jQuery&&(e={target:e}),(e=acf.parseArgs(e,{target:!1,search:"",replace:"",rename:!0,before:function(e){},after:function(e,t){},append:function(e,t){e.after(t)}})).target=e.target||e.$el;var t=e.target;e.search=e.search||t.attr("data-id"),e.replace=e.replace||acf.uniqid(),e.before(t),acf.doAction("before_duplicate",t);var a=t.clone();return e.rename&&acf.rename({target:a,search:e.search,replace:e.replace,replacer:"function"==typeof e.rename?e.rename:null}),a.removeClass("acf-clone"),a.find(".ui-sortable").removeClass("ui-sortable"),e.after(t,a),acf.doAction("after_duplicate",t,a),e.append(t,a),acf.doAction("append",a),a},n.acfeFixInputs=function(e){e.find("input").each(function(){r(this).attr("value",this.value)}),e.find("textarea").each(function(){r(this).html(this.value)}),e.find("input:radio,input:checkbox").each(function(){this.checked?r(this).attr("checked","checked"):r(this).attr("checked",!1)}),e.find("option").each(function(){this.selected?r(this).attr("selected","selected"):r(this).attr("selected",!1)})},n.acfeCleanLayouts=function(e){e.find(".acf-editor-wrap").each(function(){var e=r(this);e.find(".wp-editor-container div").remove(),e.find(".wp-editor-container textarea").css("display","")}),e.find(".acf-date-picker").each(function(){r(this).find("input.input").removeClass("hasDatepicker").removeAttr("id")}),e.find(".acf-time-picker").each(function(){r(this).find("input.input").removeClass("hasDatepicker").removeAttr("id")}),e.find(".acf-date-time-picker").each(function(){r(this).find("input.input").removeClass("hasDatepicker").removeAttr("id")}),e.find(".acfe-field-code-editor").each(function(){r(this).find(".CodeMirror").remove()}),e.find(".acf-color-picker").each(function(){var e=r(this),t=e.find("> input"),a=e.find(".wp-picker-container input.wp-color-picker").clone();t.after(a),e.find(".wp-picker-container").remove()}),e.find(".acf-field-post-object").each(function(){var e=r(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden").removeClass()}),e.find(".acf-field-page-link").each(function(){var e=r(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden").removeClass()}),e.find(".acf-field-select").each(function(){var e=r(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden").removeClass()}),e.find(".acf-field-font-awesome").each(function(){var e=r(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden")}),e.find(".acf-tab-wrap").each(function(){var e=r(this),t=e.closest(".acf-fields"),a=[];r.each(e.find("li a"),function(){a.push(r(this))}),t.find("> .acf-field-tab").each(function(){$current_tab=r(this),r.each(a,function(){var e=r(this);e.attr("data-key")===$current_tab.attr("data-key")&&$current_tab.find("> .acf-input").append(e)})}),e.remove()}),e.find(".acf-field-accordion").each(function(){var e=r(this);e.find("> .acf-accordion-title > .acf-accordion-icon").remove(),e.after('