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B,GAAG,CAAC0J,aAAa,CAAE,IAAI,CAAC1I,IAAK,CAAC,IAAI,CAAC,CAAC;;MAE/C;MACA,IAAK+F,KAAK,KAAK,IAAI,EAAG;QACrB,OAAOtF,IAAI,CAAE+H,GAAG,CAAE;;QAElB;MACD,CAAC,MAAM;QACN/H,IAAI,CAAE+H,GAAG,CAAE,GAAGzC,KAAK;MACpB;;MAEA;MACA,IAAKjH,CAAC,CAAC6J,aAAa,CAAElI,IAAK,CAAC,EAAG;QAC9BA,IAAI,GAAG,IAAI;MACZ;;MAEA;MACAzB,GAAG,CAAC4J,aAAa,CAAE,IAAI,CAAC5I,IAAI,EAAES,IAAK,CAAC;IACrC;EACD,CAAE,CAAC;AACJ,CAAC,EAAIoI,MAAO,CAAC;;;;;;UCn8Bb;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;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'<span class=\"badge\" title=\"' +\n\t\t\t\t\t\t\ttitle +\n\t\t\t\t\t\t\t'\">' +\n\t\t\t\t\t\t\trequired +\n\t\t\t\t\t\t\t'</span>'\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'<div class=\"acf-gallery-attachment\" data-id=\"' +\n\t\t\t\t\tattachment.id +\n\t\t\t\t\t'\">',\n\t\t\t\t'<input type=\"hidden\" value=\"' +\n\t\t\t\t\tattachment.id +\n\t\t\t\t\t'\" name=\"' +\n\t\t\t\t\tthis.getInputName() +\n\t\t\t\t\t'[]\">',\n\t\t\t\t'<div class=\"margin\" title=\"\">',\n\t\t\t\t'<div class=\"thumbnail\">',\n\t\t\t\t'<img src=\"\" alt=\"\">',\n\t\t\t\t'</div>',\n\t\t\t\t'<div class=\"filename\"></div>',\n\t\t\t\t'</div>',\n\t\t\t\t'<div class=\"actions\">',\n\t\t\t\t'<a href=\"#\" class=\"acf-icon -cancel dark acf-gallery-remove\" data-id=\"' +\n\t\t\t\t\tattachment.id +\n\t\t\t\t\t'\"></a>',\n\t\t\t\t'</div>',\n\t\t\t\t'</div>',\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( '<i class=\"acf-loading\"></i> ' );\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.isGutenbergPostEditor() || ! 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( '<span title=\"' + message + '\">-</span>' );\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( '<span title=\"' + message + '\">-</span>' );\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 not 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 = `<input type=\"hidden\" class=\"acf-row-status\" name=\"${status_name}\" value=\"${data}\" />`;\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 = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (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 = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (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","isGutenbergPostEditor","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":""} |