Advanced Custom Fields - Version 5.7.6

Version Description

Release Date - 12 September 2018

  • Fix - Fixed unload prompt not working.
  • Dev - Reduced number of queries needed to populate the relationship field taxonomy filter.
  • Dev - Added 'nav_menu_item_id' and 'nav_menu_item_depth' to get_field_groups() query.
  • Dev - Reordered various actions and filters for more usefulness.
  • i18n - Updated Polish language thanks to Dariusz Zielonka
Download this release

Release Info

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

Code changes from version 5.7.5 to 5.7.6

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.5
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.5';
22
 
23
  /** @var array The plugin settings array */
24
  var $settings = array();
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
  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();
assets/css/acf-global.css CHANGED
@@ -1052,7 +1052,8 @@ html[dir="rtl"] #acf-popup .acf-popup-box .title .acf-icon {
1052
  }
1053
  #acf-upgrade-notice .col-content {
1054
  float: left;
1055
- width: 65%;
 
1056
  }
1057
  #acf-upgrade-notice .col-actions {
1058
  float: right;
@@ -1063,19 +1064,28 @@ html[dir="rtl"] #acf-popup .acf-popup-box .title .acf-icon {
1063
  float: left;
1064
  width: 70px;
1065
  height: 70px;
1066
- margin: 0 20px 0 0;
1067
  }
1068
  #acf-upgrade-notice h2 {
1069
  font-size: 16px;
1070
- margin: 0;
1071
  }
1072
  #acf-upgrade-notice p {
1073
  padding: 0;
1074
- margin-bottom: 0;
1075
  }
1076
  #acf-upgrade-notice .button:before {
1077
  margin-top: 11px;
1078
  }
 
 
 
 
 
 
 
 
 
1079
  /*--------------------------------------------------------------------------------------------
1080
  *
1081
  * Welcome
1052
  }
1053
  #acf-upgrade-notice .col-content {
1054
  float: left;
1055
+ width: 55%;
1056
+ padding-left: 90px;
1057
  }
1058
  #acf-upgrade-notice .col-actions {
1059
  float: right;
1064
  float: left;
1065
  width: 70px;
1066
  height: 70px;
1067
+ margin: 0 0 0 -90px;
1068
  }
1069
  #acf-upgrade-notice h2 {
1070
  font-size: 16px;
1071
+ margin: 2px 0 6.5px;
1072
  }
1073
  #acf-upgrade-notice p {
1074
  padding: 0;
1075
+ margin: 0;
1076
  }
1077
  #acf-upgrade-notice .button:before {
1078
  margin-top: 11px;
1079
  }
1080
+ @media screen and (max-width: 640px) {
1081
+ #acf-upgrade-notice .col-content,
1082
+ #acf-upgrade-notice .col-actions {
1083
+ float: none;
1084
+ padding-left: 90px;
1085
+ width: auto;
1086
+ text-align: left;
1087
+ }
1088
+ }
1089
  /*--------------------------------------------------------------------------------------------
1090
  *
1091
  * Welcome
assets/js/acf-input.js CHANGED
@@ -3489,12 +3489,12 @@
3489
  changed: false,
3490
 
3491
  actions: {
3492
- 'change_field': 'startListening',
3493
- 'validation_failure': 'startListening'
3494
  },
3495
 
3496
  events: {
3497
- 'submit form': 'stopListening'
 
3498
  },
3499
 
3500
  reset: function(){
@@ -8140,6 +8140,7 @@
8140
 
8141
  // prevent
8142
  e.preventDefault();
 
8143
 
8144
  // basic validation
8145
  if( $name.val() === '' ) {
@@ -8728,7 +8729,7 @@
8728
  },
8729
 
8730
  choices: function( field ){
8731
- return '<intput type="text" />';
8732
  }
8733
  });
8734
 
@@ -12652,13 +12653,13 @@
12652
  var findSubmitWrap = function( $form ){
12653
 
12654
  // default post submit div
12655
- var $wrap = $('#submitdiv');
12656
  if( $wrap.length ) {
12657
  return $wrap;
12658
  }
12659
 
12660
  // 3rd party publish box
12661
- var $wrap = $('#submitpost');
12662
  if( $wrap.length ) {
12663
  return $wrap;
12664
  }
3489
  changed: false,
3490
 
3491
  actions: {
3492
+ 'validation_failure': 'startListening'
 
3493
  },
3494
 
3495
  events: {
3496
+ 'change .acf-field': 'startListening',
3497
+ 'submit form': 'stopListening'
3498
  },
3499
 
3500
  reset: function(){
8140
 
8141
  // prevent
8142
  e.preventDefault();
8143
+ e.stopImmediatePropagation();
8144
 
8145
  // basic validation
8146
  if( $name.val() === '' ) {
8729
  },
8730
 
8731
  choices: function( field ){
8732
+ return '<input type="text" />';
8733
  }
8734
  });
8735
 
12653
  var findSubmitWrap = function( $form ){
12654
 
12655
  // default post submit div
12656
+ var $wrap = $form.find('#submitdiv');
12657
  if( $wrap.length ) {
12658
  return $wrap;
12659
  }
12660
 
12661
  // 3rd party publish box
12662
+ var $wrap = $form.find('#submitpost');
12663
  if( $wrap.length ) {
12664
  return $wrap;
12665
  }
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:{change_field:"startListening",validation_failure:"startListening"},events:{"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(),""===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)},selectTerm:function(t){
3
- 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'<intput 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=$("#submitdiv");if(e.length)return e;var e=$("#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($,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);
includes/admin/admin-field-groups.php CHANGED
@@ -39,9 +39,26 @@ class acf_admin_field_groups {
39
  add_action('trashed_post', array($this, 'trashed_post'));
40
  add_action('untrashed_post', array($this, 'untrashed_post'));
41
  add_action('deleted_post', array($this, 'deleted_post'));
42
-
43
  }
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  /*
47
  * current_screen
@@ -60,9 +77,7 @@ class acf_admin_field_groups {
60
 
61
  // validate screen
62
  if( !acf_is_screen('edit-acf-field-group') ) {
63
-
64
  return;
65
-
66
  }
67
 
68
 
39
  add_action('trashed_post', array($this, 'trashed_post'));
40
  add_action('untrashed_post', array($this, 'untrashed_post'));
41
  add_action('deleted_post', array($this, 'deleted_post'));
42
+ add_action('load-edit.php', array($this, 'maybe_redirect_edit'));
43
  }
44
 
45
+ /**
46
+ * maybe_redirect_edit
47
+ *
48
+ * Redirects the user from the old ACF4 edit page to the new ACF5 edit page
49
+ *
50
+ * @date 17/9/18
51
+ * @since 5.7.6
52
+ *
53
+ * @param void
54
+ * @return void
55
+ */
56
+ function maybe_redirect_edit() {
57
+ if( acf_maybe_get_GET('post_type') == 'acf' ) {
58
+ wp_redirect( admin_url($this->url) );
59
+ exit;
60
+ }
61
+ }
62
 
63
  /*
64
  * current_screen
77
 
78
  // validate screen
79
  if( !acf_is_screen('edit-acf-field-group') ) {
 
80
  return;
 
81
  }
82
 
83
 
includes/admin/views/html-notice-upgrade.php CHANGED
@@ -21,7 +21,7 @@ if( !acf_get_setting('pro') ) {
21
  <h2><?php _e("Database Upgrade Required",'acf'); ?></h2>
22
  <p><?php printf(__("Thank you for updating to %s v%s!", 'acf'), acf_get_setting('name'), acf_get_setting('version') ); ?><br /><?php _e("This version contains improvements to your database and requires an upgrade.", 'acf'); ?></p>
23
  <?php if( !empty($plugins) ): ?>
24
- <p><?php printf(__("Please also ensure any premium add-ons (%s) have first been updated to the latest version.", 'acf'), implode(', ', $plugins) ); ?></p>
25
  <?php endif; ?>
26
  </div>
27
 
21
  <h2><?php _e("Database Upgrade Required",'acf'); ?></h2>
22
  <p><?php printf(__("Thank you for updating to %s v%s!", 'acf'), acf_get_setting('name'), acf_get_setting('version') ); ?><br /><?php _e("This version contains improvements to your database and requires an upgrade.", 'acf'); ?></p>
23
  <?php if( !empty($plugins) ): ?>
24
+ <p><?php printf(__("Please also check all premium add-ons (%s) are updated to the latest version.", 'acf'), implode(', ', $plugins) ); ?></p>
25
  <?php endif; ?>
26
  </div>
27
 
includes/api/api-field.php CHANGED
@@ -97,11 +97,18 @@ function acf_get_valid_field( $field = false ) {
97
  $field['_valid'] = 1;
98
 
99
 
100
- // field specific defaults
101
- $field = apply_filters( "acf/validate_field", $field );
 
 
 
 
 
 
102
  $field = apply_filters( "acf/validate_field/type={$field['type']}", $field );
 
103
 
104
-
105
  // translate
106
  $field = acf_translate_field( $field );
107
 
@@ -140,10 +147,17 @@ function acf_translate_field( $field ) {
140
  $field['instructions'] = acf_translate( $field['instructions'] );
141
 
142
 
143
- // filters
144
- $field = apply_filters( "acf/translate_field", $field );
 
 
 
 
 
 
145
  $field = apply_filters( "acf/translate_field/type={$field['type']}", $field );
146
-
 
147
  }
148
 
149
 
@@ -173,9 +187,17 @@ function acf_clone_field( $field, $clone_field ) {
173
  $field['_clone'] = $clone_field['key'];
174
 
175
 
176
- // filters
177
- $field = apply_filters( "acf/clone_field", $field, $clone_field );
 
 
 
 
 
 
 
178
  $field = apply_filters( "acf/clone_field/type={$field['type']}", $field, $clone_field );
 
179
 
180
 
181
  // return
@@ -215,11 +237,20 @@ function acf_prepare_field( $field ) {
215
  $field['_prepare'] = 1;
216
 
217
 
218
- // filter to 3rd party customization
219
- $field = apply_filters( "acf/prepare_field", $field );
220
- $field = apply_filters( "acf/prepare_field/type={$field['type']}", $field );
221
- $field = apply_filters( "acf/prepare_field/name={$field['_name']}", $field );
222
- $field = apply_filters( "acf/prepare_field/key={$field['key']}", $field );
 
 
 
 
 
 
 
 
 
223
 
224
 
225
  // bail ealry if no field
@@ -391,10 +422,18 @@ function acf_render_field( $field = false ) {
391
  if( !$field ) return;
392
 
393
 
394
- // create field specific html
395
- do_action( "acf/render_field", $field );
396
- do_action( "acf/render_field/type={$field['type']}", $field );
397
-
 
 
 
 
 
 
 
 
398
  }
399
 
400
 
@@ -894,11 +933,18 @@ function acf_get_field( $selector = null, $db_only = false ) {
894
  if( $db_only ) return $field;
895
 
896
 
897
- // filter for 3rd party customization
898
- $field = apply_filters( "acf/load_field", $field);
899
- $field = apply_filters( "acf/load_field/type={$field['type']}", $field );
900
- $field = apply_filters( "acf/load_field/name={$field['name']}", $field );
901
- $field = apply_filters( "acf/load_field/key={$field['key']}", $field );
 
 
 
 
 
 
 
902
 
903
 
904
  // update cache
@@ -1244,11 +1290,18 @@ function acf_update_field( $field = false, $specific = false ) {
1244
  }
1245
 
1246
 
1247
- // filter for 3rd party customization
1248
- $field = apply_filters( "acf/update_field", $field);
1249
- $field = apply_filters( "acf/update_field/type={$field['type']}", $field );
1250
- $field = apply_filters( "acf/update_field/name={$field['name']}", $field );
1251
- $field = apply_filters( "acf/update_field/key={$field['key']}", $field );
 
 
 
 
 
 
 
1252
 
1253
 
1254
  // store origional field for return
@@ -1506,9 +1559,16 @@ function acf_duplicate_field( $selector = 0, $new_parent = 0 ){
1506
  }
1507
 
1508
 
1509
- // filter for 3rd party customization
1510
- $field = apply_filters( "acf/duplicate_field", $field);
 
 
 
 
 
 
1511
  $field = apply_filters( "acf/duplicate_field/type={$field['type']}", $field );
 
1512
 
1513
 
1514
  // save
@@ -1548,9 +1608,18 @@ function acf_delete_field( $selector = 0 ) {
1548
  wp_delete_post( $field['ID'], true );
1549
 
1550
 
1551
- // action for 3rd party customisation
1552
- do_action( "acf/delete_field", $field);
1553
- do_action( "acf/delete_field/type={$field['type']}", $field );
 
 
 
 
 
 
 
 
 
1554
 
1555
 
1556
  // clear cache
@@ -1708,9 +1777,16 @@ function acf_prepare_field_for_export( $field ) {
1708
  ));
1709
 
1710
 
1711
- // filter for 3rd party customization
1712
- $field = apply_filters( "acf/prepare_field_for_export", $field );
 
 
 
 
 
 
1713
  $field = apply_filters( "acf/prepare_field_for_export/type={$field['type']}", $field );
 
1714
 
1715
 
1716
  // return
@@ -1803,9 +1879,16 @@ function acf_prepare_field_for_import( $field ) {
1803
  ));
1804
 
1805
 
1806
- // filter for 3rd party customization
1807
- $field = apply_filters( "acf/prepare_field_for_import", $field );
 
 
 
 
 
 
1808
  $field = apply_filters( "acf/prepare_field_for_import/type={$field['type']}", $field );
 
1809
 
1810
 
1811
  // return
@@ -1852,9 +1935,18 @@ function acf_get_sub_field( $selector, $field ) {
1852
  }
1853
 
1854
 
1855
- // filter for 3rd party customization
1856
- $sub_field = apply_filters( "acf/get_sub_field", $sub_field, $selector, $field );
 
 
 
 
 
 
 
 
1857
  $sub_field = apply_filters( "acf/get_sub_field/type={$field['type']}", $sub_field, $selector, $field );
 
1858
 
1859
 
1860
  // return
@@ -2029,4 +2121,57 @@ function acf_prefix_fields( &$fields, $prefix = 'acf' ) {
2029
 
2030
  }
2031
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2032
  ?>
97
  $field['_valid'] = 1;
98
 
99
 
100
+ /**
101
+ * Filters the $field array to validate settings.
102
+ *
103
+ * @date 12/02/2014
104
+ * @since 5.0.0
105
+ *
106
+ * @param array $field The field array.
107
+ */
108
  $field = apply_filters( "acf/validate_field/type={$field['type']}", $field );
109
+ $field = apply_filters( "acf/validate_field", $field );
110
 
111
+
112
  // translate
113
  $field = acf_translate_field( $field );
114
 
147
  $field['instructions'] = acf_translate( $field['instructions'] );
148
 
149
 
150
+ /**
151
+ * Filters the $field array to translate strings.
152
+ *
153
+ * @date 12/02/2014
154
+ * @since 5.0.0
155
+ *
156
+ * @param array $field The field array.
157
+ */
158
  $field = apply_filters( "acf/translate_field/type={$field['type']}", $field );
159
+ $field = apply_filters( "acf/translate_field", $field );
160
+
161
  }
162
 
163
 
187
  $field['_clone'] = $clone_field['key'];
188
 
189
 
190
+ /**
191
+ * Filters the $field array when it is being cloned.
192
+ *
193
+ * @date 12/02/2014
194
+ * @since 5.0.0
195
+ *
196
+ * @param array $field The field array.
197
+ * @param array $clone_field The clone field array.
198
+ */
199
  $field = apply_filters( "acf/clone_field/type={$field['type']}", $field, $clone_field );
200
+ $field = apply_filters( "acf/clone_field", $field, $clone_field );
201
 
202
 
203
  // return
237
  $field['_prepare'] = 1;
238
 
239
 
240
+ /**
241
+ * Filters the $field array.
242
+ *
243
+ * Allows developers to modify field settings or return false to remove field.
244
+ *
245
+ * @date 12/02/2014
246
+ * @since 5.0.0
247
+ *
248
+ * @param array $field The field array.
249
+ */
250
+ $field = apply_filters( "acf/prepare_field/type={$field['type']}", $field );
251
+ $field = apply_filters( "acf/prepare_field/name={$field['_name']}", $field );
252
+ $field = apply_filters( "acf/prepare_field/key={$field['key']}", $field );
253
+ $field = apply_filters( "acf/prepare_field", $field );
254
 
255
 
256
  // bail ealry if no field
422
  if( !$field ) return;
423
 
424
 
425
+ /**
426
+ * Fires when rendering a field.
427
+ *
428
+ * @date 12/02/2014
429
+ * @since 5.0.0
430
+ *
431
+ * @param array $field The field array.
432
+ */
433
+ do_action( "acf/render_field/type={$field['type']}", $field );
434
+ do_action( "acf/render_field/name={$field['_name']}", $field );
435
+ do_action( "acf/render_field/key={$field['key']}", $field );
436
+ do_action( "acf/render_field", $field );
437
  }
438
 
439
 
933
  if( $db_only ) return $field;
934
 
935
 
936
+ /**
937
+ * Filters the $field array after it has been loaded.
938
+ *
939
+ * @date 12/02/2014
940
+ * @since 5.0.0
941
+ *
942
+ * @param array $field The field array.
943
+ */
944
+ $field = apply_filters( "acf/load_field/type={$field['type']}", $field );
945
+ $field = apply_filters( "acf/load_field/name={$field['_name']}", $field );
946
+ $field = apply_filters( "acf/load_field/key={$field['key']}", $field );
947
+ $field = apply_filters( "acf/load_field", $field );
948
 
949
 
950
  // update cache
1290
  }
1291
 
1292
 
1293
+ /**
1294
+ * Filters the $field array before it is updated.
1295
+ *
1296
+ * @date 12/02/2014
1297
+ * @since 5.0.0
1298
+ *
1299
+ * @param array $field The field array.
1300
+ */
1301
+ $field = apply_filters( "acf/update_field/type={$field['type']}", $field );
1302
+ $field = apply_filters( "acf/update_field/name={$field['_name']}", $field );
1303
+ $field = apply_filters( "acf/update_field/key={$field['key']}", $field );
1304
+ $field = apply_filters( "acf/update_field", $field );
1305
 
1306
 
1307
  // store origional field for return
1559
  }
1560
 
1561
 
1562
+ /**
1563
+ * Filters the $field array after it has been duplicated.
1564
+ *
1565
+ * @date 12/02/2014
1566
+ * @since 5.0.0
1567
+ *
1568
+ * @param array $field The field array.
1569
+ */
1570
  $field = apply_filters( "acf/duplicate_field/type={$field['type']}", $field );
1571
+ $field = apply_filters( "acf/duplicate_field", $field);
1572
 
1573
 
1574
  // save
1608
  wp_delete_post( $field['ID'], true );
1609
 
1610
 
1611
+ /**
1612
+ * Fires immediately after a field has been deleted.
1613
+ *
1614
+ * @date 12/02/2014
1615
+ * @since 5.0.0
1616
+ *
1617
+ * @param array $field The field array.
1618
+ */
1619
+ do_action( "acf/delete_field/type={$field['type']}", $field );
1620
+ do_action( "acf/delete_field/name={$field['_name']}", $field );
1621
+ do_action( "acf/delete_field/key={$field['key']}", $field );
1622
+ do_action( "acf/delete_field", $field );
1623
 
1624
 
1625
  // clear cache
1777
  ));
1778
 
1779
 
1780
+ /**
1781
+ * Filters the $field array before being returned to the export tool.
1782
+ *
1783
+ * @date 12/02/2014
1784
+ * @since 5.0.0
1785
+ *
1786
+ * @param array $field The field array.
1787
+ */
1788
  $field = apply_filters( "acf/prepare_field_for_export/type={$field['type']}", $field );
1789
+ $field = apply_filters( "acf/prepare_field_for_export", $field );
1790
 
1791
 
1792
  // return
1879
  ));
1880
 
1881
 
1882
+ /**
1883
+ * Filters the $field array before being returned to the import tool.
1884
+ *
1885
+ * @date 12/02/2014
1886
+ * @since 5.0.0
1887
+ *
1888
+ * @param array $field The field array.
1889
+ */
1890
  $field = apply_filters( "acf/prepare_field_for_import/type={$field['type']}", $field );
1891
+ $field = apply_filters( "acf/prepare_field_for_import", $field );
1892
 
1893
 
1894
  // return
1935
  }
1936
 
1937
 
1938
+ /**
1939
+ * Filters the $sub_field found.
1940
+ *
1941
+ * @date 12/02/2014
1942
+ * @since 5.0.0
1943
+ *
1944
+ * @param array $sub_field The found sub field array.
1945
+ * @param string $selector The selector used to search.
1946
+ * @param array $field The parent field array.
1947
+ */
1948
  $sub_field = apply_filters( "acf/get_sub_field/type={$field['type']}", $sub_field, $selector, $field );
1949
+ $sub_field = apply_filters( "acf/get_sub_field", $sub_field, $selector, $field );
1950
 
1951
 
1952
  // return
2121
 
2122
  }
2123
 
2124
+ /**
2125
+ * acf_apply_field_filters
2126
+ *
2127
+ * description
2128
+ *
2129
+ * @date 11/9/18
2130
+ * @since 5.7.6
2131
+ *
2132
+ * @param type $var Description. Default.
2133
+ * @return type Description.
2134
+ */
2135
+ /*
2136
+ function acf_apply_field_filters( $value ) {
2137
+
2138
+ // get function args
2139
+ $args = func_get_args();
2140
+
2141
+ // find field in $args
2142
+ $field = false;
2143
+ foreach( $args as $arg ) {
2144
+ if( is_array($arg) && isset($arg['key'], $arg['type'], $arg['_name']) ) {
2145
+ $field = $arg;
2146
+ break;
2147
+ }
2148
+ }
2149
+
2150
+ // vars
2151
+ $filter = current_filter();
2152
+
2153
+ // unshift tag to args
2154
+ array_unshift($args, $filter);
2155
+
2156
+ // apply field filters
2157
+ if( $field ) {
2158
+
2159
+ // $filter/type=$type
2160
+ $args[0] = "{$filter}/type={$field['type']}";
2161
+ $value = call_user_func_array('apply_filters', $args);
2162
+
2163
+ // $filter/name=$name
2164
+ $args[0] = "{$filter}/name={$field['_name']}";
2165
+ $value = call_user_func_array('apply_filters', $args);
2166
+
2167
+ // $filter/key=$key
2168
+ $args[0] = "{$filter}/key={$field['key']}";
2169
+ $value = call_user_func_array('apply_filters', $args);
2170
+ }
2171
+
2172
+ // return
2173
+ return $value;
2174
+ }
2175
+ */
2176
+
2177
  ?>
