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ACA;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;;;;;;;;;;;;;;;;;;ACNA;AACA","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\t// vars\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\t// vars\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\t// vars\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\t// return\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\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.$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\t// vars\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\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// 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\t// return\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\t// Vars.\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' ) {\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\t// vars\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\t// return\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\t// vars\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\t// vars\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\t// vars\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\t// vars\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\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","( 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\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\tshowField: 'onShow',\n\t\t\tunloadField: 'onUnload',\n\t\t\tmouseover: 'onHover',\n\t\t\tunloadField: 'onUnload',\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' );\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\tgetValue: function () {\n\t\t\treturn this.$rows().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\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.$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\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// 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.$rows().each( function ( i ) {\n\t\t\t\t$( this )\n\t\t\t\t\t.find( '> .order > span' )\n\t\t\t\t\t.html( i + 1 );\n\t\t\t} );\n\n\t\t\t// Extract vars.\n\t\t\tvar $controll = 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$controll.addClass( '-empty' );\n\t\t\t} else {\n\t\t\t\t$controll.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$controll.addClass( '-max' );\n\t\t\t\t$button.addClass( 'disabled' );\n\t\t\t} else {\n\t\t\t\t$controll.removeClass( '-max' );\n\t\t\t\t$button.removeClass( 'disabled' );\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$controll.addClass('-min');\n\t\t\t//} else {\n\t\t\t//\t$controll.removeClass('-min');\n\t\t\t//}\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\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\t// return\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' ) {\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// 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\tremove: function ( $row ) {\n\t\t\t// reference\n\t\t\tvar self = this;\n\n\t\t\t// remove\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\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","$table","$tbody","$rows","not","$row","isCollapsed","expand","$controll","duplicateRow","collapse","isCollpased"],"sourceRoot":""}