Advanced Custom Fields - Version 5.7.7

Version Description

Release Date - 1 October 2018

  • Fix - Fixed various plugin update issues.
  • Tweak - Added 'language' to Google Maps API url.
  • Dev - Major improvements to the acf.models.Postbox model.
  • Dev - Added JS filter 'check_screen_args'.
  • Dev - Added JS action 'check_screen_complete'.
  • Dev - Added action 'acf/options_page/submitbox_before_major_actions'.
  • Dev - Added action 'acf/options_page/submitbox_major_actions'.
  • i18n - Updated Portuguese language thanks to Pedro Mendona
Download this release

Release Info

Developer elliotcondon
Plugin Icon 128x128 Advanced Custom Fields
Version 5.7.7
Comparing to
See all releases

Code changes from version 5.7.6 to 5.7.7

acf.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Advanced Custom Fields
4
  Plugin URI: https://www.advancedcustomfields.com/
5
  Description: Customise WordPress with powerful, professional and intuitive fields.
6
- Version: 5.7.6
7
  Author: Elliot Condon
8
  Author URI: http://www.elliotcondon.com/
9
  Copyright: Elliot Condon
@@ -18,7 +18,7 @@ if( ! class_exists('ACF') ) :
18
  class ACF {
19
 
20
  /** @var string The plugin version number */
21
- var $version = '5.7.6';
22
 
23
  /** @var array The plugin settings array */
24
  var $settings = array();
@@ -120,6 +120,7 @@ class ACF {
120
  $this->define( 'ACF_PATH', $path );
121
  //$this->define( 'ACF_DEV', true );
122
 
 
123
  // api
124
  include_once( ACF_PATH . 'includes/api/api-helpers.php');
125
  acf_include('includes/api/api-input.php');
3
  Plugin Name: Advanced Custom Fields
4
  Plugin URI: https://www.advancedcustomfields.com/
5
  Description: Customise WordPress with powerful, professional and intuitive fields.
6
+ Version: 5.7.7
7
  Author: Elliot Condon
8
  Author URI: http://www.elliotcondon.com/
9
  Copyright: Elliot Condon
18
  class ACF {
19
 
20
  /** @var string The plugin version number */
21
+ var $version = '5.7.7';
22
 
23
  /** @var array The plugin settings array */
24
  var $settings = array();
120
  $this->define( 'ACF_PATH', $path );
121
  //$this->define( 'ACF_DEV', true );
122
 
123
+
124
  // api
125
  include_once( ACF_PATH . 'includes/api/api-helpers.php');
126
  acf_include('includes/api/api-input.php');
assets/css/acf-input.css CHANGED
@@ -344,10 +344,6 @@ html[dir="rtl"] .acf-fields.-left > .acf-field > .acf-input {
344
  padding: 0;
345
  }
346
  }
347
- /* override WP CSS */
348
- .metabox-prefs label.acf-hidden {
349
- display: none;
350
- }
351
  /*---------------------------------------------------------------------------------------------
352
  *
353
  * Inputs
344
  padding: 0;
345
  }
346
  }
 
 
 
 
347
  /*---------------------------------------------------------------------------------------------
348
  *
349
  * Inputs
assets/js/acf-field-group.js CHANGED
@@ -2505,5 +2505,4 @@
2505
  // @codekit-prepend "../js/field-group-conditions.js";
2506
  // @codekit-prepend "../js/field-group-fields.js";
2507
  // @codekit-prepend "../js/field-group-locations.js";
2508
- // @codekit-prepend "../js/field-group-compatibility.js";
2509
-
2505
  // @codekit-prepend "../js/field-group-conditions.js";
2506
  // @codekit-prepend "../js/field-group-fields.js";
2507
  // @codekit-prepend "../js/field-group-locations.js";
2508
+ // @codekit-prepend "../js/field-group-compatibility.js";
 
assets/js/acf-field-group.min.js CHANGED
@@ -1 +1 @@
1
- !function($,e){var t=new acf.Model({id:"fieldGroupManager",events:{"submit #post":"onSubmit",'click a[href="#"]':"onClick","click .submitdelete":"onClickTrash"},filters:{find_fields_args:"filterFindFieldArgs"},onSubmit:function(e,t){var i=$("#titlewrap #title");i.val()||(e.preventDefault(),acf.unlockForm(t),alert(acf.__("Field group title is required")),i.focus())},onClick:function(e){e.preventDefault()},onClickTrash:function(e){confirm(acf.__("Move to trash. Are you sure?"))||e.preventDefault()},filterFindFieldArgs:function(e){return e.visible=!0,e}}),i=new acf.Model({id:"screenOptionsManager",wait:"prepare",events:{change:"onChange"},initialize:function(){var e=$("#adv-settings"),t=$("#acf-append-show-on-screen");e.find(".metabox-prefs").append(t.html()),e.find(".metabox-prefs br").remove(),t.remove(),this.$el=$("#acf-field-key-hide"),this.render()},isChecked:function(){return this.$el.prop("checked")},onChange:function(e,t){var i=this.isChecked()?1:0;acf.updateUserSetting("show_field_keys",i),this.render()},render:function(){this.isChecked()?$("#acf-field-group-fields").addClass("show-field-keys"):$("#acf-field-group-fields").removeClass("show-field-keys")}}),n=new acf.Model({actions:{new_field:"onNewField"},onNewField:function(e){if(e.has("append")){var t=e.get("append"),i=e.$el.siblings('[data-name="'+t+'"]').first();if(i.length){var n=i.children(".acf-input"),a=n.children("ul");a.length||(n.wrapInner('<ul class="acf-hl"><li></li></ul>'),a=n.children("ul"));var c=e.$(".acf-input").html(),l=$("<li>"+c+"</li>");a.append(l),a.attr("data-cols",a.children().length),e.remove()}}}})}(jQuery),function($,e){acf.FieldObject=acf.Model.extend({eventScope:".acf-field-object",events:{"click .edit-field":"onClickEdit","click .delete-field":"onClickDelete","click .duplicate-field":"duplicate","click .move-field":"move","change .field-type":"onChangeType","change .field-required":"onChangeRequired","blur .field-label":"onChangeLabel","blur .field-name":"onChangeName",change:"onChange",changed:"onChanged"},data:{id:0,key:"",type:""},setup:function(e){this.$el=e,this.inherit(e),this.prop("ID"),this.prop("parent"),this.prop("menu_order")},$input:function(e){return $("#"+this.getInputId()+"-"+e)},$meta:function(){return this.$(".meta:first")},$handle:function(){return this.$(".handle:first")},$settings:function(){return this.$(".settings:first")},$setting:function(e){return this.$(".acf-field-settings:first > .acf-field-setting-"+e)},getParent:function(){return acf.getFieldObjects({child:this.$el,limit:1}).pop()},getParents:function(){return acf.getFieldObjects({child:this.$el})},getFields:function(){return acf.getFieldObjects({parent:this.$el})},getInputName:function(){return"acf_fields["+this.get("id")+"]"},getInputId:function(){return"acf_fields-"+this.get("id")},newInput:function(e,t){var i=this.getInputId(),n=this.getInputName();e&&(i+="-"+e,n+="["+e+"]");var a=$("<input />").attr({id:i,name:n,value:t});return this.$("> .meta").append(a),a},getProp:function(e){if(this.has(e))return this.get(e);var t=this.$input(e),i=t.length?t.val():null;return this.set(e,i,!0),i},setProp:function(e,t){var i=this.$input(e),n=i.val();return i.length||(i=this.newInput(e,t)),null===t?i.remove():i.val(t),this.has(e)?this.set(e,t):this.set(e,t,!0),this},prop:function(e,t){return void 0!==t?this.setProp(e,t):this.getProp(e)},props:function(e){Object.keys(e).map(function(t){this.setProp(t,e[t])},this)},getLabel:function(){var e=this.prop("label");return""===e&&(e=acf.__("(no label)")),e},getName:function(){return this.prop("name")},getType:function(){return this.prop("type")},getTypeLabel:function(){var e=this.prop("type"),t=acf.get("fieldTypes");return t[e]?t[e].label:e},getKey:function(){return this.prop("key")},initialize:function(){},render:function(){var e=this.$(".handle:first"),t=this.prop("menu_order"),i=this.getLabel(),n=this.prop("name"),a=this.getTypeLabel(),c=this.prop("key"),l=this.$input("required").prop("checked");e.find(".acf-icon").html(parseInt(t)+1),l&&(i+=' <span class="acf-required">*</span>'),e.find(".li-field-label strong a").html(i),e.find(".li-field-name").text(n),e.find(".li-field-type").text(a),e.find(".li-field-key").text(c),acf.doAction("render_field_object",this)},refresh:function(){acf.doAction("refresh_field_object",this)},isOpen:function(){return this.$el.hasClass("open")},onClickEdit:function(e){this.isOpen()?this.close():this.open()},open:function(){var e=this.$el.children(".settings");e.slideDown(),this.$el.addClass("open"),acf.doAction("open_field_object",this),this.trigger("openFieldObject"),acf.doAction("show",e)},close:function(){var e=this.$el.children(".settings");e.slideUp(),this.$el.removeClass("open"),acf.doAction("close_field_object",this),this.trigger("closeFieldObject"),acf.doAction("hide",e)},serialize:function(){return acf.serialize(this.$el,this.getInputName())},save:function(e){e=e||"settings","settings"!==this.getProp("save")&&(this.setProp("save",e),this.$el.attr("data-save",e),acf.doAction("save_field_object",this,e))},submit:function(){var e=this.getInputName(),t=this.get("save");this.isOpen()&&this.close(),"settings"==t||("meta"==t?this.$('> .settings [name^="'+e+'"]').remove():this.$('[name^="'+e+'"]').remove()),acf.doAction("submit_field_object",this)},onChange:function(e,t){this.save(),acf.doAction("change_field_object",this)},onChanged:function(e,t,i,n){"save"!=i&&(["menu_order","parent"].indexOf(i)>-1?this.save("meta"):this.save(),["menu_order","label","required","name","type","key"].indexOf(i)>-1&&this.render(),acf.doAction("change_field_object_"+i,this,n))},onChangeLabel:function(e,t){var i=t.val();if(this.set("label",i),""==this.prop("name")){var n=acf.applyFilters("generate_field_object_name",acf.strSanitize(i),this);this.prop("name",n)}},onChangeName:function(e,t){var i=t.val();this.set("name",i),"field_"===i.substr(0,6)&&alert(acf.__('The string "field_" may not be used at the start of a field name'))},onChangeRequired:function(e,t){var i=t.prop("checked")?1:0;this.set("required",i)},delete:function(e){e=acf.parseArgs(e,{animate:!0});var t=this.prop("ID");if(t){var i=$("#_acf_delete_fields"),n=i.val()+"|"+t;i.val(n)}acf.doAction("delete_field_object",this),e.animate?this.removeAnimate():this.remove()},onClickDelete:function(e,t){this.$el.addClass("-hover");var i=this,n=acf.newTooltip({confirmRemove:!0,target:t,confirm:function(){i.delete(!0)},cancel:function(){i.$el.removeClass("-hover")}})},removeAnimate:function(){var e=this,t=this.$el.parent(),i=acf.findFieldObjects({sibling:this.$el});acf.remove({target:this.$el,endHeight:i.length?0:50,complete:function(){e.remove(),acf.doAction("removed_field_object",e,t)}}),acf.doAction("remove_field_object",e,t)},duplicate:function(){var e=acf.uniqid("field_"),t=acf.duplicate({target:this.$el,search:this.get("id"),replace:e});t.attr("data-key",e);var i=acf.getFieldObject(t);this.isOpen()?this.close():i.open();var n=i.$setting("label input");setTimeout(function(){n.focus()},251);var a=i.prop("label"),c=i.prop("name"),l=c.split("_").pop(),o=acf.__("copy");if($.isNumeric(l)){var r=1*l+1;a=a.replace(l,r),c=c.replace(l,r)}else if(0===l.indexOf(o)){var r=1*l.replace(o,"");r=r?r+1:2,a=a.replace(l,o+r),c=c.replace(l,o+r)}else a+=" ("+o+")",c+="_"+o;i.prop("ID",0),i.prop("label",a),i.prop("name",c),i.prop("key",e),acf.doAction("duplicate_field_object",this,i),acf.doAction("append_field_object",i)},wipe:function(){var e=this.get("id"),t=this.get("key"),i=acf.uniqid("field_");acf.rename({target:this.$el,search:e,replace:i}),this.set("id",i),this.set("prevId",e),this.set("prevKey",t),this.prop("key",i),this.prop("ID",0),this.$el.attr("data-key",i),this.$el.attr("data-id",i),acf.doAction("wipe_field_object",this)},move:function(){var e=function(e){return"settings"==e.get("save")},t=e(this);if(t||acf.getFieldObjects({parent:this.$el}).map(function(i){t=e(i)||i.changed}),t)return void alert(acf.__("This field cannot be moved until its changes have been saved"));var i=this.prop("ID"),n=this,a=!1,c=function(e){a.loading(!1),a.content(e),a.on("submit","form",l)},l=function(e,t){e.preventDefault(),acf.startButtonLoading(a.$(".button"));var n={action:"acf/field_group/move_field",field_id:i,field_group_id:a.$("select").val()};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(n),type:"post",dataType:"html",success:o})},o=function(e){a.content(e),n.removeAnimate()};!function(){a=acf.newPopup({title:acf.__("Move Custom Field"),loading:!0,width:"300px"});var e={action:"acf/field_group/move_field",field_id:i};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"html",success:c})}()},onChangeType:function(e,t){this.changeTimeout&&clearTimeout(this.changeTimeout),this.changeTimeout=this.setTimeout(function(){this.changeType(t.val())},300)},changeType:function(e){var t=this.prop("type"),i=acf.strSlugify("acf-field-object-"+t),n=acf.strSlugify("acf-field-object-"+e);this.$el.removeClass(i).addClass(n),this.$el.attr("data-type",e),this.$el.data("type",e),this.has("xhr")&&this.get("xhr").abort();var a=this.$("> .settings > table > tbody"),c=a.children('[data-setting="'+t+'"]');if(this.set("settings-"+t,c),c.detach(),this.has("settings-"+e)){var l=this.get("settings-"+e);return this.$setting("conditional_logic").before(l),void this.set("type",e)}var o=$('<tr class="acf-field"><td class="acf-label"></td><td class="acf-input"><div class="acf-loading"></div></td></tr>');this.$setting("conditional_logic").before(o);var r={action:"acf/field_group/render_field_settings",field:this.serialize(),prefix:this.getInputName()},d=$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(r),type:"post",dataType:"html",context:this,success:function(e){e&&(o.after(e),acf.doAction("append",a))},complete:function(){o.remove(),this.set("type",e)}});this.set("xhr",d)},updateParent:function(){var e=acf.get("post_id"),t=this.getParent();t&&(e=parseInt(t.prop("ID"))||t.prop("key")),this.prop("parent",e)}})}(jQuery),function($,e){var t=function(e){return acf.strPascalCase(e||"")+"FieldSetting"};acf.registerFieldSetting=function(e){var i=e.prototype,n=t(i.type+" "+i.name);this.models[n]=e},acf.newFieldSetting=function(e){var i=e.get("setting")||"",n=e.get("name")||"",a=t(i+" "+n),c=acf.models[a]||null;return null!==c&&new c(e)},acf.getFieldSetting=function(e){return e instanceof jQuery&&(e=acf.getField(e)),e.setting};var i=new acf.Model({actions:{new_field:"onNewField"},onNewField:function(e){e.setting=acf.newFieldSetting(e)}});acf.FieldSetting=acf.Model.extend({field:!1,type:"",name:"",wait:"ready",eventScope:".acf-field",events:{change:"render"},setup:function(e){var t=e.$el;this.$el=t,this.field=e,this.$fieldObject=t.closest(".acf-field-object"),this.fieldObject=acf.getFieldObject(this.$fieldObject),$.extend(this.data,e.data)},initialize:function(){this.render()},render:function(){}});var n=acf.FieldSetting.extend({type:"",name:"",render:function(){var e=this.$('input[type="radio"]:checked');"other"!=e.val()&&this.$('input[type="text"]').val(e.val())}}),a=n.extend({type:"date_picker",name:"display_format"}),c=n.extend({type:"date_picker",name:"return_format"});acf.registerFieldSetting(a),acf.registerFieldSetting(c);var l=n.extend({type:"date_time_picker",name:"display_format"}),o=n.extend({type:"date_time_picker",name:"return_format"});acf.registerFieldSetting(l),acf.registerFieldSetting(o);var r=n.extend({type:"time_picker",name:"display_format"}),d=n.extend({name:"time_picker",name:"return_format"});acf.registerFieldSetting(r),acf.registerFieldSetting(d)}(jQuery),function($,e){var t=acf.FieldSetting.extend({type:"",name:"conditional_logic",events:{"change .conditions-toggle":"onChangeToggle","click .add-conditional-group":"onClickAddGroup","focus .condition-rule-field":"onFocusField","change .condition-rule-field":"onChangeField","change .condition-rule-operator":"onChangeOperator","click .add-conditional-rule":"onClickAdd","click .remove-conditional-rule":"onClickRemove"},$rule:!1,scope:function(e){return this.$rule=e,this},ruleData:function(e,t){return this.$rule.data.apply(this.$rule,arguments)},$input:function(e){return this.$rule.find(".condition-rule-"+e)},$td:function(e){return this.$rule.find("td."+e)},$toggle:function(){return this.$(".conditions-toggle")},$control:function(){return this.$(".rule-groups")},$groups:function(){return this.$(".rule-group")},$rules:function(){return this.$(".rule")},open:function(){var e=this.$control();e.show(),acf.enable(e)},close:function(){var e=this.$control();e.hide(),acf.disable(e)},render:function(){this.$toggle().prop("checked")?(this.renderRules(),this.open()):this.close()},renderRules:function(){var e=this;this.$rules().each(function(){e.renderRule($(this))})},renderRule:function(e){this.scope(e),this.renderField(),this.renderOperator(),this.renderValue()},renderField:function(){var e=[],t=[],i=this.fieldObject.cid,n=this.$input("field");acf.getFieldObjects().map(function(t){var n={id:t.getKey(),text:t.getLabel()};t.cid===i&&(n.text+=acf.__("(this field)"),n.disabled=!0),acf.getConditionTypes({fieldType:t.getType()}).length||(n.disabled=!0);var a=t.getParents().length;n.text="- ".repeat(a)+n.text,e.push(n)}),e.length||e.push({id:"",text:acf.__("No toggle fields available")}),acf.renderSelect(n,e),this.ruleData("field",n.val())},renderOperator:function(){if(this.ruleData("field")){var e=this.$input("operator"),t=e.val(),i=[];null===e.val()&&acf.renderSelect(e,[{id:this.ruleData("operator"),text:""}]);var n=acf.findFieldObject(this.ruleData("field")),a=acf.getFieldObject(n);acf.getConditionTypes({fieldType:a.getType()}).map(function(e){i.push({id:e.prototype.operator,text:acf.strEscape(e.prototype.label)})}),acf.renderSelect(e,i),this.ruleData("operator",e.val())}},renderValue:function(){if(this.ruleData("field")&&this.ruleData("operator")){var e=this.$input("value"),t=this.$td("value"),i=e.val(),n=acf.findFieldObject(this.ruleData("field")),a=acf.getFieldObject(n),c=acf.getConditionTypes({fieldType:a.getType(),operator:this.ruleData("operator")}),l=c[0].prototype,o=l.choices(a);if(o instanceof Array){var r=$("<select></select>");acf.renderSelect(r,o)}else var r=$(o);e.detach(),t.html(r),setTimeout(function(){["class","name","id"].map(function(t){r.attr(t,e.attr(t))})},0),r.prop("disabled")||acf.val(r,i,!0),this.ruleData("value",r.val())}},onChangeToggle:function(){this.render()},onClickAddGroup:function(e,t){this.addGroup()},addGroup:function(){var e=this.$(".rule-group:last"),t=acf.duplicate(e);t.find("h4").text(acf.__("or")),t.find("tr").not(":first").remove(),this.fieldObject.save()},onFocusField:function(e,t){this.renderField()},onChangeField:function(e,t){this.scope(t.closest(".rule")),this.ruleData("field",t.val()),this.renderOperator(),this.renderValue()},onChangeOperator:function(e,t){this.scope(t.closest(".rule")),this.ruleData("operator",t.val()),this.renderValue()},onClickAdd:function(e,t){var i=acf.duplicate(t.closest(".rule"));this.renderRule(i)},onClickRemove:function(e,t){var i=t.closest(".rule");this.fieldObject.save(),0==i.siblings(".rule").length&&i.closest(".rule-group").remove(),i.remove()}});acf.registerFieldSetting(t);var i=new acf.Model({actions:{duplicate_field_objects:"onDuplicateFieldObjects"},onDuplicateFieldObjects:function(e,t,i){var n={},a=$();e.map(function(e){n[e.get("prevKey")]=e.get("key"),a=a.add(e.$(".condition-rule-field"))}),a.each(function(){var e=$(this),t=e.val();t&&n[t]&&(e.find("option:selected").attr("value",n[t]),e.val(n[t]))})}})}(jQuery),function($,e){acf.findFieldObject=function(e){return acf.findFieldObjects({key:e,limit:1})},acf.findFieldObjects=function(e){e=e||{};var t=".acf-field-object",i=!1;return e=acf.parseArgs(e,{id:"",key:"",type:"",limit:!1,list:null,parent:!1,sibling:!1,child:!1}),e.id&&(t+='[data-id="'+e.id+'"]'),e.key&&(t+='[data-key="'+e.key+'"]'),e.type&&(t+='[data-type="'+e.type+'"]'),i=e.list?e.list.children(t):e.parent?e.parent.find(t):e.sibling?e.sibling.siblings(t):e.child?e.child.parents(t):$(t),e.limit&&(i=i.slice(0,e.limit)),i},acf.getFieldObject=function(e){"string"==typeof e&&(e=acf.findFieldObject(e));var t=e.data("acf");return t||(t=acf.newFieldObject(e)),t},acf.getFieldObjects=function(e){var t=acf.findFieldObjects(e),i=[];return t.each(function(){var e=acf.getFieldObject($(this));i.push(e)}),i},acf.newFieldObject=function(e){var t=new acf.FieldObject(e);return acf.doAction("new_field_object",t),t};var t=new acf.Model({priority:5,initialize:function(){["prepare","ready","append","remove"].map(function(e){this.addFieldActions(e)},this)},addFieldActions:function(e){var t=e+"_field_objects",i=e+"_field_object",n=e+"FieldObject",a=function(e){var i=acf.getFieldObjects({parent:e});if(i.length){var n=acf.arrayArgs(arguments);n.splice(0,1,t,i),acf.doAction.apply(null,n)}},c=function(e){var t=acf.arrayArgs(arguments);t.unshift(i),e.map(function(e){t[1]=e,acf.doAction.apply(null,t)})},l=function(e){var t=acf.arrayArgs(arguments);t.unshift(i),["type","name","key"].map(function(n){t[0]=i+"/"+n+"="+e.get(n),acf.doAction.apply(null,t)}),t.splice(0,2),e.trigger(n,t)};acf.addAction(e,a,5),acf.addAction(t,c,5),acf.addAction(i,l,5)}}),i=new acf.Model({id:"fieldManager",events:{"submit #post":"onSubmit","mouseenter .acf-field-list":"onHoverSortable","click .add-field":"onClickAdd"},actions:{removed_field_object:"onRemovedField",sortstop_field_object:"onReorderField",delete_field_object:"onDeleteField",change_field_object_type:"onChangeFieldType",duplicate_field_object:"onDuplicateField"},onSubmit:function(e,t){acf.getFieldObjects().map(function(e){e.submit()})},setFieldMenuOrder:function(e){this.renderFields(e.$el.parent())},onHoverSortable:function(e,t){t.hasClass("ui-sortable")||t.sortable({handle:".acf-sortable-handle",connectWith:".acf-field-list",start:function(e,i){var n=acf.getFieldObject(i.item);i.placeholder.height(i.item.height()),acf.doAction("sortstart_field_object",n,t)},update:function(e,i){var n=acf.getFieldObject(i.item);acf.doAction("sortstop_field_object",n,t)}})},onRemovedField:function(e,t){this.renderFields(t)},onReorderField:function(e,t){e.updateParent(),this.renderFields(t)},onDeleteField:function(e){e.getFields().map(function(e){e.delete({animate:!1})})},onChangeFieldType:function(e){},onDuplicateField:function(e,t){var i=t.getFields();i.length&&(i.map(function(e){e.wipe(),e.updateParent()}),acf.doAction("duplicate_field_objects",i,t,e)),this.setFieldMenuOrder(t)},renderFields:function(e){var t=acf.getFieldObjects({list:e});if(!t.length)return void e.addClass("-empty");e.removeClass("-empty"),t.map(function(e,t){e.prop("menu_order",t)})},onClickAdd:function(e,t){var i=t.closest(".acf-tfoot").siblings(".acf-field-list");this.addField(i)},addField:function(e){var t=$("#tmpl-acf-field").html(),i=$(t),n=i.data("id"),a=acf.uniqid("field_"),c=acf.duplicate({target:i,search:n,replace:a,append:function(t,i){e.append(i)}}),l=acf.getFieldObject(c);l.prop("key",a),l.prop("ID",0),l.prop("label",""),l.prop("name",""),c.attr("data-key",a),c.attr("data-id",a),l.updateParent();var o=l.$input("label");setTimeout(function(){o.focus()},251),l.open(),this.renderFields(e),acf.doAction("add_field_object",l),acf.doAction("append_field_object",l)}})}(jQuery),function($,e){var t=new acf.Model({id:"locationManager",wait:"ready",events:{"click .add-location-rule":"onClickAddRule","click .add-location-group":"onClickAddGroup","click .remove-location-rule":"onClickRemoveRule","change .refresh-location-rule":"onChangeRemoveRule"},initialize:function(){this.$el=$("#acf-field-group-locations")},onClickAddRule:function(e,t){this.addRule(t.closest("tr"))},onClickRemoveRule:function(e,t){this.removeRule(t.closest("tr"))},onChangeRemoveRule:function(e,t){this.changeRule(t.closest("tr"))},onClickAddGroup:function(e,t){this.addGroup()},addRule:function(e){acf.duplicate(e)},removeRule:function(e){0==e.siblings("tr").length?e.closest(".rule-group").remove():e.remove()},changeRule:function(e){var t=e.closest(".rule-group"),i=e.find("td.param select").attr("name").replace("[param]",""),n={};n.action="acf/field_group/render_location_rule",n.rule=acf.serialize(e,i),n.rule.id=e.data("id"),n.rule.group=t.data("id"),acf.disable(e.find("td.value")),$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(n),type:"post",dataType:"html",success:function(t){t&&e.replaceWith(t)}})},addGroup:function(){var e=this.$(".rule-group:last");$group2=acf.duplicate(e),$group2.find("h4").text(acf.__("or")),$group2.find("tr").not(":first").remove()}})}(jQuery),function($,e){var t=acf.getCompatibility(acf);t.field_group={save_field:function(e,t){t=void 0!==t?t:"settings",acf.getFieldObject(e).save(t)},delete_field:function(e,t){t=void 0===t||t,acf.getFieldObject(e).delete({animate:t})},update_field_meta:function(e,t,i){acf.getFieldObject(e).prop(t,i)},delete_field_meta:function(e,t){acf.getFieldObject(e).prop(t,null)}},t.field_group.field_object=acf.model.extend({type:"",o:{},$field:null,$settings:null,tag:function(e){var t=this.type,i=e.split("_");return i.splice(1,0,"field"),e=i.join("_"),t&&(e+="/type="+t),e},selector:function(){var e=".acf-field-object",t=this.type;return t&&(e+="-"+t,e=acf.str_replace("_","-",e)),e},_add_action:function(e,t){var i=this;acf.add_action(this.tag(e),function(e){i.set("$field",e),i[t].apply(i,arguments)})},_add_filter:function(e,t){var i=this;acf.add_filter(this.tag(e),function(e){i.set("$field",e),i[t].apply(i,arguments)})},_add_event:function(e,t){var i=this,n=e.substr(0,e.indexOf(" ")),a=e.substr(e.indexOf(" ")+1),c=this.selector();$(document).on(n,c+" "+a,function(e){e.$el=$(this),e.$field=e.$el.closest(".acf-field-object"),i.set("$field",e.$field),i[t].apply(i,[e])})},_set_$field:function(){this.o=this.$field.data(),this.$settings=this.$field.find("> .settings > table > tbody"),this.focus()},focus:function(){},setting:function(e){return this.$settings.find("> .acf-field-setting-"+e)}});var i=new acf.Model({actions:{open_field_object:"onOpenFieldObject",close_field_object:"onCloseFieldObject",add_field_object:"onAddFieldObject",duplicate_field_object:"onDuplicateFieldObject",delete_field_object:"onDeleteFieldObject",change_field_object_type:"onChangeFieldObjectType",change_field_object_label:"onChangeFieldObjectLabel",change_field_object_name:"onChangeFieldObjectName",change_field_object_parent:"onChangeFieldObjectParent",sortstop_field_object:"onChangeFieldObjectParent"},onOpenFieldObject:function(e){acf.doAction("open_field",e.$el),acf.doAction("open_field/type="+e.get("type"),e.$el),acf.doAction("render_field_settings",e.$el),acf.doAction("render_field_settings/type="+e.get("type"),e.$el)},onCloseFieldObject:function(e){acf.doAction("close_field",e.$el),acf.doAction("close_field/type="+e.get("type"),e.$el)},onAddFieldObject:function(e){acf.doAction("add_field",e.$el),acf.doAction("add_field/type="+e.get("type"),e.$el)},onDuplicateFieldObject:function(e){acf.doAction("duplicate_field",e.$el),acf.doAction("duplicate_field/type="+e.get("type"),e.$el)},onDeleteFieldObject:function(e){acf.doAction("delete_field",e.$el),acf.doAction("delete_field/type="+e.get("type"),e.$el)},onChangeFieldObjectType:function(e){acf.doAction("change_field_type",e.$el),acf.doAction("change_field_type/type="+e.get("type"),e.$el),acf.doAction("render_field_settings",e.$el),acf.doAction("render_field_settings/type="+e.get("type"),e.$el)},onChangeFieldObjectLabel:function(e){acf.doAction("change_field_label",e.$el),acf.doAction("change_field_label/type="+e.get("type"),e.$el)},onChangeFieldObjectName:function(e){acf.doAction("change_field_name",e.$el),acf.doAction("change_field_name/type="+e.get("type"),e.$el)},onChangeFieldObjectParent:function(e){acf.doAction("update_field_parent",e.$el)}})}(jQuery);
1
+ !function(o,e){var t=new acf.Model({id:"fieldGroupManager",events:{"submit #post":"onSubmit",'click a[href="#"]':"onClick","click .submitdelete":"onClickTrash"},filters:{find_fields_args:"filterFindFieldArgs"},onSubmit:function(e,t){var i=o("#titlewrap #title");i.val()||(e.preventDefault(),acf.unlockForm(t),alert(acf.__("Field group title is required")),i.focus())},onClick:function(e){e.preventDefault()},onClickTrash:function(e){var t;confirm(acf.__("Move to trash. Are you sure?"))||e.preventDefault()},filterFindFieldArgs:function(e){return e.visible=!0,e}}),i=new acf.Model({id:"screenOptionsManager",wait:"prepare",events:{change:"onChange"},initialize:function(){var e=o("#adv-settings"),t=o("#acf-append-show-on-screen");e.find(".metabox-prefs").append(t.html()),e.find(".metabox-prefs br").remove(),t.remove(),this.$el=o("#acf-field-key-hide"),this.render()},isChecked:function(){return this.$el.prop("checked")},onChange:function(e,t){var i=this.isChecked()?1:0;acf.updateUserSetting("show_field_keys",i),this.render()},render:function(){this.isChecked()?o("#acf-field-group-fields").addClass("show-field-keys"):o("#acf-field-group-fields").removeClass("show-field-keys")}}),n=new acf.Model({actions:{new_field:"onNewField"},onNewField:function(e){if(e.has("append")){var t=e.get("append"),i=e.$el.siblings('[data-name="'+t+'"]').first();if(i.length){var n=i.children(".acf-input"),a=n.children("ul");a.length||(n.wrapInner('<ul class="acf-hl"><li></li></ul>'),a=n.children("ul"));var c=e.$(".acf-input").html(),l=o("<li>"+c+"</li>");a.append(l),a.attr("data-cols",a.children().length),e.remove()}}}})}(jQuery),function(s,i){acf.FieldObject=acf.Model.extend({eventScope:".acf-field-object",events:{"click .edit-field":"onClickEdit","click .delete-field":"onClickDelete","click .duplicate-field":"duplicate","click .move-field":"move","change .field-type":"onChangeType","change .field-required":"onChangeRequired","blur .field-label":"onChangeLabel","blur .field-name":"onChangeName",change:"onChange",changed:"onChanged"},data:{id:0,key:"",type:""},setup:function(e){this.$el=e,this.inherit(e),this.prop("ID"),this.prop("parent"),this.prop("menu_order")},$input:function(e){return s("#"+this.getInputId()+"-"+e)},$meta:function(){return this.$(".meta:first")},$handle:function(){return this.$(".handle:first")},$settings:function(){return this.$(".settings:first")},$setting:function(e){return this.$(".acf-field-settings:first > .acf-field-setting-"+e)},getParent:function(){return acf.getFieldObjects({child:this.$el,limit:1}).pop()},getParents:function(){return acf.getFieldObjects({child:this.$el})},getFields:function(){return acf.getFieldObjects({parent:this.$el})},getInputName:function(){return"acf_fields["+this.get("id")+"]"},getInputId:function(){return"acf_fields-"+this.get("id")},newInput:function(e,t){var i=this.getInputId(),n=this.getInputName();e&&(i+="-"+e,n+="["+e+"]");var a=s("<input />").attr({id:i,name:n,value:t});return this.$("> .meta").append(a),a},getProp:function(e){if(this.has(e))return this.get(e);var t=this.$input(e),i=t.length?t.val():null;return this.set(e,i,!0),i},setProp:function(e,t){var i=this.$input(e),n=i.val();return i.length||(i=this.newInput(e,t)),null===t?i.remove():i.val(t),this.has(e)?this.set(e,t):this.set(e,t,!0),this},prop:function(e,t){return t!==i?this.setProp(e,t):this.getProp(e)},props:function(t){Object.keys(t).map(function(e){this.setProp(e,t[e])},this)},getLabel:function(){var e=this.prop("label");return""===e&&(e=acf.__("(no label)")),e},getName:function(){return this.prop("name")},getType:function(){return this.prop("type")},getTypeLabel:function(){var e=this.prop("type"),t=acf.get("fieldTypes");return t[e]?t[e].label:e},getKey:function(){return this.prop("key")},initialize:function(){},render:function(){var e=this.$(".handle:first"),t=this.prop("menu_order"),i=this.getLabel(),n=this.prop("name"),a=this.getTypeLabel(),c=this.prop("key"),l=this.$input("required").prop("checked");e.find(".acf-icon").html(parseInt(t)+1),l&&(i+=' <span class="acf-required">*</span>'),e.find(".li-field-label strong a").html(i),e.find(".li-field-name").text(n),e.find(".li-field-type").text(a),e.find(".li-field-key").text(c),acf.doAction("render_field_object",this)},refresh:function(){acf.doAction("refresh_field_object",this)},isOpen:function(){return this.$el.hasClass("open")},onClickEdit:function(e){this.isOpen()?this.close():this.open()},open:function(){var e=this.$el.children(".settings");e.slideDown(),this.$el.addClass("open"),acf.doAction("open_field_object",this),this.trigger("openFieldObject"),acf.doAction("show",e)},close:function(){var e=this.$el.children(".settings");e.slideUp(),this.$el.removeClass("open"),acf.doAction("close_field_object",this),this.trigger("closeFieldObject"),acf.doAction("hide",e)},serialize:function(){return acf.serialize(this.$el,this.getInputName())},save:function(e){var t;e=e||"settings","settings"!==this.getProp("save")&&(this.setProp("save",e),this.$el.attr("data-save",e),acf.doAction("save_field_object",this,e))},submit:function(){var e=this.getInputName(),t=this.get("save");this.isOpen()&&this.close(),"settings"==t||("meta"==t?this.$('> .settings [name^="'+e+'"]').remove():this.$('[name^="'+e+'"]').remove()),acf.doAction("submit_field_object",this)},onChange:function(e,t){this.save(),acf.doAction("change_field_object",this)},onChanged:function(e,t,i,n){"save"!=i&&(-1<["menu_order","parent"].indexOf(i)?this.save("meta"):this.save(),-1<["menu_order","label","required","name","type","key"].indexOf(i)&&this.render(),acf.doAction("change_field_object_"+i,this,n))},onChangeLabel:function(e,t){var i=t.val();if(this.set("label",i),""==this.prop("name")){var n=acf.applyFilters("generate_field_object_name",acf.strSanitize(i),this);this.prop("name",n)}},onChangeName:function(e,t){var i=t.val();this.set("name",i),"field_"===i.substr(0,6)&&alert(acf.__('The string "field_" may not be used at the start of a field name'))},onChangeRequired:function(e,t){var i=t.prop("checked")?1:0;this.set("required",i)},delete:function(e){e=acf.parseArgs(e,{animate:!0});var t=this.prop("ID");if(t){var i=s("#_acf_delete_fields"),n=i.val()+"|"+t;i.val(n)}acf.doAction("delete_field_object",this),e.animate?this.removeAnimate():this.remove()},onClickDelete:function(e,t){this.$el.addClass("-hover");var i=this,n=acf.newTooltip({confirmRemove:!0,target:t,confirm:function(){i.delete(!0)},cancel:function(){i.$el.removeClass("-hover")}})},removeAnimate:function(){var e=this,t=this.$el.parent(),i=acf.findFieldObjects({sibling:this.$el});acf.remove({target:this.$el,endHeight:i.length?0:50,complete:function(){e.remove(),acf.doAction("removed_field_object",e,t)}}),acf.doAction("remove_field_object",e,t)},duplicate:function(){var e=acf.uniqid("field_"),t=acf.duplicate({target:this.$el,search:this.get("id"),replace:e});t.attr("data-key",e);var i=acf.getFieldObject(t);this.isOpen()?this.close():i.open();var n=i.$setting("label input");setTimeout(function(){n.focus()},251);var a=i.prop("label"),c=i.prop("name"),l=c.split("_").pop(),o=acf.__("copy");if(s.isNumeric(l)){var r=1*l+1;a=a.replace(l,r),c=c.replace(l,r)}else if(0===l.indexOf(o)){var r;r=(r=1*l.replace(o,""))?r+1:2,a=a.replace(l,o+r),c=c.replace(l,o+r)}else a+=" ("+o+")",c+="_"+o;i.prop("ID",0),i.prop("label",a),i.prop("name",c),i.prop("key",e),acf.doAction("duplicate_field_object",this,i),acf.doAction("append_field_object",i)},wipe:function(){var e=this.get("id"),t=this.get("key"),i=acf.uniqid("field_");acf.rename({target:this.$el,search:e,replace:i}),this.set("id",i),this.set("prevId",e),this.set("prevKey",t),this.prop("key",i),this.prop("ID",0),this.$el.attr("data-key",i),this.$el.attr("data-id",i),acf.doAction("wipe_field_object",this)},move:function(){var t=function(e){return"settings"==e.get("save")},i=t(this);if(i||acf.getFieldObjects({parent:this.$el}).map(function(e){i=t(e)||e.changed}),i)alert(acf.__("This field cannot be moved until its changes have been saved"));else{var n=this.prop("ID"),a=this,c=!1,e=function(){c=acf.newPopup({title:acf.__("Move Custom Field"),loading:!0,width:"300px"});var e={action:"acf/field_group/move_field",field_id:n};s.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"html",success:l})},l=function(e){c.loading(!1),c.content(e),c.on("submit","form",o)},o=function(e,t){e.preventDefault(),acf.startButtonLoading(c.$(".button"));var i={action:"acf/field_group/move_field",field_id:n,field_group_id:c.$("select").val()};s.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),type:"post",dataType:"html",success:r})},r=function(e){c.content(e),a.removeAnimate()};e()}},onChangeType:function(e,t){this.changeTimeout&&clearTimeout(this.changeTimeout),this.changeTimeout=this.setTimeout(function(){this.changeType(t.val())},300)},changeType:function(e){var t=this.prop("type"),i=acf.strSlugify("acf-field-object-"+t),n=acf.strSlugify("acf-field-object-"+e);this.$el.removeClass(i).addClass(n),this.$el.attr("data-type",e),this.$el.data("type",e),this.has("xhr")&&this.get("xhr").abort();var a=this.$("> .settings > table > tbody"),c=a.children('[data-setting="'+t+'"]');if(this.set("settings-"+t,c),c.detach(),this.has("settings-"+e)){var l=this.get("settings-"+e);return this.$setting("conditional_logic").before(l),void this.set("type",e)}var o=s('<tr class="acf-field"><td class="acf-label"></td><td class="acf-input"><div class="acf-loading"></div></td></tr>');this.$setting("conditional_logic").before(o);var r={action:"acf/field_group/render_field_settings",field:this.serialize(),prefix:this.getInputName()},d=s.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(r),type:"post",dataType:"html",context:this,success:function(e){e&&(o.after(e),acf.doAction("append",a))},complete:function(){o.remove(),this.set("type",e)}});this.set("xhr",d)},updateParent:function(){var e=acf.get("post_id"),t=this.getParent();t&&(e=parseInt(t.prop("ID"))||t.prop("key")),this.prop("parent",e)}})}(jQuery),function(i,e){var l=function(e){return acf.strPascalCase(e||"")+"FieldSetting"};acf.registerFieldSetting=function(e){var t=e.prototype,i=l(t.type+" "+t.name);this.models[i]=e},acf.newFieldSetting=function(e){var t=e.get("setting")||"",i=e.get("name")||"",n=l(t+" "+i),a=acf.models[n]||null,c;return null!==a&&new a(e)},acf.getFieldSetting=function(e){return e instanceof jQuery&&(e=acf.getField(e)),e.setting};var t=new acf.Model({actions:{new_field:"onNewField"},onNewField:function(e){e.setting=acf.newFieldSetting(e)}});acf.FieldSetting=acf.Model.extend({field:!1,type:"",name:"",wait:"ready",eventScope:".acf-field",events:{change:"render"},setup:function(e){var t=e.$el;this.$el=t,this.field=e,this.$fieldObject=t.closest(".acf-field-object"),this.fieldObject=acf.getFieldObject(this.$fieldObject),i.extend(this.data,e.data)},initialize:function(){this.render()},render:function(){}});var n=acf.FieldSetting.extend({type:"",name:"",render:function(){var e=this.$('input[type="radio"]:checked');"other"!=e.val()&&this.$('input[type="text"]').val(e.val())}}),a=n.extend({type:"date_picker",name:"display_format"}),c=n.extend({type:"date_picker",name:"return_format"});acf.registerFieldSetting(a),acf.registerFieldSetting(c);var o=n.extend({type:"date_time_picker",name:"display_format"}),r=n.extend({type:"date_time_picker",name:"return_format"});acf.registerFieldSetting(o),acf.registerFieldSetting(r);var d=n.extend({type:"time_picker",name:"display_format"}),s=n.extend({name:"time_picker",name:"return_format"});acf.registerFieldSetting(d),acf.registerFieldSetting(s)}(jQuery),function(d,e){var t=acf.FieldSetting.extend({type:"",name:"conditional_logic",events:{"change .conditions-toggle":"onChangeToggle","click .add-conditional-group":"onClickAddGroup","focus .condition-rule-field":"onFocusField","change .condition-rule-field":"onChangeField","change .condition-rule-operator":"onChangeOperator","click .add-conditional-rule":"onClickAdd","click .remove-conditional-rule":"onClickRemove"},$rule:!1,scope:function(e){return this.$rule=e,this},ruleData:function(e,t){return this.$rule.data.apply(this.$rule,arguments)},$input:function(e){return this.$rule.find(".condition-rule-"+e)},$td:function(e){return this.$rule.find("td."+e)},$toggle:function(){return this.$(".conditions-toggle")},$control:function(){return this.$(".rule-groups")},$groups:function(){return this.$(".rule-group")},$rules:function(){return this.$(".rule")},open:function(){var e=this.$control();e.show(),acf.enable(e)},close:function(){var e=this.$control();e.hide(),acf.disable(e)},render:function(){this.$toggle().prop("checked")?(this.renderRules(),this.open()):this.close()},renderRules:function(){var e=this;this.$rules().each(function(){e.renderRule(d(this))})},renderRule:function(e){this.scope(e),this.renderField(),this.renderOperator(),this.renderValue()},renderField:function(){var a=[],e=[],c=this.fieldObject.cid,t=this.$input("field");acf.getFieldObjects().map(function(e){var t={id:e.getKey(),text:e.getLabel()},i;e.cid===c&&(t.text+=acf.__("(this field)"),t.disabled=!0),acf.getConditionTypes({fieldType:e.getType()}).length||(t.disabled=!0);var n=e.getParents().length;t.text="- ".repeat(n)+t.text,a.push(t)}),a.length||a.push({id:"",text:acf.__("No toggle fields available")}),acf.renderSelect(t,a),this.ruleData("field",t.val())},renderOperator:function(){if(this.ruleData("field")){var e=this.$input("operator"),t=e.val(),i=[];null===e.val()&&acf.renderSelect(e,[{id:this.ruleData("operator"),text:""}]);var n=acf.findFieldObject(this.ruleData("field")),a=acf.getFieldObject(n),c;acf.getConditionTypes({fieldType:a.getType()}).map(function(e){i.push({id:e.prototype.operator,text:acf.strEscape(e.prototype.label)})}),acf.renderSelect(e,i),this.ruleData("operator",e.val())}},renderValue:function(){if(this.ruleData("field")&&this.ruleData("operator")){var t=this.$input("value"),e=this.$td("value"),i=t.val(),n=acf.findFieldObject(this.ruleData("field")),a=acf.getFieldObject(n),c,l,o=acf.getConditionTypes({fieldType:a.getType(),operator:this.ruleData("operator")})[0].prototype.choices(a);if(o instanceof Array){var r=d("<select></select>");acf.renderSelect(r,o)}else var r=d(o);t.detach(),e.html(r),setTimeout(function(){["class","name","id"].map(function(e){r.attr(e,t.attr(e))})},0),r.prop("disabled")||acf.val(r,i,!0),this.ruleData("value",r.val())}},onChangeToggle:function(){this.render()},onClickAddGroup:function(e,t){this.addGroup()},addGroup:function(){var e=this.$(".rule-group:last"),t=acf.duplicate(e);t.find("h4").text(acf.__("or")),t.find("tr").not(":first").remove(),this.fieldObject.save()},onFocusField:function(e,t){this.renderField()},onChangeField:function(e,t){this.scope(t.closest(".rule")),this.ruleData("field",t.val()),this.renderOperator(),this.renderValue()},onChangeOperator:function(e,t){this.scope(t.closest(".rule")),this.ruleData("operator",t.val()),this.renderValue()},onClickAdd:function(e,t){var i=acf.duplicate(t.closest(".rule"));this.renderRule(i)},onClickRemove:function(e,t){var i=t.closest(".rule");this.fieldObject.save(),0==i.siblings(".rule").length&&i.closest(".rule-group").remove(),i.remove()}});acf.registerFieldSetting(t);var i=new acf.Model({actions:{duplicate_field_objects:"onDuplicateFieldObjects"},onDuplicateFieldObjects:function(e,t,i){var n={},a=d();e.map(function(e){n[e.get("prevKey")]=e.get("key"),a=a.add(e.$(".condition-rule-field"))}),a.each(function(){var e=d(this),t=e.val();t&&n[t]&&(e.find("option:selected").attr("value",n[t]),e.val(n[t]))})}})}(jQuery),function(r,e){acf.findFieldObject=function(e){return acf.findFieldObjects({key:e,limit:1})},acf.findFieldObjects=function(e){e=e||{};var t=".acf-field-object",i=!1;return(e=acf.parseArgs(e,{id:"",key:"",type:"",limit:!1,list:null,parent:!1,sibling:!1,child:!1})).id&&(t+='[data-id="'+e.id+'"]'),e.key&&(t+='[data-key="'+e.key+'"]'),e.type&&(t+='[data-type="'+e.type+'"]'),i=e.list?e.list.children(t):e.parent?e.parent.find(t):e.sibling?e.sibling.siblings(t):e.child?e.child.parents(t):r(t),e.limit&&(i=i.slice(0,e.limit)),i},acf.getFieldObject=function(e){"string"==typeof e&&(e=acf.findFieldObject(e));var t=e.data("acf");return t||(t=acf.newFieldObject(e)),t},acf.getFieldObjects=function(e){var t=acf.findFieldObjects(e),i=[];return t.each(function(){var e=acf.getFieldObject(r(this));i.push(e)}),i},acf.newFieldObject=function(e){var t=new acf.FieldObject(e);return acf.doAction("new_field_object",t),t};var t=new acf.Model({priority:5,initialize:function(){var e;["prepare","ready","append","remove"].map(function(e){this.addFieldActions(e)},this)},addFieldActions:function(e){var n=e+"_field_objects",a=e+"_field_object",c=e+"FieldObject",t=function(e){var t=acf.getFieldObjects({parent:e});if(t.length){var i=acf.arrayArgs(arguments);i.splice(0,1,n,t),acf.doAction.apply(null,i)}},i=function(e){var t=acf.arrayArgs(arguments);t.unshift(a),e.map(function(e){t[1]=e,acf.doAction.apply(null,t)})},l=function(t){var i=acf.arrayArgs(arguments),e;i.unshift(a),["type","name","key"].map(function(e){i[0]=a+"/"+e+"="+t.get(e),acf.doAction.apply(null,i)}),i.splice(0,2),t.trigger(c,i)};acf.addAction(e,t,5),acf.addAction(n,i,5),acf.addAction(a,l,5)}}),i=new acf.Model({id:"fieldManager",events:{"submit #post":"onSubmit","mouseenter .acf-field-list":"onHoverSortable","click .add-field":"onClickAdd"},actions:{removed_field_object:"onRemovedField",sortstop_field_object:"onReorderField",delete_field_object:"onDeleteField",change_field_object_type:"onChangeFieldType",duplicate_field_object:"onDuplicateField"},onSubmit:function(e,t){var i;acf.getFieldObjects().map(function(e){e.submit()})},setFieldMenuOrder:function(e){this.renderFields(e.$el.parent())},onHoverSortable:function(e,n){n.hasClass("ui-sortable")||n.sortable({handle:".acf-sortable-handle",connectWith:".acf-field-list",start:function(e,t){var i=acf.getFieldObject(t.item);t.placeholder.height(t.item.height()),acf.doAction("sortstart_field_object",i,n)},update:function(e,t){var i=acf.getFieldObject(t.item);acf.doAction("sortstop_field_object",i,n)}})},onRemovedField:function(e,t){this.renderFields(t)},onReorderField:function(e,t){e.updateParent(),this.renderFields(t)},onDeleteField:function(e){e.getFields().map(function(e){e.delete({animate:!1})})},onChangeFieldType:function(e){},onDuplicateField:function(e,t){var i=t.getFields();i.length&&(i.map(function(e){e.wipe(),e.updateParent()}),acf.doAction("duplicate_field_objects",i,t,e)),this.setFieldMenuOrder(t)},renderFields:function(e){var t=acf.getFieldObjects({list:e});t.length?(e.removeClass("-empty"),t.map(function(e,t){e.prop("menu_order",t)})):e.addClass("-empty")},onClickAdd:function(e,t){var i=t.closest(".acf-tfoot").siblings(".acf-field-list");this.addField(i)},addField:function(i){var e=r("#tmpl-acf-field").html(),t=r(e),n=t.data("id"),a=acf.uniqid("field_"),c=acf.duplicate({target:t,search:n,replace:a,append:function(e,t){i.append(t)}}),l=acf.getFieldObject(c);l.prop("key",a),l.prop("ID",0),l.prop("label",""),l.prop("name",""),c.attr("data-key",a),c.attr("data-id",a),l.updateParent();var o=l.$input("label");setTimeout(function(){o.focus()},251),l.open(),this.renderFields(i),acf.doAction("add_field_object",l),acf.doAction("append_field_object",l)}})}(jQuery),function(a,e){var t=new acf.Model({id:"locationManager",wait:"ready",events:{"click .add-location-rule":"onClickAddRule","click .add-location-group":"onClickAddGroup","click .remove-location-rule":"onClickRemoveRule","change .refresh-location-rule":"onChangeRemoveRule"},initialize:function(){this.$el=a("#acf-field-group-locations")},onClickAddRule:function(e,t){this.addRule(t.closest("tr"))},onClickRemoveRule:function(e,t){this.removeRule(t.closest("tr"))},onChangeRemoveRule:function(e,t){this.changeRule(t.closest("tr"))},onClickAddGroup:function(e,t){this.addGroup()},addRule:function(e){acf.duplicate(e)},removeRule:function(e){0==e.siblings("tr").length?e.closest(".rule-group").remove():e.remove()},changeRule:function(t){var e=t.closest(".rule-group"),i=t.find("td.param select").attr("name").replace("[param]",""),n={action:"acf/field_group/render_location_rule"};n.rule=acf.serialize(t,i),n.rule.id=t.data("id"),n.rule.group=e.data("id"),acf.disable(t.find("td.value")),a.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(n),type:"post",dataType:"html",success:function(e){e&&t.replaceWith(e)}})},addGroup:function(){var e=this.$(".rule-group:last");$group2=acf.duplicate(e),$group2.find("h4").text(acf.__("or")),$group2.find("tr").not(":first").remove()}})}(jQuery),function(l,i){var e=acf.getCompatibility(acf);e.field_group={save_field:function(e,t){t=t!==i?t:"settings",acf.getFieldObject(e).save(t)},delete_field:function(e,t){t=t===i||t,acf.getFieldObject(e).delete({animate:t})},update_field_meta:function(e,t,i){acf.getFieldObject(e).prop(t,i)},delete_field_meta:function(e,t){acf.getFieldObject(e).prop(t,null)}},e.field_group.field_object=acf.model.extend({type:"",o:{},$field:null,$settings:null,tag:function(e){var t=this.type,i=e.split("_");return i.splice(1,0,"field"),e=i.join("_"),t&&(e+="/type="+t),e},selector:function(){var e=".acf-field-object",t=this.type;return t&&(e+="-"+t,e=acf.str_replace("_","-",e)),e},_add_action:function(e,t){var i=this;acf.add_action(this.tag(e),function(e){i.set("$field",e),i[t].apply(i,arguments)})},_add_filter:function(e,t){var i=this;acf.add_filter(this.tag(e),function(e){i.set("$field",e),i[t].apply(i,arguments)})},_add_event:function(e,t){var i=this,n=e.substr(0,e.indexOf(" ")),a=e.substr(e.indexOf(" ")+1),c=this.selector();l(document).on(n,c+" "+a,function(e){e.$el=l(this),e.$field=e.$el.closest(".acf-field-object"),i.set("$field",e.$field),i[t].apply(i,[e])})},_set_$field:function(){this.o=this.$field.data(),this.$settings=this.$field.find("> .settings > table > tbody"),this.focus()},focus:function(){},setting:function(e){return this.$settings.find("> .acf-field-setting-"+e)}});var t=new acf.Model({actions:{open_field_object:"onOpenFieldObject",close_field_object:"onCloseFieldObject",add_field_object:"onAddFieldObject",duplicate_field_object:"onDuplicateFieldObject",delete_field_object:"onDeleteFieldObject",change_field_object_type:"onChangeFieldObjectType",change_field_object_label:"onChangeFieldObjectLabel",change_field_object_name:"onChangeFieldObjectName",change_field_object_parent:"onChangeFieldObjectParent",sortstop_field_object:"onChangeFieldObjectParent"},onOpenFieldObject:function(e){acf.doAction("open_field",e.$el),acf.doAction("open_field/type="+e.get("type"),e.$el),acf.doAction("render_field_settings",e.$el),acf.doAction("render_field_settings/type="+e.get("type"),e.$el)},onCloseFieldObject:function(e){acf.doAction("close_field",e.$el),acf.doAction("close_field/type="+e.get("type"),e.$el)},onAddFieldObject:function(e){acf.doAction("add_field",e.$el),acf.doAction("add_field/type="+e.get("type"),e.$el)},onDuplicateFieldObject:function(e){acf.doAction("duplicate_field",e.$el),acf.doAction("duplicate_field/type="+e.get("type"),e.$el)},onDeleteFieldObject:function(e){acf.doAction("delete_field",e.$el),acf.doAction("delete_field/type="+e.get("type"),e.$el)},onChangeFieldObjectType:function(e){acf.doAction("change_field_type",e.$el),acf.doAction("change_field_type/type="+e.get("type"),e.$el),acf.doAction("render_field_settings",e.$el),acf.doAction("render_field_settings/type="+e.get("type"),e.$el)},onChangeFieldObjectLabel:function(e){acf.doAction("change_field_label",e.$el),acf.doAction("change_field_label/type="+e.get("type"),e.$el)},onChangeFieldObjectName:function(e){acf.doAction("change_field_name",e.$el),acf.doAction("change_field_name/type="+e.get("type"),e.$el)},onChangeFieldObjectParent:function(e){acf.doAction("update_field_parent",e.$el)}})}(jQuery);
assets/js/acf-input.js CHANGED
@@ -3718,70 +3718,220 @@
3718
 
3719
  (function($, undefined){
3720
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3721
  acf.models.Postbox = acf.Model.extend({
3722
 
3723
  data: {
3724
- id: '',
3725
  key: '',
3726
  style: 'default',
3727
  label: 'top',
3728
- editLink: '',
3729
- editTitle: '',
3730
- visibility: true
3731
  },
3732
 
3733
  setup: function( props ){
 
 
 
 
 
 
 
3734
  $.extend(this.data, props);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3735
  },
3736
 
3737
  initialize: function(){
3738
 
3739
- // vars
3740
- var id = this.get('id');
3741
- var $postbox = $('#' + id);
3742
- var $toggle = $('#' + id + '-hide');
3743
- var $label = $toggle.parent();
3744
-
3745
- // add class
3746
- $postbox.addClass('acf-postbox');
3747
- $label.addClass('acf-postbox-toggle');
3748
 
3749
- // remove class
3750
- $postbox.removeClass('hide-if-js');
3751
- $label.removeClass('hide-if-js');
3752
 
3753
- // field group style
3754
  var style = this.get('style');
3755
  if( style !== 'default' ) {
3756
- $postbox.addClass( style );
3757
  }
3758
 
3759
- // .inside class
3760
- $postbox.children('.inside').addClass('acf-fields').addClass('-' + this.get('label'));
3761
 
3762
-
3763
- // visibility
3764
- if( this.get('visibility') ) {
3765
- $toggle.prop('checked', true);
3766
- } else {
3767
- $postbox.addClass('acf-hidden');
3768
- $label.addClass('acf-hidden');
3769
  }
3770
 
3771
- // edit link
3772
- var editLink = this.get('editLink');
3773
- var editTitle = this.get('editTitle');
3774
- if( editLink ) {
3775
-
3776
- $postbox.children('.hndle').append('<a href="' + editLink + '" class="dashicons dashicons-admin-generic acf-hndle-cog acf-js-tooltip" title="' + editTitle + '"></a>');
 
 
 
3777
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3778
  }
3779
  });
3780
-
3781
- acf.newPostbox = function( props ){
3782
- return new acf.models.Postbox( props );
3783
- };
3784
-
3785
  })(jQuery);
3786
 
3787
  (function($, undefined){
@@ -8626,6 +8776,9 @@
8626
  var oldId = $textarea.attr('id');
8627
  var newId = acf.uniqueId('acf-editor-');
8628
 
 
 
 
8629
  // rename
8630
  acf.rename({
8631
  target: $wrap,
@@ -8639,6 +8792,10 @@
8639
 
8640
  // initialize
8641
  acf.tinymce.initialize( newId, args );
 
 
 
 
8642
  },
8643
 
8644
  onMousedown: function( e ){
@@ -10494,22 +10651,6 @@
10494
 
10495
  initialize: function(){
10496
 
10497
- /*
10498
- // disable if not active
10499
- if( !this.active ) {
10500
- this.events = {};
10501
- }
10502
-
10503
- // bail early if not for post
10504
- if( acf.get('screen') !== 'post' ) {
10505
- return;
10506
- }
10507
-
10508
- 'check_screen_data'
10509
-
10510
- 'check_screen_events'
10511
-
10512
- */
10513
  },
10514
  /*
10515
 
@@ -10670,7 +10811,7 @@
10670
  var ajaxData = acf.parseArgs(this.data, {
10671
  action: 'acf/ajax/check_screen',
10672
  screen: acf.get('screen'),
10673
- exclude: []
10674
  });
10675
 
10676
  // post id
@@ -10703,11 +10844,16 @@
10703
  ajaxData.post_terms = postTerms;
10704
  }
10705
 
10706
- // exclude existing postboxes
10707
- $('.acf-postbox').not('.acf-hidden').each(function(){
10708
- ajaxData.exclude.push( $(this).attr('id').substr(4) );
 
 
10709
  });
10710
 
 
 
 
10711
  // success
10712
  var onSuccess = function( json ){
10713
 
@@ -10716,51 +10862,40 @@
10716
  return;
10717
  }
10718
 
10719
- // hide
10720
- $('.acf-postbox').addClass('acf-hidden');
10721
- $('.acf-postbox-toggle').addClass('acf-hidden');
10722
-
10723
- // reset style
10724
- $('#acf-style').html('');
10725
 
10726
  // loop
10727
- json.data.map(function( fieldGroup, i ){
10728
 
10729
  // vars
10730
- var $postbox = $('#acf-' + fieldGroup.key);
10731
- var $toggle = $('#acf-' + fieldGroup.key + '-hide');
10732
- var $label = $toggle.parent();
10733
-
10734
- // show
10735
- // use show() to force display when postbox has been hidden by 'Show on screen' toggle
10736
- $postbox.removeClass('acf-hidden hide-if-js').show();
10737
- $label.removeClass('acf-hidden hide-if-js').show();
10738
- $toggle.prop('checked', true);
10739
 
10740
- // replace HTML if needed
10741
- var $replace = $postbox.find('.acf-replace-with-fields');
10742
- if( $replace.exists() ) {
10743
- $replace.replaceWith( fieldGroup.html );
10744
- acf.doAction('append', $postbox);
10745
- }
10746
 
10747
- // update style if needed
10748
- if( i === 0 ) {
10749
- $('#acf-style').html( fieldGroup.style );
10750
- }
10751
 
10752
- // enable inputs
10753
- acf.enable( $postbox, 'postbox' );
 
 
10754
  });
10755
- };
10756
-
10757
- // complete
10758
- var onComplete = function( json ){
10759
 
10760
- // disable inputs
10761
- $('.acf-postbox.acf-hidden').each(function(){
10762
- acf.disable( $(this), 'postbox' );
 
 
10763
  });
 
 
 
 
 
 
10764
  };
10765
 
10766
  // ajax
@@ -10770,8 +10905,7 @@
10770
  type: 'post',
10771
  dataType: 'json',
10772
  context: this,
10773
- success: onSuccess,
10774
- complete: onComplete
10775
  });
10776
  },
10777
 
@@ -14079,5 +14213,3 @@
14079
  // @codekit-prepend "../js/acf-validation.js";
14080
  // @codekit-prepend "../js/acf-helpers.js";
14081
  // @codekit-prepend "../js/acf-compatibility";
14082
-
14083
-
3718
 
3719
  (function($, undefined){
3720
 
3721
+ /**
3722
+ * acf.getPostbox
3723
+ *
3724
+ * Returns a postbox instance.
3725
+ *
3726
+ * @date 23/9/18
3727
+ * @since 5.7.7
3728
+ *
3729
+ * @param mixed $el Either a jQuery element or the postbox id.
3730
+ * @return object
3731
+ */
3732
+ acf.getPostbox = function( $el ){
3733
+
3734
+ // allow string parameter
3735
+ if( typeof arguments[0] == 'string' ) {
3736
+ $el = $('#' + arguments[0]);
3737
+ }
3738
+
3739
+ // return instance
3740
+ return acf.getInstance( $el );
3741
+ };
3742
+
3743
+ /**
3744
+ * acf.getPostboxes
3745
+ *
3746
+ * Returns an array of postbox instances.
3747
+ *
3748
+ * @date 23/9/18
3749
+ * @since 5.7.7
3750
+ *
3751
+ * @param void
3752
+ * @return array
3753
+ */
3754
+ acf.getPostboxes = function(){
3755
+
3756
+ // find all postboxes
3757
+ var $postboxes = $('.acf-postbox');
3758
+
3759
+ // return instances
3760
+ return acf.getInstances( $postboxes );
3761
+ };
3762
+
3763
+ /**
3764
+ * acf.newPostbox
3765
+ *
3766
+ * Returns a new postbox instance for the given props.
3767
+ *
3768
+ * @date 20/9/18
3769
+ * @since 5.7.6
3770
+ *
3771
+ * @param object props The postbox properties.
3772
+ * @return object
3773
+ */
3774
+ acf.newPostbox = function( props ){
3775
+ return new acf.models.Postbox( props );
3776
+ };
3777
+
3778
+ /**
3779
+ * acf.models.Postbox
3780
+ *
3781
+ * The postbox model.
3782
+ *
3783
+ * @date 20/9/18
3784
+ * @since 5.7.6
3785
+ *
3786
+ * @param void
3787
+ * @return void
3788
+ */
3789
  acf.models.Postbox = acf.Model.extend({
3790
 
3791
  data: {
3792
+ id: '',
3793
  key: '',
3794
  style: 'default',
3795
  label: 'top',
3796
+ visible: true,
3797
+ edit: '',
3798
+ html: true,
3799
  },
3800
 
3801
  setup: function( props ){
3802
+
3803
+ // compatibilty
3804
+ if( props.editLink ) {
3805
+ props.edit = props.editLink;
3806
+ }
3807
+
3808
+ // extend data
3809
  $.extend(this.data, props);
3810
+
3811
+ // set $el
3812
+ this.$el = this.$postbox();
3813
+ },
3814
+
3815
+ $postbox: function(){
3816
+ return $('#' + this.get('id'));
3817
+ },
3818
+
3819
+ $placeholder: function(){
3820
+ return $('#' + this.get('id') + '-placeholder');
3821
+ },
3822
+
3823
+ $hide: function(){
3824
+ return $('#' + this.get('id') + '-hide');
3825
+ },
3826
+
3827
+ $hideLabel: function(){
3828
+ return this.$hide().parent();
3829
+ },
3830
+
3831
+ $hndle: function(){
3832
+ return this.$('> .hndle');
3833
+ },
3834
+
3835
+ $inside: function(){
3836
+ return this.$('> .inside');
3837
+ },
3838
+
3839
+ isVisible: function(){
3840
+ return this.get('visible');
3841
+ },
3842
+
3843
+ hasHTML: function(){
3844
+ return this.get('html');
3845
  },
3846
 
3847
  initialize: function(){
3848
 
3849
+ // Add default class.
3850
+ this.$el.addClass('acf-postbox');
 
 
 
 
 
 
 
3851
 
3852
+ // Remove 'hide-if-js class.
3853
+ // This class is added by WP to postboxes that are hidden via the "Screen Options" tab.
3854
+ this.$el.removeClass('hide-if-js');
3855
 
3856
+ // Add field group style class.
3857
  var style = this.get('style');
3858
  if( style !== 'default' ) {
3859
+ this.$el.addClass( style );
3860
  }
3861
 
3862
+ // Add .inside class.
3863
+ this.$inside().addClass('acf-fields').addClass('-' + this.get('label'));
3864
 
3865
+ // Append edit link.
3866
+ var edit = this.get('edit');
3867
+ if( edit ) {
3868
+ this.$hndle().append('<a href="' + edit + '" class="dashicons dashicons-admin-generic acf-hndle-cog acf-js-tooltip" title="' + acf.__('Edit field group') + '"></a>');
 
 
 
3869
  }
3870
 
3871
+ // Show postbox.
3872
+ if( this.isVisible() ) {
3873
+ this.show();
3874
+
3875
+ // Hide postbox.
3876
+ // Hidden postboxes do not contain HTML and are used as placeholders.
3877
+ } else {
3878
+ this.set('html', false);
3879
+ this.hide();
3880
  }
3881
+ },
3882
+
3883
+ show: function(){
3884
+
3885
+ // Show label.
3886
+ this.$hideLabel().show();
3887
+
3888
+ // toggle on checkbox
3889
+ this.$hide().prop('checked', true);
3890
+
3891
+ // Show postbox
3892
+ this.$el.show();
3893
+ },
3894
+
3895
+ enable: function(){
3896
+ acf.enable( this.$el, 'postbox' );
3897
+ },
3898
+
3899
+ showEnable: function(){
3900
+ this.show();
3901
+ this.enable();
3902
+ },
3903
+
3904
+ hide: function(){
3905
+
3906
+ // Hide label.
3907
+ this.$hideLabel().hide();
3908
+
3909
+ // Hide postbox
3910
+ this.$el.hide();
3911
+ },
3912
+
3913
+ disable: function(){
3914
+ acf.disable( this.$el, 'postbox' );
3915
+ },
3916
+
3917
+ hideDisable: function(){
3918
+ this.hide();
3919
+ this.disable();
3920
+ },
3921
+
3922
+ html: function( html ){
3923
+
3924
+ // Update HTML.
3925
+ this.$inside().html( html );
3926
+
3927
+ // Keep a record that this postbox has HTML.
3928
+ this.set('html', true);
3929
+
3930
+ // Do action.
3931
+ acf.doAction('append', this.$el);
3932
  }
3933
  });
3934
+
 
 
 
 
3935
  })(jQuery);
3936
 
3937
  (function($, undefined){
8776
  var oldId = $textarea.attr('id');
8777
  var newId = acf.uniqueId('acf-editor-');
8778
 
8779
+ // store copy of textarea data
8780
+ var data = $textarea.data();
8781
+
8782
  // rename
8783
  acf.rename({
8784
  target: $wrap,
8792
 
8793
  // initialize
8794
  acf.tinymce.initialize( newId, args );
8795
+
8796
+ // apply data to new textarea (acf.rename creates a new textarea element due to destructive mode)
8797
+ // fixes bug where conditional logic "disabled" is lost during "screen_check"
8798
+ this.$input().data(data);
8799
  },
8800
 
8801
  onMousedown: function( e ){
10651
 
10652
  initialize: function(){
10653
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10654
  },
10655
  /*
10656
 
10811
  var ajaxData = acf.parseArgs(this.data, {
10812
  action: 'acf/ajax/check_screen',
10813
  screen: acf.get('screen'),
10814
+ exists: []
10815
  });
10816
 
10817
  // post id
10844
  ajaxData.post_terms = postTerms;
10845
  }
10846
 
10847
+ // add array of existing postboxes to increase performance and reduce JSON HTML
10848
+ acf.getPostboxes().map(function( postbox ){
10849
+ if( postbox.hasHTML() ) {
10850
+ ajaxData.exists.push( postbox.get('key') );
10851
+ }
10852
  });
10853
 
10854
+ // filter
10855
+ ajaxData = acf.applyFilters('check_screen_args', ajaxData);
10856
+
10857
  // success
10858
  var onSuccess = function( json ){
10859
 
10862
  return;
10863
  }
10864
 
10865
+ // vars
10866
+ var visible = [];
 
 
 
 
10867
 
10868
  // loop
10869
+ json.data.results.map(function( fieldGroup, i ){
10870
 
10871
  // vars
10872
+ var id = 'acf-' + fieldGroup.key;
10873
+ var postbox = acf.getPostbox( id );
 
 
 
 
 
 
 
10874
 
10875
+ // show postbox
10876
+ postbox.showEnable();
 
 
 
 
10877
 
10878
+ // append
10879
+ visible.push( id );
 
 
10880
 
10881
+ // update HTML
10882
+ if( !postbox.hasHTML() && fieldGroup.html ) {
10883
+ postbox.html( fieldGroup.html );
10884
+ }
10885
  });
 
 
 
 
10886
 
10887
+ // hide other postboxes
10888
+ acf.getPostboxes().map(function( postbox ){
10889
+ if( visible.indexOf( postbox.get('id') ) === -1 ) {
10890
+ postbox.hideDisable();
10891
+ }
10892
  });
10893
+
10894
+ // reset style
10895
+ $('#acf-style').html( json.data.style );
10896
+
10897
+ // action
10898
+ acf.doAction('check_screen_complete', json.data, ajaxData);
10899
  };
10900
 
10901
  // ajax
10905
  type: 'post',
10906
  dataType: 'json',
10907
  context: this,
10908
+ success: onSuccess
 
10909
  });
10910
  },
10911
 
14213
  // @codekit-prepend "../js/acf-validation.js";
14214
  // @codekit-prepend "../js/acf-helpers.js";
14215
  // @codekit-prepend "../js/acf-compatibility";
 
 
assets/js/acf-input.min.js CHANGED
@@ -1,4 +1,4 @@
1
- !function($,t){var e={};window.acf=e,e.data={},e.get=function(t){return this.data[t]||null},e.has=function(t){return null!==this.get(t)},e.set=function(t,e){return this.data[t]=e,this};var i=0;e.uniqueId=function(t){var e=++i+"";return t?t+e:e},e.uniqueArray=function(t){function e(t,e,i){return i.indexOf(t)===e}return t.filter(e)};var n="";e.uniqid=function(t,e){void 0===t&&(t="");var i,a=function(t,e){return t=parseInt(t,10).toString(16),e<t.length?t.slice(t.length-e):e>t.length?Array(e-t.length+1).join("0")+t:t};return n||(n=Math.floor(123456789*Math.random())),n++,i=t,i+=a(parseInt((new Date).getTime()/1e3,10),8),i+=a(n,5),e&&(i+=(10*Math.random()).toFixed(8).toString()),i},e.strReplace=function(t,e,i){return i.split(t).join(e)},e.strCamelCase=function(t){return t=t.replace(/[_-]/g," "),t=t.replace(/(?:^\w|\b\w|\s+)/g,function(t,e){return 0==+t?"":0==e?t.toLowerCase():t.toUpperCase()})},e.strPascalCase=function(t){var i=e.strCamelCase(t);return i.charAt(0).toUpperCase()+i.slice(1)},e.strSlugify=function(t){return e.strReplace("_","-",t.toLowerCase())},e.strSanitize=function(t){var e={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","ß":"s","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o"," ":"_","'":"","?":"","/":"","\\":"",".":"",",":"","`":"",">":"","<":"",'"':"","[":"","]":"","|":"","{":"","}":"","(":"",")":""},i=/\W/g,n=function(t){return void 0!==e[t]?e[t]:t};return t=t.replace(i,n),t=t.toLowerCase()},e.strMatch=function(t,e){for(var i=0,n=Math.min(t.length,e.length),a=0;a<n&&t[a]===e[a];a++)i++;return i},e.decode=function(t){return $("<textarea/>").html(t).text()},e.strEscape=function(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})},e.parseArgs=function(t,e){return"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={}),$.extend({},e,t)},void 0==window.acfL10n&&(acfL10n={}),e.__=function(t){return acfL10n[t]||t},e._x=function(t,e){return acfL10n[t+"."+e]||acfL10n[t]||t},e._n=function(t,i,n){return 1==n?e.__(t):e.__(i)},e.isArray=function(t){return Array.isArray(t)},e.isObject=function(t){return"object"==typeof t};var a=function(t,i,n){i=i.replace("[]","[%%index%%]");var a=i.match(/([^\[\]])+/g);if(a)for(var r=a.length,s=t,o=0;o<r;o++){var c=String(a[o]);o==r-1?"%%index%%"===c?s.push(n):s[c]=n:("%%index%%"===a[o+1]?e.isArray(s[c])||(s[c]=[]):e.isObject(s[c])||(s[c]={}),s=s[c])}};e.serialize=function(t,i){var n={},r=e.serializeArray(t);void 0!==i&&(r=r.filter(function(t){return 0===t.name.indexOf(i)}).map(function(t){return t.name=t.name.slice(i.length),t}));for(var s=0;s<r.length;s++)a(n,r[s].name,r[s].value);return n},e.serializeArray=function(t){return t.find("select, textarea, input").serializeArray()},e.addAction=function(t,i,n,a){return e.hooks.addAction.apply(this,arguments),this},e.removeAction=function(t,i){return e.hooks.removeAction.apply(this,arguments),this};var r={};e.doAction=function(t){return r[t]=1,e.hooks.doAction.apply(this,arguments),r[t]=0,this},e.doingAction=function(t){return 1===r[t]},e.didAction=function(t){return void 0!==r[t]},e.currentAction=function(){for(var t in r)if(r[t])return t;return!1},e.addFilter=function(t){return e.hooks.addFilter.apply(this,arguments),this},e.removeFilter=function(t){return e.hooks.removeFilter.apply(this,arguments),this},e.applyFilters=function(t){return e.hooks.applyFilters.apply(this,arguments)},e.arrayArgs=function(t){return Array.prototype.slice.call(t)};try{var s=JSON.parse(localStorage.getItem("acf"))||{}}catch(t){var s={}}var o=function(t){return"this."===t.substr(0,5)&&(t=t.substr(5)+"-"+e.get("post_id")),t};e.getPreference=function(t){return t=o(t),s[t]||null},e.setPreference=function(t,e){t=o(t),null===e?delete s[t]:s[t]=e,localStorage.setItem("acf",JSON.stringify(s))},e.removePreference=function(t){e.setPreference(t,null)},e.remove=function(t){t instanceof jQuery&&(t={target:t}),t=e.parseArgs(t,{target:!1,endHeight:0,complete:function(){}}),e.doAction("remove",t.target),t.target.is("tr")?l(t):c(t)};var c=function(t){var e=t.target,i=e.height(),n=e.width(),a=e.css("margin"),r=e.outerHeight(!0),s=e.attr("style")+"";e.wrap('<div class="acf-temp-remove" style="height:'+r+'px"></div>');var o=e.parent();e.css({height:i,width:n,margin:a,position:"absolute"}),setTimeout(function(){o.css({opacity:0,height:t.endHeight})},50),setTimeout(function(){e.attr("style",s),o.remove(),t.complete()},301)},l=function(t){var e=t.target,i=e.height(),n=e.children().length,a=$('<td class="acf-temp-remove" style="padding:0; height:'+i+'px" colspan="'+n+'"></td>');e.addClass("acf-remove-element"),setTimeout(function(){e.html(a)},251),setTimeout(function(){e.removeClass("acf-remove-element"),a.css({height:t.endHeight})},300),setTimeout(function(){e.remove(),t.complete()},451)};e.duplicate=function(t){t instanceof jQuery&&(t={target:t});var i=0;t=e.parseArgs(t,{target:!1,search:"",replace:"",before:function(t){},after:function(t,e){},append:function(t,e){t.after(e),i=1}}),t.target=t.target||t.$el;var n=t.target;t.search=t.search||n.attr("data-id"),t.replace=t.replace||e.uniqid(),t.before(n),e.doAction("before_duplicate",n);var a=n.clone();return e.rename({target:a,search:t.search,replace:t.replace}),a.removeClass("acf-clone"),a.find(".ui-sortable").removeClass("ui-sortable"),t.after(n,a),e.doAction("after_duplicate",n,a),t.append(n,a),e.doAction("append",a),a},e.rename=function(t){t instanceof jQuery&&(t={target:t}),t=e.parseArgs(t,{target:!1,destructive:!1,search:"",replace:""});var i=t.target,n=t.search||i.attr("data-id"),a=t.replace||e.uniqid("acf"),r=function(t,e){return e.replace(n,a)};if(t.destructive){var s=i.outerHTML();s=e.strReplace(n,a,s),i.replaceWith(s)}else i.attr("data-id",a),i.find('[id*="'+n+'"]').attr("id",r),i.find('[for*="'+n+'"]').attr("for",r),i.find('[name*="'+n+'"]').attr("name",r);return i},e.prepareForAjax=function(t){return t.nonce=e.get("nonce"),t.post_id=e.get("post_id"),e.has("language")&&(t.lang=e.get("language")),t=e.applyFilters("prepare_for_ajax",t)},e.startButtonLoading=function(t){t.prop("disabled",!0),t.after(' <i class="acf-loading"></i>')},e.stopButtonLoading=function(t){t.prop("disabled",!1),t.next(".acf-loading").remove()},e.showLoading=function(t){t.append('<div class="acf-loading-overlay"><i class="acf-loading"></i></div>')},e.hideLoading=function(t){t.children(".acf-loading-overlay").remove()},e.updateUserSetting=function(t,i){var n={action:"acf/ajax/user_setting",name:t,value:i};$.ajax({url:e.get("ajaxurl"),data:e.prepareForAjax(n),type:"post",dataType:"html"})},e.val=function(t,e,i){var n=t.val();return e!==n&&(t.val(e),t.is("select")&&null===t.val()?(t.val(n),!1):(!0!==i&&t.trigger("change"),!0))},e.show=function(t,i){return i&&e.unlock(t,"hidden",i),!e.isLocked(t,"hidden")&&(!!t.hasClass("acf-hidden")&&(t.removeClass("acf-hidden"),!0))},e.hide=function(t,i){return i&&e.lock(t,"hidden",i),!t.hasClass("acf-hidden")&&(t.addClass("acf-hidden"),!0)},e.isHidden=function(t){return t.hasClass("acf-hidden")},e.isVisible=function(t){return!e.isHidden(t)};var d=function(t,i){return!t.hasClass("acf-disabled")&&(i&&e.unlock(t,"disabled",i),!e.isLocked(t,"disabled")&&(!!t.prop("disabled")&&(t.prop("disabled",!1),!0)))};e.enable=function(t,e){if(t.attr("name"))return d(t,e);var i=!1;return t.find("[name]").each(function(){d($(this),e)&&(i=!0)}),i};var u=function(t,i){return i&&e.lock(t,"disabled",i),!t.prop("disabled")&&(t.prop("disabled",!0),!0)};e.disable=function(t,e){if(t.attr("name"))return u(t,e);var i=!1;return t.find("[name]").each(function(){u($(this),e)&&(i=!0)}),i},e.isset=function(t){for(var e=1;e<arguments.length;e++){if(!t||!t.hasOwnProperty(arguments[e]))return!1;t=t[arguments[e]]}return!0},e.isget=function(t){for(var e=1;e<arguments.length;e++){if(!t||!t.hasOwnProperty(arguments[e]))return null;t=t[arguments[e]]}return t},e.getFileInputData=function(t,i){var n=t.val();if(!n)return!1;var a={url:n},r=e.isget(t[0],"files",0);if(r)if(a.size=r.size,a.type=r.type,r.type.indexOf("image")>-1){var s=window.URL||window.webkitURL,o=new Image;o.onload=function(){a.width=this.width,a.height=this.height,i(a)},o.src=s.createObjectURL(r)}else i(a);else i(a)},e.isAjaxSuccess=function(t){return t&&t.success},e.getAjaxMessage=function(t){return e.isget(t,"data","message")},e.getAjaxError=function(t){return e.isget(t,"data","error")},e.renderSelect=function(t,i){var n=t.val(),a=[],r=function(t){var i="";return t.map(function(t){var n=t.text||t.label||"",s=t.id||t.value||"";a.push(s),t.children?i+='<optgroup label="'+e.strEscape(n)+'">'+r(t.children)+"</optgroup>":i+='<option value="'+s+'"'+(t.disabled?' disabled="disabled"':"")+">"+e.strEscape(n)+"</option>"}),i};return t.html(r(i)),a.indexOf(n)>-1&&t.val(n),t.val()};var f=function(t,e){return t.data("acf-lock-"+e)||[]},h=function(t,e,i){t.data("acf-lock-"+e,i)};e.lock=function(t,e,i){var n=f(t,e);n.indexOf(i)<0&&(n.push(i),h(t,e,n))},e.unlock=function(t,e,i){var n=f(t,e),a=n.indexOf(i);return a>-1&&(n.splice(a,1),h(t,e,n)),0===n.length},e.isLocked=function(t,e){return f(t,e).length>0},$.fn.exists=function(){return $(this).length>0},$.fn.outerHTML=function(){return $(this).get(0).outerHTML},Array.prototype.indexOf||(Array.prototype.indexOf=function(t){return $.inArray(t,this)}),$(document).ready(function(){e.doAction("ready")}),$(window).on("load",function(){e.doAction("load")}),$(window).on("beforeunload",function(){e.doAction("unload")}),$(window).on("resize",function(){e.doAction("resize")}),$(document).on("sortstart",function(t,i){e.doAction("sortstart",i.item,i.placeholder)}),$(document).on("sortstop",function(t,i){e.doAction("sortstop",i.item,i.placeholder)})}(jQuery),function(t,e){"use strict";var i=function(){function t(){return f}function e(t,e,i,n){return"string"==typeof t&&"function"==typeof e&&(i=parseInt(i||10,10),c("actions",t,e,i,n)),u}function i(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e&&d("actions",e,t),u}function n(t,e){return"string"==typeof t&&o("actions",t,e),u}function a(t,e,i,n){return"string"==typeof t&&"function"==typeof e&&(i=parseInt(i||10,10),c("filters",t,e,i,n)),u}function r(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e?d("filters",e,t):u}function s(t,e){return"string"==typeof t&&o("filters",t,e),u}function o(t,e,i,n){if(f[t][e])if(i){var a=f[t][e],r;if(n)for(r=a.length;r--;){var s=a[r];s.callback===i&&s.context===n&&a.splice(r,1)}else for(r=a.length;r--;)a[r].callback===i&&a.splice(r,1)}else f[t][e]=[]}function c(t,e,i,n,a){var r={callback:i,priority:n,context:a},s=f[t][e];s?(s.push(r),s=l(s)):s=[r],f[t][e]=s}function l(t){for(var e,i,n,a=1,r=t.length;a<r;a++){for(e=t[a],i=a;(n=t[i-1])&&n.priority>e.priority;)t[i]=t[i-1],--i;t[i]=e}return t}function d(t,e,i){var n=f[t][e];if(!n)return"filters"===t&&i[0];var a=0,r=n.length;if("filters"===t)for(;a<r;a++)i[0]=n[a].callback.apply(n[a].context,i);else for(;a<r;a++)n[a].callback.apply(n[a].context,i);return"filters"!==t||i[0]}var u={removeFilter:s,applyFilters:r,addFilter:a,removeAction:n,doAction:i,addAction:e,storage:t},f={actions:{},filters:{}};return u};acf.hooks=new i}(window),function($,t){var e=/^(\S+)\s*(.*)$/,i=function(t){var e=this,i;return i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},$.extend(i,e),i.prototype=Object.create(e.prototype),$.extend(i.prototype,t),i.prototype.constructor=i,i},n=acf.Model=function(){this.cid=acf.uniqueId("acf"),this.data=$.extend(!0,{},this.data),this.setup.apply(this,arguments),this.$el&&!this.$el.data("acf")&&this.$el.data("acf",this);var t=function(){this.initialize(),this.addEvents(),this.addActions(),this.addFilters()};this.wait&&!acf.didAction(this.wait)?this.addAction(this.wait,t):t.apply(this)};$.extend(n.prototype,{id:"",cid:"",$el:null,data:{},busy:!1,changed:!1,events:{},actions:{},filters:{},eventScope:"",wait:!1,priority:10,get:function(t){return this.data[t]},has:function(t){return null!=this.get(t)},set:function(t,e,i){var n=this.get(t);return n==e?this:(this.data[t]=e,i||(this.changed=!0,this.trigger("changed:"+t,[e,n]),this.trigger("changed",[t,e,n])),this)},inherit:function(t){return t instanceof jQuery&&(t=t.data()),$.extend(this.data,t),this},prop:function(){return this.$el.prop.apply(this.$el,arguments)},setup:function(t){$.extend(this,t)},initialize:function(){},addElements:function(t){if(!(t=t||this.elements||null)||!Object.keys(t).length)return!1;for(var e in t)this.addElement(e,t[e])},addElement:function(t,e){this["$"+t]=this.$(e)},addEvents:function(t){if(!(t=t||this.events||null))return!1;for(var i in t){var n=i.match(e);this.on(n[1],n[2],t[i])}},removeEvents:function(t){if(!(t=t||this.events||null))return!1;for(var i in t){var n=i.match(e);this.off(n[1],n[2],t[i])}},getEventTarget:function(t,e){return t||this.$el||$(document)},validateEvent:function(t){return!this.eventScope||$(t.target).closest(this.eventScope).is(this.$el)},proxyEvent:function(t){return this.proxy(function(e){if(this.validateEvent(e)){var i=acf.arrayArgs(arguments),n=i.slice(1),a=[e,$(e.currentTarget)].concat(n);t.apply(this,a)}})},on:function(t,e,i,n){var a,r,s,o,c;t instanceof jQuery?n?(a=t,r=e,s=i,o=n):(a=t,r=e,o=i):i?(r=t,s=e,o=i):(r=t,o=e),a=this.getEventTarget(a),"string"==typeof o&&(o=this.proxyEvent(this[o])),r=r+"."+this.cid,c=s?[r,s,o]:[r,o],a.on.apply(a,c)},off:function(t,e,i){var n,a,r,s;t instanceof jQuery?i?(n=t,a=e,r=i):(n=t,a=e):e?(a=t,r=e):a=t,n=this.getEventTarget(n),a=a+"."+this.cid,s=r?[a,r]:[a],n.off.apply(n,s)},trigger:function(t,e,i){var n=this.getEventTarget();return i?n.trigger.apply(n,arguments):n.triggerHandler.apply(n,arguments),this},addActions:function(t){if(!(t=t||this.actions||null))return!1;for(var e in t)this.addAction(e,t[e])},removeActions:function(t){if(!(t=t||this.actions||null))return!1;for(var e in t)this.removeAction(e,t[e])},addAction:function(t,e,i){i=i||this.priority,"string"==typeof e&&(e=this[e]),acf.addAction(t,e,i,this)},removeAction:function(t,e){acf.removeAction(t,this[e])},addFilters:function(t){if(!(t=t||this.filters||null))return!1;for(var e in t)this.addFilter(e,t[e])},addFilter:function(t,e,i){i=i||this.priority,"string"==typeof e&&(e=this[e]),acf.addFilter(t,e,i,this)},removeFilters:function(t){if(!(t=t||this.filters||null))return!1;for(var e in t)this.removeFilter(e,t[e])},removeFilter:function(t,e){acf.removeFilter(t,this[e])},$:function(t){return this.$el.find(t)},remove:function(){this.removeEvents(),this.removeActions(),this.removeFilters(),this.$el.remove()},setTimeout:function(t,e){return setTimeout(this.proxy(t),e)},time:function(){console.time(this.id||this.cid)},timeEnd:function(){console.timeEnd(this.id||this.cid)},show:function(){acf.show(this.$el)},hide:function(){acf.hide(this.$el)},proxy:function(t){return $.proxy(t,this)}}),n.extend=i,acf.models={},acf.getInstance=function(t){return t.data("acf")},acf.getInstances=function(t){var e=[];return t.each(function(){e.push(acf.getInstance($(this)))}),e}}(jQuery),function($,t){acf.models.Popup=acf.Model.extend({data:{title:"",content:"",width:0,height:0,loading:!1},events:{'click [data-event="close"]':"onClickClose","click .acf-close-popup":"onClickClose"},setup:function(t){$.extend(this.data,t),this.$el=$(this.tmpl())},initialize:function(){this.render(),this.open()},tmpl:function(){return['<div id="acf-popup">','<div class="acf-popup-box acf-box">','<div class="title"><h3></h3><a href="#" class="acf-icon -cancel grey" data-event="close"></a></div>','<div class="inner"></div>','<div class="loading"><i class="acf-loading"></i></div>',"</div>",'<div class="bg" data-event="close"></div>',"</div>"].join("")},render:function(){var t=this.get("title"),e=this.get("content"),i=this.get("loading"),n=this.get("width"),a=this.get("height");this.title(t),this.content(e),n&&this.$(".acf-popup-box").css("width",n),a&&this.$(".acf-popup-box").css("min-height",a),this.loading(i),acf.doAction("append",this.$el)},update:function(t){this.data=acf.parseArgs(t,this.data),this.render()},title:function(t){this.$(".title:first h3").html(t)},content:function(t){this.$(".inner:first").html(t)},loading:function(t){var e=this.$(".loading:first");t?e.show():e.hide()},open:function(){$("body").append(this.$el)},close:function(){this.remove()},onClickClose:function(t,e){t.preventDefault(),this.close()}}),acf.newPopup=function(t){return new acf.models.Popup(t)}}(jQuery),function($,t){acf.unload=new acf.Model({wait:"load",active:!0,changed:!1,actions:{validation_failure:"startListening"},events:{"change .acf-field":"startListening","submit form":"stopListening"},reset:function(){this.stopListening()},startListening:function(){!this.changed&&this.active&&(this.changed=!0,$(window).on("beforeunload",this.onUnload))},stopListening:function(){this.changed=!1,$(window).off("beforeunload",this.onUnload)},onUnload:function(){return acf.__("The changes you made will be lost if you navigate away from this page")}})}(jQuery),function($,t){var e=new acf.Model({events:{"click .acf-panel-title":"onClick"},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},isOpen:function(t){return t.hasClass("-open")},toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},open:function(t){t.addClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-down")},close:function(t){t.removeClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-right")}})}(jQuery),function($,t){var e=acf.Model.extend({data:{text:"",type:"",timeout:0,dismiss:!0,target:!1,close:function(){}},events:{"click .acf-notice-dismiss":"onClickClose"},tmpl:function(){return'<div class="acf-notice"></div>'},setup:function(t){$.extend(this.data,t),this.$el=$(this.tmpl())},initialize:function(){this.render(),this.show()},render:function(){this.type(this.get("type")),this.html("<p>"+this.get("text")+"</p>"),this.get("dismiss")&&(this.$el.append('<a href="#" class="acf-notice-dismiss acf-icon -cancel small"></a>'),this.$el.addClass("-dismiss"));var t=this.get("timeout");t&&this.away(t)},update:function(t){$.extend(this.data,t),this.initialize(),this.removeEvents(),this.addEvents()},show:function(){var t=this.get("target");t&&t.prepend(this.$el)},hide:function(){this.$el.remove()},away:function(t){this.setTimeout(function(){acf.remove(this.$el)},t)},type:function(t){var e=this.get("type");e&&this.$el.removeClass("-"+e),this.$el.addClass("-"+t),"error"==t&&this.$el.addClass("acf-error-message")},html:function(t){this.$el.html(t)},text:function(t){this.$("p").html(t)},onClickClose:function(t,e){t.preventDefault(),this.get("close").apply(this,arguments),this.remove()}});acf.newNotice=function(t){return"object"!=typeof t&&(t={text:t}),new e(t)};var i=new acf.Model({wait:"prepare",priority:1,initialize:function(){var t=$(".acf-admin-notice");t.length&&$("h1:first").after(t)}})}(jQuery),function($,t){acf.models.Postbox=acf.Model.extend({data:{id:"",key:"",style:"default",label:"top",editLink:"",editTitle:"",visibility:!0},setup:function(t){$.extend(this.data,t)},initialize:function(){var t=this.get("id"),e=$("#"+t),i=$("#"+t+"-hide"),n=i.parent();e.addClass("acf-postbox"),n.addClass("acf-postbox-toggle"),e.removeClass("hide-if-js"),n.removeClass("hide-if-js");var a=this.get("style");"default"!==a&&e.addClass(a),e.children(".inside").addClass("acf-fields").addClass("-"+this.get("label")),this.get("visibility")?i.prop("checked",!0):(e.addClass("acf-hidden"),n.addClass("acf-hidden"));var r=this.get("editLink"),s=this.get("editTitle");r&&e.children(".hndle").append('<a href="'+r+'" class="dashicons dashicons-admin-generic acf-hndle-cog acf-js-tooltip" title="'+s+'"></a>')}}),acf.newPostbox=function(t){return new acf.models.Postbox(t)}}(jQuery),function($,t){acf.newTooltip=function(t){return"object"!=typeof t&&(t={text:t}),void 0!==t.confirmRemove?(t.textConfirm=acf.__("Remove"),t.textCancel=acf.__("Cancel"),new i(t)):void 0!==t.confirm?new i(t):new e(t)};var e=acf.Model.extend({data:{text:"",timeout:0,target:null},tmpl:function(){return'<div class="acf-tooltip"></div>'},setup:function(t){$.extend(this.data,t),this.$el=$(this.tmpl())},initialize:function(){this.render(),this.show(),this.position();var t=this.get("timeout");t&&setTimeout($.proxy(this.fade,this),t)},update:function(t){$.extend(this.data,t),this.initialize()},render:function(){this.html(this.get("text"))},show:function(){$("body").append(this.$el)},hide:function(){this.$el.remove()},fade:function(){this.$el.addClass("acf-fade-up"),this.setTimeout(function(){this.remove()},250)},html:function(t){this.$el.html(t)},position:function(){var t=this.$el,e=this.get("target");if(e){t.removeClass("right left bottom top");var i=10,n=e.outerWidth(),a=e.outerHeight(),r=e.offset().top,s=e.offset().left,o=t.outerWidth(),c=t.outerHeight(),l=r-c,d=s+n/2-o/2;d<10?(t.addClass("right"),d=s+n,l=r+a/2-c/2):d+o+10>$(window).width()?(t.addClass("left"),d=s-o,l=r+a/2-c/2):l-$(window).scrollTop()<10?(t.addClass("bottom"),l=r+a):t.addClass("top"),t.css({top:l,left:d})}}}),i=e.extend({data:{text:"",textConfirm:"",textCancel:"",target:null,targetConfirm:!0,confirm:function(){},cancel:function(){},context:!1},events:{'click [data-event="cancel"]':"onCancel",'click [data-event="confirm"]':"onConfirm"},addEvents:function(){acf.Model.prototype.addEvents.apply(this);var t=$(document),e=this.get("target");this.setTimeout(function(){this.on(t,"click","onCancel")}),this.get("targetConfirm")&&this.on(e,"click","onConfirm")},removeEvents:function(){acf.Model.prototype.removeEvents.apply(this);var t=$(document),e=this.get("target");this.off(t,"click"),this.off(e,"click")},render:function(){var t=this.get("text")||acf.__("Are you sure?"),e=this.get("textConfirm")||acf.__("Yes"),i=this.get("textCancel")||acf.__("No"),n=[t,'<a href="#" data-event="confirm">'+e+"</a>",'<a href="#" data-event="cancel">'+i+"</a>"].join(" ");this.html(n),this.$el.addClass("-confirm")},onCancel:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var i=this.get("cancel"),n=this.get("context")||this;i.apply(n,arguments),this.remove()},onConfirm:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var i=this.get("confirm"),n=this.get("context")||this;i.apply(n,arguments),this.remove()}});acf.models.Tooltip=e,acf.models.TooltipConfirm=i;var n=new acf.Model({tooltip:!1,events:{"mouseenter .acf-js-tooltip":"showTitle","mouseup .acf-js-tooltip":"hideTitle","mouseleave .acf-js-tooltip":"hideTitle"},showTitle:function(t,e){var i=e.attr("title");i&&(e.attr("title",""),this.tooltip?this.tooltip.update({text:i,target:e}):this.tooltip=acf.newTooltip({text:i,target:e}))},hideTitle:function(t,e){this.tooltip.hide(),e.attr("title",this.tooltip.get("text"))}})}(jQuery),function($,t){var e=[];acf.Field=acf.Model.extend({type:"",eventScope:".acf-field",wait:"ready",setup:function(t){this.$el=t,this.inherit(t),this.inherit(this.$control())},val:function(t){return void 0!==t?this.setValue(t):this.prop("disabled")?null:this.getValue()},getValue:function(){return this.$input().val()},setValue:function(t){return acf.val(this.$input(),t)},__:function(t){return acf._e(this.type,t)},$control:function(){return!1},$input:function(){return this.$("[name]:first")},$inputWrap:function(){return this.$(".acf-input:first")},$labelWrap:function(){return this.$(".acf-label:first")},getInputName:function(){return this.$input().attr("name")||""},parent:function(){var t=this.parents();return!!t.length&&t[0]},parents:function(){var t=this.$el.parents(".acf-field");return acf.getFields(t)},show:function(t,e){var i=acf.show(this.$el,t);return i&&(this.prop("hidden",!1),acf.doAction("show_field",this,e)),i},hide:function(t,e){var i=acf.hide(this.$el,t);return i&&(this.prop("hidden",!0),acf.doAction("hide_field",this,e)),i},enable:function(t,e){var i=acf.enable(this.$el,t);return i&&(this.prop("disabled",!1),acf.doAction("enable_field",this,e)),i},disable:function(t,e){var i=acf.disable(this.$el,t);return i&&(this.prop("disabled",!0),acf.doAction("disable_field",this,e)),i},showEnable:function(t,e){return this.enable.apply(this,arguments),this.show.apply(this,arguments)},hideDisable:function(t,e){return this.disable.apply(this,arguments),this.hide.apply(this,arguments)},showNotice:function(t){"object"!=typeof t&&(t={text:t}),this.notice&&this.notice.remove(),t.target=this.$inputWrap(),this.notice=acf.newNotice(t)},removeNotice:function(t){this.notice&&(this.notice.away(t||0),this.notice=!1)},showError:function(t){this.$el.addClass("acf-error"),void 0!==t&&this.showNotice({text:t,type:"error",dismiss:!1}),acf.doAction("invalid_field",this),this.$el.one("focus change","input, select, textarea",$.proxy(this.removeError,this))},removeError:function(){this.$el.removeClass("acf-error"),this.removeNotice(250),acf.doAction("valid_field",this)},trigger:function(t,e,i){return"invalidField"==t&&(i=!0),acf.Model.prototype.trigger.apply(this,[t,e,i])}}),acf.newField=function(t){var e=t.data("type"),n=i(e),a=acf.models[n]||acf.Field,r=new a(t);return acf.doAction("new_field",r),r};var i=function(t){return acf.strPascalCase(t||"")+"Field"};acf.registerFieldType=function(t){var n=t.prototype,a=n.type,r=i(a);acf.models[r]=t,e.push(a)},acf.getFieldType=function(t){var e=i(t);return acf.models[e]||!1},acf.getFieldTypes=function(t){t=acf.parseArgs(t,{category:""});var i=[];return e.map(function(e){var n=acf.getFieldType(e),a=n.prototype;t.category&&a.category!==t.category||i.push(n)}),i}}(jQuery),function($,t){acf.findFields=function(t){var e=".acf-field",i=!1;return t=acf.parseArgs(t,{key:"",name:"",type:"",is:"",parent:!1,sibling:!1,limit:!1,visible:!1,suppressFilters:!1}),t.suppressFilters||(t=acf.applyFilters("find_fields_args",t)),t.key&&(e+='[data-key="'+t.key+'"]'),t.type&&(e+='[data-type="'+t.type+'"]'),t.name&&(e+='[data-name="'+t.name+'"]'),t.is&&(e+=t.is),t.visible&&(e+=":visible"),i=t.parent?t.parent.find(e):t.sibling?t.sibling.siblings(e):$(e),t.suppressFilters||(i=i.not(".acf-clone .acf-field"),i=acf.applyFilters("find_fields",i)),t.limit&&(i=i.slice(0,t.limit)),i},acf.findField=function(t,e){return acf.findFields({key:t,limit:1,parent:e,suppressFilters:!0})},acf.getField=function(t){t instanceof jQuery||(t=acf.findField(t));var e=t.data("acf");return e||(e=acf.newField(t)),e},acf.getFields=function(t){t instanceof jQuery||(t=acf.findFields(t));var e=[];return t.each(function(){var t=acf.getField($(this));e.push(t)}),e},acf.findClosestField=function(t){return t.closest(".acf-field")},acf.getClosestField=function(t){var e=acf.findClosestField(t);return this.getField(e)};var e=function(t){var e=t,n=t+"_fields",a=t+"_field",r=function(t){var e=acf.arrayArgs(arguments),i=e.slice(1),a=acf.getFields({parent:t});if(a.length){var r=[n,a].concat(i);acf.doAction.apply(null,r)}},s=function(t){var e=acf.arrayArgs(arguments),i=e.slice(1);t.map(function(t,e){var n=[a,t].concat(i);acf.doAction.apply(null,n)})};acf.addAction(e,r),acf.addAction(n,s),i(t)},i=function(t){var e=t+"_field",i=t+"Field",n=function(n){var a=acf.arrayArgs(arguments),s=a.slice(1);["type","name","key"].map(function(t){var i="/"+t+"="+n.get(t);a=[e+i,n].concat(s),acf.doAction.apply(null,a)}),r.indexOf(t)>-1&&n.trigger(i,s)};acf.addAction(e,n)},n=["prepare","ready","load","append","remove","sortstart","sortstop","show","hide","unload"],a=["valid","invalid","enable","disable","new"],r=["remove","sortstart","sortstop","show","hide","unload","valid","invalid","enable","disable"];n.map(e),a.map(i);var s=new acf.Model({id:"fieldsEventManager",events:{'click .acf-field a[href="#"]':"onClick","change .acf-field":"onChange"},onClick:function(t){t.preventDefault()},onChange:function(){$("#_acf_changed").val(1)}})}(jQuery),function($,t){var e=0,i=acf.Field.extend({type:"accordion",wait:"",$control:function(){return this.$(".acf-fields:first")},initialize:function(){if(!this.$el.is("td")){if(this.get("endpoint"))return this.remove();var t=this.$el,i=this.$labelWrap(),n=this.$inputWrap(),a=this.$control(),r=n.children(".description");if(r.length&&i.append(r),this.$el.is("tr")){var s=this.$el.closest("table"),o=$('<div class="acf-accordion-title"/>'),c=$('<div class="acf-accordion-content"/>'),l=$('<table class="'+s.attr("class")+'"/>'),d=$("<tbody/>");o.append(i.html()),l.append(d),c.append(l),n.append(o),n.append(c),i.remove(),a.remove(),n.attr("colspan",2),i=o,n=c,a=d}t.addClass("acf-accordion"),i.addClass("acf-accordion-title"),n.addClass("acf-accordion-content"),e++,this.get("multi_expand")&&t.attr("multi-expand",1);var u=acf.getPreference("this.accordions")||[];void 0!==u[e-1]&&this.set("open",u[e-1]),this.get("open")&&(t.addClass("-open"),n.css("display","block")),i.prepend('<i class="acf-accordion-icon dashicons dashicons-arrow-'+(this.get("open")?"down":"right")+'"></i>');var f=t.parent();a.addClass(f.hasClass("-left")?"-left":""),a.addClass(f.hasClass("-clear")?"-clear":""),a.append(t.nextUntil(".acf-field-accordion",".acf-field")),a.removeAttr("data-open data-multi_expand data-endpoint")}}});acf.registerFieldType(i);var n=new acf.Model({actions:{unload:"onUnload"},events:{"click .acf-accordion-title":"onClick","invalidField .acf-accordion":"onInvalidField"},isOpen:function(t){return t.hasClass("-open")},toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},open:function(t){t.find(".acf-accordion-content:first").slideDown().css("display","block"),t.find(".acf-accordion-icon:first").removeClass("dashicons-arrow-right").addClass("dashicons-arrow-down"),t.addClass("-open"),acf.doAction("show",t),t.attr("multi-expand")||t.siblings(".acf-accordion.-open").each(function(){n.close($(this))})},close:function(t){t.find(".acf-accordion-content:first").slideUp(),t.find(".acf-accordion-icon:first").removeClass("dashicons-arrow-down").addClass("dashicons-arrow-right"),t.removeClass("-open"),acf.doAction("hide",t)},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},onInvalidField:function(t,e){this.busy||(this.busy=!0,this.setTimeout(function(){this.busy=!1},1e3),this.open(e))},onUnload:function(t){var e=[];$(".acf-accordion").each(function(){var t=$(this).hasClass("-open")?1:0;e.push(t)}),e.length&&acf.setPreference("this.accordions",e)}})}(jQuery),function($,t){var e=acf.Field.extend({type:"button_group",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-button-group")},$input:function(){
2
- return this.$("input:checked")},setValue:function(t){this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")},onClick:function(t,e){var i=e.parent("label"),n=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"checkbox",events:{"change input":"onChange","click .acf-add-checkbox":"onClickAdd","click .acf-checkbox-toggle":"onClickToggle","click .acf-checkbox-custom":"onClickCustom"},$control:function(){return this.$(".acf-checkbox-list")},$toggle:function(){return this.$(".acf-checkbox-toggle")},$input:function(){return this.$('input[type="hidden"]')},$inputs:function(){return this.$('input[type="checkbox"]').not(".acf-checkbox-toggle")},getValue:function(){var t=[];return this.$(":checked").each(function(){t.push($(this).val())}),!!t.length&&t},onChange:function(t,e){var i=e.prop("checked"),n=this.$toggle();if(i?e.parent().addClass("selected"):e.parent().removeClass("selected"),n.length){0==this.$inputs().not(":checked").length?n.prop("checked",!0):n.prop("checked",!1)}},onClickAdd:function(t,e){var i='<li><input class="acf-checkbox-custom" type="checkbox" checked="checked" /><input type="text" name="'+this.getInputName()+'[]" /></li>';e.parent("li").before(i)},onClickToggle:function(t,e){var i=e.prop("checked");this.$inputs().prop("checked",i)},onClickCustom:function(t,e){var i=e.prop("checked"),n=e.next('input[type="text"]');i?n.prop("disabled",!1):(n.prop("disabled",!0),""==n.val()&&e.parent("li").remove())}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"color_picker",wait:"load",$control:function(){return this.$(".acf-color-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},initialize:function(){var t=this.$input(),e=this.$inputText(),i=function(i){setTimeout(function(){acf.val(t,e.val())},1)},n={defaultColor:!1,palettes:!0,hide:!0,change:i,clear:i},n=acf.applyFilters("color_picker_args",n,this);e.wpColorPicker(n)}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"date_picker",events:{'blur input[type="text"]':"onBlur"},$control:function(){return this.$(".acf-date-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},initialize:function(){if(this.has("save_format"))return this.initializeCompatibility();var t=this.$input(),e=this.$inputText(),i={dateFormat:this.get("date_format"),altField:t,altFormat:"yymmdd",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")};i=acf.applyFilters("date_picker_args",i,this),acf.newDatePicker(e,i),acf.doAction("date_picker_init",e,i,this)},initializeCompatibility:function(){var t=this.$input(),e=this.$inputText();e.val(t.val());var i={dateFormat:this.get("date_format"),altField:t,altFormat:this.get("save_format"),changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")};i=acf.applyFilters("date_picker_args",i,this);var n=i.dateFormat;i.dateFormat=this.get("save_format"),acf.newDatePicker(e,i),e.datepicker("option","dateFormat",n),acf.doAction("date_picker_init",e,i,this)},onBlur:function(){this.$inputText().val()||acf.val(this.$input(),"")}});acf.registerFieldType(e);var i=new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("datePickerL10n");return!!i&&(void 0!==$.datepicker&&(i.isRTL=e,$.datepicker.regional[t]=i,void $.datepicker.setDefaults(i)))}});acf.newDatePicker=function(t,e){if(void 0===$.datepicker)return!1;e=e||{},t.datepicker(e),$("body > #ui-datepicker-div").exists()&&$("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function($,t){var e=acf.models.DatePickerField.extend({type:"date_time_picker",$control:function(){return this.$(".acf-date-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),i={dateFormat:this.get("date_format"),timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altFormat:"yy-mm-dd",altTimeFormat:"HH:mm:ss",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day"),controlType:"select",oneLine:!0};i=acf.applyFilters("date_time_picker_args",i,this),acf.newDateTimePicker(e,i),acf.doAction("date_time_picker_init",e,i,this)}});acf.registerFieldType(e);var i=new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("dateTimePickerL10n");return!!i&&(void 0!==$.timepicker&&(i.isRTL=e,$.timepicker.regional[t]=i,void $.timepicker.setDefaults(i)))}});acf.newDateTimePicker=function(t,e){if(void 0===$.timepicker)return!1;e=e||{},t.datetimepicker(e),$("body > #ui-datepicker-div").exists()&&$("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function($,t){var e=acf.Field.extend({type:"google_map",map:!1,wait:"load",events:{'click a[data-name="clear"]':"onClickClear",'click a[data-name="locate"]':"onClickLocate",'click a[data-name="search"]':"onClickSearch","keydown .search":"onKeydownSearch","keyup .search":"onKeyupSearch","focus .search":"onFocusSearch","blur .search":"onBlurSearch",showField:"onShow"},$control:function(){return this.$(".acf-google-map")},$input:function(t){return this.$('input[data-name="'+(t||"address")+'"]')},$search:function(){return this.$(".search")},$canvas:function(){return this.$(".canvas")},addClass:function(t){this.$control().addClass(t)},removeClass:function(t){this.$control().removeClass(t)},getValue:function(){var t={lat:"",lng:"",address:""};return this.$('input[type="hidden"]').each(function(){t[$(this).data("name")]=$(this).val()}),t.lat&&t.lng||(t=!1),t},setValue:function(t){t=acf.parseArgs(t,{lat:"",lng:"",address:""});for(var e in t)acf.val(this.$input(e),t[e]);t.lat&&t.lng||(t=!1),this.renderVal(t)},renderVal:function(t){t?(this.addClass("-value"),this.setPosition(t.lat,t.lng),this.map.marker.setVisible(!0)):(this.removeClass("-value"),this.map.marker.setVisible(!1)),this.$search().val(t.address)},setPosition:function(t,e){var i=this.newLatLng(t,e);return this.map.marker.setPosition(i),this.map.marker.setVisible(!0),acf.doAction("google_map_change",i,this.map,this),this.center(),this},center:function(){var t=this.map.marker.getPosition(),e=this.get("lat"),i=this.get("lng");t&&(e=t.lat(),i=t.lng());var n=this.newLatLng(e,i);this.map.setCenter(n)},getSearchVal:function(){return this.$search().val()},initialize:function(){if(!i.isReady())return void i.ready(this.initializeMap,this);this.initializeMap()},newLatLng:function(t,e){return new google.maps.LatLng(parseFloat(t),parseFloat(e))},initializeMap:function(){var t=this.get("zoom"),e=this.get("lat"),i=this.get("lng"),n={scrollwheel:!1,zoom:parseInt(t),center:this.newLatLng(e,i),mapTypeId:google.maps.MapTypeId.ROADMAP,marker:{draggable:!0,raiseOnDrag:!0},autocomplete:{}};n=acf.applyFilters("google_map_args",n,this);var a=new google.maps.Map(this.$canvas()[0],n);this.addMapEvents(a,this);var r=acf.parseArgs(n.marker,{draggable:!0,raiseOnDrag:!0,map:a});r=acf.applyFilters("google_map_marker_args",r,this);var s=new google.maps.Marker(r);this.addMarkerEvents(s,this),a.acf=this,a.marker=s,this.map=a,acf.doAction("google_map_init",a,s,this);var o=this.getValue();this.renderVal(o)},addMapEvents:function(t,e){if(acf.isset(window,"google","maps","places","Autocomplete")){var i=t.autocomplete||{},n=new google.maps.places.Autocomplete(this.$search()[0],i);n.bindTo("bounds",t),google.maps.event.addListener(n,"place_changed",function(){var t=this.getPlace();t.address=e.getSearchVal(),e.setPlace(t)})}google.maps.event.addListener(t,"click",function(t){var i=t.latLng.lat(),n=t.latLng.lng();e.searchPosition(i,n)})},addMarkerEvents:function(t,e){google.maps.event.addListener(t,"dragend",function(){var t=this.getPosition(),i=t.lat(),n=t.lng();e.searchPosition(i,n)})},searchPosition:function(t,e){var n=this.newLatLng(t,e),a=this.$control();this.setPosition(t,e),a.addClass("-loading");var r=$.proxy(function(i,n){a.removeClass("-loading");var r="";n!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+n):i[0]?r=i[0].formatted_address:console.log("No results found"),this.val({lat:t,lng:e,address:r})},this);i.geocoder.geocode({latLng:n},r)},setPlace:function(t){if(!t)return this;if(t.name&&!t.geometry)return this.searchAddress(t.name),this;var e=t.geometry.location.lat(),i=t.geometry.location.lng(),n=t.address||t.formatted_address;return this.setValue({lat:e,lng:i,address:n}),this},searchAddress:function(t){var e=t.split(",");if(2==e.length){var n=e[0],a=e[1];if($.isNumeric(n)&&$.isNumeric(a))return this.searchPosition(n,a)}var r=this.$control();r.addClass("-loading");var s=this.proxy(function(e,i){r.removeClass("-loading");var n="",a="";i!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+i):e[0]?(n=e[0].geometry.location.lat(),a=e[0].geometry.location.lng()):console.log("No results found"),this.val({lat:n,lng:a,address:t})});i.geocoder.geocode({address:t},s)},searchLocation:function(){if(!navigator.geolocation)return alert(acf.__("Sorry, this browser does not support geolocation"));var t=this.$control();t.addClass("-loading");var e=$.proxy(function(e,i){t.removeClass("-loading");var n=e.coords.latitude,a=e.coords.longitude;this.searchPosition(n,a)},this),i=function(e){t.removeClass("-loading")};navigator.geolocation.getCurrentPosition(e,i)},onClickClear:function(t,e){this.val(!1)},onClickLocate:function(t,e){this.searchLocation()},onClickSearch:function(t,e){this.searchAddress(this.$search().val())},onFocusSearch:function(t,e){this.removeClass("-value"),this.onKeyupSearch.apply(this,arguments)},onBlurSearch:function(t,e){this.setTimeout(function(){this.removeClass("-search"),e.val()&&this.addClass("-value")},100)},onKeyupSearch:function(t,e){e.val()?this.addClass("-search"):this.removeClass("-search")},onKeydownSearch:function(t,e){13==t.which&&t.preventDefault()},onMousedown:function(){},onShow:function(){if(!this.map)return!1;this.setTimeout(this.center,10)}});acf.registerFieldType(e);var i=new acf.Model({geocoder:!1,data:{status:!1},getStatus:function(){return this.get("status")},setStatus:function(t){return this.set("status",t)},isReady:function(){if("ready"==this.getStatus())return!0;if("loading"==this.getStatus())return!1;if(acf.isset(window,"google","maps","places"))return this.setStatus("ready"),!0;var t=acf.get("google_map_api");return t&&(this.setStatus("loading"),$.ajax({url:t,dataType:"script",cache:!0,context:this,success:function(){this.setStatus("ready"),this.geocoder=new google.maps.Geocoder,acf.doAction("google_map_api_loaded")}})),!1},ready:function(t,e){acf.addAction("google_map_api_loaded",t,10,e)}})}(jQuery),function($,t){var e=acf.Field.extend({type:"image",$control:function(){return this.$(".acf-image-uploader")},$input:function(){return this.$('input[type="hidden"]')},events:{'click a[data-name="add"]':"onClickAdd",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove",'change input[type="file"]':"onChange"},initialize:function(){"basic"===this.get("uploader")&&this.$el.closest("form").attr("enctype","multipart/form-data")},validateAttachment:function(t){t=t||{},void 0!==t.id&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",caption:"",description:"",width:0,height:0});var e=acf.isget(t,"sizes",this.get("preview_size"),"url");return null!==e&&(t.url=e),t},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.url,alt:t.alt,title:t.title});var e=t.id||"";this.val(e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},append:function(t,e){var i=function(t,e){for(var i=acf.getFields({key:t.get("key"),parent:e.$el}),n=0;n<i.length;n++)if(!i[n].val())return i[n];return!1},n=i(this,e);n||(e.$(".acf-button:last").trigger("click"),n=i(this,e)),n&&n.render(t)},selectAttachment:function(){var t=this.parent(),e=t&&"repeater"===t.get("type"),i=acf.newMediaPopup({mode:"select",type:"image",title:acf.__("Select Image"),field:this.get("key"),multiple:e,library:this.get("library"),allowedTypes:this.get("mime_types"),select:$.proxy(function(e,i){i>0?this.append(e,t):this.render(e)},this)})},editAttachment:function(){var t=this.val();if(t)var e=acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:t,field:this.get("key"),select:$.proxy(function(t,e){this.render(t)},this)})},removeAttachment:function(){this.render(!1)},onClickAdd:function(t,e){this.selectAttachment()},onClickEdit:function(t,e){this.editAttachment()},onClickRemove:function(t,e){this.removeAttachment()},onChange:function(t,e){var i=this.$input();acf.getFileInputData(e,function(t){i.val($.param(t))})}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.models.ImageField.extend({type:"file",$control:function(){return this.$(".acf-file-uploader")},$input:function(){return this.$('input[type="hidden"]')},validateAttachment:function(t){return t=t||{},void 0!==t.id&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",filename:"",filesizeHumanReadable:"",icon:"/wp-includes/images/media/default.png"})},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.icon,alt:t.alt,title:t.title}),this.$('[data-name="title"]').text(t.title),this.$('[data-name="filename"]').text(t.filename).attr("href",t.url),this.$('[data-name="filesize"]').text(t.filesizeHumanReadable);var e=t.id||"";acf.val(this.$input(),e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},selectAttachment:function(){var t=this.parent(),e=t&&"repeater"===t.get("type"),i=acf.newMediaPopup({mode:"select",title:acf.__("Select File"),field:this.get("key"),multiple:e,library:this.get("library"),allowedTypes:this.get("mime_types"),select:$.proxy(function(e,i){i>0?this.append(e,t):this.render(e)},this)})},editAttachment:function(){var t=this.val();if(!t)return!1;var e=acf.newMediaPopup({mode:"edit",title:acf.__("Edit File"),button:acf.__("Update File"),attachment:t,field:this.get("key"),select:$.proxy(function(t,e){this.render(t)},this)})}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"link",events:{'click a[data-name="add"]':"onClickEdit",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove","change .link-node":"onChange"},$control:function(){return this.$(".acf-link")},$node:function(){return this.$(".link-node")},getValue:function(){var t=this.$node();return!!t.attr("href")&&{title:t.html(),url:t.attr("href"),target:t.attr("target")}},setValue:function(t){t=acf.parseArgs(t,{title:"",url:"",target:""});var e=this.$control(),i=this.$node();e.removeClass("-value -external"),t.url&&e.addClass("-value"),"_blank"===t.target&&e.addClass("-external"),this.$(".link-title").html(t.title),this.$(".link-url").attr("href",t.url).html(t.url),i.html(t.title),i.attr("href",t.url),i.attr("target",t.target),this.$(".input-title").val(t.title),this.$(".input-target").val(t.target),this.$(".input-url").val(t.url).trigger("change")},onClickEdit:function(t,e){acf.wpLink.open(this.$node())},onClickRemove:function(t,e){this.setValue(!1)},onChange:function(t,e){var i=this.getValue();this.setValue(i)}});acf.registerFieldType(e),acf.wpLink=new acf.Model({getNodeValue:function(){var t=this.get("node");return{title:t.html(),url:t.attr("href"),target:t.attr("target")}},setNodeValue:function(t){var e=this.get("node");e.html(t.title),e.attr("href",t.url),e.attr("target",t.target),e.trigger("change")},getInputValue:function(){return{title:$("#wp-link-text").val(),url:$("#wp-link-url").val(),target:$("#wp-link-target").prop("checked")?"_blank":""}},setInputValue:function(t){$("#wp-link-text").val(t.title),$("#wp-link-url").val(t.url),$("#wp-link-target").prop("checked","_blank"===t.target)},open:function(t){this.on("wplink-open","onOpen"),this.on("wplink-close","onClose"),this.set("node",t);var e=$('<textarea id="acf-link-textarea" style="display:none;"></textarea>');$("body").append(e);var i=this.getNodeValue();wpLink.open("acf-link-textarea",i.url,i.title,null)},onOpen:function(){$("#wp-link-wrap").addClass("has-text-field");var t=this.getNodeValue();this.setInputValue(t)},close:function(){wpLink.close()},onClose:function(){if(!this.has("node"))return!1;this.off("wplink-open"),this.off("wplink-close");var t=this.getInputValue();this.setNodeValue(t),$("#acf-link-textarea").remove(),this.set("node",null)}})}(jQuery),function($,t){var e=acf.Field.extend({type:"oembed",events:{'click [data-name="clear-button"]':"onClickClear","keypress .input-search":"onKeypressSearch","keyup .input-search":"onKeyupSearch","change .input-search":"onChangeSearch"},$control:function(){return this.$(".acf-oembed")},$input:function(){return this.$(".input-value")},$search:function(){return this.$(".input-search")},getValue:function(){return this.$input().val()},getSearchVal:function(){return this.$search().val()},setValue:function(t){t?this.$control().addClass("has-value"):this.$control().removeClass("has-value"),acf.val(this.$input(),t)},showLoading:function(t){acf.showLoading(this.$(".canvas"))},hideLoading:function(){acf.hideLoading(this.$(".canvas"))},maybeSearch:function(){var t=this.val(),e=this.getSearchVal();if(!e)return this.clear();if("http"!=e.substr(0,4)&&(e="http://"+e),e!==t){var i=this.get("timeout");i&&clearTimeout(i);var n=$.proxy(this.search,this,e);this.set("timeout",setTimeout(n,300))}},search:function(t){var e={action:"acf/fields/oembed/search",s:t,field_key:this.get("key")},i=this.get("xhr");i&&i.abort(),this.showLoading();var i=$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:function(t){t&&t.html||(t={url:!1,html:""}),this.val(t.url),this.$(".canvas-media").html(t.html)},complete:function(){this.hideLoading()}});this.set("xhr",i)},clear:function(){this.val(""),this.$search().val(""),this.$(".canvas-media").html("")},onClickClear:function(t,e){this.clear()},onKeypressSearch:function(t,e){13==t.which&&(t.preventDefault(),this.maybeSearch())},onKeyupSearch:function(t,e){e.val()&&this.maybeSearch()},onChangeSearch:function(t,e){this.maybeSearch()}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"radio",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-radio-list")},$input:function(){return this.$("input:checked")},$inputText:function(){return this.$('input[type="text"]')},getValue:function(){var t=this.$input().val();return"other"===t&&this.get("other_choice")&&(t=this.$inputText().val()),t},onClick:function(t,e){var i=e.parent("label"),n=i.hasClass("selected"),a=e.val();this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"),a=!1),this.get("other_choice")&&("other"===a?this.$inputText().prop("disabled",!1):this.$inputText().prop("disabled",!0))}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"range",events:{'input input[type="range"]':"onChange","change input":"onChange"},$input:function(){return this.$('input[type="range"]')},$inputAlt:function(){return this.$('input[type="number"]')},setValue:function(t){this.busy=!0,acf.val(this.$input(),t),acf.val(this.$inputAlt(),t,!0),this.busy=!1},onChange:function(t,e){this.busy||this.setValue(e.val())}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"relationship",events:{"keypress [data-filter]":"onKeypressFilter","change [data-filter]":"onChangeFilter","keyup [data-filter]":"onChangeFilter","click .choices-list .acf-rel-item":"onClickAdd",'click [data-name="remove_item"]':"onClickRemove",mouseover:"onHover"},$control:function(){return this.$(".acf-relationship")},$list:function(t){return this.$("."+t+"-list")},$listItems:function(t){return this.$list(t).find(".acf-rel-item")},$listItem:function(t,e){return this.$list(t).find('.acf-rel-item[data-id="'+e+'"]')},getValue:function(){var t=[];return this.$listItems("values").each(function(){t.push($(this).data("id"))}),!!t.length&&t},newChoice:function(t){return["<li>",'<span data-id="'+t.id+'" class="acf-rel-item">'+t.text+"</span>","</li>"].join("")},newValue:function(t){return["<li>",'<input type="hidden" name="'+this.getInputName()+'[]" value="'+t.id+'" />','<span data-id="'+t.id+'" class="acf-rel-item">'+t.text,'<a href="#" class="acf-icon -minus small dark" data-name="remove_item"></a>',"</span>","</li>"].join("")},addSortable:function(t){this.$list("values").sortable({items:"li",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,update:function(){t.$input().trigger("change")}})},initialize:function(){var t=this.proxy(function(t){if(!this.get("loading")&&this.get("more")){var e=this.$list("choices"),i=Math.ceil(e.scrollTop()),n=Math.ceil(e[0].scrollHeight),a=Math.ceil(e.innerHeight()),r=this.get("paged")||1;i+a>=n&&(this.set("paged",r+1),this.fetch())}});this.$list("choices").scrollTop(0).on("scroll",t),this.fetch()},onHover:function(t){$().off(t),this.addSortable(this)},onKeypressFilter:function(t,e){13==t.which&&t.preventDefault()},onChangeFilter:function(t,e){var i=e.val(),n=e.data("filter");this.get(n)!==i&&(this.set(n,i),this.set("paged",1),e.is("select")?this.fetch():this.maybeFetch())},onClickAdd:function(t,e){var i=this.val(),n=parseInt(this.get("max"));if(e.hasClass("disabled"))return!1;if(n>0&&i&&i.length>=n)return this.showNotice({text:acf.__("Maximum values reached ( {max} values )").replace("{max}",n),type:"warning"}),!1;e.addClass("disabled");var a=this.newValue({id:e.data("id"),text:e.html()});this.$list("values").append(a),this.$input().trigger("change")},onClickRemove:function(t,e){var i=e.parent(),n=i.parent(),a=i.data("id");setTimeout(function(){n.remove()},1),this.$listItem("choices",a).removeClass("disabled"),this.$input().trigger("change")},maybeFetch:function(){var t=this.get("timeout");t&&clearTimeout(t),t=this.setTimeout(this.fetch,300),this.set("timeout",t)},getAjaxData:function(){var t=this.$control().data();for(var e in t)t[e]=this.get(e);return t.action="acf/fields/relationship/query",t.field_key=this.get("key"),t},fetch:function(){var t=this.get("xhr");t&&t.abort();var e=this.getAjaxData(),i=this.$list("choices");1==e.paged&&i.html("");var n=$('<li><i class="acf-loading"></i> '+acf.__("Loading")+"</li>");i.append(n),this.set("loading",!0);var a=function(){this.set("loading",!1),n.remove()},r=function(t){if(!t||!t.results||!t.results.length)return this.set("more",!1),void(1==this.get("paged")&&this.$list("choices").append("<li>"+acf.__("No matches found")+"</li>"));this.set("more",t.more);var e=this.walkChoices(t.results),n=$(e),a=this.val();a&&a.length&&a.map(function(t){n.find('.acf-rel-item[data-id="'+t+'"]').addClass("disabled")}),i.append(n);var r=!1,s=!1;i.find(".acf-rel-label").each(function(){var t=$(this),e=t.siblings("ul");if(r&&r.text()==t.text())return s.append(e.children()),void $(this).parent().remove();r=t,s=e})},t=$.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",data:acf.prepareForAjax(e),context:this,success:r,complete:a});this.set("xhr",t)},walkChoices:function(t){var e=function(t){var i="";return $.isArray(t)?t.map(function(t){i+=e(t)}):$.isPlainObject(t)&&(void 0!==t.children?(i+='<li><span class="acf-rel-label">'+t.text+'</span><ul class="acf-bl">',i+=e(t.children),i+="</ul></li>"):i+='<li><span class="acf-rel-item" data-id="'+t.id+'">'+t.text+"</span></li>"),i};return e(t)}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"select",select2:!1,wait:"load",events:{removeField:"onRemove"},$input:function(){return this.$("select")},initialize:function(){var t=this.$input();if(this.inherit(t),this.get("ui")){var e=this.get("ajax_action");e||(e="acf/fields/"+this.get("type")+"/query"),this.select2=acf.newSelect2(t,{field:this,ajax:this.get("ajax"),multiple:this.get("multiple"),placeholder:this.get("placeholder"),allowNull:this.get("allow_null"),ajaxAction:e})}},onRemove:function(){this.select2&&this.select2.destroy()}});acf.registerFieldType(e)}(jQuery),function($,t){var e="tab",i=acf.Field.extend({type:"tab",wait:"",tabs:!1,tab:!1,findFields:function(){return this.$el.nextUntil(".acf-field-tab",".acf-field")},getFields:function(){return acf.getFields(this.findFields())},findTabs:function(){return this.$el.prevAll(".acf-tab-wrap:first")},findTab:function(){return this.$(".acf-tab-button")},initialize:function(){if(this.$el.is("td"))return this.events={},!1;var t=this.findTabs(),e=this.findTab(),i=acf.parseArgs(e.data(),{endpoint:!1,placement:"",before:this.$el});!t.length||i.endpoint?this.tabs=new a(i):this.tabs=t.data("acf"),this.tab=this.tabs.addTab(e,this)},isActive:function(){return this.tab.isActive()},showFields:function(){this.getFields().map(function(t){t.show(this.cid,"tab"),t.hiddenByTab=!1},this)},hideFields:function(){this.getFields().map(function(t){t.hide(this.cid,"tab"),t.hiddenByTab=this.tab},this)},show:function(t){var e=acf.Field.prototype.show.apply(this,arguments);return e&&(this.tab.show(),this.tabs.refresh()),e},hide:function(t){var e=acf.Field.prototype.hide.apply(this,arguments);return e&&(this.tab.hide(),this.isActive()&&this.tabs.reset()),e},enable:function(t){this.getFields().map(function(t){t.enable("tab")})},disable:function(t){this.getFields().map(function(t){t.disable("tab")})}});acf.registerFieldType(i);var n=0,a=acf.Model.extend({tabs:[],active:!1,actions:{refresh:"onRefresh"},data:{before:!1,placement:"top",index:0,initialized:!1},setup:function(t){$.extend(this.data,t),this.tabs=[],this.active=!1;var e=this.get("placement"),i=this.get("before"),a=i.parent();"left"==e&&a.hasClass("acf-fields")&&a.addClass("-sidebar"),i.is("tr")?this.$el=$('<tr class="acf-tab-wrap"><td colspan="2"><ul class="acf-hl acf-tab-group"></ul></td></tr>'):this.$el=$('<div class="acf-tab-wrap -'+e+'"><ul class="acf-hl acf-tab-group"></ul></div>'),i.before(this.$el),this.set("index",n,!0),n++},initializeTabs:function(){var t=this.getVisible().shift(),e=acf.getPreference("this.tabs")||[],i=this.get("index"),n=e[i];this.tabs[n]&&this.tabs[n].isVisible()&&(t=this.tabs[n]),t?this.selectTab(t):this.closeTabs(),this.set("initialized",!0)},getVisible:function(){return this.tabs.filter(function(t){return t.isVisible()})},getActive:function(){return this.active},setActive:function(t){return this.active=t},hasActive:function(){return!1!==this.active},isActive:function(t){var e=this.getActive();return e&&e.cid===t.cid},closeActive:function(){this.hasActive()&&this.closeTab(this.getActive())},openTab:function(t){this.closeActive(),t.open(),this.setActive(t)},closeTab:function(t){t.close(),this.setActive(!1)},closeTabs:function(){this.tabs.map(this.closeTab,this)},selectTab:function(t){this.tabs.map(function(e){t.cid!==e.cid&&this.closeTab(e)},this),this.openTab(t)},addTab:function(t,e){var i=$("<li></li>");i.append(t),this.$("ul").append(i);var n=new r({$el:i,field:e,group:this});return this.tabs.push(n),n},reset:function(){return this.closeActive(),this.refresh()},refresh:function(){if(this.hasActive())return!1;var t=this.getVisible().shift();return t&&this.openTab(t),t},onRefresh:function(){if("left"===this.get("placement")){var t=this.$el.parent(),e=this.$el.children("ul"),i=t.is("td")?"height":"min-height",n=e.position().top+e.outerHeight(!0)-1;t.css(i,n)}}}),r=acf.Model.extend({group:!1,field:!1,events:{"click a":"onClick"},index:function(){return this.$el.index()},isVisible:function(){return acf.isVisible(this.$el)},isActive:function(){return this.$el.hasClass("active")},open:function(){this.$el.addClass("active"),this.field.showFields()},close:function(){this.$el.removeClass("active"),this.field.hideFields()},onClick:function(t,e){t.preventDefault(),this.toggle()},toggle:function(){this.isActive()||this.group.openTab(this)}}),s=new acf.Model({priority:50,actions:{prepare:"render",append:"render",unload:"onUnload",invalid_field:"onInvalidField"},findTabs:function(){return $(".acf-tab-wrap")},getTabs:function(){return acf.getInstances(this.findTabs())},render:function(t){this.getTabs().map(function(t){t.get("initialized")||t.initializeTabs()})},onInvalidField:function(t){this.busy||t.hiddenByTab&&(t.hiddenByTab.toggle(),this.busy=!0,this.setTimeout(function(){this.busy=!1},100))},onUnload:function(){var t=[];this.getTabs().map(function(e){var i=e.hasActive()?e.getActive().index():0;t.push(i)}),t.length&&acf.setPreference("this.tabs",t)}})}(jQuery),function($,t){var e=acf.models.SelectField.extend({type:"post_object"});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.models.SelectField.extend({type:"page_link"});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.models.SelectField.extend({type:"user"});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"taxonomy",data:{ftype:"select"},select2:!1,wait:"load",events:{'click a[data-name="add"]':"onClickAdd",'click input[type="radio"]':"onClickRadio"},$control:function(){return this.$(".acf-taxonomy-field")},$input:function(){return this.getRelatedPrototype().$input.apply(this,arguments)},getRelatedType:function(){var t=this.get("ftype");return"multi_select"==t&&(t="select"),t},getRelatedPrototype:function(){return acf.getFieldType(this.getRelatedType()).prototype},getValue:function(){return this.getRelatedPrototype().getValue.apply(this,arguments)},setValue:function(){return this.getRelatedPrototype().setValue.apply(this,arguments)},initialize:function(){this.getRelatedPrototype().initialize.apply(this,arguments)},onRemove:function(){this.select2&&this.select2.destroy()},onClickAdd:function(t,e){var i=this,n=!1,a=!1,r=!1,s=!1,o=!1,c=!1,l=!1,d=function(t){n.loading(!1),n.content(t),a=n.$("form"),r=n.$('input[name="term_name"]'),s=n.$('select[name="term_parent"]'),o=n.$(".acf-submit-button"),r.focus(),n.on("submit","form",u)},u=function(t,e){if(t.preventDefault(),t.stopImmediatePropagation(),""===r.val())return r.focus(),!1;acf.startButtonLoading(o);var n={action:"acf/fields/taxonomy/add_term",field_key:i.get("key"),term_name:r.val(),term_parent:s.length?s.val():0};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(n),type:"post",dataType:"json",success:f})},f=function(t){acf.stopButtonLoading(o),l&&l.remove(),acf.isAjaxSuccess(t)?(r.val(""),h(t.data),l=acf.newNotice({type:"success",text:acf.getAjaxMessage(t),target:a,timeout:2e3,dismiss:!1})):l=acf.newNotice({type:"error",text:acf.getAjaxError(t),target:a,timeout:2e3,dismiss:!1}),r.focus()},h=function(t){var e=$('<option value="'+t.term_id+'">'+t.term_label+"</option>");t.term_parent?s.children('option[value="'+t.term_parent+'"]').after(e):s.append(e),acf.getFields({type:"taxonomy"}).map(function(e){e.get("taxonomy")==i.get("taxonomy")&&e.appendTerm(t)}),i.selectTerm(t.term_id)};!function(){n=acf.newPopup({title:e.attr("title"),loading:!0,width:"300px"});var t={action:"acf/fields/taxonomy/add_term",field_key:i.get("key")};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"html",success:d})}()},appendTerm:function(t){"select"==this.getRelatedType()?this.appendTermSelect(t):this.appendTermCheckbox(t)},appendTermSelect:function(t){this.select2.addOption({id:t.term_id,text:t.term_label})},appendTermCheckbox:function(t){var e=this.$("[name]:first").attr("name"),i=this.$("ul:first");"checkbox"==this.getRelatedType()&&(e+="[]");var n=$(['<li data-id="'+t.term_id+'">',"<label>",'<input type="'+this.get("ftype")+'" value="'+t.term_id+'" name="'+e+'" /> ',"<span>"+t.term_name+"</span>","</label>","</li>"].join(""));if(t.term_parent){var a=i.find('li[data-id="'+t.term_parent+'"]');i=a.children("ul"),i.exists()||(i=$('<ul class="children acf-bl"></ul>'),a.append(i))}i.append(n)},
3
- selectTerm:function(t){if("select"==this.getRelatedType())this.select2.selectOption(t);else{this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")}},onClickRadio:function(t,e){var i=e.parent("label"),n=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.models.DatePickerField.extend({type:"time_picker",$control:function(){return this.$(".acf-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),i={timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altTimeFormat:"HH:mm:ss",showButtonPanel:!0,controlType:"select",oneLine:!0,closeText:acf.get("dateTimePickerL10n").selectText,timeOnly:!0};i.onClose=function(t,e,i){var n=e.dpDiv.find(".ui-datepicker-close");!t&&n.is(":hover")&&i._updateDateTime()},i=acf.applyFilters("time_picker_args",i,this),acf.newTimePicker(e,i),acf.doAction("time_picker_init",e,i,this)}});acf.registerFieldType(e),acf.newTimePicker=function(t,e){if(void 0===$.timepicker)return!1;e=e||{},t.timepicker(e),$("body > #ui-datepicker-div").exists()&&$("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function($,t){var e=acf.Field.extend({type:"true_false",events:{"change .acf-switch-input":"onChange","focus .acf-switch-input":"onFocus","blur .acf-switch-input":"onBlur","keypress .acf-switch-input":"onKeypress"},$input:function(){return this.$('input[type="checkbox"]')},$switch:function(){return this.$(".acf-switch")},getValue:function(){return this.$input().prop("checked")?1:0},initialize:function(){this.render()},render:function(){var t=this.$switch();if(t.length){var e=t.children(".acf-switch-on"),i=t.children(".acf-switch-off"),n=Math.max(e.width(),i.width());n&&(e.css("min-width",n),i.css("min-width",n))}},switchOn:function(){this.$input().prop("checked",!0),this.$switch().addClass("-on")},switchOff:function(){this.$input().prop("checked",!1),this.$switch().removeClass("-on")},onChange:function(t,e){e.prop("checked")?this.switchOn():this.switchOff()},onFocus:function(t,e){this.$switch().addClass("-focus")},onBlur:function(t,e){this.$switch().removeClass("-focus")},onKeypress:function(t,e){return 37===t.keyCode?this.switchOff():39===t.keyCode?this.switchOn():void 0}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"url",events:{'keyup input[type="url"]':"onkeyup"},$control:function(){return this.$(".acf-input-wrap")},$input:function(){return this.$('input[type="url"]')},initialize:function(){this.render()},isValid:function(){var t=this.val();return!!t&&(-1!==t.indexOf("://")||0===t.indexOf("//"))},render:function(){this.isValid()?this.$control().addClass("-valid"):this.$control().removeClass("-valid")},onkeyup:function(t,e){this.render()}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"wysiwyg",wait:"load",events:{"mousedown .acf-editor-wrap.delay":"onMousedown",sortstartField:"disableEditor",sortstopField:"enableEditor",removeField:"disableEditor"},$control:function(){return this.$(".acf-editor-wrap")},$input:function(){return this.$("textarea")},getMode:function(){return this.$control().hasClass("tmce-active")?"visual":"text"},initialize:function(){this.$control().hasClass("delay")||this.initializeEditor()},initializeEditor:function(){var t=this.$control(),e=this.$input(),i={tinymce:!0,quicktags:!0,toolbar:this.get("toolbar"),mode:this.getMode(),field:this},n=e.attr("id"),a=acf.uniqueId("acf-editor-");acf.rename({target:t,search:n,replace:a,destructive:!0}),this.set("id",a,!0),acf.tinymce.initialize(a,i)},onMousedown:function(t){t.preventDefault();var e=this.$control();e.removeClass("delay"),e.find(".acf-editor-toolbar").remove(),this.initializeEditor()},enableEditor:function(){"visual"==this.getMode()&&acf.tinymce.enable(this.get("id"))},disableEditor:function(){acf.tinymce.destroy(this.get("id"))}});acf.registerFieldType(e)}(jQuery),function($,t){var e=[];acf.Condition=acf.Model.extend({type:"",operator:"==",label:"",choiceType:"input",fieldTypes:[],data:{conditions:!1,field:!1,rule:{}},events:{change:"change",keyup:"change",enableField:"change",disableField:"change"},setup:function(t){$.extend(this.data,t)},getEventTarget:function(t,e){return t||this.get("field").$el},change:function(t,e){this.get("conditions").change(t)},match:function(t,e){return!1},calculate:function(){return this.match(this.get("rule"),this.get("field"))},choices:function(t){return'<input type="text" />'}}),acf.newCondition=function(t,e){var i=e.get("field"),n=i.getField(t.field);if(!i||!n)return!1;var a={rule:t,target:i,conditions:e,field:n},r=n.get("type"),s=t.operator;return new(acf.getConditionTypes({fieldType:r,operator:s})[0]||acf.Condition)(a)};var i=function(t){return acf.strPascalCase(t||"")+"Condition"};acf.registerConditionType=function(t){var n=t.prototype,a=n.type,r=i(a);acf.models[r]=t,e.push(a)},acf.getConditionType=function(t){var e=i(t);return acf.models[e]||!1},acf.registerConditionForFieldType=function(t,e){var i=acf.getConditionType(t);i&&i.prototype.fieldTypes.push(e)},acf.getConditionTypes=function(t){t=acf.parseArgs(t,{fieldType:"",operator:""});var i=[];return e.map(function(e){var n=acf.getConditionType(e),a=n.prototype.fieldTypes,r=n.prototype.operator;t.fieldType&&-1===a.indexOf(t.fieldType)||t.operator&&r!==t.operator||i.push(n)}),i}}(jQuery),function($,t){var e="conditional_logic",i=new acf.Model({id:"conditionsManager",priority:20,actions:{new_field:"onNewField"},onNewField:function(t){t.has("conditions")&&t.getConditions().render()}}),n=function(t,e){var i=acf.getFields({key:e,sibling:t.$el,suppressFilters:!0});return i.length||(i=acf.getFields({key:e,parent:t.$el.parent(),suppressFilters:!0})),!!i.length&&i[0]};acf.Field.prototype.getField=function(t){var e=n(this,t);if(e)return e;for(var i=this.parents(),a=0;a<i.length;a++)if(e=n(i[a],t))return e;return!1},acf.Field.prototype.getConditions=function(){return this.conditions||(this.conditions=new r(this)),this.conditions};var a=!1,r=acf.Model.extend({id:"Conditions",data:{field:!1,timeStamp:!1,groups:[]},setup:function(t){this.data.field=t;var e=t.get("conditions");e instanceof Array?e[0]instanceof Array?e.map(function(t,e){this.addRules(t,e)},this):this.addRules(e):this.addRule(e)},change:function(t){if(this.get("timeStamp")===t.timeStamp)return!1;this.set("timeStamp",t.timeStamp,!0);var e=this.render()},render:function(){return this.calculate()?this.show():this.hide()},show:function(){return this.get("field").showEnable(this.cid,e)},hide:function(){return this.get("field").hideDisable(this.cid,e)},calculate:function(){var t=!1;return this.getGroups().map(function(e){if(!t){e.filter(function(t){return t.calculate()}).length==e.length&&(t=!0)}}),t},hasGroups:function(){return null!=this.data.groups},getGroups:function(){return this.data.groups},addGroup:function(){var t=[];return this.data.groups.push(t),t},hasGroup:function(t){return null!=this.data.groups[t]},getGroup:function(t){return this.data.groups[t]},removeGroup:function(t){return this.data.groups[t].delete,this},addRules:function(t,e){t.map(function(t){this.addRule(t,e)},this)},addRule:function(t,e){e=e||0;var i;i=this.hasGroup(e)?this.getGroup(e):this.addGroup();var n=acf.newCondition(t,this);if(!n)return!1;i.push(n)},hasRule:function(){},getRule:function(t,e){return t=t||0,e=e||0,this.data.groups[e][t]},removeRule:function(){}})}(jQuery),function($,t){var e=acf.__,i=function(t){return t?""+t:""},n=function(t,e){return i(t).toLowerCase()===i(e).toLowerCase()},a=function(t,e){return parseFloat(t)===parseFloat(e)},r=function(t,e){return parseFloat(t)>parseFloat(e)},s=function(t,e){return parseFloat(t)<parseFloat(e)},o=function(t,e){return e=e.map(function(t){return i(t)}),e.indexOf(t)>-1},c=function(t,e){return i(t).indexOf(i(e))>-1},l=function(t,e){var n=new RegExp(i(e),"gi");return i(t).match(n)},d=acf.Condition.extend({type:"hasValue",operator:"!=empty",label:e("Has any value"),fieldTypes:["text","textarea","number","range","email","url","password","image","file","wysiwyg","oembed","select","checkbox","radio","button_group","link","post_object","page_link","relationship","taxonomy","user","google_map","date_picker","date_time_picker","time_picker","color_picker"],match:function(t,e){return!!e.val()},choices:function(t){return'<input type="text" disabled="" />'}});acf.registerConditionType(d);var u=d.extend({type:"hasNoValue",operator:"==empty",label:e("Has no value"),match:function(t,e){return!d.prototype.match.apply(this,arguments)}});acf.registerConditionType(u);var f=acf.Condition.extend({type:"equalTo",operator:"==",label:e("Value is equal to"),fieldTypes:["text","textarea","number","range","email","url","password"],match:function(t,e){return $.isNumeric(t.value)?a(t.value,e.val()):n(t.value,e.val())},choices:function(t){return'<input type="text" />'}});acf.registerConditionType(f);var h=f.extend({type:"notEqualTo",operator:"!=",label:e("Value is not equal to"),match:function(t,e){return!f.prototype.match.apply(this,arguments)}});acf.registerConditionType(h);var p=acf.Condition.extend({type:"patternMatch",operator:"==pattern",label:e("Value matches pattern"),fieldTypes:["text","textarea","email","url","password","wysiwyg"],match:function(t,e){return l(e.val(),t.value)},choices:function(t){return'<input type="text" placeholder="[a-z0-9]" />'}});acf.registerConditionType(p);var g=acf.Condition.extend({type:"contains",operator:"==contains",label:e("Value contains"),fieldTypes:["text","textarea","number","email","url","password","wysiwyg","oembed","select"],match:function(t,e){return c(e.val(),t.value)},choices:function(t){return'<input type="text" />'}});acf.registerConditionType(g);var m=f.extend({type:"trueFalseEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:e("Checked")}]}});acf.registerConditionType(m);var v=h.extend({type:"trueFalseNotEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:e("Checked")}]}});acf.registerConditionType(v);var y=acf.Condition.extend({type:"selectEqualTo",operator:"==",label:e("Value is equal to"),fieldTypes:["select","checkbox","radio","button_group"],match:function(t,e){var i=e.val();return i instanceof Array?o(t.value,i):n(t.value,i)},choices:function(t){var i=[],n=t.$setting("choices textarea").val().split("\n");return t.$input("allow_null").prop("checked")&&i.push({id:"",text:e("Null")}),n.map(function(t){t=t.split(":"),t[1]=t[1]||t[0],i.push({id:$.trim(t[0]),text:$.trim(t[1])})}),i}});acf.registerConditionType(y);var b=y.extend({type:"selectNotEqualTo",operator:"!=",label:e("Value is not equal to"),match:function(t,e){return!y.prototype.match.apply(this,arguments)}});acf.registerConditionType(b);var x=acf.Condition.extend({type:"greaterThan",operator:">",label:e("Value is greater than"),fieldTypes:["number","range"],match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),r(i,t.value)},choices:function(t){return'<input type="number" />'}});acf.registerConditionType(x);var w=x.extend({type:"lessThan",operator:"<",label:e("Value is less than"),match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),s(i,t.value)},choices:function(t){return'<input type="number" />'}});acf.registerConditionType(w);var _=x.extend({type:"selectionGreaterThan",label:e("Selection is greater than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(_);var k=w.extend({type:"selectionLessThan",label:e("Selection is less than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(k)}(jQuery),function($,t){acf.newMediaPopup=function(t){var e=null,t=acf.parseArgs(t,{mode:"select",title:"",button:"",type:"",field:!1,allowedTypes:"",library:"all",multiple:!1,attachment:0,autoOpen:!0,open:function(){},select:function(){},close:function(){}});return e="edit"==t.mode?new acf.models.EditMediaPopup(t):new acf.models.SelectMediaPopup(t),t.autoOpen&&setTimeout(function(){e.open()},1),acf.doAction("new_media_popup",e),e};var e=function(){var t=acf.get("post_id");return $.isNumeric(t)?t:0};acf.getMimeTypes=function(){return this.get("mimeTypes")},acf.getMimeType=function(t){var e=acf.getMimeTypes();if(void 0!==e[t])return e[t];for(var i in e)if(-1!==i.indexOf(t))return e[i];return!1};var i=acf.Model.extend({id:"MediaPopup",data:{},defaults:{},frame:!1,setup:function(t){$.extend(this.data,t)},initialize:function(){var t=this.getFrameOptions();this.addFrameStates(t);var e=wp.media(t);e.acf=this,this.addFrameEvents(e,t),this.frame=e},open:function(){this.frame.open()},close:function(){this.frame.close()},remove:function(){this.frame.detach(),this.frame.remove()},getFrameOptions:function(){var t={title:this.get("title"),multiple:this.get("multiple"),library:{},states:[]};return this.get("type")&&(t.library.type=this.get("type")),"uploadedTo"===this.get("library")&&(t.library.uploadedTo=e()),this.get("attachment")&&(t.library.post__in=[this.get("attachment")]),this.get("button")&&(t.button={text:this.get("button")}),t},addFrameStates:function(t){var e=wp.media.query(t.library);this.get("field")&&acf.isset(e,"mirroring","args")&&(e.mirroring.args._acfuploader=this.get("field")),t.states.push(new wp.media.controller.Library({library:e,multiple:this.get("multiple"),title:this.get("title"),priority:20,filterable:"all",editable:!0,allowLocalEdits:!0})),acf.isset(wp,"media","controller","EditImage")&&t.states.push(new wp.media.controller.EditImage)},addFrameEvents:function(t,e){t.on("open",function(){this.$el.closest(".media-modal").addClass("acf-media-modal -"+this.acf.get("mode"))},t),t.on("content:render:edit-image",function(){var t=this.state().get("image"),e=new wp.media.view.EditImage({model:t,controller:this}).render();this.content.set(e),e.loadEditor()},t),t.on("select",function(){var e=t.state().get("selection");e&&e.each(function(e,i){t.acf.get("select").apply(t.acf,[e,i])})}),t.on("close",function(){setTimeout(function(){t.acf.get("close").apply(t.acf),t.acf.remove()},1)})}});acf.models.SelectMediaPopup=i.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Select","verb")),i.prototype.setup.apply(this,arguments)},addFrameEvents:function(t,e){acf.isset(_wpPluploadSettings,"defaults","multipart_params")&&(_wpPluploadSettings.defaults.multipart_params._acfuploader=this.get("field"),t.on("open",function(){delete _wpPluploadSettings.defaults.multipart_params._acfuploader})),t.on("content:activate:browse",function(){var e=!1;try{e=t.content.get().toolbar}catch(t){return void console.log(t)}t.acf.customizeFilters.apply(t.acf,[e])}),i.prototype.addFrameEvents.apply(this,arguments)},customizeFilters:function(t){var e=t.get("filters");if("image"==this.get("type")&&(e.filters.all.text=acf.__("All images"),delete e.filters.audio,delete e.filters.video,delete e.filters.image,$.each(e.filters,function(t,e){e.props.type=e.props.type||"image"})),this.get("allowedTypes")){this.get("allowedTypes").split(" ").join("").split(".").join("").split(",").map(function(t){var i=acf.getMimeType(t);if(i){var n={text:i,props:{status:null,type:i,uploadedTo:null,orderby:"date",order:"DESC"},priority:20};e.filters[i]=n}})}if("uploadedTo"===this.get("library")){var i=this.frame.options.library.uploadedTo;delete e.filters.unattached,delete e.filters.uploaded,$.each(e.filters,function(t,e){e.text+=" ("+acf.__("Uploaded to this post")+")",e.props.uploadedTo=i})}var n=this.get("field");$.each(e.filters,function(t,e){e.props._acfuploader=n}),t.get("search").model.attributes._acfuploader=n,e.renderFilters&&e.renderFilters()}}),acf.models.EditMediaPopup=i.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Update","verb")),i.prototype.setup.apply(this,arguments)},addFrameEvents:function(t,e){t.on("open",function(){this.$el.closest(".media-modal").addClass("acf-expanded"),"browse"!=this.content.mode()&&this.content.mode("browse");var e=this.state(),i=e.get("selection"),n=wp.media.attachment(t.acf.get("attachment"));i.add(n)},t),i.prototype.addFrameEvents.apply(this,arguments)}});var n=new acf.Model({id:"customizePrototypes",wait:"ready",initialize:function(){if(acf.isset(window,"wp","media","view")){var t=e();t&&acf.isset(wp,"media","view","settings","post")&&(wp.media.view.settings.post.id=t),this.customizeAttachmentsRouter(),this.customizeAttachmentFilters(),this.customizeAttachmentCompat(),this.customizeAttachmentLibrary()}},customizeAttachmentsRouter:function(){if(acf.isset(wp,"media","view","Router")){var t=wp.media.view.Router;wp.media.view.Router=t.extend({addExpand:function(){var t=$(['<a href="#" class="acf-expand-details">','<span class="is-closed"><span class="acf-icon -left small grey"></span>'+acf.__("Expand Details")+"</span>",'<span class="is-open"><span class="acf-icon -right small grey"></span>'+acf.__("Collapse Details")+"</span>","</a>"].join(""));t.on("click",function(t){t.preventDefault();var e=$(this).closest(".media-modal");e.hasClass("acf-expanded")?e.removeClass("acf-expanded"):e.addClass("acf-expanded")}),this.$el.append(t)},initialize:function(){return t.prototype.initialize.apply(this,arguments),this.addExpand(),this}})}},customizeAttachmentFilters:function(){if(acf.isset(wp,"media","view","AttachmentFilters","All")){wp.media.view.AttachmentFilters.All.prototype.renderFilters=function(){this.$el.html(_.chain(this.filters).map(function(t,e){return{el:$("<option></option>").val(e).html(t.text)[0],priority:t.priority||50}},this).sortBy("priority").pluck("el").value())}}},customizeAttachmentCompat:function(){if(acf.isset(wp,"media","view","AttachmentCompat")){var t=wp.media.view.AttachmentCompat,e=!1;wp.media.view.AttachmentCompat=t.extend({render:function(){return this.rendered?this:(t.prototype.render.apply(this,arguments),this.$("#acf-form-data").length?(clearTimeout(e),e=setTimeout($.proxy(function(){this.rendered=!0,acf.doAction("append",this.$el)},this),50),this):this)}})}},customizeAttachmentLibrary:function(){if(acf.isset(wp,"media","view","Attachment","Library")){var t=wp.media.view.Attachment.Library;wp.media.view.Attachment.Library=t.extend({render:function(){var e=acf.isget(this,"controller","acf"),i=acf.isget(this,"model","attributes");if(e&&i){i.acf_errors&&this.$el.addClass("acf-disabled");var n=e.get("selected");n&&n.indexOf(i.id)>-1&&this.$el.addClass("acf-selected")}return t.prototype.render.apply(this,arguments)},toggleSelection:function(e){var i=this.collection,n=this.options.selection,a=this.model,r=n.single(),s=this.controller,o=acf.isget(this,"model","attributes","acf_errors"),c=s.$el.find(".media-frame-content .media-sidebar");if(c.children(".acf-selection-error").remove(),c.children().removeClass("acf-hidden"),s&&o){var l=acf.isget(this,"model","attributes","filename");return c.children().addClass("acf-hidden"),c.prepend(['<div class="acf-selection-error">','<span class="selection-error-label">'+acf.__("Restricted")+"</span>",'<span class="selection-error-filename">'+l+"</span>",'<span class="selection-error-message">'+o+"</span>","</div>"].join("")),n.reset(),void n.single(a)}return t.prototype.toggleSelection.apply(this,arguments)}})}}})}(jQuery),function($,t){acf.screen=new acf.Model({active:!0,xhr:!1,timeout:!1,wait:"load",events:{"change #page_template":"onChange","change #parent_id":"onChange","change #post-formats-select":"onChange","change .categorychecklist":"onChange","change .tagsdiv":"onChange",'change .acf-taxonomy-field[data-save="1"]':"onChange","change #product-type":"onChange"},initialize:function(){},isPost:function(){return"post"===acf.get("screen")},isUser:function(){return"user"===acf.get("screen")},isTaxonomy:function(){return"taxonomy"===acf.get("screen")},isAttachment:function(){return"attachment"===acf.get("screen")},isNavMenu:function(){return"nav_menu"===acf.get("screen")},isWidget:function(){return"widget"===acf.get("screen")},isComment:function(){return"comment"===acf.get("screen")},getPageTemplate:function(){var t=$("#page_template");return t.length?t.val():null},getPageParent:function(t,e){var e=$("#parent_id");return e.length?e.val():null},getPageType:function(t,e){return this.getPageParent()?"child":"parent"},getPostFormat:function(t,e){var e=$("#post-formats-select input:checked");if(e.length){var i=e.val();return"0"==i?"standard":i}return null},getPostTerms:function(){var t={},e=acf.serialize($(".categorydiv, .tagsdiv"));e.tax_input&&(t=e.tax_input),e.post_category&&(t.category=e.post_category);for(var i in t)acf.isArray(t[i])||(t[i]=t[i].split(", "));acf.getFields({type:"taxonomy"}).map(function(e){if(e.get("save")){var i=e.val(),n=e.get("taxonomy");i&&(t[n]=t[n]||[],i=acf.isArray(i)?i:[i],t[n]=t[n].concat(i))}}),null!==(productType=this.getProductType())&&(t.product_type=[productType]);for(var i in t)t[i]=acf.uniqueArray(t[i]);return t},getProductType:function(){var t=$("#product-type");return t.length?t.val():null},check:function(){if("post"===acf.get("screen")){this.xhr&&this.xhr.abort();var t=acf.parseArgs(this.data,{action:"acf/ajax/check_screen",screen:acf.get("screen"),exclude:[]});this.isPost()&&(t.post_id=acf.get("post_id")),null!==(pageTemplate=this.getPageTemplate())&&(t.page_template=pageTemplate),null!==(pageParent=this.getPageParent())&&(t.page_parent=pageParent),null!==(pageType=this.getPageType())&&(t.page_type=pageType),null!==(postFormat=this.getPostFormat())&&(t.post_format=postFormat),null!==(postTerms=this.getPostTerms())&&(t.post_terms=postTerms),$(".acf-postbox").not(".acf-hidden").each(function(){t.exclude.push($(this).attr("id").substr(4))});var e=function(t){acf.isAjaxSuccess(t)&&($(".acf-postbox").addClass("acf-hidden"),$(".acf-postbox-toggle").addClass("acf-hidden"),$("#acf-style").html(""),t.data.map(function(t,e){var i=$("#acf-"+t.key),n=$("#acf-"+t.key+"-hide"),a=n.parent();i.removeClass("acf-hidden hide-if-js").show(),a.removeClass("acf-hidden hide-if-js").show(),n.prop("checked",!0);var r=i.find(".acf-replace-with-fields");r.exists()&&(r.replaceWith(t.html),acf.doAction("append",i)),0===e&&$("#acf-style").html(t.style),acf.enable(i,"postbox")}))},i=function(t){$(".acf-postbox.acf-hidden").each(function(){acf.disable($(this),"postbox")})};this.xhr=$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"json",context:this,success:e,complete:i})}},onChange:function(t,e){this.setTimeout(this.check,1)}})}(jQuery),function($,t){function e(){return acf.isset(window,"jQuery","fn","select2","amd")?4:!!acf.isset(window,"Select2")&&3}acf.newSelect2=function(t,i){if(i=acf.parseArgs(i,{allowNull:!1,placeholder:"",multiple:!1,field:!1,ajax:!1,ajaxAction:"",ajaxData:function(t){return t},ajaxResults:function(t){return t}}),4==e())var r=new n(t,i);else var r=new a(t,i);return acf.doAction("new_select2",r),r};var i=acf.Model.extend({setup:function(t,e){$.extend(this.data,e),this.$el=t},initialize:function(){},selectOption:function(t){var e=this.getOption(t);e.prop("selected")||e.prop("selected",!0).trigger("change")},unselectOption:function(t){var e=this.getOption(t);e.prop("selected")&&e.prop("selected",!1).trigger("change")},getOption:function(t){return this.$('option[value="'+t+'"]')},addOption:function(t){t=acf.parseArgs(t,{id:"",text:"",selected:!1});var e=this.getOption(t.id);return e.length||(e=$("<option></option>"),e.html(t.text),e.attr("value",t.id),e.prop("selected",t.selected),this.$el.append(e)),e},getValue:function(){var t=[],e=this.$el.find("option:selected");return e.exists()?(e=e.sort(function(t,e){return+t.getAttribute("data-i")-+e.getAttribute("data-i")}),e.each(function(){var e=$(this);t.push({$el:e,id:e.attr("value"),text:e.text()})}),t):t},mergeOptions:function(){},getChoices:function(){var t=function(e){var i=[];return e.children().each(function(){var e=$(this);e.is("optgroup")?i.push({text:e.attr("label"),children:t(e)}):i.push({id:e.attr("value"),text:e.text()})}),i};return t(this.$el)},decodeChoices:function(t){var e=function(t){return t.map(function(t){return t.text=acf.decode(t.text),t.children&&(t.children=e(t.children)),t}),t};return e(t)},getAjaxData:function(t){var e={action:this.get("ajaxAction"),s:t.term||"",paged:t.page||1},i=this.get("field");i&&(e.field_key=i.get("key"));var n=this.get("ajaxData");return n&&(e=n.apply(this,[e,t])),e=acf.applyFilters("select2_ajax_data",e,this.data,this.$el,i||!1,this),acf.prepareForAjax(e)},getAjaxResults:function(t,e){t=acf.parseArgs(t,{results:!1,more:!1}),t.results&&(t.results=this.decodeChoices(t.results));var i=this.get("ajaxResults");return i&&(t=i.apply(this,[t,e])),t=acf.applyFilters("select2_ajax_results",t,e,this)},processAjaxResults:function(t,e){var t=this.getAjaxResults(t,e);return t.more&&(t.pagination={more:!0}),setTimeout($.proxy(this.mergeOptions,this),1),t},destroy:function(){this.$el.data("select2")&&this.$el.select2("destroy"),this.$el.siblings(".select2-container").remove()}}),n=i.extend({initialize:function(){var t=this.$el,e={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),multiple:this.get("multiple"),data:[],escapeMarkup:function(t){return t}};e.multiple&&this.getValue().map(function(e){e.$el.detach().appendTo(t)}),t.removeData("ajax"),t.removeAttr("data-ajax"),this.get("ajax")&&(e.ajax={url:acf.get("ajaxurl"),delay:250,dataType:"json",type:"post",cache:!1,data:$.proxy(this.getAjaxData,this),processResults:$.proxy(this.processAjaxResults,this)});var i=this.get("field");e=acf.applyFilters("select2_args",e,t,this.data,i||!1,this),t.select2(e);var n=t.next(".select2-container");if(e.multiple){var a=n.find("ul");a.sortable({stop:function(e){a.find(".select2-selection__choice").each(function(){$($(this).data("data").element).detach().appendTo(t)}),t.trigger("change")}}),t.on("select2:select",this.proxy(function(t){this.getOption(t.params.data.id).detach().appendTo(this.$el)}))}n.addClass("-acf"),acf.doAction("select2_init",t,e,this.data,i||!1,this)},mergeOptions:function(){var t=!1,e=!1;$('.select2-results__option[role="group"]').each(function(){var i=$(this).children("ul"),n=$(this).children("strong");if(e&&e.text()===n.text())return t.append(i.children()),void $(this).remove();t=i,e=n})}}),a=i.extend({initialize:function(){var t=this.$el,e=this.getValue(),i=this.get("multiple"),n={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),separator:"||",multiple:this.get("multiple"),data:this.getChoices(),escapeMarkup:function(t){return t},dropdownCss:{"z-index":"999999999"},initSelection:function(t,n){n(i?e:e.shift())}},a=t.siblings("input");a.length||(a=$('<input type="hidden" />'),t.before(a)),inputValue=e.map(function(t){return t.id}).join("||"),a.val(inputValue),n.multiple&&e.map(function(e){e.$el.detach().appendTo(t)}),n.allowClear&&(n.data=n.data.filter(function(t){return""!==t.id})),t.removeData("ajax"),t.removeAttr("data-ajax"),this.get("ajax")&&(n.ajax={url:acf.get("ajaxurl"),quietMillis:250,dataType:"json",type:"post",cache:!1,data:$.proxy(this.getAjaxData,this),results:$.proxy(this.processAjaxResults,this)});var r=this.get("field");n=acf.applyFilters("select2_args",n,t,this.data,r||!1,this),a.select2(n);var s=a.select2("container"),o=$.proxy(this.getOption,this);if(n.multiple){var c=s.find("ul");c.sortable({stop:function(){c.find(".select2-search-choice").each(function(){var e=$(this).data("select2Data");o(e.id).detach().appendTo(t)}),t.trigger("change")}})}a.on("select2-selecting",function(e){var i=e.choice,n=o(i.id);n.length||(n=$('<option value="'+i.id+'">'+i.text+"</option>")),n.detach().appendTo(t)}),s.addClass("-acf"),acf.doAction("select2_init",t,n,this.data,r||!1,this),a.on("change",function(){var e=a.val();e.indexOf("||")&&(e=e.split("||")),t.val(e).trigger("change")}),t.hide()},mergeOptions:function(){var t=!1,e=!1;$("#select2-drop .select2-result-with-children").each(function(){var i=$(this).children("ul"),n=$(this).children(".select2-result-label");if(e&&e.text()===n.text())return e.append(i.children()),void $(this).remove();t=i,e=n})},getAjaxData:function(t,e){var n={term:t,page:e};return i.prototype.getAjaxData.apply(this,[n])}}),r=new acf.Model({priority:5,wait:"prepare",initialize:function(){var t=acf.get("locale"),i=acf.get("rtl"),n=acf.get("select2L10n"),a=e();return!!n&&(0!==t.indexOf("en")&&void(4==a?this.addTranslations4():3==a&&this.addTranslations3()))},addTranslations4:function(){var t=acf.get("select2L10n"),e=acf.get("locale");e=e.replace("_","-");var i={errorLoading:function(){return t.load_fail},inputTooLong:function(e){var i=e.input.length-e.maximum;return i>1?t.input_too_long_n.replace("%d",i):t.input_too_long_1},inputTooShort:function(e){var i=e.minimum-e.input.length;return i>1?t.input_too_short_n.replace("%d",i):t.input_too_short_1},loadingMore:function(){return t.load_more},maximumSelected:function(e){var i=e.maximum;return i>1?t.selection_too_long_n.replace("%d",i):t.selection_too_long_1},noResults:function(){return t.matches_0},searching:function(){return t.searching}};jQuery.fn.select2.amd.define("select2/i18n/"+e,[],function(){return i})},addTranslations3:function(){var t=acf.get("select2L10n"),e=acf.get("locale");e=e.replace("_","-");var i={formatMatches:function(e){return e>1?t.matches_n.replace("%d",e):t.matches_1},formatNoMatches:function(){return t.matches_0},formatAjaxError:function(){return t.load_fail},formatInputTooShort:function(e,i){var n=i-e.length;return n>1?t.input_too_short_n.replace("%d",n):t.input_too_short_1},formatInputTooLong:function(e,i){var n=e.length-i;return n>1?t.input_too_long_n.replace("%d",n):t.input_too_long_1},formatSelectionTooBig:function(e){return e>1?t.selection_too_long_n.replace("%d",e):t.selection_too_long_1},formatLoadMore:function(){return t.load_more},formatSearching:function(){return t.searching}};$.fn.select2.locales=$.fn.select2.locales||{},$.fn.select2.locales[e]=i,$.extend($.fn.select2.defaults,i)}})}(jQuery),function($,t){acf.tinymce={defaults:function(){return"undefined"!=typeof tinyMCEPreInit&&{tinymce:tinyMCEPreInit.mceInit.acf_content,quicktags:tinyMCEPreInit.qtInit.acf_content}},initialize:function(t,e){e=acf.parseArgs(e,{tinymce:!0,quicktags:!0,toolbar:"full",mode:"visual",field:!1}),e.tinymce&&this.initializeTinymce(t,e),e.quicktags&&this.initializeQuicktags(t,e)},initializeTinymce:function(t,e){var i=$("#"+t),n=this.defaults(),a=acf.get("toolbars"),r=e.field||!1,s=r.$el||!1;if("undefined"==typeof tinymce)return!1;if(!n)return!1;if(tinymce.get(t))return this.enable(t);var o=$.extend({},n.tinymce,e.tinymce);o.id=t,o.selector="#"+t;var c=e.toolbar;if(c&&a&&a[c])for(var l=1;l<=4;l++)o["toolbar"+l]=a[c][l]||"";if(o.setup=function(e){e.on("change",function(t){e.save(),i.trigger("change")}),$(e.getWin()).on("unload",function(){acf.tinymce.remove(t)})},o.wp_autoresize_on=!1,o=acf.applyFilters("wysiwyg_tinymce_settings",o,t,r),tinyMCEPreInit.mceInit[t]=o,"visual"==e.mode){var d=tinymce.init(o),u=tinymce.get(t);if(!u)return!1;u.acf=e.field,acf.doAction("wysiwyg_tinymce_init",u,u.id,o,r)}},initializeQuicktags:function(t,e){var i=this.defaults();if("undefined"==typeof quicktags)return!1;if(!i)return!1;var n=$.extend({},i.quicktags,e.quicktags);n.id=t;var a=e.field||!1,r=a.$el||!1;n=acf.applyFilters("wysiwyg_quicktags_settings",n,n.id,a),tinyMCEPreInit.qtInit[t]=n;var s=quicktags(n);if(!s)return!1;this.buildQuicktags(s),acf.doAction("wysiwyg_quicktags_init",s,s.id,n,a)},buildQuicktags:function(t){var e,i,n,a,r,t,s,o,c,l,d=",strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,";e=t.canvas,i=t.name,n=t.settings,r="",a={},c="",l=t.id,n.buttons&&(c=","+n.buttons+",");for(o in edButtons)edButtons[o]&&(s=edButtons[o].id,c&&-1!==d.indexOf(","+s+",")&&-1===c.indexOf(","+s+",")||edButtons[o].instance&&edButtons[o].instance!==l||(a[s]=edButtons[o],edButtons[o].html&&(r+=edButtons[o].html(i+"_"))))
4
- ;c&&-1!==c.indexOf(",dfw,")&&(a.dfw=new QTags.DFWButton,r+=a.dfw.html(i+"_")),"rtl"===document.getElementsByTagName("html")[0].dir&&(a.textdirection=new QTags.TextDirectionButton,r+=a.textdirection.html(i+"_")),t.toolbar.innerHTML=r,t.theButtons=a,"undefined"!=typeof jQuery&&jQuery(document).triggerHandler("quicktags-init",[t])},disable:function(t){this.destroyTinymce(t)},remove:function(t){this.destroyTinymce(t)},destroy:function(t){this.destroyTinymce(t)},destroyTinymce:function(t){if("undefined"==typeof tinymce)return!1;var e=tinymce.get(t);return!!e&&(e.save(),e.destroy(),!0)},enable:function(t){this.enableTinymce(t)},enableTinymce:function(t){return"undefined"!=typeof switchEditors&&(void 0!==tinyMCEPreInit.mceInit[t]&&(switchEditors.go(t,"tmce"),!0))}};var e=new acf.Model({priority:5,actions:{prepare:"onPrepare",ready:"onReady"},onPrepare:function(){var t=$("#acf-hidden-wp-editor");t.exists()&&t.appendTo("body")},onReady:function(){acf.isset(window,"tinymce","on")&&tinymce.on("AddEditor",function(t){var e=t.editor;"acf"===e.id.substr(0,3)&&(e=tinymce.editors.content||e,tinymce.activeEditor=e,wpActiveEditor=e.id)})}})}(jQuery),function($,t){var e=acf.Model.extend({id:"Validator",data:{errors:[],notice:null,status:""},events:{"changed:status":"onChangeStatus"},addErrors:function(t){t.map(this.addError,this)},addError:function(t){this.data.errors.push(t)},hasErrors:function(){return this.data.errors.length},clearErrors:function(){return this.data.errors=[]},getErrors:function(){return this.data.errors},getFieldErrors:function(){var t=[],e=[];return this.getErrors().map(function(i){if(i.input){var n=e.indexOf(i.input);n>-1?t[n]=i:(t.push(i),e.push(i.input))}}),t},getGlobalErrors:function(){return this.getErrors().filter(function(t){return!t.input})},showErrors:function(){if(this.hasErrors()){var t=this.getFieldErrors(),e=this.getGlobalErrors(),i=0,n=!1;t.map(function(t){var e=this.$('[name="'+t.input+'"]').first();if(e.length||(e=this.$('[name^="'+t.input+'"]').first()),e.length){i++;var a=acf.getClosestField(e);a.showError(t.message),n||(n=a.$el)}},this);var a=acf.__("Validation failed");if(e.map(function(t){a+=". "+t.message}),1==i?a+=". "+acf.__("1 field requires attention"):i>1&&(a+=". "+acf.__("%d fields require attention").replace("%d",i)),this.has("notice"))this.get("notice").update({type:"error",text:a});else{var r=acf.newNotice({type:"error",text:a,target:this.$el});this.set("notice",r)}n||(n=this.get("notice").$el),setTimeout(function(){$("html, body").animate({scrollTop:n.offset().top-$(window).height()/2},500)},10)}},onChangeStatus:function(t,e,i,n){this.$el.removeClass("is-"+n).addClass("is-"+i)},validate:function(t){if(t=acf.parseArgs(t,{event:!1,reset:!1,loading:function(){},complete:function(){},failure:function(){},success:function(t){t.submit()}}),"valid"==this.get("status"))return!0;if("validating"==this.get("status"))return!1;if(!this.$(".acf-field").length)return!0;if(t.event){var e=$.Event(null,t.event);t.success=function(){acf.enableSubmit($(e.target)).trigger(e)}}acf.doAction("validation_begin",this.$el),acf.lockForm(this.$el),t.loading(this.$el),this.set("status","validating");var i=function(t){if(acf.isAjaxSuccess(t)){var e=acf.applyFilters("validation_complete",t.data,this.$el);e.valid||this.addErrors(e.errors)}},n=function(){acf.unlockForm(this.$el),this.hasErrors()?(this.set("status","invalid"),acf.doAction("validation_failure",this.$el),this.showErrors(),t.failure(this.$el)):(this.set("status","valid"),this.has("notice")&&this.get("notice").update({type:"success",text:acf.__("Validation successful"),timeout:1e3}),acf.doAction("validation_success",this.$el),acf.doAction("submit",this.$el),t.success(this.$el),acf.lockForm(this.$el),t.reset&&this.reset()),t.complete(this.$el),this.clearErrors()},a=acf.serialize(this.$el);a.action="acf/validate_save_post",$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",context:this,success:i,complete:n})},setup:function(t){this.$el=t},reset:function(){this.set("errors",[]),this.set("notice",null),this.set("status",""),acf.unlockForm(this.$el)}}),i=function(t){var i=t.data("acf");return i||(i=new e(t)),i};acf.validateForm=function(t){return i(t.form).validate(t)},acf.enableSubmit=function(t){return t.removeClass("disabled")},acf.disableSubmit=function(t){return t.addClass("disabled")},acf.showSpinner=function(t){return t.addClass("is-active"),t.css("display","inline-block"),t},acf.hideSpinner=function(t){return t.removeClass("is-active"),t.css("display","none"),t},acf.lockForm=function(t){var e=n(t),i=e.find('.button, [type="submit"]'),a=e.find(".spinner, .acf-spinner");return acf.hideSpinner(a),acf.disableSubmit(i),acf.showSpinner(a.last()),t},acf.unlockForm=function(t){var e=n(t),i=e.find('.button, [type="submit"]'),a=e.find(".spinner, .acf-spinner");return acf.enableSubmit(i),acf.hideSpinner(a),t};var n=function(t){var e=t.find("#submitdiv");if(e.length)return e;var e=t.find("#submitpost");if(e.length)return e;var e=t.find("p.submit").last();if(e.length)return e;var e=t.find(".acf-form-submit");return e.length?e:t};acf.validation=new acf.Model({id:"validation",active:!0,wait:"prepare",actions:{ready:"addInputEvents",append:"addInputEvents"},events:{'click input[type="submit"]':"onClickSubmit",'click button[type="submit"]':"onClickSubmit","click #save-post":"onClickSave","mousedown #post-preview":"onClickPreview","submit form":"onSubmit"},initialize:function(){acf.get("validation")||(this.active=!1,this.actions={},this.events={})},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(t){i(t).reset()},addInputEvents:function(t){var e=$(".acf-field [name]",t);e.length&&this.on(e,"invalid","onInvalid")},onInvalid:function(t,e){t.preventDefault();var n=e.closest("form");n.length&&(i(n).addError({input:e.attr("name"),message:t.target.validationMessage}),n.submit())},onClickSubmit:function(t,e){this.set("originalEvent",t)},onClickSave:function(t,e){this.set("ignore",!0)},onClickPreview:function(t,e){this.set("ignore",!0),$("form#post").off("submit.edit-post")},onSubmit:function(t,e){if(this.active){if(this.get("ignore"))return void this.set("ignore",!1);acf.validateForm({form:e,event:this.get("originalEvent")})||t.preventDefault()}}})}(jQuery),function($,t){var e=new acf.Model({priority:90,timeout:0,actions:{new_field:"refresh",show_field:"refresh",hide_field:"refresh",remove_field:"refresh"},refresh:function(){clearTimeout(this.timeout),this.timeout=setTimeout(function(){acf.doAction("refresh")},0)}}),i=new acf.Model({actions:{sortstart:"onSortstart"},onSortstart:function(t,e){t.is("tr")&&(t.css("position","relative"),t.children().each(function(){$(this).width($(this).width())}),t.css("position","absolute"),e.html('<td style="height:'+t.height()+'px; padding:0;" colspan="'+t.children("td").length+'"></td>'))}}),n=new acf.Model({actions:{after_duplicate:"onAfterDuplicate"},onAfterDuplicate:function(t,e){var i=[];t.find("select").each(function(t){i.push($(this).val())}),e.find("select").each(function(t){$(this).val(i[t])})}}),a=new acf.Model({id:"tableHelper",priority:20,actions:{refresh:"renderTables"},renderTables:function(t){var e=this;$(".acf-table:visible").each(function(){e.renderTable($(this))})},renderTable:function(t){var e=t.find("> thead > tr:visible > th[data-key]"),i=t.find("> tbody > tr:visible > td[data-key]");if(!e.length||!i.length)return!1;e.each(function(t){var e=$(this),n=e.data("key"),a=i.filter('[data-key="'+n+'"]'),r=a.filter(".acf-hidden");a.removeClass("acf-empty"),a.length===r.length?acf.hide(e):(acf.show(e),r.addClass("acf-empty"))}),e.css("width","auto"),e=e.not(".acf-hidden");var n=100,a=e.length;e.filter("[data-width]").each(function(){var t=$(this).data("width");$(this).css("width",t+"%"),n-=t});var r=e.not("[data-width]");if(r.length){var s=n/r.length;r.css("width",s+"%"),n=0}n>0&&e.last().css("width","auto"),i.filter(".-collapsed-target").each(function(){var t=$(this);t.parent().hasClass("-collapsed")?t.attr("colspan",e.length):t.removeAttr("colspan")})}}),r=new acf.Model({id:"fieldsHelper",priority:30,actions:{refresh:"renderGroups"},renderGroups:function(){var t=this;$(".acf-fields:visible").each(function(){t.renderGroup($(this))})},renderGroup:function(t){var e=0,i=0,n=$(),a=t.children(".acf-field[data-width]:visible");return!!a.length&&(t.hasClass("-left")?(a.removeAttr("data-width"),a.css("width","auto"),!1):(a.removeClass("-r0 -c0").css({"min-height":0}),a.each(function(t){var a=$(this),r=a.position(),s=Math.ceil(r.top),o=Math.ceil(r.left);n.length&&s>e&&(n.css({"min-height":i+"px"}),r=a.position(),s=Math.ceil(r.top),o=Math.ceil(r.left),e=0,i=0,n=$()),acf.get("rtl")&&(o=Math.ceil(a.parent().width()-(r.left+a.outerWidth()))),0==s?a.addClass("-r0"):0==o&&a.addClass("-c0");var c=Math.ceil(a.outerHeight())+1;i=Math.max(i,c),e=Math.max(e,s),n=n.add(a)}),void(n.length&&n.css({"min-height":i+"px"}))))}})}(jQuery),function($,t){acf.newCompatibility=function(t,e){return e=e||{},e.__proto__=t.__proto__,t.__proto__=e,t.compatibility=e,e},acf.getCompatibility=function(t){return t.compatibility||null};var e=acf.newCompatibility(acf,{l10n:{},o:{},fields:{},update:acf.set,add_action:acf.addAction,remove_action:acf.removeAction,do_action:acf.doAction,add_filter:acf.addFilter,remove_filter:acf.removeFilter,apply_filters:acf.applyFilters,parse_args:acf.parseArgs,disable_el:acf.disable,disable_form:acf.disable,enable_el:acf.enable,enable_form:acf.enable,update_user_setting:acf.updateUserSetting,prepare_for_ajax:acf.prepareForAjax,is_ajax_success:acf.isAjaxSuccess,remove_el:acf.remove,remove_tr:acf.remove,str_replace:acf.strReplace,render_select:acf.renderSelect,get_uniqid:acf.uniqid,serialize_form:acf.serialize,esc_html:acf.strEscape,str_sanitize:acf.strSanitize});e._e=function(t,e){t=t||"",e=e||"";var i=e?t+"."+e:t,n={"image.select":"Select Image","image.edit":"Edit Image","image.update":"Update Image"};if(n[i])return acf.__(n[i]);var a=this.l10n[t]||"";return e&&(a=a[e]||""),a},e.get_selector=function(t){var e=".acf-field";if(!t)return e;if($.isPlainObject(t)){if($.isEmptyObject(t))return e;for(var i in t){t=t[i];break}}return e+="-"+t,e=acf.strReplace("_","-",e),e=acf.strReplace("field-field-","field-",e)},e.get_fields=function(t,e,i){var n={is:t||"",parent:e||!1,suppressFilters:i||!1};return n.is&&(n.is=this.get_selector(n.is)),acf.findFields(n)},e.get_field=function(t,e){var i=this.get_fields.apply(this,arguments);return!!i.length&&i.first()},e.get_closest_field=function(t,e){return t.closest(this.get_selector(e))},e.get_field_wrap=function(t){return t.closest(this.get_selector())},e.get_field_key=function(t){return t.data("key")},e.get_field_type=function(t){return t.data("type")},e.get_data=function(t,e){return acf.parseArgs(t.data(),e)},e.maybe_get=function(t,e,i){void 0===i&&(i=null),keys=String(e).split(".");for(var n=0;n<keys.length;n++){if(!t.hasOwnProperty(keys[n]))return i;t=t[keys[n]]}return t};var i=function(t){return t instanceof acf.Field?t.$el:t},n=function(t){return acf.arrayArgs(t).map(i)},a=function(t){return function(){if(arguments.length)var e=n(arguments);else var e=[$(document)];return t.apply(this,e)}};e.add_action=function(t,i,n,r){var s=t.split(" "),o=s.length;if(o>1){for(var c=0;c<o;c++)t=s[c],e.add_action.apply(this,arguments);return this}var i=a(i);return acf.addAction.apply(this,arguments)},e.add_filter=function(t,e,i,n){var e=a(e);return acf.addFilter.apply(this,arguments)},e.model={actions:{},filters:{},events:{},extend:function(t){var e=$.extend({},this,t);return $.each(e.actions,function(t,i){e._add_action(t,i)}),$.each(e.filters,function(t,i){e._add_filter(t,i)}),$.each(e.events,function(t,i){e._add_event(t,i)}),e},_add_action:function(t,e){var i=this,n=t.split(" "),t=n[0]||"",a=n[1]||10;acf.add_action(t,i[e],a,i)},_add_filter:function(t,e){var i=this,n=t.split(" "),t=n[0]||"",a=n[1]||10;acf.add_filter(t,i[e],a,i)},_add_event:function(t,e){var i=this,n=t.indexOf(" "),a=n>0?t.substr(0,n):t,r=n>0?t.substr(n+1):"",s=function(t){t.$el=$(this),acf.field_group&&(t.$field=t.$el.closest(".acf-field-object")),"function"==typeof i.event&&(t=i.event(t)),i[e].apply(i,arguments)};r?$(document).on(a,r,s):$(document).on(a,s)},get:function(t,e){return e=e||null,void 0!==this[t]&&(e=this[t]),e},set:function(t,e){return this[t]=e,"function"==typeof this["_set_"+t]&&this["_set_"+t].apply(this),this}},e.field=acf.model.extend({type:"",o:{},$field:null,_add_action:function(t,e){var i=this;t=t+"_field/type="+i.type,acf.add_action(t,function(t){i.set("$field",t),i[e].apply(i,arguments)})},_add_filter:function(t,e){var i=this;t=t+"_field/type="+i.type,acf.add_filter(t,function(t){i.set("$field",t),i[e].apply(i,arguments)})},_add_event:function(t,e){var i=this,n=t.substr(0,t.indexOf(" ")),a=t.substr(t.indexOf(" ")+1),r=acf.get_selector(i.type);$(document).on(n,r+" "+a,function(t){var n=$(this),a=acf.get_closest_field(n,i.type);a.length&&(a.is(i.$field)||i.set("$field",a),t.$el=n,t.$field=a,i[e].apply(i,[t]))})},_set_$field:function(){"function"==typeof this.focus&&this.focus()},doFocus:function(t){return this.set("$field",t)}});var r=acf.newCompatibility(acf.validation,{remove_error:function(t){acf.getField(t).removeError()},add_warning:function(t,e){acf.getField(t).showNotice({text:e,type:"warning",timeout:1e3})},fetch:acf.validateForm,enableSubmit:acf.enableSubmit,disableSubmit:acf.disableSubmit,showSpinner:acf.showSpinner,hideSpinner:acf.hideSpinner,unlockForm:acf.unlockForm,lockForm:acf.lockForm});e.tooltip={tooltip:function(t,e){return acf.newTooltip({text:t,target:e}).$el},temp:function(t,e){var i=acf.newTooltip({text:t,target:e,timeout:250})},confirm:function(t,e,i,n,a){var r=acf.newTooltip({confirm:!0,text:i,target:t,confirm:function(){e(!0)},cancel:function(){e(!1)}})},confirm_remove:function(t,e){var i=acf.newTooltip({confirmRemove:!0,target:t,confirm:function(){e(!0)},cancel:function(){e(!1)}})}},e.media=new acf.Model({activeFrame:!1,actions:{new_media_popup:"onNewMediaPopup"},frame:function(){return this.activeFrame},onNewMediaPopup:function(t){this.activeFrame=t.frame},popup:function(t){return t.mime_types&&(t.allowedTypes=t.mime_types),t.id&&(t.attachment=t.id),acf.newMediaPopup(t).frame}}),e.select2={init:function(t,e,i){return e.allow_null&&(e.allowNull=e.allow_null),e.ajax_action&&(e.ajaxAction=e.ajax_action),i&&(e.field=acf.getField(i)),acf.newSelect2(t,e)},destroy:function(t){return acf.getInstance(t).destroy()}},e.postbox={render:function(t){return t.edit_url&&(t.editLink=t.edit_url),t.edit_title&&(t.editTitle=t.edit_title),acf.newPostbox(t)}},acf.newCompatibility(acf.screen,{update:function(){return this.set.apply(this,arguments)},fetch:acf.screen.check}),e.ajax=acf.screen}(jQuery);
1
+ !function(r,s){var c={};(window.acf=c).data={},c.get=function(t){return this.data[t]||null},c.has=function(t){return null!==this.get(t)},c.set=function(t,e){return this.data[t]=e,this};var i=0;c.uniqueId=function(t){var e=++i+"";return t?t+e:e},c.uniqueArray=function(t){function e(t,e,i){return i.indexOf(t)===e}return t.filter(e)};var a="";c.uniqid=function(t,e){var i;void 0===t&&(t="");var n=function(t,e){return e<(t=parseInt(t,10).toString(16)).length?t.slice(t.length-e):e>t.length?Array(e-t.length+1).join("0")+t:t};return a||(a=Math.floor(123456789*Math.random())),a++,i=t,i+=n(parseInt((new Date).getTime()/1e3,10),8),i+=n(a,5),e&&(i+=(10*Math.random()).toFixed(8).toString()),i},c.strReplace=function(t,e,i){return i.split(t).join(e)},c.strCamelCase=function(t){return t=(t=t.replace(/[_-]/g," ")).replace(/(?:^\w|\b\w|\s+)/g,function(t,e){return 0==+t?"":0==e?t.toLowerCase():t.toUpperCase()})},c.strPascalCase=function(t){var e=c.strCamelCase(t);return e.charAt(0).toUpperCase()+e.slice(1)},c.strSlugify=function(t){return c.strReplace("_","-",t.toLowerCase())},c.strSanitize=function(t){var e={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","ß":"s","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o"," ":"_","'":"","?":"","/":"","\\":"",".":"",",":"","`":"",">":"","<":"",'"':"","[":"","]":"","|":"","{":"","}":"","(":"",")":""},i=/\W/g,n=function(t){return e[t]!==s?e[t]:t};return t=(t=t.replace(i,n)).toLowerCase()},c.strMatch=function(t,e){for(var i=0,n=Math.min(t.length,e.length),a=0;a<n&&t[a]===e[a];a++)i++;return i},c.decode=function(t){return r("<textarea/>").html(t).text()},c.strEscape=function(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})},c.parseArgs=function(t,e){return"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={}),r.extend({},e,t)},window.acfL10n==s&&(acfL10n={}),c.__=function(t){return acfL10n[t]||t},c._x=function(t,e){return acfL10n[t+"."+e]||acfL10n[t]||t},c._n=function(t,e,i){return 1==i?c.__(t):c.__(e)},c.isArray=function(t){return Array.isArray(t)},c.isObject=function(t){return"object"==typeof t};var o=function(t,e,i){var n=(e=e.replace("[]","[%%index%%]")).match(/([^\[\]])+/g);if(n)for(var a=n.length,r=t,s=0;s<a;s++){var o=String(n[s]);s==a-1?"%%index%%"===o?r.push(i):r[o]=i:("%%index%%"===n[s+1]?c.isArray(r[o])||(r[o]=[]):c.isObject(r[o])||(r[o]={}),r=r[o])}};c.serialize=function(t,e){var i={},n=c.serializeArray(t);e!==s&&(n=n.filter(function(t){return 0===t.name.indexOf(e)}).map(function(t){return t.name=t.name.slice(e.length),t}));for(var a=0;a<n.length;a++)o(i,n[a].name,n[a].value);return i},c.serializeArray=function(t){return t.find("select, textarea, input").serializeArray()},c.addAction=function(t,e,i,n){return c.hooks.addAction.apply(this,arguments),this},c.removeAction=function(t,e){return c.hooks.removeAction.apply(this,arguments),this};var e={};c.doAction=function(t){return e[t]=1,c.hooks.doAction.apply(this,arguments),e[t]=0,this},c.doingAction=function(t){return 1===e[t]},c.didAction=function(t){return e[t]!==s},c.currentAction=function(){for(var t in e)if(e[t])return t;return!1},c.addFilter=function(t){return c.hooks.addFilter.apply(this,arguments),this},c.removeFilter=function(t){return c.hooks.removeFilter.apply(this,arguments),this},c.applyFilters=function(t){return c.hooks.applyFilters.apply(this,arguments)},c.arrayArgs=function(t){return Array.prototype.slice.call(t)};try{var n=JSON.parse(localStorage.getItem("acf"))||{}}catch(t){var n={}}var l=function(t){return"this."===t.substr(0,5)&&(t=t.substr(5)+"-"+c.get("post_id")),t};c.getPreference=function(t){return t=l(t),n[t]||null},c.setPreference=function(t,e){t=l(t),null===e?delete n[t]:n[t]=e,localStorage.setItem("acf",JSON.stringify(n))},c.removePreference=function(t){c.setPreference(t,null)},c.remove=function(t){t instanceof jQuery&&(t={target:t}),t=c.parseArgs(t,{target:!1,endHeight:0,complete:function(){}}),c.doAction("remove",t.target),t.target.is("tr")?d(t):u(t)};var u=function(t){var e=t.target,i=e.height(),n=e.width(),a=e.css("margin"),r=e.outerHeight(!0),s=e.attr("style")+"";e.wrap('<div class="acf-temp-remove" style="height:'+r+'px"></div>');var o=e.parent();e.css({height:i,width:n,margin:a,position:"absolute"}),setTimeout(function(){o.css({opacity:0,height:t.endHeight})},50),setTimeout(function(){e.attr("style",s),o.remove(),t.complete()},301)},d=function(t){var e=t.target,i=e.height(),n=e.children().length,a=r('<td class="acf-temp-remove" style="padding:0; height:'+i+'px" colspan="'+n+'"></td>');e.addClass("acf-remove-element"),setTimeout(function(){e.html(a)},251),setTimeout(function(){e.removeClass("acf-remove-element"),a.css({height:t.endHeight})},300),setTimeout(function(){e.remove(),t.complete()},451)};c.duplicate=function(t){t instanceof jQuery&&(t={target:t});var i=0;(t=c.parseArgs(t,{target:!1,search:"",replace:"",before:function(t){},after:function(t,e){},append:function(t,e){t.after(e),i=1}})).target=t.target||t.$el;var e=t.target;t.search=t.search||e.attr("data-id"),t.replace=t.replace||c.uniqid(),t.before(e),c.doAction("before_duplicate",e);var n=e.clone();return c.rename({target:n,search:t.search,replace:t.replace}),n.removeClass("acf-clone"),n.find(".ui-sortable").removeClass("ui-sortable"),t.after(e,n),c.doAction("after_duplicate",e,n),t.append(e,n),c.doAction("append",n),n},c.rename=function(t){t instanceof jQuery&&(t={target:t});var e=(t=c.parseArgs(t,{target:!1,destructive:!1,search:"",replace:""})).target,i=t.search||e.attr("data-id"),n=t.replace||c.uniqid("acf"),a=function(t,e){return e.replace(i,n)};if(t.destructive){var r=e.outerHTML();r=c.strReplace(i,n,r),e.replaceWith(r)}else e.attr("data-id",n),e.find('[id*="'+i+'"]').attr("id",a),e.find('[for*="'+i+'"]').attr("for",a),e.find('[name*="'+i+'"]').attr("name",a);return e},c.prepareForAjax=function(t){return t.nonce=c.get("nonce"),t.post_id=c.get("post_id"),c.has("language")&&(t.lang=c.get("language")),t=c.applyFilters("prepare_for_ajax",t)},c.startButtonLoading=function(t){t.prop("disabled",!0),t.after(' <i class="acf-loading"></i>')},c.stopButtonLoading=function(t){t.prop("disabled",!1),t.next(".acf-loading").remove()},c.showLoading=function(t){t.append('<div class="acf-loading-overlay"><i class="acf-loading"></i></div>')},c.hideLoading=function(t){t.children(".acf-loading-overlay").remove()},c.updateUserSetting=function(t,e){var i={action:"acf/ajax/user_setting",name:t,value:e};r.ajax({url:c.get("ajaxurl"),data:c.prepareForAjax(i),type:"post",dataType:"html"})},c.val=function(t,e,i){var n=t.val();return e!==n&&(t.val(e),t.is("select")&&null===t.val()?(t.val(n),!1):(!0!==i&&t.trigger("change"),!0))},c.show=function(t,e){return e&&c.unlock(t,"hidden",e),!c.isLocked(t,"hidden")&&(!!t.hasClass("acf-hidden")&&(t.removeClass("acf-hidden"),!0))},c.hide=function(t,e){return e&&c.lock(t,"hidden",e),!t.hasClass("acf-hidden")&&(t.addClass("acf-hidden"),!0)},c.isHidden=function(t){return t.hasClass("acf-hidden")},c.isVisible=function(t){return!c.isHidden(t)};var f=function(t,e){return!t.hasClass("acf-disabled")&&(e&&c.unlock(t,"disabled",e),!c.isLocked(t,"disabled")&&(!!t.prop("disabled")&&(t.prop("disabled",!1),!0)))};c.enable=function(t,e){if(t.attr("name"))return f(t,e);var i=!1;return t.find("[name]").each(function(){var t;f(r(this),e)&&(i=!0)}),i};var h=function(t,e){return e&&c.lock(t,"disabled",e),!t.prop("disabled")&&(t.prop("disabled",!0),!0)};c.disable=function(t,e){if(t.attr("name"))return h(t,e);var i=!1;return t.find("[name]").each(function(){var t;h(r(this),e)&&(i=!0)}),i},c.isset=function(t){for(var e=1;e<arguments.length;e++){if(!t||!t.hasOwnProperty(arguments[e]))return!1;t=t[arguments[e]]}return!0},c.isget=function(t){for(var e=1;e<arguments.length;e++){if(!t||!t.hasOwnProperty(arguments[e]))return null;t=t[arguments[e]]}return t},c.getFileInputData=function(t,e){var i=t.val();if(!i)return!1;var n={url:i},a=c.isget(t[0],"files",0);if(a)if(n.size=a.size,n.type=a.type,-1<a.type.indexOf("image")){var r=window.URL||window.webkitURL,s=new Image;s.onload=function(){n.width=this.width,n.height=this.height,e(n)},s.src=r.createObjectURL(a)}else e(n);else e(n)},c.isAjaxSuccess=function(t){return t&&t.success},c.getAjaxMessage=function(t){return c.isget(t,"data","message")},c.getAjaxError=function(t){return c.isget(t,"data","error")},c.renderSelect=function(t,e){var i=t.val(),a=[],r=function(t){var n="";return t.map(function(t){var e=t.text||t.label||"",i=t.id||t.value||"";a.push(i),t.children?n+='<optgroup label="'+c.strEscape(e)+'">'+r(t.children)+"</optgroup>":n+='<option value="'+i+'"'+(t.disabled?' disabled="disabled"':"")+">"+c.strEscape(e)+"</option>"}),n};return t.html(r(e)),-1<a.indexOf(i)&&t.val(i),t.val()};var p=function(t,e){return t.data("acf-lock-"+e)||[]},g=function(t,e,i){t.data("acf-lock-"+e,i)};c.lock=function(t,e,i){var n=p(t,e),a;n.indexOf(i)<0&&(n.push(i),g(t,e,n))},c.unlock=function(t,e,i){var n=p(t,e),a=n.indexOf(i);return-1<a&&(n.splice(a,1),g(t,e,n)),0===n.length},c.isLocked=function(t,e){return 0<p(t,e).length},r.fn.exists=function(){return 0<r(this).length},r.fn.outerHTML=function(){return r(this).get(0).outerHTML},Array.prototype.indexOf||(Array.prototype.indexOf=function(t){return r.inArray(t,this)}),r(document).ready(function(){c.doAction("ready")}),r(window).on("load",function(){c.doAction("load")}),r(window).on("beforeunload",function(){c.doAction("unload")}),r(window).on("resize",function(){c.doAction("resize")}),r(document).on("sortstart",function(t,e){c.doAction("sortstart",e.item,e.placeholder)}),r(document).on("sortstop",function(t,e){c.doAction("sortstop",e.item,e.placeholder)})}(jQuery),function(t,e){"use strict";var i=function(){function t(){return f}function e(t,e,i,n){return"string"==typeof t&&"function"==typeof e&&c("actions",t,e,i=parseInt(i||10,10),n),d}function i(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e&&u("actions",e,t),d}function n(t,e){return"string"==typeof t&&o("actions",t,e),d}function a(t,e,i,n){return"string"==typeof t&&"function"==typeof e&&c("filters",t,e,i=parseInt(i||10,10),n),d}function r(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e?u("filters",e,t):d}function s(t,e){return"string"==typeof t&&o("filters",t,e),d}function o(t,e,i,n){if(f[t][e])if(i){var a=f[t][e],r;if(n)for(r=a.length;r--;){var s=a[r];s.callback===i&&s.context===n&&a.splice(r,1)}else for(r=a.length;r--;)a[r].callback===i&&a.splice(r,1)}else f[t][e]=[]}function c(t,e,i,n,a){var r={callback:i,priority:n,context:a},s=f[t][e];s=s?(s.push(r),l(s)):[r],f[t][e]=s}function l(t){for(var e,i,n,a=1,r=t.length;a<r;a++){for(e=t[a],i=a;(n=t[i-1])&&n.priority>e.priority;)t[i]=t[i-1],--i;t[i]=e}return t}function u(t,e,i){var n=f[t][e];if(!n)return"filters"===t&&i[0];var a=0,r=n.length;if("filters"===t)for(;a<r;a++)i[0]=n[a].callback.apply(n[a].context,i);else for(;a<r;a++)n[a].callback.apply(n[a].context,i);return"filters"!==t||i[0]}var d={removeFilter:s,applyFilters:r,addFilter:a,removeAction:n,doAction:i,addAction:e,storage:t},f={actions:{},filters:{}};return d};acf.hooks=new i}(window),function(r,t){var n=/^(\S+)\s*(.*)$/,e=function(t){var e=this,i;return i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},r.extend(i,e),i.prototype=Object.create(e.prototype),r.extend(i.prototype,t),i.prototype.constructor=i},i=acf.Model=function(){this.cid=acf.uniqueId("acf"),this.data=r.extend(!0,{},this.data),this.setup.apply(this,arguments),this.$el&&!this.$el.data("acf")&&this.$el.data("acf",this);var t=function(){this.initialize(),this.addEvents(),this.addActions(),this.addFilters()};this.wait&&!acf.didAction(this.wait)?this.addAction(this.wait,t):t.apply(this)};r.extend(i.prototype,{id:"",cid:"",$el:null,data:{},busy:!1,changed:!1,events:{},actions:{},filters:{},eventScope:"",wait:!1,priority:10,get:function(t){return this.data[t]},has:function(t){return null!=this.get(t)},set:function(t,e,i){var n=this.get(t);return n==e||(this.data[t]=e,i||(this.changed=!0,this.trigger("changed:"+t,[e,n]),this.trigger("changed",[t,e,n]))),this},inherit:function(t){return t instanceof jQuery&&(t=t.data()),r.extend(this.data,t),this},prop:function(){return this.$el.prop.apply(this.$el,arguments)},setup:function(t){r.extend(this,t)},initialize:function(){},addElements:function(t){if(!(t=t||this.elements||null)||!Object.keys(t).length)return!1;for(var e in t)this.addElement(e,t[e])},addElement:function(t,e){this["$"+t]=this.$(e)},addEvents:function(t){if(!(t=t||this.events||null))return!1;for(var e in t){var i=e.match(n);this.on(i[1],i[2],t[e])}},removeEvents:function(t){if(!(t=t||this.events||null))return!1;for(var e in t){var i=e.match(n);this.off(i[1],i[2],t[e])}},getEventTarget:function(t,e){return t||this.$el||r(document)},validateEvent:function(t){return!this.eventScope||r(t.target).closest(this.eventScope).is(this.$el)},proxyEvent:function(a){return this.proxy(function(t){if(this.validateEvent(t)){var e,i=acf.arrayArgs(arguments).slice(1),n=[t,r(t.currentTarget)].concat(i);a.apply(this,n)}})},on:function(t,e,i,n){var a,r,s,o,c;o=t instanceof jQuery?n?(a=t,r=e,s=i,n):(a=t,r=e,i):i?(r=t,s=e,i):(r=t,e),a=this.getEventTarget(a),"string"==typeof o&&(o=this.proxyEvent(this[o])),r=r+"."+this.cid,c=s?[r,s,o]:[r,o],a.on.apply(a,c)},off:function(t,e,i){var n,a,r,s;t instanceof jQuery?i?(n=t,a=e,r=i):(n=t,a=e):e?(a=t,r=e):a=t,n=this.getEventTarget(n),a=a+"."+this.cid,s=r?[a,r]:[a],n.off.apply(n,s)},trigger:function(t,e,i){var n=this.getEventTarget();return i?n.trigger.apply(n,arguments):n.triggerHandler.apply(n,arguments),this},addActions:function(t){if(!(t=t||this.actions||null))return!1;for(var e in t)this.addAction(e,t[e])},removeActions:function(t){if(!(t=t||this.actions||null))return!1;for(var e in t)this.removeAction(e,t[e])},addAction:function(t,e,i){i=i||this.priority,"string"==typeof e&&(e=this[e]),acf.addAction(t,e,i,this)},removeAction:function(t,e){acf.removeAction(t,this[e])},addFilters:function(t){if(!(t=t||this.filters||null))return!1;for(var e in t)this.addFilter(e,t[e])},addFilter:function(t,e,i){i=i||this.priority,"string"==typeof e&&(e=this[e]),acf.addFilter(t,e,i,this)},removeFilters:function(t){if(!(t=t||this.filters||null))return!1;for(var e in t)this.removeFilter(e,t[e])},removeFilter:function(t,e){acf.removeFilter(t,this[e])},$:function(t){return this.$el.find(t)},remove:function(){this.removeEvents(),this.removeActions(),this.removeFilters(),this.$el.remove()},setTimeout:function(t,e){return setTimeout(this.proxy(t),e)},time:function(){console.time(this.id||this.cid)},timeEnd:function(){console.timeEnd(this.id||this.cid)},show:function(){acf.show(this.$el)},hide:function(){acf.hide(this.$el)},proxy:function(t){return r.proxy(t,this)}}),i.extend=e,acf.models={},acf.getInstance=function(t){return t.data("acf")},acf.getInstances=function(t){var e=[];return t.each(function(){e.push(acf.getInstance(r(this)))}),e}}(jQuery),function(e,t){acf.models.Popup=acf.Model.extend({data:{title:"",content:"",width:0,height:0,loading:!1},events:{'click [data-event="close"]':"onClickClose","click .acf-close-popup":"onClickClose"},setup:function(t){e.extend(this.data,t),this.$el=e(this.tmpl())},initialize:function(){this.render(),this.open()},tmpl:function(){return['<div id="acf-popup">','<div class="acf-popup-box acf-box">','<div class="title"><h3></h3><a href="#" class="acf-icon -cancel grey" data-event="close"></a></div>','<div class="inner"></div>','<div class="loading"><i class="acf-loading"></i></div>',"</div>",'<div class="bg" data-event="close"></div>',"</div>"].join("")},render:function(){var t=this.get("title"),e=this.get("content"),i=this.get("loading"),n=this.get("width"),a=this.get("height");this.title(t),this.content(e),n&&this.$(".acf-popup-box").css("width",n),a&&this.$(".acf-popup-box").css("min-height",a),this.loading(i),acf.doAction("append",this.$el)},update:function(t){this.data=acf.parseArgs(t,this.data),this.render()},title:function(t){this.$(".title:first h3").html(t)},content:function(t){this.$(".inner:first").html(t)},loading:function(t){var e=this.$(".loading:first");t?e.show():e.hide()},open:function(){e("body").append(this.$el)},close:function(){this.remove()},onClickClose:function(t,e){t.preventDefault(),this.close()}}),acf.newPopup=function(t){return new acf.models.Popup(t)}}(jQuery),function(t,e){acf.unload=new acf.Model({wait:"load",active:!0,changed:!1,actions:{validation_failure:"startListening"},events:{"change .acf-field":"startListening","submit form":"stopListening"},reset:function(){this.stopListening()},startListening:function(){!this.changed&&this.active&&(this.changed=!0,t(window).on("beforeunload",this.onUnload))},stopListening:function(){this.changed=!1,t(window).off("beforeunload",this.onUnload)},onUnload:function(){return acf.__("The changes you made will be lost if you navigate away from this page")}})}(jQuery),function(t,e){var i=new acf.Model({events:{"click .acf-panel-title":"onClick"},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},isOpen:function(t){return t.hasClass("-open")},toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},open:function(t){t.addClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-down")},close:function(t){t.removeClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-right")}})}(jQuery),function(e,t){var i=acf.Model.extend({data:{text:"",type:"",timeout:0,dismiss:!0,target:!1,close:function(){}},events:{"click .acf-notice-dismiss":"onClickClose"},tmpl:function(){return'<div class="acf-notice"></div>'},setup:function(t){e.extend(this.data,t),this.$el=e(this.tmpl())},initialize:function(){this.render(),this.show()},render:function(){this.type(this.get("type")),this.html("<p>"+this.get("text")+"</p>"),this.get("dismiss")&&(this.$el.append('<a href="#" class="acf-notice-dismiss acf-icon -cancel small"></a>'),this.$el.addClass("-dismiss"));var t=this.get("timeout");t&&this.away(t)},update:function(t){e.extend(this.data,t),this.initialize(),this.removeEvents(),this.addEvents()},show:function(){var t=this.get("target");t&&t.prepend(this.$el)},hide:function(){this.$el.remove()},away:function(t){this.setTimeout(function(){acf.remove(this.$el)},t)},type:function(t){var e=this.get("type");e&&this.$el.removeClass("-"+e),this.$el.addClass("-"+t),"error"==t&&this.$el.addClass("acf-error-message")},html:function(t){this.$el.html(t)},text:function(t){this.$("p").html(t)},onClickClose:function(t,e){t.preventDefault(),this.get("close").apply(this,arguments),this.remove()}});acf.newNotice=function(t){return"object"!=typeof t&&(t={text:t}),new i(t)};var n=new acf.Model({wait:"prepare",priority:1,initialize:function(){var t=e(".acf-admin-notice");t.length&&e("h1:first").after(t)}})}(jQuery),function(e,t){acf.getPostbox=function(t){return"string"==typeof t&&(t=e("#"+t)),acf.getInstance(t)},acf.getPostboxes=function(){var t=e(".acf-postbox");return acf.getInstances(t)},acf.newPostbox=function(t){return new acf.models.Postbox(t)},acf.models.Postbox=acf.Model.extend({data:{id:"",key:"",style:"default",label:"top",visible:!0,edit:"",html:!0},setup:function(t){t.editLink&&(t.edit=t.editLink),e.extend(this.data,t),this.$el=this.$postbox()},$postbox:function(){return e("#"+this.get("id"))},$placeholder:function(){return e("#"+this.get("id")+"-placeholder")},$hide:function(){return e("#"+this.get("id")+"-hide")},$hideLabel:function(){return this.$hide().parent()},$hndle:function(){return this.$("> .hndle")},$inside:function(){return this.$("> .inside")},isVisible:function(){return this.get("visible")},hasHTML:function(){return this.get("html")},initialize:function(){this.$el.addClass("acf-postbox"),this.$el.removeClass("hide-if-js");var t=this.get("style");"default"!==t&&this.$el.addClass(t),this.$inside().addClass("acf-fields").addClass("-"+this.get("label"));var e=this.get("edit");e&&this.$hndle().append('<a href="'+e+'" class="dashicons dashicons-admin-generic acf-hndle-cog acf-js-tooltip" title="'+acf.__("Edit field group")+'"></a>'),this.isVisible()?this.show():(this.set("html",!1),this.hide())},show:function(){this.$hideLabel().show(),this.$hide().prop("checked",!0),this.$el.show()},enable:function(){acf.enable(this.$el,"postbox")},showEnable:function(){this.show(),this.enable()},hide:function(){this.$hideLabel().hide(),this.$el.hide()},disable:function(){acf.disable(this.$el,"postbox")},hideDisable:function(){this.hide(),this.disable()},html:function(t){this.$inside().html(t),this.set("html",!0),acf.doAction("append",this.$el)}})}(jQuery),function(d,e){acf.newTooltip=function(t){return"object"!=typeof t&&(t={text:t}),t.confirmRemove!==e?(t.textConfirm=acf.__("Remove"),t.textCancel=acf.__("Cancel"),new n(t)):t.confirm!==e?new n(t):new i(t)};var i=acf.Model.extend({data:{text:"",timeout:0,target:null},tmpl:function(){return'<div class="acf-tooltip"></div>'},setup:function(t){d.extend(this.data,t),this.$el=d(this.tmpl())},initialize:function(){this.render(),this.show(),this.position();var t=this.get("timeout");t&&setTimeout(d.proxy(this.fade,this),t)},update:function(t){d.extend(this.data,t),this.initialize()},render:function(){this.html(this.get("text"))},show:function(){d("body").append(this.$el)},hide:function(){this.$el.remove()},fade:function(){this.$el.addClass("acf-fade-up"),this.setTimeout(function(){this.remove()},250)},html:function(t){this.$el.html(t)},position:function(){var t=this.$el,e=this.get("target");if(e){t.removeClass("right left bottom top");var i=10,n=e.outerWidth(),a=e.outerHeight(),r=e.offset().top,s=e.offset().left,o=t.outerWidth(),c=t.outerHeight(),l=r-c,u=s+n/2-o/2;u<10?(t.addClass("right"),u=s+n,l=r+a/2-c/2):u+o+10>d(window).width()?(t.addClass("left"),u=s-o,l=r+a/2-c/2):l-d(window).scrollTop()<10?(t.addClass("bottom"),l=r+a):t.addClass("top"),t.css({top:l,left:u})}}}),n=i.extend({data:{text:"",textConfirm:"",textCancel:"",target:null,targetConfirm:!0,confirm:function(){},cancel:function(){},context:!1},events:{'click [data-event="cancel"]':"onCancel",'click [data-event="confirm"]':"onConfirm"},addEvents:function(){acf.Model.prototype.addEvents.apply(this);var t=d(document),e=this.get("target");this.setTimeout(function(){this.on(t,"click","onCancel")}),this.get("targetConfirm")&&this.on(e,"click","onConfirm")},removeEvents:function(){acf.Model.prototype.removeEvents.apply(this);var t=d(document),e=this.get("target");this.off(t,"click"),this.off(e,"click")},render:function(){var t,e,i,n=[this.get("text")||acf.__("Are you sure?"),'<a href="#" data-event="confirm">'+(this.get("textConfirm")||acf.__("Yes"))+"</a>",'<a href="#" data-event="cancel">'+(this.get("textCancel")||acf.__("No"))+"</a>"].join(" ");this.html(n),this.$el.addClass("-confirm")},onCancel:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var i=this.get("cancel"),n=this.get("context")||this;i.apply(n,arguments),this.remove()},onConfirm:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var i=this.get("confirm"),n=this.get("context")||this;i.apply(n,arguments),this.remove()}});acf.models.Tooltip=i,acf.models.TooltipConfirm=n;var t=new acf.Model({tooltip:!1,events:{"mouseenter .acf-js-tooltip":"showTitle","mouseup .acf-js-tooltip":"hideTitle","mouseleave .acf-js-tooltip":"hideTitle"},showTitle:function(t,e){var i=e.attr("title");i&&(e.attr("title",""),this.tooltip?this.tooltip.update({text:i,target:e}):this.tooltip=acf.newTooltip({text:i,target:e}))},hideTitle:function(t,e){this.tooltip.hide(),e.attr("title",this.tooltip.get("text"))}})}(jQuery),function(e,i){var r=[];acf.Field=acf.Model.extend({type:"",eventScope:".acf-field",wait:"ready",setup:function(t){this.$el=t,this.inherit(t),this.inherit(this.$control())},val:function(t){return t!==i?this.setValue(t):this.prop("disabled")?null:this.getValue()},getValue:function(){return this.$input().val()},setValue:function(t){return acf.val(this.$input(),t)},__:function(t){return acf._e(this.type,t)},$control:function(){return!1},$input:function(){return this.$("[name]:first")},$inputWrap:function(){return this.$(".acf-input:first")},$labelWrap:function(){return this.$(".acf-label:first")},getInputName:function(){return this.$input().attr("name")||""},parent:function(){var t=this.parents();return!!t.length&&t[0]},parents:function(){var t=this.$el.parents(".acf-field"),e;return acf.getFields(t)},show:function(t,e){var i=acf.show(this.$el,t);return i&&(this.prop("hidden",!1),acf.doAction("show_field",this,e)),i},hide:function(t,e){var i=acf.hide(this.$el,t);return i&&(this.prop("hidden",!0),acf.doAction("hide_field",this,e)),i},enable:function(t,e){var i=acf.enable(this.$el,t);return i&&(this.prop("disabled",!1),acf.doAction("enable_field",this,e)),i},disable:function(t,e){var i=acf.disable(this.$el,t);return i&&(this.prop("disabled",!0),acf.doAction("disable_field",this,e)),i},showEnable:function(t,e){return this.enable.apply(this,arguments),this.show.apply(this,arguments)},hideDisable:function(t,e){return this.disable.apply(this,arguments),this.hide.apply(this,arguments)},showNotice:function(t){"object"!=typeof t&&(t={text:t}),this.notice&&this.notice.remove(),t.target=this.$inputWrap(),this.notice=acf.newNotice(t)},removeNotice:function(t){this.notice&&(this.notice.away(t||0),this.notice=!1)},showError:function(t){this.$el.addClass("acf-error"),t!==i&&this.showNotice({text:t,type:"error",dismiss:!1}),acf.doAction("invalid_field",this),this.$el.one("focus change","input, select, textarea",e.proxy(this.removeError,this))},removeError:function(){this.$el.removeClass("acf-error"),this.removeNotice(250),acf.doAction("valid_field",this)},trigger:function(t,e,i){return"invalidField"==t&&(i=!0),acf.Model.prototype.trigger.apply(this,[t,e,i])}}),acf.newField=function(t){var e=t.data("type"),i=s(e),n,a=new(acf.models[i]||acf.Field)(t);return acf.doAction("new_field",a),a};var s=function(t){return acf.strPascalCase(t||"")+"Field"};acf.registerFieldType=function(t){var e,i=t.prototype.type,n=s(i);acf.models[n]=t,r.push(i)},acf.getFieldType=function(t){var e=s(t);return acf.models[e]||!1},acf.getFieldTypes=function(n){n=acf.parseArgs(n,{category:""});var a=[];return r.map(function(t){var e=acf.getFieldType(t),i=e.prototype;n.category&&i.category!==n.category||a.push(e)}),a}}(jQuery),function(n,t){acf.findFields=function(t){var e=".acf-field",i=!1;return(t=acf.parseArgs(t,{key:"",name:"",type:"",is:"",parent:!1,sibling:!1,limit:!1,visible:!1,suppressFilters:!1})).suppressFilters||(t=acf.applyFilters("find_fields_args",t)),t.key&&(e+='[data-key="'+t.key+'"]'),t.type&&(e+='[data-type="'+t.type+'"]'),t.name&&(e+='[data-name="'+t.name+'"]'),t.is&&(e+=t.is),t.visible&&(e+=":visible"),i=t.parent?t.parent.find(e):t.sibling?t.sibling.siblings(e):n(e),t.suppressFilters||(i=i.not(".acf-clone .acf-field"),i=acf.applyFilters("find_fields",i)),t.limit&&(i=i.slice(0,t.limit)),i},acf.findField=function(t,e){return acf.findFields({key:t,limit:1,parent:e,suppressFilters:!0})},acf.getField=function(t){t instanceof jQuery||(t=acf.findField(t));var e=t.data("acf");return e||(e=acf.newField(t)),e},acf.getFields=function(t){t instanceof jQuery||(t=acf.findFields(t));var e=[];return t.each(function(){var t=acf.getField(n(this));e.push(t)}),e},acf.findClosestField=function(t){return t.closest(".acf-field")},acf.getClosestField=function(t){var e=acf.findClosestField(t);return this.getField(e)};var e=function(t){var e=t,r=t+"_fields",a=t+"_field",i=function(t){var e,i=acf.arrayArgs(arguments).slice(1),n=acf.getFields({parent:t});if(n.length){var a=[r,n].concat(i);acf.doAction.apply(null,a)}},n=function(t){var e,n=acf.arrayArgs(arguments).slice(1);t.map(function(t,e){var i=[a,t].concat(n);acf.doAction.apply(null,i)})};acf.addAction(e,i),acf.addAction(r,n),s(t)},s=function(e){var r=e+"_field",s=e+"Field",t=function(i){var n=acf.arrayArgs(arguments),a=n.slice(1),t;["type","name","key"].map(function(t){var e="/"+t+"="+i.get(t);n=[r+e,i].concat(a),acf.doAction.apply(null,n)}),-1<o.indexOf(e)&&i.trigger(s,a)};acf.addAction(r,t)},i,a=["valid","invalid","enable","disable","new"],o=["remove","sortstart","sortstop","show","hide","unload","valid","invalid","enable","disable"];["prepare","ready","load","append","remove","sortstart","sortstop","show","hide","unload"].map(e),a.map(s);var r=new acf.Model({id:"fieldsEventManager",events:{'click .acf-field a[href="#"]':"onClick","change .acf-field":"onChange"},onClick:function(t){t.preventDefault()},onChange:function(){n("#_acf_changed").val(1)}})}(jQuery),function(f,h){var p=0,t=acf.Field.extend({type:"accordion",wait:"",$control:function(){return this.$(".acf-fields:first")},initialize:function(){if(!this.$el.is("td")){if(this.get("endpoint"))return this.remove();var t=this.$el,e=this.$labelWrap(),i=this.$inputWrap(),n=this.$control(),a=i.children(".description");if(a.length&&e.append(a),this.$el.is("tr")){var r=this.$el.closest("table"),s=f('<div class="acf-accordion-title"/>'),o=f('<div class="acf-accordion-content"/>'),c=f('<table class="'+r.attr("class")+'"/>'),l=f("<tbody/>");s.append(e.html()),c.append(l),o.append(c),i.append(s),i.append(o),e.remove(),n.remove(),i.attr("colspan",2),e=s,i=o,n=l}t.addClass("acf-accordion"),e.addClass("acf-accordion-title"),i.addClass("acf-accordion-content"),p++,this.get("multi_expand")&&t.attr("multi-expand",1);var u=acf.getPreference("this.accordions")||[];u[p-1]!==h&&this.set("open",u[p-1]),this.get("open")&&(t.addClass("-open"),i.css("display","block")),e.prepend('<i class="acf-accordion-icon dashicons dashicons-arrow-'+(this.get("open")?"down":"right")+'"></i>');var d=t.parent();n.addClass(d.hasClass("-left")?"-left":""),n.addClass(d.hasClass("-clear")?"-clear":""),n.append(t.nextUntil(".acf-field-accordion",".acf-field")),n.removeAttr("data-open data-multi_expand data-endpoint")}}});acf.registerFieldType(t);var e=new acf.Model({actions:{unload:"onUnload"},events:{"click .acf-accordion-title":"onClick","invalidField .acf-accordion":"onInvalidField"},isOpen:function(t){return t.hasClass("-open")},toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},open:function(t){t.find(".acf-accordion-content:first").slideDown().css("display","block"),t.find(".acf-accordion-icon:first").removeClass("dashicons-arrow-right").addClass("dashicons-arrow-down"),t.addClass("-open"),acf.doAction("show",t),
2
+ t.attr("multi-expand")||t.siblings(".acf-accordion.-open").each(function(){e.close(f(this))})},close:function(t){t.find(".acf-accordion-content:first").slideUp(),t.find(".acf-accordion-icon:first").removeClass("dashicons-arrow-down").addClass("dashicons-arrow-right"),t.removeClass("-open"),acf.doAction("hide",t)},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},onInvalidField:function(t,e){this.busy||(this.busy=!0,this.setTimeout(function(){this.busy=!1},1e3),this.open(e))},onUnload:function(t){var e=[];f(".acf-accordion").each(function(){var t=f(this).hasClass("-open")?1:0;e.push(t)}),e.length&&acf.setPreference("this.accordions",e)}})}(jQuery),function(t,e){var i=acf.Field.extend({type:"button_group",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-button-group")},$input:function(){return this.$("input:checked")},setValue:function(t){this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")},onClick:function(t,e){var i=e.parent("label"),n=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(i)}(jQuery),function(e,t){var i=acf.Field.extend({type:"checkbox",events:{"change input":"onChange","click .acf-add-checkbox":"onClickAdd","click .acf-checkbox-toggle":"onClickToggle","click .acf-checkbox-custom":"onClickCustom"},$control:function(){return this.$(".acf-checkbox-list")},$toggle:function(){return this.$(".acf-checkbox-toggle")},$input:function(){return this.$('input[type="hidden"]')},$inputs:function(){return this.$('input[type="checkbox"]').not(".acf-checkbox-toggle")},getValue:function(){var t=[];return this.$(":checked").each(function(){t.push(e(this).val())}),!!t.length&&t},onChange:function(t,e){var i=e.prop("checked"),n=this.$toggle(),a;(i?e.parent().addClass("selected"):e.parent().removeClass("selected"),n.length)&&(0==this.$inputs().not(":checked").length?n.prop("checked",!0):n.prop("checked",!1))},onClickAdd:function(t,e){var i='<li><input class="acf-checkbox-custom" type="checkbox" checked="checked" /><input type="text" name="'+this.getInputName()+'[]" /></li>';e.parent("li").before(i)},onClickToggle:function(t,e){var i=e.prop("checked"),n;this.$inputs().prop("checked",i)},onClickCustom:function(t,e){var i=e.prop("checked"),n=e.next('input[type="text"]');i?n.prop("disabled",!1):(n.prop("disabled",!0),""==n.val()&&e.parent("li").remove())}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"color_picker",wait:"load",$control:function(){return this.$(".acf-color-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},initialize:function(){var e=this.$input(),i=this.$inputText(),t=function(t){setTimeout(function(){acf.val(e,i.val())},1)},n={defaultColor:!1,palettes:!0,hide:!0,change:t,clear:t},n=acf.applyFilters("color_picker_args",n,this);i.wpColorPicker(n)}});acf.registerFieldType(i)}(jQuery),function(n,t){var e=acf.Field.extend({type:"date_picker",events:{'blur input[type="text"]':"onBlur"},$control:function(){return this.$(".acf-date-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},initialize:function(){if(this.has("save_format"))return this.initializeCompatibility();var t=this.$input(),e=this.$inputText(),i={dateFormat:this.get("date_format"),altField:t,altFormat:"yymmdd",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")};i=acf.applyFilters("date_picker_args",i,this),acf.newDatePicker(e,i),acf.doAction("date_picker_init",e,i,this)},initializeCompatibility:function(){var t=this.$input(),e=this.$inputText();e.val(t.val());var i={dateFormat:this.get("date_format"),altField:t,altFormat:this.get("save_format"),changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")},n=(i=acf.applyFilters("date_picker_args",i,this)).dateFormat;i.dateFormat=this.get("save_format"),acf.newDatePicker(e,i),e.datepicker("option","dateFormat",n),acf.doAction("date_picker_init",e,i,this)},onBlur:function(){this.$inputText().val()||acf.val(this.$input(),"")}});acf.registerFieldType(e);var i=new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("datePickerL10n");return!!i&&(void 0!==n.datepicker&&(i.isRTL=e,n.datepicker.regional[t]=i,void n.datepicker.setDefaults(i)))}});acf.newDatePicker=function(t,e){if(void 0===n.datepicker)return!1;e=e||{},t.datepicker(e),n("body > #ui-datepicker-div").exists()&&n("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(n,t){var e=acf.models.DatePickerField.extend({type:"date_time_picker",$control:function(){return this.$(".acf-date-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),i={dateFormat:this.get("date_format"),timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altFormat:"yy-mm-dd",altTimeFormat:"HH:mm:ss",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day"),controlType:"select",oneLine:!0};i=acf.applyFilters("date_time_picker_args",i,this),acf.newDateTimePicker(e,i),acf.doAction("date_time_picker_init",e,i,this)}});acf.registerFieldType(e);var i=new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("dateTimePickerL10n");return!!i&&(void 0!==n.timepicker&&(i.isRTL=e,n.timepicker.regional[t]=i,void n.timepicker.setDefaults(i)))}});acf.newDateTimePicker=function(t,e){if(void 0===n.timepicker)return!1;e=e||{},t.datetimepicker(e),n("body > #ui-datepicker-div").exists()&&n("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(s,t){var e=acf.Field.extend({type:"google_map",map:!1,wait:"load",events:{'click a[data-name="clear"]':"onClickClear",'click a[data-name="locate"]':"onClickLocate",'click a[data-name="search"]':"onClickSearch","keydown .search":"onKeydownSearch","keyup .search":"onKeyupSearch","focus .search":"onFocusSearch","blur .search":"onBlurSearch",showField:"onShow"},$control:function(){return this.$(".acf-google-map")},$input:function(t){return this.$('input[data-name="'+(t||"address")+'"]')},$search:function(){return this.$(".search")},$canvas:function(){return this.$(".canvas")},addClass:function(t){this.$control().addClass(t)},removeClass:function(t){this.$control().removeClass(t)},getValue:function(){var t={lat:"",lng:"",address:""};return this.$('input[type="hidden"]').each(function(){t[s(this).data("name")]=s(this).val()}),t.lat&&t.lng||(t=!1),t},setValue:function(t){for(var e in t=acf.parseArgs(t,{lat:"",lng:"",address:""}))acf.val(this.$input(e),t[e]);t.lat&&t.lng||(t=!1),this.renderVal(t)},renderVal:function(t){t?(this.addClass("-value"),this.setPosition(t.lat,t.lng),this.map.marker.setVisible(!0)):(this.removeClass("-value"),this.map.marker.setVisible(!1)),this.$search().val(t.address)},setPosition:function(t,e){var i=this.newLatLng(t,e);return this.map.marker.setPosition(i),this.map.marker.setVisible(!0),acf.doAction("google_map_change",i,this.map,this),this.center(),this},center:function(){var t=this.map.marker.getPosition(),e=this.get("lat"),i=this.get("lng");t&&(e=t.lat(),i=t.lng());var n=this.newLatLng(e,i);this.map.setCenter(n)},getSearchVal:function(){return this.$search().val()},initialize:function(){o.isReady()?this.initializeMap():o.ready(this.initializeMap,this)},newLatLng:function(t,e){return new google.maps.LatLng(parseFloat(t),parseFloat(e))},initializeMap:function(){var t=this.get("zoom"),e=this.get("lat"),i=this.get("lng"),n={scrollwheel:!1,zoom:parseInt(t),center:this.newLatLng(e,i),mapTypeId:google.maps.MapTypeId.ROADMAP,marker:{draggable:!0,raiseOnDrag:!0},autocomplete:{}};n=acf.applyFilters("google_map_args",n,this);var a=new google.maps.Map(this.$canvas()[0],n);this.addMapEvents(a,this);var r=acf.parseArgs(n.marker,{draggable:!0,raiseOnDrag:!0,map:a});r=acf.applyFilters("google_map_marker_args",r,this);var s=new google.maps.Marker(r);this.addMarkerEvents(s,this),a.acf=this,a.marker=s,this.map=a,acf.doAction("google_map_init",a,s,this);var o=this.getValue();this.renderVal(o)},addMapEvents:function(t,n){if(acf.isset(window,"google","maps","places","Autocomplete")){var e=t.autocomplete||{},i=new google.maps.places.Autocomplete(this.$search()[0],e);i.bindTo("bounds",t),google.maps.event.addListener(i,"place_changed",function(){var t=this.getPlace();t.address=n.getSearchVal(),n.setPlace(t)})}google.maps.event.addListener(t,"click",function(t){var e=t.latLng.lat(),i=t.latLng.lng();n.searchPosition(e,i)})},addMarkerEvents:function(t,n){google.maps.event.addListener(t,"dragend",function(){var t=this.getPosition(),e=t.lat(),i=t.lng();n.searchPosition(e,i)})},searchPosition:function(n,a){var t=this.newLatLng(n,a),r=this.$control();this.setPosition(n,a),r.addClass("-loading");var e=s.proxy(function(t,e){r.removeClass("-loading");var i="";e!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+e):t[0]?i=t[0].formatted_address:console.log("No results found"),this.val({lat:n,lng:a,address:i})},this);o.geocoder.geocode({latLng:t},e)},setPlace:function(t){if(!t)return this;if(t.name&&!t.geometry)return this.searchAddress(t.name),this;var e=t.geometry.location.lat(),i=t.geometry.location.lng(),n=t.address||t.formatted_address;return this.setValue({lat:e,lng:i,address:n}),this},searchAddress:function(a){var t=a.split(",");if(2==t.length){var e=t[0],i=t[1];if(s.isNumeric(e)&&s.isNumeric(i))return this.searchPosition(e,i)}var r=this.$control();r.addClass("-loading");var n=this.proxy(function(t,e){r.removeClass("-loading");var i="",n="";e!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+e):t[0]?(i=t[0].geometry.location.lat(),n=t[0].geometry.location.lng()):console.log("No results found"),this.val({lat:i,lng:n,address:a})});o.geocoder.geocode({address:a},n)},searchLocation:function(){if(!navigator.geolocation)return alert(acf.__("Sorry, this browser does not support geolocation"));var a=this.$control();a.addClass("-loading");var t=s.proxy(function(t,e){a.removeClass("-loading");var i=t.coords.latitude,n=t.coords.longitude;this.searchPosition(i,n)},this),e=function(t){a.removeClass("-loading")};navigator.geolocation.getCurrentPosition(t,e)},onClickClear:function(t,e){this.val(!1)},onClickLocate:function(t,e){this.searchLocation()},onClickSearch:function(t,e){this.searchAddress(this.$search().val())},onFocusSearch:function(t,e){this.removeClass("-value"),this.onKeyupSearch.apply(this,arguments)},onBlurSearch:function(t,e){this.setTimeout(function(){this.removeClass("-search"),e.val()&&this.addClass("-value")},100)},onKeyupSearch:function(t,e){e.val()?this.addClass("-search"):this.removeClass("-search")},onKeydownSearch:function(t,e){13==t.which&&t.preventDefault()},onMousedown:function(){},onShow:function(){if(!this.map)return!1;this.setTimeout(this.center,10)}});acf.registerFieldType(e);var o=new acf.Model({geocoder:!1,data:{status:!1},getStatus:function(){return this.get("status")},setStatus:function(t){return this.set("status",t)},isReady:function(){if("ready"==this.getStatus())return!0;if("loading"==this.getStatus())return!1;if(acf.isset(window,"google","maps","places"))return this.setStatus("ready"),!0;var t=acf.get("google_map_api");return t&&(this.setStatus("loading"),s.ajax({url:t,dataType:"script",cache:!0,context:this,success:function(){this.setStatus("ready"),this.geocoder=new google.maps.Geocoder,acf.doAction("google_map_api_loaded")}})),!1},ready:function(t,e){acf.addAction("google_map_api_loaded",t,10,e)}})}(jQuery),function(n,i){var t=acf.Field.extend({type:"image",$control:function(){return this.$(".acf-image-uploader")},$input:function(){return this.$('input[type="hidden"]')},events:{'click a[data-name="add"]':"onClickAdd",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove",'change input[type="file"]':"onChange"},initialize:function(){"basic"===this.get("uploader")&&this.$el.closest("form").attr("enctype","multipart/form-data")},validateAttachment:function(t){(t=t||{}).id!==i&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",caption:"",description:"",width:0,height:0});var e=acf.isget(t,"sizes",this.get("preview_size"),"url");return null!==e&&(t.url=e),t},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.url,alt:t.alt,title:t.title});var e=t.id||"";this.val(e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},append:function(t,e){var i=function(t,e){for(var i=acf.getFields({key:t.get("key"),parent:e.$el}),n=0;n<i.length;n++)if(!i[n].val())return i[n];return!1},n=i(this,e);n||(e.$(".acf-button:last").trigger("click"),n=i(this,e)),n&&n.render(t)},selectAttachment:function(){var i=this.parent(),t=i&&"repeater"===i.get("type"),e=acf.newMediaPopup({mode:"select",type:"image",title:acf.__("Select Image"),field:this.get("key"),multiple:t,library:this.get("library"),allowedTypes:this.get("mime_types"),select:n.proxy(function(t,e){0<e?this.append(t,i):this.render(t)},this)})},editAttachment:function(){var t=this.val();if(t)var e=acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:t,field:this.get("key"),select:n.proxy(function(t,e){this.render(t)},this)})},removeAttachment:function(){this.render(!1)},onClickAdd:function(t,e){this.selectAttachment()},onClickEdit:function(t,e){this.editAttachment()},onClickRemove:function(t,e){this.removeAttachment()},onChange:function(t,e){var i=this.$input();acf.getFileInputData(e,function(t){i.val(n.param(t))})}});acf.registerFieldType(t)}(jQuery),function(n,e){var t=acf.models.ImageField.extend({type:"file",$control:function(){return this.$(".acf-file-uploader")},$input:function(){return this.$('input[type="hidden"]')},validateAttachment:function(t){return(t=t||{}).id!==e&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",filename:"",filesizeHumanReadable:"",icon:"/wp-includes/images/media/default.png"})},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.icon,alt:t.alt,title:t.title}),this.$('[data-name="title"]').text(t.title),this.$('[data-name="filename"]').text(t.filename).attr("href",t.url),this.$('[data-name="filesize"]').text(t.filesizeHumanReadable);var e=t.id||"";acf.val(this.$input(),e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},selectAttachment:function(){var i=this.parent(),t=i&&"repeater"===i.get("type"),e=acf.newMediaPopup({mode:"select",title:acf.__("Select File"),field:this.get("key"),multiple:t,library:this.get("library"),allowedTypes:this.get("mime_types"),select:n.proxy(function(t,e){0<e?this.append(t,i):this.render(t)},this)})},editAttachment:function(){var t=this.val();if(!t)return!1;var e=acf.newMediaPopup({mode:"edit",title:acf.__("Edit File"),button:acf.__("Update File"),attachment:t,field:this.get("key"),select:n.proxy(function(t,e){this.render(t)},this)})}});acf.registerFieldType(t)}(jQuery),function(n,t){var e=acf.Field.extend({type:"link",events:{'click a[data-name="add"]':"onClickEdit",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove","change .link-node":"onChange"},$control:function(){return this.$(".acf-link")},$node:function(){return this.$(".link-node")},getValue:function(){var t=this.$node();return!!t.attr("href")&&{title:t.html(),url:t.attr("href"),target:t.attr("target")}},setValue:function(t){t=acf.parseArgs(t,{title:"",url:"",target:""});var e=this.$control(),i=this.$node();e.removeClass("-value -external"),t.url&&e.addClass("-value"),"_blank"===t.target&&e.addClass("-external"),this.$(".link-title").html(t.title),this.$(".link-url").attr("href",t.url).html(t.url),i.html(t.title),i.attr("href",t.url),i.attr("target",t.target),this.$(".input-title").val(t.title),this.$(".input-target").val(t.target),this.$(".input-url").val(t.url).trigger("change")},onClickEdit:function(t,e){acf.wpLink.open(this.$node())},onClickRemove:function(t,e){this.setValue(!1)},onChange:function(t,e){var i=this.getValue();this.setValue(i)}});acf.registerFieldType(e),acf.wpLink=new acf.Model({getNodeValue:function(){var t=this.get("node");return{title:t.html(),url:t.attr("href"),target:t.attr("target")}},setNodeValue:function(t){var e=this.get("node");e.html(t.title),e.attr("href",t.url),e.attr("target",t.target),e.trigger("change")},getInputValue:function(){return{title:n("#wp-link-text").val(),url:n("#wp-link-url").val(),target:n("#wp-link-target").prop("checked")?"_blank":""}},setInputValue:function(t){n("#wp-link-text").val(t.title),n("#wp-link-url").val(t.url),n("#wp-link-target").prop("checked","_blank"===t.target)},open:function(t){this.on("wplink-open","onOpen"),this.on("wplink-close","onClose"),this.set("node",t);var e=n('<textarea id="acf-link-textarea" style="display:none;"></textarea>');n("body").append(e);var i=this.getNodeValue();wpLink.open("acf-link-textarea",i.url,i.title,null)},onOpen:function(){n("#wp-link-wrap").addClass("has-text-field");var t=this.getNodeValue();this.setInputValue(t)},close:function(){wpLink.close()},onClose:function(){if(!this.has("node"))return!1;this.off("wplink-open"),this.off("wplink-close");var t=this.getInputValue();this.setNodeValue(t),n("#acf-link-textarea").remove(),this.set("node",null)}})}(jQuery),function(a,t){var e=acf.Field.extend({type:"oembed",events:{'click [data-name="clear-button"]':"onClickClear","keypress .input-search":"onKeypressSearch","keyup .input-search":"onKeyupSearch","change .input-search":"onChangeSearch"},$control:function(){return this.$(".acf-oembed")},$input:function(){return this.$(".input-value")},$search:function(){return this.$(".input-search")},getValue:function(){return this.$input().val()},getSearchVal:function(){return this.$search().val()},setValue:function(t){t?this.$control().addClass("has-value"):this.$control().removeClass("has-value"),acf.val(this.$input(),t)},showLoading:function(t){acf.showLoading(this.$(".canvas"))},hideLoading:function(){acf.hideLoading(this.$(".canvas"))},maybeSearch:function(){var t=this.val(),e=this.getSearchVal();if(!e)return this.clear();if("http"!=e.substr(0,4)&&(e="http://"+e),e!==t){var i=this.get("timeout");i&&clearTimeout(i);var n=a.proxy(this.search,this,e);this.set("timeout",setTimeout(n,300))}},search:function(t){var e={action:"acf/fields/oembed/search",s:t,field_key:this.get("key")},i;(i=this.get("xhr"))&&i.abort(),this.showLoading();var i=a.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:function(t){t&&t.html||(t={url:!1,html:""}),this.val(t.url),this.$(".canvas-media").html(t.html)},complete:function(){this.hideLoading()}});this.set("xhr",i)},clear:function(){this.val(""),this.$search().val(""),this.$(".canvas-media").html("")},onClickClear:function(t,e){this.clear()},onKeypressSearch:function(t,e){13==t.which&&(t.preventDefault(),this.maybeSearch())},onKeyupSearch:function(t,e){e.val()&&this.maybeSearch()},onChangeSearch:function(t,e){this.maybeSearch()}});acf.registerFieldType(e)}(jQuery),function(t,e){var i=acf.Field.extend({type:"radio",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-radio-list")},$input:function(){return this.$("input:checked")},$inputText:function(){return this.$('input[type="text"]')},getValue:function(){var t=this.$input().val();return"other"===t&&this.get("other_choice")&&(t=this.$inputText().val()),t},onClick:function(t,e){var i=e.parent("label"),n=i.hasClass("selected"),a=e.val();this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"),a=!1),this.get("other_choice")&&("other"===a?this.$inputText().prop("disabled",!1):this.$inputText().prop("disabled",!0))}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"range",events:{'input input[type="range"]':"onChange","change input":"onChange"},$input:function(){return this.$('input[type="range"]')},$inputAlt:function(){return this.$('input[type="number"]')},setValue:function(t){this.busy=!0,acf.val(this.$input(),t),acf.val(this.$inputAlt(),t,!0),this.busy=!1},onChange:function(t,e){this.busy||this.setValue(e.val())}});acf.registerFieldType(i)}(jQuery),function(o,n){var t=acf.Field.extend({type:"relationship",events:{"keypress [data-filter]":"onKeypressFilter","change [data-filter]":"onChangeFilter","keyup [data-filter]":"onChangeFilter","click .choices-list .acf-rel-item":"onClickAdd",'click [data-name="remove_item"]':"onClickRemove",mouseover:"onHover"},$control:function(){return this.$(".acf-relationship")},$list:function(t){return this.$("."+t+"-list")},$listItems:function(t){return this.$list(t).find(".acf-rel-item")},$listItem:function(t,e){return this.$list(t).find('.acf-rel-item[data-id="'+e+'"]')},getValue:function(){var t=[];return this.$listItems("values").each(function(){t.push(o(this).data("id"))}),!!t.length&&t},newChoice:function(t){return["<li>",'<span data-id="'+t.id+'" class="acf-rel-item">'+t.text+"</span>","</li>"].join("")},newValue:function(t){return["<li>",'<input type="hidden" name="'+this.getInputName()+'[]" value="'+t.id+'" />','<span data-id="'+t.id+'" class="acf-rel-item">'+t.text,'<a href="#" class="acf-icon -minus small dark" data-name="remove_item"></a>',"</span>","</li>"].join("")},addSortable:function(t){this.$list("values").sortable({items:"li",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,update:function(){t.$input().trigger("change")}})},initialize:function(){var t=this.proxy(function(t){if(!this.get("loading")&&this.get("more")){var e=this.$list("choices"),i=Math.ceil(e.scrollTop()),n=Math.ceil(e[0].scrollHeight),a=Math.ceil(e.innerHeight()),r=this.get("paged")||1;n<=i+a&&(this.set("paged",r+1),this.fetch())}});this.$list("choices").scrollTop(0).on("scroll",t),this.fetch()},onHover:function(t){o().off(t),this.addSortable(this)},onKeypressFilter:function(t,e){13==t.which&&t.preventDefault()},onChangeFilter:function(t,e){var i=e.val(),n=e.data("filter");this.get(n)!==i&&(this.set(n,i),this.set("paged",1),e.is("select")?this.fetch():this.maybeFetch())},onClickAdd:function(t,e){var i=this.val(),n=parseInt(this.get("max"));if(e.hasClass("disabled"))return!1;if(0<n&&i&&i.length>=n)return this.showNotice({text:acf.__("Maximum values reached ( {max} values )").replace("{max}",n),type:"warning"}),!1;e.addClass("disabled");var a=this.newValue({id:e.data("id"),text:e.html()});this.$list("values").append(a),this.$input().trigger("change")},onClickRemove:function(t,e){var i=e.parent(),n=i.parent(),a=i.data("id");setTimeout(function(){n.remove()},1),this.$listItem("choices",a).removeClass("disabled"),this.$input().trigger("change")},maybeFetch:function(){var t=this.get("timeout");t&&clearTimeout(t),t=this.setTimeout(this.fetch,300),this.set("timeout",t)},getAjaxData:function(){var t=this.$control().data();for(var e in t)t[e]=this.get(e);return t.action="acf/fields/relationship/query",t.field_key=this.get("key"),t},fetch:function(){var t;(t=this.get("xhr"))&&t.abort();var e=this.getAjaxData(),s=this.$list("choices");1==e.paged&&s.html("");var i=o('<li><i class="acf-loading"></i> '+acf.__("Loading")+"</li>");s.append(i),this.set("loading",!0);var n=function(){this.set("loading",!1),i.remove()},a=function(t){if(!t||!t.results||!t.results.length)return this.set("more",!1),void(1==this.get("paged")&&this.$list("choices").append("<li>"+acf.__("No matches found")+"</li>"));this.set("more",t.more);var e=this.walkChoices(t.results),i=o(e),n=this.val();n&&n.length&&n.map(function(t){i.find('.acf-rel-item[data-id="'+t+'"]').addClass("disabled")}),s.append(i);var a=!1,r=!1;s.find(".acf-rel-label").each(function(){var t=o(this),e=t.siblings("ul");if(a&&a.text()==t.text())return r.append(e.children()),void o(this).parent().remove();a=t,r=e})},t=o.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",data:acf.prepareForAjax(e),context:this,success:a,complete:n});this.set("xhr",t)},walkChoices:function(t){var i=function(t){var e="";return o.isArray(t)?t.map(function(t){e+=i(t)}):o.isPlainObject(t)&&(t.children!==n?(e+='<li><span class="acf-rel-label">'+t.text+'</span><ul class="acf-bl">',e+=i(t.children),e+="</ul></li>"):e+='<li><span class="acf-rel-item" data-id="'+t.id+'">'+t.text+"</span></li>"),e};return i(t)}});acf.registerFieldType(t)}(jQuery),function(t,e){var i=acf.Field.extend({type:"select",select2:!1,wait:"load",events:{removeField:"onRemove"},$input:function(){return this.$("select")},initialize:function(){var t=this.$input();if(this.inherit(t),this.get("ui")){var e=this.get("ajax_action");e||(e="acf/fields/"+this.get("type")+"/query"),this.select2=acf.newSelect2(t,{field:this,ajax:this.get("ajax"),multiple:this.get("multiple"),placeholder:this.get("placeholder"),allowNull:this.get("allow_null"),ajaxAction:e})}},onRemove:function(){this.select2&&this.select2.destroy()}});acf.registerFieldType(i)}(jQuery),function(a,t){var e="tab",i=acf.Field.extend({type:"tab",wait:"",tabs:!1,tab:!1,findFields:function(){return this.$el.nextUntil(".acf-field-tab",".acf-field")},getFields:function(){return acf.getFields(this.findFields())},findTabs:function(){return this.$el.prevAll(".acf-tab-wrap:first")},findTab:function(){return this.$(".acf-tab-button")},initialize:function(){if(this.$el.is("td"))return!(this.events={});var t=this.findTabs(),e=this.findTab(),i=acf.parseArgs(e.data(),{endpoint:!1,placement:"",before:this.$el});!t.length||i.endpoint?this.tabs=new n(i):this.tabs=t.data("acf"),this.tab=this.tabs.addTab(e,this)},isActive:function(){return this.tab.isActive()},showFields:function(){this.getFields().map(function(t){t.show(this.cid,e),t.hiddenByTab=!1},this)},hideFields:function(){this.getFields().map(function(t){t.hide(this.cid,e),t.hiddenByTab=this.tab},this)},show:function(t){var e=acf.Field.prototype.show.apply(this,arguments);return e&&(this.tab.show(),this.tabs.refresh()),e},hide:function(t){var e=acf.Field.prototype.hide.apply(this,arguments);return e&&(this.tab.hide(),this.isActive()&&this.tabs.reset()),e},enable:function(t){this.getFields().map(function(t){t.enable(e)})},disable:function(t){this.getFields().map(function(t){t.disable(e)})}});acf.registerFieldType(i);var r=0,n=acf.Model.extend({tabs:[],active:!1,actions:{refresh:"onRefresh"},data:{before:!1,placement:"top",index:0,initialized:!1},setup:function(t){a.extend(this.data,t),this.tabs=[],this.active=!1;var e=this.get("placement"),i=this.get("before"),n=i.parent();"left"==e&&n.hasClass("acf-fields")&&n.addClass("-sidebar"),i.is("tr")?this.$el=a('<tr class="acf-tab-wrap"><td colspan="2"><ul class="acf-hl acf-tab-group"></ul></td></tr>'):this.$el=a('<div class="acf-tab-wrap -'+e+'"><ul class="acf-hl acf-tab-group"></ul></div>'),i.before(this.$el),this.set("index",r,!0),r++},initializeTabs:function(){var t=this.getVisible().shift(),e,i,n=(acf.getPreference("this.tabs")||[])[this.get("index")];this.tabs[n]&&this.tabs[n].isVisible()&&(t=this.tabs[n]),t?this.selectTab(t):this.closeTabs(),this.set("initialized",!0)},getVisible:function(){return this.tabs.filter(function(t){return t.isVisible()})},getActive:function(){return this.active},setActive:function(t){return this.active=t},hasActive:function(){return!1!==this.active},isActive:function(t){var e=this.getActive();return e&&e.cid===t.cid},closeActive:function(){this.hasActive()&&this.closeTab(this.getActive())},openTab:function(t){this.closeActive(),t.open(),this.setActive(t)},closeTab:function(t){t.close(),this.setActive(!1)},closeTabs:function(){this.tabs.map(this.closeTab,this)},selectTab:function(e){this.tabs.map(function(t){e.cid!==t.cid&&this.closeTab(t)},this),this.openTab(e)},addTab:function(t,e){var i=a("<li></li>");i.append(t),this.$("ul").append(i);var n=new s({$el:i,field:e,group:this});return this.tabs.push(n),n},reset:function(){return this.closeActive(),this.refresh()},refresh:function(){if(this.hasActive())return!1;var t=this.getVisible().shift();return t&&this.openTab(t),t},onRefresh:function(){if("left"===this.get("placement")){var t=this.$el.parent(),e=this.$el.children("ul"),i=t.is("td")?"height":"min-height",n=e.position().top+e.outerHeight(!0)-1;t.css(i,n)}}}),s=acf.Model.extend({group:!1,field:!1,events:{"click a":"onClick"},index:function(){return this.$el.index()},isVisible:function(){return acf.isVisible(this.$el)},isActive:function(){return this.$el.hasClass("active")},open:function(){this.$el.addClass("active"),this.field.showFields()},close:function(){this.$el.removeClass("active"),this.field.hideFields()},onClick:function(t,e){t.preventDefault(),this.toggle()},toggle:function(){this.isActive()||this.group.openTab(this)}}),o=new acf.Model({priority:50,actions:{prepare:"render",append:"render",unload:"onUnload",invalid_field:"onInvalidField"},findTabs:function(){return a(".acf-tab-wrap")},getTabs:function(){return acf.getInstances(this.findTabs())},render:function(t){this.getTabs().map(function(t){t.get("initialized")||t.initializeTabs()})},onInvalidField:function(t){this.busy||t.hiddenByTab&&(t.hiddenByTab.toggle(),this.busy=!0,this.setTimeout(function(){this.busy=!1},100))},onUnload:function(){var i=[];this.getTabs().map(function(t){var e=t.hasActive()?t.getActive().index():0;i.push(e)}),i.length&&acf.setPreference("this.tabs",i)}})}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"post_object"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"page_link"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"user"});acf.registerFieldType(i)}(jQuery),function(g,t){var e=acf.Field.extend({type:"taxonomy",data:{ftype:"select"},select2:!1,wait:"load",events:{'click a[data-name="add"]':"onClickAdd",'click input[type="radio"]':"onClickRadio"},$control:function(){return this.$(".acf-taxonomy-field")},$input:function(){return this.getRelatedPrototype().$input.apply(this,arguments)},getRelatedType:function(){var t=this.get("ftype");return"multi_select"==t&&(t="select"),t},getRelatedPrototype:function(){return acf.getFieldType(this.getRelatedType()).prototype},getValue:function(){return this.getRelatedPrototype().getValue.apply(this,arguments)},setValue:function(){return this.getRelatedPrototype().setValue.apply(this,arguments)},initialize:function(){this.getRelatedPrototype().initialize.apply(this,arguments)},onRemove:function(){this.select2&&this.select2.destroy()},onClickAdd:function(t,e){var n=this,i=!1,a=!1,r=!1,s=!1,o=!1,c=!1,l=!1,u=function(){i=acf.newPopup({title:e.attr("title"),loading:!0,width:"300px"});var t={action:"acf/fields/taxonomy/add_term",field_key:n.get("key")};g.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"html",success:d})},d=function(t){i.loading(!1),i.content(t),a=i.$("form"),r=i.$('input[name="term_name"]'),s=i.$('select[name="term_parent"]'),o=i.$(".acf-submit-button"),r.focus(),i.on("submit","form",f)},f=function(t,e){if(t.preventDefault(),t.stopImmediatePropagation(),""===r.val())return r.focus(),!1;acf.startButtonLoading(o);var i={action:"acf/fields/taxonomy/add_term",field_key:n.get("key"),term_name:r.val(),term_parent:s.length?s.val():0};g.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),type:"post",dataType:"json",success:h})},h=function(t){acf.stopButtonLoading(o),l&&l.remove(),l=acf.isAjaxSuccess(t)?(r.val(""),p(t.data),acf.newNotice({type:"success",text:acf.getAjaxMessage(t),target:a,timeout:2e3,dismiss:!1})):acf.newNotice({type:"error",text:acf.getAjaxError(t),target:a,timeout:2e3,dismiss:!1}),r.focus()},p=function(e){var t=g('<option value="'+e.term_id+'">'+e.term_label+"</option>"),i;e.term_parent?s.children('option[value="'+e.term_parent+'"]').after(t):s.append(t),acf.getFields({type:"taxonomy"}
3
+ ).map(function(t){t.get("taxonomy")==n.get("taxonomy")&&t.appendTerm(e)}),n.selectTerm(e.term_id)};u()},appendTerm:function(t){"select"==this.getRelatedType()?this.appendTermSelect(t):this.appendTermCheckbox(t)},appendTermSelect:function(t){this.select2.addOption({id:t.term_id,text:t.term_label})},appendTermCheckbox:function(t){var e=this.$("[name]:first").attr("name"),i=this.$("ul:first");"checkbox"==this.getRelatedType()&&(e+="[]");var n=g(['<li data-id="'+t.term_id+'">',"<label>",'<input type="'+this.get("ftype")+'" value="'+t.term_id+'" name="'+e+'" /> ',"<span>"+t.term_name+"</span>","</label>","</li>"].join(""));if(t.term_parent){var a=i.find('li[data-id="'+t.term_parent+'"]');(i=a.children("ul")).exists()||(i=g('<ul class="children acf-bl"></ul>'),a.append(i))}i.append(n)},selectTerm:function(t){var e;"select"==this.getRelatedType()?this.select2.selectOption(t):this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")},onClickRadio:function(t,e){var i=e.parent("label"),n=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(e)}(jQuery),function(i,t){var e=acf.models.DatePickerField.extend({type:"time_picker",$control:function(){return this.$(".acf-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),i={timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altTimeFormat:"HH:mm:ss",showButtonPanel:!0,controlType:"select",oneLine:!0,closeText:acf.get("dateTimePickerL10n").selectText,timeOnly:!0,onClose:function(t,e,i){var n=e.dpDiv.find(".ui-datepicker-close");!t&&n.is(":hover")&&i._updateDateTime()}};i=acf.applyFilters("time_picker_args",i,this),acf.newTimePicker(e,i),acf.doAction("time_picker_init",e,i,this)}});acf.registerFieldType(e),acf.newTimePicker=function(t,e){if(void 0===i.timepicker)return!1;e=e||{},t.timepicker(e),i("body > #ui-datepicker-div").exists()&&i("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(t,e){var i=acf.Field.extend({type:"true_false",events:{"change .acf-switch-input":"onChange","focus .acf-switch-input":"onFocus","blur .acf-switch-input":"onBlur","keypress .acf-switch-input":"onKeypress"},$input:function(){return this.$('input[type="checkbox"]')},$switch:function(){return this.$(".acf-switch")},getValue:function(){return this.$input().prop("checked")?1:0},initialize:function(){this.render()},render:function(){var t=this.$switch();if(t.length){var e=t.children(".acf-switch-on"),i=t.children(".acf-switch-off"),n=Math.max(e.width(),i.width());n&&(e.css("min-width",n),i.css("min-width",n))}},switchOn:function(){this.$input().prop("checked",!0),this.$switch().addClass("-on")},switchOff:function(){this.$input().prop("checked",!1),this.$switch().removeClass("-on")},onChange:function(t,e){e.prop("checked")?this.switchOn():this.switchOff()},onFocus:function(t,e){this.$switch().addClass("-focus")},onBlur:function(t,e){this.$switch().removeClass("-focus")},onKeypress:function(t,e){return 37===t.keyCode?this.switchOff():39===t.keyCode?this.switchOn():void 0}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"url",events:{'keyup input[type="url"]':"onkeyup"},$control:function(){return this.$(".acf-input-wrap")},$input:function(){return this.$('input[type="url"]')},initialize:function(){this.render()},isValid:function(){var t=this.val();return!!t&&(-1!==t.indexOf("://")||0===t.indexOf("//"))},render:function(){this.isValid()?this.$control().addClass("-valid"):this.$control().removeClass("-valid")},onkeyup:function(t,e){this.render()}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"wysiwyg",wait:"load",events:{"mousedown .acf-editor-wrap.delay":"onMousedown",sortstartField:"disableEditor",sortstopField:"enableEditor",removeField:"disableEditor"},$control:function(){return this.$(".acf-editor-wrap")},$input:function(){return this.$("textarea")},getMode:function(){return this.$control().hasClass("tmce-active")?"visual":"text"},initialize:function(){this.$control().hasClass("delay")||this.initializeEditor()},initializeEditor:function(){var t=this.$control(),e=this.$input(),i={tinymce:!0,quicktags:!0,toolbar:this.get("toolbar"),mode:this.getMode(),field:this},n=e.attr("id"),a=acf.uniqueId("acf-editor-"),r=e.data();acf.rename({target:t,search:n,replace:a,destructive:!0}),this.set("id",a,!0),acf.tinymce.initialize(a,i),this.$input().data(r)},onMousedown:function(t){t.preventDefault();var e=this.$control();e.removeClass("delay"),e.find(".acf-editor-toolbar").remove(),this.initializeEditor()},enableEditor:function(){"visual"==this.getMode()&&acf.tinymce.enable(this.get("id"))},disableEditor:function(){acf.tinymce.destroy(this.get("id"))}});acf.registerFieldType(i)}(jQuery),function(e,t){var s=[];acf.Condition=acf.Model.extend({type:"",operator:"==",label:"",choiceType:"input",fieldTypes:[],data:{conditions:!1,field:!1,rule:{}},events:{change:"change",keyup:"change",enableField:"change",disableField:"change"},setup:function(t){e.extend(this.data,t)},getEventTarget:function(t,e){return t||this.get("field").$el},change:function(t,e){this.get("conditions").change(t)},match:function(t,e){return!1},calculate:function(){return this.match(this.get("rule"),this.get("field"))},choices:function(t){return'<input type="text" />'}}),acf.newCondition=function(t,e){var i=e.get("field"),n=i.getField(t.field);if(!i||!n)return!1;var a={rule:t,target:i,conditions:e,field:n},r=n.get("type"),s=t.operator,o,c,l;return new(acf.getConditionTypes({fieldType:r,operator:s})[0]||acf.Condition)(a)};var a=function(t){return acf.strPascalCase(t||"")+"Condition"};acf.registerConditionType=function(t){var e,i=t.prototype.type,n=a(i);acf.models[n]=t,s.push(i)},acf.getConditionType=function(t){var e=a(t);return acf.models[e]||!1},acf.registerConditionForFieldType=function(t,e){var i=acf.getConditionType(t);i&&i.prototype.fieldTypes.push(e)},acf.getConditionTypes=function(a){a=acf.parseArgs(a,{fieldType:"",operator:""});var r=[];return s.map(function(t){var e=acf.getConditionType(t),i=e.prototype.fieldTypes,n=e.prototype.operator;a.fieldType&&-1===i.indexOf(a.fieldType)||a.operator&&n!==a.operator||r.push(e)}),r}}(jQuery),function(t,e){var i="conditional_logic",n=new acf.Model({id:"conditionsManager",priority:20,actions:{new_field:"onNewField"},onNewField:function(t){t.has("conditions")&&t.getConditions().render()}}),a=function(t,e){var i=acf.getFields({key:e,sibling:t.$el,suppressFilters:!0});return i.length||(i=acf.getFields({key:e,parent:t.$el.parent(),suppressFilters:!0})),!!i.length&&i[0]};acf.Field.prototype.getField=function(t){var e=a(this,t);if(e)return e;for(var i=this.parents(),n=0;n<i.length;n++)if(e=a(i[n],t))return e;return!1};var r=!(acf.Field.prototype.getConditions=function(){return this.conditions||(this.conditions=new s(this)),this.conditions}),s=acf.Model.extend({id:"Conditions",data:{field:!1,timeStamp:!1,groups:[]},setup:function(t){var e=(this.data.field=t).get("conditions");e instanceof Array?e[0]instanceof Array?e.map(function(t,e){this.addRules(t,e)},this):this.addRules(e):this.addRule(e)},change:function(t){if(this.get("timeStamp")===t.timeStamp)return!1;this.set("timeStamp",t.timeStamp,!0);var e=this.render()},render:function(){return this.calculate()?this.show():this.hide()},show:function(){return this.get("field").showEnable(this.cid,i)},hide:function(){return this.get("field").hideDisable(this.cid,i)},calculate:function(){var i=!1;return this.getGroups().map(function(t){var e;i||t.filter(function(t){return t.calculate()}).length==t.length&&(i=!0)}),i},hasGroups:function(){return null!=this.data.groups},getGroups:function(){return this.data.groups},addGroup:function(){var t=[];return this.data.groups.push(t),t},hasGroup:function(t){return null!=this.data.groups[t]},getGroup:function(t){return this.data.groups[t]},removeGroup:function(t){return this.data.groups[t].delete,this},addRules:function(t,e){t.map(function(t){this.addRule(t,e)},this)},addRule:function(t,e){var i;e=e||0,i=this.hasGroup(e)?this.getGroup(e):this.addGroup();var n=acf.newCondition(t,this);if(!n)return!1;i.push(n)},hasRule:function(){},getRule:function(t,e){return t=t||0,e=e||0,this.data.groups[e][t]},removeRule:function(){}})}(jQuery),function(n,t){var a=acf.__,r=function(t){return t?""+t:""},s=function(t,e){return r(t).toLowerCase()===r(e).toLowerCase()},i=function(t,e){return parseFloat(t)===parseFloat(e)},o=function(t,e){return parseFloat(t)>parseFloat(e)},c=function(t,e){return parseFloat(t)<parseFloat(e)},l=function(t,e){return-1<(e=e.map(function(t){return r(t)})).indexOf(t)},u=function(t,e){return-1<r(t).indexOf(r(e))},d=function(t,e){var i=new RegExp(r(e),"gi");return r(t).match(i)},f=acf.Condition.extend({type:"hasValue",operator:"!=empty",label:a("Has any value"),fieldTypes:["text","textarea","number","range","email","url","password","image","file","wysiwyg","oembed","select","checkbox","radio","button_group","link","post_object","page_link","relationship","taxonomy","user","google_map","date_picker","date_time_picker","time_picker","color_picker"],match:function(t,e){return!!e.val()},choices:function(t){return'<input type="text" disabled="" />'}});acf.registerConditionType(f);var e=f.extend({type:"hasNoValue",operator:"==empty",label:a("Has no value"),match:function(t,e){return!f.prototype.match.apply(this,arguments)}});acf.registerConditionType(e);var h=acf.Condition.extend({type:"equalTo",operator:"==",label:a("Value is equal to"),fieldTypes:["text","textarea","number","range","email","url","password"],match:function(t,e){return n.isNumeric(t.value)?i(t.value,e.val()):s(t.value,e.val())},choices:function(t){return'<input type="text" />'}});acf.registerConditionType(h);var p=h.extend({type:"notEqualTo",operator:"!=",label:a("Value is not equal to"),match:function(t,e){return!h.prototype.match.apply(this,arguments)}});acf.registerConditionType(p);var g=acf.Condition.extend({type:"patternMatch",operator:"==pattern",label:a("Value matches pattern"),fieldTypes:["text","textarea","email","url","password","wysiwyg"],match:function(t,e){return d(e.val(),t.value)},choices:function(t){return'<input type="text" placeholder="[a-z0-9]" />'}});acf.registerConditionType(g);var m=acf.Condition.extend({type:"contains",operator:"==contains",label:a("Value contains"),fieldTypes:["text","textarea","number","email","url","password","wysiwyg","oembed","select"],match:function(t,e){return u(e.val(),t.value)},choices:function(t){return'<input type="text" />'}});acf.registerConditionType(m);var v=h.extend({type:"trueFalseEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:a("Checked")}]}});acf.registerConditionType(v);var y=p.extend({type:"trueFalseNotEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:a("Checked")}]}});acf.registerConditionType(y);var b=acf.Condition.extend({type:"selectEqualTo",operator:"==",label:a("Value is equal to"),fieldTypes:["select","checkbox","radio","button_group"],match:function(t,e){var i=e.val();return i instanceof Array?l(t.value,i):s(t.value,i)},choices:function(t){var e=[],i=t.$setting("choices textarea").val().split("\n");return t.$input("allow_null").prop("checked")&&e.push({id:"",text:a("Null")}),i.map(function(t){(t=t.split(":"))[1]=t[1]||t[0],e.push({id:n.trim(t[0]),text:n.trim(t[1])})}),e}});acf.registerConditionType(b);var x=b.extend({type:"selectNotEqualTo",operator:"!=",label:a("Value is not equal to"),match:function(t,e){return!b.prototype.match.apply(this,arguments)}});acf.registerConditionType(x);var w=acf.Condition.extend({type:"greaterThan",operator:">",label:a("Value is greater than"),fieldTypes:["number","range"],match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),o(i,t.value)},choices:function(t){return'<input type="number" />'}});acf.registerConditionType(w);var _=w.extend({type:"lessThan",operator:"<",label:a("Value is less than"),match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),c(i,t.value)},choices:function(t){return'<input type="number" />'}});acf.registerConditionType(_);var $=w.extend({type:"selectionGreaterThan",label:a("Selection is greater than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType($);var k=_.extend({type:"selectionLessThan",label:a("Selection is less than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(k)}(jQuery),function(s,n){acf.newMediaPopup=function(t){var e=null,t=acf.parseArgs(t,{mode:"select",title:"",button:"",type:"",field:!1,allowedTypes:"",library:"all",multiple:!1,attachment:0,autoOpen:!0,open:function(){},select:function(){},close:function(){}});return e="edit"==t.mode?new acf.models.EditMediaPopup(t):new acf.models.SelectMediaPopup(t),t.autoOpen&&setTimeout(function(){e.open()},1),acf.doAction("new_media_popup",e),e};var e=function(){var t=acf.get("post_id");return s.isNumeric(t)?t:0};acf.getMimeTypes=function(){return this.get("mimeTypes")},acf.getMimeType=function(t){var e=acf.getMimeTypes();if(e[t]!==n)return e[t];for(var i in e)if(-1!==i.indexOf(t))return e[i];return!1};var i=acf.Model.extend({id:"MediaPopup",data:{},defaults:{},frame:!1,setup:function(t){s.extend(this.data,t)},initialize:function(){var t=this.getFrameOptions();this.addFrameStates(t);var e=wp.media(t);(e.acf=this).addFrameEvents(e,t),this.frame=e},open:function(){this.frame.open()},close:function(){this.frame.close()},remove:function(){this.frame.detach(),this.frame.remove()},getFrameOptions:function(){var t={title:this.get("title"),multiple:this.get("multiple"),library:{},states:[]};return this.get("type")&&(t.library.type=this.get("type")),"uploadedTo"===this.get("library")&&(t.library.uploadedTo=e()),this.get("attachment")&&(t.library.post__in=[this.get("attachment")]),this.get("button")&&(t.button={text:this.get("button")}),t},addFrameStates:function(t){var e=wp.media.query(t.library);this.get("field")&&acf.isset(e,"mirroring","args")&&(e.mirroring.args._acfuploader=this.get("field")),t.states.push(new wp.media.controller.Library({library:e,multiple:this.get("multiple"),title:this.get("title"),priority:20,filterable:"all",editable:!0,allowLocalEdits:!0})),acf.isset(wp,"media","controller","EditImage")&&t.states.push(new wp.media.controller.EditImage)},addFrameEvents:function(i,t){i.on("open",function(){this.$el.closest(".media-modal").addClass("acf-media-modal -"+this.acf.get("mode"))},i),i.on("content:render:edit-image",function(){var t=this.state().get("image"),e=new wp.media.view.EditImage({model:t,controller:this}).render();this.content.set(e),e.loadEditor()},i),i.on("select",function(){var t=i.state().get("selection");t&&t.each(function(t,e){i.acf.get("select").apply(i.acf,[t,e])})}),i.on("close",function(){setTimeout(function(){i.acf.get("close").apply(i.acf),i.acf.remove()},1)})}});acf.models.SelectMediaPopup=i.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Select","verb")),i.prototype.setup.apply(this,arguments)},addFrameEvents:function(e,t){acf.isset(_wpPluploadSettings,"defaults","multipart_params")&&(_wpPluploadSettings.defaults.multipart_params._acfuploader=this.get("field"),e.on("open",function(){delete _wpPluploadSettings.defaults.multipart_params._acfuploader})),e.on("content:activate:browse",function(){var t=!1;try{t=e.content.get().toolbar}catch(t){return void console.log(t)}e.acf.customizeFilters.apply(e.acf,[t])}),i.prototype.addFrameEvents.apply(this,arguments)},customizeFilters:function(t){var n=t.get("filters"),e;("image"==this.get("type")&&(n.filters.all.text=acf.__("All images"),delete n.filters.audio,delete n.filters.video,delete n.filters.image,s.each(n.filters,function(t,e){e.props.type=e.props.type||"image"})),this.get("allowedTypes"))&&this.get("allowedTypes").split(" ").join("").split(".").join("").split(",").map(function(t){var e=acf.getMimeType(t);if(e){var i={text:e,props:{status:null,type:e,uploadedTo:null,orderby:"date",order:"DESC"},priority:20};n.filters[e]=i}});if("uploadedTo"===this.get("library")){var i=this.frame.options.library.uploadedTo;delete n.filters.unattached,delete n.filters.uploaded,s.each(n.filters,function(t,e){e.text+=" ("+acf.__("Uploaded to this post")+")",e.props.uploadedTo=i})}var a=this.get("field"),r;s.each(n.filters,function(t,e){e.props._acfuploader=a}),t.get("search").model.attributes._acfuploader=a,n.renderFilters&&n.renderFilters()}}),acf.models.EditMediaPopup=i.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Update","verb")),i.prototype.setup.apply(this,arguments)},addFrameEvents:function(n,t){n.on("open",function(){this.$el.closest(".media-modal").addClass("acf-expanded"),"browse"!=this.content.mode()&&this.content.mode("browse");var t,e=this.state().get("selection"),i=wp.media.attachment(n.acf.get("attachment"));e.add(i)},n),i.prototype.addFrameEvents.apply(this,arguments)}});var t=new acf.Model({id:"customizePrototypes",wait:"ready",initialize:function(){if(acf.isset(window,"wp","media","view")){var t=e();t&&acf.isset(wp,"media","view","settings","post")&&(wp.media.view.settings.post.id=t),this.customizeAttachmentsRouter(),this.customizeAttachmentFilters(),this.customizeAttachmentCompat(),this.customizeAttachmentLibrary()}},customizeAttachmentsRouter:function(){if(acf.isset(wp,"media","view","Router")){var t=wp.media.view.Router;wp.media.view.Router=t.extend({addExpand:function(){var t=s(['<a href="#" class="acf-expand-details">','<span class="is-closed"><span class="acf-icon -left small grey"></span>'+acf.__("Expand Details")+"</span>",'<span class="is-open"><span class="acf-icon -right small grey"></span>'+acf.__("Collapse Details")+"</span>","</a>"].join(""));t.on("click",function(t){t.preventDefault();var e=s(this).closest(".media-modal");e.hasClass("acf-expanded")?e.removeClass("acf-expanded"):e.addClass("acf-expanded")}),this.$el.append(t)},initialize:function(){return t.prototype.initialize.apply(this,arguments),this.addExpand(),this}})}},customizeAttachmentFilters:function(){var t;acf.isset(wp,"media","view","AttachmentFilters","All")&&(wp.media.view.AttachmentFilters.All.prototype.renderFilters=function(){this.$el.html(_.chain(this.filters).map(function(t,e){return{el:s("<option></option>").val(e).html(t.text)[0],priority:t.priority||50}},this).sortBy("priority").pluck("el").value())})},customizeAttachmentCompat:function(){if(acf.isset(wp,"media","view","AttachmentCompat")){var t=wp.media.view.AttachmentCompat,e=!1;wp.media.view.AttachmentCompat=t.extend({render:function(){return this.rendered?this:(t.prototype.render.apply(this,arguments),this.$("#acf-form-data").length&&(clearTimeout(e),e=setTimeout(s.proxy(function(){this.rendered=!0,acf.doAction("append",this.$el)},this),50)),this)}})}},customizeAttachmentLibrary:function(){if(acf.isset(wp,"media","view","Attachment","Library")){var l=wp.media.view.Attachment.Library;wp.media.view.Attachment.Library=l.extend({render:function(){var t=acf.isget(this,"controller","acf"),e=acf.isget(this,"model","attributes");if(t&&e){e.acf_errors&&this.$el.addClass("acf-disabled");var i=t.get("selected");i&&-1<i.indexOf(e.id)&&this.$el.addClass("acf-selected")}return l.prototype.render.apply(this,arguments)},toggleSelection:function(t){var e=this.collection,i=this.options.selection,n=this.model,a=i.single(),r=this.controller,s=acf.isget(this,"model","attributes","acf_errors"),o=r.$el.find(".media-frame-content .media-sidebar");if(o.children(".acf-selection-error").remove(),o.children().removeClass("acf-hidden"),r&&s){var c=acf.isget(this,"model","attributes","filename");return o.children().addClass("acf-hidden"),o.prepend(['<div class="acf-selection-error">','<span class="selection-error-label">'+acf.__("Restricted")+"</span>",'<span class="selection-error-filename">'+c+"</span>",'<span class="selection-error-message">'+s+"</span>","</div>"].join("")),i.reset(),void i.single(n)}return l.prototype.toggleSelection.apply(this,arguments)}})}}})}(jQuery),function(r,t){acf.screen=new acf.Model({active:!0,xhr:!1,timeout:!1,wait:"load",events:{"change #page_template":"onChange","change #parent_id":"onChange","change #post-formats-select":"onChange","change .categorychecklist":"onChange","change .tagsdiv":"onChange",'change .acf-taxonomy-field[data-save="1"]':"onChange","change #product-type":"onChange"},initialize:function(){},isPost:function(){return"post"===acf.get("screen")},isUser:function(){return"user"===acf.get("screen")},isTaxonomy:function(){return"taxonomy"===acf.get("screen")},isAttachment:function(){return"attachment"===acf.get("screen")},isNavMenu:function(){return"nav_menu"===acf.get("screen")},isWidget:function(){return"widget"===acf.get("screen")},isComment:function(){return"comment"===acf.get("screen")},getPageTemplate:function(){var t=r("#page_template");return t.length?t.val():null},getPageParent:function(t,e){var e;return(e=r("#parent_id")).length?e.val():null},getPageType:function(t,e){return this.getPageParent()?"child":"parent"},getPostFormat:function(t,e){var e;if((e=r("#post-formats-select input:checked")).length){var i=e.val();return"0"==i?"standard":i}return null},getPostTerms:function(){var n={},t=acf.serialize(r(".categorydiv, .tagsdiv"));for(var e in t.tax_input&&(n=t.tax_input),t.post_category&&(n.category=t.post_category),n)acf.isArray(n[e])||(n[e]=n[e].split(", "));for(var e in acf.getFields({type:"taxonomy"}).map(function(t){if(t.get("save")){var e=t.val(),i=t.get("taxonomy");e&&(n[i]=n[i]||[],e=acf.isArray(e)?e:[e],n[i]=n[i].concat(e))}}),null!==(productType=this.getProductType())&&(n.product_type=[productType]),n)n[e]=acf.uniqueArray(n[e]);return n},getProductType:function(){var t=r("#product-type");return t.length?t.val():null},check:function(){if("post"===acf.get("screen")){this.xhr&&this.xhr.abort();var e=acf.parseArgs(this.data,{action:"acf/ajax/check_screen",screen:acf.get("screen"),exists:[]});this.isPost()&&(e.post_id=acf.get("post_id")),null!==(pageTemplate=this.getPageTemplate())&&(e.page_template=pageTemplate),null!==(pageParent=this.getPageParent())&&(e.page_parent=pageParent),null!==(pageType=this.getPageType())&&(e.page_type=pageType),null!==(postFormat=this.getPostFormat())&&(e.post_format=postFormat),null!==(postTerms=this.getPostTerms())&&(e.post_terms=postTerms),acf.getPostboxes().map(function(t){t.hasHTML()&&e.exists.push(t.get("key"))}),e=acf.applyFilters("check_screen_args",e);var t=function(t){if(acf.isAjaxSuccess(t)){var a=[];t.data.results.map(function(t,e){var i="acf-"+t.key,n=acf.getPostbox(i);n.showEnable(),a.push(i),!n.hasHTML()&&t.html&&n.html(t.html)}),acf.getPostboxes().map(function(t){-1===a.indexOf(t.get("id"))&&t.hideDisable()}),r("#acf-style").html(t.data.style),acf.doAction("check_screen_complete",t.data,e)}};this.xhr=r.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:t})}},onChange:function(t,e){this.setTimeout(this.check,1)}})}(jQuery),function(l,t){function a(){return acf.isset(window,"jQuery","fn","select2","amd")?4:!!acf.isset(window,"Select2")&&3}acf.newSelect2=function(t,e){if(e=acf.parseArgs(e,{allowNull:!1,placeholder:"",multiple:!1,field:!1,ajax:!1,ajaxAction:"",ajaxData:function(t){return t},ajaxResults:function(t){return t}}),4==a())var i=new r(t,e);else var i=new s(t,e);return acf.doAction("new_select2",i),i};var n=acf.Model.extend({setup:function(t,e){l.extend(this.data,e),this.$el=t},initialize:function(){},selectOption:function(t){var e=this.getOption(t);e.prop("selected")||e.prop("selected",!0).trigger("change")},unselectOption:function(t){var e=this.getOption(t);e.prop("selected")&&e.prop("selected",!1).trigger("change")},getOption:function(t){return this.$('option[value="'+t+'"]')},addOption:function(t){t=acf.parseArgs(t,{id:"",text:"",selected:!1});var e=this.getOption(t.id);return e.length||((e=l("<option></option>")).html(t.text),e.attr("value",t.id),e.prop("selected",t.selected),this.$el.append(e)),e},getValue:function(){var e=[],t=this.$el.find("option:selected");return t.exists()&&(t=t.sort(function(t,e){return+t.getAttribute("data-i")-+e.getAttribute("data-i")})).each(function(){var t=l(this);e.push({$el:t,id:t.attr("value"),text:t.text()})}),e},mergeOptions:function(){},getChoices:function(){var i=function(t){var e=[];return t.children().each(function(){var t=l(this);t.is("optgroup")?e.push({text:t.attr("label"),children:i(t)}):e.push({id:t.attr("value"),text:t.text()})}),e};return i(this.$el)},decodeChoices:function(t){var e=function(t){return t.map(function(t){return t.text=acf.decode(t.text),t.children&&(t.children=e(t.children)),t}),t};return e(t)},getAjaxData:function(t){var e={action:this.get("ajaxAction"),s:t.term||"",paged:t.page||1},i=this.get("field");i&&(e.field_key=i.get("key"));var n=this.get("ajaxData");return n&&(e=n.apply(this,[e,t])),e=acf.applyFilters("select2_ajax_data",e,this.data,this.$el,i||!1,this),acf.prepareForAjax(e)},getAjaxResults:function(t,e){(t=acf.parseArgs(t,{results:!1,more:!1})).results&&(t.results=this.decodeChoices(t.results));var i=this.get("ajaxResults");return i&&(t=i.apply(this,[t,e])),t=acf.applyFilters("select2_ajax_results",t,e,this)},processAjaxResults:function(t,e){var t;return(t=this.getAjaxResults(t,e)).more&&(t.pagination={more:!0}),setTimeout(l.proxy(this.mergeOptions,this),1),t},destroy:function(){this.$el.data("select2")&&this.$el.select2("destroy"),this.$el.siblings(".select2-container").remove()}}),r=n.extend({initialize:function(){var e=this.$el,t={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),multiple:this.get("multiple"),data:[],escapeMarkup:function(t){return t}};t.multiple&&this.getValue().map(function(t){t.$el.detach().appendTo(e)}),e.removeData("ajax"),e.removeAttr("data-ajax"),this.get("ajax")&&(t.ajax={url:acf.get("ajaxurl"),delay:250,dataType:"json",type:"post",cache:!1,data:l.proxy(this.getAjaxData,this),processResults:l.proxy(this.processAjaxResults,this)});var i=this.get("field");t=acf.applyFilters("select2_args",t,e,this.data,i||!1,this),e.select2(t);var n=e.next(".select2-container");if(t.multiple){var a=n.find("ul");a.sortable({stop:function(t){a.find(".select2-selection__choice").each(function(){var t;l(l(this).data("data").element).detach().appendTo(e)}),e.trigger("change")}}),e.on("select2:select",this.proxy(function(t){this.getOption(t.params.data.id).detach().appendTo(this.$el)}))}n.addClass("-acf"),acf.doAction("select2_init",e,t,this.data,i||!1,this)},mergeOptions:function(){var i=!1,n=!1;l('.select2-results__option[role="group"]').each(function(){var t=l(this).children("ul"),e=l(this).children("strong");if(n&&n.text()===e.text())return i.append(t.children()),void l(this).remove();i=t,n=e})}}),s=n.extend({initialize:function(){var n=this.$el,i=this.getValue(),a=this.get("multiple"),t={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),separator:"||",multiple:this.get("multiple"),data:this.getChoices(),escapeMarkup:function(t){return t},dropdownCss:{"z-index":"999999999"},initSelection:function(t,e){e(a?i:i.shift())}},e=n.siblings("input");e.length||(e=l('<input type="hidden" />'),n.before(e)),inputValue=i.map(function(t){return t.id}).join("||"),e.val(inputValue),t.multiple&&i.map(function(t){t.$el.detach().appendTo(n)}),t.allowClear&&(t.data=t.data.filter(function(t){return""!==t.id})),n.removeData("ajax"),n.removeAttr("data-ajax"),this.get("ajax")&&(t.ajax={url:acf.get("ajaxurl"),quietMillis:250,dataType:"json",type:"post",cache:!1,data:l.proxy(this.getAjaxData,this),results:l.proxy(this.processAjaxResults,this)});var r=this.get("field");t=acf.applyFilters("select2_args",t,n,this.data,r||!1,this),e.select2(t);var s=e.select2("container"),o=l.proxy(this.getOption,this);if(t.multiple){var c=s.find("ul");c.sortable({stop:function(){c.find(".select2-search-choice").each(function(){var t=l(this).data("select2Data"),e;o(t.id).detach().appendTo(n)}),n.trigger("change")}})}e.on("select2-selecting",function(t){var e=t.choice,i=o(e.id);i.length||(i=l('<option value="'+e.id+'">'+e.text+"</option>")),i.detach().appendTo(n)}),s.addClass("-acf"),acf.doAction("select2_init",n,t,this.data,r||!1,this),e.on("change",function(){var t=e.val();t.indexOf("||")&&(t=t.split("||")),n.val(t).trigger("change")}),n.hide()},mergeOptions:function(){var i=!1,n=!1;l("#select2-drop .select2-result-with-children").each(function(){var t=l(this).children("ul"),e=l(this).children(".select2-result-label");if(n&&n.text()===e.text())return n.append(t.children()),void l(this).remove();i=t,n=e})},getAjaxData:function(t,e){var i={term:t,page:e};return n.prototype.getAjaxData.apply(this,[i])}}),e=new acf.Model({priority:5,wait:"prepare",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("select2L10n"),n=a();return!!i&&(0!==t.indexOf("en")&&void(4==n?this.addTranslations4():3==n&&this.addTranslations3()))},addTranslations4:function(){var i=acf.get("select2L10n"),t=acf.get("locale");t=t.replace("_","-");var e={errorLoading:function(){return i.load_fail},inputTooLong:function(t){var e=t.input.length-t.maximum;return 1<e?i.input_too_long_n.replace("%d",e):i.input_too_long_1},inputTooShort:function(t){var e=t.minimum-t.input.length;return 1<e?i.input_too_short_n.replace("%d",e):i.input_too_short_1},loadingMore:function(){return i.load_more},maximumSelected:function(t){var e=t.maximum;return 1<e?i.selection_too_long_n.replace("%d",e):i.selection_too_long_1},noResults:function(){return i.matches_0},searching:function(){return i.searching}};jQuery.fn.select2.amd.define("select2/i18n/"+t,[],function(){return e})},addTranslations3:function(){var n=acf.get("select2L10n"),t=acf.get("locale");t=t.replace("_","-");var e={formatMatches:function(t){return 1<t?n.matches_n.replace("%d",t):n.matches_1},formatNoMatches:function(){return n.matches_0},formatAjaxError:function(){return n.load_fail},formatInputTooShort:function(t,e){var i=e-t.length;return 1<i?n.input_too_short_n.replace("%d",i):n.input_too_short_1},formatInputTooLong:function(t,e){var i=t.length-e;return 1<i?n.input_too_long_n.replace("%d",i):n.input_too_long_1},formatSelectionTooBig:function(t){return 1<t?n.selection_too_long_n.replace("%d",t):n.selection_too_long_1},formatLoadMore:function(){return n.load_more},formatSearching:function(){return n.searching}};l.fn.select2.locales=l.fn.select2.locales||{},l.fn.select2.locales[t]=e,l.extend(l.fn.select2.defaults,e)}})}(jQuery),function(f,t){acf.tinymce={defaults:function(){return"undefined"!=typeof tinyMCEPreInit&&{tinymce:tinyMCEPreInit.mceInit.acf_content,quicktags:tinyMCEPreInit.qtInit.acf_content};var t},initialize:function(t,e){(e=acf.parseArgs(e,{tinymce:!0,quicktags:!0,toolbar:"full",mode:"visual",field:!1})).tinymce&&this.initializeTinymce(t,e),e.quicktags&&this.initializeQuicktags(t,e)},initializeTinymce:function(t,e){var i=f("#"+t),n=this.defaults(),a=acf.get("toolbars"),r=e.field||!1,s=r.$el||!1;if("undefined"==typeof tinymce)return!1;if(!n)return!1;if(tinymce.get(t))return this.enable(t);var o=f.extend({},n.tinymce,e.tinymce);o.id=t,o.selector="#"+t;var c=e.toolbar;if(c&&a&&a[c])for(var l=1;l<=4;l++)o["toolbar"+l]=a[c][l]||"";if(o.setup=function(e){e.on("change",function(t){e.save(),i.trigger("change")}),f(e.getWin()).on("unload",function(){acf.tinymce.remove(t)})},o.wp_autoresize_on=!1,o=acf.applyFilters("wysiwyg_tinymce_settings",o,t,r),tinyMCEPreInit.mceInit[t]=o,"visual"==e.mode){var u=tinymce.init(o),d=tinymce.get(t);if(!d)return!1;d.acf=e.field,acf.doAction("wysiwyg_tinymce_init",d,d.id,o,r)}},initializeQuicktags:function(t,e){var i=this.defaults();if("undefined"==typeof quicktags)return!1;if(!i)return!1;var n=f.extend({},i.quicktags,e.quicktags);n.id=t;var a=e.field||!1,r=a.$el||!1;n=acf.applyFilters("wysiwyg_quicktags_settings",n,n.id,a),
4
+ tinyMCEPreInit.qtInit[t]=n;var s=quicktags(n);if(!s)return!1;this.buildQuicktags(s),acf.doAction("wysiwyg_quicktags_init",s,s.id,n,a)},buildQuicktags:function(t){var e,i,n,a,r,t,s,o,c,l,u=",strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,";for(o in e=t.canvas,i=t.name,n=t.settings,a={},c=r="",l=t.id,n.buttons&&(c=","+n.buttons+","),edButtons)edButtons[o]&&(s=edButtons[o].id,c&&-1!==u.indexOf(","+s+",")&&-1===c.indexOf(","+s+",")||edButtons[o].instance&&edButtons[o].instance!==l||(a[s]=edButtons[o],edButtons[o].html&&(r+=edButtons[o].html(i+"_"))));c&&-1!==c.indexOf(",dfw,")&&(a.dfw=new QTags.DFWButton,r+=a.dfw.html(i+"_")),"rtl"===document.getElementsByTagName("html")[0].dir&&(a.textdirection=new QTags.TextDirectionButton,r+=a.textdirection.html(i+"_")),t.toolbar.innerHTML=r,t.theButtons=a,"undefined"!=typeof jQuery&&jQuery(document).triggerHandler("quicktags-init",[t])},disable:function(t){this.destroyTinymce(t)},remove:function(t){this.destroyTinymce(t)},destroy:function(t){this.destroyTinymce(t)},destroyTinymce:function(t){if("undefined"==typeof tinymce)return!1;var e=tinymce.get(t);return!!e&&(e.save(),e.destroy(),!0)},enable:function(t){this.enableTinymce(t)},enableTinymce:function(t){return"undefined"!=typeof switchEditors&&(void 0!==tinyMCEPreInit.mceInit[t]&&(switchEditors.go(t,"tmce"),!0))}};var e=new acf.Model({priority:5,actions:{prepare:"onPrepare",ready:"onReady"},onPrepare:function(){var t=f("#acf-hidden-wp-editor");t.exists()&&t.appendTo("body")},onReady:function(){acf.isset(window,"tinymce","on")&&tinymce.on("AddEditor",function(t){var e=t.editor;"acf"===e.id.substr(0,3)&&(e=tinymce.editors.content||e,tinymce.activeEditor=e,wpActiveEditor=e.id)})}})}(jQuery),function(s,t){var i=acf.Model.extend({id:"Validator",data:{errors:[],notice:null,status:""},events:{"changed:status":"onChangeStatus"},addErrors:function(t){t.map(this.addError,this)},addError:function(t){this.data.errors.push(t)},hasErrors:function(){return this.data.errors.length},clearErrors:function(){return this.data.errors=[]},getErrors:function(){return this.data.errors},getFieldErrors:function(){var i=[],n=[];return this.getErrors().map(function(t){if(t.input){var e=n.indexOf(t.input);-1<e?i[e]=t:(i.push(t),n.push(t.input))}}),i},getGlobalErrors:function(){return this.getErrors().filter(function(t){return!t.input})},showErrors:function(){if(this.hasErrors()){var t=this.getFieldErrors(),e=this.getGlobalErrors(),n=0,a=!1;t.map(function(t){var e=this.$('[name="'+t.input+'"]').first();if(e.length||(e=this.$('[name^="'+t.input+'"]').first()),e.length){n++;var i=acf.getClosestField(e);i.showError(t.message),a||(a=i.$el)}},this);var i=acf.__("Validation failed");if(e.map(function(t){i+=". "+t.message}),1==n?i+=". "+acf.__("1 field requires attention"):1<n&&(i+=". "+acf.__("%d fields require attention").replace("%d",n)),this.has("notice"))this.get("notice").update({type:"error",text:i});else{var r=acf.newNotice({type:"error",text:i,target:this.$el});this.set("notice",r)}a||(a=this.get("notice").$el),setTimeout(function(){s("html, body").animate({scrollTop:a.offset().top-s(window).height()/2},500)},10)}},onChangeStatus:function(t,e,i,n){this.$el.removeClass("is-"+n).addClass("is-"+i)},validate:function(t){if(t=acf.parseArgs(t,{event:!1,reset:!1,loading:function(){},complete:function(){},failure:function(){},success:function(t){t.submit()}}),"valid"==this.get("status"))return!0;if("validating"==this.get("status"))return!1;if(!this.$(".acf-field").length)return!0;if(t.event){var e=s.Event(null,t.event);t.success=function(){acf.enableSubmit(s(e.target)).trigger(e)}}acf.doAction("validation_begin",this.$el),acf.lockForm(this.$el),t.loading(this.$el),this.set("status","validating");var i=function(t){if(acf.isAjaxSuccess(t)){var e=acf.applyFilters("validation_complete",t.data,this.$el);e.valid||this.addErrors(e.errors)}},n=function(){acf.unlockForm(this.$el),this.hasErrors()?(this.set("status","invalid"),acf.doAction("validation_failure",this.$el),this.showErrors(),t.failure(this.$el)):(this.set("status","valid"),this.has("notice")&&this.get("notice").update({type:"success",text:acf.__("Validation successful"),timeout:1e3}),acf.doAction("validation_success",this.$el),acf.doAction("submit",this.$el),t.success(this.$el),acf.lockForm(this.$el),t.reset&&this.reset()),t.complete(this.$el),this.clearErrors()},a=acf.serialize(this.$el);a.action="acf/validate_save_post",s.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",context:this,success:i,complete:n})},setup:function(t){this.$el=t},reset:function(){this.set("errors",[]),this.set("notice",null),this.set("status",""),acf.unlockForm(this.$el)}}),n=function(t){var e=t.data("acf");return e||(e=new i(t)),e};acf.validateForm=function(t){return n(t.form).validate(t)},acf.enableSubmit=function(t){return t.removeClass("disabled")},acf.disableSubmit=function(t){return t.addClass("disabled")},acf.showSpinner=function(t){return t.addClass("is-active"),t.css("display","inline-block"),t},acf.hideSpinner=function(t){return t.removeClass("is-active"),t.css("display","none"),t},acf.lockForm=function(t){var e=a(t),i=e.find('.button, [type="submit"]'),n=e.find(".spinner, .acf-spinner");return acf.hideSpinner(n),acf.disableSubmit(i),acf.showSpinner(n.last()),t},acf.unlockForm=function(t){var e=a(t),i=e.find('.button, [type="submit"]'),n=e.find(".spinner, .acf-spinner");return acf.enableSubmit(i),acf.hideSpinner(n),t};var a=function(t){var e,e,e,e;return(e=t.find("#submitdiv")).length?e:(e=t.find("#submitpost")).length?e:(e=t.find("p.submit").last()).length?e:(e=t.find(".acf-form-submit")).length?e:t};acf.validation=new acf.Model({id:"validation",active:!0,wait:"prepare",actions:{ready:"addInputEvents",append:"addInputEvents"},events:{'click input[type="submit"]':"onClickSubmit",'click button[type="submit"]':"onClickSubmit","click #save-post":"onClickSave","mousedown #post-preview":"onClickPreview","submit form":"onSubmit"},initialize:function(){acf.get("validation")||(this.active=!1,this.actions={},this.events={})},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(t){n(t).reset()},addInputEvents:function(t){var e=s(".acf-field [name]",t);e.length&&this.on(e,"invalid","onInvalid")},onInvalid:function(t,e){t.preventDefault();var i=e.closest("form");i.length&&(n(i).addError({input:e.attr("name"),message:t.target.validationMessage}),i.submit())},onClickSubmit:function(t,e){this.set("originalEvent",t)},onClickSave:function(t,e){this.set("ignore",!0)},onClickPreview:function(t,e){this.set("ignore",!0),s("form#post").off("submit.edit-post")},onSubmit:function(t,e){var i;this.active&&(this.get("ignore")?this.set("ignore",!1):acf.validateForm({form:e,event:this.get("originalEvent")})||t.preventDefault())}})}(jQuery),function(l,t){var e=new acf.Model({priority:90,timeout:0,actions:{new_field:"refresh",show_field:"refresh",hide_field:"refresh",remove_field:"refresh"},refresh:function(){clearTimeout(this.timeout),this.timeout=setTimeout(function(){acf.doAction("refresh")},0)}}),i=new acf.Model({actions:{sortstart:"onSortstart"},onSortstart:function(t,e){t.is("tr")&&(t.css("position","relative"),t.children().each(function(){l(this).width(l(this).width())}),t.css("position","absolute"),e.html('<td style="height:'+t.height()+'px; padding:0;" colspan="'+t.children("td").length+'"></td>'))}}),n=new acf.Model({actions:{after_duplicate:"onAfterDuplicate"},onAfterDuplicate:function(t,e){var i=[];t.find("select").each(function(t){i.push(l(this).val())}),e.find("select").each(function(t){l(this).val(i[t])})}}),a=new acf.Model({id:"tableHelper",priority:20,actions:{refresh:"renderTables"},renderTables:function(t){var e=this;l(".acf-table:visible").each(function(){e.renderTable(l(this))})},renderTable:function(t){var e=t.find("> thead > tr:visible > th[data-key]"),r=t.find("> tbody > tr:visible > td[data-key]");if(!e.length||!r.length)return!1;e.each(function(t){var e=l(this),i=e.data("key"),n=r.filter('[data-key="'+i+'"]'),a=n.filter(".acf-hidden");n.removeClass("acf-empty"),n.length===a.length?acf.hide(e):(acf.show(e),a.addClass("acf-empty"))}),e.css("width","auto"),e=e.not(".acf-hidden");var i=100,n=e.length,a;e.filter("[data-width]").each(function(){var t=l(this).data("width");l(this).css("width",t+"%"),i-=t});var s=e.not("[data-width]");if(s.length){var o=i/s.length;s.css("width",o+"%"),i=0}0<i&&e.last().css("width","auto"),r.filter(".-collapsed-target").each(function(){var t=l(this);t.parent().hasClass("-collapsed")?t.attr("colspan",e.length):t.removeAttr("colspan")})}}),r=new acf.Model({id:"fieldsHelper",priority:30,actions:{refresh:"renderGroups"},renderGroups:function(){var t=this;l(".acf-fields:visible").each(function(){t.renderGroup(l(this))})},renderGroup:function(t){var s=0,o=0,c=l(),e=t.children(".acf-field[data-width]:visible");return!!e.length&&(t.hasClass("-left")?(e.removeAttr("data-width"),e.css("width","auto"),!1):(e.removeClass("-r0 -c0").css({"min-height":0}),e.each(function(t){var e=l(this),i=e.position(),n=Math.ceil(i.top),a=Math.ceil(i.left);c.length&&s<n&&(c.css({"min-height":o+"px"}),i=e.position(),n=Math.ceil(i.top),a=Math.ceil(i.left),o=s=0,c=l()),acf.get("rtl")&&(a=Math.ceil(e.parent().width()-(i.left+e.outerWidth()))),0==n?e.addClass("-r0"):0==a&&e.addClass("-c0");var r=Math.ceil(e.outerHeight())+1;o=Math.max(o,r),s=Math.max(s,n),c=c.add(e)}),void(c.length&&c.css({"min-height":o+"px"}))))}})}(jQuery),function(o,a){acf.newCompatibility=function(t,e){return(e=e||{}).__proto__=t.__proto__,t.__proto__=e,t.compatibility=e},acf.getCompatibility=function(t){return t.compatibility||null};var c=acf.newCompatibility(acf,{l10n:{},o:{},fields:{},update:acf.set,add_action:acf.addAction,remove_action:acf.removeAction,do_action:acf.doAction,add_filter:acf.addFilter,remove_filter:acf.removeFilter,apply_filters:acf.applyFilters,parse_args:acf.parseArgs,disable_el:acf.disable,disable_form:acf.disable,enable_el:acf.enable,enable_form:acf.enable,update_user_setting:acf.updateUserSetting,prepare_for_ajax:acf.prepareForAjax,is_ajax_success:acf.isAjaxSuccess,remove_el:acf.remove,remove_tr:acf.remove,str_replace:acf.strReplace,render_select:acf.renderSelect,get_uniqid:acf.uniqid,serialize_form:acf.serialize,esc_html:acf.strEscape,str_sanitize:acf.strSanitize});c._e=function(t,e){t=t||"";var i=(e=e||"")?t+"."+e:t,n={"image.select":"Select Image","image.edit":"Edit Image","image.update":"Update Image"};if(n[i])return acf.__(n[i]);var a=this.l10n[t]||"";return e&&(a=a[e]||""),a},c.get_selector=function(t){var e=".acf-field";if(!t)return e;if(o.isPlainObject(t)){if(o.isEmptyObject(t))return e;for(var i in t){t=t[i];break}}return e+="-"+t,e=acf.strReplace("_","-",e),e=acf.strReplace("field-field-","field-",e)},c.get_fields=function(t,e,i){var n={is:t||"",parent:e||!1,suppressFilters:i||!1};return n.is&&(n.is=this.get_selector(n.is)),acf.findFields(n)},c.get_field=function(t,e){var i=this.get_fields.apply(this,arguments);return!!i.length&&i.first()},c.get_closest_field=function(t,e){return t.closest(this.get_selector(e))},c.get_field_wrap=function(t){return t.closest(this.get_selector())},c.get_field_key=function(t){return t.data("key")},c.get_field_type=function(t){return t.data("type")},c.get_data=function(t,e){return acf.parseArgs(t.data(),e)},c.maybe_get=function(t,e,i){i===a&&(i=null),keys=String(e).split(".");for(var n=0;n<keys.length;n++){if(!t.hasOwnProperty(keys[n]))return i;t=t[keys[n]]}return t};var e=function(t){return t instanceof acf.Field?t.$el:t},i=function(t){return acf.arrayArgs(t).map(e)},l=function(e){return function(){if(arguments.length)var t=i(arguments);else var t=[o(document)];return e.apply(this,t)}};c.add_action=function(t,e,i,n){var a=t.split(" "),r=a.length;if(1<r){for(var s=0;s<r;s++)t=a[s],c.add_action.apply(this,arguments);return this}var e=l(e);return acf.addAction.apply(this,arguments)},c.add_filter=function(t,e,i,n){var e=l(e);return acf.addFilter.apply(this,arguments)},c.model={actions:{},filters:{},events:{},extend:function(t){var i=o.extend({},this,t);return o.each(i.actions,function(t,e){i._add_action(t,e)}),o.each(i.filters,function(t,e){i._add_filter(t,e)}),o.each(i.events,function(t,e){i._add_event(t,e)}),i},_add_action:function(t,e){var i=this,n=t.split(" "),t=n[0]||"",a=n[1]||10;acf.add_action(t,i[e],a,i)},_add_filter:function(t,e){var i=this,n=t.split(" "),t=n[0]||"",a=n[1]||10;acf.add_filter(t,i[e],a,i)},_add_event:function(t,e){var i=this,n=t.indexOf(" "),a=0<n?t.substr(0,n):t,r=0<n?t.substr(n+1):"",s=function(t){t.$el=o(this),acf.field_group&&(t.$field=t.$el.closest(".acf-field-object")),"function"==typeof i.event&&(t=i.event(t)),i[e].apply(i,arguments)};r?o(document).on(a,r,s):o(document).on(a,s)},get:function(t,e){return e=e||null,void 0!==this[t]&&(e=this[t]),e},set:function(t,e){return this[t]=e,"function"==typeof this["_set_"+t]&&this["_set_"+t].apply(this),this}},c.field=acf.model.extend({type:"",o:{},$field:null,_add_action:function(t,e){var i=this;t=t+"_field/type="+i.type,acf.add_action(t,function(t){i.set("$field",t),i[e].apply(i,arguments)})},_add_filter:function(t,e){var i=this;t=t+"_field/type="+i.type,acf.add_filter(t,function(t){i.set("$field",t),i[e].apply(i,arguments)})},_add_event:function(t,n){var a=this,e=t.substr(0,t.indexOf(" ")),i=t.substr(t.indexOf(" ")+1),r=acf.get_selector(a.type);o(document).on(e,r+" "+i,function(t){var e=o(this),i=acf.get_closest_field(e,a.type);i.length&&(i.is(a.$field)||a.set("$field",i),t.$el=e,t.$field=i,a[n].apply(a,[t]))})},_set_$field:function(){"function"==typeof this.focus&&this.focus()},doFocus:function(t){return this.set("$field",t)}});var t=acf.newCompatibility(acf.validation,{remove_error:function(t){acf.getField(t).removeError()},add_warning:function(t,e){acf.getField(t).showNotice({text:e,type:"warning",timeout:1e3})},fetch:acf.validateForm,enableSubmit:acf.enableSubmit,disableSubmit:acf.disableSubmit,showSpinner:acf.showSpinner,hideSpinner:acf.hideSpinner,unlockForm:acf.unlockForm,lockForm:acf.lockForm});c.tooltip={tooltip:function(t,e){var i;return acf.newTooltip({text:t,target:e}).$el},temp:function(t,e){var i=acf.newTooltip({text:t,target:e,timeout:250})},confirm:function(t,e,i,n,a){var r=acf.newTooltip({confirm:!0,text:i,target:t,confirm:function(){e(!0)},cancel:function(){e(!1)}})},confirm_remove:function(t,e){var i=acf.newTooltip({confirmRemove:!0,target:t,confirm:function(){e(!0)},cancel:function(){e(!1)}})}},c.media=new acf.Model({activeFrame:!1,actions:{new_media_popup:"onNewMediaPopup"},frame:function(){return this.activeFrame},onNewMediaPopup:function(t){this.activeFrame=t.frame},popup:function(t){var e;return t.mime_types&&(t.allowedTypes=t.mime_types),t.id&&(t.attachment=t.id),acf.newMediaPopup(t).frame}}),c.select2={init:function(t,e,i){return e.allow_null&&(e.allowNull=e.allow_null),e.ajax_action&&(e.ajaxAction=e.ajax_action),i&&(e.field=acf.getField(i)),acf.newSelect2(t,e)},destroy:function(t){return acf.getInstance(t).destroy()}},c.postbox={render:function(t){return t.edit_url&&(t.editLink=t.edit_url),t.edit_title&&(t.editTitle=t.edit_title),acf.newPostbox(t)}},acf.newCompatibility(acf.screen,{update:function(){return this.set.apply(this,arguments)},fetch:acf.screen.check}),c.ajax=acf.screen}(jQuery);
includes/ajax/class-acf-ajax-check-screen.php CHANGED
@@ -28,13 +28,17 @@ class ACF_Ajax_Check_Screen extends ACF_Ajax {
28
 
29
  // vars
30
  $args = acf_parse_args($this->request, array(
 
31
  'post_id' => 0,
32
  'ajax' => 1,
33
- 'exclude' => array()
34
  ));
35
 
36
  // vars
37
- $json = array();
 
 
 
38
 
39
  // get field groups
40
  $field_groups = acf_get_field_groups( $args );
@@ -47,17 +51,16 @@ class ACF_Ajax_Check_Screen extends ACF_Ajax {
47
  $item = array(
48
  'key' => $field_group['key'],
49
  'title' => $field_group['title'],
50
- 'html' => '',
51
- 'style' => ''
52
  );
53
 
54
- // style
55
  if( $i == 0 ) {
56
- $item['style'] = acf_get_field_group_style( $field_group );
57
  }
58
 
59
- // html
60
- if( !in_array($field_group['key'], $args['exclude']) ) {
61
 
62
  // load fields
63
  $fields = acf_get_fields( $field_group );
@@ -72,8 +75,9 @@ class ACF_Ajax_Check_Screen extends ACF_Ajax {
72
  }
73
 
74
  // append
75
- $json[] = $item;
76
- }}
 
77
 
78
  // return
79
  return $json;
28
 
29
  // vars
30
  $args = acf_parse_args($this->request, array(
31
+ 'screen' => '',
32
  'post_id' => 0,
33
  'ajax' => 1,
34
+ 'exists' => array()
35
  ));
36
 
37
  // vars
38
+ $json = array(
39
+ 'results' => array(),
40
+ 'style' => ''
41
+ );
42
 
43
  // get field groups
44
  $field_groups = acf_get_field_groups( $args );
51
  $item = array(
52
  'key' => $field_group['key'],
53
  'title' => $field_group['title'],
54
+ 'html' => ''
 
55
  );
56
 
57
+ // append first field group's style
58
  if( $i == 0 ) {
59
+ $json['style'] = acf_get_field_group_style( $field_group );
60
  }
61
 
62
+ // append html if doesnt already exist on page
63
+ if( !in_array($field_group['key'], $args['exists']) ) {
64
 
65
  // load fields
66
  $fields = acf_get_fields( $field_group );
75
  }
76
 
77
  // append
78
+ $json['results'][] = $item;
79
+ }}
80
+
81
 
82
  // return
83
  return $json;
includes/api/api-field-group.php CHANGED
@@ -1216,5 +1216,23 @@ function acf_prepare_field_group_for_export( $field_group ) {
1216
  return $field_group;
1217
  }
1218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1219
 
1220
  ?>
1216
  return $field_group;
1217
  }
1218
 
1219
+ /**
1220
+ * acf_get_field_group_edit_link
1221
+ *
1222
+ * Checks if the current user can edit the field group and returns the edit url.
1223
+ *
1224
+ * @date 23/9/18
1225
+ * @since 5.7.7
1226
+ *
1227
+ * @param int $post_id The field group ID.
1228
+ * @return string
1229
+ */
1230
+ function acf_get_field_group_edit_link( $post_id ) {
1231
+ if( $post_id && acf_current_user_can_admin() ) {
1232
+ return admin_url('post.php?post=' . $post_id . '&action=edit');
1233
+ }
1234
+ return '';
1235
+ }
1236
+
1237
 
1238
  ?>
includes/assets.php CHANGED
@@ -161,10 +161,6 @@ class ACF_Assets {
161
  add_action($actions['admin_footer'], 'acf_enqueue_uploader', 5);
162
  }
163
 
164
- // enqueue
165
- wp_enqueue_script('acf-input');
166
- wp_enqueue_style('acf-input');
167
-
168
  // localize text
169
  acf_localize_text(array(
170
 
@@ -205,10 +201,10 @@ class ACF_Assets {
205
  'Value is less than' => __('Value is less than', 'acf'),
206
  'Selection is greater than' => __('Selection is greater than', 'acf'),
207
  'Selection is less than' => __('Selection is less than', 'acf'),
 
 
 
208
  ));
209
-
210
- // action
211
- do_action('acf/enqueue_scripts');
212
  }
213
 
214
 
@@ -226,10 +222,15 @@ class ACF_Assets {
226
 
227
  function admin_enqueue_scripts() {
228
 
 
 
 
 
229
  // vars
230
  $text = array();
231
 
232
  // actions
 
233
  do_action('acf/admin_enqueue_scripts');
234
  do_action('acf/input/admin_enqueue_scripts');
235
 
161
  add_action($actions['admin_footer'], 'acf_enqueue_uploader', 5);
162
  }
163
 
 
 
 
 
164
  // localize text
165
  acf_localize_text(array(
166
 
201
  'Value is less than' => __('Value is less than', 'acf'),
202
  'Selection is greater than' => __('Selection is greater than', 'acf'),
203
  'Selection is less than' => __('Selection is less than', 'acf'),
204
+
205
+ // misc
206
+ 'Edit field group' => __('Edit field group', 'acf'),
207
  ));
 
 
 
208
  }
209
 
210
 
222
 
223
  function admin_enqueue_scripts() {
224
 
225
+ // enqueue
226
+ wp_enqueue_script('acf-input');
227
+ wp_enqueue_style('acf-input');
228
+
229
  // vars
230
  $text = array();
231
 
232
  // actions
233
+ do_action('acf/enqueue_scripts');
234
  do_action('acf/admin_enqueue_scripts');
235
  do_action('acf/input/admin_enqueue_scripts');
236
 
includes/fields/class-acf-field-google-map.php CHANGED
@@ -72,7 +72,8 @@ class acf_field_google_map extends acf_field {
72
  'client' => acf_get_setting('google_api_client'),
73
  'libraries' => 'places',
74
  'ver' => 3,
75
- 'callback' => ''
 
76
  );
77
 
78
 
72
  'client' => acf_get_setting('google_api_client'),
73
  'libraries' => 'places',
74
  'ver' => 3,
75
+ 'callback' => '',
76
+ 'language' => acf_get_locale()
77
  );
78
 
79
 
includes/forms/form-post.php CHANGED
@@ -1,527 +1,359 @@
1
  <?php
2
 
3
- /*
4
- * ACF Post Form Class
5
- *
6
- * All the logic for adding fields to posts
7
- *
8
- * @class acf_form_post
9
- * @package ACF
10
- * @subpackage Forms
11
- */
12
 
13
  if( ! class_exists('ACF_Form_Post') ) :
14
 
15
  class ACF_Form_Post {
16
 
17
- var $post_id = 0,
18
- $typenow = '',
19
- $style = '';
20
 
 
 
21
 
22
- /*
23
  * __construct
24
  *
25
- * This function will setup the class functionality
26
  *
27
- * @type function
28
  * @date 5/03/2014
29
  * @since 5.0.0
30
  *
31
- * @param n/a
32
- * @return n/a
33
  */
34
-
35
  function __construct() {
36
-
37
- // actions
38
- add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));
39
 
 
 
 
40
 
41
  // save
42
  add_filter('wp_insert_post_empty_content', array($this, 'wp_insert_post_empty_content'), 10, 2);
43
  add_action('save_post', array($this, 'save_post'), 10, 2);
44
-
45
  }
46
 
47
 
48
- /*
49
- * validate_page
50
  *
51
- * This function will check if the current page is for a post/page edit form
52
  *
53
- * @type function
54
- * @date 23/06/12
55
- * @since 3.1.8
56
  *
57
- * @param n/a
58
- * @return (boolean)
59
  */
60
-
61
- function validate_page() {
62
-
63
- // global
64
- global $post, $pagenow, $typenow;
65
-
66
-
67
- // vars
68
- $return = false;
69
-
70
-
71
- // validate page
72
- if( in_array($pagenow, array('post.php', 'post-new.php')) ) {
73
-
74
- $return = true;
75
-
76
- }
77
-
78
-
79
- // update vars
80
- if( !empty($post) ) {
81
-
82
- $this->post_id = (int) $post->ID;
83
- $this->typenow = $typenow;
84
-
85
- }
86
-
87
-
88
- // validate post type
89
- if( in_array($typenow, array('acf-field-group', 'attachment')) ) {
90
-
91
- return false;
92
-
93
- }
94
 
 
 
95
 
96
- // validate page (Shopp)
97
- if( $pagenow == "admin.php" && isset( $_GET['page'] ) && $_GET['page'] == "shopp-products" && isset( $_GET['id'] ) ) {
98
-
99
- $return = true;
100
-
101
- $this->post_id = absint( $_GET['id'] );
102
- $this->typenow = 'shopp_product';
103
-
104
  }
105
-
106
-
107
- // return
108
- return $return;
109
- }
110
-
111
-
112
- /*
113
- * admin_enqueue_scripts
114
- *
115
- * This action is run after post query but before any admin script / head actions.
116
- * It is a good place to register all actions.
117
- *
118
- * @type action (admin_enqueue_scripts)
119
- * @date 26/01/13
120
- * @since 3.6.0
121
- *
122
- * @param n/a
123
- * @return n/a
124
- */
125
-
126
- function admin_enqueue_scripts() {
127
 
128
- // validate page
129
- if( !$this->validate_page() ) return;
130
-
131
-
132
- // load acf scripts
133
  acf_enqueue_scripts(array(
134
  'uploader' => true,
135
  ));
136
 
137
-
138
  // actions
139
- add_action('acf/input/admin_head', array($this,'admin_head'));
140
- add_action('acf/input/admin_footer', array($this,'admin_footer'));
 
141
  }
142
 
143
-
144
- /*
145
- * admin_head
146
  *
147
- * This action will find and add field groups to the current edit page
148
  *
149
- * @type action (admin_head)
150
- * @date 23/06/12
151
- * @since 3.1.8
152
  *
153
- * @param n/a
154
- * @return n/a
 
155
  */
156
-
157
- function admin_head() {
158
 
159
  // vars
160
- $style_found = false;
161
-
162
 
163
- // get field groups
164
  $field_groups = acf_get_field_groups();
165
 
166
-
167
- // add meta boxes
168
- if( !empty($field_groups) ) {
169
-
170
- foreach( $field_groups as $i => $field_group ) {
171
-
172
- // vars
173
- $id = "acf-{$field_group['key']}";
174
- $title = $field_group['title'];
175
- $context = $field_group['position'];
176
- $priority = 'high';
177
- $args = array(
178
- 'field_group' => $field_group,
179
- 'visibility' => false
180
- );
181
-
182
-
183
- // tweaks to vars
184
- if( $context == 'side' ) {
185
-
186
- $priority = 'core';
187
-
188
- }
189
-
190
-
191
- // filter for 3rd party customization
192
- $priority = apply_filters('acf/input/meta_box_priority', $priority, $field_group);
193
-
194
-
195
- // visibility
196
- $args['visibility'] = acf_get_field_group_visibility( $field_group, array(
197
- 'post_id' => $this->post_id,
198
- 'post_type' => $this->typenow
199
- ));
200
-
201
-
202
- // add meta box
203
- add_meta_box( $id, $title, array($this, 'render_meta_box'), $this->typenow, $context, $priority, $args );
204
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
205
 
206
- // update style
207
- if( !$style_found && $args['visibility'] ) {
208
-
209
- $style_found = true;
210
-
211
  $this->style = acf_get_field_group_style( $field_group );
212
-
213
  }
214
-
215
  }
216
-
217
- }
218
-
219
-
220
- // Allow 'acf_after_title' metabox position
221
- add_action('edit_form_after_title', array($this, 'edit_form_after_title'));
222
-
223
 
224
  // remove postcustom metabox (removes expensive SQL query)
225
  if( acf_get_setting('remove_wp_meta_box') ) {
226
-
227
  remove_meta_box( 'postcustom', false, 'normal' );
228
-
229
  }
230
-
231
-
232
- // remove ACF values from meta postbox ()
233
- add_filter('is_protected_meta', array($this, 'is_protected_meta'), 10, 3);
234
-
235
  }
236
 
237
-
238
- /*
239
  * edit_form_after_title
240
  *
241
- * This action will allow ACF to render metaboxes after the title
242
  *
243
- * @type action
244
- * @date 17/08/13
245
  *
246
- * @param n/a
247
- * @return n/a
248
  */
249
-
250
  function edit_form_after_title() {
251
 
252
  // globals
253
  global $post, $wp_meta_boxes;
254
 
255
-
256
  // render post data
257
  acf_form_data(array(
258
  'screen' => 'post',
259
- 'post_id' => $this->post_id,
260
- 'ajax' => 1
261
  ));
262
 
263
-
264
- // render
265
- do_meta_boxes( get_current_screen(), 'acf_after_title', $post);
266
-
267
-
268
- // clean up
269
  unset( $wp_meta_boxes['post']['acf_after_title'] );
270
-
 
 
271
  }
272
 
273
-
274
- /*
275
- * render_meta_box
276
  *
277
- * description
278
  *
279
- * @type function
280
- * @date 20/10/13
281
- * @since 5.0.0
282
  *
283
- * @param $post_id (int)
284
- * @return $post_id (int)
 
 
285
  */
286
-
287
- function render_meta_box( $post, $args ) {
288
-
289
- // extract args
290
- extract( $args ); // all variables from the add_meta_box function
291
- extract( $args ); // all variables from the args argument
292
-
293
-
294
- // vars
295
- $o = array(
296
- 'id' => $id,
297
- 'key' => $field_group['key'],
298
- 'style' => $field_group['style'],
299
- 'label' => $field_group['label_placement'],
300
- 'editLink' => '',
301
- 'editTitle' => __('Edit field group', 'acf'),
302
- 'visibility' => $visibility
303
- );
304
-
305
-
306
- // edit_url
307
- if( $field_group['ID'] && acf_current_user_can_admin() ) {
308
-
309
- $o['editLink'] = admin_url('post.php?post=' . $field_group['ID'] . '&action=edit');
310
-
311
- }
312
-
313
-
314
- // load and render fields
315
- if( $visibility ) {
316
-
317
- // load fields
318
- $fields = acf_get_fields( $field_group );
319
-
320
-
321
- // render
322
- acf_render_fields( $fields, $this->post_id, 'div', $field_group['instruction_placement'] );
323
-
324
- // render replace-me div
325
- } else {
326
-
327
- echo '<div class="acf-replace-with-fields"><div class="acf-loading"></div></div>';
328
 
 
 
 
 
 
329
  }
330
-
331
- ?>
332
- <script type="text/javascript">
333
- if( typeof acf !== 'undefined' ) {
334
-
335
- acf.newPostbox(<?php echo json_encode($o); ?>);
336
-
337
- }
338
- </script>
339
- <?php
340
 
 
 
341
  }
342
 
343
-
344
- /*
345
- * admin_footer
346
  *
347
- * description
348
  *
349
- * @type function
350
- * @date 21/10/13
351
- * @since 5.0.0
352
  *
353
- * @param $post_id (int)
354
- * @return $post_id (int)
 
355
  */
356
-
357
- function admin_footer(){
358
 
359
- // get style of first field group
360
- echo '<style type="text/css" id="acf-style">' . $this->style . '</style>';
 
 
361
 
362
- }
 
 
 
 
363
 
 
 
 
 
 
 
 
 
 
364
 
365
- /*
366
  * wp_insert_post_empty_content
367
  *
368
- * This function will allow WP to insert a new post without title / content if ACF data exists
369
  *
370
- * @type function
371
  * @date 16/07/2014
372
  * @since 5.0.1
373
  *
374
- * @param $maybe_empty (bool) whether the post should be considered "empty"
375
- * @param $postarr (array) Array of post data
376
- * @return $maybe_empty
377
  */
378
-
379
  function wp_insert_post_empty_content( $maybe_empty, $postarr ) {
380
 
 
381
  if( $maybe_empty && acf_maybe_get_POST('_acf_changed') ) {
382
-
383
- $maybe_empty = false;
384
-
385
  }
386
 
387
-
388
  // return
389
  return $maybe_empty;
390
  }
391
 
392
-
393
  /*
394
  * allow_save_post
395
  *
396
- * This function will return true if the post is allowed to be saved
 
397
  *
398
  * @type function
399
  * @date 26/06/2016
400
  * @since 5.3.8
401
  *
402
- * @param $post_id (int)
403
- * @return $post_id (int)
404
  */
405
-
406
  function allow_save_post( $post ) {
407
 
408
  // vars
409
  $allow = true;
410
 
 
 
 
 
 
411
 
412
- // disallow if is post type
413
- $post_types = array( 'auto-draft', 'revision', 'acf-field', 'acf-field-group' );
414
- if( in_array($post->post_type, $post_types) ) $allow = false;
415
-
416
-
417
- // disallow if not the form post
418
  $form_post_id = (int) acf_maybe_get_POST('post_ID');
419
- if( $form_post_id && $form_post_id !== $post->ID ) $allow = false;
420
-
 
421
 
422
  // revision (preview)
423
  if( $post->post_type == 'revision' ) {
424
 
425
- // allow if doing preview
426
- if( acf_maybe_get_POST('wp-preview') == 'dopreview' ) $allow = true;
427
-
428
-
429
- // disallow if not a revision of the form post
430
- if( $form_post_id && $form_post_id !== $post->post_parent ) $allow = false;
431
-
432
  }
433
 
434
-
435
  // return
436
  return $allow;
437
-
438
  }
439
 
440
-
441
  /*
442
  * save_post
443
  *
444
- * This function will validate and save the $_POST data
445
  *
446
  * @type function
447
  * @date 23/06/12
448
  * @since 1.0.0
449
  *
450
- * @param $post_id (int)
451
- * @return $post_id (int)
 
452
  */
453
 
454
  function save_post( $post_id, $post ) {
455
 
456
  // bail ealry if no allowed to save this post type
457
- if( !$this->allow_save_post($post) ) return $post_id;
458
-
 
459
 
460
  // verify nonce
461
- if( !acf_verify_nonce('post') ) return $post_id;
462
-
 
463
 
464
  // validate for published post (allow draft to save without validation)
465
  if( $post->post_status == 'publish' ) {
466
 
467
  // show errors
468
  acf_validate_save_post( true );
469
-
470
  }
471
 
472
-
473
  // save
474
  acf_save_post( $post_id );
475
 
476
-
477
  // save revision
478
  if( post_type_supports($post->post_type, 'revisions') ) {
479
-
480
  acf_save_post_revision( $post_id );
481
-
482
  }
483
-
484
 
485
  // return
486
  return $post_id;
487
-
488
- }
489
-
490
-
491
- /*
492
- * is_protected_meta
493
- *
494
- * This function will remove any ACF meta from showing in the meta postbox
495
- *
496
- * @type function
497
- * @date 12/04/2014
498
- * @since 5.0.0
499
- *
500
- * @param $post_id (int)
501
- * @return $post_id (int)
502
- */
503
-
504
- function is_protected_meta( $protected, $meta_key, $meta_type ) {
505
-
506
- // if acf_get_reference returns a valid key, this is an acf value, so protect it!
507
- if( !$protected ) {
508
-
509
- $reference = acf_get_reference( $meta_key, $this->post_id );
510
-
511
- if( acf_is_field_key($reference) ) {
512
-
513
- $protected = true;
514
-
515
- }
516
-
517
- }
518
-
519
-
520
- // return
521
- return $protected;
522
-
523
  }
524
-
525
  }
526
 
527
  acf_new_instance('ACF_Form_Post');
1
  <?php
2
 
3
+ if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
 
 
 
 
 
 
 
 
4
 
5
  if( ! class_exists('ACF_Form_Post') ) :
6
 
7
  class ACF_Form_Post {
8
 
9
+ /** @var string The first field groups style CSS. */
10
+ var $style = '';
 
11
 
12
+ /** @var array An arry of postbox data. */
13
+ var $postboxes = array();
14
 
15
+ /**
16
  * __construct
17
  *
18
+ * Sets up the class functionality.
19
  *
 
20
  * @date 5/03/2014
21
  * @since 5.0.0
22
  *
23
+ * @param void
24
+ * @return void
25
  */
 
26
  function __construct() {
 
 
 
27
 
28
+ // initialize on post edit screens
29
+ add_action('load-post.php', array($this, 'initialize'));
30
+ add_action('load-post-new.php', array($this, 'initialize'));
31
 
32
  // save
33
  add_filter('wp_insert_post_empty_content', array($this, 'wp_insert_post_empty_content'), 10, 2);
34
  add_action('save_post', array($this, 'save_post'), 10, 2);
 
35
  }
36
 
37
 
38
+ /**
39
+ * initialize
40
  *
41
+ * Sets up Form functionality.
42
  *
43
+ * @date 19/9/18
44
+ * @since 5.7.6
 
45
  *
46
+ * @param void
47
+ * @return void
48
  */
49
+ function initialize() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
 
51
+ // globals
52
+ global $typenow;
53
 
54
+ // restrict specific post types
55
+ $restricted = array('acf-field-group', 'attachment');
56
+ if( in_array($typenow, $restricted) ) {
57
+ return;
 
 
 
 
58
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
+ // enqueue scripts
 
 
 
 
61
  acf_enqueue_scripts(array(
62
  'uploader' => true,
63
  ));
64
 
 
65
  // actions
66
+ add_action('add_meta_boxes', array($this, 'add_meta_boxes'), 10, 2);
67
+ add_action('edit_form_after_title', array($this, 'edit_form_after_title'));
68
+ add_filter('hidden_meta_boxes', array($this, 'hidden_meta_boxes'), 10, 3);
69
  }
70
 
71
+ /**
72
+ * add_meta_boxes
 
73
  *
74
+ * Adds ACF metaboxes for the given $post_type and $post.
75
  *
76
+ * @date 19/9/18
77
+ * @since 5.7.6
 
78
  *
79
+ * @param string $post_type The post type.
80
+ * @param WP_Post $post The post being edited.
81
+ * @return void
82
  */
83
+ function add_meta_boxes( $post_type, $post ) {
 
84
 
85
  // vars
86
+ $postboxes = array();
87
+ $count = 0;
88
 
89
+ // get all field groups
90
  $field_groups = acf_get_field_groups();
91
 
92
+ // loop
93
+ if( $field_groups ) {
94
+ foreach( $field_groups as $field_group ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
 
96
+ // vars
97
+ $id = "acf-{$field_group['key']}"; // acf-group_123
98
+ $title = $field_group['title']; // Group 1
99
+ $context = $field_group['position']; // normal, side, acf_after_title
100
+ $priority = 'high'; // high, core, default, low
101
+
102
+ // change priority for sidebar metaboxes
103
+ if( $context == 'side' ) {
104
+ $priority = 'core';
105
+ }
106
+
107
+ /**
108
+ * Filters the metabox priority.
109
+ *
110
+ * @date 23/06/12
111
+ * @since 3.1.8
112
+ *
113
+ * @param string $priority The metabox priority (high, core, default, low).
114
+ * @param array $field_group The field group array.
115
+ */
116
+ $priority = apply_filters('acf/input/meta_box_priority', $priority, $field_group);
117
+
118
+ // set the visibility for this field group
119
+ $visible = acf_get_field_group_visibility($field_group, array(
120
+ 'post_id' => $post->ID,
121
+ 'post_type' => $post_type
122
+ ));
123
+
124
+ // add meta box
125
+ add_meta_box( $id, $title, array($this, 'render_meta_box'), $post_type, $context, $priority, array('field_group' => $field_group) );
126
+
127
+ // append to $postboxes
128
+ $this->postboxes[ $id ] = array(
129
+ 'id' => $id,
130
+ 'key' => $field_group['key'],
131
+ 'style' => $field_group['style'],
132
+ 'label' => $field_group['label_placement'],
133
+ 'visible' => $visible,
134
+ 'edit' => acf_get_field_group_edit_link( $field_group['ID'] )
135
+ );
136
+
137
+ // increase count for visible
138
+ if( $visible ) {
139
+ $count++;
140
 
141
+ // find first field group's style
142
+ if( $count == 1 ) {
 
 
 
143
  $this->style = acf_get_field_group_style( $field_group );
 
144
  }
 
145
  }
146
+ }}
 
 
 
 
 
 
147
 
148
  // remove postcustom metabox (removes expensive SQL query)
149
  if( acf_get_setting('remove_wp_meta_box') ) {
 
150
  remove_meta_box( 'postcustom', false, 'normal' );
 
151
  }
 
 
 
 
 
152
  }
153
 
154
+ /**
 
155
  * edit_form_after_title
156
  *
157
+ * Called after the title adn before the content editor.
158
  *
159
+ * @date 19/9/18
160
+ * @since 5.7.6
161
  *
162
+ * @param void
163
+ * @return void
164
  */
 
165
  function edit_form_after_title() {
166
 
167
  // globals
168
  global $post, $wp_meta_boxes;
169
 
 
170
  // render post data
171
  acf_form_data(array(
172
  'screen' => 'post',
173
+ 'post_id' => $post->ID
 
174
  ));
175
 
176
+ // render 'acf_after_title' metaboxes
177
+ do_meta_boxes( get_current_screen(), 'acf_after_title', $post );
178
+
179
+ // clean up $wp_meta_boxes
 
 
180
  unset( $wp_meta_boxes['post']['acf_after_title'] );
181
+
182
+ // render dynamic field group style
183
+ echo '<style type="text/css" id="acf-style">' . $this->style . '</style>';
184
  }
185
 
186
+ /**
187
+ * hidden_meta_boxes
 
188
  *
189
+ * Appends the id of all metaboxes that are not visible for WP to hide.
190
  *
191
+ * @date 21/9/18
192
+ * @since 5.7.6
 
193
  *
194
+ * @param array $hidden An array of hidden meta boxes.
195
+ * @param WP_Screen $screen WP_Screen object of the current screen.
196
+ * @param bool $use_defaults Whether to show the default meta boxes.
197
+ * @return array
198
  */
199
+ function hidden_meta_boxes( $hidden, $screen, $use_defaults ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
 
201
+ // loop over visiblity array
202
+ foreach( $this->postboxes as $id => $postbox ) {
203
+ if( !$postbox['visible'] ) {
204
+ $hidden[] = $id;
205
+ }
206
  }
 
 
 
 
 
 
 
 
 
 
207
 
208
+ // return
209
+ return $hidden;
210
  }
211
 
212
+ /**
213
+ * render_meta_box
 
214
  *
215
+ * Renders the ACF metabox HTML.
216
  *
217
+ * @date 19/9/18
218
+ * @since 5.7.6
 
219
  *
220
+ * @param WP_Post $post The post being edited.
221
+ * @param array metabox The add_meta_box() args.
222
+ * @return void
223
  */
224
+ function render_meta_box( $post, $metabox ) {
 
225
 
226
+ // vars
227
+ $id = $metabox['id'];
228
+ $field_group = $metabox['args']['field_group'];
229
+ $postbox = $this->postboxes[ $id ];
230
 
231
+ // render fields if visible
232
+ if( $postbox['visible'] ) {
233
+ $fields = acf_get_fields( $field_group );
234
+ acf_render_fields( $fields, $post->ID, 'div', $field_group['instruction_placement'] );
235
+ }
236
 
237
+ // inline javascript
238
+ ?>
239
+ <script type="text/javascript">
240
+ if( typeof acf !== 'undefined' ) {
241
+ acf.newPostbox(<?php echo wp_json_encode($postbox); ?>);
242
+ }
243
+ </script>
244
+ <?php
245
+ }
246
 
247
+ /**
248
  * wp_insert_post_empty_content
249
  *
250
+ * Allows WP to insert a new post without title or post_content if ACF data exists.
251
  *
 
252
  * @date 16/07/2014
253
  * @since 5.0.1
254
  *
255
+ * @param bool $maybe_empty Whether the post should be considered "empty".
256
+ * @param array $postarr Array of post data.
257
+ * @return bool
258
  */
 
259
  function wp_insert_post_empty_content( $maybe_empty, $postarr ) {
260
 
261
+ // return false and allow insert if '_acf_changed' exists
262
  if( $maybe_empty && acf_maybe_get_POST('_acf_changed') ) {
263
+ return false;
 
 
264
  }
265
 
 
266
  // return
267
  return $maybe_empty;
268
  }
269
 
 
270
  /*
271
  * allow_save_post
272
  *
273
+ * Checks if the $post is allowed to be saved.
274
+ * Used to avoid triggering "acf/save_post" on dynamically created posts during save.
275
  *
276
  * @type function
277
  * @date 26/06/2016
278
  * @since 5.3.8
279
  *
280
+ * @param WP_Post $post The post to check.
281
+ * @return bool
282
  */
 
283
  function allow_save_post( $post ) {
284
 
285
  // vars
286
  $allow = true;
287
 
288
+ // restrict post types
289
+ $restrict = array( 'auto-draft', 'revision', 'acf-field', 'acf-field-group' );
290
+ if( in_array($post->post_type, $restrict) ) {
291
+ $allow = false;
292
+ }
293
 
294
+ // disallow if the $_POST ID value does not match the $post->ID
 
 
 
 
 
295
  $form_post_id = (int) acf_maybe_get_POST('post_ID');
296
+ if( $form_post_id && $form_post_id !== $post->ID ) {
297
+ $allow = false;
298
+ }
299
 
300
  // revision (preview)
301
  if( $post->post_type == 'revision' ) {
302
 
303
+ // allow if doing preview and this $post is a child of the $_POST ID
304
+ if( acf_maybe_get_POST('wp-preview') == 'dopreview' && $form_post_id === $post->post_parent) {
305
+ $allow = true;
306
+ }
 
 
 
307
  }
308
 
 
309
  // return
310
  return $allow;
 
311
  }
312
 
 
313
  /*
314
  * save_post
315
  *
316
+ * Triggers during the 'save_post' action to save the $_POST data.
317
  *
318
  * @type function
319
  * @date 23/06/12
320
  * @since 1.0.0
321
  *
322
+ * @param int $post_id The post ID
323
+ * @param WP_POST $post the post object.
324
+ * @return int
325
  */
326
 
327
  function save_post( $post_id, $post ) {
328
 
329
  // bail ealry if no allowed to save this post type
330
+ if( !$this->allow_save_post($post) ) {
331
+ return $post_id;
332
+ }
333
 
334
  // verify nonce
335
+ if( !acf_verify_nonce('post') ) {
336
+ return $post_id;
337
+ }
338
 
339
  // validate for published post (allow draft to save without validation)
340
  if( $post->post_status == 'publish' ) {
341
 
342
  // show errors
343
  acf_validate_save_post( true );
 
344
  }
345
 
 
346
  // save
347
  acf_save_post( $post_id );
348
 
 
349
  // save revision
350
  if( post_type_supports($post->post_type, 'revisions') ) {
 
351
  acf_save_post_revision( $post_id );
 
352
  }
 
353
 
354
  // return
355
  return $post_id;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
356
  }
 
357
  }
358
 
359
  acf_new_instance('ACF_Form_Post');
lang/acf-pt_PT.mo CHANGED
Binary file
lang/acf-pt_PT.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Advanced Custom Fields PRO\n"
6
  "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
7
- "POT-Creation-Date: 2018-07-12 13:44+1000\n"
8
- "PO-Revision-Date: 2018-07-12 10:57+0100\n"
9
  "Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n"
10
  "Language-Team: Pedro Mendonça <ped.gaspar@gmail.com>\n"
11
  "Language: pt_PT\n"
@@ -13,7 +13,7 @@ msgstr ""
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
- "X-Generator: Poedit 2.0.8\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
19
  "X-Textdomain-Support: yes\n"
@@ -26,92 +26,91 @@ msgstr ""
26
  msgid "Advanced Custom Fields"
27
  msgstr "Advanced Custom Fields"
28
 
29
- #: acf.php:387 includes/admin/admin.php:117
30
  msgid "Field Groups"
31
  msgstr "Grupos de campos"
32
 
33
- #: acf.php:388
34
  msgid "Field Group"
35
  msgstr "Grupo de campos"
36
 
37
- #: acf.php:389 acf.php:421 includes/admin/admin.php:118
38
  #: pro/fields/class-acf-field-flexible-content.php:572
39
  msgid "Add New"
40
  msgstr "Adicionar novo"
41
 
42
- #: acf.php:390
43
  msgid "Add New Field Group"
44
  msgstr "Adicionar novo grupo de campos"
45
 
46
- #: acf.php:391
47
  msgid "Edit Field Group"
48
  msgstr "Editar grupo de campos"
49
 
50
- #: acf.php:392
51
  msgid "New Field Group"
52
  msgstr "Novo grupo de campos"
53
 
54
- #: acf.php:393
55
  msgid "View Field Group"
56
  msgstr "Ver grupo de campos"
57
 
58
- #: acf.php:394
59
  msgid "Search Field Groups"
60
  msgstr "Pesquisar grupos de campos"
61
 
62
- #: acf.php:395
63
  msgid "No Field Groups found"
64
  msgstr "Nenhum grupo de campos encontrado"
65
 
66
- #: acf.php:396
67
  msgid "No Field Groups found in Trash"
68
  msgstr "Nenhum grupo de campos encontrado no lixo"
69
 
70
- #: acf.php:419 includes/admin/admin-field-group.php:202
71
- #: includes/admin/admin-field-groups.php:510
72
  #: pro/fields/class-acf-field-clone.php:811
73
  msgid "Fields"
74
  msgstr "Campos"
75
 
76
- #: acf.php:420
77
  msgid "Field"
78
  msgstr "Campo"
79
 
80
- #: acf.php:422
81
  msgid "Add New Field"
82
  msgstr "Adicionar novo campo"
83
 
84
- #: acf.php:423
85
  msgid "Edit Field"
86
  msgstr "Editar campo"
87
 
88
- #: acf.php:424 includes/admin/views/field-group-fields.php:41
89
- #: includes/admin/views/settings-info.php:105
90
  msgid "New Field"
91
  msgstr "Novo campo"
92
 
93
- #: acf.php:425
94
  msgid "View Field"
95
  msgstr "Ver campo"
96
 
97
- #: acf.php:426
98
  msgid "Search Fields"
99
  msgstr "Pesquisar campos"
100
 
101
- #: acf.php:427
102
  msgid "No Fields found"
103
  msgstr "Nenhum campo encontrado"
104
 
105
- #: acf.php:428
106
  msgid "No Fields found in Trash"
107
  msgstr "Nenhum campo encontrado no lixo"
108
 
109
- #: acf.php:467 includes/admin/admin-field-group.php:384
110
- #: includes/admin/admin-field-groups.php:567
111
  msgid "Inactive"
112
  msgstr "Inactivo"
113
 
114
- #: acf.php:472
115
  #, php-format
116
  msgid "Inactive <span class=\"count\">(%s)</span>"
117
  msgid_plural "Inactive <span class=\"count\">(%s)</span>"
@@ -176,7 +175,7 @@ msgstr "Mover campo personalizado"
176
  msgid "Checked"
177
  msgstr "Seleccionado"
178
 
179
- #: includes/admin/admin-field-group.php:160 includes/api/api-field.php:289
180
  msgid "(no label)"
181
  msgstr "(sem legenda)"
182
 
@@ -194,7 +193,7 @@ msgstr "cópia"
194
  #: includes/admin/views/field-group-field-conditional-logic.php:151
195
  #: includes/admin/views/field-group-locations.php:29
196
  #: includes/admin/views/html-location-group.php:3
197
- #: includes/api/api-helpers.php:4165
198
  msgid "or"
199
  msgstr "ou"
200
 
@@ -220,157 +219,158 @@ msgstr "Chaves dos campos"
220
  msgid "Active"
221
  msgstr "Activo"
222
 
223
- #: includes/admin/admin-field-group.php:760
224
  msgid "Move Complete."
225
  msgstr "Movido com sucesso."
226
 
227
- #: includes/admin/admin-field-group.php:761
228
  #, php-format
229
  msgid "The %s field can now be found in the %s field group"
230
  msgstr "O campo %s pode agora ser encontrado no grupo de campos %s"
231
 
232
- #: includes/admin/admin-field-group.php:762
233
  msgid "Close Window"
234
  msgstr "Fechar janela"
235
 
236
- #: includes/admin/admin-field-group.php:803
237
  msgid "Please select the destination for this field"
238
  msgstr "Por favor seleccione o destinho para este campo"
239
 
240
- #: includes/admin/admin-field-group.php:810
241
  msgid "Move Field"
242
  msgstr "Mover campo"
243
 
244
- #: includes/admin/admin-field-groups.php:74
245
  #, php-format
246
  msgid "Active <span class=\"count\">(%s)</span>"
247
  msgid_plural "Active <span class=\"count\">(%s)</span>"
248
  msgstr[0] "Activo <span class=\"count\">(%s)</span>"
249
  msgstr[1] "Activos <span class=\"count\">(%s)</span>"
250
 
251
- #: includes/admin/admin-field-groups.php:142
252
  #, php-format
253
  msgid "Field group duplicated. %s"
254
  msgstr "Grupo de campos duplicado. %s"
255
 
256
- #: includes/admin/admin-field-groups.php:146
257
  #, php-format
258
  msgid "%s field group duplicated."
259
  msgid_plural "%s field groups duplicated."
260
  msgstr[0] "%s grupo de campos duplicado."
261
  msgstr[1] "%s grupos de campos duplicados."
262
 
263
- #: includes/admin/admin-field-groups.php:227
264
  #, php-format
265
  msgid "Field group synchronised. %s"
266
  msgstr "Grupo de campos sincronizado. %s"
267
 
268
- #: includes/admin/admin-field-groups.php:231
269
  #, php-format
270
  msgid "%s field group synchronised."
271
  msgid_plural "%s field groups synchronised."
272
  msgstr[0] "%s grupo de campos sincronizado."
273
  msgstr[1] "%s grupos de campos sincronizados."
274
 
275
- #: includes/admin/admin-field-groups.php:394
276
- #: includes/admin/admin-field-groups.php:557
277
  msgid "Sync available"
278
  msgstr "Sincronização disponível"
279
 
280
- #: includes/admin/admin-field-groups.php:507 includes/forms/form-front.php:38
281
- #: pro/fields/class-acf-field-gallery.php:370
282
  msgid "Title"
283
  msgstr "Título"
284
 
285
- #: includes/admin/admin-field-groups.php:508
286
  #: includes/admin/views/field-group-options.php:96
287
- #: includes/admin/views/install-network.php:21
288
- #: includes/admin/views/install-network.php:29
289
- #: pro/fields/class-acf-field-gallery.php:397
290
  msgid "Description"
291
  msgstr "Descrição"
292
 
293
- #: includes/admin/admin-field-groups.php:509
294
  msgid "Status"
295
  msgstr "Estado"
296
 
297
  #. Description of the plugin/theme
298
- #: includes/admin/admin-field-groups.php:607
299
  msgid "Customise WordPress with powerful, professional and intuitive fields."
300
  msgstr "Personalize o WordPress com campos intuitivos, poderosos e profissionais."
301
 
302
- #: includes/admin/admin-field-groups.php:609
303
  #: includes/admin/settings-info.php:76
304
  #: pro/admin/views/html-settings-updates.php:107
305
  msgid "Changelog"
306
  msgstr "Registo de alterações"
307
 
308
- #: includes/admin/admin-field-groups.php:614
309
  #, php-format
310
  msgid "See what's new in <a href=\"%s\">version %s</a>."
311
  msgstr "Veja o que há de novo na <a href=\"%s\">versão %s</a>."
312
 
313
- #: includes/admin/admin-field-groups.php:617
314
  msgid "Resources"
315
  msgstr "Recursos"
316
 
317
- #: includes/admin/admin-field-groups.php:619
318
  msgid "Website"
319
  msgstr "Site"
320
 
321
- #: includes/admin/admin-field-groups.php:620
322
  msgid "Documentation"
323
  msgstr "Documentação"
324
 
325
- #: includes/admin/admin-field-groups.php:621
326
  msgid "Support"
327
  msgstr "Suporte"
328
 
329
- #: includes/admin/admin-field-groups.php:623
 
330
  msgid "Pro"
331
  msgstr "Pro"
332
 
333
- #: includes/admin/admin-field-groups.php:628
334
  #, php-format
335
  msgid "Thank you for creating with <a href=\"%s\">ACF</a>."
336
  msgstr "Obrigado por criar com o <a href=\"%s\">ACF</a>."
337
 
338
- #: includes/admin/admin-field-groups.php:667
339
  msgid "Duplicate this item"
340
  msgstr "Duplicar este item"
341
 
342
- #: includes/admin/admin-field-groups.php:667
343
- #: includes/admin/admin-field-groups.php:683
344
  #: includes/admin/views/field-group-field.php:46
345
  #: pro/fields/class-acf-field-flexible-content.php:571
346
  msgid "Duplicate"
347
  msgstr "Duplicar"
348
 
349
- #: includes/admin/admin-field-groups.php:700
350
  #: includes/fields/class-acf-field-google-map.php:164
351
- #: includes/fields/class-acf-field-relationship.php:674
352
  msgid "Search"
353
  msgstr "Pesquisa"
354
 
355
- #: includes/admin/admin-field-groups.php:759
356
  #, php-format
357
  msgid "Select %s"
358
  msgstr "Seleccionar %s"
359
 
360
- #: includes/admin/admin-field-groups.php:767
361
  msgid "Synchronise field group"
362
  msgstr "Sincronizar grupo de campos"
363
 
364
- #: includes/admin/admin-field-groups.php:767
365
- #: includes/admin/admin-field-groups.php:797
366
  msgid "Sync"
367
  msgstr "Sincronizar"
368
 
369
- #: includes/admin/admin-field-groups.php:779
370
  msgid "Apply"
371
  msgstr "Aplicar"
372
 
373
- #: includes/admin/admin-field-groups.php:797
374
  msgid "Bulk Actions"
375
  msgstr "Acções por lotes"
376
 
@@ -379,27 +379,21 @@ msgstr "Acções por lotes"
379
  msgid "Tools"
380
  msgstr "Ferramentas"
381
 
382
- #: includes/admin/admin.php:113
383
- #: includes/admin/views/field-group-options.php:110
384
- msgid "Custom Fields"
385
- msgstr "Campos personalizados"
386
-
387
- #: includes/admin/install-network.php:88 includes/admin/install.php:70
388
- #: includes/admin/install.php:121
389
  msgid "Upgrade Database"
390
  msgstr "Actualizar base de dados"
391
 
392
- #: includes/admin/install-network.php:140
393
  msgid "Review sites & upgrade"
394
  msgstr "Rever sites e actualizar"
395
 
396
- #: includes/admin/install.php:187
397
- msgid "Error validating request"
398
- msgstr "Erro ao validar pedido."
399
-
400
- #: includes/admin/install.php:210 includes/admin/views/install.php:104
401
- msgid "No updates available."
402
- msgstr "Nenhuma actualização disponível."
403
 
404
  #: includes/admin/settings-addons.php:51
405
  #: includes/admin/views/settings-addons.php:3
@@ -515,7 +509,7 @@ msgid "Show this field if"
515
  msgstr "Mostrar este campo se"
516
 
517
  #: includes/admin/views/field-group-field-conditional-logic.php:138
518
- #: includes/admin/views/html-location-rule.php:80
519
  msgid "and"
520
  msgstr "e"
521
 
@@ -539,7 +533,7 @@ msgstr "Editar campo"
539
  #: includes/fields/class-acf-field-file.php:152
540
  #: includes/fields/class-acf-field-image.php:139
541
  #: includes/fields/class-acf-field-link.php:139
542
- #: pro/fields/class-acf-field-gallery.php:357
543
  msgid "Edit"
544
  msgstr "Editar"
545
 
@@ -624,13 +618,13 @@ msgstr "Ordem"
624
  #: includes/fields/class-acf-field-button-group.php:198
625
  #: includes/fields/class-acf-field-checkbox.php:420
626
  #: includes/fields/class-acf-field-radio.php:311
627
- #: includes/fields/class-acf-field-select.php:439
628
  #: pro/fields/class-acf-field-flexible-content.php:596
629
  msgid "Label"
630
  msgstr "Legenda"
631
 
632
  #: includes/admin/views/field-group-fields.php:6
633
- #: includes/fields/class-acf-field-taxonomy.php:960
634
  #: pro/fields/class-acf-field-flexible-content.php:610
635
  msgid "Name"
636
  msgstr "Nome"
@@ -766,7 +760,7 @@ msgid "Page Attributes"
766
  msgstr "Atributos da página"
767
 
768
  #: includes/admin/views/field-group-options.php:118
769
- #: includes/fields/class-acf-field-relationship.php:688
770
  msgid "Featured Image"
771
  msgstr "Imagem de destaque"
772
 
@@ -794,104 +788,117 @@ msgstr "<b>Seleccione</b> os itens a <b>esconder</b> do ecrã de edição."
794
  msgid "If multiple field groups appear on an edit screen, the first field group's options will be used (the one with the lowest order number)"
795
  msgstr "Se forem mostrados vários grupos de campos num ecrã de edição, serão utilizadas as opções do primeiro grupo de campos. (o que tiver menor número de ordem)"
796
 
797
- #: includes/admin/views/html-location-group.php:3
798
- msgid "Show this field group if"
799
- msgstr "Mostrar este grupo de campos se"
800
-
801
- #: includes/admin/views/install-network.php:4
802
- msgid "Upgrade Sites"
803
- msgstr "Actualizar sites"
804
-
805
- #: includes/admin/views/install-network.php:9
806
- #: includes/admin/views/install.php:3
807
- msgid "Advanced Custom Fields Database Upgrade"
808
- msgstr "Actualização da base de dados do Advanced Custom Fields"
809
-
810
- #: includes/admin/views/install-network.php:11
811
  #, php-format
812
  msgid "The following sites require a DB upgrade. Check the ones you want to update and then click %s."
813
  msgstr "Os sites seguintes necessitam de actualização da BD. Seleccione os que quer actualizar e clique em %s."
814
 
815
- #: includes/admin/views/install-network.php:20
816
- #: includes/admin/views/install-network.php:28
 
 
 
 
 
 
817
  msgid "Site"
818
  msgstr "Site"
819
 
820
- #: includes/admin/views/install-network.php:48
821
  #, php-format
822
  msgid "Site requires database upgrade from %s to %s"
823
  msgstr "O site necessita de actualizar a base de dados de %s para %s"
824
 
825
- #: includes/admin/views/install-network.php:50
826
  msgid "Site is up to date"
827
  msgstr "O site está actualizado"
828
 
829
- #: includes/admin/views/install-network.php:63
830
  #, php-format
831
  msgid "Database Upgrade complete. <a href=\"%s\">Return to network dashboard</a>"
832
  msgstr "Actualização da base de dados concluída. <a href=\"%s\">Voltar ao painel da rede</a>"
833
 
834
- #: includes/admin/views/install-network.php:102
835
- #: includes/admin/views/install-notice.php:42
 
 
 
 
836
  msgid "It is strongly recommended that you backup your database before proceeding. Are you sure you wish to run the updater now?"
837
  msgstr "É recomendável que faça uma cópia de segurança da sua base de dados antes de continuar. Tem a certeza que quer actualizar agora?"
838
 
839
- #: includes/admin/views/install-network.php:158
840
- msgid "Upgrade complete"
841
- msgstr "Actualização concluída"
842
-
843
- #: includes/admin/views/install-network.php:162
844
- #: includes/admin/views/install.php:9
845
  #, php-format
846
  msgid "Upgrading data to version %s"
847
  msgstr "A actualizar dados para a versão %s"
848
 
849
- #: includes/admin/views/install-notice.php:8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
850
  #: pro/fields/class-acf-field-repeater.php:25
851
  msgid "Repeater"
852
  msgstr "Repetidor"
853
 
854
- #: includes/admin/views/install-notice.php:9
855
  #: pro/fields/class-acf-field-flexible-content.php:25
856
  msgid "Flexible Content"
857
  msgstr "Conteúdo flexível"
858
 
859
- #: includes/admin/views/install-notice.php:10
860
  #: pro/fields/class-acf-field-gallery.php:25
861
  msgid "Gallery"
862
  msgstr "Galeria"
863
 
864
- #: includes/admin/views/install-notice.php:11
865
  #: pro/locations/class-acf-location-options-page.php:26
866
  msgid "Options Page"
867
  msgstr "Página de opções"
868
 
869
- #: includes/admin/views/install-notice.php:26
870
  msgid "Database Upgrade Required"
871
  msgstr "Actualização da base de dados necessária"
872
 
873
- #: includes/admin/views/install-notice.php:28
874
  #, php-format
875
  msgid "Thank you for updating to %s v%s!"
876
  msgstr "Obrigado por actualizar para o %s v%s!"
877
 
878
- #: includes/admin/views/install-notice.php:28
879
- msgid "Before you start using the new awesome features, please update your database to the newest version."
880
- msgstr "Antes de começar a utilizar as incríveis novas funcionalidades, por favor actualize a sua base de dados para a versão mais recente."
881
 
882
- #: includes/admin/views/install-notice.php:31
883
  #, php-format
884
- msgid "Please also ensure any premium add-ons (%s) have first been updated to the latest version."
885
- msgstr "Por favor, em primeiro lugar certifique-se de actualizar todos os add-ons premium (%s) para a última versão."
886
-
887
- #: includes/admin/views/install.php:7
888
- msgid "Reading upgrade tasks..."
889
- msgstr "A ler tarefas de actualização..."
890
-
891
- #: includes/admin/views/install.php:11
892
- #, php-format
893
- msgid "Database Upgrade complete. <a href=\"%s\">See what's new</a>"
894
- msgstr "Actualização da base de dados concluída. <a href=\"%s\">Ver o que há de novo</a>"
895
 
896
  #: includes/admin/views/settings-addons.php:17
897
  msgid "Download & Install"
@@ -910,385 +917,384 @@ msgstr "Bem-vindo ao Advanced Custom Fields"
910
  msgid "Thank you for updating! ACF %s is bigger and better than ever before. We hope you like it."
911
  msgstr "Obrigado por actualizar! O ACF %s está maior e melhor do que nunca. Esperamos que goste."
912
 
913
- #: includes/admin/views/settings-info.php:17
914
- msgid "A smoother custom field experience"
915
- msgstr "Uma experiência mais fácil com campos personalizados"
916
 
917
- #: includes/admin/views/settings-info.php:22
918
  msgid "Improved Usability"
919
  msgstr "Usabilidade melhorada"
920
 
921
- #: includes/admin/views/settings-info.php:23
922
  msgid "Including the popular Select2 library has improved both usability and speed across a number of field types including post object, page link, taxonomy and select."
923
  msgstr "A inclusão da popular biblioteca Select2 melhorou a usabilidade e a velocidade de tipos de campos como conteúdo, ligação de página, taxonomia e selecção."
924
 
925
- #: includes/admin/views/settings-info.php:27
926
  msgid "Improved Design"
927
  msgstr "Design melhorado"
928
 
929
- #: includes/admin/views/settings-info.php:28
930
  msgid "Many fields have undergone a visual refresh to make ACF look better than ever! Noticeable changes are seen on the gallery, relationship and oEmbed (new) fields!"
931
  msgstr "Muitos campos sofreram alterações visuais para que a aparência do ACF esteja melhor que nunca! Alterações notáveis nos campos de galeria, relação e oEmbed (novo)!"
932
 
933
- #: includes/admin/views/settings-info.php:32
934
  msgid "Improved Data"
935
  msgstr "Dados melhorados"
936
 
937
- #: includes/admin/views/settings-info.php:33
938
  msgid "Redesigning the data architecture has allowed sub fields to live independently from their parents. This allows you to drag and drop fields in and out of parent fields!"
939
  msgstr "A reformulação da arquitectura dos dados permite que os subcampos existam independentemente dos seus superiores. Isto permite-lhe arrastar e largar campos para dentro e para fora de campos superiores!"
940
 
941
- #: includes/admin/views/settings-info.php:39
942
  msgid "Goodbye Add-ons. Hello PRO"
943
  msgstr "Adeus add-ons. Olá PRO."
944
 
945
- #: includes/admin/views/settings-info.php:44
946
  msgid "Introducing ACF PRO"
947
  msgstr "Introdução ao ACF PRO"
948
 
949
- #: includes/admin/views/settings-info.php:45
950
  msgid "We're changing the way premium functionality is delivered in an exciting way!"
951
  msgstr "Estamos a alterar o modo como as funcionalidades premium são distribuídas!"
952
 
953
- #: includes/admin/views/settings-info.php:46
954
  #, php-format
955
  msgid "All 4 premium add-ons have been combined into a new <a href=\"%s\">Pro version of ACF</a>. With both personal and developer licenses available, premium functionality is more affordable and accessible than ever before!"
956
  msgstr "Todos os 4 add-ons premium foram combinados numa única <a href=\"%s\">versão Pro do ACF</a>. Com licenças pessoais e para programadores, as funcionalidades premium estão agora mais acessíveis que nunca!"
957
 
958
- #: includes/admin/views/settings-info.php:50
959
  msgid "Powerful Features"
960
  msgstr "Funcionalidades poderosas"
961
 
962
- #: includes/admin/views/settings-info.php:51
963
  msgid "ACF PRO contains powerful features such as repeatable data, flexible content layouts, a beautiful gallery field and the ability to create extra admin options pages!"
964
  msgstr "O ACF PRO tem funcionalidades poderosas, tais como dados repetíveis, layouts de conteúdo flexível, um campo de galeria e a possibilidade de criar páginas de opções de administração adicionais!"
965
 
966
- #: includes/admin/views/settings-info.php:52
967
  #, php-format
968
  msgid "Read more about <a href=\"%s\">ACF PRO features</a>."
969
  msgstr "Mais informações sobre as <a href=\"%s\">funcionalidades do ACF PRO</a>."
970
 
971
- #: includes/admin/views/settings-info.php:56
972
  msgid "Easy Upgrading"
973
  msgstr "Actualização fácil"
974
 
975
- #: includes/admin/views/settings-info.php:57
976
- #, php-format
977
- msgid "To help make upgrading easy, <a href=\"%s\">login to your store account</a> and claim a free copy of ACF PRO!"
978
- msgstr "Para facilitar a actualização, <a href=\"%s\">inicie sessão na sua conta da loja</a> e obtenha uma cópia gratuita do ACF PRO!"
979
 
980
- #: includes/admin/views/settings-info.php:58
981
  #, php-format
982
- msgid "We also wrote an <a href=\"%s\">upgrade guide</a> to answer any questions, but if you do have one, please contact our support team via the <a href=\"%s\">help desk</a>"
983
  msgstr "Escrevemos um <a href=\"%s\">guia de actualização</a> para responder a todas as dúvidas, se tiver alguma questão, por favor contacte a nossa equipa de suporte através da <a href=\"%s\">central de ajuda</a>."
984
 
985
- #: includes/admin/views/settings-info.php:66
986
- msgid "Under the Hood"
987
- msgstr "Nos bastidores"
988
 
989
- #: includes/admin/views/settings-info.php:71
990
- msgid "Smarter field settings"
991
- msgstr "Definições mais inteligentes dos campos"
992
 
993
- #: includes/admin/views/settings-info.php:72
994
- msgid "ACF now saves its field settings as individual post objects"
995
- msgstr "O ACF agora guarda as suas definições de campos como conteúdos individuais"
996
 
997
- #: includes/admin/views/settings-info.php:76
998
- msgid "More AJAX"
999
- msgstr "Mais AJAX"
1000
 
1001
- #: includes/admin/views/settings-info.php:77
1002
- msgid "More fields use AJAX powered search to speed up page loading"
1003
- msgstr "Mais campos utilizam pesquisa com AJAX para aumentar a velocidade de carregamento"
1004
 
1005
- #: includes/admin/views/settings-info.php:81
1006
- msgid "Local JSON"
1007
- msgstr "JSON local"
 
 
 
 
1008
 
1009
- #: includes/admin/views/settings-info.php:82
1010
- msgid "New auto export to JSON feature improves speed"
1011
- msgstr "Nova funcionalidade de exportação automática para JSON melhora a velocidade"
1012
 
1013
- #: includes/admin/views/settings-info.php:88
1014
- msgid "Better version control"
1015
- msgstr "Melhor controlo de versões"
1016
 
1017
  #: includes/admin/views/settings-info.php:89
1018
- msgid "New auto export to JSON feature allows field settings to be version controlled"
1019
- msgstr "Nova funcionalidade de exportação automática para JSON permite que as definições sejam controladas por versão"
1020
 
1021
- #: includes/admin/views/settings-info.php:93
1022
- msgid "Swapped XML for JSON"
1023
- msgstr "XML substituído por JSON"
1024
 
1025
  #: includes/admin/views/settings-info.php:94
1026
- msgid "Import / Export now uses JSON in favour of XML"
1027
- msgstr "Importar / Exportar agora utiliza JSON em vez de XML"
1028
 
1029
- #: includes/admin/views/settings-info.php:98
1030
- msgid "New Forms"
1031
- msgstr "Novos formulários"
1032
 
1033
  #: includes/admin/views/settings-info.php:99
1034
- msgid "Fields can now be mapped to comments, widgets and all user forms!"
1035
- msgstr "Os campos agora podem ser mapeados para comentários, widgets e formulários de utilizador!"
 
 
 
 
 
 
 
 
 
 
 
 
1036
 
1037
- #: includes/admin/views/settings-info.php:106
1038
- msgid "A new field for embedding content has been added"
1039
- msgstr "Foi adicionado um novo campo para incorporar conteúdos"
1040
 
1041
  #: includes/admin/views/settings-info.php:110
1042
- msgid "New Gallery"
1043
- msgstr "Nova galeria"
1044
 
1045
- #: includes/admin/views/settings-info.php:111
1046
- msgid "The gallery field has undergone a much needed facelift"
1047
- msgstr "O campo de galeria sofreu alterações de cosmética importantes."
1048
 
1049
  #: includes/admin/views/settings-info.php:115
 
 
 
 
1050
  msgid "New Settings"
1051
  msgstr "Novas definições"
1052
 
1053
- #: includes/admin/views/settings-info.php:116
1054
- msgid "Field group settings have been added for label placement and instruction placement"
1055
- msgstr "Foram adicionadas definições aos grupos de campos para a posição da legenda e instruções."
1056
 
1057
- #: includes/admin/views/settings-info.php:122
1058
  msgid "Better Front End Forms"
1059
  msgstr "Melhores formulários para o seu site"
1060
 
1061
- #: includes/admin/views/settings-info.php:123
1062
- msgid "acf_form() can now create a new post on submission"
1063
- msgstr "Com acf_form() agora pode criar um novo conteúdo ao submeter."
1064
 
1065
- #: includes/admin/views/settings-info.php:127
1066
  msgid "Better Validation"
1067
  msgstr "Melhor validação"
1068
 
1069
- #: includes/admin/views/settings-info.php:128
1070
- msgid "Form validation is now done via PHP + AJAX in favour of only JS"
1071
  msgstr "A validação de formulários agora é feita com PHP + AJAX em vez de apenas JS."
1072
 
1073
- #: includes/admin/views/settings-info.php:132
1074
- msgid "Relationship Field"
1075
- msgstr "Campo de relação"
1076
-
1077
- #: includes/admin/views/settings-info.php:133
1078
- msgid "New Relationship field setting for 'Filters' (Search, Post Type, Taxonomy)"
1079
- msgstr "Nova definição 'Filtros' do campo Relação (Pesquisa, Tipo de conteúdo, Taxonomia)."
1080
-
1081
- #: includes/admin/views/settings-info.php:139
1082
  msgid "Moving Fields"
1083
  msgstr "Mover campos"
1084
 
1085
- #: includes/admin/views/settings-info.php:140
1086
- msgid "New field group functionality allows you to move a field between groups & parents"
1087
  msgstr "Nova funcionalidade de grupo de campos permite mover um campo entre grupos e superiores."
1088
 
1089
- #: includes/admin/views/settings-info.php:144
1090
- #: includes/fields/class-acf-field-page_link.php:25
1091
- msgid "Page Link"
1092
- msgstr "Ligação de página"
1093
-
1094
- #: includes/admin/views/settings-info.php:145
1095
- msgid "New archives group in page_link field selection"
1096
- msgstr "Novo grupo <em>Arquivo</em> no campo de selecção da ligação de página."
1097
-
1098
- #: includes/admin/views/settings-info.php:149
1099
- msgid "Better Options Pages"
1100
- msgstr "Melhores páginas de opções"
1101
-
1102
- #: includes/admin/views/settings-info.php:150
1103
- msgid "New functions for options page allow creation of both parent and child menu pages"
1104
- msgstr "Novas funções para as páginas de opções permitem a criação de páginas superiores e dependentes."
1105
-
1106
- #: includes/admin/views/settings-info.php:159
1107
  #, php-format
1108
  msgid "We think you'll love the changes in %s."
1109
  msgstr "Pensamos que vai gostar das alterações na versão %s."
1110
 
1111
- #: includes/api/api-helpers.php:1039
1112
  msgid "Thumbnail"
1113
  msgstr "Miniatura"
1114
 
1115
- #: includes/api/api-helpers.php:1040
1116
  msgid "Medium"
1117
  msgstr "Média"
1118
 
1119
- #: includes/api/api-helpers.php:1041
1120
  msgid "Large"
1121
  msgstr "Grande"
1122
 
1123
- #: includes/api/api-helpers.php:1090
1124
  msgid "Full Size"
1125
  msgstr "Tamanho original"
1126
 
1127
- #: includes/api/api-helpers.php:1431 includes/api/api-helpers.php:2004
1128
  #: pro/fields/class-acf-field-clone.php:996
1129
  msgid "(no title)"
1130
  msgstr "(sem título)"
1131
 
1132
- #: includes/api/api-helpers.php:4086
1133
  #, php-format
1134
  msgid "Image width must be at least %dpx."
1135
  msgstr "A largura da imagem deve ser pelo menos de %dpx."
1136
 
1137
- #: includes/api/api-helpers.php:4091
1138
  #, php-format
1139
  msgid "Image width must not exceed %dpx."
1140
  msgstr "A largura da imagem não deve exceder os %dpx."
1141
 
1142
- #: includes/api/api-helpers.php:4107
1143
  #, php-format
1144
  msgid "Image height must be at least %dpx."
1145
  msgstr "A altura da imagem deve ser pelo menos de %dpx."
1146
 
1147
- #: includes/api/api-helpers.php:4112
1148
  #, php-format
1149
  msgid "Image height must not exceed %dpx."
1150
  msgstr "A altura da imagem não deve exceder os %dpx."
1151
 
1152
- #: includes/api/api-helpers.php:4130
1153
  #, php-format
1154
  msgid "File size must be at least %s."
1155
  msgstr "O tamanho do ficheiro deve ser pelo menos de %s."
1156
 
1157
- #: includes/api/api-helpers.php:4135
1158
  #, php-format
1159
  msgid "File size must must not exceed %s."
1160
  msgstr "O tamanho do ficheiro não deve exceder %s."
1161
 
1162
- #: includes/api/api-helpers.php:4169
1163
  #, php-format
1164
  msgid "File type must be %s."
1165
  msgstr "O tipo de ficheiro deve ser %s."
1166
 
1167
- #: includes/assets.php:172
1168
  msgid "The changes you made will be lost if you navigate away from this page"
1169
  msgstr "As alterações que fez serão ignoradas se navegar para fora desta página."
1170
 
1171
- #: includes/assets.php:175 includes/fields/class-acf-field-select.php:259
1172
  msgctxt "verb"
1173
  msgid "Select"
1174
  msgstr "Seleccionar"
1175
 
1176
- #: includes/assets.php:176
1177
  msgctxt "verb"
1178
  msgid "Edit"
1179
  msgstr "Editar"
1180
 
1181
- #: includes/assets.php:177
1182
  msgctxt "verb"
1183
  msgid "Update"
1184
  msgstr "Actualizar"
1185
 
1186
- #: includes/assets.php:178
1187
  msgid "Uploaded to this post"
1188
  msgstr "Carregados neste artigo"
1189
 
1190
- #: includes/assets.php:179
1191
  msgid "Expand Details"
1192
  msgstr "Expandir detalhes"
1193
 
1194
- #: includes/assets.php:180
1195
  msgid "Collapse Details"
1196
  msgstr "Minimizar detalhes"
1197
 
1198
- #: includes/assets.php:181
1199
  msgid "Restricted"
1200
  msgstr "Restrito"
1201
 
1202
- #: includes/assets.php:182 includes/fields/class-acf-field-image.php:67
1203
  msgid "All images"
1204
  msgstr "Todas as imagens"
1205
 
1206
- #: includes/assets.php:185
1207
  msgid "Validation successful"
1208
  msgstr "Validação bem sucedida"
1209
 
1210
- #: includes/assets.php:186 includes/validation.php:285
1211
  #: includes/validation.php:296
1212
  msgid "Validation failed"
1213
  msgstr "A validação falhou"
1214
 
1215
- #: includes/assets.php:187
1216
  msgid "1 field requires attention"
1217
  msgstr "1 campo requer a sua atenção"
1218
 
1219
- #: includes/assets.php:188
1220
  #, php-format
1221
  msgid "%d fields require attention"
1222
  msgstr "%d campos requerem a sua atenção"
1223
 
1224
- #: includes/assets.php:191
1225
  msgid "Are you sure?"
1226
  msgstr "Tem a certeza?"
1227
 
1228
- #: includes/assets.php:192 includes/fields/class-acf-field-true_false.php:79
1229
  #: includes/fields/class-acf-field-true_false.php:159
1230
  #: pro/admin/views/html-settings-updates.php:89
1231
  msgid "Yes"
1232
  msgstr "Sim"
1233
 
1234
- #: includes/assets.php:193 includes/fields/class-acf-field-true_false.php:80
1235
  #: includes/fields/class-acf-field-true_false.php:174
1236
  #: pro/admin/views/html-settings-updates.php:99
1237
  msgid "No"
1238
  msgstr "Não"
1239
 
1240
- #: includes/assets.php:194 includes/fields/class-acf-field-file.php:154
1241
  #: includes/fields/class-acf-field-image.php:141
1242
  #: includes/fields/class-acf-field-link.php:140
1243
- #: pro/fields/class-acf-field-gallery.php:358
1244
- #: pro/fields/class-acf-field-gallery.php:546
1245
  msgid "Remove"
1246
  msgstr "Remover"
1247
 
1248
- #: includes/assets.php:195
1249
  msgid "Cancel"
1250
  msgstr "Cancelar"
1251
 
1252
- #: includes/assets.php:198
1253
  msgid "Has any value"
1254
  msgstr "Tem um valor qualquer"
1255
 
1256
- #: includes/assets.php:199
1257
  msgid "Has no value"
1258
  msgstr "Não tem valor"
1259
 
1260
- #: includes/assets.php:200
1261
  msgid "Value is equal to"
1262
  msgstr "O valor é igual a"
1263
 
1264
- #: includes/assets.php:201
1265
  msgid "Value is not equal to"
1266
  msgstr "O valor é diferente de"
1267
 
1268
- #: includes/assets.php:202
1269
  msgid "Value matches pattern"
1270
  msgstr "O valor corresponde ao padrão"
1271
 
1272
- #: includes/assets.php:203
1273
  msgid "Value contains"
1274
  msgstr "O valor contém"
1275
 
1276
- #: includes/assets.php:204
1277
  msgid "Value is greater than"
1278
  msgstr "O valor é maior do que"
1279
 
1280
- #: includes/assets.php:205
1281
  msgid "Value is less than"
1282
  msgstr "O valor é menor do que"
1283
 
1284
- #: includes/assets.php:206
1285
  msgid "Selection is greater than"
1286
  msgstr "A selecção é maior do que"
1287
 
1288
- #: includes/assets.php:207
1289
  msgid "Selection is less than"
1290
  msgstr "A selecção é menor do que"
1291
 
 
 
 
 
 
1292
  #: includes/fields.php:308
1293
  msgid "Field type does not exist"
1294
  msgstr "Tipo de campo não existe"
@@ -1364,36 +1370,36 @@ msgstr "Grupo de botões"
1364
  #: includes/fields/class-acf-field-button-group.php:149
1365
  #: includes/fields/class-acf-field-checkbox.php:344
1366
  #: includes/fields/class-acf-field-radio.php:235
1367
- #: includes/fields/class-acf-field-select.php:370
1368
  msgid "Choices"
1369
  msgstr "Opções"
1370
 
1371
  #: includes/fields/class-acf-field-button-group.php:150
1372
  #: includes/fields/class-acf-field-checkbox.php:345
1373
  #: includes/fields/class-acf-field-radio.php:236
1374
- #: includes/fields/class-acf-field-select.php:371
1375
  msgid "Enter each choice on a new line."
1376
  msgstr "Insira cada opção numa linha separada."
1377
 
1378
  #: includes/fields/class-acf-field-button-group.php:150
1379
  #: includes/fields/class-acf-field-checkbox.php:345
1380
  #: includes/fields/class-acf-field-radio.php:236
1381
- #: includes/fields/class-acf-field-select.php:371
1382
  msgid "For more control, you may specify both a value and label like this:"
1383
  msgstr "Para maior controlo, pode especificar tanto os valores como as legendas:"
1384
 
1385
  #: includes/fields/class-acf-field-button-group.php:150
1386
  #: includes/fields/class-acf-field-checkbox.php:345
1387
  #: includes/fields/class-acf-field-radio.php:236
1388
- #: includes/fields/class-acf-field-select.php:371
1389
  msgid "red : Red"
1390
  msgstr "vermelho : Vermelho"
1391
 
1392
  #: includes/fields/class-acf-field-button-group.php:158
1393
  #: includes/fields/class-acf-field-page_link.php:513
1394
- #: includes/fields/class-acf-field-post_object.php:412
1395
  #: includes/fields/class-acf-field-radio.php:244
1396
- #: includes/fields/class-acf-field-select.php:388
1397
  #: includes/fields/class-acf-field-taxonomy.php:784
1398
  #: includes/fields/class-acf-field-user.php:409
1399
  msgid "Allow Null?"
@@ -1405,13 +1411,13 @@ msgstr "Permitir nulo?"
1405
  #: includes/fields/class-acf-field-email.php:118
1406
  #: includes/fields/class-acf-field-number.php:127
1407
  #: includes/fields/class-acf-field-radio.php:281
1408
- #: includes/fields/class-acf-field-range.php:146
1409
- #: includes/fields/class-acf-field-select.php:379
1410
  #: includes/fields/class-acf-field-text.php:119
1411
  #: includes/fields/class-acf-field-textarea.php:102
1412
  #: includes/fields/class-acf-field-true_false.php:135
1413
  #: includes/fields/class-acf-field-url.php:100
1414
- #: includes/fields/class-acf-field-wysiwyg.php:397
1415
  msgid "Default Value"
1416
  msgstr "Valor por omissão"
1417
 
@@ -1419,11 +1425,11 @@ msgstr "Valor por omissão"
1419
  #: includes/fields/class-acf-field-email.php:119
1420
  #: includes/fields/class-acf-field-number.php:128
1421
  #: includes/fields/class-acf-field-radio.php:282
1422
- #: includes/fields/class-acf-field-range.php:147
1423
  #: includes/fields/class-acf-field-text.php:120
1424
  #: includes/fields/class-acf-field-textarea.php:103
1425
  #: includes/fields/class-acf-field-url.php:101
1426
- #: includes/fields/class-acf-field-wysiwyg.php:398
1427
  msgid "Appears when creating a new post"
1428
  msgstr "Mostrado ao criar um novo conteúdo"
1429
 
@@ -1461,14 +1467,14 @@ msgstr "Especifica o valor devolvido na frente do site."
1461
  #: includes/fields/class-acf-field-button-group.php:197
1462
  #: includes/fields/class-acf-field-checkbox.php:419
1463
  #: includes/fields/class-acf-field-radio.php:310
1464
- #: includes/fields/class-acf-field-select.php:438
1465
  msgid "Value"
1466
  msgstr "Valor"
1467
 
1468
  #: includes/fields/class-acf-field-button-group.php:199
1469
  #: includes/fields/class-acf-field-checkbox.php:421
1470
  #: includes/fields/class-acf-field-radio.php:312
1471
- #: includes/fields/class-acf-field-select.php:440
1472
  msgid "Both (Array)"
1473
  msgstr "Ambos (Array)"
1474
 
@@ -1502,7 +1508,7 @@ msgid "Save 'custom' values to the field's choices"
1502
  msgstr "Guarda valores personalizados nas opções do campo"
1503
 
1504
  #: includes/fields/class-acf-field-checkbox.php:381
1505
- #: includes/fields/class-acf-field-select.php:380
1506
  msgid "Enter each default value on a new line"
1507
  msgstr "Insira cada valor por omissão numa linha separada"
1508
 
@@ -1594,9 +1600,9 @@ msgstr "O formato usado ao guardar um valor"
1594
 
1595
  #: includes/fields/class-acf-field-date_picker.php:210
1596
  #: includes/fields/class-acf-field-date_time_picker.php:200
1597
- #: includes/fields/class-acf-field-post_object.php:432
1598
- #: includes/fields/class-acf-field-relationship.php:715
1599
- #: includes/fields/class-acf-field-select.php:433
1600
  #: includes/fields/class-acf-field-time_picker.php:124
1601
  #: includes/fields/class-acf-field-user.php:428
1602
  msgid "Return Format"
@@ -1717,7 +1723,7 @@ msgstr "Mostrado dentro do campo"
1717
  #: includes/fields/class-acf-field-email.php:136
1718
  #: includes/fields/class-acf-field-number.php:145
1719
  #: includes/fields/class-acf-field-password.php:80
1720
- #: includes/fields/class-acf-field-range.php:185
1721
  #: includes/fields/class-acf-field-text.php:137
1722
  msgid "Prepend"
1723
  msgstr "Preceder"
@@ -1725,7 +1731,7 @@ msgstr "Preceder"
1725
  #: includes/fields/class-acf-field-email.php:137
1726
  #: includes/fields/class-acf-field-number.php:146
1727
  #: includes/fields/class-acf-field-password.php:81
1728
- #: includes/fields/class-acf-field-range.php:186
1729
  #: includes/fields/class-acf-field-text.php:138
1730
  msgid "Appears before the input"
1731
  msgstr "Mostrado antes do campo"
@@ -1733,7 +1739,7 @@ msgstr "Mostrado antes do campo"
1733
  #: includes/fields/class-acf-field-email.php:145
1734
  #: includes/fields/class-acf-field-number.php:154
1735
  #: includes/fields/class-acf-field-password.php:89
1736
- #: includes/fields/class-acf-field-range.php:194
1737
  #: includes/fields/class-acf-field-text.php:146
1738
  msgid "Append"
1739
  msgstr "Suceder"
@@ -1741,7 +1747,7 @@ msgstr "Suceder"
1741
  #: includes/fields/class-acf-field-email.php:146
1742
  #: includes/fields/class-acf-field-number.php:155
1743
  #: includes/fields/class-acf-field-password.php:90
1744
- #: includes/fields/class-acf-field-range.php:195
1745
  #: includes/fields/class-acf-field-text.php:147
1746
  msgid "Appears after the input"
1747
  msgstr "Mostrado depois do campo"
@@ -1767,8 +1773,8 @@ msgstr "Nome do ficheiro"
1767
  #: includes/fields/class-acf-field-file.php:259
1768
  #: includes/fields/class-acf-field-image.php:265
1769
  #: includes/fields/class-acf-field-image.php:294
1770
- #: pro/fields/class-acf-field-gallery.php:705
1771
- #: pro/fields/class-acf-field-gallery.php:734
1772
  msgid "File size"
1773
  msgstr "Tamanho do ficheiro"
1774
 
@@ -1790,13 +1796,13 @@ msgstr "ID do ficheiro"
1790
 
1791
  #: includes/fields/class-acf-field-file.php:230
1792
  #: includes/fields/class-acf-field-image.php:230
1793
- #: pro/fields/class-acf-field-gallery.php:670
1794
  msgid "Library"
1795
  msgstr "Biblioteca"
1796
 
1797
  #: includes/fields/class-acf-field-file.php:231
1798
  #: includes/fields/class-acf-field-image.php:231
1799
- #: pro/fields/class-acf-field-gallery.php:671
1800
  msgid "Limit the media library choice"
1801
  msgstr "Limita a escolha da biblioteca de media."
1802
 
@@ -1809,19 +1815,19 @@ msgstr "Limita a escolha da biblioteca de media."
1809
  #: includes/locations/class-acf-location-user-form.php:87
1810
  #: includes/locations/class-acf-location-user-role.php:111
1811
  #: includes/locations/class-acf-location-widget.php:83
1812
- #: pro/fields/class-acf-field-gallery.php:676
1813
  msgid "All"
1814
  msgstr "Todos"
1815
 
1816
  #: includes/fields/class-acf-field-file.php:237
1817
  #: includes/fields/class-acf-field-image.php:237
1818
- #: pro/fields/class-acf-field-gallery.php:677
1819
  msgid "Uploaded to post"
1820
  msgstr "Carregados no artigo"
1821
 
1822
  #: includes/fields/class-acf-field-file.php:244
1823
  #: includes/fields/class-acf-field-image.php:244
1824
- #: pro/fields/class-acf-field-gallery.php:684
1825
  msgid "Minimum"
1826
  msgstr "Mínimo"
1827
 
@@ -1832,19 +1838,19 @@ msgstr "Restringe que ficheiros podem ser carregados."
1832
 
1833
  #: includes/fields/class-acf-field-file.php:255
1834
  #: includes/fields/class-acf-field-image.php:273
1835
- #: pro/fields/class-acf-field-gallery.php:713
1836
  msgid "Maximum"
1837
  msgstr "Máximo"
1838
 
1839
  #: includes/fields/class-acf-field-file.php:266
1840
  #: includes/fields/class-acf-field-image.php:302
1841
- #: pro/fields/class-acf-field-gallery.php:742
1842
  msgid "Allowed file types"
1843
  msgstr "Tipos de ficheiros permitidos"
1844
 
1845
  #: includes/fields/class-acf-field-file.php:267
1846
  #: includes/fields/class-acf-field-image.php:303
1847
- #: pro/fields/class-acf-field-gallery.php:743
1848
  msgid "Comma separated list. Leave blank for all types"
1849
  msgstr "Lista separada por vírgulas. Deixe em branco para permitir todos os tipos."
1850
 
@@ -1890,8 +1896,8 @@ msgstr "Definir o nível de zoom inicial"
1890
  #: includes/fields/class-acf-field-image.php:256
1891
  #: includes/fields/class-acf-field-image.php:285
1892
  #: includes/fields/class-acf-field-oembed.php:268
1893
- #: pro/fields/class-acf-field-gallery.php:696
1894
- #: pro/fields/class-acf-field-gallery.php:725
1895
  msgid "Height"
1896
  msgstr "Altura"
1897
 
@@ -1980,16 +1986,16 @@ msgstr "Mostrado ao inserir dados"
1980
 
1981
  #: includes/fields/class-acf-field-image.php:245
1982
  #: includes/fields/class-acf-field-image.php:274
1983
- #: pro/fields/class-acf-field-gallery.php:685
1984
- #: pro/fields/class-acf-field-gallery.php:714
1985
  msgid "Restrict which images can be uploaded"
1986
  msgstr "Restringir que imagens que ser carregadas"
1987
 
1988
  #: includes/fields/class-acf-field-image.php:248
1989
  #: includes/fields/class-acf-field-image.php:277
1990
  #: includes/fields/class-acf-field-oembed.php:257
1991
- #: pro/fields/class-acf-field-gallery.php:688
1992
- #: pro/fields/class-acf-field-gallery.php:717
1993
  msgid "Width"
1994
  msgstr "Largura"
1995
 
@@ -2057,17 +2063,17 @@ msgid "Number"
2057
  msgstr "Número"
2058
 
2059
  #: includes/fields/class-acf-field-number.php:163
2060
- #: includes/fields/class-acf-field-range.php:155
2061
  msgid "Minimum Value"
2062
  msgstr "Valor mínimo"
2063
 
2064
  #: includes/fields/class-acf-field-number.php:172
2065
- #: includes/fields/class-acf-field-range.php:165
2066
  msgid "Maximum Value"
2067
  msgstr "Valor máximo"
2068
 
2069
  #: includes/fields/class-acf-field-number.php:181
2070
- #: includes/fields/class-acf-field-range.php:175
2071
  msgid "Step Size"
2072
  msgstr "Valor dos passos"
2073
 
@@ -2098,37 +2104,41 @@ msgstr "Insira o URL"
2098
  msgid "Embed Size"
2099
  msgstr "Tamanho da incorporação"
2100
 
 
 
 
 
2101
  #: includes/fields/class-acf-field-page_link.php:177
2102
  msgid "Archives"
2103
  msgstr "Arquivo"
2104
 
2105
  #: includes/fields/class-acf-field-page_link.php:269
2106
- #: includes/fields/class-acf-field-post_object.php:268
2107
- #: includes/fields/class-acf-field-taxonomy.php:982
2108
  msgid "Parent"
2109
  msgstr "Superior"
2110
 
2111
  #: includes/fields/class-acf-field-page_link.php:485
2112
- #: includes/fields/class-acf-field-post_object.php:384
2113
- #: includes/fields/class-acf-field-relationship.php:641
2114
  msgid "Filter by Post Type"
2115
  msgstr "Filtrar por tipo de conteúdo"
2116
 
2117
  #: includes/fields/class-acf-field-page_link.php:493
2118
- #: includes/fields/class-acf-field-post_object.php:392
2119
- #: includes/fields/class-acf-field-relationship.php:649
2120
  msgid "All post types"
2121
  msgstr "Todos os tipos de conteúdo"
2122
 
2123
  #: includes/fields/class-acf-field-page_link.php:499
2124
- #: includes/fields/class-acf-field-post_object.php:398
2125
- #: includes/fields/class-acf-field-relationship.php:655
2126
  msgid "Filter by Taxonomy"
2127
  msgstr "Filtrar por taxonomia"
2128
 
2129
  #: includes/fields/class-acf-field-page_link.php:507
2130
- #: includes/fields/class-acf-field-post_object.php:406
2131
- #: includes/fields/class-acf-field-relationship.php:663
2132
  msgid "All taxonomies"
2133
  msgstr "Todas as taxonomias"
2134
 
@@ -2137,8 +2147,8 @@ msgid "Allow Archives URLs"
2137
  msgstr "Permitir URL do arquivo"
2138
 
2139
  #: includes/fields/class-acf-field-page_link.php:533
2140
- #: includes/fields/class-acf-field-post_object.php:422
2141
- #: includes/fields/class-acf-field-select.php:398
2142
  #: includes/fields/class-acf-field-user.php:419
2143
  msgid "Select multiple values?"
2144
  msgstr "Seleccionar valores múltiplos?"
@@ -2148,13 +2158,13 @@ msgid "Password"
2148
  msgstr "Senha"
2149
 
2150
  #: includes/fields/class-acf-field-post_object.php:25
2151
- #: includes/fields/class-acf-field-post_object.php:437
2152
- #: includes/fields/class-acf-field-relationship.php:720
2153
  msgid "Post Object"
2154
  msgstr "Conteúdo"
2155
 
2156
- #: includes/fields/class-acf-field-post_object.php:438
2157
- #: includes/fields/class-acf-field-relationship.php:721
2158
  msgid "Post ID"
2159
  msgstr "ID do conteúdo"
2160
 
@@ -2198,52 +2208,52 @@ msgstr "A carregar"
2198
  msgid "No matches found"
2199
  msgstr "Nenhuma correspondência encontrada"
2200
 
2201
- #: includes/fields/class-acf-field-relationship.php:441
2202
  msgid "Select post type"
2203
  msgstr "Seleccione tipo de conteúdo"
2204
 
2205
- #: includes/fields/class-acf-field-relationship.php:467
2206
  msgid "Select taxonomy"
2207
  msgstr "Seleccione taxonomia"
2208
 
2209
- #: includes/fields/class-acf-field-relationship.php:557
2210
  msgid "Search..."
2211
  msgstr "Pesquisar..."
2212
 
2213
- #: includes/fields/class-acf-field-relationship.php:669
2214
  msgid "Filters"
2215
  msgstr "Filtros"
2216
 
2217
- #: includes/fields/class-acf-field-relationship.php:675
2218
  #: includes/locations/class-acf-location-post-type.php:27
2219
  msgid "Post Type"
2220
  msgstr "Tipo de conteúdo"
2221
 
2222
- #: includes/fields/class-acf-field-relationship.php:676
2223
  #: includes/fields/class-acf-field-taxonomy.php:28
2224
  #: includes/fields/class-acf-field-taxonomy.php:754
2225
  #: includes/locations/class-acf-location-taxonomy.php:27
2226
  msgid "Taxonomy"
2227
  msgstr "Taxonomia"
2228
 
2229
- #: includes/fields/class-acf-field-relationship.php:683
2230
  msgid "Elements"
2231
  msgstr "Elementos"
2232
 
2233
- #: includes/fields/class-acf-field-relationship.php:684
2234
  msgid "Selected elements will be displayed in each result"
2235
  msgstr "Os elementos seleccionados serão mostrados em cada resultado."
2236
 
2237
- #: includes/fields/class-acf-field-relationship.php:695
2238
  msgid "Minimum posts"
2239
  msgstr "Mínimo de conteúdos"
2240
 
2241
- #: includes/fields/class-acf-field-relationship.php:704
2242
  msgid "Maximum posts"
2243
  msgstr "Máximo de conteúdos"
2244
 
2245
- #: includes/fields/class-acf-field-relationship.php:808
2246
- #: pro/fields/class-acf-field-gallery.php:815
2247
  #, php-format
2248
  msgid "%s requires at least %s selection"
2249
  msgid_plural "%s requires at least %s selections"
@@ -2320,16 +2330,16 @@ msgctxt "Select2 JS load_fail"
2320
  msgid "Loading failed"
2321
  msgstr "Falhou ao carregar"
2322
 
2323
- #: includes/fields/class-acf-field-select.php:408
2324
  #: includes/fields/class-acf-field-true_false.php:144
2325
  msgid "Stylised UI"
2326
  msgstr "Interface estilizada"
2327
 
2328
- #: includes/fields/class-acf-field-select.php:418
2329
  msgid "Use AJAX to lazy load choices?"
2330
  msgstr "Utilizar AJAX para carregar opções?"
2331
 
2332
- #: includes/fields/class-acf-field-select.php:434
2333
  msgid "Specify the value returned"
2334
  msgstr "Especifica o valor devolvido."
2335
 
@@ -2415,26 +2425,22 @@ msgstr "Termo"
2415
  msgid "Term ID"
2416
  msgstr "ID do termo"
2417
 
2418
- #: includes/fields/class-acf-field-taxonomy.php:894
2419
- msgid "Error."
2420
- msgstr "Erro."
2421
-
2422
- #: includes/fields/class-acf-field-taxonomy.php:894
2423
  #, php-format
2424
  msgid "User unable to add new %s"
2425
  msgstr "O utilizador não pôde adicionar novo(a) %s"
2426
 
2427
- #: includes/fields/class-acf-field-taxonomy.php:907
2428
  #, php-format
2429
  msgid "%s already exists"
2430
  msgstr "%s já existe"
2431
 
2432
- #: includes/fields/class-acf-field-taxonomy.php:948
2433
  #, php-format
2434
  msgid "%s added"
2435
  msgstr "%s adicionado(a)"
2436
 
2437
- #: includes/fields/class-acf-field-taxonomy.php:994
2438
  msgid "Add"
2439
  msgstr "Adicionar"
2440
 
@@ -2528,61 +2534,56 @@ msgstr "ID do utilizador"
2528
  msgid "Wysiwyg Editor"
2529
  msgstr "Editor wysiwyg"
2530
 
2531
- #: includes/fields/class-acf-field-wysiwyg.php:346
2532
  msgid "Visual"
2533
  msgstr "Visual"
2534
 
2535
- #: includes/fields/class-acf-field-wysiwyg.php:347
2536
  msgctxt "Name for the Text editor tab (formerly HTML)"
2537
  msgid "Text"
2538
  msgstr "HTML"
2539
 
2540
- #: includes/fields/class-acf-field-wysiwyg.php:353
2541
  msgid "Click to initialize TinyMCE"
2542
  msgstr "Clique para inicializar o TinyMCE"
2543
 
2544
- #: includes/fields/class-acf-field-wysiwyg.php:406
2545
  msgid "Tabs"
2546
  msgstr "Separadores"
2547
 
2548
- #: includes/fields/class-acf-field-wysiwyg.php:411
2549
  msgid "Visual & Text"
2550
  msgstr "Visual e HTML"
2551
 
2552
- #: includes/fields/class-acf-field-wysiwyg.php:412
2553
  msgid "Visual Only"
2554
  msgstr "Apenas visual"
2555
 
2556
- #: includes/fields/class-acf-field-wysiwyg.php:413
2557
  msgid "Text Only"
2558
  msgstr "Apenas HTML"
2559
 
2560
- #: includes/fields/class-acf-field-wysiwyg.php:420
2561
  msgid "Toolbar"
2562
  msgstr "Barra de ferramentas"
2563
 
2564
- #: includes/fields/class-acf-field-wysiwyg.php:435
2565
  msgid "Show Media Upload Buttons?"
2566
  msgstr "Mostrar botões de carregar multimédia?"
2567
 
2568
- #: includes/fields/class-acf-field-wysiwyg.php:445
2569
  msgid "Delay initialization?"
2570
  msgstr "Atrasar a inicialização?"
2571
 
2572
- #: includes/fields/class-acf-field-wysiwyg.php:446
2573
  msgid "TinyMCE will not be initalized until field is clicked"
2574
  msgstr "O TinyMCE não será inicializado até que clique no campo"
2575
 
2576
- #: includes/forms/form-comment.php:166 includes/forms/form-post.php:305
2577
- #: pro/admin/admin-options-page.php:308
2578
- msgid "Edit field group"
2579
- msgstr "Editar grupo de campos"
2580
-
2581
  #: includes/forms/form-front.php:55
2582
  msgid "Validate Email"
2583
  msgstr "Validar email"
2584
 
2585
- #: includes/forms/form-front.php:103 pro/fields/class-acf-field-gallery.php:588
2586
  #: pro/options-page.php:81
2587
  msgid "Update"
2588
  msgstr "Actualizar"
@@ -2607,11 +2608,11 @@ msgstr "Página"
2607
  msgid "Forms"
2608
  msgstr "Formulários"
2609
 
2610
- #: includes/locations.php:247
2611
  msgid "is equal to"
2612
  msgstr "é igual a"
2613
 
2614
- #: includes/locations.php:248
2615
  msgid "is not equal to"
2616
  msgstr "não é igual a"
2617
 
@@ -2773,6 +2774,10 @@ msgstr "<b>Erro</b>. Não foi possível ligar ao servidor de actualização."
2773
  msgid "Updates"
2774
  msgstr "Actualizações"
2775
 
 
 
 
 
2776
  #: pro/admin/views/html-settings-updates.php:7
2777
  msgid "Deactivate License"
2778
  msgstr "Desactivar licença"
@@ -2989,67 +2994,67 @@ msgstr "Adicionar imagem à galeria"
2989
  msgid "Maximum selection reached"
2990
  msgstr "Máximo de selecção alcançado"
2991
 
2992
- #: pro/fields/class-acf-field-gallery.php:336
2993
  msgid "Length"
2994
  msgstr "Comprimento"
2995
 
2996
- #: pro/fields/class-acf-field-gallery.php:379
2997
  msgid "Caption"
2998
  msgstr "Legenda"
2999
 
3000
- #: pro/fields/class-acf-field-gallery.php:388
3001
  msgid "Alt Text"
3002
  msgstr "Texto alternativo"
3003
 
3004
- #: pro/fields/class-acf-field-gallery.php:559
3005
  msgid "Add to gallery"
3006
  msgstr "Adicionar à galeria"
3007
 
3008
- #: pro/fields/class-acf-field-gallery.php:563
3009
  msgid "Bulk actions"
3010
  msgstr "Acções por lotes"
3011
 
3012
- #: pro/fields/class-acf-field-gallery.php:564
3013
  msgid "Sort by date uploaded"
3014
  msgstr "Ordenar por data de carregamento"
3015
 
3016
- #: pro/fields/class-acf-field-gallery.php:565
3017
  msgid "Sort by date modified"
3018
  msgstr "Ordenar por data de modificação"
3019
 
3020
- #: pro/fields/class-acf-field-gallery.php:566
3021
  msgid "Sort by title"
3022
  msgstr "Ordenar por título"
3023
 
3024
- #: pro/fields/class-acf-field-gallery.php:567
3025
  msgid "Reverse current order"
3026
  msgstr "Inverter ordem actual"
3027
 
3028
- #: pro/fields/class-acf-field-gallery.php:585
3029
  msgid "Close"
3030
  msgstr "Fechar"
3031
 
3032
- #: pro/fields/class-acf-field-gallery.php:639
3033
  msgid "Minimum Selection"
3034
  msgstr "Selecção mínima"
3035
 
3036
- #: pro/fields/class-acf-field-gallery.php:648
3037
  msgid "Maximum Selection"
3038
  msgstr "Selecção máxima"
3039
 
3040
- #: pro/fields/class-acf-field-gallery.php:657
3041
  msgid "Insert"
3042
  msgstr "Inserir"
3043
 
3044
- #: pro/fields/class-acf-field-gallery.php:658
3045
  msgid "Specify where new attachments are added"
3046
  msgstr "Especifica onde serão adicionados os novos anexos."
3047
 
3048
- #: pro/fields/class-acf-field-gallery.php:662
3049
  msgid "Append to the end"
3050
  msgstr "No fim"
3051
 
3052
- #: pro/fields/class-acf-field-gallery.php:663
3053
  msgid "Prepend to the beginning"
3054
  msgstr "No início"
3055
 
@@ -3115,6 +3120,105 @@ msgstr "Elliot Condon"
3115
  msgid "http://www.elliotcondon.com/"
3116
  msgstr "http://www.elliotcondon.com/"
3117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3118
  #~ msgid "checked"
3119
  #~ msgstr "seleccionado"
3120
 
4
  msgstr ""
5
  "Project-Id-Version: Advanced Custom Fields PRO\n"
6
  "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
7
+ "POT-Creation-Date: 2018-09-26 12:44+0100\n"
8
+ "PO-Revision-Date: 2018-09-26 12:44+0100\n"
9
  "Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n"
10
  "Language-Team: Pedro Mendonça <ped.gaspar@gmail.com>\n"
11
  "Language: pt_PT\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "X-Generator: Poedit 2.1.1\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
19
  "X-Textdomain-Support: yes\n"
26
  msgid "Advanced Custom Fields"
27
  msgstr "Advanced Custom Fields"
28
 
29
+ #: acf.php:386 includes/admin/admin.php:117
30
  msgid "Field Groups"
31
  msgstr "Grupos de campos"
32
 
33
+ #: acf.php:387
34
  msgid "Field Group"
35
  msgstr "Grupo de campos"
36
 
37
+ #: acf.php:388 acf.php:420 includes/admin/admin.php:118
38
  #: pro/fields/class-acf-field-flexible-content.php:572
39
  msgid "Add New"
40
  msgstr "Adicionar novo"
41
 
42
+ #: acf.php:389
43
  msgid "Add New Field Group"
44
  msgstr "Adicionar novo grupo de campos"
45
 
46
+ #: acf.php:390
47
  msgid "Edit Field Group"
48
  msgstr "Editar grupo de campos"
49
 
50
+ #: acf.php:391
51
  msgid "New Field Group"
52
  msgstr "Novo grupo de campos"
53
 
54
+ #: acf.php:392
55
  msgid "View Field Group"
56
  msgstr "Ver grupo de campos"
57
 
58
+ #: acf.php:393
59
  msgid "Search Field Groups"
60
  msgstr "Pesquisar grupos de campos"
61
 
62
+ #: acf.php:394
63
  msgid "No Field Groups found"
64
  msgstr "Nenhum grupo de campos encontrado"
65
 
66
+ #: acf.php:395
67
  msgid "No Field Groups found in Trash"
68
  msgstr "Nenhum grupo de campos encontrado no lixo"
69
 
70
+ #: acf.php:418 includes/admin/admin-field-group.php:202
71
+ #: includes/admin/admin-field-groups.php:525
72
  #: pro/fields/class-acf-field-clone.php:811
73
  msgid "Fields"
74
  msgstr "Campos"
75
 
76
+ #: acf.php:419
77
  msgid "Field"
78
  msgstr "Campo"
79
 
80
+ #: acf.php:421
81
  msgid "Add New Field"
82
  msgstr "Adicionar novo campo"
83
 
84
+ #: acf.php:422
85
  msgid "Edit Field"
86
  msgstr "Editar campo"
87
 
88
+ #: acf.php:423 includes/admin/views/field-group-fields.php:41
 
89
  msgid "New Field"
90
  msgstr "Novo campo"
91
 
92
+ #: acf.php:424
93
  msgid "View Field"
94
  msgstr "Ver campo"
95
 
96
+ #: acf.php:425
97
  msgid "Search Fields"
98
  msgstr "Pesquisar campos"
99
 
100
+ #: acf.php:426
101
  msgid "No Fields found"
102
  msgstr "Nenhum campo encontrado"
103
 
104
+ #: acf.php:427
105
  msgid "No Fields found in Trash"
106
  msgstr "Nenhum campo encontrado no lixo"
107
 
108
+ #: acf.php:466 includes/admin/admin-field-group.php:384
109
+ #: includes/admin/admin-field-groups.php:582
110
  msgid "Inactive"
111
  msgstr "Inactivo"
112
 
113
+ #: acf.php:471
114
  #, php-format
115
  msgid "Inactive <span class=\"count\">(%s)</span>"
116
  msgid_plural "Inactive <span class=\"count\">(%s)</span>"
175
  msgid "Checked"
176
  msgstr "Seleccionado"
177
 
178
+ #: includes/admin/admin-field-group.php:160 includes/api/api-field.php:320
179
  msgid "(no label)"
180
  msgstr "(sem legenda)"
181
 
193
  #: includes/admin/views/field-group-field-conditional-logic.php:151
194
  #: includes/admin/views/field-group-locations.php:29
195
  #: includes/admin/views/html-location-group.php:3
196
+ #: includes/api/api-helpers.php:4033
197
  msgid "or"
198
  msgstr "ou"
199
 
219
  msgid "Active"
220
  msgstr "Activo"
221
 
222
+ #: includes/admin/admin-field-group.php:746
223
  msgid "Move Complete."
224
  msgstr "Movido com sucesso."
225
 
226
+ #: includes/admin/admin-field-group.php:747
227
  #, php-format
228
  msgid "The %s field can now be found in the %s field group"
229
  msgstr "O campo %s pode agora ser encontrado no grupo de campos %s"
230
 
231
+ #: includes/admin/admin-field-group.php:748
232
  msgid "Close Window"
233
  msgstr "Fechar janela"
234
 
235
+ #: includes/admin/admin-field-group.php:789
236
  msgid "Please select the destination for this field"
237
  msgstr "Por favor seleccione o destinho para este campo"
238
 
239
+ #: includes/admin/admin-field-group.php:796
240
  msgid "Move Field"
241
  msgstr "Mover campo"
242
 
243
+ #: includes/admin/admin-field-groups.php:89
244
  #, php-format
245
  msgid "Active <span class=\"count\">(%s)</span>"
246
  msgid_plural "Active <span class=\"count\">(%s)</span>"
247
  msgstr[0] "Activo <span class=\"count\">(%s)</span>"
248
  msgstr[1] "Activos <span class=\"count\">(%s)</span>"
249
 
250
+ #: includes/admin/admin-field-groups.php:157
251
  #, php-format
252
  msgid "Field group duplicated. %s"
253
  msgstr "Grupo de campos duplicado. %s"
254
 
255
+ #: includes/admin/admin-field-groups.php:161
256
  #, php-format
257
  msgid "%s field group duplicated."
258
  msgid_plural "%s field groups duplicated."
259
  msgstr[0] "%s grupo de campos duplicado."
260
  msgstr[1] "%s grupos de campos duplicados."
261
 
262
+ #: includes/admin/admin-field-groups.php:242
263
  #, php-format
264
  msgid "Field group synchronised. %s"
265
  msgstr "Grupo de campos sincronizado. %s"
266
 
267
+ #: includes/admin/admin-field-groups.php:246
268
  #, php-format
269
  msgid "%s field group synchronised."
270
  msgid_plural "%s field groups synchronised."
271
  msgstr[0] "%s grupo de campos sincronizado."
272
  msgstr[1] "%s grupos de campos sincronizados."
273
 
274
+ #: includes/admin/admin-field-groups.php:409
275
+ #: includes/admin/admin-field-groups.php:572
276
  msgid "Sync available"
277
  msgstr "Sincronização disponível"
278
 
279
+ #: includes/admin/admin-field-groups.php:522 includes/forms/form-front.php:38
280
+ #: pro/fields/class-acf-field-gallery.php:372
281
  msgid "Title"
282
  msgstr "Título"
283
 
284
+ #: includes/admin/admin-field-groups.php:523
285
  #: includes/admin/views/field-group-options.php:96
286
+ #: includes/admin/views/html-admin-page-upgrade-network.php:38
287
+ #: includes/admin/views/html-admin-page-upgrade-network.php:49
288
+ #: pro/fields/class-acf-field-gallery.php:399
289
  msgid "Description"
290
  msgstr "Descrição"
291
 
292
+ #: includes/admin/admin-field-groups.php:524
293
  msgid "Status"
294
  msgstr "Estado"
295
 
296
  #. Description of the plugin/theme
297
+ #: includes/admin/admin-field-groups.php:622
298
  msgid "Customise WordPress with powerful, professional and intuitive fields."
299
  msgstr "Personalize o WordPress com campos intuitivos, poderosos e profissionais."
300
 
301
+ #: includes/admin/admin-field-groups.php:624
302
  #: includes/admin/settings-info.php:76
303
  #: pro/admin/views/html-settings-updates.php:107
304
  msgid "Changelog"
305
  msgstr "Registo de alterações"
306
 
307
+ #: includes/admin/admin-field-groups.php:629
308
  #, php-format
309
  msgid "See what's new in <a href=\"%s\">version %s</a>."
310
  msgstr "Veja o que há de novo na <a href=\"%s\">versão %s</a>."
311
 
312
+ #: includes/admin/admin-field-groups.php:632
313
  msgid "Resources"
314
  msgstr "Recursos"
315
 
316
+ #: includes/admin/admin-field-groups.php:634
317
  msgid "Website"
318
  msgstr "Site"
319
 
320
+ #: includes/admin/admin-field-groups.php:635
321
  msgid "Documentation"
322
  msgstr "Documentação"
323
 
324
+ #: includes/admin/admin-field-groups.php:636
325
  msgid "Support"
326
  msgstr "Suporte"
327
 
328
+ #: includes/admin/admin-field-groups.php:638
329
+ #: includes/admin/views/settings-info.php:84
330
  msgid "Pro"
331
  msgstr "Pro"
332
 
333
+ #: includes/admin/admin-field-groups.php:643
334
  #, php-format
335
  msgid "Thank you for creating with <a href=\"%s\">ACF</a>."
336
  msgstr "Obrigado por criar com o <a href=\"%s\">ACF</a>."
337
 
338
+ #: includes/admin/admin-field-groups.php:682
339
  msgid "Duplicate this item"
340
  msgstr "Duplicar este item"
341
 
342
+ #: includes/admin/admin-field-groups.php:682
343
+ #: includes/admin/admin-field-groups.php:698
344
  #: includes/admin/views/field-group-field.php:46
345
  #: pro/fields/class-acf-field-flexible-content.php:571
346
  msgid "Duplicate"
347
  msgstr "Duplicar"
348
 
349
+ #: includes/admin/admin-field-groups.php:715
350
  #: includes/fields/class-acf-field-google-map.php:164
351
+ #: includes/fields/class-acf-field-relationship.php:593
352
  msgid "Search"
353
  msgstr "Pesquisa"
354
 
355
+ #: includes/admin/admin-field-groups.php:774
356
  #, php-format
357
  msgid "Select %s"
358
  msgstr "Seleccionar %s"
359
 
360
+ #: includes/admin/admin-field-groups.php:782
361
  msgid "Synchronise field group"
362
  msgstr "Sincronizar grupo de campos"
363
 
364
+ #: includes/admin/admin-field-groups.php:782
365
+ #: includes/admin/admin-field-groups.php:812
366
  msgid "Sync"
367
  msgstr "Sincronizar"
368
 
369
+ #: includes/admin/admin-field-groups.php:794
370
  msgid "Apply"
371
  msgstr "Aplicar"
372
 
373
+ #: includes/admin/admin-field-groups.php:812
374
  msgid "Bulk Actions"
375
  msgstr "Acções por lotes"
376
 
379
  msgid "Tools"
380
  msgstr "Ferramentas"
381
 
382
+ #: includes/admin/admin-upgrade.php:47 includes/admin/admin-upgrade.php:94
383
+ #: includes/admin/admin-upgrade.php:156
384
+ #: includes/admin/views/html-admin-page-upgrade-network.php:24
385
+ #: includes/admin/views/html-admin-page-upgrade.php:26
 
 
 
386
  msgid "Upgrade Database"
387
  msgstr "Actualizar base de dados"
388
 
389
+ #: includes/admin/admin-upgrade.php:180
390
  msgid "Review sites & upgrade"
391
  msgstr "Rever sites e actualizar"
392
 
393
+ #: includes/admin/admin.php:113
394
+ #: includes/admin/views/field-group-options.php:110
395
+ msgid "Custom Fields"
396
+ msgstr "Campos personalizados"
 
 
 
397
 
398
  #: includes/admin/settings-addons.php:51
399
  #: includes/admin/views/settings-addons.php:3
509
  msgstr "Mostrar este campo se"
510
 
511
  #: includes/admin/views/field-group-field-conditional-logic.php:138
512
+ #: includes/admin/views/html-location-rule.php:86
513
  msgid "and"
514
  msgstr "e"
515
 
533
  #: includes/fields/class-acf-field-file.php:152
534
  #: includes/fields/class-acf-field-image.php:139
535
  #: includes/fields/class-acf-field-link.php:139
536
+ #: pro/fields/class-acf-field-gallery.php:359
537
  msgid "Edit"
538
  msgstr "Editar"
539
 
618
  #: includes/fields/class-acf-field-button-group.php:198
619
  #: includes/fields/class-acf-field-checkbox.php:420
620
  #: includes/fields/class-acf-field-radio.php:311
621
+ #: includes/fields/class-acf-field-select.php:428
622
  #: pro/fields/class-acf-field-flexible-content.php:596
623
  msgid "Label"
624
  msgstr "Legenda"
625
 
626
  #: includes/admin/views/field-group-fields.php:6
627
+ #: includes/fields/class-acf-field-taxonomy.php:939
628
  #: pro/fields/class-acf-field-flexible-content.php:610
629
  msgid "Name"
630
  msgstr "Nome"
760
  msgstr "Atributos da página"
761
 
762
  #: includes/admin/views/field-group-options.php:118
763
+ #: includes/fields/class-acf-field-relationship.php:607
764
  msgid "Featured Image"
765
  msgstr "Imagem de destaque"
766
 
788
  msgid "If multiple field groups appear on an edit screen, the first field group's options will be used (the one with the lowest order number)"
789
  msgstr "Se forem mostrados vários grupos de campos num ecrã de edição, serão utilizadas as opções do primeiro grupo de campos. (o que tiver menor número de ordem)"
790
 
791
+ #: includes/admin/views/html-admin-page-upgrade-network.php:26
 
 
 
 
 
 
 
 
 
 
 
 
 
792
  #, php-format
793
  msgid "The following sites require a DB upgrade. Check the ones you want to update and then click %s."
794
  msgstr "Os sites seguintes necessitam de actualização da BD. Seleccione os que quer actualizar e clique em %s."
795
 
796
+ #: includes/admin/views/html-admin-page-upgrade-network.php:26
797
+ #: includes/admin/views/html-admin-page-upgrade-network.php:27
798
+ #: includes/admin/views/html-admin-page-upgrade-network.php:92
799
+ msgid "Upgrade Sites"
800
+ msgstr "Actualizar sites"
801
+
802
+ #: includes/admin/views/html-admin-page-upgrade-network.php:36
803
+ #: includes/admin/views/html-admin-page-upgrade-network.php:47
804
  msgid "Site"
805
  msgstr "Site"
806
 
807
+ #: includes/admin/views/html-admin-page-upgrade-network.php:74
808
  #, php-format
809
  msgid "Site requires database upgrade from %s to %s"
810
  msgstr "O site necessita de actualizar a base de dados de %s para %s"
811
 
812
+ #: includes/admin/views/html-admin-page-upgrade-network.php:76
813
  msgid "Site is up to date"
814
  msgstr "O site está actualizado"
815
 
816
+ #: includes/admin/views/html-admin-page-upgrade-network.php:93
817
  #, php-format
818
  msgid "Database Upgrade complete. <a href=\"%s\">Return to network dashboard</a>"
819
  msgstr "Actualização da base de dados concluída. <a href=\"%s\">Voltar ao painel da rede</a>"
820
 
821
+ #: includes/admin/views/html-admin-page-upgrade-network.php:113
822
+ msgid "Please select at least one site to upgrade."
823
+ msgstr "Por favor, seleccione pelo menos um site para actualizar."
824
+
825
+ #: includes/admin/views/html-admin-page-upgrade-network.php:117
826
+ #: includes/admin/views/html-notice-upgrade.php:38
827
  msgid "It is strongly recommended that you backup your database before proceeding. Are you sure you wish to run the updater now?"
828
  msgstr "É recomendável que faça uma cópia de segurança da sua base de dados antes de continuar. Tem a certeza que quer actualizar agora?"
829
 
830
+ #: includes/admin/views/html-admin-page-upgrade-network.php:144
831
+ #: includes/admin/views/html-admin-page-upgrade.php:31
 
 
 
 
832
  #, php-format
833
  msgid "Upgrading data to version %s"
834
  msgstr "A actualizar dados para a versão %s"
835
 
836
+ #: includes/admin/views/html-admin-page-upgrade-network.php:167
837
+ msgid "Upgrade complete."
838
+ msgstr "Actualização concluída."
839
+
840
+ #: includes/admin/views/html-admin-page-upgrade-network.php:176
841
+ #: includes/admin/views/html-admin-page-upgrade-network.php:185
842
+ #: includes/admin/views/html-admin-page-upgrade.php:78
843
+ #: includes/admin/views/html-admin-page-upgrade.php:87
844
+ msgid "Upgrade failed."
845
+ msgstr "Falhou ao actualizar."
846
+
847
+ #: includes/admin/views/html-admin-page-upgrade.php:30
848
+ msgid "Reading upgrade tasks..."
849
+ msgstr "A ler tarefas de actualização..."
850
+
851
+ #: includes/admin/views/html-admin-page-upgrade.php:33
852
+ #, php-format
853
+ msgid "Database upgrade complete. <a href=\"%s\">See what's new</a>"
854
+ msgstr "Actualização da base de dados concluída. <a href=\"%s\">Ver o que há de novo</a>"
855
+
856
+ #: includes/admin/views/html-admin-page-upgrade.php:116
857
+ #: includes/ajax/class-acf-ajax-upgrade.php:33
858
+ msgid "No updates available."
859
+ msgstr "Nenhuma actualização disponível."
860
+
861
+ #: includes/admin/views/html-location-group.php:3
862
+ msgid "Show this field group if"
863
+ msgstr "Mostrar este grupo de campos se"
864
+
865
+ #: includes/admin/views/html-notice-upgrade.php:8
866
  #: pro/fields/class-acf-field-repeater.php:25
867
  msgid "Repeater"
868
  msgstr "Repetidor"
869
 
870
+ #: includes/admin/views/html-notice-upgrade.php:9
871
  #: pro/fields/class-acf-field-flexible-content.php:25
872
  msgid "Flexible Content"
873
  msgstr "Conteúdo flexível"
874
 
875
+ #: includes/admin/views/html-notice-upgrade.php:10
876
  #: pro/fields/class-acf-field-gallery.php:25
877
  msgid "Gallery"
878
  msgstr "Galeria"
879
 
880
+ #: includes/admin/views/html-notice-upgrade.php:11
881
  #: pro/locations/class-acf-location-options-page.php:26
882
  msgid "Options Page"
883
  msgstr "Página de opções"
884
 
885
+ #: includes/admin/views/html-notice-upgrade.php:21
886
  msgid "Database Upgrade Required"
887
  msgstr "Actualização da base de dados necessária"
888
 
889
+ #: includes/admin/views/html-notice-upgrade.php:22
890
  #, php-format
891
  msgid "Thank you for updating to %s v%s!"
892
  msgstr "Obrigado por actualizar para o %s v%s!"
893
 
894
+ #: includes/admin/views/html-notice-upgrade.php:22
895
+ msgid "This version contains improvements to your database and requires an upgrade."
896
+ msgstr "Esta versão inclui melhorias na base de dados e requer uma actualização."
897
 
898
+ #: includes/admin/views/html-notice-upgrade.php:24
899
  #, php-format
900
+ msgid "Please also check all premium add-ons (%s) are updated to the latest version."
901
+ msgstr "Por favor, verifique se todos os add-ons premium (%s) estão actualizados para a última versão."
 
 
 
 
 
 
 
 
 
902
 
903
  #: includes/admin/views/settings-addons.php:17
904
  msgid "Download & Install"
917
  msgid "Thank you for updating! ACF %s is bigger and better than ever before. We hope you like it."
918
  msgstr "Obrigado por actualizar! O ACF %s está maior e melhor do que nunca. Esperamos que goste."
919
 
920
+ #: includes/admin/views/settings-info.php:15
921
+ msgid "A Smoother Experience"
922
+ msgstr "Uma experiência mais fácil"
923
 
924
+ #: includes/admin/views/settings-info.php:19
925
  msgid "Improved Usability"
926
  msgstr "Usabilidade melhorada"
927
 
928
+ #: includes/admin/views/settings-info.php:20
929
  msgid "Including the popular Select2 library has improved both usability and speed across a number of field types including post object, page link, taxonomy and select."
930
  msgstr "A inclusão da popular biblioteca Select2 melhorou a usabilidade e a velocidade de tipos de campos como conteúdo, ligação de página, taxonomia e selecção."
931
 
932
+ #: includes/admin/views/settings-info.php:24
933
  msgid "Improved Design"
934
  msgstr "Design melhorado"
935
 
936
+ #: includes/admin/views/settings-info.php:25
937
  msgid "Many fields have undergone a visual refresh to make ACF look better than ever! Noticeable changes are seen on the gallery, relationship and oEmbed (new) fields!"
938
  msgstr "Muitos campos sofreram alterações visuais para que a aparência do ACF esteja melhor que nunca! Alterações notáveis nos campos de galeria, relação e oEmbed (novo)!"
939
 
940
+ #: includes/admin/views/settings-info.php:29
941
  msgid "Improved Data"
942
  msgstr "Dados melhorados"
943
 
944
+ #: includes/admin/views/settings-info.php:30
945
  msgid "Redesigning the data architecture has allowed sub fields to live independently from their parents. This allows you to drag and drop fields in and out of parent fields!"
946
  msgstr "A reformulação da arquitectura dos dados permite que os subcampos existam independentemente dos seus superiores. Isto permite-lhe arrastar e largar campos para dentro e para fora de campos superiores!"
947
 
948
+ #: includes/admin/views/settings-info.php:38
949
  msgid "Goodbye Add-ons. Hello PRO"
950
  msgstr "Adeus add-ons. Olá PRO."
951
 
952
+ #: includes/admin/views/settings-info.php:41
953
  msgid "Introducing ACF PRO"
954
  msgstr "Introdução ao ACF PRO"
955
 
956
+ #: includes/admin/views/settings-info.php:42
957
  msgid "We're changing the way premium functionality is delivered in an exciting way!"
958
  msgstr "Estamos a alterar o modo como as funcionalidades premium são distribuídas!"
959
 
960
+ #: includes/admin/views/settings-info.php:43
961
  #, php-format
962
  msgid "All 4 premium add-ons have been combined into a new <a href=\"%s\">Pro version of ACF</a>. With both personal and developer licenses available, premium functionality is more affordable and accessible than ever before!"
963
  msgstr "Todos os 4 add-ons premium foram combinados numa única <a href=\"%s\">versão Pro do ACF</a>. Com licenças pessoais e para programadores, as funcionalidades premium estão agora mais acessíveis que nunca!"
964
 
965
+ #: includes/admin/views/settings-info.php:47
966
  msgid "Powerful Features"
967
  msgstr "Funcionalidades poderosas"
968
 
969
+ #: includes/admin/views/settings-info.php:48
970
  msgid "ACF PRO contains powerful features such as repeatable data, flexible content layouts, a beautiful gallery field and the ability to create extra admin options pages!"
971
  msgstr "O ACF PRO tem funcionalidades poderosas, tais como dados repetíveis, layouts de conteúdo flexível, um campo de galeria e a possibilidade de criar páginas de opções de administração adicionais!"
972
 
973
+ #: includes/admin/views/settings-info.php:49
974
  #, php-format
975
  msgid "Read more about <a href=\"%s\">ACF PRO features</a>."
976
  msgstr "Mais informações sobre as <a href=\"%s\">funcionalidades do ACF PRO</a>."
977
 
978
+ #: includes/admin/views/settings-info.php:53
979
  msgid "Easy Upgrading"
980
  msgstr "Actualização fácil"
981
 
982
+ #: includes/admin/views/settings-info.php:54
983
+ msgid "Upgrading to ACF PRO is easy. Simply purchase a license online and download the plugin!"
984
+ msgstr "É fácil actualizar para o ACF PRO. Basta comprar uma licença online e descarregar o plugin!"
 
985
 
986
+ #: includes/admin/views/settings-info.php:55
987
  #, php-format
988
+ msgid "We also wrote an <a href=\"%s\">upgrade guide</a> to answer any questions, but if you do have one, please contact our support team via the <a href=\"%s\">help desk</a>."
989
  msgstr "Escrevemos um <a href=\"%s\">guia de actualização</a> para responder a todas as dúvidas, se tiver alguma questão, por favor contacte a nossa equipa de suporte através da <a href=\"%s\">central de ajuda</a>."
990
 
991
+ #: includes/admin/views/settings-info.php:64
992
+ msgid "New Features"
993
+ msgstr "Novas funcionalidades"
994
 
995
+ #: includes/admin/views/settings-info.php:69
996
+ msgid "Link Field"
997
+ msgstr "Campo de ligação"
998
 
999
+ #: includes/admin/views/settings-info.php:70
1000
+ msgid "The Link field provides a simple way to select or define a link (url, title, target)."
1001
+ msgstr "O campo de ligação permite facilmente seleccionar ou definir uma ligação (URL, título, destino)."
1002
 
1003
+ #: includes/admin/views/settings-info.php:74
1004
+ msgid "Group Field"
1005
+ msgstr "Campo de grupo"
1006
 
1007
+ #: includes/admin/views/settings-info.php:75
1008
+ msgid "The Group field provides a simple way to create a group of fields."
1009
+ msgstr "O campo de grupo permite facilmente criar um grupo de campos."
1010
 
1011
+ #: includes/admin/views/settings-info.php:79
1012
+ msgid "oEmbed Field"
1013
+ msgstr "Campo de oEmbed"
1014
+
1015
+ #: includes/admin/views/settings-info.php:80
1016
+ msgid "The oEmbed field allows an easy way to embed videos, images, tweets, audio, and other content."
1017
+ msgstr "O campo de oEmbed permite facilmente incorporar vídeos, imagens, tweets, áudio ou outros conteúdos."
1018
 
1019
+ #: includes/admin/views/settings-info.php:84
1020
+ msgid "Clone Field"
1021
+ msgstr "Campo de clone"
1022
 
1023
+ #: includes/admin/views/settings-info.php:85
1024
+ msgid "The clone field allows you to select and display existing fields."
1025
+ msgstr "O campo de clone permite seleccionar e mostrar campos existentes."
1026
 
1027
  #: includes/admin/views/settings-info.php:89
1028
+ msgid "More AJAX"
1029
+ msgstr "Mais AJAX"
1030
 
1031
+ #: includes/admin/views/settings-info.php:90
1032
+ msgid "More fields use AJAX powered search to speed up page loading."
1033
+ msgstr "Mais campos utilizam pesquisa com AJAX para aumentar a velocidade de carregamento."
1034
 
1035
  #: includes/admin/views/settings-info.php:94
1036
+ msgid "Local JSON"
1037
+ msgstr "JSON local"
1038
 
1039
+ #: includes/admin/views/settings-info.php:95
1040
+ msgid "New auto export to JSON feature improves speed and allows for syncronisation."
1041
+ msgstr "Nova funcionalidade de exportação automática para JSON melhora a velocidade e permite sincronização."
1042
 
1043
  #: includes/admin/views/settings-info.php:99
1044
+ msgid "Easy Import / Export"
1045
+ msgstr "Fácil importação e exportação"
1046
+
1047
+ #: includes/admin/views/settings-info.php:100
1048
+ msgid "Both import and export can easily be done through a new tools page."
1049
+ msgstr "Pode facilmente importar e exportar a partir da nova página de ferramentas."
1050
+
1051
+ #: includes/admin/views/settings-info.php:104
1052
+ msgid "New Form Locations"
1053
+ msgstr "Novas localizações de formulários"
1054
+
1055
+ #: includes/admin/views/settings-info.php:105
1056
+ msgid "Fields can now be mapped to menus, menu items, comments, widgets and all user forms!"
1057
+ msgstr "Os campos agora podem ser mapeados para menus, itens de menu, comentários, widgets e formulários de utilizador!"
1058
 
1059
+ #: includes/admin/views/settings-info.php:109
1060
+ msgid "More Customization"
1061
+ msgstr "Maior personalização"
1062
 
1063
  #: includes/admin/views/settings-info.php:110
1064
+ msgid "New PHP (and JS) actions and filters have been added to allow for more customization."
1065
+ msgstr "Foram adicionadas novas acções e filtros de PHP (e JS) para permitir maior personalização."
1066
 
1067
+ #: includes/admin/views/settings-info.php:114
1068
+ msgid "Fresh UI"
1069
+ msgstr "Nova interface"
1070
 
1071
  #: includes/admin/views/settings-info.php:115
1072
+ msgid "The entire plugin has had a design refresh including new field types, settings and design!"
1073
+ msgstr "Toda a interface do plugin foi actualizada, incluindo novos tipos de campos, definições e design!"
1074
+
1075
+ #: includes/admin/views/settings-info.php:119
1076
  msgid "New Settings"
1077
  msgstr "Novas definições"
1078
 
1079
+ #: includes/admin/views/settings-info.php:120
1080
+ msgid "Field group settings have been added for Active, Label Placement, Instructions Placement and Description."
1081
+ msgstr "Foram adicionadas definições aos grupos de campos, tais como activação, posição da legenda, posição das instruções e descrição."
1082
 
1083
+ #: includes/admin/views/settings-info.php:124
1084
  msgid "Better Front End Forms"
1085
  msgstr "Melhores formulários para o seu site"
1086
 
1087
+ #: includes/admin/views/settings-info.php:125
1088
+ msgid "acf_form() can now create a new post on submission with lots of new settings."
1089
+ msgstr "Com acf_form() agora pode criar um novo conteúdo ao submeter, com muito mais definições."
1090
 
1091
+ #: includes/admin/views/settings-info.php:129
1092
  msgid "Better Validation"
1093
  msgstr "Melhor validação"
1094
 
1095
+ #: includes/admin/views/settings-info.php:130
1096
+ msgid "Form validation is now done via PHP + AJAX in favour of only JS."
1097
  msgstr "A validação de formulários agora é feita com PHP + AJAX em vez de apenas JS."
1098
 
1099
+ #: includes/admin/views/settings-info.php:134
 
 
 
 
 
 
 
 
1100
  msgid "Moving Fields"
1101
  msgstr "Mover campos"
1102
 
1103
+ #: includes/admin/views/settings-info.php:135
1104
+ msgid "New field group functionality allows you to move a field between groups & parents."
1105
  msgstr "Nova funcionalidade de grupo de campos permite mover um campo entre grupos e superiores."
1106
 
1107
+ #: includes/admin/views/settings-info.php:146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1108
  #, php-format
1109
  msgid "We think you'll love the changes in %s."
1110
  msgstr "Pensamos que vai gostar das alterações na versão %s."
1111
 
1112
+ #: includes/api/api-helpers.php:1046
1113
  msgid "Thumbnail"
1114
  msgstr "Miniatura"
1115
 
1116
+ #: includes/api/api-helpers.php:1047
1117
  msgid "Medium"
1118
  msgstr "Média"
1119
 
1120
+ #: includes/api/api-helpers.php:1048
1121
  msgid "Large"
1122
  msgstr "Grande"
1123
 
1124
+ #: includes/api/api-helpers.php:1097
1125
  msgid "Full Size"
1126
  msgstr "Tamanho original"
1127
 
1128
+ #: includes/api/api-helpers.php:1872 includes/api/api-term.php:147
1129
  #: pro/fields/class-acf-field-clone.php:996
1130
  msgid "(no title)"
1131
  msgstr "(sem título)"
1132
 
1133
+ #: includes/api/api-helpers.php:3954
1134
  #, php-format
1135
  msgid "Image width must be at least %dpx."
1136
  msgstr "A largura da imagem deve ser pelo menos de %dpx."
1137
 
1138
+ #: includes/api/api-helpers.php:3959
1139
  #, php-format
1140
  msgid "Image width must not exceed %dpx."
1141
  msgstr "A largura da imagem não deve exceder os %dpx."
1142
 
1143
+ #: includes/api/api-helpers.php:3975
1144
  #, php-format
1145
  msgid "Image height must be at least %dpx."
1146
  msgstr "A altura da imagem deve ser pelo menos de %dpx."
1147
 
1148
+ #: includes/api/api-helpers.php:3980
1149
  #, php-format
1150
  msgid "Image height must not exceed %dpx."
1151
  msgstr "A altura da imagem não deve exceder os %dpx."
1152
 
1153
+ #: includes/api/api-helpers.php:3998
1154
  #, php-format
1155
  msgid "File size must be at least %s."
1156
  msgstr "O tamanho do ficheiro deve ser pelo menos de %s."
1157
 
1158
+ #: includes/api/api-helpers.php:4003
1159
  #, php-format
1160
  msgid "File size must must not exceed %s."
1161
  msgstr "O tamanho do ficheiro não deve exceder %s."
1162
 
1163
+ #: includes/api/api-helpers.php:4037
1164
  #, php-format
1165
  msgid "File type must be %s."
1166
  msgstr "O tipo de ficheiro deve ser %s."
1167
 
1168
+ #: includes/assets.php:168
1169
  msgid "The changes you made will be lost if you navigate away from this page"
1170
  msgstr "As alterações que fez serão ignoradas se navegar para fora desta página."
1171
 
1172
+ #: includes/assets.php:171 includes/fields/class-acf-field-select.php:259
1173
  msgctxt "verb"
1174
  msgid "Select"
1175
  msgstr "Seleccionar"
1176
 
1177
+ #: includes/assets.php:172
1178
  msgctxt "verb"
1179
  msgid "Edit"
1180
  msgstr "Editar"
1181
 
1182
+ #: includes/assets.php:173
1183
  msgctxt "verb"
1184
  msgid "Update"
1185
  msgstr "Actualizar"
1186
 
1187
+ #: includes/assets.php:174
1188
  msgid "Uploaded to this post"
1189
  msgstr "Carregados neste artigo"
1190
 
1191
+ #: includes/assets.php:175
1192
  msgid "Expand Details"
1193
  msgstr "Expandir detalhes"
1194
 
1195
+ #: includes/assets.php:176
1196
  msgid "Collapse Details"
1197
  msgstr "Minimizar detalhes"
1198
 
1199
+ #: includes/assets.php:177
1200
  msgid "Restricted"
1201
  msgstr "Restrito"
1202
 
1203
+ #: includes/assets.php:178 includes/fields/class-acf-field-image.php:67
1204
  msgid "All images"
1205
  msgstr "Todas as imagens"
1206
 
1207
+ #: includes/assets.php:181
1208
  msgid "Validation successful"
1209
  msgstr "Validação bem sucedida"
1210
 
1211
+ #: includes/assets.php:182 includes/validation.php:285
1212
  #: includes/validation.php:296
1213
  msgid "Validation failed"
1214
  msgstr "A validação falhou"
1215
 
1216
+ #: includes/assets.php:183
1217
  msgid "1 field requires attention"
1218
  msgstr "1 campo requer a sua atenção"
1219
 
1220
+ #: includes/assets.php:184
1221
  #, php-format
1222
  msgid "%d fields require attention"
1223
  msgstr "%d campos requerem a sua atenção"
1224
 
1225
+ #: includes/assets.php:187
1226
  msgid "Are you sure?"
1227
  msgstr "Tem a certeza?"
1228
 
1229
+ #: includes/assets.php:188 includes/fields/class-acf-field-true_false.php:79
1230
  #: includes/fields/class-acf-field-true_false.php:159
1231
  #: pro/admin/views/html-settings-updates.php:89
1232
  msgid "Yes"
1233
  msgstr "Sim"
1234
 
1235
+ #: includes/assets.php:189 includes/fields/class-acf-field-true_false.php:80
1236
  #: includes/fields/class-acf-field-true_false.php:174
1237
  #: pro/admin/views/html-settings-updates.php:99
1238
  msgid "No"
1239
  msgstr "Não"
1240
 
1241
+ #: includes/assets.php:190 includes/fields/class-acf-field-file.php:154
1242
  #: includes/fields/class-acf-field-image.php:141
1243
  #: includes/fields/class-acf-field-link.php:140
1244
+ #: pro/fields/class-acf-field-gallery.php:360
1245
+ #: pro/fields/class-acf-field-gallery.php:548
1246
  msgid "Remove"
1247
  msgstr "Remover"
1248
 
1249
+ #: includes/assets.php:191
1250
  msgid "Cancel"
1251
  msgstr "Cancelar"
1252
 
1253
+ #: includes/assets.php:194
1254
  msgid "Has any value"
1255
  msgstr "Tem um valor qualquer"
1256
 
1257
+ #: includes/assets.php:195
1258
  msgid "Has no value"
1259
  msgstr "Não tem valor"
1260
 
1261
+ #: includes/assets.php:196
1262
  msgid "Value is equal to"
1263
  msgstr "O valor é igual a"
1264
 
1265
+ #: includes/assets.php:197
1266
  msgid "Value is not equal to"
1267
  msgstr "O valor é diferente de"
1268
 
1269
+ #: includes/assets.php:198
1270
  msgid "Value matches pattern"
1271
  msgstr "O valor corresponde ao padrão"
1272
 
1273
+ #: includes/assets.php:199
1274
  msgid "Value contains"
1275
  msgstr "O valor contém"
1276
 
1277
+ #: includes/assets.php:200
1278
  msgid "Value is greater than"
1279
  msgstr "O valor é maior do que"
1280
 
1281
+ #: includes/assets.php:201
1282
  msgid "Value is less than"
1283
  msgstr "O valor é menor do que"
1284
 
1285
+ #: includes/assets.php:202
1286
  msgid "Selection is greater than"
1287
  msgstr "A selecção é maior do que"
1288
 
1289
+ #: includes/assets.php:203
1290
  msgid "Selection is less than"
1291
  msgstr "A selecção é menor do que"
1292
 
1293
+ #: includes/assets.php:206 includes/forms/form-comment.php:166
1294
+ #: pro/admin/admin-options-page.php:327
1295
+ msgid "Edit field group"
1296
+ msgstr "Editar grupo de campos"
1297
+
1298
  #: includes/fields.php:308
1299
  msgid "Field type does not exist"
1300
  msgstr "Tipo de campo não existe"
1370
  #: includes/fields/class-acf-field-button-group.php:149
1371
  #: includes/fields/class-acf-field-checkbox.php:344
1372
  #: includes/fields/class-acf-field-radio.php:235
1373
+ #: includes/fields/class-acf-field-select.php:359
1374
  msgid "Choices"
1375
  msgstr "Opções"
1376
 
1377
  #: includes/fields/class-acf-field-button-group.php:150
1378
  #: includes/fields/class-acf-field-checkbox.php:345
1379
  #: includes/fields/class-acf-field-radio.php:236
1380
+ #: includes/fields/class-acf-field-select.php:360
1381
  msgid "Enter each choice on a new line."
1382
  msgstr "Insira cada opção numa linha separada."
1383
 
1384
  #: includes/fields/class-acf-field-button-group.php:150
1385
  #: includes/fields/class-acf-field-checkbox.php:345
1386
  #: includes/fields/class-acf-field-radio.php:236
1387
+ #: includes/fields/class-acf-field-select.php:360
1388
  msgid "For more control, you may specify both a value and label like this:"
1389
  msgstr "Para maior controlo, pode especificar tanto os valores como as legendas:"
1390
 
1391
  #: includes/fields/class-acf-field-button-group.php:150
1392
  #: includes/fields/class-acf-field-checkbox.php:345
1393
  #: includes/fields/class-acf-field-radio.php:236
1394
+ #: includes/fields/class-acf-field-select.php:360
1395
  msgid "red : Red"
1396
  msgstr "vermelho : Vermelho"
1397
 
1398
  #: includes/fields/class-acf-field-button-group.php:158
1399
  #: includes/fields/class-acf-field-page_link.php:513
1400
+ #: includes/fields/class-acf-field-post_object.php:411
1401
  #: includes/fields/class-acf-field-radio.php:244
1402
+ #: includes/fields/class-acf-field-select.php:377
1403
  #: includes/fields/class-acf-field-taxonomy.php:784
1404
  #: includes/fields/class-acf-field-user.php:409
1405
  msgid "Allow Null?"
1411
  #: includes/fields/class-acf-field-email.php:118
1412
  #: includes/fields/class-acf-field-number.php:127
1413
  #: includes/fields/class-acf-field-radio.php:281
1414
+ #: includes/fields/class-acf-field-range.php:149
1415
+ #: includes/fields/class-acf-field-select.php:368
1416
  #: includes/fields/class-acf-field-text.php:119
1417
  #: includes/fields/class-acf-field-textarea.php:102
1418
  #: includes/fields/class-acf-field-true_false.php:135
1419
  #: includes/fields/class-acf-field-url.php:100
1420
+ #: includes/fields/class-acf-field-wysiwyg.php:381
1421
  msgid "Default Value"
1422
  msgstr "Valor por omissão"
1423
 
1425
  #: includes/fields/class-acf-field-email.php:119
1426
  #: includes/fields/class-acf-field-number.php:128
1427
  #: includes/fields/class-acf-field-radio.php:282
1428
+ #: includes/fields/class-acf-field-range.php:150
1429
  #: includes/fields/class-acf-field-text.php:120
1430
  #: includes/fields/class-acf-field-textarea.php:103
1431
  #: includes/fields/class-acf-field-url.php:101
1432
+ #: includes/fields/class-acf-field-wysiwyg.php:382
1433
  msgid "Appears when creating a new post"
1434
  msgstr "Mostrado ao criar um novo conteúdo"
1435
 
1467
  #: includes/fields/class-acf-field-button-group.php:197
1468
  #: includes/fields/class-acf-field-checkbox.php:419
1469
  #: includes/fields/class-acf-field-radio.php:310
1470
+ #: includes/fields/class-acf-field-select.php:427
1471
  msgid "Value"
1472
  msgstr "Valor"
1473
 
1474
  #: includes/fields/class-acf-field-button-group.php:199
1475
  #: includes/fields/class-acf-field-checkbox.php:421
1476
  #: includes/fields/class-acf-field-radio.php:312
1477
+ #: includes/fields/class-acf-field-select.php:429
1478
  msgid "Both (Array)"
1479
  msgstr "Ambos (Array)"
1480
 
1508
  msgstr "Guarda valores personalizados nas opções do campo"
1509
 
1510
  #: includes/fields/class-acf-field-checkbox.php:381
1511
+ #: includes/fields/class-acf-field-select.php:369
1512
  msgid "Enter each default value on a new line"
1513
  msgstr "Insira cada valor por omissão numa linha separada"
1514
 
1600
 
1601
  #: includes/fields/class-acf-field-date_picker.php:210
1602
  #: includes/fields/class-acf-field-date_time_picker.php:200
1603
+ #: includes/fields/class-acf-field-post_object.php:431
1604
+ #: includes/fields/class-acf-field-relationship.php:634
1605
+ #: includes/fields/class-acf-field-select.php:422
1606
  #: includes/fields/class-acf-field-time_picker.php:124
1607
  #: includes/fields/class-acf-field-user.php:428
1608
  msgid "Return Format"
1723
  #: includes/fields/class-acf-field-email.php:136
1724
  #: includes/fields/class-acf-field-number.php:145
1725
  #: includes/fields/class-acf-field-password.php:80
1726
+ #: includes/fields/class-acf-field-range.php:188
1727
  #: includes/fields/class-acf-field-text.php:137
1728
  msgid "Prepend"
1729
  msgstr "Preceder"
1731
  #: includes/fields/class-acf-field-email.php:137
1732
  #: includes/fields/class-acf-field-number.php:146
1733
  #: includes/fields/class-acf-field-password.php:81
1734
+ #: includes/fields/class-acf-field-range.php:189
1735
  #: includes/fields/class-acf-field-text.php:138
1736
  msgid "Appears before the input"
1737
  msgstr "Mostrado antes do campo"
1739
  #: includes/fields/class-acf-field-email.php:145
1740
  #: includes/fields/class-acf-field-number.php:154
1741
  #: includes/fields/class-acf-field-password.php:89
1742
+ #: includes/fields/class-acf-field-range.php:197
1743
  #: includes/fields/class-acf-field-text.php:146
1744
  msgid "Append"
1745
  msgstr "Suceder"
1747
  #: includes/fields/class-acf-field-email.php:146
1748
  #: includes/fields/class-acf-field-number.php:155
1749
  #: includes/fields/class-acf-field-password.php:90
1750
+ #: includes/fields/class-acf-field-range.php:198
1751
  #: includes/fields/class-acf-field-text.php:147
1752
  msgid "Appears after the input"
1753
  msgstr "Mostrado depois do campo"
1773
  #: includes/fields/class-acf-field-file.php:259
1774
  #: includes/fields/class-acf-field-image.php:265
1775
  #: includes/fields/class-acf-field-image.php:294
1776
+ #: pro/fields/class-acf-field-gallery.php:707
1777
+ #: pro/fields/class-acf-field-gallery.php:736
1778
  msgid "File size"
1779
  msgstr "Tamanho do ficheiro"
1780
 
1796
 
1797
  #: includes/fields/class-acf-field-file.php:230
1798
  #: includes/fields/class-acf-field-image.php:230
1799
+ #: pro/fields/class-acf-field-gallery.php:672
1800
  msgid "Library"
1801
  msgstr "Biblioteca"
1802
 
1803
  #: includes/fields/class-acf-field-file.php:231
1804
  #: includes/fields/class-acf-field-image.php:231
1805
+ #: pro/fields/class-acf-field-gallery.php:673
1806
  msgid "Limit the media library choice"
1807
  msgstr "Limita a escolha da biblioteca de media."
1808
 
1815
  #: includes/locations/class-acf-location-user-form.php:87
1816
  #: includes/locations/class-acf-location-user-role.php:111
1817
  #: includes/locations/class-acf-location-widget.php:83
1818
+ #: pro/fields/class-acf-field-gallery.php:678
1819
  msgid "All"
1820
  msgstr "Todos"
1821
 
1822
  #: includes/fields/class-acf-field-file.php:237
1823
  #: includes/fields/class-acf-field-image.php:237
1824
+ #: pro/fields/class-acf-field-gallery.php:679
1825
  msgid "Uploaded to post"
1826
  msgstr "Carregados no artigo"
1827
 
1828
  #: includes/fields/class-acf-field-file.php:244
1829
  #: includes/fields/class-acf-field-image.php:244
1830
+ #: pro/fields/class-acf-field-gallery.php:686
1831
  msgid "Minimum"
1832
  msgstr "Mínimo"
1833
 
1838
 
1839
  #: includes/fields/class-acf-field-file.php:255
1840
  #: includes/fields/class-acf-field-image.php:273
1841
+ #: pro/fields/class-acf-field-gallery.php:715
1842
  msgid "Maximum"
1843
  msgstr "Máximo"
1844
 
1845
  #: includes/fields/class-acf-field-file.php:266
1846
  #: includes/fields/class-acf-field-image.php:302
1847
+ #: pro/fields/class-acf-field-gallery.php:744
1848
  msgid "Allowed file types"
1849
  msgstr "Tipos de ficheiros permitidos"
1850
 
1851
  #: includes/fields/class-acf-field-file.php:267
1852
  #: includes/fields/class-acf-field-image.php:303
1853
+ #: pro/fields/class-acf-field-gallery.php:745
1854
  msgid "Comma separated list. Leave blank for all types"
1855
  msgstr "Lista separada por vírgulas. Deixe em branco para permitir todos os tipos."
1856
 
1896
  #: includes/fields/class-acf-field-image.php:256
1897
  #: includes/fields/class-acf-field-image.php:285
1898
  #: includes/fields/class-acf-field-oembed.php:268
1899
+ #: pro/fields/class-acf-field-gallery.php:698
1900
+ #: pro/fields/class-acf-field-gallery.php:727
1901
  msgid "Height"
1902
  msgstr "Altura"
1903
 
1986
 
1987
  #: includes/fields/class-acf-field-image.php:245
1988
  #: includes/fields/class-acf-field-image.php:274
1989
+ #: pro/fields/class-acf-field-gallery.php:687
1990
+ #: pro/fields/class-acf-field-gallery.php:716
1991
  msgid "Restrict which images can be uploaded"
1992
  msgstr "Restringir que imagens que ser carregadas"
1993
 
1994
  #: includes/fields/class-acf-field-image.php:248
1995
  #: includes/fields/class-acf-field-image.php:277
1996
  #: includes/fields/class-acf-field-oembed.php:257
1997
+ #: pro/fields/class-acf-field-gallery.php:690
1998
+ #: pro/fields/class-acf-field-gallery.php:719
1999
  msgid "Width"
2000
  msgstr "Largura"
2001
 
2063
  msgstr "Número"
2064
 
2065
  #: includes/fields/class-acf-field-number.php:163
2066
+ #: includes/fields/class-acf-field-range.php:158
2067
  msgid "Minimum Value"
2068
  msgstr "Valor mínimo"
2069
 
2070
  #: includes/fields/class-acf-field-number.php:172
2071
+ #: includes/fields/class-acf-field-range.php:168
2072
  msgid "Maximum Value"
2073
  msgstr "Valor máximo"
2074
 
2075
  #: includes/fields/class-acf-field-number.php:181
2076
+ #: includes/fields/class-acf-field-range.php:178
2077
  msgid "Step Size"
2078
  msgstr "Valor dos passos"
2079
 
2104
  msgid "Embed Size"
2105
  msgstr "Tamanho da incorporação"
2106
 
2107
+ #: includes/fields/class-acf-field-page_link.php:25
2108
+ msgid "Page Link"
2109
+ msgstr "Ligação de página"
2110
+
2111
  #: includes/fields/class-acf-field-page_link.php:177
2112
  msgid "Archives"
2113
  msgstr "Arquivo"
2114
 
2115
  #: includes/fields/class-acf-field-page_link.php:269
2116
+ #: includes/fields/class-acf-field-post_object.php:267
2117
+ #: includes/fields/class-acf-field-taxonomy.php:961
2118
  msgid "Parent"
2119
  msgstr "Superior"
2120
 
2121
  #: includes/fields/class-acf-field-page_link.php:485
2122
+ #: includes/fields/class-acf-field-post_object.php:383
2123
+ #: includes/fields/class-acf-field-relationship.php:560
2124
  msgid "Filter by Post Type"
2125
  msgstr "Filtrar por tipo de conteúdo"
2126
 
2127
  #: includes/fields/class-acf-field-page_link.php:493
2128
+ #: includes/fields/class-acf-field-post_object.php:391
2129
+ #: includes/fields/class-acf-field-relationship.php:568
2130
  msgid "All post types"
2131
  msgstr "Todos os tipos de conteúdo"
2132
 
2133
  #: includes/fields/class-acf-field-page_link.php:499
2134
+ #: includes/fields/class-acf-field-post_object.php:397
2135
+ #: includes/fields/class-acf-field-relationship.php:574
2136
  msgid "Filter by Taxonomy"
2137
  msgstr "Filtrar por taxonomia"
2138
 
2139
  #: includes/fields/class-acf-field-page_link.php:507
2140
+ #: includes/fields/class-acf-field-post_object.php:405
2141
+ #: includes/fields/class-acf-field-relationship.php:582
2142
  msgid "All taxonomies"
2143
  msgstr "Todas as taxonomias"
2144
 
2147
  msgstr "Permitir URL do arquivo"
2148
 
2149
  #: includes/fields/class-acf-field-page_link.php:533
2150
+ #: includes/fields/class-acf-field-post_object.php:421
2151
+ #: includes/fields/class-acf-field-select.php:387
2152
  #: includes/fields/class-acf-field-user.php:419
2153
  msgid "Select multiple values?"
2154
  msgstr "Seleccionar valores múltiplos?"
2158
  msgstr "Senha"
2159
 
2160
  #: includes/fields/class-acf-field-post_object.php:25
2161
+ #: includes/fields/class-acf-field-post_object.php:436
2162
+ #: includes/fields/class-acf-field-relationship.php:639
2163
  msgid "Post Object"
2164
  msgstr "Conteúdo"
2165
 
2166
+ #: includes/fields/class-acf-field-post_object.php:437
2167
+ #: includes/fields/class-acf-field-relationship.php:640
2168
  msgid "Post ID"
2169
  msgstr "ID do conteúdo"
2170
 
2208
  msgid "No matches found"
2209
  msgstr "Nenhuma correspondência encontrada"
2210
 
2211
+ #: includes/fields/class-acf-field-relationship.php:411
2212
  msgid "Select post type"
2213
  msgstr "Seleccione tipo de conteúdo"
2214
 
2215
+ #: includes/fields/class-acf-field-relationship.php:420
2216
  msgid "Select taxonomy"
2217
  msgstr "Seleccione taxonomia"
2218
 
2219
+ #: includes/fields/class-acf-field-relationship.php:477
2220
  msgid "Search..."
2221
  msgstr "Pesquisar..."
2222
 
2223
+ #: includes/fields/class-acf-field-relationship.php:588
2224
  msgid "Filters"
2225
  msgstr "Filtros"
2226
 
2227
+ #: includes/fields/class-acf-field-relationship.php:594
2228
  #: includes/locations/class-acf-location-post-type.php:27
2229
  msgid "Post Type"
2230
  msgstr "Tipo de conteúdo"
2231
 
2232
+ #: includes/fields/class-acf-field-relationship.php:595
2233
  #: includes/fields/class-acf-field-taxonomy.php:28
2234
  #: includes/fields/class-acf-field-taxonomy.php:754
2235
  #: includes/locations/class-acf-location-taxonomy.php:27
2236
  msgid "Taxonomy"
2237
  msgstr "Taxonomia"
2238
 
2239
+ #: includes/fields/class-acf-field-relationship.php:602
2240
  msgid "Elements"
2241
  msgstr "Elementos"
2242
 
2243
+ #: includes/fields/class-acf-field-relationship.php:603
2244
  msgid "Selected elements will be displayed in each result"
2245
  msgstr "Os elementos seleccionados serão mostrados em cada resultado."
2246
 
2247
+ #: includes/fields/class-acf-field-relationship.php:614
2248
  msgid "Minimum posts"
2249
  msgstr "Mínimo de conteúdos"
2250
 
2251
+ #: includes/fields/class-acf-field-relationship.php:623
2252
  msgid "Maximum posts"
2253
  msgstr "Máximo de conteúdos"
2254
 
2255
+ #: includes/fields/class-acf-field-relationship.php:727
2256
+ #: pro/fields/class-acf-field-gallery.php:817
2257
  #, php-format
2258
  msgid "%s requires at least %s selection"
2259
  msgid_plural "%s requires at least %s selections"
2330
  msgid "Loading failed"
2331
  msgstr "Falhou ao carregar"
2332
 
2333
+ #: includes/fields/class-acf-field-select.php:397
2334
  #: includes/fields/class-acf-field-true_false.php:144
2335
  msgid "Stylised UI"
2336
  msgstr "Interface estilizada"
2337
 
2338
+ #: includes/fields/class-acf-field-select.php:407
2339
  msgid "Use AJAX to lazy load choices?"
2340
  msgstr "Utilizar AJAX para carregar opções?"
2341
 
2342
+ #: includes/fields/class-acf-field-select.php:423
2343
  msgid "Specify the value returned"
2344
  msgstr "Especifica o valor devolvido."
2345
 
2425
  msgid "Term ID"
2426
  msgstr "ID do termo"
2427
 
2428
+ #: includes/fields/class-acf-field-taxonomy.php:885
 
 
 
 
2429
  #, php-format
2430
  msgid "User unable to add new %s"
2431
  msgstr "O utilizador não pôde adicionar novo(a) %s"
2432
 
2433
+ #: includes/fields/class-acf-field-taxonomy.php:895
2434
  #, php-format
2435
  msgid "%s already exists"
2436
  msgstr "%s já existe"
2437
 
2438
+ #: includes/fields/class-acf-field-taxonomy.php:927
2439
  #, php-format
2440
  msgid "%s added"
2441
  msgstr "%s adicionado(a)"
2442
 
2443
+ #: includes/fields/class-acf-field-taxonomy.php:973
2444
  msgid "Add"
2445
  msgstr "Adicionar"
2446
 
2534
  msgid "Wysiwyg Editor"
2535
  msgstr "Editor wysiwyg"
2536
 
2537
+ #: includes/fields/class-acf-field-wysiwyg.php:330
2538
  msgid "Visual"
2539
  msgstr "Visual"
2540
 
2541
+ #: includes/fields/class-acf-field-wysiwyg.php:331
2542
  msgctxt "Name for the Text editor tab (formerly HTML)"
2543
  msgid "Text"
2544
  msgstr "HTML"
2545
 
2546
+ #: includes/fields/class-acf-field-wysiwyg.php:337
2547
  msgid "Click to initialize TinyMCE"
2548
  msgstr "Clique para inicializar o TinyMCE"
2549
 
2550
+ #: includes/fields/class-acf-field-wysiwyg.php:390
2551
  msgid "Tabs"
2552
  msgstr "Separadores"
2553
 
2554
+ #: includes/fields/class-acf-field-wysiwyg.php:395
2555
  msgid "Visual & Text"
2556
  msgstr "Visual e HTML"
2557
 
2558
+ #: includes/fields/class-acf-field-wysiwyg.php:396
2559
  msgid "Visual Only"
2560
  msgstr "Apenas visual"
2561
 
2562
+ #: includes/fields/class-acf-field-wysiwyg.php:397
2563
  msgid "Text Only"
2564
  msgstr "Apenas HTML"
2565
 
2566
+ #: includes/fields/class-acf-field-wysiwyg.php:404
2567
  msgid "Toolbar"
2568
  msgstr "Barra de ferramentas"
2569
 
2570
+ #: includes/fields/class-acf-field-wysiwyg.php:419
2571
  msgid "Show Media Upload Buttons?"
2572
  msgstr "Mostrar botões de carregar multimédia?"
2573
 
2574
+ #: includes/fields/class-acf-field-wysiwyg.php:429
2575
  msgid "Delay initialization?"
2576
  msgstr "Atrasar a inicialização?"
2577
 
2578
+ #: includes/fields/class-acf-field-wysiwyg.php:430
2579
  msgid "TinyMCE will not be initalized until field is clicked"
2580
  msgstr "O TinyMCE não será inicializado até que clique no campo"
2581
 
 
 
 
 
 
2582
  #: includes/forms/form-front.php:55
2583
  msgid "Validate Email"
2584
  msgstr "Validar email"
2585
 
2586
+ #: includes/forms/form-front.php:103 pro/fields/class-acf-field-gallery.php:590
2587
  #: pro/options-page.php:81
2588
  msgid "Update"
2589
  msgstr "Actualizar"
2608
  msgid "Forms"
2609
  msgstr "Formulários"
2610
 
2611
+ #: includes/locations.php:243
2612
  msgid "is equal to"
2613
  msgstr "é igual a"
2614
 
2615
+ #: includes/locations.php:244
2616
  msgid "is not equal to"
2617
  msgstr "não é igual a"
2618
 
2774
  msgid "Updates"
2775
  msgstr "Actualizações"
2776
 
2777
+ #: pro/admin/admin-settings-updates.php:238
2778
+ msgid "<b>Error</b>. Could not authenticate update package. Please check again or deactivate and reactivate your ACF PRO license."
2779
+ msgstr "<b>Erro</b>. Não foi possível autenticar o pacote de actualização. Por favor verifique de novo, ou desactive e reactive a sua licença do ACF PRO."
2780
+
2781
  #: pro/admin/views/html-settings-updates.php:7
2782
  msgid "Deactivate License"
2783
  msgstr "Desactivar licença"
2994
  msgid "Maximum selection reached"
2995
  msgstr "Máximo de selecção alcançado"
2996
 
2997
+ #: pro/fields/class-acf-field-gallery.php:338
2998
  msgid "Length"
2999
  msgstr "Comprimento"
3000
 
3001
+ #: pro/fields/class-acf-field-gallery.php:381
3002
  msgid "Caption"
3003
  msgstr "Legenda"
3004
 
3005
+ #: pro/fields/class-acf-field-gallery.php:390
3006
  msgid "Alt Text"
3007
  msgstr "Texto alternativo"
3008
 
3009
+ #: pro/fields/class-acf-field-gallery.php:561
3010
  msgid "Add to gallery"
3011
  msgstr "Adicionar à galeria"
3012
 
3013
+ #: pro/fields/class-acf-field-gallery.php:565
3014
  msgid "Bulk actions"
3015
  msgstr "Acções por lotes"
3016
 
3017
+ #: pro/fields/class-acf-field-gallery.php:566
3018
  msgid "Sort by date uploaded"
3019
  msgstr "Ordenar por data de carregamento"
3020
 
3021
+ #: pro/fields/class-acf-field-gallery.php:567
3022
  msgid "Sort by date modified"
3023
  msgstr "Ordenar por data de modificação"
3024
 
3025
+ #: pro/fields/class-acf-field-gallery.php:568
3026
  msgid "Sort by title"
3027
  msgstr "Ordenar por título"
3028
 
3029
+ #: pro/fields/class-acf-field-gallery.php:569
3030
  msgid "Reverse current order"
3031
  msgstr "Inverter ordem actual"
3032
 
3033
+ #: pro/fields/class-acf-field-gallery.php:587
3034
  msgid "Close"
3035
  msgstr "Fechar"
3036
 
3037
+ #: pro/fields/class-acf-field-gallery.php:641
3038
  msgid "Minimum Selection"
3039
  msgstr "Selecção mínima"
3040
 
3041
+ #: pro/fields/class-acf-field-gallery.php:650
3042
  msgid "Maximum Selection"
3043
  msgstr "Selecção máxima"
3044
 
3045
+ #: pro/fields/class-acf-field-gallery.php:659
3046
  msgid "Insert"
3047
  msgstr "Inserir"
3048
 
3049
+ #: pro/fields/class-acf-field-gallery.php:660
3050
  msgid "Specify where new attachments are added"
3051
  msgstr "Especifica onde serão adicionados os novos anexos."
3052
 
3053
+ #: pro/fields/class-acf-field-gallery.php:664
3054
  msgid "Append to the end"
3055
  msgstr "No fim"
3056
 
3057
+ #: pro/fields/class-acf-field-gallery.php:665
3058
  msgid "Prepend to the beginning"
3059
  msgstr "No início"
3060
 
3120
  msgid "http://www.elliotcondon.com/"
3121
  msgstr "http://www.elliotcondon.com/"
3122
 
3123
+ #~ msgid "Error validating request"
3124
+ #~ msgstr "Erro ao validar pedido."
3125
+
3126
+ #~ msgid "Advanced Custom Fields Database Upgrade"
3127
+ #~ msgstr "Actualização da base de dados do Advanced Custom Fields"
3128
+
3129
+ #~ msgid "Upgrade complete"
3130
+ #~ msgstr "Actualização concluída"
3131
+
3132
+ #~ msgid "Before you start using the new awesome features, please update your database to the newest version."
3133
+ #~ msgstr "Antes de começar a utilizar as incríveis novas funcionalidades, por favor actualize a sua base de dados para a versão mais recente."
3134
+
3135
+ #~ msgid "Please also ensure any premium add-ons (%s) have first been updated to the latest version."
3136
+ #~ msgstr "Por favor, em primeiro lugar certifique-se de actualizar todos os add-ons premium (%s) para a última versão."
3137
+
3138
+ #~ msgid "Database Upgrade complete. <a href=\"%s\">See what's new</a>"
3139
+ #~ msgstr "Actualização da base de dados concluída. <a href=\"%s\">Ver o que há de novo</a>"
3140
+
3141
+ #~ msgid "A smoother custom field experience"
3142
+ #~ msgstr "Uma experiência mais fácil com campos personalizados"
3143
+
3144
+ #~ msgid "To help make upgrading easy, <a href=\"%s\">login to your store account</a> and claim a free copy of ACF PRO!"
3145
+ #~ msgstr "Para facilitar a actualização, <a href=\"%s\">inicie sessão na sua conta da loja</a> e obtenha uma cópia gratuita do ACF PRO!"
3146
+
3147
+ #~ msgid "We also wrote an <a href=\"%s\">upgrade guide</a> to answer any questions, but if you do have one, please contact our support team via the <a href=\"%s\">help desk</a>"
3148
+ #~ msgstr "Escrevemos um <a href=\"%s\">guia de actualização</a> para responder a todas as dúvidas, se tiver alguma questão, por favor contacte a nossa equipa de suporte através da <a href=\"%s\">central de ajuda</a>."
3149
+
3150
+ #~ msgid "Under the Hood"
3151
+ #~ msgstr "Nos bastidores"
3152
+
3153
+ #~ msgid "Smarter field settings"
3154
+ #~ msgstr "Definições mais inteligentes dos campos"
3155
+
3156
+ #~ msgid "ACF now saves its field settings as individual post objects"
3157
+ #~ msgstr "O ACF agora guarda as suas definições de campos como conteúdos individuais"
3158
+
3159
+ #~ msgid "More fields use AJAX powered search to speed up page loading"
3160
+ #~ msgstr "Mais campos utilizam pesquisa com AJAX para aumentar a velocidade de carregamento"
3161
+
3162
+ #~ msgid "New auto export to JSON feature improves speed"
3163
+ #~ msgstr "Nova funcionalidade de exportação automática para JSON melhora a velocidade"
3164
+
3165
+ #~ msgid "Better version control"
3166
+ #~ msgstr "Melhor controlo de versões"
3167
+
3168
+ #~ msgid "New auto export to JSON feature allows field settings to be version controlled"
3169
+ #~ msgstr "Nova funcionalidade de exportação automática para JSON permite que as definições sejam controladas por versão"
3170
+
3171
+ #~ msgid "Swapped XML for JSON"
3172
+ #~ msgstr "XML substituído por JSON"
3173
+
3174
+ #~ msgid "Import / Export now uses JSON in favour of XML"
3175
+ #~ msgstr "Importar / Exportar agora utiliza JSON em vez de XML"
3176
+
3177
+ #~ msgid "New Forms"
3178
+ #~ msgstr "Novos formulários"
3179
+
3180
+ #~ msgid "Fields can now be mapped to comments, widgets and all user forms!"
3181
+ #~ msgstr "Os campos agora podem ser mapeados para comentários, widgets e formulários de utilizador!"
3182
+
3183
+ #~ msgid "A new field for embedding content has been added"
3184
+ #~ msgstr "Foi adicionado um novo campo para incorporar conteúdos"
3185
+
3186
+ #~ msgid "New Gallery"
3187
+ #~ msgstr "Nova galeria"
3188
+
3189
+ #~ msgid "The gallery field has undergone a much needed facelift"
3190
+ #~ msgstr "O campo de galeria sofreu alterações de cosmética importantes."
3191
+
3192
+ #~ msgid "Field group settings have been added for label placement and instruction placement"
3193
+ #~ msgstr "Foram adicionadas definições aos grupos de campos para a posição da legenda e instruções."
3194
+
3195
+ #~ msgid "acf_form() can now create a new post on submission"
3196
+ #~ msgstr "Com acf_form() agora pode criar um novo conteúdo ao submeter."
3197
+
3198
+ #~ msgid "Form validation is now done via PHP + AJAX in favour of only JS"
3199
+ #~ msgstr "A validação de formulários agora é feita com PHP + AJAX em vez de apenas JS."
3200
+
3201
+ #~ msgid "Relationship Field"
3202
+ #~ msgstr "Campo de relação"
3203
+
3204
+ #~ msgid "New Relationship field setting for 'Filters' (Search, Post Type, Taxonomy)"
3205
+ #~ msgstr "Nova definição 'Filtros' do campo Relação (Pesquisa, Tipo de conteúdo, Taxonomia)."
3206
+
3207
+ #~ msgid "New field group functionality allows you to move a field between groups & parents"
3208
+ #~ msgstr "Nova funcionalidade de grupo de campos permite mover um campo entre grupos e superiores."
3209
+
3210
+ #~ msgid "New archives group in page_link field selection"
3211
+ #~ msgstr "Novo grupo <em>Arquivo</em> no campo de selecção da ligação de página."
3212
+
3213
+ #~ msgid "Better Options Pages"
3214
+ #~ msgstr "Melhores páginas de opções"
3215
+
3216
+ #~ msgid "New functions for options page allow creation of both parent and child menu pages"
3217
+ #~ msgstr "Novas funções para as páginas de opções permitem a criação de páginas superiores e dependentes."
3218
+
3219
+ #~ msgid "Error."
3220
+ #~ msgstr "Erro."
3221
+
3222
  #~ msgid "checked"
3223
  #~ msgstr "seleccionado"
3224
 
readme.txt CHANGED
@@ -4,9 +4,9 @@ Tags: acf, advanced, custom, field, fields, form, repeater, content
4
  Requires at least: 4.4.0
5
  Tested up to: 4.9.9
6
  License: GPLv2 or later
7
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
 
9
- Customise WordPress with powerful, professional and intuitive fields.
10
 
11
  == Description ==
12
 
@@ -50,9 +50,9 @@ From your WordPress dashboard
50
 
51
  = What kind of support do you provide? =
52
 
53
- **Help Desk.** Support is currently provided via our email help desk. Questions are generally answered within 24 hours, with the exception of weekends and holidays. We answer questions related to ACF, it’s usage and provide minor customization guidance. We cannot guarantee support for questions which include custom theme code, or 3rd party plugin conflicts & compatibility. [Open a Support Ticket](http://support.advancedcustomfields.com/new-ticket/)
54
 
55
- **Support Forums.** Our Community Forums provide a great resource for searching and finding previously answered and asked support questions. You may create a new thread on these forums, however, it is not guaranteed that you will receive an answer from our support team. This is more of an area for developers to talk to one another, post ideas, plugins and provide basic help. [View the Support Forum](http://support.advancedcustomfields.com)
56
 
57
 
58
  == Screenshots ==
@@ -66,6 +66,18 @@ From your WordPress dashboard
66
 
67
  == Changelog ==
68
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  = 5.7.6 =
70
  *Release Date - 12 September 2018*
71
 
@@ -108,7 +120,7 @@ From your WordPress dashboard
108
  = 5.7.2 =
109
  *Release Date - 6 August 2018*
110
 
111
- * Fix - Fixed bug preventing the Google Maps Field address from being customised.
112
  * Fix - Improved logic to request and cache plugin update information.
113
  * Fix - Fixed bug preventing JS initialization when editing widgets in accessibility mode.
114
  * Fix - Added missing $parent argument to term_exists() function when adding a new term via taxonomy field popup.
@@ -333,7 +345,7 @@ From your WordPress dashboard
333
 
334
  = 5.5.1 =
335
  * Select field: Fixed bug preventing some field settings from being selected
336
- * Date picker field: Improved compatibility with customised values
337
  * Core: Added new 'enqueue_datepicker' setting which can be used to prevent the library from being enqueued
338
  * Core: Added new 'enqueue_datetimepicker' setting which can be used to prevent the library from being enqueued
339
  * Core: Minor fixes and improvements
@@ -434,7 +446,7 @@ View full changelog: https://www.advancedcustomfields.com/changelog/
434
  == Upgrade Notice ==
435
 
436
  = 5.2.7 =
437
- * Field class names have changed slightly in v5.2.7 from `field_type-{$type}` to `acf-field-{$type}`. This change was introduced to better optimise JS performance. The previous class names can be added back in with the following filter: https://www.advancedcustomfields.com/resources/acfcompatibility/
438
 
439
  = 3.0.0 =
440
  * Editor is broken in WordPress 3.3
4
  Requires at least: 4.4.0
5
  Tested up to: 4.9.9
6
  License: GPLv2 or later
7
+ License URI: https://www.gnu.org/licenses/gpl-2.0.html
8
 
9
+ Customize WordPress with powerful, professional and intuitive fields.
10
 
11
  == Description ==
12
 
50
 
51
  = What kind of support do you provide? =
52
 
53
+ **Help Desk.** Support is currently provided via our email help desk. Questions are generally answered within 24 hours, with the exception of weekends and holidays. We answer questions related to ACF, it’s usage and provide minor customization guidance. We cannot guarantee support for questions which include custom theme code, or 3rd party plugin conflicts & compatibility. [Open a Support Ticket](https://www.advancedcustomfields.com/support/)
54
 
55
+ **Support Forums.** Our Community Forums provide a great resource for searching and finding previously answered and asked support questions. You may create a new thread on these forums, however, it is not guaranteed that you will receive an answer from our support team. This is more of an area for developers to talk to one another, post ideas, plugins and provide basic help. [View the Support Forum](https://support.advancedcustomfields.com/)
56
 
57
 
58
  == Screenshots ==
66
 
67
  == Changelog ==
68
 
69
+ = 5.7.7 =
70
+ *Release Date - 1 October 2018*
71
+
72
+ * Fix - Fixed various plugin update issues.
73
+ * Tweak - Added 'language' to Google Maps API url.
74
+ * Dev - Major improvements to the `acf.models.Postbox` model.
75
+ * Dev - Added JS filter 'check_screen_args'.
76
+ * Dev - Added JS action 'check_screen_complete'.
77
+ * Dev - Added action 'acf/options_page/submitbox_before_major_actions'.
78
+ * Dev - Added action 'acf/options_page/submitbox_major_actions'.
79
+ * i18n - Updated Portuguese language thanks to Pedro Mendonça
80
+
81
  = 5.7.6 =
82
  *Release Date - 12 September 2018*
83
 
120
  = 5.7.2 =
121
  *Release Date - 6 August 2018*
122
 
123
+ * Fix - Fixed bug preventing the Google Maps Field address from being customized.
124
  * Fix - Improved logic to request and cache plugin update information.
125
  * Fix - Fixed bug preventing JS initialization when editing widgets in accessibility mode.
126
  * Fix - Added missing $parent argument to term_exists() function when adding a new term via taxonomy field popup.
345
 
346
  = 5.5.1 =
347
  * Select field: Fixed bug preventing some field settings from being selected
348
+ * Date picker field: Improved compatibility with customized values
349
  * Core: Added new 'enqueue_datepicker' setting which can be used to prevent the library from being enqueued
350
  * Core: Added new 'enqueue_datetimepicker' setting which can be used to prevent the library from being enqueued
351
  * Core: Minor fixes and improvements
446
  == Upgrade Notice ==
447
 
448
  = 5.2.7 =
449
+ * Field class names have changed slightly in v5.2.7 from `field_type-{$type}` to `acf-field-{$type}`. This change was introduced to better optimize JS performance. The previous class names can be added back in with the following filter: https://www.advancedcustomfields.com/resources/acfcompatibility/
450
 
451
  = 3.0.0 =
452
  * Editor is broken in WordPress 3.3