includes/api/api-helpers.php CHANGED
@@ -1228,30 +1228,20 @@ function acf_get_locale() {
1228
 
1229
  function acf_get_terms( $args ) {
1230
 
1231
- // global
1232
- global $wp_version;
1233
-
1234
-
1235
- // vars
1236
- $terms = array();
1237
-
1238
-
1239
- // WP 4.5+
1240
- if( version_compare($wp_version, '4.5', '>=' ) ) {
1241
-
1242
- $terms = get_terms( $args );
1243
-
1244
- // WP < 4.5
1245
- } else {
1246
-
1247
- $terms = get_terms( $args['taxonomy'], $args );
1248
 
 
 
 
1249
  }
1250
 
1251
-
1252
  // return
1253
- return $terms;
1254
-
1255
  }
1256
 
1257
 
@@ -1327,36 +1317,6 @@ function acf_get_taxonomy_terms( $taxonomies = array() ) {
1327
  }
1328
 
1329
 
1330
- function acf_get_term_title( $term ) {
1331
-
1332
- // title
1333
- $title = $term->name;
1334
-
1335
-
1336
- // empty
1337
- if( $title === '' ) {
1338
-
1339
- $title = __('(no title)', 'acf');
1340
-
1341
- }
1342
-
1343
-
1344
- // ancestors
1345
- if( is_taxonomy_hierarchical($term->taxonomy) ) {
1346
-
1347
- $ancestors = get_ancestors( $term->term_id, $term->taxonomy );
1348
-
1349
- $title = str_repeat('- ', count($ancestors)) . $title;
1350
-
1351
- }
1352
-
1353
-
1354
- // return
1355
- return $title;
1356
-
1357
- }
1358
-
1359
-
1360
  /*
1361
  * acf_decode_taxonomy_terms
1362
  *
@@ -4081,11 +4041,22 @@ function acf_validate_attachment( $attachment, $field, $context = 'prepare' ) {
4081
  }
4082
 
4083
 
4084
- // filter for 3rd party customization
4085
- $errors = apply_filters("acf/validate_attachment", $errors, $file, $attachment, $field, $context);
4086
- $errors = apply_filters("acf/validate_attachment/type={$field['type']}", $errors, $file, $attachment, $field, $context );
4087
- $errors = apply_filters("acf/validate_attachment/name={$field['name']}", $errors, $file, $attachment, $field, $context );
4088
- $errors = apply_filters("acf/validate_attachment/key={$field['key']}", $errors, $file, $attachment, $field, $context );
 
 
 
 
 
 
 
 
 
 
 
4089
 
4090
 
4091
  // return
1228
 
1229
  function acf_get_terms( $args ) {
1230
 
1231
+ // defaults
1232
+ $args = wp_parse_args($args, array(
1233
+ 'taxonomy' => null,
1234
+ 'hide_empty' => false,
1235
+ 'update_term_meta_cache' => false,
1236
+ ));
 
 
 
 
 
 
 
 
 
 
 
1237
 
1238
+ // parameters changed in version 4.5
1239
+ if( acf_version_compare('wp', '<', '4.5') ) {
1240
+ return get_terms( $args['taxonomy'], $args );
1241
  }
1242
 
 
1243
  // return
1244
+ return get_terms( $args );
 
1245
  }
1246
 
1247
 
1317
  }
1318
 
1319
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1320
  /*
1321
  * acf_decode_taxonomy_terms
1322
  *
4041
  }
4042
 
4043
 
4044
+ /**
4045
+ * Filters the errors for a file before it is uploaded or displayed in the media modal.
4046
+ *
4047
+ * @date 3/07/2015
4048
+ * @since 5.2.3
4049
+ *
4050
+ * @param array $errors An array of errors.
4051
+ * @param array $file An array of data for a single file.
4052
+ * @param array $attachment An array of attachment data which differs based on the context.
4053
+ * @param array $field The field array.
4054
+ * @param string $context The curent context (uploading, preparing)
4055
+ */
4056
+ $errors = apply_filters( "acf/validate_attachment/type={$field['type']}", $errors, $file, $attachment, $field, $context );
4057
+ $errors = apply_filters( "acf/validate_attachment/name={$field['_name']}", $errors, $file, $attachment, $field, $context );
4058
+ $errors = apply_filters( "acf/validate_attachment/key={$field['key']}", $errors, $file, $attachment, $field, $context );
4059
+ $errors = apply_filters( "acf/validate_attachment", $errors, $file, $attachment, $field, $context );
4060
 
4061
 
4062
  // return
includes/api/api-term.php CHANGED
@@ -31,6 +31,11 @@ function acf_get_taxonomies( $args = array() ) {
31
  $taxonomies[] = $i;
32
  }
33
 
 
 
 
 
 
34
  // filter
35
  $taxonomies = apply_filters('acf/get_taxonomies', $taxonomies, $args);
36
 
@@ -38,6 +43,37 @@ function acf_get_taxonomies( $args = array() ) {
38
  return $taxonomies;
39
  }
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  /*
42
  * acf_get_taxonomy_labels
43
  *
@@ -89,6 +125,38 @@ function acf_get_taxonomy_labels( $taxonomies = array() ) {
89
  return $data;
90
  }
91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  /**
93
  * acf_get_grouped_terms
94
  *
@@ -108,7 +176,7 @@ function acf_get_grouped_terms( $args ) {
108
 
109
  // defaults
110
  $args = wp_parse_args($args, array(
111
- 'taxonomy' => 'category',
112
  'hide_empty' => false,
113
  'update_term_meta_cache' => false,
114
  ));
@@ -117,6 +185,9 @@ function acf_get_grouped_terms( $args ) {
117
  $taxonomies = acf_get_taxonomy_labels( acf_get_array($args['taxonomy']) );
118
  $is_single = (count($taxonomies) == 1);
119
 
 
 
 
120
  // add filter to group results by taxonomy
121
  if( !$is_single ) {
122
  add_filter('terms_clauses', '_acf_terms_clauses', 10, 3);
@@ -296,4 +367,135 @@ function acf_decode_term( $string ) {
296
  return false;
297
  }
298
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
  ?>
31
  $taxonomies[] = $i;
32
  }
33
 
34
+ // custom post_type arg which does not yet exist in core
35
+ if( isset($args['post_type']) ) {
36
+ $taxonomies = acf_get_taxonomies_for_post_type($args['post_type']);
37
+ }
38
+
39
  // filter
40
  $taxonomies = apply_filters('acf/get_taxonomies', $taxonomies, $args);
41
 
43
  return $taxonomies;
44
  }
45
 
46
+ /**
47
+ * acf_get_taxonomies_for_post_type
48
+ *
49
+ * Returns an array of taxonomies for a given post type(s)
50
+ *
51
+ * @date 7/9/18
52
+ * @since 5.7.5
53
+ *
54
+ * @param string|array $post_types The post types to compare against.
55
+ * @return array
56
+ */
57
+ function acf_get_taxonomies_for_post_type( $post_types = 'post' ) {
58
+
59
+ // vars
60
+ $taxonomies = array();
61
+
62
+ // loop
63
+ foreach( (array) $post_types as $post_type ) {
64
+ $object_taxonomies = get_object_taxonomies( $post_type );
65
+ foreach( (array) $object_taxonomies as $taxonomy ) {
66
+ $taxonomies[] = $taxonomy;
67
+ }
68
+ }
69
+
70
+ // remove duplicates
71
+ $taxonomies = array_unique($taxonomies);
72
+
73
+ // return
74
+ return $taxonomies;
75
+ }
76
+
77
  /*
78
  * acf_get_taxonomy_labels
79
  *
125
  return $data;
126
  }
127
 
128
+ /**
129
+ * acf_get_term_title
130
+ *
131
+ * Returns the title for this term object.
132
+ *
133
+ * @date 10/9/18
134
+ * @since 5.0.0
135
+ *
136
+ * @param object $term The WP_Term object.
137
+ * @return string
138
+ */
139
+
140
+ function acf_get_term_title( $term ) {
141
+
142
+ // set to term name
143
+ $title = $term->name;
144
+
145
+ // allow for empty name
146
+ if( $title === '' ) {
147
+ $title = __('(no title)', 'acf');
148
+ }
149
+
150
+ // prepent ancestors indentation
151
+ if( is_taxonomy_hierarchical($term->taxonomy) ) {
152
+ $ancestors = get_ancestors( $term->term_id, $term->taxonomy );
153
+ $title = str_repeat('- ', count($ancestors)) . $title;
154
+ }
155
+
156
+ // return
157
+ return $title;
158
+ }
159
+
160
  /**
161
  * acf_get_grouped_terms
162
  *
176
 
177
  // defaults
178
  $args = wp_parse_args($args, array(
179
+ 'taxonomy' => null,
180
  'hide_empty' => false,
181
  'update_term_meta_cache' => false,
182
  ));
185
  $taxonomies = acf_get_taxonomy_labels( acf_get_array($args['taxonomy']) );
186
  $is_single = (count($taxonomies) == 1);
187
 
188
+ // specify exact taxonomies required for _acf_terms_clauses() to work.
189
+ $args['taxonomy'] = array_keys($taxonomies);
190
+
191
  // add filter to group results by taxonomy
192
  if( !$is_single ) {
193
  add_filter('terms_clauses', '_acf_terms_clauses', 10, 3);
367
  return false;
368
  }
369
 
370
+ /**
371
+ * acf_get_encoded_terms
372
+ *
373
+ * Returns an array of WP_Term objects from an array of encoded strings
374
+ *
375
+ * @date 9/9/18
376
+ * @since 5.7.5
377
+ *
378
+ * @param array $values The array of encoded strings.
379
+ * @return array
380
+ */
381
+ function acf_get_encoded_terms( $values ) {
382
+
383
+ // vars
384
+ $terms = array();
385
+
386
+ // loop over values
387
+ foreach( (array) $values as $value ) {
388
+
389
+ // find term from string
390
+ $term = acf_get_term( $value );
391
+
392
+ // append
393
+ if( $term instanceof WP_Term ) {
394
+ $terms[] = $term;
395
+ }
396
+ }
397
+
398
+ // return
399
+ return $terms;
400
+ }
401
+
402
+ /**
403
+ * acf_get_choices_from_terms
404
+ *
405
+ * Returns an array of choices from the terms provided.
406
+ *
407
+ * @date 8/9/18
408
+ * @since 5.7.5
409
+ *
410
+ * @param array $values and array of WP_Terms objects or encoded strings.
411
+ * @param string $format The value format (term_id, slug).
412
+ * @return array
413
+ */
414
+ function acf_get_choices_from_terms( $terms, $format = 'term_id' ) {
415
+
416
+ // vars
417
+ $groups = array();
418
+
419
+ // get taxonomy lables
420
+ $labels = acf_get_taxonomy_labels();
421
+
422
+ // convert array of encoded strings to terms
423
+ $term = reset($terms);
424
+ if( !$term instanceof WP_Term ) {
425
+ $terms = acf_get_encoded_terms( $terms );
426
+ }
427
+
428
+ // loop over terms
429
+ foreach( $terms as $term ) {
430
+ $group = $labels[ $term->taxonomy ];
431
+ $choice = acf_get_choice_from_term( $term, $format );
432
+ $groups[ $group ][ $choice['id'] ] = $choice['text'];
433
+ }
434
+
435
+ // return
436
+ return $groups;
437
+ }
438
+
439
+ /**
440
+ * acf_get_choices_from_grouped_terms
441
+ *
442
+ * Returns an array of choices from the grouped terms provided.
443
+ *
444
+ * @date 8/9/18
445
+ * @since 5.7.5
446
+ *
447
+ * @param array $value A grouped array of WP_Terms objects.
448
+ * @param string $format The value format (term_id, slug).
449
+ * @return array
450
+ */
451
+ function acf_get_choices_from_grouped_terms( $value, $format = 'term_id' ) {
452
+
453
+ // vars
454
+ $groups = array();
455
+
456
+ // loop over values
457
+ foreach( $value as $group => $terms ) {
458
+ $groups[ $group ] = array();
459
+ foreach( $terms as $term_id => $term ) {
460
+ $choice = acf_get_choice_from_term( $term, $format );
461
+ $groups[ $group ][ $choice['id'] ] = $choice['text'];
462
+ }
463
+ }
464
+
465
+ // return
466
+ return $groups;
467
+ }
468
+
469
+ /**
470
+ * acf_get_choice_from_term
471
+ *
472
+ * Returns an array containing the id and text for this item.
473
+ *
474
+ * @date 10/9/18
475
+ * @since 5.7.6
476
+ *
477
+ * @param object $item The item object such as WP_Post or WP_Term.
478
+ * @param string $format The value format (term_id, slug)
479
+ * @return array
480
+ */
481
+ function acf_get_choice_from_term( $term, $format = 'term_id' ) {
482
+
483
+ // vars
484
+ $id = $term->term_id;
485
+ $text = acf_get_term_title( $term );
486
+
487
+ // return format
488
+ if( $format == 'slug' ) {
489
+ $id = acf_encode_term($term);
490
+ }
491
+
492
+ // return
493
+ return array(
494
+ 'id' => $id,
495
+ 'text' => $text
496
+ );
497
+ }
498
+
499
+
500
+
501
  ?>
includes/api/api-value.php CHANGED
@@ -299,12 +299,21 @@ function acf_get_value( $post_id = 0, $field ) {
299
  $value = $field['default_value'];
300
  }
301
 
302
-
303
- // filter for 3rd party customization
304
- $value = apply_filters( "acf/load_value", $value, $post_id, $field );
305
- $value = apply_filters( "acf/load_value/type={$field['type']}", $value, $post_id, $field );
306
- $value = apply_filters( "acf/load_value/name={$field['_name']}", $value, $post_id, $field );
307
- $value = apply_filters( "acf/load_value/key={$field['key']}", $value, $post_id, $field );
 
 
 
 
 
 
 
 
 
308
 
309
 
310
  // update cache
@@ -345,12 +354,21 @@ function acf_format_value( $value, $post_id, $field ) {
345
 
346
  }
347
 
348
-
349
- // apply filters
350
- $value = apply_filters( "acf/format_value", $value, $post_id, $field );
351
- $value = apply_filters( "acf/format_value/type={$field['type']}", $value, $post_id, $field );
352
- $value = apply_filters( "acf/format_value/name={$field['_name']}", $value, $post_id, $field );
353
- $value = apply_filters( "acf/format_value/key={$field['key']}", $value, $post_id, $field );
 
 
 
 
 
 
 
 
 
354
 
355
 
356
  // update cache
@@ -385,18 +403,40 @@ function acf_update_value( $value = null, $post_id = 0, $field ) {
385
  }
386
 
387
 
388
- // allow filter to short-circuit update_value logic
 
 
 
 
 
 
 
 
 
 
389
  $check = apply_filters( "acf/pre_update_value", null, $value, $post_id, $field );
390
  if( $check !== null ) {
391
  return $check;
392
  }
393
 
394
 
395
- // filter for 3rd party customization
396
- $value = apply_filters( "acf/update_value", $value, $post_id, $field );
397
- $value = apply_filters( "acf/update_value/type={$field['type']}", $value, $post_id, $field );
398
- $value = apply_filters( "acf/update_value/name={$field['_name']}", $value, $post_id, $field );
399
- $value = apply_filters( "acf/update_value/key={$field['key']}", $value, $post_id, $field );
 
 
 
 
 
 
 
 
 
 
 
 
400
 
401
 
402
  // allow null to delete
@@ -442,11 +482,20 @@ function acf_update_value( $value = null, $post_id = 0, $field ) {
442
 
443
  function acf_delete_value( $post_id = 0, $field ) {
444
 
445
- // action for 3rd party customization
446
- do_action("acf/delete_value", $post_id, $field['name'], $field);
447
- do_action("acf/delete_value/type={$field['type']}", $post_id, $field['name'], $field);
448
- do_action("acf/delete_value/name={$field['_name']}", $post_id, $field['name'], $field);
449
- do_action("acf/delete_value/key={$field['key']}", $post_id, $field['name'], $field);
 
 
 
 
 
 
 
 
 
450
 
451
 
452
  // delete value
@@ -553,16 +602,23 @@ function acf_copy_postmeta( $from_post_id, $to_post_id ) {
553
 
554
  function acf_preview_value( $value, $post_id, $field ) {
555
 
556
- // apply filters
557
- $value = apply_filters( "acf/preview_value", $value, $post_id, $field );
558
- $value = apply_filters( "acf/preview_value/type={$field['type']}", $value, $post_id, $field );
559
- $value = apply_filters( "acf/preview_value/name={$field['_name']}", $value, $post_id, $field );
560
- $value = apply_filters( "acf/preview_value/key={$field['key']}", $value, $post_id, $field );
561
-
 
 
 
 
 
 
 
 
562
 
563
  // return
564
  return $value;
565
-
566
  }
567
 
568
  ?>
299
  $value = $field['default_value'];
300
  }
301
 
302
+
303
+ /**
304
+ * Filters the $value after it has been loaded.
305
+ *
306
+ * @date 28/09/13
307
+ * @since 5.0.0
308
+ *
309
+ * @param mixed $value The value to preview.
310
+ * @param string $post_id The post ID for this value.
311
+ * @param array $field The field array.
312
+ */
313
+ $value = apply_filters( "acf/load_value/type={$field['type']}", $value, $post_id, $field );
314
+ $value = apply_filters( "acf/load_value/name={$field['_name']}", $value, $post_id, $field );
315
+ $value = apply_filters( "acf/load_value/key={$field['key']}", $value, $post_id, $field );
316
+ $value = apply_filters( "acf/load_value", $value, $post_id, $field );
317
 
318
 
319
  // update cache
354
 
355
  }
356
 
357
+
358
+ /**
359
+ * Filters the $value for use in a template function.
360
+ *
361
+ * @date 28/09/13
362
+ * @since 5.0.0
363
+ *
364
+ * @param mixed $value The value to preview.
365
+ * @param string $post_id The post ID for this value.
366
+ * @param array $field The field array.
367
+ */
368
+ $value = apply_filters( "acf/format_value/type={$field['type']}", $value, $post_id, $field );
369
+ $value = apply_filters( "acf/format_value/name={$field['_name']}", $value, $post_id, $field );
370
+ $value = apply_filters( "acf/format_value/key={$field['key']}", $value, $post_id, $field );
371
+ $value = apply_filters( "acf/format_value", $value, $post_id, $field );
372
 
373
 
374
  // update cache
403
  }
404
 
405
 
406
+ /**
407
+ * Allows developers to run a custom update function.
408
+ *
409
+ * @date 28/09/13
410
+ * @since 5.0.0
411
+ *
412
+ * @param null $check Return a non null value to prevent default.
413
+ * @param mixed $value The value to update.
414
+ * @param string $post_id The post ID for this value.
415
+ * @param array $field The field array.
416
+ */
417
  $check = apply_filters( "acf/pre_update_value", null, $value, $post_id, $field );
418
  if( $check !== null ) {
419
  return $check;
420
  }
421
 
422
 
423
+ /**
424
+ * Filters the $value before it is saved.
425
+ *
426
+ * @date 28/09/13
427
+ * @since 5.0.0
428
+ * @since 5.7.6 Added $_value parameter.
429
+ *
430
+ * @param mixed $value The value to update.
431
+ * @param string $post_id The post ID for this value.
432
+ * @param array $field The field array.
433
+ * @param mixed $_value The original value before modification.
434
+ */
435
+ $_value = $value;
436
+ $value = apply_filters( "acf/update_value/type={$field['type']}", $value, $post_id, $field, $_value );
437
+ $value = apply_filters( "acf/update_value/name={$field['_name']}", $value, $post_id, $field, $_value );
438
+ $value = apply_filters( "acf/update_value/key={$field['key']}", $value, $post_id, $field, $_value );
439
+ $value = apply_filters( "acf/update_value", $value, $post_id, $field, $_value );
440
 
441
 
442
  // allow null to delete
482
 
483
  function acf_delete_value( $post_id = 0, $field ) {
484
 
485
+ /**
486
+ * Fires before a value is deleted.
487
+ *
488
+ * @date 28/09/13
489
+ * @since 5.0.0
490
+ *
491
+ * @param string $post_id The post ID for this value.
492
+ * @param mixed $name The meta name.
493
+ * @param array $field The field array.
494
+ */
495
+ do_action( "acf/delete_value/type={$field['type']}", $post_id, $field['name'], $field );
496
+ do_action( "acf/delete_value/name={$field['_name']}", $post_id, $field['name'], $field );
497
+ do_action( "acf/delete_value/key={$field['key']}", $post_id, $field['name'], $field );
498
+ do_action( "acf/delete_value", $post_id, $field['name'], $field );
499
 
500
 
501
  // delete value
602
 
603
  function acf_preview_value( $value, $post_id, $field ) {
604
 
605
+ /**
606
+ * Filters the $value before used in HTML.
607
+ *
608
+ * @date 24/10/16
609
+ * @since 5.5.0
610
+ *
611
+ * @param mixed $value The value to preview.
612
+ * @param string $post_id The post ID for this value.
613
+ * @param array $field The field array.
614
+ */
615
+ $value = apply_filters( "acf/preview_value/type={$field['type']}", $value, $post_id, $field );
616
+ $value = apply_filters( "acf/preview_value/name={$field['_name']}", $value, $post_id, $field );
617
+ $value = apply_filters( "acf/preview_value/key={$field['key']}", $value, $post_id, $field );
618
+ $value = apply_filters( "acf/preview_value", $value, $post_id, $field );
619
 
620
  // return
621
  return $value;
 
622
  }
623
 
624
  ?>
includes/deprecated.php CHANGED
@@ -162,8 +162,8 @@ class acf_deprecated {
162
  function acf_validate_field( $field ) {
163
 
164
  // 5.5.6 - changed filter name
165
- $field = apply_filters( "acf/get_valid_field", $field );
166
  $field = apply_filters( "acf/get_valid_field/type={$field['type']}", $field );
 
167
 
168
 
169
  // return
162
  function acf_validate_field( $field ) {
163
 
164
  // 5.5.6 - changed filter name
 
165
  $field = apply_filters( "acf/get_valid_field/type={$field['type']}", $field );
166
+ $field = apply_filters( "acf/get_valid_field", $field );
167
 
168
 
169
  // return
includes/fields/class-acf-field-relationship.php CHANGED
@@ -194,7 +194,9 @@ class acf_field_relationship extends acf_field {
194
 
195
 
196
  // append to $args
197
- $args['tax_query'] = array();
 
 
198
 
199
 
200
  // now create the tax queries
@@ -393,151 +395,69 @@ class acf_field_relationship extends acf_field {
393
  function render_field( $field ) {
394
 
395
  // vars
396
- $values = array();
397
- $atts = array(
398
- 'id' => $field['id'],
399
- 'class' => "acf-relationship {$field['class']}",
400
- 'data-min' => $field['min'],
401
- 'data-max' => $field['max'],
402
- 'data-s' => '',
403
- 'data-post_type' => '',
404
- 'data-taxonomy' => '',
405
- 'data-paged' => 1,
406
- );
407
-
408
-
409
- // Lang
410
- if( defined('ICL_LANGUAGE_CODE') ) {
411
-
412
- $atts['data-lang'] = ICL_LANGUAGE_CODE;
413
-
414
- }
415
-
416
-
417
- // data types
418
- $field['post_type'] = acf_get_array( $field['post_type'] );
419
- $field['taxonomy'] = acf_get_array( $field['taxonomy'] );
420
- $field['filters'] = acf_get_array( $field['filters'] );
421
-
422
 
423
  // filters
424
- $filters = array(
425
- 'count' => count($field['filters']),
426
- 'search' => false,
427
- 'post_type' => false,
428
- 'taxonomy' => false
429
- );
430
-
431
- foreach( $field['filters'] as $filter ) {
432
- $filters[ $filter ] = true;
433
- }
434
-
435
 
436
- // filter - post_type
437
- if( $filters['post_type'] ) {
438
 
439
- // choices
440
- $choices = array(
441
  '' => __('Select post type', 'acf')
442
- );
443
-
444
-
445
- // get post types
446
- $post_types = acf_get_pretty_post_types($field['post_type']);
447
-
448
-
449
- // append
450
- $choices = $choices + $post_types;
451
-
452
-
453
- // set filter
454
- $filters['post_type'] = $choices;
455
-
456
  }
457
 
458
-
459
-
460
  // taxonomy filter
461
- if( $filters['taxonomy'] ) {
462
 
463
- // vars
464
- $groups = array();
465
- $taxonomies = array();
466
- $choices = array(
467
  '' => __('Select taxonomy', 'acf')
468
  );
469
 
 
 
 
 
470
 
471
- // get taxonomies from setting
472
- if( !empty($field['taxonomy']) ) {
473
-
474
- $term_groups = acf_decode_taxonomy_terms( $field['taxonomy'] );
475
- $taxonomies = array_keys($term_groups);
476
 
477
- // check empty
478
- $taxonomies = empty($taxonomies) ? false : $taxonomies;
479
-
480
- } elseif( !empty($field['post_type']) ) {
481
-
482
- // loop
483
- foreach( $field['post_type'] as $post_type ) {
484
-
485
- // get connected taxonomies
486
- $post_taxonomies = get_object_taxonomies( $post_type );
487
-
488
-
489
- // loop
490
- foreach( $post_taxonomies as $name ) {
491
- $taxonomies[ $name ] = 1;
492
- }
493
-
494
- }
495
-
496
-
497
- // convert back to array
498
- $taxonomies = array_keys($taxonomies);
499
-
500
- // check empty
501
- $taxonomies = empty($taxonomies) ? false : $taxonomies;
502
-
503
- }
504
-
505
-
506
- // terms
507
- if( $taxonomies !== false ) {
508
- $groups = acf_get_taxonomy_terms( $taxonomies );
509
- }
510
-
511
-
512
- // update $term_groups with specific terms
513
- if( !empty($field['taxonomy']) ) {
514
-
515
- foreach( $groups as $taxonomy => $terms ) {
516
-
517
- foreach( $terms as $slug => $name ) {
518
-
519
- if( !in_array($slug, $field['taxonomy']) ) {
520
-
521
- unset($groups[ $taxonomy ][ $slug ]);
522
-
523
- }
524
-
525
- }
526
-
527
  }
528
 
 
 
 
529
  }
530
-
531
-
532
- // append
533
- $choices = $choices + $groups;
534
 
535
-
536
- // set filter
537
- $filters['taxonomy'] = $choices;
538
 
539
  }
540
 
 
 
 
 
 
 
 
 
 
 
 
 
541
  ?>
542
  <div <?php acf_esc_attr_e($atts); ?>>
543
 
@@ -546,12 +466,12 @@ class acf_field_relationship extends acf_field {
546
  <?php
547
 
548
  /* filters */
549
- if( $filters['count'] ): ?>
550
- <div class="filters -f<?php echo esc_attr($filters['count']); ?>">
551
  <?php
552
 
553
  /* search */
554
- if( $filters['search'] ): ?>
555
  <div class="filter -search">
556
  <span>
557
  <?php acf_text_input( array('placeholder' => __("Search...",'acf'), 'data-filter' => 's') ); ?>
@@ -561,20 +481,20 @@ class acf_field_relationship extends acf_field {
561
 
562
 
563
  /* post_type */
564
- if( $filters['post_type'] ): ?>
565
  <div class="filter -post_type">
566
  <span>
567
- <?php acf_select_input( array('choices' => $filters['post_type'], 'data-filter' => 'post_type') ); ?>
568
  </span>
569
  </div>
570
  <?php endif;
571
 
572
 
573
  /* post_type */
574
- if( $filters['taxonomy'] ): ?>
575
  <div class="filter -taxonomy">
576
  <span>
577
- <?php acf_select_input( array('choices' => $filters['taxonomy'], 'data-filter' => 'taxonomy') ); ?>
578
  </span>
579
  </div>
580
  <?php endif; ?>
@@ -614,7 +534,6 @@ class acf_field_relationship extends acf_field {
614
  <?php
615
  }
616
 
617
-
618
 
619
  /*
620
  * render_field_settings()
194
 
195
 
196
  // append to $args
197
+ $args['tax_query'] = array(
198
+ 'relation' => 'OR',
199
+ );
200
 
201
 
202
  // now create the tax queries
395
  function render_field( $field ) {
396
 
397
  // vars
398
+ $post_type = acf_get_array( $field['post_type'] );
399
+ $taxonomy = acf_get_array( $field['taxonomy'] );
400
+ $filters = acf_get_array( $field['filters'] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
401
 
402
  // filters
403
+ $filter_count = count($filters);
404
+ $filter_post_type_choices = array();
405
+ $filter_taxonomy_choices = array();
 
 
 
 
 
 
 
 
406
 
407
+ // post_type filter
408
+ if( in_array('post_type', $filters) ) {
409
 
410
+ $filter_post_type_choices = array(
 
411
  '' => __('Select post type', 'acf')
412
+ ) + acf_get_pretty_post_types( $post_type );
 
 
 
 
 
 
 
 
 
 
 
 
 
413
  }
414
 
 
 
415
  // taxonomy filter
416
+ if( in_array('taxonomy', $filters) ) {
417
 
418
+ $term_choices = array();
419
+ $filter_taxonomy_choices = array(
 
 
420
  '' => __('Select taxonomy', 'acf')
421
  );
422
 
423
+ // check for specific taxonomy setting
424
+ if( $taxonomy ) {
425
+ $terms = acf_get_encoded_terms( $taxonomy );
426
+ $term_choices = acf_get_choices_from_terms( $terms, 'slug' );
427
 
428
+ // if no terms were specified, find all terms
429
+ } else {
 
 
 
430
 
431
+ // restrict taxonomies by the post_type selected
432
+ $term_args = array();
433
+ if( $post_type ) {
434
+ $term_args['taxonomy'] = acf_get_taxonomies(array(
435
+ 'post_type' => $post_type
436
+ ));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
437
  }
438
 
439
+ // get terms
440
+ $terms = acf_get_grouped_terms( $term_args );
441
+ $term_choices = acf_get_choices_from_grouped_terms( $terms, 'slug' );
442
  }
 
 
 
 
443
 
444
+ // append term choices
445
+ $filter_taxonomy_choices = $filter_taxonomy_choices + $term_choices;
 
446
 
447
  }
448
 
449
+ // div attributes
450
+ $atts = array(
451
+ 'id' => $field['id'],
452
+ 'class' => "acf-relationship {$field['class']}",
453
+ 'data-min' => $field['min'],
454
+ 'data-max' => $field['max'],
455
+ 'data-s' => '',
456
+ 'data-paged' => 1,
457
+ 'data-post_type' => '',
458
+ 'data-taxonomy' => '',
459
+ );
460
+
461
  ?>
462
  <div <?php acf_esc_attr_e($atts); ?>>
463
 
466
  <?php
467
 
468
  /* filters */
469
+ if( $filter_count ): ?>
470
+ <div class="filters -f<?php echo esc_attr($filter_count); ?>">
471
  <?php
472
 
473
  /* search */
474
+ if( in_array('search', $filters) ): ?>
475
  <div class="filter -search">
476
  <span>
477
  <?php acf_text_input( array('placeholder' => __("Search...",'acf'), 'data-filter' => 's') ); ?>
481
 
482
 
483
  /* post_type */
484
+ if( in_array('post_type', $filters) ): ?>
485
  <div class="filter -post_type">
486
  <span>
487
+ <?php acf_select_input( array('choices' => $filter_post_type_choices, 'data-filter' => 'post_type') ); ?>
488
  </span>
489
  </div>
490
  <?php endif;
491
 
492
 
493
  /* post_type */
494
+ if( in_array('taxonomy', $filters) ): ?>
495
  <div class="filter -taxonomy">
496
  <span>
497
+ <?php acf_select_input( array('choices' => $filter_taxonomy_choices, 'data-filter' => 'taxonomy') ); ?>
498
  </span>
499
  </div>
500
  <?php endif; ?>
534
  <?php
535
  }
536
 
 
537
 
538
  /*
539
  * render_field_settings()
includes/forms/form-nav-menu.php CHANGED
@@ -84,7 +84,8 @@ class acf_form_nav_menu {
84
  // get field groups
85
  $field_groups = acf_get_field_groups(array(
86
  'nav_menu_item' => $item->type,
87
- 'nav_menu_item_id' => $item_id
 
88
  ));
89
 
90
  // render
84
  // get field groups
85
  $field_groups = acf_get_field_groups(array(
86
  'nav_menu_item' => $item->type,
87
+ 'nav_menu_item_id' => $item_id,
88
+ 'nav_menu_item_depth' => $depth
89
  ));
90
 
91
  // render
includes/media.php CHANGED
@@ -90,11 +90,20 @@ class ACF_Media {
90
  $errors = acf_validate_attachment( $file, $field, 'upload' );
91
 
92
 
93
- // filter for 3rd party customization
94
- $errors = apply_filters("acf/upload_prefilter", $errors, $file, $field);
95
- $errors = apply_filters("acf/upload_prefilter/type={$field['type']}", $errors, $file, $field );
96
- $errors = apply_filters("acf/upload_prefilter/name={$field['name']}", $errors, $file, $field );
97
- $errors = apply_filters("acf/upload_prefilter/key={$field['key']}", $errors, $file, $field );
 
 
 
 
 
 
 
 
 
98
 
99
 
100
  // append error
90
  $errors = acf_validate_attachment( $file, $field, 'upload' );
91
 
92
 
93
+ /**
94
+ * Filters the errors for a file before it is uploaded to WordPress.
95
+ *
96
+ * @date 16/02/2015
97
+ * @since 5.1.5
98
+ *
99
+ * @param array $errors An array of errors.
100
+ * @param array $file An array of data for a single file.
101
+ * @param array $field The field array.
102
+ */
103
+ $errors = apply_filters( "acf/upload_prefilter/type={$field['type']}", $errors, $file, $field );
104
+ $errors = apply_filters( "acf/upload_prefilter/name={$field['_name']}", $errors, $file, $field );
105
+ $errors = apply_filters( "acf/upload_prefilter/key={$field['key']}", $errors, $file, $field );
106
+ $errors = apply_filters( "acf/upload_prefilter", $errors, $file, $field );
107
 
108
 
109
  // append error
includes/upgrades.php CHANGED
@@ -43,8 +43,14 @@ function acf_has_upgrade() {
43
  */
44
  function acf_upgrade_all() {
45
 
 
 
 
 
 
 
46
  // log
47
- acf_dev_log('acf_upgrade_all');
48
 
49
  // vars
50
  $db_version = acf_get_db_version();
@@ -61,6 +67,10 @@ function acf_upgrade_all() {
61
 
62
  // upgrade DB version once all updates are complete
63
  acf_update_db_version( ACF_VERSION );
 
 
 
 
64
  }
65
 
66
  /**
@@ -107,7 +117,7 @@ function acf_update_db_version( $version = '' ) {
107
  function acf_upgrade_500() {
108
 
109
  // log
110
- acf_dev_log('acf_upgrade_500');
111
 
112
  // action
113
  do_action('acf/upgrade_500');
@@ -133,7 +143,7 @@ function acf_upgrade_500() {
133
  function acf_upgrade_500_field_groups() {
134
 
135
  // log
136
- acf_dev_log('acf_upgrade_500_field_groups');
137
 
138
  // get old field groups
139
  $ofgs = get_posts(array(
@@ -165,6 +175,9 @@ function acf_upgrade_500_field_groups() {
165
  */
166
  function acf_upgrade_500_field_group( $ofg ) {
167
 
 
 
 
168
  // vars
169
  $nfg = array(
170
  'ID' => 0,
@@ -201,12 +214,12 @@ function acf_upgrade_500_field_group( $ofg ) {
201
  // acf_upgrade_field_group will call the acf_get_valid_field_group function and apply 'compatibility' changes
202
  $nfg = acf_update_field_group( $nfg );
203
 
 
 
 
204
  // action for 3rd party
205
  do_action('acf/upgrade_500_field_group', $nfg, $ofg);
206
 
207
- // log
208
- acf_dev_log('acf_upgrade_500_field_group', $ofg, $nfg);
209
-
210
  // upgrade fields
211
  acf_upgrade_500_fields( $ofg, $nfg );
212
 
@@ -233,6 +246,9 @@ function acf_upgrade_500_field_group( $ofg ) {
233
  */
234
  function acf_upgrade_500_fields( $ofg, $nfg ) {
235
 
 
 
 
236
  // global
237
  global $wpdb;
238
 
@@ -279,6 +295,9 @@ function acf_upgrade_500_fields( $ofg, $nfg ) {
279
  */
280
  function acf_upgrade_500_field( $field ) {
281
 
 
 
 
282
  // order_no is now menu_order
283
  $field['menu_order'] = acf_extract_var( $field, 'order_no', 0 );
284
 
@@ -332,7 +351,7 @@ function acf_upgrade_500_field( $field ) {
332
  $field = acf_update_field( $field );
333
 
334
  // log
335
- acf_dev_log('acf_upgrade_500_field', $field);
336
 
337
  // sub fields
338
  if( $sub_fields ) {
@@ -363,7 +382,7 @@ function acf_upgrade_500_field( $field ) {
363
  function acf_upgrade_550() {
364
 
365
  // log
366
- acf_dev_log('acf_upgrade_550');
367
 
368
  // action
369
  do_action('acf/upgrade_550');
@@ -389,7 +408,7 @@ function acf_upgrade_550() {
389
  function acf_upgrade_550_termmeta() {
390
 
391
  // log
392
- acf_dev_log('acf_upgrade_550_termmeta');
393
 
394
  // bail early if no wp_termmeta table
395
  if( get_option('db_version') < 34370 ) {
@@ -444,7 +463,7 @@ add_action( 'wp_upgrade', 'acf_wp_upgrade_550_termmeta', 10, 2 );
444
  function acf_upgrade_550_taxonomy( $taxonomy ) {
445
 
446
  // log
447
- acf_dev_log('acf_upgrade_550_taxonomy', $taxonomy);
448
 
449
  // global
450
  global $wpdb;
@@ -489,19 +508,27 @@ function acf_upgrade_550_taxonomy( $taxonomy ) {
489
 
490
  // vars
491
  $term_id = $matches[2];
492
- $meta_name = $matches[1] . $matches[3];
493
  $meta_value = $row['option_value'];
494
 
495
- // log
496
- acf_dev_log('acf_upgrade_550_term', $term_id, $meta_name, $meta_value);
497
-
498
  // update
499
- update_metadata( 'term', $term_id, $meta_name, $meta_value );
 
 
 
 
 
 
 
 
 
 
 
 
500
  }}
501
 
502
  // action for 3rd party
503
  do_action('acf/upgrade_550_taxonomy', $taxonomy);
504
  }
505
 
506
-
507
  ?>
43
  */
44
  function acf_upgrade_all() {
45
 
46
+ // increase time limit
47
+ @set_time_limit(600);
48
+
49
+ // start timer
50
+ timer_start();
51
+
52
  // log
53
+ acf_dev_log('ACF Upgrade Begin.');
54
 
55
  // vars
56
  $db_version = acf_get_db_version();
67
 
68
  // upgrade DB version once all updates are complete
69
  acf_update_db_version( ACF_VERSION );
70
+
71
+ // log
72
+ global $wpdb;
73
+ acf_dev_log('ACF Upgrade Complete.', $wpdb->num_queries, timer_stop(0));
74
  }
75
 
76
  /**
117
  function acf_upgrade_500() {
118
 
119
  // log
120
+ acf_dev_log('ACF Upgrade 5.0.0.');
121
 
122
  // action
123
  do_action('acf/upgrade_500');
143
  function acf_upgrade_500_field_groups() {
144
 
145
  // log
146
+ acf_dev_log('ACF Upgrade 5.0.0 Field Groups.');
147
 
148
  // get old field groups
149
  $ofgs = get_posts(array(
175
  */
176
  function acf_upgrade_500_field_group( $ofg ) {
177
 
178
+ // log
179
+ acf_dev_log('ACF Upgrade 5.0.0 Field Group.', $ofg);
180
+
181
  // vars
182
  $nfg = array(
183
  'ID' => 0,
214
  // acf_upgrade_field_group will call the acf_get_valid_field_group function and apply 'compatibility' changes
215
  $nfg = acf_update_field_group( $nfg );
216
 
217
+ // log
218
+ acf_dev_log('> Complete.', $nfg);
219
+
220
  // action for 3rd party
221
  do_action('acf/upgrade_500_field_group', $nfg, $ofg);
222
 
 
 
 
223
  // upgrade fields
224
  acf_upgrade_500_fields( $ofg, $nfg );
225
 
246
  */
247
  function acf_upgrade_500_fields( $ofg, $nfg ) {
248
 
249
+ // log
250
+ acf_dev_log('ACF Upgrade 5.0.0 Fields.');
251
+
252
  // global
253
  global $wpdb;
254
 
295
  */
296
  function acf_upgrade_500_field( $field ) {
297
 
298
+ // log
299
+ acf_dev_log('ACF Upgrade 5.0.0 Field.', $field);
300
+
301
  // order_no is now menu_order
302
  $field['menu_order'] = acf_extract_var( $field, 'order_no', 0 );
303
 
351
  $field = acf_update_field( $field );
352
 
353
  // log
354
+ acf_dev_log('> Complete.', $field);
355
 
356
  // sub fields
357
  if( $sub_fields ) {
382
  function acf_upgrade_550() {
383
 
384
  // log
385
+ acf_dev_log('ACF Upgrade 5.5.0.');
386
 
387
  // action
388
  do_action('acf/upgrade_550');
408
  function acf_upgrade_550_termmeta() {
409
 
410
  // log
411
+ acf_dev_log('ACF Upgrade 5.5.0 Termmeta.');
412
 
413
  // bail early if no wp_termmeta table
414
  if( get_option('db_version') < 34370 ) {
463
  function acf_upgrade_550_taxonomy( $taxonomy ) {
464
 
465
  // log
466
+ acf_dev_log('ACF Upgrade 5.5.0 Taxonomy.', $taxonomy);
467
 
468
  // global
469
  global $wpdb;
508
 
509
  // vars
510
  $term_id = $matches[2];
511
+ $meta_key = $matches[1] . $matches[3];
512
  $meta_value = $row['option_value'];
513
 
 
 
 
514
  // update
515
+ // memory usage reduced by 50% by using a manual insert vs update_metadata() function.
516
+ //update_metadata( 'term', $term_id, $meta_name, $meta_value );
517
+ $wpdb->insert( $wpdb->termmeta, array(
518
+ 'term_id' => $term_id,
519
+ 'meta_key' => $meta_key,
520
+ 'meta_value' => $meta_value
521
+ ));
522
+
523
+ // log
524
+ acf_dev_log('ACF Upgrade 5.5.0 Term.', $term_id, $meta_key);
525
+
526
+ // action
527
+ do_action('acf/upgrade_550_taxonomy_term', $term_id);
528
  }}
529
 
530
  // action for 3rd party
531
  do_action('acf/upgrade_550_taxonomy', $taxonomy);
532
  }
533
 
 
534
  ?>
includes/validation.php CHANGED
@@ -377,11 +377,21 @@ function acf_validate_value( $value, $field, $input ) {
377
  }
378
 
379
 
380
- // filter for 3rd party customization
381
- $valid = apply_filters( "acf/validate_value", $valid, $value, $field, $input );
382
- $valid = apply_filters( "acf/validate_value/type={$field['type']}", $valid, $value, $field, $input );
383
- $valid = apply_filters( "acf/validate_value/name={$field['name']}", $valid, $value, $field, $input );
384
- $valid = apply_filters( "acf/validate_value/key={$field['key']}", $valid, $value, $field, $input );
 
 
 
 
 
 
 
 
 
 
385
 
386
 
387
  // allow $valid to be a custom error message
377
  }
378
 
379
 
380
+ /**
381
+ * Filters whether the value is valid.
382
+ *
383
+ * @date 28/09/13
384
+ * @since 5.0.0
385
+ *
386
+ * @param bool $valid The valid status. Return a string to display a custom error message.
387
+ * @param mixed $value The value.
388
+ * @param array $field The field array.
389
+ * @param string $input The input element's name attribute.
390
+ */
391
+ $valid = apply_filters( "acf/validate_value/type={$field['type']}", $valid, $value, $field, $input );
392
+ $valid = apply_filters( "acf/validate_value/name={$field['_name']}", $valid, $value, $field, $input );
393
+ $valid = apply_filters( "acf/validate_value/key={$field['key']}", $valid, $value, $field, $input );
394
+ $valid = apply_filters( "acf/validate_value", $valid, $value, $field, $input );
395
 
396
 
397
  // allow $valid to be a custom error message
lang/acf-fr_FR.mo CHANGED
Binary file
lang/acf-fr_FR.po CHANGED
@@ -3,15 +3,15 @@ msgstr ""
3
  "Project-Id-Version: Advanced Custom Fields Pro v5.2.9\n"
4
  "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
5
  "POT-Creation-Date: 2018-02-06 10:08+1000\n"
6
- "PO-Revision-Date: 2018-02-22 18:04+0100\n"
7
- "Last-Translator: Maxime BERNARD-JACQUET <maxime@dysign.fr>\n"
8
  "Language-Team: Dysign <maxime@dysign.fr>\n"
9
  "Language: fr_FR\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
14
- "X-Generator: Poedit 2.0.4\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
17
  "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
@@ -571,7 +571,7 @@ msgstr "Aucun fichier sélectionné"
571
 
572
  #: includes/admin/tools/class-acf-admin-tool-import.php:113
573
  msgid "Error uploading file. Please try again"
574
- msgstr "Echec de l'import du fichier. Merci de réessayer"
575
 
576
  #: includes/admin/tools/class-acf-admin-tool-import.php:122
577
  msgid "Incorrect file type"
@@ -2556,7 +2556,7 @@ msgstr "Recherche en cours&hellip;"
2556
  #: includes/fields/class-acf-field-select.php:49
2557
  msgctxt "Select2 JS load_fail"
2558
  msgid "Loading failed"
2559
- msgstr "Echec du chargement"
2560
 
2561
  #: includes/fields/class-acf-field-select.php:255 includes/media.php:54
2562
  msgctxt "verb"
@@ -2878,7 +2878,7 @@ msgstr "Validé avec succès"
2878
  #: includes/input.php:262 includes/validation.php:285
2879
  #: includes/validation.php:296
2880
  msgid "Validation failed"
2881
- msgstr "Echec de la validation"
2882
 
2883
  #: includes/input.php:263
2884
  msgid "1 field requires attention"
3
  "Project-Id-Version: Advanced Custom Fields Pro v5.2.9\n"
4
  "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
5
  "POT-Creation-Date: 2018-02-06 10:08+1000\n"
6
+ "PO-Revision-Date: 2018-09-10 13:39-0400\n"
7
+ "Last-Translator: David Lapointe <info@dlg.pw>\n"
8
  "Language-Team: Dysign <maxime@dysign.fr>\n"
9
  "Language: fr_FR\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
14
+ "X-Generator: Poedit 2.1.1\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
17
  "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
571
 
572
  #: includes/admin/tools/class-acf-admin-tool-import.php:113
573
  msgid "Error uploading file. Please try again"
574
+ msgstr "Échec de l'import du fichier. Merci de réessayer"
575
 
576
  #: includes/admin/tools/class-acf-admin-tool-import.php:122
577
  msgid "Incorrect file type"
2556
  #: includes/fields/class-acf-field-select.php:49
2557
  msgctxt "Select2 JS load_fail"
2558
  msgid "Loading failed"
2559
+ msgstr "Échec du chargement"
2560
 
2561
  #: includes/fields/class-acf-field-select.php:255 includes/media.php:54
2562
  msgctxt "verb"
2878
  #: includes/input.php:262 includes/validation.php:285
2879
  #: includes/validation.php:296
2880
  msgid "Validation failed"
2881
+ msgstr "Échec de la validation"
2882
 
2883
  #: includes/input.php:263
2884
  msgid "1 field requires attention"
lang/acf-pl_PL.mo CHANGED
Binary file
lang/acf-pl_PL.po CHANGED
@@ -3,9 +3,9 @@ msgstr ""
3
  "Project-Id-Version: Advanced Custom Fields Pro v5.2.9\n"
4
  "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
5
  "POT-Creation-Date: 2018-07-26 18:20+1000\n"
6
- "PO-Revision-Date: 2018-07-26 18:21+1000\n"
7
  "Last-Translator: Elliot Condon <e@elliotcondon.com>\n"
8
- "Language-Team: Digital Factory <info@digitalfactory.pl>\n"
9
  "Language: pl_PL\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -38,7 +38,7 @@ msgstr "Grupa pól"
38
  #: acf.php:389 acf.php:421 includes/admin/admin.php:118
39
  #: pro/fields/class-acf-field-flexible-content.php:572
40
  msgid "Add New"
41
- msgstr "Dodaj nowe"
42
 
43
  #: acf.php:390
44
  msgid "Add New Field Group"
@@ -113,12 +113,12 @@ msgid "Inactive"
113
  msgstr "Nieaktywne"
114
 
115
  #: acf.php:472
116
- #, fuzzy, php-format
117
  msgid "Inactive <span class=\"count\">(%s)</span>"
118
  msgid_plural "Inactive <span class=\"count\">(%s)</span>"
119
- msgstr[0] "Aktywny <span class=\"count\">(%s)</span>"
120
- msgstr[1] "Aktywnych <span class=\"count\">(%s)</span>"
121
- msgstr[2] "Aktywnych <span class=\"count\">(%s)</span>"
122
 
123
  #: includes/admin/admin-field-group.php:68
124
  #: includes/admin/admin-field-group.php:69
@@ -136,7 +136,7 @@ msgstr "Grupa pól została opublikowana."
136
 
137
  #: includes/admin/admin-field-group.php:74
138
  msgid "Field group saved."
139
- msgstr "Grupa pól zostałą zapisana."
140
 
141
  #: includes/admin/admin-field-group.php:75
142
  msgid "Field group submitted."
@@ -152,7 +152,7 @@ msgstr "Szkic grupy pól został zaktualizowany."
152
 
153
  #: includes/admin/admin-field-group.php:153
154
  msgid "The string \"field_\" may not be used at the start of a field name"
155
- msgstr "Fraza \"field_\" nie może zostać użyta na początku nazwy pola"
156
 
157
  #: includes/admin/admin-field-group.php:154
158
  msgid "This field cannot be moved until its changes have been saved"
@@ -175,19 +175,16 @@ msgid "Move Custom Field"
175
  msgstr "Przenieś pole"
176
 
177
  #: includes/admin/admin-field-group.php:159
178
- #, fuzzy
179
  msgid "Checked"
180
- msgstr "zaznaczone"
181
 
182
  #: includes/admin/admin-field-group.php:160 includes/api/api-field.php:289
183
- #, fuzzy
184
  msgid "(no label)"
185
- msgstr "(brak tytułu)"
186
 
187
  #: includes/admin/admin-field-group.php:161
188
- #, fuzzy
189
  msgid "(this field)"
190
- msgstr "Pole powtarzalne"
191
 
192
  #: includes/admin/admin-field-group.php:162
193
  #: includes/api/api-field-group.php:751
@@ -205,11 +202,11 @@ msgstr "lub"
205
 
206
  #: includes/admin/admin-field-group.php:164
207
  msgid "Null"
208
- msgstr "Zero"
209
 
210
  #: includes/admin/admin-field-group.php:203
211
  msgid "Location"
212
- msgstr "Pozycja"
213
 
214
  #: includes/admin/admin-field-group.php:204
215
  #: includes/admin/tools/class-acf-admin-tool-export.php:295
@@ -232,7 +229,7 @@ msgstr "Przenoszenie zakończone."
232
  #: includes/admin/admin-field-group.php:751
233
  #, php-format
234
  msgid "The %s field can now be found in the %s field group"
235
- msgstr "Pole %s może teraz być znalezione w grupie pól %s."
236
 
237
  #: includes/admin/admin-field-group.php:752
238
  msgid "Close Window"
@@ -240,7 +237,7 @@ msgstr "Zamknij okno"
240
 
241
  #: includes/admin/admin-field-group.php:793
242
  msgid "Please select the destination for this field"
243
- msgstr "Proszę wybrać miejsce przeznaczenia dla tego pola."
244
 
245
  #: includes/admin/admin-field-group.php:800
246
  msgid "Move Field"
@@ -251,7 +248,7 @@ msgstr "Przenieś pole"
251
  msgid "Active <span class=\"count\">(%s)</span>"
252
  msgid_plural "Active <span class=\"count\">(%s)</span>"
253
  msgstr[0] "Aktywny <span class=\"count\">(%s)</span>"
254
- msgstr[1] "Aktywnych <span class=\"count\">(%s)</span>"
255
  msgstr[2] "Aktywnych <span class=\"count\">(%s)</span>"
256
 
257
  #: includes/admin/admin-field-groups.php:142
@@ -263,9 +260,9 @@ msgstr "Grupa pól została zduplikowana. %s"
263
  #, php-format
264
  msgid "%s field group duplicated."
265
  msgid_plural "%s field groups duplicated."
266
- msgstr[0] "Grupa pól %s została zduplikowane."
267
  msgstr[1] "Grupy pól %s zostały zduplikowane."
268
- msgstr[2] "Grupy pól %s zostały zduplikowane."
269
 
270
  #: includes/admin/admin-field-groups.php:227
271
  #, php-format
@@ -278,12 +275,12 @@ msgid "%s field group synchronised."
278
  msgid_plural "%s field groups synchronised."
279
  msgstr[0] "%s grupa pól została zsynchronizowana."
280
  msgstr[1] "%s grupy pól zostały zsynchronizowane."
281
- msgstr[2] "%s grupy pól zostały zsynchronizowane."
282
 
283
  #: includes/admin/admin-field-groups.php:394
284
  #: includes/admin/admin-field-groups.php:557
285
  msgid "Sync available"
286
- msgstr "Synchronizacja dostępna"
287
 
288
  #: includes/admin/admin-field-groups.php:507 includes/forms/form-front.php:38
289
  #: pro/fields/class-acf-field-gallery.php:370
@@ -325,28 +322,25 @@ msgid "Resources"
325
  msgstr "Zasoby"
326
 
327
  #: includes/admin/admin-field-groups.php:619
328
- #, fuzzy
329
  msgid "Website"
330
- msgstr "Ta strona korzysta z dodatków premium, które muszą zostać pobrane."
331
 
332
  #: includes/admin/admin-field-groups.php:620
333
- #, fuzzy
334
  msgid "Documentation"
335
- msgstr "Pozycja"
336
 
337
  #: includes/admin/admin-field-groups.php:621
338
  msgid "Support"
339
  msgstr "Pomoc"
340
 
341
  #: includes/admin/admin-field-groups.php:623
342
- #, fuzzy
343
  msgid "Pro"
344
- msgstr "Do widzenia Dodatki. Dzień dobry PRO."
345
 
346
  #: includes/admin/admin-field-groups.php:628
347
- #, fuzzy, php-format
348
  msgid "Thank you for creating with <a href=\"%s\">ACF</a>."
349
- msgstr "Dziękujemy za aktualizacje do %s v%s!"
350
 
351
  #: includes/admin/admin-field-groups.php:667
352
  msgid "Duplicate this item"
@@ -381,12 +375,11 @@ msgstr "Synchronizacja"
381
 
382
  #: includes/admin/admin-field-groups.php:779
383
  msgid "Apply"
384
- msgstr ""
385
 
386
  #: includes/admin/admin-field-groups.php:797
387
- #, fuzzy
388
  msgid "Bulk Actions"
389
- msgstr "Działania masowe"
390
 
391
  #: includes/admin/admin-tools.php:116
392
  #: includes/admin/views/html-admin-tools.php:21
@@ -409,7 +402,7 @@ msgstr "Strona opinii i aktualizacji"
409
 
410
  #: includes/admin/install.php:187
411
  msgid "Error validating request"
412
- msgstr "Błąd podczas walidacji zapytania"
413
 
414
  #: includes/admin/install.php:210 includes/admin/views/install.php:104
415
  msgid "No updates available."
@@ -439,7 +432,6 @@ msgstr "Eksportuj grupy pól"
439
  #: includes/admin/tools/class-acf-admin-tool-export.php:38
440
  #: includes/admin/tools/class-acf-admin-tool-export.php:342
441
  #: includes/admin/tools/class-acf-admin-tool-export.php:371
442
- #, fuzzy
443
  msgid "Generate PHP"
444
  msgstr "Utwórz PHP"
445
 
@@ -449,12 +441,12 @@ msgid "No field groups selected"
449
  msgstr "Nie zaznaczono żadnej grupy pól"
450
 
451
  #: includes/admin/tools/class-acf-admin-tool-export.php:174
452
- #, fuzzy, php-format
453
  msgid "Exported 1 field group."
454
  msgid_plural "Exported %s field groups."
455
- msgstr[0] "Zaimportowano 1 grupę pól"
456
- msgstr[1] "Zaimportowano %s grupy pól"
457
- msgstr[2] "Zaimportowano %s grup pól"
458
 
459
  #: includes/admin/tools/class-acf-admin-tool-export.php:241
460
  #: includes/admin/tools/class-acf-admin-tool-export.php:269
@@ -474,9 +466,8 @@ msgstr ""
474
  "do wyeksportowania ustawień do kodu PHP, który można umieścić w motywie."
475
 
476
  #: includes/admin/tools/class-acf-admin-tool-export.php:341
477
- #, fuzzy
478
  msgid "Export File"
479
- msgstr "Edytuj plik"
480
 
481
  #: includes/admin/tools/class-acf-admin-tool-export.php:414
482
  msgid ""
@@ -488,17 +479,17 @@ msgid ""
488
  msgstr ""
489
  "Poniższy kod może być użyty do rejestracji lokalnej wersji wybranej grupy "
490
  "lub grup pól. Lokalna grupa pól może dostarczyć wiele korzyści takich jak "
491
- "szybszy czas ładowania, możliwość wersjonowania i dynamiczne pola / "
492
  "ustawienia. Wystarczy skopiować i wkleić poniższy kod do pliku functions.php "
493
  "Twojego motywu lub dołączyć go do zewnętrznego pliku."
494
 
495
  #: includes/admin/tools/class-acf-admin-tool-export.php:446
496
  msgid "Copy to clipboard"
497
- msgstr ""
498
 
499
  #: includes/admin/tools/class-acf-admin-tool-export.php:483
500
  msgid "Copied"
501
- msgstr ""
502
 
503
  #: includes/admin/tools/class-acf-admin-tool-import.php:26
504
  msgid "Import Field Groups"
@@ -518,9 +509,8 @@ msgid "Select File"
518
  msgstr "Wybierz plik"
519
 
520
  #: includes/admin/tools/class-acf-admin-tool-import.php:76
521
- #, fuzzy
522
  msgid "Import File"
523
- msgstr "Importowany plik jest pusty"
524
 
525
  #: includes/admin/tools/class-acf-admin-tool-import.php:100
526
  #: includes/fields/class-acf-field-file.php:170
@@ -529,7 +519,7 @@ msgstr "Nie zaznaczono żadnego pliku"
529
 
530
  #: includes/admin/tools/class-acf-admin-tool-import.php:113
531
  msgid "Error uploading file. Please try again"
532
- msgstr "Błąd wgrywania pliku. Proszę spróbować ponownie"
533
 
534
  #: includes/admin/tools/class-acf-admin-tool-import.php:122
535
  msgid "Incorrect file type"
@@ -631,7 +621,7 @@ msgstr "Instrukcje"
631
 
632
  #: includes/admin/views/field-group-field.php:97
633
  msgid "Instructions for authors. Shown when submitting data"
634
- msgstr "Instrukcje dla autorów. Będą widoczne w trakcie wpisywania danych"
635
 
636
  #: includes/admin/views/field-group-field.php:106
637
  msgid "Required?"
@@ -677,9 +667,8 @@ msgid "Name"
677
  msgstr "Nazwa"
678
 
679
  #: includes/admin/views/field-group-fields.php:7
680
- #, fuzzy
681
  msgid "Key"
682
- msgstr "Pokaż klucz pola:"
683
 
684
  #: includes/admin/views/field-group-fields.php:8
685
  msgid "Type"
@@ -765,7 +754,7 @@ msgstr "Pod polami"
765
 
766
  #: includes/admin/views/field-group-options.php:85
767
  msgid "Order No."
768
- msgstr "Nr w kolejności"
769
 
770
  #: includes/admin/views/field-group-options.php:86
771
  msgid "Field groups with a lower order will appear first"
@@ -797,7 +786,7 @@ msgstr "Komentarze"
797
 
798
  #: includes/admin/views/field-group-options.php:113
799
  msgid "Revisions"
800
- msgstr "Rewizje"
801
 
802
  #: includes/admin/views/field-group-options.php:114
803
  msgid "Slug"
@@ -855,7 +844,7 @@ msgstr "Pokaż tą grupę pól jeśli"
855
 
856
  #: includes/admin/views/install-network.php:4
857
  msgid "Upgrade Sites"
858
- msgstr "Aktualizacja stron"
859
 
860
  #: includes/admin/views/install-network.php:9
861
  #: includes/admin/views/install.php:3
@@ -868,22 +857,22 @@ msgid ""
868
  "The following sites require a DB upgrade. Check the ones you want to update "
869
  "and then click %s."
870
  msgstr ""
871
- "Następujące strony wymagają aktualizacji bazy danych. Zaznacz te, które "
872
  "chcesz zaktualizować i kliknij %s."
873
 
874
  #: includes/admin/views/install-network.php:20
875
  #: includes/admin/views/install-network.php:28
876
  msgid "Site"
877
- msgstr "Strona"
878
 
879
  #: includes/admin/views/install-network.php:48
880
  #, php-format
881
  msgid "Site requires database upgrade from %s to %s"
882
- msgstr "Strona wymaga aktualizacji bazy danych z %s na %s"
883
 
884
  #: includes/admin/views/install-network.php:50
885
  msgid "Site is up to date"
886
- msgstr "Ta strona jest aktualna"
887
 
888
  #: includes/admin/views/install-network.php:63
889
  #, php-format
@@ -919,7 +908,7 @@ msgstr "Pole powtarzalne"
919
  #: includes/admin/views/install-notice.php:9
920
  #: pro/fields/class-acf-field-flexible-content.php:25
921
  msgid "Flexible Content"
922
- msgstr "Elastyczne pole"
923
 
924
  #: includes/admin/views/install-notice.php:10
925
  #: pro/fields/class-acf-field-gallery.php:25
@@ -945,8 +934,8 @@ msgid ""
945
  "Before you start using the new awesome features, please update your database "
946
  "to the newest version."
947
  msgstr ""
948
- "Zanim zaczniesz korzystać z niesamowitych możliwości prosimy o "
949
- "zaktualizowanie bazy danych do najnowszej wersji."
950
 
951
  #: includes/admin/views/install-notice.php:31
952
  #, php-format
@@ -954,16 +943,18 @@ msgid ""
954
  "Please also ensure any premium add-ons (%s) have first been updated to the "
955
  "latest version."
956
  msgstr ""
 
 
957
 
958
  #: includes/admin/views/install.php:7
959
  msgid "Reading upgrade tasks..."
960
  msgstr "Czytam zadania aktualizacji..."
961
 
962
  #: includes/admin/views/install.php:11
963
- #, fuzzy, php-format
964
  msgid "Database Upgrade complete. <a href=\"%s\">See what's new</a>"
965
  msgstr ""
966
- "Aktualizacja bazy danych zakończona. <a href=\"%s\">Wróć do kokpitu sieci</a>"
967
 
968
  #: includes/admin/views/settings-addons.php:17
969
  msgid "Download & Install"
@@ -988,11 +979,11 @@ msgstr ""
988
 
989
  #: includes/admin/views/settings-info.php:17
990
  msgid "A smoother custom field experience"
991
- msgstr "Lepsze doznania z korzystania z własnych pól"
992
 
993
  #: includes/admin/views/settings-info.php:22
994
  msgid "Improved Usability"
995
- msgstr "Ulepszona użyteczność"
996
 
997
  #: includes/admin/views/settings-info.php:23
998
  msgid ""
@@ -1000,7 +991,7 @@ msgid ""
1000
  "across a number of field types including post object, page link, taxonomy "
1001
  "and select."
1002
  msgstr ""
1003
- "Użycie popularnej biblioteki Select2 poprawiła zarówno użyteczność jak i "
1004
  "szybkość wielu typów pól wliczając obiekty wpisów, odnośniki stron, "
1005
  "taksonomie i pola wyboru."
1006
 
@@ -1014,7 +1005,7 @@ msgid ""
1014
  "ever! Noticeable changes are seen on the gallery, relationship and oEmbed "
1015
  "(new) fields!"
1016
  msgstr ""
1017
- "Wiele pól przeszło graficzne odświeżenie aby ACF wyglądał lepiej niż "
1018
  "kiedykolwiek! Zmiany warte uwagi są widoczne w galerii, polach relacji i "
1019
  "polach oEmbed (nowość)!"
1020
 
@@ -1029,12 +1020,12 @@ msgid ""
1029
  "and out of parent fields!"
1030
  msgstr ""
1031
  "Przeprojektowanie architektury danych pozwoliła polom podrzędnym być "
1032
- "niezależnymi od swoich rodziców. Pozwala to na chwytanie i przenoszenie pól "
1033
- "pomiędzy rodzicami!"
1034
 
1035
  #: includes/admin/views/settings-info.php:39
1036
  msgid "Goodbye Add-ons. Hello PRO"
1037
- msgstr "Do widzenia Dodatki. Dzień dobry PRO."
1038
 
1039
  #: includes/admin/views/settings-info.php:44
1040
  msgid "Introducing ACF PRO"
@@ -1054,9 +1045,9 @@ msgid ""
1054
  "version of ACF</a>. With both personal and developer licenses available, "
1055
  "premium functionality is more affordable and accessible than ever before!"
1056
  msgstr ""
1057
- "Wszystkie 4 dodatki premium zostały połączone w nowy <a href=\"%s\">wersję "
1058
- "pro ACF</a>. Z oboma licencjami, personalną i deweloperską, funkcjonalność "
1059
- "jest bardziej przystępna i dostępna niż kiedykolwiek wcześniej!"
1060
 
1061
  #: includes/admin/views/settings-info.php:50
1062
  msgid "Powerful Features"
@@ -1069,8 +1060,8 @@ msgid ""
1069
  "options pages!"
1070
  msgstr ""
1071
  "ACF PRO zawiera zaawansowane funkcje, takie jak powtarzalne dane, elastyczne "
1072
- "układy treści, piękne galerie i możliwość tworzenia dodatkowych opcji "
1073
- "administracyjnych strony!"
1074
 
1075
  #: includes/admin/views/settings-info.php:52
1076
  #, php-format
@@ -1088,7 +1079,7 @@ msgid ""
1088
  "and claim a free copy of ACF PRO!"
1089
  msgstr ""
1090
  "Aby aktualizacja była łatwa, <a href=\"%s\">zaloguj się do swojego konta</a> "
1091
- "i pobierz darmową kopie ACF PRO!"
1092
 
1093
  #: includes/admin/views/settings-info.php:58
1094
  #, php-format
@@ -1097,8 +1088,8 @@ msgid ""
1097
  "but if you do have one, please contact our support team via the <a href=\"%s"
1098
  "\">help desk</a>"
1099
  msgstr ""
1100
- "Napisaliśmy również <a href=\"%s\">przewodnik aktualizacji</a> odpowiadający "
1101
- "na wiele pytań, ale jeśli masz jakieś pytanie skontaktuj się z nami na "
1102
  "stronie <a href=\"%s\">wsparcia technicznego</a>"
1103
 
1104
  #: includes/admin/views/settings-info.php:66
@@ -1111,7 +1102,7 @@ msgstr "Sprytniejsze ustawienia pól"
1111
 
1112
  #: includes/admin/views/settings-info.php:72
1113
  msgid "ACF now saves its field settings as individual post objects"
1114
- msgstr "ACF teraz zapisuje ustawienia pól jako osobny typ wpisu"
1115
 
1116
  #: includes/admin/views/settings-info.php:76
1117
  msgid "More AJAX"
@@ -1119,7 +1110,7 @@ msgstr "Więcej technologii AJAX"
1119
 
1120
  #: includes/admin/views/settings-info.php:77
1121
  msgid "More fields use AJAX powered search to speed up page loading"
1122
- msgstr "Więcej pól korzysta z AJAX aby przyspieszyć ładowanie stron"
1123
 
1124
  #: includes/admin/views/settings-info.php:81
1125
  msgid "Local JSON"
@@ -1142,7 +1133,7 @@ msgstr ""
1142
 
1143
  #: includes/admin/views/settings-info.php:93
1144
  msgid "Swapped XML for JSON"
1145
- msgstr "Zamieniony XML na JSON"
1146
 
1147
  #: includes/admin/views/settings-info.php:94
1148
  msgid "Import / Export now uses JSON in favour of XML"
@@ -1184,7 +1175,7 @@ msgstr ""
1184
 
1185
  #: includes/admin/views/settings-info.php:122
1186
  msgid "Better Front End Forms"
1187
- msgstr "Lepszy wygląd formularzy (front-end forms)"
1188
 
1189
  #: includes/admin/views/settings-info.php:123
1190
  msgid "acf_form() can now create a new post on submission"
@@ -1206,7 +1197,7 @@ msgstr "Pole relacji"
1206
  msgid ""
1207
  "New Relationship field setting for 'Filters' (Search, Post Type, Taxonomy)"
1208
  msgstr ""
1209
- "Nowe ustawienia pola relacji dla 'Filtrów' (Wyszukiwarka, Typ Wpisu, "
1210
  "Taksonomia)"
1211
 
1212
  #: includes/admin/views/settings-info.php:139
@@ -1238,13 +1229,13 @@ msgid ""
1238
  "New functions for options page allow creation of both parent and child menu "
1239
  "pages"
1240
  msgstr ""
1241
- "Nowe funkcje dla strony opcji pozwalające tworzyć strony w menu będące "
1242
- "rodzicami oraz dziećmi."
1243
 
1244
  #: includes/admin/views/settings-info.php:159
1245
  #, php-format
1246
  msgid "We think you'll love the changes in %s."
1247
- msgstr "Uważamy, że pokochasz zmiany w wersji %s."
1248
 
1249
  #: includes/api/api-helpers.php:1039
1250
  msgid "Thumbnail"
@@ -1270,27 +1261,27 @@ msgstr "(brak tytułu)"
1270
  #: includes/api/api-helpers.php:4086
1271
  #, php-format
1272
  msgid "Image width must be at least %dpx."
1273
- msgstr "Szerokość obrazu musi mieć co najmniej %d px."
1274
 
1275
  #: includes/api/api-helpers.php:4091
1276
  #, php-format
1277
  msgid "Image width must not exceed %dpx."
1278
- msgstr "Szerokość obrazu nie może przekraczać %d px."
1279
 
1280
  #: includes/api/api-helpers.php:4107
1281
  #, php-format
1282
  msgid "Image height must be at least %dpx."
1283
- msgstr "Wysokość obrazu musi mieć co najmniej %d px."
1284
 
1285
  #: includes/api/api-helpers.php:4112
1286
  #, php-format
1287
  msgid "Image height must not exceed %dpx."
1288
- msgstr "Wysokość obrazu nie może przekraczać %d px."
1289
 
1290
  #: includes/api/api-helpers.php:4130
1291
  #, php-format
1292
  msgid "File size must be at least %s."
1293
- msgstr "Rozmiar pliku musi mieć co najmniej %s."
1294
 
1295
  #: includes/api/api-helpers.php:4135
1296
  #, php-format
@@ -1300,7 +1291,7 @@ msgstr "Rozmiar pliku nie może przekraczać %s."
1300
  #: includes/api/api-helpers.php:4169
1301
  #, php-format
1302
  msgid "File type must be %s."
1303
- msgstr "Plik musi być typu %s."
1304
 
1305
  #: includes/assets.php:172
1306
  msgid "The changes you made will be lost if you navigate away from this page"
@@ -1324,7 +1315,7 @@ msgstr "Aktualizuj"
1324
 
1325
  #: includes/assets.php:178
1326
  msgid "Uploaded to this post"
1327
- msgstr "Wgrane do tego wpisu"
1328
 
1329
  #: includes/assets.php:179
1330
  msgid "Expand Details"
@@ -1340,7 +1331,7 @@ msgstr "Ograniczone"
1340
 
1341
  #: includes/assets.php:182 includes/fields/class-acf-field-image.php:67
1342
  msgid "All images"
1343
- msgstr "Wszystkie obrazki"
1344
 
1345
  #: includes/assets.php:185
1346
  msgid "Validation successful"
@@ -1390,49 +1381,43 @@ msgstr "Anuluj"
1390
 
1391
  #: includes/assets.php:198
1392
  msgid "Has any value"
1393
- msgstr ""
1394
 
1395
  #: includes/assets.php:199
1396
  msgid "Has no value"
1397
- msgstr ""
1398
 
1399
  #: includes/assets.php:200
1400
- #, fuzzy
1401
  msgid "Value is equal to"
1402
- msgstr "jest równe"
1403
 
1404
  #: includes/assets.php:201
1405
- #, fuzzy
1406
  msgid "Value is not equal to"
1407
- msgstr "jest inne niż"
1408
 
1409
  #: includes/assets.php:202
1410
- #, fuzzy
1411
  msgid "Value matches pattern"
1412
- msgstr "Wartość musi być liczbą"
1413
 
1414
  #: includes/assets.php:203
1415
  msgid "Value contains"
1416
- msgstr ""
1417
 
1418
  #: includes/assets.php:204
1419
- #, fuzzy
1420
  msgid "Value is greater than"
1421
- msgstr "Wartość musi być równa lub niższa od %d"
1422
 
1423
  #: includes/assets.php:205
1424
- #, fuzzy
1425
  msgid "Value is less than"
1426
- msgstr "Wartość musi być liczbą"
1427
 
1428
  #: includes/assets.php:206
1429
  msgid "Selection is greater than"
1430
- msgstr ""
1431
 
1432
  #: includes/assets.php:207
1433
- #, fuzzy
1434
  msgid "Selection is less than"
1435
- msgstr "Wybierz plik"
1436
 
1437
  #: includes/fields.php:308
1438
  msgid "Field type does not exist"
@@ -1440,7 +1425,7 @@ msgstr "Typ pola nie istnieje"
1440
 
1441
  #: includes/fields.php:308
1442
  msgid "Unknown"
1443
- msgstr ""
1444
 
1445
  #: includes/fields.php:349
1446
  msgid "Basic"
@@ -1448,7 +1433,7 @@ msgstr "Podstawowe"
1448
 
1449
  #: includes/fields.php:350 includes/forms/form-front.php:47
1450
  msgid "Content"
1451
- msgstr "Edytor treści"
1452
 
1453
  #: includes/fields.php:351
1454
  msgid "Choice"
@@ -1456,7 +1441,7 @@ msgstr "Wybór"
1456
 
1457
  #: includes/fields.php:352
1458
  msgid "Relational"
1459
- msgstr "Relacja"
1460
 
1461
  #: includes/fields.php:353
1462
  msgid "jQuery"
@@ -1472,31 +1457,30 @@ msgstr "jQuery"
1472
  #: pro/fields/class-acf-field-flexible-content.php:616
1473
  #: pro/fields/class-acf-field-repeater.php:443
1474
  msgid "Layout"
1475
- msgstr "Szablon"
1476
 
1477
  #: includes/fields/class-acf-field-accordion.php:24
1478
  msgid "Accordion"
1479
- msgstr ""
1480
 
1481
  #: includes/fields/class-acf-field-accordion.php:99
1482
  msgid "Open"
1483
- msgstr ""
1484
 
1485
  #: includes/fields/class-acf-field-accordion.php:100
1486
  msgid "Display this accordion as open on page load."
1487
- msgstr ""
1488
 
1489
  #: includes/fields/class-acf-field-accordion.php:109
1490
  msgid "Multi-expand"
1491
- msgstr ""
1492
 
1493
  #: includes/fields/class-acf-field-accordion.php:110
1494
  msgid "Allow this accordion to open without closing others."
1495
- msgstr ""
1496
 
1497
  #: includes/fields/class-acf-field-accordion.php:119
1498
  #: includes/fields/class-acf-field-tab.php:114
1499
- #, fuzzy
1500
  msgid "Endpoint"
1501
  msgstr "Punkt końcowy"
1502
 
@@ -1505,10 +1489,12 @@ msgid ""
1505
  "Define an endpoint for the previous accordion to stop. This accordion will "
1506
  "not be visible."
1507
  msgstr ""
 
 
1508
 
1509
  #: includes/fields/class-acf-field-button-group.php:24
1510
  msgid "Button Group"
1511
- msgstr ""
1512
 
1513
  #: includes/fields/class-acf-field-button-group.php:149
1514
  #: includes/fields/class-acf-field-checkbox.php:344
@@ -1530,7 +1516,8 @@ msgstr "Wpisz każdy z wyborów w osobnej linii."
1530
  #: includes/fields/class-acf-field-select.php:371
1531
  msgid "For more control, you may specify both a value and label like this:"
1532
  msgstr ""
1533
- "Aby uzyskać większą kontrolę, można określić zarówno wartość i etykietę tak:"
 
1534
 
1535
  #: includes/fields/class-acf-field-button-group.php:150
1536
  #: includes/fields/class-acf-field-checkbox.php:345
@@ -1547,7 +1534,7 @@ msgstr "czerwony : Czerwony"
1547
  #: includes/fields/class-acf-field-taxonomy.php:784
1548
  #: includes/fields/class-acf-field-user.php:409
1549
  msgid "Allow Null?"
1550
- msgstr "Zezwolić na pustą wartość?"
1551
 
1552
  #: includes/fields/class-acf-field-button-group.php:168
1553
  #: includes/fields/class-acf-field-checkbox.php:380
@@ -1632,38 +1619,33 @@ msgid "Toggle All"
1632
  msgstr "Przełącz wszystko"
1633
 
1634
  #: includes/fields/class-acf-field-checkbox.php:221
1635
- #, fuzzy
1636
  msgid "Add new choice"
1637
- msgstr "Dodaj nowe pole"
1638
 
1639
  #: includes/fields/class-acf-field-checkbox.php:353
1640
- #, fuzzy
1641
  msgid "Allow Custom"
1642
- msgstr ""
1643
- "Dodaj pole 'other' aby zezwolić na definiowane przez użytkownika wartości"
1644
 
1645
  #: includes/fields/class-acf-field-checkbox.php:358
1646
  msgid "Allow 'custom' values to be added"
1647
- msgstr ""
1648
 
1649
  #: includes/fields/class-acf-field-checkbox.php:364
1650
- #, fuzzy
1651
  msgid "Save Custom"
1652
- msgstr "Przenieś pole"
1653
 
1654
  #: includes/fields/class-acf-field-checkbox.php:369
1655
- #, fuzzy
1656
  msgid "Save 'custom' values to the field's choices"
1657
- msgstr "Dopisz zapisaną wartość pola 'other' do wyborów tego pola"
1658
 
1659
  #: includes/fields/class-acf-field-checkbox.php:381
1660
  #: includes/fields/class-acf-field-select.php:380
1661
  msgid "Enter each default value on a new line"
1662
- msgstr "Wpisz każdą domyślną wartość w nowej linii"
1663
 
1664
  #: includes/fields/class-acf-field-checkbox.php:403
1665
  msgid "Toggle"
1666
- msgstr "Grupowe zaznaczanie"
1667
 
1668
  #: includes/fields/class-acf-field-checkbox.php:404
1669
  msgid "Prepend an extra checkbox to toggle all choices"
@@ -1689,7 +1671,7 @@ msgstr "Wybierz kolor"
1689
 
1690
  #: includes/fields/class-acf-field-color_picker.php:71
1691
  msgid "Current Color"
1692
- msgstr "Aktualny Kolor"
1693
 
1694
  #: includes/fields/class-acf-field-date_picker.php:25
1695
  msgid "Date Picker"
@@ -1708,17 +1690,17 @@ msgstr "Dzisiaj"
1708
  #: includes/fields/class-acf-field-date_picker.php:61
1709
  msgctxt "Date Picker JS nextText"
1710
  msgid "Next"
1711
- msgstr "Następne"
1712
 
1713
  #: includes/fields/class-acf-field-date_picker.php:62
1714
  msgctxt "Date Picker JS prevText"
1715
  msgid "Prev"
1716
- msgstr "Poprzednie"
1717
 
1718
  #: includes/fields/class-acf-field-date_picker.php:63
1719
  msgctxt "Date Picker JS weekHeader"
1720
  msgid "Wk"
1721
- msgstr "Tydz."
1722
 
1723
  #: includes/fields/class-acf-field-date_picker.php:180
1724
  #: includes/fields/class-acf-field-date_time_picker.php:183
@@ -1738,19 +1720,16 @@ msgstr "Wyświetlany format przy edycji wpisu"
1738
  #: includes/fields/class-acf-field-date_time_picker.php:210
1739
  #: includes/fields/class-acf-field-time_picker.php:117
1740
  #: includes/fields/class-acf-field-time_picker.php:132
1741
- #, fuzzy
1742
  msgid "Custom:"
1743
- msgstr "Zaawansowane własne pola"
1744
 
1745
  #: includes/fields/class-acf-field-date_picker.php:199
1746
- #, fuzzy
1747
  msgid "Save Format"
1748
- msgstr "Format zapisu"
1749
 
1750
  #: includes/fields/class-acf-field-date_picker.php:200
1751
- #, fuzzy
1752
  msgid "The format used when saving a value"
1753
- msgstr "Wyświetlany format przy edycji wpisu"
1754
 
1755
  #: includes/fields/class-acf-field-date_picker.php:210
1756
  #: includes/fields/class-acf-field-date_time_picker.php:200
@@ -1760,7 +1739,7 @@ msgstr "Wyświetlany format przy edycji wpisu"
1760
  #: includes/fields/class-acf-field-time_picker.php:124
1761
  #: includes/fields/class-acf-field-user.php:428
1762
  msgid "Return Format"
1763
- msgstr "Zwracana wartość"
1764
 
1765
  #: includes/fields/class-acf-field-date_picker.php:211
1766
  #: includes/fields/class-acf-field-date_time_picker.php:201
@@ -1800,17 +1779,17 @@ msgstr "Minuta"
1800
  #: includes/fields/class-acf-field-date_time_picker.php:72
1801
  msgctxt "Date Time Picker JS secondText"
1802
  msgid "Second"
1803
- msgstr "Sekund"
1804
 
1805
  #: includes/fields/class-acf-field-date_time_picker.php:73
1806
  msgctxt "Date Time Picker JS millisecText"
1807
  msgid "Millisecond"
1808
- msgstr "Milisekund"
1809
 
1810
  #: includes/fields/class-acf-field-date_time_picker.php:74
1811
  msgctxt "Date Time Picker JS microsecText"
1812
  msgid "Microsecond"
1813
- msgstr "Mikrosekund"
1814
 
1815
  #: includes/fields/class-acf-field-date_time_picker.php:75
1816
  msgctxt "Date Time Picker JS timezoneText"
@@ -1854,7 +1833,7 @@ msgstr "P"
1854
 
1855
  #: includes/fields/class-acf-field-email.php:25
1856
  msgid "Email"
1857
- msgstr "Email"
1858
 
1859
  #: includes/fields/class-acf-field-email.php:127
1860
  #: includes/fields/class-acf-field-number.php:136
@@ -1872,7 +1851,7 @@ msgstr "Placeholder (tekst zastępczy)"
1872
  #: includes/fields/class-acf-field-textarea.php:112
1873
  #: includes/fields/class-acf-field-url.php:110
1874
  msgid "Appears within the input"
1875
- msgstr "Pojawia się w inpucie"
1876
 
1877
  #: includes/fields/class-acf-field-email.php:136
1878
  #: includes/fields/class-acf-field-number.php:145
@@ -1888,7 +1867,7 @@ msgstr "Przed polem (prefiks)"
1888
  #: includes/fields/class-acf-field-range.php:186
1889
  #: includes/fields/class-acf-field-text.php:138
1890
  msgid "Appears before the input"
1891
- msgstr "Pojawia się przed inputem"
1892
 
1893
  #: includes/fields/class-acf-field-email.php:145
1894
  #: includes/fields/class-acf-field-number.php:154
@@ -1896,7 +1875,7 @@ msgstr "Pojawia się przed inputem"
1896
  #: includes/fields/class-acf-field-range.php:194
1897
  #: includes/fields/class-acf-field-text.php:146
1898
  msgid "Append"
1899
- msgstr "Za polem (sufix)"
1900
 
1901
  #: includes/fields/class-acf-field-email.php:146
1902
  #: includes/fields/class-acf-field-number.php:155
@@ -1904,7 +1883,7 @@ msgstr "Za polem (sufix)"
1904
  #: includes/fields/class-acf-field-range.php:195
1905
  #: includes/fields/class-acf-field-text.php:147
1906
  msgid "Appears after the input"
1907
- msgstr "Pojawia się za inputem"
1908
 
1909
  #: includes/fields/class-acf-field-file.php:25
1910
  msgid "File"
@@ -1938,7 +1917,7 @@ msgstr "Dodaj plik"
1938
 
1939
  #: includes/fields/class-acf-field-file.php:221
1940
  msgid "File Array"
1941
- msgstr "Tablica pliku"
1942
 
1943
  #: includes/fields/class-acf-field-file.php:222
1944
  msgid "File URL"
@@ -1958,7 +1937,7 @@ msgstr "Biblioteka"
1958
  #: includes/fields/class-acf-field-image.php:231
1959
  #: pro/fields/class-acf-field-gallery.php:671
1960
  msgid "Limit the media library choice"
1961
- msgstr "Ograniczenie wyborów z bibliteki"
1962
 
1963
  #: includes/fields/class-acf-field-file.php:236
1964
  #: includes/fields/class-acf-field-image.php:236
@@ -1977,7 +1956,7 @@ msgstr "Wszystkie"
1977
  #: includes/fields/class-acf-field-image.php:237
1978
  #: pro/fields/class-acf-field-gallery.php:677
1979
  msgid "Uploaded to post"
1980
- msgstr "Wgrane do wpisu"
1981
 
1982
  #: includes/fields/class-acf-field-file.php:244
1983
  #: includes/fields/class-acf-field-image.php:244
@@ -2006,7 +1985,7 @@ msgstr "Dozwolone typy plików"
2006
  #: includes/fields/class-acf-field-image.php:303
2007
  #: pro/fields/class-acf-field-gallery.php:743
2008
  msgid "Comma separated list. Leave blank for all types"
2009
- msgstr "Lista rozdzielana przecinkiem. Pozostaw puste dla wszystkich typów"
2010
 
2011
  #: includes/fields/class-acf-field-google-map.php:25
2012
  msgid "Google Map"
@@ -2014,15 +1993,15 @@ msgstr "Mapa Google"
2014
 
2015
  #: includes/fields/class-acf-field-google-map.php:59
2016
  msgid "Sorry, this browser does not support geolocation"
2017
- msgstr "Przepraszamy, ten przeglądarka nie obsługuje geolokalizacji"
2018
 
2019
  #: includes/fields/class-acf-field-google-map.php:165
2020
  msgid "Clear location"
2021
- msgstr "Wyczyść lokalizacje"
2022
 
2023
  #: includes/fields/class-acf-field-google-map.php:166
2024
  msgid "Find current location"
2025
- msgstr "Znajdź aktualną lokalizacje"
2026
 
2027
  #: includes/fields/class-acf-field-google-map.php:169
2028
  msgid "Search for address..."
@@ -2060,9 +2039,8 @@ msgid "Customise the map height"
2060
  msgstr "Dostosuj wysokość mapy"
2061
 
2062
  #: includes/fields/class-acf-field-group.php:25
2063
- #, fuzzy
2064
  msgid "Group"
2065
- msgstr "Grupuj (wyświetl wybrane pola w grupie)"
2066
 
2067
  #: includes/fields/class-acf-field-group.php:459
2068
  #: pro/fields/class-acf-field-repeater.php:379
@@ -2072,7 +2050,7 @@ msgstr "Pola podrzędne"
2072
  #: includes/fields/class-acf-field-group.php:475
2073
  #: pro/fields/class-acf-field-clone.php:844
2074
  msgid "Specify the style used to render the selected fields"
2075
- msgstr "Określ style wykorzystywany to tworzenia wybranych pól"
2076
 
2077
  #: includes/fields/class-acf-field-group.php:480
2078
  #: pro/fields/class-acf-field-clone.php:849
@@ -2097,47 +2075,47 @@ msgstr "Wiersz"
2097
 
2098
  #: includes/fields/class-acf-field-image.php:25
2099
  msgid "Image"
2100
- msgstr "Obrazek"
2101
 
2102
  #: includes/fields/class-acf-field-image.php:64
2103
  msgid "Select Image"
2104
- msgstr "Wybierz obrazek"
2105
 
2106
  #: includes/fields/class-acf-field-image.php:65
2107
  msgid "Edit Image"
2108
- msgstr "Edytuj obrazek"
2109
 
2110
  #: includes/fields/class-acf-field-image.php:66
2111
  msgid "Update Image"
2112
- msgstr "Aktualizuj obrazek"
2113
 
2114
  #: includes/fields/class-acf-field-image.php:157
2115
  msgid "No image selected"
2116
- msgstr "Nie wybrano obrazka"
2117
 
2118
  #: includes/fields/class-acf-field-image.php:157
2119
  msgid "Add Image"
2120
- msgstr "Dodaj obrazek"
2121
 
2122
  #: includes/fields/class-acf-field-image.php:211
2123
  msgid "Image Array"
2124
- msgstr "Tablica obrazków"
2125
 
2126
  #: includes/fields/class-acf-field-image.php:212
2127
  msgid "Image URL"
2128
- msgstr "Adres URL obrazka"
2129
 
2130
  #: includes/fields/class-acf-field-image.php:213
2131
  msgid "Image ID"
2132
- msgstr "ID obrazka"
2133
 
2134
  #: includes/fields/class-acf-field-image.php:220
2135
  msgid "Preview Size"
2136
- msgstr "Wielkość obrazka"
2137
 
2138
  #: includes/fields/class-acf-field-image.php:221
2139
  msgid "Shown when entering data"
2140
- msgstr "Pokaż podczas wprowadzania danych"
2141
 
2142
  #: includes/fields/class-acf-field-image.php:245
2143
  #: includes/fields/class-acf-field-image.php:274
@@ -2155,28 +2133,24 @@ msgid "Width"
2155
  msgstr "Szerokość"
2156
 
2157
  #: includes/fields/class-acf-field-link.php:25
2158
- #, fuzzy
2159
  msgid "Link"
2160
- msgstr "Odnośnik do strony"
2161
 
2162
  #: includes/fields/class-acf-field-link.php:133
2163
- #, fuzzy
2164
  msgid "Select Link"
2165
- msgstr "Wybierz plik"
2166
 
2167
  #: includes/fields/class-acf-field-link.php:138
2168
  msgid "Opens in a new window/tab"
2169
- msgstr ""
2170
 
2171
  #: includes/fields/class-acf-field-link.php:172
2172
- #, fuzzy
2173
  msgid "Link Array"
2174
- msgstr "Tablica pliku"
2175
 
2176
  #: includes/fields/class-acf-field-link.php:173
2177
- #, fuzzy
2178
  msgid "Link URL"
2179
- msgstr "Adres URL pliku"
2180
 
2181
  #: includes/fields/class-acf-field-message.php:25
2182
  #: includes/fields/class-acf-field-message.php:101
@@ -2211,12 +2185,12 @@ msgstr "Brak formatowania"
2211
 
2212
  #: includes/fields/class-acf-field-message.php:124
2213
  msgid "Escape HTML"
2214
- msgstr "dodawaj znaki ucieczki do HTML (escape)"
2215
 
2216
  #: includes/fields/class-acf-field-message.php:125
2217
  msgid "Allow HTML markup to display as visible text instead of rendering"
2218
  msgstr ""
2219
- "Zezwól aby znaczniki HTMLa były wyświetlana jako widoczny tekst, a nie "
2220
  "renderowane."
2221
 
2222
  #: includes/fields/class-acf-field-number.php:25
@@ -2236,7 +2210,7 @@ msgstr "Maksymalna wartość"
2236
  #: includes/fields/class-acf-field-number.php:181
2237
  #: includes/fields/class-acf-field-range.php:175
2238
  msgid "Step Size"
2239
- msgstr "Wartość kroku"
2240
 
2241
  #: includes/fields/class-acf-field-number.php:219
2242
  msgid "Value must be a number"
@@ -2258,7 +2232,7 @@ msgstr "oEmbed"
2258
 
2259
  #: includes/fields/class-acf-field-oembed.php:216
2260
  msgid "Enter URL"
2261
- msgstr "Wpisz URL"
2262
 
2263
  #: includes/fields/class-acf-field-oembed.php:254
2264
  #: includes/fields/class-acf-field-oembed.php:265
@@ -2285,7 +2259,7 @@ msgstr "Filtruj wg typu wpisu"
2285
  #: includes/fields/class-acf-field-post_object.php:392
2286
  #: includes/fields/class-acf-field-relationship.php:649
2287
  msgid "All post types"
2288
- msgstr "Wszystkie typu wpisów"
2289
 
2290
  #: includes/fields/class-acf-field-page_link.php:499
2291
  #: includes/fields/class-acf-field-post_object.php:398
@@ -2301,7 +2275,7 @@ msgstr "Wszystkie taksonomie"
2301
 
2302
  #: includes/fields/class-acf-field-page_link.php:523
2303
  msgid "Allow Archives URLs"
2304
- msgstr "Pozwól na archiwa URLi"
2305
 
2306
  #: includes/fields/class-acf-field-page_link.php:533
2307
  #: includes/fields/class-acf-field-post_object.php:422
@@ -2318,7 +2292,7 @@ msgstr "Hasło"
2318
  #: includes/fields/class-acf-field-post_object.php:437
2319
  #: includes/fields/class-acf-field-relationship.php:720
2320
  msgid "Post Object"
2321
- msgstr "Obiekt wpis"
2322
 
2323
  #: includes/fields/class-acf-field-post_object.php:438
2324
  #: includes/fields/class-acf-field-relationship.php:721
@@ -2331,24 +2305,24 @@ msgstr "Przycisk opcji (radio)"
2331
 
2332
  #: includes/fields/class-acf-field-radio.php:254
2333
  msgid "Other"
2334
- msgstr "Pozostałe"
2335
 
2336
  #: includes/fields/class-acf-field-radio.php:259
2337
  msgid "Add 'other' choice to allow for custom values"
2338
  msgstr ""
2339
- "Dodaj pole 'other' aby zezwolić na definiowane przez użytkownika wartości"
2340
 
2341
  #: includes/fields/class-acf-field-radio.php:265
2342
  msgid "Save Other"
2343
- msgstr "Zapisz Inne"
2344
 
2345
  #: includes/fields/class-acf-field-radio.php:270
2346
  msgid "Save 'other' values to the field's choices"
2347
- msgstr "Dopisz zapisaną wartość pola 'other' do wyborów tego pola"
2348
 
2349
  #: includes/fields/class-acf-field-range.php:25
2350
  msgid "Range"
2351
- msgstr ""
2352
 
2353
  #: includes/fields/class-acf-field-relationship.php:25
2354
  msgid "Relationship"
@@ -2356,11 +2330,11 @@ msgstr "Relacja"
2356
 
2357
  #: includes/fields/class-acf-field-relationship.php:62
2358
  msgid "Maximum values reached ( {max} values )"
2359
- msgstr "Maksymalna liczba została przekroczona ( {max} )"
2360
 
2361
  #: includes/fields/class-acf-field-relationship.php:63
2362
  msgid "Loading"
2363
- msgstr "Wczytuje"
2364
 
2365
  #: includes/fields/class-acf-field-relationship.php:64
2366
  msgid "No matches found"
@@ -2372,7 +2346,7 @@ msgstr "Wybierz typ wpisu"
2372
 
2373
  #: includes/fields/class-acf-field-relationship.php:467
2374
  msgid "Select taxonomy"
2375
- msgstr "Wybierz taksonomie"
2376
 
2377
  #: includes/fields/class-acf-field-relationship.php:557
2378
  msgid "Search..."
@@ -2400,7 +2374,7 @@ msgstr "Elementy"
2400
 
2401
  #: includes/fields/class-acf-field-relationship.php:684
2402
  msgid "Selected elements will be displayed in each result"
2403
- msgstr "Wybrane elementy będą wyświetlona w każdym wyniku"
2404
 
2405
  #: includes/fields/class-acf-field-relationship.php:695
2406
  msgid "Minimum posts"
@@ -2415,26 +2389,26 @@ msgstr "Maksimum wpisów"
2415
  #, php-format
2416
  msgid "%s requires at least %s selection"
2417
  msgid_plural "%s requires at least %s selections"
2418
- msgstr[0] "%s wymagany przynajmniej %s wybór"
2419
- msgstr[1] "%s wymagane przynajmniej %s wybory"
2420
- msgstr[2] "%s wymagane przynajmniej %s wybory"
2421
 
2422
  #: includes/fields/class-acf-field-select.php:25
2423
  #: includes/fields/class-acf-field-taxonomy.php:776
2424
  msgctxt "noun"
2425
  msgid "Select"
2426
- msgstr "Wybierz"
2427
 
2428
  #: includes/fields/class-acf-field-select.php:111
2429
  msgctxt "Select2 JS matches_1"
2430
  msgid "One result is available, press enter to select it."
2431
- msgstr "Jeden wynik jest dostępny, wciśnij enter żeby go wybrać."
2432
 
2433
  #: includes/fields/class-acf-field-select.php:112
2434
  #, php-format
2435
  msgctxt "Select2 JS matches_n"
2436
  msgid "%d results are available, use up and down arrow keys to navigate."
2437
- msgstr "%d wyników dostępnych, użyj strzałek w góre i w dół aby nawigować."
2438
 
2439
  #: includes/fields/class-acf-field-select.php:113
2440
  msgctxt "Select2 JS matches_0"
@@ -2461,7 +2435,7 @@ msgstr "Proszę usunąć 1 znak"
2461
  #, php-format
2462
  msgctxt "Select2 JS input_too_long_n"
2463
  msgid "Please delete %d characters"
2464
- msgstr "Proszę usunąć %d znaków"
2465
 
2466
  #: includes/fields/class-acf-field-select.php:118
2467
  msgctxt "Select2 JS selection_too_long_1"
@@ -2472,12 +2446,12 @@ msgstr "Możesz wybrać tylko 1 element"
2472
  #, php-format
2473
  msgctxt "Select2 JS selection_too_long_n"
2474
  msgid "You can only select %d items"
2475
- msgstr "Możesz wybrać tylko %d elementów"
2476
 
2477
  #: includes/fields/class-acf-field-select.php:120
2478
  msgctxt "Select2 JS load_more"
2479
  msgid "Loading more results&hellip;"
2480
- msgstr "Wczytuję więcej wyników&hellip;"
2481
 
2482
  #: includes/fields/class-acf-field-select.php:121
2483
  msgctxt "Select2 JS searching"
@@ -2487,24 +2461,24 @@ msgstr "Szukam&hellip;"
2487
  #: includes/fields/class-acf-field-select.php:122
2488
  msgctxt "Select2 JS load_fail"
2489
  msgid "Loading failed"
2490
- msgstr "Wczytywanie zakończone niepowodzeniem"
2491
 
2492
  #: includes/fields/class-acf-field-select.php:408
2493
  #: includes/fields/class-acf-field-true_false.php:144
2494
  msgid "Stylised UI"
2495
- msgstr "Ostylowany interfejs"
2496
 
2497
  #: includes/fields/class-acf-field-select.php:418
2498
  msgid "Use AJAX to lazy load choices?"
2499
- msgstr "Użyj z AJAX do wczytywania wyników?"
2500
 
2501
  #: includes/fields/class-acf-field-select.php:434
2502
  msgid "Specify the value returned"
2503
- msgstr "Określ wartość zwracaną na stronie"
2504
 
2505
  #: includes/fields/class-acf-field-separator.php:25
2506
  msgid "Separator"
2507
- msgstr ""
2508
 
2509
  #: includes/fields/class-acf-field-tab.php:25
2510
  msgid "Tab"
@@ -2515,21 +2489,20 @@ msgid "Placement"
2515
  msgstr "Położenie"
2516
 
2517
  #: includes/fields/class-acf-field-tab.php:115
2518
- #, fuzzy
2519
  msgid ""
2520
  "Define an endpoint for the previous tabs to stop. This will start a new "
2521
  "group of tabs."
2522
- msgstr "Użyj tego pola jako punkt końcowy i zacznij nową grupę zakładek"
2523
 
2524
  #: includes/fields/class-acf-field-taxonomy.php:714
2525
- #, fuzzy, php-format
2526
  msgctxt "No terms"
2527
  msgid "No %s"
2528
- msgstr "Zobacz co nowego w <a href=\"%s\">wersji %s</a>."
2529
 
2530
  #: includes/fields/class-acf-field-taxonomy.php:755
2531
  msgid "Select the taxonomy to be displayed"
2532
- msgstr "Wybierz taksonomie do wyświetlenia"
2533
 
2534
  #: includes/fields/class-acf-field-taxonomy.php:764
2535
  msgid "Appearance"
@@ -2537,7 +2510,7 @@ msgstr "Wygląd"
2537
 
2538
  #: includes/fields/class-acf-field-taxonomy.php:765
2539
  msgid "Select the appearance of this field"
2540
- msgstr "Wybierz wygląd tego pola"
2541
 
2542
  #: includes/fields/class-acf-field-taxonomy.php:770
2543
  msgid "Multiple Values"
@@ -2561,7 +2534,7 @@ msgstr "Tworzenie terminów taksonomii"
2561
 
2562
  #: includes/fields/class-acf-field-taxonomy.php:800
2563
  msgid "Allow new terms to be created whilst editing"
2564
- msgstr "Pozwól na tworzenie nowych terminów taksonomi podczas edycji"
2565
 
2566
  #: includes/fields/class-acf-field-taxonomy.php:809
2567
  msgid "Save Terms"
@@ -2573,7 +2546,7 @@ msgstr "Przypisz wybrane terminy taksonomii do wpisu"
2573
 
2574
  #: includes/fields/class-acf-field-taxonomy.php:819
2575
  msgid "Load Terms"
2576
- msgstr "Wczytaj terminy taksonomiii"
2577
 
2578
  #: includes/fields/class-acf-field-taxonomy.php:820
2579
  msgid "Load value from posts terms"
@@ -2600,7 +2573,7 @@ msgstr "%s już istnieje"
2600
  #: includes/fields/class-acf-field-taxonomy.php:927
2601
  #, php-format
2602
  msgid "%s added"
2603
- msgstr "%s dodany"
2604
 
2605
  #: includes/fields/class-acf-field-taxonomy.php:973
2606
  msgid "Add"
@@ -2630,7 +2603,7 @@ msgstr "Wiersze"
2630
 
2631
  #: includes/fields/class-acf-field-textarea.php:130
2632
  msgid "Sets the textarea height"
2633
- msgstr "Określ wysokość obszaru tekstowego"
2634
 
2635
  #: includes/fields/class-acf-field-time_picker.php:25
2636
  msgid "Time Picker"
@@ -2642,25 +2615,23 @@ msgstr "Prawda / Fałsz"
2642
 
2643
  #: includes/fields/class-acf-field-true_false.php:127
2644
  msgid "Displays text alongside the checkbox"
2645
- msgstr ""
2646
 
2647
  #: includes/fields/class-acf-field-true_false.php:155
2648
- #, fuzzy
2649
  msgid "On Text"
2650
- msgstr "Tekst"
2651
 
2652
  #: includes/fields/class-acf-field-true_false.php:156
2653
  msgid "Text shown when active"
2654
- msgstr ""
2655
 
2656
  #: includes/fields/class-acf-field-true_false.php:170
2657
- #, fuzzy
2658
  msgid "Off Text"
2659
- msgstr "Tekst"
2660
 
2661
  #: includes/fields/class-acf-field-true_false.php:171
2662
  msgid "Text shown when inactive"
2663
- msgstr ""
2664
 
2665
  #: includes/fields/class-acf-field-url.php:25
2666
  msgid "Url"
@@ -2683,19 +2654,16 @@ msgid "All user roles"
2683
  msgstr "Wszystkie role użytkownika"
2684
 
2685
  #: includes/fields/class-acf-field-user.php:433
2686
- #, fuzzy
2687
  msgid "User Array"
2688
- msgstr "Tablica pliku"
2689
 
2690
  #: includes/fields/class-acf-field-user.php:434
2691
- #, fuzzy
2692
  msgid "User Object"
2693
- msgstr "Obiekt terminu (WP_Term)"
2694
 
2695
  #: includes/fields/class-acf-field-user.php:435
2696
- #, fuzzy
2697
  msgid "User ID"
2698
- msgstr "Użytkownik"
2699
 
2700
  #: includes/fields/class-acf-field-wysiwyg.php:25
2701
  msgid "Wysiwyg Editor"
@@ -2708,11 +2676,11 @@ msgstr "Wizualny"
2708
  #: includes/fields/class-acf-field-wysiwyg.php:347
2709
  msgctxt "Name for the Text editor tab (formerly HTML)"
2710
  msgid "Text"
2711
- msgstr "Edytor tekstowy"
2712
 
2713
  #: includes/fields/class-acf-field-wysiwyg.php:353
2714
  msgid "Click to initialize TinyMCE"
2715
- msgstr ""
2716
 
2717
  #: includes/fields/class-acf-field-wysiwyg.php:406
2718
  msgid "Tabs"
@@ -2720,15 +2688,15 @@ msgstr "Zakładki"
2720
 
2721
  #: includes/fields/class-acf-field-wysiwyg.php:411
2722
  msgid "Visual & Text"
2723
- msgstr "Wizualny i Tekst"
2724
 
2725
  #: includes/fields/class-acf-field-wysiwyg.php:412
2726
  msgid "Visual Only"
2727
- msgstr "Tylko wizualny"
2728
 
2729
  #: includes/fields/class-acf-field-wysiwyg.php:413
2730
  msgid "Text Only"
2731
- msgstr "Tylko tekst"
2732
 
2733
  #: includes/fields/class-acf-field-wysiwyg.php:420
2734
  msgid "Toolbar"
@@ -2736,15 +2704,15 @@ msgstr "Pasek narzędzi"
2736
 
2737
  #: includes/fields/class-acf-field-wysiwyg.php:435
2738
  msgid "Show Media Upload Buttons?"
2739
- msgstr "Wyświetlić przyciski Wyślij / Wstaw media?"
2740
 
2741
  #: includes/fields/class-acf-field-wysiwyg.php:445
2742
  msgid "Delay initialization?"
2743
- msgstr ""
2744
 
2745
  #: includes/fields/class-acf-field-wysiwyg.php:446
2746
  msgid "TinyMCE will not be initalized until field is clicked"
2747
- msgstr ""
2748
 
2749
  #: includes/forms/form-comment.php:166 includes/forms/form-post.php:305
2750
  #: pro/admin/admin-options-page.php:308
@@ -2753,7 +2721,7 @@ msgstr "Edytuj grupę pól"
2753
 
2754
  #: includes/forms/form-front.php:55
2755
  msgid "Validate Email"
2756
- msgstr "Potwierdź Email"
2757
 
2758
  #: includes/forms/form-front.php:103
2759
  #: pro/fields/class-acf-field-gallery.php:588 pro/options-page.php:81
@@ -2766,7 +2734,7 @@ msgstr "Wpis zaktualizowany"
2766
 
2767
  #: includes/forms/form-front.php:230
2768
  msgid "Spam Detected"
2769
- msgstr "Wykryto spam"
2770
 
2771
  #: includes/locations.php:93 includes/locations/class-acf-location-post.php:27
2772
  msgid "Post"
@@ -2795,7 +2763,7 @@ msgstr "Załącznik"
2795
  #: includes/locations/class-acf-location-attachment.php:109
2796
  #, php-format
2797
  msgid "All %s formats"
2798
- msgstr ""
2799
 
2800
  #: includes/locations/class-acf-location-comment.php:27
2801
  msgid "Comment"
@@ -2819,28 +2787,27 @@ msgstr "Zalogowany"
2819
 
2820
  #: includes/locations/class-acf-location-current-user.php:98
2821
  msgid "Viewing front end"
2822
- msgstr "Podgląd strony"
2823
 
2824
  #: includes/locations/class-acf-location-current-user.php:99
2825
  msgid "Viewing back end"
2826
- msgstr "Podgląd zaplecza"
2827
 
2828
  #: includes/locations/class-acf-location-nav-menu-item.php:27
2829
  msgid "Menu Item"
2830
- msgstr ""
2831
 
2832
  #: includes/locations/class-acf-location-nav-menu.php:27
2833
  msgid "Menu"
2834
- msgstr ""
2835
 
2836
  #: includes/locations/class-acf-location-nav-menu.php:109
2837
- #, fuzzy
2838
  msgid "Menu Locations"
2839
- msgstr "Pozycja"
2840
 
2841
  #: includes/locations/class-acf-location-nav-menu.php:119
2842
  msgid "Menus"
2843
- msgstr ""
2844
 
2845
  #: includes/locations/class-acf-location-page-parent.php:27
2846
  msgid "Page Parent"
@@ -2865,19 +2832,19 @@ msgstr "Strona główna"
2865
 
2866
  #: includes/locations/class-acf-location-page-type.php:147
2867
  msgid "Posts Page"
2868
- msgstr "Strony postów"
2869
 
2870
  #: includes/locations/class-acf-location-page-type.php:148
2871
  msgid "Top Level Page (no parent)"
2872
- msgstr "Strona najwyższego poziomu (brak rodziców)"
2873
 
2874
  #: includes/locations/class-acf-location-page-type.php:149
2875
  msgid "Parent Page (has children)"
2876
- msgstr "Strona będąca rodzicem (ma dzieci)"
2877
 
2878
  #: includes/locations/class-acf-location-page-type.php:150
2879
  msgid "Child Page (has parent)"
2880
- msgstr "Strona będąca dzieckiem (ma rodziców)"
2881
 
2882
  #: includes/locations/class-acf-location-post-category.php:27
2883
  msgid "Post Category"
@@ -2896,9 +2863,8 @@ msgid "Post Taxonomy"
2896
  msgstr "Taksonomia wpisu"
2897
 
2898
  #: includes/locations/class-acf-location-post-template.php:27
2899
- #, fuzzy
2900
  msgid "Post Template"
2901
- msgstr "Szablon strony"
2902
 
2903
  #: includes/locations/class-acf-location-user-form.php:27
2904
  msgid "User Form"
@@ -2910,7 +2876,7 @@ msgstr "Dodaj / Edytuj"
2910
 
2911
  #: includes/locations/class-acf-location-user-form.php:89
2912
  msgid "Register"
2913
- msgstr "Rejestracja"
2914
 
2915
  #: includes/locations/class-acf-location-user-role.php:27
2916
  msgid "User Role"
@@ -2941,7 +2907,7 @@ msgid ""
2941
  "Custom Field Group</a>"
2942
  msgstr ""
2943
  "Żadna grupa pól nie została dodana do tej strony opcji. <a href=\"%s"
2944
- "\">Utwórz grupę pól</a>"
2945
 
2946
  #: pro/admin/admin-settings-updates.php:78
2947
  msgid "<b>Error</b>. Could not connect to update server"
@@ -2954,15 +2920,15 @@ msgstr "Aktualizacje"
2954
 
2955
  #: pro/admin/views/html-settings-updates.php:7
2956
  msgid "Deactivate License"
2957
- msgstr "Deaktywuj licencje"
2958
 
2959
  #: pro/admin/views/html-settings-updates.php:7
2960
  msgid "Activate License"
2961
- msgstr "Aktywuj licencje"
2962
 
2963
  #: pro/admin/views/html-settings-updates.php:17
2964
  msgid "License Information"
2965
- msgstr "Informacje licencyjne"
2966
 
2967
  #: pro/admin/views/html-settings-updates.php:20
2968
  #, php-format
@@ -2972,12 +2938,12 @@ msgid ""
2972
  "a>."
2973
  msgstr ""
2974
  "Żeby odblokować aktualizacje proszę podać swój klucz licencyjny poniżej. "
2975
- "Jeśli nie posiadasz klucza prosimy zapoznać się ze <a href=\"%s"
2976
- "\">szczegółami i cenami</a>."
2977
 
2978
  #: pro/admin/views/html-settings-updates.php:29
2979
  msgid "License Key"
2980
- msgstr "Klucz licencji"
2981
 
2982
  #: pro/admin/views/html-settings-updates.php:61
2983
  msgid "Update Information"
@@ -2989,19 +2955,20 @@ msgstr "Zainstalowana wersja"
2989
 
2990
  #: pro/admin/views/html-settings-updates.php:76
2991
  msgid "Latest Version"
2992
- msgstr "Ostatnia wersja"
2993
 
2994
  #: pro/admin/views/html-settings-updates.php:84
2995
  msgid "Update Available"
2996
- msgstr "Aktualizacja dostępna"
2997
 
2998
  #: pro/admin/views/html-settings-updates.php:92
2999
  msgid "Update Plugin"
3000
- msgstr "Aktualizuj dodatek"
3001
 
3002
  #: pro/admin/views/html-settings-updates.php:94
3003
  msgid "Please enter your license key above to unlock updates"
3004
- msgstr "Proszę wpisać swój numer licencji powyżej aby odblokować aktualizacje"
 
3005
 
3006
  #: pro/admin/views/html-settings-updates.php:100
3007
  msgid "Check Again"
@@ -3014,7 +2981,7 @@ msgstr "Informacje o aktualizacji"
3014
  #: pro/fields/class-acf-field-clone.php:25
3015
  msgctxt "noun"
3016
  msgid "Clone"
3017
- msgstr "Klonuj"
3018
 
3019
  #: pro/fields/class-acf-field-clone.php:812
3020
  msgid "Select one or more fields you wish to clone"
@@ -3026,11 +2993,11 @@ msgstr "Wyświetl"
3026
 
3027
  #: pro/fields/class-acf-field-clone.php:830
3028
  msgid "Specify the style used to render the clone field"
3029
- msgstr "Określ styl wykorzystywany do tworzenia klonowanych pól"
3030
 
3031
  #: pro/fields/class-acf-field-clone.php:835
3032
  msgid "Group (displays selected fields in a group within this field)"
3033
- msgstr "Grupuj (wyświetl wybrane pola w grupie)"
3034
 
3035
  #: pro/fields/class-acf-field-clone.php:836
3036
  msgid "Seamless (replaces this field with selected fields)"
@@ -3055,19 +3022,17 @@ msgid "Prefix Field Names"
3055
  msgstr "Prefiks Nazw Pól"
3056
 
3057
  #: pro/fields/class-acf-field-clone.php:992
3058
- #, fuzzy
3059
  msgid "Unknown field"
3060
- msgstr "Pod polami"
3061
 
3062
  #: pro/fields/class-acf-field-clone.php:1031
3063
- #, fuzzy
3064
  msgid "Unknown field group"
3065
- msgstr "Synchronizuj grupę pól"
3066
 
3067
  #: pro/fields/class-acf-field-clone.php:1035
3068
  #, php-format
3069
  msgid "All fields from %s field group"
3070
- msgstr "Wszystkie pola od grupy pola %s"
3071
 
3072
  #: pro/fields/class-acf-field-flexible-content.php:31
3073
  #: pro/fields/class-acf-field-repeater.php:193
@@ -3078,16 +3043,15 @@ msgstr "Dodaj wiersz"
3078
  #: pro/fields/class-acf-field-flexible-content.php:73
3079
  #: pro/fields/class-acf-field-flexible-content.php:938
3080
  #: pro/fields/class-acf-field-flexible-content.php:1020
3081
- #, fuzzy
3082
  msgid "layout"
3083
  msgid_plural "layouts"
3084
- msgstr[0] "szablon"
3085
- msgstr[1] "szablon"
3086
- msgstr[2] "szablon"
3087
 
3088
  #: pro/fields/class-acf-field-flexible-content.php:74
3089
  msgid "layouts"
3090
- msgstr "szablony"
3091
 
3092
  #: pro/fields/class-acf-field-flexible-content.php:77
3093
  #: pro/fields/class-acf-field-flexible-content.php:937
@@ -3096,15 +3060,12 @@ msgid "This field requires at least {min} {label} {identifier}"
3096
  msgstr "To pole wymaga przynajmniej {min} {label} {identifier}"
3097
 
3098
  #: pro/fields/class-acf-field-flexible-content.php:78
3099
- #, fuzzy
3100
  msgid "This field has a limit of {max} {label} {identifier}"
3101
- msgstr "To pole ma ograniczenie {max} {identifier}"
3102
 
3103
  #: pro/fields/class-acf-field-flexible-content.php:81
3104
  msgid "{available} {label} {identifier} available (max {max})"
3105
- msgstr ""
3106
- "{available} {label} {identifier} dostępne\n"
3107
- " (max {max})"
3108
 
3109
  #: pro/fields/class-acf-field-flexible-content.php:82
3110
  msgid "{required} {label} {identifier} required (min {min})"
@@ -3112,20 +3073,20 @@ msgstr "{required} {label} {identifier} wymagane (min {min})"
3112
 
3113
  #: pro/fields/class-acf-field-flexible-content.php:85
3114
  msgid "Flexible Content requires at least 1 layout"
3115
- msgstr "Elastyczne pole wymaga przynajmniej 1 szablonu"
3116
 
3117
  #: pro/fields/class-acf-field-flexible-content.php:302
3118
  #, php-format
3119
  msgid "Click the \"%s\" button below to start creating your layout"
3120
- msgstr "Kliknij przycisk \"%s\" poniżej aby zacząć tworzyć nowy szablon"
3121
 
3122
  #: pro/fields/class-acf-field-flexible-content.php:427
3123
  msgid "Add layout"
3124
- msgstr "Dodaj szablon"
3125
 
3126
  #: pro/fields/class-acf-field-flexible-content.php:428
3127
  msgid "Remove layout"
3128
- msgstr "Usuń szablon"
3129
 
3130
  #: pro/fields/class-acf-field-flexible-content.php:429
3131
  #: pro/fields/class-acf-field-repeater.php:296
@@ -3134,7 +3095,7 @@ msgstr "Kliknij, aby przełączyć"
3134
 
3135
  #: pro/fields/class-acf-field-flexible-content.php:569
3136
  msgid "Reorder Layout"
3137
- msgstr "Zmień kolejność szablonów"
3138
 
3139
  #: pro/fields/class-acf-field-flexible-content.php:569
3140
  msgid "Reorder"
@@ -3142,15 +3103,15 @@ msgstr "Zmień kolejność"
3142
 
3143
  #: pro/fields/class-acf-field-flexible-content.php:570
3144
  msgid "Delete Layout"
3145
- msgstr "Usuń szablon"
3146
 
3147
  #: pro/fields/class-acf-field-flexible-content.php:571
3148
  msgid "Duplicate Layout"
3149
- msgstr "Duplikuj szablon"
3150
 
3151
  #: pro/fields/class-acf-field-flexible-content.php:572
3152
  msgid "Add New Layout"
3153
- msgstr "Dodaj nowy szablon"
3154
 
3155
  #: pro/fields/class-acf-field-flexible-content.php:643
3156
  msgid "Min"
@@ -3163,23 +3124,23 @@ msgstr "Max"
3163
  #: pro/fields/class-acf-field-flexible-content.php:683
3164
  #: pro/fields/class-acf-field-repeater.php:459
3165
  msgid "Button Label"
3166
- msgstr "Tekst przycisku"
3167
 
3168
  #: pro/fields/class-acf-field-flexible-content.php:692
3169
  msgid "Minimum Layouts"
3170
- msgstr "Minimalna liczba szablonów"
3171
 
3172
  #: pro/fields/class-acf-field-flexible-content.php:701
3173
  msgid "Maximum Layouts"
3174
- msgstr "Maksymalna liczba szablonów"
3175
 
3176
  #: pro/fields/class-acf-field-gallery.php:71
3177
  msgid "Add Image to Gallery"
3178
- msgstr "Dodaj zdjęcie do galerii"
3179
 
3180
  #: pro/fields/class-acf-field-gallery.php:72
3181
  msgid "Maximum selection reached"
3182
- msgstr "Maksymalny wybór osiągnięty"
3183
 
3184
  #: pro/fields/class-acf-field-gallery.php:336
3185
  msgid "Length"
@@ -3199,11 +3160,11 @@ msgstr "Dodaj do galerii"
3199
 
3200
  #: pro/fields/class-acf-field-gallery.php:563
3201
  msgid "Bulk actions"
3202
- msgstr "Działania masowe"
3203
 
3204
  #: pro/fields/class-acf-field-gallery.php:564
3205
  msgid "Sort by date uploaded"
3206
- msgstr "Sortuj po dacie wgrania"
3207
 
3208
  #: pro/fields/class-acf-field-gallery.php:565
3209
  msgid "Sort by date modified"
@@ -3223,7 +3184,7 @@ msgstr "Zamknij"
3223
 
3224
  #: pro/fields/class-acf-field-gallery.php:639
3225
  msgid "Minimum Selection"
3226
- msgstr "Mininalna liczba wybranych elementów"
3227
 
3228
  #: pro/fields/class-acf-field-gallery.php:648
3229
  msgid "Maximum Selection"
@@ -3248,11 +3209,11 @@ msgstr "Dodaj do początku"
3248
  #: pro/fields/class-acf-field-repeater.php:65
3249
  #: pro/fields/class-acf-field-repeater.php:656
3250
  msgid "Minimum rows reached ({min} rows)"
3251
- msgstr "Poniżej minimalnej liczba wierszy ( {min} wierszy )"
3252
 
3253
  #: pro/fields/class-acf-field-repeater.php:66
3254
  msgid "Maximum rows reached ({max} rows)"
3255
- msgstr "Przekroczono maksymalną liczba wierszy ( {max} wierszy)"
3256
 
3257
  #: pro/fields/class-acf-field-repeater.php:333
3258
  msgid "Add row"
@@ -3273,11 +3234,11 @@ msgstr ""
3273
 
3274
  #: pro/fields/class-acf-field-repeater.php:423
3275
  msgid "Minimum Rows"
3276
- msgstr "Minimalna liczba rzędów"
3277
 
3278
  #: pro/fields/class-acf-field-repeater.php:433
3279
  msgid "Maximum Rows"
3280
- msgstr "Maksymalna liczba rzędów"
3281
 
3282
  #: pro/locations/class-acf-location-options-page.php:79
3283
  msgid "No options pages exist"
@@ -3298,9 +3259,9 @@ msgid ""
3298
  "\">Updates</a> page. If you don't have a licence key, please see <a href=\"%s"
3299
  "\">details & pricing</a>."
3300
  msgstr ""
3301
- "Żeby włączyć aktualizacje proszę podać swój klucz licencyjny na stronie <a "
3302
- "href=\"%s\">Aktualizacje</a>. Jeśli nie posiadasz klucza prosimy zapoznać "
3303
- "się ze <a href=\"%s\">szczegółami i cenami</a>."
3304
 
3305
  #. Plugin URI of the plugin/theme
3306
  msgid "https://www.advancedcustomfields.com/"
3
  "Project-Id-Version: Advanced Custom Fields Pro v5.2.9\n"
4
  "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
5
  "POT-Creation-Date: 2018-07-26 18:20+1000\n"
6
+ "PO-Revision-Date: 2018-09-07 10:36+1000\n"
7
  "Last-Translator: Elliot Condon <e@elliotcondon.com>\n"
8
+ "Language-Team: Dariusz Zielonka <dariusz@zielonka.pro>\n"
9
  "Language: pl_PL\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
38
  #: acf.php:389 acf.php:421 includes/admin/admin.php:118
39
  #: pro/fields/class-acf-field-flexible-content.php:572
40
  msgid "Add New"
41
+ msgstr "Dodaj nową"
42
 
43
  #: acf.php:390
44
  msgid "Add New Field Group"
113
  msgstr "Nieaktywne"
114
 
115
  #: acf.php:472
116
+ #, php-format
117
  msgid "Inactive <span class=\"count\">(%s)</span>"
118
  msgid_plural "Inactive <span class=\"count\">(%s)</span>"
119
+ msgstr[0] "Nieaktywne <span class=\"count\">(%s)</span>"
120
+ msgstr[1] "Nieaktywne <span class=\"count\">(%s)</span>"
121
+ msgstr[2] "Nieaktywnych <span class=\"count\">(%s)</span>"
122
 
123
  #: includes/admin/admin-field-group.php:68
124
  #: includes/admin/admin-field-group.php:69
136
 
137
  #: includes/admin/admin-field-group.php:74
138
  msgid "Field group saved."
139
+ msgstr "Grupa pól została zapisana."
140
 
141
  #: includes/admin/admin-field-group.php:75
142
  msgid "Field group submitted."
152
 
153
  #: includes/admin/admin-field-group.php:153
154
  msgid "The string \"field_\" may not be used at the start of a field name"
155
+ msgstr "Ciąg znaków \"field_\" nie może zostać użyty na początku nazwy pola"
156
 
157
  #: includes/admin/admin-field-group.php:154
158
  msgid "This field cannot be moved until its changes have been saved"
175
  msgstr "Przenieś pole"
176
 
177
  #: includes/admin/admin-field-group.php:159
 
178
  msgid "Checked"
179
+ msgstr "Zaznaczone"
180
 
181
  #: includes/admin/admin-field-group.php:160 includes/api/api-field.php:289
 
182
  msgid "(no label)"
183
+ msgstr "(brak etykiety)"
184
 
185
  #: includes/admin/admin-field-group.php:161
 
186
  msgid "(this field)"
187
+ msgstr "(to pole)"
188
 
189
  #: includes/admin/admin-field-group.php:162
190
  #: includes/api/api-field-group.php:751
202
 
203
  #: includes/admin/admin-field-group.php:164
204
  msgid "Null"
205
+ msgstr "Null"
206
 
207
  #: includes/admin/admin-field-group.php:203
208
  msgid "Location"
209
+ msgstr "Lokacja"
210
 
211
  #: includes/admin/admin-field-group.php:204
212
  #: includes/admin/tools/class-acf-admin-tool-export.php:295
229
  #: includes/admin/admin-field-group.php:751
230
  #, php-format
231
  msgid "The %s field can now be found in the %s field group"
232
+ msgstr "Pole %s znajduje się teraz w grupie pól %s"
233
 
234
  #: includes/admin/admin-field-group.php:752
235
  msgid "Close Window"
237
 
238
  #: includes/admin/admin-field-group.php:793
239
  msgid "Please select the destination for this field"
240
+ msgstr "Proszę wybrać miejsce przeznaczenia dla tego pola"
241
 
242
  #: includes/admin/admin-field-group.php:800
243
  msgid "Move Field"
248
  msgid "Active <span class=\"count\">(%s)</span>"
249
  msgid_plural "Active <span class=\"count\">(%s)</span>"
250
  msgstr[0] "Aktywny <span class=\"count\">(%s)</span>"
251
+ msgstr[1] "Aktywne <span class=\"count\">(%s)</span>"
252
  msgstr[2] "Aktywnych <span class=\"count\">(%s)</span>"
253
 
254
  #: includes/admin/admin-field-groups.php:142
260
  #, php-format
261
  msgid "%s field group duplicated."
262
  msgid_plural "%s field groups duplicated."
263
+ msgstr[0] "Grupa pól %s została zduplikowana."
264
  msgstr[1] "Grupy pól %s zostały zduplikowane."
265
+ msgstr[2] "Grup pól %s zostały zduplikowane."
266
 
267
  #: includes/admin/admin-field-groups.php:227
268
  #, php-format
275
  msgid_plural "%s field groups synchronised."
276
  msgstr[0] "%s grupa pól została zsynchronizowana."
277
  msgstr[1] "%s grupy pól zostały zsynchronizowane."
278
+ msgstr[2] "%s grup pól zostało zsynchronizowanych."
279
 
280
  #: includes/admin/admin-field-groups.php:394
281
  #: includes/admin/admin-field-groups.php:557
282
  msgid "Sync available"
283
+ msgstr "Synchronizacja możliwa"
284
 
285
  #: includes/admin/admin-field-groups.php:507 includes/forms/form-front.php:38
286
  #: pro/fields/class-acf-field-gallery.php:370
322
  msgstr "Zasoby"
323
 
324
  #: includes/admin/admin-field-groups.php:619
 
325
  msgid "Website"
326
+ msgstr "Witryna"
327
 
328
  #: includes/admin/admin-field-groups.php:620
 
329
  msgid "Documentation"
330
+ msgstr "Dokumentacja"
331
 
332
  #: includes/admin/admin-field-groups.php:621
333
  msgid "Support"
334
  msgstr "Pomoc"
335
 
336
  #: includes/admin/admin-field-groups.php:623
 
337
  msgid "Pro"
338
+ msgstr "Pro"
339
 
340
  #: includes/admin/admin-field-groups.php:628
341
+ #, php-format
342
  msgid "Thank you for creating with <a href=\"%s\">ACF</a>."
343
+ msgstr "Dziękujemy za tworzenie z <a href=\"%s\">ACF</a>."
344
 
345
  #: includes/admin/admin-field-groups.php:667
346
  msgid "Duplicate this item"
375
 
376
  #: includes/admin/admin-field-groups.php:779
377
  msgid "Apply"
378
+ msgstr "Zastosuj"
379
 
380
  #: includes/admin/admin-field-groups.php:797
 
381
  msgid "Bulk Actions"
382
+ msgstr "Akcje na wielu"
383
 
384
  #: includes/admin/admin-tools.php:116
385
  #: includes/admin/views/html-admin-tools.php:21
402
 
403
  #: includes/admin/install.php:187
404
  msgid "Error validating request"
405
+ msgstr "Błąd podczas walidacji żądania"
406
 
407
  #: includes/admin/install.php:210 includes/admin/views/install.php:104
408
  msgid "No updates available."
432
  #: includes/admin/tools/class-acf-admin-tool-export.php:38
433
  #: includes/admin/tools/class-acf-admin-tool-export.php:342
434
  #: includes/admin/tools/class-acf-admin-tool-export.php:371
 
435
  msgid "Generate PHP"
436
  msgstr "Utwórz PHP"
437
 
441
  msgstr "Nie zaznaczono żadnej grupy pól"
442
 
443
  #: includes/admin/tools/class-acf-admin-tool-export.php:174
444
+ #, php-format
445
  msgid "Exported 1 field group."
446
  msgid_plural "Exported %s field groups."
447
+ msgstr[0] "Wyeksportowano 1 grupę pól."
448
+ msgstr[1] "Wyeksportowano %s grupy pól."
449
+ msgstr[2] "Wyeksportowano %s grup pól."
450
 
451
  #: includes/admin/tools/class-acf-admin-tool-export.php:241
452
  #: includes/admin/tools/class-acf-admin-tool-export.php:269
466
  "do wyeksportowania ustawień do kodu PHP, który można umieścić w motywie."
467
 
468
  #: includes/admin/tools/class-acf-admin-tool-export.php:341
 
469
  msgid "Export File"
470
+ msgstr "Plik eksportu"
471
 
472
  #: includes/admin/tools/class-acf-admin-tool-export.php:414
473
  msgid ""
479
  msgstr ""
480
  "Poniższy kod może być użyty do rejestracji lokalnej wersji wybranej grupy "
481
  "lub grup pól. Lokalna grupa pól może dostarczyć wiele korzyści takich jak "
482
+ "szybszy czas ładowania, możliwość wersjonowania i dynamiczne pola/"
483
  "ustawienia. Wystarczy skopiować i wkleić poniższy kod do pliku functions.php "
484
  "Twojego motywu lub dołączyć go do zewnętrznego pliku."
485
 
486
  #: includes/admin/tools/class-acf-admin-tool-export.php:446
487
  msgid "Copy to clipboard"
488
+ msgstr "Skopiuj do schowka"
489
 
490
  #: includes/admin/tools/class-acf-admin-tool-export.php:483
491
  msgid "Copied"
492
+ msgstr "Skopiowano"
493
 
494
  #: includes/admin/tools/class-acf-admin-tool-import.php:26
495
  msgid "Import Field Groups"
509
  msgstr "Wybierz plik"
510
 
511
  #: includes/admin/tools/class-acf-admin-tool-import.php:76
 
512
  msgid "Import File"
513
+ msgstr "Plik importu"
514
 
515
  #: includes/admin/tools/class-acf-admin-tool-import.php:100
516
  #: includes/fields/class-acf-field-file.php:170
519
 
520
  #: includes/admin/tools/class-acf-admin-tool-import.php:113
521
  msgid "Error uploading file. Please try again"
522
+ msgstr "Błąd przesyłania pliku. Proszę spróbować ponownie"
523
 
524
  #: includes/admin/tools/class-acf-admin-tool-import.php:122
525
  msgid "Incorrect file type"
621
 
622
  #: includes/admin/views/field-group-field.php:97
623
  msgid "Instructions for authors. Shown when submitting data"
624
+ msgstr "Instrukcje dla autorów. Będą widoczne w trakcie wprowadzania danych"
625
 
626
  #: includes/admin/views/field-group-field.php:106
627
  msgid "Required?"
667
  msgstr "Nazwa"
668
 
669
  #: includes/admin/views/field-group-fields.php:7
 
670
  msgid "Key"
671
+ msgstr "Klucz"
672
 
673
  #: includes/admin/views/field-group-fields.php:8
674
  msgid "Type"
754
 
755
  #: includes/admin/views/field-group-options.php:85
756
  msgid "Order No."
757
+ msgstr "Nr w kolejności."
758
 
759
  #: includes/admin/views/field-group-options.php:86
760
  msgid "Field groups with a lower order will appear first"
786
 
787
  #: includes/admin/views/field-group-options.php:113
788
  msgid "Revisions"
789
+ msgstr "Wersje"
790
 
791
  #: includes/admin/views/field-group-options.php:114
792
  msgid "Slug"
844
 
845
  #: includes/admin/views/install-network.php:4
846
  msgid "Upgrade Sites"
847
+ msgstr "Aktualizacja witryn"
848
 
849
  #: includes/admin/views/install-network.php:9
850
  #: includes/admin/views/install.php:3
857
  "The following sites require a DB upgrade. Check the ones you want to update "
858
  "and then click %s."
859
  msgstr ""
860
+ "Następujące witryny wymagają aktualizacji bazy danych. Zaznacz te, które "
861
  "chcesz zaktualizować i kliknij %s."
862
 
863
  #: includes/admin/views/install-network.php:20
864
  #: includes/admin/views/install-network.php:28
865
  msgid "Site"
866
+ msgstr "Witryna"
867
 
868
  #: includes/admin/views/install-network.php:48
869
  #, php-format
870
  msgid "Site requires database upgrade from %s to %s"
871
+ msgstr "Witryna wymaga aktualizacji bazy danych z %s na %s"
872
 
873
  #: includes/admin/views/install-network.php:50
874
  msgid "Site is up to date"
875
+ msgstr "Ta witryna jest aktualna"
876
 
877
  #: includes/admin/views/install-network.php:63
878
  #, php-format
908
  #: includes/admin/views/install-notice.php:9
909
  #: pro/fields/class-acf-field-flexible-content.php:25
910
  msgid "Flexible Content"
911
+ msgstr "Elastyczne treść"
912
 
913
  #: includes/admin/views/install-notice.php:10
914
  #: pro/fields/class-acf-field-gallery.php:25
934
  "Before you start using the new awesome features, please update your database "
935
  "to the newest version."
936
  msgstr ""
937
+ "Zanim zaczniesz korzystać z niesamowitych funkcji prosimy o zaktualizowanie "
938
+ "bazy danych do najnowszej wersji."
939
 
940
  #: includes/admin/views/install-notice.php:31
941
  #, php-format
943
  "Please also ensure any premium add-ons (%s) have first been updated to the "
944
  "latest version."
945
  msgstr ""
946
+ "Upewnij się także, że wszystkie dodatki premium (%s) zostały wcześniej "
947
+ "zaktualizowane do najnowszych wersji."
948
 
949
  #: includes/admin/views/install.php:7
950
  msgid "Reading upgrade tasks..."
951
  msgstr "Czytam zadania aktualizacji..."
952
 
953
  #: includes/admin/views/install.php:11
954
+ #, php-format
955
  msgid "Database Upgrade complete. <a href=\"%s\">See what's new</a>"
956
  msgstr ""
957
+ "Aktualizacja bazy danych zakończona. <a href=\"%s\">Zobacz co nowego</a>"
958
 
959
  #: includes/admin/views/settings-addons.php:17
960
  msgid "Download & Install"
979
 
980
  #: includes/admin/views/settings-info.php:17
981
  msgid "A smoother custom field experience"
982
+ msgstr "Lepsze odczucia z korzystania z własnych pól"
983
 
984
  #: includes/admin/views/settings-info.php:22
985
  msgid "Improved Usability"
986
+ msgstr "Zwiększona użyteczność"
987
 
988
  #: includes/admin/views/settings-info.php:23
989
  msgid ""
991
  "across a number of field types including post object, page link, taxonomy "
992
  "and select."
993
  msgstr ""
994
+ "Użycie popularnej biblioteki Select2 poprawiło zarówno użyteczność jak i "
995
  "szybkość wielu typów pól wliczając obiekty wpisów, odnośniki stron, "
996
  "taksonomie i pola wyboru."
997
 
1005
  "ever! Noticeable changes are seen on the gallery, relationship and oEmbed "
1006
  "(new) fields!"
1007
  msgstr ""
1008
+ "Wiele pól przeszło graficzne odświeżenie, aby ACF wyglądał lepiej niż "
1009
  "kiedykolwiek! Zmiany warte uwagi są widoczne w galerii, polach relacji i "
1010
  "polach oEmbed (nowość)!"
1011
 
1020
  "and out of parent fields!"
1021
  msgstr ""
1022
  "Przeprojektowanie architektury danych pozwoliła polom podrzędnym być "
1023
+ "niezależnymi od swoich rodziców. Pozwala to na przeciąganie i upuszczanie "
1024
+ "pól pomiędzy rodzicami!"
1025
 
1026
  #: includes/admin/views/settings-info.php:39
1027
  msgid "Goodbye Add-ons. Hello PRO"
1028
+ msgstr "Do widzenia Dodatki. Dzień dobry PRO"
1029
 
1030
  #: includes/admin/views/settings-info.php:44
1031
  msgid "Introducing ACF PRO"
1045
  "version of ACF</a>. With both personal and developer licenses available, "
1046
  "premium functionality is more affordable and accessible than ever before!"
1047
  msgstr ""
1048
+ "Wszystkie 4 dodatki premium zostały połączone w nową <a href=\"%s\">wersję "
1049
+ "Pro ACF</a>. W obu licencjach, osobistej i deweloperskiej, funkcjonalność "
1050
+ "premium jest bardziej przystępna niż kiedykolwiek wcześniej!"
1051
 
1052
  #: includes/admin/views/settings-info.php:50
1053
  msgid "Powerful Features"
1060
  "options pages!"
1061
  msgstr ""
1062
  "ACF PRO zawiera zaawansowane funkcje, takie jak powtarzalne dane, elastyczne "
1063
+ "układy treści, piękne galerie i możliwość tworzenia dodatkowych stron opcji "
1064
+ "administracyjnych!"
1065
 
1066
  #: includes/admin/views/settings-info.php:52
1067
  #, php-format
1079
  "and claim a free copy of ACF PRO!"
1080
  msgstr ""
1081
  "Aby aktualizacja była łatwa, <a href=\"%s\">zaloguj się do swojego konta</a> "
1082
+ "i pobierz darmową kopię ACF PRO!"
1083
 
1084
  #: includes/admin/views/settings-info.php:58
1085
  #, php-format
1088
  "but if you do have one, please contact our support team via the <a href=\"%s"
1089
  "\">help desk</a>"
1090
  msgstr ""
1091
+ "Napisaliśmy również <a href=\"%s\">przewodnik aktualizacji</a> wyjaśniający "
1092
+ "wiele zagadnień, jednak jeśli masz jakieś pytanie skontaktuj się z nami na "
1093
  "stronie <a href=\"%s\">wsparcia technicznego</a>"
1094
 
1095
  #: includes/admin/views/settings-info.php:66
1102
 
1103
  #: includes/admin/views/settings-info.php:72
1104
  msgid "ACF now saves its field settings as individual post objects"
1105
+ msgstr "ACF teraz zapisuje ustawienia pól jako osobny obiekt wpisu"
1106
 
1107
  #: includes/admin/views/settings-info.php:76
1108
  msgid "More AJAX"
1110
 
1111
  #: includes/admin/views/settings-info.php:77
1112
  msgid "More fields use AJAX powered search to speed up page loading"
1113
+ msgstr "Więcej pól korzysta z AJAX, aby przyspieszyć ładowanie stron"
1114
 
1115
  #: includes/admin/views/settings-info.php:81
1116
  msgid "Local JSON"
1133
 
1134
  #: includes/admin/views/settings-info.php:93
1135
  msgid "Swapped XML for JSON"
1136
+ msgstr "Zmiana XML na JSON"
1137
 
1138
  #: includes/admin/views/settings-info.php:94
1139
  msgid "Import / Export now uses JSON in favour of XML"
1175
 
1176
  #: includes/admin/views/settings-info.php:122
1177
  msgid "Better Front End Forms"
1178
+ msgstr "Lepszy wygląd formularzy (Front End Forms)"
1179
 
1180
  #: includes/admin/views/settings-info.php:123
1181
  msgid "acf_form() can now create a new post on submission"
1197
  msgid ""
1198
  "New Relationship field setting for 'Filters' (Search, Post Type, Taxonomy)"
1199
  msgstr ""
1200
+ "Nowe ustawienia pola relacji dla \"Filtrów\" (Wyszukiwarka, Typ Wpisu, "
1201
  "Taksonomia)"
1202
 
1203
  #: includes/admin/views/settings-info.php:139
1229
  "New functions for options page allow creation of both parent and child menu "
1230
  "pages"
1231
  msgstr ""
1232
+ "Nowe funkcje dla strony opcji pozwalają tworzyć strony w menu będące "
1233
+ "rodzicami oraz potomnymi."
1234
 
1235
  #: includes/admin/views/settings-info.php:159
1236
  #, php-format
1237
  msgid "We think you'll love the changes in %s."
1238
+ msgstr "Uważamy, że pokochasz zmiany wprowadzone w wersji %s."
1239
 
1240
  #: includes/api/api-helpers.php:1039
1241
  msgid "Thumbnail"
1261
  #: includes/api/api-helpers.php:4086
1262
  #, php-format
1263
  msgid "Image width must be at least %dpx."
1264
+ msgstr "Szerokość obrazu musi mieć co najmniej %dpx."
1265
 
1266
  #: includes/api/api-helpers.php:4091
1267
  #, php-format
1268
  msgid "Image width must not exceed %dpx."
1269
+ msgstr "Szerokość obrazu nie może przekraczać %dpx."
1270
 
1271
  #: includes/api/api-helpers.php:4107
1272
  #, php-format
1273
  msgid "Image height must be at least %dpx."
1274
+ msgstr "Wysokość obrazu musi mieć co najmniej %dpx."
1275
 
1276
  #: includes/api/api-helpers.php:4112
1277
  #, php-format
1278
  msgid "Image height must not exceed %dpx."
1279
+ msgstr "Wysokość obrazu nie może przekraczać %dpx."
1280
 
1281
  #: includes/api/api-helpers.php:4130
1282
  #, php-format
1283
  msgid "File size must be at least %s."
1284
+ msgstr "Rozmiar pliku musi wynosić co najmniej %s."
1285
 
1286
  #: includes/api/api-helpers.php:4135
1287
  #, php-format
1291
  #: includes/api/api-helpers.php:4169
1292
  #, php-format
1293
  msgid "File type must be %s."
1294
+ msgstr "Plik musi spełniać kryteria typu %s."
1295
 
1296
  #: includes/assets.php:172
1297
  msgid "The changes you made will be lost if you navigate away from this page"
1315
 
1316
  #: includes/assets.php:178
1317
  msgid "Uploaded to this post"
1318
+ msgstr "Przesłane do tego wpisu"
1319
 
1320
  #: includes/assets.php:179
1321
  msgid "Expand Details"
1331
 
1332
  #: includes/assets.php:182 includes/fields/class-acf-field-image.php:67
1333
  msgid "All images"
1334
+ msgstr "Wszystkie obrazy"
1335
 
1336
  #: includes/assets.php:185
1337
  msgid "Validation successful"
1381
 
1382
  #: includes/assets.php:198
1383
  msgid "Has any value"
1384
+ msgstr "Ma dowolną wartość"
1385
 
1386
  #: includes/assets.php:199
1387
  msgid "Has no value"
1388
+ msgstr "Nie ma wartości"
1389
 
1390
  #: includes/assets.php:200
 
1391
  msgid "Value is equal to"
1392
+ msgstr "Wartość jest równa"
1393
 
1394
  #: includes/assets.php:201
 
1395
  msgid "Value is not equal to"
1396
+ msgstr "Wartość nie jest równa"
1397
 
1398
  #: includes/assets.php:202
 
1399
  msgid "Value matches pattern"
1400
+ msgstr "Wartość musi pasować do wzoru"
1401
 
1402
  #: includes/assets.php:203
1403
  msgid "Value contains"
1404
+ msgstr "Wartość zawiera"
1405
 
1406
  #: includes/assets.php:204
 
1407
  msgid "Value is greater than"
1408
+ msgstr "Wartość jest większa niż"
1409
 
1410
  #: includes/assets.php:205
 
1411
  msgid "Value is less than"
1412
+ msgstr "Wartość jest mniejsza niż"
1413
 
1414
  #: includes/assets.php:206
1415
  msgid "Selection is greater than"
1416
+ msgstr "Wybór jest większy niż"
1417
 
1418
  #: includes/assets.php:207
 
1419
  msgid "Selection is less than"
1420
+ msgstr "Wybór jest mniejszy niż"
1421
 
1422
  #: includes/fields.php:308
1423
  msgid "Field type does not exist"
1425
 
1426
  #: includes/fields.php:308
1427
  msgid "Unknown"
1428
+ msgstr "Nieznane"
1429
 
1430
  #: includes/fields.php:349
1431
  msgid "Basic"
1433
 
1434
  #: includes/fields.php:350 includes/forms/form-front.php:47
1435
  msgid "Content"
1436
+ msgstr "Treść"
1437
 
1438
  #: includes/fields.php:351
1439
  msgid "Choice"
1441
 
1442
  #: includes/fields.php:352
1443
  msgid "Relational"
1444
+ msgstr "Relacyjne"
1445
 
1446
  #: includes/fields.php:353
1447
  msgid "jQuery"
1457
  #: pro/fields/class-acf-field-flexible-content.php:616
1458
  #: pro/fields/class-acf-field-repeater.php:443
1459
  msgid "Layout"
1460
+ msgstr "Układ"
1461
 
1462
  #: includes/fields/class-acf-field-accordion.php:24
1463
  msgid "Accordion"
1464
+ msgstr "Zwijane panele"
1465
 
1466
  #: includes/fields/class-acf-field-accordion.php:99
1467
  msgid "Open"
1468
+ msgstr "Otwarte"
1469
 
1470
  #: includes/fields/class-acf-field-accordion.php:100
1471
  msgid "Display this accordion as open on page load."
1472
+ msgstr "Pokaż ten zwijany panel jako otwarty po załadowaniu strony."
1473
 
1474
  #: includes/fields/class-acf-field-accordion.php:109
1475
  msgid "Multi-expand"
1476
+ msgstr "Multi-expand"
1477
 
1478
  #: includes/fields/class-acf-field-accordion.php:110
1479
  msgid "Allow this accordion to open without closing others."
1480
+ msgstr "Zezwól, aby ten zwijany panel otwierał się bez zamykania innych."
1481
 
1482
  #: includes/fields/class-acf-field-accordion.php:119
1483
  #: includes/fields/class-acf-field-tab.php:114
 
1484
  msgid "Endpoint"
1485
  msgstr "Punkt końcowy"
1486
 
1489
  "Define an endpoint for the previous accordion to stop. This accordion will "
1490
  "not be visible."
1491
  msgstr ""
1492
+ "Zdefiniuj punkt końcowy dla zatrzymania poprzedniego panelu zwijanego. Ten "
1493
+ "panel zwijany nie będzie widoczny."
1494
 
1495
  #: includes/fields/class-acf-field-button-group.php:24
1496
  msgid "Button Group"
1497
+ msgstr "Grupa przycisków"
1498
 
1499
  #: includes/fields/class-acf-field-button-group.php:149
1500
  #: includes/fields/class-acf-field-checkbox.php:344
1516
  #: includes/fields/class-acf-field-select.php:371
1517
  msgid "For more control, you may specify both a value and label like this:"
1518
  msgstr ""
1519
+ "Aby uzyskać większą kontrolę, można określić zarówno wartość i etykietę w "
1520
+ "niniejszy sposób:"
1521
 
1522
  #: includes/fields/class-acf-field-button-group.php:150
1523
  #: includes/fields/class-acf-field-checkbox.php:345
1534
  #: includes/fields/class-acf-field-taxonomy.php:784
1535
  #: includes/fields/class-acf-field-user.php:409
1536
  msgid "Allow Null?"
1537
+ msgstr "Zezwolić na pustą wartość Null?"
1538
 
1539
  #: includes/fields/class-acf-field-button-group.php:168
1540
  #: includes/fields/class-acf-field-checkbox.php:380
1619
  msgstr "Przełącz wszystko"
1620
 
1621
  #: includes/fields/class-acf-field-checkbox.php:221
 
1622
  msgid "Add new choice"
1623
+ msgstr "Dodaj nowy wybór"
1624
 
1625
  #: includes/fields/class-acf-field-checkbox.php:353
 
1626
  msgid "Allow Custom"
1627
+ msgstr "Zezwól na niestandardowe"
 
1628
 
1629
  #: includes/fields/class-acf-field-checkbox.php:358
1630
  msgid "Allow 'custom' values to be added"
1631
+ msgstr "Zezwalaj na dodawanie \"niestandardowych\" wartości"
1632
 
1633
  #: includes/fields/class-acf-field-checkbox.php:364
 
1634
  msgid "Save Custom"
1635
+ msgstr "Zapisz niestandardowe"
1636
 
1637
  #: includes/fields/class-acf-field-checkbox.php:369
 
1638
  msgid "Save 'custom' values to the field's choices"
1639
+ msgstr "Zapisz \"niestandardowe\" wartości tego pola wyboru"
1640
 
1641
  #: includes/fields/class-acf-field-checkbox.php:381
1642
  #: includes/fields/class-acf-field-select.php:380
1643
  msgid "Enter each default value on a new line"
1644
+ msgstr "Wpisz każdą domyślną wartość w osobnej linii"
1645
 
1646
  #: includes/fields/class-acf-field-checkbox.php:403
1647
  msgid "Toggle"
1648
+ msgstr "Przełącznik (Toggle)"
1649
 
1650
  #: includes/fields/class-acf-field-checkbox.php:404
1651
  msgid "Prepend an extra checkbox to toggle all choices"
1671
 
1672
  #: includes/fields/class-acf-field-color_picker.php:71
1673
  msgid "Current Color"
1674
+ msgstr "Bieżący Kolor"
1675
 
1676
  #: includes/fields/class-acf-field-date_picker.php:25
1677
  msgid "Date Picker"
1690
  #: includes/fields/class-acf-field-date_picker.php:61
1691
  msgctxt "Date Picker JS nextText"
1692
  msgid "Next"
1693
+ msgstr "Dalej"
1694
 
1695
  #: includes/fields/class-acf-field-date_picker.php:62
1696
  msgctxt "Date Picker JS prevText"
1697
  msgid "Prev"
1698
+ msgstr "Wstecz"
1699
 
1700
  #: includes/fields/class-acf-field-date_picker.php:63
1701
  msgctxt "Date Picker JS weekHeader"
1702
  msgid "Wk"
1703
+ msgstr "Tydz"
1704
 
1705
  #: includes/fields/class-acf-field-date_picker.php:180
1706
  #: includes/fields/class-acf-field-date_time_picker.php:183
1720
  #: includes/fields/class-acf-field-date_time_picker.php:210
1721
  #: includes/fields/class-acf-field-time_picker.php:117
1722
  #: includes/fields/class-acf-field-time_picker.php:132
 
1723
  msgid "Custom:"
1724
+ msgstr "Niestandardowe:"
1725
 
1726
  #: includes/fields/class-acf-field-date_picker.php:199
 
1727
  msgid "Save Format"
1728
+ msgstr "Zapisz format"
1729
 
1730
  #: includes/fields/class-acf-field-date_picker.php:200
 
1731
  msgid "The format used when saving a value"
1732
+ msgstr "Format używany podczas zapisywania wartości"
1733
 
1734
  #: includes/fields/class-acf-field-date_picker.php:210
1735
  #: includes/fields/class-acf-field-date_time_picker.php:200
1739
  #: includes/fields/class-acf-field-time_picker.php:124
1740
  #: includes/fields/class-acf-field-user.php:428
1741
  msgid "Return Format"
1742
+ msgstr "Zwracany format"
1743
 
1744
  #: includes/fields/class-acf-field-date_picker.php:211
1745
  #: includes/fields/class-acf-field-date_time_picker.php:201
1779
  #: includes/fields/class-acf-field-date_time_picker.php:72
1780
  msgctxt "Date Time Picker JS secondText"
1781
  msgid "Second"
1782
+ msgstr "Sekunda"
1783
 
1784
  #: includes/fields/class-acf-field-date_time_picker.php:73
1785
  msgctxt "Date Time Picker JS millisecText"
1786
  msgid "Millisecond"
1787
+ msgstr "Milisekunda"
1788
 
1789
  #: includes/fields/class-acf-field-date_time_picker.php:74
1790
  msgctxt "Date Time Picker JS microsecText"
1791
  msgid "Microsecond"
1792
+ msgstr "Mikrosekunda"
1793
 
1794
  #: includes/fields/class-acf-field-date_time_picker.php:75
1795
  msgctxt "Date Time Picker JS timezoneText"
1833
 
1834
  #: includes/fields/class-acf-field-email.php:25
1835
  msgid "Email"
1836
+ msgstr "E-mail"
1837
 
1838
  #: includes/fields/class-acf-field-email.php:127
1839
  #: includes/fields/class-acf-field-number.php:136
1851
  #: includes/fields/class-acf-field-textarea.php:112
1852
  #: includes/fields/class-acf-field-url.php:110
1853
  msgid "Appears within the input"
1854
+ msgstr "Pojawia się w polu formularza"
1855
 
1856
  #: includes/fields/class-acf-field-email.php:136
1857
  #: includes/fields/class-acf-field-number.php:145
1867
  #: includes/fields/class-acf-field-range.php:186
1868
  #: includes/fields/class-acf-field-text.php:138
1869
  msgid "Appears before the input"
1870
+ msgstr "Pojawia się przed polem formularza"
1871
 
1872
  #: includes/fields/class-acf-field-email.php:145
1873
  #: includes/fields/class-acf-field-number.php:154
1875
  #: includes/fields/class-acf-field-range.php:194
1876
  #: includes/fields/class-acf-field-text.php:146
1877
  msgid "Append"
1878
+ msgstr "Za polem (sufiks)"
1879
 
1880
  #: includes/fields/class-acf-field-email.php:146
1881
  #: includes/fields/class-acf-field-number.php:155
1883
  #: includes/fields/class-acf-field-range.php:195
1884
  #: includes/fields/class-acf-field-text.php:147
1885
  msgid "Appears after the input"
1886
+ msgstr "Pojawia się za polem formularza"
1887
 
1888
  #: includes/fields/class-acf-field-file.php:25
1889
  msgid "File"
1917
 
1918
  #: includes/fields/class-acf-field-file.php:221
1919
  msgid "File Array"
1920
+ msgstr "Tablica pliku (Array)"
1921
 
1922
  #: includes/fields/class-acf-field-file.php:222
1923
  msgid "File URL"
1937
  #: includes/fields/class-acf-field-image.php:231
1938
  #: pro/fields/class-acf-field-gallery.php:671
1939
  msgid "Limit the media library choice"
1940
+ msgstr "Ograniczenie wyborów z biblioteki"
1941
 
1942
  #: includes/fields/class-acf-field-file.php:236
1943
  #: includes/fields/class-acf-field-image.php:236
1956
  #: includes/fields/class-acf-field-image.php:237
1957
  #: pro/fields/class-acf-field-gallery.php:677
1958
  msgid "Uploaded to post"
1959
+ msgstr "Przesłane do wpisu"
1960
 
1961
  #: includes/fields/class-acf-field-file.php:244
1962
  #: includes/fields/class-acf-field-image.php:244
1985
  #: includes/fields/class-acf-field-image.php:303
1986
  #: pro/fields/class-acf-field-gallery.php:743
1987
  msgid "Comma separated list. Leave blank for all types"
1988
+ msgstr "Lista rozdzielana przecinkami. Pozostaw puste dla wszystkich typów"
1989
 
1990
  #: includes/fields/class-acf-field-google-map.php:25
1991
  msgid "Google Map"
1993
 
1994
  #: includes/fields/class-acf-field-google-map.php:59
1995
  msgid "Sorry, this browser does not support geolocation"
1996
+ msgstr "Przepraszamy, ta przeglądarka nie obsługuje geolokalizacji"
1997
 
1998
  #: includes/fields/class-acf-field-google-map.php:165
1999
  msgid "Clear location"
2000
+ msgstr "Wyczyść lokalizację"
2001
 
2002
  #: includes/fields/class-acf-field-google-map.php:166
2003
  msgid "Find current location"
2004
+ msgstr "Znajdź aktualną lokalizację"
2005
 
2006
  #: includes/fields/class-acf-field-google-map.php:169
2007
  msgid "Search for address..."
2039
  msgstr "Dostosuj wysokość mapy"
2040
 
2041
  #: includes/fields/class-acf-field-group.php:25
 
2042
  msgid "Group"
2043
+ msgstr "Grupa"
2044
 
2045
  #: includes/fields/class-acf-field-group.php:459
2046
  #: pro/fields/class-acf-field-repeater.php:379
2050
  #: includes/fields/class-acf-field-group.php:475
2051
  #: pro/fields/class-acf-field-clone.php:844
2052
  msgid "Specify the style used to render the selected fields"
2053
+ msgstr "Określ style stosowane to renderowania wybranych pól"
2054
 
2055
  #: includes/fields/class-acf-field-group.php:480
2056
  #: pro/fields/class-acf-field-clone.php:849
2075
 
2076
  #: includes/fields/class-acf-field-image.php:25
2077
  msgid "Image"
2078
+ msgstr "Obraz"
2079
 
2080
  #: includes/fields/class-acf-field-image.php:64
2081
  msgid "Select Image"
2082
+ msgstr "Wybierz obraz"
2083
 
2084
  #: includes/fields/class-acf-field-image.php:65
2085
  msgid "Edit Image"
2086
+ msgstr "Edytuj obraz"
2087
 
2088
  #: includes/fields/class-acf-field-image.php:66
2089
  msgid "Update Image"
2090
+ msgstr "Aktualizuj obraz"
2091
 
2092
  #: includes/fields/class-acf-field-image.php:157
2093
  msgid "No image selected"
2094
+ msgstr "Nie wybrano obrazu"
2095
 
2096
  #: includes/fields/class-acf-field-image.php:157
2097
  msgid "Add Image"
2098
+ msgstr "Dodaj obraz"
2099
 
2100
  #: includes/fields/class-acf-field-image.php:211
2101
  msgid "Image Array"
2102
+ msgstr "Tablica obrazów (Array)"
2103
 
2104
  #: includes/fields/class-acf-field-image.php:212
2105
  msgid "Image URL"
2106
+ msgstr "Adres URL obrazu"
2107
 
2108
  #: includes/fields/class-acf-field-image.php:213
2109
  msgid "Image ID"
2110
+ msgstr "ID obrazu"
2111
 
2112
  #: includes/fields/class-acf-field-image.php:220
2113
  msgid "Preview Size"
2114
+ msgstr "Rozmiar podglądu"
2115
 
2116
  #: includes/fields/class-acf-field-image.php:221
2117
  msgid "Shown when entering data"
2118
+ msgstr "Widoczny podczas wprowadzania danych"
2119
 
2120
  #: includes/fields/class-acf-field-image.php:245
2121
  #: includes/fields/class-acf-field-image.php:274
2133
  msgstr "Szerokość"
2134
 
2135
  #: includes/fields/class-acf-field-link.php:25
 
2136
  msgid "Link"
2137
+ msgstr "Link"
2138
 
2139
  #: includes/fields/class-acf-field-link.php:133
 
2140
  msgid "Select Link"
2141
+ msgstr "Wybierz link"
2142
 
2143
  #: includes/fields/class-acf-field-link.php:138
2144
  msgid "Opens in a new window/tab"
2145
+ msgstr "Otwiera się w nowym oknie/karcie"
2146
 
2147
  #: includes/fields/class-acf-field-link.php:172
 
2148
  msgid "Link Array"
2149
+ msgstr "Tablica linków (Array)"
2150
 
2151
  #: includes/fields/class-acf-field-link.php:173
 
2152
  msgid "Link URL"
2153
+ msgstr "Adres URL linku"
2154
 
2155
  #: includes/fields/class-acf-field-message.php:25
2156
  #: includes/fields/class-acf-field-message.php:101
2185
 
2186
  #: includes/fields/class-acf-field-message.php:124
2187
  msgid "Escape HTML"
2188
+ msgstr "dodawaj znaki ucieczki do HTML (escape HTML)"
2189
 
2190
  #: includes/fields/class-acf-field-message.php:125
2191
  msgid "Allow HTML markup to display as visible text instead of rendering"
2192
  msgstr ""
2193
+ "Zezwól aby znaczniki HTML były wyświetlane jako widoczny tekst, a nie "
2194
  "renderowane."
2195
 
2196
  #: includes/fields/class-acf-field-number.php:25
2210
  #: includes/fields/class-acf-field-number.php:181
2211
  #: includes/fields/class-acf-field-range.php:175
2212
  msgid "Step Size"
2213
+ msgstr "Wielkość kroku"
2214
 
2215
  #: includes/fields/class-acf-field-number.php:219
2216
  msgid "Value must be a number"
2232
 
2233
  #: includes/fields/class-acf-field-oembed.php:216
2234
  msgid "Enter URL"
2235
+ msgstr "Wprowadź adres URL"
2236
 
2237
  #: includes/fields/class-acf-field-oembed.php:254
2238
  #: includes/fields/class-acf-field-oembed.php:265
2259
  #: includes/fields/class-acf-field-post_object.php:392
2260
  #: includes/fields/class-acf-field-relationship.php:649
2261
  msgid "All post types"
2262
+ msgstr "Wszystkie typy wpisów"
2263
 
2264
  #: includes/fields/class-acf-field-page_link.php:499
2265
  #: includes/fields/class-acf-field-post_object.php:398
2275
 
2276
  #: includes/fields/class-acf-field-page_link.php:523
2277
  msgid "Allow Archives URLs"
2278
+ msgstr "Pozwól na adresy URL archiwów"
2279
 
2280
  #: includes/fields/class-acf-field-page_link.php:533
2281
  #: includes/fields/class-acf-field-post_object.php:422
2292
  #: includes/fields/class-acf-field-post_object.php:437
2293
  #: includes/fields/class-acf-field-relationship.php:720
2294
  msgid "Post Object"
2295
+ msgstr "Obiekt wpisu"
2296
 
2297
  #: includes/fields/class-acf-field-post_object.php:438
2298
  #: includes/fields/class-acf-field-relationship.php:721
2305
 
2306
  #: includes/fields/class-acf-field-radio.php:254
2307
  msgid "Other"
2308
+ msgstr "Inne"
2309
 
2310
  #: includes/fields/class-acf-field-radio.php:259
2311
  msgid "Add 'other' choice to allow for custom values"
2312
  msgstr ""
2313
+ "Dodaj pole \"inne\" aby zezwolić na wartości definiowane przez użytkownika"
2314
 
2315
  #: includes/fields/class-acf-field-radio.php:265
2316
  msgid "Save Other"
2317
+ msgstr "Zapisz inne"
2318
 
2319
  #: includes/fields/class-acf-field-radio.php:270
2320
  msgid "Save 'other' values to the field's choices"
2321
+ msgstr "Dopisz zapisaną wartość pola \"inne\" do wyborów tego pola"
2322
 
2323
  #: includes/fields/class-acf-field-range.php:25
2324
  msgid "Range"
2325
+ msgstr "Zakres"
2326
 
2327
  #: includes/fields/class-acf-field-relationship.php:25
2328
  msgid "Relationship"
2330
 
2331
  #: includes/fields/class-acf-field-relationship.php:62
2332
  msgid "Maximum values reached ( {max} values )"
2333
+ msgstr "Maksymalna liczba wartości została przekroczona ( {max} wartości )"
2334
 
2335
  #: includes/fields/class-acf-field-relationship.php:63
2336
  msgid "Loading"
2337
+ msgstr "Ładowanie"
2338
 
2339
  #: includes/fields/class-acf-field-relationship.php:64
2340
  msgid "No matches found"
2346
 
2347
  #: includes/fields/class-acf-field-relationship.php:467
2348
  msgid "Select taxonomy"
2349
+ msgstr "Wybierz taksonomię"
2350
 
2351
  #: includes/fields/class-acf-field-relationship.php:557
2352
  msgid "Search..."
2374
 
2375
  #: includes/fields/class-acf-field-relationship.php:684
2376
  msgid "Selected elements will be displayed in each result"
2377
+ msgstr "Wybrane elementy będą wyświetlone przy każdym wyniku"
2378
 
2379
  #: includes/fields/class-acf-field-relationship.php:695
2380
  msgid "Minimum posts"
2389
  #, php-format
2390
  msgid "%s requires at least %s selection"
2391
  msgid_plural "%s requires at least %s selections"
2392
+ msgstr[0] "%s wymaga dokonania przynajmniej %s wyboru"
2393
+ msgstr[1] "%s wymaga dokonania przynajmniej %s wyborów"
2394
+ msgstr[2] "%s wymaga dokonania przynajmniej %s wyborów"
2395
 
2396
  #: includes/fields/class-acf-field-select.php:25
2397
  #: includes/fields/class-acf-field-taxonomy.php:776
2398
  msgctxt "noun"
2399
  msgid "Select"
2400
+ msgstr "Wybór"
2401
 
2402
  #: includes/fields/class-acf-field-select.php:111
2403
  msgctxt "Select2 JS matches_1"
2404
  msgid "One result is available, press enter to select it."
2405
+ msgstr "Dostępny jest jeden wynik. Aby go wybrać, wciśnij klawisz enter."
2406
 
2407
  #: includes/fields/class-acf-field-select.php:112
2408
  #, php-format
2409
  msgctxt "Select2 JS matches_n"
2410
  msgid "%d results are available, use up and down arrow keys to navigate."
2411
+ msgstr "Dostępnych wyników - %d. Użyj strzałek w górę i w dół, aby nawigować."
2412
 
2413
  #: includes/fields/class-acf-field-select.php:113
2414
  msgctxt "Select2 JS matches_0"
2435
  #, php-format
2436
  msgctxt "Select2 JS input_too_long_n"
2437
  msgid "Please delete %d characters"
2438
+ msgstr "Proszę usunąć %d znaki/ów"
2439
 
2440
  #: includes/fields/class-acf-field-select.php:118
2441
  msgctxt "Select2 JS selection_too_long_1"
2446
  #, php-format
2447
  msgctxt "Select2 JS selection_too_long_n"
2448
  msgid "You can only select %d items"
2449
+ msgstr "Możesz wybrać tylko %d elementy/ów"
2450
 
2451
  #: includes/fields/class-acf-field-select.php:120
2452
  msgctxt "Select2 JS load_more"
2453
  msgid "Loading more results&hellip;"
2454
+ msgstr "Ładuję więcej wyników&hellip;"
2455
 
2456
  #: includes/fields/class-acf-field-select.php:121
2457
  msgctxt "Select2 JS searching"
2461
  #: includes/fields/class-acf-field-select.php:122
2462
  msgctxt "Select2 JS load_fail"
2463
  msgid "Loading failed"
2464
+ msgstr "Ładowanie zakończone niepowodzeniem"
2465
 
2466
  #: includes/fields/class-acf-field-select.php:408
2467
  #: includes/fields/class-acf-field-true_false.php:144
2468
  msgid "Stylised UI"
2469
+ msgstr "Ostylowany interfejs użytkownika"
2470
 
2471
  #: includes/fields/class-acf-field-select.php:418
2472
  msgid "Use AJAX to lazy load choices?"
2473
+ msgstr "Użyć technologii AJAX do wczytywania wyników?"
2474
 
2475
  #: includes/fields/class-acf-field-select.php:434
2476
  msgid "Specify the value returned"
2477
+ msgstr "Określ zwracaną wartość"
2478
 
2479
  #: includes/fields/class-acf-field-separator.php:25
2480
  msgid "Separator"
2481
+ msgstr "Separator"
2482
 
2483
  #: includes/fields/class-acf-field-tab.php:25
2484
  msgid "Tab"
2489
  msgstr "Położenie"
2490
 
2491
  #: includes/fields/class-acf-field-tab.php:115
 
2492
  msgid ""
2493
  "Define an endpoint for the previous tabs to stop. This will start a new "
2494
  "group of tabs."
2495
+ msgstr "Użyj tego pola jako punkt końcowy i zacznij nową grupę zakładek."
2496
 
2497
  #: includes/fields/class-acf-field-taxonomy.php:714
2498
+ #, php-format
2499
  msgctxt "No terms"
2500
  msgid "No %s"
2501
+ msgstr "Brak %s"
2502
 
2503
  #: includes/fields/class-acf-field-taxonomy.php:755
2504
  msgid "Select the taxonomy to be displayed"
2505
+ msgstr "Wybierz taksonomię do wyświetlenia"
2506
 
2507
  #: includes/fields/class-acf-field-taxonomy.php:764
2508
  msgid "Appearance"
2510
 
2511
  #: includes/fields/class-acf-field-taxonomy.php:765
2512
  msgid "Select the appearance of this field"
2513
+ msgstr "Określ wygląd tego pola"
2514
 
2515
  #: includes/fields/class-acf-field-taxonomy.php:770
2516
  msgid "Multiple Values"
2534
 
2535
  #: includes/fields/class-acf-field-taxonomy.php:800
2536
  msgid "Allow new terms to be created whilst editing"
2537
+ msgstr "Pozwól na tworzenie nowych terminów taksonomii podczas edycji"
2538
 
2539
  #: includes/fields/class-acf-field-taxonomy.php:809
2540
  msgid "Save Terms"
2546
 
2547
  #: includes/fields/class-acf-field-taxonomy.php:819
2548
  msgid "Load Terms"
2549
+ msgstr "Wczytaj terminy taksonomii"
2550
 
2551
  #: includes/fields/class-acf-field-taxonomy.php:820
2552
  msgid "Load value from posts terms"
2573
  #: includes/fields/class-acf-field-taxonomy.php:927
2574
  #, php-format
2575
  msgid "%s added"
2576
+ msgstr "Dodano %s"
2577
 
2578
  #: includes/fields/class-acf-field-taxonomy.php:973
2579
  msgid "Add"
2603
 
2604
  #: includes/fields/class-acf-field-textarea.php:130
2605
  msgid "Sets the textarea height"
2606
+ msgstr "Określa wysokość obszaru tekstowego"
2607
 
2608
  #: includes/fields/class-acf-field-time_picker.php:25
2609
  msgid "Time Picker"
2615
 
2616
  #: includes/fields/class-acf-field-true_false.php:127
2617
  msgid "Displays text alongside the checkbox"
2618
+ msgstr "Wyświetla tekst obok pola wyboru (checkbox)"
2619
 
2620
  #: includes/fields/class-acf-field-true_false.php:155
 
2621
  msgid "On Text"
2622
+ msgstr "Tekst, gdy włączone"
2623
 
2624
  #: includes/fields/class-acf-field-true_false.php:156
2625
  msgid "Text shown when active"
2626
+ msgstr "Tekst wyświetlany, gdy jest aktywne"
2627
 
2628
  #: includes/fields/class-acf-field-true_false.php:170
 
2629
  msgid "Off Text"
2630
+ msgstr "Tekst, gdy wyłączone"
2631
 
2632
  #: includes/fields/class-acf-field-true_false.php:171
2633
  msgid "Text shown when inactive"
2634
+ msgstr "Tekst wyświetlany, gdy jest nieaktywne"
2635
 
2636
  #: includes/fields/class-acf-field-url.php:25
2637
  msgid "Url"
2654
  msgstr "Wszystkie role użytkownika"
2655
 
2656
  #: includes/fields/class-acf-field-user.php:433
 
2657
  msgid "User Array"
2658
+ msgstr "Tablica użytkowników (Array)"
2659
 
2660
  #: includes/fields/class-acf-field-user.php:434
 
2661
  msgid "User Object"
2662
+ msgstr "Obiekt użytkownika"
2663
 
2664
  #: includes/fields/class-acf-field-user.php:435
 
2665
  msgid "User ID"
2666
+ msgstr "ID użytkownika"
2667
 
2668
  #: includes/fields/class-acf-field-wysiwyg.php:25
2669
  msgid "Wysiwyg Editor"
2676
  #: includes/fields/class-acf-field-wysiwyg.php:347
2677
  msgctxt "Name for the Text editor tab (formerly HTML)"
2678
  msgid "Text"
2679
+ msgstr "Tekstowy"
2680
 
2681
  #: includes/fields/class-acf-field-wysiwyg.php:353
2682
  msgid "Click to initialize TinyMCE"
2683
+ msgstr "Kliknij, aby zainicjować TinyMCE"
2684
 
2685
  #: includes/fields/class-acf-field-wysiwyg.php:406
2686
  msgid "Tabs"
2688
 
2689
  #: includes/fields/class-acf-field-wysiwyg.php:411
2690
  msgid "Visual & Text"
2691
+ msgstr "Wizualna i Tekstowa"
2692
 
2693
  #: includes/fields/class-acf-field-wysiwyg.php:412
2694
  msgid "Visual Only"
2695
+ msgstr "Tylko wizualna"
2696
 
2697
  #: includes/fields/class-acf-field-wysiwyg.php:413
2698
  msgid "Text Only"
2699
+ msgstr "Tylko tekstowa"
2700
 
2701
  #: includes/fields/class-acf-field-wysiwyg.php:420
2702
  msgid "Toolbar"
2704
 
2705
  #: includes/fields/class-acf-field-wysiwyg.php:435
2706
  msgid "Show Media Upload Buttons?"
2707
+ msgstr "Wyświetlić przyciski Dodawania mediów?"
2708
 
2709
  #: includes/fields/class-acf-field-wysiwyg.php:445
2710
  msgid "Delay initialization?"
2711
+ msgstr "Opóźnić inicjowanie?"
2712
 
2713
  #: includes/fields/class-acf-field-wysiwyg.php:446
2714
  msgid "TinyMCE will not be initalized until field is clicked"
2715
+ msgstr "TinyMCE nie zostanie zainicjowane do momentu kliknięcia pola"
2716
 
2717
  #: includes/forms/form-comment.php:166 includes/forms/form-post.php:305
2718
  #: pro/admin/admin-options-page.php:308
2721
 
2722
  #: includes/forms/form-front.php:55
2723
  msgid "Validate Email"
2724
+ msgstr "Waliduj E-mail"
2725
 
2726
  #: includes/forms/form-front.php:103
2727
  #: pro/fields/class-acf-field-gallery.php:588 pro/options-page.php:81
2734
 
2735
  #: includes/forms/form-front.php:230
2736
  msgid "Spam Detected"
2737
+ msgstr "Wykryto Spam"
2738
 
2739
  #: includes/locations.php:93 includes/locations/class-acf-location-post.php:27
2740
  msgid "Post"
2763
  #: includes/locations/class-acf-location-attachment.php:109
2764
  #, php-format
2765
  msgid "All %s formats"
2766
+ msgstr "Wszystkie formaty %s"
2767
 
2768
  #: includes/locations/class-acf-location-comment.php:27
2769
  msgid "Comment"
2787
 
2788
  #: includes/locations/class-acf-location-current-user.php:98
2789
  msgid "Viewing front end"
2790
+ msgstr "Wyświetla stronę (front-end)"
2791
 
2792
  #: includes/locations/class-acf-location-current-user.php:99
2793
  msgid "Viewing back end"
2794
+ msgstr "Wyświetla kokpit (back-end)"
2795
 
2796
  #: includes/locations/class-acf-location-nav-menu-item.php:27
2797
  msgid "Menu Item"
2798
+ msgstr "Element menu"
2799
 
2800
  #: includes/locations/class-acf-location-nav-menu.php:27
2801
  msgid "Menu"
2802
+ msgstr "Menu"
2803
 
2804
  #: includes/locations/class-acf-location-nav-menu.php:109
 
2805
  msgid "Menu Locations"
2806
+ msgstr "Pozycje menu"
2807
 
2808
  #: includes/locations/class-acf-location-nav-menu.php:119
2809
  msgid "Menus"
2810
+ msgstr "Wiele menu"
2811
 
2812
  #: includes/locations/class-acf-location-page-parent.php:27
2813
  msgid "Page Parent"
2832
 
2833
  #: includes/locations/class-acf-location-page-type.php:147
2834
  msgid "Posts Page"
2835
+ msgstr "Strona wpisów"
2836
 
2837
  #: includes/locations/class-acf-location-page-type.php:148
2838
  msgid "Top Level Page (no parent)"
2839
+ msgstr "Strona najwyższego poziomu (brak rodzica)"
2840
 
2841
  #: includes/locations/class-acf-location-page-type.php:149
2842
  msgid "Parent Page (has children)"
2843
+ msgstr "Strona będąca rodzicem (posiada potomne)"
2844
 
2845
  #: includes/locations/class-acf-location-page-type.php:150
2846
  msgid "Child Page (has parent)"
2847
+ msgstr "Strona będąca potomną (ma rodziców)"
2848
 
2849
  #: includes/locations/class-acf-location-post-category.php:27
2850
  msgid "Post Category"
2863
  msgstr "Taksonomia wpisu"
2864
 
2865
  #: includes/locations/class-acf-location-post-template.php:27
 
2866
  msgid "Post Template"
2867
+ msgstr "Szablon wpisu"
2868
 
2869
  #: includes/locations/class-acf-location-user-form.php:27
2870
  msgid "User Form"
2876
 
2877
  #: includes/locations/class-acf-location-user-form.php:89
2878
  msgid "Register"
2879
+ msgstr "Zarejestruj"
2880
 
2881
  #: includes/locations/class-acf-location-user-role.php:27
2882
  msgid "User Role"
2907
  "Custom Field Group</a>"
2908
  msgstr ""
2909
  "Żadna grupa pól nie została dodana do tej strony opcji. <a href=\"%s"
2910
+ "\">Utwórz grupę własnych pól</a>"
2911
 
2912
  #: pro/admin/admin-settings-updates.php:78
2913
  msgid "<b>Error</b>. Could not connect to update server"
2920
 
2921
  #: pro/admin/views/html-settings-updates.php:7
2922
  msgid "Deactivate License"
2923
+ msgstr "Deaktywuj licencję"
2924
 
2925
  #: pro/admin/views/html-settings-updates.php:7
2926
  msgid "Activate License"
2927
+ msgstr "Aktywuj licencję"
2928
 
2929
  #: pro/admin/views/html-settings-updates.php:17
2930
  msgid "License Information"
2931
+ msgstr "Informacje o licencji"
2932
 
2933
  #: pro/admin/views/html-settings-updates.php:20
2934
  #, php-format
2938
  "a>."
2939
  msgstr ""
2940
  "Żeby odblokować aktualizacje proszę podać swój klucz licencyjny poniżej. "
2941
+ "Jeśli nie posiadasz klucza prosimy zapoznać się ze <a href=\"%s\" target="
2942
+ "\"_blank\">szczegółami i cennikiem</a>."
2943
 
2944
  #: pro/admin/views/html-settings-updates.php:29
2945
  msgid "License Key"
2946
+ msgstr "Klucz licencyjny"
2947
 
2948
  #: pro/admin/views/html-settings-updates.php:61
2949
  msgid "Update Information"
2955
 
2956
  #: pro/admin/views/html-settings-updates.php:76
2957
  msgid "Latest Version"
2958
+ msgstr "Najnowsza wersja"
2959
 
2960
  #: pro/admin/views/html-settings-updates.php:84
2961
  msgid "Update Available"
2962
+ msgstr "Dostępna aktualizacja"
2963
 
2964
  #: pro/admin/views/html-settings-updates.php:92
2965
  msgid "Update Plugin"
2966
+ msgstr "Aktualizuj wtyczkę"
2967
 
2968
  #: pro/admin/views/html-settings-updates.php:94
2969
  msgid "Please enter your license key above to unlock updates"
2970
+ msgstr ""
2971
+ "Proszę wpisać swój klucz licencyjny powyżej aby odblokować aktualizacje"
2972
 
2973
  #: pro/admin/views/html-settings-updates.php:100
2974
  msgid "Check Again"
2981
  #: pro/fields/class-acf-field-clone.php:25
2982
  msgctxt "noun"
2983
  msgid "Clone"
2984
+ msgstr "Klonowanie"
2985
 
2986
  #: pro/fields/class-acf-field-clone.php:812
2987
  msgid "Select one or more fields you wish to clone"
2993
 
2994
  #: pro/fields/class-acf-field-clone.php:830
2995
  msgid "Specify the style used to render the clone field"
2996
+ msgstr "Określ styl wykorzystywany do stosowania w klonowanych polach"
2997
 
2998
  #: pro/fields/class-acf-field-clone.php:835
2999
  msgid "Group (displays selected fields in a group within this field)"
3000
+ msgstr "Grupuj (wyświetla wybrane pola w grupie)"
3001
 
3002
  #: pro/fields/class-acf-field-clone.php:836
3003
  msgid "Seamless (replaces this field with selected fields)"
3022
  msgstr "Prefiks Nazw Pól"
3023
 
3024
  #: pro/fields/class-acf-field-clone.php:992
 
3025
  msgid "Unknown field"
3026
+ msgstr "Nieznane pole"
3027
 
3028
  #: pro/fields/class-acf-field-clone.php:1031
 
3029
  msgid "Unknown field group"
3030
+ msgstr "Nieznana grupa pól"
3031
 
3032
  #: pro/fields/class-acf-field-clone.php:1035
3033
  #, php-format
3034
  msgid "All fields from %s field group"
3035
+ msgstr "Wszystkie pola z grupy pola %s"
3036
 
3037
  #: pro/fields/class-acf-field-flexible-content.php:31
3038
  #: pro/fields/class-acf-field-repeater.php:193
3043
  #: pro/fields/class-acf-field-flexible-content.php:73
3044
  #: pro/fields/class-acf-field-flexible-content.php:938
3045
  #: pro/fields/class-acf-field-flexible-content.php:1020
 
3046
  msgid "layout"
3047
  msgid_plural "layouts"
3048
+ msgstr[0] "układ"
3049
+ msgstr[1] "układy"
3050
+ msgstr[2] "układów"
3051
 
3052
  #: pro/fields/class-acf-field-flexible-content.php:74
3053
  msgid "layouts"
3054
+ msgstr "układy"
3055
 
3056
  #: pro/fields/class-acf-field-flexible-content.php:77
3057
  #: pro/fields/class-acf-field-flexible-content.php:937
3060
  msgstr "To pole wymaga przynajmniej {min} {label} {identifier}"
3061
 
3062
  #: pro/fields/class-acf-field-flexible-content.php:78
 
3063
  msgid "This field has a limit of {max} {label} {identifier}"
3064
+ msgstr "To pole ma ograniczenie {max} {label} {identifier}"
3065
 
3066
  #: pro/fields/class-acf-field-flexible-content.php:81
3067
  msgid "{available} {label} {identifier} available (max {max})"
3068
+ msgstr "{available} {label} {identifier} dostępne (max {max})"
 
 
3069
 
3070
  #: pro/fields/class-acf-field-flexible-content.php:82
3071
  msgid "{required} {label} {identifier} required (min {min})"
3073
 
3074
  #: pro/fields/class-acf-field-flexible-content.php:85
3075
  msgid "Flexible Content requires at least 1 layout"
3076
+ msgstr "Elastyczne pole wymaga przynajmniej 1 układu"
3077
 
3078
  #: pro/fields/class-acf-field-flexible-content.php:302
3079
  #, php-format
3080
  msgid "Click the \"%s\" button below to start creating your layout"
3081
+ msgstr "Kliknij przycisk \"%s\" poniżej, aby zacząć tworzyć nowy układ"
3082
 
3083
  #: pro/fields/class-acf-field-flexible-content.php:427
3084
  msgid "Add layout"
3085
+ msgstr "Dodaj układ"
3086
 
3087
  #: pro/fields/class-acf-field-flexible-content.php:428
3088
  msgid "Remove layout"
3089
+ msgstr "Usuń układ"
3090
 
3091
  #: pro/fields/class-acf-field-flexible-content.php:429
3092
  #: pro/fields/class-acf-field-repeater.php:296
3095
 
3096
  #: pro/fields/class-acf-field-flexible-content.php:569
3097
  msgid "Reorder Layout"
3098
+ msgstr "Zmień kolejność układów"
3099
 
3100
  #: pro/fields/class-acf-field-flexible-content.php:569
3101
  msgid "Reorder"
3103
 
3104
  #: pro/fields/class-acf-field-flexible-content.php:570
3105
  msgid "Delete Layout"
3106
+ msgstr "Usuń układ"
3107
 
3108
  #: pro/fields/class-acf-field-flexible-content.php:571
3109
  msgid "Duplicate Layout"
3110
+ msgstr "Duplikuj układ"
3111
 
3112
  #: pro/fields/class-acf-field-flexible-content.php:572
3113
  msgid "Add New Layout"
3114
+ msgstr "Dodaj nowy układ"
3115
 
3116
  #: pro/fields/class-acf-field-flexible-content.php:643
3117
  msgid "Min"
3124
  #: pro/fields/class-acf-field-flexible-content.php:683
3125
  #: pro/fields/class-acf-field-repeater.php:459
3126
  msgid "Button Label"
3127
+ msgstr "Etykieta przycisku"
3128
 
3129
  #: pro/fields/class-acf-field-flexible-content.php:692
3130
  msgid "Minimum Layouts"
3131
+ msgstr "Minimalna liczba układów"
3132
 
3133
  #: pro/fields/class-acf-field-flexible-content.php:701
3134
  msgid "Maximum Layouts"
3135
+ msgstr "Maksymalna liczba układów"
3136
 
3137
  #: pro/fields/class-acf-field-gallery.php:71
3138
  msgid "Add Image to Gallery"
3139
+ msgstr "Dodaj obraz do galerii"
3140
 
3141
  #: pro/fields/class-acf-field-gallery.php:72
3142
  msgid "Maximum selection reached"
3143
+ msgstr "Maksimum ilości wyborów osiągnięte"
3144
 
3145
  #: pro/fields/class-acf-field-gallery.php:336
3146
  msgid "Length"
3160
 
3161
  #: pro/fields/class-acf-field-gallery.php:563
3162
  msgid "Bulk actions"
3163
+ msgstr "Działania na wielu"
3164
 
3165
  #: pro/fields/class-acf-field-gallery.php:564
3166
  msgid "Sort by date uploaded"
3167
+ msgstr "Sortuj po dacie przesłania"
3168
 
3169
  #: pro/fields/class-acf-field-gallery.php:565
3170
  msgid "Sort by date modified"
3184
 
3185
  #: pro/fields/class-acf-field-gallery.php:639
3186
  msgid "Minimum Selection"
3187
+ msgstr "Minimalna liczba wybranych elementów"
3188
 
3189
  #: pro/fields/class-acf-field-gallery.php:648
3190
  msgid "Maximum Selection"
3209
  #: pro/fields/class-acf-field-repeater.php:65
3210
  #: pro/fields/class-acf-field-repeater.php:656
3211
  msgid "Minimum rows reached ({min} rows)"
3212
+ msgstr "Osiągnięto minimum liczby wierszy ( {min} wierszy )"
3213
 
3214
  #: pro/fields/class-acf-field-repeater.php:66
3215
  msgid "Maximum rows reached ({max} rows)"
3216
+ msgstr "Osiągnięto maksimum liczby wierszy ( {max} wierszy )"
3217
 
3218
  #: pro/fields/class-acf-field-repeater.php:333
3219
  msgid "Add row"
3234
 
3235
  #: pro/fields/class-acf-field-repeater.php:423
3236
  msgid "Minimum Rows"
3237
+ msgstr "Minimalna liczba wierszy"
3238
 
3239
  #: pro/fields/class-acf-field-repeater.php:433
3240
  msgid "Maximum Rows"
3241
+ msgstr "Minimalna liczba wierszy"
3242
 
3243
  #: pro/locations/class-acf-location-options-page.php:79
3244
  msgid "No options pages exist"
3259
  "\">Updates</a> page. If you don't have a licence key, please see <a href=\"%s"
3260
  "\">details & pricing</a>."
3261
  msgstr ""
3262
+ "Żeby włączyć aktualizacje, proszę podać swój klucz licencyjny na stronie <a "
3263
+ "href=\"%s\">Aktualizacji</a>. Jeśli nie posiadasz klucza, prosimy zapoznać "
3264
+ "się ze <a href=\"%s\">szczegółami i cennikiem</a>."
3265
 
3266
  #. Plugin URI of the plugin/theme
3267
  msgid "https://www.advancedcustomfields.com/"
readme.txt CHANGED
@@ -66,6 +66,15 @@ From your WordPress dashboard
66
 
67
  == Changelog ==
68
 
 
 
 
 
 
 
 
 
 
69
  = 5.7.5 =
70
  *Release Date - 6 September 2018*
71
 
66
 
67
  == Changelog ==
68
 
69
+ = 5.7.6 =
70
+ *Release Date - 12 September 2018*
71
+
72
+ * Fix - Fixed unload prompt not working.
73
+ * Dev - Reduced number of queries needed to populate the relationship field taxonomy filter.
74
+ * Dev - Added 'nav_menu_item_id' and 'nav_menu_item_depth' to get_field_groups() query.
75
+ * Dev - Reordered various actions and filters for more usefulness.
76
+ * i18n - Updated Polish language thanks to Dariusz Zielonka
77
+
78
  = 5.7.5 =
79
  *Release Date - 6 September 2018*
80