diff --git a/acf.php b/acf.php index 9b7ebf6d..d96f8b5c 100644 --- a/acf.php +++ b/acf.php @@ -3,7 +3,7 @@ Plugin Name: Advanced Custom Fields Plugin URI: https://www.advancedcustomfields.com Description: Customize WordPress with powerful, professional and intuitive fields. -Version: 5.8.5 +Version: 5.8.6 Author: Elliot Condon Author URI: https://www.advancedcustomfields.com Text Domain: acf @@ -17,7 +17,7 @@ class ACF { /** @var string The plugin version number. */ - var $version = '5.8.5'; + var $version = '5.8.6'; /** @var array The plugin settings array. */ var $settings = array(); diff --git a/assets/build/css/_fields.scss b/assets/build/css/_fields.scss index 5a150fa0..7573ff7d 100644 --- a/assets/build/css/_fields.scss +++ b/assets/build/css/_fields.scss @@ -1295,10 +1295,6 @@ ul.acf-checkbox-list { cursor: text; } - .acf-actions { - - } - .acf-loading { position: absolute; top: 10px; @@ -1306,8 +1302,9 @@ ul.acf-checkbox-list { display: none; } - &:hover { - .acf-actions { display: block; } + // Avoid icons disapearing when click/blur events conflict. + .acf-icon:active { + display: inline-block !important; } } @@ -1315,54 +1312,57 @@ ul.acf-checkbox-list { height: 400px; } + // Show actions on hover. + &:hover .title .acf-actions { + display: block; + } - /* default is focused */ + // Default state (show locate, hide search and cancel). .title { .acf-icon.-location { display: inline-block; } - .acf-icon.-cancel { - display: none; - } + .acf-icon.-cancel, .acf-icon.-search { display: none; } } - - /* -search */ - &.-search .title { + // Has value (hide locate, show cancel). + &.-value .title { + .search { + font-weight: bold; + } .acf-icon.-location { display: none; } .acf-icon.-cancel { display: inline-block; } - .acf-icon.-search { - display: inline-block; - } } - - - /* -value */ - &.-value .title { - .search { - font-weight: bold; - } + // Is searching (hide locate, show search and cancel). + &.-searching .title { .acf-icon.-location { display: none; } - .acf-icon.-cancel { + .acf-icon.-cancel, + .acf-icon.-search { display: inline-block; } - .acf-icon.-search { - display: none; + + // Show actions. + .acf-actions { + display: block; + } + + // Change search font-weght. + .search { + font-weight: normal !important; } } - - /* -loading */ + // Loading. &.-loading .title { a { display: none !important; diff --git a/assets/build/js/_acf-field-checkbox.js b/assets/build/js/_acf-field-checkbox.js index d8778d97..f158d989 100644 --- a/assets/build/js/_acf-field-checkbox.js +++ b/assets/build/js/_acf-field-checkbox.js @@ -37,18 +37,19 @@ onChange: function( e, $el ){ - // vars + // Vars. var checked = $el.prop('checked'); + var $label = $el.parent('label'); var $toggle = this.$toggle(); - // selected + // Add or remove "selected" class. if( checked ) { - $el.parent().addClass('selected'); + $label.addClass('selected'); } else { - $el.parent().removeClass('selected'); + $label.removeClass('selected'); } - // determine if all inputs are checked + // Update toggle state if all inputs are checked. if( $toggle.length ) { var $inputs = this.$inputs(); @@ -67,9 +68,21 @@ }, onClickToggle: function( e, $el ){ + + // Vars. var checked = $el.prop('checked'); - var $inputs = this.$inputs(); + var $inputs = this.$('input[type="checkbox"]'); + var $labels = this.$('label'); + + // Update "checked" state. $inputs.prop('checked', checked); + + // Add or remove "selected" class. + if( checked ) { + $labels.addClass('selected'); + } else { + $labels.removeClass('selected'); + } }, onClickCustom: function( e, $el ){ diff --git a/assets/build/js/_acf-field-google-map.js b/assets/build/js/_acf-field-google-map.js index a04cc703..0c4b0b39 100644 --- a/assets/build/js/_acf-field-google-map.js +++ b/assets/build/js/_acf-field-google-map.js @@ -1,7 +1,7 @@ (function($, undefined){ var Field = acf.Field.extend({ - + type: 'google_map', map: false, @@ -16,17 +16,13 @@ 'keyup .search': 'onKeyupSearch', 'focus .search': 'onFocusSearch', 'blur .search': 'onBlurSearch', - 'showField': 'onShow' + 'showField': 'onShow', }, $control: function(){ return this.$('.acf-google-map'); }, - $input: function( name ){ - return this.$('input[data-name="' + (name || 'address') + '"]'); - }, - $search: function(){ return this.$('.search'); }, @@ -35,122 +31,117 @@ return this.$('.canvas'); }, - addClass: function( name ){ - this.$control().addClass( name ); - }, - - removeClass: function( name ){ - this.$control().removeClass( name ); - }, - - getValue: function(){ - - // defaults - var val = { - lat: '', - lng: '', - address: '' - }; + setState: function( state ){ - // loop - this.$('input[type="hidden"]').each(function(){ - val[ $(this).data('name') ] = $(this).val(); - }); + // Remove previous state classes. + this.$control().removeClass( '-value -loading -searching' ); - // return false if no lat/lng - if( !val.lat || !val.lng ) { - val = false; + // Determine auto state based of current value. + if( state === 'default' ) { + state = this.val() ? 'value' : ''; } - // return - return val; + // Update state class. + if( state ) { + this.$control().addClass( '-' + state ); + } }, - setValue: function( val ){ - - // defaults - val = acf.parseArgs(val, { - lat: '', - lng: '', - address: '' - }); + getValue: function(){ + var val = this.$input().val(); + if( val ) { + return JSON.parse( val ) + } else { + return false; + } + }, + + setValue: function( val, silent ){ - // loop - for( var name in val ) { - acf.val( this.$input(name), val[name] ); + // Convert input value. + var valAttr = ''; + if( val ) { + valAttr = JSON.stringify( val ); } - // return false if no lat/lng - if( !val.lat || !val.lng ) { - val = false; + // Update input. + this.$input().val( valAttr ); + + // Bail early if silent update. + if( silent ) { + return; } - // render + // Render. this.renderVal( val ); - // action - var latLng = this.newLatLng( val.lat, val.lng ); - acf.doAction('google_map_change', latLng, this.map, this); + /** + * Fires immediately after the value has changed. + * + * @date 12/02/2014 + * @since 5.0.0 + * + * @param object|string val The new value. + * @param object map The Google Map isntance. + * @param object field The field instance. + */ + acf.doAction('google_map_change', val, this.map, this); }, renderVal: function( val ){ - // has value - if( val ) { - this.addClass('-value'); - this.setPosition( val.lat, val.lng ); - this.map.marker.setVisible( true ); - - // no value - } else { - this.removeClass('-value'); - this.map.marker.setVisible( false ); - } - - // search - this.$search().val( val.address ); + // Value. + if( val ) { + this.setState( 'value' ); + this.$search().val( val.address ); + this.setPosition( val.lat, val.lng ); + + // No value. + } else { + this.setState( '' ); + this.$search().val( '' ); + this.map.marker.setVisible( false ); + } + }, + + newLatLng: function( lat, lng ){ + return new google.maps.LatLng( parseFloat(lat), parseFloat(lng) ); }, setPosition: function( lat, lng ){ - // vars - var latLng = this.newLatLng( lat, lng ); - - // update marker - this.map.marker.setPosition( latLng ); + // Update marker position. + this.map.marker.setPosition({ + lat: parseFloat(lat), + lng: parseFloat(lng) + }); - // show marker + // Show marker. this.map.marker.setVisible( true ); - // center + // Center map. this.center(); - - // return - return this; }, center: function(){ - // vars + // Find marker position. var position = this.map.marker.getPosition(); - var lat = this.get('lat'); - var lng = this.get('lng'); - - // if marker exists, center on the marker if( position ) { - lat = position.lat(); - lng = position.lng(); + var lat = position.lat(); + var lng = position.lng(); + + // Or find default settings. + } else { + var lat = this.get('lat'); + var lng = this.get('lng'); } - // latlng - var latLng = this.newLatLng( lat, lng ); - - // set center of map - this.map.setCenter( latLng ); - }, - - getSearchVal: function(){ - return this.$search().val(); + // Center map. + this.map.setCenter({ + lat: parseFloat(lat), + lng: parseFloat(lng) + }); }, initialize: function(){ @@ -159,22 +150,22 @@ withAPI( this.initializeMap.bind(this) ); }, - newLatLng: function( lat, lng ){ - return new google.maps.LatLng( parseFloat(lat), parseFloat(lng) ); - }, - initializeMap: function(){ - // vars + // Vars. var zoom = this.get('zoom'); var lat = this.get('lat'); var lng = this.get('lng'); + var val = this.val(); // Create Map. var mapArgs = { scrollwheel: false, - zoom: parseInt( zoom ), - center: this.newLatLng(lat, lng), + zoom: parseInt( val.zoom || zoom ), + center: { + lat: parseFloat( val.lat || lat ), + lng: parseFloat( val.lng || lng ) + }, mapTypeId: google.maps.MapTypeId.ROADMAP, marker: { draggable: true, @@ -212,283 +203,323 @@ map.autocomplete = autocomplete; this.map = map; - // action for 3rd party customization - acf.doAction('google_map_init', map, marker, this); - - // set position + // Set position. var val = this.getValue(); - this.renderVal( val ); + if( val ) { + this.setPosition( val.lat, val.lng ); + } + + /** + * Fires immediately after the Google Map has been initialized. + * + * @date 12/02/2014 + * @since 5.0.0 + * + * @param object map The Google Map isntance. + * @param object marker The Google Map marker isntance. + * @param object field The field instance. + */ + acf.doAction('google_map_init', map, marker, this); }, addMapEvents: function( field, map, marker, autocomplete ){ // Click map. google.maps.event.addListener( map, 'click', function( e ) { - - // vars var lat = e.latLng.lat(); var lng = e.latLng.lng(); - - // search field.searchPosition( lat, lng ); }); // Drag marker. google.maps.event.addListener( marker, 'dragend', function(){ - - // vars - var position = this.getPosition(); - var lat = position.lat(); - var lng = position.lng(); - - // search + var lat = this.getPosition().lat(); + var lng = this.getPosition().lng(); field.searchPosition( lat, lng ); }); // Autocomplete search. if( autocomplete ) { - - // autocomplete event place_changed is triggered each time the input changes - // customize the place object with the current "search value" to allow users controll over the address text google.maps.event.addListener(autocomplete, 'place_changed', function() { var place = this.getPlace(); - place.address = field.getSearchVal(); - field.setPlace( place ); + field.searchPlace( place ); }); } + + // Detect zoom change. + google.maps.event.addListener( map, 'zoom_changed', function(){ + var val = field.val(); + if( val ) { + val.zoom = map.getZoom(); + field.setValue( val, true ); + } + }); }, searchPosition: function( lat, lng ){ + //console.log('searchPosition', lat, lng ); - // vars - var latLng = this.newLatLng( lat, lng ); - var $wrap = this.$control(); - - // set position - this.setPosition( lat, lng ); + // Start Loading. + this.setState( 'loading' ); - // add class - $wrap.addClass('-loading'); - - // callback - var callback = $.proxy(function( results, status ){ - - // remove class - $wrap.removeClass('-loading'); + // Query Geocoder. + var latLng = { lat: lat, lng: lng }; + geocoder.geocode({ location: latLng }, function( results, status ){ + //console.log('searchPosition', arguments ); - // vars - var address = ''; + // End Loading. + this.setState( '' ); - // validate - if( status != google.maps.GeocoderStatus.OK ) { - console.log('Geocoder failed due to: ' + status); - } else if( !results[0] ) { - console.log('No results found'); + // Status failure. + if( status !== 'OK' ) { + this.showNotice({ + text: acf.__('Location not found: %s').replace('%s', status), + type: 'warning' + }); + + // Success. } else { - address = results[0].formatted_address; + var val = this.parseResult( results[0] ); + + // Update value. + this.val( val ); } - - // update val - this.val({ - lat: lat, - lng: lng, - address: address - }); - - }, this); - - // query - geocoder.geocode({ 'latLng' : latLng }, callback); + + }.bind( this )); }, - setPlace: function( place ){ + searchPlace: function( place ){ + //console.log('searchPlace', place ); - // bail if no place - if( !place ) return this; + // Ignore empty search. + if( !place || !place.name ) { + return; + } - // search name if no geometry - // - possible when hitting enter in search address - if( place.name && !place.geometry ) { - this.searchAddress(place.name); - return this; + // No geometry (Custom address search). + if( !place.geometry ) { + return this.searchAddress( place.name ); } - // vars - var lat = place.geometry.location.lat(); - var lng = place.geometry.location.lng(); - var address = place.address || place.formatted_address; + // Parse place. + var val = this.parseResult( place ); - // update - this.setValue({ - lat: lat, - lng: lng, - address: address - }); - - // return - return this; + // Update value. + this.val( val ); }, searchAddress: function( address ){ + //console.log('searchAddress', address ); + + // Bail early if no address. + if( !address ) { + return; + } - // is address latLng? + // Allow "lat,lng" search. var latLng = address.split(','); if( latLng.length == 2 ) { - - // vars - var lat = latLng[0]; - var lng = latLng[1]; - - // check - if( $.isNumeric(lat) && $.isNumeric(lng) ) { + var lat = parseFloat(latLng[0]); + var lng = parseFloat(latLng[1]); + if( lat && lng ) { return this.searchPosition( lat, lng ); } } - // vars - var $wrap = this.$control(); + // Start Loading. + this.setState( 'loading' ); - // add class - $wrap.addClass('-loading'); - - // callback - var callback = this.proxy(function( results, status ){ - - // remove class - $wrap.removeClass('-loading'); + // Query Geocoder. + geocoder.geocode({ address: address }, function( results, status ){ + //console.log('searchPosition', arguments ); - // vars - var lat = ''; - var lng = ''; + // End Loading. + this.setState( '' ); - // validate - if( status != google.maps.GeocoderStatus.OK ) { - console.log('Geocoder failed due to: ' + status); - } else if( !results[0] ) { - console.log('No results found'); + // Status failure. + if( status !== 'OK' ) { + this.showNotice({ + text: acf.__('Location not found: %s').replace('%s', status), + type: 'warning' + }); + + // Success. } else { - lat = results[0].geometry.location.lat(); - lng = results[0].geometry.location.lng(); - //address = results[0].formatted_address; + var val = this.parseResult( results[0] ); + + // Override address data with parameter allowing custom address to be defined in search. + val.address = address; + + // Update value. + this.val( val ); } - - // update val - this.val({ - lat: lat, - lng: lng, - address: address - }); - - //acf.doAction('google_map_geocode_results', results, status, this.$el, this); - - }); - - // query - geocoder.geocode({ 'address' : address }, callback); + + }.bind( this )); }, searchLocation: function(){ + //console.log('searchLocation' ); - // Try HTML5 geolocation + // Check HTML5 geolocation. if( !navigator.geolocation ) { return alert( acf.__('Sorry, this browser does not support geolocation') ); } - // vars - var $wrap = this.$control(); + // Start Loading. + this.setState( 'loading' ); - // add class - $wrap.addClass('-loading'); - - // callback - var onSuccess = $.proxy(function( results, status ){ - - // remove class - $wrap.removeClass('-loading'); - - // vars - var lat = results.coords.latitude; - var lng = results.coords.longitude; - - // search; - this.searchPosition( lat, lng ); + // Query Geolocation. + navigator.geolocation.getCurrentPosition( - }, this); - - var onFailure = function( error ){ - $wrap.removeClass('-loading'); - } - - // try query - navigator.geolocation.getCurrentPosition( onSuccess, onFailure ); + // Success. + function( results ){ + + // End Loading. + this.setState( '' ); + + // Search position. + var lat = results.coords.latitude; + var lng = results.coords.longitude; + this.searchPosition( lat, lng ); + + }.bind(this), + + // Failure. + function( error ){ + this.setState( '' ); + }.bind(this) + ); + }, + + /** + * parseResult + * + * Returns location data for the given GeocoderResult object. + * + * @date 15/10/19 + * @since 5.8.6 + * + * @param object obj A GeocoderResult object. + * @return object + */ + parseResult: function( obj ) { + + // Construct basic data. + var result = { + address: obj.formatted_address, + lat: obj.geometry.location.lat(), + lng: obj.geometry.location.lng(), + }; + + // Add zoom level. + result.zoom = this.map.getZoom(); + + // Add place ID. + if( obj.place_id ) { + result.place_id = obj.place_id; + } + + // Create search map for address component data. + var map = { + street_number: [ 'street_number' ], + street_name: [ 'street_address', 'route' ], + city: [ 'locality' ], + state: [ + 'administrative_area_level_1', + 'administrative_area_level_2', + 'administrative_area_level_3', + 'administrative_area_level_4', + 'administrative_area_level_5' + ], + post_code: [ 'postal_code' ], + country: [ 'country' ] + }; + + // Loop over map. + for( var k in map ) { + var keywords = map[ k ]; + + // Loop over address components. + for( var i = 0; i < obj.address_components.length; i++ ) { + var component = obj.address_components[ i ]; + var component_type = component.types[0]; + + // Look for matching component type. + if( keywords.indexOf(component_type) !== -1 ) { + + // Append to result. + result[ k ] = component.long_name; + + // Append short version. + if( component.long_name !== component.short_name ) { + result[ k + '_short' ] = component.short_name; + } + } + } + } + + /** + * Filters the parsed result. + * + * @date 18/10/19 + * @since 5.8.6 + * + * @param object result The parsed result value. + * @param object obj The GeocoderResult object. + */ + return acf.applyFilters('google_map_result', result, obj, this.map, this); }, - onClickClear: function( e, $el ){ + onClickClear: function(){ this.val( false ); }, - onClickLocate: function( e, $el ){ + onClickLocate: function(){ this.searchLocation(); }, - onClickSearch: function( e, $el ){ + onClickSearch: function(){ this.searchAddress( this.$search().val() ); }, onFocusSearch: function( e, $el ){ - this.removeClass('-value'); - this.onKeyupSearch.apply(this, arguments); + this.setState( 'searching' ); }, onBlurSearch: function( e, $el ){ - // timeout to allow onClickLocate event - this.setTimeout(function(){ - this.removeClass('-search'); - if( $el.val() ) { - this.addClass('-value'); - } - }, 100); + // Get saved address value. + var val = this.val(); + var address = val ? val.address : ''; + + // Remove 'is-searching' if value has not changed. + if( $el.val() === address ) { + this.setState( 'default' ); + } }, onKeyupSearch: function( e, $el ){ - if( $el.val() ) { - this.addClass('-search'); - } else { - this.removeClass('-search'); + + // Clear empty value. + if( !$el.val() ) { + this.val( false ); } }, + // Prevent form from submitting. onKeydownSearch: function( e, $el ){ - - // prevent form from submitting if( e.which == 13 ) { e.preventDefault(); + $el.blur(); } }, - onMousedown: function(){ - -/* - // clear timeout in 1ms (onMousedown will run before onBlurSearch) - this.setTimeout(function(){ - clearTimeout( this.get('timeout') ); - }, 1); -*/ - }, - + // Center map once made visible. onShow: function(){ - - // bail early if no map - // - possible if JS API was not loaded - if( !this.map ) { - return false; + if( this.map ) { + this.setTimeout( this.center ); } - - // center map when it is shown (by a tab / collapsed row) - // - use delay to avoid rendering issues with browsers (ensures div is visible) - this.setTimeout( this.center, 10 ); - } + }, }); acf.registerFieldType( Field ); diff --git a/assets/build/js/_acf-field.js b/assets/build/js/_acf-field.js index 63cd8308..ffb08e76 100644 --- a/assets/build/js/_acf-field.js +++ b/assets/build/js/_acf-field.js @@ -63,8 +63,12 @@ */ val: function( val ){ + + // Set. if( val !== undefined ) { return this.setValue( val ); + + // Get. } else { return this.prop('disabled') ? null : this.getValue(); } diff --git a/assets/css/acf-input.css b/assets/css/acf-input.css index d7f1db73..b5a6fa10 100644 --- a/assets/css/acf-input.css +++ b/assets/css/acf-input.css @@ -1 +1,2335 @@ -.acf-field,.acf-field .acf-label,.acf-field .acf-input{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative}.acf-field{margin:15px 0;clear:both}.acf-field p.description{display:block;margin:0;padding:0}.acf-field .acf-label{vertical-align:top;margin:0 0 10px}.acf-field .acf-label label{display:block;font-weight:bold;margin:0 0 3px;padding:0}.acf-field .acf-label:empty{margin-bottom:0}.acf-field .acf-input{vertical-align:top}.acf-field .acf-input>p.description{margin-top:5px}.acf-field .acf-notice{margin:0 0 15px;background:#edf2ff;color:#2183b9;border:none}.acf-field .acf-notice .acf-notice-dismiss{background:transparent;color:inherit}.acf-field .acf-notice .acf-notice-dismiss:hover{background:#fff}.acf-field .acf-notice.-dismiss{padding-right:40px}.acf-field .acf-notice.-error{background:#ffe6e6;color:#d12626}.acf-field .acf-notice.-success{background:#eefbe8;color:#32a23b}.acf-field .acf-notice.-warning{background:#fff3e6;color:#d16226}td.acf-field,tr.acf-field{margin:0}.acf-field[data-width]{float:left;clear:none}.acf-field[data-width]+.acf-field[data-width]{border-left:1px solid #eeeeee}html[dir="rtl"] .acf-field[data-width]{float:right}html[dir="rtl"] .acf-field[data-width]+.acf-field[data-width]{border-left:none;border-right:1px solid #eeeeee}td.acf-field[data-width],tr.acf-field[data-width]{float:none}.acf-field.-c0{clear:both;border-left-width:0 !important}html[dir="rtl"] .acf-field.-c0{border-left-width:1px !important;border-right-width:0 !important}.acf-field.-r0{border-top-width:0 !important}.acf-fields{position:relative}.acf-fields:after{display:block;clear:both;content:""}.acf-fields.-border{border:#dfdfdf solid 1px;background:#fff}.acf-fields>.acf-field{position:relative;margin:0;padding:15px 12px;border-top:#EEEEEE solid 1px}.acf-fields>.acf-field:first-child{border-top-width:0}td.acf-fields{padding:0 !important}.acf-fields.-clear>.acf-field{border:none;padding:0;margin:15px 0}.acf-fields.-clear>.acf-field[data-width]{border:none !important}.acf-fields.-clear>.acf-field>.acf-label{padding:0}.acf-fields.-clear>.acf-field>.acf-input{padding:0}.acf-fields.-left>.acf-field{padding:15px 0}.acf-fields.-left>.acf-field:after{display:block;clear:both;content:""}.acf-fields.-left>.acf-field:before{content:"";display:block;position:absolute;z-index:0;background:#F9F9F9;border-color:#E1E1E1;border-style:solid;border-width:0 1px 0 0;top:0;bottom:0;left:0;width:20%}.acf-fields.-left>.acf-field[data-width]{float:none;width:auto !important;border-left-width:0 !important;border-right-width:0 !important}.acf-fields.-left>.acf-field>.acf-label{float:left;width:20%;margin:0;padding:0 12px}.acf-fields.-left>.acf-field>.acf-input{float:left;width:80%;margin:0;padding:0 12px}html[dir="rtl"] .acf-fields.-left>.acf-field:before{border-width:0 0 0 1px;left:auto;right:0}html[dir="rtl"] .acf-fields.-left>.acf-field>.acf-label{float:right}html[dir="rtl"] .acf-fields.-left>.acf-field>.acf-input{float:right}@media screen and (max-width: 640px){.acf-fields.-left>.acf-field:before{display:none}.acf-fields.-left>.acf-field>.acf-label{width:100%;margin-bottom:10px}.acf-fields.-left>.acf-field>.acf-input{width:100%}}.acf-fields.-clear.-left>.acf-field{padding:0;border:none}.acf-fields.-clear.-left>.acf-field:before{display:none}.acf-fields.-clear.-left>.acf-field>.acf-label{padding:0}.acf-fields.-clear.-left>.acf-field>.acf-input{padding:0}.acf-table tr.acf-field>td.acf-label{padding:15px 12px;margin:0;background:#F9F9F9;width:20%}.acf-table tr.acf-field>td.acf-input{padding:15px 12px;margin:0;border-left-color:#E1E1E1}.acf-sortable-tr-helper{position:relative !important;display:table-row !important}.acf-postbox{position:relative}.acf-postbox>.inside{margin:0 !important;padding:0 !important}.acf-postbox>.hndle .acf-hndle-cog{color:#AAAAAA;font-size:16px;line-height:20px;padding:0 2px;float:right;position:relative;display:none}.acf-postbox>.hndle .acf-hndle-cog:hover{color:#777777}.acf-postbox:hover>.hndle .acf-hndle-cog{display:block}.acf-postbox .acf-replace-with-fields{padding:15px;text-align:center}#post-body-content #acf_after_title-sortables{margin:20px 0 -20px}.acf-postbox.seamless{border:0 none;background:transparent;box-shadow:none}.acf-postbox.seamless>.hndle,.acf-postbox.seamless>.handlediv{display:none !important}.acf-postbox.seamless>.inside{display:block !important;margin-left:-12px !important;margin-right:-12px !important}.acf-postbox.seamless>.inside>.acf-field{border-color:transparent}.acf-postbox.seamless>.acf-fields.-left>.acf-field:before{display:none}@media screen and (max-width: 782px){.acf-postbox.seamless>.acf-fields.-left>.acf-field>.acf-label,.acf-postbox.seamless>.acf-fields.-left>.acf-field>.acf-input{padding:0}}.acf-field input[type="text"],.acf-field input[type="password"],.acf-field input[type="number"],.acf-field input[type="search"],.acf-field input[type="email"],.acf-field input[type="url"],.acf-field textarea,.acf-field select{width:100%;padding:3px 5px;resize:none;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-size:14px;line-height:1.4}.acf-field input[type="text"]:disabled,.acf-field input[type="password"]:disabled,.acf-field input[type="number"]:disabled,.acf-field input[type="search"]:disabled,.acf-field input[type="email"]:disabled,.acf-field input[type="url"]:disabled,.acf-field textarea:disabled,.acf-field select:disabled{background:#f8f8f8}.acf-field input[type="text"][readonly],.acf-field input[type="password"][readonly],.acf-field input[type="number"][readonly],.acf-field input[type="search"][readonly],.acf-field input[type="email"][readonly],.acf-field input[type="url"][readonly],.acf-field textarea[readonly],.acf-field select[readonly]{background:#f8f8f8}.acf-field textarea{resize:vertical}.acf-input-prepend,.acf-input-append,.acf-input-wrap{box-sizing:border-box}.acf-input-prepend,.acf-input-append{font-size:13px;line-height:20px;padding:3px 7px;background:#F4F4F4;border:#DFDFDF solid 1px}.acf-input-prepend{float:left;border-right-width:0;border-radius:3px 0 0 3px}.acf-input-append{float:right;border-left-width:0;border-radius:0 3px 3px 0}.acf-input-wrap{position:relative;overflow:hidden}.acf-input-wrap input{height:28px;margin:0}input.acf-is-prepended{border-radius:0 3px 3px 0 !important}input.acf-is-appended{border-radius:3px 0 0 3px !important}input.acf-is-prepended.acf-is-appended{border-radius:0 !important}html[dir="rtl"] .acf-input-prepend{border-left-width:0;border-right-width:1px;border-radius:0 3px 3px 0;float:right}html[dir="rtl"] .acf-input-append{border-left-width:1px;border-right-width:0;border-radius:3px 0 0 3px;float:left}html[dir="rtl"] input.acf-is-prepended{border-radius:3px 0 0 3px !important}html[dir="rtl"] input.acf-is-appended{border-radius:0 3px 3px 0 !important}html[dir="rtl"] input.acf-is-prepended.acf-is-appended{border-radius:0 !important}.acf-color-picker .wp-picker-active{position:relative;z-index:1}.acf-url i{position:absolute;top:4px;left:4px;opacity:0.5;color:#A9A9A9}.acf-url input[type="url"]{padding-left:25px}.acf-url.-valid i{opacity:1}.acf-field select{padding:2px}.acf-field select optgroup{padding:5px;background:#fff}.acf-field select option{padding:3px}.acf-field select optgroup option{padding-left:5px}.acf-field select optgroup:nth-child(2n){background:#F9F9F9}.acf-field .select2-input{max-width:200px}.select2-container.-acf .select2-choices{background:#fff;border-color:#ddd;box-shadow:0 1px 2px rgba(0,0,0,0.07) inset;min-height:31px}.select2-container.-acf .select2-choices .select2-search-choice{margin:5px 0 5px 5px;padding:3px 5px 3px 18px;border-color:#bbb;background:#f9f9f9;box-shadow:0 1px 0 rgba(255,255,255,0.25) inset}.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-helper{background:#5897fb;border-color:#3f87fa;color:#fff;box-shadow:0 0 3px rgba(0,0,0,0.1)}.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-helper a{visibility:hidden}.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-placeholder{background-color:#f7f7f7;border-color:#f7f7f7;visibility:visible !important}.select2-container.-acf .select2-choices .select2-search-choice-focus{border-color:#999}.select2-container.-acf .select2-choices .select2-search-field input{height:31px;line-height:22px;margin:0;padding:5px 5px 5px 7px}.select2-container.-acf .select2-choice{border-color:#BBBBBB}.select2-container.-acf .select2-choice .select2-arrow{background:transparent;border-left-color:#DFDFDF;padding-left:1px}.select2-container.-acf .select2-choice .select2-result-description{display:none}.select2-container.-acf.select2-container-active .select2-choices,.select2-container.-acf.select2-dropdown-open .select2-choices{border-color:#5B9DD9;border-radius:3px 3px 0 0}.select2-container.-acf.select2-dropdown-open .select2-choice{background:#fff;border-color:#5B9DD9}html[dir="rtl"] .select2-container.-acf .select2-search-choice-close{left:24px}html[dir="rtl"] .select2-container.-acf .select2-choice>.select2-chosen{margin-left:42px}html[dir="rtl"] .select2-container.-acf .select2-choice .select2-arrow{padding-left:0;padding-right:1px}.select2-drop .select2-search{padding:4px 4px 0}.select2-drop .select2-result .select2-result-description{color:#999;font-size:12px;margin-left:5px}.select2-drop .select2-result.select2-highlighted .select2-result-description{color:#fff;opacity:0.75}.select2-container.-acf li{margin-bottom:0}.select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child{float:none}.select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child input{width:100% !important}.select2-container.-acf .select2-selection--multiple .select2-selection__rendered{padding-right:0}.select2-container.-acf .select2-selection--multiple .select2-selection__choice{background-color:#f7f7f7;border-color:#cccccc;max-width:100%;overflow:hidden;word-wrap:normal !important;white-space:normal}.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-helper{background:#5897fb;border-color:#3f87fa;color:#fff;box-shadow:0 0 3px rgba(0,0,0,0.1)}.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-helper span{visibility:hidden}.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-placeholder{background-color:#f7f7f7;border-color:#f7f7f7;visibility:visible !important}.select2-container.-acf .select2-selection--multiple .select2-search__field{box-shadow:none !important}.acf-row .select2-container.-acf .select2-selection--single{overflow:hidden}.acf-row .select2-container.-acf .select2-selection--single .select2-selection__rendered{white-space:normal}.select2-container .select2-dropdown{z-index:900000}.link-wrap{border:#dddddd solid 1px;border-radius:3px;padding:5px;line-height:26px;background:#fff;word-wrap:break-word;word-break:break-all}.link-wrap .link-title{padding:0 5px}.acf-link .link-wrap,.acf-link .acf-icon.-link-ext{display:none}.acf-link.-value .button{display:none}.acf-link.-value .link-wrap{display:inline-block}.acf-link.-external .acf-icon.-link-ext{display:inline-block}#wp-link-backdrop{z-index:900000 !important}#wp-link-wrap{z-index:900001 !important}ul.acf-radio-list,ul.acf-checkbox-list{background:transparent;position:relative;padding:1px;margin:0}ul.acf-radio-list li,ul.acf-checkbox-list li{font-size:13px;line-height:22px;margin:0;position:relative;word-wrap:break-word}ul.acf-radio-list li label,ul.acf-checkbox-list li label{display:inline}ul.acf-radio-list li input[type="checkbox"],ul.acf-radio-list li input[type="radio"],ul.acf-checkbox-list li input[type="checkbox"],ul.acf-checkbox-list li input[type="radio"]{margin:-1px 4px 0 0;vertical-align:middle}ul.acf-radio-list li input[type="text"],ul.acf-checkbox-list li input[type="text"]{width:auto;vertical-align:middle;margin:2px 0}ul.acf-radio-list li span,ul.acf-checkbox-list li span{float:none}ul.acf-radio-list li i,ul.acf-checkbox-list li i{vertical-align:middle}ul.acf-radio-list.acf-hl li,ul.acf-checkbox-list.acf-hl li{margin-right:20px;clear:none}html[dir="rtl"] ul.acf-radio-list input[type="checkbox"],html[dir="rtl"] ul.acf-radio-list input[type="radio"],html[dir="rtl"] ul.acf-checkbox-list input[type="checkbox"],html[dir="rtl"] ul.acf-checkbox-list input[type="radio"]{margin-left:4px;margin-right:0}.acf-button-group{display:inline-block}.acf-button-group label{display:inline-block;border:#ccc solid 1px;position:relative;z-index:1;padding:5px 10px;background:#fff}.acf-button-group label:hover{border-color:#999;z-index:2}.acf-button-group label.selected{border-color:#2b9af3;background:#309cf3;color:#fff;z-index:2}.acf-button-group label.selected:hover{background:#48a8f4}.acf-button-group input{display:none !important}.acf-button-group{padding-left:1px;display:inline-flex;flex-direction:row;flex-wrap:nowrap}.acf-button-group label{margin:0 0 0 -1px;flex:1;text-align:center;white-space:nowrap}.acf-button-group label:first-child{border-radius:3px 0 0 3px}html[dir="rtl"] .acf-button-group label:first-child{border-radius:0 3px 3px 0}.acf-button-group label:last-child{border-radius:0 3px 3px 0}html[dir="rtl"] .acf-button-group label:last-child{border-radius:3px 0 0 3px}.acf-button-group label:only-child{border-radius:3px}.acf-button-group.-vertical{padding-left:0;padding-top:1px;flex-direction:column}.acf-button-group.-vertical label{margin:-1px 0 0 0}.acf-button-group.-vertical label:first-child{border-radius:3px 3px 0 0}.acf-button-group.-vertical label:last-child{border-radius:0 0 3px 3px}.acf-button-group.-vertical label:only-child{border-radius:3px}.acf-checkbox-list .button{margin:10px 0 0}.acf-switch{display:inline-block;border-radius:5px;cursor:pointer;position:relative;background:#f8f8f8;height:30px;vertical-align:middle;border:#ccc solid 1px;-webkit-transition:background 0.25s ease;-moz-transition:background 0.25s ease;-o-transition:background 0.25s ease;transition:background 0.25s ease}.acf-switch span{display:inline-block;float:left;text-align:center;font-size:13px;line-height:22px;padding:4px 10px;min-width:15px}.acf-switch span i{vertical-align:middle}.acf-switch .acf-switch-on{color:#fff;text-shadow:#1f7db1 0 1px 0}.acf-switch .acf-switch-slider{position:absolute;top:2px;left:2px;bottom:2px;right:50%;z-index:1;background:#fff;border-radius:3px;border:#ccc solid 1px;-webkit-transition:all 0.25s ease;-moz-transition:all 0.25s ease;-o-transition:all 0.25s ease;transition:all 0.25s ease;transition-property:left, right}.acf-switch:hover .acf-switch-slider{border-color:#b3b3b3}.acf-switch.-on{background:#309cf3;border-color:#2b9af3}.acf-switch.-on .acf-switch-slider{left:50%;right:2px;border-color:#0d84e3}.acf-switch.-on:hover{background:#48a8f4}.acf-switch.-focus .acf-switch-slider{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,0.5)}.acf-switch.-focus.-on .acf-switch-slider{border-color:#185e85;box-shadow:0 0 2px #1f7db1}.acf-switch+span{margin-left:6px}.acf-switch-input{opacity:0;position:absolute;margin:0}.compat-item .acf-true-false .message{float:none;padding:0;vertical-align:middle}.acf-google-map{position:relative;border:#DFDFDF solid 1px;background:#fff}.acf-google-map .title{position:relative;border-bottom:#DFDFDF solid 1px}.acf-google-map .title .search{margin:0;font-size:14px;line-height:30px;height:40px;padding:5px 10px;border:0 none;box-shadow:none;border-radius:0;font-family:inherit;cursor:text}.acf-google-map .title .acf-loading{position:absolute;top:10px;right:11px;display:none}.acf-google-map .title:hover .acf-actions{display:block}.acf-google-map .canvas{height:400px}.acf-google-map .title .acf-icon.-location{display:inline-block}.acf-google-map .title .acf-icon.-cancel{display:none}.acf-google-map .title .acf-icon.-search{display:none}.acf-google-map.-search .title .acf-icon.-location{display:none}.acf-google-map.-search .title .acf-icon.-cancel{display:inline-block}.acf-google-map.-search .title .acf-icon.-search{display:inline-block}.acf-google-map.-value .title .search{font-weight:bold}.acf-google-map.-value .title .acf-icon.-location{display:none}.acf-google-map.-value .title .acf-icon.-cancel{display:inline-block}.acf-google-map.-value .title .acf-icon.-search{display:none}.acf-google-map.-loading .title a{display:none !important}.acf-google-map.-loading .title i{display:inline-block}.pac-container{border-width:1px 0;box-shadow:none}.pac-container:after{display:none}.pac-container .pac-item:first-child{border-top:0 none}.pac-container .pac-item{padding:5px 10px;cursor:pointer}html[dir="rtl"] .pac-container .pac-item{text-align:right}.acf-relationship{background:#fff}.acf-relationship .filters{border:#DFDFDF solid 1px;background:#fff}.acf-relationship .filters:after{display:block;clear:both;content:""}.acf-relationship .filters .filter{margin:0;padding:0;float:left;width:100%}.acf-relationship .filters .filter span{display:block;padding:7px 7px 7px 0}.acf-relationship .filters .filter:first-child span{padding-left:7px}.acf-relationship .filters .filter input,.acf-relationship .filters .filter select{height:28px;line-height:28px;padding:2px;width:100%;margin:0;float:none}.acf-relationship .filters .filter input:focus,.acf-relationship .filters .filter input:active,.acf-relationship .filters .filter select:focus,.acf-relationship .filters .filter select:active{outline:none;box-shadow:none}.acf-relationship .filters .filter input{border-color:transparent;box-shadow:none}.acf-relationship .filters.-f2 .filter{width:50%}.acf-relationship .filters.-f3 .filter{width:25%}.acf-relationship .filters.-f3 .filter.-search{width:50%}.acf-relationship .list{margin:0;padding:5px;height:160px;overflow:auto}.acf-relationship .list .acf-rel-label,.acf-relationship .list .acf-rel-item,.acf-relationship .list p{padding:5px 7px;margin:0;display:block;position:relative;min-height:18px}.acf-relationship .list .acf-rel-label{font-weight:bold}.acf-relationship .list .acf-rel-item{cursor:pointer}.acf-relationship .list .acf-rel-item b{text-decoration:underline;font-weight:normal}.acf-relationship .list .acf-rel-item .thumbnail{background:#e0e0e0;width:22px;height:22px;float:left;margin:-2px 5px 0 0}.acf-relationship .list .acf-rel-item .thumbnail img{max-width:22px;max-height:22px;margin:0 auto;display:block}.acf-relationship .list .acf-rel-item .thumbnail.-icon{background:#fff}.acf-relationship .list .acf-rel-item .thumbnail.-icon img{max-height:20px;margin-top:1px}.acf-relationship .list .acf-rel-item:hover{background:#3875D7;color:#fff}.acf-relationship .list .acf-rel-item:hover .thumbnail{background:#a2bfec}.acf-relationship .list .acf-rel-item:hover .thumbnail.-icon{background:#fff}.acf-relationship .list .acf-rel-item.disabled{opacity:0.5}.acf-relationship .list .acf-rel-item.disabled:hover{background:transparent;color:#333;cursor:default}.acf-relationship .list .acf-rel-item.disabled:hover .thumbnail{background:#e0e0e0}.acf-relationship .list .acf-rel-item.disabled:hover .thumbnail.-icon{background:#fff}.acf-relationship .list ul{padding-bottom:5px}.acf-relationship .list ul .acf-rel-label,.acf-relationship .list ul .acf-rel-item,.acf-relationship .list ul p{padding-left:20px}.acf-relationship .selection{border:#DFDFDF solid 1px;position:relative;margin-top:-1px}.acf-relationship .selection:after{display:block;clear:both;content:""}.acf-relationship .selection .values,.acf-relationship .selection .choices{width:50%;background:#fff;float:left}.acf-relationship .selection .choices{background:#F9F9F9}.acf-relationship .selection .choices .list{border-right:#DFDFDF solid 1px}.acf-relationship .selection .values .acf-icon{position:absolute;top:4px;right:7px;display:none}html[dir="rtl"] .acf-relationship .selection .values .acf-icon{right:auto;left:7px}.acf-relationship .selection .values .acf-rel-item:hover .acf-icon{display:block}.acf-relationship .selection .values .acf-rel-item{cursor:move}.acf-relationship .selection .values .acf-rel-item b{text-decoration:none}.menu-item .acf-relationship ul{width:auto}.menu-item .acf-relationship li{display:block}.acf-editor-wrap.delay .acf-editor-toolbar{content:"";display:block;background:#f5f5f5;border-bottom:#dddddd solid 1px;color:#555d66;padding:10px}.acf-editor-wrap.delay .wp-editor-area{padding:10px;border:none;color:inherit !important}.acf-editor-wrap iframe{min-height:200px}.acf-editor-wrap .wp-editor-container{border:1px solid #E5E5E5;box-shadow:none !important}.acf-editor-wrap .wp-editor-tabs{box-sizing:content-box}#mce_fullscreen_container{z-index:900000 !important}.acf-field-tab{display:none !important}.hidden-by-tab{display:none !important}.acf-tab-wrap{clear:both;z-index:1}.acf-tab-group{border-bottom:#ccc solid 1px;padding:10px 10px 0}.acf-tab-group li{margin:0 0.5em 0 0}.acf-tab-group li a{padding:5px 10px;display:block;color:#555;font-size:14px;font-weight:600;line-height:24px;border:#ccc solid 1px;border-bottom:0 none;text-decoration:none;background:#e5e5e5;transition:none}.acf-tab-group li a:hover{background:#FFF}.acf-tab-group li a:focus{outline:none;box-shadow:none}.acf-tab-group li a:empty{display:none}html[dir="rtl"] .acf-tab-group li{margin:0 0 0 0.5em}.acf-tab-group li.active a{background:#F1F1F1;color:#000;padding-bottom:6px;margin-bottom:-1px;position:relative;z-index:1}.acf-fields>.acf-tab-wrap{background:#F9F9F9}.acf-fields>.acf-tab-wrap .acf-tab-group{position:relative;z-index:1;margin-bottom:-1px;border-top:#DFDFDF solid 1px;border-bottom:#DFDFDF solid 1px}.acf-fields>.acf-tab-wrap .acf-tab-group li a{background:#f1f1f1}.acf-fields>.acf-tab-wrap .acf-tab-group li a:hover{background:#FFF}.acf-fields>.acf-tab-wrap .acf-tab-group li.active a{background:#FFFFFF}.acf-fields>.acf-tab-wrap:first-child .acf-tab-group{border-top:none}.acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-left:20%}@media screen and (max-width: 640px){.acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-left:10px}}html[dir="rtl"] .acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-left:0;padding-right:20%}@media screen and (max-width: 850px){html[dir="rtl"] .acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-right:10px}}.acf-tab-wrap.-left .acf-tab-group{position:absolute;left:0;width:20%;border:0 none;padding:0 !important;margin:1px 0 0}.acf-tab-wrap.-left .acf-tab-group li{float:none;margin:-1px 0 0}.acf-tab-wrap.-left .acf-tab-group li a{border:1px solid #ededed;font-size:13px;line-height:18px;color:#0073aa;padding:10px;margin:0;font-weight:normal;border-width:1px 0;border-radius:0;background:transparent}.acf-tab-wrap.-left .acf-tab-group li a:hover{color:#00a0d2}.acf-tab-wrap.-left .acf-tab-group li.active a{border-color:#DFDFDF;color:#000;margin-right:-1px;background:#fff}html[dir="rtl"] .acf-tab-wrap.-left .acf-tab-group{left:auto;right:0}html[dir="rtl"] .acf-tab-wrap.-left .acf-tab-group li.active a{margin-right:0;margin-left:-1px}.acf-field+.acf-tab-wrap.-left:before{content:"";display:block;position:relative;z-index:1;height:10px;border-top:#DFDFDF solid 1px;border-bottom:#DFDFDF solid 1px;margin-bottom:-1px}.acf-tab-wrap.-left:first-child .acf-tab-group li:first-child a{border-top:none}.acf-fields.-sidebar{padding:0 0 0 20% !important;position:relative}.acf-fields.-sidebar:before{content:"";display:block;position:absolute;top:0;left:0;width:20%;bottom:0;border-right:#DFDFDF solid 1px;background:#F9F9F9;z-index:1}html[dir="rtl"] .acf-fields.-sidebar{padding:0 20% 0 0 !important}html[dir="rtl"] .acf-fields.-sidebar:before{border-left:#DFDFDF solid 1px;border-right-width:0;left:auto;right:0}.acf-fields.-sidebar.-left{padding:0 0 0 180px !important}html[dir="rtl"] .acf-fields.-sidebar.-left{padding:0 180px 0 0 !important}.acf-fields.-sidebar.-left:before{background:#F1F1F1;border-color:#dfdfdf;width:180px}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group{width:180px}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group li a{border-color:#e4e4e4}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group li.active a{background:#F9F9F9}.acf-fields.-sidebar>.acf-field-tab+.acf-field{border-top:none}.acf-fields.-clear>.acf-tab-wrap{background:transparent}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group{margin-top:0;border-top:none;padding-left:0;padding-right:0}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a{background:#e5e5e5}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a:hover{background:#fff}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group li.active a{background:#f1f1f1}.acf-postbox.seamless>.acf-fields.-sidebar{margin-left:0 !important}.acf-postbox.seamless>.acf-fields.-sidebar:before{background:transparent}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap{background:transparent;margin-bottom:10px;padding-left:12px;padding-right:12px}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group{border-top:0 none}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group li a{background:#e5e5e5}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group li a:hover{background:#fff}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group li.active a{background:#f1f1f1}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left:before{border-top:none;height:auto}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left .acf-tab-group{margin-bottom:0}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left .acf-tab-group li a{border-width:1px 0 1px 1px !important;border-color:#cccccc;background:#e5e5e5}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left .acf-tab-group li.active a{background:#f1f1f1}.menu-edit .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a,.widget .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a{background:#f1f1f1}.menu-edit .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a:hover,.menu-edit .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li.active a,.widget .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a:hover,.widget .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li.active a{background:#fff}.compat-item .acf-tab-wrap td{display:block}.acf-gallery-side .acf-tab-wrap{border-top:0 none !important}.acf-gallery-side .acf-tab-wrap .acf-tab-group{margin:10px 0 !important;padding:0 !important}.acf-gallery-side .acf-tab-group li.active a{background:#F9F9F9 !important}.widget .acf-tab-group{border-bottom-color:#e8e8e8}.widget .acf-tab-group li a{background:#F1F1F1}.widget .acf-tab-group li.active a{background:#fff}.media-modal.acf-expanded .compat-attachment-fields>tbody>tr.acf-tab-wrap .acf-tab-group{padding-left:23%;border-bottom-color:#DDDDDD}.form-table>tbody>tr.acf-tab-wrap .acf-tab-group{padding:0 5px 0 210px}html[dir="rtl"] .form-table>tbody>tr.acf-tab-wrap .acf-tab-group{padding:0 210px 0 5px}.acf-oembed{position:relative;border:#DFDFDF solid 1px;background:#fff}.acf-oembed .title{position:relative;border-bottom:#DFDFDF solid 1px;padding:5px 10px}.acf-oembed .title .input-search{margin:0;font-size:14px;line-height:30px;height:30px;padding:0;border:0 none;box-shadow:none;border-radius:0;font-family:inherit;cursor:text}.acf-oembed .title .acf-actions{padding:6px}.acf-oembed .canvas{position:relative;min-height:250px;background:#F9F9F9}.acf-oembed .canvas .canvas-media{position:relative;z-index:1}.acf-oembed .canvas iframe{display:block;margin:0;padding:0;width:100%}.acf-oembed .canvas .acf-icon.-picture{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:0;height:42px;width:42px;font-size:42px;color:#999}.acf-oembed .canvas .acf-loading-overlay{background:rgba(255,255,255,0.9)}.acf-oembed .canvas .canvas-error{position:absolute;top:50%;left:0%;right:0%;margin:-9px 0 0 0;text-align:center;display:none}.acf-oembed .canvas .canvas-error p{padding:8px;margin:0;display:inline}.acf-oembed.has-value .canvas{min-height:50px}.acf-oembed.has-value .input-search{font-weight:bold}.acf-oembed.has-value .title:hover .acf-actions{display:block}.acf-image-uploader{position:relative}.acf-image-uploader:after{display:block;clear:both;content:""}.acf-image-uploader p{margin:0}.acf-image-uploader .image-wrap{position:relative;float:left}.acf-image-uploader .image-wrap img{max-width:100%;width:auto;height:auto;display:block;min-width:30px;min-height:30px;background:#f1f1f1;margin:0;padding:0}.acf-image-uploader .image-wrap img[src$=".svg"]{min-height:100px;min-width:100px}.acf-image-uploader .image-wrap:hover .acf-actions{display:block}.acf-image-uploader input.button{width:auto}html[dir="rtl"] .acf-image-uploader .image-wrap{float:right}.acf-file-uploader{position:relative}.acf-file-uploader p{margin:0}.acf-file-uploader .file-wrap{border:#DFDFDF solid 1px;min-height:84px;position:relative;background:#fff}.acf-file-uploader .file-icon{position:absolute;top:0;left:0;bottom:0;padding:10px;background:#F1F1F1;border-right:#E5E5E5 solid 1px}.acf-file-uploader .file-icon img{display:block;padding:0;margin:0;max-width:48px}.acf-file-uploader .file-info{padding:10px;margin-left:69px}.acf-file-uploader .file-info p{margin:0 0 2px;font-size:13px;line-height:1.4em;word-break:break-all}.acf-file-uploader .file-info a{text-decoration:none}.acf-file-uploader:hover .acf-actions{display:block}html[dir="rtl"] .acf-file-uploader .file-icon{left:auto;right:0;border-left:#E5E5E5 solid 1px;border-right:none}html[dir="rtl"] .acf-file-uploader .file-info{margin-right:69px;margin-left:0}.acf-ui-datepicker .ui-datepicker{z-index:900000 !important}.acf-ui-datepicker .ui-datepicker .ui-widget-header a{cursor:pointer;transition:none}.acf-ui-datepicker .ui-state-highlight.ui-state-hover{border:1px solid #98b7e8 !important;background:#98b7e8 !important;font-weight:normal !important;color:#ffffff !important}.acf-ui-datepicker .ui-state-highlight.ui-state-active{border:1px solid #3875d7 !important;background:#3875d7 !important;font-weight:normal !important;color:#ffffff !important}.acf-field-separator .acf-label{margin-bottom:0}.acf-field-separator .acf-label label{font-weight:normal}.acf-field-separator .acf-input{display:none}.acf-fields>.acf-field-separator{background:#f9f9f9;border-bottom:1px solid #dfdfdf;border-top:1px solid #dfdfdf;margin-bottom:-1px;z-index:2}.acf-taxonomy-field{position:relative}.acf-taxonomy-field .categorychecklist-holder{border:#DFDFDF solid 1px;border-radius:3px;max-height:200px;overflow:auto}.acf-taxonomy-field .acf-checkbox-list{margin:0;padding:10px}.acf-taxonomy-field .acf-checkbox-list ul.children{padding-left:18px}.acf-taxonomy-field:hover .acf-actions{display:block}.acf-taxonomy-field[data-ftype="select"] .acf-actions{padding:0;margin:-9px}.acf-range-wrap .acf-append,.acf-range-wrap .acf-prepend{display:inline-block;vertical-align:middle;line-height:28px;margin:0 7px 0 0}.acf-range-wrap .acf-append{margin:0 0 0 7px}.acf-range-wrap input[type="range"]{display:inline-block;padding:0;margin:0;vertical-align:middle;height:28px}.acf-range-wrap input[type="range"]:focus{outline:none}.acf-range-wrap input[type="number"]{display:inline-block;min-width:3em;margin-left:10px;vertical-align:middle}html[dir="rtl"] .acf-range-wrap input[type="number"]{margin-right:10px;margin-left:0}html[dir="rtl"] .acf-range-wrap .acf-append{margin:0 7px 0 0}html[dir="rtl"] .acf-range-wrap .acf-prepend{margin:0 0 0 7px}.acf-accordion{margin:0;padding:0;background:#fff}.acf-accordion .acf-accordion-title{margin:0;padding:12px;font-weight:bold;cursor:pointer;font-size:inherit;font-size:13px;line-height:1.4em}.acf-accordion .acf-accordion-title label{margin:0;padding:0;font-size:13px;line-height:1.4em}.acf-accordion .acf-accordion-title p{font-weight:normal}.acf-accordion .acf-accordion-title .acf-accordion-icon{float:right}.acf-accordion .acf-accordion-content{margin:0;padding:0 12px 12px;display:none}.acf-accordion.-open>.acf-accordion-content{display:block}.acf-field.acf-accordion{padding:0 !important;border-color:#dfdfdf}.acf-field.acf-accordion .acf-accordion-title{padding:12px;width:auto !important;float:none !important;width:auto !important}.acf-field.acf-accordion .acf-accordion-content{padding:0;float:none !important;width:auto !important}.acf-field.acf-accordion .acf-accordion-content>.acf-fields{border-top:#EEEEEE solid 1px}.acf-field.acf-accordion .acf-accordion-content>.acf-fields.-clear{padding:0 12px 15px}.acf-fields.-left>.acf-field.acf-accordion{padding:0 !important}.acf-fields.-left>.acf-field.acf-accordion:before{display:none}.acf-fields.-left>.acf-field.acf-accordion .acf-accordion-title{width:auto;margin:0 !important;padding:12px;float:none !important}.acf-fields.-left>.acf-field.acf-accordion .acf-accordion-content{padding:0 !important}.acf-fields.-clear>.acf-field.acf-accordion{border:#cccccc solid 1px;background:transparent}.acf-fields.-clear>.acf-field.acf-accordion+.acf-field.acf-accordion{margin-top:-16px}tr.acf-field.acf-accordion{background:transparent}tr.acf-field.acf-accordion>.acf-input{padding:0 !important;border:#cccccc solid 1px}tr.acf-field.acf-accordion .acf-accordion-content{padding:0 12px 12px}#addtag div.acf-field.error{border:0 none;padding:8px 0}#addtag>.acf-field.acf-accordion{padding-right:0;margin-right:5%}#addtag>.acf-field.acf-accordion+p.submit{margin-top:0}tr.acf-accordion{margin:15px 0 !important}tr.acf-accordion+tr.acf-accordion{margin-top:-16px !important}.acf-postbox.seamless>.acf-fields>.acf-accordion{margin-left:12px !important;margin-right:12px !important}.widget .widget-content>.acf-field.acf-accordion{border:#dfdfdf solid 1px;margin-bottom:10px}.widget .widget-content>.acf-field.acf-accordion .acf-accordion-title{margin-bottom:0}.widget .widget-content>.acf-field.acf-accordion+.acf-field.acf-accordion{margin-top:-11px}.acf-postbox.seamless>.acf-fields>.acf-field.acf-accordion{border:#e5e5e5 solid 1px}.acf-postbox.seamless>.acf-fields>.acf-field.acf-accordion+.acf-field.acf-accordion{margin-top:-1px}.media-modal .compat-attachment-fields .acf-field.acf-accordion+.acf-field.acf-accordion{margin-top:-1px}.media-modal .compat-attachment-fields .acf-field.acf-accordion>.acf-input{width:100%}.media-modal .compat-attachment-fields .acf-field.acf-accordion .compat-attachment-fields>tbody>tr>td{padding-bottom:5px}.form-table>tbody>.acf-field>.acf-label{padding:20px 10px 20px 0;width:210px}html[dir="rtl"] .form-table>tbody>.acf-field>.acf-label{padding:20px 0 20px 10px}.form-table>tbody>.acf-field>.acf-label label{font-size:14px;color:#23282d}.form-table>tbody>.acf-field>.acf-input{padding:15px 10px}html[dir="rtl"] .form-table>tbody>.acf-field>.acf-input{padding:15px 10px 15px 5%}.form-table>tbody>.acf-tab-wrap td{padding:15px 5% 15px 0}html[dir="rtl"] .form-table>tbody>.acf-tab-wrap td{padding:15px 0 15px 5%}.form-table>tbody .form-table th.acf-th{width:auto}#your-profile .acf-field input[type="text"],#your-profile .acf-field input[type="password"],#your-profile .acf-field input[type="number"],#your-profile .acf-field input[type="search"],#your-profile .acf-field input[type="email"],#your-profile .acf-field input[type="url"],#your-profile .acf-field select,#createuser .acf-field input[type="text"],#createuser .acf-field input[type="password"],#createuser .acf-field input[type="number"],#createuser .acf-field input[type="search"],#createuser .acf-field input[type="email"],#createuser .acf-field input[type="url"],#createuser .acf-field select{max-width:25em}#your-profile .acf-field textarea,#createuser .acf-field textarea{max-width:500px}#your-profile .acf-field .acf-field input[type="text"],#your-profile .acf-field .acf-field input[type="password"],#your-profile .acf-field .acf-field input[type="number"],#your-profile .acf-field .acf-field input[type="search"],#your-profile .acf-field .acf-field input[type="email"],#your-profile .acf-field .acf-field input[type="url"],#your-profile .acf-field .acf-field textarea,#your-profile .acf-field .acf-field select,#createuser .acf-field .acf-field input[type="text"],#createuser .acf-field .acf-field input[type="password"],#createuser .acf-field .acf-field input[type="number"],#createuser .acf-field .acf-field input[type="search"],#createuser .acf-field .acf-field input[type="email"],#createuser .acf-field .acf-field input[type="url"],#createuser .acf-field .acf-field textarea,#createuser .acf-field .acf-field select{max-width:none}#registerform h2{margin:1em 0}#registerform .acf-field{margin-top:0}#registerform .acf-field .acf-label{margin-bottom:0}#registerform .acf-field .acf-label label{font-weight:normal;line-height:1.5}#registerform p.submit{text-align:right}#acf-term-fields{padding-right:5%}#acf-term-fields>.acf-field>.acf-label{margin:0}#acf-term-fields>.acf-field>.acf-label label{font-size:12px;font-weight:normal}p.submit .spinner,p.submit .acf-spinner{vertical-align:top;float:none;margin:4px 4px 0}#edittag .acf-fields.-left>.acf-field{padding-left:220px}#edittag .acf-fields.-left>.acf-field:before{width:209px}#edittag .acf-fields.-left>.acf-field>.acf-label{width:220px;margin-left:-220px;padding:0 10px}#edittag .acf-fields.-left>.acf-field>.acf-input{padding:0}#edittag>.acf-fields.-left{width:96%}#edittag>.acf-fields.-left>.acf-field>.acf-label{padding-left:0}.editcomment td:first-child{white-space:nowrap;width:131px}#widgets-right .widget .acf-field .description{padding-left:0;padding-right:0}.acf-widget-fields>.acf-field .acf-label{margin-bottom:5px}.acf-widget-fields>.acf-field .acf-label label{font-weight:normal;margin:0}.acf-menu-settings{border-top:1px solid #eee;margin-top:2em}.acf-menu-settings.-seamless{border-top:none;margin-top:15px}.acf-menu-settings.-seamless>h2{display:none}.acf-menu-settings .list li{display:block;margin-bottom:0}.acf-menu-item-fields{margin-right:10px;float:left}#post .compat-attachment-fields .compat-field-acf-form-data{display:none}#post .compat-attachment-fields,#post .compat-attachment-fields>tbody,#post .compat-attachment-fields>tbody>tr,#post .compat-attachment-fields>tbody>tr>th,#post .compat-attachment-fields>tbody>tr>td{display:block}#post .compat-attachment-fields>tbody>.acf-field{margin:15px 0}#post .compat-attachment-fields>tbody>.acf-field>.acf-label{margin:0}#post .compat-attachment-fields>tbody>.acf-field>.acf-label label{margin:0;padding:0}#post .compat-attachment-fields>tbody>.acf-field>.acf-label label p{margin:0 0 3px !important}#post .compat-attachment-fields>tbody>.acf-field>.acf-input{margin:0}.media-modal .compat-attachment-fields td.acf-input table{display:table;table-layout:auto}.media-modal .compat-attachment-fields td.acf-input table tbody{display:table-row-group}.media-modal .compat-attachment-fields td.acf-input table tr{display:table-row}.media-modal .compat-attachment-fields td.acf-input table td,.media-modal .compat-attachment-fields td.acf-input table th{display:table-cell}.media-modal .compat-attachment-fields>tbody>.acf-field{margin:5px 0}.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-label{min-width:30%;margin:0;padding:0;float:left;text-align:right;display:block;float:left}.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-label>label{padding-top:6px;margin:0;color:#666666;font-weight:400;line-height:16px}.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-input{width:65%;margin:0;padding:0;float:right;display:block}.media-modal .compat-attachment-fields>tbody>.acf-field p.description{margin:0}.acf-selection-error{background:#ffebe8;border:1px solid #c00;border-radius:3px;padding:8px;margin:20px 0 0}.acf-selection-error .selection-error-label{background:#CC0000;border-radius:3px;color:#fff;font-weight:bold;margin-right:8px;padding:2px 4px}.acf-selection-error .selection-error-message{color:#b44;display:block;padding-top:8px;word-wrap:break-word;white-space:pre-wrap}.media-modal .attachment.acf-disabled .thumbnail{opacity:0.25 !important}.media-modal .attachment.acf-disabled .attachment-preview:before{background:rgba(0,0,0,0.15);z-index:1;position:relative}.media-modal .compat-field-acf-form-data,.media-modal .compat-field-acf-blank{display:none !important}.media-modal .upload-error-message{white-space:pre-wrap}.media-modal .acf-required{padding:0 !important;margin:0 !important;float:none !important;color:#f00 !important}.media-modal .media-sidebar .compat-item{padding-bottom:20px}@media (max-width: 900px){.media-modal .setting span,.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-label{width:98%;float:none;text-align:left;min-height:0;padding:0}.media-modal .setting input,.media-modal .setting textarea,.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-input{float:none;height:auto;max-width:none;width:98%}}.media-modal .acf-expand-details{float:right;padding:1px 10px;margin-right:6px;height:18px;line-height:18px;color:#AAAAAA;font-size:12px}.media-modal .acf-expand-details:focus,.media-modal .acf-expand-details:active{outline:0 none;box-shadow:none;color:#AAAAAA}.media-modal .acf-expand-details:hover{color:#666666 !important}.media-modal .acf-expand-details span{display:block;float:left}.media-modal .acf-expand-details .acf-icon{margin:0 4px 0 0}.media-modal .acf-expand-details:hover .acf-icon{border-color:#AAAAAA}.media-modal .acf-expand-details .is-open{display:none}.media-modal .acf-expand-details .is-closed{display:block}@media (max-width: 640px){.media-modal .acf-expand-details{display:none}}.media-modal.acf-expanded .acf-expand-details .is-open{display:block}.media-modal.acf-expanded .acf-expand-details .is-closed{display:none}.media-modal.acf-expanded .attachments-browser .media-toolbar,.media-modal.acf-expanded .attachments-browser .attachments{right:740px}.media-modal.acf-expanded .media-sidebar{width:708px}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail{float:left;max-height:none}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail img{max-width:100%;max-height:200px}.media-modal.acf-expanded .media-sidebar .attachment-info .details{float:right}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail,.media-modal.acf-expanded .media-sidebar .attachment-details .setting span,.media-modal.acf-expanded .media-sidebar .compat-attachment-fields>tbody>.acf-field>.acf-label{min-width:20%;margin-right:0}.media-modal.acf-expanded .media-sidebar .attachment-info .details,.media-modal.acf-expanded .media-sidebar .attachment-details .setting input,.media-modal.acf-expanded .media-sidebar .attachment-details .setting textarea,.media-modal.acf-expanded .media-sidebar .attachment-details .setting+.description,.media-modal.acf-expanded .media-sidebar .compat-attachment-fields>tbody>.acf-field>.acf-input{min-width:77%}@media (max-width: 900px){.media-modal.acf-expanded .attachments-browser .media-toolbar{display:none}.media-modal.acf-expanded .attachments{display:none}.media-modal.acf-expanded .media-sidebar{width:auto;max-width:none !important;bottom:0 !important}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail{min-width:0;max-width:none;width:30%}.media-modal.acf-expanded .media-sidebar .attachment-info .details{min-width:0;max-width:none;width:67%}}@media (max-width: 640px){.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail,.media-modal.acf-expanded .media-sidebar .attachment-info .details{width:100%}}.acf-media-modal .media-embed .setting.align,.acf-media-modal .media-embed .setting.link-to{display:none}@media screen and (min-width: 1024px){.acf-media-modal .media-modal-content .media-frame .media-toolbar-secondary{max-width:none}.acf-media-modal .media-modal-content .media-frame .media-toolbar-secondary select.attachment-filters{width:auto;min-width:150px;max-width:none;margin:11px 6px 0 0;vertical-align:middle}}.acf-media-modal.-edit{left:15%;right:15%;top:100px;bottom:100px}.acf-media-modal.-edit .media-frame-menu,.acf-media-modal.-edit .media-frame-router,.acf-media-modal.-edit .media-frame-content .attachments,.acf-media-modal.-edit .media-frame-content .media-toolbar{display:none}.acf-media-modal.-edit .media-frame-title,.acf-media-modal.-edit .media-frame-content,.acf-media-modal.-edit .media-frame-toolbar,.acf-media-modal.-edit .media-sidebar{width:auto;left:0;right:0}.acf-media-modal.-edit .media-frame-content{top:50px}.acf-media-modal.-edit .media-frame-title{border-bottom:1px solid #DFDFDF;box-shadow:0 4px 4px -4px rgba(0,0,0,0.1)}.acf-media-modal.-edit .media-sidebar{padding:0 16px}.acf-media-modal.-edit .media-sidebar .attachment-details{overflow:visible}.acf-media-modal.-edit .media-sidebar .attachment-details>h3,.acf-media-modal.-edit .media-sidebar .attachment-details>h2{display:none}.acf-media-modal.-edit .media-sidebar .attachment-details .attachment-info{background:#fff;border-bottom:#dddddd solid 1px;padding:16px;margin:0 -16px 16px}.acf-media-modal.-edit .media-sidebar .attachment-details .thumbnail{margin:0 16px 0 0}.acf-media-modal.-edit .media-sidebar .attachment-details .setting{margin:0 0 5px}.acf-media-modal.-edit .media-sidebar .attachment-details .setting span{margin:0}.acf-media-modal.-edit .media-sidebar .compat-attachment-fields>tbody>.acf-field{margin:0 0 5px}.acf-media-modal.-edit .media-sidebar .compat-attachment-fields>tbody>.acf-field p.description{margin-top:3px}.acf-media-modal.-edit .media-sidebar .media-types-required-info{display:none}@media (max-width: 900px){.acf-media-modal.-edit{top:30px;right:30px;bottom:30px;left:30px}}@media (max-width: 640px){.acf-media-modal.-edit{top:0;right:0;bottom:0;left:0}}@media (max-width: 480px){.acf-media-modal.-edit .media-frame-content{top:40px}}.acf-temp-remove{position:relative;opacity:1;-webkit-transition:all 0.25s ease;-moz-transition:all 0.25s ease;-o-transition:all 0.25s ease;transition:all 0.25s ease;overflow:hidden}.acf-temp-remove:after{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.hidden-by-conditional-logic{display:none !important}.hidden-by-conditional-logic.appear-empty{display:table-cell !important}.hidden-by-conditional-logic.appear-empty .acf-input{display:none !important}.acf-postbox.acf-hidden{display:none !important}#editor .edit-post-layout__metaboxes{padding:0}#editor .postbox{color:#444}#editor .postbox .handlediv{color:#191e23 !important;height:46px;width:auto;padding:0 14px 0 5px;position:relative;z-index:2}#editor .postbox .hndle{color:#191e23 !important;font-size:13px;line-height:normal;padding:15px}#editor .postbox .hndle:hover{background:#f2f4f5}#editor .postbox .hndle .acf-hndle-cog{line-height:16px}#editor .postbox .handlediv .toggle-indicator{color:inherit}#editor .postbox .handlediv .toggle-indicator:before{content:"\f343";font-size:18px;width:auto}#editor .postbox.closed .handlediv .toggle-indicator:before{content:"\f347"} +/*-------------------------------------------------------------------------------------------- +* +* Vars +* +*--------------------------------------------------------------------------------------------*/ +/* colors */ +/* acf-field */ +/* responsive */ +/*-------------------------------------------------------------------------------------------- +* +* Mixins +* +*--------------------------------------------------------------------------------------------*/ +/*-------------------------------------------------------------------------------------------- +* +* acf-field +* +*--------------------------------------------------------------------------------------------*/ +.acf-field, +.acf-field .acf-label, +.acf-field .acf-input { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + position: relative; } + +.acf-field { + margin: 15px 0; + clear: both; } + .acf-field p.description { + display: block; + margin: 0; + padding: 0; } + .acf-field .acf-label { + vertical-align: top; + margin: 0 0 10px; } + .acf-field .acf-label label { + display: block; + font-weight: bold; + margin: 0 0 3px; + padding: 0; } + .acf-field .acf-label:empty { + margin-bottom: 0; } + .acf-field .acf-input { + vertical-align: top; } + .acf-field .acf-input > p.description { + margin-top: 5px; } + .acf-field .acf-notice { + margin: 0 0 15px; + background: #edf2ff; + color: #2183b9; + border: none; } + .acf-field .acf-notice .acf-notice-dismiss { + background: transparent; + color: inherit; } + .acf-field .acf-notice .acf-notice-dismiss:hover { + background: #fff; } + .acf-field .acf-notice.-dismiss { + padding-right: 40px; } + .acf-field .acf-notice.-error { + background: #ffe6e6; + color: #d12626; } + .acf-field .acf-notice.-success { + background: #eefbe8; + color: #32a23b; } + .acf-field .acf-notice.-warning { + background: #fff3e6; + color: #d16226; } + td.acf-field, tr.acf-field { + margin: 0; } + +.acf-field[data-width] { + float: left; + clear: none; + /* + @media screen and (max-width: $sm) { + float: none; + width: auto; + border-left-width: 0; + border-right-width: 0; + } +*/ } + .acf-field[data-width] + .acf-field[data-width] { + border-left: 1px solid #eeeeee; } + html[dir="rtl"] .acf-field[data-width] { + float: right; } + html[dir="rtl"] .acf-field[data-width] + .acf-field[data-width] { + border-left: none; + border-right: 1px solid #eeeeee; } + td.acf-field[data-width], tr.acf-field[data-width] { + float: none; } + +.acf-field.-c0 { + clear: both; + border-left-width: 0 !important; } + html[dir="rtl"] .acf-field.-c0 { + border-left-width: 1px !important; + border-right-width: 0 !important; } + +.acf-field.-r0 { + border-top-width: 0 !important; } + +/*-------------------------------------------------------------------------------------------- +* +* acf-fields +* +*--------------------------------------------------------------------------------------------*/ +.acf-fields { + position: relative; } + .acf-fields:after { + display: block; + clear: both; + content: ""; } + .acf-fields.-border { + border: #dfdfdf solid 1px; + background: #fff; } + .acf-fields > .acf-field { + position: relative; + margin: 0; + padding: 15px 12px; + border-top: #EEEEEE solid 1px; } + .acf-fields > .acf-field:first-child { + border-top-width: 0; } + td.acf-fields { + padding: 0 !important; } + +/*-------------------------------------------------------------------------------------------- +* +* acf-fields (clear) +* +*--------------------------------------------------------------------------------------------*/ +.acf-fields.-clear > .acf-field { + border: none; + padding: 0; + margin: 15px 0; } + .acf-fields.-clear > .acf-field[data-width] { + border: none !important; } + .acf-fields.-clear > .acf-field > .acf-label { + padding: 0; } + .acf-fields.-clear > .acf-field > .acf-input { + padding: 0; } + +/*-------------------------------------------------------------------------------------------- +* +* acf-fields (left) +* +*--------------------------------------------------------------------------------------------*/ +.acf-fields.-left > .acf-field { + padding: 15px 0; } + .acf-fields.-left > .acf-field:after { + display: block; + clear: both; + content: ""; } + .acf-fields.-left > .acf-field:before { + content: ""; + display: block; + position: absolute; + z-index: 0; + background: #F9F9F9; + border-color: #E1E1E1; + border-style: solid; + border-width: 0 1px 0 0; + top: 0; + bottom: 0; + left: 0; + width: 20%; } + .acf-fields.-left > .acf-field[data-width] { + float: none; + width: auto !important; + border-left-width: 0 !important; + border-right-width: 0 !important; } + .acf-fields.-left > .acf-field > .acf-label { + float: left; + width: 20%; + margin: 0; + padding: 0 12px; } + .acf-fields.-left > .acf-field > .acf-input { + float: left; + width: 80%; + margin: 0; + padding: 0 12px; } + html[dir="rtl"] .acf-fields.-left > .acf-field:before { + border-width: 0 0 0 1px; + left: auto; + right: 0; } + html[dir="rtl"] .acf-fields.-left > .acf-field > .acf-label { + float: right; } + html[dir="rtl"] .acf-fields.-left > .acf-field > .acf-input { + float: right; } + @media screen and (max-width: 640px) { + .acf-fields.-left > .acf-field:before { + display: none; } + .acf-fields.-left > .acf-field > .acf-label { + width: 100%; + margin-bottom: 10px; } + .acf-fields.-left > .acf-field > .acf-input { + width: 100%; } } + +/* clear + left */ +.acf-fields.-clear.-left > .acf-field { + padding: 0; + border: none; } + .acf-fields.-clear.-left > .acf-field:before { + display: none; } + .acf-fields.-clear.-left > .acf-field > .acf-label { + padding: 0; } + .acf-fields.-clear.-left > .acf-field > .acf-input { + padding: 0; } + +/*-------------------------------------------------------------------------------------------- +* +* acf-table +* +*--------------------------------------------------------------------------------------------*/ +.acf-table tr.acf-field > td.acf-label { + padding: 15px 12px; + margin: 0; + background: #F9F9F9; + width: 20%; } + +.acf-table tr.acf-field > td.acf-input { + padding: 15px 12px; + margin: 0; + border-left-color: #E1E1E1; } + +.acf-sortable-tr-helper { + position: relative !important; + display: table-row !important; } + +/*-------------------------------------------------------------------------------------------- +* +* acf-postbox +* +*--------------------------------------------------------------------------------------------*/ +.acf-postbox { + position: relative; } + .acf-postbox > .inside { + margin: 0 !important; + /* override WP style - do not delete - you have tried this before */ + padding: 0 !important; + /* override WP style - do not delete - you have tried this before */ } + .acf-postbox > .hndle { + /* edit field group */ } + .acf-postbox > .hndle .acf-hndle-cog { + color: #AAAAAA; + font-size: 16px; + line-height: 20px; + padding: 0 2px; + float: right; + position: relative; + display: none; } + .acf-postbox > .hndle .acf-hndle-cog:hover { + color: #777777; } + .acf-postbox:hover > .hndle .acf-hndle-cog { + display: block; } + .acf-postbox .acf-replace-with-fields { + padding: 15px; + text-align: center; } + +#post-body-content #acf_after_title-sortables { + margin: 20px 0 -20px; } + +/* seamless */ +.acf-postbox.seamless { + border: 0 none; + background: transparent; + box-shadow: none; + /* hide hndle */ + /* inside */ } + .acf-postbox.seamless > .hndle, + .acf-postbox.seamless > .handlediv { + display: none !important; } + .acf-postbox.seamless > .inside { + display: block !important; + /* stop metabox from hiding when closed */ + margin-left: -12px !important; + margin-right: -12px !important; } + .acf-postbox.seamless > .inside > .acf-field { + border-color: transparent; } + +/* seamless (left) */ +.acf-postbox.seamless > .acf-fields.-left { + /* hide sidebar bg */ + /* mobile */ } + .acf-postbox.seamless > .acf-fields.-left > .acf-field:before { + display: none; } + @media screen and (max-width: 782px) { + .acf-postbox.seamless > .acf-fields.-left { + /* remove padding */ } + .acf-postbox.seamless > .acf-fields.-left > .acf-field > .acf-label, + .acf-postbox.seamless > .acf-fields.-left > .acf-field > .acf-input { + padding: 0; } } + +/*--------------------------------------------------------------------------------------------- +* +* Inputs +* +*---------------------------------------------------------------------------------------------*/ +.acf-field input[type="text"], +.acf-field input[type="password"], +.acf-field input[type="number"], +.acf-field input[type="search"], +.acf-field input[type="email"], +.acf-field input[type="url"], +.acf-field textarea, +.acf-field select { + width: 100%; + padding: 3px 5px; + resize: none; + margin: 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + font-size: 14px; + line-height: 1.4; } + .acf-field input[type="text"]:disabled, + .acf-field input[type="password"]:disabled, + .acf-field input[type="number"]:disabled, + .acf-field input[type="search"]:disabled, + .acf-field input[type="email"]:disabled, + .acf-field input[type="url"]:disabled, + .acf-field textarea:disabled, + .acf-field select:disabled { + background: #f8f8f8; } + .acf-field input[type="text"][readonly], + .acf-field input[type="password"][readonly], + .acf-field input[type="number"][readonly], + .acf-field input[type="search"][readonly], + .acf-field input[type="email"][readonly], + .acf-field input[type="url"][readonly], + .acf-field textarea[readonly], + .acf-field select[readonly] { + background: #f8f8f8; } + +.acf-field textarea { + resize: vertical; } + +/*--------------------------------------------------------------------------------------------- +* +* Text +* +*---------------------------------------------------------------------------------------------*/ +.acf-input-prepend, +.acf-input-append, +.acf-input-wrap { + box-sizing: border-box; } + +.acf-input-prepend, +.acf-input-append { + font-size: 13px; + line-height: 20px; + padding: 3px 7px; + background: #F4F4F4; + border: #DFDFDF solid 1px; } + +.acf-input-prepend { + float: left; + border-right-width: 0; + border-radius: 3px 0 0 3px; } + +.acf-input-append { + float: right; + border-left-width: 0; + border-radius: 0 3px 3px 0; } + +.acf-input-wrap { + position: relative; + overflow: hidden; } + .acf-input-wrap input { + height: 28px; + margin: 0; } + +input.acf-is-prepended { + border-radius: 0 3px 3px 0 !important; } + +input.acf-is-appended { + border-radius: 3px 0 0 3px !important; } + +input.acf-is-prepended.acf-is-appended { + border-radius: 0 !important; } + +/* rtl */ +html[dir="rtl"] .acf-input-prepend { + border-left-width: 0; + border-right-width: 1px; + border-radius: 0 3px 3px 0; + float: right; } + +html[dir="rtl"] .acf-input-append { + border-left-width: 1px; + border-right-width: 0; + border-radius: 3px 0 0 3px; + float: left; } + +html[dir="rtl"] input.acf-is-prepended { + border-radius: 3px 0 0 3px !important; } + +html[dir="rtl"] input.acf-is-appended { + border-radius: 0 3px 3px 0 !important; } + +html[dir="rtl"] input.acf-is-prepended.acf-is-appended { + border-radius: 0 !important; } + +/*--------------------------------------------------------------------------------------------- +* +* Color Picker +* +*---------------------------------------------------------------------------------------------*/ +.acf-color-picker .wp-picker-active { + position: relative; + z-index: 1; } + +/*--------------------------------------------------------------------------------------------- +* +* Url +* +*---------------------------------------------------------------------------------------------*/ +.acf-url i { + position: absolute; + top: 4px; + left: 4px; + opacity: 0.5; + color: #A9A9A9; } + +.acf-url input[type="url"] { + padding-left: 25px; } + +.acf-url.-valid i { + opacity: 1; } + +/*--------------------------------------------------------------------------------------------- +* +* Select +* +*---------------------------------------------------------------------------------------------*/ +.acf-field select { + padding: 2px; } + +.acf-field select optgroup { + padding: 5px; + background: #fff; } + +.acf-field select option { + padding: 3px; } + +.acf-field select optgroup option { + padding-left: 5px; } + +.acf-field select optgroup:nth-child(2n) { + background: #F9F9F9; } + +.acf-field .select2-input { + max-width: 200px; } + +/*--------------------------------------------------------------------------------------------- +* +* Select2 (v3) +* +*---------------------------------------------------------------------------------------------*/ +.select2-container.-acf { + /* open */ + /* single open */ } + .select2-container.-acf .select2-choices { + background: #fff; + border-color: #ddd; + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07) inset; + min-height: 31px; } + .select2-container.-acf .select2-choices .select2-search-choice { + margin: 5px 0 5px 5px; + padding: 3px 5px 3px 18px; + border-color: #bbb; + background: #f9f9f9; + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset; + /* sortable item*/ + /* sortable shadow */ } + .select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-helper { + background: #5897fb; + border-color: #3f87fa; + color: #fff; + box-shadow: 0 0 3px rgba(0, 0, 0, 0.1); } + .select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-helper a { + visibility: hidden; } + .select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-placeholder { + background-color: #f7f7f7; + border-color: #f7f7f7; + visibility: visible !important; } + .select2-container.-acf .select2-choices .select2-search-choice-focus { + border-color: #999; } + .select2-container.-acf .select2-choices .select2-search-field input { + height: 31px; + line-height: 22px; + margin: 0; + padding: 5px 5px 5px 7px; } + .select2-container.-acf .select2-choice { + border-color: #BBBBBB; } + .select2-container.-acf .select2-choice .select2-arrow { + background: transparent; + border-left-color: #DFDFDF; + padding-left: 1px; } + .select2-container.-acf .select2-choice .select2-result-description { + display: none; } + .select2-container.-acf.select2-container-active .select2-choices, + .select2-container.-acf.select2-dropdown-open .select2-choices { + border-color: #5B9DD9; + border-radius: 3px 3px 0 0; } + .select2-container.-acf.select2-dropdown-open .select2-choice { + background: #fff; + border-color: #5B9DD9; } + +/* rtl */ +html[dir="rtl"] .select2-container.-acf .select2-search-choice-close { + left: 24px; } + +html[dir="rtl"] .select2-container.-acf .select2-choice > .select2-chosen { + margin-left: 42px; } + +html[dir="rtl"] .select2-container.-acf .select2-choice .select2-arrow { + padding-left: 0; + padding-right: 1px; } + +/* description */ +.select2-drop { + /* search*/ + /* result */ } + .select2-drop .select2-search { + padding: 4px 4px 0; } + .select2-drop .select2-result { + /* hover*/ } + .select2-drop .select2-result .select2-result-description { + color: #999; + font-size: 12px; + margin-left: 5px; } + .select2-drop .select2-result.select2-highlighted .select2-result-description { + color: #fff; + opacity: 0.75; } + +/*--------------------------------------------------------------------------------------------- +* +* Select2 (v4) +* +*---------------------------------------------------------------------------------------------*/ +.select2-container.-acf li { + margin-bottom: 0; } + +.select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child { + float: none; } + .select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child input { + width: 100% !important; } + +.select2-container.-acf .select2-selection--multiple .select2-selection__rendered { + padding-right: 0; } + +.select2-container.-acf .select2-selection--multiple .select2-selection__choice { + background-color: #f7f7f7; + border-color: #cccccc; + max-width: 100%; + overflow: hidden; + word-wrap: normal !important; + white-space: normal; } + .select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-helper { + background: #5897fb; + border-color: #3f87fa; + color: #fff; + box-shadow: 0 0 3px rgba(0, 0, 0, 0.1); } + .select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-helper span { + visibility: hidden; } + .select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-placeholder { + background-color: #f7f7f7; + border-color: #f7f7f7; + visibility: visible !important; } + +.select2-container.-acf .select2-selection--multiple .select2-search__field { + box-shadow: none !important; } + +.acf-row .select2-container.-acf .select2-selection--single { + overflow: hidden; } + .acf-row .select2-container.-acf .select2-selection--single .select2-selection__rendered { + white-space: normal; } + +.select2-container .select2-dropdown { + z-index: 900000; } + +/*--------------------------------------------------------------------------------------------- +* +* Link +* +*---------------------------------------------------------------------------------------------*/ +.link-wrap { + border: #dddddd solid 1px; + border-radius: 3px; + padding: 5px; + line-height: 26px; + background: #fff; + word-wrap: break-word; + word-break: break-all; } + .link-wrap .link-title { + padding: 0 5px; } + +.acf-link { + /* value */ + /* external */ } + .acf-link .link-wrap, + .acf-link .acf-icon.-link-ext { + display: none; } + .acf-link.-value .button { + display: none; } + .acf-link.-value .link-wrap { + display: inline-block; } + .acf-link.-external .acf-icon.-link-ext { + display: inline-block; } + +#wp-link-backdrop { + z-index: 900000 !important; } + +#wp-link-wrap { + z-index: 900001 !important; } + +/*--------------------------------------------------------------------------------------------- +* +* Radio +* +*---------------------------------------------------------------------------------------------*/ +ul.acf-radio-list, +ul.acf-checkbox-list { + background: transparent; + position: relative; + padding: 1px; + margin: 0; + /* hl */ + /* rtl */ } + ul.acf-radio-list li, + ul.acf-checkbox-list li { + font-size: 13px; + line-height: 22px; + margin: 0; + position: relative; + word-wrap: break-word; + /* attachment sidebar fix*/ } + ul.acf-radio-list li label, + ul.acf-checkbox-list li label { + display: inline; } + ul.acf-radio-list li input[type="checkbox"], + ul.acf-radio-list li input[type="radio"], + ul.acf-checkbox-list li input[type="checkbox"], + ul.acf-checkbox-list li input[type="radio"] { + margin: -1px 4px 0 0; + vertical-align: middle; } + ul.acf-radio-list li input[type="text"], + ul.acf-checkbox-list li input[type="text"] { + width: auto; + vertical-align: middle; + margin: 2px 0; } + ul.acf-radio-list li span, + ul.acf-checkbox-list li span { + float: none; } + ul.acf-radio-list li i, + ul.acf-checkbox-list li i { + vertical-align: middle; } + ul.acf-radio-list.acf-hl li, + ul.acf-checkbox-list.acf-hl li { + margin-right: 20px; + clear: none; } + html[dir="rtl"] ul.acf-radio-list input[type="checkbox"], + html[dir="rtl"] ul.acf-radio-list input[type="radio"], html[dir="rtl"] + ul.acf-checkbox-list input[type="checkbox"], + html[dir="rtl"] + ul.acf-checkbox-list input[type="radio"] { + margin-left: 4px; + margin-right: 0; } + +/*--------------------------------------------------------------------------------------------- +* +* Button Group +* +*---------------------------------------------------------------------------------------------*/ +.acf-button-group { + display: inline-block; + /* default (horizontal) */ + /* vertical */ } + .acf-button-group label { + display: inline-block; + border: #ccc solid 1px; + position: relative; + z-index: 1; + padding: 5px 10px; + background: #fff; } + .acf-button-group label:hover { + border-color: #999999; + z-index: 2; } + .acf-button-group label.selected { + border-color: #2b9af3; + background: #309cf3; + color: #fff; + z-index: 2; } + .acf-button-group label.selected:hover { + background: #48a8f4; } + .acf-button-group input { + display: none !important; } + .acf-button-group { + padding-left: 1px; + display: inline-flex; + flex-direction: row; + flex-wrap: nowrap; } + .acf-button-group label { + margin: 0 0 0 -1px; + flex: 1; + text-align: center; + white-space: nowrap; } + .acf-button-group label:first-child { + border-radius: 3px 0 0 3px; } + html[dir="rtl"] .acf-button-group label:first-child { + border-radius: 0 3px 3px 0; } + .acf-button-group label:last-child { + border-radius: 0 3px 3px 0; } + html[dir="rtl"] .acf-button-group label:last-child { + border-radius: 3px 0 0 3px; } + .acf-button-group label:only-child { + border-radius: 3px; } + .acf-button-group.-vertical { + padding-left: 0; + padding-top: 1px; + flex-direction: column; } + .acf-button-group.-vertical label { + margin: -1px 0 0 0; } + .acf-button-group.-vertical label:first-child { + border-radius: 3px 3px 0 0; } + .acf-button-group.-vertical label:last-child { + border-radius: 0 0 3px 3px; } + .acf-button-group.-vertical label:only-child { + border-radius: 3px; } + +/*--------------------------------------------------------------------------------------------- +* +* Checkbox +* +*---------------------------------------------------------------------------------------------*/ +.acf-checkbox-list .button { + margin: 10px 0 0; } + +/*--------------------------------------------------------------------------------------------- +* +* True / False +* +*---------------------------------------------------------------------------------------------*/ +.acf-switch { + display: inline-block; + border-radius: 5px; + cursor: pointer; + position: relative; + background: #f8f8f8; + height: 30px; + vertical-align: middle; + border: #ccc solid 1px; + -webkit-transition: background 0.25s ease; + -moz-transition: background 0.25s ease; + -o-transition: background 0.25s ease; + transition: background 0.25s ease; + /* hover */ + /* active */ + /* focus */ + /* message */ } + .acf-switch span { + display: inline-block; + float: left; + text-align: center; + font-size: 13px; + line-height: 22px; + padding: 4px 10px; + min-width: 15px; } + .acf-switch span i { + vertical-align: middle; } + .acf-switch .acf-switch-on { + color: #fff; + text-shadow: #1f7db1 0 1px 0; } + .acf-switch .acf-switch-slider { + position: absolute; + top: 2px; + left: 2px; + bottom: 2px; + right: 50%; + z-index: 1; + background: #fff; + border-radius: 3px; + border: #ccc solid 1px; + -webkit-transition: all 0.25s ease; + -moz-transition: all 0.25s ease; + -o-transition: all 0.25s ease; + transition: all 0.25s ease; + transition-property: left, right; } + .acf-switch:hover .acf-switch-slider { + border-color: #b3b3b3; } + .acf-switch.-on { + background: #309cf3; + border-color: #2b9af3; + /* hover */ } + .acf-switch.-on .acf-switch-slider { + left: 50%; + right: 2px; + border-color: #0d84e3; } + .acf-switch.-on:hover { + background: #48a8f4; } + .acf-switch.-focus .acf-switch-slider { + border-color: #5b9dd9; + box-shadow: 0 0 2px rgba(30, 140, 190, 0.5); } + .acf-switch.-focus.-on .acf-switch-slider { + border-color: #185e85; + box-shadow: 0 0 2px #1f7db1; } + .acf-switch + span { + margin-left: 6px; } + +/* checkbox */ +.acf-switch-input { + opacity: 0; + position: absolute; + margin: 0; } + +/* in media modal */ +.compat-item .acf-true-false .message { + float: none; + padding: 0; + vertical-align: middle; } + +/*-------------------------------------------------------------------------- +* +* Google Map +* +*-------------------------------------------------------------------------*/ +.acf-google-map { + position: relative; + border: #DFDFDF solid 1px; + background: #fff; } + .acf-google-map .title { + position: relative; + border-bottom: #DFDFDF solid 1px; } + .acf-google-map .title .search { + margin: 0; + font-size: 14px; + line-height: 30px; + height: 40px; + padding: 5px 10px; + border: 0 none; + box-shadow: none; + border-radius: 0; + font-family: inherit; + cursor: text; } + .acf-google-map .title .acf-loading { + position: absolute; + top: 10px; + right: 11px; + display: none; } + .acf-google-map .title .acf-icon:active { + display: inline-block !important; } + .acf-google-map .canvas { + height: 400px; } + .acf-google-map:hover .title .acf-actions { + display: block; } + .acf-google-map .title .acf-icon.-location { + display: inline-block; } + .acf-google-map .title .acf-icon.-cancel, + .acf-google-map .title .acf-icon.-search { + display: none; } + .acf-google-map.-value .title .search { + font-weight: bold; } + .acf-google-map.-value .title .acf-icon.-location { + display: none; } + .acf-google-map.-value .title .acf-icon.-cancel { + display: inline-block; } + .acf-google-map.-searching .title .acf-icon.-location { + display: none; } + .acf-google-map.-searching .title .acf-icon.-cancel, + .acf-google-map.-searching .title .acf-icon.-search { + display: inline-block; } + .acf-google-map.-searching .title .acf-actions { + display: block; } + .acf-google-map.-searching .title .search { + font-weight: normal !important; } + .acf-google-map.-loading .title a { + display: none !important; } + .acf-google-map.-loading .title i { + display: inline-block; } + +/* autocomplete */ +.pac-container { + border-width: 1px 0; + box-shadow: none; } + +.pac-container:after { + display: none; } + +.pac-container .pac-item:first-child { + border-top: 0 none; } + +.pac-container .pac-item { + padding: 5px 10px; + cursor: pointer; } + +html[dir="rtl"] .pac-container .pac-item { + text-align: right; } + +/*-------------------------------------------------------------------------- +* +* Relationship +* +*-------------------------------------------------------------------------*/ +.acf-relationship { + background: #fff; + /* filters (top) */ + /* list */ + /* selection (bottom) */ } + .acf-relationship .filters { + border: #DFDFDF solid 1px; + background: #fff; + /* widths */ } + .acf-relationship .filters:after { + display: block; + clear: both; + content: ""; } + .acf-relationship .filters .filter { + margin: 0; + padding: 0; + float: left; + width: 100%; + /* inner padding */ } + .acf-relationship .filters .filter span { + display: block; + padding: 7px 7px 7px 0; } + .acf-relationship .filters .filter:first-child span { + padding-left: 7px; } + .acf-relationship .filters .filter input, .acf-relationship .filters .filter select { + height: 28px; + line-height: 28px; + padding: 2px; + width: 100%; + margin: 0; + float: none; + /* potential fix for media popup? */ } + .acf-relationship .filters .filter input:focus, .acf-relationship .filters .filter input:active, .acf-relationship .filters .filter select:focus, .acf-relationship .filters .filter select:active { + outline: none; + box-shadow: none; } + .acf-relationship .filters .filter input { + border-color: transparent; + box-shadow: none; } + .acf-relationship .filters.-f2 .filter { + width: 50%; } + .acf-relationship .filters.-f3 .filter { + width: 25%; } + .acf-relationship .filters.-f3 .filter.-search { + width: 50%; } + .acf-relationship .list { + margin: 0; + padding: 5px; + height: 160px; + overflow: auto; } + .acf-relationship .list .acf-rel-label, + .acf-relationship .list .acf-rel-item, + .acf-relationship .list p { + padding: 5px 7px; + margin: 0; + display: block; + position: relative; + min-height: 18px; } + .acf-relationship .list .acf-rel-label { + font-weight: bold; } + .acf-relationship .list .acf-rel-item { + cursor: pointer; + /* hover */ + /* disabled */ } + .acf-relationship .list .acf-rel-item b { + text-decoration: underline; + font-weight: normal; } + .acf-relationship .list .acf-rel-item .thumbnail { + background: #e0e0e0; + width: 22px; + height: 22px; + float: left; + margin: -2px 5px 0 0; } + .acf-relationship .list .acf-rel-item .thumbnail img { + max-width: 22px; + max-height: 22px; + margin: 0 auto; + display: block; } + .acf-relationship .list .acf-rel-item .thumbnail.-icon { + background: #fff; } + .acf-relationship .list .acf-rel-item .thumbnail.-icon img { + max-height: 20px; + margin-top: 1px; } + .acf-relationship .list .acf-rel-item:hover { + background: #3875D7; + color: #fff; } + .acf-relationship .list .acf-rel-item:hover .thumbnail { + background: #a2bfec; } + .acf-relationship .list .acf-rel-item:hover .thumbnail.-icon { + background: #fff; } + .acf-relationship .list .acf-rel-item.disabled { + opacity: 0.5; } + .acf-relationship .list .acf-rel-item.disabled:hover { + background: transparent; + color: #333; + cursor: default; } + .acf-relationship .list .acf-rel-item.disabled:hover .thumbnail { + background: #e0e0e0; } + .acf-relationship .list .acf-rel-item.disabled:hover .thumbnail.-icon { + background: #fff; } + .acf-relationship .list ul { + padding-bottom: 5px; } + .acf-relationship .list ul .acf-rel-label, + .acf-relationship .list ul .acf-rel-item, + .acf-relationship .list ul p { + padding-left: 20px; } + .acf-relationship .selection { + border: #DFDFDF solid 1px; + position: relative; + margin-top: -1px; + /* choices */ + /* values */ } + .acf-relationship .selection:after { + display: block; + clear: both; + content: ""; } + .acf-relationship .selection .values, + .acf-relationship .selection .choices { + width: 50%; + background: #fff; + float: left; } + .acf-relationship .selection .choices { + background: #F9F9F9; } + .acf-relationship .selection .choices .list { + border-right: #DFDFDF solid 1px; } + .acf-relationship .selection .values .acf-icon { + position: absolute; + top: 4px; + right: 7px; + display: none; + /* rtl */ } + html[dir="rtl"] .acf-relationship .selection .values .acf-icon { + right: auto; + left: 7px; } + .acf-relationship .selection .values .acf-rel-item:hover .acf-icon { + display: block; } + .acf-relationship .selection .values .acf-rel-item { + cursor: move; } + .acf-relationship .selection .values .acf-rel-item b { + text-decoration: none; } + +/* menu item fix */ +.menu-item .acf-relationship ul { + width: auto; } + +.menu-item .acf-relationship li { + display: block; } + +/*-------------------------------------------------------------------------- +* +* WYSIWYG +* +*-------------------------------------------------------------------------*/ +.acf-editor-wrap.delay .acf-editor-toolbar { + content: ""; + display: block; + background: #f5f5f5; + border-bottom: #dddddd solid 1px; + color: #555d66; + padding: 10px; } + +.acf-editor-wrap.delay .wp-editor-area { + padding: 10px; + border: none; + color: inherit !important; } + +.acf-editor-wrap iframe { + min-height: 200px; } + +.acf-editor-wrap .wp-editor-container { + border: 1px solid #E5E5E5; + box-shadow: none !important; } + +.acf-editor-wrap .wp-editor-tabs { + box-sizing: content-box; } + +#mce_fullscreen_container { + z-index: 900000 !important; } + +/*--------------------------------------------------------------------------------------------- +* +* Tab +* +*---------------------------------------------------------------------------------------------*/ +.acf-field-tab { + display: none !important; } + +.hidden-by-tab { + display: none !important; } + +.acf-tab-wrap { + clear: both; + z-index: 1; } + +.acf-tab-group { + border-bottom: #ccc solid 1px; + padding: 10px 10px 0; } + .acf-tab-group li { + margin: 0 0.5em 0 0; } + .acf-tab-group li a { + padding: 5px 10px; + display: block; + color: #555; + font-size: 14px; + font-weight: 600; + line-height: 24px; + border: #ccc solid 1px; + border-bottom: 0 none; + text-decoration: none; + background: #e5e5e5; + transition: none; } + .acf-tab-group li a:hover { + background: #FFF; } + .acf-tab-group li a:focus { + outline: none; + box-shadow: none; } + .acf-tab-group li a:empty { + display: none; } + html[dir="rtl"] .acf-tab-group li { + margin: 0 0 0 0.5em; } + .acf-tab-group li.active a { + background: #F1F1F1; + color: #000; + padding-bottom: 6px; + margin-bottom: -1px; + position: relative; + z-index: 1; } + +.acf-fields > .acf-tab-wrap { + background: #F9F9F9; } + .acf-fields > .acf-tab-wrap .acf-tab-group { + position: relative; + z-index: 1; + margin-bottom: -1px; + border-top: #DFDFDF solid 1px; + border-bottom: #DFDFDF solid 1px; } + .acf-fields > .acf-tab-wrap .acf-tab-group li a { + background: #f1f1f1; } + .acf-fields > .acf-tab-wrap .acf-tab-group li a:hover { + background: #FFF; } + .acf-fields > .acf-tab-wrap .acf-tab-group li.active a { + background: #FFFFFF; } + .acf-fields > .acf-tab-wrap:first-child .acf-tab-group { + border-top: none; } + +.acf-fields.-left > .acf-tab-wrap .acf-tab-group { + padding-left: 20%; + /* mobile */ + /* rtl */ } + @media screen and (max-width: 640px) { + .acf-fields.-left > .acf-tab-wrap .acf-tab-group { + padding-left: 10px; } } + html[dir="rtl"] .acf-fields.-left > .acf-tab-wrap .acf-tab-group { + padding-left: 0; + padding-right: 20%; + /* mobile */ } + @media screen and (max-width: 850px) { + html[dir="rtl"] .acf-fields.-left > .acf-tab-wrap .acf-tab-group { + padding-right: 10px; } } + +.acf-tab-wrap.-left .acf-tab-group { + position: absolute; + left: 0; + width: 20%; + border: 0 none; + padding: 0 !important; + /* important overrides 'left aligned labels' */ + margin: 1px 0 0; } + .acf-tab-wrap.-left .acf-tab-group li { + float: none; + margin: -1px 0 0; } + .acf-tab-wrap.-left .acf-tab-group li a { + border: 1px solid #ededed; + font-size: 13px; + line-height: 18px; + color: #0073aa; + padding: 10px; + margin: 0; + font-weight: normal; + border-width: 1px 0; + border-radius: 0; + background: transparent; } + .acf-tab-wrap.-left .acf-tab-group li a:hover { + color: #00a0d2; } + .acf-tab-wrap.-left .acf-tab-group li.active a { + border-color: #DFDFDF; + color: #000; + margin-right: -1px; + background: #fff; } + html[dir="rtl"] .acf-tab-wrap.-left .acf-tab-group { + left: auto; + right: 0; } + html[dir="rtl"] .acf-tab-wrap.-left .acf-tab-group li.active a { + margin-right: 0; + margin-left: -1px; } + +.acf-field + .acf-tab-wrap.-left:before { + content: ""; + display: block; + position: relative; + z-index: 1; + height: 10px; + border-top: #DFDFDF solid 1px; + border-bottom: #DFDFDF solid 1px; + margin-bottom: -1px; } + +.acf-tab-wrap.-left:first-child .acf-tab-group li:first-child a { + border-top: none; } + +/* sidebar */ +.acf-fields.-sidebar { + padding: 0 0 0 20% !important; + position: relative; + /* before */ + /* rtl */ } + .acf-fields.-sidebar:before { + content: ""; + display: block; + position: absolute; + top: 0; + left: 0; + width: 20%; + bottom: 0; + border-right: #DFDFDF solid 1px; + background: #F9F9F9; + z-index: 1; } + html[dir="rtl"] .acf-fields.-sidebar { + padding: 0 20% 0 0 !important; } + html[dir="rtl"] .acf-fields.-sidebar:before { + border-left: #DFDFDF solid 1px; + border-right-width: 0; + left: auto; + right: 0; } + .acf-fields.-sidebar.-left { + padding: 0 0 0 180px !important; + /* rtl */ } + html[dir="rtl"] .acf-fields.-sidebar.-left { + padding: 0 180px 0 0 !important; } + .acf-fields.-sidebar.-left:before { + background: #F1F1F1; + border-color: #dfdfdf; + width: 180px; } + .acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group { + width: 180px; } + .acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group li a { + border-color: #e4e4e4; } + .acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group li.active a { + background: #F9F9F9; } + .acf-fields.-sidebar > .acf-field-tab + .acf-field { + border-top: none; } + +.acf-fields.-clear > .acf-tab-wrap { + background: transparent; } + .acf-fields.-clear > .acf-tab-wrap .acf-tab-group { + margin-top: 0; + border-top: none; + padding-left: 0; + padding-right: 0; } + .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a { + background: #e5e5e5; } + .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a:hover { + background: #fff; } + .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li.active a { + background: #f1f1f1; } + +/* seamless */ +.acf-postbox.seamless > .acf-fields.-sidebar { + margin-left: 0 !important; } + .acf-postbox.seamless > .acf-fields.-sidebar:before { + background: transparent; } + +.acf-postbox.seamless > .acf-fields > .acf-tab-wrap { + background: transparent; + margin-bottom: 10px; + padding-left: 12px; + padding-right: 12px; } + .acf-postbox.seamless > .acf-fields > .acf-tab-wrap .acf-tab-group { + border-top: 0 none; } + .acf-postbox.seamless > .acf-fields > .acf-tab-wrap .acf-tab-group li a { + background: #e5e5e5; } + .acf-postbox.seamless > .acf-fields > .acf-tab-wrap .acf-tab-group li a:hover { + background: #fff; } + .acf-postbox.seamless > .acf-fields > .acf-tab-wrap .acf-tab-group li.active a { + background: #f1f1f1; } + +.acf-postbox.seamless > .acf-fields > .acf-tab-wrap.-left:before { + border-top: none; + height: auto; } + +.acf-postbox.seamless > .acf-fields > .acf-tab-wrap.-left .acf-tab-group { + margin-bottom: 0; } + .acf-postbox.seamless > .acf-fields > .acf-tab-wrap.-left .acf-tab-group li a { + border-width: 1px 0 1px 1px !important; + border-color: #cccccc; + background: #e5e5e5; } + .acf-postbox.seamless > .acf-fields > .acf-tab-wrap.-left .acf-tab-group li.active a { + background: #f1f1f1; } + +.menu-edit .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a, +.widget .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a { + background: #f1f1f1; } + +.menu-edit .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a:hover, .menu-edit .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li.active a, +.widget .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a:hover, +.widget .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li.active a { + background: #fff; } + +.compat-item .acf-tab-wrap td { + display: block; } + +/* within gallery sidebar */ +.acf-gallery-side .acf-tab-wrap { + border-top: 0 none !important; } + +.acf-gallery-side .acf-tab-wrap .acf-tab-group { + margin: 10px 0 !important; + padding: 0 !important; } + +.acf-gallery-side .acf-tab-group li.active a { + background: #F9F9F9 !important; } + +/* withing widget */ +.widget .acf-tab-group { + border-bottom-color: #e8e8e8; } + +.widget .acf-tab-group li a { + background: #F1F1F1; } + +.widget .acf-tab-group li.active a { + background: #fff; } + +/* media popup (edit image) */ +.media-modal.acf-expanded .compat-attachment-fields > tbody > tr.acf-tab-wrap .acf-tab-group { + padding-left: 23%; + border-bottom-color: #DDDDDD; } + +/* table */ +.form-table > tbody > tr.acf-tab-wrap .acf-tab-group { + padding: 0 5px 0 210px; } + +/* rtl */ +html[dir="rtl"] .form-table > tbody > tr.acf-tab-wrap .acf-tab-group { + padding: 0 210px 0 5px; } + +/*-------------------------------------------------------------------------------------------- +* +* oembed +* +*--------------------------------------------------------------------------------------------*/ +.acf-oembed { + position: relative; + border: #DFDFDF solid 1px; + background: #fff; } + .acf-oembed .title { + position: relative; + border-bottom: #DFDFDF solid 1px; + padding: 5px 10px; } + .acf-oembed .title .input-search { + margin: 0; + font-size: 14px; + line-height: 30px; + height: 30px; + padding: 0; + border: 0 none; + box-shadow: none; + border-radius: 0; + font-family: inherit; + cursor: text; } + .acf-oembed .title .acf-actions { + padding: 6px; } + .acf-oembed .canvas { + position: relative; + min-height: 250px; + background: #F9F9F9; } + .acf-oembed .canvas .canvas-media { + position: relative; + z-index: 1; } + .acf-oembed .canvas iframe { + display: block; + margin: 0; + padding: 0; + width: 100%; } + .acf-oembed .canvas .acf-icon.-picture { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + z-index: 0; + height: 42px; + width: 42px; + font-size: 42px; + color: #999; } + .acf-oembed .canvas .acf-loading-overlay { + background: rgba(255, 255, 255, 0.9); } + .acf-oembed .canvas .canvas-error { + position: absolute; + top: 50%; + left: 0%; + right: 0%; + margin: -9px 0 0 0; + text-align: center; + display: none; } + .acf-oembed .canvas .canvas-error p { + padding: 8px; + margin: 0; + display: inline; } + .acf-oembed.has-value .canvas { + min-height: 50px; } + .acf-oembed.has-value .input-search { + font-weight: bold; } + .acf-oembed.has-value .title:hover .acf-actions { + display: block; } + +/*-------------------------------------------------------------------------------------------- +* +* Image +* +*--------------------------------------------------------------------------------------------*/ +.acf-image-uploader { + position: relative; + /* image wrap*/ + /* input */ + /* rtl */ } + .acf-image-uploader:after { + display: block; + clear: both; + content: ""; } + .acf-image-uploader p { + margin: 0; } + .acf-image-uploader .image-wrap { + position: relative; + float: left; + /* hover */ } + .acf-image-uploader .image-wrap img { + max-width: 100%; + width: auto; + height: auto; + display: block; + min-width: 30px; + min-height: 30px; + background: #f1f1f1; + margin: 0; + padding: 0; + /* svg */ } + .acf-image-uploader .image-wrap img[src$=".svg"] { + min-height: 100px; + min-width: 100px; } + .acf-image-uploader .image-wrap:hover .acf-actions { + display: block; } + .acf-image-uploader input.button { + width: auto; } + html[dir="rtl"] .acf-image-uploader .image-wrap { + float: right; } + +/*-------------------------------------------------------------------------------------------- +* +* File +* +*--------------------------------------------------------------------------------------------*/ +.acf-file-uploader { + position: relative; + /* hover */ + /* rtl */ } + .acf-file-uploader p { + margin: 0; } + .acf-file-uploader .file-wrap { + border: #DFDFDF solid 1px; + min-height: 84px; + position: relative; + background: #fff; } + .acf-file-uploader .file-icon { + position: absolute; + top: 0; + left: 0; + bottom: 0; + padding: 10px; + background: #F1F1F1; + border-right: #E5E5E5 solid 1px; } + .acf-file-uploader .file-icon img { + display: block; + padding: 0; + margin: 0; + max-width: 48px; } + .acf-file-uploader .file-info { + padding: 10px; + margin-left: 69px; } + .acf-file-uploader .file-info p { + margin: 0 0 2px; + font-size: 13px; + line-height: 1.4em; + word-break: break-all; } + .acf-file-uploader .file-info a { + text-decoration: none; } + .acf-file-uploader:hover .acf-actions { + display: block; } + html[dir="rtl"] .acf-file-uploader .file-icon { + left: auto; + right: 0; + border-left: #E5E5E5 solid 1px; + border-right: none; } + html[dir="rtl"] .acf-file-uploader .file-info { + margin-right: 69px; + margin-left: 0; } + +/*--------------------------------------------------------------------------------------------- +* +* Date Picker +* +*---------------------------------------------------------------------------------------------*/ +.acf-ui-datepicker .ui-datepicker { + z-index: 900000 !important; } + .acf-ui-datepicker .ui-datepicker .ui-widget-header a { + cursor: pointer; + transition: none; } + +/* fix highlight state overriding hover / active */ +.acf-ui-datepicker .ui-state-highlight.ui-state-hover { + border: 1px solid #98b7e8 !important; + background: #98b7e8 !important; + font-weight: normal !important; + color: #ffffff !important; } + +.acf-ui-datepicker .ui-state-highlight.ui-state-active { + border: 1px solid #3875d7 !important; + background: #3875d7 !important; + font-weight: normal !important; + color: #ffffff !important; } + +/*--------------------------------------------------------------------------------------------- +* +* Separator field +* +*---------------------------------------------------------------------------------------------*/ +.acf-field-separator { + /* fields */ } + .acf-field-separator .acf-label { + margin-bottom: 0; } + .acf-field-separator .acf-label label { + font-weight: normal; } + .acf-field-separator .acf-input { + display: none; } + .acf-fields > .acf-field-separator { + background: #f9f9f9; + border-bottom: 1px solid #dfdfdf; + border-top: 1px solid #dfdfdf; + margin-bottom: -1px; + z-index: 2; } + +/*--------------------------------------------------------------------------------------------- +* +* Taxonomy +* +*---------------------------------------------------------------------------------------------*/ +.acf-taxonomy-field { + position: relative; + /* hover */ + /* select */ } + .acf-taxonomy-field .categorychecklist-holder { + border: #DFDFDF solid 1px; + border-radius: 3px; + max-height: 200px; + overflow: auto; } + .acf-taxonomy-field .acf-checkbox-list { + margin: 0; + padding: 10px; } + .acf-taxonomy-field .acf-checkbox-list ul.children { + padding-left: 18px; } + .acf-taxonomy-field:hover .acf-actions { + display: block; } + .acf-taxonomy-field[data-ftype="select"] .acf-actions { + padding: 0; + margin: -9px; } + +/*--------------------------------------------------------------------------------------------- +* +* Range +* +*---------------------------------------------------------------------------------------------*/ +.acf-range-wrap { + /* rtl */ } + .acf-range-wrap .acf-append, + .acf-range-wrap .acf-prepend { + display: inline-block; + vertical-align: middle; + line-height: 28px; + margin: 0 7px 0 0; } + .acf-range-wrap .acf-append { + margin: 0 0 0 7px; } + .acf-range-wrap input[type="range"] { + display: inline-block; + padding: 0; + margin: 0; + vertical-align: middle; + height: 28px; } + .acf-range-wrap input[type="range"]:focus { + outline: none; } + .acf-range-wrap input[type="number"] { + display: inline-block; + min-width: 3em; + margin-left: 10px; + vertical-align: middle; } + html[dir="rtl"] .acf-range-wrap input[type="number"] { + margin-right: 10px; + margin-left: 0; } + html[dir="rtl"] .acf-range-wrap .acf-append { + margin: 0 7px 0 0; } + html[dir="rtl"] .acf-range-wrap .acf-prepend { + margin: 0 0 0 7px; } + +/*--------------------------------------------------------------------------------------------- +* +* acf-accordion +* +*---------------------------------------------------------------------------------------------*/ +.acf-accordion { + margin: 0; + padding: 0; + background: #fff; + /* title */ + /* open */ } + .acf-accordion .acf-accordion-title { + margin: 0; + padding: 12px; + font-weight: bold; + cursor: pointer; + font-size: inherit; + font-size: 13px; + line-height: 1.4em; } + .acf-accordion .acf-accordion-title label { + margin: 0; + padding: 0; + font-size: 13px; + line-height: 1.4em; } + .acf-accordion .acf-accordion-title p { + font-weight: normal; } + .acf-accordion .acf-accordion-title .acf-accordion-icon { + float: right; } + .acf-accordion .acf-accordion-content { + margin: 0; + padding: 0 12px 12px; + display: none; } + .acf-accordion.-open > .acf-accordion-content { + display: block; } + +/* field specific */ +.acf-field.acf-accordion { + padding: 0 !important; + border-color: #dfdfdf; } + .acf-field.acf-accordion .acf-accordion-title { + padding: 12px; + width: auto !important; + float: none !important; + width: auto !important; } + .acf-field.acf-accordion .acf-accordion-content { + padding: 0; + float: none !important; + width: auto !important; } + .acf-field.acf-accordion .acf-accordion-content > .acf-fields { + border-top: #EEEEEE solid 1px; } + .acf-field.acf-accordion .acf-accordion-content > .acf-fields.-clear { + padding: 0 12px 15px; } + +/* field specific (left) */ +.acf-fields.-left > .acf-field.acf-accordion { + padding: 0 !important; } + .acf-fields.-left > .acf-field.acf-accordion:before { + display: none; } + .acf-fields.-left > .acf-field.acf-accordion .acf-accordion-title { + width: auto; + margin: 0 !important; + padding: 12px; + float: none !important; } + .acf-fields.-left > .acf-field.acf-accordion .acf-accordion-content { + padding: 0 !important; } + +/* field specific (clear) */ +.acf-fields.-clear > .acf-field.acf-accordion { + border: #cccccc solid 1px; + background: transparent; } + .acf-fields.-clear > .acf-field.acf-accordion + .acf-field.acf-accordion { + margin-top: -16px; } + +/* table */ +tr.acf-field.acf-accordion { + background: transparent; } + tr.acf-field.acf-accordion > .acf-input { + padding: 0 !important; + border: #cccccc solid 1px; } + tr.acf-field.acf-accordion .acf-accordion-content { + padding: 0 12px 12px; } + +/* #addtag */ +#addtag div.acf-field.error { + border: 0 none; + padding: 8px 0; } + +#addtag > .acf-field.acf-accordion { + padding-right: 0; + margin-right: 5%; } + #addtag > .acf-field.acf-accordion + p.submit { + margin-top: 0; } + +/* border */ +tr.acf-accordion { + margin: 15px 0 !important; } + tr.acf-accordion + tr.acf-accordion { + margin-top: -16px !important; } + +/* seamless */ +.acf-postbox.seamless > .acf-fields > .acf-accordion { + margin-left: 12px !important; + margin-right: 12px !important; } + +/* rtl */ +/* menu item */ +/* +.menu-item-settings > .field-acf > .acf-field.acf-accordion { + border: #dfdfdf solid 1px; + margin: 10px -13px 10px -11px; + + + .acf-field.acf-accordion { + margin-top: -11px; + } +} +*/ +/* widget */ +.widget .widget-content > .acf-field.acf-accordion { + border: #dfdfdf solid 1px; + margin-bottom: 10px; } + .widget .widget-content > .acf-field.acf-accordion .acf-accordion-title { + margin-bottom: 0; } + .widget .widget-content > .acf-field.acf-accordion + .acf-field.acf-accordion { + margin-top: -11px; } + +.acf-postbox.seamless > .acf-fields > .acf-field.acf-accordion { + border: #e5e5e5 solid 1px; } + .acf-postbox.seamless > .acf-fields > .acf-field.acf-accordion + .acf-field.acf-accordion { + margin-top: -1px; } + +.media-modal .compat-attachment-fields .acf-field.acf-accordion + .acf-field.acf-accordion { + margin-top: -1px; } + +.media-modal .compat-attachment-fields .acf-field.acf-accordion > .acf-input { + width: 100%; } + +.media-modal .compat-attachment-fields .acf-field.acf-accordion .compat-attachment-fields > tbody > tr > td { + padding-bottom: 5px; } + +/*-------------------------------------------------------------------------------------------- +* +* User +* +*--------------------------------------------------------------------------------------------*/ +.form-table > tbody { + /* field */ + /* tab wrap */ + /* misc */ } + .form-table > tbody > .acf-field { + /* label */ + /* input */ } + .form-table > tbody > .acf-field > .acf-label { + padding: 20px 10px 20px 0; + width: 210px; + /* rtl */ } + html[dir="rtl"] .form-table > tbody > .acf-field > .acf-label { + padding: 20px 0 20px 10px; } + .form-table > tbody > .acf-field > .acf-label label { + font-size: 14px; + color: #23282d; } + .form-table > tbody > .acf-field > .acf-input { + padding: 15px 10px; + /* rtl */ } + html[dir="rtl"] .form-table > tbody > .acf-field > .acf-input { + padding: 15px 10px 15px 5%; } + .form-table > tbody > .acf-tab-wrap td { + padding: 15px 5% 15px 0; + /* rtl */ } + html[dir="rtl"] .form-table > tbody > .acf-tab-wrap td { + padding: 15px 0 15px 5%; } + .form-table > tbody .form-table th.acf-th { + width: auto; } + +#your-profile, +#createuser { + /* override for user css */ + /* allow sub fields to display correctly */ } + #your-profile .acf-field input[type="text"], + #your-profile .acf-field input[type="password"], + #your-profile .acf-field input[type="number"], + #your-profile .acf-field input[type="search"], + #your-profile .acf-field input[type="email"], + #your-profile .acf-field input[type="url"], + #your-profile .acf-field select, + #createuser .acf-field input[type="text"], + #createuser .acf-field input[type="password"], + #createuser .acf-field input[type="number"], + #createuser .acf-field input[type="search"], + #createuser .acf-field input[type="email"], + #createuser .acf-field input[type="url"], + #createuser .acf-field select { + max-width: 25em; } + #your-profile .acf-field textarea, + #createuser .acf-field textarea { + max-width: 500px; } + #your-profile .acf-field .acf-field input[type="text"], + #your-profile .acf-field .acf-field input[type="password"], + #your-profile .acf-field .acf-field input[type="number"], + #your-profile .acf-field .acf-field input[type="search"], + #your-profile .acf-field .acf-field input[type="email"], + #your-profile .acf-field .acf-field input[type="url"], + #your-profile .acf-field .acf-field textarea, + #your-profile .acf-field .acf-field select, + #createuser .acf-field .acf-field input[type="text"], + #createuser .acf-field .acf-field input[type="password"], + #createuser .acf-field .acf-field input[type="number"], + #createuser .acf-field .acf-field input[type="search"], + #createuser .acf-field .acf-field input[type="email"], + #createuser .acf-field .acf-field input[type="url"], + #createuser .acf-field .acf-field textarea, + #createuser .acf-field .acf-field select { + max-width: none; } + +#registerform h2 { + margin: 1em 0; } + +#registerform .acf-field { + margin-top: 0; + /* + .acf-input { + input { + font-size: 24px; + padding: 5px; + height: auto; + } + } +*/ } + #registerform .acf-field .acf-label { + margin-bottom: 0; } + #registerform .acf-field .acf-label label { + font-weight: normal; + line-height: 1.5; } + +#registerform p.submit { + text-align: right; } + +/*-------------------------------------------------------------------------------------------- +* +* Term +* +*--------------------------------------------------------------------------------------------*/ +#acf-term-fields { + padding-right: 5%; } + #acf-term-fields > .acf-field > .acf-label { + margin: 0; } + #acf-term-fields > .acf-field > .acf-label label { + font-size: 12px; + font-weight: normal; } + +p.submit .spinner, +p.submit .acf-spinner { + vertical-align: top; + float: none; + margin: 4px 4px 0; } + +#edittag .acf-fields.-left > .acf-field { + padding-left: 220px; } + #edittag .acf-fields.-left > .acf-field:before { + width: 209px; } + #edittag .acf-fields.-left > .acf-field > .acf-label { + width: 220px; + margin-left: -220px; + padding: 0 10px; } + #edittag .acf-fields.-left > .acf-field > .acf-input { + padding: 0; } + +#edittag > .acf-fields.-left { + width: 96%; } + #edittag > .acf-fields.-left > .acf-field > .acf-label { + padding-left: 0; } + +/*-------------------------------------------------------------------------------------------- +* +* Comment +* +*--------------------------------------------------------------------------------------------*/ +.editcomment td:first-child { + white-space: nowrap; + width: 131px; } + +/*-------------------------------------------------------------------------------------------- +* +* Widget +* +*--------------------------------------------------------------------------------------------*/ +#widgets-right .widget .acf-field .description { + padding-left: 0; + padding-right: 0; } + +.acf-widget-fields > .acf-field .acf-label { + margin-bottom: 5px; } + .acf-widget-fields > .acf-field .acf-label label { + font-weight: normal; + margin: 0; } + +/*-------------------------------------------------------------------------------------------- +* +* Nav Menu +* +*--------------------------------------------------------------------------------------------*/ +.acf-menu-settings { + border-top: 1px solid #eee; + margin-top: 2em; } + .acf-menu-settings.-seamless { + border-top: none; + margin-top: 15px; } + .acf-menu-settings.-seamless > h2 { + display: none; } + .acf-menu-settings .list li { + display: block; + margin-bottom: 0; } + +.acf-menu-item-fields { + margin-right: 10px; + float: left; } + +/*--------------------------------------------------------------------------------------------- +* +* Attachment Form (single) +* +*---------------------------------------------------------------------------------------------*/ +#post .compat-attachment-fields .compat-field-acf-form-data { + display: none; } + +#post .compat-attachment-fields, +#post .compat-attachment-fields > tbody, +#post .compat-attachment-fields > tbody > tr, +#post .compat-attachment-fields > tbody > tr > th, +#post .compat-attachment-fields > tbody > tr > td { + display: block; } + +#post .compat-attachment-fields > tbody > .acf-field { + margin: 15px 0; } + #post .compat-attachment-fields > tbody > .acf-field > .acf-label { + margin: 0; } + #post .compat-attachment-fields > tbody > .acf-field > .acf-label label { + margin: 0; + padding: 0; } + #post .compat-attachment-fields > tbody > .acf-field > .acf-label label p { + margin: 0 0 3px !important; } + #post .compat-attachment-fields > tbody > .acf-field > .acf-input { + margin: 0; } + +/*--------------------------------------------------------------------------------------------- +* +* Media Model +* +*---------------------------------------------------------------------------------------------*/ +/* WP sets tables to act as divs. ACF uses tables, so these muct be reset */ +.media-modal .compat-attachment-fields td.acf-input table { + display: table; + table-layout: auto; } + .media-modal .compat-attachment-fields td.acf-input table tbody { + display: table-row-group; } + .media-modal .compat-attachment-fields td.acf-input table tr { + display: table-row; } + .media-modal .compat-attachment-fields td.acf-input table td, .media-modal .compat-attachment-fields td.acf-input table th { + display: table-cell; } + +/* field widths floats */ +.media-modal .compat-attachment-fields > tbody > .acf-field { + margin: 5px 0; } + .media-modal .compat-attachment-fields > tbody > .acf-field > .acf-label { + min-width: 30%; + margin: 0; + padding: 0; + float: left; + text-align: right; + display: block; + float: left; } + .media-modal .compat-attachment-fields > tbody > .acf-field > .acf-label > label { + padding-top: 6px; + margin: 0; + color: #666666; + font-weight: 400; + line-height: 16px; } + .media-modal .compat-attachment-fields > tbody > .acf-field > .acf-input { + width: 65%; + margin: 0; + padding: 0; + float: right; + display: block; } + .media-modal .compat-attachment-fields > tbody > .acf-field p.description { + margin: 0; } + +/* restricted selection (copy of WP .upload-errors)*/ +.acf-selection-error { + background: #ffebe8; + border: 1px solid #c00; + border-radius: 3px; + padding: 8px; + margin: 20px 0 0; } + .acf-selection-error .selection-error-label { + background: #CC0000; + border-radius: 3px; + color: #fff; + font-weight: bold; + margin-right: 8px; + padding: 2px 4px; } + .acf-selection-error .selection-error-message { + color: #b44; + display: block; + padding-top: 8px; + word-wrap: break-word; + white-space: pre-wrap; } + +/* disabled attachment */ +.media-modal .attachment.acf-disabled .thumbnail { + opacity: 0.25 !important; } + +.media-modal .attachment.acf-disabled .attachment-preview:before { + background: rgba(0, 0, 0, 0.15); + z-index: 1; + position: relative; } + +/* misc */ +.media-modal { + /* compat-item */ + /* allow line breaks in upload error */ + /* fix required span */ + /* sidebar */ + /* mobile md */ } + .media-modal .compat-field-acf-form-data, + .media-modal .compat-field-acf-blank { + display: none !important; } + .media-modal .upload-error-message { + white-space: pre-wrap; } + .media-modal .acf-required { + padding: 0 !important; + margin: 0 !important; + float: none !important; + color: #f00 !important; } + .media-modal .media-sidebar .compat-item { + padding-bottom: 20px; } + @media (max-width: 900px) { + .media-modal { + /* label */ + /* field */ } + .media-modal .setting span, + .media-modal .compat-attachment-fields > tbody > .acf-field > .acf-label { + width: 98%; + float: none; + text-align: left; + min-height: 0; + padding: 0; } + .media-modal .setting input, + .media-modal .setting textarea, + .media-modal .compat-attachment-fields > tbody > .acf-field > .acf-input { + float: none; + height: auto; + max-width: none; + width: 98%; } } + +/*--------------------------------------------------------------------------------------------- +* +* Media Model (expand details) +* +*---------------------------------------------------------------------------------------------*/ +.media-modal .acf-expand-details { + float: right; + padding: 1px 10px; + margin-right: 6px; + height: 18px; + line-height: 18px; + color: #AAAAAA; + font-size: 12px; + /* mobile sm */ } + .media-modal .acf-expand-details:focus, .media-modal .acf-expand-details:active { + outline: 0 none; + box-shadow: none; + color: #AAAAAA; } + .media-modal .acf-expand-details:hover { + color: #666666 !important; } + .media-modal .acf-expand-details span { + display: block; + float: left; } + .media-modal .acf-expand-details .acf-icon { + margin: 0 4px 0 0; } + .media-modal .acf-expand-details:hover .acf-icon { + border-color: #AAAAAA; } + .media-modal .acf-expand-details .is-open { + display: none; } + .media-modal .acf-expand-details .is-closed { + display: block; } + @media (max-width: 640px) { + .media-modal .acf-expand-details { + display: none; } } + +/* expanded */ +.media-modal.acf-expanded { + /* toggle */ } + .media-modal.acf-expanded .acf-expand-details .is-open { + display: block; } + .media-modal.acf-expanded .acf-expand-details .is-closed { + display: none; } + .media-modal.acf-expanded .attachments-browser .media-toolbar, + .media-modal.acf-expanded .attachments-browser .attachments { + right: 740px; } + .media-modal.acf-expanded .media-sidebar { + width: 708px; } + .media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail { + float: left; + max-height: none; } + .media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail img { + max-width: 100%; + max-height: 200px; } + .media-modal.acf-expanded .media-sidebar .attachment-info .details { + float: right; } + .media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail, + .media-modal.acf-expanded .media-sidebar .attachment-details .setting span, + .media-modal.acf-expanded .media-sidebar .compat-attachment-fields > tbody > .acf-field > .acf-label { + min-width: 20%; + margin-right: 0; } + .media-modal.acf-expanded .media-sidebar .attachment-info .details, + .media-modal.acf-expanded .media-sidebar .attachment-details .setting input, + .media-modal.acf-expanded .media-sidebar .attachment-details .setting textarea, + .media-modal.acf-expanded .media-sidebar .attachment-details .setting + .description, + .media-modal.acf-expanded .media-sidebar .compat-attachment-fields > tbody > .acf-field > .acf-input { + min-width: 77%; } + @media (max-width: 900px) { + .media-modal.acf-expanded .attachments-browser .media-toolbar { + display: none; } + .media-modal.acf-expanded .attachments { + display: none; } + .media-modal.acf-expanded .media-sidebar { + width: auto; + max-width: none !important; + bottom: 0 !important; } + .media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail { + min-width: 0; + max-width: none; + width: 30%; } + .media-modal.acf-expanded .media-sidebar .attachment-info .details { + min-width: 0; + max-width: none; + width: 67%; } } + @media (max-width: 640px) { + .media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail, .media-modal.acf-expanded .media-sidebar .attachment-info .details { + width: 100%; } } + +/*--------------------------------------------------------------------------------------------- +* +* ACF Media Model +* +*---------------------------------------------------------------------------------------------*/ +.acf-media-modal { + /* hide embed settings */ } + .acf-media-modal .media-embed .setting.align, + .acf-media-modal .media-embed .setting.link-to { + display: none; } + @media screen and (min-width: 1024px) { + .acf-media-modal .media-modal-content .media-frame .media-toolbar-secondary { + max-width: none; } + .acf-media-modal .media-modal-content .media-frame .media-toolbar-secondary select.attachment-filters { + width: auto; + min-width: 150px; + max-width: none; + margin: 11px 6px 0 0; + vertical-align: middle; } } + +/*--------------------------------------------------------------------------------------------- +* +* ACF Media Model (Select Mode) +* +*---------------------------------------------------------------------------------------------*/ +/*--------------------------------------------------------------------------------------------- +* +* ACF Media Model (Edit Mode) +* +*---------------------------------------------------------------------------------------------*/ +.acf-media-modal.-edit { + /* resize modal */ + left: 15%; + right: 15%; + top: 100px; + bottom: 100px; + /* hide elements */ + /* full width */ + /* tidy up incorrect distance */ + /* title box shadow (to match media grid) */ + /* sidebar */ + /* mobile md */ + /* mobile sm */ } + .acf-media-modal.-edit .media-frame-menu, + .acf-media-modal.-edit .media-frame-router, + .acf-media-modal.-edit .media-frame-content .attachments, + .acf-media-modal.-edit .media-frame-content .media-toolbar { + display: none; } + .acf-media-modal.-edit .media-frame-title, + .acf-media-modal.-edit .media-frame-content, + .acf-media-modal.-edit .media-frame-toolbar, + .acf-media-modal.-edit .media-sidebar { + width: auto; + left: 0; + right: 0; } + .acf-media-modal.-edit .media-frame-content { + top: 50px; } + .acf-media-modal.-edit .media-frame-title { + border-bottom: 1px solid #DFDFDF; + box-shadow: 0 4px 4px -4px rgba(0, 0, 0, 0.1); } + .acf-media-modal.-edit .media-sidebar { + padding: 0 16px; + /* WP details */ + /* ACF fields */ + /* WP required message */ } + .acf-media-modal.-edit .media-sidebar .attachment-details { + overflow: visible; + /* hide 'Attachment Details' heading */ + /* remove overflow */ + /* move thumbnail */ } + .acf-media-modal.-edit .media-sidebar .attachment-details > h3, .acf-media-modal.-edit .media-sidebar .attachment-details > h2 { + display: none; } + .acf-media-modal.-edit .media-sidebar .attachment-details .attachment-info { + background: #fff; + border-bottom: #dddddd solid 1px; + padding: 16px; + margin: 0 -16px 16px; } + .acf-media-modal.-edit .media-sidebar .attachment-details .thumbnail { + margin: 0 16px 0 0; } + .acf-media-modal.-edit .media-sidebar .attachment-details .setting { + margin: 0 0 5px; } + .acf-media-modal.-edit .media-sidebar .attachment-details .setting span { + margin: 0; } + .acf-media-modal.-edit .media-sidebar .compat-attachment-fields > tbody > .acf-field { + margin: 0 0 5px; } + .acf-media-modal.-edit .media-sidebar .compat-attachment-fields > tbody > .acf-field p.description { + margin-top: 3px; } + .acf-media-modal.-edit .media-sidebar .media-types-required-info { + display: none; } + @media (max-width: 900px) { + .acf-media-modal.-edit { + top: 30px; + right: 30px; + bottom: 30px; + left: 30px; } } + @media (max-width: 640px) { + .acf-media-modal.-edit { + top: 0; + right: 0; + bottom: 0; + left: 0; } } + @media (max-width: 480px) { + .acf-media-modal.-edit .media-frame-content { + top: 40px; } } + +/*-------------------------------------------------------------------------------------------- +* +* Confirm remove +* +*--------------------------------------------------------------------------------------------*/ +.acf-temp-remove { + position: relative; + opacity: 1; + -webkit-transition: all 0.25s ease; + -moz-transition: all 0.25s ease; + -o-transition: all 0.25s ease; + transition: all 0.25s ease; + overflow: hidden; + /* overlay prevents hover */ } + .acf-temp-remove:after { + display: block; + content: ""; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 99; } + +/*-------------------------------------------------------------------------- +* +* Conditional Logic +* +*-------------------------------------------------------------------------*/ +/* Hide */ +.hidden-by-conditional-logic { + display: none !important; } + +/* Hide (appear empty) */ +.hidden-by-conditional-logic.appear-empty { + display: table-cell !important; } + +.hidden-by-conditional-logic.appear-empty .acf-input { + display: none !important; } + +/*-------------------------------------------------------------------------- +* +* 3rd Party +* +*-------------------------------------------------------------------------*/ +/* Tabify shows hidden postboxes */ +.acf-postbox.acf-hidden { + display: none !important; } + +#editor .edit-post-layout__metaboxes { + padding: 0; } + +#editor .postbox { + color: #444; } + #editor .postbox .handlediv { + color: #191e23 !important; + height: 46px; + width: auto; + padding: 0 14px 0 5px; + position: relative; + z-index: 2; } + #editor .postbox .hndle { + color: #191e23 !important; + font-size: 13px; + line-height: normal; + padding: 15px; } + #editor .postbox .hndle:hover { + background: #f2f4f5; } + #editor .postbox .hndle .acf-hndle-cog { + line-height: 16px; } + #editor .postbox .handlediv .toggle-indicator { + color: inherit; } + #editor .postbox .handlediv .toggle-indicator:before { + content: "\f343"; + font-size: 18px; + width: auto; } + #editor .postbox.closed .handlediv .toggle-indicator:before { + content: "\f347"; } diff --git a/assets/js/acf-input.js b/assets/js/acf-input.js index e64fca55..27398149 100644 --- a/assets/js/acf-input.js +++ b/assets/js/acf-input.js @@ -4481,8 +4481,12 @@ */ val: function( val ){ + + // Set. if( val !== undefined ) { return this.setValue( val ); + + // Get. } else { return this.prop('disabled') ? null : this.getValue(); } @@ -5632,18 +5636,19 @@ onChange: function( e, $el ){ - // vars + // Vars. var checked = $el.prop('checked'); + var $label = $el.parent('label'); var $toggle = this.$toggle(); - // selected + // Add or remove "selected" class. if( checked ) { - $el.parent().addClass('selected'); + $label.addClass('selected'); } else { - $el.parent().removeClass('selected'); + $label.removeClass('selected'); } - // determine if all inputs are checked + // Update toggle state if all inputs are checked. if( $toggle.length ) { var $inputs = this.$inputs(); @@ -5662,9 +5667,21 @@ }, onClickToggle: function( e, $el ){ + + // Vars. var checked = $el.prop('checked'); - var $inputs = this.$inputs(); + var $inputs = this.$('input[type="checkbox"]'); + var $labels = this.$('label'); + + // Update "checked" state. $inputs.prop('checked', checked); + + // Add or remove "selected" class. + if( checked ) { + $labels.addClass('selected'); + } else { + $labels.removeClass('selected'); + } }, onClickCustom: function( e, $el ){ @@ -6017,7 +6034,7 @@ (function($, undefined){ var Field = acf.Field.extend({ - + type: 'google_map', map: false, @@ -6032,17 +6049,13 @@ 'keyup .search': 'onKeyupSearch', 'focus .search': 'onFocusSearch', 'blur .search': 'onBlurSearch', - 'showField': 'onShow' + 'showField': 'onShow', }, $control: function(){ return this.$('.acf-google-map'); }, - $input: function( name ){ - return this.$('input[data-name="' + (name || 'address') + '"]'); - }, - $search: function(){ return this.$('.search'); }, @@ -6051,122 +6064,117 @@ return this.$('.canvas'); }, - addClass: function( name ){ - this.$control().addClass( name ); - }, - - removeClass: function( name ){ - this.$control().removeClass( name ); - }, - - getValue: function(){ - - // defaults - var val = { - lat: '', - lng: '', - address: '' - }; + setState: function( state ){ - // loop - this.$('input[type="hidden"]').each(function(){ - val[ $(this).data('name') ] = $(this).val(); - }); + // Remove previous state classes. + this.$control().removeClass( '-value -loading -searching' ); - // return false if no lat/lng - if( !val.lat || !val.lng ) { - val = false; + // Determine auto state based of current value. + if( state === 'default' ) { + state = this.val() ? 'value' : ''; } - // return - return val; + // Update state class. + if( state ) { + this.$control().addClass( '-' + state ); + } }, - setValue: function( val ){ - - // defaults - val = acf.parseArgs(val, { - lat: '', - lng: '', - address: '' - }); + getValue: function(){ + var val = this.$input().val(); + if( val ) { + return JSON.parse( val ) + } else { + return false; + } + }, + + setValue: function( val, silent ){ - // loop - for( var name in val ) { - acf.val( this.$input(name), val[name] ); + // Convert input value. + var valAttr = ''; + if( val ) { + valAttr = JSON.stringify( val ); } - // return false if no lat/lng - if( !val.lat || !val.lng ) { - val = false; + // Update input. + this.$input().val( valAttr ); + + // Bail early if silent update. + if( silent ) { + return; } - // render + // Render. this.renderVal( val ); - // action - var latLng = this.newLatLng( val.lat, val.lng ); - acf.doAction('google_map_change', latLng, this.map, this); + /** + * Fires immediately after the value has changed. + * + * @date 12/02/2014 + * @since 5.0.0 + * + * @param object|string val The new value. + * @param object map The Google Map isntance. + * @param object field The field instance. + */ + acf.doAction('google_map_change', val, this.map, this); }, renderVal: function( val ){ - // has value - if( val ) { - this.addClass('-value'); - this.setPosition( val.lat, val.lng ); - this.map.marker.setVisible( true ); - - // no value - } else { - this.removeClass('-value'); - this.map.marker.setVisible( false ); - } - - // search - this.$search().val( val.address ); + // Value. + if( val ) { + this.setState( 'value' ); + this.$search().val( val.address ); + this.setPosition( val.lat, val.lng ); + + // No value. + } else { + this.setState( '' ); + this.$search().val( '' ); + this.map.marker.setVisible( false ); + } + }, + + newLatLng: function( lat, lng ){ + return new google.maps.LatLng( parseFloat(lat), parseFloat(lng) ); }, setPosition: function( lat, lng ){ - // vars - var latLng = this.newLatLng( lat, lng ); - - // update marker - this.map.marker.setPosition( latLng ); + // Update marker position. + this.map.marker.setPosition({ + lat: parseFloat(lat), + lng: parseFloat(lng) + }); - // show marker + // Show marker. this.map.marker.setVisible( true ); - // center + // Center map. this.center(); - - // return - return this; }, center: function(){ - // vars + // Find marker position. var position = this.map.marker.getPosition(); - var lat = this.get('lat'); - var lng = this.get('lng'); - - // if marker exists, center on the marker if( position ) { - lat = position.lat(); - lng = position.lng(); + var lat = position.lat(); + var lng = position.lng(); + + // Or find default settings. + } else { + var lat = this.get('lat'); + var lng = this.get('lng'); } - // latlng - var latLng = this.newLatLng( lat, lng ); - - // set center of map - this.map.setCenter( latLng ); - }, - - getSearchVal: function(){ - return this.$search().val(); + // Center map. + this.map.setCenter({ + lat: parseFloat(lat), + lng: parseFloat(lng) + }); }, initialize: function(){ @@ -6175,22 +6183,22 @@ withAPI( this.initializeMap.bind(this) ); }, - newLatLng: function( lat, lng ){ - return new google.maps.LatLng( parseFloat(lat), parseFloat(lng) ); - }, - initializeMap: function(){ - // vars + // Vars. var zoom = this.get('zoom'); var lat = this.get('lat'); var lng = this.get('lng'); + var val = this.val(); // Create Map. var mapArgs = { scrollwheel: false, - zoom: parseInt( zoom ), - center: this.newLatLng(lat, lng), + zoom: parseInt( val.zoom || zoom ), + center: { + lat: parseFloat( val.lat || lat ), + lng: parseFloat( val.lng || lng ) + }, mapTypeId: google.maps.MapTypeId.ROADMAP, marker: { draggable: true, @@ -6228,283 +6236,323 @@ map.autocomplete = autocomplete; this.map = map; - // action for 3rd party customization - acf.doAction('google_map_init', map, marker, this); - - // set position + // Set position. var val = this.getValue(); - this.renderVal( val ); + if( val ) { + this.setPosition( val.lat, val.lng ); + } + + /** + * Fires immediately after the Google Map has been initialized. + * + * @date 12/02/2014 + * @since 5.0.0 + * + * @param object map The Google Map isntance. + * @param object marker The Google Map marker isntance. + * @param object field The field instance. + */ + acf.doAction('google_map_init', map, marker, this); }, addMapEvents: function( field, map, marker, autocomplete ){ // Click map. google.maps.event.addListener( map, 'click', function( e ) { - - // vars var lat = e.latLng.lat(); var lng = e.latLng.lng(); - - // search field.searchPosition( lat, lng ); }); // Drag marker. google.maps.event.addListener( marker, 'dragend', function(){ - - // vars - var position = this.getPosition(); - var lat = position.lat(); - var lng = position.lng(); - - // search + var lat = this.getPosition().lat(); + var lng = this.getPosition().lng(); field.searchPosition( lat, lng ); }); // Autocomplete search. if( autocomplete ) { - - // autocomplete event place_changed is triggered each time the input changes - // customize the place object with the current "search value" to allow users controll over the address text google.maps.event.addListener(autocomplete, 'place_changed', function() { var place = this.getPlace(); - place.address = field.getSearchVal(); - field.setPlace( place ); + field.searchPlace( place ); }); } + + // Detect zoom change. + google.maps.event.addListener( map, 'zoom_changed', function(){ + var val = field.val(); + if( val ) { + val.zoom = map.getZoom(); + field.setValue( val, true ); + } + }); }, searchPosition: function( lat, lng ){ + //console.log('searchPosition', lat, lng ); - // vars - var latLng = this.newLatLng( lat, lng ); - var $wrap = this.$control(); + // Start Loading. + this.setState( 'loading' ); - // set position - this.setPosition( lat, lng ); - - // add class - $wrap.addClass('-loading'); - - // callback - var callback = $.proxy(function( results, status ){ + // Query Geocoder. + var latLng = { lat: lat, lng: lng }; + geocoder.geocode({ location: latLng }, function( results, status ){ + //console.log('searchPosition', arguments ); - // remove class - $wrap.removeClass('-loading'); + // End Loading. + this.setState( '' ); - // vars - var address = ''; - - // validate - if( status != google.maps.GeocoderStatus.OK ) { - console.log('Geocoder failed due to: ' + status); - } else if( !results[0] ) { - console.log('No results found'); + // Status failure. + if( status !== 'OK' ) { + this.showNotice({ + text: acf.__('Location not found: %s').replace('%s', status), + type: 'warning' + }); + + // Success. } else { - address = results[0].formatted_address; + var val = this.parseResult( results[0] ); + + // Update value. + this.val( val ); } - - // update val - this.val({ - lat: lat, - lng: lng, - address: address - }); - - }, this); - - // query - geocoder.geocode({ 'latLng' : latLng }, callback); + + }.bind( this )); }, - setPlace: function( place ){ + searchPlace: function( place ){ + //console.log('searchPlace', place ); - // bail if no place - if( !place ) return this; - - // search name if no geometry - // - possible when hitting enter in search address - if( place.name && !place.geometry ) { - this.searchAddress(place.name); - return this; + // Ignore empty search. + if( !place || !place.name ) { + return; } - // vars - var lat = place.geometry.location.lat(); - var lng = place.geometry.location.lng(); - var address = place.address || place.formatted_address; + // No geometry (Custom address search). + if( !place.geometry ) { + return this.searchAddress( place.name ); + } - // update - this.setValue({ - lat: lat, - lng: lng, - address: address - }); + // Parse place. + var val = this.parseResult( place ); - // return - return this; + // Update value. + this.val( val ); }, searchAddress: function( address ){ + //console.log('searchAddress', address ); - // is address latLng? + // Bail early if no address. + if( !address ) { + return; + } + + // Allow "lat,lng" search. var latLng = address.split(','); if( latLng.length == 2 ) { - - // vars - var lat = latLng[0]; - var lng = latLng[1]; - - // check - if( $.isNumeric(lat) && $.isNumeric(lng) ) { + var lat = parseFloat(latLng[0]); + var lng = parseFloat(latLng[1]); + if( lat && lng ) { return this.searchPosition( lat, lng ); } } - // vars - var $wrap = this.$control(); - - // add class - $wrap.addClass('-loading'); + // Start Loading. + this.setState( 'loading' ); - // callback - var callback = this.proxy(function( results, status ){ - - // remove class - $wrap.removeClass('-loading'); + // Query Geocoder. + geocoder.geocode({ address: address }, function( results, status ){ + //console.log('searchPosition', arguments ); - // vars - var lat = ''; - var lng = ''; + // End Loading. + this.setState( '' ); - // validate - if( status != google.maps.GeocoderStatus.OK ) { - console.log('Geocoder failed due to: ' + status); - } else if( !results[0] ) { - console.log('No results found'); + // Status failure. + if( status !== 'OK' ) { + this.showNotice({ + text: acf.__('Location not found: %s').replace('%s', status), + type: 'warning' + }); + + // Success. } else { - lat = results[0].geometry.location.lat(); - lng = results[0].geometry.location.lng(); - //address = results[0].formatted_address; + var val = this.parseResult( results[0] ); + + // Override address data with parameter allowing custom address to be defined in search. + val.address = address; + + // Update value. + this.val( val ); } - - // update val - this.val({ - lat: lat, - lng: lng, - address: address - }); - - //acf.doAction('google_map_geocode_results', results, status, this.$el, this); - - }); - - // query - geocoder.geocode({ 'address' : address }, callback); + + }.bind( this )); }, searchLocation: function(){ + //console.log('searchLocation' ); - // Try HTML5 geolocation + // Check HTML5 geolocation. if( !navigator.geolocation ) { return alert( acf.__('Sorry, this browser does not support geolocation') ); } - // vars - var $wrap = this.$control(); + // Start Loading. + this.setState( 'loading' ); - // add class - $wrap.addClass('-loading'); - - // callback - var onSuccess = $.proxy(function( results, status ){ - - // remove class - $wrap.removeClass('-loading'); - - // vars - var lat = results.coords.latitude; - var lng = results.coords.longitude; - - // search; - this.searchPosition( lat, lng ); + // Query Geolocation. + navigator.geolocation.getCurrentPosition( - }, this); - - var onFailure = function( error ){ - $wrap.removeClass('-loading'); - } - - // try query - navigator.geolocation.getCurrentPosition( onSuccess, onFailure ); + // Success. + function( results ){ + + // End Loading. + this.setState( '' ); + + // Search position. + var lat = results.coords.latitude; + var lng = results.coords.longitude; + this.searchPosition( lat, lng ); + + }.bind(this), + + // Failure. + function( error ){ + this.setState( '' ); + }.bind(this) + ); }, - onClickClear: function( e, $el ){ + /** + * parseResult + * + * Returns location data for the given GeocoderResult object. + * + * @date 15/10/19 + * @since 5.8.6 + * + * @param object obj A GeocoderResult object. + * @return object + */ + parseResult: function( obj ) { + + // Construct basic data. + var result = { + address: obj.formatted_address, + lat: obj.geometry.location.lat(), + lng: obj.geometry.location.lng(), + }; + + // Add zoom level. + result.zoom = this.map.getZoom(); + + // Add place ID. + if( obj.place_id ) { + result.place_id = obj.place_id; + } + + // Create search map for address component data. + var map = { + street_number: [ 'street_number' ], + street_name: [ 'street_address', 'route' ], + city: [ 'locality' ], + state: [ + 'administrative_area_level_1', + 'administrative_area_level_2', + 'administrative_area_level_3', + 'administrative_area_level_4', + 'administrative_area_level_5' + ], + post_code: [ 'postal_code' ], + country: [ 'country' ] + }; + + // Loop over map. + for( var k in map ) { + var keywords = map[ k ]; + + // Loop over address components. + for( var i = 0; i < obj.address_components.length; i++ ) { + var component = obj.address_components[ i ]; + var component_type = component.types[0]; + + // Look for matching component type. + if( keywords.indexOf(component_type) !== -1 ) { + + // Append to result. + result[ k ] = component.long_name; + + // Append short version. + if( component.long_name !== component.short_name ) { + result[ k + '_short' ] = component.short_name; + } + } + } + } + + /** + * Filters the parsed result. + * + * @date 18/10/19 + * @since 5.8.6 + * + * @param object result The parsed result value. + * @param object obj The GeocoderResult object. + */ + return acf.applyFilters('google_map_result', result, obj, this.map, this); + }, + + onClickClear: function(){ this.val( false ); }, - onClickLocate: function( e, $el ){ + onClickLocate: function(){ this.searchLocation(); }, - onClickSearch: function( e, $el ){ + onClickSearch: function(){ this.searchAddress( this.$search().val() ); }, onFocusSearch: function( e, $el ){ - this.removeClass('-value'); - this.onKeyupSearch.apply(this, arguments); + this.setState( 'searching' ); }, onBlurSearch: function( e, $el ){ - // timeout to allow onClickLocate event - this.setTimeout(function(){ - this.removeClass('-search'); - if( $el.val() ) { - this.addClass('-value'); - } - }, 100); + // Get saved address value. + var val = this.val(); + var address = val ? val.address : ''; + + // Remove 'is-searching' if value has not changed. + if( $el.val() === address ) { + this.setState( 'default' ); + } }, onKeyupSearch: function( e, $el ){ - if( $el.val() ) { - this.addClass('-search'); - } else { - this.removeClass('-search'); + + // Clear empty value. + if( !$el.val() ) { + this.val( false ); } }, + // Prevent form from submitting. onKeydownSearch: function( e, $el ){ - - // prevent form from submitting if( e.which == 13 ) { e.preventDefault(); + $el.blur(); } }, - onMousedown: function(){ - -/* - // clear timeout in 1ms (onMousedown will run before onBlurSearch) - this.setTimeout(function(){ - clearTimeout( this.get('timeout') ); - }, 1); -*/ - }, - + // Center map once made visible. onShow: function(){ - - // bail early if no map - // - possible if JS API was not loaded - if( !this.map ) { - return false; + if( this.map ) { + this.setTimeout( this.center ); } - - // center map when it is shown (by a tab / collapsed row) - // - use delay to avoid rendering issues with browsers (ensures div is visible) - this.setTimeout( this.center, 10 ); - } + }, }); acf.registerFieldType( Field ); diff --git a/assets/js/acf-input.min.js b/assets/js/acf-input.min.js index b6a0b520..ddf0701d 100644 --- a/assets/js/acf-input.min.js +++ b/assets/js/acf-input.min.js @@ -1,4 +1,4 @@ -!function(t,e){var i={};window.acf=i,i.data={},i.get=function(t){return this.data[t]||null},i.has=function(t){return null!==this.get(t)},i.set=function(t,e){return this.data[t]=e,this};var n=0;i.uniqueId=function(t){var e=++n+"";return t?t+e:e},i.uniqueArray=function(t){function e(t,e,i){return i.indexOf(t)===e}return t.filter(e)};var a="";i.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},i.strReplace=function(t,e,i){return i.split(t).join(e)},i.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()})},i.strPascalCase=function(t){var e=i.strCamelCase(t);return e.charAt(0).toUpperCase()+e.slice(1)},i.strSlugify=function(t){return i.strReplace("_","-",t.toLowerCase())},i.strSanitize=function(t){var e={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","ß":"s","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o"," ":"_","'":"","?":"","/":"","\\":"",".":"",",":"","`":"",">":"","<":"",'"':"","[":"","]":"","|":"","{":"","}":"","(":"",")":""},i=/\W/g,n=function(t){return void 0!==e[t]?e[t]:t};return t=(t=t.replace(i,n)).toLowerCase()},i.strMatch=function(t,e){for(var i=0,n=Math.min(t.length,e.length),a=0;a").html(e).text()},i.strEscape=function(e){return t("
").text(e).html()},i.parseArgs=function(e,i){return"object"!=typeof e&&(e={}),"object"!=typeof i&&(i={}),t.extend({},i,e)},null==window.acfL10n&&(acfL10n={}),i.__=function(t){return acfL10n[t]||t},i._x=function(t,e){return acfL10n[t+"."+e]||acfL10n[t]||t},i._n=function(t,e,n){return 1==n?i.__(t):i.__(e)},i.isArray=function(t){return Array.isArray(t)},i.isObject=function(t){return"object"==typeof t};var r=function(t,e,n){var a=(e=e.replace("[]","[%%index%%]")).match(/([^\[\]])+/g);if(a)for(var r=a.length,o=t,s=0;s
');var s=e.parent();e.css({height:i,width:n,margin:a,position:"absolute"}),setTimeout(function(){s.css({opacity:0,height:t.endHeight})},50),setTimeout(function(){e.attr("style",o),s.remove(),t.complete()},301)},u=function(e){var i=e.target,n=i.height(),a=i.children().length,r=t('');i.addClass("acf-remove-element"),setTimeout(function(){i.html(r)},251),setTimeout(function(){i.removeClass("acf-remove-element"),r.css({height:e.endHeight})},300),setTimeout(function(){i.remove(),e.complete()},451)};i.duplicate=function(t){t instanceof jQuery&&(t={target:t});var e=0;(t=i.parseArgs(t,{target:!1,search:"",replace:"",before:function(t){},after:function(t,e){},append:function(t,i){t.after(i),e=1}})).target=t.target||t.$el;var n=t.target;t.search=t.search||n.attr("data-id"),t.replace=t.replace||i.uniqid(),t.before(n),i.doAction("before_duplicate",n);var a=n.clone();return i.rename({target:a,search:t.search,replace:t.replace}),a.removeClass("acf-clone"),a.find(".ui-sortable").removeClass("ui-sortable"),t.after(n,a),i.doAction("after_duplicate",n,a),t.append(n,a),i.doAction("append",a),a},i.rename=function(t){t instanceof jQuery&&(t={target:t});var e=(t=i.parseArgs(t,{target:!1,destructive:!1,search:"",replace:""})).target,n=t.search||e.attr("data-id"),a=t.replace||i.uniqid("acf"),r=function(t,e){return e.replace(n,a)};if(t.destructive){var o=e.outerHTML();o=i.strReplace(n,a,o),e.replaceWith(o)}else e.attr("data-id",a),e.find('[id*="'+n+'"]').attr("id",r),e.find('[for*="'+n+'"]').attr("for",r),e.find('[name*="'+n+'"]').attr("name",r);return e},i.prepareForAjax=function(t){return t.nonce=i.get("nonce"),t.post_id=i.get("post_id"),i.has("language")&&(t.lang=i.get("language")),t=i.applyFilters("prepare_for_ajax",t)},i.startButtonLoading=function(t){t.prop("disabled",!0),t.after(' ')},i.stopButtonLoading=function(t){t.prop("disabled",!1),t.next(".acf-loading").remove()},i.showLoading=function(t){t.append('
')},i.hideLoading=function(t){t.children(".acf-loading-overlay").remove()},i.updateUserSetting=function(e,n){var a={action:"acf/ajax/user_setting",name:e,value:n};t.ajax({url:i.get("ajaxurl"),data:i.prepareForAjax(a),type:"post",dataType:"html"})},i.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))},i.show=function(t,e){return e&&i.unlock(t,"hidden",e),!i.isLocked(t,"hidden")&&(!!t.hasClass("acf-hidden")&&(t.removeClass("acf-hidden"),!0))},i.hide=function(t,e){return e&&i.lock(t,"hidden",e),!t.hasClass("acf-hidden")&&(t.addClass("acf-hidden"),!0)},i.isHidden=function(t){return t.hasClass("acf-hidden")},i.isVisible=function(t){return!i.isHidden(t)};var d=function(t,e){return!t.hasClass("acf-disabled")&&(e&&i.unlock(t,"disabled",e),!i.isLocked(t,"disabled")&&(!!t.prop("disabled")&&(t.prop("disabled",!1),!0)))};i.enable=function(e,i){if(e.attr("name"))return d(e,i);var n=!1;return e.find("[name]").each(function(){var e;d(t(this),i)&&(n=!0)}),n};var f=function(t,e){return e&&i.lock(t,"disabled",e),!t.prop("disabled")&&(t.prop("disabled",!0),!0)};i.disable=function(e,i){if(e.attr("name"))return f(e,i);var n=!1;return e.find("[name]").each(function(){var e;f(t(this),i)&&(n=!0)}),n},i.isset=function(t){for(var e=1;e-1){var o=window.URL||window.webkitURL,s=new Image;s.onload=function(){a.width=this.width,a.height=this.height,e(a)},s.src=o.createObjectURL(r)}else e(a);else e(a)},i.isAjaxSuccess=function(t){return t&&t.success},i.getAjaxMessage=function(t){return i.isget(t,"data","message")},i.getAjaxError=function(t){return i.isget(t,"data","error")},i.renderSelect=function(t,e){var n=t.val(),a=[],r=function(t){var e="";return t.map(function(t){var n=t.text||t.label||"",o=t.id||t.value||"";a.push(o),t.children?e+=''+r(t.children)+"":e+='"}),e};return t.html(r(e)),a.indexOf(n)>-1&&t.val(n),t.val()};var h=function(t,e){return t.data("acf-lock-"+e)||[]},p=function(t,e,i){t.data("acf-lock-"+e,i)},g,m,v,y,b,w;i.lock=function(t,e,i){var n=h(t,e),a;n.indexOf(i)<0&&(n.push(i),p(t,e,n))},i.unlock=function(t,e,i){var n=h(t,e),a=n.indexOf(i);return a>-1&&(n.splice(a,1),p(t,e,n)),0===n.length},i.isLocked=function(t,e){return h(t,e).length>0},i.isGutenberg=function(){return window.wp&&wp.data&&wp.data.select&&wp.data.select("core/editor")},i.objectToArray=function(t){return Object.keys(t).map(function(e){return t[e]})},i.debounce=function(t,e){var i;return function(){var n=this,a=arguments,r=function(){t.apply(n,a)};clearTimeout(i),i=setTimeout(r,e)}},i.throttle=function(t,e){var i=!1;return function(){i||(i=!0,setTimeout(function(){i=!1},e),t.apply(this,arguments))}},i.isInView=function(t){var e=t.getBoundingClientRect();return e.top!==e.bottom&&e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},i.onceInView=(g=[],m=0,v=function(){g.forEach(function(t){i.isInView(t.el)&&(t.callback.apply(this),w(t.id))})},y=i.debounce(v,300),b=function(e,i){g.length||t(window).on("scroll resize",y).on("acfrefresh orientationchange",v),g.push({id:m++,el:e,callback:i})},w=function(e){(g=g.filter(function(t){return t.id!==e})).length||t(window).off("scroll resize",y).off("acfrefresh orientationchange",v)},function(t,e){t instanceof jQuery&&(t=t[0]),i.isInView(t)?e.apply(this):b(t,e)}),i.once=function(t){var e=0;return function(){return e++>0?t=void 0:t.apply(this,arguments)}},t.fn.exists=function(){return t(this).length>0},t.fn.outerHTML=function(){return t(this).get(0).outerHTML},Array.prototype.indexOf||(Array.prototype.indexOf=function(e){return t.inArray(e,this)}),t(document).ready(function(){i.doAction("ready")}),t(window).on("load",function(){i.doAction("load")}),t(window).on("beforeunload",function(){i.doAction("unload")}),t(window).on("resize",function(){i.doAction("resize")}),t(document).on("sortstart",function(t,e){i.doAction("sortstart",e.item,e.placeholder)}),t(document).on("sortstop",function(t,e){i.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&&s("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 o(t,e){return"string"==typeof t&&s("filters",t,e),d}function s(t,e,i,n){if(f[t][e])if(i){var a=f[t][e],r;if(n)for(r=a.length;r--;){var o=a[r];o.callback===i&&o.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},o=f[t][e];o?(o.push(r),o=l(o)):o=[r],f[t][e]=o}function l(t){for(var e,i,n,a=1,r=t.length;ae.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','
','

','
','
',"
",'
',""].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(){t("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(t,e){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'
'},setup:function(e){t.extend(this.data,e),this.$el=t(this.tmpl())},initialize:function(){this.render(),this.show()},render:function(){this.type(this.get("type")),this.html("

"+this.get("text")+"

"),this.get("dismiss")&&(this.$el.append(''),this.$el.addClass("-dismiss"));var t=this.get("timeout");t&&this.away(t)},update:function(e){t.extend(this.data,e),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 e=t(".acf-admin-notice");e.length&&t("h1:first").after(e)}})}(jQuery),function(t,e){var i=new acf.Model({wait:"prepare",priority:1,initialize:function(){(acf.get("postboxes")||[]).map(acf.newPostbox)}});acf.getPostbox=function(e){return"string"==typeof e&&(e=t("#"+e)),acf.getInstance(e)},acf.getPostboxes=function(){return acf.getInstances(t(".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(e){e.editLink&&(e.edit=e.editLink),t.extend(this.data,e),this.$el=this.$postbox()},$postbox:function(){return t("#"+this.get("id"))},$hide:function(){return t("#"+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(){if(this.$el.addClass("acf-postbox"),this.$el.removeClass("hide-if-js"),"block"!==acf.get("editor")){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(''),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(t,e){acf.newTooltip=function(t){return"object"!=typeof t&&(t={text:t}),void 0!==t.confirmRemove?(t.textConfirm=acf.__("Remove"),t.textCancel=acf.__("Cancel"),new n(t)):void 0!==t.confirm?new n(t):new i(t)};var i=acf.Model.extend({data:{text:"",timeout:0,target:null},tmpl:function(){return'
'},setup:function(e){t.extend(this.data,e),this.$el=t(this.tmpl())},initialize:function(){this.render(),this.show(),this.position();var e=this.get("timeout");e&&setTimeout(t.proxy(this.fade,this),e)},update:function(e){t.extend(this.data,e),this.initialize()},render:function(){this.html(this.get("text"))},show:function(){t("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 e=this.$el,i=this.get("target");if(i){e.removeClass("right left bottom top").css({top:0,left:0});var n=10,a=i.outerWidth(),r=i.outerHeight(),o=i.offset().top,s=i.offset().left,c=e.outerWidth(),l=e.outerHeight(),u=e.offset().top,d=o-l-u,f=s+a/2-c/2;f<10?(e.addClass("right"),f=s+a,d=o+r/2-l/2-u):f+c+10>t(window).width()?(e.addClass("left"),f=s-c,d=o+r/2-l/2-u):d-t(window).scrollTop()<10?(e.addClass("bottom"),d=o+r-u):e.addClass("top"),e.css({top:d,left:f})}}}),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 e=t(document),i=this.get("target");this.setTimeout(function(){this.on(e,"click","onCancel")}),this.get("targetConfirm")&&this.on(i,"click","onConfirm")},removeEvents:function(){acf.Model.prototype.removeEvents.apply(this);var e=t(document),i=this.get("target");this.off(e,"click"),this.off(i,"click")},render:function(){var t,e,i,n=[this.get("text")||acf.__("Are you sure?"),''+(this.get("textConfirm")||acf.__("Yes"))+"",''+(this.get("textCancel")||acf.__("No"))+""].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 a=new acf.Model({tooltip:!1,events:{"mouseenter .acf-js-tooltip":"showTitle","mouseup .acf-js-tooltip":"hideTitle","mouseleave .acf-js-tooltip":"hideTitle"},showTitle:function(t,e){var i=e.attr("title");i&&(e.attr("title",""),this.tooltip?this.tooltip.update({text:i,target:e}):this.tooltip=acf.newTooltip({text:i,target:e}))},hideTitle:function(t,e){this.tooltip.hide(),e.attr("title",this.tooltip.get("text"))}})}(jQuery),function(t,e){var i=[];acf.Field=acf.Model.extend({type:"",eventScope:".acf-field",wait:"ready",setup:function(t){this.$el=t,this.inherit(t),this.inherit(this.$control())},val:function(t){return void 0!==t?this.setValue(t):this.prop("disabled")?null:this.getValue()},getValue:function(){return this.$input().val()},setValue:function(t){return acf.val(this.$input(),t)},__:function(t){return acf._e(this.type,t)},$control:function(){return!1},$input:function(){return this.$("[name]:first")},$inputWrap:function(){return this.$(".acf-input:first")},$labelWrap:function(){return this.$(".acf-label:first")},getInputName:function(){return this.$input().attr("name")||""},parent:function(){var t=this.parents();return!!t.length&&t[0]},parents:function(){var t=this.$el.parents(".acf-field"),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(e){this.$el.addClass("acf-error"),void 0!==e&&this.showNotice({text:e,type:"error",dismiss:!1}),acf.doAction("invalid_field",this),this.$el.one("focus change","input, select, textarea",t.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=n(e),a,r=new(acf.models[i]||acf.Field)(t);return acf.doAction("new_field",r),r};var n=function(t){return acf.strPascalCase(t||"")+"Field"};acf.registerFieldType=function(t){var e,a=t.prototype.type,r=n(a);acf.models[r]=t,i.push(a)},acf.getFieldType=function(t){var e=n(t);return acf.models[e]||!1},acf.getFieldTypes=function(t){t=acf.parseArgs(t,{category:""});var e=[];return i.map(function(i){var n=acf.getFieldType(i),a=n.prototype;t.category&&a.category!==t.category||e.push(n)}),e}}(jQuery),function(t,e){acf.findFields=function(e){var i=".acf-field",n=!1;return(e=acf.parseArgs(e,{key:"",name:"",type:"",is:"",parent:!1,sibling:!1,limit:!1,visible:!1,suppressFilters:!1})).suppressFilters||(e=acf.applyFilters("find_fields_args",e)),e.key&&(i+='[data-key="'+e.key+'"]'),e.type&&(i+='[data-type="'+e.type+'"]'),e.name&&(i+='[data-name="'+e.name+'"]'),e.is&&(i+=e.is),e.visible&&(i+=":visible"),n=e.parent?e.parent.find(i):e.sibling?e.sibling.siblings(i):t(i),e.suppressFilters||(n=n.not(".acf-clone .acf-field"),n=acf.applyFilters("find_fields",n)),e.limit&&(n=n.slice(0,e.limit)),n},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(e){e instanceof jQuery||(e=acf.findFields(e));var i=[];return e.each(function(){var e=acf.getField(t(this));i.push(e)}),i},acf.findClosestField=function(t){return t.closest(".acf-field")},acf.getClosestField=function(t){var e=acf.findClosestField(t);return this.getField(e)};var i=function(t){var e=t,i=t+"_fields",a=t+"_field",r=function(t){var e=acf.arrayArgs(arguments),n=e.slice(1),a=acf.getFields({parent:t});if(a.length){var r=[i,a].concat(n);acf.doAction.apply(null,r)}},o=function(t){var e=acf.arrayArgs(arguments),i=e.slice(1);t.map(function(t,e){var n=[a,t].concat(i);acf.doAction.apply(null,n)})};acf.addAction(e,r),acf.addAction(i,o),n(t)},n=function(t){var e=t+"_field",i=t+"Field",n=function(n){var a=acf.arrayArgs(arguments),r=a.slice(1),s=["type","name","key"];s.map(function(t){var i="/"+t+"="+n.get(t);a=[e+i,n].concat(r),acf.doAction.apply(null,a)}),o.indexOf(t)>-1&&n.trigger(i,r)};acf.addAction(e,n)},a,r=["valid","invalid","enable","disable","new"],o=["remove","unmount","remount","sortstart","sortstop","show","hide","unload","valid","invalid","enable","disable"];["prepare","ready","load","append","remove","unmount","remount","sortstart","sortstop","show","hide","unload"].map(i),r.map(n);var s=new acf.Model({id:"fieldsEventManager",events:{'click .acf-field a[href="#"]':"onClick","change .acf-field":"onChange"},onClick:function(t){t.preventDefault()},onChange:function(){t("#_acf_changed").val(1)}})}(jQuery),function(t,e){var i=0,n=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 e=this.$el,n=this.$labelWrap(),r=this.$inputWrap(),o=this.$control(),s=r.children(".description");if(s.length&&n.append(s),this.$el.is("tr")){var c=this.$el.closest("table"),l=t('
'),u=t('
'),d=t(''),f=t("");l.append(n.html()),d.append(f),u.append(d),r.append(l),r.append(u),n.remove(),o.remove(),r.attr("colspan",2),n=l,r=u,o=f}e.addClass("acf-accordion"),n.addClass("acf-accordion-title"),r.addClass("acf-accordion-content"),i++,this.get("multi_expand")&&e.attr("multi-expand",1);var h=acf.getPreference("this.accordions")||[];void 0!==h[i-1]&&this.set("open",h[i-1]),this.get("open")&&(e.addClass("-open"),r.css("display","block")),n.prepend(a.iconHtml({open:this.get("open")}));var p=e.parent();o.addClass(p.hasClass("-left")?"-left":""),o.addClass(p.hasClass("-clear")?"-clear":""),o.append(e.nextUntil(".acf-field-accordion",".acf-field")),o.removeAttr("data-open data-multi_expand data-endpoint")}}});acf.registerFieldType(n);var a=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)},iconHtml:function(t){var e;return''},open:function(e){e.find(".acf-accordion-content:first").slideDown().css("display","block"),e.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!0})),e.addClass("-open"),acf.doAction("show",e),e.attr("multi-expand")||e.siblings(".acf-accordion.-open").each(function(){a.close(t(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(e){var i=[];t(".acf-accordion").each(function(){var e=t(this).hasClass("-open")?1:0;i.push(e)}),i.length&&acf.setPreference("this.accordions",i)}})}(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(t,e){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 e=[];return this.$(":checked").each(function(){e.push(t(this).val())}),!!e.length&&e},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='
  • ';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 t=this.$input(),e=this.$inputText(),i=function(i){setTimeout(function(){acf.val(t,e.val())},1)},n={defaultColor:!1,palettes:!0,hide:!0,change:i,clear:i},n=acf.applyFilters("color_picker_args",n,this);e.wpColorPicker(n)}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=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(i);var n=new acf.Model({priority:5,wait:"ready",initialize:function(){var e=acf.get("locale"),i=acf.get("rtl"),n=acf.get("datePickerL10n");return!!n&&(void 0!==t.datepicker&&(n.isRTL=i,t.datepicker.regional[e]=n,void t.datepicker.setDefaults(n)))}});acf.newDatePicker=function(e,i){if(void 0===t.datepicker)return!1;i=i||{},e.datepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('
    ')}}(jQuery),function(t,e){var i=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(i);var n=new acf.Model({priority:5,wait:"ready",initialize:function(){var e=acf.get("locale"),i=acf.get("rtl"),n=acf.get("dateTimePickerL10n");return!!n&&(void 0!==t.timepicker&&(n.isRTL=i,t.timepicker.regional[e]=n,void t.timepicker.setDefaults(n)))}});acf.newDateTimePicker=function(e,i){if(void 0===t.timepicker)return!1;i=i||{},e.datetimepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('
    ')}}(jQuery),function(t,e){function i(e){if(r)return e();if(acf.isset(window,"google","maps","Geocoder"))return r=new google.maps.Geocoder,e();if(acf.addAction("google_map_api_loaded",e),!a){var i=acf.get("google_map_api");i&&(a=!0,t.ajax({url:i,dataType:"script",cache:!0,success:function(){r=new google.maps.Geocoder,acf.doAction("google_map_api_loaded")}}))}}var n=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 e={lat:"",lng:"",address:""};return this.$('input[type="hidden"]').each(function(){e[t(this).data("name")]=t(this).val()}),e.lat&&e.lng||(e=!1),e},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(){i(this.initializeMap.bind(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 o=new google.maps.Marker(r),s=!1;if(acf.isset(google,"maps","places","Autocomplete")){var c=n.autocomplete||{};c=acf.applyFilters("google_map_autocomplete_args",c,this),(s=new google.maps.places.Autocomplete(this.$search()[0],c)).bindTo("bounds",a)}this.addMapEvents(this,a,o,s),a.acf=this,a.marker=o,a.autocomplete=s,this.map=a,acf.doAction("google_map_init",a,o,this);var l=this.getValue();this.renderVal(l)},addMapEvents:function(t,e,i,n){google.maps.event.addListener(e,"click",function(e){var i=e.latLng.lat(),n=e.latLng.lng();t.searchPosition(i,n)}),google.maps.event.addListener(i,"dragend",function(){var e=this.getPosition(),i=e.lat(),n=e.lng();t.searchPosition(i,n)}),n&&google.maps.event.addListener(n,"place_changed",function(){var e=this.getPlace();e.address=t.getSearchVal(),t.setPlace(e)})},searchPosition:function(e,i){var n=this.newLatLng(e,i),a=this.$control();this.setPosition(e,i),a.addClass("-loading");var o=t.proxy(function(t,n){a.removeClass("-loading");var r="";n!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+n):t[0]?r=t[0].formatted_address:console.log("No results found"),this.val({lat:e,lng:i,address:r})},this);r.geocode({latLng:n},o)},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(e){var i=e.split(",");if(2==i.length){var n=i[0],a=i[1];if(t.isNumeric(n)&&t.isNumeric(a))return this.searchPosition(n,a)}var o=this.$control();o.addClass("-loading");var s=this.proxy(function(t,i){o.removeClass("-loading");var n="",a="";i!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+i):t[0]?(n=t[0].geometry.location.lat(),a=t[0].geometry.location.lng()):console.log("No results found"),this.val({lat:n,lng:a,address:e})});r.geocode({address:e},s)},searchLocation:function(){if(!navigator.geolocation)return alert(acf.__("Sorry, this browser does not support geolocation"));var e=this.$control();e.addClass("-loading");var i=t.proxy(function(t,i){e.removeClass("-loading");var n=t.coords.latitude,a=t.coords.longitude;this.searchPosition(n,a)},this),n=function(t){e.removeClass("-loading")};navigator.geolocation.getCurrentPosition(i,n)},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(n);var a=!1,r=!1}(jQuery),function(t,e){var i=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){void 0!==(t=t||{}).id&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",caption:"",description:"",width:0,height:0});var e=acf.isget(t,"sizes",this.get("preview_size"),"url");return null!==e&&(t.url=e),t},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.url,alt:t.alt,title:t.title});var e=t.id||"";this.val(e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},append:function(t,e){var i=function(t,e){for(var i=acf.getFields({key:t.get("key"),parent:e.$el}),n=0;n0?this.append(t,e):this.render(t)},this)})},editAttachment:function(){var e=this.val();if(e)var i=acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:e,field:this.get("key"),select:t.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(e,i){var n=this.$input();acf.getFileInputData(i,function(e){n.val(t.param(e))})}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.ImageField.extend({type:"file",$control:function(){return this.$(".acf-file-uploader")},$input:function(){return this.$('input[type="hidden"]')},validateAttachment:function(t){return void 0!==(t=t||{}).id&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",filename:"",filesizeHumanReadable:"",icon:"/wp-includes/images/media/default.png"})},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.icon,alt:t.alt,title:t.title}),this.$('[data-name="title"]').text(t.title),this.$('[data-name="filename"]').text(t.filename).attr("href",t.url),this.$('[data-name="filesize"]').text(t.filesizeHumanReadable);var e=t.id||"";acf.val(this.$input(),e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},selectAttachment:function(){var e=this.parent(),i=e&&"repeater"===e.get("type"),n=acf.newMediaPopup({mode:"select",title:acf.__("Select File"),field:this.get("key"),multiple:i,library:this.get("library"),allowedTypes:this.get("mime_types"),select:t.proxy(function(t,i){i>0?this.append(t,e):this.render(t)},this)})},editAttachment:function(){var e=this.val();if(!e)return!1;var i=acf.newMediaPopup({mode:"edit",title:acf.__("Edit File"),button:acf.__("Update File"),attachment:e,field:this.get("key"),select:t.proxy(function(t,e){this.render(t)},this)})}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=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(i),acf.wpLink=new acf.Model({getNodeValue:function(){var t=this.get("node");return{title:acf.decode(t.html()),url:t.attr("href"),target:t.attr("target")}},setNodeValue:function(t){var e=this.get("node");e.text(t.title),e.attr("href",t.url),e.attr("target",t.target),e.trigger("change")},getInputValue:function(){return{title:t("#wp-link-text").val(),url:t("#wp-link-url").val(),target:t("#wp-link-target").prop("checked")?"_blank":""}},setInputValue:function(e){t("#wp-link-text").val(e.title),t("#wp-link-url").val(e.url),t("#wp-link-target").prop("checked","_blank"===e.target)},open:function(e){this.on("wplink-open","onOpen"),this.on("wplink-close","onClose"),this.set("node",e);var i=t('');t("body").append(i);var n=this.getNodeValue();wpLink.open("acf-link-textarea",n.url,n.title,null)},onOpen:function(){t("#wp-link-wrap").addClass("has-text-field");var e=this.getNodeValue();this.setInputValue(e)},close:function(){wpLink.close()},onClose:function(){if(!this.has("node"))return!1;this.off("wplink-open"),this.off("wplink-close");var e=this.getInputValue();this.setNodeValue(e),t("#acf-link-textarea").remove(),this.set("node",null)}})}(jQuery),function(t,e){var i=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 e=this.val(),i=this.getSearchVal();if(!i)return this.clear();if("http"!=i.substr(0,4)&&(i="http://"+i),i!==e){var n=this.get("timeout");n&&clearTimeout(n);var a=t.proxy(this.search,this,i);this.set("timeout",setTimeout(a,300))}},search:function(e){var i={action:"acf/fields/oembed/search",s:e,field_key:this.get("key")},n;(n=this.get("xhr"))&&n.abort(),this.showLoading();var n=t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),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",n)},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(i)}(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(),this.$input().val(),!0),this.busy=!1},onChange:function(t,e){this.busy||this.setValue(e.val())}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=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"},$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 e=[];return this.$listItems("values").each(function(){e.push(t(this).data("id"))}),!!e.length&&e},newChoice:function(t){return["
  • ",''+t.text+"","
  • "].join("")},newValue:function(t){return["
  • ",'',''+t.text,'',"","
  • "].join("")},initialize:function(){var t=this.proxy(acf.once(function(){this.$list("values").sortable({items:"li",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,update:this.proxy(function(){this.$input().trigger("change")})}),this.$list("choices").scrollTop(0).on("scroll",this.proxy(this.onScrollChoices)),this.fetch()}));this.$el.one("mouseover",t),this.$el.one("focus","input",t),acf.onceInView(this.$el,t)},onScrollChoices:function(t){if(!this.get("loading")&&this.get("more")){var e=this.$list("choices"),i=Math.ceil(e.scrollTop()),n=Math.ceil(e[0].scrollHeight),a=Math.ceil(e.innerHeight()),r=this.get("paged")||1;i+a>=n&&(this.set("paged",r+1),this.fetch())}},onKeypressFilter:function(t,e){13==t.which&&t.preventDefault()},onChangeFilter:function(t,e){var i=e.val(),n=e.data("filter");this.get(n)!==i&&(this.set(n,i),this.set("paged",1),e.is("select")?this.fetch():this.maybeFetch())},onClickAdd:function(t,e){var i=this.val(),n=parseInt(this.get("max"));if(e.hasClass("disabled"))return!1;if(n>0&&i&&i.length>=n)return this.showNotice({text:acf.__("Maximum values reached ( {max} values )").replace("{max}",n),type:"warning"}),!1;e.addClass("disabled");var a=this.newValue({id:e.data("id"),text:e.html()});this.$list("values").append(a),this.$input().trigger("change")},onClickRemove:function(t,e){t.preventDefault();var i=e.parent(),n=i.parent(),a=i.data("id");n.remove(),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=acf.applyFilters("relationship_ajax_data",t,this)},fetch:function(){var e;(e=this.get("xhr"))&&e.abort();var i=this.getAjaxData(),n=this.$list("choices");1==i.paged&&n.html("");var a=t('
  • '+acf.__("Loading")+"
  • ");n.append(a),this.set("loading",!0);var r=function(){this.set("loading",!1),a.remove()},o=function(e){if(!e||!e.results||!e.results.length)return this.set("more",!1),void(1==this.get("paged")&&this.$list("choices").append("
  • "+acf.__("No matches found")+"
  • "));this.set("more",e.more);var i=this.walkChoices(e.results),a=t(i),r=this.val();r&&r.length&&r.map(function(t){a.find('.acf-rel-item[data-id="'+t+'"]').addClass("disabled")}),n.append(a);var o=!1,s=!1;n.find(".acf-rel-label").each(function(){var e=t(this),i=e.siblings("ul");if(o&&o.text()==e.text())return s.append(i.children()),void t(this).parent().remove();o=e,s=i})},e=t.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",data:acf.prepareForAjax(i),context:this,success:o,complete:r});this.set("xhr",e)},walkChoices:function(e){var i=function(e){var n="";return t.isArray(e)?e.map(function(t){n+=i(t)}):t.isPlainObject(e)&&(void 0!==e.children?(n+='
  • '+e.text+'
      ',n+=i(e.children),n+="
  • "):n+='
  • '+e.text+"
  • "),n};return i(e)}});acf.registerFieldType(i)}(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(t,e){var i="tab",n=acf.Field.extend({type:"tab",wait:"",tabs:!1,tab:!1,findFields:function(){return this.$el.nextUntil(".acf-field-tab",".acf-field")},getFields:function(){return acf.getFields(this.findFields())},findTabs:function(){return this.$el.prevAll(".acf-tab-wrap:first")},findTab:function(){return this.$(".acf-tab-button")},initialize:function(){if(this.$el.is("td"))return this.events={},!1;var t=this.findTabs(),e=this.findTab(),i=acf.parseArgs(e.data(),{endpoint:!1,placement:"",before:this.$el});!t.length||i.endpoint?this.tabs=new r(i):this.tabs=t.data("acf"),this.tab=this.tabs.addTab(e,this)},isActive:function(){return this.tab.isActive()},showFields:function(){this.getFields().map(function(t){t.show(this.cid,"tab"),t.hiddenByTab=!1},this)},hideFields:function(){this.getFields().map(function(t){t.hide(this.cid,"tab"),t.hiddenByTab=this.tab},this)},show:function(t){var e=acf.Field.prototype.show.apply(this,arguments);return e&&(this.tab.show(),this.tabs.refresh()),e},hide:function(t){var e=acf.Field.prototype.hide.apply(this,arguments);return e&&(this.tab.hide(),this.isActive()&&this.tabs.reset()),e},enable:function(t){this.getFields().map(function(t){t.enable("tab")})},disable:function(t){this.getFields().map(function(t){t.disable("tab")})}});acf.registerFieldType(n);var a=0,r=acf.Model.extend({tabs:[],active:!1,actions:{refresh:"onRefresh"},data:{before:!1,placement:"top",index:0,initialized:!1},setup:function(e){t.extend(this.data,e),this.tabs=[],this.active=!1;var i=this.get("placement"),n=this.get("before"),r=n.parent();"left"==i&&r.hasClass("acf-fields")&&r.addClass("-sidebar"),n.is("tr")?this.$el=t('
    '):this.$el=t('
      '),n.before(this.$el),this.set("index",a,!0),a++},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(t){this.tabs.map(function(e){t.cid!==e.cid&&this.closeTab(e)},this),this.openTab(t)},addTab:function(e,i){var n=t("
    • ");n.append(e),this.$("ul").append(n);var a=new o({$el:n,field:i,group:this});return this.tabs.push(a),a},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)}}}),o=acf.Model.extend({group:!1,field:!1,events:{"click a":"onClick"},index:function(){return this.$el.index()},isVisible:function(){return acf.isVisible(this.$el)},isActive:function(){return this.$el.hasClass("active")},open:function(){this.$el.addClass("active"),this.field.showFields()},close:function(){this.$el.removeClass("active"),this.field.hideFields()},onClick:function(t,e){t.preventDefault(),this.toggle()},toggle:function(){this.isActive()||this.group.openTab(this)}}),s=new acf.Model({priority:50,actions:{prepare:"render",append:"render",unload:"onUnload",invalid_field:"onInvalidField"},findTabs:function(){return t(".acf-tab-wrap")},getTabs:function(){return acf.getInstances(this.findTabs())},render:function(t){this.getTabs().map(function(t){t.get("initialized")||t.initializeTabs()})},onInvalidField:function(t){this.busy||t.hiddenByTab&&(t.hiddenByTab.toggle(),this.busy=!0,this.setTimeout(function(){this.busy=!1},100))},onUnload:function(){var t=[];this.getTabs().map(function(e){var i=e.hasActive()?e.getActive().index():0;t.push(i)}),t.length&&acf.setPreference("this.tabs",t)}})}(jQuery),function(t,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(t,e){var i=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(e,i){var n=this,a=!1,r=!1,o=!1,s=!1,c=!1,l=!1,u=!1,d=function(){a=acf.newPopup({title:i.attr("title"),loading:!0,width:"300px"});var e={action:"acf/fields/taxonomy/add_term",field_key:n.get("key")};t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"html",success:f})},f=function(t){a.loading(!1),a.content(t),r=a.$("form"),o=a.$('input[name="term_name"]'),s=a.$('select[name="term_parent"]'),c=a.$(".acf-submit-button"),o.focus(),a.on("submit","form",h)},h=function(e,i){if(e.preventDefault(),e.stopImmediatePropagation(),""===o.val())return o.focus(),!1;acf.startButtonLoading(c);var a={action:"acf/fields/taxonomy/add_term",field_key:n.get("key"),term_name:o.val(),term_parent:s.length?s.val():0};t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",success:p})},p=function(t){acf.stopButtonLoading(c),u&&u.remove(),acf.isAjaxSuccess(t)?(o.val(""),g(t.data),u=acf.newNotice({type:"success",text:acf.getAjaxMessage(t),target:r,timeout:2e3,dismiss:!1})):u=acf.newNotice({type:"error",text:acf.getAjaxError(t),target:r,timeout:2e3,dismiss:!1}),o.focus()},g=function(e){var i=t('"),a;e.term_parent?s.children('option[value="'+e.term_parent+'"]').after(i):s.append(i),acf.getFields({type:"taxonomy"}).map(function(t){t.get("taxonomy")==n.get("taxonomy")&&t.appendTerm(e)}),n.selectTerm(e.term_id)};d()},appendTerm:function(t){"select"==this.getRelatedType()?this.appendTermSelect(t):this.appendTermCheckbox(t)},appendTermSelect:function(t){this.select2.addOption({id:t.term_id,text:t.term_label})},appendTermCheckbox:function(e){var i=this.$("[name]:first").attr("name"),n=this.$("ul:first");"checkbox"==this.getRelatedType()&&(i+="[]");var a=t(['
    • ',"","
    • "].join(""));if(e.term_parent){var r=n.find('li[data-id="'+e.term_parent+'"]');(n=r.children("ul")).exists()||(n=t('
        '),r.append(n))}n.append(a)},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(i)}(jQuery),function(t,e){var i=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(i),acf.newTimePicker=function(e,i){if(void 0===t.timepicker)return!1;i=i||{},e.timepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('
        ')}}(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",unmountField:"disableEditor",remountField:"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(t,e){var i=[];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(e){t.extend(this.data,e)},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''}}),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"),o=t.operator,s,c,l;return new(acf.getConditionTypes({fieldType:r,operator:o})[0]||acf.Condition)(a)};var n=function(t){return acf.strPascalCase(t||"")+"Condition"};acf.registerConditionType=function(t){var e,a=t.prototype.type,r=n(a);acf.models[r]=t,i.push(a)},acf.getConditionType=function(t){var e=n(t);return acf.models[e]||!1},acf.registerConditionForFieldType=function(t,e){var i=acf.getConditionType(t);i&&i.prototype.fieldTypes.push(e)},acf.getConditionTypes=function(t){t=acf.parseArgs(t,{fieldType:"",operator:""});var e=[];return i.map(function(i){var n=acf.getConditionType(i),a=n.prototype.fieldTypes,r=n.prototype.operator;t.fieldType&&-1===a.indexOf(t.fieldType)||t.operator&&r!==t.operator||e.push(n)}),e}}(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;nparseFloat(e)},s=function(t,e){return parseFloat(t)-1},l=function(t,e){return n(t).indexOf(n(e))>-1},u=function(t,e){var i=new RegExp(n(e),"gi");return n(t).match(i)},d=acf.Condition.extend({type:"hasValue",operator:"!=empty",label:i("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''}});acf.registerConditionType(d);var f=d.extend({type:"hasNoValue",operator:"==empty",label:i("Has no value"),match:function(t,e){return!d.prototype.match.apply(this,arguments)}});acf.registerConditionType(f);var h=acf.Condition.extend({type:"equalTo",operator:"==",label:i("Value is equal to"),fieldTypes:["text","textarea","number","range","email","url","password"],match:function(e,i){return t.isNumeric(e.value)?r(e.value,i.val()):a(e.value,i.val())},choices:function(t){return''}});acf.registerConditionType(h);var p=h.extend({type:"notEqualTo",operator:"!=",label:i("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:i("Value matches pattern"),fieldTypes:["text","textarea","email","url","password","wysiwyg"],match:function(t,e){return u(e.val(),t.value)},choices:function(t){return''}});acf.registerConditionType(g);var m=acf.Condition.extend({type:"contains",operator:"==contains",label:i("Value contains"),fieldTypes:["text","textarea","number","email","url","password","wysiwyg","oembed","select"],match:function(t,e){return l(e.val(),t.value)},choices:function(t){return''}});acf.registerConditionType(m);var v=h.extend({type:"trueFalseEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:i("Checked")}]}});acf.registerConditionType(v);var y=p.extend({type:"trueFalseNotEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:i("Checked")}]}});acf.registerConditionType(y);var b=acf.Condition.extend({type:"selectEqualTo",operator:"==",label:i("Value is equal to"),fieldTypes:["select","checkbox","radio","button_group"],match:function(t,e){var i=e.val();return i instanceof Array?c(t.value,i):a(t.value,i)},choices:function(e){var n=[],a=e.$setting("choices textarea").val().split("\n");return e.$input("allow_null").prop("checked")&&n.push({id:"",text:i("Null")}),a.map(function(e){(e=e.split(":"))[1]=e[1]||e[0],n.push({id:t.trim(e[0]),text:t.trim(e[1])})}),n}});acf.registerConditionType(b);var w=b.extend({type:"selectNotEqualTo",operator:"!=",label:i("Value is not equal to"),match:function(t,e){return!b.prototype.match.apply(this,arguments)}});acf.registerConditionType(w);var x=acf.Condition.extend({type:"greaterThan",operator:">",label:i("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''}});acf.registerConditionType(x);var _=x.extend({type:"lessThan",operator:"<",label:i("Value is less than"),match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),s(i,t.value)},choices:function(t){return''}});acf.registerConditionType(_);var $=x.extend({type:"selectionGreaterThan",label:i("Selection is greater than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType($);var k=_.extend({type:"selectionLessThan",label:i("Selection is less than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(k)}(jQuery),function(t,e){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 i=function(){var e=acf.get("post_id");return t.isNumeric(e)?e:0};acf.getMimeTypes=function(){return this.get("mimeTypes")},acf.getMimeType=function(t){var e=acf.getMimeTypes();if(void 0!==e[t])return e[t];for(var i in e)if(-1!==i.indexOf(t))return e[i];return!1};var n=acf.Model.extend({id:"MediaPopup",data:{},defaults:{},frame:!1,setup:function(e){t.extend(this.data,e)},initialize:function(){var t=this.getFrameOptions();this.addFrameStates(t);var e=wp.media(t);e.acf=this,this.addFrameEvents(e,t),this.frame=e},open:function(){this.frame.open()},close:function(){this.frame.close()},remove:function(){this.frame.detach(),this.frame.remove()},getFrameOptions:function(){var t={title:this.get("title"),multiple:this.get("multiple"),library:{},states:[]};return this.get("type")&&(t.library.type=this.get("type")),"uploadedTo"===this.get("library")&&(t.library.uploadedTo=i()),this.get("attachment")&&(t.library.post__in=[this.get("attachment")]),this.get("button")&&(t.button={text:this.get("button")}),t},addFrameStates:function(t){var e=wp.media.query(t.library);this.get("field")&&acf.isset(e,"mirroring","args")&&(e.mirroring.args._acfuploader=this.get("field")),t.states.push(new wp.media.controller.Library({library:e,multiple:this.get("multiple"),title:this.get("title"),priority:20,filterable:"all",editable:!0,allowLocalEdits:!0})),acf.isset(wp,"media","controller","EditImage")&&t.states.push(new wp.media.controller.EditImage)},addFrameEvents:function(t,e){t.on("open",function(){this.$el.closest(".media-modal").addClass("acf-media-modal -"+this.acf.get("mode"))},t),t.on("content:render:edit-image",function(){var t=this.state().get("image"),e=new wp.media.view.EditImage({model:t,controller:this}).render();this.content.set(e),e.loadEditor()},t),t.on("select",function(){var e=t.state().get("selection");e&&e.each(function(e,i){t.acf.get("select").apply(t.acf,[e,i])})}),t.on("close",function(){setTimeout(function(){t.acf.get("close").apply(t.acf),t.acf.remove()},1)})}});acf.models.SelectMediaPopup=n.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Select","verb")),n.prototype.setup.apply(this,arguments)},addFrameEvents:function(t,e){acf.isset(_wpPluploadSettings,"defaults","multipart_params")&&(_wpPluploadSettings.defaults.multipart_params._acfuploader=this.get("field"),t.on("open",function(){delete _wpPluploadSettings.defaults.multipart_params._acfuploader})),t.on("content:activate:browse",function(){var e=!1;try{e=t.content.get().toolbar}catch(t){return void console.log(t)}t.acf.customizeFilters.apply(t.acf,[e])}),n.prototype.addFrameEvents.apply(this,arguments)},customizeFilters:function(e){var i=e.get("filters"),n;("image"==this.get("type")&&(i.filters.all.text=acf.__("All images"),delete i.filters.audio,delete i.filters.video,delete i.filters.image,t.each(i.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 n={text:e,props:{status:null,type:e,uploadedTo:null,orderby:"date",order:"DESC"},priority:20};i.filters[e]=n}});if("uploadedTo"===this.get("library")){var a=this.frame.options.library.uploadedTo;delete i.filters.unattached,delete i.filters.uploaded,t.each(i.filters,function(t,e){e.text+=" ("+acf.__("Uploaded to this post")+")",e.props.uploadedTo=a})}var r=this.get("field"),o;t.each(i.filters,function(t,e){e.props._acfuploader=r}),e.get("search").model.attributes._acfuploader=r,i.renderFilters&&i.renderFilters()}}),acf.models.EditMediaPopup=n.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Update","verb")),n.prototype.setup.apply(this,arguments)},addFrameEvents:function(t,e){t.on("open",function(){this.$el.closest(".media-modal").addClass("acf-expanded"),"browse"!=this.content.mode()&&this.content.mode("browse");var e,i=this.state().get("selection"),n=wp.media.attachment(t.acf.get("attachment"));i.add(n)},t),n.prototype.addFrameEvents.apply(this,arguments)}});var a=new acf.Model({id:"customizePrototypes",wait:"ready",initialize:function(){if(acf.isset(window,"wp","media","view")){var t=i();t&&acf.isset(wp,"media","view","settings","post")&&(wp.media.view.settings.post.id=t),this.customizeAttachmentsButton(),this.customizeAttachmentsRouter(),this.customizeAttachmentFilters(),this.customizeAttachmentCompat(),this.customizeAttachmentLibrary()}},customizeAttachmentsButton:function(){if(acf.isset(wp,"media","view","Button")){var t=wp.media.view.Button;wp.media.view.Button=t.extend({initialize:function(){var t=_.defaults(this.options,this.defaults);this.model=new Backbone.Model(t),this.listenTo(this.model,"change",this.render)}})}},customizeAttachmentsRouter:function(){if(acf.isset(wp,"media","view","Router")){var e=wp.media.view.Router;wp.media.view.Router=e.extend({addExpand:function(){var e=t(['',''+acf.__("Expand Details")+"",''+acf.__("Collapse Details")+"",""].join(""));e.on("click",function(e){e.preventDefault();var i=t(this).closest(".media-modal");i.hasClass("acf-expanded")?i.removeClass("acf-expanded"):i.addClass("acf-expanded")}),this.$el.append(e)},initialize:function(){return e.prototype.initialize.apply(this,arguments),this.addExpand(),this}})}},customizeAttachmentFilters:function(){var e;acf.isset(wp,"media","view","AttachmentFilters","All")&&(wp.media.view.AttachmentFilters.All.prototype.renderFilters=function(){this.$el.html(_.chain(this.filters).map(function(e,i){return{el:t("").val(i).html(e.text)[0],priority:e.priority||50}},this).sortBy("priority").pluck("el").value())})},customizeAttachmentCompat:function(){if(acf.isset(wp,"media","view","AttachmentCompat")){var e=wp.media.view.AttachmentCompat,i=!1;wp.media.view.AttachmentCompat=e.extend({render:function(){return this.rendered?this:(e.prototype.render.apply(this,arguments),this.$("#acf-form-data").length?(clearTimeout(i),i=setTimeout(t.proxy(function(){this.rendered=!0,acf.doAction("append",this.$el)},this),50),this):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 t=wp.media.view.Attachment.Library;wp.media.view.Attachment.Library=t.extend({render:function(){var e=acf.isget(this,"controller","acf"),i=acf.isget(this,"model","attributes");if(e&&i){i.acf_errors&&this.$el.addClass("acf-disabled");var n=e.get("selected");n&&n.indexOf(i.id)>-1&&this.$el.addClass("acf-selected")}return t.prototype.render.apply(this,arguments)},toggleSelection:function(e){var i=this.collection,n=this.options.selection,a=this.model,r=n.single(),o=this.controller,s=acf.isget(this,"model","attributes","acf_errors"),c=o.$el.find(".media-frame-content .media-sidebar");if(c.children(".acf-selection-error").remove(),c.children().removeClass("acf-hidden"),o&&s){var l=acf.isget(this,"model","attributes","filename");return c.children().addClass("acf-hidden"),c.prepend(['
        ',''+acf.__("Restricted")+"",''+l+"",''+s+"","
        "].join("")),n.reset(),void n.single(a)}return t.prototype.toggleSelection.apply(this,arguments)}})}}})}(jQuery),function(t,e){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 e=t("#page_template");return e.length?e.val():null},getPageParent:function(e,i){var i;return(i=t("#parent_id")).length?i.val():null},getPageType:function(t,e){return this.getPageParent()?"child":"parent"},getPostType:function(){return t("#post_type").val()},getPostFormat:function(e,i){var i;if((i=t("#post-formats-select input:checked")).length){var n=i.val();return"0"==n?"standard":n}return null},getPostCoreTerms:function(){var e={},i=acf.serialize(t(".categorydiv, .tagsdiv"));for(var n in i.tax_input&&(e=i.tax_input),i.post_category&&(e.category=i.post_category),e)acf.isArray(e[n])||(e[n]=e[n].split(/,[\s]?/));return e},getPostTerms:function(){var t=this.getPostCoreTerms();for(var e in acf.getFields({type:"taxonomy"}).map(function(e){if(e.get("save")){var i=e.val(),n=e.get("taxonomy");i&&(t[n]=t[n]||[],i=acf.isArray(i)?i:[i],t[n]=t[n].concat(i))}}),null!==(productType=this.getProductType())&&(t.product_type=[productType]),t)t[e]=acf.uniqueArray(t[e]);return t},getProductType:function(){var e=t("#product-type");return e.length?e.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 i=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=t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:i})}},onChange:function(t,e){this.setTimeout(this.check,1)},renderPostScreen:function(e){var i=[],n=function(e,i){var n=t._data(e[0]).events;for(var a in n)for(var r=0;r=0;a--)if(t("#"+i[a]).length)return t("#"+i[a]).after(t("#"+e));for(var a=n+1;a','",'

        ',""+r.title+"","

        ",'
        ',r.html,"
        ","
        "].join(""));if(t("#adv-settings").length){var l=t("#adv-settings .metabox-prefs"),u=t(['"].join(""));n(l.find("input").first(),u.find("input")),l.append(u)}n(t(".postbox .handlediv").first(),c.children(".handlediv")),n(t(".postbox .hndle").first(),c.children(".hndle")),"acf_after_title"==r.position&&(r.position="normal"),"side"===r.position?t("#"+r.position+"-sortables").append(c):t("#"+r.position+"-sortables").prepend(c);var d=[];if(e.results.map(function(e){r.position===e.position&&t("#"+r.position+"-sortables #"+e.id).length&&d.push(e.id)}),a(r.id,d),e.sorted)for(var f in e.sorted){var d=e.sorted[f].split(",");if(a(r.id,d))break}s=acf.newPostbox(r),acf.doAction("append",c),acf.doAction("append_postbox",s)}s.showEnable(),acf.doAction("show_postbox",s),i.push(r.id)}),acf.getPostboxes().map(function(t){-1===i.indexOf(t.get("id"))&&(t.hideDisable(),acf.doAction("hide_postbox",t))}),t("#acf-style").html(e.style)},renderUserScreen:function(t){}});var i=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,acf.unload.disable())},onChange:function(){var t=wp.data.select("core/editor").getPostEdits(),e=["template","parent","format"],i;(wp.data.select("core").getTaxonomies()||[]).map(function(t){e.push(t.rest_base)}),(e=e.filter(this.proxy(function(e){return void 0!==t[e]&&t[e]!==this.get(e)}))).length&&this.triggerChange(t)},triggerChange:function(t){void 0!==t&&(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 t={},e;return(wp.data.select("core").getTaxonomies()||[]).map(function(e){var i=wp.data.select("core/editor").getEditedPostAttribute(e.rest_base);i&&(t[e.slug]=i)}),t}});acf.screen.refreshAvailableMetaBoxesPerLocation=function(){var t=wp.data.select("core/edit-post"),e=wp.data.dispatch("core/edit-post"),i={};t.getActiveMetaBoxLocations().map(function(e){i[e]=t.getMetaBoxesPerLocation(e)});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")})}}),e.setAvailableMetaBoxesPerLocation(i)}}(jQuery),function(t,e){function i(){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==i())var n=new a(t,e);else var n=new r(t,e);return acf.doAction("new_select2",n),n};var n=acf.Model.extend({setup:function(e,i){t.extend(this.data,i),this.$el=e},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(e){e=acf.parseArgs(e,{id:"",text:"",selected:!1});var i=this.getOption(e.id);return i.length||((i=t("")).html(e.text),i.attr("value",e.id),i.prop("selected",e.selected),this.$el.append(i)),i},getValue:function(){var e=[],i=this.$el.find("option:selected");return i.exists()?((i=i.sort(function(t,e){return+t.getAttribute("data-i")-+e.getAttribute("data-i")})).each(function(){var i=t(this);e.push({$el:i,id:i.attr("value"),text:i.text()})}),e):e},mergeOptions:function(){},getChoices:function(){var e=function(i){var n=[];return i.children().each(function(){var i=t(this);i.is("optgroup")?n.push({text:i.attr("label"),children:e(i)}):n.push({id:i.attr("value"),text:i.text()})}),n};return e(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(e,i){var e;return(e=this.getAjaxResults(e,i)).more&&(e.pagination={more:!0}),setTimeout(t.proxy(this.mergeOptions,this),1),e},destroy:function(){this.$el.data("select2")&&this.$el.select2("destroy"),this.$el.siblings(".select2-container").remove()}}),a=n.extend({initialize:function(){var e=this.$el,i={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),multiple:this.get("multiple"),data:[],escapeMarkup:function(t){return t}};i.multiple&&this.getValue().map(function(t){t.$el.detach().appendTo(e)}),e.removeData("ajax"),e.removeAttr("data-ajax"),this.get("ajax")&&(i.ajax={ -url:acf.get("ajaxurl"),delay:250,dataType:"json",type:"post",cache:!1,data:t.proxy(this.getAjaxData,this),processResults:t.proxy(this.processAjaxResults,this)});var n=this.get("field");i=acf.applyFilters("select2_args",i,e,this.data,n||!1,this),e.select2(i);var a=e.next(".select2-container");if(i.multiple){var r=a.find("ul");r.sortable({stop:function(i){r.find(".select2-selection__choice").each(function(){var i;t(t(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)}))}a.addClass("-acf"),acf.doAction("select2_init",e,i,this.data,n||!1,this)},mergeOptions:function(){var e=!1,i=!1;t('.select2-results__option[role="group"]').each(function(){var n=t(this).children("ul"),a=t(this).children("strong");if(i&&i.text()===a.text())return e.append(n.children()),void t(this).remove();e=n,i=a})}}),r=n.extend({initialize:function(){var e=this.$el,i=this.getValue(),n=this.get("multiple"),a={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(n?i:i.shift())}},r=e.siblings("input");r.length||(r=t(''),e.before(r)),inputValue=i.map(function(t){return t.id}).join("||"),r.val(inputValue),a.multiple&&i.map(function(t){t.$el.detach().appendTo(e)}),a.allowClear&&(a.data=a.data.filter(function(t){return""!==t.id})),e.removeData("ajax"),e.removeAttr("data-ajax"),this.get("ajax")&&(a.ajax={url:acf.get("ajaxurl"),quietMillis:250,dataType:"json",type:"post",cache:!1,data:t.proxy(this.getAjaxData,this),results:t.proxy(this.processAjaxResults,this)});var o=this.get("field");a=acf.applyFilters("select2_args",a,e,this.data,o||!1,this),r.select2(a);var s=r.select2("container"),c=t.proxy(this.getOption,this);if(a.multiple){var l=s.find("ul");l.sortable({stop:function(){l.find(".select2-search-choice").each(function(){var i=t(this).data("select2Data"),n;c(i.id).detach().appendTo(e)}),e.trigger("change")}})}r.on("select2-selecting",function(i){var n=i.choice,a=c(n.id);a.length||(a=t('")),a.detach().appendTo(e)}),s.addClass("-acf"),acf.doAction("select2_init",e,a,this.data,o||!1,this),r.on("change",function(){var t=r.val();t.indexOf("||")&&(t=t.split("||")),e.val(t).trigger("change")}),e.hide()},mergeOptions:function(){var e=!1,i=!1;t("#select2-drop .select2-result-with-children").each(function(){var n=t(this).children("ul"),a=t(this).children(".select2-result-label");if(i&&i.text()===a.text())return i.append(n.children()),void t(this).remove();e=n,i=a})},getAjaxData:function(t,e){var i={term:t,page:e};return n.prototype.getAjaxData.apply(this,[i])}}),o=new acf.Model({priority:5,wait:"prepare",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),n=acf.get("select2L10n"),a=i();return!!n&&(0!==t.indexOf("en")&&void(4==a?this.addTranslations4():3==a&&this.addTranslations3()))},addTranslations4:function(){var t=acf.get("select2L10n"),e=acf.get("locale");e=e.replace("_","-");var i={errorLoading:function(){return t.load_fail},inputTooLong:function(e){var i=e.input.length-e.maximum;return i>1?t.input_too_long_n.replace("%d",i):t.input_too_long_1},inputTooShort:function(e){var i=e.minimum-e.input.length;return i>1?t.input_too_short_n.replace("%d",i):t.input_too_short_1},loadingMore:function(){return t.load_more},maximumSelected:function(e){var i=e.maximum;return i>1?t.selection_too_long_n.replace("%d",i):t.selection_too_long_1},noResults:function(){return t.matches_0},searching:function(){return t.searching}};jQuery.fn.select2.amd.define("select2/i18n/"+e,[],function(){return i})},addTranslations3:function(){var e=acf.get("select2L10n"),i=acf.get("locale");i=i.replace("_","-");var n={formatMatches:function(t){return t>1?e.matches_n.replace("%d",t):e.matches_1},formatNoMatches:function(){return e.matches_0},formatAjaxError:function(){return e.load_fail},formatInputTooShort:function(t,i){var n=i-t.length;return n>1?e.input_too_short_n.replace("%d",n):e.input_too_short_1},formatInputTooLong:function(t,i){var n=t.length-i;return n>1?e.input_too_long_n.replace("%d",n):e.input_too_long_1},formatSelectionTooBig:function(t){return t>1?e.selection_too_long_n.replace("%d",t):e.selection_too_long_1},formatLoadMore:function(){return e.load_more},formatSearching:function(){return e.searching}};t.fn.select2.locales=t.fn.select2.locales||{},t.fn.select2.locales[i]=n,t.extend(t.fn.select2.defaults,n)}})}(jQuery),function(t,e){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(e,i){var n=t("#"+e),a=this.defaults(),r=acf.get("toolbars"),o=i.field||!1,s=o.$el||!1;if("undefined"==typeof tinymce)return!1;if(!a)return!1;if(tinymce.get(e))return this.enable(e);var c=t.extend({},a.tinymce,i.tinymce);c.id=e,c.selector="#"+e;var l=i.toolbar;if(l&&r&&r[l])for(var u=1;u<=4;u++)c["toolbar"+u]=r[l][u]||"";if(c.setup=function(t){t.on("change",function(e){t.save(),n.trigger("change")}),t.on("mouseup",function(t){var e=new MouseEvent("mouseup");window.dispatchEvent(e)})},c.wp_autoresize_on=!1,c.tadv_noautop||(c.wpautop=!0),c=acf.applyFilters("wysiwyg_tinymce_settings",c,e,o),tinyMCEPreInit.mceInit[e]=c,"visual"==i.mode){var d=tinymce.init(c),f=tinymce.get(e);if(!f)return!1;f.acf=i.field,acf.doAction("wysiwyg_tinymce_init",f,f.id,c,o)}},initializeQuicktags:function(e,i){var n=this.defaults();if("undefined"==typeof quicktags)return!1;if(!n)return!1;var a=t.extend({},n.quicktags,i.quicktags);a.id=e;var r=i.field||!1,o=r.$el||!1;a=acf.applyFilters("wysiwyg_quicktags_settings",a,a.id,r),tinyMCEPreInit.qtInit[e]=a;var s=quicktags(a);if(!s)return!1;this.buildQuicktags(s),acf.doAction("wysiwyg_quicktags_init",s,s.id,a,r)},buildQuicktags:function(t){var e,i,n,a,r,t,o,s,c,l,u=",strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,";for(s in e=t.canvas,i=t.name,n=t.settings,r="",a={},c="",l=t.id,n.buttons&&(c=","+n.buttons+","),edButtons)edButtons[s]&&(o=edButtons[s].id,c&&-1!==u.indexOf(","+o+",")&&-1===c.indexOf(","+o+",")||edButtons[s].instance&&edButtons[s].instance!==l||(a[o]=edButtons[s],edButtons[s].html&&(r+=edButtons[s].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 i=new acf.Model({priority:5,actions:{prepare:"onPrepare",ready:"onReady"},onPrepare:function(){var e=t("#acf-hidden-wp-editor");e.exists()&&e.appendTo("body")},onReady:function(){acf.isset(window,"wp","oldEditor")&&(wp.editor.autop=wp.oldEditor.autop,wp.editor.removep=wp.oldEditor.removep),acf.isset(window,"tinymce","on")&&tinymce.on("AddEditor",function(t){var e=t.editor;"acf"===e.id.substr(0,3)&&(e=tinymce.editors.content||e,tinymce.activeEditor=e,wpActiveEditor=e.id)})}})}(jQuery),function(t,e){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 t=[],e=[];return this.getErrors().map(function(i){if(i.input){var n=e.indexOf(i.input);n>-1?t[n]=i:(t.push(i),e.push(i.input))}}),t},getGlobalErrors:function(){return this.getErrors().filter(function(t){return!t.input})},showErrors:function(){if(this.hasErrors()){var e=this.getFieldErrors(),i=this.getGlobalErrors(),n=0,a=!1;e.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 r=acf.__("Validation failed");if(i.map(function(t){r+=". "+t.message}),1==n?r+=". "+acf.__("1 field requires attention"):n>1&&(r+=". "+acf.__("%d fields require attention").replace("%d",n)),this.has("notice"))this.get("notice").update({type:"error",text:r});else{var o=acf.newNotice({type:"error",text:r,target:this.$el});this.set("notice",o)}a||(a=this.get("notice").$el),setTimeout(function(){t("html, body").animate({scrollTop:a.offset().top-t(window).height()/2},500)},10)}},onChangeStatus:function(t,e,i,n){this.$el.removeClass("is-"+n).addClass("is-"+i)},validate:function(e){if(e=acf.parseArgs(e,{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(e.event){var i=t.Event(null,e.event);e.success=function(){acf.enableSubmit(t(i.target)).trigger(i)}}acf.doAction("validation_begin",this.$el),acf.lockForm(this.$el),e.loading(this.$el,this),this.set("status","validating");var n=function(t){if(acf.isAjaxSuccess(t)){var e=acf.applyFilters("validation_complete",t.data,this.$el,this);e.valid||this.addErrors(e.errors)}},a=function(){acf.unlockForm(this.$el),this.hasErrors()?(this.set("status","invalid"),acf.doAction("validation_failure",this.$el,this),this.showErrors(),e.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),e.success(this.$el,this),acf.lockForm(this.$el),e.reset&&this.reset()),e.complete(this.$el,this),this.clearErrors()},r=acf.serialize(this.$el);return r.action="acf/validate_save_post",t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(r),type:"post",dataType:"json",context:this,success:n,complete:a}),!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(e){if("safari"!==acf.get("browser")){var i=t(".acf-field [name]",e);i.length&&this.on(i,"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(e,i){var n;acf.validateForm({form:t("#editor"),event:e,reset:!0,failure:function(t,e){var i=e.get("notice").$el;i.appendTo(".components-notice-list"),i.find(".acf-notice-dismiss").removeClass("small")}})||(e.preventDefault(),e.stopImmediatePropagation())},onSubmitPost:function(e,i){"dopreview"===t("input#wp-preview").val()&&(this.set("ignore",!0),acf.unlockForm(i))},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(){return this.set("ignore",!1),this.set("originalEvent",!1),!0}})}(jQuery),function(t,e){var i=new acf.Model({priority:90,initialize:function(){this.refresh=acf.debounce(this.refresh,0)},actions:{new_field:"refresh",show_field:"refresh",hide_field:"refresh",remove_field:"refresh",unmount_field:"refresh",remount_field:"refresh"},refresh:function(){acf.doAction("refresh"),t(window).trigger("acfrefresh")}}),n=new acf.Model({priority:1,actions:{sortstart:"onSortstart",sortstop:"onSortstop"},onSortstart:function(t){acf.doAction("unmount",t)},onSortstop:function(t){acf.doAction("remount",t)}}),a=new acf.Model({actions:{sortstart:"onSortstart"},onSortstart:function(e,i){e.is("tr")&&(i.html(''),e.addClass("acf-sortable-tr-helper"),e.children().each(function(){t(this).width(t(this).width())}),i.height(e.height()+"px"),e.removeClass("acf-sortable-tr-helper"))}}),r=new acf.Model({actions:{after_duplicate:"onAfterDuplicate"},onAfterDuplicate:function(e,i){var n=[];e.find("select").each(function(e){n.push(t(this).val())}),i.find("select").each(function(e){t(this).val(n[e])})}}),o=new acf.Model({id:"tableHelper",priority:20,actions:{refresh:"renderTables"},renderTables:function(e){var i=this;t(".acf-table:visible").each(function(){i.renderTable(t(this))})},renderTable:function(e){var i=e.find("> thead > tr:visible > th[data-key]"),n=e.find("> tbody > tr:visible > td[data-key]");if(!i.length||!n.length)return!1;i.each(function(e){var i=t(this),a=i.data("key"),r=n.filter('[data-key="'+a+'"]'),o=r.filter(".acf-hidden");r.removeClass("acf-empty"),r.length===o.length?acf.hide(i):(acf.show(i),o.addClass("acf-empty"))}),i.css("width","auto"),i=i.not(".acf-hidden");var a=100,r=i.length,o;i.filter("[data-width]").each(function(){var e=t(this).data("width");t(this).css("width",e+"%"),a-=e});var s=i.not("[data-width]");if(s.length){var c=a/s.length;s.css("width",c+"%"),a=0}a>0&&i.last().css("width","auto"),n.filter(".-collapsed-target").each(function(){var e=t(this);e.parent().hasClass("-collapsed")?e.attr("colspan",i.length):e.removeAttr("colspan")})}}),s=new acf.Model({id:"fieldsHelper",priority:30,actions:{refresh:"renderGroups"},renderGroups:function(){var e=this;t(".acf-fields:visible").each(function(){e.renderGroup(t(this))})},renderGroup:function(e){var i=0,n=0,a=t(),r=e.children(".acf-field[data-width]:visible");return!!r.length&&(e.hasClass("-left")?(r.removeAttr("data-width"),r.css("width","auto"),!1):(r.removeClass("-r0 -c0").css({"min-height":0}),r.each(function(e){var r=t(this),o=r.position(),s=Math.ceil(o.top),c=Math.ceil(o.left);a.length&&s>i&&(a.css({"min-height":n+"px"}),o=r.position(),s=Math.ceil(o.top),c=Math.ceil(o.left),i=0,n=0,a=t()),acf.get("rtl")&&(c=Math.ceil(r.parent().width()-(o.left+r.outerWidth()))),0==s?r.addClass("-r0"):0==c&&r.addClass("-c0");var l=Math.ceil(r.outerHeight())+1;n=Math.max(n,l),i=Math.max(i,s),a=a.add(r)}),void(a.length&&a.css({"min-height":n+"px"}))))}})}(jQuery),function(t,e){acf.newCompatibility=function(t,e){return(e=e||{}).__proto__=t.__proto__,t.__proto__=e,t.compatibility=e,e},acf.getCompatibility=function(t){return t.compatibility||null};var i=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});i._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},i.get_selector=function(e){var i=".acf-field";if(!e)return i;if(t.isPlainObject(e)){if(t.isEmptyObject(e))return i;for(var n in e){e=e[n];break}}return i+="-"+e,i=acf.strReplace("_","-",i),i=acf.strReplace("field-field-","field-",i)},i.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)},i.get_field=function(t,e){var i=this.get_fields.apply(this,arguments);return!!i.length&&i.first()},i.get_closest_field=function(t,e){return t.closest(this.get_selector(e))},i.get_field_wrap=function(t){return t.closest(this.get_selector())},i.get_field_key=function(t){return t.data("key")},i.get_field_type=function(t){return t.data("type")},i.get_data=function(t,e){return acf.parseArgs(t.data(),e)},i.maybe_get=function(t,e,i){void 0===i&&(i=null),keys=String(e).split(".");for(var n=0;n1){for(var c=0;c0?e.substr(0,a):e,o=a>0?e.substr(a+1):"",s=function(e){e.$el=t(this),acf.field_group&&(e.$field=e.$el.closest(".acf-field-object")),"function"==typeof n.event&&(e=n.event(e)),n[i].apply(n,arguments)};o?t(document).on(r,o,s):t(document).on(r,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}},i.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(e,i){var n=this,a=e.substr(0,e.indexOf(" ")),r=e.substr(e.indexOf(" ")+1),o=acf.get_selector(n.type);t(document).on(a,o+" "+r,function(e){var a=t(this),r=acf.get_closest_field(a,n.type);r.length&&(r.is(n.$field)||n.set("$field",r),e.$el=a,e.$field=r,n[i].apply(n,[e]))})},_set_$field:function(){"function"==typeof this.focus&&this.focus()},doFocus:function(t){return this.set("$field",t)}});var o=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});i.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)}})}},i.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}}),i.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()}},i.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}),i.ajax=acf.screen}(jQuery); \ No newline at end of file +!function(t,e){var i={};window.acf=i,i.data={},i.get=function(t){return this.data[t]||null},i.has=function(t){return null!==this.get(t)},i.set=function(t,e){return this.data[t]=e,this};var n=0;i.uniqueId=function(t){var e=++n+"";return t?t+e:e},i.uniqueArray=function(t){function e(t,e,i){return i.indexOf(t)===e}return t.filter(e)};var a="";i.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},i.strReplace=function(t,e,i){return i.split(t).join(e)},i.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()})},i.strPascalCase=function(t){var e=i.strCamelCase(t);return e.charAt(0).toUpperCase()+e.slice(1)},i.strSlugify=function(t){return i.strReplace("_","-",t.toLowerCase())},i.strSanitize=function(t){var e={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","ß":"s","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o"," ":"_","'":"","?":"","/":"","\\":"",".":"",",":"","`":"",">":"","<":"",'"':"","[":"","]":"","|":"","{":"","}":"","(":"",")":""},i=/\W/g,n=function(t){return void 0!==e[t]?e[t]:t};return t=(t=t.replace(i,n)).toLowerCase()},i.strMatch=function(t,e){for(var i=0,n=Math.min(t.length,e.length),a=0;a").html(e).text()},i.strEscape=function(e){return t("
        ").text(e).html()},i.parseArgs=function(e,i){return"object"!=typeof e&&(e={}),"object"!=typeof i&&(i={}),t.extend({},i,e)},null==window.acfL10n&&(acfL10n={}),i.__=function(t){return acfL10n[t]||t},i._x=function(t,e){return acfL10n[t+"."+e]||acfL10n[t]||t},i._n=function(t,e,n){return 1==n?i.__(t):i.__(e)},i.isArray=function(t){return Array.isArray(t)},i.isObject=function(t){return"object"==typeof t};var r=function(t,e,n){var a=(e=e.replace("[]","[%%index%%]")).match(/([^\[\]])+/g);if(a)for(var r=a.length,o=t,s=0;s
        ');var s=e.parent();e.css({height:i,width:n,margin:a,position:"absolute"}),setTimeout(function(){s.css({opacity:0,height:t.endHeight})},50),setTimeout(function(){e.attr("style",o),s.remove(),t.complete()},301)},u=function(e){var i=e.target,n=i.height(),a=i.children().length,r=t('
        ');i.addClass("acf-remove-element"),setTimeout(function(){i.html(r)},251),setTimeout(function(){i.removeClass("acf-remove-element"),r.css({height:e.endHeight})},300),setTimeout(function(){i.remove(),e.complete()},451)};i.duplicate=function(t){t instanceof jQuery&&(t={target:t});var e=0;(t=i.parseArgs(t,{target:!1,search:"",replace:"",before:function(t){},after:function(t,e){},append:function(t,i){t.after(i),e=1}})).target=t.target||t.$el;var n=t.target;t.search=t.search||n.attr("data-id"),t.replace=t.replace||i.uniqid(),t.before(n),i.doAction("before_duplicate",n);var a=n.clone();return i.rename({target:a,search:t.search,replace:t.replace}),a.removeClass("acf-clone"),a.find(".ui-sortable").removeClass("ui-sortable"),t.after(n,a),i.doAction("after_duplicate",n,a),t.append(n,a),i.doAction("append",a),a},i.rename=function(t){t instanceof jQuery&&(t={target:t});var e=(t=i.parseArgs(t,{target:!1,destructive:!1,search:"",replace:""})).target,n=t.search||e.attr("data-id"),a=t.replace||i.uniqid("acf"),r=function(t,e){return e.replace(n,a)};if(t.destructive){var o=e.outerHTML();o=i.strReplace(n,a,o),e.replaceWith(o)}else e.attr("data-id",a),e.find('[id*="'+n+'"]').attr("id",r),e.find('[for*="'+n+'"]').attr("for",r),e.find('[name*="'+n+'"]').attr("name",r);return e},i.prepareForAjax=function(t){return t.nonce=i.get("nonce"),t.post_id=i.get("post_id"),i.has("language")&&(t.lang=i.get("language")),t=i.applyFilters("prepare_for_ajax",t)},i.startButtonLoading=function(t){t.prop("disabled",!0),t.after(' ')},i.stopButtonLoading=function(t){t.prop("disabled",!1),t.next(".acf-loading").remove()},i.showLoading=function(t){t.append('
        ')},i.hideLoading=function(t){t.children(".acf-loading-overlay").remove()},i.updateUserSetting=function(e,n){var a={action:"acf/ajax/user_setting",name:e,value:n};t.ajax({url:i.get("ajaxurl"),data:i.prepareForAjax(a),type:"post",dataType:"html"})},i.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))},i.show=function(t,e){return e&&i.unlock(t,"hidden",e),!i.isLocked(t,"hidden")&&(!!t.hasClass("acf-hidden")&&(t.removeClass("acf-hidden"),!0))},i.hide=function(t,e){return e&&i.lock(t,"hidden",e),!t.hasClass("acf-hidden")&&(t.addClass("acf-hidden"),!0)},i.isHidden=function(t){return t.hasClass("acf-hidden")},i.isVisible=function(t){return!i.isHidden(t)};var d=function(t,e){return!t.hasClass("acf-disabled")&&(e&&i.unlock(t,"disabled",e),!i.isLocked(t,"disabled")&&(!!t.prop("disabled")&&(t.prop("disabled",!1),!0)))};i.enable=function(e,i){if(e.attr("name"))return d(e,i);var n=!1;return e.find("[name]").each(function(){var e;d(t(this),i)&&(n=!0)}),n};var f=function(t,e){return e&&i.lock(t,"disabled",e),!t.prop("disabled")&&(t.prop("disabled",!0),!0)};i.disable=function(e,i){if(e.attr("name"))return f(e,i);var n=!1;return e.find("[name]").each(function(){var e;f(t(this),i)&&(n=!0)}),n},i.isset=function(t){for(var e=1;e-1){var o=window.URL||window.webkitURL,s=new Image;s.onload=function(){a.width=this.width,a.height=this.height,e(a)},s.src=o.createObjectURL(r)}else e(a);else e(a)},i.isAjaxSuccess=function(t){return t&&t.success},i.getAjaxMessage=function(t){return i.isget(t,"data","message")},i.getAjaxError=function(t){return i.isget(t,"data","error")},i.renderSelect=function(t,e){var n=t.val(),a=[],r=function(t){var e="";return t.map(function(t){var n=t.text||t.label||"",o=t.id||t.value||"";a.push(o),t.children?e+=''+r(t.children)+"":e+='"}),e};return t.html(r(e)),a.indexOf(n)>-1&&t.val(n),t.val()};var h=function(t,e){return t.data("acf-lock-"+e)||[]},p=function(t,e,i){t.data("acf-lock-"+e,i)},g,m,v,y,b,_;i.lock=function(t,e,i){var n=h(t,e),a;n.indexOf(i)<0&&(n.push(i),p(t,e,n))},i.unlock=function(t,e,i){var n=h(t,e),a=n.indexOf(i);return a>-1&&(n.splice(a,1),p(t,e,n)),0===n.length},i.isLocked=function(t,e){return h(t,e).length>0},i.isGutenberg=function(){return window.wp&&wp.data&&wp.data.select&&wp.data.select("core/editor")},i.objectToArray=function(t){return Object.keys(t).map(function(e){return t[e]})},i.debounce=function(t,e){var i;return function(){var n=this,a=arguments,r=function(){t.apply(n,a)};clearTimeout(i),i=setTimeout(r,e)}},i.throttle=function(t,e){var i=!1;return function(){i||(i=!0,setTimeout(function(){i=!1},e),t.apply(this,arguments))}},i.isInView=function(t){var e=t.getBoundingClientRect();return e.top!==e.bottom&&e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},i.onceInView=(g=[],m=0,v=function(){g.forEach(function(t){i.isInView(t.el)&&(t.callback.apply(this),_(t.id))})},y=i.debounce(v,300),b=function(e,i){g.length||t(window).on("scroll resize",y).on("acfrefresh orientationchange",v),g.push({id:m++,el:e,callback:i})},_=function(e){(g=g.filter(function(t){return t.id!==e})).length||t(window).off("scroll resize",y).off("acfrefresh orientationchange",v)},function(t,e){t instanceof jQuery&&(t=t[0]),i.isInView(t)?e.apply(this):b(t,e)}),i.once=function(t){var e=0;return function(){return e++>0?t=void 0:t.apply(this,arguments)}},t.fn.exists=function(){return t(this).length>0},t.fn.outerHTML=function(){return t(this).get(0).outerHTML},Array.prototype.indexOf||(Array.prototype.indexOf=function(e){return t.inArray(e,this)}),t(document).ready(function(){i.doAction("ready")}),t(window).on("load",function(){i.doAction("load")}),t(window).on("beforeunload",function(){i.doAction("unload")}),t(window).on("resize",function(){i.doAction("resize")}),t(document).on("sortstart",function(t,e){i.doAction("sortstart",e.item,e.placeholder)}),t(document).on("sortstop",function(t,e){i.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&&s("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 o(t,e){return"string"==typeof t&&s("filters",t,e),d}function s(t,e,i,n){if(f[t][e])if(i){var a=f[t][e],r;if(n)for(r=a.length;r--;){var o=a[r];o.callback===i&&o.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},o=f[t][e];o?(o.push(r),o=l(o)):o=[r],f[t][e]=o}function l(t){for(var e,i,n,a=1,r=t.length;ae.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','
        ','

        ','
        ','
        ',"
        ",'
        ',""].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(){t("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(t,e){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'
        '},setup:function(e){t.extend(this.data,e),this.$el=t(this.tmpl())},initialize:function(){this.render(),this.show()},render:function(){this.type(this.get("type")),this.html("

        "+this.get("text")+"

        "),this.get("dismiss")&&(this.$el.append(''),this.$el.addClass("-dismiss"));var t=this.get("timeout");t&&this.away(t)},update:function(e){t.extend(this.data,e),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 e=t(".acf-admin-notice");e.length&&t("h1:first").after(e)}})}(jQuery),function(t,e){var i=new acf.Model({wait:"prepare",priority:1,initialize:function(){(acf.get("postboxes")||[]).map(acf.newPostbox)}});acf.getPostbox=function(e){return"string"==typeof e&&(e=t("#"+e)),acf.getInstance(e)},acf.getPostboxes=function(){return acf.getInstances(t(".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(e){e.editLink&&(e.edit=e.editLink),t.extend(this.data,e),this.$el=this.$postbox()},$postbox:function(){return t("#"+this.get("id"))},$hide:function(){return t("#"+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(){if(this.$el.addClass("acf-postbox"),this.$el.removeClass("hide-if-js"),"block"!==acf.get("editor")){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(''),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(t,e){acf.newTooltip=function(t){return"object"!=typeof t&&(t={text:t}),void 0!==t.confirmRemove?(t.textConfirm=acf.__("Remove"),t.textCancel=acf.__("Cancel"),new n(t)):void 0!==t.confirm?new n(t):new i(t)};var i=acf.Model.extend({data:{text:"",timeout:0,target:null},tmpl:function(){return'
        '},setup:function(e){t.extend(this.data,e),this.$el=t(this.tmpl())},initialize:function(){this.render(),this.show(),this.position();var e=this.get("timeout");e&&setTimeout(t.proxy(this.fade,this),e)},update:function(e){t.extend(this.data,e),this.initialize()},render:function(){this.html(this.get("text"))},show:function(){t("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 e=this.$el,i=this.get("target");if(i){e.removeClass("right left bottom top").css({top:0,left:0});var n=10,a=i.outerWidth(),r=i.outerHeight(),o=i.offset().top,s=i.offset().left,c=e.outerWidth(),l=e.outerHeight(),u=e.offset().top,d=o-l-u,f=s+a/2-c/2;f<10?(e.addClass("right"),f=s+a,d=o+r/2-l/2-u):f+c+10>t(window).width()?(e.addClass("left"),f=s-c,d=o+r/2-l/2-u):d-t(window).scrollTop()<10?(e.addClass("bottom"),d=o+r-u):e.addClass("top"),e.css({top:d,left:f})}}}),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 e=t(document),i=this.get("target");this.setTimeout(function(){this.on(e,"click","onCancel")}),this.get("targetConfirm")&&this.on(i,"click","onConfirm")},removeEvents:function(){acf.Model.prototype.removeEvents.apply(this);var e=t(document),i=this.get("target");this.off(e,"click"),this.off(i,"click")},render:function(){var t,e,i,n=[this.get("text")||acf.__("Are you sure?"),''+(this.get("textConfirm")||acf.__("Yes"))+"",''+(this.get("textCancel")||acf.__("No"))+""].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 a=new acf.Model({tooltip:!1,events:{"mouseenter .acf-js-tooltip":"showTitle","mouseup .acf-js-tooltip":"hideTitle","mouseleave .acf-js-tooltip":"hideTitle"},showTitle:function(t,e){var i=e.attr("title");i&&(e.attr("title",""),this.tooltip?this.tooltip.update({text:i,target:e}):this.tooltip=acf.newTooltip({text:i,target:e}))},hideTitle:function(t,e){this.tooltip.hide(),e.attr("title",this.tooltip.get("text"))}})}(jQuery),function(t,e){var i=[];acf.Field=acf.Model.extend({type:"",eventScope:".acf-field",wait:"ready",setup:function(t){this.$el=t,this.inherit(t),this.inherit(this.$control())},val:function(t){return void 0!==t?this.setValue(t):this.prop("disabled")?null:this.getValue()},getValue:function(){return this.$input().val()},setValue:function(t){return acf.val(this.$input(),t)},__:function(t){return acf._e(this.type,t)},$control:function(){return!1},$input:function(){return this.$("[name]:first")},$inputWrap:function(){return this.$(".acf-input:first")},$labelWrap:function(){return this.$(".acf-label:first")},getInputName:function(){return this.$input().attr("name")||""},parent:function(){var t=this.parents();return!!t.length&&t[0]},parents:function(){var t=this.$el.parents(".acf-field"),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(e){this.$el.addClass("acf-error"),void 0!==e&&this.showNotice({text:e,type:"error",dismiss:!1}),acf.doAction("invalid_field",this),this.$el.one("focus change","input, select, textarea",t.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=n(e),a,r=new(acf.models[i]||acf.Field)(t);return acf.doAction("new_field",r),r};var n=function(t){return acf.strPascalCase(t||"")+"Field"};acf.registerFieldType=function(t){var e,a=t.prototype.type,r=n(a);acf.models[r]=t,i.push(a)},acf.getFieldType=function(t){var e=n(t);return acf.models[e]||!1},acf.getFieldTypes=function(t){t=acf.parseArgs(t,{category:""});var e=[];return i.map(function(i){var n=acf.getFieldType(i),a=n.prototype;t.category&&a.category!==t.category||e.push(n)}),e}}(jQuery),function(t,e){acf.findFields=function(e){var i=".acf-field",n=!1;return(e=acf.parseArgs(e,{key:"",name:"",type:"",is:"",parent:!1,sibling:!1,limit:!1,visible:!1,suppressFilters:!1})).suppressFilters||(e=acf.applyFilters("find_fields_args",e)),e.key&&(i+='[data-key="'+e.key+'"]'),e.type&&(i+='[data-type="'+e.type+'"]'),e.name&&(i+='[data-name="'+e.name+'"]'),e.is&&(i+=e.is),e.visible&&(i+=":visible"),n=e.parent?e.parent.find(i):e.sibling?e.sibling.siblings(i):t(i),e.suppressFilters||(n=n.not(".acf-clone .acf-field"),n=acf.applyFilters("find_fields",n)),e.limit&&(n=n.slice(0,e.limit)),n},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(e){e instanceof jQuery||(e=acf.findFields(e));var i=[];return e.each(function(){var e=acf.getField(t(this));i.push(e)}),i},acf.findClosestField=function(t){return t.closest(".acf-field")},acf.getClosestField=function(t){var e=acf.findClosestField(t);return this.getField(e)};var i=function(t){var e=t,i=t+"_fields",a=t+"_field",r=function(t){var e=acf.arrayArgs(arguments),n=e.slice(1),a=acf.getFields({parent:t});if(a.length){var r=[i,a].concat(n);acf.doAction.apply(null,r)}},o=function(t){var e=acf.arrayArgs(arguments),i=e.slice(1);t.map(function(t,e){var n=[a,t].concat(i);acf.doAction.apply(null,n)})};acf.addAction(e,r),acf.addAction(i,o),n(t)},n=function(t){var e=t+"_field",i=t+"Field",n=function(n){var a=acf.arrayArgs(arguments),r=a.slice(1),s=["type","name","key"];s.map(function(t){var i="/"+t+"="+n.get(t);a=[e+i,n].concat(r),acf.doAction.apply(null,a)}),o.indexOf(t)>-1&&n.trigger(i,r)};acf.addAction(e,n)},a,r=["valid","invalid","enable","disable","new"],o=["remove","unmount","remount","sortstart","sortstop","show","hide","unload","valid","invalid","enable","disable"];["prepare","ready","load","append","remove","unmount","remount","sortstart","sortstop","show","hide","unload"].map(i),r.map(n);var s=new acf.Model({id:"fieldsEventManager",events:{'click .acf-field a[href="#"]':"onClick","change .acf-field":"onChange"},onClick:function(t){t.preventDefault()},onChange:function(){t("#_acf_changed").val(1)}})}(jQuery),function(t,e){var i=0,n=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 e=this.$el,n=this.$labelWrap(),r=this.$inputWrap(),o=this.$control(),s=r.children(".description");if(s.length&&n.append(s),this.$el.is("tr")){var c=this.$el.closest("table"),l=t('
        '),u=t('
        '),d=t('
          '),f=t("");l.append(n.html()),d.append(f),u.append(d),r.append(l),r.append(u),n.remove(),o.remove(),r.attr("colspan",2),n=l,r=u,o=f}e.addClass("acf-accordion"),n.addClass("acf-accordion-title"),r.addClass("acf-accordion-content"),i++,this.get("multi_expand")&&e.attr("multi-expand",1);var h=acf.getPreference("this.accordions")||[];void 0!==h[i-1]&&this.set("open",h[i-1]),this.get("open")&&(e.addClass("-open"),r.css("display","block")),n.prepend(a.iconHtml({open:this.get("open")}));var p=e.parent();o.addClass(p.hasClass("-left")?"-left":""),o.addClass(p.hasClass("-clear")?"-clear":""),o.append(e.nextUntil(".acf-field-accordion",".acf-field")),o.removeAttr("data-open data-multi_expand data-endpoint")}}});acf.registerFieldType(n);var a=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)},iconHtml:function(t){var e;return''},open:function(e){e.find(".acf-accordion-content:first").slideDown().css("display","block"),e.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!0})),e.addClass("-open"),acf.doAction("show",e),e.attr("multi-expand")||e.siblings(".acf-accordion.-open").each(function(){a.close(t(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(e){var i=[];t(".acf-accordion").each(function(){var e=t(this).hasClass("-open")?1:0;i.push(e)}),i.length&&acf.setPreference("this.accordions",i)}})}(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(t,e){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 e=[];return this.$(":checked").each(function(){e.push(t(this).val())}),!!e.length&&e},onChange:function(t,e){var i=e.prop("checked"),n=e.parent("label"),a=this.$toggle(),r;(i?n.addClass("selected"):n.removeClass("selected"),a.length)&&(0==this.$inputs().not(":checked").length?a.prop("checked",!0):a.prop("checked",!1))},onClickAdd:function(t,e){var i='
        • ';e.parent("li").before(i)},onClickToggle:function(t,e){var i=e.prop("checked"),n=this.$('input[type="checkbox"]'),a=this.$("label");n.prop("checked",i),i?a.addClass("selected"):a.removeClass("selected")},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 t=this.$input(),e=this.$inputText(),i=function(i){setTimeout(function(){acf.val(t,e.val())},1)},n={defaultColor:!1,palettes:!0,hide:!0,change:i,clear:i},n=acf.applyFilters("color_picker_args",n,this);e.wpColorPicker(n)}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=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(i);var n=new acf.Model({priority:5,wait:"ready",initialize:function(){var e=acf.get("locale"),i=acf.get("rtl"),n=acf.get("datePickerL10n");return!!n&&(void 0!==t.datepicker&&(n.isRTL=i,t.datepicker.regional[e]=n,void t.datepicker.setDefaults(n)))}});acf.newDatePicker=function(e,i){if(void 0===t.datepicker)return!1;i=i||{},e.datepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('
          ')}}(jQuery),function(t,e){var i=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(i);var n=new acf.Model({priority:5,wait:"ready",initialize:function(){var e=acf.get("locale"),i=acf.get("rtl"),n=acf.get("dateTimePickerL10n");return!!n&&(void 0!==t.timepicker&&(n.isRTL=i,t.timepicker.regional[e]=n,void t.timepicker.setDefaults(n)))}});acf.newDateTimePicker=function(e,i){if(void 0===t.timepicker)return!1;i=i||{},e.datetimepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('
          ')}}(jQuery),function(t,e){function i(e){if(r)return e();if(acf.isset(window,"google","maps","Geocoder"))return r=new google.maps.Geocoder,e();if(acf.addAction("google_map_api_loaded",e),!a){var i=acf.get("google_map_api");i&&(a=!0,t.ajax({url:i,dataType:"script",cache:!0,success:function(){r=new google.maps.Geocoder,acf.doAction("google_map_api_loaded")}}))}}var n=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")},$search:function(){return this.$(".search")},$canvas:function(){return this.$(".canvas")},setState:function(t){this.$control().removeClass("-value -loading -searching"),"default"===t&&(t=this.val()?"value":""),t&&this.$control().addClass("-"+t)},getValue:function(){var t=this.$input().val();return!!t&&JSON.parse(t)},setValue:function(t,e){var i="";t&&(i=JSON.stringify(t)),this.$input().val(i),e||(this.renderVal(t),acf.doAction("google_map_change",t,this.map,this))},renderVal:function(t){t?(this.setState("value"),this.$search().val(t.address),this.setPosition(t.lat,t.lng)):(this.setState(""),this.$search().val(""),this.map.marker.setVisible(!1))},newLatLng:function(t,e){return new google.maps.LatLng(parseFloat(t),parseFloat(e))},setPosition:function(t,e){this.map.marker.setPosition({lat:parseFloat(t),lng:parseFloat(e)}),this.map.marker.setVisible(!0),this.center()},center:function(){var t=this.map.marker.getPosition();if(t)var e=t.lat(),i=t.lng();else var e=this.get("lat"),i=this.get("lng");this.map.setCenter({lat:parseFloat(e),lng:parseFloat(i)})},initialize:function(){i(this.initializeMap.bind(this))},initializeMap:function(){var t=this.get("zoom"),e=this.get("lat"),i=this.get("lng"),n=this.val(),a={scrollwheel:!1,zoom:parseInt(n.zoom||t),center:{lat:parseFloat(n.lat||e),lng:parseFloat(n.lng||i)},mapTypeId:google.maps.MapTypeId.ROADMAP,marker:{draggable:!0,raiseOnDrag:!0},autocomplete:{}};a=acf.applyFilters("google_map_args",a,this);var r=new google.maps.Map(this.$canvas()[0],a),o=acf.parseArgs(a.marker,{draggable:!0,raiseOnDrag:!0,map:r});o=acf.applyFilters("google_map_marker_args",o,this);var s=new google.maps.Marker(o),c=!1,n;if(acf.isset(google,"maps","places","Autocomplete")){var l=a.autocomplete||{};l=acf.applyFilters("google_map_autocomplete_args",l,this),(c=new google.maps.places.Autocomplete(this.$search()[0],l)).bindTo("bounds",r)}this.addMapEvents(this,r,s,c),r.acf=this,r.marker=s,r.autocomplete=c,this.map=r,(n=this.getValue())&&this.setPosition(n.lat,n.lng),acf.doAction("google_map_init",r,s,this)},addMapEvents:function(t,e,i,n){google.maps.event.addListener(e,"click",function(e){var i=e.latLng.lat(),n=e.latLng.lng();t.searchPosition(i,n)}),google.maps.event.addListener(i,"dragend",function(){var e=this.getPosition().lat(),i=this.getPosition().lng();t.searchPosition(e,i)}),n&&google.maps.event.addListener(n,"place_changed",function(){var e=this.getPlace();t.searchPlace(e)}),google.maps.event.addListener(e,"zoom_changed",function(){var i=t.val();i&&(i.zoom=e.getZoom(),t.setValue(i,!0))})},searchPosition:function(t,e){this.setState("loading");var i={lat:t,lng:e};r.geocode({location:i},function(t,e){if(this.setState(""),"OK"!==e)this.showNotice({text:acf.__("Location not found: %s").replace("%s",e),type:"warning"});else{var i=this.parseResult(t[0]);this.val(i)}}.bind(this))},searchPlace:function(t){if(t&&t.name){if(!t.geometry)return this.searchAddress(t.name);var e=this.parseResult(t);this.val(e)}},searchAddress:function(t){if(t){var e=t.split(",");if(2==e.length){var i=parseFloat(e[0]),n=parseFloat(e[1]);if(i&&n)return this.searchPosition(i,n)}this.setState("loading"),r.geocode({address:t},function(e,i){if(this.setState(""),"OK"!==i)this.showNotice({text:acf.__("Location not found: %s").replace("%s",i),type:"warning"});else{var n=this.parseResult(e[0]);n.address=t,this.val(n)}}.bind(this))}},searchLocation:function(){if(!navigator.geolocation)return alert(acf.__("Sorry, this browser does not support geolocation"));this.setState("loading"),navigator.geolocation.getCurrentPosition(function(t){this.setState("");var e=t.coords.latitude,i=t.coords.longitude;this.searchPosition(e,i)}.bind(this),function(t){this.setState("")}.bind(this))},parseResult:function(t){var e={address:t.formatted_address,lat:t.geometry.location.lat(),lng:t.geometry.location.lng()};e.zoom=this.map.getZoom(),t.place_id&&(e.place_id=t.place_id);var i={street_number:["street_number"],street_name:["street_address","route"],city:["locality"],state:["administrative_area_level_1","administrative_area_level_2","administrative_area_level_3","administrative_area_level_4","administrative_area_level_5"],post_code:["postal_code"],country:["country"]};for(var n in i)for(var a=i[n],r=0;r0?this.append(t,e):this.render(t)},this)})},editAttachment:function(){var e=this.val();if(e)var i=acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:e,field:this.get("key"),select:t.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(e,i){var n=this.$input();acf.getFileInputData(i,function(e){n.val(t.param(e))})}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.ImageField.extend({type:"file",$control:function(){return this.$(".acf-file-uploader")},$input:function(){return this.$('input[type="hidden"]')},validateAttachment:function(t){return void 0!==(t=t||{}).id&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",filename:"",filesizeHumanReadable:"",icon:"/wp-includes/images/media/default.png"})},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.icon,alt:t.alt,title:t.title}),this.$('[data-name="title"]').text(t.title),this.$('[data-name="filename"]').text(t.filename).attr("href",t.url),this.$('[data-name="filesize"]').text(t.filesizeHumanReadable);var e=t.id||"";acf.val(this.$input(),e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},selectAttachment:function(){var e=this.parent(),i=e&&"repeater"===e.get("type"),n=acf.newMediaPopup({mode:"select",title:acf.__("Select File"),field:this.get("key"),multiple:i,library:this.get("library"),allowedTypes:this.get("mime_types"),select:t.proxy(function(t,i){i>0?this.append(t,e):this.render(t)},this)})},editAttachment:function(){var e=this.val();if(!e)return!1;var i=acf.newMediaPopup({mode:"edit",title:acf.__("Edit File"),button:acf.__("Update File"),attachment:e,field:this.get("key"),select:t.proxy(function(t,e){this.render(t)},this)})}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=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(i),acf.wpLink=new acf.Model({getNodeValue:function(){var t=this.get("node");return{title:acf.decode(t.html()),url:t.attr("href"),target:t.attr("target")}},setNodeValue:function(t){var e=this.get("node");e.text(t.title),e.attr("href",t.url),e.attr("target",t.target),e.trigger("change")},getInputValue:function(){return{title:t("#wp-link-text").val(),url:t("#wp-link-url").val(),target:t("#wp-link-target").prop("checked")?"_blank":""}},setInputValue:function(e){t("#wp-link-text").val(e.title),t("#wp-link-url").val(e.url),t("#wp-link-target").prop("checked","_blank"===e.target)},open:function(e){this.on("wplink-open","onOpen"),this.on("wplink-close","onClose"),this.set("node",e);var i=t('');t("body").append(i);var n=this.getNodeValue();wpLink.open("acf-link-textarea",n.url,n.title,null)},onOpen:function(){t("#wp-link-wrap").addClass("has-text-field");var e=this.getNodeValue();this.setInputValue(e)},close:function(){wpLink.close()},onClose:function(){if(!this.has("node"))return!1;this.off("wplink-open"),this.off("wplink-close");var e=this.getInputValue();this.setNodeValue(e),t("#acf-link-textarea").remove(),this.set("node",null)}})}(jQuery),function(t,e){var i=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 e=this.val(),i=this.getSearchVal();if(!i)return this.clear();if("http"!=i.substr(0,4)&&(i="http://"+i),i!==e){var n=this.get("timeout");n&&clearTimeout(n);var a=t.proxy(this.search,this,i);this.set("timeout",setTimeout(a,300))}},search:function(e){var i={action:"acf/fields/oembed/search",s:e,field_key:this.get("key")},n;(n=this.get("xhr"))&&n.abort(),this.showLoading();var n=t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),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",n)},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(i)}(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(),this.$input().val(),!0),this.busy=!1},onChange:function(t,e){this.busy||this.setValue(e.val())}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=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"},$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 e=[];return this.$listItems("values").each(function(){e.push(t(this).data("id"))}),!!e.length&&e},newChoice:function(t){return["
        • ",''+t.text+"","
        • "].join("")},newValue:function(t){return["
        • ",'',''+t.text,'',"","
        • "].join("")},initialize:function(){var t=this.proxy(acf.once(function(){this.$list("values").sortable({items:"li",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,update:this.proxy(function(){this.$input().trigger("change")})}),this.$list("choices").scrollTop(0).on("scroll",this.proxy(this.onScrollChoices)),this.fetch()}));this.$el.one("mouseover",t),this.$el.one("focus","input",t),acf.onceInView(this.$el,t)},onScrollChoices:function(t){if(!this.get("loading")&&this.get("more")){var e=this.$list("choices"),i=Math.ceil(e.scrollTop()),n=Math.ceil(e[0].scrollHeight),a=Math.ceil(e.innerHeight()),r=this.get("paged")||1;i+a>=n&&(this.set("paged",r+1),this.fetch())}},onKeypressFilter:function(t,e){13==t.which&&t.preventDefault()},onChangeFilter:function(t,e){var i=e.val(),n=e.data("filter");this.get(n)!==i&&(this.set(n,i),this.set("paged",1),e.is("select")?this.fetch():this.maybeFetch())},onClickAdd:function(t,e){var i=this.val(),n=parseInt(this.get("max"));if(e.hasClass("disabled"))return!1;if(n>0&&i&&i.length>=n)return this.showNotice({text:acf.__("Maximum values reached ( {max} values )").replace("{max}",n),type:"warning"}),!1;e.addClass("disabled");var a=this.newValue({id:e.data("id"),text:e.html()});this.$list("values").append(a),this.$input().trigger("change")},onClickRemove:function(t,e){t.preventDefault();var i=e.parent(),n=i.parent(),a=i.data("id");n.remove(),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=acf.applyFilters("relationship_ajax_data",t,this)},fetch:function(){var e;(e=this.get("xhr"))&&e.abort();var i=this.getAjaxData(),n=this.$list("choices");1==i.paged&&n.html("");var a=t('
        • '+acf.__("Loading")+"
        • ");n.append(a),this.set("loading",!0);var r=function(){this.set("loading",!1),a.remove()},o=function(e){if(!e||!e.results||!e.results.length)return this.set("more",!1),void(1==this.get("paged")&&this.$list("choices").append("
        • "+acf.__("No matches found")+"
        • "));this.set("more",e.more);var i=this.walkChoices(e.results),a=t(i),r=this.val();r&&r.length&&r.map(function(t){a.find('.acf-rel-item[data-id="'+t+'"]').addClass("disabled")}),n.append(a);var o=!1,s=!1;n.find(".acf-rel-label").each(function(){var e=t(this),i=e.siblings("ul");if(o&&o.text()==e.text())return s.append(i.children()),void t(this).parent().remove();o=e,s=i})},e=t.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",data:acf.prepareForAjax(i),context:this,success:o,complete:r});this.set("xhr",e)},walkChoices:function(e){var i=function(e){var n="";return t.isArray(e)?e.map(function(t){n+=i(t)}):t.isPlainObject(e)&&(void 0!==e.children?(n+='
        • '+e.text+'
            ',n+=i(e.children),n+="
        • "):n+='
        • '+e.text+"
        • "),n};return i(e)}});acf.registerFieldType(i)}(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(t,e){var i="tab",n=acf.Field.extend({type:"tab",wait:"",tabs:!1,tab:!1,findFields:function(){return this.$el.nextUntil(".acf-field-tab",".acf-field")},getFields:function(){return acf.getFields(this.findFields())},findTabs:function(){return this.$el.prevAll(".acf-tab-wrap:first")},findTab:function(){return this.$(".acf-tab-button")},initialize:function(){if(this.$el.is("td"))return this.events={},!1;var t=this.findTabs(),e=this.findTab(),i=acf.parseArgs(e.data(),{endpoint:!1,placement:"",before:this.$el});!t.length||i.endpoint?this.tabs=new r(i):this.tabs=t.data("acf"),this.tab=this.tabs.addTab(e,this)},isActive:function(){return this.tab.isActive()},showFields:function(){this.getFields().map(function(t){t.show(this.cid,"tab"),t.hiddenByTab=!1},this)},hideFields:function(){this.getFields().map(function(t){t.hide(this.cid,"tab"),t.hiddenByTab=this.tab},this)},show:function(t){var e=acf.Field.prototype.show.apply(this,arguments);return e&&(this.tab.show(),this.tabs.refresh()),e},hide:function(t){var e=acf.Field.prototype.hide.apply(this,arguments);return e&&(this.tab.hide(),this.isActive()&&this.tabs.reset()),e},enable:function(t){this.getFields().map(function(t){t.enable("tab")})},disable:function(t){this.getFields().map(function(t){t.disable("tab")})}});acf.registerFieldType(n);var a=0,r=acf.Model.extend({tabs:[],active:!1,actions:{refresh:"onRefresh"},data:{before:!1,placement:"top",index:0,initialized:!1},setup:function(e){t.extend(this.data,e),this.tabs=[],this.active=!1;var i=this.get("placement"),n=this.get("before"),r=n.parent();"left"==i&&r.hasClass("acf-fields")&&r.addClass("-sidebar"),n.is("tr")?this.$el=t('
          '):this.$el=t('
            '),n.before(this.$el),this.set("index",a,!0),a++},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(t){this.tabs.map(function(e){t.cid!==e.cid&&this.closeTab(e)},this),this.openTab(t)},addTab:function(e,i){var n=t("
          • ");n.append(e),this.$("ul").append(n);var a=new o({$el:n,field:i,group:this});return this.tabs.push(a),a},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)}}}),o=acf.Model.extend({group:!1,field:!1,events:{"click a":"onClick"},index:function(){return this.$el.index()},isVisible:function(){return acf.isVisible(this.$el)},isActive:function(){return this.$el.hasClass("active")},open:function(){this.$el.addClass("active"),this.field.showFields()},close:function(){this.$el.removeClass("active"),this.field.hideFields()},onClick:function(t,e){t.preventDefault(),this.toggle()},toggle:function(){this.isActive()||this.group.openTab(this)}}),s=new acf.Model({priority:50,actions:{prepare:"render",append:"render",unload:"onUnload",invalid_field:"onInvalidField"},findTabs:function(){return t(".acf-tab-wrap")},getTabs:function(){return acf.getInstances(this.findTabs())},render:function(t){this.getTabs().map(function(t){t.get("initialized")||t.initializeTabs()})},onInvalidField:function(t){this.busy||t.hiddenByTab&&(t.hiddenByTab.toggle(),this.busy=!0,this.setTimeout(function(){this.busy=!1},100))},onUnload:function(){var t=[];this.getTabs().map(function(e){var i=e.hasActive()?e.getActive().index():0;t.push(i)}),t.length&&acf.setPreference("this.tabs",t)}})}(jQuery),function(t,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(t,e){var i=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(e,i){var n=this,a=!1,r=!1,o=!1,s=!1,c=!1,l=!1,u=!1,d=function(){a=acf.newPopup({title:i.attr("title"),loading:!0,width:"300px"});var e={action:"acf/fields/taxonomy/add_term",field_key:n.get("key")};t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"html",success:f})},f=function(t){a.loading(!1),a.content(t),r=a.$("form"),o=a.$('input[name="term_name"]'),s=a.$('select[name="term_parent"]'),c=a.$(".acf-submit-button"),o.focus(),a.on("submit","form",h)},h=function(e,i){if(e.preventDefault(),e.stopImmediatePropagation(),""===o.val())return o.focus(),!1;acf.startButtonLoading(c);var a={action:"acf/fields/taxonomy/add_term",field_key:n.get("key"),term_name:o.val(),term_parent:s.length?s.val():0};t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",success:p})},p=function(t){acf.stopButtonLoading(c),u&&u.remove(),acf.isAjaxSuccess(t)?(o.val(""),g(t.data),u=acf.newNotice({type:"success",text:acf.getAjaxMessage(t),target:r,timeout:2e3,dismiss:!1})):u=acf.newNotice({type:"error",text:acf.getAjaxError(t),target:r,timeout:2e3,dismiss:!1}),o.focus()},g=function(e){var i=t('"),a;e.term_parent?s.children('option[value="'+e.term_parent+'"]').after(i):s.append(i),acf.getFields({type:"taxonomy"}).map(function(t){t.get("taxonomy")==n.get("taxonomy")&&t.appendTerm(e)}),n.selectTerm(e.term_id)};d()},appendTerm:function(t){"select"==this.getRelatedType()?this.appendTermSelect(t):this.appendTermCheckbox(t)},appendTermSelect:function(t){this.select2.addOption({id:t.term_id,text:t.term_label})},appendTermCheckbox:function(e){var i=this.$("[name]:first").attr("name"),n=this.$("ul:first");"checkbox"==this.getRelatedType()&&(i+="[]");var a=t(['
          • ',"","
          • "].join(""));if(e.term_parent){var r=n.find('li[data-id="'+e.term_parent+'"]');(n=r.children("ul")).exists()||(n=t('
              '),r.append(n))}n.append(a)},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(i)}(jQuery),function(t,e){var i=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(i),acf.newTimePicker=function(e,i){if(void 0===t.timepicker)return!1;i=i||{},e.timepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('
              ')}}(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",unmountField:"disableEditor",remountField:"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(t,e){var i=[];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(e){t.extend(this.data,e)},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''}}),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"),o=t.operator,s,c,l;return new(acf.getConditionTypes({fieldType:r,operator:o})[0]||acf.Condition)(a)};var n=function(t){return acf.strPascalCase(t||"")+"Condition"};acf.registerConditionType=function(t){var e,a=t.prototype.type,r=n(a);acf.models[r]=t,i.push(a)},acf.getConditionType=function(t){var e=n(t);return acf.models[e]||!1},acf.registerConditionForFieldType=function(t,e){var i=acf.getConditionType(t);i&&i.prototype.fieldTypes.push(e)},acf.getConditionTypes=function(t){t=acf.parseArgs(t,{fieldType:"",operator:""});var e=[];return i.map(function(i){var n=acf.getConditionType(i),a=n.prototype.fieldTypes,r=n.prototype.operator;t.fieldType&&-1===a.indexOf(t.fieldType)||t.operator&&r!==t.operator||e.push(n)}),e}}(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;nparseFloat(e)},s=function(t,e){return parseFloat(t)-1},l=function(t,e){return n(t).indexOf(n(e))>-1},u=function(t,e){var i=new RegExp(n(e),"gi");return n(t).match(i)},d=acf.Condition.extend({type:"hasValue",operator:"!=empty",label:i("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''}});acf.registerConditionType(d);var f=d.extend({type:"hasNoValue",operator:"==empty",label:i("Has no value"),match:function(t,e){return!d.prototype.match.apply(this,arguments)}});acf.registerConditionType(f);var h=acf.Condition.extend({type:"equalTo",operator:"==",label:i("Value is equal to"),fieldTypes:["text","textarea","number","range","email","url","password"],match:function(e,i){return t.isNumeric(e.value)?r(e.value,i.val()):a(e.value,i.val())},choices:function(t){return''}});acf.registerConditionType(h);var p=h.extend({type:"notEqualTo",operator:"!=",label:i("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:i("Value matches pattern"),fieldTypes:["text","textarea","email","url","password","wysiwyg"],match:function(t,e){return u(e.val(),t.value)},choices:function(t){return''}});acf.registerConditionType(g);var m=acf.Condition.extend({type:"contains",operator:"==contains",label:i("Value contains"),fieldTypes:["text","textarea","number","email","url","password","wysiwyg","oembed","select"],match:function(t,e){return l(e.val(),t.value)},choices:function(t){return''}});acf.registerConditionType(m);var v=h.extend({type:"trueFalseEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:i("Checked")}]}});acf.registerConditionType(v);var y=p.extend({type:"trueFalseNotEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:i("Checked")}]}});acf.registerConditionType(y);var b=acf.Condition.extend({type:"selectEqualTo",operator:"==",label:i("Value is equal to"),fieldTypes:["select","checkbox","radio","button_group"],match:function(t,e){var i=e.val();return i instanceof Array?c(t.value,i):a(t.value,i)},choices:function(e){var n=[],a=e.$setting("choices textarea").val().split("\n");return e.$input("allow_null").prop("checked")&&n.push({id:"",text:i("Null")}),a.map(function(e){(e=e.split(":"))[1]=e[1]||e[0],n.push({id:t.trim(e[0]),text:t.trim(e[1])})}),n}});acf.registerConditionType(b);var _=b.extend({type:"selectNotEqualTo",operator:"!=",label:i("Value is not equal to"),match:function(t,e){return!b.prototype.match.apply(this,arguments)}});acf.registerConditionType(_);var w=acf.Condition.extend({type:"greaterThan",operator:">",label:i("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''}});acf.registerConditionType(w);var x=w.extend({type:"lessThan",operator:"<",label:i("Value is less than"),match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),s(i,t.value)},choices:function(t){return''}});acf.registerConditionType(x);var $=w.extend({type:"selectionGreaterThan",label:i("Selection is greater than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType($);var k=x.extend({type:"selectionLessThan",label:i("Selection is less than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(k)}(jQuery),function(t,e){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 i=function(){var e=acf.get("post_id");return t.isNumeric(e)?e:0};acf.getMimeTypes=function(){return this.get("mimeTypes")},acf.getMimeType=function(t){var e=acf.getMimeTypes();if(void 0!==e[t])return e[t];for(var i in e)if(-1!==i.indexOf(t))return e[i];return!1};var n=acf.Model.extend({id:"MediaPopup",data:{},defaults:{},frame:!1,setup:function(e){t.extend(this.data,e)},initialize:function(){var t=this.getFrameOptions();this.addFrameStates(t);var e=wp.media(t);e.acf=this,this.addFrameEvents(e,t),this.frame=e},open:function(){this.frame.open()},close:function(){this.frame.close()},remove:function(){this.frame.detach(),this.frame.remove()},getFrameOptions:function(){var t={title:this.get("title"),multiple:this.get("multiple"),library:{},states:[]};return this.get("type")&&(t.library.type=this.get("type")),"uploadedTo"===this.get("library")&&(t.library.uploadedTo=i()),this.get("attachment")&&(t.library.post__in=[this.get("attachment")]),this.get("button")&&(t.button={text:this.get("button")}),t},addFrameStates:function(t){var e=wp.media.query(t.library);this.get("field")&&acf.isset(e,"mirroring","args")&&(e.mirroring.args._acfuploader=this.get("field")),t.states.push(new wp.media.controller.Library({library:e,multiple:this.get("multiple"),title:this.get("title"),priority:20,filterable:"all",editable:!0,allowLocalEdits:!0})),acf.isset(wp,"media","controller","EditImage")&&t.states.push(new wp.media.controller.EditImage)},addFrameEvents:function(t,e){t.on("open",function(){this.$el.closest(".media-modal").addClass("acf-media-modal -"+this.acf.get("mode"))},t),t.on("content:render:edit-image",function(){var t=this.state().get("image"),e=new wp.media.view.EditImage({model:t,controller:this}).render();this.content.set(e),e.loadEditor()},t),t.on("select",function(){var e=t.state().get("selection");e&&e.each(function(e,i){t.acf.get("select").apply(t.acf,[e,i])})}),t.on("close",function(){setTimeout(function(){t.acf.get("close").apply(t.acf),t.acf.remove()},1)})}});acf.models.SelectMediaPopup=n.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Select","verb")),n.prototype.setup.apply(this,arguments)},addFrameEvents:function(t,e){acf.isset(_wpPluploadSettings,"defaults","multipart_params")&&(_wpPluploadSettings.defaults.multipart_params._acfuploader=this.get("field"),t.on("open",function(){delete _wpPluploadSettings.defaults.multipart_params._acfuploader})),t.on("content:activate:browse",function(){var e=!1;try{e=t.content.get().toolbar}catch(t){return void console.log(t)}t.acf.customizeFilters.apply(t.acf,[e])}),n.prototype.addFrameEvents.apply(this,arguments)},customizeFilters:function(e){var i=e.get("filters"),n;("image"==this.get("type")&&(i.filters.all.text=acf.__("All images"),delete i.filters.audio,delete i.filters.video,delete i.filters.image,t.each(i.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 n={text:e,props:{status:null,type:e,uploadedTo:null,orderby:"date",order:"DESC"},priority:20};i.filters[e]=n}});if("uploadedTo"===this.get("library")){var a=this.frame.options.library.uploadedTo;delete i.filters.unattached,delete i.filters.uploaded,t.each(i.filters,function(t,e){e.text+=" ("+acf.__("Uploaded to this post")+")",e.props.uploadedTo=a})}var r=this.get("field"),o;t.each(i.filters,function(t,e){e.props._acfuploader=r}),e.get("search").model.attributes._acfuploader=r,i.renderFilters&&i.renderFilters()}}),acf.models.EditMediaPopup=n.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Update","verb")),n.prototype.setup.apply(this,arguments)},addFrameEvents:function(t,e){t.on("open",function(){this.$el.closest(".media-modal").addClass("acf-expanded"),"browse"!=this.content.mode()&&this.content.mode("browse");var e,i=this.state().get("selection"),n=wp.media.attachment(t.acf.get("attachment"));i.add(n)},t),n.prototype.addFrameEvents.apply(this,arguments)}});var a=new acf.Model({id:"customizePrototypes",wait:"ready",initialize:function(){if(acf.isset(window,"wp","media","view")){var t=i();t&&acf.isset(wp,"media","view","settings","post")&&(wp.media.view.settings.post.id=t),this.customizeAttachmentsButton(),this.customizeAttachmentsRouter(),this.customizeAttachmentFilters(),this.customizeAttachmentCompat(),this.customizeAttachmentLibrary()}},customizeAttachmentsButton:function(){if(acf.isset(wp,"media","view","Button")){var t=wp.media.view.Button;wp.media.view.Button=t.extend({initialize:function(){var t=_.defaults(this.options,this.defaults);this.model=new Backbone.Model(t),this.listenTo(this.model,"change",this.render)}})}},customizeAttachmentsRouter:function(){if(acf.isset(wp,"media","view","Router")){var e=wp.media.view.Router;wp.media.view.Router=e.extend({addExpand:function(){var e=t(['',''+acf.__("Expand Details")+"",''+acf.__("Collapse Details")+"",""].join(""));e.on("click",function(e){e.preventDefault();var i=t(this).closest(".media-modal");i.hasClass("acf-expanded")?i.removeClass("acf-expanded"):i.addClass("acf-expanded")}),this.$el.append(e)},initialize:function(){return e.prototype.initialize.apply(this,arguments),this.addExpand(),this}})}},customizeAttachmentFilters:function(){var e;acf.isset(wp,"media","view","AttachmentFilters","All")&&(wp.media.view.AttachmentFilters.All.prototype.renderFilters=function(){this.$el.html(_.chain(this.filters).map(function(e,i){return{el:t("").val(i).html(e.text)[0],priority:e.priority||50}},this).sortBy("priority").pluck("el").value())})},customizeAttachmentCompat:function(){if(acf.isset(wp,"media","view","AttachmentCompat")){var e=wp.media.view.AttachmentCompat,i=!1;wp.media.view.AttachmentCompat=e.extend({render:function(){return this.rendered?this:(e.prototype.render.apply(this,arguments),this.$("#acf-form-data").length?(clearTimeout(i),i=setTimeout(t.proxy(function(){this.rendered=!0,acf.doAction("append",this.$el)},this),50),this):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 t=wp.media.view.Attachment.Library;wp.media.view.Attachment.Library=t.extend({render:function(){var e=acf.isget(this,"controller","acf"),i=acf.isget(this,"model","attributes");if(e&&i){i.acf_errors&&this.$el.addClass("acf-disabled");var n=e.get("selected");n&&n.indexOf(i.id)>-1&&this.$el.addClass("acf-selected")}return t.prototype.render.apply(this,arguments)},toggleSelection:function(e){var i=this.collection,n=this.options.selection,a=this.model,r=n.single(),o=this.controller,s=acf.isget(this,"model","attributes","acf_errors"),c=o.$el.find(".media-frame-content .media-sidebar");if(c.children(".acf-selection-error").remove(),c.children().removeClass("acf-hidden"),o&&s){var l=acf.isget(this,"model","attributes","filename");return c.children().addClass("acf-hidden"),c.prepend(['
              ',''+acf.__("Restricted")+"",''+l+"",''+s+"","
              "].join("")),n.reset(),void n.single(a)}return t.prototype.toggleSelection.apply(this,arguments)}})}}})}(jQuery),function(t,e){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 e=t("#page_template");return e.length?e.val():null},getPageParent:function(e,i){var i;return(i=t("#parent_id")).length?i.val():null},getPageType:function(t,e){return this.getPageParent()?"child":"parent"},getPostType:function(){return t("#post_type").val()},getPostFormat:function(e,i){var i;if((i=t("#post-formats-select input:checked")).length){var n=i.val();return"0"==n?"standard":n}return null},getPostCoreTerms:function(){var e={},i=acf.serialize(t(".categorydiv, .tagsdiv"));for(var n in i.tax_input&&(e=i.tax_input),i.post_category&&(e.category=i.post_category),e)acf.isArray(e[n])||(e[n]=e[n].split(/,[\s]?/));return e},getPostTerms:function(){var t=this.getPostCoreTerms();for(var e in acf.getFields({type:"taxonomy"}).map(function(e){if(e.get("save")){var i=e.val(),n=e.get("taxonomy");i&&(t[n]=t[n]||[],i=acf.isArray(i)?i:[i],t[n]=t[n].concat(i))}}),null!==(productType=this.getProductType())&&(t.product_type=[productType]),t)t[e]=acf.uniqueArray(t[e]);return t},getProductType:function(){var e=t("#product-type");return e.length?e.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 i=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=t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:i})}},onChange:function(t,e){this.setTimeout(this.check,1)},renderPostScreen:function(e){var i=[],n=function(e,i){var n=t._data(e[0]).events;for(var a in n)for(var r=0;r=0;a--)if(t("#"+i[a]).length)return t("#"+i[a]).after(t("#"+e));for(var a=n+1;a','",'

              ',""+r.title+"","

              ",'
              ',r.html,"
              ","
              "].join(""));if(t("#adv-settings").length){var l=t("#adv-settings .metabox-prefs"),u=t(['"].join(""));n(l.find("input").first(),u.find("input")),l.append(u)}n(t(".postbox .handlediv").first(),c.children(".handlediv")),n(t(".postbox .hndle").first(),c.children(".hndle")),"acf_after_title"==r.position&&(r.position="normal"),"side"===r.position?t("#"+r.position+"-sortables").append(c):t("#"+r.position+"-sortables").prepend(c);var d=[];if(e.results.map(function(e){r.position===e.position&&t("#"+r.position+"-sortables #"+e.id).length&&d.push(e.id)}),a(r.id,d),e.sorted)for(var f in e.sorted){var d=e.sorted[f].split(",");if(a(r.id,d))break}s=acf.newPostbox(r),acf.doAction("append",c),acf.doAction("append_postbox",s)}s.showEnable(),acf.doAction("show_postbox",s),i.push(r.id)}),acf.getPostboxes().map(function(t){-1===i.indexOf(t.get("id"))&&(t.hideDisable(),acf.doAction("hide_postbox",t))}),t("#acf-style").html(e.style)},renderUserScreen:function(t){}});var i=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,acf.unload.disable())},onChange:function(){var t=wp.data.select("core/editor").getPostEdits(),e=["template","parent","format"],i;(wp.data.select("core").getTaxonomies()||[]).map(function(t){e.push(t.rest_base)}),(e=e.filter(this.proxy(function(e){return void 0!==t[e]&&t[e]!==this.get(e)}))).length&&this.triggerChange(t)},triggerChange:function(t){void 0!==t&&(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 t={},e;return(wp.data.select("core").getTaxonomies()||[]).map(function(e){var i=wp.data.select("core/editor").getEditedPostAttribute(e.rest_base);i&&(t[e.slug]=i)}),t}});acf.screen.refreshAvailableMetaBoxesPerLocation=function(){var t=wp.data.select("core/edit-post"),e=wp.data.dispatch("core/edit-post"),i={};t.getActiveMetaBoxLocations().map(function(e){i[e]=t.getMetaBoxesPerLocation(e)});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")})}}),e.setAvailableMetaBoxesPerLocation(i)}}(jQuery),function(t,e){function i(){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==i())var n=new a(t,e);else var n=new r(t,e);return acf.doAction("new_select2",n),n};var n=acf.Model.extend({setup:function(e,i){t.extend(this.data,i),this.$el=e},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(e){e=acf.parseArgs(e,{id:"",text:"",selected:!1});var i=this.getOption(e.id);return i.length||((i=t("")).html(e.text),i.attr("value",e.id),i.prop("selected",e.selected),this.$el.append(i)),i},getValue:function(){var e=[],i=this.$el.find("option:selected");return i.exists()?((i=i.sort(function(t,e){return+t.getAttribute("data-i")-+e.getAttribute("data-i")})).each(function(){var i=t(this);e.push({$el:i,id:i.attr("value"),text:i.text()})}),e):e},mergeOptions:function(){},getChoices:function(){var e=function(i){var n=[];return i.children().each(function(){var i=t(this);i.is("optgroup")?n.push({text:i.attr("label"),children:e(i)}):n.push({id:i.attr("value"),text:i.text()})}),n};return e(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(e,i){var e;return(e=this.getAjaxResults(e,i)).more&&(e.pagination={more:!0}),setTimeout(t.proxy(this.mergeOptions,this),1),e},destroy:function(){this.$el.data("select2")&&this.$el.select2("destroy"),this.$el.siblings(".select2-container").remove()}}),a=n.extend({initialize:function(){var e=this.$el,i={width:"100%", +allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),multiple:this.get("multiple"),data:[],escapeMarkup:function(t){return t}};i.multiple&&this.getValue().map(function(t){t.$el.detach().appendTo(e)}),e.removeData("ajax"),e.removeAttr("data-ajax"),this.get("ajax")&&(i.ajax={url:acf.get("ajaxurl"),delay:250,dataType:"json",type:"post",cache:!1,data:t.proxy(this.getAjaxData,this),processResults:t.proxy(this.processAjaxResults,this)});var n=this.get("field");i=acf.applyFilters("select2_args",i,e,this.data,n||!1,this),e.select2(i);var a=e.next(".select2-container");if(i.multiple){var r=a.find("ul");r.sortable({stop:function(i){r.find(".select2-selection__choice").each(function(){var i;t(t(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)}))}a.addClass("-acf"),acf.doAction("select2_init",e,i,this.data,n||!1,this)},mergeOptions:function(){var e=!1,i=!1;t('.select2-results__option[role="group"]').each(function(){var n=t(this).children("ul"),a=t(this).children("strong");if(i&&i.text()===a.text())return e.append(n.children()),void t(this).remove();e=n,i=a})}}),r=n.extend({initialize:function(){var e=this.$el,i=this.getValue(),n=this.get("multiple"),a={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(n?i:i.shift())}},r=e.siblings("input");r.length||(r=t(''),e.before(r)),inputValue=i.map(function(t){return t.id}).join("||"),r.val(inputValue),a.multiple&&i.map(function(t){t.$el.detach().appendTo(e)}),a.allowClear&&(a.data=a.data.filter(function(t){return""!==t.id})),e.removeData("ajax"),e.removeAttr("data-ajax"),this.get("ajax")&&(a.ajax={url:acf.get("ajaxurl"),quietMillis:250,dataType:"json",type:"post",cache:!1,data:t.proxy(this.getAjaxData,this),results:t.proxy(this.processAjaxResults,this)});var o=this.get("field");a=acf.applyFilters("select2_args",a,e,this.data,o||!1,this),r.select2(a);var s=r.select2("container"),c=t.proxy(this.getOption,this);if(a.multiple){var l=s.find("ul");l.sortable({stop:function(){l.find(".select2-search-choice").each(function(){var i=t(this).data("select2Data"),n;c(i.id).detach().appendTo(e)}),e.trigger("change")}})}r.on("select2-selecting",function(i){var n=i.choice,a=c(n.id);a.length||(a=t('")),a.detach().appendTo(e)}),s.addClass("-acf"),acf.doAction("select2_init",e,a,this.data,o||!1,this),r.on("change",function(){var t=r.val();t.indexOf("||")&&(t=t.split("||")),e.val(t).trigger("change")}),e.hide()},mergeOptions:function(){var e=!1,i=!1;t("#select2-drop .select2-result-with-children").each(function(){var n=t(this).children("ul"),a=t(this).children(".select2-result-label");if(i&&i.text()===a.text())return i.append(n.children()),void t(this).remove();e=n,i=a})},getAjaxData:function(t,e){var i={term:t,page:e};return n.prototype.getAjaxData.apply(this,[i])}}),o=new acf.Model({priority:5,wait:"prepare",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),n=acf.get("select2L10n"),a=i();return!!n&&(0!==t.indexOf("en")&&void(4==a?this.addTranslations4():3==a&&this.addTranslations3()))},addTranslations4:function(){var t=acf.get("select2L10n"),e=acf.get("locale");e=e.replace("_","-");var i={errorLoading:function(){return t.load_fail},inputTooLong:function(e){var i=e.input.length-e.maximum;return i>1?t.input_too_long_n.replace("%d",i):t.input_too_long_1},inputTooShort:function(e){var i=e.minimum-e.input.length;return i>1?t.input_too_short_n.replace("%d",i):t.input_too_short_1},loadingMore:function(){return t.load_more},maximumSelected:function(e){var i=e.maximum;return i>1?t.selection_too_long_n.replace("%d",i):t.selection_too_long_1},noResults:function(){return t.matches_0},searching:function(){return t.searching}};jQuery.fn.select2.amd.define("select2/i18n/"+e,[],function(){return i})},addTranslations3:function(){var e=acf.get("select2L10n"),i=acf.get("locale");i=i.replace("_","-");var n={formatMatches:function(t){return t>1?e.matches_n.replace("%d",t):e.matches_1},formatNoMatches:function(){return e.matches_0},formatAjaxError:function(){return e.load_fail},formatInputTooShort:function(t,i){var n=i-t.length;return n>1?e.input_too_short_n.replace("%d",n):e.input_too_short_1},formatInputTooLong:function(t,i){var n=t.length-i;return n>1?e.input_too_long_n.replace("%d",n):e.input_too_long_1},formatSelectionTooBig:function(t){return t>1?e.selection_too_long_n.replace("%d",t):e.selection_too_long_1},formatLoadMore:function(){return e.load_more},formatSearching:function(){return e.searching}};t.fn.select2.locales=t.fn.select2.locales||{},t.fn.select2.locales[i]=n,t.extend(t.fn.select2.defaults,n)}})}(jQuery),function(t,e){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(e,i){var n=t("#"+e),a=this.defaults(),r=acf.get("toolbars"),o=i.field||!1,s=o.$el||!1;if("undefined"==typeof tinymce)return!1;if(!a)return!1;if(tinymce.get(e))return this.enable(e);var c=t.extend({},a.tinymce,i.tinymce);c.id=e,c.selector="#"+e;var l=i.toolbar;if(l&&r&&r[l])for(var u=1;u<=4;u++)c["toolbar"+u]=r[l][u]||"";if(c.setup=function(t){t.on("change",function(e){t.save(),n.trigger("change")}),t.on("mouseup",function(t){var e=new MouseEvent("mouseup");window.dispatchEvent(e)})},c.wp_autoresize_on=!1,c.tadv_noautop||(c.wpautop=!0),c=acf.applyFilters("wysiwyg_tinymce_settings",c,e,o),tinyMCEPreInit.mceInit[e]=c,"visual"==i.mode){var d=tinymce.init(c),f=tinymce.get(e);if(!f)return!1;f.acf=i.field,acf.doAction("wysiwyg_tinymce_init",f,f.id,c,o)}},initializeQuicktags:function(e,i){var n=this.defaults();if("undefined"==typeof quicktags)return!1;if(!n)return!1;var a=t.extend({},n.quicktags,i.quicktags);a.id=e;var r=i.field||!1,o=r.$el||!1;a=acf.applyFilters("wysiwyg_quicktags_settings",a,a.id,r),tinyMCEPreInit.qtInit[e]=a;var s=quicktags(a);if(!s)return!1;this.buildQuicktags(s),acf.doAction("wysiwyg_quicktags_init",s,s.id,a,r)},buildQuicktags:function(t){var e,i,n,a,r,t,o,s,c,l,u=",strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,";for(s in e=t.canvas,i=t.name,n=t.settings,r="",a={},c="",l=t.id,n.buttons&&(c=","+n.buttons+","),edButtons)edButtons[s]&&(o=edButtons[s].id,c&&-1!==u.indexOf(","+o+",")&&-1===c.indexOf(","+o+",")||edButtons[s].instance&&edButtons[s].instance!==l||(a[o]=edButtons[s],edButtons[s].html&&(r+=edButtons[s].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 i=new acf.Model({priority:5,actions:{prepare:"onPrepare",ready:"onReady"},onPrepare:function(){var e=t("#acf-hidden-wp-editor");e.exists()&&e.appendTo("body")},onReady:function(){acf.isset(window,"wp","oldEditor")&&(wp.editor.autop=wp.oldEditor.autop,wp.editor.removep=wp.oldEditor.removep),acf.isset(window,"tinymce","on")&&tinymce.on("AddEditor",function(t){var e=t.editor;"acf"===e.id.substr(0,3)&&(e=tinymce.editors.content||e,tinymce.activeEditor=e,wpActiveEditor=e.id)})}})}(jQuery),function(t,e){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 t=[],e=[];return this.getErrors().map(function(i){if(i.input){var n=e.indexOf(i.input);n>-1?t[n]=i:(t.push(i),e.push(i.input))}}),t},getGlobalErrors:function(){return this.getErrors().filter(function(t){return!t.input})},showErrors:function(){if(this.hasErrors()){var e=this.getFieldErrors(),i=this.getGlobalErrors(),n=0,a=!1;e.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 r=acf.__("Validation failed");if(i.map(function(t){r+=". "+t.message}),1==n?r+=". "+acf.__("1 field requires attention"):n>1&&(r+=". "+acf.__("%d fields require attention").replace("%d",n)),this.has("notice"))this.get("notice").update({type:"error",text:r});else{var o=acf.newNotice({type:"error",text:r,target:this.$el});this.set("notice",o)}a||(a=this.get("notice").$el),setTimeout(function(){t("html, body").animate({scrollTop:a.offset().top-t(window).height()/2},500)},10)}},onChangeStatus:function(t,e,i,n){this.$el.removeClass("is-"+n).addClass("is-"+i)},validate:function(e){if(e=acf.parseArgs(e,{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(e.event){var i=t.Event(null,e.event);e.success=function(){acf.enableSubmit(t(i.target)).trigger(i)}}acf.doAction("validation_begin",this.$el),acf.lockForm(this.$el),e.loading(this.$el,this),this.set("status","validating");var n=function(t){if(acf.isAjaxSuccess(t)){var e=acf.applyFilters("validation_complete",t.data,this.$el,this);e.valid||this.addErrors(e.errors)}},a=function(){acf.unlockForm(this.$el),this.hasErrors()?(this.set("status","invalid"),acf.doAction("validation_failure",this.$el,this),this.showErrors(),e.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),e.success(this.$el,this),acf.lockForm(this.$el),e.reset&&this.reset()),e.complete(this.$el,this),this.clearErrors()},r=acf.serialize(this.$el);return r.action="acf/validate_save_post",t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(r),type:"post",dataType:"json",context:this,success:n,complete:a}),!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(e){if("safari"!==acf.get("browser")){var i=t(".acf-field [name]",e);i.length&&this.on(i,"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(e,i){var n;acf.validateForm({form:t("#editor"),event:e,reset:!0,failure:function(t,e){var i=e.get("notice").$el;i.appendTo(".components-notice-list"),i.find(".acf-notice-dismiss").removeClass("small")}})||(e.preventDefault(),e.stopImmediatePropagation())},onSubmitPost:function(e,i){"dopreview"===t("input#wp-preview").val()&&(this.set("ignore",!0),acf.unlockForm(i))},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(){return this.set("ignore",!1),this.set("originalEvent",!1),!0}})}(jQuery),function(t,e){var i=new acf.Model({priority:90,initialize:function(){this.refresh=acf.debounce(this.refresh,0)},actions:{new_field:"refresh",show_field:"refresh",hide_field:"refresh",remove_field:"refresh",unmount_field:"refresh",remount_field:"refresh"},refresh:function(){acf.doAction("refresh"),t(window).trigger("acfrefresh")}}),n=new acf.Model({priority:1,actions:{sortstart:"onSortstart",sortstop:"onSortstop"},onSortstart:function(t){acf.doAction("unmount",t)},onSortstop:function(t){acf.doAction("remount",t)}}),a=new acf.Model({actions:{sortstart:"onSortstart"},onSortstart:function(e,i){e.is("tr")&&(i.html(''),e.addClass("acf-sortable-tr-helper"),e.children().each(function(){t(this).width(t(this).width())}),i.height(e.height()+"px"),e.removeClass("acf-sortable-tr-helper"))}}),r=new acf.Model({actions:{after_duplicate:"onAfterDuplicate"},onAfterDuplicate:function(e,i){var n=[];e.find("select").each(function(e){n.push(t(this).val())}),i.find("select").each(function(e){t(this).val(n[e])})}}),o=new acf.Model({id:"tableHelper",priority:20,actions:{refresh:"renderTables"},renderTables:function(e){var i=this;t(".acf-table:visible").each(function(){i.renderTable(t(this))})},renderTable:function(e){var i=e.find("> thead > tr:visible > th[data-key]"),n=e.find("> tbody > tr:visible > td[data-key]");if(!i.length||!n.length)return!1;i.each(function(e){var i=t(this),a=i.data("key"),r=n.filter('[data-key="'+a+'"]'),o=r.filter(".acf-hidden");r.removeClass("acf-empty"),r.length===o.length?acf.hide(i):(acf.show(i),o.addClass("acf-empty"))}),i.css("width","auto"),i=i.not(".acf-hidden");var a=100,r=i.length,o;i.filter("[data-width]").each(function(){var e=t(this).data("width");t(this).css("width",e+"%"),a-=e});var s=i.not("[data-width]");if(s.length){var c=a/s.length;s.css("width",c+"%"),a=0}a>0&&i.last().css("width","auto"),n.filter(".-collapsed-target").each(function(){var e=t(this);e.parent().hasClass("-collapsed")?e.attr("colspan",i.length):e.removeAttr("colspan")})}}),s=new acf.Model({id:"fieldsHelper",priority:30,actions:{refresh:"renderGroups"},renderGroups:function(){var e=this;t(".acf-fields:visible").each(function(){e.renderGroup(t(this))})},renderGroup:function(e){var i=0,n=0,a=t(),r=e.children(".acf-field[data-width]:visible");return!!r.length&&(e.hasClass("-left")?(r.removeAttr("data-width"),r.css("width","auto"),!1):(r.removeClass("-r0 -c0").css({"min-height":0}),r.each(function(e){var r=t(this),o=r.position(),s=Math.ceil(o.top),c=Math.ceil(o.left);a.length&&s>i&&(a.css({"min-height":n+"px"}),o=r.position(),s=Math.ceil(o.top),c=Math.ceil(o.left),i=0,n=0,a=t()),acf.get("rtl")&&(c=Math.ceil(r.parent().width()-(o.left+r.outerWidth()))),0==s?r.addClass("-r0"):0==c&&r.addClass("-c0");var l=Math.ceil(r.outerHeight())+1;n=Math.max(n,l),i=Math.max(i,s),a=a.add(r)}),void(a.length&&a.css({"min-height":n+"px"}))))}})}(jQuery),function(t,e){acf.newCompatibility=function(t,e){return(e=e||{}).__proto__=t.__proto__,t.__proto__=e,t.compatibility=e,e},acf.getCompatibility=function(t){return t.compatibility||null};var i=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});i._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},i.get_selector=function(e){var i=".acf-field";if(!e)return i;if(t.isPlainObject(e)){if(t.isEmptyObject(e))return i;for(var n in e){e=e[n];break}}return i+="-"+e,i=acf.strReplace("_","-",i),i=acf.strReplace("field-field-","field-",i)},i.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)},i.get_field=function(t,e){var i=this.get_fields.apply(this,arguments);return!!i.length&&i.first()},i.get_closest_field=function(t,e){return t.closest(this.get_selector(e))},i.get_field_wrap=function(t){return t.closest(this.get_selector())},i.get_field_key=function(t){return t.data("key")},i.get_field_type=function(t){return t.data("type")},i.get_data=function(t,e){return acf.parseArgs(t.data(),e)},i.maybe_get=function(t,e,i){void 0===i&&(i=null),keys=String(e).split(".");for(var n=0;n1){for(var c=0;c0?e.substr(0,a):e,o=a>0?e.substr(a+1):"",s=function(e){e.$el=t(this),acf.field_group&&(e.$field=e.$el.closest(".acf-field-object")),"function"==typeof n.event&&(e=n.event(e)),n[i].apply(n,arguments)};o?t(document).on(r,o,s):t(document).on(r,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}},i.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(e,i){var n=this,a=e.substr(0,e.indexOf(" ")),r=e.substr(e.indexOf(" ")+1),o=acf.get_selector(n.type);t(document).on(a,o+" "+r,function(e){var a=t(this),r=acf.get_closest_field(a,n.type);r.length&&(r.is(n.$field)||n.set("$field",r),e.$el=a,e.$field=r,n[i].apply(n,[e]))})},_set_$field:function(){"function"==typeof this.focus&&this.focus()},doFocus:function(t){return this.set("$field",t)}});var o=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});i.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)}})}},i.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}}),i.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()}},i.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}),i.ajax=acf.screen}(jQuery); \ No newline at end of file diff --git a/includes/fields/class-acf-field-google-map.php b/includes/fields/class-acf-field-google-map.php index c9c4add1..a4f25199 100644 --- a/includes/fields/class-acf-field-google-map.php +++ b/includes/fields/class-acf-field-google-map.php @@ -111,32 +111,15 @@ function input_admin_enqueue_scripts() { function render_field( $field ) { - // validate value - if( empty($field['value']) ) { - $field['value'] = array(); - } - - - // value - $field['value'] = wp_parse_args($field['value'], array( - 'address' => '', - 'lat' => '', - 'lng' => '' - )); - - - // default options + // Apply defaults. foreach( $this->default_values as $k => $v ) { - - if( empty($field[ $k ]) ) { + if( !$field[ $k ] ) { $field[ $k ] = $v; - } - + } } - - // vars - $atts = array( + // Attrs. + $attrs = array( 'id' => $field['id'], 'class' => "acf-google-map {$field['class']}", 'data-lat' => $field['center_lat'], @@ -144,20 +127,18 @@ function render_field( $field ) { 'data-zoom' => $field['zoom'], ); - - // has value - if( $field['value']['address'] ) { - $atts['class'] .= ' -value'; + $search = ''; + if( $field['value'] ) { + $attrs['class'] .= ' -value'; + $search = $field['value']['address']; + } else { + $field['value'] = ''; } ?> -
              > +
              > -
              - $v ): - acf_hidden_input(array( 'name' => $field['name'].'['.$k.']', 'value' => $v, 'data-name' => $k )); - endforeach; ?> -
              + $field['name'], 'value' => $field['value']) ); ?>
              @@ -167,7 +148,7 @@ function render_field( $field ) { ?>">
              - " value="" /> + " value="" />
              @@ -240,40 +221,32 @@ function render_field_settings( $field ) { } - - /* - * validate_value - * - * description - * - * @type function - * @date 11/02/2014 - * @since 5.0.0 - * - * @param $post_id (int) - * @return $post_id (int) - */ - - function validate_value( $valid, $value, $field, $input ){ - - // bail early if not required - if( ! $field['required'] ) { - - return $valid; - + /** + * load_value + * + * Filters the value loaded from the database. + * + * @date 16/10/19 + * @since 5.8.1 + * + * @param mixed $value The value loaded from the database. + * @param mixed $post_id The post ID where the value is saved. + * @param array $field The field settings array. + * @return (array|false) + */ + function load_value( $value, $post_id, $field ) { + + // Ensure value is an array. + if( $value ) { + return wp_parse_args($value, array( + 'address' => '', + 'lat' => 0, + 'lng' => 0 + )); } - - if( empty($value) || empty($value['lat']) || empty($value['lng']) ) { - - return false; - - } - - - // return - return $valid; - + // Return default. + return false; } @@ -292,16 +265,20 @@ function validate_value( $valid, $value, $field, $input ){ * * @return $value - the modified value */ - function update_value( $value, $post_id, $field ) { - // Check if value is an empty array and convert to empty string. - if( empty($value) || empty($value['lat']) ) { - $value = ""; + // decode JSON string. + if( is_string($value) ) { + $value = json_decode( wp_unslash($value), true ); + } + + // Ensure value is an array. + if( $value ) { + return (array) $value; } - // return - return $value; + // Return default. + return false; } } diff --git a/includes/fields/class-acf-field-wysiwyg.php b/includes/fields/class-acf-field-wysiwyg.php index 71a0c5c8..e6cf9ef8 100644 --- a/includes/fields/class-acf-field-wysiwyg.php +++ b/includes/fields/class-acf-field-wysiwyg.php @@ -427,7 +427,7 @@ function render_field_settings( $field ) { // delay acf_render_field_setting( $field, array( 'label' => __('Delay initialization?','acf'), - 'instructions' => __('TinyMCE will not be initalized until field is clicked','acf'), + 'instructions' => __('TinyMCE will not be initialized until field is clicked','acf'), 'name' => 'delay', 'type' => 'true_false', 'ui' => 1, diff --git a/includes/forms/form-attachment.php b/includes/forms/form-attachment.php index e3ec7902..6acbfee1 100644 --- a/includes/forms/form-attachment.php +++ b/includes/forms/form-attachment.php @@ -128,13 +128,13 @@ function edit_attachment( $form_fields, $post ) { $is_page = acf_is_screen('attachment'); $post_id = $post->ID; $el = 'tr'; - $args = array( - 'attachment' => $post_id - ); // get field groups - $field_groups = acf_get_field_groups( $args ); + $field_groups = acf_get_field_groups(array( + 'attachment_id' => $post_id, + 'attachment' => $post_id // Leave for backwards compatibility + )); // render diff --git a/includes/forms/form-front.php b/includes/forms/form-front.php index a6883f7a..e8cec836 100644 --- a/includes/forms/form-front.php +++ b/includes/forms/form-front.php @@ -633,7 +633,7 @@ function acf_form( $args = array() ) { function acf_get_form( $id = '' ) { - acf()->form_front->get_form( $id ); + return acf()->form_front->get_form( $id ); } diff --git a/includes/locations/class-acf-location-post-taxonomy.php b/includes/locations/class-acf-location-post-taxonomy.php index 33836aef..e46fac20 100644 --- a/includes/locations/class-acf-location-post-taxonomy.php +++ b/includes/locations/class-acf-location-post-taxonomy.php @@ -50,6 +50,11 @@ function rule_match( $result, $rule, $screen ) { $post_id = acf_maybe_get( $screen, 'post_id' ); $post_terms = acf_maybe_get( $screen, 'post_terms' ); + // Allow compatibility for attachments. + if( !$post_id ) { + $post_id = acf_maybe_get( $screen, 'attachment_id' ); + } + // bail early if not a post if( !$post_id ) return false; diff --git a/lang/acf-pt_PT.mo b/lang/acf-pt_PT.mo index f2165671..b835d92f 100644 Binary files a/lang/acf-pt_PT.mo and b/lang/acf-pt_PT.mo differ diff --git a/lang/acf-pt_PT.po b/lang/acf-pt_PT.po index 2d1cd980..f86856b5 100644 --- a/lang/acf-pt_PT.po +++ b/lang/acf-pt_PT.po @@ -4,8 +4,8 @@ msgid "" msgstr "" "Project-Id-Version: Advanced Custom Fields PRO\n" "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n" -"POT-Creation-Date: 2019-05-02 09:38+0100\n" -"PO-Revision-Date: 2019-05-02 09:52+0100\n" +"POT-Creation-Date: 2019-10-22 08:28+0100\n" +"PO-Revision-Date: 2019-10-22 08:36+0100\n" "Last-Translator: Pedro Mendonça \n" "Language-Team: Pedro Mendonça \n" "Language: pt_PT\n" @@ -13,7 +13,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 2.2.1\n" +"X-Generator: Poedit 2.2.4\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" "X-Textdomain-Support: yes\n" @@ -22,107 +22,107 @@ msgstr "" "X-Poedit-SearchPath-0: .\n" "X-Poedit-SearchPathExcluded-0: *.js\n" -#: acf.php:80 +#: acf.php:68 msgid "Advanced Custom Fields" msgstr "Advanced Custom Fields" -#: acf.php:363 includes/admin/admin.php:58 +#: acf.php:341 includes/admin/admin.php:58 msgid "Field Groups" msgstr "Grupos de campos" -#: acf.php:364 +#: acf.php:342 msgid "Field Group" msgstr "Grupo de campos" -#: acf.php:365 acf.php:397 includes/admin/admin.php:59 +#: acf.php:343 acf.php:375 includes/admin/admin.php:59 #: pro/fields/class-acf-field-flexible-content.php:558 msgid "Add New" msgstr "Adicionar novo" -#: acf.php:366 +#: acf.php:344 msgid "Add New Field Group" msgstr "Adicionar novo grupo de campos" -#: acf.php:367 +#: acf.php:345 msgid "Edit Field Group" msgstr "Editar grupo de campos" -#: acf.php:368 +#: acf.php:346 msgid "New Field Group" msgstr "Novo grupo de campos" -#: acf.php:369 +#: acf.php:347 msgid "View Field Group" msgstr "Ver grupo de campos" -#: acf.php:370 +#: acf.php:348 msgid "Search Field Groups" msgstr "Pesquisar grupos de campos" -#: acf.php:371 +#: acf.php:349 msgid "No Field Groups found" msgstr "Nenhum grupo de campos encontrado" -#: acf.php:372 +#: acf.php:350 msgid "No Field Groups found in Trash" msgstr "Nenhum grupo de campos encontrado no lixo" -#: acf.php:395 includes/admin/admin-field-group.php:220 +#: acf.php:373 includes/admin/admin-field-group.php:220 #: includes/admin/admin-field-groups.php:530 #: pro/fields/class-acf-field-clone.php:811 msgid "Fields" msgstr "Campos" -#: acf.php:396 +#: acf.php:374 msgid "Field" msgstr "Campo" -#: acf.php:398 +#: acf.php:376 msgid "Add New Field" msgstr "Adicionar novo campo" -#: acf.php:399 +#: acf.php:377 msgid "Edit Field" msgstr "Editar campo" -#: acf.php:400 includes/admin/views/field-group-fields.php:41 +#: acf.php:378 includes/admin/views/field-group-fields.php:41 msgid "New Field" msgstr "Novo campo" -#: acf.php:401 +#: acf.php:379 msgid "View Field" msgstr "Ver campo" -#: acf.php:402 +#: acf.php:380 msgid "Search Fields" msgstr "Pesquisar campos" -#: acf.php:403 +#: acf.php:381 msgid "No Fields found" msgstr "Nenhum campo encontrado" -#: acf.php:404 +#: acf.php:382 msgid "No Fields found in Trash" msgstr "Nenhum campo encontrado no lixo" -#: acf.php:443 includes/admin/admin-field-group.php:402 +#: acf.php:417 includes/admin/admin-field-group.php:402 #: includes/admin/admin-field-groups.php:587 msgid "Inactive" msgstr "Inactivo" -#: acf.php:448 +#: acf.php:422 #, php-format msgid "Inactive (%s)" msgid_plural "Inactive (%s)" msgstr[0] "Inactivo (%s)" msgstr[1] "Inactivos (%s)" -#: includes/acf-field-functions.php:828 +#: includes/acf-field-functions.php:831 #: includes/admin/admin-field-group.php:178 msgid "(no label)" msgstr "(sem legenda)" -#: includes/acf-field-group-functions.php:816 +#: includes/acf-field-group-functions.php:819 #: includes/admin/admin-field-group.php:180 msgid "copy" msgstr "cópia" @@ -194,7 +194,7 @@ msgstr "(este campo)" #: includes/admin/views/field-group-field-conditional-logic.php:151 #: includes/admin/views/field-group-locations.php:29 #: includes/admin/views/html-location-group.php:3 -#: includes/api/api-helpers.php:3862 +#: includes/api/api-helpers.php:3649 msgid "or" msgstr "ou" @@ -220,24 +220,24 @@ msgstr "Chaves dos campos" msgid "Active" msgstr "Activo" -#: includes/admin/admin-field-group.php:771 +#: includes/admin/admin-field-group.php:767 msgid "Move Complete." msgstr "Movido com sucesso." -#: includes/admin/admin-field-group.php:772 +#: includes/admin/admin-field-group.php:768 #, php-format msgid "The %s field can now be found in the %s field group" msgstr "O campo %s pode agora ser encontrado no grupo de campos %s" -#: includes/admin/admin-field-group.php:773 +#: includes/admin/admin-field-group.php:769 msgid "Close Window" msgstr "Fechar janela" -#: includes/admin/admin-field-group.php:814 +#: includes/admin/admin-field-group.php:810 msgid "Please select the destination for this field" msgstr "Por favor seleccione o destinho para este campo" -#: includes/admin/admin-field-group.php:821 +#: includes/admin/admin-field-group.php:817 msgid "Move Field" msgstr "Mover campo" @@ -268,7 +268,7 @@ msgid "Sync available" msgstr "Sincronização disponível" #: includes/admin/admin-field-groups.php:527 includes/forms/form-front.php:38 -#: pro/fields/class-acf-field-gallery.php:372 +#: pro/fields/class-acf-field-gallery.php:353 msgid "Title" msgstr "Título" @@ -276,7 +276,7 @@ msgstr "Título" #: includes/admin/views/field-group-options.php:96 #: includes/admin/views/html-admin-page-upgrade-network.php:38 #: includes/admin/views/html-admin-page-upgrade-network.php:49 -#: pro/fields/class-acf-field-gallery.php:399 +#: pro/fields/class-acf-field-gallery.php:380 msgid "Description" msgstr "Descrição" @@ -317,7 +317,7 @@ msgid "Support" msgstr "Suporte" #: includes/admin/admin-field-groups.php:642 -#: includes/admin/views/settings-info.php:84 +#: includes/admin/views/settings-info.php:81 msgid "Pro" msgstr "Pro" @@ -338,7 +338,7 @@ msgid "Duplicate" msgstr "Duplicar" #: includes/admin/admin-field-groups.php:719 -#: includes/fields/class-acf-field-google-map.php:165 +#: includes/fields/class-acf-field-google-map.php:146 #: includes/fields/class-acf-field-relationship.php:593 msgid "Search" msgstr "Pesquisa" @@ -512,9 +512,9 @@ msgstr "Editar campo" #: includes/admin/views/field-group-field.php:45 #: includes/fields/class-acf-field-file.php:152 -#: includes/fields/class-acf-field-image.php:139 +#: includes/fields/class-acf-field-image.php:138 #: includes/fields/class-acf-field-link.php:139 -#: pro/fields/class-acf-field-gallery.php:359 +#: pro/fields/class-acf-field-gallery.php:337 msgid "Edit" msgstr "Editar" @@ -835,7 +835,7 @@ msgid "Database upgrade complete. See what's new" msgstr "Actualização da base de dados concluída. Ver o que há de novo" #: includes/admin/views/html-admin-page-upgrade.php:116 -#: includes/ajax/class-acf-ajax-upgrade.php:33 +#: includes/ajax/class-acf-ajax-upgrade.php:32 msgid "No updates available." msgstr "Nenhuma actualização disponível." @@ -910,246 +910,246 @@ msgstr "Obrigado por actualizar! O ACF %s está maior e melhor do que nunca. Esp msgid "A Smoother Experience" msgstr "Uma experiência mais fácil" -#: includes/admin/views/settings-info.php:19 +#: includes/admin/views/settings-info.php:18 msgid "Improved Usability" msgstr "Usabilidade melhorada" -#: includes/admin/views/settings-info.php:20 +#: includes/admin/views/settings-info.php:19 msgid "Including the popular Select2 library has improved both usability and speed across a number of field types including post object, page link, taxonomy and select." msgstr "A inclusão da popular biblioteca Select2 melhorou a usabilidade e a velocidade de tipos de campos como conteúdo, ligação de página, taxonomia e selecção." -#: includes/admin/views/settings-info.php:24 +#: includes/admin/views/settings-info.php:22 msgid "Improved Design" msgstr "Design melhorado" -#: includes/admin/views/settings-info.php:25 +#: includes/admin/views/settings-info.php:23 msgid "Many fields have undergone a visual refresh to make ACF look better than ever! Noticeable changes are seen on the gallery, relationship and oEmbed (new) fields!" msgstr "Muitos campos sofreram alterações visuais para que a aparência do ACF esteja melhor que nunca! Alterações notáveis nos campos de galeria, relação e oEmbed (novo)!" -#: includes/admin/views/settings-info.php:29 +#: includes/admin/views/settings-info.php:26 msgid "Improved Data" msgstr "Dados melhorados" -#: includes/admin/views/settings-info.php:30 +#: includes/admin/views/settings-info.php:27 msgid "Redesigning the data architecture has allowed sub fields to live independently from their parents. This allows you to drag and drop fields in and out of parent fields!" msgstr "A reformulação da arquitectura dos dados permite que os subcampos existam independentemente dos seus superiores. Isto permite-lhe arrastar e largar campos para dentro e para fora de campos superiores!" -#: includes/admin/views/settings-info.php:38 +#: includes/admin/views/settings-info.php:35 msgid "Goodbye Add-ons. Hello PRO" msgstr "Adeus add-ons. Olá PRO." -#: includes/admin/views/settings-info.php:41 +#: includes/admin/views/settings-info.php:38 msgid "Introducing ACF PRO" msgstr "Introdução ao ACF PRO" -#: includes/admin/views/settings-info.php:42 +#: includes/admin/views/settings-info.php:39 msgid "We're changing the way premium functionality is delivered in an exciting way!" msgstr "Estamos a alterar o modo como as funcionalidades premium são distribuídas!" -#: includes/admin/views/settings-info.php:43 +#: includes/admin/views/settings-info.php:40 #, php-format msgid "All 4 premium add-ons have been combined into a new Pro version of ACF. With both personal and developer licenses available, premium functionality is more affordable and accessible than ever before!" msgstr "Todos os 4 add-ons premium foram combinados numa única versão Pro do ACF. Com licenças pessoais e para programadores, as funcionalidades premium estão agora mais acessíveis que nunca!" -#: includes/admin/views/settings-info.php:47 +#: includes/admin/views/settings-info.php:44 msgid "Powerful Features" msgstr "Funcionalidades poderosas" -#: includes/admin/views/settings-info.php:48 +#: includes/admin/views/settings-info.php:45 msgid "ACF PRO contains powerful features such as repeatable data, flexible content layouts, a beautiful gallery field and the ability to create extra admin options pages!" msgstr "O ACF PRO tem funcionalidades poderosas, tais como dados repetíveis, layouts de conteúdo flexível, um campo de galeria e a possibilidade de criar páginas de opções de administração adicionais!" -#: includes/admin/views/settings-info.php:49 +#: includes/admin/views/settings-info.php:46 #, php-format msgid "Read more about ACF PRO features." msgstr "Mais informações sobre as funcionalidades do ACF PRO." -#: includes/admin/views/settings-info.php:53 +#: includes/admin/views/settings-info.php:50 msgid "Easy Upgrading" msgstr "Actualização fácil" -#: includes/admin/views/settings-info.php:54 +#: includes/admin/views/settings-info.php:51 msgid "Upgrading to ACF PRO is easy. Simply purchase a license online and download the plugin!" msgstr "É fácil actualizar para o ACF PRO. Basta comprar uma licença online e descarregar o plugin!" -#: includes/admin/views/settings-info.php:55 +#: includes/admin/views/settings-info.php:52 #, php-format msgid "We also wrote an upgrade guide to answer any questions, but if you do have one, please contact our support team via the help desk." msgstr "Escrevemos um guia de actualização para responder a todas as dúvidas, se tiver alguma questão, por favor contacte a nossa equipa de suporte através da central de ajuda." -#: includes/admin/views/settings-info.php:64 +#: includes/admin/views/settings-info.php:61 msgid "New Features" msgstr "Novas funcionalidades" -#: includes/admin/views/settings-info.php:69 +#: includes/admin/views/settings-info.php:66 msgid "Link Field" msgstr "Campo de ligação" -#: includes/admin/views/settings-info.php:70 +#: includes/admin/views/settings-info.php:67 msgid "The Link field provides a simple way to select or define a link (url, title, target)." msgstr "O campo de ligação permite facilmente seleccionar ou definir uma ligação (URL, título, destino)." -#: includes/admin/views/settings-info.php:74 +#: includes/admin/views/settings-info.php:71 msgid "Group Field" msgstr "Campo de grupo" -#: includes/admin/views/settings-info.php:75 +#: includes/admin/views/settings-info.php:72 msgid "The Group field provides a simple way to create a group of fields." msgstr "O campo de grupo permite facilmente criar um grupo de campos." -#: includes/admin/views/settings-info.php:79 +#: includes/admin/views/settings-info.php:76 msgid "oEmbed Field" msgstr "Campo de oEmbed" -#: includes/admin/views/settings-info.php:80 +#: includes/admin/views/settings-info.php:77 msgid "The oEmbed field allows an easy way to embed videos, images, tweets, audio, and other content." msgstr "O campo de oEmbed permite facilmente incorporar vídeos, imagens, tweets, áudio ou outros conteúdos." -#: includes/admin/views/settings-info.php:84 +#: includes/admin/views/settings-info.php:81 msgid "Clone Field" msgstr "Campo de clone" -#: includes/admin/views/settings-info.php:85 +#: includes/admin/views/settings-info.php:82 msgid "The clone field allows you to select and display existing fields." msgstr "O campo de clone permite seleccionar e mostrar campos existentes." -#: includes/admin/views/settings-info.php:89 +#: includes/admin/views/settings-info.php:86 msgid "More AJAX" msgstr "Mais AJAX" -#: includes/admin/views/settings-info.php:90 +#: includes/admin/views/settings-info.php:87 msgid "More fields use AJAX powered search to speed up page loading." msgstr "Mais campos utilizam pesquisa com AJAX para aumentar a velocidade de carregamento." -#: includes/admin/views/settings-info.php:94 +#: includes/admin/views/settings-info.php:91 msgid "Local JSON" msgstr "JSON local" -#: includes/admin/views/settings-info.php:95 +#: includes/admin/views/settings-info.php:92 msgid "New auto export to JSON feature improves speed and allows for syncronisation." msgstr "Nova funcionalidade de exportação automática para JSON melhora a velocidade e permite sincronização." -#: includes/admin/views/settings-info.php:99 +#: includes/admin/views/settings-info.php:96 msgid "Easy Import / Export" msgstr "Fácil importação e exportação" -#: includes/admin/views/settings-info.php:100 +#: includes/admin/views/settings-info.php:97 msgid "Both import and export can easily be done through a new tools page." msgstr "Pode facilmente importar e exportar a partir da nova página de ferramentas." -#: includes/admin/views/settings-info.php:104 +#: includes/admin/views/settings-info.php:101 msgid "New Form Locations" msgstr "Novas localizações de formulários" -#: includes/admin/views/settings-info.php:105 +#: includes/admin/views/settings-info.php:102 msgid "Fields can now be mapped to menus, menu items, comments, widgets and all user forms!" msgstr "Os campos agora podem ser mapeados para menus, itens de menu, comentários, widgets e formulários de utilizador!" -#: includes/admin/views/settings-info.php:109 +#: includes/admin/views/settings-info.php:106 msgid "More Customization" msgstr "Maior personalização" -#: includes/admin/views/settings-info.php:110 +#: includes/admin/views/settings-info.php:107 msgid "New PHP (and JS) actions and filters have been added to allow for more customization." msgstr "Foram adicionadas novas acções e filtros de PHP (e JS) para permitir maior personalização." -#: includes/admin/views/settings-info.php:114 +#: includes/admin/views/settings-info.php:111 msgid "Fresh UI" msgstr "Nova interface" -#: includes/admin/views/settings-info.php:115 +#: includes/admin/views/settings-info.php:112 msgid "The entire plugin has had a design refresh including new field types, settings and design!" msgstr "Toda a interface do plugin foi actualizada, incluindo novos tipos de campos, definições e design!" -#: includes/admin/views/settings-info.php:119 +#: includes/admin/views/settings-info.php:116 msgid "New Settings" msgstr "Novas definições" -#: includes/admin/views/settings-info.php:120 +#: includes/admin/views/settings-info.php:117 msgid "Field group settings have been added for Active, Label Placement, Instructions Placement and Description." msgstr "Foram adicionadas definições aos grupos de campos, tais como activação, posição da legenda, posição das instruções e descrição." -#: includes/admin/views/settings-info.php:124 +#: includes/admin/views/settings-info.php:121 msgid "Better Front End Forms" msgstr "Melhores formulários para o seu site" -#: includes/admin/views/settings-info.php:125 +#: includes/admin/views/settings-info.php:122 msgid "acf_form() can now create a new post on submission with lots of new settings." msgstr "Com acf_form() agora pode criar um novo conteúdo ao submeter, com muito mais definições." -#: includes/admin/views/settings-info.php:129 +#: includes/admin/views/settings-info.php:126 msgid "Better Validation" msgstr "Melhor validação" -#: includes/admin/views/settings-info.php:130 +#: includes/admin/views/settings-info.php:127 msgid "Form validation is now done via PHP + AJAX in favour of only JS." msgstr "A validação de formulários agora é feita com PHP + AJAX em vez de apenas JS." -#: includes/admin/views/settings-info.php:134 +#: includes/admin/views/settings-info.php:131 msgid "Moving Fields" msgstr "Mover campos" -#: includes/admin/views/settings-info.php:135 +#: includes/admin/views/settings-info.php:132 msgid "New field group functionality allows you to move a field between groups & parents." msgstr "Nova funcionalidade de grupo de campos permite mover um campo entre grupos e superiores." -#: includes/admin/views/settings-info.php:146 +#: includes/admin/views/settings-info.php:143 #, php-format msgid "We think you'll love the changes in %s." msgstr "Pensamos que vai gostar das alterações na versão %s." -#: includes/api/api-helpers.php:1003 +#: includes/api/api-helpers.php:827 msgid "Thumbnail" msgstr "Miniatura" -#: includes/api/api-helpers.php:1004 +#: includes/api/api-helpers.php:828 msgid "Medium" msgstr "Média" -#: includes/api/api-helpers.php:1005 +#: includes/api/api-helpers.php:829 msgid "Large" msgstr "Grande" -#: includes/api/api-helpers.php:1054 +#: includes/api/api-helpers.php:878 msgid "Full Size" msgstr "Tamanho original" -#: includes/api/api-helpers.php:1775 includes/api/api-term.php:147 +#: includes/api/api-helpers.php:1599 includes/api/api-term.php:147 #: pro/fields/class-acf-field-clone.php:996 msgid "(no title)" msgstr "(sem título)" -#: includes/api/api-helpers.php:3783 +#: includes/api/api-helpers.php:3570 #, php-format msgid "Image width must be at least %dpx." msgstr "A largura da imagem deve ser pelo menos de %dpx." -#: includes/api/api-helpers.php:3788 +#: includes/api/api-helpers.php:3575 #, php-format msgid "Image width must not exceed %dpx." msgstr "A largura da imagem não deve exceder os %dpx." -#: includes/api/api-helpers.php:3804 +#: includes/api/api-helpers.php:3591 #, php-format msgid "Image height must be at least %dpx." msgstr "A altura da imagem deve ser pelo menos de %dpx." -#: includes/api/api-helpers.php:3809 +#: includes/api/api-helpers.php:3596 #, php-format msgid "Image height must not exceed %dpx." msgstr "A altura da imagem não deve exceder os %dpx." -#: includes/api/api-helpers.php:3827 +#: includes/api/api-helpers.php:3614 #, php-format msgid "File size must be at least %s." msgstr "O tamanho do ficheiro deve ser pelo menos de %s." -#: includes/api/api-helpers.php:3832 +#: includes/api/api-helpers.php:3619 #, php-format msgid "File size must must not exceed %s." msgstr "O tamanho do ficheiro não deve exceder %s." -#: includes/api/api-helpers.php:3866 +#: includes/api/api-helpers.php:3653 #, php-format msgid "File type must be %s." msgstr "O tipo de ficheiro deve ser %s." @@ -1189,7 +1189,7 @@ msgstr "Minimizar detalhes" msgid "Restricted" msgstr "Restrito" -#: includes/assets.php:178 includes/fields/class-acf-field-image.php:67 +#: includes/assets.php:178 includes/fields/class-acf-field-image.php:66 msgid "All images" msgstr "Todas as imagens" @@ -1228,10 +1228,10 @@ msgid "No" msgstr "Não" #: includes/assets.php:190 includes/fields/class-acf-field-file.php:154 -#: includes/fields/class-acf-field-image.php:141 +#: includes/fields/class-acf-field-image.php:140 #: includes/fields/class-acf-field-link.php:140 -#: pro/fields/class-acf-field-gallery.php:360 -#: pro/fields/class-acf-field-gallery.php:549 +#: pro/fields/class-acf-field-gallery.php:338 +#: pro/fields/class-acf-field-gallery.php:478 msgid "Remove" msgstr "Remover" @@ -1402,7 +1402,7 @@ msgstr "Permitir nulo?" #: includes/fields/class-acf-field-radio.php:281 #: includes/fields/class-acf-field-range.php:149 #: includes/fields/class-acf-field-select.php:373 -#: includes/fields/class-acf-field-text.php:119 +#: includes/fields/class-acf-field-text.php:95 #: includes/fields/class-acf-field-textarea.php:102 #: includes/fields/class-acf-field-true_false.php:135 #: includes/fields/class-acf-field-url.php:100 @@ -1415,7 +1415,7 @@ msgstr "Valor por omissão" #: includes/fields/class-acf-field-number.php:128 #: includes/fields/class-acf-field-radio.php:282 #: includes/fields/class-acf-field-range.php:150 -#: includes/fields/class-acf-field-text.php:120 +#: includes/fields/class-acf-field-text.php:96 #: includes/fields/class-acf-field-textarea.php:103 #: includes/fields/class-acf-field-url.php:101 #: includes/fields/class-acf-field-wysiwyg.php:382 @@ -1437,7 +1437,6 @@ msgstr "Vertical" #: includes/fields/class-acf-field-button-group.php:191 #: includes/fields/class-acf-field-checkbox.php:413 #: includes/fields/class-acf-field-file.php:215 -#: includes/fields/class-acf-field-image.php:205 #: includes/fields/class-acf-field-link.php:166 #: includes/fields/class-acf-field-radio.php:304 #: includes/fields/class-acf-field-taxonomy.php:829 @@ -1447,7 +1446,6 @@ msgstr "Valor devolvido" #: includes/fields/class-acf-field-button-group.php:192 #: includes/fields/class-acf-field-checkbox.php:414 #: includes/fields/class-acf-field-file.php:216 -#: includes/fields/class-acf-field-image.php:206 #: includes/fields/class-acf-field-link.php:167 #: includes/fields/class-acf-field-radio.php:305 msgid "Specify the returned value on front end" @@ -1589,11 +1587,13 @@ msgstr "O formato usado ao guardar um valor" #: includes/fields/class-acf-field-date_picker.php:208 #: includes/fields/class-acf-field-date_time_picker.php:200 +#: includes/fields/class-acf-field-image.php:204 #: includes/fields/class-acf-field-post_object.php:431 #: includes/fields/class-acf-field-relationship.php:634 #: includes/fields/class-acf-field-select.php:427 #: includes/fields/class-acf-field-time_picker.php:124 #: includes/fields/class-acf-field-user.php:412 +#: pro/fields/class-acf-field-gallery.php:557 msgid "Return Format" msgstr "Formato devolvido" @@ -1694,7 +1694,7 @@ msgstr "Email" #: includes/fields/class-acf-field-email.php:127 #: includes/fields/class-acf-field-number.php:136 #: includes/fields/class-acf-field-password.php:71 -#: includes/fields/class-acf-field-text.php:128 +#: includes/fields/class-acf-field-text.php:104 #: includes/fields/class-acf-field-textarea.php:111 #: includes/fields/class-acf-field-url.php:109 msgid "Placeholder Text" @@ -1703,7 +1703,7 @@ msgstr "Texto predefinido" #: includes/fields/class-acf-field-email.php:128 #: includes/fields/class-acf-field-number.php:137 #: includes/fields/class-acf-field-password.php:72 -#: includes/fields/class-acf-field-text.php:129 +#: includes/fields/class-acf-field-text.php:105 #: includes/fields/class-acf-field-textarea.php:112 #: includes/fields/class-acf-field-url.php:110 msgid "Appears within the input" @@ -1713,7 +1713,7 @@ msgstr "Mostrado dentro do campo" #: includes/fields/class-acf-field-number.php:145 #: includes/fields/class-acf-field-password.php:80 #: includes/fields/class-acf-field-range.php:188 -#: includes/fields/class-acf-field-text.php:137 +#: includes/fields/class-acf-field-text.php:113 msgid "Prepend" msgstr "Preceder" @@ -1721,7 +1721,7 @@ msgstr "Preceder" #: includes/fields/class-acf-field-number.php:146 #: includes/fields/class-acf-field-password.php:81 #: includes/fields/class-acf-field-range.php:189 -#: includes/fields/class-acf-field-text.php:138 +#: includes/fields/class-acf-field-text.php:114 msgid "Appears before the input" msgstr "Mostrado antes do campo" @@ -1729,7 +1729,7 @@ msgstr "Mostrado antes do campo" #: includes/fields/class-acf-field-number.php:154 #: includes/fields/class-acf-field-password.php:89 #: includes/fields/class-acf-field-range.php:197 -#: includes/fields/class-acf-field-text.php:146 +#: includes/fields/class-acf-field-text.php:122 msgid "Append" msgstr "Suceder" @@ -1737,7 +1737,7 @@ msgstr "Suceder" #: includes/fields/class-acf-field-number.php:155 #: includes/fields/class-acf-field-password.php:90 #: includes/fields/class-acf-field-range.php:198 -#: includes/fields/class-acf-field-text.php:147 +#: includes/fields/class-acf-field-text.php:123 msgid "Appears after the input" msgstr "Mostrado depois do campo" @@ -1760,10 +1760,10 @@ msgstr "Nome do ficheiro" #: includes/fields/class-acf-field-file.php:145 #: includes/fields/class-acf-field-file.php:248 #: includes/fields/class-acf-field-file.php:259 -#: includes/fields/class-acf-field-image.php:265 -#: includes/fields/class-acf-field-image.php:294 -#: pro/fields/class-acf-field-gallery.php:708 -#: pro/fields/class-acf-field-gallery.php:737 +#: includes/fields/class-acf-field-image.php:264 +#: includes/fields/class-acf-field-image.php:293 +#: pro/fields/class-acf-field-gallery.php:642 +#: pro/fields/class-acf-field-gallery.php:671 msgid "File size" msgstr "Tamanho do ficheiro" @@ -1784,40 +1784,40 @@ msgid "File ID" msgstr "ID do ficheiro" #: includes/fields/class-acf-field-file.php:230 -#: includes/fields/class-acf-field-image.php:230 -#: pro/fields/class-acf-field-gallery.php:673 +#: includes/fields/class-acf-field-image.php:229 +#: pro/fields/class-acf-field-gallery.php:592 msgid "Library" msgstr "Biblioteca" #: includes/fields/class-acf-field-file.php:231 -#: includes/fields/class-acf-field-image.php:231 -#: pro/fields/class-acf-field-gallery.php:674 +#: includes/fields/class-acf-field-image.php:230 +#: pro/fields/class-acf-field-gallery.php:593 msgid "Limit the media library choice" msgstr "Limita a escolha da biblioteca de media." #: includes/fields/class-acf-field-file.php:236 -#: includes/fields/class-acf-field-image.php:236 +#: includes/fields/class-acf-field-image.php:235 #: includes/locations/class-acf-location-attachment.php:101 #: includes/locations/class-acf-location-comment.php:79 #: includes/locations/class-acf-location-nav-menu.php:102 #: includes/locations/class-acf-location-taxonomy.php:79 -#: includes/locations/class-acf-location-user-form.php:87 -#: includes/locations/class-acf-location-user-role.php:111 +#: includes/locations/class-acf-location-user-form.php:72 +#: includes/locations/class-acf-location-user-role.php:88 #: includes/locations/class-acf-location-widget.php:83 -#: pro/fields/class-acf-field-gallery.php:679 +#: pro/fields/class-acf-field-gallery.php:598 #: pro/locations/class-acf-location-block.php:79 msgid "All" msgstr "Todos" #: includes/fields/class-acf-field-file.php:237 -#: includes/fields/class-acf-field-image.php:237 -#: pro/fields/class-acf-field-gallery.php:680 +#: includes/fields/class-acf-field-image.php:236 +#: pro/fields/class-acf-field-gallery.php:599 msgid "Uploaded to post" msgstr "Carregados no artigo" #: includes/fields/class-acf-field-file.php:244 -#: includes/fields/class-acf-field-image.php:244 -#: pro/fields/class-acf-field-gallery.php:687 +#: includes/fields/class-acf-field-image.php:243 +#: pro/fields/class-acf-field-gallery.php:621 msgid "Minimum" msgstr "Mínimo" @@ -1827,20 +1827,20 @@ msgid "Restrict which files can be uploaded" msgstr "Restringe que ficheiros podem ser carregados." #: includes/fields/class-acf-field-file.php:255 -#: includes/fields/class-acf-field-image.php:273 -#: pro/fields/class-acf-field-gallery.php:716 +#: includes/fields/class-acf-field-image.php:272 +#: pro/fields/class-acf-field-gallery.php:650 msgid "Maximum" msgstr "Máximo" #: includes/fields/class-acf-field-file.php:266 -#: includes/fields/class-acf-field-image.php:302 -#: pro/fields/class-acf-field-gallery.php:745 +#: includes/fields/class-acf-field-image.php:301 +#: pro/fields/class-acf-field-gallery.php:678 msgid "Allowed file types" msgstr "Tipos de ficheiros permitidos" #: includes/fields/class-acf-field-file.php:267 -#: includes/fields/class-acf-field-image.php:303 -#: pro/fields/class-acf-field-gallery.php:746 +#: includes/fields/class-acf-field-image.php:302 +#: pro/fields/class-acf-field-gallery.php:679 msgid "Comma separated list. Leave blank for all types" msgstr "Lista separada por vírgulas. Deixe em branco para permitir todos os tipos." @@ -1852,46 +1852,46 @@ msgstr "Mapa do Google" msgid "Sorry, this browser does not support geolocation" msgstr "Desculpe, este navegador não suporta geolocalização." -#: includes/fields/class-acf-field-google-map.php:166 +#: includes/fields/class-acf-field-google-map.php:147 msgid "Clear location" msgstr "Limpar localização" -#: includes/fields/class-acf-field-google-map.php:167 +#: includes/fields/class-acf-field-google-map.php:148 msgid "Find current location" msgstr "Encontrar a localização actual" -#: includes/fields/class-acf-field-google-map.php:170 +#: includes/fields/class-acf-field-google-map.php:151 msgid "Search for address..." msgstr "Pesquisar endereço..." -#: includes/fields/class-acf-field-google-map.php:200 -#: includes/fields/class-acf-field-google-map.php:211 +#: includes/fields/class-acf-field-google-map.php:181 +#: includes/fields/class-acf-field-google-map.php:192 msgid "Center" msgstr "Centrar" -#: includes/fields/class-acf-field-google-map.php:201 -#: includes/fields/class-acf-field-google-map.php:212 +#: includes/fields/class-acf-field-google-map.php:182 +#: includes/fields/class-acf-field-google-map.php:193 msgid "Center the initial map" msgstr "Centrar o mapa inicial" -#: includes/fields/class-acf-field-google-map.php:223 +#: includes/fields/class-acf-field-google-map.php:204 msgid "Zoom" msgstr "Zoom" -#: includes/fields/class-acf-field-google-map.php:224 +#: includes/fields/class-acf-field-google-map.php:205 msgid "Set the initial zoom level" msgstr "Definir o nível de zoom inicial" -#: includes/fields/class-acf-field-google-map.php:233 -#: includes/fields/class-acf-field-image.php:256 -#: includes/fields/class-acf-field-image.php:285 +#: includes/fields/class-acf-field-google-map.php:214 +#: includes/fields/class-acf-field-image.php:255 +#: includes/fields/class-acf-field-image.php:284 #: includes/fields/class-acf-field-oembed.php:268 -#: pro/fields/class-acf-field-gallery.php:699 -#: pro/fields/class-acf-field-gallery.php:728 +#: pro/fields/class-acf-field-gallery.php:633 +#: pro/fields/class-acf-field-gallery.php:662 msgid "Height" msgstr "Altura" -#: includes/fields/class-acf-field-google-map.php:234 +#: includes/fields/class-acf-field-google-map.php:215 msgid "Customize the map height" msgstr "Personalizar a altura do mapa" @@ -1935,58 +1935,58 @@ msgstr "Linha" msgid "Image" msgstr "Imagem" -#: includes/fields/class-acf-field-image.php:64 +#: includes/fields/class-acf-field-image.php:63 msgid "Select Image" msgstr "Seleccionar imagem" -#: includes/fields/class-acf-field-image.php:65 +#: includes/fields/class-acf-field-image.php:64 msgid "Edit Image" msgstr "Editar imagem" -#: includes/fields/class-acf-field-image.php:66 +#: includes/fields/class-acf-field-image.php:65 msgid "Update Image" msgstr "Actualizar imagem" -#: includes/fields/class-acf-field-image.php:157 +#: includes/fields/class-acf-field-image.php:156 msgid "No image selected" msgstr "Nenhuma imagem seleccionada" -#: includes/fields/class-acf-field-image.php:157 +#: includes/fields/class-acf-field-image.php:156 msgid "Add Image" msgstr "Adicionar imagem" -#: includes/fields/class-acf-field-image.php:211 +#: includes/fields/class-acf-field-image.php:210 +#: pro/fields/class-acf-field-gallery.php:563 msgid "Image Array" msgstr "Array da imagem" -#: includes/fields/class-acf-field-image.php:212 +#: includes/fields/class-acf-field-image.php:211 +#: pro/fields/class-acf-field-gallery.php:564 msgid "Image URL" msgstr "URL da imagem" -#: includes/fields/class-acf-field-image.php:213 +#: includes/fields/class-acf-field-image.php:212 +#: pro/fields/class-acf-field-gallery.php:565 msgid "Image ID" msgstr "ID da imagem" -#: includes/fields/class-acf-field-image.php:220 +#: includes/fields/class-acf-field-image.php:219 +#: pro/fields/class-acf-field-gallery.php:571 msgid "Preview Size" msgstr "Tamanho da pré-visualização" -#: includes/fields/class-acf-field-image.php:221 -msgid "Shown when entering data" -msgstr "Mostrado ao inserir dados" - -#: includes/fields/class-acf-field-image.php:245 -#: includes/fields/class-acf-field-image.php:274 -#: pro/fields/class-acf-field-gallery.php:688 -#: pro/fields/class-acf-field-gallery.php:717 +#: includes/fields/class-acf-field-image.php:244 +#: includes/fields/class-acf-field-image.php:273 +#: pro/fields/class-acf-field-gallery.php:622 +#: pro/fields/class-acf-field-gallery.php:651 msgid "Restrict which images can be uploaded" msgstr "Restringir que imagens que ser carregadas" -#: includes/fields/class-acf-field-image.php:248 -#: includes/fields/class-acf-field-image.php:277 +#: includes/fields/class-acf-field-image.php:247 +#: includes/fields/class-acf-field-image.php:276 #: includes/fields/class-acf-field-oembed.php:257 -#: pro/fields/class-acf-field-gallery.php:691 -#: pro/fields/class-acf-field-gallery.php:720 +#: pro/fields/class-acf-field-gallery.php:625 +#: pro/fields/class-acf-field-gallery.php:654 msgid "Width" msgstr "Largura" @@ -2244,7 +2244,7 @@ msgid "Maximum posts" msgstr "Máximo de conteúdos" #: includes/fields/class-acf-field-relationship.php:727 -#: pro/fields/class-acf-field-gallery.php:818 +#: pro/fields/class-acf-field-gallery.php:779 #, php-format msgid "%s requires at least %s selection" msgid_plural "%s requires at least %s selections" @@ -2432,6 +2432,7 @@ msgid "%s added" msgstr "%s adicionado(a)" #: includes/fields/class-acf-field-taxonomy.php:973 +#: includes/locations/class-acf-location-user-form.php:73 msgid "Add" msgstr "Adicionar" @@ -2439,18 +2440,18 @@ msgstr "Adicionar" msgid "Text" msgstr "Texto" -#: includes/fields/class-acf-field-text.php:155 +#: includes/fields/class-acf-field-text.php:131 #: includes/fields/class-acf-field-textarea.php:120 msgid "Character Limit" msgstr "Limite de caracteres" -#: includes/fields/class-acf-field-text.php:156 +#: includes/fields/class-acf-field-text.php:132 #: includes/fields/class-acf-field-textarea.php:121 msgid "Leave blank for no limit" msgstr "Deixe em branco para não limitar" -#: includes/fields/class-acf-field-text.php:181 -#: includes/fields/class-acf-field-textarea.php:213 +#: includes/fields/class-acf-field-text.php:157 +#: includes/fields/class-acf-field-textarea.php:215 #, php-format msgid "Value must not exceed %d characters" msgstr "O valor não deve exceder %d caracteres" @@ -2573,26 +2574,31 @@ msgid "Delay initialization?" msgstr "Atrasar a inicialização?" #: includes/fields/class-acf-field-wysiwyg.php:430 -msgid "TinyMCE will not be initalized until field is clicked" +msgid "TinyMCE will not be initialized until field is clicked" msgstr "O TinyMCE não será inicializado até que clique no campo" #: includes/forms/form-front.php:55 msgid "Validate Email" msgstr "Validar email" -#: includes/forms/form-front.php:103 pro/fields/class-acf-field-gallery.php:591 +#: includes/forms/form-front.php:104 pro/fields/class-acf-field-gallery.php:510 #: pro/options-page.php:81 msgid "Update" msgstr "Actualizar" -#: includes/forms/form-front.php:104 +#: includes/forms/form-front.php:105 msgid "Post updated" msgstr "Artigo actualizado" -#: includes/forms/form-front.php:230 +#: includes/forms/form-front.php:231 msgid "Spam Detected" msgstr "Spam detectado" +#: includes/forms/form-user.php:336 +#, php-format +msgid "ERROR: %s" +msgstr "ERRO: %s" + #: includes/locations.php:93 includes/locations/class-acf-location-post.php:27 msgid "Post" msgstr "Artigo" @@ -2723,19 +2729,19 @@ msgstr "Taxonomia do artigo" msgid "Post Template" msgstr "Modelo de conteúdo" -#: includes/locations/class-acf-location-user-form.php:27 +#: includes/locations/class-acf-location-user-form.php:22 msgid "User Form" msgstr "Formulário de utilizador" -#: includes/locations/class-acf-location-user-form.php:88 +#: includes/locations/class-acf-location-user-form.php:74 msgid "Add / Edit" msgstr "Adicionar / Editar" -#: includes/locations/class-acf-location-user-form.php:89 +#: includes/locations/class-acf-location-user-form.php:75 msgid "Register" msgstr "Registar" -#: includes/locations/class-acf-location-user-role.php:27 +#: includes/locations/class-acf-location-user-role.php:22 msgid "User Role" msgstr "Papel de utilizador" @@ -2990,78 +2996,78 @@ msgstr "Mínimo de layouts" msgid "Maximum Layouts" msgstr "Máximo de layouts" -#: pro/fields/class-acf-field-gallery.php:71 +#: pro/fields/class-acf-field-gallery.php:73 msgid "Add Image to Gallery" msgstr "Adicionar imagem à galeria" -#: pro/fields/class-acf-field-gallery.php:72 +#: pro/fields/class-acf-field-gallery.php:74 msgid "Maximum selection reached" msgstr "Máximo de selecção alcançado" -#: pro/fields/class-acf-field-gallery.php:338 +#: pro/fields/class-acf-field-gallery.php:322 msgid "Length" msgstr "Comprimento" -#: pro/fields/class-acf-field-gallery.php:381 +#: pro/fields/class-acf-field-gallery.php:362 msgid "Caption" msgstr "Legenda" -#: pro/fields/class-acf-field-gallery.php:390 +#: pro/fields/class-acf-field-gallery.php:371 msgid "Alt Text" msgstr "Texto alternativo" -#: pro/fields/class-acf-field-gallery.php:562 +#: pro/fields/class-acf-field-gallery.php:487 msgid "Add to gallery" msgstr "Adicionar à galeria" -#: pro/fields/class-acf-field-gallery.php:566 +#: pro/fields/class-acf-field-gallery.php:491 msgid "Bulk actions" msgstr "Acções por lotes" -#: pro/fields/class-acf-field-gallery.php:567 +#: pro/fields/class-acf-field-gallery.php:492 msgid "Sort by date uploaded" msgstr "Ordenar por data de carregamento" -#: pro/fields/class-acf-field-gallery.php:568 +#: pro/fields/class-acf-field-gallery.php:493 msgid "Sort by date modified" msgstr "Ordenar por data de modificação" -#: pro/fields/class-acf-field-gallery.php:569 +#: pro/fields/class-acf-field-gallery.php:494 msgid "Sort by title" msgstr "Ordenar por título" -#: pro/fields/class-acf-field-gallery.php:570 +#: pro/fields/class-acf-field-gallery.php:495 msgid "Reverse current order" msgstr "Inverter ordem actual" -#: pro/fields/class-acf-field-gallery.php:588 +#: pro/fields/class-acf-field-gallery.php:507 msgid "Close" msgstr "Fechar" -#: pro/fields/class-acf-field-gallery.php:642 -msgid "Minimum Selection" -msgstr "Selecção mínima" - -#: pro/fields/class-acf-field-gallery.php:651 -msgid "Maximum Selection" -msgstr "Selecção máxima" - -#: pro/fields/class-acf-field-gallery.php:660 +#: pro/fields/class-acf-field-gallery.php:580 msgid "Insert" msgstr "Inserir" -#: pro/fields/class-acf-field-gallery.php:661 +#: pro/fields/class-acf-field-gallery.php:581 msgid "Specify where new attachments are added" msgstr "Especifica onde serão adicionados os novos anexos." -#: pro/fields/class-acf-field-gallery.php:665 +#: pro/fields/class-acf-field-gallery.php:585 msgid "Append to the end" msgstr "No fim" -#: pro/fields/class-acf-field-gallery.php:666 +#: pro/fields/class-acf-field-gallery.php:586 msgid "Prepend to the beginning" msgstr "No início" +#: pro/fields/class-acf-field-gallery.php:605 +msgid "Minimum Selection" +msgstr "Selecção mínima" + +#: pro/fields/class-acf-field-gallery.php:613 +msgid "Maximum Selection" +msgstr "Selecção máxima" + #: pro/fields/class-acf-field-repeater.php:65 #: pro/fields/class-acf-field-repeater.php:661 msgid "Minimum rows reached ({min} rows)" @@ -3112,25 +3118,34 @@ msgstr "Opções actualizadas" msgid "To enable updates, please enter your license key on the Updates page. If you don't have a licence key, please see details & pricing." msgstr "Para permitir actualizações, por favor insira a sua chave de licença na página de Actualizações. Se não tiver uma chave de licença, por favor veja os detalhes e preços." -#: tests/basic/test-blocks.php:13 -msgid "Testimonial" -msgstr "Testemunho" +#: tests/basic/test-blocks.php:30 +msgid "Normal" +msgstr "Normal" -#: tests/basic/test-blocks.php:14 -msgid "A custom testimonial block." -msgstr "Um bloco personalizado de testemunho." +#: tests/basic/test-blocks.php:31 +msgid "Fancy" +msgstr "Elegante" #. Plugin URI of the plugin/theme -msgid "https://www.advancedcustomfields.com/" -msgstr "https://www.advancedcustomfields.com/" +#. Author URI of the plugin/theme +msgid "https://www.advancedcustomfields.com" +msgstr "https://www.advancedcustomfields.com" #. Author of the plugin/theme msgid "Elliot Condon" msgstr "Elliot Condon" -#. Author URI of the plugin/theme -msgid "http://www.elliotcondon.com/" -msgstr "http://www.elliotcondon.com/" +#~ msgid "Shown when entering data" +#~ msgstr "Mostrado ao inserir dados" + +#~ msgid "Testimonial" +#~ msgstr "Testemunho" + +#~ msgid "A custom testimonial block." +#~ msgstr "Um bloco personalizado de testemunho." + +#~ msgid "http://www.elliotcondon.com/" +#~ msgstr "http://www.elliotcondon.com/" #~ msgid "Error. Could not connect to update server %s." #~ msgstr "Erro. Não foi possível ligar ao servidor de actualização %s." diff --git a/readme.txt b/readme.txt index 6d5015a2..61707931 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: elliotcondon Tags: acf, advanced, custom, field, fields, form, repeater, content Requires at least: 4.7.0 -Tested up to: 5.2 +Tested up to: 5.2.4 Requires PHP: 5.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -67,6 +67,16 @@ From your WordPress dashboard == Changelog == += 5.8.6 = +*Release Date - 24 October 2019* + +* New - Added more data to Google Maps field value including place_id, street_name, country and more. +* Fix - Fixed bug in Gallery field incorrectly displaying .pdf attachments as icons. +* Fix - Fixed bug in Checkbox field missing "selected" class after "Toggle All". +* Dev - Added compatibility for Attachments in the Post Taxonomy location rule. +* Dev - Added missing return statement from `acf_get_form()` function. +* Dev - Added "google_map_result" JS filter. + = 5.8.5 = *Release Date - 8 October 2019*