Advanced Custom Fields - Version 5.7.13

Version Description

Release Date - 6 March 2019

  • Fix - Fixed bug causing issues with registered fields during switch_to_blog().
  • Fix - Fixed bug preventing sub fields from being reused across multiple parents.
  • Fix - Fixed bug causing the get_sub_field() function to fail if a tab field exists with the same name as the selected field.
  • Fix - Fixed bug corrupting field settings since WP 5.1 when instructions contain < a target="" >.
  • Fix - Fixed bug in Gutenberg where custom metabox location (acf_after_title) did not show on initial page load.
  • Fix - Fixed bug causing issues when importing/syncing multiple field groups which contain a clone field.
  • Fix - Fixed bug preventing the AMP plugin preview from working.
  • Dev - Added new 'pre' filters to get, update and delete meta functions.
  • i18n - Update Turkish translation thanks to Emre Erkan.
Download this release

Release Info

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

Code changes from version 5.7.12 to 5.7.13

acf.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Advanced Custom Fields
4
  Plugin URI: https://www.advancedcustomfields.com/
5
  Description: Customize WordPress with powerful, professional and intuitive fields.
6
- Version: 5.7.12
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.12';
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: Customize WordPress with powerful, professional and intuitive fields.
6
+ Version: 5.7.13
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.13';
22
 
23
  /** @var array The plugin settings array */
24
  var $settings = array();
assets/js/acf-input.js CHANGED
@@ -2097,7 +2097,7 @@
2097
  * @return bool
2098
  */
2099
  acf.isGutenberg = function(){
2100
- return ( window.wp && wp.blocks );
2101
  };
2102
 
2103
  /**
@@ -11043,11 +11043,15 @@
11043
 
11044
  // Trigger action.
11045
  acf.doAction('append', $postbox);
 
11046
  }
11047
 
11048
  // show postbox
11049
  postbox.showEnable();
11050
 
 
 
 
11051
  // append
11052
  visible.push( result.id );
11053
  });
@@ -11056,6 +11060,9 @@
11056
  acf.getPostboxes().map(function( postbox ){
11057
  if( visible.indexOf( postbox.get('id') ) === -1 ) {
11058
  postbox.hideDisable();
 
 
 
11059
  }
11060
  });
11061
 
@@ -11100,6 +11107,9 @@
11100
  acf.screen.getPostType = this.getPostType;
11101
  acf.screen.getPostFormat = this.getPostFormat;
11102
  acf.screen.getPostCoreTerms = this.getPostCoreTerms;
 
 
 
11103
  },
11104
 
11105
  onChange: function(){
@@ -11176,8 +11186,62 @@
11176
 
11177
  // return
11178
  return terms;
11179
- },
11180
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11181
 
11182
  })(jQuery);
11183
 
@@ -13075,7 +13139,7 @@
13075
  'click button[type="submit"]': 'onClickSubmit',
13076
  //'click #editor .editor-post-publish-button': 'onClickSubmitGutenberg',
13077
  'click #save-post': 'onClickSave',
13078
- 'mousedown #post-preview': 'onClickPreview', // use mousedown to hook in before WP click event
13079
  'submit form': 'onSubmit',
13080
  },
13081
 
@@ -13238,27 +13302,6 @@
13238
  this.set('ignore', true);
13239
  },
13240
 
13241
- /**
13242
- * onClickPreview
13243
- *
13244
- * Set ignore to true when previewing a post.
13245
- *
13246
- * @date 4/9/18
13247
- * @since 5.7.5
13248
- *
13249
- * @param object e The event object.
13250
- * @param jQuery $el The input element.
13251
- * @return void
13252
- */
13253
- onClickPreview: function( e, $el ) {
13254
- this.set('ignore', true);
13255
-
13256
- // if post has previously been published but prevented by an error, WP core has
13257
- // added a custom 'submit.edit-post' event which causes the input buttons to become disabled.
13258
- // remove this event to prevent UX issues.
13259
- $('form#post').off('submit.edit-post');
13260
- },
13261
-
13262
  /**
13263
  * onClickSubmitGutenberg
13264
  *
@@ -13292,6 +13335,31 @@
13292
  }
13293
  },
13294
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13295
  /**
13296
  * onSubmit
13297
  *
@@ -13306,27 +13374,51 @@
13306
  */
13307
  onSubmit: function( e, $el ){
13308
 
13309
- // bail early if is disabled
13310
- if( !this.active ) {
13311
- return;
13312
- }
13313
-
13314
- // bail early if is ignore
13315
- if( this.get('ignore') ) {
13316
- this.set('ignore', false);
13317
- return;
 
 
 
 
13318
  }
13319
 
13320
- // validate
13321
  var valid = acf.validateForm({
13322
  form: $el,
13323
  event: this.get('originalEvent')
13324
  });
13325
 
13326
- // if not valid, stop event and allow validation to continue
13327
  if( !valid ) {
13328
  e.preventDefault();
13329
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13330
  }
13331
  });
13332
 
2097
  * @return bool
2098
  */
2099
  acf.isGutenberg = function(){
2100
+ return ( window.wp && wp.data && wp.data.select && wp.data.select( 'core/editor' ) );
2101
  };
2102
 
2103
  /**
11043
 
11044
  // Trigger action.
11045
  acf.doAction('append', $postbox);
11046
+ acf.doAction('append_postbox', postbox);
11047
  }
11048
 
11049
  // show postbox
11050
  postbox.showEnable();
11051
 
11052
+ // Do action.
11053
+ acf.doAction('show_postbox', postbox);
11054
+
11055
  // append
11056
  visible.push( result.id );
11057
  });
11060
  acf.getPostboxes().map(function( postbox ){
11061
  if( visible.indexOf( postbox.get('id') ) === -1 ) {
11062
  postbox.hideDisable();
11063
+
11064
+ // Do action.
11065
+ acf.doAction('hide_postbox', postbox);
11066
  }
11067
  });
11068
 
11107
  acf.screen.getPostType = this.getPostType;
11108
  acf.screen.getPostFormat = this.getPostFormat;
11109
  acf.screen.getPostCoreTerms = this.getPostCoreTerms;
11110
+
11111
+ // Add actions.
11112
+ this.addAction( 'append_postbox', acf.screen.refreshAvailableMetaBoxesPerLocation );
11113
  },
11114
 
11115
  onChange: function(){
11186
 
11187
  // return
11188
  return terms;
11189
+ }
11190
  });
11191
+
11192
+ /**
11193
+ * acf.screen.refreshAvailableMetaBoxesPerLocation
11194
+ *
11195
+ * Refreshes the WP data state based on metaboxes found in the DOM.
11196
+ *
11197
+ * @date 6/3/19
11198
+ * @since 5.7.13
11199
+ *
11200
+ * @param void
11201
+ * @return void
11202
+ */
11203
+ acf.screen.refreshAvailableMetaBoxesPerLocation = function() {
11204
+
11205
+ // Extract vars.
11206
+ var select = wp.data.select( 'core/edit-post' );
11207
+ var dispatch = wp.data.dispatch( 'core/edit-post' );
11208
+
11209
+ // Load current metabox locations and data.
11210
+ var data = {};
11211
+ select.getActiveMetaBoxLocations().map(function( location ){
11212
+ data[ location ] = select.getMetaBoxesPerLocation( location );
11213
+ });
11214
+
11215
+ // Generate flat array of existing ids.
11216
+ var ids = [];
11217
+ for( var k in data ) {
11218
+ ids = ids.concat( data[k].map(function(m){ return m.id; }) );
11219
+ }
11220
+
11221
+ // Append ACF metaboxes.
11222
+ acf.getPostboxes().map(function( postbox ){
11223
+
11224
+ // Ignore if already exists in data.
11225
+ if( ids.indexOf( postbox.get('id') ) !== -1 ) {
11226
+ return;
11227
+ }
11228
+
11229
+ // Get metabox location looking at parent form.
11230
+ var location = postbox.$el.closest('form').attr('class').replace('metabox-location-', '');
11231
+
11232
+ // Ensure location exists.
11233
+ data[ location ] = data[ location ] || [];
11234
+
11235
+ // Append.
11236
+ data[ location ].push({
11237
+ id: postbox.get('id'),
11238
+ title: postbox.get('title')
11239
+ });
11240
+ });
11241
+
11242
+ // Update state.
11243
+ dispatch.setAvailableMetaBoxesPerLocation(data);
11244
+ };
11245
 
11246
  })(jQuery);
11247
 
13139
  'click button[type="submit"]': 'onClickSubmit',
13140
  //'click #editor .editor-post-publish-button': 'onClickSubmitGutenberg',
13141
  'click #save-post': 'onClickSave',
13142
+ 'submit form#post': 'onSubmitPost',
13143
  'submit form': 'onSubmit',
13144
  },
13145
 
13302
  this.set('ignore', true);
13303
  },
13304
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13305
  /**
13306
  * onClickSubmitGutenberg
13307
  *
13335
  }
13336
  },
13337
 
13338
+ /**
13339
+ * onSubmitPost
13340
+ *
13341
+ * Callback when the 'post' form is submit.
13342
+ *
13343
+ * @date 5/3/19
13344
+ * @since 5.7.13
13345
+ *
13346
+ * @param object e The event object.
13347
+ * @param jQuery $el The input element.
13348
+ * @return void
13349
+ */
13350
+ onSubmitPost: function( e, $el ) {
13351
+
13352
+ // Check if is preview.
13353
+ if( $('input#wp-preview').val() === 'dopreview' ) {
13354
+
13355
+ // Ignore validation.
13356
+ this.set('ignore', true);
13357
+
13358
+ // Unlock form to fix conflict with core "submit.edit-post" event causing all submit buttons to be disabled.
13359
+ acf.unlockForm( $el )
13360
+ }
13361
+ },
13362
+
13363
  /**
13364
  * onSubmit
13365
  *
13374
  */
13375
  onSubmit: function( e, $el ){
13376
 
13377
+ // Allow form to submit if...
13378
+ if(
13379
+ // Validation has been disabled.
13380
+ !this.active
13381
+
13382
+ // Or this event is to be ignored.
13383
+ || this.get('ignore')
13384
+
13385
+ // Or this event has already been prevented.
13386
+ || e.isDefaultPrevented()
13387
+ ) {
13388
+ // Return early and call reset function.
13389
+ return this.allowSubmit();
13390
  }
13391
 
13392
+ // Validate form.
13393
  var valid = acf.validateForm({
13394
  form: $el,
13395
  event: this.get('originalEvent')
13396
  });
13397
 
13398
+ // If not valid, stop event to prevent form submit.
13399
  if( !valid ) {
13400
  e.preventDefault();
13401
  }
13402
+ },
13403
+
13404
+ /**
13405
+ * allowSubmit
13406
+ *
13407
+ * Resets data during onSubmit when the form is allowed to submit.
13408
+ *
13409
+ * @date 5/3/19
13410
+ * @since 5.7.13
13411
+ *
13412
+ * @param void
13413
+ * @return void
13414
+ */
13415
+ allowSubmit: function(){
13416
+
13417
+ // Reset "ignore" state.
13418
+ this.set('ignore', false);
13419
+
13420
+ // Reset "originalEvent" object.
13421
+ this.set('originalEvent', false)
13422
  }
13423
  });
13424
 
assets/js/acf-input.min.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(r,s){var c={};(window.acf=c).data={},c.get=function(t){return this.data[t]||null},c.has=function(t){return null!==this.get(t)},c.set=function(t,e){return this.data[t]=e,this};var i=0;c.uniqueId=function(t){var e=++i+"";return t?t+e:e},c.uniqueArray=function(t){function e(t,e,i){return i.indexOf(t)===e}return t.filter(e)};var a="";c.uniqid=function(t,e){var i;void 0===t&&(t="");var n=function(t,e){return e<(t=parseInt(t,10).toString(16)).length?t.slice(t.length-e):e>t.length?Array(e-t.length+1).join("0")+t:t};return a||(a=Math.floor(123456789*Math.random())),a++,i=t,i+=n(parseInt((new Date).getTime()/1e3,10),8),i+=n(a,5),e&&(i+=(10*Math.random()).toFixed(8).toString()),i},c.strReplace=function(t,e,i){return i.split(t).join(e)},c.strCamelCase=function(t){return t=(t=t.replace(/[_-]/g," ")).replace(/(?:^\w|\b\w|\s+)/g,function(t,e){return 0==+t?"":0==e?t.toLowerCase():t.toUpperCase()})},c.strPascalCase=function(t){var e=c.strCamelCase(t);return e.charAt(0).toUpperCase()+e.slice(1)},c.strSlugify=function(t){return c.strReplace("_","-",t.toLowerCase())},c.strSanitize=function(t){var e={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","ß":"s","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o"," ":"_","'":"","?":"","/":"","\\":"",".":"",",":"","`":"",">":"","<":"",'"':"","[":"","]":"","|":"","{":"","}":"","(":"",")":""},i=/\W/g,n=function(t){return e[t]!==s?e[t]:t};return t=(t=t.replace(i,n)).toLowerCase()},c.strMatch=function(t,e){for(var i=0,n=Math.min(t.length,e.length),a=0;a<n&&t[a]===e[a];a++)i++;return i},c.decode=function(t){return r("<textarea/>").html(t).text()},c.strEscape=function(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})},c.parseArgs=function(t,e){return"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={}),r.extend({},e,t)},window.acfL10n==s&&(acfL10n={}),c.__=function(t){return acfL10n[t]||t},c._x=function(t,e){return acfL10n[t+"."+e]||acfL10n[t]||t},c._n=function(t,e,i){return 1==i?c.__(t):c.__(e)},c.isArray=function(t){return Array.isArray(t)},c.isObject=function(t){return"object"==typeof t};var o=function(t,e,i){var n=(e=e.replace("[]","[%%index%%]")).match(/([^\[\]])+/g);if(n)for(var a=n.length,r=t,s=0;s<a;s++){var o=String(n[s]);s==a-1?"%%index%%"===o?r.push(i):r[o]=i:("%%index%%"===n[s+1]?c.isArray(r[o])||(r[o]=[]):c.isObject(r[o])||(r[o]={}),r=r[o])}};c.serialize=function(t,e){var i={},n=c.serializeArray(t);e!==s&&(n=n.filter(function(t){return 0===t.name.indexOf(e)}).map(function(t){return t.name=t.name.slice(e.length),t}));for(var a=0;a<n.length;a++)o(i,n[a].name,n[a].value);return i},c.serializeArray=function(t){return t.find("select, textarea, input").serializeArray()},c.serializeForAjax=function(t){var e={},i={},n;return c.serializeArray(t).map(function(t){"[]"===t.name.slice(-2)?(e[t.name]=e[t.name]||[],e[t.name].push(t.value)):e[t.name]=t.value}),e},c.addAction=function(t,e,i,n){return c.hooks.addAction.apply(this,arguments),this},c.removeAction=function(t,e){return c.hooks.removeAction.apply(this,arguments),this};var e={};c.doAction=function(t){return e[t]=1,c.hooks.doAction.apply(this,arguments),e[t]=0,this},c.doingAction=function(t){return 1===e[t]},c.didAction=function(t){return e[t]!==s},c.currentAction=function(){for(var t in e)if(e[t])return t;return!1},c.addFilter=function(t){return c.hooks.addFilter.apply(this,arguments),this},c.removeFilter=function(t){return c.hooks.removeFilter.apply(this,arguments),this},c.applyFilters=function(t){return c.hooks.applyFilters.apply(this,arguments)},c.arrayArgs=function(t){return Array.prototype.slice.call(t)};try{var n=JSON.parse(localStorage.getItem("acf"))||{}}catch(t){var n={}}var l=function(t){return"this."===t.substr(0,5)&&(t=t.substr(5)+"-"+c.get("post_id")),t};c.getPreference=function(t){return t=l(t),n[t]||null},c.setPreference=function(t,e){t=l(t),null===e?delete n[t]:n[t]=e,localStorage.setItem("acf",JSON.stringify(n))},c.removePreference=function(t){c.setPreference(t,null)},c.remove=function(t){t instanceof jQuery&&(t={target:t}),t=c.parseArgs(t,{target:!1,endHeight:0,complete:function(){}}),c.doAction("remove",t.target),t.target.is("tr")?d(t):u(t)};var u=function(t){var e=t.target,i=e.height(),n=e.width(),a=e.css("margin"),r=e.outerHeight(!0),s=e.attr("style")+"";e.wrap('<div class="acf-temp-remove" style="height:'+r+'px"></div>');var o=e.parent();e.css({height:i,width:n,margin:a,position:"absolute"}),setTimeout(function(){o.css({opacity:0,height:t.endHeight})},50),setTimeout(function(){e.attr("style",s),o.remove(),t.complete()},301)},d=function(t){var e=t.target,i=e.height(),n=e.children().length,a=r('<td class="acf-temp-remove" style="padding:0; height:'+i+'px" colspan="'+n+'"></td>');e.addClass("acf-remove-element"),setTimeout(function(){e.html(a)},251),setTimeout(function(){e.removeClass("acf-remove-element"),a.css({height:t.endHeight})},300),setTimeout(function(){e.remove(),t.complete()},451)};c.duplicate=function(t){t instanceof jQuery&&(t={target:t});var i=0;(t=c.parseArgs(t,{target:!1,search:"",replace:"",before:function(t){},after:function(t,e){},append:function(t,e){t.after(e),i=1}})).target=t.target||t.$el;var e=t.target;t.search=t.search||e.attr("data-id"),t.replace=t.replace||c.uniqid(),t.before(e),c.doAction("before_duplicate",e);var n=e.clone();return c.rename({target:n,search:t.search,replace:t.replace}),n.removeClass("acf-clone"),n.find(".ui-sortable").removeClass("ui-sortable"),t.after(e,n),c.doAction("after_duplicate",e,n),t.append(e,n),c.doAction("append",n),n},c.rename=function(t){t instanceof jQuery&&(t={target:t});var e=(t=c.parseArgs(t,{target:!1,destructive:!1,search:"",replace:""})).target,i=t.search||e.attr("data-id"),n=t.replace||c.uniqid("acf"),a=function(t,e){return e.replace(i,n)};if(t.destructive){var r=e.outerHTML();r=c.strReplace(i,n,r),e.replaceWith(r)}else e.attr("data-id",n),e.find('[id*="'+i+'"]').attr("id",a),e.find('[for*="'+i+'"]').attr("for",a),e.find('[name*="'+i+'"]').attr("name",a);return e},c.prepareForAjax=function(t){return t.nonce=c.get("nonce"),t.post_id=c.get("post_id"),c.has("language")&&(t.lang=c.get("language")),t=c.applyFilters("prepare_for_ajax",t)},c.startButtonLoading=function(t){t.prop("disabled",!0),t.after(' <i class="acf-loading"></i>')},c.stopButtonLoading=function(t){t.prop("disabled",!1),t.next(".acf-loading").remove()},c.showLoading=function(t){t.append('<div class="acf-loading-overlay"><i class="acf-loading"></i></div>')},c.hideLoading=function(t){t.children(".acf-loading-overlay").remove()},c.updateUserSetting=function(t,e){var i={action:"acf/ajax/user_setting",name:t,value:e};r.ajax({url:c.get("ajaxurl"),data:c.prepareForAjax(i),type:"post",dataType:"html"})},c.val=function(t,e,i){var n=t.val();return e!==n&&(t.val(e),t.is("select")&&null===t.val()?(t.val(n),!1):(!0!==i&&t.trigger("change"),!0))},c.show=function(t,e){return e&&c.unlock(t,"hidden",e),!c.isLocked(t,"hidden")&&(!!t.hasClass("acf-hidden")&&(t.removeClass("acf-hidden"),!0))},c.hide=function(t,e){return e&&c.lock(t,"hidden",e),!t.hasClass("acf-hidden")&&(t.addClass("acf-hidden"),!0)},c.isHidden=function(t){return t.hasClass("acf-hidden")},c.isVisible=function(t){return!c.isHidden(t)};var f=function(t,e){return!t.hasClass("acf-disabled")&&(e&&c.unlock(t,"disabled",e),!c.isLocked(t,"disabled")&&(!!t.prop("disabled")&&(t.prop("disabled",!1),!0)))};c.enable=function(t,e){if(t.attr("name"))return f(t,e);var i=!1;return t.find("[name]").each(function(){var t;f(r(this),e)&&(i=!0)}),i};var h=function(t,e){return e&&c.lock(t,"disabled",e),!t.prop("disabled")&&(t.prop("disabled",!0),!0)};c.disable=function(t,e){if(t.attr("name"))return h(t,e);var i=!1;return t.find("[name]").each(function(){var t;h(r(this),e)&&(i=!0)}),i},c.isset=function(t){for(var e=1;e<arguments.length;e++){if(!t||!t.hasOwnProperty(arguments[e]))return!1;t=t[arguments[e]]}return!0},c.isget=function(t){for(var e=1;e<arguments.length;e++){if(!t||!t.hasOwnProperty(arguments[e]))return null;t=t[arguments[e]]}return t},c.getFileInputData=function(t,e){var i=t.val();if(!i)return!1;var n={url:i},a=c.isget(t[0],"files",0);if(a)if(n.size=a.size,n.type=a.type,-1<a.type.indexOf("image")){var r=window.URL||window.webkitURL,s=new Image;s.onload=function(){n.width=this.width,n.height=this.height,e(n)},s.src=r.createObjectURL(a)}else e(n);else e(n)},c.isAjaxSuccess=function(t){return t&&t.success},c.getAjaxMessage=function(t){return c.isget(t,"data","message")},c.getAjaxError=function(t){return c.isget(t,"data","error")},c.renderSelect=function(t,e){var i=t.val(),a=[],r=function(t){var n="";return t.map(function(t){var e=t.text||t.label||"",i=t.id||t.value||"";a.push(i),t.children?n+='<optgroup label="'+c.strEscape(e)+'">'+r(t.children)+"</optgroup>":n+='<option value="'+i+'"'+(t.disabled?' disabled="disabled"':"")+">"+e+"</option>"}),n};return t.html(r(e)),-1<a.indexOf(i)&&t.val(i),t.val()};var p=function(t,e){return t.data("acf-lock-"+e)||[]},g=function(t,e,i){t.data("acf-lock-"+e,i)};c.lock=function(t,e,i){var n=p(t,e),a;n.indexOf(i)<0&&(n.push(i),g(t,e,n))},c.unlock=function(t,e,i){var n=p(t,e),a=n.indexOf(i);return-1<a&&(n.splice(a,1),g(t,e,n)),0===n.length},c.isLocked=function(t,e){return 0<p(t,e).length},c.isGutenberg=function(){return window.wp&&wp.blocks},c.objectToArray=function(e){return Object.keys(e).map(function(t){return e[t]})},r.fn.exists=function(){return 0<r(this).length},r.fn.outerHTML=function(){return r(this).get(0).outerHTML},Array.prototype.indexOf||(Array.prototype.indexOf=function(t){return r.inArray(t,this)}),r(document).ready(function(){c.doAction("ready")}),r(window).on("load",function(){c.doAction("load")}),r(window).on("beforeunload",function(){c.doAction("unload")}),r(window).on("resize",function(){c.doAction("resize")}),r(document).on("sortstart",function(t,e){c.doAction("sortstart",e.item,e.placeholder)}),r(document).on("sortstop",function(t,e){c.doAction("sortstop",e.item,e.placeholder)})}(jQuery),function(t,e){"use strict";var i=function(){function t(){return f}function e(t,e,i,n){return"string"==typeof t&&"function"==typeof e&&c("actions",t,e,i=parseInt(i||10,10),n),d}function i(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e&&u("actions",e,t),d}function n(t,e){return"string"==typeof t&&o("actions",t,e),d}function a(t,e,i,n){return"string"==typeof t&&"function"==typeof e&&c("filters",t,e,i=parseInt(i||10,10),n),d}function r(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e?u("filters",e,t):d}function s(t,e){return"string"==typeof t&&o("filters",t,e),d}function o(t,e,i,n){if(f[t][e])if(i){var a=f[t][e],r;if(n)for(r=a.length;r--;){var s=a[r];s.callback===i&&s.context===n&&a.splice(r,1)}else for(r=a.length;r--;)a[r].callback===i&&a.splice(r,1)}else f[t][e]=[]}function c(t,e,i,n,a){var r={callback:i,priority:n,context:a},s=f[t][e];s=s?(s.push(r),l(s)):[r],f[t][e]=s}function l(t){for(var e,i,n,a=1,r=t.length;a<r;a++){for(e=t[a],i=a;(n=t[i-1])&&n.priority>e.priority;)t[i]=t[i-1],--i;t[i]=e}return t}function u(t,e,i){var n=f[t][e];if(!n)return"filters"===t&&i[0];var a=0,r=n.length;if("filters"===t)for(;a<r;a++)i[0]=n[a].callback.apply(n[a].context,i);else for(;a<r;a++)n[a].callback.apply(n[a].context,i);return"filters"!==t||i[0]}var d={removeFilter:s,applyFilters:r,addFilter:a,removeAction:n,doAction:i,addAction:e,storage:t},f={actions:{},filters:{}};return d};acf.hooks=new i}(window),function(r,t){var n=/^(\S+)\s*(.*)$/,e=function(t){var e=this,i;return i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},r.extend(i,e),i.prototype=Object.create(e.prototype),r.extend(i.prototype,t),i.prototype.constructor=i},i=acf.Model=function(){this.cid=acf.uniqueId("acf"),this.data=r.extend(!0,{},this.data),this.setup.apply(this,arguments),this.$el&&!this.$el.data("acf")&&this.$el.data("acf",this);var t=function(){this.initialize(),this.addEvents(),this.addActions(),this.addFilters()};this.wait&&!acf.didAction(this.wait)?this.addAction(this.wait,t):t.apply(this)};r.extend(i.prototype,{id:"",cid:"",$el:null,data:{},busy:!1,changed:!1,events:{},actions:{},filters:{},eventScope:"",wait:!1,priority:10,get:function(t){return this.data[t]},has:function(t){return null!=this.get(t)},set:function(t,e,i){var n=this.get(t);return n==e||(this.data[t]=e,i||(this.changed=!0,this.trigger("changed:"+t,[e,n]),this.trigger("changed",[t,e,n]))),this},inherit:function(t){return t instanceof jQuery&&(t=t.data()),r.extend(this.data,t),this},prop:function(){return this.$el.prop.apply(this.$el,arguments)},setup:function(t){r.extend(this,t)},initialize:function(){},addElements:function(t){if(!(t=t||this.elements||null)||!Object.keys(t).length)return!1;for(var e in t)this.addElement(e,t[e])},addElement:function(t,e){this["$"+t]=this.$(e)},addEvents:function(t){if(!(t=t||this.events||null))return!1;for(var e in t){var i=e.match(n);this.on(i[1],i[2],t[e])}},removeEvents:function(t){if(!(t=t||this.events||null))return!1;for(var e in t){var i=e.match(n);this.off(i[1],i[2],t[e])}},getEventTarget:function(t,e){return t||this.$el||r(document)},validateEvent:function(t){return!this.eventScope||r(t.target).closest(this.eventScope).is(this.$el)},proxyEvent:function(a){return this.proxy(function(t){if(this.validateEvent(t)){var e,i=acf.arrayArgs(arguments).slice(1),n=[t,r(t.currentTarget)].concat(i);a.apply(this,n)}})},on:function(t,e,i,n){var a,r,s,o,c;o=t instanceof jQuery?n?(a=t,r=e,s=i,n):(a=t,r=e,i):i?(r=t,s=e,i):(r=t,e),a=this.getEventTarget(a),"string"==typeof o&&(o=this.proxyEvent(this[o])),r=r+"."+this.cid,c=s?[r,s,o]:[r,o],a.on.apply(a,c)},off:function(t,e,i){var n,a,r,s;t instanceof jQuery?i?(n=t,a=e,r=i):(n=t,a=e):e?(a=t,r=e):a=t,n=this.getEventTarget(n),a=a+"."+this.cid,s=r?[a,r]:[a],n.off.apply(n,s)},trigger:function(t,e,i){var n=this.getEventTarget();return i?n.trigger.apply(n,arguments):n.triggerHandler.apply(n,arguments),this},addActions:function(t){if(!(t=t||this.actions||null))return!1;for(var e in t)this.addAction(e,t[e])},removeActions:function(t){if(!(t=t||this.actions||null))return!1;for(var e in t)this.removeAction(e,t[e])},addAction:function(t,e,i){i=i||this.priority,"string"==typeof e&&(e=this[e]),acf.addAction(t,e,i,this)},removeAction:function(t,e){acf.removeAction(t,this[e])},addFilters:function(t){if(!(t=t||this.filters||null))return!1;for(var e in t)this.addFilter(e,t[e])},addFilter:function(t,e,i){i=i||this.priority,"string"==typeof e&&(e=this[e]),acf.addFilter(t,e,i,this)},removeFilters:function(t){if(!(t=t||this.filters||null))return!1;for(var e in t)this.removeFilter(e,t[e])},removeFilter:function(t,e){acf.removeFilter(t,this[e])},$:function(t){return this.$el.find(t)},remove:function(){this.removeEvents(),this.removeActions(),this.removeFilters(),this.$el.remove()},setTimeout:function(t,e){return setTimeout(this.proxy(t),e)},time:function(){console.time(this.id||this.cid)},timeEnd:function(){console.timeEnd(this.id||this.cid)},show:function(){acf.show(this.$el)},hide:function(){acf.hide(this.$el)},proxy:function(t){return r.proxy(t,this)}}),i.extend=e,acf.models={},acf.getInstance=function(t){return t.data("acf")},acf.getInstances=function(t){var e=[];return t.each(function(){e.push(acf.getInstance(r(this)))}),e}}(jQuery),function(e,t){acf.models.Popup=acf.Model.extend({data:{title:"",content:"",width:0,height:0,loading:!1},events:{'click [data-event="close"]':"onClickClose","click .acf-close-popup":"onClickClose"},setup:function(t){e.extend(this.data,t),this.$el=e(this.tmpl())},initialize:function(){this.render(),this.open()},tmpl:function(){return['<div id="acf-popup">','<div class="acf-popup-box acf-box">','<div class="title"><h3></h3><a href="#" class="acf-icon -cancel grey" data-event="close"></a></div>','<div class="inner"></div>','<div class="loading"><i class="acf-loading"></i></div>',"</div>",'<div class="bg" data-event="close"></div>',"</div>"].join("")},render:function(){var t=this.get("title"),e=this.get("content"),i=this.get("loading"),n=this.get("width"),a=this.get("height");this.title(t),this.content(e),n&&this.$(".acf-popup-box").css("width",n),a&&this.$(".acf-popup-box").css("min-height",a),this.loading(i),acf.doAction("append",this.$el)},update:function(t){this.data=acf.parseArgs(t,this.data),this.render()},title:function(t){this.$(".title:first h3").html(t)},content:function(t){this.$(".inner:first").html(t)},loading:function(t){var e=this.$(".loading:first");t?e.show():e.hide()},open:function(){e("body").append(this.$el)},close:function(){this.remove()},onClickClose:function(t,e){t.preventDefault(),this.close()}}),acf.newPopup=function(t){return new acf.models.Popup(t)}}(jQuery),function(t,e){acf.unload=new acf.Model({wait:"load",active:!0,changed:!1,actions:{validation_failure:"startListening",validation_success:"stopListening"},events:{"change form .acf-field":"startListening","submit form":"stopListening"},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(){this.stopListening()},startListening:function(){!this.changed&&this.active&&(this.changed=!0,t(window).on("beforeunload",this.onUnload))},stopListening:function(){this.changed=!1,t(window).off("beforeunload",this.onUnload)},onUnload:function(){return acf.__("The changes you made will be lost if you navigate away from this page")}})}(jQuery),function(t,e){var i=new acf.Model({events:{"click .acf-panel-title":"onClick"},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},isOpen:function(t){return t.hasClass("-open")},toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},open:function(t){t.addClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-down")},close:function(t){t.removeClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-right")}})}(jQuery),function(e,t){var i=acf.Model.extend({data:{text:"",type:"",timeout:0,dismiss:!0,target:!1,close:function(){}},events:{"click .acf-notice-dismiss":"onClickClose"},tmpl:function(){return'<div class="acf-notice"></div>'},setup:function(t){e.extend(this.data,t),this.$el=e(this.tmpl())},initialize:function(){this.render(),this.show()},render:function(){this.type(this.get("type")),this.html("<p>"+this.get("text")+"</p>"),this.get("dismiss")&&(this.$el.append('<a href="#" class="acf-notice-dismiss acf-icon -cancel small"></a>'),this.$el.addClass("-dismiss"));var t=this.get("timeout");t&&this.away(t)},update:function(t){e.extend(this.data,t),this.initialize(),this.removeEvents(),this.addEvents()},show:function(){var t=this.get("target");t&&t.prepend(this.$el)},hide:function(){this.$el.remove()},away:function(t){this.setTimeout(function(){acf.remove(this.$el)},t)},type:function(t){var e=this.get("type");e&&this.$el.removeClass("-"+e),this.$el.addClass("-"+t),"error"==t&&this.$el.addClass("acf-error-message")},html:function(t){this.$el.html(t)},text:function(t){this.$("p").html(t)},onClickClose:function(t,e){t.preventDefault(),this.get("close").apply(this,arguments),this.remove()}});acf.newNotice=function(t){return"object"!=typeof t&&(t={text:t}),new i(t)};var n=new acf.Model({wait:"prepare",priority:1,initialize:function(){var t=e(".acf-admin-notice");t.length&&e("h1:first").after(t)}})}(jQuery),function(e,t){acf.getPostbox=function(t){return"string"==typeof t&&(t=e("#"+t)),acf.getInstance(t)},acf.getPostboxes=function(){return acf.getInstances(e(".acf-postbox"))},acf.newPostbox=function(t){return new acf.models.Postbox(t)},acf.models.Postbox=acf.Model.extend({data:{id:"",key:"",style:"default",label:"top",edit:""},setup:function(t){t.editLink&&(t.edit=t.editLink),e.extend(this.data,t),this.$el=this.$postbox()},$postbox:function(){return e("#"+this.get("id"))},$hide:function(){return e("#"+this.get("id")+"-hide")},$hideLabel:function(){return this.$hide().parent()},$hndle:function(){return this.$("> .hndle")},$inside:function(){return this.$("> .inside")},isVisible:function(){return this.$el.hasClass("acf-hidden")},initialize:function(){this.$el.addClass("acf-postbox"),this.$el.removeClass("hide-if-js");var t=this.get("style");"default"!==t&&this.$el.addClass(t),this.$inside().addClass("acf-fields").addClass("-"+this.get("label"));var e=this.get("edit");e&&this.$hndle().append('<a href="'+e+'" class="dashicons dashicons-admin-generic acf-hndle-cog acf-js-tooltip" title="'+acf.__("Edit field group")+'"></a>'),this.show()},show:function(){this.$hideLabel().show(),this.$hide().prop("checked",!0),this.$el.show().removeClass("acf-hidden")},enable:function(){acf.enable(this.$el,"postbox")},showEnable:function(){this.show(),this.enable()},hide:function(){this.$hideLabel().hide(),this.$el.hide().addClass("acf-hidden")},disable:function(){acf.disable(this.$el,"postbox")},hideDisable:function(){this.hide(),this.disable()},html:function(t){this.$inside().html(t),acf.doAction("append",this.$el)}})}(jQuery),function(f,e){acf.newTooltip=function(t){return"object"!=typeof t&&(t={text:t}),t.confirmRemove!==e?(t.textConfirm=acf.__("Remove"),t.textCancel=acf.__("Cancel"),new n(t)):t.confirm!==e?new n(t):new i(t)};var i=acf.Model.extend({data:{text:"",timeout:0,target:null},tmpl:function(){return'<div class="acf-tooltip"></div>'},setup:function(t){f.extend(this.data,t),this.$el=f(this.tmpl())},initialize:function(){this.render(),this.show(),this.position();var t=this.get("timeout");t&&setTimeout(f.proxy(this.fade,this),t)},update:function(t){f.extend(this.data,t),this.initialize()},render:function(){this.html(this.get("text"))},show:function(){f("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").css({top:0,left:0});var i=10,n=e.outerWidth(),a=e.outerHeight(),r=e.offset().top,s=e.offset().left,o=t.outerWidth(),c=t.outerHeight(),l=t.offset().top,u=r-c-l,d=s+n/2-o/2;d<10?(t.addClass("right"),d=s+n,u=r+a/2-c/2-l):d+o+10>f(window).width()?(t.addClass("left"),d=s-o,u=r+a/2-c/2-l):u-f(window).scrollTop()<10?(t.addClass("bottom"),u=r+a-l):t.addClass("top"),t.css({top:u,left:d})}}}),n=i.extend({data:{text:"",textConfirm:"",textCancel:"",target:null,targetConfirm:!0,confirm:function(){},cancel:function(){},context:!1},events:{'click [data-event="cancel"]':"onCancel",'click [data-event="confirm"]':"onConfirm"},addEvents:function(){acf.Model.prototype.addEvents.apply(this);var t=f(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=f(document),e=this.get("target");this.off(t,"click"),this.off(e,"click")},render:function(){var t,e,i,n=[this.get("text")||acf.__("Are you sure?"),'<a href="#" data-event="confirm">'+(this.get("textConfirm")||acf.__("Yes"))+"</a>",'<a href="#" data-event="cancel">'+(this.get("textCancel")||acf.__("No"))+"</a>"].join(" ");this.html(n),this.$el.addClass("-confirm")},onCancel:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var i=this.get("cancel"),n=this.get("context")||this;i.apply(n,arguments),this.remove()},onConfirm:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var i=this.get("confirm"),n=this.get("context")||this;i.apply(n,arguments),this.remove()}});acf.models.Tooltip=i,acf.models.TooltipConfirm=n;var t=new acf.Model({tooltip:!1,events:{"mouseenter .acf-js-tooltip":"showTitle","mouseup .acf-js-tooltip":"hideTitle","mouseleave .acf-js-tooltip":"hideTitle"},showTitle:function(t,e){var i=e.attr("title");i&&(e.attr("title",""),this.tooltip?this.tooltip.update({text:i,target:e}):this.tooltip=acf.newTooltip({text:i,target:e}))},hideTitle:function(t,e){this.tooltip.hide(),e.attr("title",this.tooltip.get("text"))}})}(jQuery),function(e,i){var r=[];acf.Field=acf.Model.extend({type:"",eventScope:".acf-field",wait:"ready",setup:function(t){this.$el=t,this.inherit(t),this.inherit(this.$control())},val:function(t){return t!==i?this.setValue(t):this.prop("disabled")?null:this.getValue()},getValue:function(){return this.$input().val()},setValue:function(t){return acf.val(this.$input(),t)},__:function(t){return acf._e(this.type,t)},$control:function(){return!1},$input:function(){return this.$("[name]:first")},$inputWrap:function(){return this.$(".acf-input:first")},$labelWrap:function(){return this.$(".acf-label:first")},getInputName:function(){return this.$input().attr("name")||""},parent:function(){var t=this.parents();return!!t.length&&t[0]},parents:function(){var t=this.$el.parents(".acf-field"),e;return acf.getFields(t)},show:function(t,e){var i=acf.show(this.$el,t);return i&&(this.prop("hidden",!1),acf.doAction("show_field",this,e)),i},hide:function(t,e){var i=acf.hide(this.$el,t);return i&&(this.prop("hidden",!0),acf.doAction("hide_field",this,e)),i},enable:function(t,e){var i=acf.enable(this.$el,t);return i&&(this.prop("disabled",!1),acf.doAction("enable_field",this,e)),i},disable:function(t,e){var i=acf.disable(this.$el,t);return i&&(this.prop("disabled",!0),acf.doAction("disable_field",this,e)),i},showEnable:function(t,e){return this.enable.apply(this,arguments),this.show.apply(this,arguments)},hideDisable:function(t,e){return this.disable.apply(this,arguments),this.hide.apply(this,arguments)},showNotice:function(t){"object"!=typeof t&&(t={text:t}),this.notice&&this.notice.remove(),t.target=this.$inputWrap(),this.notice=acf.newNotice(t)},removeNotice:function(t){this.notice&&(this.notice.away(t||0),this.notice=!1)},showError:function(t){this.$el.addClass("acf-error"),t!==i&&this.showNotice({text:t,type:"error",dismiss:!1}),acf.doAction("invalid_field",this),this.$el.one("focus change","input, select, textarea",e.proxy(this.removeError,this))},removeError:function(){this.$el.removeClass("acf-error"),this.removeNotice(250),acf.doAction("valid_field",this)},trigger:function(t,e,i){return"invalidField"==t&&(i=!0),acf.Model.prototype.trigger.apply(this,[t,e,i])}}),acf.newField=function(t){var e=t.data("type"),i=s(e),n,a=new(acf.models[i]||acf.Field)(t);return acf.doAction("new_field",a),a};var s=function(t){return acf.strPascalCase(t||"")+"Field"};acf.registerFieldType=function(t){var e,i=t.prototype.type,n=s(i);acf.models[n]=t,r.push(i)},acf.getFieldType=function(t){var e=s(t);return acf.models[e]||!1},acf.getFieldTypes=function(n){n=acf.parseArgs(n,{category:""});var a=[];return r.map(function(t){var e=acf.getFieldType(t),i=e.prototype;n.category&&i.category!==n.category||a.push(e)}),a}}(jQuery),function(n,t){acf.findFields=function(t){var e=".acf-field",i=!1;return(t=acf.parseArgs(t,{key:"",name:"",type:"",is:"",parent:!1,sibling:!1,limit:!1,visible:!1,suppressFilters:!1})).suppressFilters||(t=acf.applyFilters("find_fields_args",t)),t.key&&(e+='[data-key="'+t.key+'"]'),t.type&&(e+='[data-type="'+t.type+'"]'),t.name&&(e+='[data-name="'+t.name+'"]'),t.is&&(e+=t.is),t.visible&&(e+=":visible"),i=t.parent?t.parent.find(e):t.sibling?t.sibling.siblings(e):n(e),t.suppressFilters||(i=i.not(".acf-clone .acf-field"),i=acf.applyFilters("find_fields",i)),t.limit&&(i=i.slice(0,t.limit)),i},acf.findField=function(t,e){return acf.findFields({key:t,limit:1,parent:e,suppressFilters:!0})},acf.getField=function(t){t instanceof jQuery||(t=acf.findField(t));var e=t.data("acf");return e||(e=acf.newField(t)),e},acf.getFields=function(t){t instanceof jQuery||(t=acf.findFields(t));var e=[];return t.each(function(){var t=acf.getField(n(this));e.push(t)}),e},acf.findClosestField=function(t){return t.closest(".acf-field")},acf.getClosestField=function(t){var e=acf.findClosestField(t);return this.getField(e)};var e=function(t){var e=t,r=t+"_fields",a=t+"_field",i=function(t){var e,i=acf.arrayArgs(arguments).slice(1),n=acf.getFields({parent:t});if(n.length){var a=[r,n].concat(i);acf.doAction.apply(null,a)}},n=function(t){var e,n=acf.arrayArgs(arguments).slice(1);t.map(function(t,e){var i=[a,t].concat(n);acf.doAction.apply(null,i)})};acf.addAction(e,i),acf.addAction(r,n),s(t)},s=function(e){var r=e+"_field",s=e+"Field",t=function(i){var n=acf.arrayArgs(arguments),a=n.slice(1),t;["type","name","key"].map(function(t){var e="/"+t+"="+i.get(t);n=[r+e,i].concat(a),acf.doAction.apply(null,n)}),-1<o.indexOf(e)&&i.trigger(s,a)};acf.addAction(r,t)},i,a=["valid","invalid","enable","disable","new"],o=["remove","sortstart","sortstop","show","hide","unload","valid","invalid","enable","disable"];["prepare","ready","load","append","remove","sortstart","sortstop","show","hide","unload"].map(e),a.map(s);var r=new acf.Model({id:"fieldsEventManager",events:{'click .acf-field a[href="#"]':"onClick","change .acf-field":"onChange"},onClick:function(t){t.preventDefault()},onChange:function(){n("#_acf_changed").val(1)}})}(jQuery),function(f,h){var p=0,t=acf.Field.extend({type:"accordion",wait:"",$control:function(){return this.$(".acf-fields:first")},initialize:function(){if(!this.$el.is("td")){if(this.get("endpoint"))return this.remove();var t=this.$el,e=this.$labelWrap(),i=this.$inputWrap(),n=this.$control(),a=i.children(".description");if(a.length&&e.append(a),this.$el.is("tr")){var r=this.$el.closest("table"),s=f('<div class="acf-accordion-title"/>'),o=f('<div class="acf-accordion-content"/>'),c=f('<table class="'+r.attr("class")+'"/>'),l=f("<tbody/>");s.append(e.html()),c.append(l),o.append(c),i.append(s),i.append(o),e.remove(),n.remove(),i.attr("colspan",2),e=s,i=o,n=l}t.addClass("acf-accordion"),e.addClass("acf-accordion-title"),i.addClass("acf-accordion-content"),p++,this.get("multi_expand")&&t.attr("multi-expand",1);var u=acf.getPreference("this.accordions")||[];u[p-1]!==h&&this.set("open",u[p-1]),this.get("open")&&(t.addClass("-open"),i.css("display","block")),e.prepend(g.iconHtml({open:this.get("open")}));var d=t.parent();n.addClass(d.hasClass("-left")?"-left":""),n.addClass(d.hasClass("-clear")?"-clear":""),n.append(t.nextUntil(".acf-field-accordion",".acf-field")),n.removeAttr("data-open data-multi_expand data-endpoint")}}});acf.registerFieldType(t);var g=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)
2
- },iconHtml:function(t){var e;return'<i class="acf-accordion-icon dashicons dashicons-'+(t.open?"arrow-down":"arrow-right")+'"></i>'},open:function(t){t.find(".acf-accordion-content:first").slideDown().css("display","block"),t.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!0})),t.addClass("-open"),acf.doAction("show",t),t.attr("multi-expand")||t.siblings(".acf-accordion.-open").each(function(){g.close(f(this))})},close:function(t){t.find(".acf-accordion-content:first").slideUp(),t.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!1})),t.removeClass("-open"),acf.doAction("hide",t)},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},onInvalidField:function(t,e){this.busy||(this.busy=!0,this.setTimeout(function(){this.busy=!1},1e3),this.open(e))},onUnload:function(t){var e=[];f(".acf-accordion").each(function(){var t=f(this).hasClass("-open")?1:0;e.push(t)}),e.length&&acf.setPreference("this.accordions",e)}})}(jQuery),function(t,e){var i=acf.Field.extend({type:"button_group",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-button-group")},$input:function(){return this.$("input:checked")},setValue:function(t){this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")},onClick:function(t,e){var i=e.parent("label"),n=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(i)}(jQuery),function(e,t){var i=acf.Field.extend({type:"checkbox",events:{"change input":"onChange","click .acf-add-checkbox":"onClickAdd","click .acf-checkbox-toggle":"onClickToggle","click .acf-checkbox-custom":"onClickCustom"},$control:function(){return this.$(".acf-checkbox-list")},$toggle:function(){return this.$(".acf-checkbox-toggle")},$input:function(){return this.$('input[type="hidden"]')},$inputs:function(){return this.$('input[type="checkbox"]').not(".acf-checkbox-toggle")},getValue:function(){var t=[];return this.$(":checked").each(function(){t.push(e(this).val())}),!!t.length&&t},onChange:function(t,e){var i=e.prop("checked"),n=this.$toggle(),a;(i?e.parent().addClass("selected"):e.parent().removeClass("selected"),n.length)&&(0==this.$inputs().not(":checked").length?n.prop("checked",!0):n.prop("checked",!1))},onClickAdd:function(t,e){var i='<li><input class="acf-checkbox-custom" type="checkbox" checked="checked" /><input type="text" name="'+this.getInputName()+'[]" /></li>';e.parent("li").before(i)},onClickToggle:function(t,e){var i=e.prop("checked"),n;this.$inputs().prop("checked",i)},onClickCustom:function(t,e){var i=e.prop("checked"),n=e.next('input[type="text"]');i?n.prop("disabled",!1):(n.prop("disabled",!0),""==n.val()&&e.parent("li").remove())}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"color_picker",wait:"load",$control:function(){return this.$(".acf-color-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},setValue:function(t){acf.val(this.$input(),t),this.$inputText().iris("color",t)},initialize:function(){var e=this.$input(),i=this.$inputText(),t=function(t){setTimeout(function(){acf.val(e,i.val())},1)},n={defaultColor:!1,palettes:!0,hide:!0,change:t,clear:t},n=acf.applyFilters("color_picker_args",n,this);i.wpColorPicker(n)}});acf.registerFieldType(i)}(jQuery),function(n,t){var e=acf.Field.extend({type:"date_picker",events:{'blur input[type="text"]':"onBlur"},$control:function(){return this.$(".acf-date-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},initialize:function(){if(this.has("save_format"))return this.initializeCompatibility();var t=this.$input(),e=this.$inputText(),i={dateFormat:this.get("date_format"),altField:t,altFormat:"yymmdd",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")};i=acf.applyFilters("date_picker_args",i,this),acf.newDatePicker(e,i),acf.doAction("date_picker_init",e,i,this)},initializeCompatibility:function(){var t=this.$input(),e=this.$inputText();e.val(t.val());var i={dateFormat:this.get("date_format"),altField:t,altFormat:this.get("save_format"),changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")},n=(i=acf.applyFilters("date_picker_args",i,this)).dateFormat;i.dateFormat=this.get("save_format"),acf.newDatePicker(e,i),e.datepicker("option","dateFormat",n),acf.doAction("date_picker_init",e,i,this)},onBlur:function(){this.$inputText().val()||acf.val(this.$input(),"")}});acf.registerFieldType(e);var i=new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("datePickerL10n");return!!i&&(void 0!==n.datepicker&&(i.isRTL=e,n.datepicker.regional[t]=i,void n.datepicker.setDefaults(i)))}});acf.newDatePicker=function(t,e){if(void 0===n.datepicker)return!1;e=e||{},t.datepicker(e),n("body > #ui-datepicker-div").exists()&&n("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(n,t){var e=acf.models.DatePickerField.extend({type:"date_time_picker",$control:function(){return this.$(".acf-date-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),i={dateFormat:this.get("date_format"),timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altFormat:"yy-mm-dd",altTimeFormat:"HH:mm:ss",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day"),controlType:"select",oneLine:!0};i=acf.applyFilters("date_time_picker_args",i,this),acf.newDateTimePicker(e,i),acf.doAction("date_time_picker_init",e,i,this)}});acf.registerFieldType(e);var i=new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("dateTimePickerL10n");return!!i&&(void 0!==n.timepicker&&(i.isRTL=e,n.timepicker.regional[t]=i,void n.timepicker.setDefaults(i)))}});acf.newDateTimePicker=function(t,e){if(void 0===n.timepicker)return!1;e=e||{},t.datetimepicker(e),n("body > #ui-datepicker-div").exists()&&n("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(s,t){var e=acf.Field.extend({type:"google_map",map:!1,wait:"load",events:{'click a[data-name="clear"]':"onClickClear",'click a[data-name="locate"]':"onClickLocate",'click a[data-name="search"]':"onClickSearch","keydown .search":"onKeydownSearch","keyup .search":"onKeyupSearch","focus .search":"onFocusSearch","blur .search":"onBlurSearch",showField:"onShow"},$control:function(){return this.$(".acf-google-map")},$input:function(t){return this.$('input[data-name="'+(t||"address")+'"]')},$search:function(){return this.$(".search")},$canvas:function(){return this.$(".canvas")},addClass:function(t){this.$control().addClass(t)},removeClass:function(t){this.$control().removeClass(t)},getValue:function(){var t={lat:"",lng:"",address:""};return this.$('input[type="hidden"]').each(function(){t[s(this).data("name")]=s(this).val()}),t.lat&&t.lng||(t=!1),t},setValue:function(t){for(var e in t=acf.parseArgs(t,{lat:"",lng:"",address:""}))acf.val(this.$input(e),t[e]);t.lat&&t.lng||(t=!1),this.renderVal(t);var i=this.newLatLng(t.lat,t.lng);acf.doAction("google_map_change",i,this.map,this)},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),this.center(),this},center:function(){var t=this.map.marker.getPosition(),e=this.get("lat"),i=this.get("lng");t&&(e=t.lat(),i=t.lng());var n=this.newLatLng(e,i);this.map.setCenter(n)},getSearchVal:function(){return this.$search().val()},initialize:function(){o.isReady()?this.initializeMap():o.ready(this.initializeMap,this)},newLatLng:function(t,e){return new google.maps.LatLng(parseFloat(t),parseFloat(e))},initializeMap:function(){var t=this.get("zoom"),e=this.get("lat"),i=this.get("lng"),n={scrollwheel:!1,zoom:parseInt(t),center:this.newLatLng(e,i),mapTypeId:google.maps.MapTypeId.ROADMAP,marker:{draggable:!0,raiseOnDrag:!0},autocomplete:{}};n=acf.applyFilters("google_map_args",n,this);var a=new google.maps.Map(this.$canvas()[0],n),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),o=!1;if(acf.isset(google,"maps","places","Autocomplete")){var c=n.autocomplete||{};c=acf.applyFilters("google_map_autocomplete_args",c,this),(o=new google.maps.places.Autocomplete(this.$search()[0],c)).bindTo("bounds",a)}this.addMapEvents(this,a,s,o),a.acf=this,a.marker=s,a.autocomplete=o,this.map=a,acf.doAction("google_map_init",a,s,this);var l=this.getValue();this.renderVal(l)},addMapEvents:function(n,t,e,i){google.maps.event.addListener(t,"click",function(t){var e=t.latLng.lat(),i=t.latLng.lng();n.searchPosition(e,i)}),google.maps.event.addListener(e,"dragend",function(){var t=this.getPosition(),e=t.lat(),i=t.lng();n.searchPosition(e,i)}),i&&google.maps.event.addListener(i,"place_changed",function(){var t=this.getPlace();t.address=n.getSearchVal(),n.setPlace(t)})},searchPosition:function(n,a){var t=this.newLatLng(n,a),r=this.$control();this.setPosition(n,a),r.addClass("-loading");var e=s.proxy(function(t,e){r.removeClass("-loading");var i="";e!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+e):t[0]?i=t[0].formatted_address:console.log("No results found"),this.val({lat:n,lng:a,address:i})},this);o.geocoder.geocode({latLng:t},e)},setPlace:function(t){if(!t)return this;if(t.name&&!t.geometry)return this.searchAddress(t.name),this;var e=t.geometry.location.lat(),i=t.geometry.location.lng(),n=t.address||t.formatted_address;return this.setValue({lat:e,lng:i,address:n}),this},searchAddress:function(a){var t=a.split(",");if(2==t.length){var e=t[0],i=t[1];if(s.isNumeric(e)&&s.isNumeric(i))return this.searchPosition(e,i)}var r=this.$control();r.addClass("-loading");var n=this.proxy(function(t,e){r.removeClass("-loading");var i="",n="";e!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+e):t[0]?(i=t[0].geometry.location.lat(),n=t[0].geometry.location.lng()):console.log("No results found"),this.val({lat:i,lng:n,address:a})});o.geocoder.geocode({address:a},n)},searchLocation:function(){if(!navigator.geolocation)return alert(acf.__("Sorry, this browser does not support geolocation"));var a=this.$control();a.addClass("-loading");var t=s.proxy(function(t,e){a.removeClass("-loading");var i=t.coords.latitude,n=t.coords.longitude;this.searchPosition(i,n)},this),e=function(t){a.removeClass("-loading")};navigator.geolocation.getCurrentPosition(t,e)},onClickClear:function(t,e){this.val(!1)},onClickLocate:function(t,e){this.searchLocation()},onClickSearch:function(t,e){this.searchAddress(this.$search().val())},onFocusSearch:function(t,e){this.removeClass("-value"),this.onKeyupSearch.apply(this,arguments)},onBlurSearch:function(t,e){this.setTimeout(function(){this.removeClass("-search"),e.val()&&this.addClass("-value")},100)},onKeyupSearch:function(t,e){e.val()?this.addClass("-search"):this.removeClass("-search")},onKeydownSearch:function(t,e){13==t.which&&t.preventDefault()},onMousedown:function(){},onShow:function(){if(!this.map)return!1;this.setTimeout(this.center,10)}});acf.registerFieldType(e);var o=new acf.Model({geocoder:!1,data:{status:!1},getStatus:function(){return this.get("status")},setStatus:function(t){return this.set("status",t)},isReady:function(){if("ready"==this.getStatus())return!0;if("loading"==this.getStatus())return!1;if(acf.isset(window,"google","maps","places"))return this.setStatus("ready"),!0;var t=acf.get("google_map_api");return t&&(this.setStatus("loading"),s.ajax({url:t,dataType:"script",cache:!0,context:this,success:function(){this.setStatus("ready"),this.geocoder=new google.maps.Geocoder,acf.doAction("google_map_api_loaded")}})),!1},ready:function(t,e){acf.addAction("google_map_api_loaded",t,10,e)}})}(jQuery),function(n,i){var t=acf.Field.extend({type:"image",$control:function(){return this.$(".acf-image-uploader")},$input:function(){return this.$('input[type="hidden"]')},events:{'click a[data-name="add"]':"onClickAdd",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove",'change input[type="file"]':"onChange"},initialize:function(){"basic"===this.get("uploader")&&this.$el.closest("form").attr("enctype","multipart/form-data")},validateAttachment:function(t){(t=t||{}).id!==i&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",caption:"",description:"",width:0,height:0});var e=acf.isget(t,"sizes",this.get("preview_size"),"url");return null!==e&&(t.url=e),t},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.url,alt:t.alt,title:t.title});var e=t.id||"";this.val(e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},append:function(t,e){var i=function(t,e){for(var i=acf.getFields({key:t.get("key"),parent:e.$el}),n=0;n<i.length;n++)if(!i[n].val())return i[n];return!1},n=i(this,e);n||(e.$(".acf-button:last").trigger("click"),n=i(this,e)),n&&n.render(t)},selectAttachment:function(){var i=this.parent(),t=i&&"repeater"===i.get("type"),e=acf.newMediaPopup({mode:"select",type:"image",title:acf.__("Select Image"),field:this.get("key"),multiple:t,library:this.get("library"),allowedTypes:this.get("mime_types"),select:n.proxy(function(t,e){0<e?this.append(t,i):this.render(t)},this)})},editAttachment:function(){var t=this.val();if(t)var e=acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:t,field:this.get("key"),select:n.proxy(function(t,e){this.render(t)},this)})},removeAttachment:function(){this.render(!1)},onClickAdd:function(t,e){this.selectAttachment()},onClickEdit:function(t,e){this.editAttachment()},onClickRemove:function(t,e){this.removeAttachment()},onChange:function(t,e){var i=this.$input();acf.getFileInputData(e,function(t){i.val(n.param(t))})}});acf.registerFieldType(t)}(jQuery),function(n,e){var t=acf.models.ImageField.extend({type:"file",$control:function(){return this.$(".acf-file-uploader")},$input:function(){return this.$('input[type="hidden"]')},validateAttachment:function(t){return(t=t||{}).id!==e&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",filename:"",filesizeHumanReadable:"",icon:"/wp-includes/images/media/default.png"})},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.icon,alt:t.alt,title:t.title}),this.$('[data-name="title"]').text(t.title),this.$('[data-name="filename"]').text(t.filename).attr("href",t.url),this.$('[data-name="filesize"]').text(t.filesizeHumanReadable);var e=t.id||"";acf.val(this.$input(),e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},selectAttachment:function(){var i=this.parent(),t=i&&"repeater"===i.get("type"),e=acf.newMediaPopup({mode:"select",title:acf.__("Select File"),field:this.get("key"),multiple:t,library:this.get("library"),allowedTypes:this.get("mime_types"),select:n.proxy(function(t,e){0<e?this.append(t,i):this.render(t)},this)})},editAttachment:function(){var t=this.val();if(!t)return!1;var e=acf.newMediaPopup({mode:"edit",title:acf.__("Edit File"),button:acf.__("Update File"),attachment:t,field:this.get("key"),select:n.proxy(function(t,e){this.render(t)},this)})}});acf.registerFieldType(t)}(jQuery),function(n,t){var e=acf.Field.extend({type:"link",events:{'click a[data-name="add"]':"onClickEdit",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove","change .link-node":"onChange"},$control:function(){return this.$(".acf-link")},$node:function(){return this.$(".link-node")},getValue:function(){var t=this.$node();return!!t.attr("href")&&{title:t.html(),url:t.attr("href"),target:t.attr("target")}},setValue:function(t){t=acf.parseArgs(t,{title:"",url:"",target:""});var e=this.$control(),i=this.$node();e.removeClass("-value -external"),t.url&&e.addClass("-value"),"_blank"===t.target&&e.addClass("-external"),this.$(".link-title").html(t.title),this.$(".link-url").attr("href",t.url).html(t.url),i.html(t.title),i.attr("href",t.url),i.attr("target",t.target),this.$(".input-title").val(t.title),this.$(".input-target").val(t.target),this.$(".input-url").val(t.url).trigger("change")},onClickEdit:function(t,e){acf.wpLink.open(this.$node())},onClickRemove:function(t,e){this.setValue(!1)},onChange:function(t,e){var i=this.getValue();this.setValue(i)}});acf.registerFieldType(e),acf.wpLink=new acf.Model({getNodeValue:function(){var t=this.get("node");return{title:t.html(),url:t.attr("href"),target:t.attr("target")}},setNodeValue:function(t){var e=this.get("node");e.html(t.title),e.attr("href",t.url),e.attr("target",t.target),e.trigger("change")},getInputValue:function(){return{title:n("#wp-link-text").val(),url:n("#wp-link-url").val(),target:n("#wp-link-target").prop("checked")?"_blank":""}},setInputValue:function(t){n("#wp-link-text").val(t.title),n("#wp-link-url").val(t.url),n("#wp-link-target").prop("checked","_blank"===t.target)},open:function(t){this.on("wplink-open","onOpen"),this.on("wplink-close","onClose"),this.set("node",t);var e=n('<textarea id="acf-link-textarea" style="display:none;"></textarea>');n("body").append(e);var i=this.getNodeValue();wpLink.open("acf-link-textarea",i.url,i.title,null)},onOpen:function(){n("#wp-link-wrap").addClass("has-text-field");var t=this.getNodeValue();this.setInputValue(t)},close:function(){wpLink.close()},onClose:function(){if(!this.has("node"))return!1;this.off("wplink-open"),this.off("wplink-close");var t=this.getInputValue();this.setNodeValue(t),n("#acf-link-textarea").remove(),this.set("node",null)}})}(jQuery),function(a,t){var e=acf.Field.extend({type:"oembed",events:{'click [data-name="clear-button"]':"onClickClear","keypress .input-search":"onKeypressSearch","keyup .input-search":"onKeyupSearch","change .input-search":"onChangeSearch"},$control:function(){return this.$(".acf-oembed")},$input:function(){return this.$(".input-value")},$search:function(){return this.$(".input-search")},getValue:function(){return this.$input().val()},getSearchVal:function(){return this.$search().val()},setValue:function(t){t?this.$control().addClass("has-value"):this.$control().removeClass("has-value"),acf.val(this.$input(),t)},showLoading:function(t){acf.showLoading(this.$(".canvas"))},hideLoading:function(){acf.hideLoading(this.$(".canvas"))},maybeSearch:function(){var t=this.val(),e=this.getSearchVal();if(!e)return this.clear();if("http"!=e.substr(0,4)&&(e="http://"+e),e!==t){var i=this.get("timeout");i&&clearTimeout(i);var n=a.proxy(this.search,this,e);this.set("timeout",setTimeout(n,300))}},search:function(t){var e={action:"acf/fields/oembed/search",s:t,field_key:this.get("key")},i;(i=this.get("xhr"))&&i.abort(),this.showLoading();var i=a.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:function(t){t&&t.html||(t={url:!1,html:""}),this.val(t.url),this.$(".canvas-media").html(t.html)},complete:function(){this.hideLoading()}});this.set("xhr",i)},clear:function(){this.val(""),this.$search().val(""),this.$(".canvas-media").html("")},onClickClear:function(t,e){this.clear()},onKeypressSearch:function(t,e){13==t.which&&(t.preventDefault(),this.maybeSearch())},onKeyupSearch:function(t,e){e.val()&&this.maybeSearch()},onChangeSearch:function(t,e){this.maybeSearch()}});acf.registerFieldType(e)}(jQuery),function(t,e){var i=acf.Field.extend({type:"radio",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-radio-list")},$input:function(){return this.$("input:checked")},$inputText:function(){return this.$('input[type="text"]')},getValue:function(){var t=this.$input().val();return"other"===t&&this.get("other_choice")&&(t=this.$inputText().val()),t},onClick:function(t,e){var i=e.parent("label"),n=i.hasClass("selected"),a=e.val();this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"),a=!1),this.get("other_choice")&&("other"===a?this.$inputText().prop("disabled",!1):this.$inputText().prop("disabled",!0))}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"range",events:{'input input[type="range"]':"onChange","change input":"onChange"},$input:function(){return this.$('input[type="range"]')},$inputAlt:function(){return this.$('input[type="number"]')},setValue:function(t){this.busy=!0,acf.val(this.$input(),t),acf.val(this.$inputAlt(),t,!0),this.busy=!1},onChange:function(t,e){this.busy||this.setValue(e.val())}});acf.registerFieldType(i)}(jQuery),function(o,n){var t=acf.Field.extend({type:"relationship",events:{"keypress [data-filter]":"onKeypressFilter","change [data-filter]":"onChangeFilter","keyup [data-filter]":"onChangeFilter","click .choices-list .acf-rel-item":"onClickAdd",'click [data-name="remove_item"]':"onClickRemove",mouseover:"onHover"},$control:function(){return this.$(".acf-relationship")},$list:function(t){return this.$("."+t+"-list")},$listItems:function(t){return this.$list(t).find(".acf-rel-item")},$listItem:function(t,e){return this.$list(t).find('.acf-rel-item[data-id="'+e+'"]')},getValue:function(){var t=[];return this.$listItems("values").each(function(){t.push(o(this).data("id"))}),!!t.length&&t},newChoice:function(t){return["<li>",'<span data-id="'+t.id+'" class="acf-rel-item">'+t.text+"</span>","</li>"].join("")},newValue:function(t){return["<li>",'<input type="hidden" name="'+this.getInputName()+'[]" value="'+t.id+'" />','<span data-id="'+t.id+'" class="acf-rel-item">'+t.text,'<a href="#" class="acf-icon -minus small dark" data-name="remove_item"></a>',"</span>","</li>"].join("")},addSortable:function(t){this.$list("values").sortable({items:"li",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,update:function(){t.$input().trigger("change")}})},initialize:function(){var t=this.proxy(function(t){if(!this.get("loading")&&this.get("more")){var e=this.$list("choices"),i=Math.ceil(e.scrollTop()),n=Math.ceil(e[0].scrollHeight),a=Math.ceil(e.innerHeight()),r=this.get("paged")||1;n<=i+a&&(this.set("paged",r+1),this.fetch())}});this.$list("choices").scrollTop(0).on("scroll",t),this.fetch()},onHover:function(t){o().off(t),this.addSortable(this)},onKeypressFilter:function(t,e){13==t.which&&t.preventDefault()},onChangeFilter:function(t,e){var i=e.val(),n=e.data("filter");this.get(n)!==i&&(this.set(n,i),this.set("paged",1),e.is("select")?this.fetch():this.maybeFetch())},onClickAdd:function(t,e){var i=this.val(),n=parseInt(this.get("max"));if(e.hasClass("disabled"))return!1;if(0<n&&i&&i.length>=n)return this.showNotice({text:acf.__("Maximum values reached ( {max} values )").replace("{max}",n),type:"warning"}),!1;e.addClass("disabled");var a=this.newValue({id:e.data("id"),text:e.html()});this.$list("values").append(a),this.$input().trigger("change")},onClickRemove:function(t,e){var i=e.parent(),n=i.parent(),a=i.data("id");setTimeout(function(){n.remove()},1),this.$listItem("choices",a).removeClass("disabled"),this.$input().trigger("change")},maybeFetch:function(){var t=this.get("timeout");t&&clearTimeout(t),t=this.setTimeout(this.fetch,300),this.set("timeout",t)},getAjaxData:function(){var t=this.$control().data();for(var e in t)t[e]=this.get(e);return t.action="acf/fields/relationship/query",t.field_key=this.get("key"),t},fetch:function(){var t;(t=this.get("xhr"))&&t.abort();var e=this.getAjaxData(),s=this.$list("choices");1==e.paged&&s.html("");var i=o('<li><i class="acf-loading"></i> '+acf.__("Loading")+"</li>");s.append(i),this.set("loading",!0);var n=function(){this.set("loading",!1),i.remove()},a=function(t){if(!t||!t.results||!t.results.length)return this.set("more",!1),void(1==this.get("paged")&&this.$list("choices").append("<li>"+acf.__("No matches found")+"</li>"));this.set("more",t.more);var e=this.walkChoices(t.results),i=o(e),n=this.val();n&&n.length&&n.map(function(t){i.find('.acf-rel-item[data-id="'+t+'"]').addClass("disabled")}),s.append(i);var a=!1,r=!1;s.find(".acf-rel-label").each(function(){var t=o(this),e=t.siblings("ul");if(a&&a.text()==t.text())return r.append(e.children()),void o(this).parent().remove();a=t,r=e})},t=o.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",data:acf.prepareForAjax(e),context:this,success:a,complete:n});this.set("xhr",t)},walkChoices:function(t){var i=function(t){var e="";return o.isArray(t)?t.map(function(t){e+=i(t)}):o.isPlainObject(t)&&(t.children!==n?(e+='<li><span class="acf-rel-label">'+t.text+'</span><ul class="acf-bl">',e+=i(t.children),e+="</ul></li>"):e+='<li><span class="acf-rel-item" data-id="'+t.id+'">'+t.text+"</span></li>"),e};return i(t)}});acf.registerFieldType(t)}(jQuery),function(t,e){var i=acf.Field.extend({type:"select",select2:!1,wait:"load",events:{removeField:"onRemove"},$input:function(){return this.$("select")},initialize:function(){var t=this.$input();if(this.inherit(t),this.get("ui")){var e=this.get("ajax_action");e||(e="acf/fields/"+this.get("type")+"/query"),this.select2=acf.newSelect2(t,{field:this,ajax:this.get("ajax"),multiple:this.get("multiple"),placeholder:this.get("placeholder"),allowNull:this.get("allow_null"),ajaxAction:e})}},onRemove:function(){this.select2&&this.select2.destroy()}});acf.registerFieldType(i)}(jQuery),function(a,t){var e="tab",i=acf.Field.extend({type:"tab",wait:"",tabs:!1,tab:!1,findFields:function(){return this.$el.nextUntil(".acf-field-tab",".acf-field")},getFields:function(){return acf.getFields(this.findFields())},findTabs:function(){return this.$el.prevAll(".acf-tab-wrap:first")},findTab:function(){return this.$(".acf-tab-button")},initialize:function(){if(this.$el.is("td"))return!(this.events={});var t=this.findTabs(),e=this.findTab(),i=acf.parseArgs(e.data(),{endpoint:!1,placement:"",before:this.$el});!t.length||i.endpoint?this.tabs=new n(i):this.tabs=t.data("acf"),this.tab=this.tabs.addTab(e,this)},isActive:function(){return this.tab.isActive()},showFields:function(){this.getFields().map(function(t){t.show(this.cid,e),t.hiddenByTab=!1},this)},hideFields:function(){this.getFields().map(function(t){t.hide(this.cid,e),t.hiddenByTab=this.tab},this)},show:function(t){var e=acf.Field.prototype.show.apply(this,arguments);return e&&(this.tab.show(),this.tabs.refresh()),e},hide:function(t){var e=acf.Field.prototype.hide.apply(this,arguments);return e&&(this.tab.hide(),this.isActive()&&this.tabs.reset()),e},enable:function(t){this.getFields().map(function(t){t.enable(e)})},disable:function(t){this.getFields().map(function(t){t.disable(e)})}});acf.registerFieldType(i);var r=0,n=acf.Model.extend({tabs:[],active:!1,actions:{refresh:"onRefresh"},data:{before:!1,placement:"top",index:0,initialized:!1},setup:function(t){a.extend(this.data,t),this.tabs=[],this.active=!1;var e=this.get("placement"),i=this.get("before"),n=i.parent();"left"==e&&n.hasClass("acf-fields")&&n.addClass("-sidebar"),i.is("tr")?this.$el=a('<tr class="acf-tab-wrap"><td colspan="2"><ul class="acf-hl acf-tab-group"></ul></td></tr>'):this.$el=a('<div class="acf-tab-wrap -'+e+'"><ul class="acf-hl acf-tab-group"></ul></div>'),i.before(this.$el),this.set("index",r,!0),r++},initializeTabs:function(){var t=this.getVisible().shift(),e,i,n=(acf.getPreference("this.tabs")||[])[this.get("index")];this.tabs[n]&&this.tabs[n].isVisible()&&(t=this.tabs[n]),t?this.selectTab(t):this.closeTabs(),this.set("initialized",!0)},getVisible:function(){return this.tabs.filter(function(t){return t.isVisible()})},getActive:function(){return this.active},setActive:function(t){return this.active=t},hasActive:function(){return!1!==this.active},isActive:function(t){var e=this.getActive();return e&&e.cid===t.cid},closeActive:function(){this.hasActive()&&this.closeTab(this.getActive())},openTab:function(t){this.closeActive(),t.open(),this.setActive(t)},closeTab:function(t){t.close(),this.setActive(!1)},closeTabs:function(){this.tabs.map(this.closeTab,this)},selectTab:function(e){this.tabs.map(function(t){e.cid!==t.cid&&this.closeTab(t)},this),this.openTab(e)},addTab:function(t,e){var i=a("<li></li>");i.append(t),this.$("ul").append(i);var n=new s({$el:i,field:e,group:this});return this.tabs.push(n),n},reset:function(){return this.closeActive(),this.refresh()},refresh:function(){if(this.hasActive())return!1;var t=this.getVisible().shift();return t&&this.openTab(t),t},onRefresh:function(){if("left"===this.get("placement")){var t=this.$el.parent(),e=this.$el.children("ul"),i=t.is("td")?"height":"min-height",n=e.position().top+e.outerHeight(!0)-1;t.css(i,n)}}}),s=acf.Model.extend({group:!1,field:!1,events:{"click a":"onClick"},index:function(){return this.$el.index()},isVisible:function(){return acf.isVisible(this.$el)},isActive:function(){return this.$el.hasClass("active")},open:function(){this.$el.addClass("active"),this.field.showFields()},close:function(){this.$el.removeClass("active"),this.field.hideFields()},onClick:function(t,e){t.preventDefault(),this.toggle()},toggle:function(){this.isActive()||this.group.openTab(this)}}),o=new acf.Model({priority:50,actions:{prepare:"render",append:"render",unload:"onUnload",invalid_field:"onInvalidField"},findTabs:function(){return a(".acf-tab-wrap")},getTabs:function(){return acf.getInstances(this.findTabs())},render:function(t){this.getTabs().map(function(t){t.get("initialized")||t.initializeTabs()})},onInvalidField:function(t){this.busy||t.hiddenByTab&&(t.hiddenByTab.toggle(),this.busy=!0,this.setTimeout(function(){this.busy=!1},100))},onUnload:function(){var i=[];this.getTabs().map(function(t){var e=t.hasActive()?t.getActive().index():0;i.push(e)}),i.length&&acf.setPreference("this.tabs",i)}})}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"post_object"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"page_link"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"user"});acf.registerFieldType(i)}(jQuery),function(g,t){var e=acf.Field.extend({type:"taxonomy",data:{ftype:"select"},select2:!1,wait:"load",events:{'click a[data-name="add"]':"onClickAdd",'click input[type="radio"]':"onClickRadio"},$control:function(){return this.$(".acf-taxonomy-field")},$input:function(){return this.getRelatedPrototype().$input.apply(this,arguments)},getRelatedType:function(){var t=this.get("ftype");return"multi_select"==t&&(t="select"),t},getRelatedPrototype:function(){return acf.getFieldType(this.getRelatedType()).prototype},getValue:function(){return this.getRelatedPrototype().getValue.apply(this,arguments)},setValue:function(){return this.getRelatedPrototype().setValue.apply(this,arguments)},initialize:function(){this.getRelatedPrototype().initialize.apply(this,arguments)},onRemove:function(){this.select2&&this.select2.destroy()},onClickAdd:function(t,e){var n=this,i=!1,a=!1,r=!1,s=!1,o=!1,c=!1,l=!1,u=function(){i=acf.newPopup({title:e.attr("title"),loading:!0,width:"300px"});var t={action:"acf/fields/taxonomy/add_term",field_key:n.get("key")};g.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"html",success:d})},d=function(t){i.loading(!1),i.content(t),a=i.$("form"),r=i.$('input[name="term_name"]'),s=i.$('select[name="term_parent"]'),o=i.$(".acf-submit-button"),r.focus(),i.on("submit","form",f)},f=function(t,e){if(t.preventDefault(),t.stopImmediatePropagation(),""===r.val())return r.focus(),!1;acf.startButtonLoading(o);var i={action:"acf/fields/taxonomy/add_term",field_key:n.get("key"),term_name:r.val(),term_parent:s.length?s.val():0};g.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),type:"post",dataType:"json",success:h})},h=function(t){acf.stopButtonLoading(o),
3
- l&&l.remove(),l=acf.isAjaxSuccess(t)?(r.val(""),p(t.data),acf.newNotice({type:"success",text:acf.getAjaxMessage(t),target:a,timeout:2e3,dismiss:!1})):acf.newNotice({type:"error",text:acf.getAjaxError(t),target:a,timeout:2e3,dismiss:!1}),r.focus()},p=function(e){var t=g('<option value="'+e.term_id+'">'+e.term_label+"</option>"),i;e.term_parent?s.children('option[value="'+e.term_parent+'"]').after(t):s.append(t),acf.getFields({type:"taxonomy"}).map(function(t){t.get("taxonomy")==n.get("taxonomy")&&t.appendTerm(e)}),n.selectTerm(e.term_id)};u()},appendTerm:function(t){"select"==this.getRelatedType()?this.appendTermSelect(t):this.appendTermCheckbox(t)},appendTermSelect:function(t){this.select2.addOption({id:t.term_id,text:t.term_label})},appendTermCheckbox:function(t){var e=this.$("[name]:first").attr("name"),i=this.$("ul:first");"checkbox"==this.getRelatedType()&&(e+="[]");var n=g(['<li data-id="'+t.term_id+'">',"<label>",'<input type="'+this.get("ftype")+'" value="'+t.term_id+'" name="'+e+'" /> ',"<span>"+t.term_name+"</span>","</label>","</li>"].join(""));if(t.term_parent){var a=i.find('li[data-id="'+t.term_parent+'"]');(i=a.children("ul")).exists()||(i=g('<ul class="children acf-bl"></ul>'),a.append(i))}i.append(n)},selectTerm:function(t){var e;"select"==this.getRelatedType()?this.select2.selectOption(t):this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")},onClickRadio:function(t,e){var i=e.parent("label"),n=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(e)}(jQuery),function(i,t){var e=acf.models.DatePickerField.extend({type:"time_picker",$control:function(){return this.$(".acf-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),i={timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altTimeFormat:"HH:mm:ss",showButtonPanel:!0,controlType:"select",oneLine:!0,closeText:acf.get("dateTimePickerL10n").selectText,timeOnly:!0,onClose:function(t,e,i){var n=e.dpDiv.find(".ui-datepicker-close");!t&&n.is(":hover")&&i._updateDateTime()}};i=acf.applyFilters("time_picker_args",i,this),acf.newTimePicker(e,i),acf.doAction("time_picker_init",e,i,this)}});acf.registerFieldType(e),acf.newTimePicker=function(t,e){if(void 0===i.timepicker)return!1;e=e||{},t.timepicker(e),i("body > #ui-datepicker-div").exists()&&i("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(t,e){var i=acf.Field.extend({type:"true_false",events:{"change .acf-switch-input":"onChange","focus .acf-switch-input":"onFocus","blur .acf-switch-input":"onBlur","keypress .acf-switch-input":"onKeypress"},$input:function(){return this.$('input[type="checkbox"]')},$switch:function(){return this.$(".acf-switch")},getValue:function(){return this.$input().prop("checked")?1:0},initialize:function(){this.render()},render:function(){var t=this.$switch();if(t.length){var e=t.children(".acf-switch-on"),i=t.children(".acf-switch-off"),n=Math.max(e.width(),i.width());n&&(e.css("min-width",n),i.css("min-width",n))}},switchOn:function(){this.$input().prop("checked",!0),this.$switch().addClass("-on")},switchOff:function(){this.$input().prop("checked",!1),this.$switch().removeClass("-on")},onChange:function(t,e){e.prop("checked")?this.switchOn():this.switchOff()},onFocus:function(t,e){this.$switch().addClass("-focus")},onBlur:function(t,e){this.$switch().removeClass("-focus")},onKeypress:function(t,e){return 37===t.keyCode?this.switchOff():39===t.keyCode?this.switchOn():void 0}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"url",events:{'keyup input[type="url"]':"onkeyup"},$control:function(){return this.$(".acf-input-wrap")},$input:function(){return this.$('input[type="url"]')},initialize:function(){this.render()},isValid:function(){var t=this.val();return!!t&&(-1!==t.indexOf("://")||0===t.indexOf("//"))},render:function(){this.isValid()?this.$control().addClass("-valid"):this.$control().removeClass("-valid")},onkeyup:function(t,e){this.render()}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"wysiwyg",wait:"load",events:{"mousedown .acf-editor-wrap.delay":"onMousedown",sortstartField:"disableEditor",sortstopField:"enableEditor",removeField:"disableEditor"},$control:function(){return this.$(".acf-editor-wrap")},$input:function(){return this.$("textarea")},getMode:function(){return this.$control().hasClass("tmce-active")?"visual":"text"},initialize:function(){this.$control().hasClass("delay")||this.initializeEditor()},initializeEditor:function(){var t=this.$control(),e=this.$input(),i={tinymce:!0,quicktags:!0,toolbar:this.get("toolbar"),mode:this.getMode(),field:this},n=e.attr("id"),a=acf.uniqueId("acf-editor-"),r=e.data();acf.rename({target:t,search:n,replace:a,destructive:!0}),this.set("id",a,!0),acf.tinymce.initialize(a,i),this.$input().data(r)},onMousedown:function(t){t.preventDefault();var e=this.$control();e.removeClass("delay"),e.find(".acf-editor-toolbar").remove(),this.initializeEditor()},enableEditor:function(){"visual"==this.getMode()&&acf.tinymce.enable(this.get("id"))},disableEditor:function(){acf.tinymce.destroy(this.get("id"))}});acf.registerFieldType(i)}(jQuery),function(e,t){var s=[];acf.Condition=acf.Model.extend({type:"",operator:"==",label:"",choiceType:"input",fieldTypes:[],data:{conditions:!1,field:!1,rule:{}},events:{change:"change",keyup:"change",enableField:"change",disableField:"change"},setup:function(t){e.extend(this.data,t)},getEventTarget:function(t,e){return t||this.get("field").$el},change:function(t,e){this.get("conditions").change(t)},match:function(t,e){return!1},calculate:function(){return this.match(this.get("rule"),this.get("field"))},choices:function(t){return'<input type="text" />'}}),acf.newCondition=function(t,e){var i=e.get("field"),n=i.getField(t.field);if(!i||!n)return!1;var a={rule:t,target:i,conditions:e,field:n},r=n.get("type"),s=t.operator,o,c,l;return new(acf.getConditionTypes({fieldType:r,operator:s})[0]||acf.Condition)(a)};var a=function(t){return acf.strPascalCase(t||"")+"Condition"};acf.registerConditionType=function(t){var e,i=t.prototype.type,n=a(i);acf.models[n]=t,s.push(i)},acf.getConditionType=function(t){var e=a(t);return acf.models[e]||!1},acf.registerConditionForFieldType=function(t,e){var i=acf.getConditionType(t);i&&i.prototype.fieldTypes.push(e)},acf.getConditionTypes=function(a){a=acf.parseArgs(a,{fieldType:"",operator:""});var r=[];return s.map(function(t){var e=acf.getConditionType(t),i=e.prototype.fieldTypes,n=e.prototype.operator;a.fieldType&&-1===i.indexOf(a.fieldType)||a.operator&&n!==a.operator||r.push(e)}),r}}(jQuery),function(t,e){var i="conditional_logic",n=new acf.Model({id:"conditionsManager",priority:20,actions:{new_field:"onNewField"},onNewField:function(t){t.has("conditions")&&t.getConditions().render()}}),a=function(t,e){var i=acf.getFields({key:e,sibling:t.$el,suppressFilters:!0});return i.length||(i=acf.getFields({key:e,parent:t.$el.parent(),suppressFilters:!0})),!!i.length&&i[0]};acf.Field.prototype.getField=function(t){var e=a(this,t);if(e)return e;for(var i=this.parents(),n=0;n<i.length;n++)if(e=a(i[n],t))return e;return!1};var r=!(acf.Field.prototype.getConditions=function(){return this.conditions||(this.conditions=new s(this)),this.conditions}),s=acf.Model.extend({id:"Conditions",data:{field:!1,timeStamp:!1,groups:[]},setup:function(t){var e=(this.data.field=t).get("conditions");e instanceof Array?e[0]instanceof Array?e.map(function(t,e){this.addRules(t,e)},this):this.addRules(e):this.addRule(e)},change:function(t){if(this.get("timeStamp")===t.timeStamp)return!1;this.set("timeStamp",t.timeStamp,!0);var e=this.render()},render:function(){return this.calculate()?this.show():this.hide()},show:function(){return this.get("field").showEnable(this.cid,i)},hide:function(){return this.get("field").hideDisable(this.cid,i)},calculate:function(){var i=!1;return this.getGroups().map(function(t){var e;i||t.filter(function(t){return t.calculate()}).length==t.length&&(i=!0)}),i},hasGroups:function(){return null!=this.data.groups},getGroups:function(){return this.data.groups},addGroup:function(){var t=[];return this.data.groups.push(t),t},hasGroup:function(t){return null!=this.data.groups[t]},getGroup:function(t){return this.data.groups[t]},removeGroup:function(t){return this.data.groups[t].delete,this},addRules:function(t,e){t.map(function(t){this.addRule(t,e)},this)},addRule:function(t,e){var i;e=e||0,i=this.hasGroup(e)?this.getGroup(e):this.addGroup();var n=acf.newCondition(t,this);if(!n)return!1;i.push(n)},hasRule:function(){},getRule:function(t,e){return t=t||0,e=e||0,this.data.groups[e][t]},removeRule:function(){}})}(jQuery),function(n,t){var a=acf.__,r=function(t){return t?""+t:""},s=function(t,e){return r(t).toLowerCase()===r(e).toLowerCase()},i=function(t,e){return parseFloat(t)===parseFloat(e)},o=function(t,e){return parseFloat(t)>parseFloat(e)},c=function(t,e){return parseFloat(t)<parseFloat(e)},l=function(t,e){return-1<(e=e.map(function(t){return r(t)})).indexOf(t)},u=function(t,e){return-1<r(t).indexOf(r(e))},d=function(t,e){var i=new RegExp(r(e),"gi");return r(t).match(i)},f=acf.Condition.extend({type:"hasValue",operator:"!=empty",label:a("Has any value"),fieldTypes:["text","textarea","number","range","email","url","password","image","file","wysiwyg","oembed","select","checkbox","radio","button_group","link","post_object","page_link","relationship","taxonomy","user","google_map","date_picker","date_time_picker","time_picker","color_picker"],match:function(t,e){return!!e.val()},choices:function(t){return'<input type="text" disabled="" />'}});acf.registerConditionType(f);var e=f.extend({type:"hasNoValue",operator:"==empty",label:a("Has no value"),match:function(t,e){return!f.prototype.match.apply(this,arguments)}});acf.registerConditionType(e);var h=acf.Condition.extend({type:"equalTo",operator:"==",label:a("Value is equal to"),fieldTypes:["text","textarea","number","range","email","url","password"],match:function(t,e){return n.isNumeric(t.value)?i(t.value,e.val()):s(t.value,e.val())},choices:function(t){return'<input type="text" />'}});acf.registerConditionType(h);var p=h.extend({type:"notEqualTo",operator:"!=",label:a("Value is not equal to"),match:function(t,e){return!h.prototype.match.apply(this,arguments)}});acf.registerConditionType(p);var g=acf.Condition.extend({type:"patternMatch",operator:"==pattern",label:a("Value matches pattern"),fieldTypes:["text","textarea","email","url","password","wysiwyg"],match:function(t,e){return d(e.val(),t.value)},choices:function(t){return'<input type="text" placeholder="[a-z0-9]" />'}});acf.registerConditionType(g);var m=acf.Condition.extend({type:"contains",operator:"==contains",label:a("Value contains"),fieldTypes:["text","textarea","number","email","url","password","wysiwyg","oembed","select"],match:function(t,e){return u(e.val(),t.value)},choices:function(t){return'<input type="text" />'}});acf.registerConditionType(m);var v=h.extend({type:"trueFalseEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:a("Checked")}]}});acf.registerConditionType(v);var y=p.extend({type:"trueFalseNotEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:a("Checked")}]}});acf.registerConditionType(y);var b=acf.Condition.extend({type:"selectEqualTo",operator:"==",label:a("Value is equal to"),fieldTypes:["select","checkbox","radio","button_group"],match:function(t,e){var i=e.val();return i instanceof Array?l(t.value,i):s(t.value,i)},choices:function(t){var e=[],i=t.$setting("choices textarea").val().split("\n");return t.$input("allow_null").prop("checked")&&e.push({id:"",text:a("Null")}),i.map(function(t){(t=t.split(":"))[1]=t[1]||t[0],e.push({id:n.trim(t[0]),text:n.trim(t[1])})}),e}});acf.registerConditionType(b);var x=b.extend({type:"selectNotEqualTo",operator:"!=",label:a("Value is not equal to"),match:function(t,e){return!b.prototype.match.apply(this,arguments)}});acf.registerConditionType(x);var w=acf.Condition.extend({type:"greaterThan",operator:">",label:a("Value is greater than"),fieldTypes:["number","range"],match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),o(i,t.value)},choices:function(t){return'<input type="number" />'}});acf.registerConditionType(w);var _=w.extend({type:"lessThan",operator:"<",label:a("Value is less than"),match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),c(i,t.value)},choices:function(t){return'<input type="number" />'}});acf.registerConditionType(_);var $=w.extend({type:"selectionGreaterThan",label:a("Selection is greater than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType($);var k=_.extend({type:"selectionLessThan",label:a("Selection is less than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(k)}(jQuery),function(s,n){acf.newMediaPopup=function(t){var e=null,t=acf.parseArgs(t,{mode:"select",title:"",button:"",type:"",field:!1,allowedTypes:"",library:"all",multiple:!1,attachment:0,autoOpen:!0,open:function(){},select:function(){},close:function(){}});return e="edit"==t.mode?new acf.models.EditMediaPopup(t):new acf.models.SelectMediaPopup(t),t.autoOpen&&setTimeout(function(){e.open()},1),acf.doAction("new_media_popup",e),e};var e=function(){var t=acf.get("post_id");return s.isNumeric(t)?t:0};acf.getMimeTypes=function(){return this.get("mimeTypes")},acf.getMimeType=function(t){var e=acf.getMimeTypes();if(e[t]!==n)return e[t];for(var i in e)if(-1!==i.indexOf(t))return e[i];return!1};var i=acf.Model.extend({id:"MediaPopup",data:{},defaults:{},frame:!1,setup:function(t){s.extend(this.data,t)},initialize:function(){var t=this.getFrameOptions();this.addFrameStates(t);var e=wp.media(t);(e.acf=this).addFrameEvents(e,t),this.frame=e},open:function(){this.frame.open()},close:function(){this.frame.close()},remove:function(){this.frame.detach(),this.frame.remove()},getFrameOptions:function(){var t={title:this.get("title"),multiple:this.get("multiple"),library:{},states:[]};return this.get("type")&&(t.library.type=this.get("type")),"uploadedTo"===this.get("library")&&(t.library.uploadedTo=e()),this.get("attachment")&&(t.library.post__in=[this.get("attachment")]),this.get("button")&&(t.button={text:this.get("button")}),t},addFrameStates:function(t){var e=wp.media.query(t.library);this.get("field")&&acf.isset(e,"mirroring","args")&&(e.mirroring.args._acfuploader=this.get("field")),t.states.push(new wp.media.controller.Library({library:e,multiple:this.get("multiple"),title:this.get("title"),priority:20,filterable:"all",editable:!0,allowLocalEdits:!0})),acf.isset(wp,"media","controller","EditImage")&&t.states.push(new wp.media.controller.EditImage)},addFrameEvents:function(i,t){i.on("open",function(){this.$el.closest(".media-modal").addClass("acf-media-modal -"+this.acf.get("mode"))},i),i.on("content:render:edit-image",function(){var t=this.state().get("image"),e=new wp.media.view.EditImage({model:t,controller:this}).render();this.content.set(e),e.loadEditor()},i),i.on("select",function(){var t=i.state().get("selection");t&&t.each(function(t,e){i.acf.get("select").apply(i.acf,[t,e])})}),i.on("close",function(){setTimeout(function(){i.acf.get("close").apply(i.acf),i.acf.remove()},1)})}});acf.models.SelectMediaPopup=i.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Select","verb")),i.prototype.setup.apply(this,arguments)},addFrameEvents:function(e,t){acf.isset(_wpPluploadSettings,"defaults","multipart_params")&&(_wpPluploadSettings.defaults.multipart_params._acfuploader=this.get("field"),e.on("open",function(){delete _wpPluploadSettings.defaults.multipart_params._acfuploader})),e.on("content:activate:browse",function(){var t=!1;try{t=e.content.get().toolbar}catch(t){return void console.log(t)}e.acf.customizeFilters.apply(e.acf,[t])}),i.prototype.addFrameEvents.apply(this,arguments)},customizeFilters:function(t){var n=t.get("filters"),e;("image"==this.get("type")&&(n.filters.all.text=acf.__("All images"),delete n.filters.audio,delete n.filters.video,delete n.filters.image,s.each(n.filters,function(t,e){e.props.type=e.props.type||"image"})),this.get("allowedTypes"))&&this.get("allowedTypes").split(" ").join("").split(".").join("").split(",").map(function(t){var e=acf.getMimeType(t);if(e){var i={text:e,props:{status:null,type:e,uploadedTo:null,orderby:"date",order:"DESC"},priority:20};n.filters[e]=i}});if("uploadedTo"===this.get("library")){var i=this.frame.options.library.uploadedTo;delete n.filters.unattached,delete n.filters.uploaded,s.each(n.filters,function(t,e){e.text+=" ("+acf.__("Uploaded to this post")+")",e.props.uploadedTo=i})}var a=this.get("field"),r;s.each(n.filters,function(t,e){e.props._acfuploader=a}),t.get("search").model.attributes._acfuploader=a,n.renderFilters&&n.renderFilters()}}),acf.models.EditMediaPopup=i.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Update","verb")),i.prototype.setup.apply(this,arguments)},addFrameEvents:function(n,t){n.on("open",function(){this.$el.closest(".media-modal").addClass("acf-expanded"),"browse"!=this.content.mode()&&this.content.mode("browse");var t,e=this.state().get("selection"),i=wp.media.attachment(n.acf.get("attachment"));e.add(i)},n),i.prototype.addFrameEvents.apply(this,arguments)}});var t=new acf.Model({id:"customizePrototypes",wait:"ready",initialize:function(){if(acf.isset(window,"wp","media","view")){var t=e();t&&acf.isset(wp,"media","view","settings","post")&&(wp.media.view.settings.post.id=t),this.customizeAttachmentsRouter(),this.customizeAttachmentFilters(),this.customizeAttachmentCompat(),this.customizeAttachmentLibrary()}},customizeAttachmentsRouter:function(){if(acf.isset(wp,"media","view","Router")){var t=wp.media.view.Router;wp.media.view.Router=t.extend({addExpand:function(){var t=s(['<a href="#" class="acf-expand-details">','<span class="is-closed"><span class="acf-icon -left small grey"></span>'+acf.__("Expand Details")+"</span>",'<span class="is-open"><span class="acf-icon -right small grey"></span>'+acf.__("Collapse Details")+"</span>","</a>"].join(""));t.on("click",function(t){t.preventDefault();var e=s(this).closest(".media-modal");e.hasClass("acf-expanded")?e.removeClass("acf-expanded"):e.addClass("acf-expanded")}),this.$el.append(t)},initialize:function(){return t.prototype.initialize.apply(this,arguments),this.addExpand(),this}})}},customizeAttachmentFilters:function(){var t;acf.isset(wp,"media","view","AttachmentFilters","All")&&(wp.media.view.AttachmentFilters.All.prototype.renderFilters=function(){this.$el.html(_.chain(this.filters).map(function(t,e){return{el:s("<option></option>").val(e).html(t.text)[0],priority:t.priority||50}},this).sortBy("priority").pluck("el").value())})},customizeAttachmentCompat:function(){if(acf.isset(wp,"media","view","AttachmentCompat")){var t=wp.media.view.AttachmentCompat,e=!1;wp.media.view.AttachmentCompat=t.extend({render:function(){return this.rendered?this:(t.prototype.render.apply(this,arguments),this.$("#acf-form-data").length&&(clearTimeout(e),e=setTimeout(s.proxy(function(){this.rendered=!0,acf.doAction("append",this.$el)},this),50)),this)},save:function(t){var e={};t&&t.preventDefault(),e=acf.serializeForAjax(this.$el),this.controller.trigger("attachment:compat:waiting",["waiting"]),this.model.saveCompat(e).always(_.bind(this.postSave,this))}})}},customizeAttachmentLibrary:function(){if(acf.isset(wp,"media","view","Attachment","Library")){var l=wp.media.view.Attachment.Library;wp.media.view.Attachment.Library=l.extend({render:function(){var t=acf.isget(this,"controller","acf"),e=acf.isget(this,"model","attributes");if(t&&e){e.acf_errors&&this.$el.addClass("acf-disabled");var i=t.get("selected");i&&-1<i.indexOf(e.id)&&this.$el.addClass("acf-selected")}return l.prototype.render.apply(this,arguments)},toggleSelection:function(t){var e=this.collection,i=this.options.selection,n=this.model,a=i.single(),r=this.controller,s=acf.isget(this,"model","attributes","acf_errors"),o=r.$el.find(".media-frame-content .media-sidebar");if(o.children(".acf-selection-error").remove(),o.children().removeClass("acf-hidden"),r&&s){var c=acf.isget(this,"model","attributes","filename");return o.children().addClass("acf-hidden"),o.prepend(['<div class="acf-selection-error">','<span class="selection-error-label">'+acf.__("Restricted")+"</span>",'<span class="selection-error-filename">'+c+"</span>",'<span class="selection-error-message">'+s+"</span>","</div>"].join("")),i.reset(),void i.single(n)}return l.prototype.toggleSelection.apply(this,arguments)}})}}})}(jQuery),function(h,n){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"},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=h("#page_template");return t.length?t.val():null},getPageParent:function(t,e){var e;return(e=h("#parent_id")).length?e.val():null},getPageType:function(t,e){return this.getPageParent()?"child":"parent"},getPostType:function(){return h("#post_type").val()},getPostFormat:function(t,e){var e;if((e=h("#post-formats-select input:checked")).length){var i=e.val();return"0"==i?"standard":i}return null},getPostCoreTerms:function(){var t={},e=acf.serialize(h(".categorydiv, .tagsdiv"));for(var i in e.tax_input&&(t=e.tax_input),e.post_category&&(t.category=e.post_category),t)acf.isArray(t[i])||(t[i]=t[i].split(", "));return t},getPostTerms:function(){var n=this.getPostCoreTerms();for(var t in acf.getFields({type:"taxonomy"}).map(function(t){if(t.get("save")){var e=t.val(),i=t.get("taxonomy");e&&(n[i]=n[i]||[],e=acf.isArray(e)?e:[e],n[i]=n[i].concat(e))}}),null!==(productType=this.getProductType())&&(n.product_type=[productType]),n)n[t]=acf.uniqueArray(n[t]);return n},getProductType:function(){var t=h("#product-type");return t.length?t.val():null},check:function(){if("post"===acf.get("screen")){this.xhr&&this.xhr.abort();var e=acf.parseArgs(this.data,{action:"acf/ajax/check_screen",screen:acf.get("screen"),exists:[]});this.isPost()&&(e.post_id=acf.get("post_id")),null!==(postType=this.getPostType())&&(e.post_type=postType),null!==(pageTemplate=this.getPageTemplate())&&(e.page_template=pageTemplate),null!==(pageParent=this.getPageParent())&&(e.page_parent=pageParent),null!==(pageType=this.getPageType())&&(e.page_type=pageType),null!==(postFormat=this.getPostFormat())&&(e.post_format=postFormat),null!==(postTerms=this.getPostTerms())&&(e.post_terms=postTerms),acf.getPostboxes().map(function(t){e.exists.push(t.get("key"))}),e=acf.applyFilters("check_screen_args",e);var t=function(t){acf.isAjaxSuccess(t)&&("post"==acf.get("screen")?this.renderPostScreen(t.data):"user"==acf.get("screen")&&this.renderUserScreen(t.data)),acf.doAction("check_screen_complete",t.data,e)};this.xhr=h.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:t})}},onChange:function(t,e){this.setTimeout(this.check,1)},renderPostScreen:function(l){var u=[],d=function(t,e){var i=h._data(t[0]).events;for(var n in i)for(var a=0;a<i[n].length;a++)e.on(n,i[n][a].handler)},f=function(t,e){var i=e.indexOf(t);if(-1==i)return!1;for(var n=i-1;0<=n;n--)if(h("#"+e[n]).length)return h("#"+e[n]).after(h("#"+t));for(var n=i+1;n<e.length;n++)if(h("#"+e[n]).length)return h("#"+e[n]).before(h("#"+t));return!1};l.results.map(function(e,t){var i=acf.getPostbox(e.id);if(!i){var n=h(['<div id="'+e.id+'" class="postbox">','<button type="button" class="handlediv" aria-expanded="false">','<span class="screen-reader-text">Toggle panel: '+e.title+"</span>",'<span class="toggle-indicator" aria-hidden="true"></span>',"</button>",'<h2 class="hndle ui-sortable-handle">',"<span>"+e.title+"</span>","</h2>",'<div class="inside">',e.html,"</div>","</div>"].join(""));if(h("#adv-settings").length){var a=h("#adv-settings .metabox-prefs"),r=h(['<label for="'+e.id+'-hide">','<input class="hide-postbox-tog" name="'+e.id+'-hide" type="checkbox" id="'+e.id+'-hide" value="'+e.id+'" checked="checked">'," "+e.title,"</label>"].join(""));d(a.find("input").first(),r.find("input")),a.append(r)}"side"===e.position?h("#"+e.position+"-sortables").append(n):h("#"+e.position+"-sortables").prepend(n);var s=[];if(l.results.map(function(t){e.position===t.position&&h("#"+e.position+"-sortables #"+t.id).length&&s.push(t.id)}),f(e.id,s),l.sorted)for(var o in l.sorted){var s=l.sorted[o].split(",");if(f(e.id,s))break}var c=h("#submitdiv");h("#submitdiv").length&&(d(c.children(".handlediv"),n.children(".handlediv")),d(c.children(".hndle"),n.children(".hndle"))),i=acf.newPostbox(e),acf.doAction("append",n)}i.showEnable(),u.push(e.id)}),acf.getPostboxes().map(function(t){-1===u.indexOf(t.get("id"))&&t.hideDisable()}),h("#acf-style").html(l.style)},renderUserScreen:function(t){}});var t=new acf.Model({wait:"load",initialize:function(){acf.isGutenberg()&&(wp.data.subscribe(this.proxy(this.onChange)),acf.screen.getPageTemplate=this.getPageTemplate,acf.screen.getPageParent=this.getPageParent,acf.screen.getPostType=this.getPostType,acf.screen.getPostFormat=this.getPostFormat,acf.screen.getPostCoreTerms=this.getPostCoreTerms)},onChange:function(){var e=wp.data.select("core/editor").getPostEdits(),i=["template","parent","format"],t;(wp.data.select("core").getTaxonomies()||[]).map(function(t){i.push(t.rest_base)}),(i=i.filter(this.proxy(function(t){return e[t]!==n&&e[t]!==this.get(t)}))).length&&this.triggerChange(e)},triggerChange:function(t){t!==n&&(this.data=t),acf.screen.check()},getPageTemplate:function(){return wp.data.select("core/editor").getEditedPostAttribute("template")},getPageParent:function(t,e){return wp.data.select("core/editor").getEditedPostAttribute("parent")},getPostType:function(){return wp.data.select("core/editor").getEditedPostAttribute("type")},getPostFormat:function(t,e){return wp.data.select("core/editor").getEditedPostAttribute("format")},getPostCoreTerms:function(){var i={},t;return(wp.data.select("core").getTaxonomies()||[]).map(function(t){var e=wp.data.select("core/editor").getEditedPostAttribute(t.rest_base);e&&(i[t.slug]=e)}),i}})}(jQuery),function(l,t){function a(){return acf.isset(window,"jQuery","fn","select2","amd")?4:!!acf.isset(window,"Select2")&&3}acf.newSelect2=function(t,e){if(e=acf.parseArgs(e,{allowNull:!1,placeholder:"",multiple:!1,field:!1,ajax:!1,ajaxAction:"",ajaxData:function(t){return t},ajaxResults:function(t){return t}}),4==a())var i=new r(t,e);else var i=new s(t,e);return acf.doAction("new_select2",i),i};var n=acf.Model.extend({setup:function(t,e){l.extend(this.data,e),this.$el=t},initialize:function(){},selectOption:function(t){var e=this.getOption(t);e.prop("selected")||e.prop("selected",!0).trigger("change")},unselectOption:function(t){var e=this.getOption(t);e.prop("selected")&&e.prop("selected",!1).trigger("change")},getOption:function(t){return this.$('option[value="'+t+'"]')},addOption:function(t){t=acf.parseArgs(t,{id:"",text:"",selected:!1});var e=this.getOption(t.id);return e.length||((e=l("<option></option>")).html(t.text),e.attr("value",t.id),e.prop("selected",t.selected),this.$el.append(e)),e},getValue:function(){var e=[],t=this.$el.find("option:selected");return t.exists()&&(t=t.sort(function(t,e){return+t.getAttribute("data-i")-+e.getAttribute("data-i")})).each(function(){var t=l(this);e.push({$el:t,id:t.attr("value"),text:t.text()})}),e},mergeOptions:function(){},getChoices:function(){var i=function(t){var e=[];return t.children().each(function(){var t=l(this);t.is("optgroup")?e.push({text:t.attr("label"),children:i(t)}):e.push({id:t.attr("value"),text:t.text()})}),e};return i(this.$el)},decodeChoices:function(t){var e=function(t){return t.map(function(t){return t.text=acf.decode(t.text),t.children&&(t.children=e(t.children)),t}),t};return e(t)},getAjaxData:function(t){var e={action:this.get("ajaxAction"),s:t.term||"",paged:t.page||1},i=this.get("field");i&&(e.field_key=i.get("key"));var n=this.get("ajaxData");return n&&(e=n.apply(this,[e,t])),e=acf.applyFilters("select2_ajax_data",e,this.data,this.$el,i||!1,this),acf.prepareForAjax(e)},getAjaxResults:function(t,e){(t=acf.parseArgs(t,{results:!1,more:!1})).results&&(t.results=this.decodeChoices(t.results));var i=this.get("ajaxResults");return i&&(t=i.apply(this,[t,e])),t=acf.applyFilters("select2_ajax_results",t,e,this)},processAjaxResults:function(t,e){var t;return(t=this.getAjaxResults(t,e)).more&&(t.pagination={more:!0}),setTimeout(l.proxy(this.mergeOptions,this),1),t},destroy:function(){this.$el.data("select2")&&this.$el.select2("destroy"),this.$el.siblings(".select2-container").remove()}}),r=n.extend({initialize:function(){var e=this.$el,t={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),multiple:this.get("multiple"),data:[],escapeMarkup:function(t){return t}};t.multiple&&this.getValue().map(function(t){t.$el.detach().appendTo(e)}),e.removeData("ajax"),e.removeAttr("data-ajax"),this.get("ajax")&&(t.ajax={url:acf.get("ajaxurl"),delay:250,dataType:"json",type:"post",cache:!1,data:l.proxy(this.getAjaxData,this),processResults:l.proxy(this.processAjaxResults,this)});var i=this.get("field");t=acf.applyFilters("select2_args",t,e,this.data,i||!1,this),e.select2(t);var n=e.next(".select2-container");if(t.multiple){var a=n.find("ul");a.sortable({stop:function(t){a.find(".select2-selection__choice").each(function(){var t;l(l(this).data("data").element).detach().appendTo(e)}),e.trigger("change")}}),e.on("select2:select",this.proxy(function(t){this.getOption(t.params.data.id).detach().appendTo(this.$el)}))}n.addClass("-acf"),acf.doAction("select2_init",e,t,this.data,i||!1,this)},mergeOptions:function(){var i=!1,n=!1;l('.select2-results__option[role="group"]').each(function(){var t=l(this).children("ul"),e=l(this).children("strong");if(n&&n.text()===e.text())return i.append(t.children()),void l(this).remove();i=t,n=e})}}),s=n.extend({initialize:function(){var n=this.$el,i=this.getValue(),a=this.get("multiple"),t={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),separator:"||",multiple:this.get("multiple"),data:this.getChoices(),escapeMarkup:function(t){return t},dropdownCss:{"z-index":"999999999"},initSelection:function(t,e){e(a?i:i.shift())}},e=n.siblings("input");e.length||(e=l('<input type="hidden" />'),n.before(e)),inputValue=i.map(function(t){return t.id}).join("||"),e.val(inputValue),t.multiple&&i.map(function(t){t.$el.detach().appendTo(n)}),t.allowClear&&(t.data=t.data.filter(function(t){return""!==t.id})),n.removeData("ajax"),n.removeAttr("data-ajax"),this.get("ajax")&&(t.ajax={url:acf.get("ajaxurl"),quietMillis:250,dataType:"json",type:"post",cache:!1,data:l.proxy(this.getAjaxData,this),results:l.proxy(this.processAjaxResults,this)});var r=this.get("field");t=acf.applyFilters("select2_args",t,n,this.data,r||!1,this),e.select2(t);var s=e.select2("container"),o=l.proxy(this.getOption,this);if(t.multiple){var c=s.find("ul");c.sortable({stop:function(){c.find(".select2-search-choice").each(function(){var t=l(this).data("select2Data"),e;o(t.id).detach().appendTo(n)}),n.trigger("change")}})}e.on("select2-selecting",function(t){var e=t.choice,i=o(e.id)
4
- ;i.length||(i=l('<option value="'+e.id+'">'+e.text+"</option>")),i.detach().appendTo(n)}),s.addClass("-acf"),acf.doAction("select2_init",n,t,this.data,r||!1,this),e.on("change",function(){var t=e.val();t.indexOf("||")&&(t=t.split("||")),n.val(t).trigger("change")}),n.hide()},mergeOptions:function(){var i=!1,n=!1;l("#select2-drop .select2-result-with-children").each(function(){var t=l(this).children("ul"),e=l(this).children(".select2-result-label");if(n&&n.text()===e.text())return n.append(t.children()),void l(this).remove();i=t,n=e})},getAjaxData:function(t,e){var i={term:t,page:e};return n.prototype.getAjaxData.apply(this,[i])}}),e=new acf.Model({priority:5,wait:"prepare",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("select2L10n"),n=a();return!!i&&(0!==t.indexOf("en")&&void(4==n?this.addTranslations4():3==n&&this.addTranslations3()))},addTranslations4:function(){var i=acf.get("select2L10n"),t=acf.get("locale");t=t.replace("_","-");var e={errorLoading:function(){return i.load_fail},inputTooLong:function(t){var e=t.input.length-t.maximum;return 1<e?i.input_too_long_n.replace("%d",e):i.input_too_long_1},inputTooShort:function(t){var e=t.minimum-t.input.length;return 1<e?i.input_too_short_n.replace("%d",e):i.input_too_short_1},loadingMore:function(){return i.load_more},maximumSelected:function(t){var e=t.maximum;return 1<e?i.selection_too_long_n.replace("%d",e):i.selection_too_long_1},noResults:function(){return i.matches_0},searching:function(){return i.searching}};jQuery.fn.select2.amd.define("select2/i18n/"+t,[],function(){return e})},addTranslations3:function(){var n=acf.get("select2L10n"),t=acf.get("locale");t=t.replace("_","-");var e={formatMatches:function(t){return 1<t?n.matches_n.replace("%d",t):n.matches_1},formatNoMatches:function(){return n.matches_0},formatAjaxError:function(){return n.load_fail},formatInputTooShort:function(t,e){var i=e-t.length;return 1<i?n.input_too_short_n.replace("%d",i):n.input_too_short_1},formatInputTooLong:function(t,e){var i=t.length-e;return 1<i?n.input_too_long_n.replace("%d",i):n.input_too_long_1},formatSelectionTooBig:function(t){return 1<t?n.selection_too_long_n.replace("%d",t):n.selection_too_long_1},formatLoadMore:function(){return n.load_more},formatSearching:function(){return n.searching}};l.fn.select2.locales=l.fn.select2.locales||{},l.fn.select2.locales[t]=e,l.extend(l.fn.select2.defaults,e)}})}(jQuery),function(f,t){acf.tinymce={defaults:function(){return"undefined"!=typeof tinyMCEPreInit&&{tinymce:tinyMCEPreInit.mceInit.acf_content,quicktags:tinyMCEPreInit.qtInit.acf_content};var t},initialize:function(t,e){(e=acf.parseArgs(e,{tinymce:!0,quicktags:!0,toolbar:"full",mode:"visual",field:!1})).tinymce&&this.initializeTinymce(t,e),e.quicktags&&this.initializeQuicktags(t,e)},initializeTinymce:function(t,e){var i=f("#"+t),n=this.defaults(),a=acf.get("toolbars"),r=e.field||!1,s=r.$el||!1;if("undefined"==typeof tinymce)return!1;if(!n)return!1;if(tinymce.get(t))return this.enable(t);var o=f.extend({},n.tinymce,e.tinymce);o.id=t,o.selector="#"+t;var c=e.toolbar;if(c&&a&&a[c])for(var l=1;l<=4;l++)o["toolbar"+l]=a[c][l]||"";if(o.setup=function(e){e.on("change",function(t){e.save(),i.trigger("change")}),f(e.getWin()).on("unload",function(){acf.tinymce.remove(t)})},o.wp_autoresize_on=!1,o=acf.applyFilters("wysiwyg_tinymce_settings",o,t,r),tinyMCEPreInit.mceInit[t]=o,"visual"==e.mode){var u=tinymce.init(o),d=tinymce.get(t);if(!d)return!1;d.acf=e.field,acf.doAction("wysiwyg_tinymce_init",d,d.id,o,r)}},initializeQuicktags:function(t,e){var i=this.defaults();if("undefined"==typeof quicktags)return!1;if(!i)return!1;var n=f.extend({},i.quicktags,e.quicktags);n.id=t;var a=e.field||!1,r=a.$el||!1;n=acf.applyFilters("wysiwyg_quicktags_settings",n,n.id,a),tinyMCEPreInit.qtInit[t]=n;var s=quicktags(n);if(!s)return!1;this.buildQuicktags(s),acf.doAction("wysiwyg_quicktags_init",s,s.id,n,a)},buildQuicktags:function(t){var e,i,n,a,r,t,s,o,c,l,u=",strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,";for(o in e=t.canvas,i=t.name,n=t.settings,a={},c=r="",l=t.id,n.buttons&&(c=","+n.buttons+","),edButtons)edButtons[o]&&(s=edButtons[o].id,c&&-1!==u.indexOf(","+s+",")&&-1===c.indexOf(","+s+",")||edButtons[o].instance&&edButtons[o].instance!==l||(a[s]=edButtons[o],edButtons[o].html&&(r+=edButtons[o].html(i+"_"))));c&&-1!==c.indexOf(",dfw,")&&(a.dfw=new QTags.DFWButton,r+=a.dfw.html(i+"_")),"rtl"===document.getElementsByTagName("html")[0].dir&&(a.textdirection=new QTags.TextDirectionButton,r+=a.textdirection.html(i+"_")),t.toolbar.innerHTML=r,t.theButtons=a,"undefined"!=typeof jQuery&&jQuery(document).triggerHandler("quicktags-init",[t])},disable:function(t){this.destroyTinymce(t)},remove:function(t){this.destroyTinymce(t)},destroy:function(t){this.destroyTinymce(t)},destroyTinymce:function(t){if("undefined"==typeof tinymce)return!1;var e=tinymce.get(t);return!!e&&(e.save(),e.destroy(),!0)},enable:function(t){this.enableTinymce(t)},enableTinymce:function(t){return"undefined"!=typeof switchEditors&&(void 0!==tinyMCEPreInit.mceInit[t]&&(switchEditors.go(t,"tmce"),!0))}};var e=new acf.Model({priority:5,actions:{prepare:"onPrepare",ready:"onReady"},onPrepare:function(){var t=f("#acf-hidden-wp-editor");t.exists()&&t.appendTo("body")},onReady:function(){acf.isset(window,"tinymce","on")&&tinymce.on("AddEditor",function(t){var e=t.editor;"acf"===e.id.substr(0,3)&&(e=tinymce.editors.content||e,tinymce.activeEditor=e,wpActiveEditor=e.id)})}})}(jQuery),function(s,t){var i=acf.Model.extend({id:"Validator",data:{errors:[],notice:null,status:""},events:{"changed:status":"onChangeStatus"},addErrors:function(t){t.map(this.addError,this)},addError:function(t){this.data.errors.push(t)},hasErrors:function(){return this.data.errors.length},clearErrors:function(){return this.data.errors=[]},getErrors:function(){return this.data.errors},getFieldErrors:function(){var i=[],n=[];return this.getErrors().map(function(t){if(t.input){var e=n.indexOf(t.input);-1<e?i[e]=t:(i.push(t),n.push(t.input))}}),i},getGlobalErrors:function(){return this.getErrors().filter(function(t){return!t.input})},showErrors:function(){if(this.hasErrors()){var t=this.getFieldErrors(),e=this.getGlobalErrors(),n=0,a=!1;t.map(function(t){var e=this.$('[name="'+t.input+'"]').first();if(e.length||(e=this.$('[name^="'+t.input+'"]').first()),e.length){n++;var i=acf.getClosestField(e);i.showError(t.message),a||(a=i.$el)}},this);var i=acf.__("Validation failed");if(e.map(function(t){i+=". "+t.message}),1==n?i+=". "+acf.__("1 field requires attention"):1<n&&(i+=". "+acf.__("%d fields require attention").replace("%d",n)),this.has("notice"))this.get("notice").update({type:"error",text:i});else{var r=acf.newNotice({type:"error",text:i,target:this.$el});this.set("notice",r)}a||(a=this.get("notice").$el),setTimeout(function(){s("html, body").animate({scrollTop:a.offset().top-s(window).height()/2},500)},10)}},onChangeStatus:function(t,e,i,n){this.$el.removeClass("is-"+n).addClass("is-"+i)},validate:function(t){if(t=acf.parseArgs(t,{event:!1,reset:!1,loading:function(){},complete:function(){},failure:function(){},success:function(t){t.submit()}}),"valid"==this.get("status"))return!0;if("validating"==this.get("status"))return!1;if(!this.$(".acf-field").length)return!0;if(t.event){var e=s.Event(null,t.event);t.success=function(){acf.enableSubmit(s(e.target)).trigger(e)}}acf.doAction("validation_begin",this.$el),acf.lockForm(this.$el),t.loading(this.$el,this),this.set("status","validating");var i=function(t){if(acf.isAjaxSuccess(t)){var e=acf.applyFilters("validation_complete",t.data,this.$el,this);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),this.showErrors(),t.failure(this.$el,this)):(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,this),acf.doAction("submit",this.$el),t.success(this.$el,this),acf.lockForm(this.$el),t.reset&&this.reset()),t.complete(this.$el,this),this.clearErrors()},a=acf.serialize(this.$el);return a.action="acf/validate_save_post",s.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",context:this,success:i,complete:n}),!1},setup:function(t){this.$el=t},reset:function(){this.set("errors",[]),this.set("notice",null),this.set("status",""),acf.unlockForm(this.$el)}}),n=function(t){var e=t.data("acf");return e||(e=new i(t)),e};acf.validateForm=function(t){return n(t.form).validate(t)},acf.enableSubmit=function(t){return t.removeClass("disabled")},acf.disableSubmit=function(t){return t.addClass("disabled")},acf.showSpinner=function(t){return t.addClass("is-active"),t.css("display","inline-block"),t},acf.hideSpinner=function(t){return t.removeClass("is-active"),t.css("display","none"),t},acf.lockForm=function(t){var e=a(t),i=e.find('.button, [type="submit"]'),n=e.find(".spinner, .acf-spinner");return acf.hideSpinner(n),acf.disableSubmit(i),acf.showSpinner(n.last()),t},acf.unlockForm=function(t){var e=a(t),i=e.find('.button, [type="submit"]'),n=e.find(".spinner, .acf-spinner");return acf.enableSubmit(i),acf.hideSpinner(n),t};var a=function(t){var e,e,e,e;return(e=t.find("#submitdiv")).length?e:(e=t.find("#submitpost")).length?e:(e=t.find("p.submit").last()).length?e:(e=t.find(".acf-form-submit")).length?e:t};acf.validation=new acf.Model({id:"validation",active:!0,wait:"prepare",actions:{ready:"addInputEvents",append:"addInputEvents"},events:{'click input[type="submit"]':"onClickSubmit",'click button[type="submit"]':"onClickSubmit","click #save-post":"onClickSave","mousedown #post-preview":"onClickPreview","submit form":"onSubmit"},initialize:function(){acf.get("validation")||(this.active=!1,this.actions={},this.events={})},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(t){n(t).reset()},addInputEvents:function(t){var e=s(".acf-field [name]",t);e.length&&this.on(e,"invalid","onInvalid")},onInvalid:function(t,e){t.preventDefault();var i=e.closest("form");i.length&&(n(i).addError({input:e.attr("name"),message:t.target.validationMessage}),i.submit())},onClickSubmit:function(t,e){this.set("originalEvent",t)},onClickSave:function(t,e){this.set("ignore",!0)},onClickPreview:function(t,e){this.set("ignore",!0),s("form#post").off("submit.edit-post")},onClickSubmitGutenberg:function(t,e){var i;acf.validateForm({form:s("#editor"),event:t,reset:!0,failure:function(t,e){var i=e.get("notice").$el;i.appendTo(".components-notice-list"),i.find(".acf-notice-dismiss").removeClass("small")}})||(t.preventDefault(),t.stopImmediatePropagation())},onSubmit:function(t,e){var i;this.active&&(this.get("ignore")?this.set("ignore",!1):acf.validateForm({form:e,event:this.get("originalEvent")})||t.preventDefault())}})}(jQuery),function(l,t){var e=new acf.Model({priority:90,timeout:0,actions:{new_field:"refresh",show_field:"refresh",hide_field:"refresh",remove_field:"refresh"},refresh:function(){clearTimeout(this.timeout),this.timeout=setTimeout(function(){acf.doAction("refresh")},0)}}),i=new acf.Model({actions:{sortstart:"onSortstart"},onSortstart:function(t,e){t.is("tr")&&(e.html('<td style="padding:0;" colspan="'+e.children().length+'"></td>'),t.addClass("acf-sortable-tr-helper"),t.children().each(function(){l(this).width(l(this).width())}),e.height(t.height()+"px"),t.removeClass("acf-sortable-tr-helper"))}}),n=new acf.Model({actions:{after_duplicate:"onAfterDuplicate"},onAfterDuplicate:function(t,e){var i=[];t.find("select").each(function(t){i.push(l(this).val())}),e.find("select").each(function(t){l(this).val(i[t])})}}),a=new acf.Model({id:"tableHelper",priority:20,actions:{refresh:"renderTables"},renderTables:function(t){var e=this;l(".acf-table:visible").each(function(){e.renderTable(l(this))})},renderTable:function(t){var e=t.find("> thead > tr:visible > th[data-key]"),r=t.find("> tbody > tr:visible > td[data-key]");if(!e.length||!r.length)return!1;e.each(function(t){var e=l(this),i=e.data("key"),n=r.filter('[data-key="'+i+'"]'),a=n.filter(".acf-hidden");n.removeClass("acf-empty"),n.length===a.length?acf.hide(e):(acf.show(e),a.addClass("acf-empty"))}),e.css("width","auto"),e=e.not(".acf-hidden");var i=100,n=e.length,a;e.filter("[data-width]").each(function(){var t=l(this).data("width");l(this).css("width",t+"%"),i-=t});var s=e.not("[data-width]");if(s.length){var o=i/s.length;s.css("width",o+"%"),i=0}0<i&&e.last().css("width","auto"),r.filter(".-collapsed-target").each(function(){var t=l(this);t.parent().hasClass("-collapsed")?t.attr("colspan",e.length):t.removeAttr("colspan")})}}),r=new acf.Model({id:"fieldsHelper",priority:30,actions:{refresh:"renderGroups"},renderGroups:function(){var t=this;l(".acf-fields:visible").each(function(){t.renderGroup(l(this))})},renderGroup:function(t){var s=0,o=0,c=l(),e=t.children(".acf-field[data-width]:visible");return!!e.length&&(t.hasClass("-left")?(e.removeAttr("data-width"),e.css("width","auto"),!1):(e.removeClass("-r0 -c0").css({"min-height":0}),e.each(function(t){var e=l(this),i=e.position(),n=Math.ceil(i.top),a=Math.ceil(i.left);c.length&&s<n&&(c.css({"min-height":o+"px"}),i=e.position(),n=Math.ceil(i.top),a=Math.ceil(i.left),o=s=0,c=l()),acf.get("rtl")&&(a=Math.ceil(e.parent().width()-(i.left+e.outerWidth()))),0==n?e.addClass("-r0"):0==a&&e.addClass("-c0");var r=Math.ceil(e.outerHeight())+1;o=Math.max(o,r),s=Math.max(s,n),c=c.add(e)}),void(c.length&&c.css({"min-height":o+"px"}))))}})}(jQuery),function(o,a){acf.newCompatibility=function(t,e){return(e=e||{}).__proto__=t.__proto__,t.__proto__=e,t.compatibility=e},acf.getCompatibility=function(t){return t.compatibility||null};var c=acf.newCompatibility(acf,{l10n:{},o:{},fields:{},update:acf.set,add_action:acf.addAction,remove_action:acf.removeAction,do_action:acf.doAction,add_filter:acf.addFilter,remove_filter:acf.removeFilter,apply_filters:acf.applyFilters,parse_args:acf.parseArgs,disable_el:acf.disable,disable_form:acf.disable,enable_el:acf.enable,enable_form:acf.enable,update_user_setting:acf.updateUserSetting,prepare_for_ajax:acf.prepareForAjax,is_ajax_success:acf.isAjaxSuccess,remove_el:acf.remove,remove_tr:acf.remove,str_replace:acf.strReplace,render_select:acf.renderSelect,get_uniqid:acf.uniqid,serialize_form:acf.serialize,esc_html:acf.strEscape,str_sanitize:acf.strSanitize});c._e=function(t,e){t=t||"";var i=(e=e||"")?t+"."+e:t,n={"image.select":"Select Image","image.edit":"Edit Image","image.update":"Update Image"};if(n[i])return acf.__(n[i]);var a=this.l10n[t]||"";return e&&(a=a[e]||""),a},c.get_selector=function(t){var e=".acf-field";if(!t)return e;if(o.isPlainObject(t)){if(o.isEmptyObject(t))return e;for(var i in t){t=t[i];break}}return e+="-"+t,e=acf.strReplace("_","-",e),e=acf.strReplace("field-field-","field-",e)},c.get_fields=function(t,e,i){var n={is:t||"",parent:e||!1,suppressFilters:i||!1};return n.is&&(n.is=this.get_selector(n.is)),acf.findFields(n)},c.get_field=function(t,e){var i=this.get_fields.apply(this,arguments);return!!i.length&&i.first()},c.get_closest_field=function(t,e){return t.closest(this.get_selector(e))},c.get_field_wrap=function(t){return t.closest(this.get_selector())},c.get_field_key=function(t){return t.data("key")},c.get_field_type=function(t){return t.data("type")},c.get_data=function(t,e){return acf.parseArgs(t.data(),e)},c.maybe_get=function(t,e,i){i===a&&(i=null),keys=String(e).split(".");for(var n=0;n<keys.length;n++){if(!t.hasOwnProperty(keys[n]))return i;t=t[keys[n]]}return t};var e=function(t){return t instanceof acf.Field?t.$el:t},i=function(t){return acf.arrayArgs(t).map(e)},l=function(e){return function(){if(arguments.length)var t=i(arguments);else var t=[o(document)];return e.apply(this,t)}};c.add_action=function(t,e,i,n){var a=t.split(" "),r=a.length;if(1<r){for(var s=0;s<r;s++)t=a[s],c.add_action.apply(this,arguments);return this}var e=l(e);return acf.addAction.apply(this,arguments)},c.add_filter=function(t,e,i,n){var e=l(e);return acf.addFilter.apply(this,arguments)},c.model={actions:{},filters:{},events:{},extend:function(t){var i=o.extend({},this,t);return o.each(i.actions,function(t,e){i._add_action(t,e)}),o.each(i.filters,function(t,e){i._add_filter(t,e)}),o.each(i.events,function(t,e){i._add_event(t,e)}),i},_add_action:function(t,e){var i=this,n=t.split(" "),t=n[0]||"",a=n[1]||10;acf.add_action(t,i[e],a,i)},_add_filter:function(t,e){var i=this,n=t.split(" "),t=n[0]||"",a=n[1]||10;acf.add_filter(t,i[e],a,i)},_add_event:function(t,e){var i=this,n=t.indexOf(" "),a=0<n?t.substr(0,n):t,r=0<n?t.substr(n+1):"",s=function(t){t.$el=o(this),acf.field_group&&(t.$field=t.$el.closest(".acf-field-object")),"function"==typeof i.event&&(t=i.event(t)),i[e].apply(i,arguments)};r?o(document).on(a,r,s):o(document).on(a,s)},get:function(t,e){return e=e||null,void 0!==this[t]&&(e=this[t]),e},set:function(t,e){return this[t]=e,"function"==typeof this["_set_"+t]&&this["_set_"+t].apply(this),this}},c.field=acf.model.extend({type:"",o:{},$field:null,_add_action:function(t,e){var i=this;t=t+"_field/type="+i.type,acf.add_action(t,function(t){i.set("$field",t),i[e].apply(i,arguments)})},_add_filter:function(t,e){var i=this;t=t+"_field/type="+i.type,acf.add_filter(t,function(t){i.set("$field",t),i[e].apply(i,arguments)})},_add_event:function(t,n){var a=this,e=t.substr(0,t.indexOf(" ")),i=t.substr(t.indexOf(" ")+1),r=acf.get_selector(a.type);o(document).on(e,r+" "+i,function(t){var e=o(this),i=acf.get_closest_field(e,a.type);i.length&&(i.is(a.$field)||a.set("$field",i),t.$el=e,t.$field=i,a[n].apply(a,[t]))})},_set_$field:function(){"function"==typeof this.focus&&this.focus()},doFocus:function(t){return this.set("$field",t)}});var t=acf.newCompatibility(acf.validation,{remove_error:function(t){acf.getField(t).removeError()},add_warning:function(t,e){acf.getField(t).showNotice({text:e,type:"warning",timeout:1e3})},fetch:acf.validateForm,enableSubmit:acf.enableSubmit,disableSubmit:acf.disableSubmit,showSpinner:acf.showSpinner,hideSpinner:acf.hideSpinner,unlockForm:acf.unlockForm,lockForm:acf.lockForm});c.tooltip={tooltip:function(t,e){var i;return acf.newTooltip({text:t,target:e}).$el},temp:function(t,e){var i=acf.newTooltip({text:t,target:e,timeout:250})},confirm:function(t,e,i,n,a){var r=acf.newTooltip({confirm:!0,text:i,target:t,confirm:function(){e(!0)},cancel:function(){e(!1)}})},confirm_remove:function(t,e){var i=acf.newTooltip({confirmRemove:!0,target:t,confirm:function(){e(!0)},cancel:function(){e(!1)}})}},c.media=new acf.Model({activeFrame:!1,actions:{new_media_popup:"onNewMediaPopup"},frame:function(){return this.activeFrame},onNewMediaPopup:function(t){this.activeFrame=t.frame},popup:function(t){var e;return t.mime_types&&(t.allowedTypes=t.mime_types),t.id&&(t.attachment=t.id),acf.newMediaPopup(t).frame}}),c.select2={init:function(t,e,i){return e.allow_null&&(e.allowNull=e.allow_null),e.ajax_action&&(e.ajaxAction=e.ajax_action),i&&(e.field=acf.getField(i)),acf.newSelect2(t,e)},destroy:function(t){return acf.getInstance(t).destroy()}},c.postbox={render:function(t){return t.edit_url&&(t.editLink=t.edit_url),t.edit_title&&(t.editTitle=t.edit_title),acf.newPostbox(t)}},acf.newCompatibility(acf.screen,{update:function(){return this.set.apply(this,arguments)},fetch:acf.screen.check}),c.ajax=acf.screen}(jQuery);
1
+ !function(r,s){var c={};(window.acf=c).data={},c.get=function(t){return this.data[t]||null},c.has=function(t){return null!==this.get(t)},c.set=function(t,e){return this.data[t]=e,this};var i=0;c.uniqueId=function(t){var e=++i+"";return t?t+e:e},c.uniqueArray=function(t){function e(t,e,i){return i.indexOf(t)===e}return t.filter(e)};var a="";c.uniqid=function(t,e){var i;void 0===t&&(t="");var n=function(t,e){return e<(t=parseInt(t,10).toString(16)).length?t.slice(t.length-e):e>t.length?Array(e-t.length+1).join("0")+t:t};return a||(a=Math.floor(123456789*Math.random())),a++,i=t,i+=n(parseInt((new Date).getTime()/1e3,10),8),i+=n(a,5),e&&(i+=(10*Math.random()).toFixed(8).toString()),i},c.strReplace=function(t,e,i){return i.split(t).join(e)},c.strCamelCase=function(t){return t=(t=t.replace(/[_-]/g," ")).replace(/(?:^\w|\b\w|\s+)/g,function(t,e){return 0==+t?"":0==e?t.toLowerCase():t.toUpperCase()})},c.strPascalCase=function(t){var e=c.strCamelCase(t);return e.charAt(0).toUpperCase()+e.slice(1)},c.strSlugify=function(t){return c.strReplace("_","-",t.toLowerCase())},c.strSanitize=function(t){var e={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","ß":"s","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o"," ":"_","'":"","?":"","/":"","\\":"",".":"",",":"","`":"",">":"","<":"",'"':"","[":"","]":"","|":"","{":"","}":"","(":"",")":""},i=/\W/g,n=function(t){return e[t]!==s?e[t]:t};return t=(t=t.replace(i,n)).toLowerCase()},c.strMatch=function(t,e){for(var i=0,n=Math.min(t.length,e.length),a=0;a<n&&t[a]===e[a];a++)i++;return i},c.decode=function(t){return r("<textarea/>").html(t).text()},c.strEscape=function(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})},c.parseArgs=function(t,e){return"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={}),r.extend({},e,t)},window.acfL10n==s&&(acfL10n={}),c.__=function(t){return acfL10n[t]||t},c._x=function(t,e){return acfL10n[t+"."+e]||acfL10n[t]||t},c._n=function(t,e,i){return 1==i?c.__(t):c.__(e)},c.isArray=function(t){return Array.isArray(t)},c.isObject=function(t){return"object"==typeof t};var o=function(t,e,i){var n=(e=e.replace("[]","[%%index%%]")).match(/([^\[\]])+/g);if(n)for(var a=n.length,r=t,s=0;s<a;s++){var o=String(n[s]);s==a-1?"%%index%%"===o?r.push(i):r[o]=i:("%%index%%"===n[s+1]?c.isArray(r[o])||(r[o]=[]):c.isObject(r[o])||(r[o]={}),r=r[o])}};c.serialize=function(t,e){var i={},n=c.serializeArray(t);e!==s&&(n=n.filter(function(t){return 0===t.name.indexOf(e)}).map(function(t){return t.name=t.name.slice(e.length),t}));for(var a=0;a<n.length;a++)o(i,n[a].name,n[a].value);return i},c.serializeArray=function(t){return t.find("select, textarea, input").serializeArray()},c.serializeForAjax=function(t){var e={},i={},n;return c.serializeArray(t).map(function(t){"[]"===t.name.slice(-2)?(e[t.name]=e[t.name]||[],e[t.name].push(t.value)):e[t.name]=t.value}),e},c.addAction=function(t,e,i,n){return c.hooks.addAction.apply(this,arguments),this},c.removeAction=function(t,e){return c.hooks.removeAction.apply(this,arguments),this};var e={};c.doAction=function(t){return e[t]=1,c.hooks.doAction.apply(this,arguments),e[t]=0,this},c.doingAction=function(t){return 1===e[t]},c.didAction=function(t){return e[t]!==s},c.currentAction=function(){for(var t in e)if(e[t])return t;return!1},c.addFilter=function(t){return c.hooks.addFilter.apply(this,arguments),this},c.removeFilter=function(t){return c.hooks.removeFilter.apply(this,arguments),this},c.applyFilters=function(t){return c.hooks.applyFilters.apply(this,arguments)},c.arrayArgs=function(t){return Array.prototype.slice.call(t)};try{var n=JSON.parse(localStorage.getItem("acf"))||{}}catch(t){var n={}}var l=function(t){return"this."===t.substr(0,5)&&(t=t.substr(5)+"-"+c.get("post_id")),t};c.getPreference=function(t){return t=l(t),n[t]||null},c.setPreference=function(t,e){t=l(t),null===e?delete n[t]:n[t]=e,localStorage.setItem("acf",JSON.stringify(n))},c.removePreference=function(t){c.setPreference(t,null)},c.remove=function(t){t instanceof jQuery&&(t={target:t}),t=c.parseArgs(t,{target:!1,endHeight:0,complete:function(){}}),c.doAction("remove",t.target),t.target.is("tr")?d(t):u(t)};var u=function(t){var e=t.target,i=e.height(),n=e.width(),a=e.css("margin"),r=e.outerHeight(!0),s=e.attr("style")+"";e.wrap('<div class="acf-temp-remove" style="height:'+r+'px"></div>');var o=e.parent();e.css({height:i,width:n,margin:a,position:"absolute"}),setTimeout(function(){o.css({opacity:0,height:t.endHeight})},50),setTimeout(function(){e.attr("style",s),o.remove(),t.complete()},301)},d=function(t){var e=t.target,i=e.height(),n=e.children().length,a=r('<td class="acf-temp-remove" style="padding:0; height:'+i+'px" colspan="'+n+'"></td>');e.addClass("acf-remove-element"),setTimeout(function(){e.html(a)},251),setTimeout(function(){e.removeClass("acf-remove-element"),a.css({height:t.endHeight})},300),setTimeout(function(){e.remove(),t.complete()},451)};c.duplicate=function(t){t instanceof jQuery&&(t={target:t});var i=0;(t=c.parseArgs(t,{target:!1,search:"",replace:"",before:function(t){},after:function(t,e){},append:function(t,e){t.after(e),i=1}})).target=t.target||t.$el;var e=t.target;t.search=t.search||e.attr("data-id"),t.replace=t.replace||c.uniqid(),t.before(e),c.doAction("before_duplicate",e);var n=e.clone();return c.rename({target:n,search:t.search,replace:t.replace}),n.removeClass("acf-clone"),n.find(".ui-sortable").removeClass("ui-sortable"),t.after(e,n),c.doAction("after_duplicate",e,n),t.append(e,n),c.doAction("append",n),n},c.rename=function(t){t instanceof jQuery&&(t={target:t});var e=(t=c.parseArgs(t,{target:!1,destructive:!1,search:"",replace:""})).target,i=t.search||e.attr("data-id"),n=t.replace||c.uniqid("acf"),a=function(t,e){return e.replace(i,n)};if(t.destructive){var r=e.outerHTML();r=c.strReplace(i,n,r),e.replaceWith(r)}else e.attr("data-id",n),e.find('[id*="'+i+'"]').attr("id",a),e.find('[for*="'+i+'"]').attr("for",a),e.find('[name*="'+i+'"]').attr("name",a);return e},c.prepareForAjax=function(t){return t.nonce=c.get("nonce"),t.post_id=c.get("post_id"),c.has("language")&&(t.lang=c.get("language")),t=c.applyFilters("prepare_for_ajax",t)},c.startButtonLoading=function(t){t.prop("disabled",!0),t.after(' <i class="acf-loading"></i>')},c.stopButtonLoading=function(t){t.prop("disabled",!1),t.next(".acf-loading").remove()},c.showLoading=function(t){t.append('<div class="acf-loading-overlay"><i class="acf-loading"></i></div>')},c.hideLoading=function(t){t.children(".acf-loading-overlay").remove()},c.updateUserSetting=function(t,e){var i={action:"acf/ajax/user_setting",name:t,value:e};r.ajax({url:c.get("ajaxurl"),data:c.prepareForAjax(i),type:"post",dataType:"html"})},c.val=function(t,e,i){var n=t.val();return e!==n&&(t.val(e),t.is("select")&&null===t.val()?(t.val(n),!1):(!0!==i&&t.trigger("change"),!0))},c.show=function(t,e){return e&&c.unlock(t,"hidden",e),!c.isLocked(t,"hidden")&&(!!t.hasClass("acf-hidden")&&(t.removeClass("acf-hidden"),!0))},c.hide=function(t,e){return e&&c.lock(t,"hidden",e),!t.hasClass("acf-hidden")&&(t.addClass("acf-hidden"),!0)},c.isHidden=function(t){return t.hasClass("acf-hidden")},c.isVisible=function(t){return!c.isHidden(t)};var f=function(t,e){return!t.hasClass("acf-disabled")&&(e&&c.unlock(t,"disabled",e),!c.isLocked(t,"disabled")&&(!!t.prop("disabled")&&(t.prop("disabled",!1),!0)))};c.enable=function(t,e){if(t.attr("name"))return f(t,e);var i=!1;return t.find("[name]").each(function(){var t;f(r(this),e)&&(i=!0)}),i};var h=function(t,e){return e&&c.lock(t,"disabled",e),!t.prop("disabled")&&(t.prop("disabled",!0),!0)};c.disable=function(t,e){if(t.attr("name"))return h(t,e);var i=!1;return t.find("[name]").each(function(){var t;h(r(this),e)&&(i=!0)}),i},c.isset=function(t){for(var e=1;e<arguments.length;e++){if(!t||!t.hasOwnProperty(arguments[e]))return!1;t=t[arguments[e]]}return!0},c.isget=function(t){for(var e=1;e<arguments.length;e++){if(!t||!t.hasOwnProperty(arguments[e]))return null;t=t[arguments[e]]}return t},c.getFileInputData=function(t,e){var i=t.val();if(!i)return!1;var n={url:i},a=c.isget(t[0],"files",0);if(a)if(n.size=a.size,n.type=a.type,-1<a.type.indexOf("image")){var r=window.URL||window.webkitURL,s=new Image;s.onload=function(){n.width=this.width,n.height=this.height,e(n)},s.src=r.createObjectURL(a)}else e(n);else e(n)},c.isAjaxSuccess=function(t){return t&&t.success},c.getAjaxMessage=function(t){return c.isget(t,"data","message")},c.getAjaxError=function(t){return c.isget(t,"data","error")},c.renderSelect=function(t,e){var i=t.val(),a=[],r=function(t){var n="";return t.map(function(t){var e=t.text||t.label||"",i=t.id||t.value||"";a.push(i),t.children?n+='<optgroup label="'+c.strEscape(e)+'">'+r(t.children)+"</optgroup>":n+='<option value="'+i+'"'+(t.disabled?' disabled="disabled"':"")+">"+e+"</option>"}),n};return t.html(r(e)),-1<a.indexOf(i)&&t.val(i),t.val()};var p=function(t,e){return t.data("acf-lock-"+e)||[]},g=function(t,e,i){t.data("acf-lock-"+e,i)};c.lock=function(t,e,i){var n=p(t,e),a;n.indexOf(i)<0&&(n.push(i),g(t,e,n))},c.unlock=function(t,e,i){var n=p(t,e),a=n.indexOf(i);return-1<a&&(n.splice(a,1),g(t,e,n)),0===n.length},c.isLocked=function(t,e){return 0<p(t,e).length},c.isGutenberg=function(){return window.wp&&wp.data&&wp.data.select&&wp.data.select("core/editor")},c.objectToArray=function(e){return Object.keys(e).map(function(t){return e[t]})},r.fn.exists=function(){return 0<r(this).length},r.fn.outerHTML=function(){return r(this).get(0).outerHTML},Array.prototype.indexOf||(Array.prototype.indexOf=function(t){return r.inArray(t,this)}),r(document).ready(function(){c.doAction("ready")}),r(window).on("load",function(){c.doAction("load")}),r(window).on("beforeunload",function(){c.doAction("unload")}),r(window).on("resize",function(){c.doAction("resize")}),r(document).on("sortstart",function(t,e){c.doAction("sortstart",e.item,e.placeholder)}),r(document).on("sortstop",function(t,e){c.doAction("sortstop",e.item,e.placeholder)})}(jQuery),function(t,e){"use strict";var i=function(){function t(){return f}function e(t,e,i,n){return"string"==typeof t&&"function"==typeof e&&c("actions",t,e,i=parseInt(i||10,10),n),d}function i(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e&&u("actions",e,t),d}function n(t,e){return"string"==typeof t&&o("actions",t,e),d}function a(t,e,i,n){return"string"==typeof t&&"function"==typeof e&&c("filters",t,e,i=parseInt(i||10,10),n),d}function r(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e?u("filters",e,t):d}function s(t,e){return"string"==typeof t&&o("filters",t,e),d}function o(t,e,i,n){if(f[t][e])if(i){var a=f[t][e],r;if(n)for(r=a.length;r--;){var s=a[r];s.callback===i&&s.context===n&&a.splice(r,1)}else for(r=a.length;r--;)a[r].callback===i&&a.splice(r,1)}else f[t][e]=[]}function c(t,e,i,n,a){var r={callback:i,priority:n,context:a},s=f[t][e];s=s?(s.push(r),l(s)):[r],f[t][e]=s}function l(t){for(var e,i,n,a=1,r=t.length;a<r;a++){for(e=t[a],i=a;(n=t[i-1])&&n.priority>e.priority;)t[i]=t[i-1],--i;t[i]=e}return t}function u(t,e,i){var n=f[t][e];if(!n)return"filters"===t&&i[0];var a=0,r=n.length;if("filters"===t)for(;a<r;a++)i[0]=n[a].callback.apply(n[a].context,i);else for(;a<r;a++)n[a].callback.apply(n[a].context,i);return"filters"!==t||i[0]}var d={removeFilter:s,applyFilters:r,addFilter:a,removeAction:n,doAction:i,addAction:e,storage:t},f={actions:{},filters:{}};return d};acf.hooks=new i}(window),function(r,t){var n=/^(\S+)\s*(.*)$/,e=function(t){var e=this,i;return i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},r.extend(i,e),i.prototype=Object.create(e.prototype),r.extend(i.prototype,t),i.prototype.constructor=i},i=acf.Model=function(){this.cid=acf.uniqueId("acf"),this.data=r.extend(!0,{},this.data),this.setup.apply(this,arguments),this.$el&&!this.$el.data("acf")&&this.$el.data("acf",this);var t=function(){this.initialize(),this.addEvents(),this.addActions(),this.addFilters()};this.wait&&!acf.didAction(this.wait)?this.addAction(this.wait,t):t.apply(this)};r.extend(i.prototype,{id:"",cid:"",$el:null,data:{},busy:!1,changed:!1,events:{},actions:{},filters:{},eventScope:"",wait:!1,priority:10,get:function(t){return this.data[t]},has:function(t){return null!=this.get(t)},set:function(t,e,i){var n=this.get(t);return n==e||(this.data[t]=e,i||(this.changed=!0,this.trigger("changed:"+t,[e,n]),this.trigger("changed",[t,e,n]))),this},inherit:function(t){return t instanceof jQuery&&(t=t.data()),r.extend(this.data,t),this},prop:function(){return this.$el.prop.apply(this.$el,arguments)},setup:function(t){r.extend(this,t)},initialize:function(){},addElements:function(t){if(!(t=t||this.elements||null)||!Object.keys(t).length)return!1;for(var e in t)this.addElement(e,t[e])},addElement:function(t,e){this["$"+t]=this.$(e)},addEvents:function(t){if(!(t=t||this.events||null))return!1;for(var e in t){var i=e.match(n);this.on(i[1],i[2],t[e])}},removeEvents:function(t){if(!(t=t||this.events||null))return!1;for(var e in t){var i=e.match(n);this.off(i[1],i[2],t[e])}},getEventTarget:function(t,e){return t||this.$el||r(document)},validateEvent:function(t){return!this.eventScope||r(t.target).closest(this.eventScope).is(this.$el)},proxyEvent:function(a){return this.proxy(function(t){if(this.validateEvent(t)){var e,i=acf.arrayArgs(arguments).slice(1),n=[t,r(t.currentTarget)].concat(i);a.apply(this,n)}})},on:function(t,e,i,n){var a,r,s,o,c;o=t instanceof jQuery?n?(a=t,r=e,s=i,n):(a=t,r=e,i):i?(r=t,s=e,i):(r=t,e),a=this.getEventTarget(a),"string"==typeof o&&(o=this.proxyEvent(this[o])),r=r+"."+this.cid,c=s?[r,s,o]:[r,o],a.on.apply(a,c)},off:function(t,e,i){var n,a,r,s;t instanceof jQuery?i?(n=t,a=e,r=i):(n=t,a=e):e?(a=t,r=e):a=t,n=this.getEventTarget(n),a=a+"."+this.cid,s=r?[a,r]:[a],n.off.apply(n,s)},trigger:function(t,e,i){var n=this.getEventTarget();return i?n.trigger.apply(n,arguments):n.triggerHandler.apply(n,arguments),this},addActions:function(t){if(!(t=t||this.actions||null))return!1;for(var e in t)this.addAction(e,t[e])},removeActions:function(t){if(!(t=t||this.actions||null))return!1;for(var e in t)this.removeAction(e,t[e])},addAction:function(t,e,i){i=i||this.priority,"string"==typeof e&&(e=this[e]),acf.addAction(t,e,i,this)},removeAction:function(t,e){acf.removeAction(t,this[e])},addFilters:function(t){if(!(t=t||this.filters||null))return!1;for(var e in t)this.addFilter(e,t[e])},addFilter:function(t,e,i){i=i||this.priority,"string"==typeof e&&(e=this[e]),acf.addFilter(t,e,i,this)},removeFilters:function(t){if(!(t=t||this.filters||null))return!1;for(var e in t)this.removeFilter(e,t[e])},removeFilter:function(t,e){acf.removeFilter(t,this[e])},$:function(t){return this.$el.find(t)},remove:function(){this.removeEvents(),this.removeActions(),this.removeFilters(),this.$el.remove()},setTimeout:function(t,e){return setTimeout(this.proxy(t),e)},time:function(){console.time(this.id||this.cid)},timeEnd:function(){console.timeEnd(this.id||this.cid)},show:function(){acf.show(this.$el)},hide:function(){acf.hide(this.$el)},proxy:function(t){return r.proxy(t,this)}}),i.extend=e,acf.models={},acf.getInstance=function(t){return t.data("acf")},acf.getInstances=function(t){var e=[];return t.each(function(){e.push(acf.getInstance(r(this)))}),e}}(jQuery),function(e,t){acf.models.Popup=acf.Model.extend({data:{title:"",content:"",width:0,height:0,loading:!1},events:{'click [data-event="close"]':"onClickClose","click .acf-close-popup":"onClickClose"},setup:function(t){e.extend(this.data,t),this.$el=e(this.tmpl())},initialize:function(){this.render(),this.open()},tmpl:function(){return['<div id="acf-popup">','<div class="acf-popup-box acf-box">','<div class="title"><h3></h3><a href="#" class="acf-icon -cancel grey" data-event="close"></a></div>','<div class="inner"></div>','<div class="loading"><i class="acf-loading"></i></div>',"</div>",'<div class="bg" data-event="close"></div>',"</div>"].join("")},render:function(){var t=this.get("title"),e=this.get("content"),i=this.get("loading"),n=this.get("width"),a=this.get("height");this.title(t),this.content(e),n&&this.$(".acf-popup-box").css("width",n),a&&this.$(".acf-popup-box").css("min-height",a),this.loading(i),acf.doAction("append",this.$el)},update:function(t){this.data=acf.parseArgs(t,this.data),this.render()},title:function(t){this.$(".title:first h3").html(t)},content:function(t){this.$(".inner:first").html(t)},loading:function(t){var e=this.$(".loading:first");t?e.show():e.hide()},open:function(){e("body").append(this.$el)},close:function(){this.remove()},onClickClose:function(t,e){t.preventDefault(),this.close()}}),acf.newPopup=function(t){return new acf.models.Popup(t)}}(jQuery),function(t,e){acf.unload=new acf.Model({wait:"load",active:!0,changed:!1,actions:{validation_failure:"startListening",validation_success:"stopListening"},events:{"change form .acf-field":"startListening","submit form":"stopListening"},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(){this.stopListening()},startListening:function(){!this.changed&&this.active&&(this.changed=!0,t(window).on("beforeunload",this.onUnload))},stopListening:function(){this.changed=!1,t(window).off("beforeunload",this.onUnload)},onUnload:function(){return acf.__("The changes you made will be lost if you navigate away from this page")}})}(jQuery),function(t,e){var i=new acf.Model({events:{"click .acf-panel-title":"onClick"},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},isOpen:function(t){return t.hasClass("-open")},toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},open:function(t){t.addClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-down")},close:function(t){t.removeClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-right")}})}(jQuery),function(e,t){var i=acf.Model.extend({data:{text:"",type:"",timeout:0,dismiss:!0,target:!1,close:function(){}},events:{"click .acf-notice-dismiss":"onClickClose"},tmpl:function(){return'<div class="acf-notice"></div>'},setup:function(t){e.extend(this.data,t),this.$el=e(this.tmpl())},initialize:function(){this.render(),this.show()},render:function(){this.type(this.get("type")),this.html("<p>"+this.get("text")+"</p>"),this.get("dismiss")&&(this.$el.append('<a href="#" class="acf-notice-dismiss acf-icon -cancel small"></a>'),this.$el.addClass("-dismiss"));var t=this.get("timeout");t&&this.away(t)},update:function(t){e.extend(this.data,t),this.initialize(),this.removeEvents(),this.addEvents()},show:function(){var t=this.get("target");t&&t.prepend(this.$el)},hide:function(){this.$el.remove()},away:function(t){this.setTimeout(function(){acf.remove(this.$el)},t)},type:function(t){var e=this.get("type");e&&this.$el.removeClass("-"+e),this.$el.addClass("-"+t),"error"==t&&this.$el.addClass("acf-error-message")},html:function(t){this.$el.html(t)},text:function(t){this.$("p").html(t)},onClickClose:function(t,e){t.preventDefault(),this.get("close").apply(this,arguments),this.remove()}});acf.newNotice=function(t){return"object"!=typeof t&&(t={text:t}),new i(t)};var n=new acf.Model({wait:"prepare",priority:1,initialize:function(){var t=e(".acf-admin-notice");t.length&&e("h1:first").after(t)}})}(jQuery),function(e,t){acf.getPostbox=function(t){return"string"==typeof t&&(t=e("#"+t)),acf.getInstance(t)},acf.getPostboxes=function(){return acf.getInstances(e(".acf-postbox"))},acf.newPostbox=function(t){return new acf.models.Postbox(t)},acf.models.Postbox=acf.Model.extend({data:{id:"",key:"",style:"default",label:"top",edit:""},setup:function(t){t.editLink&&(t.edit=t.editLink),e.extend(this.data,t),this.$el=this.$postbox()},$postbox:function(){return e("#"+this.get("id"))},$hide:function(){return e("#"+this.get("id")+"-hide")},$hideLabel:function(){return this.$hide().parent()},$hndle:function(){return this.$("> .hndle")},$inside:function(){return this.$("> .inside")},isVisible:function(){return this.$el.hasClass("acf-hidden")},initialize:function(){this.$el.addClass("acf-postbox"),this.$el.removeClass("hide-if-js");var t=this.get("style");"default"!==t&&this.$el.addClass(t),this.$inside().addClass("acf-fields").addClass("-"+this.get("label"));var e=this.get("edit");e&&this.$hndle().append('<a href="'+e+'" class="dashicons dashicons-admin-generic acf-hndle-cog acf-js-tooltip" title="'+acf.__("Edit field group")+'"></a>'),this.show()},show:function(){this.$hideLabel().show(),this.$hide().prop("checked",!0),this.$el.show().removeClass("acf-hidden")},enable:function(){acf.enable(this.$el,"postbox")},showEnable:function(){this.show(),this.enable()},hide:function(){this.$hideLabel().hide(),this.$el.hide().addClass("acf-hidden")},disable:function(){acf.disable(this.$el,"postbox")},hideDisable:function(){this.hide(),this.disable()},html:function(t){this.$inside().html(t),acf.doAction("append",this.$el)}})}(jQuery),function(f,e){acf.newTooltip=function(t){return"object"!=typeof t&&(t={text:t}),t.confirmRemove!==e?(t.textConfirm=acf.__("Remove"),t.textCancel=acf.__("Cancel"),new n(t)):t.confirm!==e?new n(t):new i(t)};var i=acf.Model.extend({data:{text:"",timeout:0,target:null},tmpl:function(){return'<div class="acf-tooltip"></div>'},setup:function(t){f.extend(this.data,t),this.$el=f(this.tmpl())},initialize:function(){this.render(),this.show(),this.position();var t=this.get("timeout");t&&setTimeout(f.proxy(this.fade,this),t)},update:function(t){f.extend(this.data,t),this.initialize()},render:function(){this.html(this.get("text"))},show:function(){f("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").css({top:0,left:0});var i=10,n=e.outerWidth(),a=e.outerHeight(),r=e.offset().top,s=e.offset().left,o=t.outerWidth(),c=t.outerHeight(),l=t.offset().top,u=r-c-l,d=s+n/2-o/2;d<10?(t.addClass("right"),d=s+n,u=r+a/2-c/2-l):d+o+10>f(window).width()?(t.addClass("left"),d=s-o,u=r+a/2-c/2-l):u-f(window).scrollTop()<10?(t.addClass("bottom"),u=r+a-l):t.addClass("top"),t.css({top:u,left:d})}}}),n=i.extend({data:{text:"",textConfirm:"",textCancel:"",target:null,targetConfirm:!0,confirm:function(){},cancel:function(){},context:!1},events:{'click [data-event="cancel"]':"onCancel",'click [data-event="confirm"]':"onConfirm"},addEvents:function(){acf.Model.prototype.addEvents.apply(this);var t=f(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=f(document),e=this.get("target");this.off(t,"click"),this.off(e,"click")},render:function(){var t,e,i,n=[this.get("text")||acf.__("Are you sure?"),'<a href="#" data-event="confirm">'+(this.get("textConfirm")||acf.__("Yes"))+"</a>",'<a href="#" data-event="cancel">'+(this.get("textCancel")||acf.__("No"))+"</a>"].join(" ");this.html(n),this.$el.addClass("-confirm")},onCancel:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var i=this.get("cancel"),n=this.get("context")||this;i.apply(n,arguments),this.remove()},onConfirm:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var i=this.get("confirm"),n=this.get("context")||this;i.apply(n,arguments),this.remove()}});acf.models.Tooltip=i,acf.models.TooltipConfirm=n;var t=new acf.Model({tooltip:!1,events:{"mouseenter .acf-js-tooltip":"showTitle","mouseup .acf-js-tooltip":"hideTitle","mouseleave .acf-js-tooltip":"hideTitle"},showTitle:function(t,e){var i=e.attr("title");i&&(e.attr("title",""),this.tooltip?this.tooltip.update({text:i,target:e}):this.tooltip=acf.newTooltip({text:i,target:e}))},hideTitle:function(t,e){this.tooltip.hide(),e.attr("title",this.tooltip.get("text"))}})}(jQuery),function(e,i){var r=[];acf.Field=acf.Model.extend({type:"",eventScope:".acf-field",wait:"ready",setup:function(t){this.$el=t,this.inherit(t),this.inherit(this.$control())},val:function(t){return t!==i?this.setValue(t):this.prop("disabled")?null:this.getValue()},getValue:function(){return this.$input().val()},setValue:function(t){return acf.val(this.$input(),t)},__:function(t){return acf._e(this.type,t)},$control:function(){return!1},$input:function(){return this.$("[name]:first")},$inputWrap:function(){return this.$(".acf-input:first")},$labelWrap:function(){return this.$(".acf-label:first")},getInputName:function(){return this.$input().attr("name")||""},parent:function(){var t=this.parents();return!!t.length&&t[0]},parents:function(){var t=this.$el.parents(".acf-field"),e;return acf.getFields(t)},show:function(t,e){var i=acf.show(this.$el,t);return i&&(this.prop("hidden",!1),acf.doAction("show_field",this,e)),i},hide:function(t,e){var i=acf.hide(this.$el,t);return i&&(this.prop("hidden",!0),acf.doAction("hide_field",this,e)),i},enable:function(t,e){var i=acf.enable(this.$el,t);return i&&(this.prop("disabled",!1),acf.doAction("enable_field",this,e)),i},disable:function(t,e){var i=acf.disable(this.$el,t);return i&&(this.prop("disabled",!0),acf.doAction("disable_field",this,e)),i},showEnable:function(t,e){return this.enable.apply(this,arguments),this.show.apply(this,arguments)},hideDisable:function(t,e){return this.disable.apply(this,arguments),this.hide.apply(this,arguments)},showNotice:function(t){"object"!=typeof t&&(t={text:t}),this.notice&&this.notice.remove(),t.target=this.$inputWrap(),this.notice=acf.newNotice(t)},removeNotice:function(t){this.notice&&(this.notice.away(t||0),this.notice=!1)},showError:function(t){this.$el.addClass("acf-error"),t!==i&&this.showNotice({text:t,type:"error",dismiss:!1}),acf.doAction("invalid_field",this),this.$el.one("focus change","input, select, textarea",e.proxy(this.removeError,this))},removeError:function(){this.$el.removeClass("acf-error"),this.removeNotice(250),acf.doAction("valid_field",this)},trigger:function(t,e,i){return"invalidField"==t&&(i=!0),acf.Model.prototype.trigger.apply(this,[t,e,i])}}),acf.newField=function(t){var e=t.data("type"),i=s(e),n,a=new(acf.models[i]||acf.Field)(t);return acf.doAction("new_field",a),a};var s=function(t){return acf.strPascalCase(t||"")+"Field"};acf.registerFieldType=function(t){var e,i=t.prototype.type,n=s(i);acf.models[n]=t,r.push(i)},acf.getFieldType=function(t){var e=s(t);return acf.models[e]||!1},acf.getFieldTypes=function(n){n=acf.parseArgs(n,{category:""});var a=[];return r.map(function(t){var e=acf.getFieldType(t),i=e.prototype;n.category&&i.category!==n.category||a.push(e)}),a}}(jQuery),function(n,t){acf.findFields=function(t){var e=".acf-field",i=!1;return(t=acf.parseArgs(t,{key:"",name:"",type:"",is:"",parent:!1,sibling:!1,limit:!1,visible:!1,suppressFilters:!1})).suppressFilters||(t=acf.applyFilters("find_fields_args",t)),t.key&&(e+='[data-key="'+t.key+'"]'),t.type&&(e+='[data-type="'+t.type+'"]'),t.name&&(e+='[data-name="'+t.name+'"]'),t.is&&(e+=t.is),t.visible&&(e+=":visible"),i=t.parent?t.parent.find(e):t.sibling?t.sibling.siblings(e):n(e),t.suppressFilters||(i=i.not(".acf-clone .acf-field"),i=acf.applyFilters("find_fields",i)),t.limit&&(i=i.slice(0,t.limit)),i},acf.findField=function(t,e){return acf.findFields({key:t,limit:1,parent:e,suppressFilters:!0})},acf.getField=function(t){t instanceof jQuery||(t=acf.findField(t));var e=t.data("acf");return e||(e=acf.newField(t)),e},acf.getFields=function(t){t instanceof jQuery||(t=acf.findFields(t));var e=[];return t.each(function(){var t=acf.getField(n(this));e.push(t)}),e},acf.findClosestField=function(t){return t.closest(".acf-field")},acf.getClosestField=function(t){var e=acf.findClosestField(t);return this.getField(e)};var e=function(t){var e=t,r=t+"_fields",a=t+"_field",i=function(t){var e,i=acf.arrayArgs(arguments).slice(1),n=acf.getFields({parent:t});if(n.length){var a=[r,n].concat(i);acf.doAction.apply(null,a)}},n=function(t){var e,n=acf.arrayArgs(arguments).slice(1);t.map(function(t,e){var i=[a,t].concat(n);acf.doAction.apply(null,i)})};acf.addAction(e,i),acf.addAction(r,n),s(t)},s=function(e){var r=e+"_field",s=e+"Field",t=function(i){var n=acf.arrayArgs(arguments),a=n.slice(1),t;["type","name","key"].map(function(t){var e="/"+t+"="+i.get(t);n=[r+e,i].concat(a),acf.doAction.apply(null,n)}),-1<o.indexOf(e)&&i.trigger(s,a)};acf.addAction(r,t)},i,a=["valid","invalid","enable","disable","new"],o=["remove","sortstart","sortstop","show","hide","unload","valid","invalid","enable","disable"];["prepare","ready","load","append","remove","sortstart","sortstop","show","hide","unload"].map(e),a.map(s);var r=new acf.Model({id:"fieldsEventManager",events:{'click .acf-field a[href="#"]':"onClick","change .acf-field":"onChange"},onClick:function(t){t.preventDefault()},onChange:function(){n("#_acf_changed").val(1)}})}(jQuery),function(f,h){var p=0,t=acf.Field.extend({type:"accordion",wait:"",$control:function(){return this.$(".acf-fields:first")},initialize:function(){if(!this.$el.is("td")){if(this.get("endpoint"))return this.remove();var t=this.$el,e=this.$labelWrap(),i=this.$inputWrap(),n=this.$control(),a=i.children(".description");if(a.length&&e.append(a),this.$el.is("tr")){var r=this.$el.closest("table"),s=f('<div class="acf-accordion-title"/>'),o=f('<div class="acf-accordion-content"/>'),c=f('<table class="'+r.attr("class")+'"/>'),l=f("<tbody/>");s.append(e.html()),c.append(l),o.append(c),i.append(s),i.append(o),e.remove(),n.remove(),i.attr("colspan",2),e=s,i=o,n=l}t.addClass("acf-accordion"),e.addClass("acf-accordion-title"),i.addClass("acf-accordion-content"),p++,this.get("multi_expand")&&t.attr("multi-expand",1);var u=acf.getPreference("this.accordions")||[];u[p-1]!==h&&this.set("open",u[p-1]),this.get("open")&&(t.addClass("-open"),i.css("display","block")),e.prepend(g.iconHtml({open:this.get("open")}));var d=t.parent();n.addClass(d.hasClass("-left")?"-left":""),n.addClass(d.hasClass("-clear")?"-clear":""),n.append(t.nextUntil(".acf-field-accordion",".acf-field")),n.removeAttr("data-open data-multi_expand data-endpoint")}}});acf.registerFieldType(t);var g=new acf.Model({actions:{unload:"onUnload"},events:{"click .acf-accordion-title":"onClick","invalidField .acf-accordion":"onInvalidField"},isOpen:function(t){return t.hasClass("-open")},
2
+ toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},iconHtml:function(t){var e;return'<i class="acf-accordion-icon dashicons dashicons-'+(t.open?"arrow-down":"arrow-right")+'"></i>'},open:function(t){t.find(".acf-accordion-content:first").slideDown().css("display","block"),t.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!0})),t.addClass("-open"),acf.doAction("show",t),t.attr("multi-expand")||t.siblings(".acf-accordion.-open").each(function(){g.close(f(this))})},close:function(t){t.find(".acf-accordion-content:first").slideUp(),t.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!1})),t.removeClass("-open"),acf.doAction("hide",t)},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},onInvalidField:function(t,e){this.busy||(this.busy=!0,this.setTimeout(function(){this.busy=!1},1e3),this.open(e))},onUnload:function(t){var e=[];f(".acf-accordion").each(function(){var t=f(this).hasClass("-open")?1:0;e.push(t)}),e.length&&acf.setPreference("this.accordions",e)}})}(jQuery),function(t,e){var i=acf.Field.extend({type:"button_group",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-button-group")},$input:function(){return this.$("input:checked")},setValue:function(t){this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")},onClick:function(t,e){var i=e.parent("label"),n=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(i)}(jQuery),function(e,t){var i=acf.Field.extend({type:"checkbox",events:{"change input":"onChange","click .acf-add-checkbox":"onClickAdd","click .acf-checkbox-toggle":"onClickToggle","click .acf-checkbox-custom":"onClickCustom"},$control:function(){return this.$(".acf-checkbox-list")},$toggle:function(){return this.$(".acf-checkbox-toggle")},$input:function(){return this.$('input[type="hidden"]')},$inputs:function(){return this.$('input[type="checkbox"]').not(".acf-checkbox-toggle")},getValue:function(){var t=[];return this.$(":checked").each(function(){t.push(e(this).val())}),!!t.length&&t},onChange:function(t,e){var i=e.prop("checked"),n=this.$toggle(),a;(i?e.parent().addClass("selected"):e.parent().removeClass("selected"),n.length)&&(0==this.$inputs().not(":checked").length?n.prop("checked",!0):n.prop("checked",!1))},onClickAdd:function(t,e){var i='<li><input class="acf-checkbox-custom" type="checkbox" checked="checked" /><input type="text" name="'+this.getInputName()+'[]" /></li>';e.parent("li").before(i)},onClickToggle:function(t,e){var i=e.prop("checked"),n;this.$inputs().prop("checked",i)},onClickCustom:function(t,e){var i=e.prop("checked"),n=e.next('input[type="text"]');i?n.prop("disabled",!1):(n.prop("disabled",!0),""==n.val()&&e.parent("li").remove())}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"color_picker",wait:"load",$control:function(){return this.$(".acf-color-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},setValue:function(t){acf.val(this.$input(),t),this.$inputText().iris("color",t)},initialize:function(){var e=this.$input(),i=this.$inputText(),t=function(t){setTimeout(function(){acf.val(e,i.val())},1)},n={defaultColor:!1,palettes:!0,hide:!0,change:t,clear:t},n=acf.applyFilters("color_picker_args",n,this);i.wpColorPicker(n)}});acf.registerFieldType(i)}(jQuery),function(n,t){var e=acf.Field.extend({type:"date_picker",events:{'blur input[type="text"]':"onBlur"},$control:function(){return this.$(".acf-date-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},initialize:function(){if(this.has("save_format"))return this.initializeCompatibility();var t=this.$input(),e=this.$inputText(),i={dateFormat:this.get("date_format"),altField:t,altFormat:"yymmdd",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")};i=acf.applyFilters("date_picker_args",i,this),acf.newDatePicker(e,i),acf.doAction("date_picker_init",e,i,this)},initializeCompatibility:function(){var t=this.$input(),e=this.$inputText();e.val(t.val());var i={dateFormat:this.get("date_format"),altField:t,altFormat:this.get("save_format"),changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")},n=(i=acf.applyFilters("date_picker_args",i,this)).dateFormat;i.dateFormat=this.get("save_format"),acf.newDatePicker(e,i),e.datepicker("option","dateFormat",n),acf.doAction("date_picker_init",e,i,this)},onBlur:function(){this.$inputText().val()||acf.val(this.$input(),"")}});acf.registerFieldType(e);var i=new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("datePickerL10n");return!!i&&(void 0!==n.datepicker&&(i.isRTL=e,n.datepicker.regional[t]=i,void n.datepicker.setDefaults(i)))}});acf.newDatePicker=function(t,e){if(void 0===n.datepicker)return!1;e=e||{},t.datepicker(e),n("body > #ui-datepicker-div").exists()&&n("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(n,t){var e=acf.models.DatePickerField.extend({type:"date_time_picker",$control:function(){return this.$(".acf-date-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),i={dateFormat:this.get("date_format"),timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altFormat:"yy-mm-dd",altTimeFormat:"HH:mm:ss",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day"),controlType:"select",oneLine:!0};i=acf.applyFilters("date_time_picker_args",i,this),acf.newDateTimePicker(e,i),acf.doAction("date_time_picker_init",e,i,this)}});acf.registerFieldType(e);var i=new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("dateTimePickerL10n");return!!i&&(void 0!==n.timepicker&&(i.isRTL=e,n.timepicker.regional[t]=i,void n.timepicker.setDefaults(i)))}});acf.newDateTimePicker=function(t,e){if(void 0===n.timepicker)return!1;e=e||{},t.datetimepicker(e),n("body > #ui-datepicker-div").exists()&&n("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(s,t){var e=acf.Field.extend({type:"google_map",map:!1,wait:"load",events:{'click a[data-name="clear"]':"onClickClear",'click a[data-name="locate"]':"onClickLocate",'click a[data-name="search"]':"onClickSearch","keydown .search":"onKeydownSearch","keyup .search":"onKeyupSearch","focus .search":"onFocusSearch","blur .search":"onBlurSearch",showField:"onShow"},$control:function(){return this.$(".acf-google-map")},$input:function(t){return this.$('input[data-name="'+(t||"address")+'"]')},$search:function(){return this.$(".search")},$canvas:function(){return this.$(".canvas")},addClass:function(t){this.$control().addClass(t)},removeClass:function(t){this.$control().removeClass(t)},getValue:function(){var t={lat:"",lng:"",address:""};return this.$('input[type="hidden"]').each(function(){t[s(this).data("name")]=s(this).val()}),t.lat&&t.lng||(t=!1),t},setValue:function(t){for(var e in t=acf.parseArgs(t,{lat:"",lng:"",address:""}))acf.val(this.$input(e),t[e]);t.lat&&t.lng||(t=!1),this.renderVal(t);var i=this.newLatLng(t.lat,t.lng);acf.doAction("google_map_change",i,this.map,this)},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),this.center(),this},center:function(){var t=this.map.marker.getPosition(),e=this.get("lat"),i=this.get("lng");t&&(e=t.lat(),i=t.lng());var n=this.newLatLng(e,i);this.map.setCenter(n)},getSearchVal:function(){return this.$search().val()},initialize:function(){o.isReady()?this.initializeMap():o.ready(this.initializeMap,this)},newLatLng:function(t,e){return new google.maps.LatLng(parseFloat(t),parseFloat(e))},initializeMap:function(){var t=this.get("zoom"),e=this.get("lat"),i=this.get("lng"),n={scrollwheel:!1,zoom:parseInt(t),center:this.newLatLng(e,i),mapTypeId:google.maps.MapTypeId.ROADMAP,marker:{draggable:!0,raiseOnDrag:!0},autocomplete:{}};n=acf.applyFilters("google_map_args",n,this);var a=new google.maps.Map(this.$canvas()[0],n),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),o=!1;if(acf.isset(google,"maps","places","Autocomplete")){var c=n.autocomplete||{};c=acf.applyFilters("google_map_autocomplete_args",c,this),(o=new google.maps.places.Autocomplete(this.$search()[0],c)).bindTo("bounds",a)}this.addMapEvents(this,a,s,o),a.acf=this,a.marker=s,a.autocomplete=o,this.map=a,acf.doAction("google_map_init",a,s,this);var l=this.getValue();this.renderVal(l)},addMapEvents:function(n,t,e,i){google.maps.event.addListener(t,"click",function(t){var e=t.latLng.lat(),i=t.latLng.lng();n.searchPosition(e,i)}),google.maps.event.addListener(e,"dragend",function(){var t=this.getPosition(),e=t.lat(),i=t.lng();n.searchPosition(e,i)}),i&&google.maps.event.addListener(i,"place_changed",function(){var t=this.getPlace();t.address=n.getSearchVal(),n.setPlace(t)})},searchPosition:function(n,a){var t=this.newLatLng(n,a),r=this.$control();this.setPosition(n,a),r.addClass("-loading");var e=s.proxy(function(t,e){r.removeClass("-loading");var i="";e!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+e):t[0]?i=t[0].formatted_address:console.log("No results found"),this.val({lat:n,lng:a,address:i})},this);o.geocoder.geocode({latLng:t},e)},setPlace:function(t){if(!t)return this;if(t.name&&!t.geometry)return this.searchAddress(t.name),this;var e=t.geometry.location.lat(),i=t.geometry.location.lng(),n=t.address||t.formatted_address;return this.setValue({lat:e,lng:i,address:n}),this},searchAddress:function(a){var t=a.split(",");if(2==t.length){var e=t[0],i=t[1];if(s.isNumeric(e)&&s.isNumeric(i))return this.searchPosition(e,i)}var r=this.$control();r.addClass("-loading");var n=this.proxy(function(t,e){r.removeClass("-loading");var i="",n="";e!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+e):t[0]?(i=t[0].geometry.location.lat(),n=t[0].geometry.location.lng()):console.log("No results found"),this.val({lat:i,lng:n,address:a})});o.geocoder.geocode({address:a},n)},searchLocation:function(){if(!navigator.geolocation)return alert(acf.__("Sorry, this browser does not support geolocation"));var a=this.$control();a.addClass("-loading");var t=s.proxy(function(t,e){a.removeClass("-loading");var i=t.coords.latitude,n=t.coords.longitude;this.searchPosition(i,n)},this),e=function(t){a.removeClass("-loading")};navigator.geolocation.getCurrentPosition(t,e)},onClickClear:function(t,e){this.val(!1)},onClickLocate:function(t,e){this.searchLocation()},onClickSearch:function(t,e){this.searchAddress(this.$search().val())},onFocusSearch:function(t,e){this.removeClass("-value"),this.onKeyupSearch.apply(this,arguments)},onBlurSearch:function(t,e){this.setTimeout(function(){this.removeClass("-search"),e.val()&&this.addClass("-value")},100)},onKeyupSearch:function(t,e){e.val()?this.addClass("-search"):this.removeClass("-search")},onKeydownSearch:function(t,e){13==t.which&&t.preventDefault()},onMousedown:function(){},onShow:function(){if(!this.map)return!1;this.setTimeout(this.center,10)}});acf.registerFieldType(e);var o=new acf.Model({geocoder:!1,data:{status:!1},getStatus:function(){return this.get("status")},setStatus:function(t){return this.set("status",t)},isReady:function(){if("ready"==this.getStatus())return!0;if("loading"==this.getStatus())return!1;if(acf.isset(window,"google","maps","places"))return this.setStatus("ready"),!0;var t=acf.get("google_map_api");return t&&(this.setStatus("loading"),s.ajax({url:t,dataType:"script",cache:!0,context:this,success:function(){this.setStatus("ready"),this.geocoder=new google.maps.Geocoder,acf.doAction("google_map_api_loaded")}})),!1},ready:function(t,e){acf.addAction("google_map_api_loaded",t,10,e)}})}(jQuery),function(n,i){var t=acf.Field.extend({type:"image",$control:function(){return this.$(".acf-image-uploader")},$input:function(){return this.$('input[type="hidden"]')},events:{'click a[data-name="add"]':"onClickAdd",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove",'change input[type="file"]':"onChange"},initialize:function(){"basic"===this.get("uploader")&&this.$el.closest("form").attr("enctype","multipart/form-data")},validateAttachment:function(t){(t=t||{}).id!==i&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",caption:"",description:"",width:0,height:0});var e=acf.isget(t,"sizes",this.get("preview_size"),"url");return null!==e&&(t.url=e),t},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.url,alt:t.alt,title:t.title});var e=t.id||"";this.val(e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},append:function(t,e){var i=function(t,e){for(var i=acf.getFields({key:t.get("key"),parent:e.$el}),n=0;n<i.length;n++)if(!i[n].val())return i[n];return!1},n=i(this,e);n||(e.$(".acf-button:last").trigger("click"),n=i(this,e)),n&&n.render(t)},selectAttachment:function(){var i=this.parent(),t=i&&"repeater"===i.get("type"),e=acf.newMediaPopup({mode:"select",type:"image",title:acf.__("Select Image"),field:this.get("key"),multiple:t,library:this.get("library"),allowedTypes:this.get("mime_types"),select:n.proxy(function(t,e){0<e?this.append(t,i):this.render(t)},this)})},editAttachment:function(){var t=this.val();if(t)var e=acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:t,field:this.get("key"),select:n.proxy(function(t,e){this.render(t)},this)})},removeAttachment:function(){this.render(!1)},onClickAdd:function(t,e){this.selectAttachment()},onClickEdit:function(t,e){this.editAttachment()},onClickRemove:function(t,e){this.removeAttachment()},onChange:function(t,e){var i=this.$input();acf.getFileInputData(e,function(t){i.val(n.param(t))})}});acf.registerFieldType(t)}(jQuery),function(n,e){var t=acf.models.ImageField.extend({type:"file",$control:function(){return this.$(".acf-file-uploader")},$input:function(){return this.$('input[type="hidden"]')},validateAttachment:function(t){return(t=t||{}).id!==e&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",filename:"",filesizeHumanReadable:"",icon:"/wp-includes/images/media/default.png"})},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.icon,alt:t.alt,title:t.title}),this.$('[data-name="title"]').text(t.title),this.$('[data-name="filename"]').text(t.filename).attr("href",t.url),this.$('[data-name="filesize"]').text(t.filesizeHumanReadable);var e=t.id||"";acf.val(this.$input(),e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},selectAttachment:function(){var i=this.parent(),t=i&&"repeater"===i.get("type"),e=acf.newMediaPopup({mode:"select",title:acf.__("Select File"),field:this.get("key"),multiple:t,library:this.get("library"),allowedTypes:this.get("mime_types"),select:n.proxy(function(t,e){0<e?this.append(t,i):this.render(t)},this)})},editAttachment:function(){var t=this.val();if(!t)return!1;var e=acf.newMediaPopup({mode:"edit",title:acf.__("Edit File"),button:acf.__("Update File"),attachment:t,field:this.get("key"),select:n.proxy(function(t,e){this.render(t)},this)})}});acf.registerFieldType(t)}(jQuery),function(n,t){var e=acf.Field.extend({type:"link",events:{'click a[data-name="add"]':"onClickEdit",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove","change .link-node":"onChange"},$control:function(){return this.$(".acf-link")},$node:function(){return this.$(".link-node")},getValue:function(){var t=this.$node();return!!t.attr("href")&&{title:t.html(),url:t.attr("href"),target:t.attr("target")}},setValue:function(t){t=acf.parseArgs(t,{title:"",url:"",target:""});var e=this.$control(),i=this.$node();e.removeClass("-value -external"),t.url&&e.addClass("-value"),"_blank"===t.target&&e.addClass("-external"),this.$(".link-title").html(t.title),this.$(".link-url").attr("href",t.url).html(t.url),i.html(t.title),i.attr("href",t.url),i.attr("target",t.target),this.$(".input-title").val(t.title),this.$(".input-target").val(t.target),this.$(".input-url").val(t.url).trigger("change")},onClickEdit:function(t,e){acf.wpLink.open(this.$node())},onClickRemove:function(t,e){this.setValue(!1)},onChange:function(t,e){var i=this.getValue();this.setValue(i)}});acf.registerFieldType(e),acf.wpLink=new acf.Model({getNodeValue:function(){var t=this.get("node");return{title:t.html(),url:t.attr("href"),target:t.attr("target")}},setNodeValue:function(t){var e=this.get("node");e.html(t.title),e.attr("href",t.url),e.attr("target",t.target),e.trigger("change")},getInputValue:function(){return{title:n("#wp-link-text").val(),url:n("#wp-link-url").val(),target:n("#wp-link-target").prop("checked")?"_blank":""}},setInputValue:function(t){n("#wp-link-text").val(t.title),n("#wp-link-url").val(t.url),n("#wp-link-target").prop("checked","_blank"===t.target)},open:function(t){this.on("wplink-open","onOpen"),this.on("wplink-close","onClose"),this.set("node",t);var e=n('<textarea id="acf-link-textarea" style="display:none;"></textarea>');n("body").append(e);var i=this.getNodeValue();wpLink.open("acf-link-textarea",i.url,i.title,null)},onOpen:function(){n("#wp-link-wrap").addClass("has-text-field");var t=this.getNodeValue();this.setInputValue(t)},close:function(){wpLink.close()},onClose:function(){if(!this.has("node"))return!1;this.off("wplink-open"),this.off("wplink-close");var t=this.getInputValue();this.setNodeValue(t),n("#acf-link-textarea").remove(),this.set("node",null)}})}(jQuery),function(a,t){var e=acf.Field.extend({type:"oembed",events:{'click [data-name="clear-button"]':"onClickClear","keypress .input-search":"onKeypressSearch","keyup .input-search":"onKeyupSearch","change .input-search":"onChangeSearch"},$control:function(){return this.$(".acf-oembed")},$input:function(){return this.$(".input-value")},$search:function(){return this.$(".input-search")},getValue:function(){return this.$input().val()},getSearchVal:function(){return this.$search().val()},setValue:function(t){t?this.$control().addClass("has-value"):this.$control().removeClass("has-value"),acf.val(this.$input(),t)},showLoading:function(t){acf.showLoading(this.$(".canvas"))},hideLoading:function(){acf.hideLoading(this.$(".canvas"))},maybeSearch:function(){var t=this.val(),e=this.getSearchVal();if(!e)return this.clear();if("http"!=e.substr(0,4)&&(e="http://"+e),e!==t){var i=this.get("timeout");i&&clearTimeout(i);var n=a.proxy(this.search,this,e);this.set("timeout",setTimeout(n,300))}},search:function(t){var e={action:"acf/fields/oembed/search",s:t,field_key:this.get("key")},i;(i=this.get("xhr"))&&i.abort(),this.showLoading();var i=a.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:function(t){t&&t.html||(t={url:!1,html:""}),this.val(t.url),this.$(".canvas-media").html(t.html)},complete:function(){this.hideLoading()}});this.set("xhr",i)},clear:function(){this.val(""),this.$search().val(""),this.$(".canvas-media").html("")},onClickClear:function(t,e){this.clear()},onKeypressSearch:function(t,e){13==t.which&&(t.preventDefault(),this.maybeSearch())},onKeyupSearch:function(t,e){e.val()&&this.maybeSearch()},onChangeSearch:function(t,e){this.maybeSearch()}});acf.registerFieldType(e)}(jQuery),function(t,e){var i=acf.Field.extend({type:"radio",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-radio-list")},$input:function(){return this.$("input:checked")},$inputText:function(){return this.$('input[type="text"]')},getValue:function(){var t=this.$input().val();return"other"===t&&this.get("other_choice")&&(t=this.$inputText().val()),t},onClick:function(t,e){var i=e.parent("label"),n=i.hasClass("selected"),a=e.val();this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"),a=!1),this.get("other_choice")&&("other"===a?this.$inputText().prop("disabled",!1):this.$inputText().prop("disabled",!0))}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"range",events:{'input input[type="range"]':"onChange","change input":"onChange"},$input:function(){return this.$('input[type="range"]')},$inputAlt:function(){return this.$('input[type="number"]')},setValue:function(t){this.busy=!0,acf.val(this.$input(),t),acf.val(this.$inputAlt(),t,!0),this.busy=!1},onChange:function(t,e){this.busy||this.setValue(e.val())}});acf.registerFieldType(i)}(jQuery),function(o,n){var t=acf.Field.extend({type:"relationship",events:{"keypress [data-filter]":"onKeypressFilter","change [data-filter]":"onChangeFilter","keyup [data-filter]":"onChangeFilter","click .choices-list .acf-rel-item":"onClickAdd",'click [data-name="remove_item"]':"onClickRemove",mouseover:"onHover"},$control:function(){return this.$(".acf-relationship")},$list:function(t){return this.$("."+t+"-list")},$listItems:function(t){return this.$list(t).find(".acf-rel-item")},$listItem:function(t,e){return this.$list(t).find('.acf-rel-item[data-id="'+e+'"]')},getValue:function(){var t=[];return this.$listItems("values").each(function(){t.push(o(this).data("id"))}),!!t.length&&t},newChoice:function(t){return["<li>",'<span data-id="'+t.id+'" class="acf-rel-item">'+t.text+"</span>","</li>"].join("")},newValue:function(t){return["<li>",'<input type="hidden" name="'+this.getInputName()+'[]" value="'+t.id+'" />','<span data-id="'+t.id+'" class="acf-rel-item">'+t.text,'<a href="#" class="acf-icon -minus small dark" data-name="remove_item"></a>',"</span>","</li>"].join("")},addSortable:function(t){this.$list("values").sortable({items:"li",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,update:function(){t.$input().trigger("change")}})},initialize:function(){var t=this.proxy(function(t){if(!this.get("loading")&&this.get("more")){var e=this.$list("choices"),i=Math.ceil(e.scrollTop()),n=Math.ceil(e[0].scrollHeight),a=Math.ceil(e.innerHeight()),r=this.get("paged")||1;n<=i+a&&(this.set("paged",r+1),this.fetch())}});this.$list("choices").scrollTop(0).on("scroll",t),this.fetch()},onHover:function(t){o().off(t),this.addSortable(this)},onKeypressFilter:function(t,e){13==t.which&&t.preventDefault()},onChangeFilter:function(t,e){var i=e.val(),n=e.data("filter");this.get(n)!==i&&(this.set(n,i),this.set("paged",1),e.is("select")?this.fetch():this.maybeFetch())},onClickAdd:function(t,e){var i=this.val(),n=parseInt(this.get("max"));if(e.hasClass("disabled"))return!1;if(0<n&&i&&i.length>=n)return this.showNotice({text:acf.__("Maximum values reached ( {max} values )").replace("{max}",n),type:"warning"}),!1;e.addClass("disabled");var a=this.newValue({id:e.data("id"),text:e.html()});this.$list("values").append(a),this.$input().trigger("change")},onClickRemove:function(t,e){var i=e.parent(),n=i.parent(),a=i.data("id");setTimeout(function(){n.remove()},1),this.$listItem("choices",a).removeClass("disabled"),this.$input().trigger("change")},maybeFetch:function(){var t=this.get("timeout");t&&clearTimeout(t),t=this.setTimeout(this.fetch,300),this.set("timeout",t)},getAjaxData:function(){var t=this.$control().data();for(var e in t)t[e]=this.get(e);return t.action="acf/fields/relationship/query",t.field_key=this.get("key"),t},fetch:function(){var t;(t=this.get("xhr"))&&t.abort();var e=this.getAjaxData(),s=this.$list("choices");1==e.paged&&s.html("");var i=o('<li><i class="acf-loading"></i> '+acf.__("Loading")+"</li>");s.append(i),this.set("loading",!0);var n=function(){this.set("loading",!1),i.remove()},a=function(t){if(!t||!t.results||!t.results.length)return this.set("more",!1),void(1==this.get("paged")&&this.$list("choices").append("<li>"+acf.__("No matches found")+"</li>"));this.set("more",t.more);var e=this.walkChoices(t.results),i=o(e),n=this.val();n&&n.length&&n.map(function(t){i.find('.acf-rel-item[data-id="'+t+'"]').addClass("disabled")}),s.append(i);var a=!1,r=!1;s.find(".acf-rel-label").each(function(){var t=o(this),e=t.siblings("ul");if(a&&a.text()==t.text())return r.append(e.children()),void o(this).parent().remove();a=t,r=e})},t=o.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",data:acf.prepareForAjax(e),context:this,success:a,complete:n});this.set("xhr",t)},walkChoices:function(t){var i=function(t){var e="";return o.isArray(t)?t.map(function(t){e+=i(t)}):o.isPlainObject(t)&&(t.children!==n?(e+='<li><span class="acf-rel-label">'+t.text+'</span><ul class="acf-bl">',e+=i(t.children),e+="</ul></li>"):e+='<li><span class="acf-rel-item" data-id="'+t.id+'">'+t.text+"</span></li>"),e};return i(t)}});acf.registerFieldType(t)}(jQuery),function(t,e){var i=acf.Field.extend({type:"select",select2:!1,wait:"load",events:{removeField:"onRemove"},$input:function(){return this.$("select")},initialize:function(){var t=this.$input();if(this.inherit(t),this.get("ui")){var e=this.get("ajax_action");e||(e="acf/fields/"+this.get("type")+"/query"),this.select2=acf.newSelect2(t,{field:this,ajax:this.get("ajax"),multiple:this.get("multiple"),placeholder:this.get("placeholder"),allowNull:this.get("allow_null"),ajaxAction:e})}},onRemove:function(){this.select2&&this.select2.destroy()}});acf.registerFieldType(i)}(jQuery),function(a,t){var e="tab",i=acf.Field.extend({type:"tab",wait:"",tabs:!1,tab:!1,findFields:function(){return this.$el.nextUntil(".acf-field-tab",".acf-field")},getFields:function(){return acf.getFields(this.findFields())},findTabs:function(){return this.$el.prevAll(".acf-tab-wrap:first")},findTab:function(){return this.$(".acf-tab-button")},initialize:function(){if(this.$el.is("td"))return!(this.events={});var t=this.findTabs(),e=this.findTab(),i=acf.parseArgs(e.data(),{endpoint:!1,placement:"",before:this.$el});!t.length||i.endpoint?this.tabs=new n(i):this.tabs=t.data("acf"),this.tab=this.tabs.addTab(e,this)},isActive:function(){return this.tab.isActive()},showFields:function(){this.getFields().map(function(t){t.show(this.cid,e),t.hiddenByTab=!1},this)},hideFields:function(){this.getFields().map(function(t){t.hide(this.cid,e),t.hiddenByTab=this.tab},this)},show:function(t){var e=acf.Field.prototype.show.apply(this,arguments);return e&&(this.tab.show(),this.tabs.refresh()),e},hide:function(t){var e=acf.Field.prototype.hide.apply(this,arguments);return e&&(this.tab.hide(),this.isActive()&&this.tabs.reset()),e},enable:function(t){this.getFields().map(function(t){t.enable(e)})},disable:function(t){this.getFields().map(function(t){t.disable(e)})}});acf.registerFieldType(i);var r=0,n=acf.Model.extend({tabs:[],active:!1,actions:{refresh:"onRefresh"},data:{before:!1,placement:"top",index:0,initialized:!1},setup:function(t){a.extend(this.data,t),this.tabs=[],this.active=!1;var e=this.get("placement"),i=this.get("before"),n=i.parent();"left"==e&&n.hasClass("acf-fields")&&n.addClass("-sidebar"),i.is("tr")?this.$el=a('<tr class="acf-tab-wrap"><td colspan="2"><ul class="acf-hl acf-tab-group"></ul></td></tr>'):this.$el=a('<div class="acf-tab-wrap -'+e+'"><ul class="acf-hl acf-tab-group"></ul></div>'),i.before(this.$el),this.set("index",r,!0),r++},initializeTabs:function(){var t=this.getVisible().shift(),e,i,n=(acf.getPreference("this.tabs")||[])[this.get("index")];this.tabs[n]&&this.tabs[n].isVisible()&&(t=this.tabs[n]),t?this.selectTab(t):this.closeTabs(),this.set("initialized",!0)},getVisible:function(){return this.tabs.filter(function(t){return t.isVisible()})},getActive:function(){return this.active},setActive:function(t){return this.active=t},hasActive:function(){return!1!==this.active},isActive:function(t){var e=this.getActive();return e&&e.cid===t.cid},closeActive:function(){this.hasActive()&&this.closeTab(this.getActive())},openTab:function(t){this.closeActive(),t.open(),this.setActive(t)},closeTab:function(t){t.close(),this.setActive(!1)},closeTabs:function(){this.tabs.map(this.closeTab,this)},selectTab:function(e){this.tabs.map(function(t){e.cid!==t.cid&&this.closeTab(t)},this),this.openTab(e)},addTab:function(t,e){var i=a("<li></li>");i.append(t),this.$("ul").append(i);var n=new s({$el:i,field:e,group:this});return this.tabs.push(n),n},reset:function(){return this.closeActive(),this.refresh()},refresh:function(){if(this.hasActive())return!1;var t=this.getVisible().shift();return t&&this.openTab(t),t},onRefresh:function(){if("left"===this.get("placement")){var t=this.$el.parent(),e=this.$el.children("ul"),i=t.is("td")?"height":"min-height",n=e.position().top+e.outerHeight(!0)-1;t.css(i,n)}}}),s=acf.Model.extend({group:!1,field:!1,events:{"click a":"onClick"},index:function(){return this.$el.index()},isVisible:function(){return acf.isVisible(this.$el)},isActive:function(){return this.$el.hasClass("active")},open:function(){this.$el.addClass("active"),this.field.showFields()},close:function(){this.$el.removeClass("active"),this.field.hideFields()},onClick:function(t,e){t.preventDefault(),this.toggle()},toggle:function(){this.isActive()||this.group.openTab(this)}}),o=new acf.Model({priority:50,actions:{prepare:"render",append:"render",unload:"onUnload",invalid_field:"onInvalidField"},findTabs:function(){return a(".acf-tab-wrap")},getTabs:function(){return acf.getInstances(this.findTabs())},render:function(t){this.getTabs().map(function(t){t.get("initialized")||t.initializeTabs()})},onInvalidField:function(t){this.busy||t.hiddenByTab&&(t.hiddenByTab.toggle(),this.busy=!0,this.setTimeout(function(){this.busy=!1},100))},onUnload:function(){var i=[];this.getTabs().map(function(t){var e=t.hasActive()?t.getActive().index():0;i.push(e)}),i.length&&acf.setPreference("this.tabs",i)}})}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"post_object"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"page_link"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"user"});acf.registerFieldType(i)}(jQuery),function(g,t){var e=acf.Field.extend({type:"taxonomy",data:{ftype:"select"},select2:!1,wait:"load",events:{'click a[data-name="add"]':"onClickAdd",'click input[type="radio"]':"onClickRadio"},$control:function(){return this.$(".acf-taxonomy-field")},$input:function(){return this.getRelatedPrototype().$input.apply(this,arguments)},getRelatedType:function(){var t=this.get("ftype");return"multi_select"==t&&(t="select"),t},getRelatedPrototype:function(){return acf.getFieldType(this.getRelatedType()).prototype},getValue:function(){return this.getRelatedPrototype().getValue.apply(this,arguments)},setValue:function(){return this.getRelatedPrototype().setValue.apply(this,arguments)},initialize:function(){this.getRelatedPrototype().initialize.apply(this,arguments)},onRemove:function(){this.select2&&this.select2.destroy()},onClickAdd:function(t,e){var n=this,i=!1,a=!1,r=!1,s=!1,o=!1,c=!1,l=!1,u=function(){i=acf.newPopup({title:e.attr("title"),loading:!0,width:"300px"});var t={action:"acf/fields/taxonomy/add_term",field_key:n.get("key")};g.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"html",success:d})},d=function(t){i.loading(!1),i.content(t),a=i.$("form"),r=i.$('input[name="term_name"]'),s=i.$('select[name="term_parent"]'),o=i.$(".acf-submit-button"),r.focus(),i.on("submit","form",f)},f=function(t,e){if(t.preventDefault(),t.stopImmediatePropagation(),""===r.val())return r.focus(),!1;acf.startButtonLoading(o);var i={action:"acf/fields/taxonomy/add_term",field_key:n.get("key"),term_name:r.val(),term_parent:s.length?s.val():0};g.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),type:"post",
3
+ dataType:"json",success:h})},h=function(t){acf.stopButtonLoading(o),l&&l.remove(),l=acf.isAjaxSuccess(t)?(r.val(""),p(t.data),acf.newNotice({type:"success",text:acf.getAjaxMessage(t),target:a,timeout:2e3,dismiss:!1})):acf.newNotice({type:"error",text:acf.getAjaxError(t),target:a,timeout:2e3,dismiss:!1}),r.focus()},p=function(e){var t=g('<option value="'+e.term_id+'">'+e.term_label+"</option>"),i;e.term_parent?s.children('option[value="'+e.term_parent+'"]').after(t):s.append(t),acf.getFields({type:"taxonomy"}).map(function(t){t.get("taxonomy")==n.get("taxonomy")&&t.appendTerm(e)}),n.selectTerm(e.term_id)};u()},appendTerm:function(t){"select"==this.getRelatedType()?this.appendTermSelect(t):this.appendTermCheckbox(t)},appendTermSelect:function(t){this.select2.addOption({id:t.term_id,text:t.term_label})},appendTermCheckbox:function(t){var e=this.$("[name]:first").attr("name"),i=this.$("ul:first");"checkbox"==this.getRelatedType()&&(e+="[]");var n=g(['<li data-id="'+t.term_id+'">',"<label>",'<input type="'+this.get("ftype")+'" value="'+t.term_id+'" name="'+e+'" /> ',"<span>"+t.term_name+"</span>","</label>","</li>"].join(""));if(t.term_parent){var a=i.find('li[data-id="'+t.term_parent+'"]');(i=a.children("ul")).exists()||(i=g('<ul class="children acf-bl"></ul>'),a.append(i))}i.append(n)},selectTerm:function(t){var e;"select"==this.getRelatedType()?this.select2.selectOption(t):this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")},onClickRadio:function(t,e){var i=e.parent("label"),n=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(e)}(jQuery),function(i,t){var e=acf.models.DatePickerField.extend({type:"time_picker",$control:function(){return this.$(".acf-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),i={timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altTimeFormat:"HH:mm:ss",showButtonPanel:!0,controlType:"select",oneLine:!0,closeText:acf.get("dateTimePickerL10n").selectText,timeOnly:!0,onClose:function(t,e,i){var n=e.dpDiv.find(".ui-datepicker-close");!t&&n.is(":hover")&&i._updateDateTime()}};i=acf.applyFilters("time_picker_args",i,this),acf.newTimePicker(e,i),acf.doAction("time_picker_init",e,i,this)}});acf.registerFieldType(e),acf.newTimePicker=function(t,e){if(void 0===i.timepicker)return!1;e=e||{},t.timepicker(e),i("body > #ui-datepicker-div").exists()&&i("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(t,e){var i=acf.Field.extend({type:"true_false",events:{"change .acf-switch-input":"onChange","focus .acf-switch-input":"onFocus","blur .acf-switch-input":"onBlur","keypress .acf-switch-input":"onKeypress"},$input:function(){return this.$('input[type="checkbox"]')},$switch:function(){return this.$(".acf-switch")},getValue:function(){return this.$input().prop("checked")?1:0},initialize:function(){this.render()},render:function(){var t=this.$switch();if(t.length){var e=t.children(".acf-switch-on"),i=t.children(".acf-switch-off"),n=Math.max(e.width(),i.width());n&&(e.css("min-width",n),i.css("min-width",n))}},switchOn:function(){this.$input().prop("checked",!0),this.$switch().addClass("-on")},switchOff:function(){this.$input().prop("checked",!1),this.$switch().removeClass("-on")},onChange:function(t,e){e.prop("checked")?this.switchOn():this.switchOff()},onFocus:function(t,e){this.$switch().addClass("-focus")},onBlur:function(t,e){this.$switch().removeClass("-focus")},onKeypress:function(t,e){return 37===t.keyCode?this.switchOff():39===t.keyCode?this.switchOn():void 0}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"url",events:{'keyup input[type="url"]':"onkeyup"},$control:function(){return this.$(".acf-input-wrap")},$input:function(){return this.$('input[type="url"]')},initialize:function(){this.render()},isValid:function(){var t=this.val();return!!t&&(-1!==t.indexOf("://")||0===t.indexOf("//"))},render:function(){this.isValid()?this.$control().addClass("-valid"):this.$control().removeClass("-valid")},onkeyup:function(t,e){this.render()}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"wysiwyg",wait:"load",events:{"mousedown .acf-editor-wrap.delay":"onMousedown",sortstartField:"disableEditor",sortstopField:"enableEditor",removeField:"disableEditor"},$control:function(){return this.$(".acf-editor-wrap")},$input:function(){return this.$("textarea")},getMode:function(){return this.$control().hasClass("tmce-active")?"visual":"text"},initialize:function(){this.$control().hasClass("delay")||this.initializeEditor()},initializeEditor:function(){var t=this.$control(),e=this.$input(),i={tinymce:!0,quicktags:!0,toolbar:this.get("toolbar"),mode:this.getMode(),field:this},n=e.attr("id"),a=acf.uniqueId("acf-editor-"),r=e.data();acf.rename({target:t,search:n,replace:a,destructive:!0}),this.set("id",a,!0),acf.tinymce.initialize(a,i),this.$input().data(r)},onMousedown:function(t){t.preventDefault();var e=this.$control();e.removeClass("delay"),e.find(".acf-editor-toolbar").remove(),this.initializeEditor()},enableEditor:function(){"visual"==this.getMode()&&acf.tinymce.enable(this.get("id"))},disableEditor:function(){acf.tinymce.destroy(this.get("id"))}});acf.registerFieldType(i)}(jQuery),function(e,t){var s=[];acf.Condition=acf.Model.extend({type:"",operator:"==",label:"",choiceType:"input",fieldTypes:[],data:{conditions:!1,field:!1,rule:{}},events:{change:"change",keyup:"change",enableField:"change",disableField:"change"},setup:function(t){e.extend(this.data,t)},getEventTarget:function(t,e){return t||this.get("field").$el},change:function(t,e){this.get("conditions").change(t)},match:function(t,e){return!1},calculate:function(){return this.match(this.get("rule"),this.get("field"))},choices:function(t){return'<input type="text" />'}}),acf.newCondition=function(t,e){var i=e.get("field"),n=i.getField(t.field);if(!i||!n)return!1;var a={rule:t,target:i,conditions:e,field:n},r=n.get("type"),s=t.operator,o,c,l;return new(acf.getConditionTypes({fieldType:r,operator:s})[0]||acf.Condition)(a)};var a=function(t){return acf.strPascalCase(t||"")+"Condition"};acf.registerConditionType=function(t){var e,i=t.prototype.type,n=a(i);acf.models[n]=t,s.push(i)},acf.getConditionType=function(t){var e=a(t);return acf.models[e]||!1},acf.registerConditionForFieldType=function(t,e){var i=acf.getConditionType(t);i&&i.prototype.fieldTypes.push(e)},acf.getConditionTypes=function(a){a=acf.parseArgs(a,{fieldType:"",operator:""});var r=[];return s.map(function(t){var e=acf.getConditionType(t),i=e.prototype.fieldTypes,n=e.prototype.operator;a.fieldType&&-1===i.indexOf(a.fieldType)||a.operator&&n!==a.operator||r.push(e)}),r}}(jQuery),function(t,e){var i="conditional_logic",n=new acf.Model({id:"conditionsManager",priority:20,actions:{new_field:"onNewField"},onNewField:function(t){t.has("conditions")&&t.getConditions().render()}}),a=function(t,e){var i=acf.getFields({key:e,sibling:t.$el,suppressFilters:!0});return i.length||(i=acf.getFields({key:e,parent:t.$el.parent(),suppressFilters:!0})),!!i.length&&i[0]};acf.Field.prototype.getField=function(t){var e=a(this,t);if(e)return e;for(var i=this.parents(),n=0;n<i.length;n++)if(e=a(i[n],t))return e;return!1};var r=!(acf.Field.prototype.getConditions=function(){return this.conditions||(this.conditions=new s(this)),this.conditions}),s=acf.Model.extend({id:"Conditions",data:{field:!1,timeStamp:!1,groups:[]},setup:function(t){var e=(this.data.field=t).get("conditions");e instanceof Array?e[0]instanceof Array?e.map(function(t,e){this.addRules(t,e)},this):this.addRules(e):this.addRule(e)},change:function(t){if(this.get("timeStamp")===t.timeStamp)return!1;this.set("timeStamp",t.timeStamp,!0);var e=this.render()},render:function(){return this.calculate()?this.show():this.hide()},show:function(){return this.get("field").showEnable(this.cid,i)},hide:function(){return this.get("field").hideDisable(this.cid,i)},calculate:function(){var i=!1;return this.getGroups().map(function(t){var e;i||t.filter(function(t){return t.calculate()}).length==t.length&&(i=!0)}),i},hasGroups:function(){return null!=this.data.groups},getGroups:function(){return this.data.groups},addGroup:function(){var t=[];return this.data.groups.push(t),t},hasGroup:function(t){return null!=this.data.groups[t]},getGroup:function(t){return this.data.groups[t]},removeGroup:function(t){return this.data.groups[t].delete,this},addRules:function(t,e){t.map(function(t){this.addRule(t,e)},this)},addRule:function(t,e){var i;e=e||0,i=this.hasGroup(e)?this.getGroup(e):this.addGroup();var n=acf.newCondition(t,this);if(!n)return!1;i.push(n)},hasRule:function(){},getRule:function(t,e){return t=t||0,e=e||0,this.data.groups[e][t]},removeRule:function(){}})}(jQuery),function(n,t){var a=acf.__,r=function(t){return t?""+t:""},s=function(t,e){return r(t).toLowerCase()===r(e).toLowerCase()},i=function(t,e){return parseFloat(t)===parseFloat(e)},o=function(t,e){return parseFloat(t)>parseFloat(e)},c=function(t,e){return parseFloat(t)<parseFloat(e)},l=function(t,e){return-1<(e=e.map(function(t){return r(t)})).indexOf(t)},u=function(t,e){return-1<r(t).indexOf(r(e))},d=function(t,e){var i=new RegExp(r(e),"gi");return r(t).match(i)},f=acf.Condition.extend({type:"hasValue",operator:"!=empty",label:a("Has any value"),fieldTypes:["text","textarea","number","range","email","url","password","image","file","wysiwyg","oembed","select","checkbox","radio","button_group","link","post_object","page_link","relationship","taxonomy","user","google_map","date_picker","date_time_picker","time_picker","color_picker"],match:function(t,e){return!!e.val()},choices:function(t){return'<input type="text" disabled="" />'}});acf.registerConditionType(f);var e=f.extend({type:"hasNoValue",operator:"==empty",label:a("Has no value"),match:function(t,e){return!f.prototype.match.apply(this,arguments)}});acf.registerConditionType(e);var h=acf.Condition.extend({type:"equalTo",operator:"==",label:a("Value is equal to"),fieldTypes:["text","textarea","number","range","email","url","password"],match:function(t,e){return n.isNumeric(t.value)?i(t.value,e.val()):s(t.value,e.val())},choices:function(t){return'<input type="text" />'}});acf.registerConditionType(h);var p=h.extend({type:"notEqualTo",operator:"!=",label:a("Value is not equal to"),match:function(t,e){return!h.prototype.match.apply(this,arguments)}});acf.registerConditionType(p);var g=acf.Condition.extend({type:"patternMatch",operator:"==pattern",label:a("Value matches pattern"),fieldTypes:["text","textarea","email","url","password","wysiwyg"],match:function(t,e){return d(e.val(),t.value)},choices:function(t){return'<input type="text" placeholder="[a-z0-9]" />'}});acf.registerConditionType(g);var m=acf.Condition.extend({type:"contains",operator:"==contains",label:a("Value contains"),fieldTypes:["text","textarea","number","email","url","password","wysiwyg","oembed","select"],match:function(t,e){return u(e.val(),t.value)},choices:function(t){return'<input type="text" />'}});acf.registerConditionType(m);var v=h.extend({type:"trueFalseEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:a("Checked")}]}});acf.registerConditionType(v);var y=p.extend({type:"trueFalseNotEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:a("Checked")}]}});acf.registerConditionType(y);var b=acf.Condition.extend({type:"selectEqualTo",operator:"==",label:a("Value is equal to"),fieldTypes:["select","checkbox","radio","button_group"],match:function(t,e){var i=e.val();return i instanceof Array?l(t.value,i):s(t.value,i)},choices:function(t){var e=[],i=t.$setting("choices textarea").val().split("\n");return t.$input("allow_null").prop("checked")&&e.push({id:"",text:a("Null")}),i.map(function(t){(t=t.split(":"))[1]=t[1]||t[0],e.push({id:n.trim(t[0]),text:n.trim(t[1])})}),e}});acf.registerConditionType(b);var x=b.extend({type:"selectNotEqualTo",operator:"!=",label:a("Value is not equal to"),match:function(t,e){return!b.prototype.match.apply(this,arguments)}});acf.registerConditionType(x);var w=acf.Condition.extend({type:"greaterThan",operator:">",label:a("Value is greater than"),fieldTypes:["number","range"],match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),o(i,t.value)},choices:function(t){return'<input type="number" />'}});acf.registerConditionType(w);var _=w.extend({type:"lessThan",operator:"<",label:a("Value is less than"),match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),c(i,t.value)},choices:function(t){return'<input type="number" />'}});acf.registerConditionType(_);var $=w.extend({type:"selectionGreaterThan",label:a("Selection is greater than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType($);var k=_.extend({type:"selectionLessThan",label:a("Selection is less than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(k)}(jQuery),function(s,n){acf.newMediaPopup=function(t){var e=null,t=acf.parseArgs(t,{mode:"select",title:"",button:"",type:"",field:!1,allowedTypes:"",library:"all",multiple:!1,attachment:0,autoOpen:!0,open:function(){},select:function(){},close:function(){}});return e="edit"==t.mode?new acf.models.EditMediaPopup(t):new acf.models.SelectMediaPopup(t),t.autoOpen&&setTimeout(function(){e.open()},1),acf.doAction("new_media_popup",e),e};var e=function(){var t=acf.get("post_id");return s.isNumeric(t)?t:0};acf.getMimeTypes=function(){return this.get("mimeTypes")},acf.getMimeType=function(t){var e=acf.getMimeTypes();if(e[t]!==n)return e[t];for(var i in e)if(-1!==i.indexOf(t))return e[i];return!1};var i=acf.Model.extend({id:"MediaPopup",data:{},defaults:{},frame:!1,setup:function(t){s.extend(this.data,t)},initialize:function(){var t=this.getFrameOptions();this.addFrameStates(t);var e=wp.media(t);(e.acf=this).addFrameEvents(e,t),this.frame=e},open:function(){this.frame.open()},close:function(){this.frame.close()},remove:function(){this.frame.detach(),this.frame.remove()},getFrameOptions:function(){var t={title:this.get("title"),multiple:this.get("multiple"),library:{},states:[]};return this.get("type")&&(t.library.type=this.get("type")),"uploadedTo"===this.get("library")&&(t.library.uploadedTo=e()),this.get("attachment")&&(t.library.post__in=[this.get("attachment")]),this.get("button")&&(t.button={text:this.get("button")}),t},addFrameStates:function(t){var e=wp.media.query(t.library);this.get("field")&&acf.isset(e,"mirroring","args")&&(e.mirroring.args._acfuploader=this.get("field")),t.states.push(new wp.media.controller.Library({library:e,multiple:this.get("multiple"),title:this.get("title"),priority:20,filterable:"all",editable:!0,allowLocalEdits:!0})),acf.isset(wp,"media","controller","EditImage")&&t.states.push(new wp.media.controller.EditImage)},addFrameEvents:function(i,t){i.on("open",function(){this.$el.closest(".media-modal").addClass("acf-media-modal -"+this.acf.get("mode"))},i),i.on("content:render:edit-image",function(){var t=this.state().get("image"),e=new wp.media.view.EditImage({model:t,controller:this}).render();this.content.set(e),e.loadEditor()},i),i.on("select",function(){var t=i.state().get("selection");t&&t.each(function(t,e){i.acf.get("select").apply(i.acf,[t,e])})}),i.on("close",function(){setTimeout(function(){i.acf.get("close").apply(i.acf),i.acf.remove()},1)})}});acf.models.SelectMediaPopup=i.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Select","verb")),i.prototype.setup.apply(this,arguments)},addFrameEvents:function(e,t){acf.isset(_wpPluploadSettings,"defaults","multipart_params")&&(_wpPluploadSettings.defaults.multipart_params._acfuploader=this.get("field"),e.on("open",function(){delete _wpPluploadSettings.defaults.multipart_params._acfuploader})),e.on("content:activate:browse",function(){var t=!1;try{t=e.content.get().toolbar}catch(t){return void console.log(t)}e.acf.customizeFilters.apply(e.acf,[t])}),i.prototype.addFrameEvents.apply(this,arguments)},customizeFilters:function(t){var n=t.get("filters"),e;("image"==this.get("type")&&(n.filters.all.text=acf.__("All images"),delete n.filters.audio,delete n.filters.video,delete n.filters.image,s.each(n.filters,function(t,e){e.props.type=e.props.type||"image"})),this.get("allowedTypes"))&&this.get("allowedTypes").split(" ").join("").split(".").join("").split(",").map(function(t){var e=acf.getMimeType(t);if(e){var i={text:e,props:{status:null,type:e,uploadedTo:null,orderby:"date",order:"DESC"},priority:20};n.filters[e]=i}});if("uploadedTo"===this.get("library")){var i=this.frame.options.library.uploadedTo;delete n.filters.unattached,delete n.filters.uploaded,s.each(n.filters,function(t,e){e.text+=" ("+acf.__("Uploaded to this post")+")",e.props.uploadedTo=i})}var a=this.get("field"),r;s.each(n.filters,function(t,e){e.props._acfuploader=a}),t.get("search").model.attributes._acfuploader=a,n.renderFilters&&n.renderFilters()}}),acf.models.EditMediaPopup=i.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Update","verb")),i.prototype.setup.apply(this,arguments)},addFrameEvents:function(n,t){n.on("open",function(){this.$el.closest(".media-modal").addClass("acf-expanded"),"browse"!=this.content.mode()&&this.content.mode("browse");var t,e=this.state().get("selection"),i=wp.media.attachment(n.acf.get("attachment"));e.add(i)},n),i.prototype.addFrameEvents.apply(this,arguments)}});var t=new acf.Model({id:"customizePrototypes",wait:"ready",initialize:function(){if(acf.isset(window,"wp","media","view")){var t=e();t&&acf.isset(wp,"media","view","settings","post")&&(wp.media.view.settings.post.id=t),this.customizeAttachmentsRouter(),this.customizeAttachmentFilters(),this.customizeAttachmentCompat(),this.customizeAttachmentLibrary()}},customizeAttachmentsRouter:function(){if(acf.isset(wp,"media","view","Router")){var t=wp.media.view.Router;wp.media.view.Router=t.extend({addExpand:function(){var t=s(['<a href="#" class="acf-expand-details">','<span class="is-closed"><span class="acf-icon -left small grey"></span>'+acf.__("Expand Details")+"</span>",'<span class="is-open"><span class="acf-icon -right small grey"></span>'+acf.__("Collapse Details")+"</span>","</a>"].join(""));t.on("click",function(t){t.preventDefault();var e=s(this).closest(".media-modal");e.hasClass("acf-expanded")?e.removeClass("acf-expanded"):e.addClass("acf-expanded")}),this.$el.append(t)},initialize:function(){return t.prototype.initialize.apply(this,arguments),this.addExpand(),this}})}},customizeAttachmentFilters:function(){var t;acf.isset(wp,"media","view","AttachmentFilters","All")&&(wp.media.view.AttachmentFilters.All.prototype.renderFilters=function(){this.$el.html(_.chain(this.filters).map(function(t,e){return{el:s("<option></option>").val(e).html(t.text)[0],priority:t.priority||50}},this).sortBy("priority").pluck("el").value())})},customizeAttachmentCompat:function(){if(acf.isset(wp,"media","view","AttachmentCompat")){var t=wp.media.view.AttachmentCompat,e=!1;wp.media.view.AttachmentCompat=t.extend({render:function(){return this.rendered?this:(t.prototype.render.apply(this,arguments),this.$("#acf-form-data").length&&(clearTimeout(e),e=setTimeout(s.proxy(function(){this.rendered=!0,acf.doAction("append",this.$el)},this),50)),this)},save:function(t){var e={};t&&t.preventDefault(),e=acf.serializeForAjax(this.$el),this.controller.trigger("attachment:compat:waiting",["waiting"]),this.model.saveCompat(e).always(_.bind(this.postSave,this))}})}},customizeAttachmentLibrary:function(){if(acf.isset(wp,"media","view","Attachment","Library")){var l=wp.media.view.Attachment.Library;wp.media.view.Attachment.Library=l.extend({render:function(){var t=acf.isget(this,"controller","acf"),e=acf.isget(this,"model","attributes");if(t&&e){e.acf_errors&&this.$el.addClass("acf-disabled");var i=t.get("selected");i&&-1<i.indexOf(e.id)&&this.$el.addClass("acf-selected")}return l.prototype.render.apply(this,arguments)},toggleSelection:function(t){var e=this.collection,i=this.options.selection,n=this.model,a=i.single(),r=this.controller,s=acf.isget(this,"model","attributes","acf_errors"),o=r.$el.find(".media-frame-content .media-sidebar");if(o.children(".acf-selection-error").remove(),o.children().removeClass("acf-hidden"),r&&s){var c=acf.isget(this,"model","attributes","filename");return o.children().addClass("acf-hidden"),o.prepend(['<div class="acf-selection-error">','<span class="selection-error-label">'+acf.__("Restricted")+"</span>",'<span class="selection-error-filename">'+c+"</span>",'<span class="selection-error-message">'+s+"</span>","</div>"].join("")),i.reset(),void i.single(n)}return l.prototype.toggleSelection.apply(this,arguments)}})}}})}(jQuery),function(h,n){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"},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=h("#page_template");return t.length?t.val():null},getPageParent:function(t,e){var e;return(e=h("#parent_id")).length?e.val():null},getPageType:function(t,e){return this.getPageParent()?"child":"parent"},getPostType:function(){return h("#post_type").val()},getPostFormat:function(t,e){var e;if((e=h("#post-formats-select input:checked")).length){var i=e.val();return"0"==i?"standard":i}return null},getPostCoreTerms:function(){var t={},e=acf.serialize(h(".categorydiv, .tagsdiv"));for(var i in e.tax_input&&(t=e.tax_input),e.post_category&&(t.category=e.post_category),t)acf.isArray(t[i])||(t[i]=t[i].split(", "));return t},getPostTerms:function(){var n=this.getPostCoreTerms();for(var t in acf.getFields({type:"taxonomy"}).map(function(t){if(t.get("save")){var e=t.val(),i=t.get("taxonomy");e&&(n[i]=n[i]||[],e=acf.isArray(e)?e:[e],n[i]=n[i].concat(e))}}),null!==(productType=this.getProductType())&&(n.product_type=[productType]),n)n[t]=acf.uniqueArray(n[t]);return n},getProductType:function(){var t=h("#product-type");return t.length?t.val():null},check:function(){if("post"===acf.get("screen")){this.xhr&&this.xhr.abort();var e=acf.parseArgs(this.data,{action:"acf/ajax/check_screen",screen:acf.get("screen"),exists:[]});this.isPost()&&(e.post_id=acf.get("post_id")),null!==(postType=this.getPostType())&&(e.post_type=postType),null!==(pageTemplate=this.getPageTemplate())&&(e.page_template=pageTemplate),null!==(pageParent=this.getPageParent())&&(e.page_parent=pageParent),null!==(pageType=this.getPageType())&&(e.page_type=pageType),null!==(postFormat=this.getPostFormat())&&(e.post_format=postFormat),null!==(postTerms=this.getPostTerms())&&(e.post_terms=postTerms),acf.getPostboxes().map(function(t){e.exists.push(t.get("key"))}),e=acf.applyFilters("check_screen_args",e);var t=function(t){acf.isAjaxSuccess(t)&&("post"==acf.get("screen")?this.renderPostScreen(t.data):"user"==acf.get("screen")&&this.renderUserScreen(t.data)),acf.doAction("check_screen_complete",t.data,e)};this.xhr=h.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:t})}},onChange:function(t,e){this.setTimeout(this.check,1)},renderPostScreen:function(l){var u=[],d=function(t,e){var i=h._data(t[0]).events;for(var n in i)for(var a=0;a<i[n].length;a++)e.on(n,i[n][a].handler)},f=function(t,e){var i=e.indexOf(t);if(-1==i)return!1;for(var n=i-1;0<=n;n--)if(h("#"+e[n]).length)return h("#"+e[n]).after(h("#"+t));for(var n=i+1;n<e.length;n++)if(h("#"+e[n]).length)return h("#"+e[n]).before(h("#"+t));return!1};l.results.map(function(e,t){var i=acf.getPostbox(e.id);if(!i){var n=h(['<div id="'+e.id+'" class="postbox">','<button type="button" class="handlediv" aria-expanded="false">','<span class="screen-reader-text">Toggle panel: '+e.title+"</span>",'<span class="toggle-indicator" aria-hidden="true"></span>',"</button>",'<h2 class="hndle ui-sortable-handle">',"<span>"+e.title+"</span>","</h2>",'<div class="inside">',e.html,"</div>","</div>"].join(""));if(h("#adv-settings").length){var a=h("#adv-settings .metabox-prefs"),r=h(['<label for="'+e.id+'-hide">','<input class="hide-postbox-tog" name="'+e.id+'-hide" type="checkbox" id="'+e.id+'-hide" value="'+e.id+'" checked="checked">'," "+e.title,"</label>"].join(""));d(a.find("input").first(),r.find("input")),a.append(r)}"side"===e.position?h("#"+e.position+"-sortables").append(n):h("#"+e.position+"-sortables").prepend(n);var s=[];if(l.results.map(function(t){e.position===t.position&&h("#"+e.position+"-sortables #"+t.id).length&&s.push(t.id)}),f(e.id,s),l.sorted)for(var o in l.sorted){var s=l.sorted[o].split(",");if(f(e.id,s))break}var c=h("#submitdiv");h("#submitdiv").length&&(d(c.children(".handlediv"),n.children(".handlediv")),d(c.children(".hndle"),n.children(".hndle"))),i=acf.newPostbox(e),acf.doAction("append",n),acf.doAction("append_postbox",i)}i.showEnable(),acf.doAction("show_postbox",i),u.push(e.id)}),acf.getPostboxes().map(function(t){-1===u.indexOf(t.get("id"))&&(t.hideDisable(),acf.doAction("hide_postbox",t))}),h("#acf-style").html(l.style)},renderUserScreen:function(t){}});var t=new acf.Model({wait:"load",initialize:function(){acf.isGutenberg()&&(wp.data.subscribe(this.proxy(this.onChange)),acf.screen.getPageTemplate=this.getPageTemplate,acf.screen.getPageParent=this.getPageParent,acf.screen.getPostType=this.getPostType,acf.screen.getPostFormat=this.getPostFormat,acf.screen.getPostCoreTerms=this.getPostCoreTerms,this.addAction("append_postbox",acf.screen.refreshAvailableMetaBoxesPerLocation))},onChange:function(){var e=wp.data.select("core/editor").getPostEdits(),i=["template","parent","format"],t;(wp.data.select("core").getTaxonomies()||[]).map(function(t){i.push(t.rest_base)}),(i=i.filter(this.proxy(function(t){return e[t]!==n&&e[t]!==this.get(t)}))).length&&this.triggerChange(e)},triggerChange:function(t){t!==n&&(this.data=t),acf.screen.check()},getPageTemplate:function(){return wp.data.select("core/editor").getEditedPostAttribute("template")},getPageParent:function(t,e){return wp.data.select("core/editor").getEditedPostAttribute("parent")},getPostType:function(){return wp.data.select("core/editor").getEditedPostAttribute("type")},getPostFormat:function(t,e){return wp.data.select("core/editor").getEditedPostAttribute("format")},getPostCoreTerms:function(){var i={},t;return(wp.data.select("core").getTaxonomies()||[]).map(function(t){var e=wp.data.select("core/editor").getEditedPostAttribute(t.rest_base);e&&(i[t.slug]=e)}),i}});acf.screen.refreshAvailableMetaBoxesPerLocation=function(){var e=wp.data.select("core/edit-post"),t=wp.data.dispatch("core/edit-post"),i={};e.getActiveMetaBoxLocations().map(function(t){i[t]=e.getMetaBoxesPerLocation(t)});var n=[];for(var a in i)n=n.concat(i[a].map(function(t){return t.id}));acf.getPostboxes().map(function(t){if(-1===n.indexOf(t.get("id"))){var e=t.$el.closest("form").attr("class").replace("metabox-location-","");i[e]=i[e]||[],i[e].push({id:t.get("id"),title:t.get("title")})}}),t.setAvailableMetaBoxesPerLocation(i)}}(jQuery),function(l,t){function a(){return acf.isset(window,"jQuery","fn","select2","amd")?4:!!acf.isset(window,"Select2")&&3}acf.newSelect2=function(t,e){if(e=acf.parseArgs(e,{allowNull:!1,placeholder:"",multiple:!1,field:!1,ajax:!1,ajaxAction:"",ajaxData:function(t){return t},ajaxResults:function(t){return t}}),4==a())var i=new r(t,e);else var i=new s(t,e);return acf.doAction("new_select2",i),i};var n=acf.Model.extend({setup:function(t,e){l.extend(this.data,e),this.$el=t},initialize:function(){},selectOption:function(t){var e=this.getOption(t);e.prop("selected")||e.prop("selected",!0).trigger("change")},unselectOption:function(t){var e=this.getOption(t);e.prop("selected")&&e.prop("selected",!1).trigger("change")},getOption:function(t){return this.$('option[value="'+t+'"]')},addOption:function(t){t=acf.parseArgs(t,{id:"",text:"",selected:!1});var e=this.getOption(t.id);return e.length||((e=l("<option></option>")).html(t.text),e.attr("value",t.id),e.prop("selected",t.selected),this.$el.append(e)),e},getValue:function(){var e=[],t=this.$el.find("option:selected");return t.exists()&&(t=t.sort(function(t,e){return+t.getAttribute("data-i")-+e.getAttribute("data-i")})).each(function(){var t=l(this);e.push({$el:t,id:t.attr("value"),text:t.text()})}),e},mergeOptions:function(){},getChoices:function(){var i=function(t){var e=[];return t.children().each(function(){var t=l(this);t.is("optgroup")?e.push({text:t.attr("label"),children:i(t)}):e.push({id:t.attr("value"),text:t.text()})}),e};return i(this.$el)},decodeChoices:function(t){var e=function(t){return t.map(function(t){return t.text=acf.decode(t.text),t.children&&(t.children=e(t.children)),t}),t};return e(t)},getAjaxData:function(t){var e={action:this.get("ajaxAction"),s:t.term||"",paged:t.page||1},i=this.get("field");i&&(e.field_key=i.get("key"));var n=this.get("ajaxData");return n&&(e=n.apply(this,[e,t])),e=acf.applyFilters("select2_ajax_data",e,this.data,this.$el,i||!1,this),acf.prepareForAjax(e)},getAjaxResults:function(t,e){(t=acf.parseArgs(t,{results:!1,more:!1})).results&&(t.results=this.decodeChoices(t.results));var i=this.get("ajaxResults");return i&&(t=i.apply(this,[t,e])),t=acf.applyFilters("select2_ajax_results",t,e,this)},processAjaxResults:function(t,e){var t;return(t=this.getAjaxResults(t,e)).more&&(t.pagination={more:!0}),setTimeout(l.proxy(this.mergeOptions,this),1),t},destroy:function(){this.$el.data("select2")&&this.$el.select2("destroy"),this.$el.siblings(".select2-container").remove()}}),r=n.extend({initialize:function(){var e=this.$el,t={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),multiple:this.get("multiple"),data:[],escapeMarkup:function(t){return t}};t.multiple&&this.getValue().map(function(t){t.$el.detach().appendTo(e)}),e.removeData("ajax"),e.removeAttr("data-ajax"),this.get("ajax")&&(t.ajax={url:acf.get("ajaxurl"),delay:250,dataType:"json",type:"post",cache:!1,data:l.proxy(this.getAjaxData,this),processResults:l.proxy(this.processAjaxResults,this)});var i=this.get("field");t=acf.applyFilters("select2_args",t,e,this.data,i||!1,this),e.select2(t);var n=e.next(".select2-container");if(t.multiple){var a=n.find("ul");a.sortable({stop:function(t){a.find(".select2-selection__choice").each(function(){var t;l(l(this).data("data").element).detach().appendTo(e)}),e.trigger("change")}}),e.on("select2:select",this.proxy(function(t){this.getOption(t.params.data.id).detach().appendTo(this.$el)}))}n.addClass("-acf"),acf.doAction("select2_init",e,t,this.data,i||!1,this)},mergeOptions:function(){var i=!1,n=!1;l('.select2-results__option[role="group"]').each(function(){var t=l(this).children("ul"),e=l(this).children("strong");if(n&&n.text()===e.text())return i.append(t.children()),void l(this).remove();i=t,n=e})}}),s=n.extend({initialize:function(){var n=this.$el,i=this.getValue(),a=this.get("multiple"),t={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),separator:"||",multiple:this.get("multiple"),data:this.getChoices(),escapeMarkup:function(t){return t},dropdownCss:{"z-index":"999999999"},initSelection:function(t,e){e(a?i:i.shift())}},e=n.siblings("input");e.length||(e=l('<input type="hidden" />'),n.before(e)),inputValue=i.map(function(t){return t.id}).join("||"),e.val(inputValue
4
+ ),t.multiple&&i.map(function(t){t.$el.detach().appendTo(n)}),t.allowClear&&(t.data=t.data.filter(function(t){return""!==t.id})),n.removeData("ajax"),n.removeAttr("data-ajax"),this.get("ajax")&&(t.ajax={url:acf.get("ajaxurl"),quietMillis:250,dataType:"json",type:"post",cache:!1,data:l.proxy(this.getAjaxData,this),results:l.proxy(this.processAjaxResults,this)});var r=this.get("field");t=acf.applyFilters("select2_args",t,n,this.data,r||!1,this),e.select2(t);var s=e.select2("container"),o=l.proxy(this.getOption,this);if(t.multiple){var c=s.find("ul");c.sortable({stop:function(){c.find(".select2-search-choice").each(function(){var t=l(this).data("select2Data"),e;o(t.id).detach().appendTo(n)}),n.trigger("change")}})}e.on("select2-selecting",function(t){var e=t.choice,i=o(e.id);i.length||(i=l('<option value="'+e.id+'">'+e.text+"</option>")),i.detach().appendTo(n)}),s.addClass("-acf"),acf.doAction("select2_init",n,t,this.data,r||!1,this),e.on("change",function(){var t=e.val();t.indexOf("||")&&(t=t.split("||")),n.val(t).trigger("change")}),n.hide()},mergeOptions:function(){var i=!1,n=!1;l("#select2-drop .select2-result-with-children").each(function(){var t=l(this).children("ul"),e=l(this).children(".select2-result-label");if(n&&n.text()===e.text())return n.append(t.children()),void l(this).remove();i=t,n=e})},getAjaxData:function(t,e){var i={term:t,page:e};return n.prototype.getAjaxData.apply(this,[i])}}),e=new acf.Model({priority:5,wait:"prepare",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("select2L10n"),n=a();return!!i&&(0!==t.indexOf("en")&&void(4==n?this.addTranslations4():3==n&&this.addTranslations3()))},addTranslations4:function(){var i=acf.get("select2L10n"),t=acf.get("locale");t=t.replace("_","-");var e={errorLoading:function(){return i.load_fail},inputTooLong:function(t){var e=t.input.length-t.maximum;return 1<e?i.input_too_long_n.replace("%d",e):i.input_too_long_1},inputTooShort:function(t){var e=t.minimum-t.input.length;return 1<e?i.input_too_short_n.replace("%d",e):i.input_too_short_1},loadingMore:function(){return i.load_more},maximumSelected:function(t){var e=t.maximum;return 1<e?i.selection_too_long_n.replace("%d",e):i.selection_too_long_1},noResults:function(){return i.matches_0},searching:function(){return i.searching}};jQuery.fn.select2.amd.define("select2/i18n/"+t,[],function(){return e})},addTranslations3:function(){var n=acf.get("select2L10n"),t=acf.get("locale");t=t.replace("_","-");var e={formatMatches:function(t){return 1<t?n.matches_n.replace("%d",t):n.matches_1},formatNoMatches:function(){return n.matches_0},formatAjaxError:function(){return n.load_fail},formatInputTooShort:function(t,e){var i=e-t.length;return 1<i?n.input_too_short_n.replace("%d",i):n.input_too_short_1},formatInputTooLong:function(t,e){var i=t.length-e;return 1<i?n.input_too_long_n.replace("%d",i):n.input_too_long_1},formatSelectionTooBig:function(t){return 1<t?n.selection_too_long_n.replace("%d",t):n.selection_too_long_1},formatLoadMore:function(){return n.load_more},formatSearching:function(){return n.searching}};l.fn.select2.locales=l.fn.select2.locales||{},l.fn.select2.locales[t]=e,l.extend(l.fn.select2.defaults,e)}})}(jQuery),function(f,t){acf.tinymce={defaults:function(){return"undefined"!=typeof tinyMCEPreInit&&{tinymce:tinyMCEPreInit.mceInit.acf_content,quicktags:tinyMCEPreInit.qtInit.acf_content};var t},initialize:function(t,e){(e=acf.parseArgs(e,{tinymce:!0,quicktags:!0,toolbar:"full",mode:"visual",field:!1})).tinymce&&this.initializeTinymce(t,e),e.quicktags&&this.initializeQuicktags(t,e)},initializeTinymce:function(t,e){var i=f("#"+t),n=this.defaults(),a=acf.get("toolbars"),r=e.field||!1,s=r.$el||!1;if("undefined"==typeof tinymce)return!1;if(!n)return!1;if(tinymce.get(t))return this.enable(t);var o=f.extend({},n.tinymce,e.tinymce);o.id=t,o.selector="#"+t;var c=e.toolbar;if(c&&a&&a[c])for(var l=1;l<=4;l++)o["toolbar"+l]=a[c][l]||"";if(o.setup=function(e){e.on("change",function(t){e.save(),i.trigger("change")}),f(e.getWin()).on("unload",function(){acf.tinymce.remove(t)})},o.wp_autoresize_on=!1,o=acf.applyFilters("wysiwyg_tinymce_settings",o,t,r),tinyMCEPreInit.mceInit[t]=o,"visual"==e.mode){var u=tinymce.init(o),d=tinymce.get(t);if(!d)return!1;d.acf=e.field,acf.doAction("wysiwyg_tinymce_init",d,d.id,o,r)}},initializeQuicktags:function(t,e){var i=this.defaults();if("undefined"==typeof quicktags)return!1;if(!i)return!1;var n=f.extend({},i.quicktags,e.quicktags);n.id=t;var a=e.field||!1,r=a.$el||!1;n=acf.applyFilters("wysiwyg_quicktags_settings",n,n.id,a),tinyMCEPreInit.qtInit[t]=n;var s=quicktags(n);if(!s)return!1;this.buildQuicktags(s),acf.doAction("wysiwyg_quicktags_init",s,s.id,n,a)},buildQuicktags:function(t){var e,i,n,a,r,t,s,o,c,l,u=",strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,";for(o in e=t.canvas,i=t.name,n=t.settings,a={},c=r="",l=t.id,n.buttons&&(c=","+n.buttons+","),edButtons)edButtons[o]&&(s=edButtons[o].id,c&&-1!==u.indexOf(","+s+",")&&-1===c.indexOf(","+s+",")||edButtons[o].instance&&edButtons[o].instance!==l||(a[s]=edButtons[o],edButtons[o].html&&(r+=edButtons[o].html(i+"_"))));c&&-1!==c.indexOf(",dfw,")&&(a.dfw=new QTags.DFWButton,r+=a.dfw.html(i+"_")),"rtl"===document.getElementsByTagName("html")[0].dir&&(a.textdirection=new QTags.TextDirectionButton,r+=a.textdirection.html(i+"_")),t.toolbar.innerHTML=r,t.theButtons=a,"undefined"!=typeof jQuery&&jQuery(document).triggerHandler("quicktags-init",[t])},disable:function(t){this.destroyTinymce(t)},remove:function(t){this.destroyTinymce(t)},destroy:function(t){this.destroyTinymce(t)},destroyTinymce:function(t){if("undefined"==typeof tinymce)return!1;var e=tinymce.get(t);return!!e&&(e.save(),e.destroy(),!0)},enable:function(t){this.enableTinymce(t)},enableTinymce:function(t){return"undefined"!=typeof switchEditors&&(void 0!==tinyMCEPreInit.mceInit[t]&&(switchEditors.go(t,"tmce"),!0))}};var e=new acf.Model({priority:5,actions:{prepare:"onPrepare",ready:"onReady"},onPrepare:function(){var t=f("#acf-hidden-wp-editor");t.exists()&&t.appendTo("body")},onReady:function(){acf.isset(window,"tinymce","on")&&tinymce.on("AddEditor",function(t){var e=t.editor;"acf"===e.id.substr(0,3)&&(e=tinymce.editors.content||e,tinymce.activeEditor=e,wpActiveEditor=e.id)})}})}(jQuery),function(s,t){var i=acf.Model.extend({id:"Validator",data:{errors:[],notice:null,status:""},events:{"changed:status":"onChangeStatus"},addErrors:function(t){t.map(this.addError,this)},addError:function(t){this.data.errors.push(t)},hasErrors:function(){return this.data.errors.length},clearErrors:function(){return this.data.errors=[]},getErrors:function(){return this.data.errors},getFieldErrors:function(){var i=[],n=[];return this.getErrors().map(function(t){if(t.input){var e=n.indexOf(t.input);-1<e?i[e]=t:(i.push(t),n.push(t.input))}}),i},getGlobalErrors:function(){return this.getErrors().filter(function(t){return!t.input})},showErrors:function(){if(this.hasErrors()){var t=this.getFieldErrors(),e=this.getGlobalErrors(),n=0,a=!1;t.map(function(t){var e=this.$('[name="'+t.input+'"]').first();if(e.length||(e=this.$('[name^="'+t.input+'"]').first()),e.length){n++;var i=acf.getClosestField(e);i.showError(t.message),a||(a=i.$el)}},this);var i=acf.__("Validation failed");if(e.map(function(t){i+=". "+t.message}),1==n?i+=". "+acf.__("1 field requires attention"):1<n&&(i+=". "+acf.__("%d fields require attention").replace("%d",n)),this.has("notice"))this.get("notice").update({type:"error",text:i});else{var r=acf.newNotice({type:"error",text:i,target:this.$el});this.set("notice",r)}a||(a=this.get("notice").$el),setTimeout(function(){s("html, body").animate({scrollTop:a.offset().top-s(window).height()/2},500)},10)}},onChangeStatus:function(t,e,i,n){this.$el.removeClass("is-"+n).addClass("is-"+i)},validate:function(t){if(t=acf.parseArgs(t,{event:!1,reset:!1,loading:function(){},complete:function(){},failure:function(){},success:function(t){t.submit()}}),"valid"==this.get("status"))return!0;if("validating"==this.get("status"))return!1;if(!this.$(".acf-field").length)return!0;if(t.event){var e=s.Event(null,t.event);t.success=function(){acf.enableSubmit(s(e.target)).trigger(e)}}acf.doAction("validation_begin",this.$el),acf.lockForm(this.$el),t.loading(this.$el,this),this.set("status","validating");var i=function(t){if(acf.isAjaxSuccess(t)){var e=acf.applyFilters("validation_complete",t.data,this.$el,this);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),this.showErrors(),t.failure(this.$el,this)):(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,this),acf.doAction("submit",this.$el),t.success(this.$el,this),acf.lockForm(this.$el),t.reset&&this.reset()),t.complete(this.$el,this),this.clearErrors()},a=acf.serialize(this.$el);return a.action="acf/validate_save_post",s.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",context:this,success:i,complete:n}),!1},setup:function(t){this.$el=t},reset:function(){this.set("errors",[]),this.set("notice",null),this.set("status",""),acf.unlockForm(this.$el)}}),n=function(t){var e=t.data("acf");return e||(e=new i(t)),e};acf.validateForm=function(t){return n(t.form).validate(t)},acf.enableSubmit=function(t){return t.removeClass("disabled")},acf.disableSubmit=function(t){return t.addClass("disabled")},acf.showSpinner=function(t){return t.addClass("is-active"),t.css("display","inline-block"),t},acf.hideSpinner=function(t){return t.removeClass("is-active"),t.css("display","none"),t},acf.lockForm=function(t){var e=a(t),i=e.find('.button, [type="submit"]'),n=e.find(".spinner, .acf-spinner");return acf.hideSpinner(n),acf.disableSubmit(i),acf.showSpinner(n.last()),t},acf.unlockForm=function(t){var e=a(t),i=e.find('.button, [type="submit"]'),n=e.find(".spinner, .acf-spinner");return acf.enableSubmit(i),acf.hideSpinner(n),t};var a=function(t){var e,e,e,e;return(e=t.find("#submitdiv")).length?e:(e=t.find("#submitpost")).length?e:(e=t.find("p.submit").last()).length?e:(e=t.find(".acf-form-submit")).length?e:t};acf.validation=new acf.Model({id:"validation",active:!0,wait:"prepare",actions:{ready:"addInputEvents",append:"addInputEvents"},events:{'click input[type="submit"]':"onClickSubmit",'click button[type="submit"]':"onClickSubmit","click #save-post":"onClickSave","submit form#post":"onSubmitPost","submit form":"onSubmit"},initialize:function(){acf.get("validation")||(this.active=!1,this.actions={},this.events={})},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(t){n(t).reset()},addInputEvents:function(t){var e=s(".acf-field [name]",t);e.length&&this.on(e,"invalid","onInvalid")},onInvalid:function(t,e){t.preventDefault();var i=e.closest("form");i.length&&(n(i).addError({input:e.attr("name"),message:t.target.validationMessage}),i.submit())},onClickSubmit:function(t,e){this.set("originalEvent",t)},onClickSave:function(t,e){this.set("ignore",!0)},onClickSubmitGutenberg:function(t,e){var i;acf.validateForm({form:s("#editor"),event:t,reset:!0,failure:function(t,e){var i=e.get("notice").$el;i.appendTo(".components-notice-list"),i.find(".acf-notice-dismiss").removeClass("small")}})||(t.preventDefault(),t.stopImmediatePropagation())},onSubmitPost:function(t,e){"dopreview"===s("input#wp-preview").val()&&(this.set("ignore",!0),acf.unlockForm(e))},onSubmit:function(t,e){if(!this.active||this.get("ignore")||t.isDefaultPrevented())return this.allowSubmit();var i;acf.validateForm({form:e,event:this.get("originalEvent")})||t.preventDefault()},allowSubmit:function(){this.set("ignore",!1),this.set("originalEvent",!1)}})}(jQuery),function(l,t){var e=new acf.Model({priority:90,timeout:0,actions:{new_field:"refresh",show_field:"refresh",hide_field:"refresh",remove_field:"refresh"},refresh:function(){clearTimeout(this.timeout),this.timeout=setTimeout(function(){acf.doAction("refresh")},0)}}),i=new acf.Model({actions:{sortstart:"onSortstart"},onSortstart:function(t,e){t.is("tr")&&(e.html('<td style="padding:0;" colspan="'+e.children().length+'"></td>'),t.addClass("acf-sortable-tr-helper"),t.children().each(function(){l(this).width(l(this).width())}),e.height(t.height()+"px"),t.removeClass("acf-sortable-tr-helper"))}}),n=new acf.Model({actions:{after_duplicate:"onAfterDuplicate"},onAfterDuplicate:function(t,e){var i=[];t.find("select").each(function(t){i.push(l(this).val())}),e.find("select").each(function(t){l(this).val(i[t])})}}),a=new acf.Model({id:"tableHelper",priority:20,actions:{refresh:"renderTables"},renderTables:function(t){var e=this;l(".acf-table:visible").each(function(){e.renderTable(l(this))})},renderTable:function(t){var e=t.find("> thead > tr:visible > th[data-key]"),r=t.find("> tbody > tr:visible > td[data-key]");if(!e.length||!r.length)return!1;e.each(function(t){var e=l(this),i=e.data("key"),n=r.filter('[data-key="'+i+'"]'),a=n.filter(".acf-hidden");n.removeClass("acf-empty"),n.length===a.length?acf.hide(e):(acf.show(e),a.addClass("acf-empty"))}),e.css("width","auto"),e=e.not(".acf-hidden");var i=100,n=e.length,a;e.filter("[data-width]").each(function(){var t=l(this).data("width");l(this).css("width",t+"%"),i-=t});var s=e.not("[data-width]");if(s.length){var o=i/s.length;s.css("width",o+"%"),i=0}0<i&&e.last().css("width","auto"),r.filter(".-collapsed-target").each(function(){var t=l(this);t.parent().hasClass("-collapsed")?t.attr("colspan",e.length):t.removeAttr("colspan")})}}),r=new acf.Model({id:"fieldsHelper",priority:30,actions:{refresh:"renderGroups"},renderGroups:function(){var t=this;l(".acf-fields:visible").each(function(){t.renderGroup(l(this))})},renderGroup:function(t){var s=0,o=0,c=l(),e=t.children(".acf-field[data-width]:visible");return!!e.length&&(t.hasClass("-left")?(e.removeAttr("data-width"),e.css("width","auto"),!1):(e.removeClass("-r0 -c0").css({"min-height":0}),e.each(function(t){var e=l(this),i=e.position(),n=Math.ceil(i.top),a=Math.ceil(i.left);c.length&&s<n&&(c.css({"min-height":o+"px"}),i=e.position(),n=Math.ceil(i.top),a=Math.ceil(i.left),o=s=0,c=l()),acf.get("rtl")&&(a=Math.ceil(e.parent().width()-(i.left+e.outerWidth()))),0==n?e.addClass("-r0"):0==a&&e.addClass("-c0");var r=Math.ceil(e.outerHeight())+1;o=Math.max(o,r),s=Math.max(s,n),c=c.add(e)}),void(c.length&&c.css({"min-height":o+"px"}))))}})}(jQuery),function(o,a){acf.newCompatibility=function(t,e){return(e=e||{}).__proto__=t.__proto__,t.__proto__=e,t.compatibility=e},acf.getCompatibility=function(t){return t.compatibility||null};var c=acf.newCompatibility(acf,{l10n:{},o:{},fields:{},update:acf.set,add_action:acf.addAction,remove_action:acf.removeAction,do_action:acf.doAction,add_filter:acf.addFilter,remove_filter:acf.removeFilter,apply_filters:acf.applyFilters,parse_args:acf.parseArgs,disable_el:acf.disable,disable_form:acf.disable,enable_el:acf.enable,enable_form:acf.enable,update_user_setting:acf.updateUserSetting,prepare_for_ajax:acf.prepareForAjax,is_ajax_success:acf.isAjaxSuccess,remove_el:acf.remove,remove_tr:acf.remove,str_replace:acf.strReplace,render_select:acf.renderSelect,get_uniqid:acf.uniqid,serialize_form:acf.serialize,esc_html:acf.strEscape,str_sanitize:acf.strSanitize});c._e=function(t,e){t=t||"";var i=(e=e||"")?t+"."+e:t,n={"image.select":"Select Image","image.edit":"Edit Image","image.update":"Update Image"};if(n[i])return acf.__(n[i]);var a=this.l10n[t]||"";return e&&(a=a[e]||""),a},c.get_selector=function(t){var e=".acf-field";if(!t)return e;if(o.isPlainObject(t)){if(o.isEmptyObject(t))return e;for(var i in t){t=t[i];break}}return e+="-"+t,e=acf.strReplace("_","-",e),e=acf.strReplace("field-field-","field-",e)},c.get_fields=function(t,e,i){var n={is:t||"",parent:e||!1,suppressFilters:i||!1};return n.is&&(n.is=this.get_selector(n.is)),acf.findFields(n)},c.get_field=function(t,e){var i=this.get_fields.apply(this,arguments);return!!i.length&&i.first()},c.get_closest_field=function(t,e){return t.closest(this.get_selector(e))},c.get_field_wrap=function(t){return t.closest(this.get_selector())},c.get_field_key=function(t){return t.data("key")},c.get_field_type=function(t){return t.data("type")},c.get_data=function(t,e){return acf.parseArgs(t.data(),e)},c.maybe_get=function(t,e,i){i===a&&(i=null),keys=String(e).split(".");for(var n=0;n<keys.length;n++){if(!t.hasOwnProperty(keys[n]))return i;t=t[keys[n]]}return t};var e=function(t){return t instanceof acf.Field?t.$el:t},i=function(t){return acf.arrayArgs(t).map(e)},l=function(e){return function(){if(arguments.length)var t=i(arguments);else var t=[o(document)];return e.apply(this,t)}};c.add_action=function(t,e,i,n){var a=t.split(" "),r=a.length;if(1<r){for(var s=0;s<r;s++)t=a[s],c.add_action.apply(this,arguments);return this}var e=l(e);return acf.addAction.apply(this,arguments)},c.add_filter=function(t,e,i,n){var e=l(e);return acf.addFilter.apply(this,arguments)},c.model={actions:{},filters:{},events:{},extend:function(t){var i=o.extend({},this,t);return o.each(i.actions,function(t,e){i._add_action(t,e)}),o.each(i.filters,function(t,e){i._add_filter(t,e)}),o.each(i.events,function(t,e){i._add_event(t,e)}),i},_add_action:function(t,e){var i=this,n=t.split(" "),t=n[0]||"",a=n[1]||10;acf.add_action(t,i[e],a,i)},_add_filter:function(t,e){var i=this,n=t.split(" "),t=n[0]||"",a=n[1]||10;acf.add_filter(t,i[e],a,i)},_add_event:function(t,e){var i=this,n=t.indexOf(" "),a=0<n?t.substr(0,n):t,r=0<n?t.substr(n+1):"",s=function(t){t.$el=o(this),acf.field_group&&(t.$field=t.$el.closest(".acf-field-object")),"function"==typeof i.event&&(t=i.event(t)),i[e].apply(i,arguments)};r?o(document).on(a,r,s):o(document).on(a,s)},get:function(t,e){return e=e||null,void 0!==this[t]&&(e=this[t]),e},set:function(t,e){return this[t]=e,"function"==typeof this["_set_"+t]&&this["_set_"+t].apply(this),this}},c.field=acf.model.extend({type:"",o:{},$field:null,_add_action:function(t,e){var i=this;t=t+"_field/type="+i.type,acf.add_action(t,function(t){i.set("$field",t),i[e].apply(i,arguments)})},_add_filter:function(t,e){var i=this;t=t+"_field/type="+i.type,acf.add_filter(t,function(t){i.set("$field",t),i[e].apply(i,arguments)})},_add_event:function(t,n){var a=this,e=t.substr(0,t.indexOf(" ")),i=t.substr(t.indexOf(" ")+1),r=acf.get_selector(a.type);o(document).on(e,r+" "+i,function(t){var e=o(this),i=acf.get_closest_field(e,a.type);i.length&&(i.is(a.$field)||a.set("$field",i),t.$el=e,t.$field=i,a[n].apply(a,[t]))})},_set_$field:function(){"function"==typeof this.focus&&this.focus()},doFocus:function(t){return this.set("$field",t)}});var t=acf.newCompatibility(acf.validation,{remove_error:function(t){acf.getField(t).removeError()},add_warning:function(t,e){acf.getField(t).showNotice({text:e,type:"warning",timeout:1e3})},fetch:acf.validateForm,enableSubmit:acf.enableSubmit,disableSubmit:acf.disableSubmit,showSpinner:acf.showSpinner,hideSpinner:acf.hideSpinner,unlockForm:acf.unlockForm,lockForm:acf.lockForm});c.tooltip={tooltip:function(t,e){var i;return acf.newTooltip({text:t,target:e}).$el},temp:function(t,e){var i=acf.newTooltip({text:t,target:e,timeout:250})},confirm:function(t,e,i,n,a){var r=acf.newTooltip({confirm:!0,text:i,target:t,confirm:function(){e(!0)},cancel:function(){e(!1)}})},confirm_remove:function(t,e){var i=acf.newTooltip({confirmRemove:!0,target:t,confirm:function(){e(!0)},cancel:function(){e(!1)}})}},c.media=new acf.Model({activeFrame:!1,actions:{new_media_popup:"onNewMediaPopup"},frame:function(){return this.activeFrame},onNewMediaPopup:function(t){this.activeFrame=t.frame},popup:function(t){var e;return t.mime_types&&(t.allowedTypes=t.mime_types),t.id&&(t.attachment=t.id),acf.newMediaPopup(t).frame}}),c.select2={init:function(t,e,i){return e.allow_null&&(e.allowNull=e.allow_null),e.ajax_action&&(e.ajaxAction=e.ajax_action),i&&(e.field=acf.getField(i)),acf.newSelect2(t,e)},destroy:function(t){return acf.getInstance(t).destroy()}},c.postbox={render:function(t){return t.edit_url&&(t.editLink=t.edit_url),t.edit_title&&(t.editTitle=t.edit_title),acf.newPostbox(t)}},acf.newCompatibility(acf.screen,{update:function(){return this.set.apply(this,arguments)},fetch:acf.screen.check}),c.ajax=acf.screen}(jQuery);
includes/acf-data-functions.php CHANGED
@@ -19,16 +19,8 @@ $acf_instances = array();
19
  * @return object The instance.
20
  */
21
  function acf_new_instance( $class = '' ) {
22
-
23
- // Create instance.
24
- $instance = new $class();
25
-
26
- // Register instance.
27
  global $acf_instances;
28
- $acf_instances[ $class ] = $instance;
29
-
30
- // Return instance.
31
- return $instance;
32
  }
33
 
34
  /**
@@ -44,7 +36,10 @@ function acf_new_instance( $class = '' ) {
44
  */
45
  function acf_get_instance( $class = '' ) {
46
  global $acf_instances;
47
- return isset( $acf_instances[ $class ] ) ? $acf_instances[ $class ] : false;
 
 
 
48
  }
49
 
50
  /**
19
  * @return object The instance.
20
  */
21
  function acf_new_instance( $class = '' ) {
 
 
 
 
 
22
  global $acf_instances;
23
+ return $acf_instances[ $class ] = new $class();
 
 
 
24
  }
25
 
26
  /**
36
  */
37
  function acf_get_instance( $class = '' ) {
38
  global $acf_instances;
39
+ if( !isset($acf_instances[ $class ]) ) {
40
+ $acf_instances[ $class ] = new $class();
41
+ }
42
+ return $acf_instances[ $class ];
43
  }
44
 
45
  /**
includes/acf-field-functions.php CHANGED
@@ -989,6 +989,9 @@ function acf_update_field( $field, $specific = array() ) {
989
  $save = acf_get_sub_array( $save, $specific );
990
  }
991
 
 
 
 
992
  // Slash data.
993
  // WP expects all data to be slashed and will unslash it (fixes '\' character issues).
994
  $save = wp_slash( $save );
@@ -1274,9 +1277,12 @@ acf_add_filter_variations( 'acf/get_sub_field', array('type'), 2 );
1274
  */
1275
  function acf_search_fields( $id, $fields ) {
1276
 
1277
- // Loop over fields.
1278
- foreach( $fields as $field ) {
1279
- foreach( array( 'key', 'name', '_name', '__name' ) as $key ) {
 
 
 
1280
  if( isset($field[$key]) && $field[$key] === $id ) {
1281
  return $field;
1282
  }
989
  $save = acf_get_sub_array( $save, $specific );
990
  }
991
 
992
+ // Unhook wp_targeted_link_rel() filter from WP 5.1 corrupting serialized data.
993
+ remove_filter( 'content_save_pre', 'wp_targeted_link_rel' );
994
+
995
  // Slash data.
996
  // WP expects all data to be slashed and will unslash it (fixes '\' character issues).
997
  $save = wp_slash( $save );
1277
  */
1278
  function acf_search_fields( $id, $fields ) {
1279
 
1280
+ // Loop over searchable keys in order of priority.
1281
+ // Important to search "name" on all fields before "_name" backup.
1282
+ foreach( array( 'key', 'name', '_name', '__name' ) as $key ) {
1283
+
1284
+ // Loop over fields and compare.
1285
+ foreach( $fields as $field ) {
1286
  if( isset($field[$key]) && $field[$key] === $id ) {
1287
  return $field;
1288
  }
includes/acf-field-group-functions.php CHANGED
@@ -520,6 +520,9 @@ function acf_update_field_group( $field_group ) {
520
  'menu_order' => $field_group['menu_order'],
521
  );
522
 
 
 
 
523
  // Slash data.
524
  // WP expects all data to be slashed and will unslash it (fixes '\' character issues).
525
  $save = wp_slash( $save );
@@ -959,7 +962,7 @@ function acf_prepare_field_group_for_export( $field_group = array() ) {
959
  function acf_import_field_group( $field_group ) {
960
 
961
  // Disable filters to ensure data is not modified by local, clone, etc.
962
- acf_disable_filters();
963
 
964
  // Validate field group.
965
  $field_group = acf_get_valid_field_group( $field_group );
@@ -1032,7 +1035,12 @@ function acf_import_field_group( $field_group ) {
1032
  } else {
1033
  $count[ $field['parent'] ]++;
1034
  }
1035
- $field['menu_order'] = ($count[ $field['parent'] ] - 1);
 
 
 
 
 
1036
 
1037
  // Save field.
1038
  $field = acf_update_field( $field );
@@ -1046,7 +1054,7 @@ function acf_import_field_group( $field_group ) {
1046
  $field_group = acf_update_field_group( $field_group );
1047
 
1048
  // Enable filters again.
1049
- acf_enable_filters();
1050
 
1051
  /**
1052
  * Fires immediately after a field_group has been imported.
520
  'menu_order' => $field_group['menu_order'],
521
  );
522
 
523
+ // Unhook wp_targeted_link_rel() filter from WP 5.1 corrupting serialized data.
524
+ remove_filter( 'content_save_pre', 'wp_targeted_link_rel' );
525
+
526
  // Slash data.
527
  // WP expects all data to be slashed and will unslash it (fixes '\' character issues).
528
  $save = wp_slash( $save );
962
  function acf_import_field_group( $field_group ) {
963
 
964
  // Disable filters to ensure data is not modified by local, clone, etc.
965
+ $filters = acf_disable_filters();
966
 
967
  // Validate field group.
968
  $field_group = acf_get_valid_field_group( $field_group );
1035
  } else {
1036
  $count[ $field['parent'] ]++;
1037
  }
1038
+
1039
+ // Only add menu order if doesn't already exist.
1040
+ // Allows Flexible Content field to set custom order.
1041
+ if( empty($field['menu_order']) ) {
1042
+ $field['menu_order'] = ($count[ $field['parent'] ] - 1);
1043
+ }
1044
 
1045
  // Save field.
1046
  $field = acf_update_field( $field );
1054
  $field_group = acf_update_field_group( $field_group );
1055
 
1056
  // Enable filters again.
1057
+ acf_enable_filters( $filters );
1058
 
1059
  /**
1060
  * Fires immediately after a field_group has been imported.
includes/acf-form-functions.php CHANGED
@@ -153,20 +153,9 @@ function acf_save_post( $post_id = 0, $values = null ) {
153
  */
154
  function _acf_do_save_post( $post_id = 0 ) {
155
 
156
- // Check $_POST data.
157
  if( $_POST['acf'] ) {
158
-
159
- // Loop over posted values.
160
- foreach( $_POST['acf'] as $key => $value ) {
161
-
162
- // Get field.
163
- $field = acf_get_field( $key );
164
-
165
- // Update value.
166
- if( $field ) {
167
- acf_update_value( $value, $post_id, $field );
168
- }
169
- }
170
  }
171
  }
172
 
153
  */
154
  function _acf_do_save_post( $post_id = 0 ) {
155
 
156
+ // Check and update $_POST data.
157
  if( $_POST['acf'] ) {
158
+ acf_update_values( $_POST['acf'], $post_id );
 
 
 
 
 
 
 
 
 
 
 
159
  }
160
  }
161
 
includes/acf-helper-functions.php CHANGED
@@ -75,3 +75,151 @@ function acf_cache_key( $key = '' ) {
75
  */
76
  return apply_filters( "acf/get_cache_key", $key, $key );
77
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  */
76
  return apply_filters( "acf/get_cache_key", $key, $key );
77
  }
78
+
79
+ /**
80
+ * acf_request_args
81
+ *
82
+ * Returns an array of $_REQUEST values using the provided defaults.
83
+ *
84
+ * @date 28/2/19
85
+ * @since 5.7.13
86
+ *
87
+ * @param array $args An array of args.
88
+ * @return array
89
+ */
90
+ function acf_request_args( $args = array() ) {
91
+ foreach( $args as $k => $v ) {
92
+ $args[ $k ] = isset($_REQUEST[ $k ]) ? $_REQUEST[ $k ] : $args[ $k ];
93
+ }
94
+ return $args;
95
+ }
96
+
97
+ // Register store.
98
+ acf_register_store( 'filters' );
99
+
100
+ /**
101
+ * acf_enable_filter
102
+ *
103
+ * Enables a filter with the given name.
104
+ *
105
+ * @date 14/7/16
106
+ * @since 5.4.0
107
+ *
108
+ * @param string name The modifer name.
109
+ * @return void
110
+ */
111
+ function acf_enable_filter( $name = '' ) {
112
+ acf_get_store( 'filters' )->set( $name, true );
113
+ }
114
+
115
+ /**
116
+ * acf_disable_filter
117
+ *
118
+ * Disables a filter with the given name.
119
+ *
120
+ * @date 14/7/16
121
+ * @since 5.4.0
122
+ *
123
+ * @param string name The modifer name.
124
+ * @return void
125
+ */
126
+ function acf_disable_filter( $name = '' ) {
127
+ acf_get_store( 'filters' )->set( $name, false );
128
+ }
129
+
130
+ /**
131
+ * acf_is_filter_enabled
132
+ *
133
+ * Returns the state of a filter for the given name.
134
+ *
135
+ * @date 14/7/16
136
+ * @since 5.4.0
137
+ *
138
+ * @param string name The modifer name.
139
+ * @return array
140
+ */
141
+ function acf_is_filter_enabled( $name = '' ) {
142
+ return acf_get_store( 'filters' )->get( $name );
143
+ }
144
+
145
+ /**
146
+ * acf_get_filters
147
+ *
148
+ * Returns an array of filters in their current state.
149
+ *
150
+ * @date 14/7/16
151
+ * @since 5.4.0
152
+ *
153
+ * @param void
154
+ * @return array
155
+ */
156
+ function acf_get_filters() {
157
+ return acf_get_store( 'filters' )->get();
158
+ }
159
+
160
+ /**
161
+ * acf_set_filters
162
+ *
163
+ * Sets an array of filter states.
164
+ *
165
+ * @date 14/7/16
166
+ * @since 5.4.0
167
+ *
168
+ * @param array $filters An Array of modifers
169
+ * @return array
170
+ */
171
+ function acf_set_filters( $filters = array() ) {
172
+ acf_get_store( 'filters' )->set( $filters );
173
+ }
174
+
175
+ /**
176
+ * acf_disable_filters
177
+ *
178
+ * Disables all filters and returns the previous state.
179
+ *
180
+ * @date 14/7/16
181
+ * @since 5.4.0
182
+ *
183
+ * @param void
184
+ * @return array
185
+ */
186
+ function acf_disable_filters() {
187
+
188
+ // Get state.
189
+ $prev_state = acf_get_filters();
190
+
191
+ // Set all modifers as false.
192
+ acf_set_filters( array_map('__return_false', $prev_state) );
193
+
194
+ // Return prev state.
195
+ return $prev_state;
196
+ }
197
+
198
+ /**
199
+ * acf_enable_filters
200
+ *
201
+ * Enables all or an array of specific filters and returns the previous state.
202
+ *
203
+ * @date 14/7/16
204
+ * @since 5.4.0
205
+ *
206
+ * @param array $filters An Array of modifers
207
+ * @return array
208
+ */
209
+ function acf_enable_filters( $filters = array() ) {
210
+
211
+ // Get state.
212
+ $prev_state = acf_get_filters();
213
+
214
+ // Allow specific filters to be enabled.
215
+ if( $filters ) {
216
+ acf_set_filters( $filters );
217
+
218
+ // Set all modifers as true.
219
+ } else {
220
+ acf_set_filters( array_map('__return_true', $prev_state) );
221
+ }
222
+
223
+ // Return prev state.
224
+ return $prev_state;
225
+ }
includes/acf-meta-functions.php CHANGED
@@ -16,7 +16,7 @@ function acf_decode_post_id( $post_id = 0 ) {
16
  // Default data
17
  $data = array(
18
  'type' => 'post',
19
- 'id' => $post_id
20
  );
21
 
22
  // Check if is numeric.
@@ -31,13 +31,13 @@ function acf_decode_post_id( $post_id = 0 ) {
31
  $id = array_pop( $bits );
32
  $type = implode( '_', $bits );
33
 
34
- // Check if $type is meta.
35
- if( function_exists("get_{$type}_meta") ) {
36
  $data['type'] = $type;
37
  $data['id'] = (int) $id;
38
 
39
  // Check if is taxonomy name.
40
- } elseif( taxonomy_exists($type) ) {
41
  $data['type'] = 'term';
42
  $data['id'] = (int) $id;
43
 
@@ -177,6 +177,12 @@ function acf_get_option_meta( $prefix = '' ) {
177
  */
178
  function acf_get_metadata( $post_id = 0, $name = '', $hidden = false ) {
179
 
 
 
 
 
 
 
180
  // Decode $post_id for $type and $id.
181
  extract( acf_decode_post_id($post_id) );
182
 
@@ -215,6 +221,12 @@ function acf_get_metadata( $post_id = 0, $name = '', $hidden = false ) {
215
  */
216
  function acf_update_metadata( $post_id = 0, $name = '', $value = '', $hidden = false ) {
217
 
 
 
 
 
 
 
218
  // Decode $post_id for $type and $id.
219
  extract( acf_decode_post_id($post_id) );
220
 
@@ -255,6 +267,12 @@ function acf_update_metadata( $post_id = 0, $name = '', $value = '', $hidden = f
255
  */
256
  function acf_delete_metadata( $post_id = 0, $name = '', $hidden = false ) {
257
 
 
 
 
 
 
 
258
  // Decode $post_id for $type and $id.
259
  extract( acf_decode_post_id($post_id) );
260
 
@@ -353,3 +371,69 @@ function acf_get_meta_field( $key = 0, $post_id = 0 ) {
353
  // Return false.
354
  return false;
355
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  // Default data
17
  $data = array(
18
  'type' => 'post',
19
+ 'id' => 0
20
  );
21
 
22
  // Check if is numeric.
31
  $id = array_pop( $bits );
32
  $type = implode( '_', $bits );
33
 
34
+ // Check if is meta type.
35
+ if( function_exists("get_{$type}_meta") && is_numeric($id) ) {
36
  $data['type'] = $type;
37
  $data['id'] = (int) $id;
38
 
39
  // Check if is taxonomy name.
40
+ } elseif( taxonomy_exists($type) && is_numeric($id) ) {
41
  $data['type'] = 'term';
42
  $data['id'] = (int) $id;
43
 
177
  */
178
  function acf_get_metadata( $post_id = 0, $name = '', $hidden = false ) {
179
 
180
+ // Allow filter to short-circuit logic.
181
+ $pre = apply_filters( "acf/pre_load_metadata", null, $post_id, $name, $hidden );
182
+ if( $pre !== null ) {
183
+ return $pre;
184
+ }
185
+
186
  // Decode $post_id for $type and $id.
187
  extract( acf_decode_post_id($post_id) );
188
 
221
  */
222
  function acf_update_metadata( $post_id = 0, $name = '', $value = '', $hidden = false ) {
223
 
224
+ // Allow filter to short-circuit logic.
225
+ $pre = apply_filters( "acf/pre_update_metadata", null, $post_id, $name, $value, $hidden );
226
+ if( $pre !== null ) {
227
+ return $pre;
228
+ }
229
+
230
  // Decode $post_id for $type and $id.
231
  extract( acf_decode_post_id($post_id) );
232
 
267
  */
268
  function acf_delete_metadata( $post_id = 0, $name = '', $hidden = false ) {
269
 
270
+ // Allow filter to short-circuit logic.
271
+ $pre = apply_filters( "acf/pre_delete_metadata", null, $post_id, $name, $hidden );
272
+ if( $pre !== null ) {
273
+ return $pre;
274
+ }
275
+
276
  // Decode $post_id for $type and $id.
277
  extract( acf_decode_post_id($post_id) );
278
 
371
  // Return false.
372
  return false;
373
  }
374
+
375
+ /**
376
+ * acf_get_metaref
377
+ *
378
+ * Retrieves reference metadata from the database.
379
+ *
380
+ * @date 16/10/2015
381
+ * @since 5.2.3
382
+ *
383
+ * @param (int|string) $post_id The post id.
384
+ * @param string type The reference type (fields|groups).
385
+ * @param string $name An optional specific name
386
+ * @return mixed
387
+ */
388
+ function acf_get_metaref( $post_id = 0, $type = 'fields', $name = '' ) {
389
+
390
+ // Load existing meta.
391
+ $meta = acf_get_metadata( $post_id, "_acf_$type" );
392
+
393
+ // Handle no meta.
394
+ if( !$meta ) {
395
+ return $name ? '' : array();
396
+ }
397
+
398
+ // Return specific reference.
399
+ if( $name ) {
400
+ return isset($meta[ $name ]) ? $meta[ $name ] : '';
401
+
402
+ // Or return all references.
403
+ } else {
404
+ return $meta;
405
+ }
406
+ }
407
+
408
+ /**
409
+ * acf_update_metaref
410
+ *
411
+ * Updates reference metadata in the database.
412
+ *
413
+ * @date 16/10/2015
414
+ * @since 5.2.3
415
+ *
416
+ * @param (int|string) $post_id The post id.
417
+ * @param string type The reference type (fields|groups).
418
+ * @param array $references An array of references.
419
+ * @return (int|bool) Meta ID if the key didn't exist, true on successful update, false on failure.
420
+ */
421
+ function acf_update_metaref( $post_id = 0, $type = 'fields', $references = array() ) {
422
+
423
+ // Get current references.
424
+ $current = acf_get_metaref( $post_id, $type );
425
+
426
+ // Merge in new references.
427
+ $references = array_merge( $current, $references );
428
+
429
+ // Simplify groups
430
+ if( $type === 'groups' ) {
431
+ $references = array_values($references);
432
+ }
433
+
434
+ // Remove duplicate references.
435
+ $references = array_unique($references);
436
+
437
+ // Update metadata.
438
+ return acf_update_metadata( $post_id, "_acf_$type", $references );
439
+ }
includes/acf-value-functions.php CHANGED
@@ -208,6 +208,33 @@ function acf_update_value( $value = null, $post_id = 0, $field ) {
208
  // Register variation.
209
  acf_add_filter_variations( 'acf/update_value', array('type', 'name', 'key'), 2 );
210
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  /**
212
  * acf_flush_value_cache
213
  *
208
  // Register variation.
209
  acf_add_filter_variations( 'acf/update_value', array('type', 'name', 'key'), 2 );
210
 
211
+ /**
212
+ * acf_update_values
213
+ *
214
+ * Updates an array of values.
215
+ *
216
+ * @date 26/2/19
217
+ * @since 5.7.13
218
+ *
219
+ * @param array values The array of values.
220
+ * @param (int|string) $post_id The post id.
221
+ * @return void
222
+ */
223
+ function acf_update_values( $values = array(), $post_id = 0 ) {
224
+
225
+ // Loop over values.
226
+ foreach( $values as $key => $value ) {
227
+
228
+ // Get field.
229
+ $field = acf_get_field( $key );
230
+
231
+ // Update value.
232
+ if( $field ) {
233
+ acf_update_value( $value, $post_id, $field );
234
+ }
235
+ }
236
+ }
237
+
238
  /**
239
  * acf_flush_value_cache
240
  *
includes/api/api-helpers.php CHANGED
@@ -4626,183 +4626,6 @@ function acf_is_plugin_active() {
4626
 
4627
  }
4628
 
4629
-
4630
- /**
4631
- * acf_get_filters
4632
- *
4633
- * Returns the registered filters
4634
- *
4635
- * @date 2/2/18
4636
- * @since 5.6.5
4637
- *
4638
- * @param type $var Description. Default.
4639
- * @return type Description.
4640
- */
4641
-
4642
- function acf_get_filters() {
4643
-
4644
- // get
4645
- $filters = acf_raw_setting('filters');
4646
-
4647
- // array
4648
- $filters = is_array($filters) ? $filters : array();
4649
-
4650
- // return
4651
- return $filters;
4652
- }
4653
-
4654
-
4655
- /**
4656
- * acf_update_filters
4657
- *
4658
- * Updates the registered filters
4659
- *
4660
- * @date 2/2/18
4661
- * @since 5.6.5
4662
- *
4663
- * @param type $var Description. Default.
4664
- * @return type Description.
4665
- */
4666
-
4667
- function acf_update_filters( $filters ) {
4668
- return acf_update_setting('filters', $filters);
4669
- }
4670
-
4671
-
4672
- /*
4673
- * acf_enable_filter
4674
- *
4675
- * This function will enable a filter
4676
- *
4677
- * @type function
4678
- * @date 15/07/2016
4679
- * @since 5.4.0
4680
- *
4681
- * @param $post_id (int)
4682
- * @return $post_id (int)
4683
- */
4684
-
4685
- function acf_enable_filter( $filter = '' ) {
4686
-
4687
- // get
4688
- $filters = acf_get_filters();
4689
-
4690
- // append
4691
- $filters[ $filter ] = true;
4692
-
4693
- // update
4694
- acf_update_filters( $filters );
4695
- }
4696
-
4697
-
4698
- /*
4699
- * acf_disable_filter
4700
- *
4701
- * This function will disable a filter
4702
- *
4703
- * @type function
4704
- * @date 15/07/2016
4705
- * @since 5.4.0
4706
- *
4707
- * @param $post_id (int)
4708
- * @return $post_id (int)
4709
- */
4710
-
4711
- function acf_disable_filter( $filter = '' ) {
4712
-
4713
- // get
4714
- $filters = acf_get_filters();
4715
-
4716
- // append
4717
- $filters[ $filter ] = false;
4718
-
4719
- // update
4720
- acf_update_filters( $filters );
4721
- }
4722
-
4723
-
4724
- /*
4725
- * acf_enable_filters
4726
- *
4727
- * ACF uses filters to modify field group and field data
4728
- * This function will enable them allowing ACF to interact with all data
4729
- *
4730
- * @type function
4731
- * @date 14/07/2016
4732
- * @since 5.4.0
4733
- *
4734
- * @param $post_id (int)
4735
- * @return $post_id (int)
4736
- */
4737
-
4738
- function acf_enable_filters() {
4739
-
4740
- // get
4741
- $filters = acf_get_filters();
4742
-
4743
- // loop
4744
- foreach( array_keys($filters) as $k ) {
4745
- $filters[ $k ] = true;
4746
- }
4747
-
4748
- // update
4749
- acf_update_filters( $filters );
4750
- }
4751
-
4752
-
4753
- /*
4754
- * acf_disable_filters
4755
- *
4756
- * ACF uses filters to modify field group and field data
4757
- * This function will disable them allowing ACF to interact only with raw DB data
4758
- *
4759
- * @type function
4760
- * @date 14/07/2016
4761
- * @since 5.4.0
4762
- *
4763
- * @param $post_id (int)
4764
- * @return $post_id (int)
4765
- */
4766
-
4767
- function acf_disable_filters() {
4768
-
4769
- // get
4770
- $filters = acf_get_filters();
4771
-
4772
- // loop
4773
- foreach( array_keys($filters) as $k ) {
4774
- $filters[ $k ] = false;
4775
- }
4776
-
4777
- // update
4778
- acf_update_filters( $filters );
4779
- }
4780
-
4781
-
4782
- /*
4783
- * acf_is_filter_enabled
4784
- *
4785
- * ACF uses filters to modify field group and field data
4786
- * This function will return true if they are enabled
4787
- *
4788
- * @type function
4789
- * @date 14/07/2016
4790
- * @since 5.4.0
4791
- *
4792
- * @param $post_id (int)
4793
- * @return $post_id (int)
4794
- */
4795
-
4796
- function acf_is_filter_enabled( $filter = '' ) {
4797
-
4798
- // get
4799
- $filters = acf_get_filters();
4800
-
4801
- // return
4802
- return !empty($filters[ $filter ]);
4803
- }
4804
-
4805
-
4806
  /*
4807
  * acf_send_ajax_results
4808
  *
4626
 
4627
  }
4628
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4629
  /*
4630
  * acf_send_ajax_results
4631
  *
includes/forms/form-gutenberg.php CHANGED
@@ -85,9 +85,20 @@ class ACF_Form_Gutenberg {
85
  <script type="text/javascript">
86
  (function($) {
87
 
88
- // Move elements around screen.
89
  acf.addAction('prepare', function(){
 
 
90
  $('#normal-sortables').before( $('#acf_after_title-sortables') );
 
 
 
 
 
 
 
 
 
91
  }, 1);
92
 
93
  // Disable unload
85
  <script type="text/javascript">
86
  (function($) {
87
 
88
+ // Wait until prepare.
89
  acf.addAction('prepare', function(){
90
+
91
+ // Append custom sortables before normal sortables (within the normal metabox)
92
  $('#normal-sortables').before( $('#acf_after_title-sortables') );
93
+
94
+ }, 1);
95
+
96
+ // Wait until load.
97
+ acf.addAction('load', function(){
98
+
99
+ // Refresh metaboxes to show 'acf_after_title' area.
100
+ acf.screen.refreshAvailableMetaBoxesPerLocation();
101
+
102
  }, 1);
103
 
104
  // Disable unload
includes/forms/form-taxonomy.php CHANGED
@@ -246,27 +246,27 @@ class acf_form_taxonomy {
246
  */
247
 
248
  function admin_footer() {
249
-
250
  ?>
251
  <script type="text/javascript">
252
  (function($) {
253
 
254
- // vars
255
  var view = '<?php echo $this->view; ?>';
 
 
256
 
257
- // add missing spinners
258
- var $submit = $('input.button-primary');
259
  if( !$submit.next('.spinner').length ) {
260
  $submit.after('<span class="spinner"></span>');
261
  }
262
 
263
  <?php
264
 
265
- // add view
266
  if( $this->view == 'add' ): ?>
267
 
268
  // vars
269
- var $form = $('#addtag');
270
  var $fields = $('#acf-term-fields');
271
  var html = '';
272
 
246
  */
247
 
248
  function admin_footer() {
249
+
250
  ?>
251
  <script type="text/javascript">
252
  (function($) {
253
 
254
+ // Define vars.
255
  var view = '<?php echo $this->view; ?>';
256
+ var $form = $('#' + view + 'tag');
257
+ var $submit = $('#' + view + 'tag input[type="submit"]:last');
258
 
259
+ // Add missing spinner.
 
260
  if( !$submit.next('.spinner').length ) {
261
  $submit.after('<span class="spinner"></span>');
262
  }
263
 
264
  <?php
265
 
266
+ // View: Add.
267
  if( $this->view == 'add' ): ?>
268
 
269
  // vars
 
270
  var $fields = $('#acf-term-fields');
271
  var html = '';
272
 
includes/local-fields.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
 
3
  // Register notices stores.
4
- acf_register_store( 'local-fields' )->prop( 'multisite', true );
5
- acf_register_store( 'local-groups' )->prop( 'multisite', true );
6
  acf_register_store( 'local-empty' );
7
 
8
  // Register filter.
@@ -361,16 +361,42 @@ function acf_add_local_field( $field, $prepared = false ) {
361
  $field['key'] = "field_{$field['name']}";
362
  }
363
 
364
- // If already prepared via field group function, add to store with alias.
365
- if( $prepared ) {
366
- acf_get_local_store( 'fields' )
367
- ->set( $field['key'], $field )
368
- ->alias( $field['key'], $field['name'] );
369
 
370
- // Otherwise, Add a list of fields allowing them to be correctly prepared.
371
- } else {
372
- acf_add_local_fields(array( $field ));
 
 
 
 
 
 
 
 
 
373
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
374
  }
375
 
376
  /**
@@ -533,11 +559,16 @@ add_filter( 'acf/is_field_group_key', '_acf_apply_is_local_field_group_key', 20,
533
  */
534
  function _acf_do_prepare_local_fields() {
535
 
536
- // Get and re-add fields (will prepare them).
537
- acf_add_local_fields( acf_get_local_fields() );
 
 
 
 
 
538
  }
539
 
540
  // Hook into action.
541
- add_action( 'acf/include_fields', '_acf_do_prepare_local_fields', 0, 5 );
542
 
543
  ?>
1
  <?php
2
 
3
  // Register notices stores.
4
+ acf_register_store( 'local-fields' );
5
+ acf_register_store( 'local-groups' );
6
  acf_register_store( 'local-empty' );
7
 
8
  // Register filter.
361
  $field['key'] = "field_{$field['name']}";
362
  }
363
 
364
+ // If called directly, allow sub fields to be correctly prepared.
365
+ if( !$prepared ) {
366
+ return acf_add_local_fields( array( $field ) );
367
+ }
 
368
 
369
+ // Extract attributes.
370
+ $key = $field['key'];
371
+ $name = $field['name'];
372
+
373
+ // Allow sub field to be added multipel times to different parents.
374
+ $store = acf_get_local_store( 'fields' );
375
+ if( $store->is($key) ) {
376
+ $old_key = _acf_generate_local_key( $store->get($key) );
377
+ $new_key = _acf_generate_local_key( $field );
378
+ if( $old_key !== $new_key ) {
379
+ $key = $new_key;
380
+ }
381
  }
382
+
383
+ // Add field.
384
+ $store->set( $key, $field )->alias( $key, $name );
385
+ }
386
+
387
+ /**
388
+ * _acf_generate_local_key
389
+ *
390
+ * Generates a unique key based on the field's parent.
391
+ *
392
+ * @date 22/1/19
393
+ * @since 5.7.10
394
+ *
395
+ * @param string $key The field key.
396
+ * @return bool
397
+ */
398
+ function _acf_generate_local_key( $field ) {
399
+ return "{$field['key']}:{$field['parent']}";
400
  }
401
 
402
  /**
559
  */
560
  function _acf_do_prepare_local_fields() {
561
 
562
+ // Get fields.
563
+ $fields = acf_get_local_fields();
564
+
565
+ // If fields have been registered early, re-add to correctly prepare them.
566
+ if( $fields ) {
567
+ acf_add_local_fields( $fields );
568
+ }
569
  }
570
 
571
  // Hook into action.
572
+ add_action( 'acf/include_fields', '_acf_do_prepare_local_fields', 0, 1 );
573
 
574
  ?>
lang/acf-tr_TR.mo CHANGED
Binary file
lang/acf-tr_TR.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Advanced Custom Fields Pro v5.7.7\n"
4
  "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
5
- "POT-Creation-Date: 2018-09-06 12:21+1000\n"
6
- "PO-Revision-Date: 2018-11-01 14:30+0300\n"
7
  "Last-Translator: Emre Erkan <kara@karalamalar.net>\n"
8
  "Language-Team: Emre Erkan <emre@ada.agency>\n"
9
  "Language: tr_TR\n"
@@ -26,351 +26,342 @@ msgstr ""
26
  msgid "Advanced Custom Fields"
27
  msgstr "Advanced Custom Fields"
28
 
29
- #: acf.php:385 includes/admin/admin.php:117
30
  msgid "Field Groups"
31
  msgstr "Alan grupları"
32
 
33
- #: acf.php:386
34
  msgid "Field Group"
35
  msgstr "Alan grubu"
36
 
37
- #: acf.php:387 acf.php:419 includes/admin/admin.php:118
38
  #: pro/fields/class-acf-field-flexible-content.php:572
39
  msgid "Add New"
40
  msgstr "Yeni ekle"
41
 
42
- #: acf.php:388
43
  msgid "Add New Field Group"
44
  msgstr "Yeni alan grubu ekle"
45
 
46
- #: acf.php:389
47
  msgid "Edit Field Group"
48
  msgstr "Alan grubunu düzenle"
49
 
50
- #: acf.php:390
51
  msgid "New Field Group"
52
  msgstr "Yeni alan grubu"
53
 
54
- #: acf.php:391
55
  msgid "View Field Group"
56
  msgstr "Alan grubunu görüntüle"
57
 
58
- #: acf.php:392
59
  msgid "Search Field Groups"
60
  msgstr "Alan gruplarında ara"
61
 
62
- #: acf.php:393
63
  msgid "No Field Groups found"
64
  msgstr "Hiç alan grubu bulunamadı"
65
 
66
- #: acf.php:394
67
  msgid "No Field Groups found in Trash"
68
  msgstr "Çöpte alan grubu bulunamadı"
69
 
70
- #: acf.php:417 includes/admin/admin-field-group.php:202
71
- #: includes/admin/admin-field-groups.php:510
72
  #: pro/fields/class-acf-field-clone.php:811
73
  msgid "Fields"
74
  msgstr "Alanlar"
75
 
76
- #: acf.php:418
77
  msgid "Field"
78
  msgstr "Alan"
79
 
80
- #: acf.php:420
81
  msgid "Add New Field"
82
  msgstr "Yeni elan ekle"
83
 
84
- #: acf.php:421
85
  msgid "Edit Field"
86
  msgstr "Alanı düzenle"
87
 
88
- #: acf.php:422 includes/admin/views/field-group-fields.php:41
89
  msgid "New Field"
90
  msgstr "Yeni alan"
91
 
92
- #: acf.php:423
93
  msgid "View Field"
94
  msgstr "Alanı görüntüle"
95
 
96
- #: acf.php:424
97
  msgid "Search Fields"
98
  msgstr "Alanlarda ara"
99
 
100
- #: acf.php:425
101
  msgid "No Fields found"
102
  msgstr "Hiç alan bulunamadı"
103
 
104
- #: acf.php:426
105
  msgid "No Fields found in Trash"
106
  msgstr "Çöpte alan bulunamadı"
107
 
108
- #: acf.php:465 includes/admin/admin-field-group.php:384
109
- #: includes/admin/admin-field-groups.php:567
110
  msgid "Inactive"
111
  msgstr "Etkin değil"
112
 
113
- #: acf.php:470
114
  #, php-format
115
  msgid "Inactive <span class=\"count\">(%s)</span>"
116
  msgid_plural "Inactive <span class=\"count\">(%s)</span>"
117
  msgstr[0] "Etkin olmayan <span class=“count”>(%s)</span>"
118
  msgstr[1] "Etkin olmayan <span class=“count”>(%s)</span>"
119
 
120
- #: includes/admin/admin-field-group.php:68
121
- #: includes/admin/admin-field-group.php:69
122
- #: includes/admin/admin-field-group.php:71
 
 
 
 
 
 
 
 
 
 
123
  msgid "Field group updated."
124
  msgstr "Alan grubu güncellendi."
125
 
126
- #: includes/admin/admin-field-group.php:70
127
  msgid "Field group deleted."
128
  msgstr "Alan grubu silindi."
129
 
130
- #: includes/admin/admin-field-group.php:73
131
  msgid "Field group published."
132
  msgstr "Alan grubu yayımlandı."
133
 
134
- #: includes/admin/admin-field-group.php:74
135
  msgid "Field group saved."
136
  msgstr "Alan grubu kaydedildi."
137
 
138
- #: includes/admin/admin-field-group.php:75
139
  msgid "Field group submitted."
140
  msgstr "Alan grubu gönderildi."
141
 
142
- #: includes/admin/admin-field-group.php:76
143
  msgid "Field group scheduled for."
144
  msgstr "Alan grubu zamanlandı."
145
 
146
- #: includes/admin/admin-field-group.php:77
147
  msgid "Field group draft updated."
148
  msgstr "Alan grubu taslağı güncellendi."
149
 
150
- #: includes/admin/admin-field-group.php:153
151
  msgid "The string \"field_\" may not be used at the start of a field name"
152
  msgstr "Artık alan isimlerinin başlangıcında “field_” kullanılmayacak"
153
 
154
- #: includes/admin/admin-field-group.php:154
155
  msgid "This field cannot be moved until its changes have been saved"
156
  msgstr "Bu alan, üzerinde yapılan değişiklikler kaydedilene kadar taşınamaz"
157
 
158
- #: includes/admin/admin-field-group.php:155
159
  msgid "Field group title is required"
160
  msgstr "Alan grubu başlığı gerekli"
161
 
162
- #: includes/admin/admin-field-group.php:156
163
  msgid "Move to trash. Are you sure?"
164
  msgstr "Çöpe taşımak istediğinizden emin misiniz?"
165
 
166
- #: includes/admin/admin-field-group.php:157
167
  msgid "No toggle fields available"
168
  msgstr "Kullanılabilir aç-kapa alan yok"
169
 
170
- #: includes/admin/admin-field-group.php:158
171
  msgid "Move Custom Field"
172
  msgstr "Özel alanı taşı"
173
 
174
- #: includes/admin/admin-field-group.php:159
175
  msgid "Checked"
176
  msgstr "İşaretlendi"
177
 
178
- #: includes/admin/admin-field-group.php:160 includes/api/api-field.php:289
179
- msgid "(no label)"
180
- msgstr "(etiket yok)"
181
-
182
- #: includes/admin/admin-field-group.php:161
183
  msgid "(this field)"
184
  msgstr "(bu alan)"
185
 
186
- #: includes/admin/admin-field-group.php:162
187
- #: includes/api/api-field-group.php:751
188
- msgid "copy"
189
- msgstr "kopyala"
190
-
191
- #: includes/admin/admin-field-group.php:163
192
  #: includes/admin/views/field-group-field-conditional-logic.php:51
193
  #: includes/admin/views/field-group-field-conditional-logic.php:151
194
  #: includes/admin/views/field-group-locations.php:29
195
  #: includes/admin/views/html-location-group.php:3
196
- #: includes/api/api-helpers.php:4073
197
  msgid "or"
198
  msgstr "veya"
199
 
200
- #: includes/admin/admin-field-group.php:164
201
  msgid "Null"
202
  msgstr "Boş"
203
 
204
- #: includes/admin/admin-field-group.php:203
205
  msgid "Location"
206
  msgstr "Konum"
207
 
208
- #: includes/admin/admin-field-group.php:204
209
  #: includes/admin/tools/class-acf-admin-tool-export.php:295
210
  msgid "Settings"
211
  msgstr "Ayarlar"
212
 
213
- #: includes/admin/admin-field-group.php:354
214
  msgid "Field Keys"
215
  msgstr "Alan anahtarları"
216
 
217
- #: includes/admin/admin-field-group.php:384
218
  #: includes/admin/views/field-group-options.php:9
219
  msgid "Active"
220
  msgstr "Etkin"
221
 
222
- #: includes/admin/admin-field-group.php:746
223
  msgid "Move Complete."
224
  msgstr "Taşıma tamamlandı."
225
 
226
- #: includes/admin/admin-field-group.php:747
227
  #, php-format
228
  msgid "The %s field can now be found in the %s field group"
229
  msgstr "%s alanı artık %s alan grubu altında bulunabilir"
230
 
231
- #: includes/admin/admin-field-group.php:748
232
  msgid "Close Window"
233
  msgstr "Pencereyi kapat"
234
 
235
- #: includes/admin/admin-field-group.php:789
236
  msgid "Please select the destination for this field"
237
  msgstr "Lütfen bu alan için bir hedef seçin"
238
 
239
- #: includes/admin/admin-field-group.php:796
240
  msgid "Move Field"
241
  msgstr "Alanı taşı"
242
 
243
- #: includes/admin/admin-field-groups.php:74
244
  #, php-format
245
  msgid "Active <span class=\"count\">(%s)</span>"
246
  msgid_plural "Active <span class=\"count\">(%s)</span>"
247
  msgstr[0] "Etkin <span class=“count”>(%s)</span>"
248
  msgstr[1] "Etkin <span class=“count”>(%s)</span>"
249
 
250
- #: includes/admin/admin-field-groups.php:142
251
  #, php-format
252
- msgid "Field group duplicated. %s"
253
- msgstr "Alan grubu çoğaltıldı. %s"
254
-
255
- #: includes/admin/admin-field-groups.php:146
256
- #, php-format
257
- msgid "%s field group duplicated."
258
  msgid_plural "%s field groups duplicated."
259
- msgstr[0] "%s alan grubu çoğaltıldı."
260
  msgstr[1] "%s alan grubu çoğaltıldı."
261
 
262
- #: includes/admin/admin-field-groups.php:227
263
- #, php-format
264
- msgid "Field group synchronised. %s"
265
- msgstr "Alan grubu eşitlendi. %s"
266
-
267
- #: includes/admin/admin-field-groups.php:231
268
  #, php-format
269
- msgid "%s field group synchronised."
270
  msgid_plural "%s field groups synchronised."
271
- msgstr[0] "%s alan grubu eşitlendi."
272
  msgstr[1] "%s alan grubu eşitlendi."
273
 
274
- #: includes/admin/admin-field-groups.php:394
275
- #: includes/admin/admin-field-groups.php:557
276
  msgid "Sync available"
277
  msgstr "Eşitleme mevcut"
278
 
279
- #: includes/admin/admin-field-groups.php:507 includes/forms/form-front.php:38
280
- #: pro/fields/class-acf-field-gallery.php:370
281
  msgid "Title"
282
  msgstr "Başlık"
283
 
284
- #: includes/admin/admin-field-groups.php:508
285
  #: includes/admin/views/field-group-options.php:96
286
  #: includes/admin/views/html-admin-page-upgrade-network.php:38
287
  #: includes/admin/views/html-admin-page-upgrade-network.php:49
288
- #: pro/fields/class-acf-field-gallery.php:397
289
  msgid "Description"
290
  msgstr "Açıklama"
291
 
292
- #: includes/admin/admin-field-groups.php:509
293
  msgid "Status"
294
  msgstr "Durum"
295
 
296
  #. Description of the plugin/theme
297
- #: includes/admin/admin-field-groups.php:607
298
- msgid "Customise WordPress with powerful, professional and intuitive fields."
299
- msgstr "Güçlü, profesyonel ve içgüdüsel alanlar ile WordPress'i özelleştirin."
300
 
301
- #: includes/admin/admin-field-groups.php:609
302
  #: includes/admin/settings-info.php:76
303
  #: pro/admin/views/html-settings-updates.php:107
304
  msgid "Changelog"
305
  msgstr "Değişiklik kayıtları"
306
 
307
- #: includes/admin/admin-field-groups.php:614
308
  #, php-format
309
  msgid "See what's new in <a href=\"%s\">version %s</a>."
310
  msgstr "<a href=\"%s\">%s sürümünde</a> neler yeni bir göz atın."
311
 
312
- #: includes/admin/admin-field-groups.php:617
313
  msgid "Resources"
314
  msgstr "Kaynaklar"
315
 
316
- #: includes/admin/admin-field-groups.php:619
317
  msgid "Website"
318
  msgstr "Websitesi"
319
 
320
- #: includes/admin/admin-field-groups.php:620
321
  msgid "Documentation"
322
  msgstr "Belgeler"
323
 
324
- #: includes/admin/admin-field-groups.php:621
325
  msgid "Support"
326
  msgstr "Destek"
327
 
328
- #: includes/admin/admin-field-groups.php:623
329
  #: includes/admin/views/settings-info.php:84
330
  msgid "Pro"
331
  msgstr "Pro"
332
 
333
- #: includes/admin/admin-field-groups.php:628
334
  #, php-format
335
  msgid "Thank you for creating with <a href=\"%s\">ACF</a>."
336
  msgstr "<a href=\"%s\">ACF</a> ile oluşturduğunuz için teşekkürler."
337
 
338
- #: includes/admin/admin-field-groups.php:667
339
  msgid "Duplicate this item"
340
  msgstr "Bu ögeyi çoğalt"
341
 
342
- #: includes/admin/admin-field-groups.php:667
343
- #: includes/admin/admin-field-groups.php:683
344
  #: includes/admin/views/field-group-field.php:46
345
  #: pro/fields/class-acf-field-flexible-content.php:571
346
  msgid "Duplicate"
347
  msgstr "Çoğalt"
348
 
349
- #: includes/admin/admin-field-groups.php:700
350
- #: includes/fields/class-acf-field-google-map.php:164
351
- #: includes/fields/class-acf-field-relationship.php:674
352
  msgid "Search"
353
  msgstr "Ara"
354
 
355
- #: includes/admin/admin-field-groups.php:759
356
  #, php-format
357
  msgid "Select %s"
358
  msgstr "Seç %s"
359
 
360
- #: includes/admin/admin-field-groups.php:767
361
  msgid "Synchronise field group"
362
  msgstr "Alan grubunu eşitle"
363
 
364
- #: includes/admin/admin-field-groups.php:767
365
- #: includes/admin/admin-field-groups.php:797
366
  msgid "Sync"
367
  msgstr "Eşitle"
368
 
369
- #: includes/admin/admin-field-groups.php:779
370
  msgid "Apply"
371
  msgstr "Uygula"
372
 
373
- #: includes/admin/admin-field-groups.php:797
374
  msgid "Bulk Actions"
375
  msgstr "Toplu eylemler"
376
 
@@ -390,20 +381,10 @@ msgstr "Veritabanını güncelle"
390
  msgid "Review sites & upgrade"
391
  msgstr "Siteleri incele ve güncelle"
392
 
393
- #: includes/admin/admin.php:113
394
- #: includes/admin/views/field-group-options.php:110
395
  msgid "Custom Fields"
396
  msgstr "Özel alanlar"
397
 
398
- #: includes/admin/settings-addons.php:51
399
- #: includes/admin/views/settings-addons.php:3
400
- msgid "Add-ons"
401
- msgstr "Eklentiler"
402
-
403
- #: includes/admin/settings-addons.php:87
404
- msgid "<b>Error</b>. Could not load add-ons list"
405
- msgstr "<b>Hata</b>. Eklenti listesi yüklenemedi"
406
-
407
  #: includes/admin/settings-info.php:50
408
  msgid "Info"
409
  msgstr "Bilgi"
@@ -481,7 +462,7 @@ msgstr "Kopyalandı"
481
  msgid "Import Field Groups"
482
  msgstr "Alan gruplarını içeri aktar"
483
 
484
- #: includes/admin/tools/class-acf-admin-tool-import.php:61
485
  msgid ""
486
  "Select the Advanced Custom Fields JSON file you would like to import. When "
487
  "you click the import button below, ACF will import the field groups."
@@ -490,33 +471,33 @@ msgstr ""
490
  "Aşağıdaki içeri aktar tuşuna bastığınızda ACF alan gruplarını içeri "
491
  "aktaracak."
492
 
493
- #: includes/admin/tools/class-acf-admin-tool-import.php:66
494
  #: includes/fields/class-acf-field-file.php:57
495
  msgid "Select File"
496
  msgstr "Dosya seç"
497
 
498
- #: includes/admin/tools/class-acf-admin-tool-import.php:76
499
  msgid "Import File"
500
  msgstr "Dosyayı içeri aktar"
501
 
502
- #: includes/admin/tools/class-acf-admin-tool-import.php:100
503
  #: includes/fields/class-acf-field-file.php:170
504
  msgid "No file selected"
505
  msgstr "Dosya seçilmedi"
506
 
507
- #: includes/admin/tools/class-acf-admin-tool-import.php:113
508
  msgid "Error uploading file. Please try again"
509
  msgstr "Dosya yüklenirken hata oluştu. Lütfen tekrar deneyin"
510
 
511
- #: includes/admin/tools/class-acf-admin-tool-import.php:122
512
  msgid "Incorrect file type"
513
  msgstr "Geçersiz dosya tipi"
514
 
515
- #: includes/admin/tools/class-acf-admin-tool-import.php:139
516
  msgid "Import file empty"
517
  msgstr "İçe aktarılan dosya boş"
518
 
519
- #: includes/admin/tools/class-acf-admin-tool-import.php:247
520
  #, php-format
521
  msgid "Imported 1 field group"
522
  msgid_plural "Imported %s field groups"
@@ -556,7 +537,7 @@ msgstr "Alanı düzenle"
556
  #: includes/fields/class-acf-field-file.php:152
557
  #: includes/fields/class-acf-field-image.php:139
558
  #: includes/fields/class-acf-field-link.php:139
559
- #: pro/fields/class-acf-field-gallery.php:357
560
  msgid "Edit"
561
  msgstr "Düzenle"
562
 
@@ -641,7 +622,7 @@ msgstr "Sırala"
641
  #: includes/fields/class-acf-field-button-group.php:198
642
  #: includes/fields/class-acf-field-checkbox.php:420
643
  #: includes/fields/class-acf-field-radio.php:311
644
- #: includes/fields/class-acf-field-select.php:428
645
  #: pro/fields/class-acf-field-flexible-content.php:596
646
  msgid "Label"
647
  msgstr "Etiket"
@@ -791,7 +772,7 @@ msgid "Page Attributes"
791
  msgstr "Sayfa öznitelikleri"
792
 
793
  #: includes/admin/views/field-group-options.php:118
794
- #: includes/fields/class-acf-field-relationship.php:688
795
  msgid "Featured Image"
796
  msgstr "Öne çıkarılmış görsel"
797
 
@@ -905,6 +886,10 @@ msgstr ""
905
  msgid "No updates available."
906
  msgstr "Güncelleme yok."
907
 
 
 
 
 
908
  #: includes/admin/views/html-location-group.php:3
909
  msgid "Show this field group if"
910
  msgstr "Bu alan grubunu şu koşulda göster"
@@ -948,12 +933,15 @@ msgstr ""
948
  #: includes/admin/views/html-notice-upgrade.php:24
949
  #, php-format
950
  msgid ""
951
- "Please also ensure any premium add-ons (%s) have first been updated to the "
952
- "latest version."
953
  msgstr ""
954
- "Lütfen ayrıca premium eklentilerin (%s) de en üst sürüme güncellendiğinden "
955
  "emin olun."
956
 
 
 
 
 
957
  #: includes/admin/views/settings-addons.php:17
958
  msgid "Download & Install"
959
  msgstr "İndir ve yükle"
@@ -1246,188 +1234,193 @@ msgstr ""
1246
  msgid "We think you'll love the changes in %s."
1247
  msgstr "%s sürümündeki değişiklikleri seveceğinizi düşünüyoruz."
1248
 
1249
- #: includes/api/api-helpers.php:1046
1250
  msgid "Thumbnail"
1251
  msgstr "Küçük görsel"
1252
 
1253
- #: includes/api/api-helpers.php:1047
1254
  msgid "Medium"
1255
  msgstr "Orta"
1256
 
1257
- #: includes/api/api-helpers.php:1048
1258
  msgid "Large"
1259
  msgstr "Büyük"
1260
 
1261
- #: includes/api/api-helpers.php:1097
1262
  msgid "Full Size"
1263
  msgstr "Tam boyut"
1264
 
1265
- #: includes/api/api-helpers.php:1339 includes/api/api-helpers.php:1912
1266
  #: pro/fields/class-acf-field-clone.php:996
1267
  msgid "(no title)"
1268
  msgstr "(başlıksız)"
1269
 
1270
- #: includes/api/api-helpers.php:3994
1271
  #, php-format
1272
  msgid "Image width must be at least %dpx."
1273
  msgstr "Görsel genişliği en az %dpx olmalı."
1274
 
1275
- #: includes/api/api-helpers.php:3999
1276
  #, php-format
1277
  msgid "Image width must not exceed %dpx."
1278
  msgstr "Görsel genişliği %dpx değerini geçmemeli."
1279
 
1280
- #: includes/api/api-helpers.php:4015
1281
  #, php-format
1282
  msgid "Image height must be at least %dpx."
1283
  msgstr "Görsel yüksekliği en az %dpx olmalı."
1284
 
1285
- #: includes/api/api-helpers.php:4020
1286
  #, php-format
1287
  msgid "Image height must not exceed %dpx."
1288
  msgstr "Görsel yüksekliği %dpx değerini geçmemeli."
1289
 
1290
- #: includes/api/api-helpers.php:4038
1291
  #, php-format
1292
  msgid "File size must be at least %s."
1293
  msgstr "Dosya boyutu en az %s olmalı."
1294
 
1295
- #: includes/api/api-helpers.php:4043
1296
  #, php-format
1297
  msgid "File size must must not exceed %s."
1298
  msgstr "Dosya boyutu %s boyutunu geçmemeli."
1299
 
1300
- #: includes/api/api-helpers.php:4077
1301
  #, php-format
1302
  msgid "File type must be %s."
1303
  msgstr "Dosya tipi %s olmalı."
1304
 
1305
- #: includes/assets.php:172
1306
  msgid "The changes you made will be lost if you navigate away from this page"
1307
  msgstr ""
1308
  "Bu sayfadan başka bir sayfaya geçerseniz yaptığınız değişiklikler kaybolacak"
1309
 
1310
- #: includes/assets.php:175 includes/fields/class-acf-field-select.php:259
1311
  msgctxt "verb"
1312
  msgid "Select"
1313
  msgstr "Seç"
1314
 
1315
- #: includes/assets.php:176
1316
  msgctxt "verb"
1317
  msgid "Edit"
1318
  msgstr "Düzenle"
1319
 
1320
- #: includes/assets.php:177
1321
  msgctxt "verb"
1322
  msgid "Update"
1323
  msgstr "Güncelle"
1324
 
1325
- #: includes/assets.php:178
1326
  msgid "Uploaded to this post"
1327
  msgstr "Bu yazıya yüklenmiş"
1328
 
1329
- #: includes/assets.php:179
1330
  msgid "Expand Details"
1331
  msgstr "Ayrıntıları genişlet"
1332
 
1333
- #: includes/assets.php:180
1334
  msgid "Collapse Details"
1335
  msgstr "Detayları daralt"
1336
 
1337
- #: includes/assets.php:181
1338
  msgid "Restricted"
1339
  msgstr "Kısıtlı"
1340
 
1341
- #: includes/assets.php:182 includes/fields/class-acf-field-image.php:67
1342
  msgid "All images"
1343
  msgstr "Tüm görseller"
1344
 
1345
- #: includes/assets.php:185
1346
  msgid "Validation successful"
1347
  msgstr "Doğrulama başarılı"
1348
 
1349
- #: includes/assets.php:186 includes/validation.php:285
1350
  #: includes/validation.php:296
1351
  msgid "Validation failed"
1352
  msgstr "Doğrulama başarısız"
1353
 
1354
- #: includes/assets.php:187
1355
  msgid "1 field requires attention"
1356
  msgstr "1 alan dikkatinizi gerektiriyor"
1357
 
1358
- #: includes/assets.php:188
1359
  #, php-format
1360
  msgid "%d fields require attention"
1361
  msgstr "%d alan dikkatinizi gerektiriyor"
1362
 
1363
- #: includes/assets.php:191
1364
  msgid "Are you sure?"
1365
  msgstr "Emin misiniz?"
1366
 
1367
- #: includes/assets.php:192 includes/fields/class-acf-field-true_false.php:79
1368
  #: includes/fields/class-acf-field-true_false.php:159
1369
  #: pro/admin/views/html-settings-updates.php:89
1370
  msgid "Yes"
1371
  msgstr "Evet"
1372
 
1373
- #: includes/assets.php:193 includes/fields/class-acf-field-true_false.php:80
1374
  #: includes/fields/class-acf-field-true_false.php:174
1375
  #: pro/admin/views/html-settings-updates.php:99
1376
  msgid "No"
1377
  msgstr "Hayır"
1378
 
1379
- #: includes/assets.php:194 includes/fields/class-acf-field-file.php:154
1380
  #: includes/fields/class-acf-field-image.php:141
1381
  #: includes/fields/class-acf-field-link.php:140
1382
- #: pro/fields/class-acf-field-gallery.php:358
1383
- #: pro/fields/class-acf-field-gallery.php:546
1384
  msgid "Remove"
1385
  msgstr "Kaldır"
1386
 
1387
- #: includes/assets.php:195
1388
  msgid "Cancel"
1389
  msgstr "İptal"
1390
 
1391
- #: includes/assets.php:198
1392
  msgid "Has any value"
1393
  msgstr "Herhangi bir değer"
1394
 
1395
- #: includes/assets.php:199
1396
  msgid "Has no value"
1397
  msgstr "Hiçbir değer"
1398
 
1399
- #: includes/assets.php:200
1400
  msgid "Value is equal to"
1401
  msgstr "Değer eşitse"
1402
 
1403
- #: includes/assets.php:201
1404
  msgid "Value is not equal to"
1405
  msgstr "Değer eşit değilse"
1406
 
1407
- #: includes/assets.php:202
1408
  msgid "Value matches pattern"
1409
  msgstr "Değer bir desenle eşleşir"
1410
 
1411
- #: includes/assets.php:203
1412
  msgid "Value contains"
1413
  msgstr "Değer içeriyor"
1414
 
1415
- #: includes/assets.php:204
1416
  msgid "Value is greater than"
1417
  msgstr "Değer daha büyük"
1418
 
1419
- #: includes/assets.php:205
1420
  msgid "Value is less than"
1421
  msgstr "Değer daha az"
1422
 
1423
- #: includes/assets.php:206
1424
  msgid "Selection is greater than"
1425
  msgstr "Seçin daha büyük"
1426
 
1427
- #: includes/assets.php:207
1428
  msgid "Selection is less than"
1429
  msgstr "Seçim daha az"
1430
 
 
 
 
 
 
1431
  #: includes/fields.php:308
1432
  msgid "Field type does not exist"
1433
  msgstr "Var olmayan alan tipi"
@@ -1507,21 +1500,21 @@ msgstr "Tuş grubu"
1507
  #: includes/fields/class-acf-field-button-group.php:149
1508
  #: includes/fields/class-acf-field-checkbox.php:344
1509
  #: includes/fields/class-acf-field-radio.php:235
1510
- #: includes/fields/class-acf-field-select.php:359
1511
  msgid "Choices"
1512
  msgstr "Seçimler"
1513
 
1514
  #: includes/fields/class-acf-field-button-group.php:150
1515
  #: includes/fields/class-acf-field-checkbox.php:345
1516
  #: includes/fields/class-acf-field-radio.php:236
1517
- #: includes/fields/class-acf-field-select.php:360
1518
  msgid "Enter each choice on a new line."
1519
  msgstr "Her seçeneği yeni bir satıra girin."
1520
 
1521
  #: includes/fields/class-acf-field-button-group.php:150
1522
  #: includes/fields/class-acf-field-checkbox.php:345
1523
  #: includes/fields/class-acf-field-radio.php:236
1524
- #: includes/fields/class-acf-field-select.php:360
1525
  msgid "For more control, you may specify both a value and label like this:"
1526
  msgstr ""
1527
  "Daha fazla kontrol için, hem bir değeri hem de bir etiketi şu şekilde "
@@ -1530,7 +1523,7 @@ msgstr ""
1530
  #: includes/fields/class-acf-field-button-group.php:150
1531
  #: includes/fields/class-acf-field-checkbox.php:345
1532
  #: includes/fields/class-acf-field-radio.php:236
1533
- #: includes/fields/class-acf-field-select.php:360
1534
  msgid "red : Red"
1535
  msgstr "kirmizi : Kırmızı"
1536
 
@@ -1538,9 +1531,9 @@ msgstr "kirmizi : Kırmızı"
1538
  #: includes/fields/class-acf-field-page_link.php:513
1539
  #: includes/fields/class-acf-field-post_object.php:411
1540
  #: includes/fields/class-acf-field-radio.php:244
1541
- #: includes/fields/class-acf-field-select.php:377
1542
  #: includes/fields/class-acf-field-taxonomy.php:784
1543
- #: includes/fields/class-acf-field-user.php:409
1544
  msgid "Allow Null?"
1545
  msgstr "Boş geçilebilir mi?"
1546
 
@@ -1551,7 +1544,7 @@ msgstr "Boş geçilebilir mi?"
1551
  #: includes/fields/class-acf-field-number.php:127
1552
  #: includes/fields/class-acf-field-radio.php:281
1553
  #: includes/fields/class-acf-field-range.php:149
1554
- #: includes/fields/class-acf-field-select.php:368
1555
  #: includes/fields/class-acf-field-text.php:119
1556
  #: includes/fields/class-acf-field-textarea.php:102
1557
  #: includes/fields/class-acf-field-true_false.php:135
@@ -1606,14 +1599,14 @@ msgstr "Ön yüzden dönecek değeri belirleyin"
1606
  #: includes/fields/class-acf-field-button-group.php:197
1607
  #: includes/fields/class-acf-field-checkbox.php:419
1608
  #: includes/fields/class-acf-field-radio.php:310
1609
- #: includes/fields/class-acf-field-select.php:427
1610
  msgid "Value"
1611
  msgstr "Değer"
1612
 
1613
  #: includes/fields/class-acf-field-button-group.php:199
1614
  #: includes/fields/class-acf-field-checkbox.php:421
1615
  #: includes/fields/class-acf-field-radio.php:312
1616
- #: includes/fields/class-acf-field-select.php:429
1617
  msgid "Both (Array)"
1618
  msgstr "İkisi de (Dizi)"
1619
 
@@ -1647,7 +1640,7 @@ msgid "Save 'custom' values to the field's choices"
1647
  msgstr "‘Özel’ değerleri alanın seçenekleri arasına kaydet"
1648
 
1649
  #: includes/fields/class-acf-field-checkbox.php:381
1650
- #: includes/fields/class-acf-field-select.php:369
1651
  msgid "Enter each default value on a new line"
1652
  msgstr "Her varsayılan değeri yeni bir satıra girin"
1653
 
@@ -1709,20 +1702,20 @@ msgctxt "Date Picker JS weekHeader"
1709
  msgid "Wk"
1710
  msgstr "Hf"
1711
 
1712
- #: includes/fields/class-acf-field-date_picker.php:180
1713
  #: includes/fields/class-acf-field-date_time_picker.php:183
1714
  #: includes/fields/class-acf-field-time_picker.php:109
1715
  msgid "Display Format"
1716
  msgstr "Gösterim biçimi"
1717
 
1718
- #: includes/fields/class-acf-field-date_picker.php:181
1719
  #: includes/fields/class-acf-field-date_time_picker.php:184
1720
  #: includes/fields/class-acf-field-time_picker.php:110
1721
  msgid "The format displayed when editing a post"
1722
  msgstr "Bir yazı düzenlenirken görüntülenecek biçim"
1723
 
1724
- #: includes/fields/class-acf-field-date_picker.php:189
1725
- #: includes/fields/class-acf-field-date_picker.php:220
1726
  #: includes/fields/class-acf-field-date_time_picker.php:193
1727
  #: includes/fields/class-acf-field-date_time_picker.php:210
1728
  #: includes/fields/class-acf-field-time_picker.php:117
@@ -1730,31 +1723,31 @@ msgstr "Bir yazı düzenlenirken görüntülenecek biçim"
1730
  msgid "Custom:"
1731
  msgstr "Özel:"
1732
 
1733
- #: includes/fields/class-acf-field-date_picker.php:199
1734
  msgid "Save Format"
1735
  msgstr "Biçimi kaydet"
1736
 
1737
- #: includes/fields/class-acf-field-date_picker.php:200
1738
  msgid "The format used when saving a value"
1739
  msgstr "Bir değer kaydedilirken kullanılacak biçim"
1740
 
1741
- #: includes/fields/class-acf-field-date_picker.php:210
1742
  #: includes/fields/class-acf-field-date_time_picker.php:200
1743
  #: includes/fields/class-acf-field-post_object.php:431
1744
- #: includes/fields/class-acf-field-relationship.php:715
1745
- #: includes/fields/class-acf-field-select.php:422
1746
  #: includes/fields/class-acf-field-time_picker.php:124
1747
- #: includes/fields/class-acf-field-user.php:428
1748
  msgid "Return Format"
1749
  msgstr "Dönüş biçimi"
1750
 
1751
- #: includes/fields/class-acf-field-date_picker.php:211
1752
  #: includes/fields/class-acf-field-date_time_picker.php:201
1753
  #: includes/fields/class-acf-field-time_picker.php:125
1754
  msgid "The format returned via template functions"
1755
  msgstr "Tema işlevlerinden dönen biçim"
1756
 
1757
- #: includes/fields/class-acf-field-date_picker.php:229
1758
  #: includes/fields/class-acf-field-date_time_picker.php:217
1759
  msgid "Week Starts On"
1760
  msgstr "Hafta başlangıcı"
@@ -1913,8 +1906,8 @@ msgstr "Dosya adı"
1913
  #: includes/fields/class-acf-field-file.php:259
1914
  #: includes/fields/class-acf-field-image.php:265
1915
  #: includes/fields/class-acf-field-image.php:294
1916
- #: pro/fields/class-acf-field-gallery.php:705
1917
- #: pro/fields/class-acf-field-gallery.php:734
1918
  msgid "File size"
1919
  msgstr "Dosya boyutu"
1920
 
@@ -1936,13 +1929,13 @@ msgstr "Dosya no"
1936
 
1937
  #: includes/fields/class-acf-field-file.php:230
1938
  #: includes/fields/class-acf-field-image.php:230
1939
- #: pro/fields/class-acf-field-gallery.php:670
1940
  msgid "Library"
1941
  msgstr "Kitaplık"
1942
 
1943
  #: includes/fields/class-acf-field-file.php:231
1944
  #: includes/fields/class-acf-field-image.php:231
1945
- #: pro/fields/class-acf-field-gallery.php:671
1946
  msgid "Limit the media library choice"
1947
  msgstr "Ortam kitaplığı seçimini sınırlayın"
1948
 
@@ -1955,19 +1948,19 @@ msgstr "Ortam kitaplığı seçimini sınırlayın"
1955
  #: includes/locations/class-acf-location-user-form.php:87
1956
  #: includes/locations/class-acf-location-user-role.php:111
1957
  #: includes/locations/class-acf-location-widget.php:83
1958
- #: pro/fields/class-acf-field-gallery.php:676
1959
  msgid "All"
1960
  msgstr "Tümü"
1961
 
1962
  #: includes/fields/class-acf-field-file.php:237
1963
  #: includes/fields/class-acf-field-image.php:237
1964
- #: pro/fields/class-acf-field-gallery.php:677
1965
  msgid "Uploaded to post"
1966
  msgstr "Yazıya yüklendi"
1967
 
1968
  #: includes/fields/class-acf-field-file.php:244
1969
  #: includes/fields/class-acf-field-image.php:244
1970
- #: pro/fields/class-acf-field-gallery.php:684
1971
  msgid "Minimum"
1972
  msgstr "En az"
1973
 
@@ -1978,19 +1971,19 @@ msgstr "Yüklenebilecek dosyaları sınırlandırın"
1978
 
1979
  #: includes/fields/class-acf-field-file.php:255
1980
  #: includes/fields/class-acf-field-image.php:273
1981
- #: pro/fields/class-acf-field-gallery.php:713
1982
  msgid "Maximum"
1983
  msgstr "En fazla"
1984
 
1985
  #: includes/fields/class-acf-field-file.php:266
1986
  #: includes/fields/class-acf-field-image.php:302
1987
- #: pro/fields/class-acf-field-gallery.php:742
1988
  msgid "Allowed file types"
1989
  msgstr "İzin verilen dosya tipleri"
1990
 
1991
  #: includes/fields/class-acf-field-file.php:267
1992
  #: includes/fields/class-acf-field-image.php:303
1993
- #: pro/fields/class-acf-field-gallery.php:743
1994
  msgid "Comma separated list. Leave blank for all types"
1995
  msgstr "Virgül ile ayrılmış liste. Tüm tipler için boş bırakın"
1996
 
@@ -2002,47 +1995,47 @@ msgstr "Google haritası"
2002
  msgid "Sorry, this browser does not support geolocation"
2003
  msgstr "Üzgünüz, bu tarayıcı konumlandırma desteklemiyor"
2004
 
2005
- #: includes/fields/class-acf-field-google-map.php:165
2006
  msgid "Clear location"
2007
  msgstr "Konumu temizle"
2008
 
2009
- #: includes/fields/class-acf-field-google-map.php:166
2010
  msgid "Find current location"
2011
  msgstr "Şu anki konumu bul"
2012
 
2013
- #: includes/fields/class-acf-field-google-map.php:169
2014
  msgid "Search for address..."
2015
  msgstr "Adres arayın…"
2016
 
2017
- #: includes/fields/class-acf-field-google-map.php:199
2018
- #: includes/fields/class-acf-field-google-map.php:210
2019
  msgid "Center"
2020
  msgstr "Merkez"
2021
 
2022
- #: includes/fields/class-acf-field-google-map.php:200
2023
- #: includes/fields/class-acf-field-google-map.php:211
2024
  msgid "Center the initial map"
2025
  msgstr "Haritayı ortala"
2026
 
2027
- #: includes/fields/class-acf-field-google-map.php:222
2028
  msgid "Zoom"
2029
  msgstr "Yaklaş"
2030
 
2031
- #: includes/fields/class-acf-field-google-map.php:223
2032
  msgid "Set the initial zoom level"
2033
  msgstr "Temel yaklaşma seviyesini belirle"
2034
 
2035
- #: includes/fields/class-acf-field-google-map.php:232
2036
  #: includes/fields/class-acf-field-image.php:256
2037
  #: includes/fields/class-acf-field-image.php:285
2038
  #: includes/fields/class-acf-field-oembed.php:268
2039
- #: pro/fields/class-acf-field-gallery.php:696
2040
- #: pro/fields/class-acf-field-gallery.php:725
2041
  msgid "Height"
2042
  msgstr "Yükseklik"
2043
 
2044
- #: includes/fields/class-acf-field-google-map.php:233
2045
- msgid "Customise the map height"
2046
  msgstr "Harita yüksekliğini özelleştir"
2047
 
2048
  #: includes/fields/class-acf-field-group.php:25
@@ -2126,16 +2119,16 @@ msgstr "Veri girilirken gösterilir"
2126
 
2127
  #: includes/fields/class-acf-field-image.php:245
2128
  #: includes/fields/class-acf-field-image.php:274
2129
- #: pro/fields/class-acf-field-gallery.php:685
2130
- #: pro/fields/class-acf-field-gallery.php:714
2131
  msgid "Restrict which images can be uploaded"
2132
  msgstr "Hangi görsellerin yüklenebileceğini sınırlandırın"
2133
 
2134
  #: includes/fields/class-acf-field-image.php:248
2135
  #: includes/fields/class-acf-field-image.php:277
2136
  #: includes/fields/class-acf-field-oembed.php:257
2137
- #: pro/fields/class-acf-field-gallery.php:688
2138
- #: pro/fields/class-acf-field-gallery.php:717
2139
  msgid "Width"
2140
  msgstr "Genişlik"
2141
 
@@ -2260,25 +2253,25 @@ msgstr "Ebeveyn"
2260
 
2261
  #: includes/fields/class-acf-field-page_link.php:485
2262
  #: includes/fields/class-acf-field-post_object.php:383
2263
- #: includes/fields/class-acf-field-relationship.php:641
2264
  msgid "Filter by Post Type"
2265
  msgstr "Yazı tipine göre filtre"
2266
 
2267
  #: includes/fields/class-acf-field-page_link.php:493
2268
  #: includes/fields/class-acf-field-post_object.php:391
2269
- #: includes/fields/class-acf-field-relationship.php:649
2270
  msgid "All post types"
2271
  msgstr "Tüm yazı tipleri"
2272
 
2273
  #: includes/fields/class-acf-field-page_link.php:499
2274
  #: includes/fields/class-acf-field-post_object.php:397
2275
- #: includes/fields/class-acf-field-relationship.php:655
2276
  msgid "Filter by Taxonomy"
2277
  msgstr "Taksonomiye göre filtre"
2278
 
2279
  #: includes/fields/class-acf-field-page_link.php:507
2280
  #: includes/fields/class-acf-field-post_object.php:405
2281
- #: includes/fields/class-acf-field-relationship.php:663
2282
  msgid "All taxonomies"
2283
  msgstr "Tüm taksonomiler"
2284
 
@@ -2288,8 +2281,8 @@ msgstr "Arşivler adresine izin ver"
2288
 
2289
  #: includes/fields/class-acf-field-page_link.php:533
2290
  #: includes/fields/class-acf-field-post_object.php:421
2291
- #: includes/fields/class-acf-field-select.php:387
2292
- #: includes/fields/class-acf-field-user.php:419
2293
  msgid "Select multiple values?"
2294
  msgstr "Birden çok değer seçilsin mi?"
2295
 
@@ -2299,12 +2292,12 @@ msgstr "Parola"
2299
 
2300
  #: includes/fields/class-acf-field-post_object.php:25
2301
  #: includes/fields/class-acf-field-post_object.php:436
2302
- #: includes/fields/class-acf-field-relationship.php:720
2303
  msgid "Post Object"
2304
  msgstr "Yazı nesnesi"
2305
 
2306
  #: includes/fields/class-acf-field-post_object.php:437
2307
- #: includes/fields/class-acf-field-relationship.php:721
2308
  msgid "Post ID"
2309
  msgstr "Yazı No"
2310
 
@@ -2348,52 +2341,52 @@ msgstr "Yükleniyor"
2348
  msgid "No matches found"
2349
  msgstr "Eşleşme yok"
2350
 
2351
- #: includes/fields/class-acf-field-relationship.php:441
2352
  msgid "Select post type"
2353
  msgstr "Yazı tipi seç"
2354
 
2355
- #: includes/fields/class-acf-field-relationship.php:467
2356
  msgid "Select taxonomy"
2357
  msgstr "Taksonomi seç"
2358
 
2359
- #: includes/fields/class-acf-field-relationship.php:557
2360
  msgid "Search..."
2361
  msgstr "Ara…"
2362
 
2363
- #: includes/fields/class-acf-field-relationship.php:669
2364
  msgid "Filters"
2365
  msgstr "Filtreler"
2366
 
2367
- #: includes/fields/class-acf-field-relationship.php:675
2368
  #: includes/locations/class-acf-location-post-type.php:27
2369
  msgid "Post Type"
2370
  msgstr "Yazı tipi"
2371
 
2372
- #: includes/fields/class-acf-field-relationship.php:676
2373
  #: includes/fields/class-acf-field-taxonomy.php:28
2374
  #: includes/fields/class-acf-field-taxonomy.php:754
2375
  #: includes/locations/class-acf-location-taxonomy.php:27
2376
  msgid "Taxonomy"
2377
  msgstr "Taksonomi"
2378
 
2379
- #: includes/fields/class-acf-field-relationship.php:683
2380
  msgid "Elements"
2381
  msgstr "Elemanlar"
2382
 
2383
- #: includes/fields/class-acf-field-relationship.php:684
2384
  msgid "Selected elements will be displayed in each result"
2385
  msgstr "Her sonuç içinde seçilmiş elemanlar görüntülenir"
2386
 
2387
- #: includes/fields/class-acf-field-relationship.php:695
2388
  msgid "Minimum posts"
2389
  msgstr "En az gönderi"
2390
 
2391
- #: includes/fields/class-acf-field-relationship.php:704
2392
  msgid "Maximum posts"
2393
  msgstr "En fazla yazı"
2394
 
2395
- #: includes/fields/class-acf-field-relationship.php:808
2396
- #: pro/fields/class-acf-field-gallery.php:815
2397
  #, php-format
2398
  msgid "%s requires at least %s selection"
2399
  msgid_plural "%s requires at least %s selections"
@@ -2470,16 +2463,16 @@ msgctxt "Select2 JS load_fail"
2470
  msgid "Loading failed"
2471
  msgstr "Yükleme başarısız oldu"
2472
 
2473
- #: includes/fields/class-acf-field-select.php:397
2474
  #: includes/fields/class-acf-field-true_false.php:144
2475
  msgid "Stylised UI"
2476
  msgstr "Stilize edilmiş kullanıcı arabirimi"
2477
 
2478
- #: includes/fields/class-acf-field-select.php:407
2479
  msgid "Use AJAX to lazy load choices?"
2480
  msgstr "Seçimlerin tembel yüklenmesi için AJAX kullanılsın mı?"
2481
 
2482
- #: includes/fields/class-acf-field-select.php:423
2483
  msgid "Specify the value returned"
2484
  msgstr "Dönecek değeri belirt"
2485
 
@@ -2602,6 +2595,12 @@ msgstr "Karakter limiti"
2602
  msgid "Leave blank for no limit"
2603
  msgstr "Limit olmaması için boş bırakın"
2604
 
 
 
 
 
 
 
2605
  #: includes/fields/class-acf-field-textarea.php:25
2606
  msgid "Text Area"
2607
  msgstr "Metin alanı"
@@ -2654,23 +2653,23 @@ msgstr "Değer geçerli bir web adresi olmalı"
2654
  msgid "User"
2655
  msgstr "Kullanıcı"
2656
 
2657
- #: includes/fields/class-acf-field-user.php:394
2658
  msgid "Filter by role"
2659
  msgstr "Kurala göre filtrele"
2660
 
2661
- #: includes/fields/class-acf-field-user.php:402
2662
  msgid "All user roles"
2663
  msgstr "Bütün kullanıcı rolleri"
2664
 
2665
- #: includes/fields/class-acf-field-user.php:433
2666
  msgid "User Array"
2667
  msgstr "Kullanıcı dizisi"
2668
 
2669
- #: includes/fields/class-acf-field-user.php:434
2670
  msgid "User Object"
2671
  msgstr "Kullanıcı nesnesi"
2672
 
2673
- #: includes/fields/class-acf-field-user.php:435
2674
  msgid "User ID"
2675
  msgstr "Kullanıcı No"
2676
 
@@ -2723,16 +2722,11 @@ msgstr "Hazırlık geciktirilsin mi?"
2723
  msgid "TinyMCE will not be initalized until field is clicked"
2724
  msgstr "Alan tıklanana kadar TinyMCE hazırlanmayacak"
2725
 
2726
- #: includes/forms/form-comment.php:166 includes/forms/form-post.php:301
2727
- #: pro/admin/admin-options-page.php:308
2728
- msgid "Edit field group"
2729
- msgstr "Alan grubunu düzenle"
2730
-
2731
  #: includes/forms/form-front.php:55
2732
  msgid "Validate Email"
2733
  msgstr "E-postayı doğrula"
2734
 
2735
- #: includes/forms/form-front.php:103 pro/fields/class-acf-field-gallery.php:588
2736
  #: pro/options-page.php:81
2737
  msgid "Update"
2738
  msgstr "Güncelle"
@@ -2826,8 +2820,8 @@ msgstr "Sayfa ebeveyni"
2826
  msgid "Page Template"
2827
  msgstr "Sayfa şablonu"
2828
 
2829
- #: includes/locations/class-acf-location-page-template.php:98
2830
- #: includes/locations/class-acf-location-post-template.php:151
2831
  msgid "Default Template"
2832
  msgstr "Varsayılan şablon"
2833
 
@@ -2905,11 +2899,11 @@ msgstr "%s değeri gerekli"
2905
  msgid "Advanced Custom Fields PRO"
2906
  msgstr "Advanced Custom Fields PRO"
2907
 
2908
- #: pro/admin/admin-options-page.php:200
2909
  msgid "Publish"
2910
  msgstr "Yayımla"
2911
 
2912
- #: pro/admin/admin-options-page.php:206
2913
  #, php-format
2914
  msgid ""
2915
  "No Custom Field Groups found for this options page. <a href=\"%s\">Create a "
@@ -2918,15 +2912,23 @@ msgstr ""
2918
  "Bu seçenekler sayfası için hiç özel alan grubu bulunamadı. <a href=\"%s"
2919
  "\">Bir özel alan grubu oluştur</a>"
2920
 
2921
- #: pro/admin/admin-settings-updates.php:78
2922
  msgid "<b>Error</b>. Could not connect to update server"
2923
  msgstr "<b> Hata</b>. Güncelleme sunucusu ile bağlantı kurulamadı"
2924
 
2925
- #: pro/admin/admin-settings-updates.php:162
2926
- #: pro/admin/views/html-settings-updates.php:13
2927
  msgid "Updates"
2928
  msgstr "Güncellemeler"
2929
 
 
 
 
 
 
 
 
 
 
2930
  #: pro/admin/views/html-settings-updates.php:7
2931
  msgid "Deactivate License"
2932
  msgstr "Lisansı devre dışı bırak"
@@ -3153,67 +3155,67 @@ msgstr "Galeriye görsel ekle"
3153
  msgid "Maximum selection reached"
3154
  msgstr "En fazla seçim aşıldı"
3155
 
3156
- #: pro/fields/class-acf-field-gallery.php:336
3157
  msgid "Length"
3158
  msgstr "Uzunluk"
3159
 
3160
- #: pro/fields/class-acf-field-gallery.php:379
3161
  msgid "Caption"
3162
  msgstr "Başlık"
3163
 
3164
- #: pro/fields/class-acf-field-gallery.php:388
3165
  msgid "Alt Text"
3166
  msgstr "Alternatif metin"
3167
 
3168
- #: pro/fields/class-acf-field-gallery.php:559
3169
  msgid "Add to gallery"
3170
  msgstr "Galeriye ekle"
3171
 
3172
- #: pro/fields/class-acf-field-gallery.php:563
3173
  msgid "Bulk actions"
3174
  msgstr "Toplu eylemler"
3175
 
3176
- #: pro/fields/class-acf-field-gallery.php:564
3177
  msgid "Sort by date uploaded"
3178
  msgstr "Yüklenme tarihine göre sırala"
3179
 
3180
- #: pro/fields/class-acf-field-gallery.php:565
3181
  msgid "Sort by date modified"
3182
  msgstr "Değiştirme tarihine göre sırala"
3183
 
3184
- #: pro/fields/class-acf-field-gallery.php:566
3185
  msgid "Sort by title"
3186
  msgstr "Başlığa göre sırala"
3187
 
3188
- #: pro/fields/class-acf-field-gallery.php:567
3189
  msgid "Reverse current order"
3190
  msgstr "Sıralamayı ters çevir"
3191
 
3192
- #: pro/fields/class-acf-field-gallery.php:585
3193
  msgid "Close"
3194
  msgstr "Kapat"
3195
 
3196
- #: pro/fields/class-acf-field-gallery.php:639
3197
  msgid "Minimum Selection"
3198
  msgstr "En az seçim"
3199
 
3200
- #: pro/fields/class-acf-field-gallery.php:648
3201
  msgid "Maximum Selection"
3202
  msgstr "En fazla seçim"
3203
 
3204
- #: pro/fields/class-acf-field-gallery.php:657
3205
  msgid "Insert"
3206
  msgstr "Ekle"
3207
 
3208
- #: pro/fields/class-acf-field-gallery.php:658
3209
  msgid "Specify where new attachments are added"
3210
  msgstr "Yeni eklerin nereye ekleneceğini belirtin"
3211
 
3212
- #: pro/fields/class-acf-field-gallery.php:662
3213
  msgid "Append to the end"
3214
  msgstr "Sona ekle"
3215
 
3216
- #: pro/fields/class-acf-field-gallery.php:663
3217
  msgid "Prepend to the beginning"
3218
  msgstr "En başa ekleyin"
3219
 
@@ -3285,6 +3287,19 @@ msgstr "Elliot Condon"
3285
  msgid "http://www.elliotcondon.com/"
3286
  msgstr "http://www.elliotcondon.com/"
3287
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3288
  #~ msgid "Parent fields"
3289
  #~ msgstr "Üst alanlar"
3290
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Advanced Custom Fields Pro v5.7.12\n"
4
  "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
5
+ "POT-Creation-Date: 2019-01-31 12:36+0100\n"
6
+ "PO-Revision-Date: 2019-02-15 17:08+0300\n"
7
  "Last-Translator: Emre Erkan <kara@karalamalar.net>\n"
8
  "Language-Team: Emre Erkan <emre@ada.agency>\n"
9
  "Language: tr_TR\n"
26
  msgid "Advanced Custom Fields"
27
  msgstr "Advanced Custom Fields"
28
 
29
+ #: acf.php:363 includes/admin/admin.php:58
30
  msgid "Field Groups"
31
  msgstr "Alan grupları"
32
 
33
+ #: acf.php:364
34
  msgid "Field Group"
35
  msgstr "Alan grubu"
36
 
37
+ #: acf.php:365 acf.php:397 includes/admin/admin.php:59
38
  #: pro/fields/class-acf-field-flexible-content.php:572
39
  msgid "Add New"
40
  msgstr "Yeni ekle"
41
 
42
+ #: acf.php:366
43
  msgid "Add New Field Group"
44
  msgstr "Yeni alan grubu ekle"
45
 
46
+ #: acf.php:367
47
  msgid "Edit Field Group"
48
  msgstr "Alan grubunu düzenle"
49
 
50
+ #: acf.php:368
51
  msgid "New Field Group"
52
  msgstr "Yeni alan grubu"
53
 
54
+ #: acf.php:369
55
  msgid "View Field Group"
56
  msgstr "Alan grubunu görüntüle"
57
 
58
+ #: acf.php:370
59
  msgid "Search Field Groups"
60
  msgstr "Alan gruplarında ara"
61
 
62
+ #: acf.php:371
63
  msgid "No Field Groups found"
64
  msgstr "Hiç alan grubu bulunamadı"
65
 
66
+ #: acf.php:372
67
  msgid "No Field Groups found in Trash"
68
  msgstr "Çöpte alan grubu bulunamadı"
69
 
70
+ #: acf.php:395 includes/admin/admin-field-group.php:220
71
+ #: includes/admin/admin-field-groups.php:529
72
  #: pro/fields/class-acf-field-clone.php:811
73
  msgid "Fields"
74
  msgstr "Alanlar"
75
 
76
+ #: acf.php:396
77
  msgid "Field"
78
  msgstr "Alan"
79
 
80
+ #: acf.php:398
81
  msgid "Add New Field"
82
  msgstr "Yeni elan ekle"
83
 
84
+ #: acf.php:399
85
  msgid "Edit Field"
86
  msgstr "Alanı düzenle"
87
 
88
+ #: acf.php:400 includes/admin/views/field-group-fields.php:41
89
  msgid "New Field"
90
  msgstr "Yeni alan"
91
 
92
+ #: acf.php:401
93
  msgid "View Field"
94
  msgstr "Alanı görüntüle"
95
 
96
+ #: acf.php:402
97
  msgid "Search Fields"
98
  msgstr "Alanlarda ara"
99
 
100
+ #: acf.php:403
101
  msgid "No Fields found"
102
  msgstr "Hiç alan bulunamadı"
103
 
104
+ #: acf.php:404
105
  msgid "No Fields found in Trash"
106
  msgstr "Çöpte alan bulunamadı"
107
 
108
+ #: acf.php:443 includes/admin/admin-field-group.php:402
109
+ #: includes/admin/admin-field-groups.php:586
110
  msgid "Inactive"
111
  msgstr "Etkin değil"
112
 
113
+ #: acf.php:448
114
  #, php-format
115
  msgid "Inactive <span class=\"count\">(%s)</span>"
116
  msgid_plural "Inactive <span class=\"count\">(%s)</span>"
117
  msgstr[0] "Etkin olmayan <span class=“count”>(%s)</span>"
118
  msgstr[1] "Etkin olmayan <span class=“count”>(%s)</span>"
119
 
120
+ #: includes/acf-field-functions.php:823
121
+ #: includes/admin/admin-field-group.php:178
122
+ msgid "(no label)"
123
+ msgstr "(etiket yok)"
124
+
125
+ #: includes/acf-field-group-functions.php:816
126
+ #: includes/admin/admin-field-group.php:180
127
+ msgid "copy"
128
+ msgstr "kopyala"
129
+
130
+ #: includes/admin/admin-field-group.php:86
131
+ #: includes/admin/admin-field-group.php:87
132
+ #: includes/admin/admin-field-group.php:89
133
  msgid "Field group updated."
134
  msgstr "Alan grubu güncellendi."
135
 
136
+ #: includes/admin/admin-field-group.php:88
137
  msgid "Field group deleted."
138
  msgstr "Alan grubu silindi."
139
 
140
+ #: includes/admin/admin-field-group.php:91
141
  msgid "Field group published."
142
  msgstr "Alan grubu yayımlandı."
143
 
144
+ #: includes/admin/admin-field-group.php:92
145
  msgid "Field group saved."
146
  msgstr "Alan grubu kaydedildi."
147
 
148
+ #: includes/admin/admin-field-group.php:93
149
  msgid "Field group submitted."
150
  msgstr "Alan grubu gönderildi."
151
 
152
+ #: includes/admin/admin-field-group.php:94
153
  msgid "Field group scheduled for."
154
  msgstr "Alan grubu zamanlandı."
155
 
156
+ #: includes/admin/admin-field-group.php:95
157
  msgid "Field group draft updated."
158
  msgstr "Alan grubu taslağı güncellendi."
159
 
160
+ #: includes/admin/admin-field-group.php:171
161
  msgid "The string \"field_\" may not be used at the start of a field name"
162
  msgstr "Artık alan isimlerinin başlangıcında “field_” kullanılmayacak"
163
 
164
+ #: includes/admin/admin-field-group.php:172
165
  msgid "This field cannot be moved until its changes have been saved"
166
  msgstr "Bu alan, üzerinde yapılan değişiklikler kaydedilene kadar taşınamaz"
167
 
168
+ #: includes/admin/admin-field-group.php:173
169
  msgid "Field group title is required"
170
  msgstr "Alan grubu başlığı gerekli"
171
 
172
+ #: includes/admin/admin-field-group.php:174
173
  msgid "Move to trash. Are you sure?"
174
  msgstr "Çöpe taşımak istediğinizden emin misiniz?"
175
 
176
+ #: includes/admin/admin-field-group.php:175
177
  msgid "No toggle fields available"
178
  msgstr "Kullanılabilir aç-kapa alan yok"
179
 
180
+ #: includes/admin/admin-field-group.php:176
181
  msgid "Move Custom Field"
182
  msgstr "Özel alanı taşı"
183
 
184
+ #: includes/admin/admin-field-group.php:177
185
  msgid "Checked"
186
  msgstr "İşaretlendi"
187
 
188
+ #: includes/admin/admin-field-group.php:179
 
 
 
 
189
  msgid "(this field)"
190
  msgstr "(bu alan)"
191
 
192
+ #: includes/admin/admin-field-group.php:181
 
 
 
 
 
193
  #: includes/admin/views/field-group-field-conditional-logic.php:51
194
  #: includes/admin/views/field-group-field-conditional-logic.php:151
195
  #: includes/admin/views/field-group-locations.php:29
196
  #: includes/admin/views/html-location-group.php:3
197
+ #: includes/api/api-helpers.php:3990
198
  msgid "or"
199
  msgstr "veya"
200
 
201
+ #: includes/admin/admin-field-group.php:182
202
  msgid "Null"
203
  msgstr "Boş"
204
 
205
+ #: includes/admin/admin-field-group.php:221
206
  msgid "Location"
207
  msgstr "Konum"
208
 
209
+ #: includes/admin/admin-field-group.php:222
210
  #: includes/admin/tools/class-acf-admin-tool-export.php:295
211
  msgid "Settings"
212
  msgstr "Ayarlar"
213
 
214
+ #: includes/admin/admin-field-group.php:372
215
  msgid "Field Keys"
216
  msgstr "Alan anahtarları"
217
 
218
+ #: includes/admin/admin-field-group.php:402
219
  #: includes/admin/views/field-group-options.php:9
220
  msgid "Active"
221
  msgstr "Etkin"
222
 
223
+ #: includes/admin/admin-field-group.php:771
224
  msgid "Move Complete."
225
  msgstr "Taşıma tamamlandı."
226
 
227
+ #: includes/admin/admin-field-group.php:772
228
  #, php-format
229
  msgid "The %s field can now be found in the %s field group"
230
  msgstr "%s alanı artık %s alan grubu altında bulunabilir"
231
 
232
+ #: includes/admin/admin-field-group.php:773
233
  msgid "Close Window"
234
  msgstr "Pencereyi kapat"
235
 
236
+ #: includes/admin/admin-field-group.php:814
237
  msgid "Please select the destination for this field"
238
  msgstr "Lütfen bu alan için bir hedef seçin"
239
 
240
+ #: includes/admin/admin-field-group.php:821
241
  msgid "Move Field"
242
  msgstr "Alanı taşı"
243
 
244
+ #: includes/admin/admin-field-groups.php:89
245
  #, php-format
246
  msgid "Active <span class=\"count\">(%s)</span>"
247
  msgid_plural "Active <span class=\"count\">(%s)</span>"
248
  msgstr[0] "Etkin <span class=“count”>(%s)</span>"
249
  msgstr[1] "Etkin <span class=“count”>(%s)</span>"
250
 
251
+ #: includes/admin/admin-field-groups.php:156
252
  #, php-format
253
+ msgid "Field group duplicated."
 
 
 
 
 
254
  msgid_plural "%s field groups duplicated."
255
+ msgstr[0] "Alan grubu çoğaltıldı."
256
  msgstr[1] "%s alan grubu çoğaltıldı."
257
 
258
+ #: includes/admin/admin-field-groups.php:243
 
 
 
 
 
259
  #, php-format
260
+ msgid "Field group synchronised."
261
  msgid_plural "%s field groups synchronised."
262
+ msgstr[0] "Alan grubu eşitlendi."
263
  msgstr[1] "%s alan grubu eşitlendi."
264
 
265
+ #: includes/admin/admin-field-groups.php:413
266
+ #: includes/admin/admin-field-groups.php:576
267
  msgid "Sync available"
268
  msgstr "Eşitleme mevcut"
269
 
270
+ #: includes/admin/admin-field-groups.php:526 includes/forms/form-front.php:38
271
+ #: pro/fields/class-acf-field-gallery.php:372
272
  msgid "Title"
273
  msgstr "Başlık"
274
 
275
+ #: includes/admin/admin-field-groups.php:527
276
  #: includes/admin/views/field-group-options.php:96
277
  #: includes/admin/views/html-admin-page-upgrade-network.php:38
278
  #: includes/admin/views/html-admin-page-upgrade-network.php:49
279
+ #: pro/fields/class-acf-field-gallery.php:399
280
  msgid "Description"
281
  msgstr "Açıklama"
282
 
283
+ #: includes/admin/admin-field-groups.php:528
284
  msgid "Status"
285
  msgstr "Durum"
286
 
287
  #. Description of the plugin/theme
288
+ #: includes/admin/admin-field-groups.php:626
289
+ msgid "Customize WordPress with powerful, professional and intuitive fields."
290
+ msgstr "Güçlü, profesyonel ve sezgisel alanlar ile WordPress'i özelleştirin."
291
 
292
+ #: includes/admin/admin-field-groups.php:628
293
  #: includes/admin/settings-info.php:76
294
  #: pro/admin/views/html-settings-updates.php:107
295
  msgid "Changelog"
296
  msgstr "Değişiklik kayıtları"
297
 
298
+ #: includes/admin/admin-field-groups.php:633
299
  #, php-format
300
  msgid "See what's new in <a href=\"%s\">version %s</a>."
301
  msgstr "<a href=\"%s\">%s sürümünde</a> neler yeni bir göz atın."
302
 
303
+ #: includes/admin/admin-field-groups.php:636
304
  msgid "Resources"
305
  msgstr "Kaynaklar"
306
 
307
+ #: includes/admin/admin-field-groups.php:638
308
  msgid "Website"
309
  msgstr "Websitesi"
310
 
311
+ #: includes/admin/admin-field-groups.php:639
312
  msgid "Documentation"
313
  msgstr "Belgeler"
314
 
315
+ #: includes/admin/admin-field-groups.php:640
316
  msgid "Support"
317
  msgstr "Destek"
318
 
319
+ #: includes/admin/admin-field-groups.php:642
320
  #: includes/admin/views/settings-info.php:84
321
  msgid "Pro"
322
  msgstr "Pro"
323
 
324
+ #: includes/admin/admin-field-groups.php:647
325
  #, php-format
326
  msgid "Thank you for creating with <a href=\"%s\">ACF</a>."
327
  msgstr "<a href=\"%s\">ACF</a> ile oluşturduğunuz için teşekkürler."
328
 
329
+ #: includes/admin/admin-field-groups.php:686
330
  msgid "Duplicate this item"
331
  msgstr "Bu ögeyi çoğalt"
332
 
333
+ #: includes/admin/admin-field-groups.php:686
334
+ #: includes/admin/admin-field-groups.php:702
335
  #: includes/admin/views/field-group-field.php:46
336
  #: pro/fields/class-acf-field-flexible-content.php:571
337
  msgid "Duplicate"
338
  msgstr "Çoğalt"
339
 
340
+ #: includes/admin/admin-field-groups.php:719
341
+ #: includes/fields/class-acf-field-google-map.php:165
342
+ #: includes/fields/class-acf-field-relationship.php:593
343
  msgid "Search"
344
  msgstr "Ara"
345
 
346
+ #: includes/admin/admin-field-groups.php:778
347
  #, php-format
348
  msgid "Select %s"
349
  msgstr "Seç %s"
350
 
351
+ #: includes/admin/admin-field-groups.php:786
352
  msgid "Synchronise field group"
353
  msgstr "Alan grubunu eşitle"
354
 
355
+ #: includes/admin/admin-field-groups.php:786
356
+ #: includes/admin/admin-field-groups.php:816
357
  msgid "Sync"
358
  msgstr "Eşitle"
359
 
360
+ #: includes/admin/admin-field-groups.php:798
361
  msgid "Apply"
362
  msgstr "Uygula"
363
 
364
+ #: includes/admin/admin-field-groups.php:816
365
  msgid "Bulk Actions"
366
  msgstr "Toplu eylemler"
367
 
381
  msgid "Review sites & upgrade"
382
  msgstr "Siteleri incele ve güncelle"
383
 
384
+ #: includes/admin/admin.php:54 includes/admin/views/field-group-options.php:110
 
385
  msgid "Custom Fields"
386
  msgstr "Özel alanlar"
387
 
 
 
 
 
 
 
 
 
 
388
  #: includes/admin/settings-info.php:50
389
  msgid "Info"
390
  msgstr "Bilgi"
462
  msgid "Import Field Groups"
463
  msgstr "Alan gruplarını içeri aktar"
464
 
465
+ #: includes/admin/tools/class-acf-admin-tool-import.php:47
466
  msgid ""
467
  "Select the Advanced Custom Fields JSON file you would like to import. When "
468
  "you click the import button below, ACF will import the field groups."
471
  "Aşağıdaki içeri aktar tuşuna bastığınızda ACF alan gruplarını içeri "
472
  "aktaracak."
473
 
474
+ #: includes/admin/tools/class-acf-admin-tool-import.php:52
475
  #: includes/fields/class-acf-field-file.php:57
476
  msgid "Select File"
477
  msgstr "Dosya seç"
478
 
479
+ #: includes/admin/tools/class-acf-admin-tool-import.php:62
480
  msgid "Import File"
481
  msgstr "Dosyayı içeri aktar"
482
 
483
+ #: includes/admin/tools/class-acf-admin-tool-import.php:85
484
  #: includes/fields/class-acf-field-file.php:170
485
  msgid "No file selected"
486
  msgstr "Dosya seçilmedi"
487
 
488
+ #: includes/admin/tools/class-acf-admin-tool-import.php:93
489
  msgid "Error uploading file. Please try again"
490
  msgstr "Dosya yüklenirken hata oluştu. Lütfen tekrar deneyin"
491
 
492
+ #: includes/admin/tools/class-acf-admin-tool-import.php:98
493
  msgid "Incorrect file type"
494
  msgstr "Geçersiz dosya tipi"
495
 
496
+ #: includes/admin/tools/class-acf-admin-tool-import.php:107
497
  msgid "Import file empty"
498
  msgstr "İçe aktarılan dosya boş"
499
 
500
+ #: includes/admin/tools/class-acf-admin-tool-import.php:138
501
  #, php-format
502
  msgid "Imported 1 field group"
503
  msgid_plural "Imported %s field groups"
537
  #: includes/fields/class-acf-field-file.php:152
538
  #: includes/fields/class-acf-field-image.php:139
539
  #: includes/fields/class-acf-field-link.php:139
540
+ #: pro/fields/class-acf-field-gallery.php:359
541
  msgid "Edit"
542
  msgstr "Düzenle"
543
 
622
  #: includes/fields/class-acf-field-button-group.php:198
623
  #: includes/fields/class-acf-field-checkbox.php:420
624
  #: includes/fields/class-acf-field-radio.php:311
625
+ #: includes/fields/class-acf-field-select.php:433
626
  #: pro/fields/class-acf-field-flexible-content.php:596
627
  msgid "Label"
628
  msgstr "Etiket"
772
  msgstr "Sayfa öznitelikleri"
773
 
774
  #: includes/admin/views/field-group-options.php:118
775
+ #: includes/fields/class-acf-field-relationship.php:607
776
  msgid "Featured Image"
777
  msgstr "Öne çıkarılmış görsel"
778
 
886
  msgid "No updates available."
887
  msgstr "Güncelleme yok."
888
 
889
+ #: includes/admin/views/html-admin-tools.php:21
890
+ msgid "Back to all tools"
891
+ msgstr "Tüm araçlara geri dön"
892
+
893
  #: includes/admin/views/html-location-group.php:3
894
  msgid "Show this field group if"
895
  msgstr "Bu alan grubunu şu koşulda göster"
933
  #: includes/admin/views/html-notice-upgrade.php:24
934
  #, php-format
935
  msgid ""
936
+ "Please also check all premium add-ons (%s) are updated to the latest version."
 
937
  msgstr ""
938
+ "Lütfen ayrıca premium eklentilerin de (%s) en üst sürüme güncellendiğinden "
939
  "emin olun."
940
 
941
+ #: includes/admin/views/settings-addons.php:3
942
+ msgid "Add-ons"
943
+ msgstr "Eklentiler"
944
+
945
  #: includes/admin/views/settings-addons.php:17
946
  msgid "Download & Install"
947
  msgstr "İndir ve yükle"
1234
  msgid "We think you'll love the changes in %s."
1235
  msgstr "%s sürümündeki değişiklikleri seveceğinizi düşünüyoruz."
1236
 
1237
+ #: includes/api/api-helpers.php:1011
1238
  msgid "Thumbnail"
1239
  msgstr "Küçük görsel"
1240
 
1241
+ #: includes/api/api-helpers.php:1012
1242
  msgid "Medium"
1243
  msgstr "Orta"
1244
 
1245
+ #: includes/api/api-helpers.php:1013
1246
  msgid "Large"
1247
  msgstr "Büyük"
1248
 
1249
+ #: includes/api/api-helpers.php:1062
1250
  msgid "Full Size"
1251
  msgstr "Tam boyut"
1252
 
1253
+ #: includes/api/api-helpers.php:1831 includes/api/api-term.php:147
1254
  #: pro/fields/class-acf-field-clone.php:996
1255
  msgid "(no title)"
1256
  msgstr "(başlıksız)"
1257
 
1258
+ #: includes/api/api-helpers.php:3911
1259
  #, php-format
1260
  msgid "Image width must be at least %dpx."
1261
  msgstr "Görsel genişliği en az %dpx olmalı."
1262
 
1263
+ #: includes/api/api-helpers.php:3916
1264
  #, php-format
1265
  msgid "Image width must not exceed %dpx."
1266
  msgstr "Görsel genişliği %dpx değerini geçmemeli."
1267
 
1268
+ #: includes/api/api-helpers.php:3932
1269
  #, php-format
1270
  msgid "Image height must be at least %dpx."
1271
  msgstr "Görsel yüksekliği en az %dpx olmalı."
1272
 
1273
+ #: includes/api/api-helpers.php:3937
1274
  #, php-format
1275
  msgid "Image height must not exceed %dpx."
1276
  msgstr "Görsel yüksekliği %dpx değerini geçmemeli."
1277
 
1278
+ #: includes/api/api-helpers.php:3955
1279
  #, php-format
1280
  msgid "File size must be at least %s."
1281
  msgstr "Dosya boyutu en az %s olmalı."
1282
 
1283
+ #: includes/api/api-helpers.php:3960
1284
  #, php-format
1285
  msgid "File size must must not exceed %s."
1286
  msgstr "Dosya boyutu %s boyutunu geçmemeli."
1287
 
1288
+ #: includes/api/api-helpers.php:3994
1289
  #, php-format
1290
  msgid "File type must be %s."
1291
  msgstr "Dosya tipi %s olmalı."
1292
 
1293
+ #: includes/assets.php:168
1294
  msgid "The changes you made will be lost if you navigate away from this page"
1295
  msgstr ""
1296
  "Bu sayfadan başka bir sayfaya geçerseniz yaptığınız değişiklikler kaybolacak"
1297
 
1298
+ #: includes/assets.php:171 includes/fields/class-acf-field-select.php:259
1299
  msgctxt "verb"
1300
  msgid "Select"
1301
  msgstr "Seç"
1302
 
1303
+ #: includes/assets.php:172
1304
  msgctxt "verb"
1305
  msgid "Edit"
1306
  msgstr "Düzenle"
1307
 
1308
+ #: includes/assets.php:173
1309
  msgctxt "verb"
1310
  msgid "Update"
1311
  msgstr "Güncelle"
1312
 
1313
+ #: includes/assets.php:174
1314
  msgid "Uploaded to this post"
1315
  msgstr "Bu yazıya yüklenmiş"
1316
 
1317
+ #: includes/assets.php:175
1318
  msgid "Expand Details"
1319
  msgstr "Ayrıntıları genişlet"
1320
 
1321
+ #: includes/assets.php:176
1322
  msgid "Collapse Details"
1323
  msgstr "Detayları daralt"
1324
 
1325
+ #: includes/assets.php:177
1326
  msgid "Restricted"
1327
  msgstr "Kısıtlı"
1328
 
1329
+ #: includes/assets.php:178 includes/fields/class-acf-field-image.php:67
1330
  msgid "All images"
1331
  msgstr "Tüm görseller"
1332
 
1333
+ #: includes/assets.php:181
1334
  msgid "Validation successful"
1335
  msgstr "Doğrulama başarılı"
1336
 
1337
+ #: includes/assets.php:182 includes/validation.php:285
1338
  #: includes/validation.php:296
1339
  msgid "Validation failed"
1340
  msgstr "Doğrulama başarısız"
1341
 
1342
+ #: includes/assets.php:183
1343
  msgid "1 field requires attention"
1344
  msgstr "1 alan dikkatinizi gerektiriyor"
1345
 
1346
+ #: includes/assets.php:184
1347
  #, php-format
1348
  msgid "%d fields require attention"
1349
  msgstr "%d alan dikkatinizi gerektiriyor"
1350
 
1351
+ #: includes/assets.php:187
1352
  msgid "Are you sure?"
1353
  msgstr "Emin misiniz?"
1354
 
1355
+ #: includes/assets.php:188 includes/fields/class-acf-field-true_false.php:79
1356
  #: includes/fields/class-acf-field-true_false.php:159
1357
  #: pro/admin/views/html-settings-updates.php:89
1358
  msgid "Yes"
1359
  msgstr "Evet"
1360
 
1361
+ #: includes/assets.php:189 includes/fields/class-acf-field-true_false.php:80
1362
  #: includes/fields/class-acf-field-true_false.php:174
1363
  #: pro/admin/views/html-settings-updates.php:99
1364
  msgid "No"
1365
  msgstr "Hayır"
1366
 
1367
+ #: includes/assets.php:190 includes/fields/class-acf-field-file.php:154
1368
  #: includes/fields/class-acf-field-image.php:141
1369
  #: includes/fields/class-acf-field-link.php:140
1370
+ #: pro/fields/class-acf-field-gallery.php:360
1371
+ #: pro/fields/class-acf-field-gallery.php:549
1372
  msgid "Remove"
1373
  msgstr "Kaldır"
1374
 
1375
+ #: includes/assets.php:191
1376
  msgid "Cancel"
1377
  msgstr "İptal"
1378
 
1379
+ #: includes/assets.php:194
1380
  msgid "Has any value"
1381
  msgstr "Herhangi bir değer"
1382
 
1383
+ #: includes/assets.php:195
1384
  msgid "Has no value"
1385
  msgstr "Hiçbir değer"
1386
 
1387
+ #: includes/assets.php:196
1388
  msgid "Value is equal to"
1389
  msgstr "Değer eşitse"
1390
 
1391
+ #: includes/assets.php:197
1392
  msgid "Value is not equal to"
1393
  msgstr "Değer eşit değilse"
1394
 
1395
+ #: includes/assets.php:198
1396
  msgid "Value matches pattern"
1397
  msgstr "Değer bir desenle eşleşir"
1398
 
1399
+ #: includes/assets.php:199
1400
  msgid "Value contains"
1401
  msgstr "Değer içeriyor"
1402
 
1403
+ #: includes/assets.php:200
1404
  msgid "Value is greater than"
1405
  msgstr "Değer daha büyük"
1406
 
1407
+ #: includes/assets.php:201
1408
  msgid "Value is less than"
1409
  msgstr "Değer daha az"
1410
 
1411
+ #: includes/assets.php:202
1412
  msgid "Selection is greater than"
1413
  msgstr "Seçin daha büyük"
1414
 
1415
+ #: includes/assets.php:203
1416
  msgid "Selection is less than"
1417
  msgstr "Seçim daha az"
1418
 
1419
+ #: includes/assets.php:206 includes/forms/form-comment.php:166
1420
+ #: pro/admin/admin-options-page.php:325
1421
+ msgid "Edit field group"
1422
+ msgstr "Alan grubunu düzenle"
1423
+
1424
  #: includes/fields.php:308
1425
  msgid "Field type does not exist"
1426
  msgstr "Var olmayan alan tipi"
1500
  #: includes/fields/class-acf-field-button-group.php:149
1501
  #: includes/fields/class-acf-field-checkbox.php:344
1502
  #: includes/fields/class-acf-field-radio.php:235
1503
+ #: includes/fields/class-acf-field-select.php:364
1504
  msgid "Choices"
1505
  msgstr "Seçimler"
1506
 
1507
  #: includes/fields/class-acf-field-button-group.php:150
1508
  #: includes/fields/class-acf-field-checkbox.php:345
1509
  #: includes/fields/class-acf-field-radio.php:236
1510
+ #: includes/fields/class-acf-field-select.php:365
1511
  msgid "Enter each choice on a new line."
1512
  msgstr "Her seçeneği yeni bir satıra girin."
1513
 
1514
  #: includes/fields/class-acf-field-button-group.php:150
1515
  #: includes/fields/class-acf-field-checkbox.php:345
1516
  #: includes/fields/class-acf-field-radio.php:236
1517
+ #: includes/fields/class-acf-field-select.php:365
1518
  msgid "For more control, you may specify both a value and label like this:"
1519
  msgstr ""
1520
  "Daha fazla kontrol için, hem bir değeri hem de bir etiketi şu şekilde "
1523
  #: includes/fields/class-acf-field-button-group.php:150
1524
  #: includes/fields/class-acf-field-checkbox.php:345
1525
  #: includes/fields/class-acf-field-radio.php:236
1526
+ #: includes/fields/class-acf-field-select.php:365
1527
  msgid "red : Red"
1528
  msgstr "kirmizi : Kırmızı"
1529
 
1531
  #: includes/fields/class-acf-field-page_link.php:513
1532
  #: includes/fields/class-acf-field-post_object.php:411
1533
  #: includes/fields/class-acf-field-radio.php:244
1534
+ #: includes/fields/class-acf-field-select.php:382
1535
  #: includes/fields/class-acf-field-taxonomy.php:784
1536
+ #: includes/fields/class-acf-field-user.php:393
1537
  msgid "Allow Null?"
1538
  msgstr "Boş geçilebilir mi?"
1539
 
1544
  #: includes/fields/class-acf-field-number.php:127
1545
  #: includes/fields/class-acf-field-radio.php:281
1546
  #: includes/fields/class-acf-field-range.php:149
1547
+ #: includes/fields/class-acf-field-select.php:373
1548
  #: includes/fields/class-acf-field-text.php:119
1549
  #: includes/fields/class-acf-field-textarea.php:102
1550
  #: includes/fields/class-acf-field-true_false.php:135
1599
  #: includes/fields/class-acf-field-button-group.php:197
1600
  #: includes/fields/class-acf-field-checkbox.php:419
1601
  #: includes/fields/class-acf-field-radio.php:310
1602
+ #: includes/fields/class-acf-field-select.php:432
1603
  msgid "Value"
1604
  msgstr "Değer"
1605
 
1606
  #: includes/fields/class-acf-field-button-group.php:199
1607
  #: includes/fields/class-acf-field-checkbox.php:421
1608
  #: includes/fields/class-acf-field-radio.php:312
1609
+ #: includes/fields/class-acf-field-select.php:434
1610
  msgid "Both (Array)"
1611
  msgstr "İkisi de (Dizi)"
1612
 
1640
  msgstr "‘Özel’ değerleri alanın seçenekleri arasına kaydet"
1641
 
1642
  #: includes/fields/class-acf-field-checkbox.php:381
1643
+ #: includes/fields/class-acf-field-select.php:374
1644
  msgid "Enter each default value on a new line"
1645
  msgstr "Her varsayılan değeri yeni bir satıra girin"
1646
 
1702
  msgid "Wk"
1703
  msgstr "Hf"
1704
 
1705
+ #: includes/fields/class-acf-field-date_picker.php:178
1706
  #: includes/fields/class-acf-field-date_time_picker.php:183
1707
  #: includes/fields/class-acf-field-time_picker.php:109
1708
  msgid "Display Format"
1709
  msgstr "Gösterim biçimi"
1710
 
1711
+ #: includes/fields/class-acf-field-date_picker.php:179
1712
  #: includes/fields/class-acf-field-date_time_picker.php:184
1713
  #: includes/fields/class-acf-field-time_picker.php:110
1714
  msgid "The format displayed when editing a post"
1715
  msgstr "Bir yazı düzenlenirken görüntülenecek biçim"
1716
 
1717
+ #: includes/fields/class-acf-field-date_picker.php:187
1718
+ #: includes/fields/class-acf-field-date_picker.php:218
1719
  #: includes/fields/class-acf-field-date_time_picker.php:193
1720
  #: includes/fields/class-acf-field-date_time_picker.php:210
1721
  #: includes/fields/class-acf-field-time_picker.php:117
1723
  msgid "Custom:"
1724
  msgstr "Özel:"
1725
 
1726
+ #: includes/fields/class-acf-field-date_picker.php:197
1727
  msgid "Save Format"
1728
  msgstr "Biçimi kaydet"
1729
 
1730
+ #: includes/fields/class-acf-field-date_picker.php:198
1731
  msgid "The format used when saving a value"
1732
  msgstr "Bir değer kaydedilirken kullanılacak biçim"
1733
 
1734
+ #: includes/fields/class-acf-field-date_picker.php:208
1735
  #: includes/fields/class-acf-field-date_time_picker.php:200
1736
  #: includes/fields/class-acf-field-post_object.php:431
1737
+ #: includes/fields/class-acf-field-relationship.php:634
1738
+ #: includes/fields/class-acf-field-select.php:427
1739
  #: includes/fields/class-acf-field-time_picker.php:124
1740
+ #: includes/fields/class-acf-field-user.php:412
1741
  msgid "Return Format"
1742
  msgstr "Dönüş biçimi"
1743
 
1744
+ #: includes/fields/class-acf-field-date_picker.php:209
1745
  #: includes/fields/class-acf-field-date_time_picker.php:201
1746
  #: includes/fields/class-acf-field-time_picker.php:125
1747
  msgid "The format returned via template functions"
1748
  msgstr "Tema işlevlerinden dönen biçim"
1749
 
1750
+ #: includes/fields/class-acf-field-date_picker.php:227
1751
  #: includes/fields/class-acf-field-date_time_picker.php:217
1752
  msgid "Week Starts On"
1753
  msgstr "Hafta başlangıcı"
1906
  #: includes/fields/class-acf-field-file.php:259
1907
  #: includes/fields/class-acf-field-image.php:265
1908
  #: includes/fields/class-acf-field-image.php:294
1909
+ #: pro/fields/class-acf-field-gallery.php:708
1910
+ #: pro/fields/class-acf-field-gallery.php:737
1911
  msgid "File size"
1912
  msgstr "Dosya boyutu"
1913
 
1929
 
1930
  #: includes/fields/class-acf-field-file.php:230
1931
  #: includes/fields/class-acf-field-image.php:230
1932
+ #: pro/fields/class-acf-field-gallery.php:673
1933
  msgid "Library"
1934
  msgstr "Kitaplık"
1935
 
1936
  #: includes/fields/class-acf-field-file.php:231
1937
  #: includes/fields/class-acf-field-image.php:231
1938
+ #: pro/fields/class-acf-field-gallery.php:674
1939
  msgid "Limit the media library choice"
1940
  msgstr "Ortam kitaplığı seçimini sınırlayın"
1941
 
1948
  #: includes/locations/class-acf-location-user-form.php:87
1949
  #: includes/locations/class-acf-location-user-role.php:111
1950
  #: includes/locations/class-acf-location-widget.php:83
1951
+ #: pro/fields/class-acf-field-gallery.php:679
1952
  msgid "All"
1953
  msgstr "Tümü"
1954
 
1955
  #: includes/fields/class-acf-field-file.php:237
1956
  #: includes/fields/class-acf-field-image.php:237
1957
+ #: pro/fields/class-acf-field-gallery.php:680
1958
  msgid "Uploaded to post"
1959
  msgstr "Yazıya yüklendi"
1960
 
1961
  #: includes/fields/class-acf-field-file.php:244
1962
  #: includes/fields/class-acf-field-image.php:244
1963
+ #: pro/fields/class-acf-field-gallery.php:687
1964
  msgid "Minimum"
1965
  msgstr "En az"
1966
 
1971
 
1972
  #: includes/fields/class-acf-field-file.php:255
1973
  #: includes/fields/class-acf-field-image.php:273
1974
+ #: pro/fields/class-acf-field-gallery.php:716
1975
  msgid "Maximum"
1976
  msgstr "En fazla"
1977
 
1978
  #: includes/fields/class-acf-field-file.php:266
1979
  #: includes/fields/class-acf-field-image.php:302
1980
+ #: pro/fields/class-acf-field-gallery.php:745
1981
  msgid "Allowed file types"
1982
  msgstr "İzin verilen dosya tipleri"
1983
 
1984
  #: includes/fields/class-acf-field-file.php:267
1985
  #: includes/fields/class-acf-field-image.php:303
1986
+ #: pro/fields/class-acf-field-gallery.php:746
1987
  msgid "Comma separated list. Leave blank for all types"
1988
  msgstr "Virgül ile ayrılmış liste. Tüm tipler için boş bırakın"
1989
 
1995
  msgid "Sorry, this browser does not support geolocation"
1996
  msgstr "Üzgünüz, bu tarayıcı konumlandırma desteklemiyor"
1997
 
1998
+ #: includes/fields/class-acf-field-google-map.php:166
1999
  msgid "Clear location"
2000
  msgstr "Konumu temizle"
2001
 
2002
+ #: includes/fields/class-acf-field-google-map.php:167
2003
  msgid "Find current location"
2004
  msgstr "Şu anki konumu bul"
2005
 
2006
+ #: includes/fields/class-acf-field-google-map.php:170
2007
  msgid "Search for address..."
2008
  msgstr "Adres arayın…"
2009
 
2010
+ #: includes/fields/class-acf-field-google-map.php:200
2011
+ #: includes/fields/class-acf-field-google-map.php:211
2012
  msgid "Center"
2013
  msgstr "Merkez"
2014
 
2015
+ #: includes/fields/class-acf-field-google-map.php:201
2016
+ #: includes/fields/class-acf-field-google-map.php:212
2017
  msgid "Center the initial map"
2018
  msgstr "Haritayı ortala"
2019
 
2020
+ #: includes/fields/class-acf-field-google-map.php:223
2021
  msgid "Zoom"
2022
  msgstr "Yaklaş"
2023
 
2024
+ #: includes/fields/class-acf-field-google-map.php:224
2025
  msgid "Set the initial zoom level"
2026
  msgstr "Temel yaklaşma seviyesini belirle"
2027
 
2028
+ #: includes/fields/class-acf-field-google-map.php:233
2029
  #: includes/fields/class-acf-field-image.php:256
2030
  #: includes/fields/class-acf-field-image.php:285
2031
  #: includes/fields/class-acf-field-oembed.php:268
2032
+ #: pro/fields/class-acf-field-gallery.php:699
2033
+ #: pro/fields/class-acf-field-gallery.php:728
2034
  msgid "Height"
2035
  msgstr "Yükseklik"
2036
 
2037
+ #: includes/fields/class-acf-field-google-map.php:234
2038
+ msgid "Customize the map height"
2039
  msgstr "Harita yüksekliğini özelleştir"
2040
 
2041
  #: includes/fields/class-acf-field-group.php:25
2119
 
2120
  #: includes/fields/class-acf-field-image.php:245
2121
  #: includes/fields/class-acf-field-image.php:274
2122
+ #: pro/fields/class-acf-field-gallery.php:688
2123
+ #: pro/fields/class-acf-field-gallery.php:717
2124
  msgid "Restrict which images can be uploaded"
2125
  msgstr "Hangi görsellerin yüklenebileceğini sınırlandırın"
2126
 
2127
  #: includes/fields/class-acf-field-image.php:248
2128
  #: includes/fields/class-acf-field-image.php:277
2129
  #: includes/fields/class-acf-field-oembed.php:257
2130
+ #: pro/fields/class-acf-field-gallery.php:691
2131
+ #: pro/fields/class-acf-field-gallery.php:720
2132
  msgid "Width"
2133
  msgstr "Genişlik"
2134
 
2253
 
2254
  #: includes/fields/class-acf-field-page_link.php:485
2255
  #: includes/fields/class-acf-field-post_object.php:383
2256
+ #: includes/fields/class-acf-field-relationship.php:560
2257
  msgid "Filter by Post Type"
2258
  msgstr "Yazı tipine göre filtre"
2259
 
2260
  #: includes/fields/class-acf-field-page_link.php:493
2261
  #: includes/fields/class-acf-field-post_object.php:391
2262
+ #: includes/fields/class-acf-field-relationship.php:568
2263
  msgid "All post types"
2264
  msgstr "Tüm yazı tipleri"
2265
 
2266
  #: includes/fields/class-acf-field-page_link.php:499
2267
  #: includes/fields/class-acf-field-post_object.php:397
2268
+ #: includes/fields/class-acf-field-relationship.php:574
2269
  msgid "Filter by Taxonomy"
2270
  msgstr "Taksonomiye göre filtre"
2271
 
2272
  #: includes/fields/class-acf-field-page_link.php:507
2273
  #: includes/fields/class-acf-field-post_object.php:405
2274
+ #: includes/fields/class-acf-field-relationship.php:582
2275
  msgid "All taxonomies"
2276
  msgstr "Tüm taksonomiler"
2277
 
2281
 
2282
  #: includes/fields/class-acf-field-page_link.php:533
2283
  #: includes/fields/class-acf-field-post_object.php:421
2284
+ #: includes/fields/class-acf-field-select.php:392
2285
+ #: includes/fields/class-acf-field-user.php:403
2286
  msgid "Select multiple values?"
2287
  msgstr "Birden çok değer seçilsin mi?"
2288
 
2292
 
2293
  #: includes/fields/class-acf-field-post_object.php:25
2294
  #: includes/fields/class-acf-field-post_object.php:436
2295
+ #: includes/fields/class-acf-field-relationship.php:639
2296
  msgid "Post Object"
2297
  msgstr "Yazı nesnesi"
2298
 
2299
  #: includes/fields/class-acf-field-post_object.php:437
2300
+ #: includes/fields/class-acf-field-relationship.php:640
2301
  msgid "Post ID"
2302
  msgstr "Yazı No"
2303
 
2341
  msgid "No matches found"
2342
  msgstr "Eşleşme yok"
2343
 
2344
+ #: includes/fields/class-acf-field-relationship.php:411
2345
  msgid "Select post type"
2346
  msgstr "Yazı tipi seç"
2347
 
2348
+ #: includes/fields/class-acf-field-relationship.php:420
2349
  msgid "Select taxonomy"
2350
  msgstr "Taksonomi seç"
2351
 
2352
+ #: includes/fields/class-acf-field-relationship.php:477
2353
  msgid "Search..."
2354
  msgstr "Ara…"
2355
 
2356
+ #: includes/fields/class-acf-field-relationship.php:588
2357
  msgid "Filters"
2358
  msgstr "Filtreler"
2359
 
2360
+ #: includes/fields/class-acf-field-relationship.php:594
2361
  #: includes/locations/class-acf-location-post-type.php:27
2362
  msgid "Post Type"
2363
  msgstr "Yazı tipi"
2364
 
2365
+ #: includes/fields/class-acf-field-relationship.php:595
2366
  #: includes/fields/class-acf-field-taxonomy.php:28
2367
  #: includes/fields/class-acf-field-taxonomy.php:754
2368
  #: includes/locations/class-acf-location-taxonomy.php:27
2369
  msgid "Taxonomy"
2370
  msgstr "Taksonomi"
2371
 
2372
+ #: includes/fields/class-acf-field-relationship.php:602
2373
  msgid "Elements"
2374
  msgstr "Elemanlar"
2375
 
2376
+ #: includes/fields/class-acf-field-relationship.php:603
2377
  msgid "Selected elements will be displayed in each result"
2378
  msgstr "Her sonuç içinde seçilmiş elemanlar görüntülenir"
2379
 
2380
+ #: includes/fields/class-acf-field-relationship.php:614
2381
  msgid "Minimum posts"
2382
  msgstr "En az gönderi"
2383
 
2384
+ #: includes/fields/class-acf-field-relationship.php:623
2385
  msgid "Maximum posts"
2386
  msgstr "En fazla yazı"
2387
 
2388
+ #: includes/fields/class-acf-field-relationship.php:727
2389
+ #: pro/fields/class-acf-field-gallery.php:818
2390
  #, php-format
2391
  msgid "%s requires at least %s selection"
2392
  msgid_plural "%s requires at least %s selections"
2463
  msgid "Loading failed"
2464
  msgstr "Yükleme başarısız oldu"
2465
 
2466
+ #: includes/fields/class-acf-field-select.php:402
2467
  #: includes/fields/class-acf-field-true_false.php:144
2468
  msgid "Stylised UI"
2469
  msgstr "Stilize edilmiş kullanıcı arabirimi"
2470
 
2471
+ #: includes/fields/class-acf-field-select.php:412
2472
  msgid "Use AJAX to lazy load choices?"
2473
  msgstr "Seçimlerin tembel yüklenmesi için AJAX kullanılsın mı?"
2474
 
2475
+ #: includes/fields/class-acf-field-select.php:428
2476
  msgid "Specify the value returned"
2477
  msgstr "Dönecek değeri belirt"
2478
 
2595
  msgid "Leave blank for no limit"
2596
  msgstr "Limit olmaması için boş bırakın"
2597
 
2598
+ #: includes/fields/class-acf-field-text.php:181
2599
+ #: includes/fields/class-acf-field-textarea.php:213
2600
+ #, php-format
2601
+ msgid "Value must not exceed %d characters"
2602
+ msgstr "Değer %d karakteri geçmemelidir"
2603
+
2604
  #: includes/fields/class-acf-field-textarea.php:25
2605
  msgid "Text Area"
2606
  msgstr "Metin alanı"
2653
  msgid "User"
2654
  msgstr "Kullanıcı"
2655
 
2656
+ #: includes/fields/class-acf-field-user.php:378
2657
  msgid "Filter by role"
2658
  msgstr "Kurala göre filtrele"
2659
 
2660
+ #: includes/fields/class-acf-field-user.php:386
2661
  msgid "All user roles"
2662
  msgstr "Bütün kullanıcı rolleri"
2663
 
2664
+ #: includes/fields/class-acf-field-user.php:417
2665
  msgid "User Array"
2666
  msgstr "Kullanıcı dizisi"
2667
 
2668
+ #: includes/fields/class-acf-field-user.php:418
2669
  msgid "User Object"
2670
  msgstr "Kullanıcı nesnesi"
2671
 
2672
+ #: includes/fields/class-acf-field-user.php:419
2673
  msgid "User ID"
2674
  msgstr "Kullanıcı No"
2675
 
2722
  msgid "TinyMCE will not be initalized until field is clicked"
2723
  msgstr "Alan tıklanana kadar TinyMCE hazırlanmayacak"
2724
 
 
 
 
 
 
2725
  #: includes/forms/form-front.php:55
2726
  msgid "Validate Email"
2727
  msgstr "E-postayı doğrula"
2728
 
2729
+ #: includes/forms/form-front.php:103 pro/fields/class-acf-field-gallery.php:591
2730
  #: pro/options-page.php:81
2731
  msgid "Update"
2732
  msgstr "Güncelle"
2820
  msgid "Page Template"
2821
  msgstr "Sayfa şablonu"
2822
 
2823
+ #: includes/locations/class-acf-location-page-template.php:87
2824
+ #: includes/locations/class-acf-location-post-template.php:134
2825
  msgid "Default Template"
2826
  msgstr "Varsayılan şablon"
2827
 
2899
  msgid "Advanced Custom Fields PRO"
2900
  msgstr "Advanced Custom Fields PRO"
2901
 
2902
+ #: pro/admin/admin-options-page.php:198
2903
  msgid "Publish"
2904
  msgstr "Yayımla"
2905
 
2906
+ #: pro/admin/admin-options-page.php:204
2907
  #, php-format
2908
  msgid ""
2909
  "No Custom Field Groups found for this options page. <a href=\"%s\">Create a "
2912
  "Bu seçenekler sayfası için hiç özel alan grubu bulunamadı. <a href=\"%s"
2913
  "\">Bir özel alan grubu oluştur</a>"
2914
 
2915
+ #: pro/admin/admin-updates.php:49
2916
  msgid "<b>Error</b>. Could not connect to update server"
2917
  msgstr "<b> Hata</b>. Güncelleme sunucusu ile bağlantı kurulamadı"
2918
 
2919
+ #: pro/admin/admin-updates.php:118 pro/admin/views/html-settings-updates.php:13
 
2920
  msgid "Updates"
2921
  msgstr "Güncellemeler"
2922
 
2923
+ #: pro/admin/admin-updates.php:191
2924
+ msgid ""
2925
+ "<b>Error</b>. Could not authenticate update package. Please check again or "
2926
+ "deactivate and reactivate your ACF PRO license."
2927
+ msgstr ""
2928
+ "<b>Hata</b>. Güncelleme paketi için kimlik doğrulaması yapılamadı. Lütfen "
2929
+ "ACF PRO lisansınızı kontrol edin ya da lisansınızı etkisizleştirip, tekrar "
2930
+ "etkinleştirin."
2931
+
2932
  #: pro/admin/views/html-settings-updates.php:7
2933
  msgid "Deactivate License"
2934
  msgstr "Lisansı devre dışı bırak"
3155
  msgid "Maximum selection reached"
3156
  msgstr "En fazla seçim aşıldı"
3157
 
3158
+ #: pro/fields/class-acf-field-gallery.php:338
3159
  msgid "Length"
3160
  msgstr "Uzunluk"
3161
 
3162
+ #: pro/fields/class-acf-field-gallery.php:381
3163
  msgid "Caption"
3164
  msgstr "Başlık"
3165
 
3166
+ #: pro/fields/class-acf-field-gallery.php:390
3167
  msgid "Alt Text"
3168
  msgstr "Alternatif metin"
3169
 
3170
+ #: pro/fields/class-acf-field-gallery.php:562
3171
  msgid "Add to gallery"
3172
  msgstr "Galeriye ekle"
3173
 
3174
+ #: pro/fields/class-acf-field-gallery.php:566
3175
  msgid "Bulk actions"
3176
  msgstr "Toplu eylemler"
3177
 
3178
+ #: pro/fields/class-acf-field-gallery.php:567
3179
  msgid "Sort by date uploaded"
3180
  msgstr "Yüklenme tarihine göre sırala"
3181
 
3182
+ #: pro/fields/class-acf-field-gallery.php:568
3183
  msgid "Sort by date modified"
3184
  msgstr "Değiştirme tarihine göre sırala"
3185
 
3186
+ #: pro/fields/class-acf-field-gallery.php:569
3187
  msgid "Sort by title"
3188
  msgstr "Başlığa göre sırala"
3189
 
3190
+ #: pro/fields/class-acf-field-gallery.php:570
3191
  msgid "Reverse current order"
3192
  msgstr "Sıralamayı ters çevir"
3193
 
3194
+ #: pro/fields/class-acf-field-gallery.php:588
3195
  msgid "Close"
3196
  msgstr "Kapat"
3197
 
3198
+ #: pro/fields/class-acf-field-gallery.php:642
3199
  msgid "Minimum Selection"
3200
  msgstr "En az seçim"
3201
 
3202
+ #: pro/fields/class-acf-field-gallery.php:651
3203
  msgid "Maximum Selection"
3204
  msgstr "En fazla seçim"
3205
 
3206
+ #: pro/fields/class-acf-field-gallery.php:660
3207
  msgid "Insert"
3208
  msgstr "Ekle"
3209
 
3210
+ #: pro/fields/class-acf-field-gallery.php:661
3211
  msgid "Specify where new attachments are added"
3212
  msgstr "Yeni eklerin nereye ekleneceğini belirtin"
3213
 
3214
+ #: pro/fields/class-acf-field-gallery.php:665
3215
  msgid "Append to the end"
3216
  msgstr "Sona ekle"
3217
 
3218
+ #: pro/fields/class-acf-field-gallery.php:666
3219
  msgid "Prepend to the beginning"
3220
  msgstr "En başa ekleyin"
3221
 
3287
  msgid "http://www.elliotcondon.com/"
3288
  msgstr "http://www.elliotcondon.com/"
3289
 
3290
+ #~ msgid "%s field group duplicated."
3291
+ #~ msgid_plural "%s field groups duplicated."
3292
+ #~ msgstr[0] "%s alan grubu çoğaltıldı."
3293
+ #~ msgstr[1] "%s alan grubu çoğaltıldı."
3294
+
3295
+ #~ msgid "%s field group synchronised."
3296
+ #~ msgid_plural "%s field groups synchronised."
3297
+ #~ msgstr[0] "%s alan grubu eşitlendi."
3298
+ #~ msgstr[1] "%s alan grubu eşitlendi."
3299
+
3300
+ #~ msgid "<b>Error</b>. Could not load add-ons list"
3301
+ #~ msgstr "<b>Hata</b>. Eklenti listesi yüklenemedi"
3302
+
3303
  #~ msgid "Parent fields"
3304
  #~ msgstr "Üst alanlar"
3305
 
readme.txt CHANGED
@@ -66,6 +66,19 @@ From your WordPress dashboard
66
 
67
  == Changelog ==
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  = 5.7.12 =
70
  *Release Date - 15 February 2019*
71
 
66
 
67
  == Changelog ==
68
 
69
+ = 5.7.13 =
70
+ *Release Date - 6 March 2019*
71
+
72
+ * Fix - Fixed bug causing issues with registered fields during `switch_to_blog()`.
73
+ * Fix - Fixed bug preventing sub fields from being reused across multiple parents.
74
+ * Fix - Fixed bug causing the `get_sub_field()` function to fail if a tab field exists with the same name as the selected field.
75
+ * Fix - Fixed bug corrupting field settings since WP 5.1 when instructions contain `< a target="" >`.
76
+ * Fix - Fixed bug in Gutenberg where custom metabox location (acf_after_title) did not show on initial page load.
77
+ * Fix - Fixed bug causing issues when importing/syncing multiple field groups which contain a clone field.
78
+ * Fix - Fixed bug preventing the AMP plugin preview from working.
79
+ * Dev - Added new 'pre' filters to get, update and delete meta functions.
80
+ * i18n - Update Turkish translation thanks to Emre Erkan.
81
+
82
  = 5.7.12 =
83
  *Release Date - 15 February 2019*
84