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ACZ;;MAEA;MACAzB,GAAG,CAAC4J,aAAa,CAAE,IAAI,CAAC5I,IAAI,EAAES,IAAI,CAAE;IACrC;EACD,CAAC,CAAE;AACJ,CAAC,EAAIoI,MAAM,CAAE;;;;;;UCn8Bb;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,eAAe,4BAA4B;WAC3C,eAAe;WACf,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;;;ACNkC;AACQ","sources":["webpack://advanced-custom-fields-pro/./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-field-flexible-content.js","webpack://advanced-custom-fields-pro/./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-field-gallery.js","webpack://advanced-custom-fields-pro/./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-field-repeater.js","webpack://advanced-custom-fields-pro/webpack/bootstrap","webpack://advanced-custom-fields-pro/webpack/runtime/compat get default export","webpack://advanced-custom-fields-pro/webpack/runtime/define property getters","webpack://advanced-custom-fields-pro/webpack/runtime/hasOwnProperty shorthand","webpack://advanced-custom-fields-pro/webpack/runtime/make namespace object","webpack://advanced-custom-fields-pro/./src/advanced-custom-fields-pro/assets/src/js/pro/acf-pro-input.js"],"sourcesContent":["( function ( $ ) {\n\tvar Field = acf.Field.extend( {\n\t\ttype: 'flexible_content',\n\t\twait: '',\n\n\t\tevents: {\n\t\t\t'click [data-name=\"add-layout\"]': 'onClickAdd',\n\t\t\t'click [data-name=\"duplicate-layout\"]': 'onClickDuplicate',\n\t\t\t'click [data-name=\"remove-layout\"]': 'onClickRemove',\n\t\t\t'click [data-name=\"collapse-layout\"]': 'onClickCollapse',\n\t\t\tshowField: 'onShow',\n\t\t\tunloadField: 'onUnload',\n\t\t\tmouseover: 'onHover',\n\t\t},\n\n\t\t$control: function () {\n\t\t\treturn this.$( '.acf-flexible-content:first' );\n\t\t},\n\n\t\t$layoutsWrap: function () {\n\t\t\treturn this.$( '.acf-flexible-content:first > .values' );\n\t\t},\n\n\t\t$layouts: function () {\n\t\t\treturn this.$( '.acf-flexible-content:first > .values > .layout' );\n\t\t},\n\n\t\t$layout: function ( index ) {\n\t\t\treturn this.$(\n\t\t\t\t'.acf-flexible-content:first > .values > .layout:eq(' +\n\t\t\t\t\tindex +\n\t\t\t\t\t')'\n\t\t\t);\n\t\t},\n\n\t\t$clonesWrap: function () {\n\t\t\treturn this.$( '.acf-flexible-content:first > .clones' );\n\t\t},\n\n\t\t$clones: function () {\n\t\t\treturn this.$( '.acf-flexible-content:first > .clones > .layout' );\n\t\t},\n\n\t\t$clone: function ( name ) {\n\t\t\treturn this.$(\n\t\t\t\t'.acf-flexible-content:first > .clones > .layout[data-layout=\"' +\n\t\t\t\t\tname +\n\t\t\t\t\t'\"]'\n\t\t\t);\n\t\t},\n\n\t\t$actions: function () {\n\t\t\treturn this.$( '.acf-actions:last' );\n\t\t},\n\n\t\t$button: function () {\n\t\t\treturn this.$( '.acf-actions:last .button' );\n\t\t},\n\n\t\t$popup: function () {\n\t\t\treturn this.$( '.tmpl-popup:last' );\n\t\t},\n\n\t\tgetPopupHTML: function () {\n\t\t\tvar html = this.$popup().html();\n\t\t\tvar $html = $( html );\n\n\t\t\t// count layouts\n\t\t\tvar $layouts = this.$layouts();\n\t\t\tvar countLayouts = function ( name ) {\n\t\t\t\treturn $layouts.filter( function () {\n\t\t\t\t\treturn $( this ).data( 'layout' ) === name;\n\t\t\t\t} ).length;\n\t\t\t};\n\n\t\t\t// modify popup\n\t\t\t$html.find( '[data-layout]' ).each( function () {\n\t\t\t\tvar $a = $( this );\n\t\t\t\tvar min = $a.data( 'min' ) || 0;\n\t\t\t\tvar max = $a.data( 'max' ) || 0;\n\t\t\t\tvar name = $a.data( 'layout' ) || '';\n\t\t\t\tvar count = countLayouts( name );\n\n\t\t\t\t// max\n\t\t\t\tif ( max && count >= max ) {\n\t\t\t\t\t$a.addClass( 'disabled' );\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// min\n\t\t\t\tif ( min && count < min ) {\n\t\t\t\t\tvar required = min - count;\n\t\t\t\t\tvar title = acf.__(\n\t\t\t\t\t\t'{required} {label} {identifier} required (min {min})'\n\t\t\t\t\t);\n\t\t\t\t\tvar identifier = acf._n( 'layout', 'layouts', required );\n\n\t\t\t\t\t// translate\n\t\t\t\t\ttitle = title.replace( '{required}', required );\n\t\t\t\t\ttitle = title.replace( '{label}', name ); // 5.5.0\n\t\t\t\t\ttitle = title.replace( '{identifier}', identifier );\n\t\t\t\t\ttitle = title.replace( '{min}', min );\n\n\t\t\t\t\t// badge\n\t\t\t\t\t$a.append(\n\t\t\t\t\t\t'' +\n\t\t\t\t\t\t\trequired +\n\t\t\t\t\t\t\t''\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\t// update\n\t\t\thtml = $html.outerHTML();\n\n\t\t\treturn html;\n\t\t},\n\n\t\tgetValue: function () {\n\t\t\treturn this.$layouts().length;\n\t\t},\n\n\t\tallowRemove: function () {\n\t\t\tvar min = parseInt( this.get( 'min' ) );\n\t\t\treturn ! min || min < this.val();\n\t\t},\n\n\t\tallowAdd: function () {\n\t\t\tvar max = parseInt( this.get( 'max' ) );\n\t\t\treturn ! max || max > this.val();\n\t\t},\n\n\t\tisFull: function () {\n\t\t\tvar max = parseInt( this.get( 'max' ) );\n\t\t\treturn max && this.val() >= max;\n\t\t},\n\n\t\taddSortable: function ( self ) {\n\t\t\t// bail early if max 1 row\n\t\t\tif ( this.get( 'max' ) == 1 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// add sortable\n\t\t\tthis.$layoutsWrap().sortable( {\n\t\t\t\titems: '> .layout',\n\t\t\t\thandle: '> .acf-fc-layout-handle',\n\t\t\t\tforceHelperSize: true,\n\t\t\t\tforcePlaceholderSize: true,\n\t\t\t\tscroll: true,\n\t\t\t\tstop: function ( event, ui ) {\n\t\t\t\t\tself.render();\n\t\t\t\t},\n\t\t\t\tupdate: function ( event, ui ) {\n\t\t\t\t\tself.$input().trigger( 'change' );\n\t\t\t\t},\n\t\t\t} );\n\t\t},\n\n\t\taddCollapsed: function () {\n\t\t\tvar indexes = preference.load( this.get( 'key' ) );\n\n\t\t\t// bail early if no collapsed\n\t\t\tif ( ! indexes ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// loop\n\t\t\tthis.$layouts().each( function ( i ) {\n\t\t\t\tif ( indexes.indexOf( i ) > -1 ) {\n\t\t\t\t\t$( this ).addClass( '-collapsed' );\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\n\t\taddUnscopedEvents: function ( self ) {\n\t\t\t// invalidField\n\t\t\tthis.on( 'invalidField', '.layout', function ( e ) {\n\t\t\t\tself.onInvalidField( e, $( this ) );\n\t\t\t} );\n\t\t},\n\n\t\tinitialize: function () {\n\t\t\t// add unscoped events\n\t\t\tthis.addUnscopedEvents( this );\n\n\t\t\t// add collapsed\n\t\t\tthis.addCollapsed();\n\n\t\t\t// disable clone\n\t\t\tacf.disable( this.$clonesWrap(), this.cid );\n\n\t\t\t// render\n\t\t\tthis.render();\n\t\t},\n\n\t\trender: function () {\n\t\t\t// update order number\n\t\t\tthis.$layouts().each( function ( i ) {\n\t\t\t\t$( this )\n\t\t\t\t\t.find( '.acf-fc-layout-order:first' )\n\t\t\t\t\t.html( i + 1 );\n\t\t\t} );\n\n\t\t\t// empty\n\t\t\tif ( this.val() == 0 ) {\n\t\t\t\tthis.$control().addClass( '-empty' );\n\t\t\t} else {\n\t\t\t\tthis.$control().removeClass( '-empty' );\n\t\t\t}\n\n\t\t\t// max\n\t\t\tif ( this.isFull() ) {\n\t\t\t\tthis.$button().addClass( 'disabled' );\n\t\t\t} else {\n\t\t\t\tthis.$button().removeClass( 'disabled' );\n\t\t\t}\n\t\t},\n\n\t\tonShow: function ( e, $el, context ) {\n\t\t\t// get sub fields\n\t\t\tvar fields = acf.getFields( {\n\t\t\t\tis: ':visible',\n\t\t\t\tparent: this.$el,\n\t\t\t} );\n\n\t\t\t// trigger action\n\t\t\t// - ignore context, no need to pass through 'conditional_logic'\n\t\t\t// - this is just for fields like google_map to render itself\n\t\t\tacf.doAction( 'show_fields', fields );\n\t\t},\n\n\t\tvalidateAdd: function () {\n\t\t\t// return true if allowed\n\t\t\tif ( this.allowAdd() ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tvar max = this.get( 'max' );\n\t\t\tvar text = acf.__(\n\t\t\t\t'This field has a limit of {max} {label} {identifier}'\n\t\t\t);\n\t\t\tvar identifier = acf._n( 'layout', 'layouts', max );\n\n\t\t\t// replace\n\t\t\ttext = text.replace( '{max}', max );\n\t\t\ttext = text.replace( '{label}', '' );\n\t\t\ttext = text.replace( '{identifier}', identifier );\n\n\t\t\t// add notice\n\t\t\tthis.showNotice( {\n\t\t\t\ttext: text,\n\t\t\t\ttype: 'warning',\n\t\t\t} );\n\n\t\t\treturn false;\n\t\t},\n\n\t\tonClickAdd: function ( e, $el ) {\n\t\t\t// validate\n\t\t\tif ( ! this.validateAdd() ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// within layout\n\t\t\tvar $layout = null;\n\t\t\tif ( $el.hasClass( 'acf-icon' ) ) {\n\t\t\t\t$layout = $el.closest( '.layout' );\n\t\t\t\t$layout.addClass( '-hover' );\n\t\t\t}\n\n\t\t\t// new popup\n\t\t\tvar popup = new Popup( {\n\t\t\t\ttarget: $el,\n\t\t\t\ttargetConfirm: false,\n\t\t\t\ttext: this.getPopupHTML(),\n\t\t\t\tcontext: this,\n\t\t\t\tconfirm: function ( e, $el ) {\n\t\t\t\t\t// check disabled\n\t\t\t\t\tif ( $el.hasClass( 'disabled' ) ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// add\n\t\t\t\t\tthis.add( {\n\t\t\t\t\t\tlayout: $el.data( 'layout' ),\n\t\t\t\t\t\tbefore: $layout,\n\t\t\t\t\t} );\n\t\t\t\t},\n\t\t\t\tcancel: function () {\n\t\t\t\t\tif ( $layout ) {\n\t\t\t\t\t\t$layout.removeClass( '-hover' );\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t} );\n\n\t\t\t// add extra event\n\t\t\tpopup.on( 'click', '[data-layout]', 'onConfirm' );\n\t\t},\n\n\t\tadd: function ( args ) {\n\t\t\t// defaults\n\t\t\targs = acf.parseArgs( args, {\n\t\t\t\tlayout: '',\n\t\t\t\tbefore: false,\n\t\t\t} );\n\n\t\t\t// validate\n\t\t\tif ( ! this.allowAdd() ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// add row\n\t\t\tvar $el = acf.duplicate( {\n\t\t\t\ttarget: this.$clone( args.layout ),\n\t\t\t\tappend: this.proxy( function ( $el, $el2 ) {\n\t\t\t\t\t// append\n\t\t\t\t\tif ( args.before ) {\n\t\t\t\t\t\targs.before.before( $el2 );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.$layoutsWrap().append( $el2 );\n\t\t\t\t\t}\n\n\t\t\t\t\t// enable\n\t\t\t\t\tacf.enable( $el2, this.cid );\n\n\t\t\t\t\t// render\n\t\t\t\t\tthis.render();\n\t\t\t\t} ),\n\t\t\t} );\n\n\t\t\t// trigger change for validation errors\n\t\t\tthis.$input().trigger( 'change' );\n\n\t\t\treturn $el;\n\t\t},\n\n\t\tonClickDuplicate: function ( e, $el ) {\n\t\t\t// Validate with warning.\n\t\t\tif ( ! this.validateAdd() ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// get layout and duplicate it.\n\t\t\tvar $layout = $el.closest( '.layout' );\n\t\t\tthis.duplicateLayout( $layout );\n\t\t},\n\n\t\tduplicateLayout: function ( $layout ) {\n\t\t\t// Validate without warning.\n\t\t\tif ( ! this.allowAdd() ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tvar fieldKey = this.get( 'key' );\n\n\t\t\t// Duplicate layout.\n\t\t\tvar $el = acf.duplicate( {\n\t\t\t\ttarget: $layout,\n\n\t\t\t\t// Provide a custom renaming callback to avoid renaming parent row attributes.\n\t\t\t\trename: function ( name, value, search, replace ) {\n\t\t\t\t\t// Rename id attributes from \"field_1-search\" to \"field_1-replace\".\n\t\t\t\t\tif ( name === 'id' || name === 'for' ) {\n\t\t\t\t\t\treturn value.replace(\n\t\t\t\t\t\t\tfieldKey + '-' + search,\n\t\t\t\t\t\t\tfieldKey + '-' + replace\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// Rename name and for attributes from \"[field_1][search]\" to \"[field_1][replace]\".\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn value.replace(\n\t\t\t\t\t\t\tfieldKey + '][' + search,\n\t\t\t\t\t\t\tfieldKey + '][' + replace\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tbefore: function ( $el ) {\n\t\t\t\t\tacf.doAction( 'unmount', $el );\n\t\t\t\t},\n\t\t\t\tafter: function ( $el, $el2 ) {\n\t\t\t\t\tacf.doAction( 'remount', $el );\n\t\t\t\t},\n\t\t\t} );\n\n\t\t\t// trigger change for validation errors\n\t\t\tthis.$input().trigger( 'change' );\n\n\t\t\t// Update order numbers.\n\t\t\tthis.render();\n\n\t\t\t// Draw focus to layout.\n\t\t\tacf.focusAttention( $el );\n\n\t\t\t// Return new layout.\n\t\t\treturn $el;\n\t\t},\n\n\t\tvalidateRemove: function () {\n\t\t\t// return true if allowed\n\t\t\tif ( this.allowRemove() ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tvar min = this.get( 'min' );\n\t\t\tvar text = acf.__(\n\t\t\t\t'This field requires at least {min} {label} {identifier}'\n\t\t\t);\n\t\t\tvar identifier = acf._n( 'layout', 'layouts', min );\n\n\t\t\t// replace\n\t\t\ttext = text.replace( '{min}', min );\n\t\t\ttext = text.replace( '{label}', '' );\n\t\t\ttext = text.replace( '{identifier}', identifier );\n\n\t\t\t// add notice\n\t\t\tthis.showNotice( {\n\t\t\t\ttext: text,\n\t\t\t\ttype: 'warning',\n\t\t\t} );\n\n\t\t\treturn false;\n\t\t},\n\n\t\tonClickRemove: function ( e, $el ) {\n\t\t\tvar $layout = $el.closest( '.layout' );\n\n\t\t\t// Bypass confirmation when holding down \"shift\" key.\n\t\t\tif ( e.shiftKey ) {\n\t\t\t\treturn this.removeLayout( $layout );\n\t\t\t}\n\n\t\t\t// add class\n\t\t\t$layout.addClass( '-hover' );\n\n\t\t\t// add tooltip\n\t\t\tvar tooltip = acf.newTooltip( {\n\t\t\t\tconfirmRemove: true,\n\t\t\t\ttarget: $el,\n\t\t\t\tcontext: this,\n\t\t\t\tconfirm: function () {\n\t\t\t\t\tthis.removeLayout( $layout );\n\t\t\t\t},\n\t\t\t\tcancel: function () {\n\t\t\t\t\t$layout.removeClass( '-hover' );\n\t\t\t\t},\n\t\t\t} );\n\t\t},\n\n\t\tremoveLayout: function ( $layout ) {\n\t\t\t// reference\n\t\t\tvar self = this;\n\n\t\t\tvar endHeight = this.getValue() == 1 ? 60 : 0;\n\n\t\t\t// remove\n\t\t\tacf.remove( {\n\t\t\t\ttarget: $layout,\n\t\t\t\tendHeight: endHeight,\n\t\t\t\tcomplete: function () {\n\t\t\t\t\t// trigger change to allow attachment save\n\t\t\t\t\tself.$input().trigger( 'change' );\n\n\t\t\t\t\t// render\n\t\t\t\t\tself.render();\n\t\t\t\t},\n\t\t\t} );\n\t\t},\n\n\t\tonClickCollapse: function ( e, $el ) {\n\t\t\tvar $layout = $el.closest( '.layout' );\n\n\t\t\t// toggle\n\t\t\tif ( this.isLayoutClosed( $layout ) ) {\n\t\t\t\tthis.openLayout( $layout );\n\t\t\t} else {\n\t\t\t\tthis.closeLayout( $layout );\n\t\t\t}\n\t\t},\n\n\t\tisLayoutClosed: function ( $layout ) {\n\t\t\treturn $layout.hasClass( '-collapsed' );\n\t\t},\n\n\t\topenLayout: function ( $layout ) {\n\t\t\t$layout.removeClass( '-collapsed' );\n\t\t\tacf.doAction( 'show', $layout, 'collapse' );\n\t\t},\n\n\t\tcloseLayout: function ( $layout ) {\n\t\t\t$layout.addClass( '-collapsed' );\n\t\t\tacf.doAction( 'hide', $layout, 'collapse' );\n\n\t\t\t// render\n\t\t\t// - no change could happen if layout was already closed. Only render when closing\n\t\t\tthis.renderLayout( $layout );\n\t\t},\n\n\t\trenderLayout: function ( $layout ) {\n\t\t\tvar $input = $layout.children( 'input' );\n\t\t\tvar prefix = $input.attr( 'name' ).replace( '[acf_fc_layout]', '' );\n\n\t\t\t// ajax data\n\t\t\tvar ajaxData = {\n\t\t\t\taction: 'acf/fields/flexible_content/layout_title',\n\t\t\t\tfield_key: this.get( 'key' ),\n\t\t\t\ti: $layout.index(),\n\t\t\t\tlayout: $layout.data( 'layout' ),\n\t\t\t\tvalue: acf.serialize( $layout, prefix ),\n\t\t\t};\n\n\t\t\t// ajax\n\t\t\t$.ajax( {\n\t\t\t\turl: acf.get( 'ajaxurl' ),\n\t\t\t\tdata: acf.prepareForAjax( ajaxData ),\n\t\t\t\tdataType: 'html',\n\t\t\t\ttype: 'post',\n\t\t\t\tsuccess: function ( html ) {\n\t\t\t\t\tif ( html ) {\n\t\t\t\t\t\t$layout\n\t\t\t\t\t\t\t.children( '.acf-fc-layout-handle' )\n\t\t\t\t\t\t\t.html( html );\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t} );\n\t\t},\n\n\t\tonUnload: function () {\n\t\t\tvar indexes = [];\n\n\t\t\t// loop\n\t\t\tthis.$layouts().each( function ( i ) {\n\t\t\t\tif ( $( this ).hasClass( '-collapsed' ) ) {\n\t\t\t\t\tindexes.push( i );\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\t// allow null\n\t\t\tindexes = indexes.length ? indexes : null;\n\n\t\t\t// set\n\t\t\tpreference.save( this.get( 'key' ), indexes );\n\t\t},\n\n\t\tonInvalidField: function ( e, $layout ) {\n\t\t\t// open if is collapsed\n\t\t\tif ( this.isLayoutClosed( $layout ) ) {\n\t\t\t\tthis.openLayout( $layout );\n\t\t\t}\n\t\t},\n\n\t\tonHover: function () {\n\t\t\t// add sortable\n\t\t\tthis.addSortable( this );\n\n\t\t\t// remove event\n\t\t\tthis.off( 'mouseover' );\n\t\t},\n\t} );\n\n\tacf.registerFieldType( Field );\n\n\t/**\n\t * Popup\n\t *\n\t * description\n\t *\n\t * @date\t7/4/18\n\t * @since\t5.6.9\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tvar Popup = acf.models.TooltipConfirm.extend( {\n\t\tevents: {\n\t\t\t'click [data-layout]': 'onConfirm',\n\t\t\t'click [data-event=\"cancel\"]': 'onCancel',\n\t\t},\n\n\t\trender: function () {\n\t\t\t// set HTML\n\t\t\tthis.html( this.get( 'text' ) );\n\n\t\t\t// add class\n\t\t\tthis.$el.addClass( 'acf-fc-popup' );\n\t\t},\n\t} );\n\n\t/**\n\t * conditions\n\t *\n\t * description\n\t *\n\t * @date\t9/4/18\n\t * @since\t5.6.9\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\t// register existing conditions\n\tacf.registerConditionForFieldType( 'hasValue', 'flexible_content' );\n\tacf.registerConditionForFieldType( 'hasNoValue', 'flexible_content' );\n\tacf.registerConditionForFieldType( 'lessThan', 'flexible_content' );\n\tacf.registerConditionForFieldType( 'greaterThan', 'flexible_content' );\n\n\t// state\n\tvar preference = new acf.Model( {\n\t\tname: 'this.collapsedLayouts',\n\n\t\tkey: function ( key, context ) {\n\t\t\tvar count = this.get( key + context ) || 0;\n\n\t\t\t// update\n\t\t\tcount++;\n\t\t\tthis.set( key + context, count, true );\n\n\t\t\t// modify fieldKey\n\t\t\tif ( count > 1 ) {\n\t\t\t\tkey += '-' + count;\n\t\t\t}\n\n\t\t\treturn key;\n\t\t},\n\n\t\tload: function ( key ) {\n\t\t\tvar key = this.key( key, 'load' );\n\t\t\tvar data = acf.getPreference( this.name );\n\n\t\t\tif ( data && data[ key ] ) {\n\t\t\t\treturn data[ key ];\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t},\n\n\t\tsave: function ( key, value ) {\n\t\t\tvar key = this.key( key, 'save' );\n\t\t\tvar data = acf.getPreference( this.name ) || {};\n\n\t\t\t// delete\n\t\t\tif ( value === null ) {\n\t\t\t\tdelete data[ key ];\n\n\t\t\t\t// append\n\t\t\t} else {\n\t\t\t\tdata[ key ] = value;\n\t\t\t}\n\n\t\t\t// allow null\n\t\t\tif ( $.isEmptyObject( data ) ) {\n\t\t\t\tdata = null;\n\t\t\t}\n\n\t\t\t// save\n\t\t\tacf.setPreference( this.name, data );\n\t\t},\n\t} );\n} )( jQuery );\n","( function ( $ ) {\n\tvar Field = acf.Field.extend( {\n\t\ttype: 'gallery',\n\n\t\tevents: {\n\t\t\t'click .acf-gallery-add': 'onClickAdd',\n\t\t\t'click .acf-gallery-edit': 'onClickEdit',\n\t\t\t'click .acf-gallery-remove': 'onClickRemove',\n\t\t\t'click .acf-gallery-attachment': 'onClickSelect',\n\t\t\t'click .acf-gallery-close': 'onClickClose',\n\t\t\t'change .acf-gallery-sort': 'onChangeSort',\n\t\t\t'click .acf-gallery-update': 'onUpdate',\n\t\t\tmouseover: 'onHover',\n\t\t\tshowField: 'render',\n\t\t},\n\n\t\tactions: {\n\t\t\tvalidation_begin: 'onValidationBegin',\n\t\t\tvalidation_failure: 'onValidationFailure',\n\t\t\tresize: 'onResize',\n\t\t},\n\n\t\tonValidationBegin: function () {\n\t\t\tacf.disable( this.$sideData(), this.cid );\n\t\t},\n\n\t\tonValidationFailure: function () {\n\t\t\tacf.enable( this.$sideData(), this.cid );\n\t\t},\n\n\t\t$control: function () {\n\t\t\treturn this.$( '.acf-gallery' );\n\t\t},\n\n\t\t$collection: function () {\n\t\t\treturn this.$( '.acf-gallery-attachments' );\n\t\t},\n\n\t\t$attachments: function () {\n\t\t\treturn this.$( '.acf-gallery-attachment' );\n\t\t},\n\n\t\t$attachment: function ( id ) {\n\t\t\treturn this.$( '.acf-gallery-attachment[data-id=\"' + id + '\"]' );\n\t\t},\n\n\t\t$active: function () {\n\t\t\treturn this.$( '.acf-gallery-attachment.active' );\n\t\t},\n\n\t\t$main: function () {\n\t\t\treturn this.$( '.acf-gallery-main' );\n\t\t},\n\n\t\t$side: function () {\n\t\t\treturn this.$( '.acf-gallery-side' );\n\t\t},\n\n\t\t$sideData: function () {\n\t\t\treturn this.$( '.acf-gallery-side-data' );\n\t\t},\n\n\t\tisFull: function () {\n\t\t\tvar max = parseInt( this.get( 'max' ) );\n\t\t\tvar count = this.$attachments().length;\n\t\t\treturn max && count >= max;\n\t\t},\n\n\t\tgetValue: function () {\n\t\t\t// vars\n\t\t\tvar val = [];\n\n\t\t\t// loop\n\t\t\tthis.$attachments().each( function () {\n\t\t\t\tval.push( $( this ).data( 'id' ) );\n\t\t\t} );\n\n\t\t\t// return\n\t\t\treturn val.length ? val : false;\n\t\t},\n\n\t\taddUnscopedEvents: function ( self ) {\n\t\t\t// invalidField\n\t\t\tthis.on( 'change', '.acf-gallery-side', function ( e ) {\n\t\t\t\tself.onUpdate( e, $( this ) );\n\t\t\t} );\n\t\t},\n\n\t\taddSortable: function ( self ) {\n\t\t\t// add sortable\n\t\t\tthis.$collection().sortable( {\n\t\t\t\titems: '.acf-gallery-attachment',\n\t\t\t\tforceHelperSize: true,\n\t\t\t\tforcePlaceholderSize: true,\n\t\t\t\tscroll: true,\n\t\t\t\tstart: function ( event, ui ) {\n\t\t\t\t\tui.placeholder.html( ui.item.html() );\n\t\t\t\t\tui.placeholder.removeAttr( 'style' );\n\t\t\t\t},\n\t\t\t\tupdate: function ( event, ui ) {\n\t\t\t\t\tself.$input().trigger( 'change' );\n\t\t\t\t},\n\t\t\t} );\n\n\t\t\t// resizable\n\t\t\tthis.$control().resizable( {\n\t\t\t\thandles: 's',\n\t\t\t\tminHeight: 200,\n\t\t\t\tstop: function ( event, ui ) {\n\t\t\t\t\tacf.update_user_setting( 'gallery_height', ui.size.height );\n\t\t\t\t},\n\t\t\t} );\n\t\t},\n\n\t\tinitialize: function () {\n\t\t\t// add unscoped events\n\t\t\tthis.addUnscopedEvents( this );\n\n\t\t\t// render\n\t\t\tthis.render();\n\t\t},\n\n\t\trender: function () {\n\t\t\t// vars\n\t\t\tvar $sort = this.$( '.acf-gallery-sort' );\n\t\t\tvar $add = this.$( '.acf-gallery-add' );\n\t\t\tvar count = this.$attachments().length;\n\n\t\t\t// disable add\n\t\t\tif ( this.isFull() ) {\n\t\t\t\t$add.addClass( 'disabled' );\n\t\t\t} else {\n\t\t\t\t$add.removeClass( 'disabled' );\n\t\t\t}\n\n\t\t\t// disable select\n\t\t\tif ( ! count ) {\n\t\t\t\t$sort.addClass( 'disabled' );\n\t\t\t} else {\n\t\t\t\t$sort.removeClass( 'disabled' );\n\t\t\t}\n\n\t\t\t// resize\n\t\t\tthis.resize();\n\t\t},\n\n\t\tresize: function () {\n\t\t\t// vars\n\t\t\tvar width = this.$control().width();\n\t\t\tvar target = 150;\n\t\t\tvar columns = Math.round( width / target );\n\n\t\t\t// max columns = 8\n\t\t\tcolumns = Math.min( columns, 8 );\n\n\t\t\t// update data\n\t\t\tthis.$control().attr( 'data-columns', columns );\n\t\t},\n\n\t\tonResize: function () {\n\t\t\tthis.resize();\n\t\t},\n\n\t\topenSidebar: function () {\n\t\t\t// add class\n\t\t\tthis.$control().addClass( '-open' );\n\n\t\t\t// hide bulk actions\n\t\t\t// should be done with CSS\n\t\t\t//this.$main().find('.acf-gallery-sort').hide();\n\n\t\t\t// vars\n\t\t\tvar width = this.$control().width() / 3;\n\t\t\twidth = parseInt( width );\n\t\t\twidth = Math.max( width, 350 );\n\n\t\t\t// animate\n\t\t\tthis.$( '.acf-gallery-side-inner' ).css( { width: width - 1 } );\n\t\t\tthis.$side().animate( { width: width - 1 }, 250 );\n\t\t\tthis.$main().animate( { right: width }, 250 );\n\t\t},\n\n\t\tcloseSidebar: function () {\n\t\t\t// remove class\n\t\t\tthis.$control().removeClass( '-open' );\n\n\t\t\t// clear selection\n\t\t\tthis.$active().removeClass( 'active' );\n\n\t\t\t// disable sidebar\n\t\t\tacf.disable( this.$side() );\n\n\t\t\t// animate\n\t\t\tvar $sideData = this.$( '.acf-gallery-side-data' );\n\t\t\tthis.$main().animate( { right: 0 }, 250 );\n\t\t\tthis.$side().animate( { width: 0 }, 250, function () {\n\t\t\t\t$sideData.html( '' );\n\t\t\t} );\n\t\t},\n\n\t\tonClickAdd: function ( e, $el ) {\n\t\t\t// validate\n\t\t\tif ( this.isFull() ) {\n\t\t\t\tthis.showNotice( {\n\t\t\t\t\ttext: acf.__( 'Maximum selection reached' ),\n\t\t\t\t\ttype: 'warning',\n\t\t\t\t} );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// new frame\n\t\t\tvar frame = acf.newMediaPopup( {\n\t\t\t\tmode: 'select',\n\t\t\t\ttitle: acf.__( 'Add Image to Gallery' ),\n\t\t\t\tfield: this.get( 'key' ),\n\t\t\t\tmultiple: 'add',\n\t\t\t\tlibrary: this.get( 'library' ),\n\t\t\t\tallowedTypes: this.get( 'mime_types' ),\n\t\t\t\tselected: this.val(),\n\t\t\t\tselect: $.proxy( function ( attachment, i ) {\n\t\t\t\t\tthis.appendAttachment( attachment, i );\n\t\t\t\t}, this ),\n\t\t\t} );\n\t\t},\n\n\t\tappendAttachment: function ( attachment, i ) {\n\t\t\t// vars\n\t\t\tattachment = this.validateAttachment( attachment );\n\n\t\t\t// bail early if is full\n\t\t\tif ( this.isFull() ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// bail early if already exists\n\t\t\tif ( this.$attachment( attachment.id ).length ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// html\n\t\t\tvar html = [\n\t\t\t\t'',\n\t\t\t].join( '' );\n\t\t\tvar $html = $( html );\n\n\t\t\t// append\n\t\t\tthis.$collection().append( $html );\n\n\t\t\t// move to beginning\n\t\t\tif ( this.get( 'insert' ) === 'prepend' ) {\n\t\t\t\tvar $before = this.$attachments().eq( i );\n\t\t\t\tif ( $before.length ) {\n\t\t\t\t\t$before.before( $html );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// render attachment\n\t\t\tthis.renderAttachment( attachment );\n\n\t\t\t// render\n\t\t\tthis.render();\n\n\t\t\t// trigger change\n\t\t\tthis.$input().trigger( 'change' );\n\t\t},\n\n\t\tvalidateAttachment: function ( attachment ) {\n\t\t\t// defaults\n\t\t\tattachment = acf.parseArgs( attachment, {\n\t\t\t\tid: '',\n\t\t\t\turl: '',\n\t\t\t\talt: '',\n\t\t\t\ttitle: '',\n\t\t\t\tfilename: '',\n\t\t\t\ttype: 'image',\n\t\t\t} );\n\n\t\t\t// WP attachment\n\t\t\tif ( attachment.attributes ) {\n\t\t\t\tattachment = attachment.attributes;\n\n\t\t\t\t// preview size\n\t\t\t\tvar url = acf.isget(\n\t\t\t\t\tattachment,\n\t\t\t\t\t'sizes',\n\t\t\t\t\tthis.get( 'preview_size' ),\n\t\t\t\t\t'url'\n\t\t\t\t);\n\t\t\t\tif ( url !== null ) {\n\t\t\t\t\tattachment.url = url;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// return\n\t\t\treturn attachment;\n\t\t},\n\n\t\trenderAttachment: function ( attachment ) {\n\t\t\t// vars\n\t\t\tattachment = this.validateAttachment( attachment );\n\n\t\t\t// vars\n\t\t\tvar $el = this.$attachment( attachment.id );\n\n\t\t\t// Image type.\n\t\t\tif ( attachment.type == 'image' ) {\n\t\t\t\t// Remove filename.\n\t\t\t\t$el.find( '.filename' ).remove();\n\n\t\t\t\t// Other file type.\n\t\t\t} else {\n\t\t\t\t// Check for attachment featured image.\n\t\t\t\tvar image = acf.isget( attachment, 'image', 'src' );\n\t\t\t\tif ( image !== null ) {\n\t\t\t\t\tattachment.url = image;\n\t\t\t\t}\n\n\t\t\t\t// Update filename text.\n\t\t\t\t$el.find( '.filename' ).text( attachment.filename );\n\t\t\t}\n\n\t\t\t// Default to mimetype icon.\n\t\t\tif ( ! attachment.url ) {\n\t\t\t\tattachment.url = acf.get( 'mimeTypeIcon' );\n\t\t\t\t$el.addClass( '-icon' );\n\t\t\t}\n\n\t\t\t// update els\n\t\t\t$el.find( 'img' ).attr( {\n\t\t\t\tsrc: attachment.url,\n\t\t\t\talt: attachment.alt,\n\t\t\t\ttitle: attachment.title,\n\t\t\t} );\n\n\t\t\t// update val\n\t\t\tacf.val( $el.find( 'input' ), attachment.id );\n\t\t},\n\n\t\teditAttachment: function ( id ) {\n\t\t\t// new frame\n\t\t\tvar frame = acf.newMediaPopup( {\n\t\t\t\tmode: 'edit',\n\t\t\t\ttitle: acf.__( 'Edit Image' ),\n\t\t\t\tbutton: acf.__( 'Update Image' ),\n\t\t\t\tattachment: id,\n\t\t\t\tfield: this.get( 'key' ),\n\t\t\t\tselect: $.proxy( function ( attachment, i ) {\n\t\t\t\t\tthis.renderAttachment( attachment );\n\t\t\t\t\t// todo - render sidebar\n\t\t\t\t}, this ),\n\t\t\t} );\n\t\t},\n\n\t\tonClickEdit: function ( e, $el ) {\n\t\t\tvar id = $el.data( 'id' );\n\t\t\tif ( id ) {\n\t\t\t\tthis.editAttachment( id );\n\t\t\t}\n\t\t},\n\n\t\tremoveAttachment: function ( id ) {\n\t\t\t// close sidebar (if open)\n\t\t\tthis.closeSidebar();\n\n\t\t\t// remove attachment\n\t\t\tthis.$attachment( id ).remove();\n\n\t\t\t// render\n\t\t\tthis.render();\n\n\t\t\t// trigger change\n\t\t\tthis.$input().trigger( 'change' );\n\t\t},\n\n\t\tonClickRemove: function ( e, $el ) {\n\t\t\t// prevent event from triggering click on attachment\n\t\t\te.preventDefault();\n\t\t\te.stopPropagation();\n\n\t\t\t//remove\n\t\t\tvar id = $el.data( 'id' );\n\t\t\tif ( id ) {\n\t\t\t\tthis.removeAttachment( id );\n\t\t\t}\n\t\t},\n\n\t\tselectAttachment: function ( id ) {\n\t\t\t// vars\n\t\t\tvar $el = this.$attachment( id );\n\n\t\t\t// bail early if already active\n\t\t\tif ( $el.hasClass( 'active' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// step 1\n\t\t\tvar step1 = this.proxy( function () {\n\t\t\t\t// save any changes in sidebar\n\t\t\t\tthis.$side().find( ':focus' ).trigger( 'blur' );\n\n\t\t\t\t// clear selection\n\t\t\t\tthis.$active().removeClass( 'active' );\n\n\t\t\t\t// add selection\n\t\t\t\t$el.addClass( 'active' );\n\n\t\t\t\t// open sidebar\n\t\t\t\tthis.openSidebar();\n\n\t\t\t\t// call step 2\n\t\t\t\tstep2();\n\t\t\t} );\n\n\t\t\t// step 2\n\t\t\tvar step2 = this.proxy( function () {\n\t\t\t\t// ajax\n\t\t\t\tvar ajaxData = {\n\t\t\t\t\taction: 'acf/fields/gallery/get_attachment',\n\t\t\t\t\tfield_key: this.get( 'key' ),\n\t\t\t\t\tid: id,\n\t\t\t\t};\n\n\t\t\t\t// abort prev ajax call\n\t\t\t\tif ( this.has( 'xhr' ) ) {\n\t\t\t\t\tthis.get( 'xhr' ).abort();\n\t\t\t\t}\n\n\t\t\t\t// loading\n\t\t\t\tacf.showLoading( this.$sideData() );\n\n\t\t\t\t// get HTML\n\t\t\t\tvar xhr = $.ajax( {\n\t\t\t\t\turl: acf.get( 'ajaxurl' ),\n\t\t\t\t\tdata: acf.prepareForAjax( ajaxData ),\n\t\t\t\t\ttype: 'post',\n\t\t\t\t\tdataType: 'html',\n\t\t\t\t\tcache: false,\n\t\t\t\t\tsuccess: step3,\n\t\t\t\t} );\n\n\t\t\t\t// update\n\t\t\t\tthis.set( 'xhr', xhr );\n\t\t\t} );\n\n\t\t\t// step 3\n\t\t\tvar step3 = this.proxy( function ( html ) {\n\t\t\t\t// bail early if no html\n\t\t\t\tif ( ! html ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// vars\n\t\t\t\tvar $side = this.$sideData();\n\n\t\t\t\t// render\n\t\t\t\t$side.html( html );\n\n\t\t\t\t// remove acf form data\n\t\t\t\t$side.find( '.compat-field-acf-form-data' ).remove();\n\n\t\t\t\t// merge tables\n\t\t\t\t$side\n\t\t\t\t\t.find( '> table.form-table > tbody' )\n\t\t\t\t\t.append(\n\t\t\t\t\t\t$side.find( '> .compat-attachment-fields > tbody > tr' )\n\t\t\t\t\t);\n\n\t\t\t\t// setup fields\n\t\t\t\tacf.doAction( 'append', $side );\n\t\t\t} );\n\n\t\t\t// run step 1\n\t\t\tstep1();\n\t\t},\n\n\t\tonClickSelect: function ( e, $el ) {\n\t\t\tvar id = $el.data( 'id' );\n\t\t\tif ( id ) {\n\t\t\t\tthis.selectAttachment( id );\n\t\t\t}\n\t\t},\n\n\t\tonClickClose: function ( e, $el ) {\n\t\t\tthis.closeSidebar();\n\t\t},\n\n\t\tonChangeSort: function ( e, $el ) {\n\t\t\t// Bail early if is disabled.\n\t\t\tif ( $el.hasClass( 'disabled' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Get sort val.\n\t\t\tvar val = $el.val();\n\t\t\tif ( ! val ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// find ids\n\t\t\tvar ids = [];\n\t\t\tthis.$attachments().each( function () {\n\t\t\t\tids.push( $( this ).data( 'id' ) );\n\t\t\t} );\n\n\t\t\t// step 1\n\t\t\tvar step1 = this.proxy( function () {\n\t\t\t\t// vars\n\t\t\t\tvar ajaxData = {\n\t\t\t\t\taction: 'acf/fields/gallery/get_sort_order',\n\t\t\t\t\tfield_key: this.get( 'key' ),\n\t\t\t\t\tids: ids,\n\t\t\t\t\tsort: val,\n\t\t\t\t};\n\n\t\t\t\t// get results\n\t\t\t\tvar xhr = $.ajax( {\n\t\t\t\t\turl: acf.get( 'ajaxurl' ),\n\t\t\t\t\tdataType: 'json',\n\t\t\t\t\ttype: 'post',\n\t\t\t\t\tcache: false,\n\t\t\t\t\tdata: acf.prepareForAjax( ajaxData ),\n\t\t\t\t\tsuccess: step2,\n\t\t\t\t} );\n\t\t\t} );\n\n\t\t\t// step 2\n\t\t\tvar step2 = this.proxy( function ( json ) {\n\t\t\t\t// validate\n\t\t\t\tif ( ! acf.isAjaxSuccess( json ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// reverse order\n\t\t\t\tjson.data.reverse();\n\n\t\t\t\t// loop\n\t\t\t\tjson.data.map( function ( id ) {\n\t\t\t\t\tthis.$collection().prepend( this.$attachment( id ) );\n\t\t\t\t}, this );\n\t\t\t} );\n\n\t\t\t// call step 1\n\t\t\tstep1();\n\t\t},\n\n\t\tonUpdate: function ( e, $el ) {\n\t\t\t// vars\n\t\t\tvar $submit = this.$( '.acf-gallery-update' );\n\n\t\t\t// validate\n\t\t\tif ( $submit.hasClass( 'disabled' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// serialize data\n\t\t\tvar ajaxData = acf.serialize( this.$sideData() );\n\n\t\t\t// loading\n\t\t\t$submit.addClass( 'disabled' );\n\t\t\t$submit.before( ' ' );\n\n\t\t\t// append AJAX action\n\t\t\tajaxData.action = 'acf/fields/gallery/update_attachment';\n\n\t\t\t// ajax\n\t\t\t$.ajax( {\n\t\t\t\turl: acf.get( 'ajaxurl' ),\n\t\t\t\tdata: acf.prepareForAjax( ajaxData ),\n\t\t\t\ttype: 'post',\n\t\t\t\tdataType: 'json',\n\t\t\t\tcomplete: function () {\n\t\t\t\t\t$submit.removeClass( 'disabled' );\n\t\t\t\t\t$submit.prev( '.acf-loading' ).remove();\n\t\t\t\t},\n\t\t\t} );\n\t\t},\n\n\t\tonHover: function () {\n\t\t\t// add sortable\n\t\t\tthis.addSortable( this );\n\n\t\t\t// remove event\n\t\t\tthis.off( 'mouseover' );\n\t\t},\n\t} );\n\n\tacf.registerFieldType( Field );\n\n\t// register existing conditions\n\tacf.registerConditionForFieldType( 'hasValue', 'gallery' );\n\tacf.registerConditionForFieldType( 'hasNoValue', 'gallery' );\n\tacf.registerConditionForFieldType( 'selectionLessThan', 'gallery' );\n\tacf.registerConditionForFieldType( 'selectionGreaterThan', 'gallery' );\n} )( jQuery );\n","( function ( $ ) {\n\tvar Field = acf.Field.extend( {\n\t\ttype: 'repeater',\n\t\twait: '',\n\t\tpage: 1,\n\t\tnextRowNum: 0,\n\n\t\tevents: {\n\t\t\t'click a[data-event=\"add-row\"]': 'onClickAdd',\n\t\t\t'click a[data-event=\"duplicate-row\"]': 'onClickDuplicate',\n\t\t\t'click a[data-event=\"remove-row\"]': 'onClickRemove',\n\t\t\t'click a[data-event=\"collapse-row\"]': 'onClickCollapse',\n\t\t\t'click a[data-event=\"first-page\"]:not(.disabled)' : 'onClickFirstPage',\n\t\t\t'click a[data-event=\"last-page\"]:not(.disabled)' : 'onClickLastPage',\n\t\t\t'click a[data-event=\"prev-page\"]:not(.disabled)': 'onClickPrevPage',\n\t\t\t'click a[data-event=\"next-page\"]:not(.disabled)': 'onClickNextPage',\n\t\t\t'change .current-page': 'onChangeCurrentPage',\n\t\t\t'click .acf-order-input-wrap': 'onClickRowOrder',\n\t\t\t'blur .acf-order-input': 'onBlurRowOrder',\n\t\t\t'change .acf-order-input': 'onChangeRowOrder',\n\t\t\t'changed:total_rows': 'onChangeTotalRows',\n\t\t\tshowField: 'onShow',\n\t\t\tunloadField: 'onUnload',\n\t\t\tmouseover: 'onHover',\n\t\t\tchange: 'onChangeField',\n\t\t},\n\n\t\t$control: function () {\n\t\t\treturn this.$( '.acf-repeater:first' );\n\t\t},\n\n\t\t$table: function () {\n\t\t\treturn this.$( 'table:first' );\n\t\t},\n\n\t\t$tbody: function () {\n\t\t\treturn this.$( 'tbody:first' );\n\t\t},\n\n\t\t$rows: function () {\n\t\t\treturn this.$( 'tbody:first > tr' ).not( '.acf-clone, .acf-deleted' );\n\t\t},\n\n\t\t$row: function ( index ) {\n\t\t\treturn this.$( 'tbody:first > tr:eq(' + index + ')' );\n\t\t},\n\n\t\t$clone: function () {\n\t\t\treturn this.$( 'tbody:first > tr.acf-clone' );\n\t\t},\n\n\t\t$actions: function () {\n\t\t\treturn this.$( '.acf-actions:last' );\n\t\t},\n\n\t\t$button: function () {\n\t\t\treturn this.$( '.acf-actions:last .button' );\n\t\t},\n\n\t\t$firstPageButton: function() {\n\t\t\treturn this.$( '.acf-tablenav:last .first-page' );\n\t\t},\n\n\t\t$prevPageButton: function() {\n\t\t\treturn this.$( '.acf-tablenav:last .prev-page' );\n\t\t},\n\n\t\t$nextPageButton: function() {\n\t\t\treturn this.$( '.acf-tablenav:last .next-page' );\n\t\t},\n\n\t\t$lastPageButton: function() {\n\t\t\treturn this.$( '.acf-tablenav:last .last-page' );\n\t\t},\n\n\t\t$pageInput: function() {\n\t\t\treturn this.$( '.current-page:last' );\n\t\t},\n\n\t\ttotalPages: function() {\n\t\t\tconst totalPages = this.$( '.acf-total-pages:last' ).text();\n\t\t\treturn parseInt( totalPages );\n\t\t},\n\n\t\tgetValue: function () {\n\t\t\treturn this.$rows().length;\n\t\t},\n\n\t\tallowRemove: function () {\n\t\t\tlet numRows = this.val();\n\t\t\tlet minRows = parseInt( this.get( 'min' ) );\n\n\t\t\tif ( this.get( 'pagination' ) ) {\n\t\t\t\tnumRows = this.get( 'total_rows' );\n\t\t\t}\n\n\t\t\treturn ! minRows || minRows < numRows;\n\t\t},\n\n\t\tallowAdd: function () {\n\t\t\tlet numRows = this.val();\n\t\t\tlet maxRows = parseInt( this.get( 'max' ) );\n\n\t\t\tif ( this.get( 'pagination' ) ) {\n\t\t\t\tnumRows = this.get( 'total_rows' );\n\t\t\t}\n\n\t\t\treturn ! maxRows || maxRows > numRows;\n\t\t},\n\n\t\taddSortable: function ( self ) {\n\t\t\t// bail early if max 1 row\n\t\t\tif ( this.get( 'max' ) == 1 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Bail early if using pagination.\n\t\t\tif ( this.get( 'pagination') ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// add sortable\n\t\t\tthis.$tbody().sortable( {\n\t\t\t\titems: '> tr',\n\t\t\t\thandle: '> td.order',\n\t\t\t\tforceHelperSize: true,\n\t\t\t\tforcePlaceholderSize: true,\n\t\t\t\tscroll: true,\n\t\t\t\tstop: function ( event, ui ) {\n\t\t\t\t\tself.render();\n\t\t\t\t},\n\t\t\t\tupdate: function ( event, ui ) {\n\t\t\t\t\tself.$input().trigger( 'change' );\n\t\t\t\t},\n\t\t\t} );\n\t\t},\n\n\t\taddCollapsed: function () {\n\t\t\t// vars\n\t\t\tvar indexes = preference.load( this.get( 'key' ) );\n\n\t\t\t// bail early if no collapsed\n\t\t\tif ( ! indexes ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// loop\n\t\t\tthis.$rows().each( function ( i ) {\n\t\t\t\tif ( indexes.indexOf( i ) > -1 ) {\n\t\t\t\t\tif ( $( this ).find( '.-collapsed-target' ).length ) {\n\t\t\t\t\t\t$( this ).addClass( '-collapsed' );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\n\t\taddUnscopedEvents: function ( self ) {\n\t\t\t// invalidField\n\t\t\tthis.on( 'invalidField', '.acf-row', function ( e ) {\n\t\t\t\tvar $row = $( this );\n\t\t\t\tif ( self.isCollapsed( $row ) ) {\n\t\t\t\t\tself.expand( $row );\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\t// Listen for changes to fields, so we can persist them in the DOM.\n\t\t\tif ( this.get( 'pagination' ) ) {\n\t\t\t\tthis.on( 'change', 'input, select, textarea', function ( e ) {\n\t\t\t\t\tconst $changed = $( e.currentTarget );\n\t\t\t\t\tif ( ! $changed.hasClass( 'acf-order-input' ) && ! $changed.hasClass( 'acf-row-status' ) ) {\n\t\t\t\t\t\tself.onChangeField( e, $( this ) );\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\tthis.listenForSavedMetaBoxes();\n\t\t},\n\n\t\tinitialize: function () {\n\t\t\t// add unscoped events\n\t\t\tthis.addUnscopedEvents( this );\n\n\t\t\t// add collapsed\n\t\t\tthis.addCollapsed();\n\n\t\t\t// disable clone\n\t\t\tacf.disable( this.$clone(), this.cid );\n\n\t\t\t// Set up the next row number.\n\t\t\tif ( this.get( 'pagination' ) ) {\n\t\t\t\tthis.nextRowNum = this.get( 'total_rows' );\n\t\t\t}\n\n\t\t\t// render\n\t\t\tthis.render();\n\t\t},\n\n\t\trender: function ( update_order_numbers = true ) {\n\t\t\t// Update order number.\n\t\t\tif ( update_order_numbers ) {\n\t\t\t\tthis.$rows().each( function ( i ) {\n\t\t\t\t\t$( this )\n\t\t\t\t\t\t.find( '> .order > span' )\n\t\t\t\t\t\t.html( i + 1 );\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\t// Extract vars.\n\t\t\tvar $control = this.$control();\n\t\t\tvar $button = this.$button();\n\n\t\t\t// empty\n\t\t\tif ( this.val() == 0 ) {\n\t\t\t\t$control.addClass( '-empty' );\n\t\t\t} else {\n\t\t\t\t$control.removeClass( '-empty' );\n\t\t\t}\n\n\t\t\t// Reached max rows.\n\t\t\tif ( ! this.allowAdd() ) {\n\t\t\t\t$control.addClass( '-max' );\n\t\t\t\t$button.addClass( 'disabled' );\n\t\t\t} else {\n\t\t\t\t$control.removeClass( '-max' );\n\t\t\t\t$button.removeClass( 'disabled' );\n\t\t\t}\n\n\t\t\tif ( this.get( 'pagination' ) ) {\n\t\t\t\tthis.maybeDisablePagination();\n\t\t\t}\n\n\t\t\t// Reached min rows (not used).\n\t\t\t//if( !this.allowRemove() ) {\n\t\t\t//\t$control.addClass('-min');\n\t\t\t//} else {\n\t\t\t//\t$control.removeClass('-min');\n\t\t\t//}\n\t\t},\n\n\t\tlistenForSavedMetaBoxes: function() {\n\t\t\tif ( ! acf.isGutenberg() || ! this.get( 'pagination' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tlet checkedMetaBoxes = true;\n\t\t\twp.data.subscribe( () => {\n\t\t\t\tif ( wp.data.select( 'core/edit-post' ).isSavingMetaBoxes() ) {\n\t\t\t\t\tcheckedMetaBoxes = false;\n\t\t\t\t} else {\n\t\t\t\t\tif ( ! checkedMetaBoxes ) {\n\t\t\t\t\t\tcheckedMetaBoxes = true;\n\t\t\t\t\t\tthis.set( 'total_rows', 0, true );\n\t\t\t\t\t\tthis.ajaxLoadPage( true );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\n\t\tincrementTotalRows: function() {\n\t\t\tlet totalRows = this.get( 'total_rows' );\n\t\t\tthis.set( 'total_rows', ++totalRows, true );\n\t\t},\n\n\t\tdecrementTotalRows: function() {\n\t\t\tlet totalRows = this.get( 'total_rows' );\n\t\t\tthis.set( 'total_rows', --totalRows, true );\n\t\t},\n\n\t\tvalidateAdd: function () {\n\t\t\t// return true if allowed\n\t\t\tif ( this.allowAdd() ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t// vars\n\t\t\tvar max = this.get( 'max' );\n\t\t\tvar text = acf.__( 'Maximum rows reached ({max} rows)' );\n\n\t\t\t// replace\n\t\t\ttext = text.replace( '{max}', max );\n\n\t\t\t// add notice\n\t\t\tthis.showNotice( {\n\t\t\t\ttext: text,\n\t\t\t\ttype: 'warning',\n\t\t\t} );\n\n\t\t\t// return\n\t\t\treturn false;\n\t\t},\n\n\t\tonClickAdd: function ( e, $el ) {\n\t\t\t// validate\n\t\t\tif ( ! this.validateAdd() ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// add above row\n\t\t\tif ( $el.hasClass( 'acf-icon' ) ) {\n\t\t\t\tthis.add( {\n\t\t\t\t\tbefore: $el.closest( '.acf-row' ),\n\t\t\t\t} );\n\n\t\t\t\t// default\n\t\t\t} else {\n\t\t\t\tthis.add();\n\t\t\t}\n\t\t},\n\n\t\tadd: function ( args ) {\n\t\t\t// validate\n\t\t\tif ( ! this.allowAdd() ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// defaults\n\t\t\targs = acf.parseArgs( args, {\n\t\t\t\tbefore: false,\n\t\t\t} );\n\n\t\t\t// add row\n\t\t\tvar $el = acf.duplicate( {\n\t\t\t\ttarget: this.$clone(),\n\t\t\t\tappend: this.proxy( function ( $el, $el2 ) {\n\t\t\t\t\t// append\n\t\t\t\t\tif ( args.before ) {\n\t\t\t\t\t\targs.before.before( $el2 );\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$el.before( $el2 );\n\t\t\t\t\t}\n\n\t\t\t\t\t// remove clone class\n\t\t\t\t\t$el2.removeClass( 'acf-clone' );\n\n\t\t\t\t\t// enable\n\t\t\t\t\tacf.enable( $el2, this.cid );\n\t\t\t\t} ),\n\t\t\t} );\n\n\t\t\tif ( this.get( 'pagination' ) ) {\n\t\t\t\tthis.incrementTotalRows();\n\n\t\t\t\tif ( false !== args.before ) {\n\t\t\t\t\t// If the row was inserted above an existing row, try to keep that order.\n\t\t\t\t\tconst prevRowNum = parseInt( args.before.find( '.acf-row-number' ).first().text() ) || 0;\n\t\t\t\t\tlet newRowNum = prevRowNum;\n\n\t\t\t\t\tif ( newRowNum && ! args.before.hasClass( 'acf-inserted' ) && ! args.before.hasClass( 'acf-added' ) ) {\n\t\t\t\t\t\t--newRowNum;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( args.before.hasClass( 'acf-divider' ) ) {\n\t\t\t\t\t\targs.before.removeClass( 'acf-divider' );\n\t\t\t\t\t\t$el.addClass( 'acf-divider' );\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.updateRowStatus( $el, 'inserted' );\n\t\t\t\t\tthis.updateRowStatus( $el, 'reordered', newRowNum );\n\n\t\t\t\t\t// Hide the row numbers to avoid confusion with existing rows.\n\t\t\t\t\t$el.find( '.acf-row-number' ).first().hide().text( newRowNum );\n\t\t\t\t\tif ( ! $el.find( '.acf-order-input-wrap' ).hasClass( 'disabled' ) ) {\n\t\t\t\t\t\tlet message = acf.__( 'Order will be assigned upon save' );\n\t\t\t\t\t\t$el.find( '.acf-order-input-wrap' ).addClass( 'disabled' );\n\t\t\t\t\t\t$el.find( '.acf-row-number' ).first().after( '-' );\n\t\t\t\t\t}\n\t\t\t\t\t$el.find( '.acf-order-input' ).first().hide();\n\t\t\t\t\t$el.attr( 'data-inserted', newRowNum );\n\t\t\t\t} else {\n\t\t\t\t\tthis.nextRowNum++;\n\n\t\t\t\t\t$el.find( '.acf-order-input' ).first().val( this.nextRowNum );\n\t\t\t\t\t$el.find( '.acf-row-number' ).first().text( this.nextRowNum );\n\t\t\t\t\tthis.updateRowStatus( $el, 'added' );\n\n\t\t\t\t\tif ( ! this.$tbody().find( '.acf-divider' ).length ) {\n\t\t\t\t\t\t$el.addClass( 'acf-divider' );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$el.find( '.acf-input:first' )\n\t\t\t\t\t.find( 'input:not([type=hidden]), select, textarea' )\n\t\t\t\t\t.first()\n\t\t\t\t\t.trigger( 'focus' );\n\t\t\t}\n\n\t\t\t// Render and trigger change for validation errors.\n\t\t\tthis.render();\n\t\t\tthis.$input().trigger( 'change' );\n\n\t\t\treturn $el;\n\t\t},\n\n\t\tonClickDuplicate: function ( e, $el ) {\n\t\t\t// Validate with warning.\n\t\t\tif ( ! this.validateAdd() ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// get layout and duplicate it.\n\t\t\tvar $row = $el.closest( '.acf-row' );\n\t\t\tthis.duplicateRow( $row );\n\t\t},\n\n\t\tduplicateRow: function ( $row ) {\n\t\t\t// Validate without warning.\n\t\t\tif ( ! this.allowAdd() ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Vars.\n\t\t\tvar fieldKey = this.get( 'key' );\n\n\t\t\t// Duplicate row.\n\t\t\tvar $el = acf.duplicate( {\n\t\t\t\ttarget: $row,\n\n\t\t\t\t// Provide a custom renaming callback to avoid renaming parent row attributes.\n\t\t\t\trename: function ( name, value, search, replace ) {\n\t\t\t\t\t// Rename id attributes from \"field_1-search\" to \"field_1-replace\".\n\t\t\t\t\tif ( name === 'id' || name === 'for' ) {\n\t\t\t\t\t\treturn value.replace(\n\t\t\t\t\t\t\tfieldKey + '-' + search,\n\t\t\t\t\t\t\tfieldKey + '-' + replace\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// Rename name and for attributes from \"[field_1][search]\" to \"[field_1][replace]\".\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn value.replace(\n\t\t\t\t\t\t\tfieldKey + '][' + search,\n\t\t\t\t\t\t\tfieldKey + '][' + replace\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tbefore: function ( $el ) {\n\t\t\t\t\tacf.doAction( 'unmount', $el );\n\t\t\t\t},\n\t\t\t\tafter: function ( $el, $el2 ) {\n\t\t\t\t\tacf.doAction( 'remount', $el );\n\t\t\t\t},\n\t\t\t} );\n\n\t\t\tif ( this.get( 'pagination' ) ) {\n\t\t\t\tthis.incrementTotalRows();\n\n\t\t\t\t// If the row was inserted above an existing row, try to keep that order.\n\t\t\t\tconst prevRowNum = parseInt( $row.find( '.acf-row-number' ).first().text() ) || 0;\n\n\t\t\t\tthis.updateRowStatus( $el, 'inserted' );\n\t\t\t\tthis.updateRowStatus( $el, 'reordered', prevRowNum );\n\n\t\t\t\t// Hide the row numbers to avoid confusion with existing rows.\n\t\t\t\t$el.find( '.acf-row-number' ).first().hide();\n\t\t\t\tif ( ! $el.find( '.acf-order-input-wrap' ).hasClass( 'disabled' ) ) {\n\t\t\t\t\tlet message = acf.__( 'Order will be assigned upon save' );\n\t\t\t\t\t$el.find( '.acf-order-input-wrap' ).addClass( 'disabled' );\n\t\t\t\t\t$el.find( '.acf-row-number' ).first().after( '-' );\n\t\t\t\t}\n\t\t\t\t$el.find( '.acf-order-input' ).first().hide();\n\t\t\t\t$el.attr( 'data-inserted', prevRowNum );\n\t\t\t\t$el.removeClass( 'acf-divider' );\n\t\t\t}\n\n\t\t\t// trigger change for validation errors\n\t\t\tthis.$input().trigger( 'change' );\n\n\t\t\t// Update order numbers.\n\t\t\tthis.render();\n\n\t\t\t// Focus on new row.\n\t\t\tacf.focusAttention( $el );\n\n\t\t\t// Return new layout.\n\t\t\treturn $el;\n\t\t},\n\n\t\tvalidateRemove: function () {\n\t\t\t// return true if allowed\n\t\t\tif ( this.allowRemove() ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t// vars\n\t\t\tvar min = this.get( 'min' );\n\t\t\tvar text = acf.__( 'Minimum rows reached ({min} rows)' );\n\n\t\t\t// replace\n\t\t\ttext = text.replace( '{min}', min );\n\n\t\t\t// add notice\n\t\t\tthis.showNotice( {\n\t\t\t\ttext: text,\n\t\t\t\ttype: 'warning',\n\t\t\t} );\n\n\t\t\t// return\n\t\t\treturn false;\n\t\t},\n\n\t\tonClickRemove: function ( e, $el ) {\n\t\t\tvar $row = $el.closest( '.acf-row' );\n\n\t\t\t// Bypass confirmation when holding down \"shift\" key.\n\t\t\tif ( e.shiftKey ) {\n\t\t\t\treturn this.remove( $row );\n\t\t\t}\n\n\t\t\t// add class\n\t\t\t$row.addClass( '-hover' );\n\n\t\t\t// add tooltip\n\t\t\tvar tooltip = acf.newTooltip( {\n\t\t\t\tconfirmRemove: true,\n\t\t\t\ttarget: $el,\n\t\t\t\tcontext: this,\n\t\t\t\tconfirm: function () {\n\t\t\t\t\tthis.remove( $row );\n\t\t\t\t},\n\t\t\t\tcancel: function () {\n\t\t\t\t\t$row.removeClass( '-hover' );\n\t\t\t\t},\n\t\t\t} );\n\t\t},\n\n\t\tonClickRowOrder: function( e, $el ) {\n\t\t\tif ( ! this.get( 'pagination' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( $el.hasClass( 'disabled' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$el.find( '.acf-row-number' ).hide();\n\t\t\t$el.find( '.acf-order-input' ).show().trigger( 'select' );\n\t\t},\n\n\t\tonBlurRowOrder: function( e, $el ) {\n\t\t\tthis.onChangeRowOrder( e, $el, false );\n\t\t},\n\n\t\tonChangeRowOrder: function( e, $el, update = true ) {\n\t\t\tif ( ! this.get( 'pagination' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst $row = $el.closest( '.acf-row' );\n\t\t\tconst $orderSpan = $row.find( '.acf-row-number' ).first();\n\t\t\tlet hrOrder = $el.val();\n\n\t\t\t$row.find( '.acf-order-input' ).first().hide();\n\n\t\t\tif ( ! acf.isNumeric( hrOrder ) || parseFloat( hrOrder ) < 0 ) {\n\t\t\t\t$orderSpan.show();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\thrOrder = Math.round( hrOrder );\n\n\t\t\tconst newOrder = hrOrder - 1;\n\n\t\t\t$el.val( hrOrder );\n\t\t\t$orderSpan.text( hrOrder ).show();\n\n\t\t\tif ( update ) {\n\t\t\t\tthis.updateRowStatus( $row, 'reordered', newOrder );\n\t\t\t}\n\t\t},\n\n\t\tonChangeTotalRows: function() {\n\t\t\tconst perPage = parseInt( this.get( 'per_page' ) ) || 20;\n\t\t\tconst totalRows = parseInt( this.get( 'total_rows' ) ) || 0;\n\t\t\tconst totalPages = Math.ceil( totalRows / perPage );\n\n\t\t\t// Update the total pages in pagination.\n\t\t\tthis.$( '.acf-total-pages:last' ).text( totalPages );\n\t\t\tthis.nextRowNum = totalRows;\n\n\t\t\t// If the current page no longer exists, load the last page.\n\t\t\tif ( this.page > totalPages ) {\n\t\t\t\tthis.page = totalPages;\n\t\t\t\tthis.ajaxLoadPage();\n\t\t\t}\n\t\t},\n\n\t\tremove: function ( $row ) {\n\t\t\tconst self = this;\n\n\t\t\tif ( this.get( 'pagination' ) ) {\n\t\t\t\tthis.decrementTotalRows();\n\n\t\t\t\t// If using pagination and the row had already been saved, just hide the row instead of deleting it.\n\t\t\t\tif ( $row.data( 'id' ).includes( 'row-' ) ){\n\t\t\t\t\tthis.updateRowStatus( $row, 'deleted' );\n\n\t\t\t\t\t$row.hide();\n\t\t\t\t\tself.$input().trigger( 'change' );\n\t\t\t\t\tself.render( false );\n\t\t\t\t\treturn;\n\t\t\t\t} else if ( $row.hasClass( 'acf-divider' ) ) {\n\t\t\t\t\t$row.next( '.acf-added' ).addClass( 'acf-divider' );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If not using pagination, delete the actual row.\n\t\t\tacf.remove( {\n\t\t\t\ttarget: $row,\n\t\t\t\tendHeight: 0,\n\t\t\t\tcomplete: function () {\n\t\t\t\t\t// trigger change to allow attachment save\n\t\t\t\t\tself.$input().trigger( 'change' );\n\n\t\t\t\t\t// render\n\t\t\t\t\tself.render();\n\n\t\t\t\t\t// sync collapsed order\n\t\t\t\t\t//self.sync();\n\t\t\t\t},\n\t\t\t} );\n\t\t},\n\n\t\tisCollapsed: function ( $row ) {\n\t\t\treturn $row.hasClass( '-collapsed' );\n\t\t},\n\n\t\tcollapse: function ( $row ) {\n\t\t\t$row.addClass( '-collapsed' );\n\t\t\tacf.doAction( 'hide', $row, 'collapse' );\n\t\t},\n\n\t\texpand: function ( $row ) {\n\t\t\t$row.removeClass( '-collapsed' );\n\t\t\tacf.doAction( 'show', $row, 'collapse' );\n\t\t},\n\n\t\tonClickCollapse: function ( e, $el ) {\n\t\t\t// vars\n\t\t\tvar $row = $el.closest( '.acf-row' );\n\t\t\tvar isCollpased = this.isCollapsed( $row );\n\n\t\t\t// shift\n\t\t\tif ( e.shiftKey ) {\n\t\t\t\t$row = this.$rows();\n\t\t\t}\n\n\t\t\t// toggle\n\t\t\tif ( isCollpased ) {\n\t\t\t\tthis.expand( $row );\n\t\t\t} else {\n\t\t\t\tthis.collapse( $row );\n\t\t\t}\n\t\t},\n\n\t\tonShow: function ( e, $el, context ) {\n\t\t\t// get sub fields\n\t\t\tvar fields = acf.getFields( {\n\t\t\t\tis: ':visible',\n\t\t\t\tparent: this.$el,\n\t\t\t} );\n\n\t\t\t// trigger action\n\t\t\t// - ignore context, no need to pass through 'conditional_logic'\n\t\t\t// - this is just for fields like google_map to render itself\n\t\t\tacf.doAction( 'show_fields', fields );\n\t\t},\n\n\t\tonUnload: function () {\n\t\t\t// vars\n\t\t\tvar indexes = [];\n\n\t\t\t// loop\n\t\t\tthis.$rows().each( function ( i ) {\n\t\t\t\tif ( $( this ).hasClass( '-collapsed' ) ) {\n\t\t\t\t\tindexes.push( i );\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\t// allow null\n\t\t\tindexes = indexes.length ? indexes : null;\n\n\t\t\t// set\n\t\t\tpreference.save( this.get( 'key' ), indexes );\n\t\t},\n\n\t\tonHover: function () {\n\t\t\t// add sortable\n\t\t\tthis.addSortable( this );\n\n\t\t\t// remove event\n\t\t\tthis.off( 'mouseover' );\n\t\t},\n\n\t\tonChangeField: function( e, $el ) {\n\t\t\tconst $target = $( e.delegateTarget );\n\t\t\tlet $row = $el.closest( '.acf-row' );\n\n\t\t\tif ( $row.closest( '.acf-field-repeater' ).data( 'key' ) !== $target.data( 'key' ) ) {\n\t\t\t\t$row = $row.parent().closest( '.acf-row' );\n\t\t\t}\n\n\t\t\tthis.updateRowStatus( $row, 'changed' );\n\t\t},\n\n\t\tupdateRowStatus: function( $row, status, data = true ) {\n\t\t\tif ( ! this.get( 'pagination' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst parent_key = $row.parents( '.acf-field-repeater' ).data( 'key' );\n\n\t\t\tif ( this.parent() && parent_key !== this.get( 'key' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst row_id = $row.data( 'id' );\n\t\t\tconst input_name = this.$el.find( '.acf-repeater-hidden-input:first' ).attr( 'name' );\n\t\t\tconst status_name = `${input_name}[${row_id}][acf_${status}]`;\n\t\t\tconst status_input = ``;\n\n\t\t\tif ( ! $row.hasClass( 'acf-' + status ) ) {\n\t\t\t\t$row.addClass( 'acf-' + status );\n\t\t\t}\n\n\t\t\t// TODO: Update so that this doesn't get messed up with repeater subfields.\n\t\t\tconst $existing_status = $row.find( `input[name='${status_name}']` );\n\t\t\tif ( ! $existing_status.length ) {\n\t\t\t\t$row.find( 'td' ).first().append( status_input );\n\t\t\t} else {\n\t\t\t\t$existing_status.val( data );\n\t\t\t}\n\t\t},\n\n\t\tonClickFirstPage: function() {\n\t\t\tthis.validatePage( 1 );\n\t\t},\n\n\t\tonClickPrevPage: function() {\n\t\t\tthis.validatePage( this.page - 1 );\n\t\t},\n\n\t\tonClickNextPage: function( e ) {\n\t\t\tthis.validatePage( this.page + 1 );\n\t\t},\n\n\t\tonClickLastPage: function() {\n\t\t\tthis.validatePage( this.totalPages() );\n\t\t},\n\n\t\tonChangeCurrentPage: function() {\n\t\t\tthis.validatePage( this.$pageInput().val() );\n\t\t},\n\n\t\tmaybeDisablePagination: function() {\n\t\t\tthis.$actions().find( '.acf-nav' ).removeClass( 'disabled' );\n\n\t\t\tif ( this.page <= 1 ) {\n\t\t\t\tthis.$firstPageButton().addClass( 'disabled' );\n\t\t\t\tthis.$prevPageButton().addClass( 'disabled' );\n\t\t\t}\n\n\t\t\tif ( this.page >= this.totalPages() ) {\n\t\t\t\tthis.$nextPageButton().addClass( 'disabled' );\n\t\t\t\tthis.$lastPageButton().addClass( 'disabled' );\n\t\t\t}\n\t\t},\n\n\t\tvalidatePage: function( nextPage ) {\n\t\t\tconst self = this;\n\n\t\t\t// Validate the current page.\n\t\t\tacf.validateForm( {\n\t\t\t\tform: this.$control(),\n\t\t\t\tevent: '',\n\t\t\t\treset: true,\n\t\t\t\tsuccess: function( $form ) {\n\t\t\t\t\tself.page = nextPage;\n\n\t\t\t\t\t// Set up some sane defaults.\n\t\t\t\t\tif ( self.page <= 1 ) {\n\t\t\t\t\t\tself.page = 1;\n\t\t\t\t\t}\n\t\t\t\t\tif ( self.page >= self.totalPages() ) {\n\t\t\t\t\t\tself.page = self.totalPages();\n\t\t\t\t\t}\n\n\t\t\t\t\tself.ajaxLoadPage();\n\t\t\t\t},\n\t\t\t\tfailure: function( $form ) {\n\t\t\t\t\tself.$pageInput().val( self.page );\n\t\t\t\t\treturn false;\n\t\t\t\t},\n\t\t\t} );\n\t\t},\n\n\t\tajaxLoadPage: function( clearChanged = false ) {\n\t\t\tconst ajaxData = acf.prepareForAjax( {\n\t\t\t\taction: 'acf/ajax/query_repeater',\n\t\t\t\tpaged: this.page,\n\t\t\t\tfield_key: this.get( 'key' ),\n\t\t\t\tfield_name: this.get( 'orig_name' ),\n\t\t\t\trows_per_page: parseInt( this.get( 'per_page' ) ),\n\t\t\t\trefresh: clearChanged\n\t\t\t} );\n\n\t\t\t$.ajax(\n\t\t\t\t{\n\t\t\t\t\turl: ajaxurl,\n\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\tdataType: 'json',\n\t\t\t\t\tdata: ajaxData,\n\t\t\t\t\tcontext: this,\n\t\t\t\t}\n\t\t\t).done(\n\t\t\t\tfunction( response ) {\n\t\t\t\t\tconst { rows } = response.data;\n\t\t\t\t\tconst $existingRows = this.$tbody().find( '> tr' );\n\n\t\t\t\t\t$existingRows.not( '.acf-clone' ).hide();\n\n\t\t\t\t\tif ( clearChanged ) {\n\t\t\t\t\t\t// Remove any existing rows since we are refreshing from the server.\n\t\t\t\t\t\t$existingRows.not( '.acf-clone' ).remove();\n\n\t\t\t\t\t\t// Trigger a change in total rows, so we can update pagination.\n\t\t\t\t\t\tthis.set( 'total_rows', response.data.total_rows, false );\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$existingRows.not( '.acf-changed, .acf-deleted, .acf-reordered, .acf-added, .acf-inserted, .acf-clone' ).remove();\n\t\t\t\t\t}\n\n\t\t\t\t\tObject.keys( rows ).forEach( index => {\n\t\t\t\t\t\tlet $row = false;\n\t\t\t\t\t\tlet $unsavedRow = this.$tbody().find( '> *[data-id=row-' + index + ']' );\n\t\t\t\t\t\tlet $insertedRow = this.$tbody().find( '> *[data-inserted=' + index + ']' );\n\n\t\t\t\t\t\t// Unsaved new rows that are inserted into this specific position.\n\t\t\t\t\t\tif ( $insertedRow.length ) {\n\t\t\t\t\t\t\t$insertedRow.appendTo( this.$tbody() ).show();\n\t\t\t\t\t\t\tacf.doAction( 'remount', $insertedRow );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Skip unsaved deleted rows; we don't want to show them again.\n\t\t\t\t\t\tif ( $unsavedRow.hasClass( 'acf-deleted' ) ) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Unsaved edited rows should be moved to correct position.\n\t\t\t\t\t\tif ( $unsavedRow.length ) {\n\t\t\t\t\t\t\tacf.doAction( 'unmount', $unsavedRow );\n\t\t\t\t\t\t\t$unsavedRow.appendTo( this.$tbody() ).show();\n\t\t\t\t\t\t\tacf.doAction( 'remount', $unsavedRow );\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Rows from the server (that haven't been changed or deleted) should be appended and shown.\n\t\t\t\t\t\t$row = $( rows[ index ] );\n\t\t\t\t\t\tthis.$tbody().append( $row ).show();\n\t\t\t\t\t\tacf.doAction( 'remount', $row );\n\n\t\t\t\t\t\t// Move clone field back to the right spot.\n\t\t\t\t\t\tthis.$clone().appendTo( this.$tbody() );\n\t\t\t\t\t} );\n\n\t\t\t\t\tconst $addedRows = this.$tbody().find( '.acf-added:hidden' );\n\n\t\t\t\t\t// If there are any new rows that are still hidden, append them to the bottom.\n\t\t\t\t\tif ( $addedRows.length ) {\n\t\t\t\t\t\tconst self = this;\n\n\t\t\t\t\t\t$addedRows.each( function() {\n\t\t\t\t\t\t\tconst $addedRow = $( this );\n\t\t\t\t\t\t\t$addedRow.insertBefore( self.$clone() ).show();\n\t\t\t\t\t\t\tacf.doAction( 'remount', $addedRow );\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Update the page input.\n\t\t\t\t\tthis.$pageInput().val( this.page );\n\t\t\t\t\tthis.maybeDisablePagination();\n\t\t\t\t}\n\t\t\t).fail(\n\t\t\t\tfunction( jqXHR, textStatus, errorThrown ) {\n\t\t\t\t\tconst error = acf.getXhrError( jqXHR );\n\t\t\t\t\tlet message = acf.__( 'Error loading page' );\n\n\t\t\t\t\tif ( '' !== error ) {\n\t\t\t\t\t\tmessage = `${message}: ${error}`;\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.showNotice( {\n\t\t\t\t\t\ttext: message,\n\t\t\t\t\t\ttype: 'warning',\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t);\n\t\t},\n\n\t} );\n\n\tacf.registerFieldType( Field );\n\n\t// register existing conditions\n\tacf.registerConditionForFieldType( 'hasValue', 'repeater' );\n\tacf.registerConditionForFieldType( 'hasNoValue', 'repeater' );\n\tacf.registerConditionForFieldType( 'lessThan', 'repeater' );\n\tacf.registerConditionForFieldType( 'greaterThan', 'repeater' );\n\n\t// state\n\tvar preference = new acf.Model( {\n\t\tname: 'this.collapsedRows',\n\n\t\tkey: function ( key, context ) {\n\t\t\t// vars\n\t\t\tvar count = this.get( key + context ) || 0;\n\n\t\t\t// update\n\t\t\tcount++;\n\t\t\tthis.set( key + context, count, true );\n\n\t\t\t// modify fieldKey\n\t\t\tif ( count > 1 ) {\n\t\t\t\tkey += '-' + count;\n\t\t\t}\n\n\t\t\t// return\n\t\t\treturn key;\n\t\t},\n\n\t\tload: function ( key ) {\n\t\t\t// vars\n\t\t\tvar key = this.key( key, 'load' );\n\t\t\tvar data = acf.getPreference( this.name );\n\n\t\t\t// return\n\t\t\tif ( data && data[ key ] ) {\n\t\t\t\treturn data[ key ];\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t},\n\n\t\tsave: function ( key, value ) {\n\t\t\t// vars\n\t\t\tvar key = this.key( key, 'save' );\n\t\t\tvar data = acf.getPreference( this.name ) || {};\n\n\t\t\t// delete\n\t\t\tif ( value === null ) {\n\t\t\t\tdelete data[ key ];\n\n\t\t\t\t// append\n\t\t\t} else {\n\t\t\t\tdata[ key ] = value;\n\t\t\t}\n\n\t\t\t// allow null\n\t\t\tif ( $.isEmptyObject( data ) ) {\n\t\t\t\tdata = null;\n\t\t\t}\n\n\t\t\t// save\n\t\t\tacf.setPreference( this.name, data );\n\t\t},\n\t} );\n} )( jQuery );\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import './_acf-field-repeater.js';\nimport './_acf-field-flexible-content.js';\nimport './_acf-field-gallery.js';\n"],"names":["$","Field","acf","extend","type","wait","events","showField","unloadField","mouseover","$control","$layoutsWrap","$layouts","$layout","index","$clonesWrap","$clones","$clone","name","$actions","$button","$popup","getPopupHTML","html","$html","countLayouts","filter","data","length","find","each","$a","min","max","count","addClass","required","title","__","identifier","_n","replace","append","outerHTML","getValue","allowRemove","parseInt","get","val","allowAdd","isFull","addSortable","self","sortable","items","handle","forceHelperSize","forcePlaceholderSize","scroll","stop","event","ui","render","update","$input","trigger","addCollapsed","indexes","preference","load","i","indexOf","addUnscopedEvents","on","e","onInvalidField","initialize","disable","cid","removeClass","onShow","$el","context","fields","getFields","is","parent","doAction","validateAdd","text","showNotice","onClickAdd","hasClass","closest","popup","Popup","target","targetConfirm","confirm","add","layout","before","cancel","args","parseArgs","duplicate","proxy","$el2","enable","onClickDuplicate","duplicateLayout","fieldKey","rename","value","search","after","focusAttention","validateRemove","onClickRemove","shiftKey","removeLayout","tooltip","newTooltip","confirmRemove","endHeight","remove","complete","onClickCollapse","isLayoutClosed","openLayout","closeLayout","renderLayout","children","prefix","attr","ajaxData","action","field_key","serialize","ajax","url","prepareForAjax","dataType","success","onUnload","push","save","onHover","off","registerFieldType","models","TooltipConfirm","registerConditionForFieldType","Model","key","set","getPreference","isEmptyObject","setPreference","jQuery","actions","validation_begin","validation_failure","resize","onValidationBegin","$sideData","onValidationFailure","$collection","$attachments","$attachment","id","$active","$main","$side","onUpdate","start","placeholder","item","removeAttr","resizable","handles","minHeight","update_user_setting","size","height","$sort","$add","width","columns","Math","round","onResize","openSidebar","css","animate","right","closeSidebar","frame","newMediaPopup","mode","field","multiple","library","allowedTypes","selected","select","attachment","appendAttachment","validateAttachment","getInputName","join","$before","eq","renderAttachment","alt","filename","attributes","isget","image","src","editAttachment","button","onClickEdit","removeAttachment","preventDefault","stopPropagation","selectAttachment","step1","step2","has","abort","showLoading","xhr","cache","step3","onClickSelect","onClickClose","onChangeSort","ids","sort","json","isAjaxSuccess","reverse","map","prepend","$submit","prev","page","nextRowNum","change","$table","$tbody","$rows","not","$row","$firstPageButton","$prevPageButton","$nextPageButton","$lastPageButton","$pageInput","totalPages","numRows","minRows","maxRows","isCollapsed","expand","$changed","currentTarget","onChangeField","listenForSavedMetaBoxes","update_order_numbers","maybeDisablePagination","isGutenberg","checkedMetaBoxes","wp","subscribe","isSavingMetaBoxes","ajaxLoadPage","incrementTotalRows","totalRows","decrementTotalRows","prevRowNum","first","newRowNum","updateRowStatus","hide","message","duplicateRow","onClickRowOrder","show","onBlurRowOrder","onChangeRowOrder","$orderSpan","hrOrder","isNumeric","parseFloat","newOrder","onChangeTotalRows","perPage","ceil","includes","next","collapse","isCollpased","$target","delegateTarget","status","parent_key","parents","row_id","input_name","status_name","status_input","$existing_status","onClickFirstPage","validatePage","onClickPrevPage","onClickNextPage","onClickLastPage","onChangeCurrentPage","nextPage","validateForm","form","reset","$form","failure","clearChanged","paged","field_name","rows_per_page","refresh","ajaxurl","method","done","response","rows","$existingRows","total_rows","Object","keys","forEach","$unsavedRow","$insertedRow","appendTo","$addedRows","$addedRow","insertBefore","fail","jqXHR","textStatus","errorThrown","error","getXhrError"],"sourceRoot":""}