close

Plugin Directory

Changeset 3073690


Ignore:
Timestamp:
04/19/2024 09:32:25 AM (2 years ago)
Author:
podpirate
Message:

Release 3.3.5

Location:
acf-quickedit-fields
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • acf-quickedit-fields/tags/3.3.5/include/ACFQuickEdit/Admin/Admin.php

    r3046138 r3073690  
    189189
    190190                    if ( $field_object = Fields\Field::getFieldObject( $field ) ) {
    191                         $value = $field_object->get_value( $object_id, false );
     191                        $value = $field_object->sanitize_value(
     192                            $field_object->get_value( $object_id, false ),
     193                            'ajax'
     194                        );
    192195                        if ( ! isset( $data[ $key ] ) ) {
    193196                            // first iteration - always set value
    194                             $val = $field_object->get_value( $object_id, false );
    195                             $data[ $key ] = $field_object->sanitize_value( $val, 'ajax' );
     197                            // $val = $field_object->get_value( $object_id, false );
     198                            $data[ $key ] = $value;
     199
    196200                        } else {
    197201                            // multiple iterations - no value if values aren't equal
  • acf-quickedit-fields/tags/3.3.5/include/ACFQuickEdit/Fields/Traits/Filter.php

    r2919533 r3073690  
    66
    77trait Filter {
     8
     9    use InputSelect;
    810
    911    /**
     
    5759        ) . PHP_EOL;
    5860
    59         foreach ( $choices as $value => $label ) {
     61        $out .= $this->render_select_options( $choices, $selected, $is_multiple );
    6062
    61             $value = $is_multiple
    62                 ? serialize( trim( "{$value}" ) ) // prepare value for LIKE comparision in serialize array
    63                 : "{$value}";
    64 
    65             $out .= sprintf(
    66                 '<option value="%s" %s>%s</option>',
    67                 esc_attr( $value ),
    68                 $selected === $value
    69                     ? 'selected'
    70                     : '',
    71                 esc_html( $label )
    72             ) . PHP_EOL;
    73         }
    7463        $out .= '</select>' . PHP_EOL;
    7564
     
    118107        ) . PHP_EOL;
    119108
    120         foreach ( $choices as $value => $label ) {
     109        $out .= $this->render_select_options( $choices, $selected );
    121110
    122             $out .= sprintf(
    123                 '<option value="%s" %s>%s</option>',
    124                 esc_attr( $value ),
    125                 $selected === $value
    126                     ? 'selected'
    127                     : '',
    128                 esc_html( $label )
    129             ) . PHP_EOL;
    130         }
    131111        $out .= '</select>' . PHP_EOL;
    132112
  • acf-quickedit-fields/tags/3.3.5/include/ACFQuickEdit/Fields/Traits/InputSelect.php

    r2808949 r3073690  
    5151            }
    5252
    53             foreach( $acf_field['choices'] as $name => $label) {
    54                 $output .= sprintf('<option value="%s">%s</option>', esc_attr( $name ), acf_esc_html( $label ) ) . PHP_EOL;
    55             }
     53            $output .= $this->render_select_options( $acf_field['choices'], null, (boolean) $acf_field['multiple'] );
     54
    5655        }
    5756
     
    6059        return $output;
    6160    }
     61
     62    /**
     63     *  @param array $choices
     64     *  @param string $out
     65     *  @param string $selected
     66     *  @param boolean $is_multiple
     67     */
     68    protected function render_select_options( $choices, $selected, $is_multiple = false ) {
     69        $out = '';
     70        foreach ( $choices as $value => $label ) {
     71            if ( is_array( $label ) ) {
     72                $out .= sprintf( '<optgroup label="%s">', esc_attr( $value ) ) . PHP_EOL;
     73                $out .= $this->render_select_options( $label, $selected, $is_multiple ) . PHP_EOL;
     74                $out .= '</optgroup>' . PHP_EOL ;
     75            } else {
     76                $value = $is_multiple
     77                    ? serialize( trim( "{$value}" ) ) // prepare value for LIKE comparision in serialize array
     78                    : "{$value}";
     79
     80                $out .= sprintf(
     81                    '<option value="%s" %s>%s</option>',
     82                    esc_attr( $value ),
     83                    $selected === $value
     84                        ? 'selected'
     85                        : '',
     86                    esc_html( $label )
     87                ) . PHP_EOL;
     88            }
     89        }
     90        return $out;
     91    }
     92
    6293
    6394    /**
     
    89120        // bail if post doesn't exist
    90121        if ( ! isset( $this->acf_field['choices'][ $value ] ) ) {
    91             return '';
     122            if ( $this->acf_field['allow_custom'] ) {
     123                return [
     124                    'id'   => sanitize_text_field( $value ),
     125                    'text' => sanitize_text_field( $value ),
     126                ];
     127            } else {
     128                return '';
     129            }
    92130        }
    93131
    94132        return [
    95             'id'    => $value,
    96             'text'  => $this->acf_field['choices'][ $value ],
     133            'id'   => $value,
     134            'text' => $this->acf_field['choices'][ $value ],
    97135        ];
    98136    }
  • acf-quickedit-fields/tags/3.3.5/include/version.php

    r3046138 r3073690  
    1 <?php return "3.3.4";
     1<?php return "3.3.5";
  • acf-quickedit-fields/tags/3.3.5/index.php

    r3046138 r3073690  
    66Description: Show Advanced Custom Fields in post list table. Edit field values in Quick Edit and / or Bulk edit.
    77Author: Jörn Lund
    8 Version: 3.3.4
     8Version: 3.3.5
    99Author URI: https://github.com/mcguffin
    1010License: GPL3
  • acf-quickedit-fields/tags/3.3.5/js/acf-quickedit.js

    r3042783 r3073690  
    1 !function n(a,d,o){function l(t,e){if(!d[t]){if(!a[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(s)return s(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}i=d[t]={exports:{}},a[t][0].call(i.exports,function(e){return l(a[t][1][e]||e)},i,i.exports,n,a,d,o)}return d[t].exports}for(var s="function"==typeof require&&require,e=0;e<o.length;e++)l(o[e]);return l}({1:[function(e,t,i){!function(t){!function(){"use strict";var e,a=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};(0,a.default)(".acf-qef-gallery-col").on("mousemove",function(e){(0,a.default)(this);var t=(0,a.default)(this).find("img"),i=e.offsetX,e=t.length,n=(0,a.default)(this).width()/e;t.each(function(e,t){n*e<=i?(0,a.default)(t).show():(0,a.default)(t).hide()})})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(c,e,t){!function(r){!function(){"use strict";var n,e,t,i,a,d,o,l=u("undefined"!=typeof window?window.jQuery:void 0!==r?r.jQuery:null),s=u(c("base.js"));function u(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}c("../acf-columns/index.js"),"undefined"!=typeof inlineEditPost&&(n=inlineEditPost.edit,e=inlineEditPost.save,t=inlineEditPost.revert,i=inlineEditPost.setBulk,inlineEditPost.edit=function(e){var t,i;return acf.validation.active=1,i=n.apply(this,arguments),t=0,"object"===f(e)&&(t=parseInt(this.getId(e))),e=(0,l.default)("#edit-"+t),this.acf_qed_form=new s.default.form.QuickEdit({el:e.get(0),object_id:t}),i},inlineEditPost.revert=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),t.apply(this,arguments)},inlineEditPost.save=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),e.apply(this,arguments)},inlineEditPost.setBulk=function(){var e=i.apply(this,arguments);return this.acf_qed_form=new s.default.form.BulkEdit({el:(0,l.default)("#bulk-edit").get(0)}),e}),"undefined"!=typeof inlineEditTax&&(a=inlineEditTax.edit,d=inlineEditTax.save,o=inlineEditTax.revert,inlineEditTax.edit=function(e){var t=(0,l.default)('input[name="taxonomy"]').val(),i=a.apply(this,arguments),n=0;return"object"===f(e)&&(n=parseInt(this.getId(e))),e=(0,l.default)("#edit-"+n),this.acf_qed_form=new s.default.form.QuickEdit({el:e.get(0),object_id:t+"_"+n}),i},inlineEditTax.revert=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),o.apply(this,arguments)},inlineEditTax.save=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),d.apply(this,arguments)})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../acf-columns/index.js":1,"base.js":3}],3:[function(d,o,e){!function(a){!function(){"use strict";var e=n("undefined"!=typeof window?window.jQuery:void 0!==a?a.jQuery:null),t=d("form.js"),i=n(d("fields.js"));function n(e){return e&&e.__esModule?e:{default:e}}e.default.extend(acf_qef,{form:t.form,field:i.default}),o.exports=acf_qef}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fields.js":4,"form.js":24}],4:[function(j,x,e){!function($){!function(){"use strict";var n=_("undefined"!=typeof window?window.jQuery:void 0!==$?$.jQuery:null),e=_(j("fields/button_group.js")),t=_(j("fields/checkbox.js")),i=_(j("fields/color_picker.js")),a=_(j("fields/date_picker.js")),d=_(j("fields/date_time_picker.js")),o=_(j("fields/file.js")),l=_(j("fields/image.js")),s=_(j("fields/link.js")),u=_(j("fields/post_object.js")),f=_(j("fields/radio.js")),r=_(j("fields/range.js")),c=_(j("fields/select.js")),p=_(j("fields/taxonomy.js")),h=_(j("fields/textarea.js")),y=_(j("fields/time_picker.js")),w=_(j("fields/true_false.js")),m=_(j("fields/url.js")),v=_(j("fields/user.js"));function _(e){return e&&e.__esModule?e:{default:e}}var g=wp.media.View.extend({events:{'change [type="checkbox"][data-is-do-not-change="true"]':"dntChanged"},initialize:function(){var e=this;Backbone.View.prototype.initialize.apply(this,arguments),this.key=this.$el.attr("data-key"),this.$bulkOperations=this.$(".bulk-operations select,.bulk-operations input"),this.$input||(this.$input=this.$(".acf-input-wrap input")),this.setEditable(!1),this.$("*").on("change",function(){e.resetError()})},setValue:function(e){return this.dntChanged(),this.$input.val(e),this},dntChanged:function(){this.setEditable(!this.$('[type="checkbox"][data-is-do-not-change="true"]').is(":checked"))},setEditable:function(i){this.$input.each(function(e,t){return(0,n.default)(t).prop("readonly",!i).prop("disabled",!i)}),this.$bulkOperations.prop("readonly",!i).prop("disabled",!i)},setError:function(e){return this.$el.attr("data-error-message",e),this},resetError:function(){return this.$el.removeAttr("data-error-message"),this},unload:function(){},parent:function(){return g.prototype}}),b={},k={add_type:function(e){return b[e.type]=g.extend(e),b[e.type]},factory:function(e,t){var i=(0,n.default)(e).attr("data-field-type");return new(i in b?b[i]:g)({el:e,controller:t})},View:g};k.add_type(o.default),k.add_type(l.default),k.add_type(r.default),k.add_type(a.default),k.add_type(d.default),k.add_type(y.default),k.add_type(i.default),k.add_type(h.default),k.add_type(t.default),k.add_type(s.default),k.add_type(f.default),k.add_type(e.default),k.add_type(c.default),k.add_type(u.default),k.add_type(p.default),k.add_type(w.default),k.add_type(m.default),k.add_type(v.default),x.exports=k}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fields/button_group.js":5,"fields/checkbox.js":6,"fields/color_picker.js":7,"fields/date_picker.js":8,"fields/date_time_picker.js":9,"fields/file.js":10,"fields/image.js":11,"fields/link.js":12,"fields/post_object.js":13,"fields/radio.js":14,"fields/range.js":15,"fields/select.js":17,"fields/taxonomy.js":18,"fields/textarea.js":19,"fields/time_picker.js":20,"fields/true_false.js":21,"fields/url.js":22,"fields/user.js":23}],5:[function(e,i,t){!function(t){!function(){"use strict";var e,a=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"button_group",initialize:function(){this.$("ul");var n=this.$("li");this.$input=this.$('[type="radio"]'),this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0),this.$el.is('[data-allow-null="1"]')&&this.$el.on("click",'[type="radio"]',function(e){var t=(0,a.default)(this).closest("li"),i=t.hasClass("selected");n.removeClass("selected"),i?(0,a.default)(this).prop("checked",!1):t.addClass("selected")})},setValue:function(e){this.dntChanged(),this.$('[type="radio"][value="'+e+'"]').prop("checked",!0).closest("li").addClass("selected")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(e,i,t){!function(t){!function(){"use strict";var n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"checkbox",events:{"click .add-choice":"addChoice",'change [type="checkbox"].custom':"removeChoice"},initialize:function(){var t=this;this.$input=this.$('.acf-input-wrap [type="checkbox"]'),this.$button=this.$("button.add-choice").prop("disabled",!0),this.parent().initialize.apply(this,arguments),this.$('.acf-checkbox-toggle[type="checkbox"]').on("change",function(e){t.$('[type="checkbox"][value]').prop("checked",(0,n.default)(e.target).prop("checked"))})},setEditable:function(e){this.$input.prop("disabled",!e),this.$button.prop("disabled",!e),this.$bulkOperations.prop("readonly",!e).prop("disabled",!e)},setValue:function(e){var i=this;this.dntChanged(),n.default.isArray(e)?n.default.each(e,function(e,t){i.getChoiceCB(t).prop("checked",!0)}):""!==e&&i.getChoiceCB(e).prop("checked",!0)},addChoice:function(e){e.preventDefault();e=wp.template("acf-qef-custom-choice-"+this.$el.attr("data-key"));this.$("ul").append(e())},getChoiceCB:function(e){var t='[type="checkbox"][value="'+e+'"]',i=this.$(t);return i.length||(e=(0,n.default)(wp.template("acf-qef-custom-choice-value-"+this.$el.attr("data-key"))({value:e})),this.$("ul").append(e),i=e.find(t)),i},removeChoice:function(e){(0,n.default)(e.target).closest("li").remove()}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,n,t){!function(i){!function(){"use strict";var e,t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"color_picker",initialize:function(){var e=acf.applyFilters("color_picker_args",{defaultColor:!1,palettes:!0,hide:!0},this.$el);this.$input=this.$('[type="text"]').first().wpColorPicker(e),this.parent().initialize.apply(this,arguments)},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$("button.wp-color-result").prop("disabled",!e)},setValue:function(e){this.dntChanged(),this.$input.wpColorPicker("color",e)},unload:function(){(0,t.default)("body").off("click.wpcolorpicker")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,n,t){!function(t){!function(){"use strict";var e,i=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"date_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={dateFormat:this.$("[data-date_format]").data("date_format"),altFormat:"yymmdd",altField:this.$hidden,changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.$("[data-first_day]").data("first_day")},this.$input.datepicker(this.datePickerArgs).on("blur",function(){(0,i.default)(this).val()||e.$hidden.val("")}),0<(0,i.default)("body > #ui-datepicker-div").length&&(0,i.default)("#ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />'),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t;this.dntChanged();try{t=i.default.datepicker.parseDate(this.datePickerArgs.altFormat,e)}catch(e){return this}return this.$input.datepicker("setDate",t),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,i,t){!function(t){!function(){"use strict";var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"date_time_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={altField:this.$hidden,dateFormat:this.$("[data-date_format]").data("date_format"),altFormat:"yy-mm-dd",timeFormat:this.$("[data-time_format]").data("time_format"),altTimeFormat:"HH:mm:ss",altFieldTimeOnly:!1,changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.$("[data-first_day]").data("first_day"),controlType:"select",oneLine:!0},this.$input.datetimepicker(this.datePickerArgs).on("blur",function(){(0,n.default)(this).val()||e.$hidden.val("")}),0<(0,n.default)("body > #ui-datepicker-div").length&&(0,n.default)("#ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />'),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t,i;this.dntChanged();try{t=n.default.datepicker.parseDateTime(this.datePickerArgs.altFormat,this.datePickerArgs.altTimeFormat,e)}catch(e){return this}if(t)return i={hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisec:t.getMilliseconds(),microsec:0,timezone:t.getTimezoneOffset()},t=n.default.datepicker.formatDate(this.datePickerArgs.dateFormat,t)+" "+n.default.datepicker.formatTime(this.datePickerArgs.timeFormat,i),this.$hidden.val(e),this.$input.val(t),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(e,n,t){!function(i){!function(){"use strict";var t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"file",mediaFrameType:"",events:{"click .select-media":"selectFile","click .remove-media":"removeFile"},initialize:function(){this.$input=this.$("button"),this.$hidden=this.$('[type="hidden"]'),this.$img=(0,t.default)("<img />").prependTo(this.$(".file-content")),this.parent().initialize.apply(this,arguments);var i=this,e=acf.get("post_id");this.mediaFrameOpts={field:this.key,multiple:!1,post_id:e,library:this.$hidden.attr("data-library"),mode:"select",type:this.mediaFrameType,select:function(e,t){e&&i.setValue(e.get("id"))}},this.$hidden.data("mime_types")&&(this.mediaFrameOpts.mime_types=this.$hidden.data("mime_types"))},selectFile:function(e){e.preventDefault();var i=acf.media.popup(this.mediaFrameOpts),n=this.$hidden.val();n&&i.on("open",function(){var e=i.state().get("selection"),t=wp.media.attachment(n);t.fetch(),e.add(t?[t]:[])}),acf.isset(window,"wp","media","view","settings","post")&&t.default.isNumeric(this.mediaFrameOpts.post_id)&&(wp.media.view.settings.post.id=this.mediaFrameOpts.post_id)},removeFile:function(e){e.preventDefault(),this.setValue("")},setValue:function(e){var i=this;return this.dntChanged(),(e=parseInt(e))?(this.$hidden.val(e),wp.media.attachment(e).fetch().then(function(e){var t=e.sizes?e.sizes.thumbnail.url:e.icon;i.$img.attr("src",t),i.$(".media-mime").text(e.mime),i.$(".media-title").text(e.title)})):this.$hidden.val(""),this}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",n.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(e,t,i){"use strict";e=(e=e("./file.js"))&&e.__esModule?e:{default:e};t.exports=_.extend({},e.default,{type:"image",mediaFrameType:"image"})},{"./file.js":10}],12:[function(e,i,t){!function(t){!function(){"use strict";var n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"link",events:{"click .select-link":"selectLink","click .remove-link":"resetLink"},initialize:function(){this.$input=this.$("[data-link-prop],button"),this.parent().initialize.apply(this,arguments),this.$display=this.$(".link-content")},resetLink:function(e){e.preventDefault(),this.$input.val(""),this.render()},selectLink:function(e){e.preventDefault();e=this.$("a");e.length||(e=(0,n.default)("<a></a>").appendTo(this.$display)),(0,n.default)(document).on("wplink-close",this,this.parseCB),acf.wpLink.open(e)},setValue:function(e){var i=this;this.dntChanged(),n.default.each(e,function(e,t){return i.$('[data-link-prop="'+e+'"]').val(t)}),this.render()},parseCB:function(e){var t=e.data;setTimeout(function(){t.parse()},1),(0,n.default)(document).off("wplink-close",e.data.parseCB)},parse:function(){var e=this.$("a");this.$('[data-link-prop="target"]').val(e.attr("target")),this.$('[data-link-prop="url"]').val(e.attr("href")),this.$('[data-link-prop="title"]').val(e.html())},render:function(){var e="",t=this.$('[data-link-prop="target"]').val(),i=this.$('[data-link-prop="url"]').val(),n=this.$('[data-link-prop="title"]').val()||i;i&&(t=t?'target="'.concat(t,'"'):"",e='<a href="'.concat(i,'"').concat(t,">").concat(n,"</a>")),this.$display.html(e)}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],13:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("post_object",acf.models.PostObjectField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],14:[function(e,i,t){!function(t){!function(){"use strict";var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"radio",initialize:function(){var t,i;this.$input=this.$('[type="radio"]'),this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0),this.$("ul.acf-radio-list.other").length&&(t=this.$('[type="text"]'),this.$('[type="radio"]').on("change",function(e){i=(0,n.default)(this).is('[value="other"]:checked'),t.prop("disabled",!i).prop("readonly",!i)}))},setValue:function(e){this.dntChanged();var t=this.$('[type="radio"][value="'+e+'"]');t.length||(t=this.$('[type="radio"][value="other"]')).next('[type="text"]').prop("disabled",!1).val(e),t.prop("checked",!0)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],15:[function(e,i,t){!function(t){!function(){"use strict";(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;var e={type:"range",events:{'change [type="range"]':"adaptNumber",'mousemove [type="range"]':"adaptNumber",'change [type="number"]':"adaptRange",'mousemove [type="number"]':"adaptRange"},adaptNumber:function(){this.$('[type="number"]').val(this.$('[type="range"]').val())},adaptRange:function(){this.$('[type="range"]').val(this.$('[type="number"]').val())}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],16:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports=function(e,a){return{type:e,initialize:function(){this.acfField=null,this.$input=this.$(".acf-input-wrap select").prop("readonly",!0),this.parent().initialize.apply(this,arguments)},setValue:function(e){this.dntChanged();function t(e){i.$input.append(new Option(e.text,e.id,!0,!0))}var i=this,n=a.extend({$input:function(){return this.$(".acf-input-wrap select")}});this.acfField=new n(this.$input.closest(".acf-field"));return _.isArray(e)?e.map(t):_.isObject(e)?t(e):(_.isNumber(e)||_.isString(e))&&this.$input.find('[value="'.concat(e,'"]')).length&&this.$input.val(e),this},unload:function(){this.acfField&&this.acfField.onRemove()}}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],17:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("select",acf.models.SelectField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],18:[function(i,n,e){!function(t){!function(){"use strict";e("undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null),e(i("./select-factory"));function e(e){return e&&e.__esModule?e:{default:e}}n.exports={type:"taxonomy",initialize:function(){this.subType=this.$el.attr("data-field-sub-type"),"checkbox"===this.subType?this.inputSelect='.acf-input-wrap [type="checkbox"]':"radio"===this.subType?this.inputSelect='.acf-input-wrap [type="radio"]':this.inputSelect=".acf-input-wrap select",this.acfField=null,this.$input=this.$(this.inputSelect).prop("readonly",!0),this.parent().initialize.apply(this,arguments)},setValue:function(e){this.dntChanged();var t=acf.models.TaxonomyField.extend({$input:function(){return this.$(".acf-input-wrap select")}});return this.acfField=new t(this.$input.closest(".acf-field")),"checkbox"===this.subType||"radio"===this.subType?this.setCheckboxValue(e):this.setSelectValue(e),this},setCheckboxValue:function(e){function t(e){return i.$el.find("".concat(i.inputSelect,'[value="').concat(e.id,'"]')).prop("checked",!0)}var i=this;return _.isArray(e)?e.map(t):_.isObject(e)&&t(e),this},setSelectValue:function(e){function t(e){i.$input.append(new Option(e.text,e.id,!0,!0))}var i=this;return _.isArray(e)?e.map(t):_.isObject(e)&&t(e),this},unload:function(){this.acfField&&this.acfField.onRemove()}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],19:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports={type:"textarea",initialize:function(){this.$input=this.$("textarea").prop("readonly",!0),this.parent().initialize.apply(this,arguments),this.$input.on("keydown keyup",function(e){13!=e.which&&27!=e.which||e.stopPropagation()})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],20:[function(e,n,t){!function(t){!function(){"use strict";var e,i=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"time_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={timeFormat:this.$("[data-time_format]").data("time_format"),altTimeFormat:"HH:mm:ss",altField:this.$hidden,altFieldTimeOnly:!1,showButtonPanel:!0,controlType:"select",oneLine:!0},this.$input.timepicker(this.datePickerArgs).on("blur",function(){(0,i.default)(this).val()||e.$hidden.val("")}),0<(0,i.default)("body > #ui-datepicker-div").length&&(0,i.default)("#ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />'),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t;this.dntChanged();try{t=i.default.datepicker.parseTime(this.datePickerArgs.altTimeFormat,e)}catch(e){return this}if(t)return this.$hidden.val(e),this.$input.val(i.default.datepicker.formatTime(this.datePickerArgs.timeFormat,t)),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],21:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports={type:"true_false",initialize:function(){this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0)},setValue:function(e){this.dntChanged(),!0!==e&&!1!==e||this.$('[type="radio"][value="'+Number(e)+'"]').prop("checked",!0)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],22:[function(e,n,t){!function(i){!function(){"use strict";var e,t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"url",events:{'change [type="checkbox"][data-is-do-not-change="true"]':"dntChanged","change .bulk-operations select":"setBulkOperation"},setBulkOperation:function(e){""===(0,t.default)(e.target).val()?this.$input.attr("type","url"):this.$input.attr("type","text")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],23:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("user",acf.models.UserField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],24:[function(l,s,e){!function(o){!function(){"use strict";var a=(t="undefined"!=typeof window?window.jQuery:void 0!==o?o.jQuery:null)&&t.__esModule?t:{default:t},n=l("fields.js");function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var e=Backbone.View.extend({events:{"heartbeat-send.wp-refresh-nonces":"heartbeatListener"},initialize:function(){var i=this;this.active=!0,this.options=arguments[0],Backbone.View.prototype.initialize.apply(this,arguments),this.fields={},this.$(".inline-edit-col-qed [data-key]").each(function(e,t){t=(0,n.factory)(t,this);i.fields[t.key]=t}),Object.keys(this.fields).length&&this.loadValues()},getFieldsToLoad:function(){var i=[];return _.each(this.fields,function(e,t){i.push(e.key)}),i},loadedValues:function(e){this.active&&(this._setValues(e),this.initValidation())},_setValues:function(e){var i=this;_.each(e,function(e,t){t in i.fields?i.fields[t].setValue(e):_.isObject(e)&&i._setValues(e)})},unload:function(e){this.deinitValidation(),_.each(this.fields,function(e){e.unload()}),this.active=!1,acf.unload.reset()},validationComplete:function(e,t){var i=this;return e.valid?acf.unload.off():_.each(e.errors,function(e){var t=e.input.match(/\[([0-9a-z_]+)\]$/g),t=!!t&&t[0].substring(1,t[0].length-1);t in i.fields&&i.fields[t].setError(e.message)}),e},deinitValidation:function(){this.getSaveButton().off("click",this._saveBtnClickHandler)},initValidation:function(){var e=this.$el.closest("form"),t=this.getSaveButton();t.length&&(acf.update("post_id",this.options.object_id),acf.addFilter("validation_complete",this.validationComplete,10,this),t.on("click",this._saveBtnClickHandler),e.data("acf",null),a.default._data(t[0],"events").click.reverse())},_saveBtnClickHandler:function(e){var t=(0,a.default)(this),i=(0,a.default)(this).closest("form");return!!acf.validateForm({form:i,event:!1,reset:!1,success:function(e){t.trigger("click"),setTimeout(function(){return(0,a.default)(':not(.inline-edit-save) > [type="submit"][disabled]').each(function(e,t){return(0,a.default)(t).removeClass("disabled").removeAttr("disabled")})})}})||(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!1)}}),t=e.extend({loadValues:function(){var t=this,e=_.extend({},acf_qef.options.request,{object_id:this.options.object_id,acf_field_keys:this.getFieldsToLoad(),_wp_http_referrer:(0,a.default)('[name="_wp_http_referer"]:first').val()});return a.default.post({url:ajaxurl,data:e,success:function(e){t.loadedValues(e.data)}}),this},getSaveButton:function(){return this.$el.closest("form").find("button.save")}}),i=e.extend({initialize:function(){e.prototype.initialize.apply(this,arguments),acf.add_filter("prepare_for_ajax",this.prepareForAjax,null,this)},prepareForAjax:function(e){return e.acf&&function i(n){a.default.each(n,function(e,t){t==acf_qef.options.do_not_change_value?delete n[e]:"object"===d(t)&&i(t)})}(e.acf),e},loadValues:function(){var e=[],t=((0,a.default)('[type="checkbox"][name="post[]"]:checked').each(function(){e.push((0,a.default)(this).val())}),this),i=_.extend({},acf_qef.options.request,{object_id:e,acf_field_keys:this.getFieldsToLoad(),_wp_http_referrer:(0,a.default)('[name="_wp_http_referer"]:first').val()});return a.default.post({url:ajaxurl,data:i,success:function(e){t.loadedValues(e.data)}}),this},getSaveButton:function(){return this.$('[type="submit"]#bulk_edit')}});s.exports={form:{BulkEdit:i,QuickEdit:t}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fields.js":4}]},{},[2]);
     1!function n(a,d,o){function l(t,e){if(!d[t]){if(!a[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(s)return s(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}i=d[t]={exports:{}},a[t][0].call(i.exports,function(e){return l(a[t][1][e]||e)},i,i.exports,n,a,d,o)}return d[t].exports}for(var s="function"==typeof require&&require,e=0;e<o.length;e++)l(o[e]);return l}({1:[function(e,t,i){!function(t){!function(){"use strict";var e,a=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};(0,a.default)(".acf-qef-gallery-col").on("mousemove",function(e){(0,a.default)(this);var t=(0,a.default)(this).find("img"),i=e.offsetX,e=t.length,n=(0,a.default)(this).width()/e;t.each(function(e,t){n*e<=i?(0,a.default)(t).show():(0,a.default)(t).hide()})})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(c,e,t){!function(r){!function(){"use strict";var n,e,t,i,a,d,o,l=u("undefined"!=typeof window?window.jQuery:void 0!==r?r.jQuery:null),s=u(c("base.js"));function u(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}c("../acf-columns/index.js"),"undefined"!=typeof inlineEditPost&&(n=inlineEditPost.edit,e=inlineEditPost.save,t=inlineEditPost.revert,i=inlineEditPost.setBulk,inlineEditPost.edit=function(e){var t,i;return acf.validation.active=1,i=n.apply(this,arguments),t=0,"object"===f(e)&&(t=parseInt(this.getId(e))),e=(0,l.default)("#edit-"+t),this.acf_qed_form=new s.default.form.QuickEdit({el:e.get(0),object_id:t}),i},inlineEditPost.revert=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),t.apply(this,arguments)},inlineEditPost.save=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),e.apply(this,arguments)},inlineEditPost.setBulk=function(){var e=i.apply(this,arguments);return this.acf_qed_form=new s.default.form.BulkEdit({el:(0,l.default)("#bulk-edit").get(0)}),e}),"undefined"!=typeof inlineEditTax&&(a=inlineEditTax.edit,d=inlineEditTax.save,o=inlineEditTax.revert,inlineEditTax.edit=function(e){var t=(0,l.default)('input[name="taxonomy"]').val(),i=a.apply(this,arguments),n=0;return"object"===f(e)&&(n=parseInt(this.getId(e))),e=(0,l.default)("#edit-"+n),this.acf_qed_form=new s.default.form.QuickEdit({el:e.get(0),object_id:t+"_"+n}),i},inlineEditTax.revert=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),o.apply(this,arguments)},inlineEditTax.save=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),d.apply(this,arguments)})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../acf-columns/index.js":1,"base.js":3}],3:[function(d,o,e){!function(a){!function(){"use strict";var e=n("undefined"!=typeof window?window.jQuery:void 0!==a?a.jQuery:null),t=d("form.js"),i=n(d("fields.js"));function n(e){return e&&e.__esModule?e:{default:e}}e.default.extend(acf_qef,{form:t.form,field:i.default}),o.exports=acf_qef}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fields.js":4,"form.js":24}],4:[function(j,x,e){!function($){!function(){"use strict";var n=_("undefined"!=typeof window?window.jQuery:void 0!==$?$.jQuery:null),e=_(j("fields/button_group.js")),t=_(j("fields/checkbox.js")),i=_(j("fields/color_picker.js")),a=_(j("fields/date_picker.js")),d=_(j("fields/date_time_picker.js")),o=_(j("fields/file.js")),l=_(j("fields/image.js")),s=_(j("fields/link.js")),u=_(j("fields/post_object.js")),f=_(j("fields/radio.js")),r=_(j("fields/range.js")),c=_(j("fields/select.js")),p=_(j("fields/taxonomy.js")),h=_(j("fields/textarea.js")),y=_(j("fields/time_picker.js")),w=_(j("fields/true_false.js")),m=_(j("fields/url.js")),v=_(j("fields/user.js"));function _(e){return e&&e.__esModule?e:{default:e}}var g=wp.media.View.extend({events:{'change [type="checkbox"][data-is-do-not-change="true"]':"dntChanged"},initialize:function(){var e=this;Backbone.View.prototype.initialize.apply(this,arguments),this.key=this.$el.attr("data-key"),this.$bulkOperations=this.$(".bulk-operations select,.bulk-operations input"),this.$input||(this.$input=this.$(".acf-input-wrap input")),this.setEditable(!1),this.$("*").on("change",function(){e.resetError()})},setValue:function(e){return this.dntChanged(),this.$input.val(e),this},dntChanged:function(){this.setEditable(!this.$('[type="checkbox"][data-is-do-not-change="true"]').is(":checked"))},setEditable:function(i){this.$input.each(function(e,t){return(0,n.default)(t).prop("readonly",!i).prop("disabled",!i)}),this.$bulkOperations.prop("readonly",!i).prop("disabled",!i)},setError:function(e){return this.$el.attr("data-error-message",e),this},resetError:function(){return this.$el.removeAttr("data-error-message"),this},unload:function(){},parent:function(){return g.prototype}}),b={},k={add_type:function(e){return b[e.type]=g.extend(e),b[e.type]},factory:function(e,t){var i=(0,n.default)(e).attr("data-field-type");return new(i in b?b[i]:g)({el:e,controller:t})},View:g};k.add_type(o.default),k.add_type(l.default),k.add_type(r.default),k.add_type(a.default),k.add_type(d.default),k.add_type(y.default),k.add_type(i.default),k.add_type(h.default),k.add_type(t.default),k.add_type(s.default),k.add_type(f.default),k.add_type(e.default),k.add_type(c.default),k.add_type(u.default),k.add_type(p.default),k.add_type(w.default),k.add_type(m.default),k.add_type(v.default),x.exports=k}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fields/button_group.js":5,"fields/checkbox.js":6,"fields/color_picker.js":7,"fields/date_picker.js":8,"fields/date_time_picker.js":9,"fields/file.js":10,"fields/image.js":11,"fields/link.js":12,"fields/post_object.js":13,"fields/radio.js":14,"fields/range.js":15,"fields/select.js":17,"fields/taxonomy.js":18,"fields/textarea.js":19,"fields/time_picker.js":20,"fields/true_false.js":21,"fields/url.js":22,"fields/user.js":23}],5:[function(e,i,t){!function(t){!function(){"use strict";var e,a=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"button_group",initialize:function(){this.$("ul");var n=this.$("li");this.$input=this.$('[type="radio"]'),this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0),this.$el.is('[data-allow-null="1"]')&&this.$el.on("click",'[type="radio"]',function(e){var t=(0,a.default)(this).closest("li"),i=t.hasClass("selected");n.removeClass("selected"),i?(0,a.default)(this).prop("checked",!1):t.addClass("selected")})},setValue:function(e){this.dntChanged(),this.$('[type="radio"][value="'+e+'"]').prop("checked",!0).closest("li").addClass("selected")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(e,i,t){!function(t){!function(){"use strict";var n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"checkbox",events:{"click .add-choice":"addChoice",'change [type="checkbox"].custom':"removeChoice"},initialize:function(){var t=this;this.$input=this.$('.acf-input-wrap [type="checkbox"]'),this.$button=this.$("button.add-choice").prop("disabled",!0),this.parent().initialize.apply(this,arguments),this.$('.acf-checkbox-toggle[type="checkbox"]').on("change",function(e){t.$('[type="checkbox"][value]').prop("checked",(0,n.default)(e.target).prop("checked"))})},setEditable:function(e){this.$input.prop("disabled",!e),this.$button.prop("disabled",!e),this.$bulkOperations.prop("readonly",!e).prop("disabled",!e)},setValue:function(e){var i=this;this.dntChanged(),n.default.isArray(e)?n.default.each(e,function(e,t){i.getChoiceCB(t).prop("checked",!0)}):""!==e&&i.getChoiceCB(e).prop("checked",!0)},addChoice:function(e){e.preventDefault();e=wp.template("acf-qef-custom-choice-"+this.$el.attr("data-key"));this.$("ul").append(e())},getChoiceCB:function(e){var t='[type="checkbox"][value="'+e.id+'"]',i=this.$(t);return i.length||(e=(0,n.default)(wp.template("acf-qef-custom-choice-value-"+this.$el.attr("data-key"))({value:e.id})),this.$("ul").append(e),i=e.find(t)),i},removeChoice:function(e){(0,n.default)(e.target).closest("li").remove()}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,n,t){!function(i){!function(){"use strict";var e,t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"color_picker",initialize:function(){var e=acf.applyFilters("color_picker_args",{defaultColor:!1,palettes:!0,hide:!0},this.$el);this.$input=this.$('[type="text"]').first().wpColorPicker(e),this.parent().initialize.apply(this,arguments)},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$("button.wp-color-result").prop("disabled",!e)},setValue:function(e){this.dntChanged(),this.$input.wpColorPicker("color",e)},unload:function(){(0,t.default)("body").off("click.wpcolorpicker")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,n,t){!function(t){!function(){"use strict";var e,i=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"date_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={dateFormat:this.$("[data-date_format]").data("date_format"),altFormat:"yymmdd",altField:this.$hidden,changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.$("[data-first_day]").data("first_day")},this.$input.datepicker(this.datePickerArgs).on("blur",function(){(0,i.default)(this).val()||e.$hidden.val("")}),0<(0,i.default)("body > #ui-datepicker-div").length&&(0,i.default)("#ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />'),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t;this.dntChanged();try{t=i.default.datepicker.parseDate(this.datePickerArgs.altFormat,e)}catch(e){return this}return this.$input.datepicker("setDate",t),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,i,t){!function(t){!function(){"use strict";var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"date_time_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={altField:this.$hidden,dateFormat:this.$("[data-date_format]").data("date_format"),altFormat:"yy-mm-dd",timeFormat:this.$("[data-time_format]").data("time_format"),altTimeFormat:"HH:mm:ss",altFieldTimeOnly:!1,changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.$("[data-first_day]").data("first_day"),controlType:"select",oneLine:!0},this.$input.datetimepicker(this.datePickerArgs).on("blur",function(){(0,n.default)(this).val()||e.$hidden.val("")}),0<(0,n.default)("body > #ui-datepicker-div").length&&(0,n.default)("#ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />'),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t,i;this.dntChanged();try{t=n.default.datepicker.parseDateTime(this.datePickerArgs.altFormat,this.datePickerArgs.altTimeFormat,e)}catch(e){return this}if(t)return i={hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisec:t.getMilliseconds(),microsec:0,timezone:t.getTimezoneOffset()},t=n.default.datepicker.formatDate(this.datePickerArgs.dateFormat,t)+" "+n.default.datepicker.formatTime(this.datePickerArgs.timeFormat,i),this.$hidden.val(e),this.$input.val(t),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(e,n,t){!function(i){!function(){"use strict";var t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"file",mediaFrameType:"",events:{"click .select-media":"selectFile","click .remove-media":"removeFile"},initialize:function(){this.$input=this.$("button"),this.$hidden=this.$('[type="hidden"]'),this.$img=(0,t.default)("<img />").prependTo(this.$(".file-content")),this.parent().initialize.apply(this,arguments);var i=this,e=acf.get("post_id");this.mediaFrameOpts={field:this.key,multiple:!1,post_id:e,library:this.$hidden.attr("data-library"),mode:"select",type:this.mediaFrameType,select:function(e,t){e&&i.setValue(e.get("id"))}},this.$hidden.data("mime_types")&&(this.mediaFrameOpts.mime_types=this.$hidden.data("mime_types"))},selectFile:function(e){e.preventDefault();var i=acf.media.popup(this.mediaFrameOpts),n=this.$hidden.val();n&&i.on("open",function(){var e=i.state().get("selection"),t=wp.media.attachment(n);t.fetch(),e.add(t?[t]:[])}),acf.isset(window,"wp","media","view","settings","post")&&t.default.isNumeric(this.mediaFrameOpts.post_id)&&(wp.media.view.settings.post.id=this.mediaFrameOpts.post_id)},removeFile:function(e){e.preventDefault(),this.setValue("")},setValue:function(e){var i=this;return this.dntChanged(),(e=parseInt(e))?(this.$hidden.val(e),wp.media.attachment(e).fetch().then(function(e){var t=e.sizes?e.sizes.thumbnail.url:e.icon;i.$img.attr("src",t),i.$(".media-mime").text(e.mime),i.$(".media-title").text(e.title)})):this.$hidden.val(""),this}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",n.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(e,t,i){"use strict";e=(e=e("./file.js"))&&e.__esModule?e:{default:e};t.exports=_.extend({},e.default,{type:"image",mediaFrameType:"image"})},{"./file.js":10}],12:[function(e,i,t){!function(t){!function(){"use strict";var n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"link",events:{"click .select-link":"selectLink","click .remove-link":"resetLink"},initialize:function(){this.$input=this.$("[data-link-prop],button"),this.parent().initialize.apply(this,arguments),this.$display=this.$(".link-content")},resetLink:function(e){e.preventDefault(),this.$input.val(""),this.render()},selectLink:function(e){e.preventDefault();e=this.$("a");e.length||(e=(0,n.default)("<a></a>").appendTo(this.$display)),(0,n.default)(document).on("wplink-close",this,this.parseCB),acf.wpLink.open(e)},setValue:function(e){var i=this;this.dntChanged(),n.default.each(e,function(e,t){return i.$('[data-link-prop="'+e+'"]').val(t)}),this.render()},parseCB:function(e){var t=e.data;setTimeout(function(){t.parse()},1),(0,n.default)(document).off("wplink-close",e.data.parseCB)},parse:function(){var e=this.$("a");this.$('[data-link-prop="target"]').val(e.attr("target")),this.$('[data-link-prop="url"]').val(e.attr("href")),this.$('[data-link-prop="title"]').val(e.html())},render:function(){var e="",t=this.$('[data-link-prop="target"]').val(),i=this.$('[data-link-prop="url"]').val(),n=this.$('[data-link-prop="title"]').val()||i;i&&(t=t?'target="'.concat(t,'"'):"",e='<a href="'.concat(i,'"').concat(t,">").concat(n,"</a>")),this.$display.html(e)}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],13:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("post_object",acf.models.PostObjectField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],14:[function(e,i,t){!function(t){!function(){"use strict";var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"radio",initialize:function(){var t,i;this.$input=this.$('[type="radio"]'),this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0),this.$("ul.acf-radio-list.other").length&&(t=this.$('[type="text"]'),this.$('[type="radio"]').on("change",function(e){i=(0,n.default)(this).is('[value="other"]:checked'),t.prop("disabled",!i).prop("readonly",!i)}))},setValue:function(e){this.dntChanged();var t=this.$('[type="radio"][value="'+e+'"]');t.length||(t=this.$('[type="radio"][value="other"]')).next('[type="text"]').prop("disabled",!1).val(e),t.prop("checked",!0)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],15:[function(e,i,t){!function(t){!function(){"use strict";(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;var e={type:"range",events:{'change [type="range"]':"adaptNumber",'mousemove [type="range"]':"adaptNumber",'change [type="number"]':"adaptRange",'mousemove [type="number"]':"adaptRange"},adaptNumber:function(){this.$('[type="number"]').val(this.$('[type="range"]').val())},adaptRange:function(){this.$('[type="range"]').val(this.$('[type="number"]').val())}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],16:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports=function(e,a){return{type:e,initialize:function(){this.acfField=null,this.$input=this.$(".acf-input-wrap select").prop("readonly",!0),this.parent().initialize.apply(this,arguments)},setValue:function(e){this.dntChanged();function t(e){i.$input.append(new Option(e.text,e.id,!0,!0))}var i=this,n=a.extend({$input:function(){return this.$(".acf-input-wrap select")}});this.acfField=new n(this.$input.closest(".acf-field"));return _.isArray(e)?e.map(t):_.isObject(e)?t(e):(_.isNumber(e)||_.isString(e))&&this.$input.find('[value="'.concat(e,'"]')).length&&this.$input.val(e),this},unload:function(){this.acfField&&this.acfField.onRemove()}}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],17:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("select",acf.models.SelectField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],18:[function(i,n,e){!function(t){!function(){"use strict";e("undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null),e(i("./select-factory"));function e(e){return e&&e.__esModule?e:{default:e}}n.exports={type:"taxonomy",initialize:function(){this.subType=this.$el.attr("data-field-sub-type"),"checkbox"===this.subType?this.inputSelect='.acf-input-wrap [type="checkbox"]':"radio"===this.subType?this.inputSelect='.acf-input-wrap [type="radio"]':this.inputSelect=".acf-input-wrap select",this.acfField=null,this.$input=this.$(this.inputSelect).prop("readonly",!0),this.parent().initialize.apply(this,arguments)},setValue:function(e){this.dntChanged();var t=acf.models.TaxonomyField.extend({$input:function(){return this.$(".acf-input-wrap select")}});return this.acfField=new t(this.$input.closest(".acf-field")),"checkbox"===this.subType||"radio"===this.subType?this.setCheckboxValue(e):this.setSelectValue(e),this},setCheckboxValue:function(e){function t(e){return i.$el.find("".concat(i.inputSelect,'[value="').concat(e.id,'"]')).prop("checked",!0)}var i=this;return _.isArray(e)?e.map(t):_.isObject(e)&&t(e),this},setSelectValue:function(e){function t(e){i.$input.append(new Option(e.text,e.id,!0,!0))}var i=this;return _.isArray(e)?e.map(t):_.isObject(e)&&t(e),this},unload:function(){this.acfField&&this.acfField.onRemove()}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],19:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports={type:"textarea",initialize:function(){this.$input=this.$("textarea").prop("readonly",!0),this.parent().initialize.apply(this,arguments),this.$input.on("keydown keyup",function(e){13!=e.which&&27!=e.which||e.stopPropagation()})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],20:[function(e,n,t){!function(t){!function(){"use strict";var e,i=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"time_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={timeFormat:this.$("[data-time_format]").data("time_format"),altTimeFormat:"HH:mm:ss",altField:this.$hidden,altFieldTimeOnly:!1,showButtonPanel:!0,controlType:"select",oneLine:!0},this.$input.timepicker(this.datePickerArgs).on("blur",function(){(0,i.default)(this).val()||e.$hidden.val("")}),0<(0,i.default)("body > #ui-datepicker-div").length&&(0,i.default)("#ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />'),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t;this.dntChanged();try{t=i.default.datepicker.parseTime(this.datePickerArgs.altTimeFormat,e)}catch(e){return this}if(t)return this.$hidden.val(e),this.$input.val(i.default.datepicker.formatTime(this.datePickerArgs.timeFormat,t)),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],21:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports={type:"true_false",initialize:function(){this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0)},setValue:function(e){this.dntChanged(),!0!==e&&!1!==e||this.$('[type="radio"][value="'+Number(e)+'"]').prop("checked",!0)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],22:[function(e,n,t){!function(i){!function(){"use strict";var e,t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"url",events:{'change [type="checkbox"][data-is-do-not-change="true"]':"dntChanged","change .bulk-operations select":"setBulkOperation"},setBulkOperation:function(e){""===(0,t.default)(e.target).val()?this.$input.attr("type","url"):this.$input.attr("type","text")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],23:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("user",acf.models.UserField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],24:[function(l,s,e){!function(o){!function(){"use strict";var a=(t="undefined"!=typeof window?window.jQuery:void 0!==o?o.jQuery:null)&&t.__esModule?t:{default:t},n=l("fields.js");function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var e=Backbone.View.extend({events:{"heartbeat-send.wp-refresh-nonces":"heartbeatListener"},initialize:function(){var i=this;this.active=!0,this.options=arguments[0],Backbone.View.prototype.initialize.apply(this,arguments),this.fields={},this.$(".inline-edit-col-qed [data-key]").each(function(e,t){t=(0,n.factory)(t,this);i.fields[t.key]=t}),Object.keys(this.fields).length&&this.loadValues()},getFieldsToLoad:function(){var i=[];return _.each(this.fields,function(e,t){i.push(e.key)}),i},loadedValues:function(e){this.active&&(this._setValues(e),this.initValidation())},_setValues:function(e){var i=this;_.each(e,function(e,t){t in i.fields?i.fields[t].setValue(e):_.isObject(e)&&i._setValues(e)})},unload:function(e){this.deinitValidation(),_.each(this.fields,function(e){e.unload()}),this.active=!1,acf.unload.reset()},validationComplete:function(e,t){var i=this;return e.valid?acf.unload.off():_.each(e.errors,function(e){var t=e.input.match(/\[([0-9a-z_]+)\]$/g),t=!!t&&t[0].substring(1,t[0].length-1);t in i.fields&&i.fields[t].setError(e.message)}),e},deinitValidation:function(){this.getSaveButton().off("click",this._saveBtnClickHandler)},initValidation:function(){var e=this.$el.closest("form"),t=this.getSaveButton();t.length&&(acf.update("post_id",this.options.object_id),acf.addFilter("validation_complete",this.validationComplete,10,this),t.on("click",this._saveBtnClickHandler),e.data("acf",null),a.default._data(t[0],"events").click.reverse())},_saveBtnClickHandler:function(e){var t=(0,a.default)(this),i=(0,a.default)(this).closest("form");return!!acf.validateForm({form:i,event:!1,reset:!1,success:function(e){t.trigger("click"),setTimeout(function(){return(0,a.default)(':not(.inline-edit-save) > [type="submit"][disabled]').each(function(e,t){return(0,a.default)(t).removeClass("disabled").removeAttr("disabled")})})}})||(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!1)}}),t=e.extend({loadValues:function(){var t=this,e=_.extend({},acf_qef.options.request,{object_id:this.options.object_id,acf_field_keys:this.getFieldsToLoad(),_wp_http_referrer:(0,a.default)('[name="_wp_http_referer"]:first').val()});return a.default.post({url:ajaxurl,data:e,success:function(e){t.loadedValues(e.data)}}),this},getSaveButton:function(){return this.$el.closest("form").find("button.save")}}),i=e.extend({initialize:function(){e.prototype.initialize.apply(this,arguments),acf.add_filter("prepare_for_ajax",this.prepareForAjax,null,this)},prepareForAjax:function(e){return e.acf&&function i(n){a.default.each(n,function(e,t){t==acf_qef.options.do_not_change_value?delete n[e]:"object"===d(t)&&i(t)})}(e.acf),e},loadValues:function(){var e=[],t=((0,a.default)('[type="checkbox"][name="post[]"]:checked').each(function(){e.push((0,a.default)(this).val())}),this),i=_.extend({},acf_qef.options.request,{object_id:e,acf_field_keys:this.getFieldsToLoad(),_wp_http_referrer:(0,a.default)('[name="_wp_http_referer"]:first').val()});return a.default.post({url:ajaxurl,data:i,success:function(e){t.loadedValues(e.data)}}),this},getSaveButton:function(){return this.$('[type="submit"]#bulk_edit')}});s.exports={form:{BulkEdit:i,QuickEdit:t}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fields.js":4}]},{},[2]);
  • acf-quickedit-fields/tags/3.3.5/languages/acf-quickedit-fields.pot

    r3046138 r3073690  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: ACF QuickEdit Fields 3.3.4\n"
     5"Project-Id-Version: ACF QuickEdit Fields 3.3.5\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/acf-quickedit-fields\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-03-06T07:54:58+00:00\n"
     12"POT-Creation-Date: 2024-04-19T09:31:55+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.10.0\n"
     
    4141
    4242#. Translators: 1: ACF Pro URL, 2: plugins page url
    43 #: include/ACFQuickEdit/Admin/Admin.php:246
     43#: include/ACFQuickEdit/Admin/Admin.php:250
    4444msgid "The <strong>ACF QuickEdit Fields</strong> plugin requires <a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">ACF version 5.6 or later</a>. You can disable and uninstall it on the <a href=\"%2$s\">plugins page</a>."
    4545msgstr ""
     
    286286
    287287#. translators: acf field label
    288 #: include/ACFQuickEdit/Fields/Traits/Filter.php:44
    289 #: include/ACFQuickEdit/Fields/Traits/Filter.php:105
     288#: include/ACFQuickEdit/Fields/Traits/Filter.php:46
     289#: include/ACFQuickEdit/Fields/Traits/Filter.php:94
    290290msgid "— %s —"
    291291msgstr ""
  • acf-quickedit-fields/tags/3.3.5/readme.txt

    r3046138 r3073690  
    44Tags: acf, quickedit, columns, bulk edit
    55Requires at least: 4.7
    6 Tested up to: 6.3
     6Tested up to: 6.5
    77Requires PHP: 7.2
    8 Stable tag: 3.3.4
     8Stable tag: 3.3.5
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    105105
    106106== Changelog ==
     107
     108= 3.3.5 =
     109 - Fix: nested select fields now dispalyed with optgroups. (Notice: Won't work with UI)
     110 - Fix: Custom Checkbox values not showing
    107111
    108112= 3.3.4 =
  • acf-quickedit-fields/trunk/include/ACFQuickEdit/Admin/Admin.php

    r3046138 r3073690  
    189189
    190190                    if ( $field_object = Fields\Field::getFieldObject( $field ) ) {
    191                         $value = $field_object->get_value( $object_id, false );
     191                        $value = $field_object->sanitize_value(
     192                            $field_object->get_value( $object_id, false ),
     193                            'ajax'
     194                        );
    192195                        if ( ! isset( $data[ $key ] ) ) {
    193196                            // first iteration - always set value
    194                             $val = $field_object->get_value( $object_id, false );
    195                             $data[ $key ] = $field_object->sanitize_value( $val, 'ajax' );
     197                            // $val = $field_object->get_value( $object_id, false );
     198                            $data[ $key ] = $value;
     199
    196200                        } else {
    197201                            // multiple iterations - no value if values aren't equal
  • acf-quickedit-fields/trunk/include/ACFQuickEdit/Fields/Traits/Filter.php

    r2919533 r3073690  
    66
    77trait Filter {
     8
     9    use InputSelect;
    810
    911    /**
     
    5759        ) . PHP_EOL;
    5860
    59         foreach ( $choices as $value => $label ) {
     61        $out .= $this->render_select_options( $choices, $selected, $is_multiple );
    6062
    61             $value = $is_multiple
    62                 ? serialize( trim( "{$value}" ) ) // prepare value for LIKE comparision in serialize array
    63                 : "{$value}";
    64 
    65             $out .= sprintf(
    66                 '<option value="%s" %s>%s</option>',
    67                 esc_attr( $value ),
    68                 $selected === $value
    69                     ? 'selected'
    70                     : '',
    71                 esc_html( $label )
    72             ) . PHP_EOL;
    73         }
    7463        $out .= '</select>' . PHP_EOL;
    7564
     
    118107        ) . PHP_EOL;
    119108
    120         foreach ( $choices as $value => $label ) {
     109        $out .= $this->render_select_options( $choices, $selected );
    121110
    122             $out .= sprintf(
    123                 '<option value="%s" %s>%s</option>',
    124                 esc_attr( $value ),
    125                 $selected === $value
    126                     ? 'selected'
    127                     : '',
    128                 esc_html( $label )
    129             ) . PHP_EOL;
    130         }
    131111        $out .= '</select>' . PHP_EOL;
    132112
  • acf-quickedit-fields/trunk/include/ACFQuickEdit/Fields/Traits/InputSelect.php

    r2808949 r3073690  
    5151            }
    5252
    53             foreach( $acf_field['choices'] as $name => $label) {
    54                 $output .= sprintf('<option value="%s">%s</option>', esc_attr( $name ), acf_esc_html( $label ) ) . PHP_EOL;
    55             }
     53            $output .= $this->render_select_options( $acf_field['choices'], null, (boolean) $acf_field['multiple'] );
     54
    5655        }
    5756
     
    6059        return $output;
    6160    }
     61
     62    /**
     63     *  @param array $choices
     64     *  @param string $out
     65     *  @param string $selected
     66     *  @param boolean $is_multiple
     67     */
     68    protected function render_select_options( $choices, $selected, $is_multiple = false ) {
     69        $out = '';
     70        foreach ( $choices as $value => $label ) {
     71            if ( is_array( $label ) ) {
     72                $out .= sprintf( '<optgroup label="%s">', esc_attr( $value ) ) . PHP_EOL;
     73                $out .= $this->render_select_options( $label, $selected, $is_multiple ) . PHP_EOL;
     74                $out .= '</optgroup>' . PHP_EOL ;
     75            } else {
     76                $value = $is_multiple
     77                    ? serialize( trim( "{$value}" ) ) // prepare value for LIKE comparision in serialize array
     78                    : "{$value}";
     79
     80                $out .= sprintf(
     81                    '<option value="%s" %s>%s</option>',
     82                    esc_attr( $value ),
     83                    $selected === $value
     84                        ? 'selected'
     85                        : '',
     86                    esc_html( $label )
     87                ) . PHP_EOL;
     88            }
     89        }
     90        return $out;
     91    }
     92
    6293
    6394    /**
     
    89120        // bail if post doesn't exist
    90121        if ( ! isset( $this->acf_field['choices'][ $value ] ) ) {
    91             return '';
     122            if ( $this->acf_field['allow_custom'] ) {
     123                return [
     124                    'id'   => sanitize_text_field( $value ),
     125                    'text' => sanitize_text_field( $value ),
     126                ];
     127            } else {
     128                return '';
     129            }
    92130        }
    93131
    94132        return [
    95             'id'    => $value,
    96             'text'  => $this->acf_field['choices'][ $value ],
     133            'id'   => $value,
     134            'text' => $this->acf_field['choices'][ $value ],
    97135        ];
    98136    }
  • acf-quickedit-fields/trunk/include/version.php

    r3046138 r3073690  
    1 <?php return "3.3.4";
     1<?php return "3.3.5";
  • acf-quickedit-fields/trunk/index.php

    r3046138 r3073690  
    66Description: Show Advanced Custom Fields in post list table. Edit field values in Quick Edit and / or Bulk edit.
    77Author: Jörn Lund
    8 Version: 3.3.4
     8Version: 3.3.5
    99Author URI: https://github.com/mcguffin
    1010License: GPL3
  • acf-quickedit-fields/trunk/js/acf-quickedit.js

    r3042783 r3073690  
    1 !function n(a,d,o){function l(t,e){if(!d[t]){if(!a[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(s)return s(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}i=d[t]={exports:{}},a[t][0].call(i.exports,function(e){return l(a[t][1][e]||e)},i,i.exports,n,a,d,o)}return d[t].exports}for(var s="function"==typeof require&&require,e=0;e<o.length;e++)l(o[e]);return l}({1:[function(e,t,i){!function(t){!function(){"use strict";var e,a=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};(0,a.default)(".acf-qef-gallery-col").on("mousemove",function(e){(0,a.default)(this);var t=(0,a.default)(this).find("img"),i=e.offsetX,e=t.length,n=(0,a.default)(this).width()/e;t.each(function(e,t){n*e<=i?(0,a.default)(t).show():(0,a.default)(t).hide()})})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(c,e,t){!function(r){!function(){"use strict";var n,e,t,i,a,d,o,l=u("undefined"!=typeof window?window.jQuery:void 0!==r?r.jQuery:null),s=u(c("base.js"));function u(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}c("../acf-columns/index.js"),"undefined"!=typeof inlineEditPost&&(n=inlineEditPost.edit,e=inlineEditPost.save,t=inlineEditPost.revert,i=inlineEditPost.setBulk,inlineEditPost.edit=function(e){var t,i;return acf.validation.active=1,i=n.apply(this,arguments),t=0,"object"===f(e)&&(t=parseInt(this.getId(e))),e=(0,l.default)("#edit-"+t),this.acf_qed_form=new s.default.form.QuickEdit({el:e.get(0),object_id:t}),i},inlineEditPost.revert=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),t.apply(this,arguments)},inlineEditPost.save=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),e.apply(this,arguments)},inlineEditPost.setBulk=function(){var e=i.apply(this,arguments);return this.acf_qed_form=new s.default.form.BulkEdit({el:(0,l.default)("#bulk-edit").get(0)}),e}),"undefined"!=typeof inlineEditTax&&(a=inlineEditTax.edit,d=inlineEditTax.save,o=inlineEditTax.revert,inlineEditTax.edit=function(e){var t=(0,l.default)('input[name="taxonomy"]').val(),i=a.apply(this,arguments),n=0;return"object"===f(e)&&(n=parseInt(this.getId(e))),e=(0,l.default)("#edit-"+n),this.acf_qed_form=new s.default.form.QuickEdit({el:e.get(0),object_id:t+"_"+n}),i},inlineEditTax.revert=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),o.apply(this,arguments)},inlineEditTax.save=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),d.apply(this,arguments)})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../acf-columns/index.js":1,"base.js":3}],3:[function(d,o,e){!function(a){!function(){"use strict";var e=n("undefined"!=typeof window?window.jQuery:void 0!==a?a.jQuery:null),t=d("form.js"),i=n(d("fields.js"));function n(e){return e&&e.__esModule?e:{default:e}}e.default.extend(acf_qef,{form:t.form,field:i.default}),o.exports=acf_qef}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fields.js":4,"form.js":24}],4:[function(j,x,e){!function($){!function(){"use strict";var n=_("undefined"!=typeof window?window.jQuery:void 0!==$?$.jQuery:null),e=_(j("fields/button_group.js")),t=_(j("fields/checkbox.js")),i=_(j("fields/color_picker.js")),a=_(j("fields/date_picker.js")),d=_(j("fields/date_time_picker.js")),o=_(j("fields/file.js")),l=_(j("fields/image.js")),s=_(j("fields/link.js")),u=_(j("fields/post_object.js")),f=_(j("fields/radio.js")),r=_(j("fields/range.js")),c=_(j("fields/select.js")),p=_(j("fields/taxonomy.js")),h=_(j("fields/textarea.js")),y=_(j("fields/time_picker.js")),w=_(j("fields/true_false.js")),m=_(j("fields/url.js")),v=_(j("fields/user.js"));function _(e){return e&&e.__esModule?e:{default:e}}var g=wp.media.View.extend({events:{'change [type="checkbox"][data-is-do-not-change="true"]':"dntChanged"},initialize:function(){var e=this;Backbone.View.prototype.initialize.apply(this,arguments),this.key=this.$el.attr("data-key"),this.$bulkOperations=this.$(".bulk-operations select,.bulk-operations input"),this.$input||(this.$input=this.$(".acf-input-wrap input")),this.setEditable(!1),this.$("*").on("change",function(){e.resetError()})},setValue:function(e){return this.dntChanged(),this.$input.val(e),this},dntChanged:function(){this.setEditable(!this.$('[type="checkbox"][data-is-do-not-change="true"]').is(":checked"))},setEditable:function(i){this.$input.each(function(e,t){return(0,n.default)(t).prop("readonly",!i).prop("disabled",!i)}),this.$bulkOperations.prop("readonly",!i).prop("disabled",!i)},setError:function(e){return this.$el.attr("data-error-message",e),this},resetError:function(){return this.$el.removeAttr("data-error-message"),this},unload:function(){},parent:function(){return g.prototype}}),b={},k={add_type:function(e){return b[e.type]=g.extend(e),b[e.type]},factory:function(e,t){var i=(0,n.default)(e).attr("data-field-type");return new(i in b?b[i]:g)({el:e,controller:t})},View:g};k.add_type(o.default),k.add_type(l.default),k.add_type(r.default),k.add_type(a.default),k.add_type(d.default),k.add_type(y.default),k.add_type(i.default),k.add_type(h.default),k.add_type(t.default),k.add_type(s.default),k.add_type(f.default),k.add_type(e.default),k.add_type(c.default),k.add_type(u.default),k.add_type(p.default),k.add_type(w.default),k.add_type(m.default),k.add_type(v.default),x.exports=k}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fields/button_group.js":5,"fields/checkbox.js":6,"fields/color_picker.js":7,"fields/date_picker.js":8,"fields/date_time_picker.js":9,"fields/file.js":10,"fields/image.js":11,"fields/link.js":12,"fields/post_object.js":13,"fields/radio.js":14,"fields/range.js":15,"fields/select.js":17,"fields/taxonomy.js":18,"fields/textarea.js":19,"fields/time_picker.js":20,"fields/true_false.js":21,"fields/url.js":22,"fields/user.js":23}],5:[function(e,i,t){!function(t){!function(){"use strict";var e,a=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"button_group",initialize:function(){this.$("ul");var n=this.$("li");this.$input=this.$('[type="radio"]'),this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0),this.$el.is('[data-allow-null="1"]')&&this.$el.on("click",'[type="radio"]',function(e){var t=(0,a.default)(this).closest("li"),i=t.hasClass("selected");n.removeClass("selected"),i?(0,a.default)(this).prop("checked",!1):t.addClass("selected")})},setValue:function(e){this.dntChanged(),this.$('[type="radio"][value="'+e+'"]').prop("checked",!0).closest("li").addClass("selected")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(e,i,t){!function(t){!function(){"use strict";var n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"checkbox",events:{"click .add-choice":"addChoice",'change [type="checkbox"].custom':"removeChoice"},initialize:function(){var t=this;this.$input=this.$('.acf-input-wrap [type="checkbox"]'),this.$button=this.$("button.add-choice").prop("disabled",!0),this.parent().initialize.apply(this,arguments),this.$('.acf-checkbox-toggle[type="checkbox"]').on("change",function(e){t.$('[type="checkbox"][value]').prop("checked",(0,n.default)(e.target).prop("checked"))})},setEditable:function(e){this.$input.prop("disabled",!e),this.$button.prop("disabled",!e),this.$bulkOperations.prop("readonly",!e).prop("disabled",!e)},setValue:function(e){var i=this;this.dntChanged(),n.default.isArray(e)?n.default.each(e,function(e,t){i.getChoiceCB(t).prop("checked",!0)}):""!==e&&i.getChoiceCB(e).prop("checked",!0)},addChoice:function(e){e.preventDefault();e=wp.template("acf-qef-custom-choice-"+this.$el.attr("data-key"));this.$("ul").append(e())},getChoiceCB:function(e){var t='[type="checkbox"][value="'+e+'"]',i=this.$(t);return i.length||(e=(0,n.default)(wp.template("acf-qef-custom-choice-value-"+this.$el.attr("data-key"))({value:e})),this.$("ul").append(e),i=e.find(t)),i},removeChoice:function(e){(0,n.default)(e.target).closest("li").remove()}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,n,t){!function(i){!function(){"use strict";var e,t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"color_picker",initialize:function(){var e=acf.applyFilters("color_picker_args",{defaultColor:!1,palettes:!0,hide:!0},this.$el);this.$input=this.$('[type="text"]').first().wpColorPicker(e),this.parent().initialize.apply(this,arguments)},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$("button.wp-color-result").prop("disabled",!e)},setValue:function(e){this.dntChanged(),this.$input.wpColorPicker("color",e)},unload:function(){(0,t.default)("body").off("click.wpcolorpicker")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,n,t){!function(t){!function(){"use strict";var e,i=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"date_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={dateFormat:this.$("[data-date_format]").data("date_format"),altFormat:"yymmdd",altField:this.$hidden,changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.$("[data-first_day]").data("first_day")},this.$input.datepicker(this.datePickerArgs).on("blur",function(){(0,i.default)(this).val()||e.$hidden.val("")}),0<(0,i.default)("body > #ui-datepicker-div").length&&(0,i.default)("#ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />'),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t;this.dntChanged();try{t=i.default.datepicker.parseDate(this.datePickerArgs.altFormat,e)}catch(e){return this}return this.$input.datepicker("setDate",t),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,i,t){!function(t){!function(){"use strict";var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"date_time_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={altField:this.$hidden,dateFormat:this.$("[data-date_format]").data("date_format"),altFormat:"yy-mm-dd",timeFormat:this.$("[data-time_format]").data("time_format"),altTimeFormat:"HH:mm:ss",altFieldTimeOnly:!1,changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.$("[data-first_day]").data("first_day"),controlType:"select",oneLine:!0},this.$input.datetimepicker(this.datePickerArgs).on("blur",function(){(0,n.default)(this).val()||e.$hidden.val("")}),0<(0,n.default)("body > #ui-datepicker-div").length&&(0,n.default)("#ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />'),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t,i;this.dntChanged();try{t=n.default.datepicker.parseDateTime(this.datePickerArgs.altFormat,this.datePickerArgs.altTimeFormat,e)}catch(e){return this}if(t)return i={hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisec:t.getMilliseconds(),microsec:0,timezone:t.getTimezoneOffset()},t=n.default.datepicker.formatDate(this.datePickerArgs.dateFormat,t)+" "+n.default.datepicker.formatTime(this.datePickerArgs.timeFormat,i),this.$hidden.val(e),this.$input.val(t),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(e,n,t){!function(i){!function(){"use strict";var t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"file",mediaFrameType:"",events:{"click .select-media":"selectFile","click .remove-media":"removeFile"},initialize:function(){this.$input=this.$("button"),this.$hidden=this.$('[type="hidden"]'),this.$img=(0,t.default)("<img />").prependTo(this.$(".file-content")),this.parent().initialize.apply(this,arguments);var i=this,e=acf.get("post_id");this.mediaFrameOpts={field:this.key,multiple:!1,post_id:e,library:this.$hidden.attr("data-library"),mode:"select",type:this.mediaFrameType,select:function(e,t){e&&i.setValue(e.get("id"))}},this.$hidden.data("mime_types")&&(this.mediaFrameOpts.mime_types=this.$hidden.data("mime_types"))},selectFile:function(e){e.preventDefault();var i=acf.media.popup(this.mediaFrameOpts),n=this.$hidden.val();n&&i.on("open",function(){var e=i.state().get("selection"),t=wp.media.attachment(n);t.fetch(),e.add(t?[t]:[])}),acf.isset(window,"wp","media","view","settings","post")&&t.default.isNumeric(this.mediaFrameOpts.post_id)&&(wp.media.view.settings.post.id=this.mediaFrameOpts.post_id)},removeFile:function(e){e.preventDefault(),this.setValue("")},setValue:function(e){var i=this;return this.dntChanged(),(e=parseInt(e))?(this.$hidden.val(e),wp.media.attachment(e).fetch().then(function(e){var t=e.sizes?e.sizes.thumbnail.url:e.icon;i.$img.attr("src",t),i.$(".media-mime").text(e.mime),i.$(".media-title").text(e.title)})):this.$hidden.val(""),this}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",n.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(e,t,i){"use strict";e=(e=e("./file.js"))&&e.__esModule?e:{default:e};t.exports=_.extend({},e.default,{type:"image",mediaFrameType:"image"})},{"./file.js":10}],12:[function(e,i,t){!function(t){!function(){"use strict";var n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"link",events:{"click .select-link":"selectLink","click .remove-link":"resetLink"},initialize:function(){this.$input=this.$("[data-link-prop],button"),this.parent().initialize.apply(this,arguments),this.$display=this.$(".link-content")},resetLink:function(e){e.preventDefault(),this.$input.val(""),this.render()},selectLink:function(e){e.preventDefault();e=this.$("a");e.length||(e=(0,n.default)("<a></a>").appendTo(this.$display)),(0,n.default)(document).on("wplink-close",this,this.parseCB),acf.wpLink.open(e)},setValue:function(e){var i=this;this.dntChanged(),n.default.each(e,function(e,t){return i.$('[data-link-prop="'+e+'"]').val(t)}),this.render()},parseCB:function(e){var t=e.data;setTimeout(function(){t.parse()},1),(0,n.default)(document).off("wplink-close",e.data.parseCB)},parse:function(){var e=this.$("a");this.$('[data-link-prop="target"]').val(e.attr("target")),this.$('[data-link-prop="url"]').val(e.attr("href")),this.$('[data-link-prop="title"]').val(e.html())},render:function(){var e="",t=this.$('[data-link-prop="target"]').val(),i=this.$('[data-link-prop="url"]').val(),n=this.$('[data-link-prop="title"]').val()||i;i&&(t=t?'target="'.concat(t,'"'):"",e='<a href="'.concat(i,'"').concat(t,">").concat(n,"</a>")),this.$display.html(e)}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],13:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("post_object",acf.models.PostObjectField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],14:[function(e,i,t){!function(t){!function(){"use strict";var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"radio",initialize:function(){var t,i;this.$input=this.$('[type="radio"]'),this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0),this.$("ul.acf-radio-list.other").length&&(t=this.$('[type="text"]'),this.$('[type="radio"]').on("change",function(e){i=(0,n.default)(this).is('[value="other"]:checked'),t.prop("disabled",!i).prop("readonly",!i)}))},setValue:function(e){this.dntChanged();var t=this.$('[type="radio"][value="'+e+'"]');t.length||(t=this.$('[type="radio"][value="other"]')).next('[type="text"]').prop("disabled",!1).val(e),t.prop("checked",!0)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],15:[function(e,i,t){!function(t){!function(){"use strict";(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;var e={type:"range",events:{'change [type="range"]':"adaptNumber",'mousemove [type="range"]':"adaptNumber",'change [type="number"]':"adaptRange",'mousemove [type="number"]':"adaptRange"},adaptNumber:function(){this.$('[type="number"]').val(this.$('[type="range"]').val())},adaptRange:function(){this.$('[type="range"]').val(this.$('[type="number"]').val())}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],16:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports=function(e,a){return{type:e,initialize:function(){this.acfField=null,this.$input=this.$(".acf-input-wrap select").prop("readonly",!0),this.parent().initialize.apply(this,arguments)},setValue:function(e){this.dntChanged();function t(e){i.$input.append(new Option(e.text,e.id,!0,!0))}var i=this,n=a.extend({$input:function(){return this.$(".acf-input-wrap select")}});this.acfField=new n(this.$input.closest(".acf-field"));return _.isArray(e)?e.map(t):_.isObject(e)?t(e):(_.isNumber(e)||_.isString(e))&&this.$input.find('[value="'.concat(e,'"]')).length&&this.$input.val(e),this},unload:function(){this.acfField&&this.acfField.onRemove()}}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],17:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("select",acf.models.SelectField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],18:[function(i,n,e){!function(t){!function(){"use strict";e("undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null),e(i("./select-factory"));function e(e){return e&&e.__esModule?e:{default:e}}n.exports={type:"taxonomy",initialize:function(){this.subType=this.$el.attr("data-field-sub-type"),"checkbox"===this.subType?this.inputSelect='.acf-input-wrap [type="checkbox"]':"radio"===this.subType?this.inputSelect='.acf-input-wrap [type="radio"]':this.inputSelect=".acf-input-wrap select",this.acfField=null,this.$input=this.$(this.inputSelect).prop("readonly",!0),this.parent().initialize.apply(this,arguments)},setValue:function(e){this.dntChanged();var t=acf.models.TaxonomyField.extend({$input:function(){return this.$(".acf-input-wrap select")}});return this.acfField=new t(this.$input.closest(".acf-field")),"checkbox"===this.subType||"radio"===this.subType?this.setCheckboxValue(e):this.setSelectValue(e),this},setCheckboxValue:function(e){function t(e){return i.$el.find("".concat(i.inputSelect,'[value="').concat(e.id,'"]')).prop("checked",!0)}var i=this;return _.isArray(e)?e.map(t):_.isObject(e)&&t(e),this},setSelectValue:function(e){function t(e){i.$input.append(new Option(e.text,e.id,!0,!0))}var i=this;return _.isArray(e)?e.map(t):_.isObject(e)&&t(e),this},unload:function(){this.acfField&&this.acfField.onRemove()}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],19:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports={type:"textarea",initialize:function(){this.$input=this.$("textarea").prop("readonly",!0),this.parent().initialize.apply(this,arguments),this.$input.on("keydown keyup",function(e){13!=e.which&&27!=e.which||e.stopPropagation()})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],20:[function(e,n,t){!function(t){!function(){"use strict";var e,i=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"time_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={timeFormat:this.$("[data-time_format]").data("time_format"),altTimeFormat:"HH:mm:ss",altField:this.$hidden,altFieldTimeOnly:!1,showButtonPanel:!0,controlType:"select",oneLine:!0},this.$input.timepicker(this.datePickerArgs).on("blur",function(){(0,i.default)(this).val()||e.$hidden.val("")}),0<(0,i.default)("body > #ui-datepicker-div").length&&(0,i.default)("#ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />'),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t;this.dntChanged();try{t=i.default.datepicker.parseTime(this.datePickerArgs.altTimeFormat,e)}catch(e){return this}if(t)return this.$hidden.val(e),this.$input.val(i.default.datepicker.formatTime(this.datePickerArgs.timeFormat,t)),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],21:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports={type:"true_false",initialize:function(){this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0)},setValue:function(e){this.dntChanged(),!0!==e&&!1!==e||this.$('[type="radio"][value="'+Number(e)+'"]').prop("checked",!0)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],22:[function(e,n,t){!function(i){!function(){"use strict";var e,t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"url",events:{'change [type="checkbox"][data-is-do-not-change="true"]':"dntChanged","change .bulk-operations select":"setBulkOperation"},setBulkOperation:function(e){""===(0,t.default)(e.target).val()?this.$input.attr("type","url"):this.$input.attr("type","text")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],23:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("user",acf.models.UserField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],24:[function(l,s,e){!function(o){!function(){"use strict";var a=(t="undefined"!=typeof window?window.jQuery:void 0!==o?o.jQuery:null)&&t.__esModule?t:{default:t},n=l("fields.js");function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var e=Backbone.View.extend({events:{"heartbeat-send.wp-refresh-nonces":"heartbeatListener"},initialize:function(){var i=this;this.active=!0,this.options=arguments[0],Backbone.View.prototype.initialize.apply(this,arguments),this.fields={},this.$(".inline-edit-col-qed [data-key]").each(function(e,t){t=(0,n.factory)(t,this);i.fields[t.key]=t}),Object.keys(this.fields).length&&this.loadValues()},getFieldsToLoad:function(){var i=[];return _.each(this.fields,function(e,t){i.push(e.key)}),i},loadedValues:function(e){this.active&&(this._setValues(e),this.initValidation())},_setValues:function(e){var i=this;_.each(e,function(e,t){t in i.fields?i.fields[t].setValue(e):_.isObject(e)&&i._setValues(e)})},unload:function(e){this.deinitValidation(),_.each(this.fields,function(e){e.unload()}),this.active=!1,acf.unload.reset()},validationComplete:function(e,t){var i=this;return e.valid?acf.unload.off():_.each(e.errors,function(e){var t=e.input.match(/\[([0-9a-z_]+)\]$/g),t=!!t&&t[0].substring(1,t[0].length-1);t in i.fields&&i.fields[t].setError(e.message)}),e},deinitValidation:function(){this.getSaveButton().off("click",this._saveBtnClickHandler)},initValidation:function(){var e=this.$el.closest("form"),t=this.getSaveButton();t.length&&(acf.update("post_id",this.options.object_id),acf.addFilter("validation_complete",this.validationComplete,10,this),t.on("click",this._saveBtnClickHandler),e.data("acf",null),a.default._data(t[0],"events").click.reverse())},_saveBtnClickHandler:function(e){var t=(0,a.default)(this),i=(0,a.default)(this).closest("form");return!!acf.validateForm({form:i,event:!1,reset:!1,success:function(e){t.trigger("click"),setTimeout(function(){return(0,a.default)(':not(.inline-edit-save) > [type="submit"][disabled]').each(function(e,t){return(0,a.default)(t).removeClass("disabled").removeAttr("disabled")})})}})||(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!1)}}),t=e.extend({loadValues:function(){var t=this,e=_.extend({},acf_qef.options.request,{object_id:this.options.object_id,acf_field_keys:this.getFieldsToLoad(),_wp_http_referrer:(0,a.default)('[name="_wp_http_referer"]:first').val()});return a.default.post({url:ajaxurl,data:e,success:function(e){t.loadedValues(e.data)}}),this},getSaveButton:function(){return this.$el.closest("form").find("button.save")}}),i=e.extend({initialize:function(){e.prototype.initialize.apply(this,arguments),acf.add_filter("prepare_for_ajax",this.prepareForAjax,null,this)},prepareForAjax:function(e){return e.acf&&function i(n){a.default.each(n,function(e,t){t==acf_qef.options.do_not_change_value?delete n[e]:"object"===d(t)&&i(t)})}(e.acf),e},loadValues:function(){var e=[],t=((0,a.default)('[type="checkbox"][name="post[]"]:checked').each(function(){e.push((0,a.default)(this).val())}),this),i=_.extend({},acf_qef.options.request,{object_id:e,acf_field_keys:this.getFieldsToLoad(),_wp_http_referrer:(0,a.default)('[name="_wp_http_referer"]:first').val()});return a.default.post({url:ajaxurl,data:i,success:function(e){t.loadedValues(e.data)}}),this},getSaveButton:function(){return this.$('[type="submit"]#bulk_edit')}});s.exports={form:{BulkEdit:i,QuickEdit:t}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fields.js":4}]},{},[2]);
     1!function n(a,d,o){function l(t,e){if(!d[t]){if(!a[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(s)return s(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}i=d[t]={exports:{}},a[t][0].call(i.exports,function(e){return l(a[t][1][e]||e)},i,i.exports,n,a,d,o)}return d[t].exports}for(var s="function"==typeof require&&require,e=0;e<o.length;e++)l(o[e]);return l}({1:[function(e,t,i){!function(t){!function(){"use strict";var e,a=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};(0,a.default)(".acf-qef-gallery-col").on("mousemove",function(e){(0,a.default)(this);var t=(0,a.default)(this).find("img"),i=e.offsetX,e=t.length,n=(0,a.default)(this).width()/e;t.each(function(e,t){n*e<=i?(0,a.default)(t).show():(0,a.default)(t).hide()})})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(c,e,t){!function(r){!function(){"use strict";var n,e,t,i,a,d,o,l=u("undefined"!=typeof window?window.jQuery:void 0!==r?r.jQuery:null),s=u(c("base.js"));function u(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}c("../acf-columns/index.js"),"undefined"!=typeof inlineEditPost&&(n=inlineEditPost.edit,e=inlineEditPost.save,t=inlineEditPost.revert,i=inlineEditPost.setBulk,inlineEditPost.edit=function(e){var t,i;return acf.validation.active=1,i=n.apply(this,arguments),t=0,"object"===f(e)&&(t=parseInt(this.getId(e))),e=(0,l.default)("#edit-"+t),this.acf_qed_form=new s.default.form.QuickEdit({el:e.get(0),object_id:t}),i},inlineEditPost.revert=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),t.apply(this,arguments)},inlineEditPost.save=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),e.apply(this,arguments)},inlineEditPost.setBulk=function(){var e=i.apply(this,arguments);return this.acf_qed_form=new s.default.form.BulkEdit({el:(0,l.default)("#bulk-edit").get(0)}),e}),"undefined"!=typeof inlineEditTax&&(a=inlineEditTax.edit,d=inlineEditTax.save,o=inlineEditTax.revert,inlineEditTax.edit=function(e){var t=(0,l.default)('input[name="taxonomy"]').val(),i=a.apply(this,arguments),n=0;return"object"===f(e)&&(n=parseInt(this.getId(e))),e=(0,l.default)("#edit-"+n),this.acf_qed_form=new s.default.form.QuickEdit({el:e.get(0),object_id:t+"_"+n}),i},inlineEditTax.revert=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),o.apply(this,arguments)},inlineEditTax.save=function(){return this.acf_qed_form&&this.acf_qed_form.unload(),d.apply(this,arguments)})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../acf-columns/index.js":1,"base.js":3}],3:[function(d,o,e){!function(a){!function(){"use strict";var e=n("undefined"!=typeof window?window.jQuery:void 0!==a?a.jQuery:null),t=d("form.js"),i=n(d("fields.js"));function n(e){return e&&e.__esModule?e:{default:e}}e.default.extend(acf_qef,{form:t.form,field:i.default}),o.exports=acf_qef}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fields.js":4,"form.js":24}],4:[function(j,x,e){!function($){!function(){"use strict";var n=_("undefined"!=typeof window?window.jQuery:void 0!==$?$.jQuery:null),e=_(j("fields/button_group.js")),t=_(j("fields/checkbox.js")),i=_(j("fields/color_picker.js")),a=_(j("fields/date_picker.js")),d=_(j("fields/date_time_picker.js")),o=_(j("fields/file.js")),l=_(j("fields/image.js")),s=_(j("fields/link.js")),u=_(j("fields/post_object.js")),f=_(j("fields/radio.js")),r=_(j("fields/range.js")),c=_(j("fields/select.js")),p=_(j("fields/taxonomy.js")),h=_(j("fields/textarea.js")),y=_(j("fields/time_picker.js")),w=_(j("fields/true_false.js")),m=_(j("fields/url.js")),v=_(j("fields/user.js"));function _(e){return e&&e.__esModule?e:{default:e}}var g=wp.media.View.extend({events:{'change [type="checkbox"][data-is-do-not-change="true"]':"dntChanged"},initialize:function(){var e=this;Backbone.View.prototype.initialize.apply(this,arguments),this.key=this.$el.attr("data-key"),this.$bulkOperations=this.$(".bulk-operations select,.bulk-operations input"),this.$input||(this.$input=this.$(".acf-input-wrap input")),this.setEditable(!1),this.$("*").on("change",function(){e.resetError()})},setValue:function(e){return this.dntChanged(),this.$input.val(e),this},dntChanged:function(){this.setEditable(!this.$('[type="checkbox"][data-is-do-not-change="true"]').is(":checked"))},setEditable:function(i){this.$input.each(function(e,t){return(0,n.default)(t).prop("readonly",!i).prop("disabled",!i)}),this.$bulkOperations.prop("readonly",!i).prop("disabled",!i)},setError:function(e){return this.$el.attr("data-error-message",e),this},resetError:function(){return this.$el.removeAttr("data-error-message"),this},unload:function(){},parent:function(){return g.prototype}}),b={},k={add_type:function(e){return b[e.type]=g.extend(e),b[e.type]},factory:function(e,t){var i=(0,n.default)(e).attr("data-field-type");return new(i in b?b[i]:g)({el:e,controller:t})},View:g};k.add_type(o.default),k.add_type(l.default),k.add_type(r.default),k.add_type(a.default),k.add_type(d.default),k.add_type(y.default),k.add_type(i.default),k.add_type(h.default),k.add_type(t.default),k.add_type(s.default),k.add_type(f.default),k.add_type(e.default),k.add_type(c.default),k.add_type(u.default),k.add_type(p.default),k.add_type(w.default),k.add_type(m.default),k.add_type(v.default),x.exports=k}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fields/button_group.js":5,"fields/checkbox.js":6,"fields/color_picker.js":7,"fields/date_picker.js":8,"fields/date_time_picker.js":9,"fields/file.js":10,"fields/image.js":11,"fields/link.js":12,"fields/post_object.js":13,"fields/radio.js":14,"fields/range.js":15,"fields/select.js":17,"fields/taxonomy.js":18,"fields/textarea.js":19,"fields/time_picker.js":20,"fields/true_false.js":21,"fields/url.js":22,"fields/user.js":23}],5:[function(e,i,t){!function(t){!function(){"use strict";var e,a=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"button_group",initialize:function(){this.$("ul");var n=this.$("li");this.$input=this.$('[type="radio"]'),this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0),this.$el.is('[data-allow-null="1"]')&&this.$el.on("click",'[type="radio"]',function(e){var t=(0,a.default)(this).closest("li"),i=t.hasClass("selected");n.removeClass("selected"),i?(0,a.default)(this).prop("checked",!1):t.addClass("selected")})},setValue:function(e){this.dntChanged(),this.$('[type="radio"][value="'+e+'"]').prop("checked",!0).closest("li").addClass("selected")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(e,i,t){!function(t){!function(){"use strict";var n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"checkbox",events:{"click .add-choice":"addChoice",'change [type="checkbox"].custom':"removeChoice"},initialize:function(){var t=this;this.$input=this.$('.acf-input-wrap [type="checkbox"]'),this.$button=this.$("button.add-choice").prop("disabled",!0),this.parent().initialize.apply(this,arguments),this.$('.acf-checkbox-toggle[type="checkbox"]').on("change",function(e){t.$('[type="checkbox"][value]').prop("checked",(0,n.default)(e.target).prop("checked"))})},setEditable:function(e){this.$input.prop("disabled",!e),this.$button.prop("disabled",!e),this.$bulkOperations.prop("readonly",!e).prop("disabled",!e)},setValue:function(e){var i=this;this.dntChanged(),n.default.isArray(e)?n.default.each(e,function(e,t){i.getChoiceCB(t).prop("checked",!0)}):""!==e&&i.getChoiceCB(e).prop("checked",!0)},addChoice:function(e){e.preventDefault();e=wp.template("acf-qef-custom-choice-"+this.$el.attr("data-key"));this.$("ul").append(e())},getChoiceCB:function(e){var t='[type="checkbox"][value="'+e.id+'"]',i=this.$(t);return i.length||(e=(0,n.default)(wp.template("acf-qef-custom-choice-value-"+this.$el.attr("data-key"))({value:e.id})),this.$("ul").append(e),i=e.find(t)),i},removeChoice:function(e){(0,n.default)(e.target).closest("li").remove()}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,n,t){!function(i){!function(){"use strict";var e,t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"color_picker",initialize:function(){var e=acf.applyFilters("color_picker_args",{defaultColor:!1,palettes:!0,hide:!0},this.$el);this.$input=this.$('[type="text"]').first().wpColorPicker(e),this.parent().initialize.apply(this,arguments)},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$("button.wp-color-result").prop("disabled",!e)},setValue:function(e){this.dntChanged(),this.$input.wpColorPicker("color",e)},unload:function(){(0,t.default)("body").off("click.wpcolorpicker")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,n,t){!function(t){!function(){"use strict";var e,i=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"date_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={dateFormat:this.$("[data-date_format]").data("date_format"),altFormat:"yymmdd",altField:this.$hidden,changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.$("[data-first_day]").data("first_day")},this.$input.datepicker(this.datePickerArgs).on("blur",function(){(0,i.default)(this).val()||e.$hidden.val("")}),0<(0,i.default)("body > #ui-datepicker-div").length&&(0,i.default)("#ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />'),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t;this.dntChanged();try{t=i.default.datepicker.parseDate(this.datePickerArgs.altFormat,e)}catch(e){return this}return this.$input.datepicker("setDate",t),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,i,t){!function(t){!function(){"use strict";var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"date_time_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={altField:this.$hidden,dateFormat:this.$("[data-date_format]").data("date_format"),altFormat:"yy-mm-dd",timeFormat:this.$("[data-time_format]").data("time_format"),altTimeFormat:"HH:mm:ss",altFieldTimeOnly:!1,changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.$("[data-first_day]").data("first_day"),controlType:"select",oneLine:!0},this.$input.datetimepicker(this.datePickerArgs).on("blur",function(){(0,n.default)(this).val()||e.$hidden.val("")}),0<(0,n.default)("body > #ui-datepicker-div").length&&(0,n.default)("#ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />'),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t,i;this.dntChanged();try{t=n.default.datepicker.parseDateTime(this.datePickerArgs.altFormat,this.datePickerArgs.altTimeFormat,e)}catch(e){return this}if(t)return i={hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisec:t.getMilliseconds(),microsec:0,timezone:t.getTimezoneOffset()},t=n.default.datepicker.formatDate(this.datePickerArgs.dateFormat,t)+" "+n.default.datepicker.formatTime(this.datePickerArgs.timeFormat,i),this.$hidden.val(e),this.$input.val(t),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(e,n,t){!function(i){!function(){"use strict";var t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"file",mediaFrameType:"",events:{"click .select-media":"selectFile","click .remove-media":"removeFile"},initialize:function(){this.$input=this.$("button"),this.$hidden=this.$('[type="hidden"]'),this.$img=(0,t.default)("<img />").prependTo(this.$(".file-content")),this.parent().initialize.apply(this,arguments);var i=this,e=acf.get("post_id");this.mediaFrameOpts={field:this.key,multiple:!1,post_id:e,library:this.$hidden.attr("data-library"),mode:"select",type:this.mediaFrameType,select:function(e,t){e&&i.setValue(e.get("id"))}},this.$hidden.data("mime_types")&&(this.mediaFrameOpts.mime_types=this.$hidden.data("mime_types"))},selectFile:function(e){e.preventDefault();var i=acf.media.popup(this.mediaFrameOpts),n=this.$hidden.val();n&&i.on("open",function(){var e=i.state().get("selection"),t=wp.media.attachment(n);t.fetch(),e.add(t?[t]:[])}),acf.isset(window,"wp","media","view","settings","post")&&t.default.isNumeric(this.mediaFrameOpts.post_id)&&(wp.media.view.settings.post.id=this.mediaFrameOpts.post_id)},removeFile:function(e){e.preventDefault(),this.setValue("")},setValue:function(e){var i=this;return this.dntChanged(),(e=parseInt(e))?(this.$hidden.val(e),wp.media.attachment(e).fetch().then(function(e){var t=e.sizes?e.sizes.thumbnail.url:e.icon;i.$img.attr("src",t),i.$(".media-mime").text(e.mime),i.$(".media-title").text(e.title)})):this.$hidden.val(""),this}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",n.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(e,t,i){"use strict";e=(e=e("./file.js"))&&e.__esModule?e:{default:e};t.exports=_.extend({},e.default,{type:"image",mediaFrameType:"image"})},{"./file.js":10}],12:[function(e,i,t){!function(t){!function(){"use strict";var n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"link",events:{"click .select-link":"selectLink","click .remove-link":"resetLink"},initialize:function(){this.$input=this.$("[data-link-prop],button"),this.parent().initialize.apply(this,arguments),this.$display=this.$(".link-content")},resetLink:function(e){e.preventDefault(),this.$input.val(""),this.render()},selectLink:function(e){e.preventDefault();e=this.$("a");e.length||(e=(0,n.default)("<a></a>").appendTo(this.$display)),(0,n.default)(document).on("wplink-close",this,this.parseCB),acf.wpLink.open(e)},setValue:function(e){var i=this;this.dntChanged(),n.default.each(e,function(e,t){return i.$('[data-link-prop="'+e+'"]').val(t)}),this.render()},parseCB:function(e){var t=e.data;setTimeout(function(){t.parse()},1),(0,n.default)(document).off("wplink-close",e.data.parseCB)},parse:function(){var e=this.$("a");this.$('[data-link-prop="target"]').val(e.attr("target")),this.$('[data-link-prop="url"]').val(e.attr("href")),this.$('[data-link-prop="title"]').val(e.html())},render:function(){var e="",t=this.$('[data-link-prop="target"]').val(),i=this.$('[data-link-prop="url"]').val(),n=this.$('[data-link-prop="title"]').val()||i;i&&(t=t?'target="'.concat(t,'"'):"",e='<a href="'.concat(i,'"').concat(t,">").concat(n,"</a>")),this.$display.html(e)}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],13:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("post_object",acf.models.PostObjectField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],14:[function(e,i,t){!function(t){!function(){"use strict";var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"radio",initialize:function(){var t,i;this.$input=this.$('[type="radio"]'),this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0),this.$("ul.acf-radio-list.other").length&&(t=this.$('[type="text"]'),this.$('[type="radio"]').on("change",function(e){i=(0,n.default)(this).is('[value="other"]:checked'),t.prop("disabled",!i).prop("readonly",!i)}))},setValue:function(e){this.dntChanged();var t=this.$('[type="radio"][value="'+e+'"]');t.length||(t=this.$('[type="radio"][value="other"]')).next('[type="text"]').prop("disabled",!1).val(e),t.prop("checked",!0)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],15:[function(e,i,t){!function(t){!function(){"use strict";(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;var e={type:"range",events:{'change [type="range"]':"adaptNumber",'mousemove [type="range"]':"adaptNumber",'change [type="number"]':"adaptRange",'mousemove [type="number"]':"adaptRange"},adaptNumber:function(){this.$('[type="number"]').val(this.$('[type="range"]').val())},adaptRange:function(){this.$('[type="range"]').val(this.$('[type="number"]').val())}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],16:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports=function(e,a){return{type:e,initialize:function(){this.acfField=null,this.$input=this.$(".acf-input-wrap select").prop("readonly",!0),this.parent().initialize.apply(this,arguments)},setValue:function(e){this.dntChanged();function t(e){i.$input.append(new Option(e.text,e.id,!0,!0))}var i=this,n=a.extend({$input:function(){return this.$(".acf-input-wrap select")}});this.acfField=new n(this.$input.closest(".acf-field"));return _.isArray(e)?e.map(t):_.isObject(e)?t(e):(_.isNumber(e)||_.isString(e))&&this.$input.find('[value="'.concat(e,'"]')).length&&this.$input.val(e),this},unload:function(){this.acfField&&this.acfField.onRemove()}}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],17:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("select",acf.models.SelectField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],18:[function(i,n,e){!function(t){!function(){"use strict";e("undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null),e(i("./select-factory"));function e(e){return e&&e.__esModule?e:{default:e}}n.exports={type:"taxonomy",initialize:function(){this.subType=this.$el.attr("data-field-sub-type"),"checkbox"===this.subType?this.inputSelect='.acf-input-wrap [type="checkbox"]':"radio"===this.subType?this.inputSelect='.acf-input-wrap [type="radio"]':this.inputSelect=".acf-input-wrap select",this.acfField=null,this.$input=this.$(this.inputSelect).prop("readonly",!0),this.parent().initialize.apply(this,arguments)},setValue:function(e){this.dntChanged();var t=acf.models.TaxonomyField.extend({$input:function(){return this.$(".acf-input-wrap select")}});return this.acfField=new t(this.$input.closest(".acf-field")),"checkbox"===this.subType||"radio"===this.subType?this.setCheckboxValue(e):this.setSelectValue(e),this},setCheckboxValue:function(e){function t(e){return i.$el.find("".concat(i.inputSelect,'[value="').concat(e.id,'"]')).prop("checked",!0)}var i=this;return _.isArray(e)?e.map(t):_.isObject(e)&&t(e),this},setSelectValue:function(e){function t(e){i.$input.append(new Option(e.text,e.id,!0,!0))}var i=this;return _.isArray(e)?e.map(t):_.isObject(e)&&t(e),this},unload:function(){this.acfField&&this.acfField.onRemove()}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],19:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports={type:"textarea",initialize:function(){this.$input=this.$("textarea").prop("readonly",!0),this.parent().initialize.apply(this,arguments),this.$input.on("keydown keyup",function(e){13!=e.which&&27!=e.which||e.stopPropagation()})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],20:[function(e,n,t){!function(t){!function(){"use strict";var e,i=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"time_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={timeFormat:this.$("[data-time_format]").data("time_format"),altTimeFormat:"HH:mm:ss",altField:this.$hidden,altFieldTimeOnly:!1,showButtonPanel:!0,controlType:"select",oneLine:!0},this.$input.timepicker(this.datePickerArgs).on("blur",function(){(0,i.default)(this).val()||e.$hidden.val("")}),0<(0,i.default)("body > #ui-datepicker-div").length&&(0,i.default)("#ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />'),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t;this.dntChanged();try{t=i.default.datepicker.parseTime(this.datePickerArgs.altTimeFormat,e)}catch(e){return this}if(t)return this.$hidden.val(e),this.$input.val(i.default.datepicker.formatTime(this.datePickerArgs.timeFormat,t)),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],21:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports={type:"true_false",initialize:function(){this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0)},setValue:function(e){this.dntChanged(),!0!==e&&!1!==e||this.$('[type="radio"][value="'+Number(e)+'"]').prop("checked",!0)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],22:[function(e,n,t){!function(i){!function(){"use strict";var e,t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"url",events:{'change [type="checkbox"][data-is-do-not-change="true"]':"dntChanged","change .bulk-operations select":"setBulkOperation"},setBulkOperation:function(e){""===(0,t.default)(e.target).val()?this.$input.attr("type","url"):this.$input.attr("type","text")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],23:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("user",acf.models.UserField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],24:[function(l,s,e){!function(o){!function(){"use strict";var a=(t="undefined"!=typeof window?window.jQuery:void 0!==o?o.jQuery:null)&&t.__esModule?t:{default:t},n=l("fields.js");function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var e=Backbone.View.extend({events:{"heartbeat-send.wp-refresh-nonces":"heartbeatListener"},initialize:function(){var i=this;this.active=!0,this.options=arguments[0],Backbone.View.prototype.initialize.apply(this,arguments),this.fields={},this.$(".inline-edit-col-qed [data-key]").each(function(e,t){t=(0,n.factory)(t,this);i.fields[t.key]=t}),Object.keys(this.fields).length&&this.loadValues()},getFieldsToLoad:function(){var i=[];return _.each(this.fields,function(e,t){i.push(e.key)}),i},loadedValues:function(e){this.active&&(this._setValues(e),this.initValidation())},_setValues:function(e){var i=this;_.each(e,function(e,t){t in i.fields?i.fields[t].setValue(e):_.isObject(e)&&i._setValues(e)})},unload:function(e){this.deinitValidation(),_.each(this.fields,function(e){e.unload()}),this.active=!1,acf.unload.reset()},validationComplete:function(e,t){var i=this;return e.valid?acf.unload.off():_.each(e.errors,function(e){var t=e.input.match(/\[([0-9a-z_]+)\]$/g),t=!!t&&t[0].substring(1,t[0].length-1);t in i.fields&&i.fields[t].setError(e.message)}),e},deinitValidation:function(){this.getSaveButton().off("click",this._saveBtnClickHandler)},initValidation:function(){var e=this.$el.closest("form"),t=this.getSaveButton();t.length&&(acf.update("post_id",this.options.object_id),acf.addFilter("validation_complete",this.validationComplete,10,this),t.on("click",this._saveBtnClickHandler),e.data("acf",null),a.default._data(t[0],"events").click.reverse())},_saveBtnClickHandler:function(e){var t=(0,a.default)(this),i=(0,a.default)(this).closest("form");return!!acf.validateForm({form:i,event:!1,reset:!1,success:function(e){t.trigger("click"),setTimeout(function(){return(0,a.default)(':not(.inline-edit-save) > [type="submit"][disabled]').each(function(e,t){return(0,a.default)(t).removeClass("disabled").removeAttr("disabled")})})}})||(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!1)}}),t=e.extend({loadValues:function(){var t=this,e=_.extend({},acf_qef.options.request,{object_id:this.options.object_id,acf_field_keys:this.getFieldsToLoad(),_wp_http_referrer:(0,a.default)('[name="_wp_http_referer"]:first').val()});return a.default.post({url:ajaxurl,data:e,success:function(e){t.loadedValues(e.data)}}),this},getSaveButton:function(){return this.$el.closest("form").find("button.save")}}),i=e.extend({initialize:function(){e.prototype.initialize.apply(this,arguments),acf.add_filter("prepare_for_ajax",this.prepareForAjax,null,this)},prepareForAjax:function(e){return e.acf&&function i(n){a.default.each(n,function(e,t){t==acf_qef.options.do_not_change_value?delete n[e]:"object"===d(t)&&i(t)})}(e.acf),e},loadValues:function(){var e=[],t=((0,a.default)('[type="checkbox"][name="post[]"]:checked').each(function(){e.push((0,a.default)(this).val())}),this),i=_.extend({},acf_qef.options.request,{object_id:e,acf_field_keys:this.getFieldsToLoad(),_wp_http_referrer:(0,a.default)('[name="_wp_http_referer"]:first').val()});return a.default.post({url:ajaxurl,data:i,success:function(e){t.loadedValues(e.data)}}),this},getSaveButton:function(){return this.$('[type="submit"]#bulk_edit')}});s.exports={form:{BulkEdit:i,QuickEdit:t}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fields.js":4}]},{},[2]);
  • acf-quickedit-fields/trunk/languages/acf-quickedit-fields.pot

    r3046138 r3073690  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: ACF QuickEdit Fields 3.3.4\n"
     5"Project-Id-Version: ACF QuickEdit Fields 3.3.5\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/acf-quickedit-fields\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-03-06T07:54:58+00:00\n"
     12"POT-Creation-Date: 2024-04-19T09:31:55+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.10.0\n"
     
    4141
    4242#. Translators: 1: ACF Pro URL, 2: plugins page url
    43 #: include/ACFQuickEdit/Admin/Admin.php:246
     43#: include/ACFQuickEdit/Admin/Admin.php:250
    4444msgid "The <strong>ACF QuickEdit Fields</strong> plugin requires <a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">ACF version 5.6 or later</a>. You can disable and uninstall it on the <a href=\"%2$s\">plugins page</a>."
    4545msgstr ""
     
    286286
    287287#. translators: acf field label
    288 #: include/ACFQuickEdit/Fields/Traits/Filter.php:44
    289 #: include/ACFQuickEdit/Fields/Traits/Filter.php:105
     288#: include/ACFQuickEdit/Fields/Traits/Filter.php:46
     289#: include/ACFQuickEdit/Fields/Traits/Filter.php:94
    290290msgid "— %s —"
    291291msgstr ""
  • acf-quickedit-fields/trunk/readme.txt

    r3046138 r3073690  
    44Tags: acf, quickedit, columns, bulk edit
    55Requires at least: 4.7
    6 Tested up to: 6.3
     6Tested up to: 6.5
    77Requires PHP: 7.2
    8 Stable tag: 3.3.4
     8Stable tag: 3.3.5
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    105105
    106106== Changelog ==
     107
     108= 3.3.5 =
     109 - Fix: nested select fields now dispalyed with optgroups. (Notice: Won't work with UI)
     110 - Fix: Custom Checkbox values not showing
    107111
    108112= 3.3.4 =
Note: See TracChangeset for help on using the changeset viewer.