From 648f759e03c351e094af07f04fca8fc2948172e4 Mon Sep 17 00:00:00 2001 From: Toby Inkster Date: Fri, 13 Aug 2021 12:49:20 +0100 Subject: [PATCH] 5.9.9 --- acf.php | 6 +- assets/build/css/acf-dark.css | 316 ++ assets/build/css/acf-dark.min.css | 1 + assets/build/css/acf-field-group.css | 481 +++ assets/build/css/acf-field-group.min.css | 1 + assets/build/css/acf-global.css | 1662 ++++++++++ assets/build/css/acf-global.min.css | 1 + assets/build/css/acf-input.css | 2932 +++++++++++++++++ assets/build/css/acf-input.min.css | 1 + assets/build/css/pro/acf-pro-field-group.css | 67 + .../build/css/pro/acf-pro-field-group.min.css | 1 + assets/build/css/pro/acf-pro-input.css | 683 ++++ assets/build/css/pro/acf-pro-input.min.css | 1 + assets/{ => build}/js/acf-field-group.js | 54 +- assets/build/js/acf-field-group.min.js | 1 + assets/{ => build}/js/acf-input.js | 84 +- assets/build/js/acf-input.min.js | 1 + assets/{ => build}/js/acf.js | 20 +- assets/build/js/acf.min.js | 1 + assets/build/js/pro/acf-pro-blocks.js | 1828 ++++++++++ assets/build/js/pro/acf-pro-blocks.min.js | 1 + .../build/js/pro}/acf-pro-field-group.js | 8 +- .../build/js/pro/acf-pro-field-group.min.js | 1 + .../build/js/pro}/acf-pro-input.js | 8 +- assets/build/js/pro/acf-pro-input.min.js | 1 + assets/css/acf-dark.css | 1 - assets/css/acf-field-group.css | 1 - assets/css/acf-global.css | 1 - assets/css/acf-input.css | 1 - assets/images/icon-upgrade-pro.svg | 6 + assets/js/acf-field-group.min.js | 1 - assets/js/acf-input.min.js | 4 - assets/js/acf.min.js | 1 - includes/acf-input-functions.php | 5 +- includes/admin/admin-field-group.php | 6 + includes/admin/admin.php | 2 +- .../admin/views/html-admin-navigation.php | 8 + includes/api/api-helpers.php | 10 +- includes/api/api-template.php | 2 +- includes/assets.php | 13 +- includes/fields/class-acf-field-email.php | 4 +- includes/fields/class-acf-field-wysiwyg.php | 3 +- includes/media.php | 281 +- pro/acf-pro.php | 8 +- pro/admin/views/html-settings-updates.php | 2 +- pro/assets/css/acf-pro-field-group.css | 1 - pro/assets/css/acf-pro-input.css | 1 - pro/assets/js/acf-pro-blocks.min.js | 1 - pro/assets/js/acf-pro-field-group.min.js | 1 - pro/assets/js/acf-pro-input.min.js | 1 - pro/blocks.php | 31 +- pro/options-page.php | 5 +- pro/updates.php | 2 +- readme.txt | 30 +- 54 files changed, 8256 insertions(+), 338 deletions(-) create mode 100644 assets/build/css/acf-dark.css create mode 100644 assets/build/css/acf-dark.min.css create mode 100644 assets/build/css/acf-field-group.css create mode 100644 assets/build/css/acf-field-group.min.css create mode 100644 assets/build/css/acf-global.css create mode 100644 assets/build/css/acf-global.min.css create mode 100644 assets/build/css/acf-input.css create mode 100644 assets/build/css/acf-input.min.css create mode 100644 assets/build/css/pro/acf-pro-field-group.css create mode 100644 assets/build/css/pro/acf-pro-field-group.min.css create mode 100644 assets/build/css/pro/acf-pro-input.css create mode 100644 assets/build/css/pro/acf-pro-input.min.css rename assets/{ => build}/js/acf-field-group.js (97%) create mode 100644 assets/build/js/acf-field-group.min.js rename assets/{ => build}/js/acf-input.js (99%) create mode 100644 assets/build/js/acf-input.min.js rename assets/{ => build}/js/acf.js (99%) create mode 100644 assets/build/js/acf.min.js create mode 100644 assets/build/js/pro/acf-pro-blocks.js create mode 100644 assets/build/js/pro/acf-pro-blocks.min.js rename {pro/assets/js => assets/build/js/pro}/acf-pro-field-group.js (98%) create mode 100644 assets/build/js/pro/acf-pro-field-group.min.js rename {pro/assets/js => assets/build/js/pro}/acf-pro-input.js (99%) create mode 100644 assets/build/js/pro/acf-pro-input.min.js delete mode 100644 assets/css/acf-dark.css delete mode 100644 assets/css/acf-field-group.css delete mode 100644 assets/css/acf-global.css delete mode 100644 assets/css/acf-input.css create mode 100644 assets/images/icon-upgrade-pro.svg delete mode 100644 assets/js/acf-field-group.min.js delete mode 100644 assets/js/acf-input.min.js delete mode 100644 assets/js/acf.min.js delete mode 100644 pro/assets/css/acf-pro-field-group.css delete mode 100644 pro/assets/css/acf-pro-input.css delete mode 100644 pro/assets/js/acf-pro-blocks.min.js delete mode 100644 pro/assets/js/acf-pro-field-group.min.js delete mode 100644 pro/assets/js/acf-pro-input.min.js diff --git a/acf.php b/acf.php index 58a4035..2a71eb4 100644 --- a/acf.php +++ b/acf.php @@ -3,8 +3,8 @@ Plugin Name: Advanced Custom Fields PRO Plugin URI: https://www.advancedcustomfields.com Description: Customize WordPress with powerful, professional and intuitive fields. -Version: 5.9.6 -Author: Elliot Condon +Version: 5.9.9 +Author: Delicious Brains Author URI: https://www.advancedcustomfields.com Text Domain: acf Domain Path: /lang @@ -17,7 +17,7 @@ if( ! class_exists('ACF') ) : class ACF { /** @var string The plugin version number. */ - var $version = '5.9.6'; + var $version = '5.9.9'; /** @var array The plugin settings array. */ var $settings = array(); diff --git a/assets/build/css/acf-dark.css b/assets/build/css/acf-dark.css new file mode 100644 index 0000000..2154f93 --- /dev/null +++ b/assets/build/css/acf-dark.css @@ -0,0 +1,316 @@ +/*-------------------------------------------------------------------------------------------- +* +* Dark mode +* +* WordPress plugin: https://en-au.wordpress.org/plugins/dark-mode/ +* Github Documentation: https://github.com/danieltj27/Dark-Mode/wiki/Help:-Plugin-Compatibility-Guide +* +*--------------------------------------------------------------------------------------------*/ +/*--------------------------------------------------------------------------------------------- +* +* Global +* +*---------------------------------------------------------------------------------------------*/ +.acf-box { + background-color: #32373c; + border-color: #191f25; + color: #bbc8d4; +} +.acf-box .title, +.acf-box .footer { + border-color: #23282d; +} +.acf-box h2 { + color: #bbc8d4; +} +.acf-box table, .acf-box tbody, .acf-box tr { + background: transparent !important; +} + +.acf-thead { + color: #bbc8d4; + border-color: #191f25; +} + +.acf-tfoot { + background-color: #2d3136; + border-color: #23282d; +} + +.acf-table.-clear, +.acf-table.-clear tr { + background: transparent !important; +} + +.acf-loading-overlay { + background: rgba(0, 0, 0, 0.5); +} + +/*--------------------------------------------------------------------------------------------- +* +* Fields +* +*---------------------------------------------------------------------------------------------*/ +.acf-fields > .acf-field { + border-color: #23282d; +} + +.acf-fields.-left > .acf-field:before { + background: rgba(0, 0, 0, 0.1); + border-color: #23282d; +} + +.acf-fields.-border { + background-color: #32373c; + border-color: #191f25; + color: #bbc8d4; +} + +.acf-field[data-width] + .acf-field[data-width] { + border-color: #23282d; +} + +.acf-input-prepend, +.acf-input-append { + background-color: #32373c; + border-color: #191f25; + color: #bbc8d4; +} + +.acf-fields > .acf-tab-wrap { + background-color: #32373c; + border-color: #191f25; + color: #bbc8d4; +} +.acf-fields > .acf-tab-wrap .acf-tab-group { + background-color: #2d3136; + border-color: #23282d; +} +.acf-fields > .acf-tab-wrap .acf-tab-group li a { + background-color: #2d3136; + border-color: #23282d; +} +.acf-fields > .acf-tab-wrap .acf-tab-group li a:hover { + background-color: #2d3136; + border-color: #23282d; + color: #bbc8d4; +} +.acf-fields > .acf-tab-wrap .acf-tab-group li.active a { + background-color: #32373c; + border-color: #191f25; + color: #bbc8d4; +} + +.acf-fields.-sidebar:before { + background-color: #2d3136; + border-color: #23282d; +} + +.acf-fields.-sidebar.-left:before { + background-color: #2d3136; + border-color: #23282d; + background: #23282d; +} +.acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group li a { + background-color: #2d3136; + border-color: #23282d; +} +.acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group li.active a { + background-color: #2d3136; + border-color: #23282d; +} + +.acf-file-uploader .show-if-value { + background-color: #32373c; + border-color: #191f25; + color: #bbc8d4; +} +.acf-file-uploader .show-if-value .file-icon { + background-color: #2d3136; + border-color: #23282d; +} + +.acf-oembed { + background-color: #2d3136; + border-color: #23282d; +} +.acf-oembed .title { + background-color: #50626f; + border-color: #191f25; + color: #fff; +} + +.acf-gallery { + background-color: #2d3136; + border-color: #23282d; +} +.acf-gallery .acf-gallery-main { + background: #23282d; +} +.acf-gallery .acf-gallery-attachment .margin { + background-color: #2d3136; + border-color: #23282d; +} +.acf-gallery .acf-gallery-side { + background-color: #2d3136; + border-color: #23282d; +} +.acf-gallery .acf-gallery-side .acf-gallery-side-info { + background-color: #2d3136; + border-color: #23282d; +} +.acf-gallery .acf-gallery-toolbar { + background-color: #2d3136; + border-color: #23282d; +} + +.acf-button-group label:not(.selected) { + background-color: #2d3136; + border-color: #23282d; +} + +.acf-switch:not(.-on) { + background-color: #2d3136; + border-color: #23282d; +} +.acf-switch:not(.-on) .acf-switch-slider { + background-color: #50626f; + border-color: #191f25; + color: #fff; +} + +.acf-link .link-wrap { + background-color: #2d3136; + border-color: #23282d; +} + +.acf-relationship .filters { + background-color: #32373c; + border-color: #191f25; + color: #bbc8d4; +} +.acf-relationship .selection { + background-color: #2d3136; + border-color: #23282d; +} +.acf-relationship .selection .choices, +.acf-relationship .selection .choices-list, +.acf-relationship .selection .values { + background-color: #2d3136; + border-color: #23282d; +} + +.acf-taxonomy-field .categorychecklist-holder { + background-color: #2d3136; + border-color: #23282d; +} + +.acf-google-map { + background-color: #2d3136; + border-color: #23282d; +} +.acf-google-map .title { + background-color: #50626f; + border-color: #191f25; + color: #fff; +} + +.acf-accordion { + background-color: #32373c; + border-color: #191f25; + color: #bbc8d4; +} + +.acf-field.acf-accordion .acf-accordion-content > .acf-fields { + border-color: #191f25; +} + +.acf-flexible-content .layout { + background-color: #32373c; + border-color: #191f25; + color: #bbc8d4; +} +.acf-flexible-content .layout .acf-fc-layout-handle { + background-color: #2d3136; + border-color: #23282d; +} +.acf-flexible-content .layout .acf-fc-layout-handle .acf-fc-layout-order { + background-color: #32373c; + border-color: #191f25; + color: #bbc8d4; +} + +#wpbody .acf-table { + background-color: #2d3136; + border-color: #23282d; +} +#wpbody .acf-table > tbody > tr, +#wpbody .acf-table > thead > tr { + background: transparent; +} +#wpbody .acf-table > tbody > tr > td, +#wpbody .acf-table > tbody > tr > th, +#wpbody .acf-table > thead > tr > td, +#wpbody .acf-table > thead > tr > th { + border-color: #191f25; +} + +.acf-field select optgroup, .acf-field select optgroup:nth-child(2n) { + background: #50626f; +} + +/*--------------------------------------------------------------------------------------------- +* +* Field Group +* +*---------------------------------------------------------------------------------------------*/ +#acf-field-group-fields .acf-field-list-wrap { + background-color: #32373c; + border-color: #191f25; + color: #bbc8d4; +} +#acf-field-group-fields .acf-field-list .no-fields-message { + background-color: #32373c; + border-color: #191f25; + color: #bbc8d4; +} +#acf-field-group-fields .acf-field-object { + background-color: #32373c; + border-color: #191f25; + color: #bbc8d4; + border-color: #23282d; +} +#acf-field-group-fields .acf-field-object table, #acf-field-group-fields .acf-field-object tbody, #acf-field-group-fields .acf-field-object tr, #acf-field-group-fields .acf-field-object td, #acf-field-group-fields .acf-field-object th { + background: transparent; + border-color: #23282d; +} +#acf-field-group-fields .acf-field-object .acf-field .acf-label { + background-color: #2d3136; + border-color: #23282d; +} +#acf-field-group-fields .acf-field-object.ui-sortable-helper { + border-color: #191f25; + box-shadow: none; +} +#acf-field-group-fields .acf-field-object.ui-sortable-placeholder { + background-color: #2d3136; + border-color: #23282d; + box-shadow: none; +} +#acf-field-group-fields .acf-field-object + .acf-field-object-tab::before, +#acf-field-group-fields .acf-field-object + .acf-field-object-accordion::before { + background-color: #2d3136; + border-color: #23282d; +} + +/*--------------------------------------------------------------------------------------------- +* +* Admin: Tools +* +*---------------------------------------------------------------------------------------------*/ +.acf-meta-box-wrap .acf-fields { + background-color: #50626f; + border-color: #191f25; + color: #fff; + background: transparent; +} \ No newline at end of file diff --git a/assets/build/css/acf-dark.min.css b/assets/build/css/acf-dark.min.css new file mode 100644 index 0000000..cbe89a0 --- /dev/null +++ b/assets/build/css/acf-dark.min.css @@ -0,0 +1 @@ +.acf-box{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-box .footer,.acf-box .title{border-color:#23282d}.acf-box h2{color:#bbc8d4}.acf-box table,.acf-box tbody,.acf-box tr{background:0 0!important}.acf-thead{color:#bbc8d4;border-color:#191f25}.acf-tfoot{background-color:#2d3136;border-color:#23282d}.acf-table.-clear,.acf-table.-clear tr{background:0 0!important}.acf-loading-overlay{background:rgba(0,0,0,.5)}.acf-fields>.acf-field{border-color:#23282d}.acf-fields.-left>.acf-field:before{background:rgba(0,0,0,.1);border-color:#23282d}.acf-fields.-border{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-field[data-width]+.acf-field[data-width]{border-color:#23282d}.acf-input-append,.acf-input-prepend{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-fields>.acf-tab-wrap{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-fields>.acf-tab-wrap .acf-tab-group{background-color:#2d3136;border-color:#23282d}.acf-fields>.acf-tab-wrap .acf-tab-group li a{background-color:#2d3136;border-color:#23282d}.acf-fields>.acf-tab-wrap .acf-tab-group li a:hover{background-color:#2d3136;border-color:#23282d;color:#bbc8d4}.acf-fields>.acf-tab-wrap .acf-tab-group li.active a{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-fields.-sidebar:before{background-color:#2d3136;border-color:#23282d}.acf-fields.-sidebar.-left:before{background-color:#2d3136;border-color:#23282d;background:#23282d}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group li a{background-color:#2d3136;border-color:#23282d}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group li.active a{background-color:#2d3136;border-color:#23282d}.acf-file-uploader .show-if-value{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-file-uploader .show-if-value .file-icon{background-color:#2d3136;border-color:#23282d}.acf-oembed{background-color:#2d3136;border-color:#23282d}.acf-oembed .title{background-color:#50626f;border-color:#191f25;color:#fff}.acf-gallery{background-color:#2d3136;border-color:#23282d}.acf-gallery .acf-gallery-main{background:#23282d}.acf-gallery .acf-gallery-attachment .margin{background-color:#2d3136;border-color:#23282d}.acf-gallery .acf-gallery-side{background-color:#2d3136;border-color:#23282d}.acf-gallery .acf-gallery-side .acf-gallery-side-info{background-color:#2d3136;border-color:#23282d}.acf-gallery .acf-gallery-toolbar{background-color:#2d3136;border-color:#23282d}.acf-button-group label:not(.selected){background-color:#2d3136;border-color:#23282d}.acf-switch:not(.-on){background-color:#2d3136;border-color:#23282d}.acf-switch:not(.-on) .acf-switch-slider{background-color:#50626f;border-color:#191f25;color:#fff}.acf-link .link-wrap{background-color:#2d3136;border-color:#23282d}.acf-relationship .filters{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-relationship .selection{background-color:#2d3136;border-color:#23282d}.acf-relationship .selection .choices,.acf-relationship .selection .choices-list,.acf-relationship .selection .values{background-color:#2d3136;border-color:#23282d}.acf-taxonomy-field .categorychecklist-holder{background-color:#2d3136;border-color:#23282d}.acf-google-map{background-color:#2d3136;border-color:#23282d}.acf-google-map .title{background-color:#50626f;border-color:#191f25;color:#fff}.acf-accordion{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-field.acf-accordion .acf-accordion-content>.acf-fields{border-color:#191f25}.acf-flexible-content .layout{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-flexible-content .layout .acf-fc-layout-handle{background-color:#2d3136;border-color:#23282d}.acf-flexible-content .layout .acf-fc-layout-handle .acf-fc-layout-order{background-color:#32373c;border-color:#191f25;color:#bbc8d4}#wpbody .acf-table{background-color:#2d3136;border-color:#23282d}#wpbody .acf-table>tbody>tr,#wpbody .acf-table>thead>tr{background:0 0}#wpbody .acf-table>tbody>tr>td,#wpbody .acf-table>tbody>tr>th,#wpbody .acf-table>thead>tr>td,#wpbody .acf-table>thead>tr>th{border-color:#191f25}.acf-field select optgroup,.acf-field select optgroup:nth-child(2n){background:#50626f}#acf-field-group-fields .acf-field-list-wrap{background-color:#32373c;border-color:#191f25;color:#bbc8d4}#acf-field-group-fields .acf-field-list .no-fields-message{background-color:#32373c;border-color:#191f25;color:#bbc8d4}#acf-field-group-fields .acf-field-object{background-color:#32373c;border-color:#191f25;color:#bbc8d4;border-color:#23282d}#acf-field-group-fields .acf-field-object table,#acf-field-group-fields .acf-field-object tbody,#acf-field-group-fields .acf-field-object td,#acf-field-group-fields .acf-field-object th,#acf-field-group-fields .acf-field-object tr{background:0 0;border-color:#23282d}#acf-field-group-fields .acf-field-object .acf-field .acf-label{background-color:#2d3136;border-color:#23282d}#acf-field-group-fields .acf-field-object.ui-sortable-helper{border-color:#191f25;box-shadow:none}#acf-field-group-fields .acf-field-object.ui-sortable-placeholder{background-color:#2d3136;border-color:#23282d;box-shadow:none}#acf-field-group-fields .acf-field-object+.acf-field-object-accordion::before,#acf-field-group-fields .acf-field-object+.acf-field-object-tab::before{background-color:#2d3136;border-color:#23282d}.acf-meta-box-wrap .acf-fields{background-color:#50626f;border-color:#191f25;color:#fff;background:0 0} \ No newline at end of file diff --git a/assets/build/css/acf-field-group.css b/assets/build/css/acf-field-group.css new file mode 100644 index 0000000..d0afe76 --- /dev/null +++ b/assets/build/css/acf-field-group.css @@ -0,0 +1,481 @@ +/*-------------------------------------------------------------------------------------------- +* +* Vars +* +*--------------------------------------------------------------------------------------------*/ +/* colors */ +/* acf-field */ +/* responsive */ +/*-------------------------------------------------------------------------------------------- +* +* Mixins +* +*--------------------------------------------------------------------------------------------*/ +/*-------------------------------------------------------------------------------------------- +* +* Field Group +* +*--------------------------------------------------------------------------------------------*/ +#acf-field-group-fields > .inside, +#acf-field-group-locations > .inside, +#acf-field-group-options > .inside { + padding: 0; + margin: 0; +} + +.postbox .handle-order-higher, +.postbox .handle-order-lower { + display: none; +} + +/*--------------------------------------------------------------------------------------------- +* +* Postbox: Publish +* +*---------------------------------------------------------------------------------------------*/ +#minor-publishing-actions, +#misc-publishing-actions #visibility, +#misc-publishing-actions .edit-timestamp { + display: none; +} + +#minor-publishing { + border-bottom: 0 none; +} + +#misc-pub-section { + border-bottom: 0 none; +} + +#misc-publishing-actions .misc-pub-section { + border-bottom-color: #F5F5F5; +} + +/*--------------------------------------------------------------------------------------------- +* +* Postbox: Fields +* +*---------------------------------------------------------------------------------------------*/ +#acf-field-group-fields { + border: 0 none; + box-shadow: none; + /* links */ + /* table header */ + /* show keys */ + /* fields */ +} +#acf-field-group-fields > .postbox-header, +#acf-field-group-fields > .handlediv, +#acf-field-group-fields > .hndle { + display: none; +} +#acf-field-group-fields a { + text-decoration: none; +} +#acf-field-group-fields a:active, #acf-field-group-fields a:focus { + outline: none; + box-shadow: none; +} +#acf-field-group-fields .li-field-order { + width: 20%; +} +#acf-field-group-fields .li-field-label { + width: 30%; +} +#acf-field-group-fields .li-field-name { + width: 25%; +} +#acf-field-group-fields .li-field-type { + width: 25%; +} +#acf-field-group-fields .li-field-key { + display: none; +} +#acf-field-group-fields.show-field-keys .li-field-label, +#acf-field-group-fields.show-field-keys .li-field-name, +#acf-field-group-fields.show-field-keys .li-field-type, +#acf-field-group-fields.show-field-keys .li-field-key { + width: 20%; +} +#acf-field-group-fields.show-field-keys .li-field-key { + display: block; +} +#acf-field-group-fields .acf-field-list-wrap { + border: #ccd0d4 solid 1px; +} +#acf-field-group-fields .acf-field-list { + background: #f5f5f5; + margin-top: -1px; + /* no fields */ + /* empty */ +} +#acf-field-group-fields .acf-field-list .no-fields-message { + padding: 15px 15px; + background: #fff; + display: none; +} +#acf-field-group-fields .acf-field-list.-empty .no-fields-message { + display: block; +} +.acf-admin-3-8 #acf-field-group-fields .acf-field-list-wrap { + border-color: #dfdfdf; +} + +/* field object */ +.acf-field-object { + border-top: #eeeeee solid 1px; + background: #fff; + /* sortable */ + /* meta */ + /* handle */ + /* open */ + /* + // debug + &[data-save="meta"] { + > .handle { + border-left: #ffb700 solid 5px !important; + } + } + + &[data-save="settings"] { + > .handle { + border-left: #0ec563 solid 5px !important; + } + } + */ + /* hover */ + /* settings */ + /* conditional logic */ +} +.acf-field-object.ui-sortable-helper { + border-top-color: #fff; + box-shadow: 0 0 0 1px #DFDFDF, 0 1px 4px rgba(0, 0, 0, 0.1); +} +.acf-field-object.ui-sortable-placeholder { + box-shadow: 0 -1px 0 0 #DFDFDF; + visibility: visible !important; + background: #F9F9F9; + border-top-color: transparent; + min-height: 54px; +} +.acf-field-object.ui-sortable-placeholder:after, .acf-field-object.ui-sortable-placeholder:before { + visibility: hidden; +} +.acf-field-object > .meta { + display: none; +} +.acf-field-object > .handle a { + -webkit-transition: none; + -moz-transition: none; + -o-transition: none; + transition: none; +} +.acf-field-object > .handle li { + padding-top: 10px; + padding-bottom: 10px; + word-wrap: break-word; +} +.acf-field-object > .handle .acf-icon { + margin: 1px 0 0; + cursor: move; + background: transparent; + float: left; + height: 28px; + line-height: 26px; + width: 28px; + font-size: 13px; + color: #444; + position: relative; + z-index: 1; +} +.acf-field-object > .handle strong { + display: block; + padding-bottom: 6px; + font-size: 14px; + line-height: 14px; + min-height: 14px; +} +.acf-field-object > .handle .row-options { + visibility: hidden; +} +.acf-field-object > .handle .row-options a { + margin-right: 4px; +} +.acf-field-object > .handle .row-options a.delete-field { + color: #a00; +} +.acf-field-object > .handle .row-options a.delete-field:hover { + color: #f00; +} +.acf-field-object.open + .acf-field-object { + border-top-color: #E1E1E1; +} +.acf-field-object.open > .handle { + background: #2a9bd9; + border: #2696d3 solid 1px; + text-shadow: #268FBB 0 1px 0; + color: #fff; + position: relative; + margin: -1px -1px 0 -1px; +} +.acf-field-object.open > .handle a { + color: #fff !important; +} +.acf-field-object.open > .handle a:hover { + text-decoration: underline !important; +} +.acf-field-object.open > .handle .acf-icon { + border-color: #fff; + color: #fff; +} +.acf-field-object.open > .handle .acf-required { + color: #fff; +} +.acf-field-object:hover > .handle .row-options, .acf-field-object.-hover > .handle .row-options { + visibility: visible; +} +.acf-field-object > .settings { + display: none; + width: 100%; +} +.acf-field-object > .settings > .acf-table { + border: none; +} +.acf-field-object .rule-groups { + margin-top: 20px; +} + +/*--------------------------------------------------------------------------------------------- +* +* Postbox: Locations +* +*---------------------------------------------------------------------------------------------*/ +.rule-groups h4 { + margin: 3px 0; +} +.rule-groups .rule-group { + margin: 0 0 5px; + /* Don't allow user to delete the first field group */ +} +.rule-groups .rule-group h4 { + margin: 0 0 3px; +} +.rule-groups .rule-group td.param { + width: 35%; +} +.rule-groups .rule-group td.operator { + width: 20%; +} +.rule-groups .rule-group td.add { + width: 40px; +} +.rule-groups .rule-group td.remove { + width: 28px; + vertical-align: middle; +} +.rule-groups .rule-group td.remove a { + visibility: hidden; +} +.rule-groups .rule-group tr:hover td.remove a { + visibility: visible; +} +.rule-groups .rule-group:first-child tr:first-child td.remove a { + visibility: hidden !important; +} +.rule-groups .rule-group select:empty { + background: #f8f8f8; +} + +/*--------------------------------------------------------------------------------------------- +* +* Options +* +*---------------------------------------------------------------------------------------------*/ +#acf-field-group-options tr[data-name=hide_on_screen] li { + float: left; + width: 33%; +} + +@media (max-width: 1100px) { + #acf-field-group-options tr[data-name=hide_on_screen] li { + width: 50%; + } +} +/*--------------------------------------------------------------------------------------------- +* +* Conditional Logic +* +*---------------------------------------------------------------------------------------------*/ +table.conditional-logic-rules { + background: transparent; + border: 0 none; + border-radius: 0; +} + +table.conditional-logic-rules tbody td { + background: transparent; + border: 0 none !important; + padding: 5px 2px !important; +} + +/*--------------------------------------------------------------------------------------------- +* +* Field: Tab +* +*---------------------------------------------------------------------------------------------*/ +.acf-field-object-tab .acf-field-setting-name, .acf-field-object-accordion .acf-field-setting-name, +.acf-field-object-tab .acf-field-setting-instructions, +.acf-field-object-accordion .acf-field-setting-instructions, +.acf-field-object-tab .acf-field-setting-required, +.acf-field-object-accordion .acf-field-setting-required, +.acf-field-object-tab .acf-field-setting-warning, +.acf-field-object-accordion .acf-field-setting-warning, +.acf-field-object-tab .acf-field-setting-wrapper, +.acf-field-object-accordion .acf-field-setting-wrapper { + display: none; +} +.acf-field-object-tab .li-field-name, .acf-field-object-accordion .li-field-name { + visibility: hidden; +} +.acf-field-object + .acf-field-object-tab:before, .acf-field-object + .acf-field-object-accordion:before { + display: block; + content: ""; + height: 5px; + width: 100%; + background: #f5f5f5; + border-top: #e1e1e1 solid 1px; + border-bottom: #e1e1e1 solid 1px; + margin-top: -1px; +} +.acf-admin-3-8 .acf-field-object + .acf-field-object-tab:before, .acf-admin-3-8 .acf-field-object + .acf-field-object-accordion:before { + border-color: #E5E5E5; +} +.acf-field-object-tab p:first-child, .acf-field-object-accordion p:first-child { + margin: 0.5em 0; +} + +/*--------------------------------------------------------------------------------------------- +* +* Field: Accordion +* +*---------------------------------------------------------------------------------------------*/ +.acf-field-object-accordion .acf-field-setting-instructions { + display: table-row; +} + +/*--------------------------------------------------------------------------------------------- +* +* Field: Message +* +*---------------------------------------------------------------------------------------------*/ +.acf-field-object-message tr[data-name=name], +.acf-field-object-message tr[data-name=instructions], +.acf-field-object-message tr[data-name=required] { + display: none !important; +} + +.acf-field-object-message .li-field-name { + visibility: hidden; +} + +.acf-field-object-message textarea { + height: 175px !important; +} + +/*--------------------------------------------------------------------------------------------- +* +* Field: Separator +* +*---------------------------------------------------------------------------------------------*/ +.acf-field-object-separator tr[data-name=name], +.acf-field-object-separator tr[data-name=instructions], +.acf-field-object-separator tr[data-name=required] { + display: none !important; +} + +/*--------------------------------------------------------------------------------------------- +* +* Field: Date Picker +* +*---------------------------------------------------------------------------------------------*/ +.acf-field-object-date-picker .acf-radio-list li, +.acf-field-object-time-picker .acf-radio-list li, +.acf-field-object-date-time-picker .acf-radio-list li { + line-height: 25px; +} +.acf-field-object-date-picker .acf-radio-list span, +.acf-field-object-time-picker .acf-radio-list span, +.acf-field-object-date-time-picker .acf-radio-list span { + display: inline-block; + min-width: 10em; +} +.acf-field-object-date-picker .acf-radio-list input[type=text], +.acf-field-object-time-picker .acf-radio-list input[type=text], +.acf-field-object-date-time-picker .acf-radio-list input[type=text] { + width: 100px; +} + +.acf-field-object-date-time-picker .acf-radio-list span { + min-width: 15em; +} +.acf-field-object-date-time-picker .acf-radio-list input[type=text] { + width: 200px; +} + +/*-------------------------------------------------------------------------------------------- +* +* Slug +* +*--------------------------------------------------------------------------------------------*/ +#slugdiv .inside { + padding: 12px; + margin: 0; +} +#slugdiv input[type=text] { + width: 100%; + height: 28px; + font-size: 14px; +} + +/*-------------------------------------------------------------------------------------------- +* +* RTL +* +*--------------------------------------------------------------------------------------------*/ +html[dir=rtl] .acf-field-object.open > .handle { + margin: -1px -1px 0; +} + +html[dir=rtl] .acf-field-object.open > .handle .acf-icon { + float: right; +} + +html[dir=rtl] .acf-field-object.open > .handle .li-field-order { + padding-left: 0 !important; + padding-right: 15px !important; +} + +/*--------------------------------------------------------------------------------------------- +* +* Device +* +*---------------------------------------------------------------------------------------------*/ +@media only screen and (max-width: 850px) { + tr.acf-field, +td.acf-label, +td.acf-input { + display: block !important; + width: auto !important; + border: 0 none !important; + } + + tr.acf-field { + border-top: #ededed solid 1px !important; + margin-bottom: 0 !important; + } + + td.acf-label { + background: transparent !important; + padding-bottom: 0 !important; + } +} \ No newline at end of file diff --git a/assets/build/css/acf-field-group.min.css b/assets/build/css/acf-field-group.min.css new file mode 100644 index 0000000..0484ca2 --- /dev/null +++ b/assets/build/css/acf-field-group.min.css @@ -0,0 +1 @@ +#acf-field-group-fields>.inside,#acf-field-group-locations>.inside,#acf-field-group-options>.inside{padding:0;margin:0}.postbox .handle-order-higher,.postbox .handle-order-lower{display:none}#minor-publishing-actions,#misc-publishing-actions #visibility,#misc-publishing-actions .edit-timestamp{display:none}#minor-publishing{border-bottom:0 none}#misc-pub-section{border-bottom:0 none}#misc-publishing-actions .misc-pub-section{border-bottom-color:#f5f5f5}#acf-field-group-fields{border:0 none;box-shadow:none}#acf-field-group-fields>.handlediv,#acf-field-group-fields>.hndle,#acf-field-group-fields>.postbox-header{display:none}#acf-field-group-fields a{text-decoration:none}#acf-field-group-fields a:active,#acf-field-group-fields a:focus{outline:0;box-shadow:none}#acf-field-group-fields .li-field-order{width:20%}#acf-field-group-fields .li-field-label{width:30%}#acf-field-group-fields .li-field-name{width:25%}#acf-field-group-fields .li-field-type{width:25%}#acf-field-group-fields .li-field-key{display:none}#acf-field-group-fields.show-field-keys .li-field-key,#acf-field-group-fields.show-field-keys .li-field-label,#acf-field-group-fields.show-field-keys .li-field-name,#acf-field-group-fields.show-field-keys .li-field-type{width:20%}#acf-field-group-fields.show-field-keys .li-field-key{display:block}#acf-field-group-fields .acf-field-list-wrap{border:#ccd0d4 solid 1px}#acf-field-group-fields .acf-field-list{background:#f5f5f5;margin-top:-1px}#acf-field-group-fields .acf-field-list .no-fields-message{padding:15px 15px;background:#fff;display:none}#acf-field-group-fields .acf-field-list.-empty .no-fields-message{display:block}.acf-admin-3-8 #acf-field-group-fields .acf-field-list-wrap{border-color:#dfdfdf}.acf-field-object{border-top:#eee solid 1px;background:#fff}.acf-field-object.ui-sortable-helper{border-top-color:#fff;box-shadow:0 0 0 1px #dfdfdf,0 1px 4px rgba(0,0,0,.1)}.acf-field-object.ui-sortable-placeholder{box-shadow:0 -1px 0 0 #dfdfdf;visibility:visible!important;background:#f9f9f9;border-top-color:transparent;min-height:54px}.acf-field-object.ui-sortable-placeholder:after,.acf-field-object.ui-sortable-placeholder:before{visibility:hidden}.acf-field-object>.meta{display:none}.acf-field-object>.handle a{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.acf-field-object>.handle li{padding-top:10px;padding-bottom:10px;word-wrap:break-word}.acf-field-object>.handle .acf-icon{margin:1px 0 0;cursor:move;background:0 0;float:left;height:28px;line-height:26px;width:28px;font-size:13px;color:#444;position:relative;z-index:1}.acf-field-object>.handle strong{display:block;padding-bottom:6px;font-size:14px;line-height:14px;min-height:14px}.acf-field-object>.handle .row-options{visibility:hidden}.acf-field-object>.handle .row-options a{margin-right:4px}.acf-field-object>.handle .row-options a.delete-field{color:#a00}.acf-field-object>.handle .row-options a.delete-field:hover{color:red}.acf-field-object.open+.acf-field-object{border-top-color:#e1e1e1}.acf-field-object.open>.handle{background:#2a9bd9;border:#2696d3 solid 1px;text-shadow:#268fbb 0 1px 0;color:#fff;position:relative;margin:-1px -1px 0 -1px}.acf-field-object.open>.handle a{color:#fff!important}.acf-field-object.open>.handle a:hover{text-decoration:underline!important}.acf-field-object.open>.handle .acf-icon{border-color:#fff;color:#fff}.acf-field-object.open>.handle .acf-required{color:#fff}.acf-field-object.-hover>.handle .row-options,.acf-field-object:hover>.handle .row-options{visibility:visible}.acf-field-object>.settings{display:none;width:100%}.acf-field-object>.settings>.acf-table{border:none}.acf-field-object .rule-groups{margin-top:20px}.rule-groups h4{margin:3px 0}.rule-groups .rule-group{margin:0 0 5px}.rule-groups .rule-group h4{margin:0 0 3px}.rule-groups .rule-group td.param{width:35%}.rule-groups .rule-group td.operator{width:20%}.rule-groups .rule-group td.add{width:40px}.rule-groups .rule-group td.remove{width:28px;vertical-align:middle}.rule-groups .rule-group td.remove a{visibility:hidden}.rule-groups .rule-group tr:hover td.remove a{visibility:visible}.rule-groups .rule-group:first-child tr:first-child td.remove a{visibility:hidden!important}.rule-groups .rule-group select:empty{background:#f8f8f8}#acf-field-group-options tr[data-name=hide_on_screen] li{float:left;width:33%}@media (max-width:1100px){#acf-field-group-options tr[data-name=hide_on_screen] li{width:50%}}table.conditional-logic-rules{background:0 0;border:0 none;border-radius:0}table.conditional-logic-rules tbody td{background:0 0;border:0 none!important;padding:5px 2px!important}.acf-field-object-accordion .acf-field-setting-instructions,.acf-field-object-accordion .acf-field-setting-name,.acf-field-object-accordion .acf-field-setting-required,.acf-field-object-accordion .acf-field-setting-warning,.acf-field-object-accordion .acf-field-setting-wrapper,.acf-field-object-tab .acf-field-setting-instructions,.acf-field-object-tab .acf-field-setting-name,.acf-field-object-tab .acf-field-setting-required,.acf-field-object-tab .acf-field-setting-warning,.acf-field-object-tab .acf-field-setting-wrapper{display:none}.acf-field-object-accordion .li-field-name,.acf-field-object-tab .li-field-name{visibility:hidden}.acf-field-object+.acf-field-object-accordion:before,.acf-field-object+.acf-field-object-tab:before{display:block;content:"";height:5px;width:100%;background:#f5f5f5;border-top:#e1e1e1 solid 1px;border-bottom:#e1e1e1 solid 1px;margin-top:-1px}.acf-admin-3-8 .acf-field-object+.acf-field-object-accordion:before,.acf-admin-3-8 .acf-field-object+.acf-field-object-tab:before{border-color:#e5e5e5}.acf-field-object-accordion p:first-child,.acf-field-object-tab p:first-child{margin:.5em 0}.acf-field-object-accordion .acf-field-setting-instructions{display:table-row}.acf-field-object-message tr[data-name=instructions],.acf-field-object-message tr[data-name=name],.acf-field-object-message tr[data-name=required]{display:none!important}.acf-field-object-message .li-field-name{visibility:hidden}.acf-field-object-message textarea{height:175px!important}.acf-field-object-separator tr[data-name=instructions],.acf-field-object-separator tr[data-name=name],.acf-field-object-separator tr[data-name=required]{display:none!important}.acf-field-object-date-picker .acf-radio-list li,.acf-field-object-date-time-picker .acf-radio-list li,.acf-field-object-time-picker .acf-radio-list li{line-height:25px}.acf-field-object-date-picker .acf-radio-list span,.acf-field-object-date-time-picker .acf-radio-list span,.acf-field-object-time-picker .acf-radio-list span{display:inline-block;min-width:10em}.acf-field-object-date-picker .acf-radio-list input[type=text],.acf-field-object-date-time-picker .acf-radio-list input[type=text],.acf-field-object-time-picker .acf-radio-list input[type=text]{width:100px}.acf-field-object-date-time-picker .acf-radio-list span{min-width:15em}.acf-field-object-date-time-picker .acf-radio-list input[type=text]{width:200px}#slugdiv .inside{padding:12px;margin:0}#slugdiv input[type=text]{width:100%;height:28px;font-size:14px}html[dir=rtl] .acf-field-object.open>.handle{margin:-1px -1px 0}html[dir=rtl] .acf-field-object.open>.handle .acf-icon{float:right}html[dir=rtl] .acf-field-object.open>.handle .li-field-order{padding-left:0!important;padding-right:15px!important}@media only screen and (max-width:850px){td.acf-input,td.acf-label,tr.acf-field{display:block!important;width:auto!important;border:0 none!important}tr.acf-field{border-top:#ededed solid 1px!important;margin-bottom:0!important}td.acf-label{background:0 0!important;padding-bottom:0!important}} \ No newline at end of file diff --git a/assets/build/css/acf-global.css b/assets/build/css/acf-global.css new file mode 100644 index 0000000..7232d99 --- /dev/null +++ b/assets/build/css/acf-global.css @@ -0,0 +1,1662 @@ +@charset "UTF-8"; +/*-------------------------------------------------------------------------------------------- +* +* Vars +* +*--------------------------------------------------------------------------------------------*/ +/* colors */ +/* acf-field */ +/* responsive */ +/*-------------------------------------------------------------------------------------------- +* +* Mixins +* +*--------------------------------------------------------------------------------------------*/ +/*-------------------------------------------------------------------------------------------- +* +* Global +* +*--------------------------------------------------------------------------------------------*/ +/* Horizontal List */ +.acf-hl { + padding: 0; + margin: 0; + list-style: none; + display: block; + position: relative; +} + +.acf-hl > li { + float: left; + display: block; + margin: 0; + padding: 0; +} + +.acf-hl > li.acf-fr { + float: right; +} + +/* Horizontal List: Clearfix */ +.acf-hl:before, .acf-hl:after, +.acf-bl:before, .acf-bl:after, +.acf-cf:before, .acf-cf:after { + content: ""; + display: block; + line-height: 0; +} + +.acf-hl:after, +.acf-bl:after, +.acf-cf:after { + clear: both; +} + +/* Block List */ +.acf-bl { + padding: 0; + margin: 0; + list-style: none; + display: block; + position: relative; +} + +.acf-bl > li { + display: block; + margin: 0; + padding: 0; + float: none; +} + +/* Visibility */ +.acf-hidden { + display: none !important; +} + +.acf-empty { + display: table-cell !important; +} +.acf-empty * { + display: none !important; +} + +/* Float */ +.acf-fl { + float: left; +} + +.acf-fr { + float: right; +} + +.acf-fn { + float: none; +} + +/* Align */ +.acf-al { + text-align: left; +} + +.acf-ar { + text-align: right; +} + +.acf-ac { + text-align: center; +} + +/* loading */ +.acf-loading, +.acf-spinner { + display: inline-block; + height: 20px; + width: 20px; + vertical-align: text-top; + background: transparent url(../../images/spinner.gif) no-repeat 50% 50%; +} + +/* spinner */ +.acf-spinner { + display: none; +} + +.acf-spinner.is-active { + display: inline-block; +} + +/* WP < 4.2 */ +.spinner.is-active { + display: inline-block; +} + +/* required */ +.acf-required { + color: #f00; +} + +/* show on hover */ +.acf-soh .acf-soh-target { + -webkit-transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s; + -moz-transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s; + -o-transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s; + transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s; + visibility: hidden; + opacity: 0; +} + +.acf-soh:hover .acf-soh-target { + -webkit-transition-delay: 0s; + -moz-transition-delay: 0s; + -o-transition-delay: 0s; + transition-delay: 0s; + visibility: visible; + opacity: 1; +} + +/* show if value */ +.show-if-value { + display: none; +} + +.hide-if-value { + display: block; +} + +.has-value .show-if-value { + display: block; +} + +.has-value .hide-if-value { + display: none; +} + +/* select2 WP animation fix */ +.select2-search-choice-close { + -webkit-transition: none; + -moz-transition: none; + -o-transition: none; + transition: none; +} + +/*--------------------------------------------------------------------------------------------- +* +* tooltip +* +*---------------------------------------------------------------------------------------------*/ +/* tooltip */ +.acf-tooltip { + background: #2F353E; + border-radius: 5px; + color: #fff; + padding: 5px 10px; + position: absolute; + font-size: 12px; + line-height: 1.4em; + z-index: 900000; + /* tip */ + /* positions */ +} +.acf-tooltip:before { + border: solid; + border-color: transparent; + border-width: 6px; + content: ""; + position: absolute; +} +.acf-tooltip.top { + margin-top: -8px; +} +.acf-tooltip.top:before { + top: 100%; + left: 50%; + margin-left: -6px; + border-top-color: #2F353E; + border-bottom-width: 0; +} +.acf-tooltip.right { + margin-left: 8px; +} +.acf-tooltip.right:before { + top: 50%; + margin-top: -6px; + right: 100%; + border-right-color: #2F353E; + border-left-width: 0; +} +.acf-tooltip.bottom { + margin-top: 8px; +} +.acf-tooltip.bottom:before { + bottom: 100%; + left: 50%; + margin-left: -6px; + border-bottom-color: #2F353E; + border-top-width: 0; +} +.acf-tooltip.left { + margin-left: -8px; +} +.acf-tooltip.left:before { + top: 50%; + margin-top: -6px; + left: 100%; + border-left-color: #2F353E; + border-right-width: 0; +} +.acf-tooltip .acf-overlay { + z-index: -1; +} + +/* confirm */ +.acf-tooltip.-confirm { + z-index: 900001; +} +.acf-tooltip.-confirm a { + text-decoration: none; + color: #9ea3a8; +} +.acf-tooltip.-confirm a:hover { + text-decoration: underline; +} +.acf-tooltip.-confirm a[data-event=confirm] { + color: #F55E4F; +} + +.acf-overlay { + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + cursor: default; +} + +.acf-tooltip-target { + position: relative; + z-index: 900002; +} + +/*--------------------------------------------------------------------------------------------- +* +* loading +* +*---------------------------------------------------------------------------------------------*/ +.acf-loading-overlay { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + cursor: default; + z-index: 99; + background: rgba(249, 249, 249, 0.5); +} +.acf-loading-overlay i { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} + +/*-------------------------------------------------------------------------------------------- +* +* acf-icon +* +*--------------------------------------------------------------------------------------------*/ +.acf-icon { + display: inline-block; + height: 28px; + width: 28px; + border: transparent solid 1px; + border-radius: 100%; + font-size: 20px; + line-height: 21px; + text-align: center; + text-decoration: none; + vertical-align: top; + box-sizing: border-box; +} +.acf-icon:before { + font-family: dashicons; + display: inline-block; + line-height: 1; + font-weight: 400; + font-style: normal; + speak: none; + text-decoration: inherit; + text-transform: none; + text-rendering: auto; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + width: 1em; + height: 1em; + vertical-align: middle; + text-align: center; +} + +.acf-icon.-plus:before { + content: ""; +} + +.acf-icon.-minus:before { + content: ""; +} + +.acf-icon.-cancel:before { + content: ""; +} + +.acf-icon.-pencil:before { + content: ""; +} + +.acf-icon.-location:before { + content: ""; +} + +.acf-icon.-up:before { + content: ""; + margin-top: -0.1em; +} + +.acf-icon.-down:before { + content: ""; + margin-top: 0.1em; +} + +.acf-icon.-left:before { + content: ""; + margin-left: -0.1em; +} + +.acf-icon.-right:before { + content: ""; + margin-left: 0.1em; +} + +.acf-icon.-sync:before { + content: ""; +} + +.acf-icon.-globe:before { + content: ""; + margin-top: 0.1em; + margin-left: 0.1em; +} + +.acf-icon.-picture:before { + content: ""; +} + +.acf-icon.-check:before { + content: ""; + margin-left: -0.1em; +} + +.acf-icon.-dot-3:before { + content: ""; + margin-top: -0.1em; +} + +.acf-icon.-arrow-combo:before { + content: ""; +} + +.acf-icon.-arrow-up:before { + content: ""; + margin-left: -0.1em; +} + +.acf-icon.-arrow-down:before { + content: ""; + margin-left: -0.1em; +} + +.acf-icon.-search:before { + content: ""; +} + +.acf-icon.-link-ext:before { + content: ""; +} + +.acf-icon.-duplicate { + position: relative; +} +.acf-icon.-duplicate:before, .acf-icon.-duplicate:after { + content: ""; + display: block; + box-sizing: border-box; + width: 46%; + height: 46%; + position: absolute; + top: 33%; + left: 23%; +} +.acf-icon.-duplicate:before { + margin: -1px 0 0 1px; + box-shadow: 2px -2px 0px 0px currentColor; +} +.acf-icon.-duplicate:after { + border: solid 2px currentColor; +} + +.acf-icon.-collapse:before { + content: ""; + margin-left: -0.1em; +} + +.-collapsed .acf-icon.-collapse:before { + content: ""; + margin-left: -0.1em; +} + +span.acf-icon { + color: #555d66; + border-color: #b5bcc2; + background-color: #fff; +} + +a.acf-icon { + color: #555d66; + border-color: #b5bcc2; + background-color: #fff; + position: relative; + transition: none; + cursor: pointer; +} +a.acf-icon:hover { + background: #f3f5f6; + border-color: #0071a1; + color: #0071a1; +} +a.acf-icon.-minus:hover, a.acf-icon.-cancel:hover { + background: #f7efef; + border-color: #a10000; + color: #dc3232; +} +a.acf-icon:active, a.acf-icon:focus { + outline: none; + box-shadow: none; +} + +.acf-icon.-clear { + border-color: transparent; + background: transparent; + color: #444; +} + +.acf-icon.light { + border-color: transparent; + background: #F5F5F5; + color: #23282d; +} + +.acf-icon.dark { + border-color: transparent !important; + background: #23282D; + color: #eee; +} + +a.acf-icon.dark:hover { + background: #191E23; + color: #00b9eb; +} +a.acf-icon.dark.-minus:hover, a.acf-icon.dark.-cancel:hover { + color: #D54E21; +} + +.acf-icon.grey { + border-color: transparent !important; + background: #b4b9be; + color: #fff !important; +} +.acf-icon.grey:hover { + background: #00A0D2; + color: #fff; +} +.acf-icon.grey.-minus:hover, .acf-icon.grey.-cancel:hover { + background: #32373C; +} + +.acf-icon.small, +.acf-icon.-small { + width: 20px; + height: 20px; + line-height: 14px; + font-size: 14px; +} +.acf-icon.small.-duplicate:before, .acf-icon.small.-duplicate:after, +.acf-icon.-small.-duplicate:before, +.acf-icon.-small.-duplicate:after { + opacity: 0.8; +} + +/*-------------------------------------------------------------------------------------------- +* +* acf-box +* +*--------------------------------------------------------------------------------------------*/ +.acf-box { + background: #FFFFFF; + border: 1px solid #ccd0d4; + position: relative; + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); + /* title */ + /* footer */ +} +.acf-box .title { + border-bottom: 1px solid #ccd0d4; + margin: 0; + padding: 15px; +} +.acf-box .title h3 { + font-size: 14px; + line-height: 1em; + margin: 0; + padding: 0; +} +.acf-box .inner { + padding: 15px; +} +.acf-box h2 { + color: #333333; + font-size: 26px; + line-height: 1.25em; + margin: 0.25em 0 0.75em; + padding: 0; +} +.acf-box h3 { + margin: 1.5em 0 0; +} +.acf-box p { + margin-top: 0.5em; +} +.acf-box a { + text-decoration: none; +} +.acf-box i.dashicons-external { + margin-top: -1px; +} +.acf-box .footer { + border-top: 1px solid #ccd0d4; + padding: 12px; + font-size: 13px; + line-height: 1.5; +} +.acf-box .footer p { + margin: 0; +} +.acf-admin-3-8 .acf-box { + border-color: #E5E5E5; +} +.acf-admin-3-8 .acf-box .title, +.acf-admin-3-8 .acf-box .footer { + border-color: #E5E5E5; +} + +/*-------------------------------------------------------------------------------------------- +* +* acf-notice +* +*--------------------------------------------------------------------------------------------*/ +.acf-notice { + position: relative; + display: block; + color: #fff; + margin: 5px 0 15px; + padding: 3px 12px; + background: #2a9bd9; + border-left: #1f7db1 solid 3px; +} +.acf-notice p { + font-size: 13px; + line-height: 1.5; + margin: 0.5em 0; + text-shadow: none; + color: inherit; +} +.acf-notice .acf-notice-dismiss { + position: absolute; + top: 9px; + right: 12px; + background: transparent !important; + color: inherit !important; + border-color: #fff !important; + opacity: 0.75; +} +.acf-notice .acf-notice-dismiss:hover { + opacity: 1; +} +.acf-notice.-dismiss { + padding-right: 40px; +} +.acf-notice.-error { + background: #d94f4f; + border-color: #c92c2c; +} +.acf-notice.-success { + background: #49ad52; + border-color: #3a8941; +} +.acf-notice.-warning { + background: #fd8d3b; + border-color: #fc7009; +} + +/*-------------------------------------------------------------------------------------------- +* +* acf-table +* +*--------------------------------------------------------------------------------------------*/ +.acf-table { + border: #ccd0d4 solid 1px; + background: #fff; + border-spacing: 0; + border-radius: 0; + table-layout: auto; + padding: 0; + margin: 0; + width: 100%; + clear: both; + box-sizing: content-box; + /* defaults */ + /* thead */ + /* tbody */ + /* -clear */ +} +.acf-table > tbody > tr > th, .acf-table > tbody > tr > td, +.acf-table > thead > tr > th, +.acf-table > thead > tr > td { + padding: 8px; + vertical-align: top; + background: #fff; + text-align: left; + border-style: solid; + font-weight: normal; +} +.acf-table > tbody > tr > th, +.acf-table > thead > tr > th { + position: relative; + color: #333333; +} +.acf-table > thead > tr > th { + border-color: #d5d9dd; + border-width: 0 0 1px 1px; +} +.acf-table > thead > tr > th:first-child { + border-left-width: 0; +} +.acf-table > tbody > tr { + z-index: 1; +} +.acf-table > tbody > tr > td { + border-color: #eeeeee; + border-width: 1px 0 0 1px; +} +.acf-table > tbody > tr > td:first-child { + border-left-width: 0; +} +.acf-table > tbody > tr:first-child > td { + border-top-width: 0; +} +.acf-table.-clear { + border: 0 none; +} +.acf-table.-clear > tbody > tr > td, .acf-table.-clear > tbody > tr > th, +.acf-table.-clear > thead > tr > td, +.acf-table.-clear > thead > tr > th { + border: 0 none; + padding: 4px; +} + +/* remove tr */ +.acf-remove-element { + -webkit-transition: all 0.25s ease-out; + -moz-transition: all 0.25s ease-out; + -o-transition: all 0.25s ease-out; + transition: all 0.25s ease-out; + transform: translate(50px, 0); + opacity: 0; +} + +/* fade-up */ +.acf-fade-up { + -webkit-transition: all 0.25s ease-out; + -moz-transition: all 0.25s ease-out; + -o-transition: all 0.25s ease-out; + transition: all 0.25s ease-out; + transform: translate(0, -10px); + opacity: 0; +} + +/*--------------------------------------------------------------------------------------------- +* +* Fake table +* +*---------------------------------------------------------------------------------------------*/ +.acf-thead, +.acf-tbody, +.acf-tfoot { + width: 100%; + padding: 0; + margin: 0; +} +.acf-thead > li, +.acf-tbody > li, +.acf-tfoot > li { + box-sizing: border-box; + padding: 8px 12px; + font-size: 12px; + line-height: 14px; +} + +.acf-thead { + border-bottom: #ccd0d4 solid 1px; + color: #23282d; +} +.acf-thead > li { + font-size: 14px; + line-height: 1.4; + font-weight: bold; +} +.acf-admin-3-8 .acf-thead { + border-color: #dfdfdf; +} + +.acf-tfoot { + background: #f5f5f5; + border-top: #d5d9dd solid 1px; +} + +/*-------------------------------------------------------------------------------------------- +* +* Settings +* +*--------------------------------------------------------------------------------------------*/ +.acf-settings-wrap #poststuff { + padding-top: 15px; +} +.acf-settings-wrap .acf-box { + margin: 20px 0; +} +.acf-settings-wrap table { + margin: 0; +} +.acf-settings-wrap table .button { + vertical-align: middle; +} + +/*-------------------------------------------------------------------------------------------- +* +* acf-popup +* +*--------------------------------------------------------------------------------------------*/ +#acf-popup { + position: fixed; + z-index: 900000; + top: 0; + left: 0; + right: 0; + bottom: 0; + text-align: center; +} +#acf-popup .bg { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 0; + background: rgba(0, 0, 0, 0.25); +} +#acf-popup:before { + content: ""; + display: inline-block; + height: 100%; + vertical-align: middle; +} +#acf-popup .acf-popup-box { + display: inline-block; + vertical-align: middle; + z-index: 1; + min-width: 300px; + min-height: 160px; + border-color: #aaaaaa; + box-shadow: 0 5px 30px -5px rgba(0, 0, 0, 0.25); + text-align: left; +} +html[dir=rtl] #acf-popup .acf-popup-box { + text-align: right; +} +#acf-popup .acf-popup-box .title { + min-height: 15px; + line-height: 15px; +} +#acf-popup .acf-popup-box .title .acf-icon { + position: absolute; + top: 10px; + right: 10px; +} +html[dir=rtl] #acf-popup .acf-popup-box .title .acf-icon { + right: auto; + left: 10px; +} +#acf-popup .acf-popup-box .inner { + min-height: 50px; + padding: 0; + margin: 15px; +} +#acf-popup .acf-popup-box .loading { + position: absolute; + top: 45px; + left: 0; + right: 0; + bottom: 0; + z-index: 2; + background: rgba(0, 0, 0, 0.1); + display: none; +} +#acf-popup .acf-popup-box .loading i { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} + +.acf-submit { + margin-bottom: 0; + line-height: 28px; +} +.acf-submit span { + float: right; + color: #999; +} +.acf-submit span.-error { + color: #dd4232; +} +.acf-submit .button { + margin-right: 5px; +} + +/*-------------------------------------------------------------------------------------------- +* +* upgrade notice +* +*--------------------------------------------------------------------------------------------*/ +#acf-upgrade-notice { + position: relative; + background: #fff; + border-left: 4px solid #00a0d2; + padding: 20px; +} +#acf-upgrade-notice:after { + display: block; + clear: both; + content: ""; +} +#acf-upgrade-notice .col-content { + float: left; + width: 55%; + padding-left: 90px; +} +#acf-upgrade-notice .col-actions { + float: right; + text-align: center; + padding: 10px; +} +#acf-upgrade-notice img { + float: left; + width: 70px; + height: 70px; + margin: 0 0 0 -90px; +} +#acf-upgrade-notice h2 { + font-size: 16px; + margin: 2px 0 6.5px; +} +#acf-upgrade-notice p { + padding: 0; + margin: 0; +} +#acf-upgrade-notice .button:before { + margin-top: 11px; +} +@media screen and (max-width: 640px) { + #acf-upgrade-notice .col-content, +#acf-upgrade-notice .col-actions { + float: none; + padding-left: 90px; + width: auto; + text-align: left; + } +} + +/*-------------------------------------------------------------------------------------------- +* +* Welcome +* +*--------------------------------------------------------------------------------------------*/ +.acf-wrap h1 { + margin-top: 0; + padding-top: 20px; +} +.acf-wrap .about-text { + margin-top: 0.5em; + min-height: 50px; +} +.acf-wrap .about-headline-callout { + font-size: 2.4em; + font-weight: 300; + line-height: 1.3; + margin: 1.1em 0 0.2em; + text-align: center; +} +.acf-wrap .feature-section { + padding: 40px 0; +} +.acf-wrap .feature-section h2 { + margin-top: 20px; +} +.acf-wrap .changelog { + list-style: disc; + padding-left: 15px; +} +.acf-wrap .changelog li { + margin: 0 0 0.75em; +} +.acf-wrap .acf-three-col { + display: flex; + flex-wrap: wrap; + justify-content: space-between; +} +.acf-wrap .acf-three-col > div { + flex: 1; + align-self: flex-start; + min-width: 31%; + max-width: 31%; +} +@media screen and (max-width: 880px) { + .acf-wrap .acf-three-col > div { + min-width: 48%; + } +} +@media screen and (max-width: 640px) { + .acf-wrap .acf-three-col > div { + min-width: 100%; + } +} +.acf-wrap .acf-three-col h3 .badge { + display: inline-block; + vertical-align: top; + border-radius: 5px; + background: #fc9700; + color: #fff; + font-weight: normal; + font-size: 12px; + padding: 2px 5px; +} +.acf-wrap .acf-three-col img + h3 { + margin-top: 0.5em; +} + +/*-------------------------------------------------------------------------------------------- +* +* acf-hl cols +* +*--------------------------------------------------------------------------------------------*/ +.acf-hl[data-cols] { + margin-left: -10px; + margin-right: -10px; +} +.acf-hl[data-cols] > li { + padding: 0 10px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +/* sizes */ +.acf-hl[data-cols="2"] > li { + width: 50%; +} + +.acf-hl[data-cols="3"] > li { + width: 33.333%; +} + +.acf-hl[data-cols="4"] > li { + width: 25%; +} + +/* mobile */ +@media screen and (max-width: 640px) { + .acf-hl[data-cols] { + margin-left: 0; + margin-right: 0; + margin-top: -10px; + } + .acf-hl[data-cols] > li { + width: 100% !important; + padding: 10px 0 0; + } +} +/*-------------------------------------------------------------------------------------------- +* +* misc +* +*--------------------------------------------------------------------------------------------*/ +.acf-actions { + text-align: right; + z-index: 1; + /* hover */ + /* rtl */ +} +.acf-actions.-hover { + position: absolute; + display: none; + top: 0; + right: 0; + padding: 5px; +} +html[dir=rtl] .acf-actions.-hover { + right: auto; + left: 0; +} + +/* ul compatibility */ +ul.acf-actions li { + float: right; + margin-left: 4px; +} + +/*-------------------------------------------------------------------------------------------- +* +* RTL +* +*--------------------------------------------------------------------------------------------*/ +html[dir=rtl] .acf-fl { + float: right; +} + +html[dir=rtl] .acf-fr { + float: left; +} + +html[dir=rtl] .acf-hl > li { + float: right; +} + +html[dir=rtl] .acf-hl > li.acf-fr { + float: left; +} + +html[dir=rtl] .acf-icon.logo { + left: 0; + right: auto; +} + +html[dir=rtl] .acf-table thead th { + text-align: right; + border-right-width: 1px; + border-left-width: 0px; +} + +html[dir=rtl] .acf-table > tbody > tr > td { + text-align: right; + border-right-width: 1px; + border-left-width: 0px; +} + +html[dir=rtl] .acf-table > thead > tr > th:first-child, +html[dir=rtl] .acf-table > tbody > tr > td:first-child { + border-right-width: 0; +} + +html[dir=rtl] .acf-table > tbody > tr > td.order + td { + border-right-color: #e1e1e1; +} + +/*--------------------------------------------------------------------------------------------- +* +* acf-postbox-columns +* +*---------------------------------------------------------------------------------------------*/ +.acf-postbox-columns { + position: relative; + margin-top: -11px; + margin-bottom: -12px; + margin-left: -12px; + margin-right: 268px; +} +.acf-postbox-columns:after { + display: block; + clear: both; + content: ""; +} +.acf-postbox-columns .acf-postbox-main, +.acf-postbox-columns .acf-postbox-side { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding: 0 12px 12px; +} +.acf-postbox-columns .acf-postbox-main { + float: left; + width: 100%; +} +.acf-postbox-columns .acf-postbox-side { + float: right; + width: 280px; + margin-right: -280px; +} +.acf-postbox-columns .acf-postbox-side:before { + content: ""; + display: block; + position: absolute; + width: 1px; + height: 100%; + top: 0; + right: 0; + background: #d5d9dd; +} +.acf-admin-3-8 .acf-postbox-columns .acf-postbox-side:before { + background: #dfdfdf; +} + +/* mobile */ +@media only screen and (max-width: 850px) { + .acf-postbox-columns { + margin: 0; + } + .acf-postbox-columns .acf-postbox-main, +.acf-postbox-columns .acf-postbox-side { + float: none; + width: auto; + margin: 0; + padding: 0; + } + .acf-postbox-columns .acf-postbox-side { + margin-top: 1em; + } + .acf-postbox-columns .acf-postbox-side:before { + display: none; + } +} +/*--------------------------------------------------------------------------------------------- +* +* acf-panel +* +*---------------------------------------------------------------------------------------------*/ +.acf-panel { + margin-top: -1px; + border-top: 1px solid #d5d9dd; + border-bottom: 1px solid #d5d9dd; + /* open */ + /* inside postbox */ + /* fields */ +} +.acf-panel .acf-panel-title { + margin: 0; + padding: 12px; + font-weight: bold; + cursor: pointer; + font-size: inherit; +} +.acf-panel .acf-panel-title i { + float: right; +} +.acf-panel .acf-panel-inside { + margin: 0; + padding: 0 12px 12px; + display: none; +} +.acf-panel.-open .acf-panel-inside { + display: block; +} +.postbox .acf-panel { + margin-left: -12px; + margin-right: -12px; +} +.acf-panel .acf-field { + margin: 20px 0 0; +} +.acf-panel .acf-field .acf-label label { + color: #555d66; + font-weight: normal; +} +.acf-panel .acf-field:first-child { + margin-top: 0; +} +.acf-admin-3-8 .acf-panel { + border-color: #dfdfdf; +} + +/*--------------------------------------------------------------------------------------------- +* +* Admin Tools +* +*---------------------------------------------------------------------------------------------*/ +#acf-admin-tools .notice { + margin-top: 10px; +} + +.acf-meta-box-wrap { + margin-top: 10px; + /* acf-fields */ +} +.acf-meta-box-wrap .postbox { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.acf-meta-box-wrap .postbox .inside { + margin-bottom: 0; +} +.acf-meta-box-wrap .postbox .hndle { + font-size: 14px; + padding: 8px 12px; + margin: 0; + line-height: 1.4; + position: relative; + z-index: 1; + cursor: default; +} +.acf-meta-box-wrap .postbox .handlediv, +.acf-meta-box-wrap .postbox .handle-order-higher, +.acf-meta-box-wrap .postbox .handle-order-lower { + display: none; +} +.acf-meta-box-wrap .acf-fields { + border: #ebebeb solid 1px; + background: #fafafa; + border-radius: 3px; +} + +/* grid */ +.acf-meta-box-wrap.-grid { + margin-left: 8px; + margin-right: 8px; +} +.acf-meta-box-wrap.-grid .postbox { + float: left; + clear: left; + width: 50%; + margin: 0 0 16px; +} +.acf-meta-box-wrap.-grid .postbox:nth-child(odd) { + margin-left: -8px; +} +.acf-meta-box-wrap.-grid .postbox:nth-child(even) { + float: right; + clear: right; + margin-right: -8px; +} + +/* mobile */ +@media only screen and (max-width: 850px) { + .acf-meta-box-wrap.-grid { + margin-left: 0; + margin-right: 0; + } + .acf-meta-box-wrap.-grid .postbox { + margin-left: 0 !important; + margin-right: 0 !important; + width: 100%; + } +} +/* export tool */ +#acf-admin-tool-export { + /* panel: selection */ +} +#acf-admin-tool-export p { + max-width: 800px; +} +#acf-admin-tool-export ul { + column-width: 200px; +} +#acf-admin-tool-export .acf-postbox-side .button { + margin: 0; + width: 100%; +} +#acf-admin-tool-export textarea { + display: block; + width: 100%; + min-height: 500px; + background: #fafafa; + box-shadow: none; + padding: 7px; + border-radius: 3px; +} +#acf-admin-tool-export .acf-panel-selection .acf-label { + display: none; +} + +/*--------------------------------------------------------------------------------------------- +* +* Admin Navigation +* +*---------------------------------------------------------------------------------------------*/ +.acf-admin-toolbar { + background: #fff; + border-bottom: 1px solid #ccd0d4; + padding-top: 10px; +} +.acf-admin-toolbar h2 { + font-size: 14px; + line-height: 2.5714285714; + display: inline-block; + padding: 5px 0; + margin: 0 10px 0 0; +} +.acf-admin-toolbar h2 i { + vertical-align: middle; + color: #babbbc; +} +.acf-admin-toolbar .acf-tab { + display: inline-block; + font-size: 14px; + line-height: 2.5714285714; + padding: 5px; + margin: 0 5px; + text-decoration: none; + color: inherit; +} +.acf-admin-toolbar .acf-tab.is-active { + border-bottom: #0071a4 solid 3px; + padding-bottom: 10px; +} +.acf-admin-toolbar .acf-tab:hover { + color: #00a0d2; +} +.acf-admin-toolbar .acf-tab:focus { + box-shadow: none; +} +.acf-admin-toolbar a.btn-upgrade { + display: inline-flex; + background: #dee3ff; + border: 1px solid #c6d3f8; + box-sizing: border-box; + border-radius: 0.25rem; + padding: 0 0.75rem; + cursor: pointer; + vertical-align: middle; + margin-top: -6px; + margin-left: 20px; + text-decoration: none; +} +.acf-admin-toolbar a.btn-upgrade:hover { + background: #d1ddff; + border-color: #b9caf9; +} +.acf-admin-toolbar a.btn-upgrade p { + font-family: system-ui; + font-weight: 600; + letter-spacing: 0.2; + line-height: 1; + font-size: 0.625rem; + text-transform: uppercase; + color: #425fdd; + margin-left: 0.65rem; +} +#wpcontent .acf-admin-toolbar { + margin-left: -20px; + padding-left: 20px; +} +@media screen and (max-width: 600px) { + .acf-admin-toolbar { + display: none; + } +} + +/*--------------------------------------------------------------------------------------------- +* +* Field Groups +* +*---------------------------------------------------------------------------------------------*/ +.acf-admin-field-groups .tablenav.top { + display: none; +} +.acf-admin-field-groups .subsubsub { + margin-bottom: 3px; +} +.acf-admin-field-groups .wp-list-table td, .acf-admin-field-groups .wp-list-table th { + box-sizing: border-box; +} +.acf-admin-field-groups .wp-list-table tr:hover { + background: #f7f7f7; +} +@media screen and (min-width: 782px) { + .acf-admin-field-groups .wp-list-table .column-acf-count { + width: 10%; + } +} +.acf-admin-field-groups .wp-list-table .row-actions span.file { + display: block; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} +.acf-admin-field-groups .acf-secondary-text { + color: #a0a5aa; +} + +.acf-multi-dashicon { + position: relative; + z-index: 1; +} +.acf-multi-dashicon:before, .acf-multi-dashicon:after { + width: 18px; + height: 18px; + line-height: 18px; + font-size: 14px; + background: #fff; + border: #7e8993 solid 1px; + border-radius: 2px; + display: block; +} +.acf-multi-dashicon:after { + content: ""; + position: absolute; + top: -3px; + left: -3px; + z-index: -1; + background: #e7e7e7; +} + +.acf-css-tooltip { + position: relative; +} +.acf-css-tooltip:before { + content: attr(aria-label); + display: none; + position: absolute; + z-index: 999; + bottom: 100%; + left: 50%; + transform: translate(-50%, -8px); + background: #191e23; + border-radius: 2px; + padding: 5px 10px; + color: #fff; + font-size: 12px; + line-height: 1.4em; + white-space: pre; +} +.acf-css-tooltip:after { + content: ""; + display: none; + position: absolute; + z-index: 998; + bottom: 100%; + left: 50%; + transform: translate(-50%, 4px); + border: solid 6px transparent; + border-top-color: #191e23; +} +.acf-css-tooltip:hover:before, .acf-css-tooltip:hover:after, .acf-css-tooltip:focus:before, .acf-css-tooltip:focus:after { + display: block; +} + +.acf-diff .acf-diff-title { + position: absolute; + top: 0; + left: 0; + right: 0; + height: 40px; + padding: 14px 16px; + background: #f3f3f3; + border-bottom: #dddddd solid 1px; +} +.acf-diff .acf-diff-title strong { + font-size: 14px; + display: block; +} +.acf-diff .acf-diff-title .acf-diff-title-left, +.acf-diff .acf-diff-title .acf-diff-title-right { + width: 50%; + float: left; +} +.acf-diff .acf-diff-content { + position: absolute; + top: 70px; + left: 0; + right: 0; + bottom: 0; + overflow: auto; +} +.acf-diff table.diff { + border-spacing: 0; +} +.acf-diff table.diff col.diffsplit.middle { + width: 0; +} +.acf-diff table.diff td, .acf-diff table.diff th { + padding-top: 0.25em; + padding-bottom: 0.25em; +} +.acf-diff table.diff tr td:nth-child(2) { + width: auto; +} +.acf-diff table.diff td:nth-child(3) { + border-left: #dddddd solid 1px; +} +@media screen and (max-width: 600px) { + .acf-diff .acf-diff-title { + height: 70px; + } + .acf-diff .acf-diff-content { + top: 100px; + } +} + +/*--------------------------------------------------------------------------------------------- +* +* Modal +* +*---------------------------------------------------------------------------------------------*/ +.acf-modal { + position: fixed; + top: 30px; + left: 30px; + right: 30px; + bottom: 30px; + z-index: 160000; + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7); + background: #fcfcfc; +} +.acf-modal .acf-modal-title, +.acf-modal .acf-modal-content, +.acf-modal .acf-modal-toolbar { + box-sizing: border-box; + position: absolute; + left: 0; + right: 0; +} +.acf-modal .acf-modal-title { + height: 50px; + top: 0; + border-bottom: 1px solid #ddd; +} +.acf-modal .acf-modal-title h2 { + margin: 0; + padding: 0 16px; + line-height: 50px; +} +.acf-modal .acf-modal-title .acf-modal-close { + position: absolute; + top: 0; + right: 0; + height: 50px; + width: 50px; + border: none; + border-left: 1px solid #ddd; + background: transparent; + cursor: pointer; + color: #666; +} +.acf-modal .acf-modal-title .acf-modal-close:hover { + color: #00a0d2; +} +.acf-modal .acf-modal-content { + top: 50px; + bottom: 60px; + background: #fff; + overflow: auto; + padding: 16px; +} +.acf-modal .acf-modal-feedback { + position: absolute; + top: 50%; + margin: -10px 0; + left: 0; + right: 0; + text-align: center; + opacity: 0.75; +} +.acf-modal .acf-modal-feedback.error { + opacity: 1; + color: #b52727; +} +.acf-modal .acf-modal-toolbar { + height: 60px; + bottom: 0; + padding: 15px 16px; + border-top: 1px solid #ddd; +} +.acf-modal .acf-modal-toolbar .button { + float: right; +} +@media only screen and (max-width: 640px) { + .acf-modal { + top: 0; + left: 0; + right: 0; + bottom: 0; + } +} + +.acf-modal-backdrop { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: #000; + opacity: 0.7; + z-index: 159900; +} + +/*--------------------------------------------------------------------------------------------- +* +* Retina +* +*---------------------------------------------------------------------------------------------*/ +@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { + .acf-loading, +.acf-spinner { + background-image: url(../../images/spinner@2x.gif); + background-size: 20px 20px; + } +} \ No newline at end of file diff --git a/assets/build/css/acf-global.min.css b/assets/build/css/acf-global.min.css new file mode 100644 index 0000000..a42627d --- /dev/null +++ b/assets/build/css/acf-global.min.css @@ -0,0 +1 @@ +@charset "UTF-8";.acf-hl{padding:0;margin:0;list-style:none;display:block;position:relative}.acf-hl>li{float:left;display:block;margin:0;padding:0}.acf-hl>li.acf-fr{float:right}.acf-bl:after,.acf-bl:before,.acf-cf:after,.acf-cf:before,.acf-hl:after,.acf-hl:before{content:"";display:block;line-height:0}.acf-bl:after,.acf-cf:after,.acf-hl:after{clear:both}.acf-bl{padding:0;margin:0;list-style:none;display:block;position:relative}.acf-bl>li{display:block;margin:0;padding:0;float:none}.acf-hidden{display:none!important}.acf-empty{display:table-cell!important}.acf-empty *{display:none!important}.acf-fl{float:left}.acf-fr{float:right}.acf-fn{float:none}.acf-al{text-align:left}.acf-ar{text-align:right}.acf-ac{text-align:center}.acf-loading,.acf-spinner{display:inline-block;height:20px;width:20px;vertical-align:text-top;background:transparent url(../../images/spinner.gif) no-repeat 50% 50%}.acf-spinner{display:none}.acf-spinner.is-active{display:inline-block}.spinner.is-active{display:inline-block}.acf-required{color:red}.acf-soh .acf-soh-target{-webkit-transition:opacity .25s 0s ease-in-out,visibility 0s linear .25s;-moz-transition:opacity .25s 0s ease-in-out,visibility 0s linear .25s;-o-transition:opacity .25s 0s ease-in-out,visibility 0s linear .25s;transition:opacity .25s 0s ease-in-out,visibility 0s linear .25s;visibility:hidden;opacity:0}.acf-soh:hover .acf-soh-target{-webkit-transition-delay:0s;-moz-transition-delay:0s;-o-transition-delay:0s;transition-delay:0s;visibility:visible;opacity:1}.show-if-value{display:none}.hide-if-value{display:block}.has-value .show-if-value{display:block}.has-value .hide-if-value{display:none}.select2-search-choice-close{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.acf-tooltip{background:#2f353e;border-radius:5px;color:#fff;padding:5px 10px;position:absolute;font-size:12px;line-height:1.4em;z-index:900000}.acf-tooltip:before{border:solid;border-color:transparent;border-width:6px;content:"";position:absolute}.acf-tooltip.top{margin-top:-8px}.acf-tooltip.top:before{top:100%;left:50%;margin-left:-6px;border-top-color:#2f353e;border-bottom-width:0}.acf-tooltip.right{margin-left:8px}.acf-tooltip.right:before{top:50%;margin-top:-6px;right:100%;border-right-color:#2f353e;border-left-width:0}.acf-tooltip.bottom{margin-top:8px}.acf-tooltip.bottom:before{bottom:100%;left:50%;margin-left:-6px;border-bottom-color:#2f353e;border-top-width:0}.acf-tooltip.left{margin-left:-8px}.acf-tooltip.left:before{top:50%;margin-top:-6px;left:100%;border-left-color:#2f353e;border-right-width:0}.acf-tooltip .acf-overlay{z-index:-1}.acf-tooltip.-confirm{z-index:900001}.acf-tooltip.-confirm a{text-decoration:none;color:#9ea3a8}.acf-tooltip.-confirm a:hover{text-decoration:underline}.acf-tooltip.-confirm a[data-event=confirm]{color:#f55e4f}.acf-overlay{position:fixed;top:0;bottom:0;left:0;right:0;cursor:default}.acf-tooltip-target{position:relative;z-index:900002}.acf-loading-overlay{position:absolute;top:0;bottom:0;left:0;right:0;cursor:default;z-index:99;background:rgba(249,249,249,.5)}.acf-loading-overlay i{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.acf-icon{display:inline-block;height:28px;width:28px;border:transparent solid 1px;border-radius:100%;font-size:20px;line-height:21px;text-align:center;text-decoration:none;vertical-align:top;box-sizing:border-box}.acf-icon:before{font-family:dashicons;display:inline-block;line-height:1;font-weight:400;font-style:normal;speak:none;text-decoration:inherit;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:1em;height:1em;vertical-align:middle;text-align:center}.acf-icon.-plus:before{content:""}.acf-icon.-minus:before{content:""}.acf-icon.-cancel:before{content:""}.acf-icon.-pencil:before{content:""}.acf-icon.-location:before{content:""}.acf-icon.-up:before{content:"";margin-top:-.1em}.acf-icon.-down:before{content:"";margin-top:.1em}.acf-icon.-left:before{content:"";margin-left:-.1em}.acf-icon.-right:before{content:"";margin-left:.1em}.acf-icon.-sync:before{content:""}.acf-icon.-globe:before{content:"";margin-top:.1em;margin-left:.1em}.acf-icon.-picture:before{content:""}.acf-icon.-check:before{content:"";margin-left:-.1em}.acf-icon.-dot-3:before{content:"";margin-top:-.1em}.acf-icon.-arrow-combo:before{content:""}.acf-icon.-arrow-up:before{content:"";margin-left:-.1em}.acf-icon.-arrow-down:before{content:"";margin-left:-.1em}.acf-icon.-search:before{content:""}.acf-icon.-link-ext:before{content:""}.acf-icon.-duplicate{position:relative}.acf-icon.-duplicate:after,.acf-icon.-duplicate:before{content:"";display:block;box-sizing:border-box;width:46%;height:46%;position:absolute;top:33%;left:23%}.acf-icon.-duplicate:before{margin:-1px 0 0 1px;box-shadow:2px -2px 0 0 currentColor}.acf-icon.-duplicate:after{border:solid 2px currentColor}.acf-icon.-collapse:before{content:"";margin-left:-.1em}.-collapsed .acf-icon.-collapse:before{content:"";margin-left:-.1em}span.acf-icon{color:#555d66;border-color:#b5bcc2;background-color:#fff}a.acf-icon{color:#555d66;border-color:#b5bcc2;background-color:#fff;position:relative;transition:none;cursor:pointer}a.acf-icon:hover{background:#f3f5f6;border-color:#0071a1;color:#0071a1}a.acf-icon.-cancel:hover,a.acf-icon.-minus:hover{background:#f7efef;border-color:#a10000;color:#dc3232}a.acf-icon:active,a.acf-icon:focus{outline:0;box-shadow:none}.acf-icon.-clear{border-color:transparent;background:0 0;color:#444}.acf-icon.light{border-color:transparent;background:#f5f5f5;color:#23282d}.acf-icon.dark{border-color:transparent!important;background:#23282d;color:#eee}a.acf-icon.dark:hover{background:#191e23;color:#00b9eb}a.acf-icon.dark.-cancel:hover,a.acf-icon.dark.-minus:hover{color:#d54e21}.acf-icon.grey{border-color:transparent!important;background:#b4b9be;color:#fff!important}.acf-icon.grey:hover{background:#00a0d2;color:#fff}.acf-icon.grey.-cancel:hover,.acf-icon.grey.-minus:hover{background:#32373c}.acf-icon.-small,.acf-icon.small{width:20px;height:20px;line-height:14px;font-size:14px}.acf-icon.-small.-duplicate:after,.acf-icon.-small.-duplicate:before,.acf-icon.small.-duplicate:after,.acf-icon.small.-duplicate:before{opacity:.8}.acf-box{background:#fff;border:1px solid #ccd0d4;position:relative;box-shadow:0 1px 1px rgba(0,0,0,.04)}.acf-box .title{border-bottom:1px solid #ccd0d4;margin:0;padding:15px}.acf-box .title h3{font-size:14px;line-height:1em;margin:0;padding:0}.acf-box .inner{padding:15px}.acf-box h2{color:#333;font-size:26px;line-height:1.25em;margin:.25em 0 .75em;padding:0}.acf-box h3{margin:1.5em 0 0}.acf-box p{margin-top:.5em}.acf-box a{text-decoration:none}.acf-box i.dashicons-external{margin-top:-1px}.acf-box .footer{border-top:1px solid #ccd0d4;padding:12px;font-size:13px;line-height:1.5}.acf-box .footer p{margin:0}.acf-admin-3-8 .acf-box{border-color:#e5e5e5}.acf-admin-3-8 .acf-box .footer,.acf-admin-3-8 .acf-box .title{border-color:#e5e5e5}.acf-notice{position:relative;display:block;color:#fff;margin:5px 0 15px;padding:3px 12px;background:#2a9bd9;border-left:#1f7db1 solid 3px}.acf-notice p{font-size:13px;line-height:1.5;margin:.5em 0;text-shadow:none;color:inherit}.acf-notice .acf-notice-dismiss{position:absolute;top:9px;right:12px;background:0 0!important;color:inherit!important;border-color:#fff!important;opacity:.75}.acf-notice .acf-notice-dismiss:hover{opacity:1}.acf-notice.-dismiss{padding-right:40px}.acf-notice.-error{background:#d94f4f;border-color:#c92c2c}.acf-notice.-success{background:#49ad52;border-color:#3a8941}.acf-notice.-warning{background:#fd8d3b;border-color:#fc7009}.acf-table{border:#ccd0d4 solid 1px;background:#fff;border-spacing:0;border-radius:0;table-layout:auto;padding:0;margin:0;width:100%;clear:both;box-sizing:content-box}.acf-table>tbody>tr>td,.acf-table>tbody>tr>th,.acf-table>thead>tr>td,.acf-table>thead>tr>th{padding:8px;vertical-align:top;background:#fff;text-align:left;border-style:solid;font-weight:400}.acf-table>tbody>tr>th,.acf-table>thead>tr>th{position:relative;color:#333}.acf-table>thead>tr>th{border-color:#d5d9dd;border-width:0 0 1px 1px}.acf-table>thead>tr>th:first-child{border-left-width:0}.acf-table>tbody>tr{z-index:1}.acf-table>tbody>tr>td{border-color:#eee;border-width:1px 0 0 1px}.acf-table>tbody>tr>td:first-child{border-left-width:0}.acf-table>tbody>tr:first-child>td{border-top-width:0}.acf-table.-clear{border:0 none}.acf-table.-clear>tbody>tr>td,.acf-table.-clear>tbody>tr>th,.acf-table.-clear>thead>tr>td,.acf-table.-clear>thead>tr>th{border:0 none;padding:4px}.acf-remove-element{-webkit-transition:all .25s ease-out;-moz-transition:all .25s ease-out;-o-transition:all .25s ease-out;transition:all .25s ease-out;transform:translate(50px,0);opacity:0}.acf-fade-up{-webkit-transition:all .25s ease-out;-moz-transition:all .25s ease-out;-o-transition:all .25s ease-out;transition:all .25s ease-out;transform:translate(0,-10px);opacity:0}.acf-tbody,.acf-tfoot,.acf-thead{width:100%;padding:0;margin:0}.acf-tbody>li,.acf-tfoot>li,.acf-thead>li{box-sizing:border-box;padding:8px 12px;font-size:12px;line-height:14px}.acf-thead{border-bottom:#ccd0d4 solid 1px;color:#23282d}.acf-thead>li{font-size:14px;line-height:1.4;font-weight:700}.acf-admin-3-8 .acf-thead{border-color:#dfdfdf}.acf-tfoot{background:#f5f5f5;border-top:#d5d9dd solid 1px}.acf-settings-wrap #poststuff{padding-top:15px}.acf-settings-wrap .acf-box{margin:20px 0}.acf-settings-wrap table{margin:0}.acf-settings-wrap table .button{vertical-align:middle}#acf-popup{position:fixed;z-index:900000;top:0;left:0;right:0;bottom:0;text-align:center}#acf-popup .bg{position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;background:rgba(0,0,0,.25)}#acf-popup:before{content:"";display:inline-block;height:100%;vertical-align:middle}#acf-popup .acf-popup-box{display:inline-block;vertical-align:middle;z-index:1;min-width:300px;min-height:160px;border-color:#aaa;box-shadow:0 5px 30px -5px rgba(0,0,0,.25);text-align:left}html[dir=rtl] #acf-popup .acf-popup-box{text-align:right}#acf-popup .acf-popup-box .title{min-height:15px;line-height:15px}#acf-popup .acf-popup-box .title .acf-icon{position:absolute;top:10px;right:10px}html[dir=rtl] #acf-popup .acf-popup-box .title .acf-icon{right:auto;left:10px}#acf-popup .acf-popup-box .inner{min-height:50px;padding:0;margin:15px}#acf-popup .acf-popup-box .loading{position:absolute;top:45px;left:0;right:0;bottom:0;z-index:2;background:rgba(0,0,0,.1);display:none}#acf-popup .acf-popup-box .loading i{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.acf-submit{margin-bottom:0;line-height:28px}.acf-submit span{float:right;color:#999}.acf-submit span.-error{color:#dd4232}.acf-submit .button{margin-right:5px}#acf-upgrade-notice{position:relative;background:#fff;border-left:4px solid #00a0d2;padding:20px}#acf-upgrade-notice:after{display:block;clear:both;content:""}#acf-upgrade-notice .col-content{float:left;width:55%;padding-left:90px}#acf-upgrade-notice .col-actions{float:right;text-align:center;padding:10px}#acf-upgrade-notice img{float:left;width:70px;height:70px;margin:0 0 0 -90px}#acf-upgrade-notice h2{font-size:16px;margin:2px 0 6.5px}#acf-upgrade-notice p{padding:0;margin:0}#acf-upgrade-notice .button:before{margin-top:11px}@media screen and (max-width:640px){#acf-upgrade-notice .col-actions,#acf-upgrade-notice .col-content{float:none;padding-left:90px;width:auto;text-align:left}}.acf-wrap h1{margin-top:0;padding-top:20px}.acf-wrap .about-text{margin-top:.5em;min-height:50px}.acf-wrap .about-headline-callout{font-size:2.4em;font-weight:300;line-height:1.3;margin:1.1em 0 .2em;text-align:center}.acf-wrap .feature-section{padding:40px 0}.acf-wrap .feature-section h2{margin-top:20px}.acf-wrap .changelog{list-style:disc;padding-left:15px}.acf-wrap .changelog li{margin:0 0 .75em}.acf-wrap .acf-three-col{display:flex;flex-wrap:wrap;justify-content:space-between}.acf-wrap .acf-three-col>div{flex:1;align-self:flex-start;min-width:31%;max-width:31%}@media screen and (max-width:880px){.acf-wrap .acf-three-col>div{min-width:48%}}@media screen and (max-width:640px){.acf-wrap .acf-three-col>div{min-width:100%}}.acf-wrap .acf-three-col h3 .badge{display:inline-block;vertical-align:top;border-radius:5px;background:#fc9700;color:#fff;font-weight:400;font-size:12px;padding:2px 5px}.acf-wrap .acf-three-col img+h3{margin-top:.5em}.acf-hl[data-cols]{margin-left:-10px;margin-right:-10px}.acf-hl[data-cols]>li{padding:0 10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.acf-hl[data-cols="2"]>li{width:50%}.acf-hl[data-cols="3"]>li{width:33.333%}.acf-hl[data-cols="4"]>li{width:25%}@media screen and (max-width:640px){.acf-hl[data-cols]{margin-left:0;margin-right:0;margin-top:-10px}.acf-hl[data-cols]>li{width:100%!important;padding:10px 0 0}}.acf-actions{text-align:right;z-index:1}.acf-actions.-hover{position:absolute;display:none;top:0;right:0;padding:5px}html[dir=rtl] .acf-actions.-hover{right:auto;left:0}ul.acf-actions li{float:right;margin-left:4px}html[dir=rtl] .acf-fl{float:right}html[dir=rtl] .acf-fr{float:left}html[dir=rtl] .acf-hl>li{float:right}html[dir=rtl] .acf-hl>li.acf-fr{float:left}html[dir=rtl] .acf-icon.logo{left:0;right:auto}html[dir=rtl] .acf-table thead th{text-align:right;border-right-width:1px;border-left-width:0}html[dir=rtl] .acf-table>tbody>tr>td{text-align:right;border-right-width:1px;border-left-width:0}html[dir=rtl] .acf-table>tbody>tr>td:first-child,html[dir=rtl] .acf-table>thead>tr>th:first-child{border-right-width:0}html[dir=rtl] .acf-table>tbody>tr>td.order+td{border-right-color:#e1e1e1}.acf-postbox-columns{position:relative;margin-top:-11px;margin-bottom:-12px;margin-left:-12px;margin-right:268px}.acf-postbox-columns:after{display:block;clear:both;content:""}.acf-postbox-columns .acf-postbox-main,.acf-postbox-columns .acf-postbox-side{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0 12px 12px}.acf-postbox-columns .acf-postbox-main{float:left;width:100%}.acf-postbox-columns .acf-postbox-side{float:right;width:280px;margin-right:-280px}.acf-postbox-columns .acf-postbox-side:before{content:"";display:block;position:absolute;width:1px;height:100%;top:0;right:0;background:#d5d9dd}.acf-admin-3-8 .acf-postbox-columns .acf-postbox-side:before{background:#dfdfdf}@media only screen and (max-width:850px){.acf-postbox-columns{margin:0}.acf-postbox-columns .acf-postbox-main,.acf-postbox-columns .acf-postbox-side{float:none;width:auto;margin:0;padding:0}.acf-postbox-columns .acf-postbox-side{margin-top:1em}.acf-postbox-columns .acf-postbox-side:before{display:none}}.acf-panel{margin-top:-1px;border-top:1px solid #d5d9dd;border-bottom:1px solid #d5d9dd}.acf-panel .acf-panel-title{margin:0;padding:12px;font-weight:700;cursor:pointer;font-size:inherit}.acf-panel .acf-panel-title i{float:right}.acf-panel .acf-panel-inside{margin:0;padding:0 12px 12px;display:none}.acf-panel.-open .acf-panel-inside{display:block}.postbox .acf-panel{margin-left:-12px;margin-right:-12px}.acf-panel .acf-field{margin:20px 0 0}.acf-panel .acf-field .acf-label label{color:#555d66;font-weight:400}.acf-panel .acf-field:first-child{margin-top:0}.acf-admin-3-8 .acf-panel{border-color:#dfdfdf}#acf-admin-tools .notice{margin-top:10px}.acf-meta-box-wrap{margin-top:10px}.acf-meta-box-wrap .postbox{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.acf-meta-box-wrap .postbox .inside{margin-bottom:0}.acf-meta-box-wrap .postbox .hndle{font-size:14px;padding:8px 12px;margin:0;line-height:1.4;position:relative;z-index:1;cursor:default}.acf-meta-box-wrap .postbox .handle-order-higher,.acf-meta-box-wrap .postbox .handle-order-lower,.acf-meta-box-wrap .postbox .handlediv{display:none}.acf-meta-box-wrap .acf-fields{border:#ebebeb solid 1px;background:#fafafa;border-radius:3px}.acf-meta-box-wrap.-grid{margin-left:8px;margin-right:8px}.acf-meta-box-wrap.-grid .postbox{float:left;clear:left;width:50%;margin:0 0 16px}.acf-meta-box-wrap.-grid .postbox:nth-child(odd){margin-left:-8px}.acf-meta-box-wrap.-grid .postbox:nth-child(even){float:right;clear:right;margin-right:-8px}@media only screen and (max-width:850px){.acf-meta-box-wrap.-grid{margin-left:0;margin-right:0}.acf-meta-box-wrap.-grid .postbox{margin-left:0!important;margin-right:0!important;width:100%}}#acf-admin-tool-export p{max-width:800px}#acf-admin-tool-export ul{column-width:200px}#acf-admin-tool-export .acf-postbox-side .button{margin:0;width:100%}#acf-admin-tool-export textarea{display:block;width:100%;min-height:500px;background:#fafafa;box-shadow:none;padding:7px;border-radius:3px}#acf-admin-tool-export .acf-panel-selection .acf-label{display:none}.acf-admin-toolbar{background:#fff;border-bottom:1px solid #ccd0d4;padding-top:10px}.acf-admin-toolbar h2{font-size:14px;line-height:2.5714285714;display:inline-block;padding:5px 0;margin:0 10px 0 0}.acf-admin-toolbar h2 i{vertical-align:middle;color:#babbbc}.acf-admin-toolbar .acf-tab{display:inline-block;font-size:14px;line-height:2.5714285714;padding:5px;margin:0 5px;text-decoration:none;color:inherit}.acf-admin-toolbar .acf-tab.is-active{border-bottom:#0071a4 solid 3px;padding-bottom:10px}.acf-admin-toolbar .acf-tab:hover{color:#00a0d2}.acf-admin-toolbar .acf-tab:focus{box-shadow:none}.acf-admin-toolbar a.btn-upgrade{display:inline-flex;background:#dee3ff;border:1px solid #c6d3f8;box-sizing:border-box;border-radius:.25rem;padding:0 .75rem;cursor:pointer;vertical-align:middle;margin-top:-6px;margin-left:20px;text-decoration:none}.acf-admin-toolbar a.btn-upgrade:hover{background:#d1ddff;border-color:#b9caf9}.acf-admin-toolbar a.btn-upgrade p{font-family:system-ui;font-weight:600;letter-spacing:.2;line-height:1;font-size:.625rem;text-transform:uppercase;color:#425fdd;margin-left:.65rem}#wpcontent .acf-admin-toolbar{margin-left:-20px;padding-left:20px}@media screen and (max-width:600px){.acf-admin-toolbar{display:none}}.acf-admin-field-groups .tablenav.top{display:none}.acf-admin-field-groups .subsubsub{margin-bottom:3px}.acf-admin-field-groups .wp-list-table td,.acf-admin-field-groups .wp-list-table th{box-sizing:border-box}.acf-admin-field-groups .wp-list-table tr:hover{background:#f7f7f7}@media screen and (min-width:782px){.acf-admin-field-groups .wp-list-table .column-acf-count{width:10%}}.acf-admin-field-groups .wp-list-table .row-actions span.file{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.acf-admin-field-groups .acf-secondary-text{color:#a0a5aa}.acf-multi-dashicon{position:relative;z-index:1}.acf-multi-dashicon:after,.acf-multi-dashicon:before{width:18px;height:18px;line-height:18px;font-size:14px;background:#fff;border:#7e8993 solid 1px;border-radius:2px;display:block}.acf-multi-dashicon:after{content:"";position:absolute;top:-3px;left:-3px;z-index:-1;background:#e7e7e7}.acf-css-tooltip{position:relative}.acf-css-tooltip:before{content:attr(aria-label);display:none;position:absolute;z-index:999;bottom:100%;left:50%;transform:translate(-50%,-8px);background:#191e23;border-radius:2px;padding:5px 10px;color:#fff;font-size:12px;line-height:1.4em;white-space:pre}.acf-css-tooltip:after{content:"";display:none;position:absolute;z-index:998;bottom:100%;left:50%;transform:translate(-50%,4px);border:solid 6px transparent;border-top-color:#191e23}.acf-css-tooltip:focus:after,.acf-css-tooltip:focus:before,.acf-css-tooltip:hover:after,.acf-css-tooltip:hover:before{display:block}.acf-diff .acf-diff-title{position:absolute;top:0;left:0;right:0;height:40px;padding:14px 16px;background:#f3f3f3;border-bottom:#ddd solid 1px}.acf-diff .acf-diff-title strong{font-size:14px;display:block}.acf-diff .acf-diff-title .acf-diff-title-left,.acf-diff .acf-diff-title .acf-diff-title-right{width:50%;float:left}.acf-diff .acf-diff-content{position:absolute;top:70px;left:0;right:0;bottom:0;overflow:auto}.acf-diff table.diff{border-spacing:0}.acf-diff table.diff col.diffsplit.middle{width:0}.acf-diff table.diff td,.acf-diff table.diff th{padding-top:.25em;padding-bottom:.25em}.acf-diff table.diff tr td:nth-child(2){width:auto}.acf-diff table.diff td:nth-child(3){border-left:#ddd solid 1px}@media screen and (max-width:600px){.acf-diff .acf-diff-title{height:70px}.acf-diff .acf-diff-content{top:100px}}.acf-modal{position:fixed;top:30px;left:30px;right:30px;bottom:30px;z-index:160000;box-shadow:0 5px 15px rgba(0,0,0,.7);background:#fcfcfc}.acf-modal .acf-modal-content,.acf-modal .acf-modal-title,.acf-modal .acf-modal-toolbar{box-sizing:border-box;position:absolute;left:0;right:0}.acf-modal .acf-modal-title{height:50px;top:0;border-bottom:1px solid #ddd}.acf-modal .acf-modal-title h2{margin:0;padding:0 16px;line-height:50px}.acf-modal .acf-modal-title .acf-modal-close{position:absolute;top:0;right:0;height:50px;width:50px;border:none;border-left:1px solid #ddd;background:0 0;cursor:pointer;color:#666}.acf-modal .acf-modal-title .acf-modal-close:hover{color:#00a0d2}.acf-modal .acf-modal-content{top:50px;bottom:60px;background:#fff;overflow:auto;padding:16px}.acf-modal .acf-modal-feedback{position:absolute;top:50%;margin:-10px 0;left:0;right:0;text-align:center;opacity:.75}.acf-modal .acf-modal-feedback.error{opacity:1;color:#b52727}.acf-modal .acf-modal-toolbar{height:60px;bottom:0;padding:15px 16px;border-top:1px solid #ddd}.acf-modal .acf-modal-toolbar .button{float:right}@media only screen and (max-width:640px){.acf-modal{top:0;left:0;right:0;bottom:0}}.acf-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background:#000;opacity:.7;z-index:159900}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min--moz-device-pixel-ratio:2),only screen and (-o-min-device-pixel-ratio:2/1),only screen and (min-device-pixel-ratio:2),only screen and (min-resolution:192dpi),only screen and (min-resolution:2dppx){.acf-loading,.acf-spinner{background-image:url(../../images/spinner@2x.gif);background-size:20px 20px}} \ No newline at end of file diff --git a/assets/build/css/acf-input.css b/assets/build/css/acf-input.css new file mode 100644 index 0000000..7204169 --- /dev/null +++ b/assets/build/css/acf-input.css @@ -0,0 +1,2932 @@ +/*-------------------------------------------------------------------------------------------- +* +* Vars +* +*--------------------------------------------------------------------------------------------*/ +/* colors */ +/* acf-field */ +/* responsive */ +/*-------------------------------------------------------------------------------------------- +* +* Mixins +* +*--------------------------------------------------------------------------------------------*/ +/*-------------------------------------------------------------------------------------------- +* +* acf-field +* +*--------------------------------------------------------------------------------------------*/ +.acf-field, +.acf-field .acf-label, +.acf-field .acf-input { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + position: relative; +} + +.acf-field { + margin: 15px 0; + clear: both; +} +.acf-field p.description { + display: block; + margin: 0; + padding: 0; +} +.acf-field .acf-label { + vertical-align: top; + margin: 0 0 10px; +} +.acf-field .acf-label label { + display: block; + font-weight: bold; + margin: 0 0 3px; + padding: 0; +} +.acf-field .acf-label:empty { + margin-bottom: 0; +} +.acf-field .acf-input { + vertical-align: top; +} +.acf-field .acf-input > p.description { + margin-top: 5px; +} +.acf-field .acf-notice { + margin: 0 0 15px; + background: #edf2ff; + color: #0c6ca0; + border-color: #2183b9; +} +.acf-field .acf-notice.-error { + background: #ffe6e6; + color: #cc2727; + border-color: #d12626; +} +.acf-field .acf-notice.-success { + background: #eefbe8; + color: #0e7b17; + border-color: #32a23b; +} +.acf-field .acf-notice.-warning { + background: #fff3e6; + color: #bd4b0e; + border-color: #d16226; +} +td.acf-field, tr.acf-field { + margin: 0; +} + +.acf-field[data-width] { + float: left; + clear: none; + /* + @media screen and (max-width: $sm) { + float: none; + width: auto; + border-left-width: 0; + border-right-width: 0; + } + */ +} +.acf-field[data-width] + .acf-field[data-width] { + border-left: 1px solid #eeeeee; +} +html[dir=rtl] .acf-field[data-width] { + float: right; +} +html[dir=rtl] .acf-field[data-width] + .acf-field[data-width] { + border-left: none; + border-right: 1px solid #eeeeee; +} +td.acf-field[data-width], tr.acf-field[data-width] { + float: none; +} + +.acf-field.-c0 { + clear: both; + border-left-width: 0 !important; +} +html[dir=rtl] .acf-field.-c0 { + border-left-width: 1px !important; + border-right-width: 0 !important; +} + +.acf-field.-r0 { + border-top-width: 0 !important; +} + +/*-------------------------------------------------------------------------------------------- +* +* acf-fields +* +*--------------------------------------------------------------------------------------------*/ +.acf-fields { + position: relative; +} +.acf-fields:after { + display: block; + clear: both; + content: ""; +} +.acf-fields.-border { + border: #ccd0d4 solid 1px; + background: #fff; +} +.acf-fields > .acf-field { + position: relative; + margin: 0; + padding: 15px 12px; + border-top: #EEEEEE solid 1px; +} +.acf-fields > .acf-field:first-child { + border-top: none; + margin-top: 0; +} +td.acf-fields { + padding: 0 !important; +} + +/*-------------------------------------------------------------------------------------------- +* +* acf-fields (clear) +* +*--------------------------------------------------------------------------------------------*/ +.acf-fields.-clear > .acf-field { + border: none; + padding: 0; + margin: 15px 0; +} +.acf-fields.-clear > .acf-field[data-width] { + border: none !important; +} +.acf-fields.-clear > .acf-field > .acf-label { + padding: 0; +} +.acf-fields.-clear > .acf-field > .acf-input { + padding: 0; +} + +/*-------------------------------------------------------------------------------------------- +* +* acf-fields (left) +* +*--------------------------------------------------------------------------------------------*/ +.acf-fields.-left > .acf-field { + padding: 15px 0; +} +.acf-fields.-left > .acf-field:after { + display: block; + clear: both; + content: ""; +} +.acf-fields.-left > .acf-field:before { + content: ""; + display: block; + position: absolute; + z-index: 0; + background: #F9F9F9; + border-color: #E1E1E1; + border-style: solid; + border-width: 0 1px 0 0; + top: 0; + bottom: 0; + left: 0; + width: 20%; +} +.acf-fields.-left > .acf-field[data-width] { + float: none; + width: auto !important; + border-left-width: 0 !important; + border-right-width: 0 !important; +} +.acf-fields.-left > .acf-field > .acf-label { + float: left; + width: 20%; + margin: 0; + padding: 0 12px; +} +.acf-fields.-left > .acf-field > .acf-input { + float: left; + width: 80%; + margin: 0; + padding: 0 12px; +} +html[dir=rtl] .acf-fields.-left > .acf-field:before { + border-width: 0 0 0 1px; + left: auto; + right: 0; +} +html[dir=rtl] .acf-fields.-left > .acf-field > .acf-label { + float: right; +} +html[dir=rtl] .acf-fields.-left > .acf-field > .acf-input { + float: right; +} +#side-sortables .acf-fields.-left > .acf-field:before { + display: none; +} +#side-sortables .acf-fields.-left > .acf-field > .acf-label { + width: 100%; + margin-bottom: 10px; +} +#side-sortables .acf-fields.-left > .acf-field > .acf-input { + width: 100%; +} +@media screen and (max-width: 640px) { + .acf-fields.-left > .acf-field:before { + display: none; + } + .acf-fields.-left > .acf-field > .acf-label { + width: 100%; + margin-bottom: 10px; + } + .acf-fields.-left > .acf-field > .acf-input { + width: 100%; + } +} + +/* clear + left */ +.acf-fields.-clear.-left > .acf-field { + padding: 0; + border: none; +} +.acf-fields.-clear.-left > .acf-field:before { + display: none; +} +.acf-fields.-clear.-left > .acf-field > .acf-label { + padding: 0; +} +.acf-fields.-clear.-left > .acf-field > .acf-input { + padding: 0; +} + +/*-------------------------------------------------------------------------------------------- +* +* acf-table +* +*--------------------------------------------------------------------------------------------*/ +.acf-table tr.acf-field > td.acf-label { + padding: 15px 12px; + margin: 0; + background: #F9F9F9; + width: 20%; +} +.acf-table tr.acf-field > td.acf-input { + padding: 15px 12px; + margin: 0; + border-left-color: #E1E1E1; +} + +.acf-sortable-tr-helper { + position: relative !important; + display: table-row !important; +} + +/*-------------------------------------------------------------------------------------------- +* +* acf-postbox +* +*--------------------------------------------------------------------------------------------*/ +.acf-postbox { + position: relative; +} +.acf-postbox > .inside { + margin: 0 !important; + /* override WP style - do not delete - you have tried this before */ + padding: 0 !important; + /* override WP style - do not delete - you have tried this before */ +} +.acf-postbox .acf-hndle-cog { + color: #72777c; + font-size: 16px; + line-height: 36px; + height: 36px; + width: 1.62rem; + position: relative; + display: none; +} +.acf-postbox .acf-hndle-cog:hover { + color: #191e23; +} +.acf-postbox > .hndle:hover .acf-hndle-cog, +.acf-postbox > .postbox-header:hover .acf-hndle-cog { + display: inline-block; +} +.acf-postbox > .hndle .acf-hndle-cog { + height: 20px; + line-height: 20px; + float: right; + width: auto; +} +.acf-postbox > .hndle .acf-hndle-cog:hover { + color: #777777; +} +.acf-postbox .acf-replace-with-fields { + padding: 15px; + text-align: center; +} + +#post-body-content #acf_after_title-sortables { + margin: 20px 0 -20px; +} + +/* seamless */ +.acf-postbox.seamless { + border: 0 none; + background: transparent; + box-shadow: none; + /* hide hndle */ + /* inside */ +} +.acf-postbox.seamless > .postbox-header, +.acf-postbox.seamless > .hndle, +.acf-postbox.seamless > .handlediv { + display: none !important; +} +.acf-postbox.seamless > .inside { + display: block !important; + /* stop metabox from hiding when closed */ + margin-left: -12px !important; + margin-right: -12px !important; +} +.acf-postbox.seamless > .inside > .acf-field { + border-color: transparent; +} + +/* seamless (left) */ +.acf-postbox.seamless > .acf-fields.-left { + /* hide sidebar bg */ + /* mobile */ +} +.acf-postbox.seamless > .acf-fields.-left > .acf-field:before { + display: none; +} +@media screen and (max-width: 782px) { + .acf-postbox.seamless > .acf-fields.-left { + /* remove padding */ + } + .acf-postbox.seamless > .acf-fields.-left > .acf-field > .acf-label, .acf-postbox.seamless > .acf-fields.-left > .acf-field > .acf-input { + padding: 0; + } +} + +/*--------------------------------------------------------------------------------------------- +* +* Inputs +* +*---------------------------------------------------------------------------------------------*/ +.acf-field input[type=text], +.acf-field input[type=password], +.acf-field input[type=date], +.acf-field input[type=datetime], +.acf-field input[type=datetime-local], +.acf-field input[type=email], +.acf-field input[type=month], +.acf-field input[type=number], +.acf-field input[type=search], +.acf-field input[type=tel], +.acf-field input[type=time], +.acf-field input[type=url], +.acf-field input[type=week], +.acf-field textarea, +.acf-field select { + width: 100%; + padding: 4px 8px; + margin: 0; + box-sizing: border-box; + font-size: 14px; + line-height: 1.4; +} +.acf-admin-3-8 .acf-field input[type=text], +.acf-admin-3-8 .acf-field input[type=password], +.acf-admin-3-8 .acf-field input[type=date], +.acf-admin-3-8 .acf-field input[type=datetime], +.acf-admin-3-8 .acf-field input[type=datetime-local], +.acf-admin-3-8 .acf-field input[type=email], +.acf-admin-3-8 .acf-field input[type=month], +.acf-admin-3-8 .acf-field input[type=number], +.acf-admin-3-8 .acf-field input[type=search], +.acf-admin-3-8 .acf-field input[type=tel], +.acf-admin-3-8 .acf-field input[type=time], +.acf-admin-3-8 .acf-field input[type=url], +.acf-admin-3-8 .acf-field input[type=week], +.acf-admin-3-8 .acf-field textarea, +.acf-admin-3-8 .acf-field select { + padding: 3px 5px; +} +.acf-field textarea { + resize: vertical; +} + +body.acf-browser-firefox .acf-field select { + padding: 4px 5px; +} + +/*--------------------------------------------------------------------------------------------- +* +* Text +* +*---------------------------------------------------------------------------------------------*/ +.acf-input-prepend, +.acf-input-append, +.acf-input-wrap { + box-sizing: border-box; +} + +.acf-input-prepend, +.acf-input-append { + font-size: 14px; + line-height: 1.4; + padding: 4px 8px; + background: #f5f5f5; + border: #7e8993 solid 1px; + min-height: 30px; +} +.acf-admin-3-8 .acf-input-prepend, +.acf-admin-3-8 .acf-input-append { + padding: 3px 5px; + border-color: #dddddd; + min-height: 28px; +} + +.acf-input-prepend { + float: left; + border-right-width: 0; + border-radius: 3px 0 0 3px; +} + +.acf-input-append { + float: right; + border-left-width: 0; + border-radius: 0 3px 3px 0; +} + +.acf-input-wrap { + position: relative; + overflow: hidden; +} +.acf-input-wrap .acf-is-prepended { + border-radius: 0 3px 3px 0 !important; +} +.acf-input-wrap .acf-is-appended { + border-radius: 3px 0 0 3px !important; +} +.acf-input-wrap .acf-is-prepended.acf-is-appended { + border-radius: 0 !important; +} + +/* rtl */ +html[dir=rtl] .acf-input-prepend { + border-left-width: 0; + border-right-width: 1px; + border-radius: 0 3px 3px 0; + float: right; +} + +html[dir=rtl] .acf-input-append { + border-left-width: 1px; + border-right-width: 0; + border-radius: 3px 0 0 3px; + float: left; +} + +html[dir=rtl] input.acf-is-prepended { + border-radius: 3px 0 0 3px !important; +} + +html[dir=rtl] input.acf-is-appended { + border-radius: 0 3px 3px 0 !important; +} + +html[dir=rtl] input.acf-is-prepended.acf-is-appended { + border-radius: 0 !important; +} + +/*--------------------------------------------------------------------------------------------- +* +* Color Picker +* +*---------------------------------------------------------------------------------------------*/ +.acf-color-picker .wp-color-result { + border-color: #7e8993; +} +.acf-admin-3-8 .acf-color-picker .wp-color-result { + border-color: #ccd0d4; +} +.acf-color-picker .wp-picker-active { + position: relative; + z-index: 1; +} + +/*--------------------------------------------------------------------------------------------- +* +* Url +* +*---------------------------------------------------------------------------------------------*/ +.acf-url i { + position: absolute; + top: 5px; + left: 5px; + opacity: 0.5; + color: #7e8993; +} +.acf-url input[type=url] { + padding-left: 27px !important; +} +.acf-url.-valid i { + opacity: 1; +} + +/*--------------------------------------------------------------------------------------------- +* +* Select2 (v3) +* +*---------------------------------------------------------------------------------------------*/ +.select2-container.-acf { + /* open */ + /* single open */ +} +.select2-container.-acf .select2-choices { + background: #fff; + border-color: #ddd; + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07) inset; + min-height: 31px; +} +.select2-container.-acf .select2-choices .select2-search-choice { + margin: 5px 0 5px 5px; + padding: 3px 5px 3px 18px; + border-color: #bbb; + background: #f9f9f9; + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset; + /* sortable item*/ + /* sortable shadow */ +} +.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-helper { + background: #5897fb; + border-color: #3f87fa; + color: #fff; + box-shadow: 0 0 3px rgba(0, 0, 0, 0.1); +} +.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-helper a { + visibility: hidden; +} +.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-placeholder { + background-color: #f7f7f7; + border-color: #f7f7f7; + visibility: visible !important; +} +.select2-container.-acf .select2-choices .select2-search-choice-focus { + border-color: #999; +} +.select2-container.-acf .select2-choices .select2-search-field input { + height: 31px; + line-height: 22px; + margin: 0; + padding: 5px 5px 5px 7px; +} +.select2-container.-acf .select2-choice { + border-color: #BBBBBB; +} +.select2-container.-acf .select2-choice .select2-arrow { + background: transparent; + border-left-color: #DFDFDF; + padding-left: 1px; +} +.select2-container.-acf .select2-choice .select2-result-description { + display: none; +} +.select2-container.-acf.select2-container-active .select2-choices, .select2-container.-acf.select2-dropdown-open .select2-choices { + border-color: #5B9DD9; + border-radius: 3px 3px 0 0; +} +.select2-container.-acf.select2-dropdown-open .select2-choice { + background: #fff; + border-color: #5B9DD9; +} + +/* rtl */ +html[dir=rtl] .select2-container.-acf .select2-search-choice-close { + left: 24px; +} +html[dir=rtl] .select2-container.-acf .select2-choice > .select2-chosen { + margin-left: 42px; +} +html[dir=rtl] .select2-container.-acf .select2-choice .select2-arrow { + padding-left: 0; + padding-right: 1px; +} + +/* description */ +.select2-drop { + /* search*/ + /* result */ +} +.select2-drop .select2-search { + padding: 4px 4px 0; +} +.select2-drop .select2-result { + /* hover*/ +} +.select2-drop .select2-result .select2-result-description { + color: #999; + font-size: 12px; + margin-left: 5px; +} +.select2-drop .select2-result.select2-highlighted .select2-result-description { + color: #fff; + opacity: 0.75; +} + +/*--------------------------------------------------------------------------------------------- +* +* Select2 (v4) +* +*---------------------------------------------------------------------------------------------*/ +.select2-container.-acf li { + margin-bottom: 0; +} +.select2-container.-acf .select2-selection { + border-color: #7e8993; +} +.acf-admin-3-8 .select2-container.-acf .select2-selection { + border-color: #aaa; +} +.select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child { + float: none; +} +.select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child input { + width: 100% !important; +} +.select2-container.-acf .select2-selection--multiple .select2-selection__rendered { + padding-right: 0; +} +.select2-container.-acf .select2-selection--multiple .select2-selection__choice { + background-color: #f7f7f7; + border-color: #cccccc; + max-width: 100%; + overflow: hidden; + word-wrap: normal !important; + white-space: normal; +} +.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-helper { + background: #5897fb; + border-color: #3f87fa; + color: #fff; + box-shadow: 0 0 3px rgba(0, 0, 0, 0.1); +} +.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-helper span { + visibility: hidden; +} +.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-placeholder { + background-color: #f7f7f7; + border-color: #f7f7f7; + visibility: visible !important; +} +.select2-container.-acf .select2-selection--multiple .select2-search__field { + box-shadow: none !important; + min-height: 0; +} +.acf-row .select2-container.-acf .select2-selection--single { + overflow: hidden; +} +.acf-row .select2-container.-acf .select2-selection--single .select2-selection__rendered { + white-space: normal; +} + +.select2-container .select2-dropdown { + z-index: 900000; +} +.select2-container .select2-dropdown .select2-search__field { + line-height: 1.4; + min-height: 0; +} + +/*--------------------------------------------------------------------------------------------- +* +* Link +* +*---------------------------------------------------------------------------------------------*/ +.acf-link .link-wrap { + display: none; + border: #ccd0d4 solid 1px; + border-radius: 3px; + padding: 5px; + line-height: 26px; + background: #fff; + word-wrap: break-word; + word-break: break-all; +} +.acf-link .link-wrap .link-title { + padding: 0 5px; +} +.acf-link.-value .button { + display: none; +} +.acf-link.-value .acf-icon.-link-ext { + display: none; +} +.acf-link.-value .link-wrap { + display: inline-block; +} +.acf-link.-external .acf-icon.-link-ext { + display: inline-block; +} + +#wp-link-backdrop { + z-index: 900000 !important; +} + +#wp-link-wrap { + z-index: 900001 !important; +} + +/*--------------------------------------------------------------------------------------------- +* +* Radio +* +*---------------------------------------------------------------------------------------------*/ +ul.acf-radio-list, +ul.acf-checkbox-list { + background: transparent; + position: relative; + padding: 1px; + margin: 0; + /* hl */ + /* rtl */ +} +ul.acf-radio-list li, +ul.acf-checkbox-list li { + font-size: 13px; + line-height: 22px; + margin: 0; + position: relative; + word-wrap: break-word; + /* attachment sidebar fix*/ +} +ul.acf-radio-list li label, +ul.acf-checkbox-list li label { + display: inline; +} +ul.acf-radio-list li input[type=checkbox], +ul.acf-radio-list li input[type=radio], +ul.acf-checkbox-list li input[type=checkbox], +ul.acf-checkbox-list li input[type=radio] { + margin: -1px 4px 0 0; + vertical-align: middle; +} +ul.acf-radio-list li input[type=text], +ul.acf-checkbox-list li input[type=text] { + width: auto; + vertical-align: middle; + margin: 2px 0; +} +ul.acf-radio-list li span, +ul.acf-checkbox-list li span { + float: none; +} +ul.acf-radio-list li i, +ul.acf-checkbox-list li i { + vertical-align: middle; +} +ul.acf-radio-list.acf-hl li, +ul.acf-checkbox-list.acf-hl li { + margin-right: 20px; + clear: none; +} +html[dir=rtl] ul.acf-radio-list input[type=checkbox], +html[dir=rtl] ul.acf-radio-list input[type=radio], +html[dir=rtl] ul.acf-checkbox-list input[type=checkbox], +html[dir=rtl] ul.acf-checkbox-list input[type=radio] { + margin-left: 4px; + margin-right: 0; +} + +/*--------------------------------------------------------------------------------------------- +* +* Button Group +* +*---------------------------------------------------------------------------------------------*/ +.acf-button-group { + display: inline-block; + /* default (horizontal) */ + /* vertical */ +} +.acf-button-group label { + display: inline-block; + border: #7e8993 solid 1px; + position: relative; + z-index: 1; + padding: 5px 10px; + background: #fff; +} +.acf-button-group label:hover { + color: #016087; + background: #f3f5f6; + border-color: #0071a1; + z-index: 2; +} +.acf-button-group label.selected { + border-color: #007cba; + background: #008dd4; + color: #fff; + z-index: 2; +} +.acf-button-group input { + display: none !important; +} +.acf-button-group { + padding-left: 1px; + display: inline-flex; + flex-direction: row; + flex-wrap: nowrap; +} +.acf-button-group label { + margin: 0 0 0 -1px; + flex: 1; + text-align: center; + white-space: nowrap; +} +.acf-button-group label:first-child { + border-radius: 3px 0 0 3px; +} +html[dir=rtl] .acf-button-group label:first-child { + border-radius: 0 3px 3px 0; +} +.acf-button-group label:last-child { + border-radius: 0 3px 3px 0; +} +html[dir=rtl] .acf-button-group label:last-child { + border-radius: 3px 0 0 3px; +} +.acf-button-group label:only-child { + border-radius: 3px; +} +.acf-button-group.-vertical { + padding-left: 0; + padding-top: 1px; + flex-direction: column; +} +.acf-button-group.-vertical label { + margin: -1px 0 0 0; +} +.acf-button-group.-vertical label:first-child { + border-radius: 3px 3px 0 0; +} +.acf-button-group.-vertical label:last-child { + border-radius: 0 0 3px 3px; +} +.acf-button-group.-vertical label:only-child { + border-radius: 3px; +} +.acf-admin-3-8 .acf-button-group label { + border-color: #ccd0d4; +} +.acf-admin-3-8 .acf-button-group label:hover { + border-color: #0071a1; +} +.acf-admin-3-8 .acf-button-group label.selected { + border-color: #007cba; +} + +/*--------------------------------------------------------------------------------------------- +* +* Checkbox +* +*---------------------------------------------------------------------------------------------*/ +.acf-checkbox-list .button { + margin: 10px 0 0; +} + +/*--------------------------------------------------------------------------------------------- +* +* True / False +* +*---------------------------------------------------------------------------------------------*/ +.acf-switch { + display: inline-block; + border-radius: 5px; + cursor: pointer; + position: relative; + background: #f5f5f5; + height: 30px; + vertical-align: middle; + border: #7e8993 solid 1px; + -webkit-transition: background 0.25s ease; + -moz-transition: background 0.25s ease; + -o-transition: background 0.25s ease; + transition: background 0.25s ease; + /* hover */ + /* active */ + /* message */ +} +.acf-switch span { + display: inline-block; + float: left; + text-align: center; + font-size: 13px; + line-height: 22px; + padding: 4px 10px; + min-width: 15px; +} +.acf-switch span i { + vertical-align: middle; +} +.acf-switch .acf-switch-on { + color: #fff; + text-shadow: #007cba 0 1px 0; +} +.acf-switch .acf-switch-slider { + position: absolute; + top: 2px; + left: 2px; + bottom: 2px; + right: 50%; + z-index: 1; + background: #fff; + border-radius: 3px; + border: #7e8993 solid 1px; + -webkit-transition: all 0.25s ease; + -moz-transition: all 0.25s ease; + -o-transition: all 0.25s ease; + transition: all 0.25s ease; + transition-property: left, right; +} +.acf-switch:hover, .acf-switch.-focus { + border-color: #0071a1; + background: #f3f5f6; + color: #016087; +} +.acf-switch:hover .acf-switch-slider, .acf-switch.-focus .acf-switch-slider { + border-color: #0071a1; +} +.acf-switch.-on { + background: #0d99d5; + border-color: #007cba; + /* hover */ +} +.acf-switch.-on .acf-switch-slider { + left: 50%; + right: 2px; + border-color: #007cba; +} +.acf-switch.-on:hover { + border-color: #007cba; +} +.acf-switch + span { + margin-left: 6px; +} +.acf-admin-3-8 .acf-switch { + border-color: #ccd0d4; +} +.acf-admin-3-8 .acf-switch .acf-switch-slider { + border-color: #ccd0d4; +} +.acf-admin-3-8 .acf-switch:hover, .acf-admin-3-8 .acf-switch.-focus { + border-color: #0071a1; +} +.acf-admin-3-8 .acf-switch:hover .acf-switch-slider, .acf-admin-3-8 .acf-switch.-focus .acf-switch-slider { + border-color: #0071a1; +} +.acf-admin-3-8 .acf-switch.-on { + border-color: #007cba; +} +.acf-admin-3-8 .acf-switch.-on .acf-switch-slider { + border-color: #007cba; +} +.acf-admin-3-8 .acf-switch.-on:hover { + border-color: #007cba; +} + +/* checkbox */ +.acf-switch-input { + opacity: 0; + position: absolute; + margin: 0; +} + +/* in media modal */ +.compat-item .acf-true-false .message { + float: none; + padding: 0; + vertical-align: middle; +} + +/*-------------------------------------------------------------------------- +* +* Google Map +* +*-------------------------------------------------------------------------*/ +.acf-google-map { + position: relative; + border: #ccd0d4 solid 1px; + background: #fff; +} +.acf-google-map .title { + position: relative; + border-bottom: #ccd0d4 solid 1px; +} +.acf-google-map .title .search { + margin: 0; + font-size: 14px; + line-height: 30px; + height: 40px; + padding: 5px 10px; + border: 0 none; + box-shadow: none; + border-radius: 0; + font-family: inherit; + cursor: text; +} +.acf-google-map .title .acf-loading { + position: absolute; + top: 10px; + right: 11px; + display: none; +} +.acf-google-map .title .acf-icon:active { + display: inline-block !important; +} +.acf-google-map .canvas { + height: 400px; +} +.acf-google-map:hover .title .acf-actions { + display: block; +} +.acf-google-map .title .acf-icon.-location { + display: inline-block; +} +.acf-google-map .title .acf-icon.-cancel, +.acf-google-map .title .acf-icon.-search { + display: none; +} +.acf-google-map.-value .title .search { + font-weight: bold; +} +.acf-google-map.-value .title .acf-icon.-location { + display: none; +} +.acf-google-map.-value .title .acf-icon.-cancel { + display: inline-block; +} +.acf-google-map.-searching .title .acf-icon.-location { + display: none; +} +.acf-google-map.-searching .title .acf-icon.-cancel, +.acf-google-map.-searching .title .acf-icon.-search { + display: inline-block; +} +.acf-google-map.-searching .title .acf-actions { + display: block; +} +.acf-google-map.-searching .title .search { + font-weight: normal !important; +} +.acf-google-map.-loading .title a { + display: none !important; +} +.acf-google-map.-loading .title i { + display: inline-block; +} + +/* autocomplete */ +.pac-container { + border-width: 1px 0; + box-shadow: none; +} + +.pac-container:after { + display: none; +} + +.pac-container .pac-item:first-child { + border-top: 0 none; +} + +.pac-container .pac-item { + padding: 5px 10px; + cursor: pointer; +} + +html[dir=rtl] .pac-container .pac-item { + text-align: right; +} + +/*-------------------------------------------------------------------------- +* +* Relationship +* +*-------------------------------------------------------------------------*/ +.acf-relationship { + background: #fff; + border: #ccd0d4 solid 1px; + /* list */ + /* selection (bottom) */ +} +.acf-relationship .filters { + border-bottom: #ccd0d4 solid 1px; + background: #fff; + /* widths */ +} +.acf-relationship .filters:after { + display: block; + clear: both; + content: ""; +} +.acf-relationship .filters .filter { + margin: 0; + padding: 0; + float: left; + width: 100%; + box-sizing: border-box; + padding: 7px 7px 7px 0; +} +.acf-relationship .filters .filter:first-child { + padding-left: 7px; +} +.acf-relationship .filters .filter input, .acf-relationship .filters .filter select { + margin: 0; + float: none; + /* potential fix for media popup? */ +} +.acf-relationship .filters .filter input:focus, .acf-relationship .filters .filter input:active, .acf-relationship .filters .filter select:focus, .acf-relationship .filters .filter select:active { + outline: none; + box-shadow: none; +} +.acf-relationship .filters .filter input { + border-color: transparent; + box-shadow: none; + padding-left: 3px; + padding-right: 3px; +} +.acf-relationship .filters.-f2 .filter { + width: 50%; +} +.acf-relationship .filters.-f3 .filter { + width: 25%; +} +.acf-relationship .filters.-f3 .filter.-search { + width: 50%; +} +.acf-relationship .list { + margin: 0; + padding: 5px; + height: 160px; + overflow: auto; +} +.acf-relationship .list .acf-rel-label, +.acf-relationship .list .acf-rel-item, +.acf-relationship .list p { + padding: 5px; + margin: 0; + display: block; + position: relative; + min-height: 18px; +} +.acf-relationship .list .acf-rel-label { + font-weight: bold; +} +.acf-relationship .list .acf-rel-item { + cursor: pointer; + /* hover */ + /* disabled */ +} +.acf-relationship .list .acf-rel-item b { + text-decoration: underline; + font-weight: normal; +} +.acf-relationship .list .acf-rel-item .thumbnail { + background: #e0e0e0; + width: 22px; + height: 22px; + float: left; + margin: -2px 5px 0 0; +} +.acf-relationship .list .acf-rel-item .thumbnail img { + max-width: 22px; + max-height: 22px; + margin: 0 auto; + display: block; +} +.acf-relationship .list .acf-rel-item .thumbnail.-icon { + background: #fff; +} +.acf-relationship .list .acf-rel-item .thumbnail.-icon img { + max-height: 20px; + margin-top: 1px; +} +.acf-relationship .list .acf-rel-item:hover { + background: #3875D7; + color: #fff; +} +.acf-relationship .list .acf-rel-item:hover .thumbnail { + background: #a2bfec; +} +.acf-relationship .list .acf-rel-item:hover .thumbnail.-icon { + background: #fff; +} +.acf-relationship .list .acf-rel-item.disabled { + opacity: 0.5; +} +.acf-relationship .list .acf-rel-item.disabled:hover { + background: transparent; + color: #333; + cursor: default; +} +.acf-relationship .list .acf-rel-item.disabled:hover .thumbnail { + background: #e0e0e0; +} +.acf-relationship .list .acf-rel-item.disabled:hover .thumbnail.-icon { + background: #fff; +} +.acf-relationship .list ul { + padding-bottom: 5px; +} +.acf-relationship .list ul .acf-rel-label, +.acf-relationship .list ul .acf-rel-item, +.acf-relationship .list ul p { + padding-left: 20px; +} +.acf-relationship .selection { + position: relative; + /* choices */ + /* values */ +} +.acf-relationship .selection:after { + display: block; + clear: both; + content: ""; +} +.acf-relationship .selection .values, +.acf-relationship .selection .choices { + width: 50%; + background: #fff; + float: left; +} +.acf-relationship .selection .choices { + background: #F9F9F9; +} +.acf-relationship .selection .choices .list { + border-right: #DFDFDF solid 1px; +} +.acf-relationship .selection .values .acf-icon { + position: absolute; + top: 4px; + right: 7px; + display: none; + /* rtl */ +} +html[dir=rtl] .acf-relationship .selection .values .acf-icon { + right: auto; + left: 7px; +} +.acf-relationship .selection .values .acf-rel-item:hover .acf-icon { + display: block; +} +.acf-relationship .selection .values .acf-rel-item { + cursor: move; +} +.acf-relationship .selection .values .acf-rel-item b { + text-decoration: none; +} + +/* menu item fix */ +.menu-item .acf-relationship ul { + width: auto; +} +.menu-item .acf-relationship li { + display: block; +} + +/*-------------------------------------------------------------------------- +* +* WYSIWYG +* +*-------------------------------------------------------------------------*/ +.acf-editor-wrap.delay .acf-editor-toolbar { + content: ""; + display: block; + background: #f5f5f5; + border-bottom: #dddddd solid 1px; + color: #555d66; + padding: 10px; +} +.acf-editor-wrap.delay .wp-editor-area { + padding: 10px; + border: none; + color: inherit !important; +} +.acf-editor-wrap iframe { + min-height: 200px; +} +.acf-editor-wrap .wp-editor-container { + border: 1px solid #ccd0d4; + box-shadow: none !important; +} +.acf-editor-wrap .wp-editor-tabs { + box-sizing: content-box; +} +.acf-editor-wrap .wp-switch-editor { + border-color: #ccd0d4; + border-bottom-color: transparent; +} + +#mce_fullscreen_container { + z-index: 900000 !important; +} + +/*--------------------------------------------------------------------------------------------- +* +* Tab +* +*---------------------------------------------------------------------------------------------*/ +.acf-field-tab { + display: none !important; +} + +.hidden-by-tab { + display: none !important; +} + +.acf-tab-wrap { + clear: both; + z-index: 1; +} + +.acf-tab-group { + border-bottom: #ccc solid 1px; + padding: 10px 10px 0; +} +.acf-tab-group li { + margin: 0 0.5em 0 0; +} +.acf-tab-group li a { + padding: 5px 10px; + display: block; + color: #555; + font-size: 14px; + font-weight: 600; + line-height: 24px; + border: #ccc solid 1px; + border-bottom: 0 none; + text-decoration: none; + background: #e5e5e5; + transition: none; +} +.acf-tab-group li a:hover { + background: #FFF; +} +.acf-tab-group li a:focus { + outline: none; + box-shadow: none; +} +.acf-tab-group li a:empty { + display: none; +} +html[dir=rtl] .acf-tab-group li { + margin: 0 0 0 0.5em; +} +.acf-tab-group li.active a { + background: #F1F1F1; + color: #000; + padding-bottom: 6px; + margin-bottom: -1px; + position: relative; + z-index: 1; +} + +.acf-fields > .acf-tab-wrap { + background: #F9F9F9; +} +.acf-fields > .acf-tab-wrap .acf-tab-group { + position: relative; + border-top: #ccd0d4 solid 1px; + border-bottom: #ccd0d4 solid 1px; + z-index: 2; + margin-bottom: -1px; +} +.acf-fields > .acf-tab-wrap .acf-tab-group li a { + background: #f1f1f1; + border-color: #ccd0d4; +} +.acf-fields > .acf-tab-wrap .acf-tab-group li a:hover { + background: #FFF; +} +.acf-fields > .acf-tab-wrap .acf-tab-group li.active a { + background: #FFFFFF; +} +.acf-admin-3-8 .acf-fields > .acf-tab-wrap .acf-tab-group { + border-color: #dfdfdf; +} +.acf-fields > .acf-tab-wrap:first-child .acf-tab-group { + border-top: none; +} + +.acf-fields.-left > .acf-tab-wrap .acf-tab-group { + padding-left: 20%; + /* mobile */ + /* rtl */ +} +@media screen and (max-width: 640px) { + .acf-fields.-left > .acf-tab-wrap .acf-tab-group { + padding-left: 10px; + } +} +html[dir=rtl] .acf-fields.-left > .acf-tab-wrap .acf-tab-group { + padding-left: 0; + padding-right: 20%; + /* mobile */ +} +@media screen and (max-width: 850px) { + html[dir=rtl] .acf-fields.-left > .acf-tab-wrap .acf-tab-group { + padding-right: 10px; + } +} + +.acf-tab-wrap.-left .acf-tab-group { + position: absolute; + left: 0; + width: 20%; + border: 0 none; + padding: 0 !important; + /* important overrides 'left aligned labels' */ + margin: 1px 0 0; +} +.acf-tab-wrap.-left .acf-tab-group li { + float: none; + margin: -1px 0 0; +} +.acf-tab-wrap.-left .acf-tab-group li a { + border: 1px solid #ededed; + font-size: 13px; + line-height: 18px; + color: #0073aa; + padding: 10px; + margin: 0; + font-weight: normal; + border-width: 1px 0; + border-radius: 0; + background: transparent; +} +.acf-tab-wrap.-left .acf-tab-group li a:hover { + color: #00a0d2; +} +.acf-tab-wrap.-left .acf-tab-group li.active a { + border-color: #DFDFDF; + color: #000; + margin-right: -1px; + background: #fff; +} +html[dir=rtl] .acf-tab-wrap.-left .acf-tab-group { + left: auto; + right: 0; +} +html[dir=rtl] .acf-tab-wrap.-left .acf-tab-group li.active a { + margin-right: 0; + margin-left: -1px; +} +.acf-field + .acf-tab-wrap.-left:before { + content: ""; + display: block; + position: relative; + z-index: 1; + height: 10px; + border-top: #DFDFDF solid 1px; + border-bottom: #DFDFDF solid 1px; + margin-bottom: -1px; +} +.acf-tab-wrap.-left:first-child .acf-tab-group li:first-child a { + border-top: none; +} + +/* sidebar */ +.acf-fields.-sidebar { + padding: 0 0 0 20% !important; + position: relative; + /* before */ + /* rtl */ +} +.acf-fields.-sidebar:before { + content: ""; + display: block; + position: absolute; + top: 0; + left: 0; + width: 20%; + bottom: 0; + border-right: #DFDFDF solid 1px; + background: #F9F9F9; + z-index: 1; +} +html[dir=rtl] .acf-fields.-sidebar { + padding: 0 20% 0 0 !important; +} +html[dir=rtl] .acf-fields.-sidebar:before { + border-left: #DFDFDF solid 1px; + border-right-width: 0; + left: auto; + right: 0; +} +.acf-fields.-sidebar.-left { + padding: 0 0 0 180px !important; + /* rtl */ +} +html[dir=rtl] .acf-fields.-sidebar.-left { + padding: 0 180px 0 0 !important; +} +.acf-fields.-sidebar.-left:before { + background: #F1F1F1; + border-color: #dfdfdf; + width: 180px; +} +.acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group { + width: 180px; +} +.acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group li a { + border-color: #e4e4e4; +} +.acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group li.active a { + background: #F9F9F9; +} +.acf-fields.-sidebar > .acf-field-tab + .acf-field { + border-top: none; +} + +.acf-fields.-clear > .acf-tab-wrap { + background: transparent; +} +.acf-fields.-clear > .acf-tab-wrap .acf-tab-group { + margin-top: 0; + border-top: none; + padding-left: 0; + padding-right: 0; +} +.acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a { + background: #e5e5e5; +} +.acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a:hover { + background: #fff; +} +.acf-fields.-clear > .acf-tab-wrap .acf-tab-group li.active a { + background: #f1f1f1; +} + +/* seamless */ +.acf-postbox.seamless > .acf-fields.-sidebar { + margin-left: 0 !important; +} +.acf-postbox.seamless > .acf-fields.-sidebar:before { + background: transparent; +} +.acf-postbox.seamless > .acf-fields > .acf-tab-wrap { + background: transparent; + margin-bottom: 10px; + padding-left: 12px; + padding-right: 12px; +} +.acf-postbox.seamless > .acf-fields > .acf-tab-wrap .acf-tab-group { + border-top: 0 none; + border-color: #ccd0d4; +} +.acf-postbox.seamless > .acf-fields > .acf-tab-wrap .acf-tab-group li a { + background: #e5e5e5; + border-color: #ccd0d4; +} +.acf-postbox.seamless > .acf-fields > .acf-tab-wrap .acf-tab-group li a:hover { + background: #fff; +} +.acf-postbox.seamless > .acf-fields > .acf-tab-wrap .acf-tab-group li.active a { + background: #f1f1f1; +} +.acf-postbox.seamless > .acf-fields > .acf-tab-wrap.-left:before { + border-top: none; + height: auto; +} +.acf-postbox.seamless > .acf-fields > .acf-tab-wrap.-left .acf-tab-group { + margin-bottom: 0; +} +.acf-postbox.seamless > .acf-fields > .acf-tab-wrap.-left .acf-tab-group li a { + border-width: 1px 0 1px 1px !important; + border-color: #cccccc; + background: #e5e5e5; +} +.acf-postbox.seamless > .acf-fields > .acf-tab-wrap.-left .acf-tab-group li.active a { + background: #f1f1f1; +} + +.menu-edit .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a, +.widget .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a { + background: #f1f1f1; +} +.menu-edit .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a:hover, .menu-edit .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li.active a, +.widget .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a:hover, +.widget .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li.active a { + background: #fff; +} + +.compat-item .acf-tab-wrap td { + display: block; +} + +/* within gallery sidebar */ +.acf-gallery-side .acf-tab-wrap { + border-top: 0 none !important; +} + +.acf-gallery-side .acf-tab-wrap .acf-tab-group { + margin: 10px 0 !important; + padding: 0 !important; +} + +.acf-gallery-side .acf-tab-group li.active a { + background: #F9F9F9 !important; +} + +/* withing widget */ +.widget .acf-tab-group { + border-bottom-color: #e8e8e8; +} + +.widget .acf-tab-group li a { + background: #F1F1F1; +} + +.widget .acf-tab-group li.active a { + background: #fff; +} + +/* media popup (edit image) */ +.media-modal.acf-expanded .compat-attachment-fields > tbody > tr.acf-tab-wrap .acf-tab-group { + padding-left: 23%; + border-bottom-color: #DDDDDD; +} + +/* table */ +.form-table > tbody > tr.acf-tab-wrap .acf-tab-group { + padding: 0 5px 0 210px; +} + +/* rtl */ +html[dir=rtl] .form-table > tbody > tr.acf-tab-wrap .acf-tab-group { + padding: 0 210px 0 5px; +} + +/*-------------------------------------------------------------------------------------------- +* +* oembed +* +*--------------------------------------------------------------------------------------------*/ +.acf-oembed { + position: relative; + border: #ccd0d4 solid 1px; + background: #fff; +} +.acf-oembed .title { + position: relative; + border-bottom: #ccd0d4 solid 1px; + padding: 5px 10px; +} +.acf-oembed .title .input-search { + margin: 0; + font-size: 14px; + line-height: 30px; + height: 30px; + padding: 0; + border: 0 none; + box-shadow: none; + border-radius: 0; + font-family: inherit; + cursor: text; +} +.acf-oembed .title .acf-actions { + padding: 6px; +} +.acf-oembed .canvas { + position: relative; + min-height: 250px; + background: #F9F9F9; +} +.acf-oembed .canvas .canvas-media { + position: relative; + z-index: 1; +} +.acf-oembed .canvas iframe { + display: block; + margin: 0; + padding: 0; + width: 100%; +} +.acf-oembed .canvas .acf-icon.-picture { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + z-index: 0; + height: 42px; + width: 42px; + font-size: 42px; + color: #999; +} +.acf-oembed .canvas .acf-loading-overlay { + background: rgba(255, 255, 255, 0.9); +} +.acf-oembed .canvas .canvas-error { + position: absolute; + top: 50%; + left: 0%; + right: 0%; + margin: -9px 0 0 0; + text-align: center; + display: none; +} +.acf-oembed .canvas .canvas-error p { + padding: 8px; + margin: 0; + display: inline; +} +.acf-oembed.has-value .canvas { + min-height: 50px; +} +.acf-oembed.has-value .input-search { + font-weight: bold; +} +.acf-oembed.has-value .title:hover .acf-actions { + display: block; +} + +/*-------------------------------------------------------------------------------------------- +* +* Image +* +*--------------------------------------------------------------------------------------------*/ +.acf-image-uploader { + position: relative; + /* image wrap*/ + /* input */ + /* rtl */ +} +.acf-image-uploader:after { + display: block; + clear: both; + content: ""; +} +.acf-image-uploader p { + margin: 0; +} +.acf-image-uploader .image-wrap { + position: relative; + float: left; + /* hover */ +} +.acf-image-uploader .image-wrap img { + max-width: 100%; + max-height: 100%; + width: auto; + height: auto; + display: block; + min-width: 30px; + min-height: 30px; + background: #f1f1f1; + margin: 0; + padding: 0; + /* svg */ +} +.acf-image-uploader .image-wrap img[src$=".svg"] { + min-height: 100px; + min-width: 100px; +} +.acf-image-uploader .image-wrap:hover .acf-actions { + display: block; +} +.acf-image-uploader input.button { + width: auto; +} +html[dir=rtl] .acf-image-uploader .image-wrap { + float: right; +} + +/*-------------------------------------------------------------------------------------------- +* +* File +* +*--------------------------------------------------------------------------------------------*/ +.acf-file-uploader { + position: relative; + /* hover */ + /* rtl */ +} +.acf-file-uploader p { + margin: 0; +} +.acf-file-uploader .file-wrap { + border: #ccd0d4 solid 1px; + min-height: 84px; + position: relative; + background: #fff; +} +.acf-file-uploader .file-icon { + position: absolute; + top: 0; + left: 0; + bottom: 0; + padding: 10px; + background: #F1F1F1; + border-right: #d5d9dd solid 1px; +} +.acf-file-uploader .file-icon img { + display: block; + padding: 0; + margin: 0; + max-width: 48px; +} +.acf-file-uploader .file-info { + padding: 10px; + margin-left: 69px; +} +.acf-file-uploader .file-info p { + margin: 0 0 2px; + font-size: 13px; + line-height: 1.4em; + word-break: break-all; +} +.acf-file-uploader .file-info a { + text-decoration: none; +} +.acf-file-uploader:hover .acf-actions { + display: block; +} +html[dir=rtl] .acf-file-uploader .file-icon { + left: auto; + right: 0; + border-left: #E5E5E5 solid 1px; + border-right: none; +} +html[dir=rtl] .acf-file-uploader .file-info { + margin-right: 69px; + margin-left: 0; +} + +/*--------------------------------------------------------------------------------------------- +* +* Date Picker +* +*---------------------------------------------------------------------------------------------*/ +.acf-ui-datepicker .ui-datepicker { + z-index: 900000 !important; +} +.acf-ui-datepicker .ui-datepicker .ui-widget-header a { + cursor: pointer; + transition: none; +} + +/* fix highlight state overriding hover / active */ +.acf-ui-datepicker .ui-state-highlight.ui-state-hover { + border: 1px solid #98b7e8 !important; + background: #98b7e8 !important; + font-weight: normal !important; + color: #ffffff !important; +} + +.acf-ui-datepicker .ui-state-highlight.ui-state-active { + border: 1px solid #3875d7 !important; + background: #3875d7 !important; + font-weight: normal !important; + color: #ffffff !important; +} + +/*--------------------------------------------------------------------------------------------- +* +* Separator field +* +*---------------------------------------------------------------------------------------------*/ +.acf-field-separator { + /* fields */ +} +.acf-field-separator .acf-label { + margin-bottom: 0; +} +.acf-field-separator .acf-label label { + font-weight: normal; +} +.acf-field-separator .acf-input { + display: none; +} +.acf-fields > .acf-field-separator { + background: #f9f9f9; + border-bottom: 1px solid #dfdfdf; + border-top: 1px solid #dfdfdf; + margin-bottom: -1px; + z-index: 2; +} + +/*--------------------------------------------------------------------------------------------- +* +* Taxonomy +* +*---------------------------------------------------------------------------------------------*/ +.acf-taxonomy-field { + position: relative; + /* hover */ + /* select */ +} +.acf-taxonomy-field .categorychecklist-holder { + border: #ccd0d4 solid 1px; + border-radius: 3px; + max-height: 200px; + overflow: auto; +} +.acf-taxonomy-field .acf-checkbox-list { + margin: 0; + padding: 10px; +} +.acf-taxonomy-field .acf-checkbox-list ul.children { + padding-left: 18px; +} +.acf-taxonomy-field:hover .acf-actions { + display: block; +} +.acf-taxonomy-field[data-ftype=select] .acf-actions { + padding: 0; + margin: -9px; +} + +/*--------------------------------------------------------------------------------------------- +* +* Range +* +*---------------------------------------------------------------------------------------------*/ +.acf-range-wrap { + /* rtl */ +} +.acf-range-wrap .acf-append, +.acf-range-wrap .acf-prepend { + display: inline-block; + vertical-align: middle; + line-height: 28px; + margin: 0 7px 0 0; +} +.acf-range-wrap .acf-append { + margin: 0 0 0 7px; +} +.acf-range-wrap input[type=range] { + display: inline-block; + padding: 0; + margin: 0; + vertical-align: middle; + height: 28px; +} +.acf-range-wrap input[type=range]:focus { + outline: none; +} +.acf-range-wrap input[type=number] { + display: inline-block; + min-width: 3em; + margin-left: 10px; + vertical-align: middle; +} +html[dir=rtl] .acf-range-wrap input[type=number] { + margin-right: 10px; + margin-left: 0; +} +html[dir=rtl] .acf-range-wrap .acf-append { + margin: 0 7px 0 0; +} +html[dir=rtl] .acf-range-wrap .acf-prepend { + margin: 0 0 0 7px; +} + +/*--------------------------------------------------------------------------------------------- +* +* acf-accordion +* +*---------------------------------------------------------------------------------------------*/ +.acf-accordion { + margin: -1px 0; + padding: 0; + background: #fff; + border-top: 1px solid #d5d9dd; + border-bottom: 1px solid #d5d9dd; + z-index: 1; +} +.acf-accordion .acf-accordion-title { + margin: 0; + padding: 12px; + font-weight: bold; + cursor: pointer; + font-size: inherit; + font-size: 13px; + line-height: 1.4em; +} +.acf-accordion .acf-accordion-title:hover { + background: #f3f4f5; +} +.acf-accordion .acf-accordion-title label { + margin: 0; + padding: 0; + font-size: 13px; + line-height: 1.4em; +} +.acf-accordion .acf-accordion-title p { + font-weight: normal; +} +.acf-accordion .acf-accordion-title .acf-accordion-icon { + float: right; +} +.acf-accordion .acf-accordion-title svg.acf-accordion-icon { + position: absolute; + right: 10px; + top: 50%; + transform: translateY(-50%); + color: #191e23; + fill: currentColor; +} +.acf-accordion .acf-accordion-content { + margin: 0; + padding: 0 12px 12px; + display: none; +} +.acf-accordion.-open > .acf-accordion-content { + display: block; +} + +.acf-field.acf-accordion { + margin: -1px 0; + padding: 0 !important; + border-color: #d5d9dd; +} +.acf-field.acf-accordion .acf-label.acf-accordion-title { + padding: 12px; + width: auto; + float: none; + width: auto; +} +.acf-field.acf-accordion .acf-input.acf-accordion-content { + padding: 0; + float: none; + width: auto; +} +.acf-field.acf-accordion .acf-input.acf-accordion-content > .acf-fields { + border-top: #eeeeee solid 1px; +} +.acf-field.acf-accordion .acf-input.acf-accordion-content > .acf-fields.-clear { + padding: 0 12px 15px; +} + +/* field specific (left) */ +.acf-fields.-left > .acf-field.acf-accordion:before { + display: none; +} +.acf-fields.-left > .acf-field.acf-accordion .acf-accordion-title { + width: auto; + margin: 0 !important; + padding: 12px; + float: none !important; +} +.acf-fields.-left > .acf-field.acf-accordion .acf-accordion-content { + padding: 0 !important; +} + +/* field specific (clear) */ +.acf-fields.-clear > .acf-field.acf-accordion { + border: #cccccc solid 1px; + background: transparent; +} +.acf-fields.-clear > .acf-field.acf-accordion + .acf-field.acf-accordion { + margin-top: -16px; +} + +/* table */ +tr.acf-field.acf-accordion { + background: transparent; +} +tr.acf-field.acf-accordion > .acf-input { + padding: 0 !important; + border: #cccccc solid 1px; +} +tr.acf-field.acf-accordion .acf-accordion-content { + padding: 0 12px 12px; +} + +/* #addtag */ +#addtag div.acf-field.error { + border: 0 none; + padding: 8px 0; +} + +#addtag > .acf-field.acf-accordion { + padding-right: 0; + margin-right: 5%; +} +#addtag > .acf-field.acf-accordion + p.submit { + margin-top: 0; +} + +/* border */ +tr.acf-accordion { + margin: 15px 0 !important; +} +tr.acf-accordion + tr.acf-accordion { + margin-top: -16px !important; +} + +/* seamless */ +.acf-postbox.seamless > .acf-fields > .acf-accordion { + margin-left: 12px; + margin-right: 12px; + border: #ccd0d4 solid 1px; +} + +/* rtl */ +/* menu item */ +/* +.menu-item-settings > .field-acf > .acf-field.acf-accordion { + border: #dfdfdf solid 1px; + margin: 10px -13px 10px -11px; + + + .acf-field.acf-accordion { + margin-top: -11px; + } +} +*/ +/* widget */ +.widget .widget-content > .acf-field.acf-accordion { + border: #dfdfdf solid 1px; + margin-bottom: 10px; +} +.widget .widget-content > .acf-field.acf-accordion .acf-accordion-title { + margin-bottom: 0; +} +.widget .widget-content > .acf-field.acf-accordion + .acf-field.acf-accordion { + margin-top: -11px; +} + +.media-modal .compat-attachment-fields .acf-field.acf-accordion + .acf-field.acf-accordion { + margin-top: -1px; +} +.media-modal .compat-attachment-fields .acf-field.acf-accordion > .acf-input { + width: 100%; +} +.media-modal .compat-attachment-fields .acf-field.acf-accordion .compat-attachment-fields > tbody > tr > td { + padding-bottom: 5px; +} + +/*--------------------------------------------------------------------------------------------- +* +* Block Editor +* +*---------------------------------------------------------------------------------------------*/ +.block-editor .edit-post-sidebar .acf-postbox > .postbox-header, +.block-editor .edit-post-sidebar .acf-postbox > .hndle { + border-bottom-width: 0 !important; +} +.block-editor .edit-post-sidebar .acf-postbox.closed > .postbox-header, +.block-editor .edit-post-sidebar .acf-postbox.closed > .hndle { + border-bottom-width: 1px !important; +} +.block-editor .edit-post-sidebar .acf-fields { + min-height: 1px; + overflow: auto; +} +.block-editor .edit-post-sidebar .acf-fields > .acf-field { + border-width: 0; + border-color: #e2e4e7; + margin: 16px; + padding: 0; + width: auto !important; + min-height: 0 !important; + float: none !important; +} +.block-editor .edit-post-sidebar .acf-fields > .acf-field > .acf-label { + margin-bottom: 5px; +} +.block-editor .edit-post-sidebar .acf-fields > .acf-field > .acf-label label { + font-weight: normal; +} +.block-editor .edit-post-sidebar .acf-fields > .acf-field.acf-accordion { + padding: 0; + margin: 0; + border-top-width: 1px; +} +.block-editor .edit-post-sidebar .acf-fields > .acf-field.acf-accordion:first-child { + border-top-width: 0; +} +.block-editor .edit-post-sidebar .acf-fields > .acf-field.acf-accordion .acf-accordion-title { + margin: 0; + padding: 15px; +} +.block-editor .edit-post-sidebar .acf-fields > .acf-field.acf-accordion .acf-accordion-title label { + font-weight: bold; +} +.block-editor .edit-post-sidebar .acf-fields > .acf-field.acf-accordion .acf-accordion-content > .acf-fields { + border-top-width: 0; +} + +/*-------------------------------------------------------------------------------------------- +* +* User +* +*--------------------------------------------------------------------------------------------*/ +.form-table > tbody { + /* field */ + /* tab wrap */ + /* misc */ +} +.form-table > tbody > .acf-field { + /* label */ + /* input */ +} +.form-table > tbody > .acf-field > .acf-label { + padding: 20px 10px 20px 0; + width: 210px; + /* rtl */ +} +html[dir=rtl] .form-table > tbody > .acf-field > .acf-label { + padding: 20px 0 20px 10px; +} +.form-table > tbody > .acf-field > .acf-label label { + font-size: 14px; + color: #23282d; +} +.form-table > tbody > .acf-field > .acf-input { + padding: 15px 10px; + /* rtl */ +} +html[dir=rtl] .form-table > tbody > .acf-field > .acf-input { + padding: 15px 10px 15px 5%; +} +.form-table > tbody > .acf-tab-wrap td { + padding: 15px 5% 15px 0; + /* rtl */ +} +html[dir=rtl] .form-table > tbody > .acf-tab-wrap td { + padding: 15px 0 15px 5%; +} +.form-table > tbody .form-table th.acf-th { + width: auto; +} + +#your-profile, +#createuser { + /* override for user css */ + /* allow sub fields to display correctly */ +} +#your-profile .acf-field input[type=text], +#your-profile .acf-field input[type=password], +#your-profile .acf-field input[type=number], +#your-profile .acf-field input[type=search], +#your-profile .acf-field input[type=email], +#your-profile .acf-field input[type=url], +#your-profile .acf-field select, +#createuser .acf-field input[type=text], +#createuser .acf-field input[type=password], +#createuser .acf-field input[type=number], +#createuser .acf-field input[type=search], +#createuser .acf-field input[type=email], +#createuser .acf-field input[type=url], +#createuser .acf-field select { + max-width: 25em; +} +#your-profile .acf-field textarea, +#createuser .acf-field textarea { + max-width: 500px; +} +#your-profile .acf-field .acf-field input[type=text], +#your-profile .acf-field .acf-field input[type=password], +#your-profile .acf-field .acf-field input[type=number], +#your-profile .acf-field .acf-field input[type=search], +#your-profile .acf-field .acf-field input[type=email], +#your-profile .acf-field .acf-field input[type=url], +#your-profile .acf-field .acf-field textarea, +#your-profile .acf-field .acf-field select, +#createuser .acf-field .acf-field input[type=text], +#createuser .acf-field .acf-field input[type=password], +#createuser .acf-field .acf-field input[type=number], +#createuser .acf-field .acf-field input[type=search], +#createuser .acf-field .acf-field input[type=email], +#createuser .acf-field .acf-field input[type=url], +#createuser .acf-field .acf-field textarea, +#createuser .acf-field .acf-field select { + max-width: none; +} + +#registerform h2 { + margin: 1em 0; +} +#registerform .acf-field { + margin-top: 0; + /* + .acf-input { + input { + font-size: 24px; + padding: 5px; + height: auto; + } + } + */ +} +#registerform .acf-field .acf-label { + margin-bottom: 0; +} +#registerform .acf-field .acf-label label { + font-weight: normal; + line-height: 1.5; +} +#registerform p.submit { + text-align: right; +} + +/*-------------------------------------------------------------------------------------------- +* +* Term +* +*--------------------------------------------------------------------------------------------*/ +#acf-term-fields { + padding-right: 5%; +} +#acf-term-fields > .acf-field > .acf-label { + margin: 0; +} +#acf-term-fields > .acf-field > .acf-label label { + font-size: 12px; + font-weight: normal; +} + +p.submit .spinner, +p.submit .acf-spinner { + vertical-align: top; + float: none; + margin: 4px 4px 0; +} + +#edittag .acf-fields.-left > .acf-field { + padding-left: 220px; +} +#edittag .acf-fields.-left > .acf-field:before { + width: 209px; +} +#edittag .acf-fields.-left > .acf-field > .acf-label { + width: 220px; + margin-left: -220px; + padding: 0 10px; +} +#edittag .acf-fields.-left > .acf-field > .acf-input { + padding: 0; +} + +#edittag > .acf-fields.-left { + width: 96%; +} +#edittag > .acf-fields.-left > .acf-field > .acf-label { + padding-left: 0; +} + +/*-------------------------------------------------------------------------------------------- +* +* Comment +* +*--------------------------------------------------------------------------------------------*/ +.editcomment td:first-child { + white-space: nowrap; + width: 131px; +} + +/*-------------------------------------------------------------------------------------------- +* +* Widget +* +*--------------------------------------------------------------------------------------------*/ +#widgets-right .widget .acf-field .description { + padding-left: 0; + padding-right: 0; +} + +.acf-widget-fields > .acf-field .acf-label { + margin-bottom: 5px; +} +.acf-widget-fields > .acf-field .acf-label label { + font-weight: normal; + margin: 0; +} + +/*-------------------------------------------------------------------------------------------- +* +* Nav Menu +* +*--------------------------------------------------------------------------------------------*/ +.acf-menu-settings { + border-top: 1px solid #eee; + margin-top: 2em; +} +.acf-menu-settings.-seamless { + border-top: none; + margin-top: 15px; +} +.acf-menu-settings.-seamless > h2 { + display: none; +} +.acf-menu-settings .list li { + display: block; + margin-bottom: 0; +} + +.acf-fields.acf-menu-item-fields { + clear: both; + padding-top: 1px; +} +.acf-fields.acf-menu-item-fields > .acf-field { + margin: 5px 0; + padding-right: 10px; +} +.acf-fields.acf-menu-item-fields > .acf-field .acf-label { + margin-bottom: 0; +} +.acf-fields.acf-menu-item-fields > .acf-field .acf-label label { + font-style: italic; + font-weight: normal; +} + +/*--------------------------------------------------------------------------------------------- +* +* Attachment Form (single) +* +*---------------------------------------------------------------------------------------------*/ +#post .compat-attachment-fields .compat-field-acf-form-data { + display: none; +} +#post .compat-attachment-fields, +#post .compat-attachment-fields > tbody, +#post .compat-attachment-fields > tbody > tr, +#post .compat-attachment-fields > tbody > tr > th, +#post .compat-attachment-fields > tbody > tr > td { + display: block; +} +#post .compat-attachment-fields > tbody > .acf-field { + margin: 15px 0; +} +#post .compat-attachment-fields > tbody > .acf-field > .acf-label { + margin: 0; +} +#post .compat-attachment-fields > tbody > .acf-field > .acf-label label { + margin: 0; + padding: 0; +} +#post .compat-attachment-fields > tbody > .acf-field > .acf-label label p { + margin: 0 0 3px !important; +} +#post .compat-attachment-fields > tbody > .acf-field > .acf-input { + margin: 0; +} + +/*--------------------------------------------------------------------------------------------- +* +* Media Model +* +*---------------------------------------------------------------------------------------------*/ +/* WP sets tables to act as divs. ACF uses tables, so these muct be reset */ +.media-modal .compat-attachment-fields td.acf-input table { + display: table; + table-layout: auto; +} +.media-modal .compat-attachment-fields td.acf-input table tbody { + display: table-row-group; +} +.media-modal .compat-attachment-fields td.acf-input table tr { + display: table-row; +} +.media-modal .compat-attachment-fields td.acf-input table td, .media-modal .compat-attachment-fields td.acf-input table th { + display: table-cell; +} + +/* field widths floats */ +.media-modal .compat-attachment-fields > tbody > .acf-field { + margin: 5px 0; +} +.media-modal .compat-attachment-fields > tbody > .acf-field > .acf-label { + min-width: 30%; + margin: 0; + padding: 0; + float: left; + text-align: right; + display: block; + float: left; +} +.media-modal .compat-attachment-fields > tbody > .acf-field > .acf-label > label { + padding-top: 6px; + margin: 0; + color: #666666; + font-weight: 400; + line-height: 16px; +} +.media-modal .compat-attachment-fields > tbody > .acf-field > .acf-input { + width: 65%; + margin: 0; + padding: 0; + float: right; + display: block; +} +.media-modal .compat-attachment-fields > tbody > .acf-field p.description { + margin: 0; +} + +/* restricted selection (copy of WP .upload-errors)*/ +.acf-selection-error { + background: #ffebe8; + border: 1px solid #c00; + border-radius: 3px; + padding: 8px; + margin: 20px 0 0; +} +.acf-selection-error .selection-error-label { + background: #CC0000; + border-radius: 3px; + color: #fff; + font-weight: bold; + margin-right: 8px; + padding: 2px 4px; +} +.acf-selection-error .selection-error-message { + color: #b44; + display: block; + padding-top: 8px; + word-wrap: break-word; + white-space: pre-wrap; +} + +/* disabled attachment */ +.media-modal .attachment.acf-disabled .thumbnail { + opacity: 0.25 !important; +} +.media-modal .attachment.acf-disabled .attachment-preview:before { + background: rgba(0, 0, 0, 0.15); + z-index: 1; + position: relative; +} + +/* misc */ +.media-modal { + /* compat-item */ + /* allow line breaks in upload error */ + /* fix required span */ + /* sidebar */ + /* mobile md */ +} +.media-modal .compat-field-acf-form-data, +.media-modal .compat-field-acf-blank { + display: none !important; +} +.media-modal .upload-error-message { + white-space: pre-wrap; +} +.media-modal .acf-required { + padding: 0 !important; + margin: 0 !important; + float: none !important; + color: #f00 !important; +} +.media-modal .media-sidebar .compat-item { + padding-bottom: 20px; +} +@media (max-width: 900px) { + .media-modal { + /* label */ + /* field */ + } + .media-modal .setting span, +.media-modal .compat-attachment-fields > tbody > .acf-field > .acf-label { + width: 98%; + float: none; + text-align: left; + min-height: 0; + padding: 0; + } + .media-modal .setting input, +.media-modal .setting textarea, +.media-modal .compat-attachment-fields > tbody > .acf-field > .acf-input { + float: none; + height: auto; + max-width: none; + width: 98%; + } +} + +/*--------------------------------------------------------------------------------------------- +* +* Media Model (expand details) +* +*---------------------------------------------------------------------------------------------*/ +.media-modal .acf-expand-details { + float: right; + padding: 8px 10px; + margin-right: 6px; + font-size: 13px; + height: 18px; + line-height: 18px; + color: #666; + text-decoration: none; +} +.media-modal .acf-expand-details:focus, .media-modal .acf-expand-details:active { + outline: 0 none; + box-shadow: none; + color: #666; +} +.media-modal .acf-expand-details:hover { + color: #000; +} +.media-modal .acf-expand-details .is-open { + display: none; +} +.media-modal .acf-expand-details .is-closed { + display: block; +} +@media (max-width: 640px) { + .media-modal .acf-expand-details { + display: none; + } +} + +/* expanded */ +.media-modal.acf-expanded { + /* toggle */ +} +.media-modal.acf-expanded .acf-expand-details .is-open { + display: block; +} +.media-modal.acf-expanded .acf-expand-details .is-closed { + display: none; +} +.media-modal.acf-expanded .attachments-browser .media-toolbar, +.media-modal.acf-expanded .attachments-browser .attachments { + right: 740px; +} +.media-modal.acf-expanded .media-sidebar { + width: 708px; +} +.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail { + float: left; + max-height: none; +} +.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail img { + max-width: 100%; + max-height: 200px; +} +.media-modal.acf-expanded .media-sidebar .attachment-info .details { + float: right; +} +.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail, +.media-modal.acf-expanded .media-sidebar .attachment-details .setting .name, +.media-modal.acf-expanded .media-sidebar .compat-attachment-fields > tbody > .acf-field > .acf-label { + min-width: 20%; + margin-right: 0; +} +.media-modal.acf-expanded .media-sidebar .attachment-info .details, +.media-modal.acf-expanded .media-sidebar .attachment-details .setting input, +.media-modal.acf-expanded .media-sidebar .attachment-details .setting textarea, +.media-modal.acf-expanded .media-sidebar .attachment-details .setting + .description, +.media-modal.acf-expanded .media-sidebar .compat-attachment-fields > tbody > .acf-field > .acf-input { + min-width: 77%; +} +@media (max-width: 900px) { + .media-modal.acf-expanded .attachments-browser .media-toolbar { + display: none; + } + .media-modal.acf-expanded .attachments { + display: none; + } + .media-modal.acf-expanded .media-sidebar { + width: auto; + max-width: none !important; + bottom: 0 !important; + } + .media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail { + min-width: 0; + max-width: none; + width: 30%; + } + .media-modal.acf-expanded .media-sidebar .attachment-info .details { + min-width: 0; + max-width: none; + width: 67%; + } +} +@media (max-width: 640px) { + .media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail, .media-modal.acf-expanded .media-sidebar .attachment-info .details { + width: 100%; + } +} + +/*--------------------------------------------------------------------------------------------- +* +* ACF Media Model +* +*---------------------------------------------------------------------------------------------*/ +.acf-media-modal { + /* hide embed settings */ +} +.acf-media-modal .media-embed .setting.align, +.acf-media-modal .media-embed .setting.link-to { + display: none; +} + +/*--------------------------------------------------------------------------------------------- +* +* ACF Media Model (Select Mode) +* +*---------------------------------------------------------------------------------------------*/ +/*--------------------------------------------------------------------------------------------- +* +* ACF Media Model (Edit Mode) +* +*---------------------------------------------------------------------------------------------*/ +.acf-media-modal.-edit { + /* resize modal */ + left: 15%; + right: 15%; + top: 100px; + bottom: 100px; + /* hide elements */ + /* full width */ + /* tidy up incorrect distance */ + /* title box shadow (to match media grid) */ + /* sidebar */ + /* mobile md */ + /* mobile sm */ +} +.acf-media-modal.-edit .media-frame-menu, +.acf-media-modal.-edit .media-frame-router, +.acf-media-modal.-edit .media-frame-content .attachments, +.acf-media-modal.-edit .media-frame-content .media-toolbar { + display: none; +} +.acf-media-modal.-edit .media-frame-title, +.acf-media-modal.-edit .media-frame-content, +.acf-media-modal.-edit .media-frame-toolbar, +.acf-media-modal.-edit .media-sidebar { + width: auto; + left: 0; + right: 0; +} +.acf-media-modal.-edit .media-frame-content { + top: 50px; +} +.acf-media-modal.-edit .media-frame-title { + border-bottom: 1px solid #DFDFDF; + box-shadow: 0 4px 4px -4px rgba(0, 0, 0, 0.1); +} +.acf-media-modal.-edit .media-sidebar { + padding: 0 16px; + /* WP details */ + /* ACF fields */ + /* WP required message */ +} +.acf-media-modal.-edit .media-sidebar .attachment-details { + overflow: visible; + /* hide 'Attachment Details' heading */ + /* remove overflow */ + /* move thumbnail */ +} +.acf-media-modal.-edit .media-sidebar .attachment-details > h3, .acf-media-modal.-edit .media-sidebar .attachment-details > h2 { + display: none; +} +.acf-media-modal.-edit .media-sidebar .attachment-details .attachment-info { + background: #fff; + border-bottom: #dddddd solid 1px; + padding: 16px; + margin: 0 -16px 16px; +} +.acf-media-modal.-edit .media-sidebar .attachment-details .thumbnail { + margin: 0 16px 0 0; +} +.acf-media-modal.-edit .media-sidebar .attachment-details .setting { + margin: 0 0 5px; +} +.acf-media-modal.-edit .media-sidebar .attachment-details .setting span { + margin: 0; +} +.acf-media-modal.-edit .media-sidebar .compat-attachment-fields > tbody > .acf-field { + margin: 0 0 5px; +} +.acf-media-modal.-edit .media-sidebar .compat-attachment-fields > tbody > .acf-field p.description { + margin-top: 3px; +} +.acf-media-modal.-edit .media-sidebar .media-types-required-info { + display: none; +} +@media (max-width: 900px) { + .acf-media-modal.-edit { + top: 30px; + right: 30px; + bottom: 30px; + left: 30px; + } +} +@media (max-width: 640px) { + .acf-media-modal.-edit { + top: 0; + right: 0; + bottom: 0; + left: 0; + } +} +@media (max-width: 480px) { + .acf-media-modal.-edit .media-frame-content { + top: 40px; + } +} + +.acf-temp-remove { + position: relative; + opacity: 1; + -webkit-transition: all 0.25s ease; + -moz-transition: all 0.25s ease; + -o-transition: all 0.25s ease; + transition: all 0.25s ease; + overflow: hidden; + /* overlay prevents hover */ +} +.acf-temp-remove:after { + display: block; + content: ""; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 99; +} + +.hidden-by-conditional-logic { + display: none !important; +} +.hidden-by-conditional-logic.appear-empty { + display: table-cell !important; +} +.hidden-by-conditional-logic.appear-empty .acf-input { + display: none !important; +} + +.acf-postbox.acf-hidden { + display: none !important; +} + +.acf-attention { + transition: border 0.25s ease-out; +} +.acf-attention.-focused { + border: #23282d solid 1px !important; + transition: none; +} + +tr.acf-attention { + transition: box-shadow 0.25s ease-out; + position: relative; +} +tr.acf-attention.-focused { + box-shadow: #23282d 0 0 0px 1px !important; +} + +#editor .edit-post-layout__metaboxes { + padding: 0; +} +#editor .edit-post-layout__metaboxes .edit-post-meta-boxes-area { + margin: 0; +} +#editor .metabox-location-side .postbox-container { + float: none; +} +#editor .postbox { + color: #444; +} +#editor .postbox > .postbox-header .hndle { + border-bottom: none; +} +#editor .postbox > .postbox-header .hndle:hover { + background: transparent; +} +#editor .postbox > .postbox-header .handle-actions .handle-order-higher, +#editor .postbox > .postbox-header .handle-actions .handle-order-lower { + width: 1.62rem; +} +#editor .postbox > .postbox-header .handle-actions .acf-hndle-cog { + height: 44px; + line-height: 44px; +} +#editor .postbox > .postbox-header:hover { + background: #f0f0f0; +} +#editor .postbox:last-child.closed > .postbox-header { + border-bottom: none; +} +#editor .postbox:last-child > .inside { + border-bottom: none; +} +#editor .block-editor-writing-flow__click-redirect { + min-height: 50px; +} + +body.is-dragging-metaboxes #acf_after_title-sortables { + outline: 3px dashed #646970; + display: flow-root; + min-height: 60px; + margin-bottom: 3px !important; +} \ No newline at end of file diff --git a/assets/build/css/acf-input.min.css b/assets/build/css/acf-input.min.css new file mode 100644 index 0000000..d1da899 --- /dev/null +++ b/assets/build/css/acf-input.min.css @@ -0,0 +1 @@ +.acf-field,.acf-field .acf-input,.acf-field .acf-label{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative}.acf-field{margin:15px 0;clear:both}.acf-field p.description{display:block;margin:0;padding:0}.acf-field .acf-label{vertical-align:top;margin:0 0 10px}.acf-field .acf-label label{display:block;font-weight:700;margin:0 0 3px;padding:0}.acf-field .acf-label:empty{margin-bottom:0}.acf-field .acf-input{vertical-align:top}.acf-field .acf-input>p.description{margin-top:5px}.acf-field .acf-notice{margin:0 0 15px;background:#edf2ff;color:#0c6ca0;border-color:#2183b9}.acf-field .acf-notice.-error{background:#ffe6e6;color:#cc2727;border-color:#d12626}.acf-field .acf-notice.-success{background:#eefbe8;color:#0e7b17;border-color:#32a23b}.acf-field .acf-notice.-warning{background:#fff3e6;color:#bd4b0e;border-color:#d16226}td.acf-field,tr.acf-field{margin:0}.acf-field[data-width]{float:left;clear:none}.acf-field[data-width]+.acf-field[data-width]{border-left:1px solid #eee}html[dir=rtl] .acf-field[data-width]{float:right}html[dir=rtl] .acf-field[data-width]+.acf-field[data-width]{border-left:none;border-right:1px solid #eee}td.acf-field[data-width],tr.acf-field[data-width]{float:none}.acf-field.-c0{clear:both;border-left-width:0!important}html[dir=rtl] .acf-field.-c0{border-left-width:1px!important;border-right-width:0!important}.acf-field.-r0{border-top-width:0!important}.acf-fields{position:relative}.acf-fields:after{display:block;clear:both;content:""}.acf-fields.-border{border:#ccd0d4 solid 1px;background:#fff}.acf-fields>.acf-field{position:relative;margin:0;padding:15px 12px;border-top:#eee solid 1px}.acf-fields>.acf-field:first-child{border-top:none;margin-top:0}td.acf-fields{padding:0!important}.acf-fields.-clear>.acf-field{border:none;padding:0;margin:15px 0}.acf-fields.-clear>.acf-field[data-width]{border:none!important}.acf-fields.-clear>.acf-field>.acf-label{padding:0}.acf-fields.-clear>.acf-field>.acf-input{padding:0}.acf-fields.-left>.acf-field{padding:15px 0}.acf-fields.-left>.acf-field:after{display:block;clear:both;content:""}.acf-fields.-left>.acf-field:before{content:"";display:block;position:absolute;z-index:0;background:#f9f9f9;border-color:#e1e1e1;border-style:solid;border-width:0 1px 0 0;top:0;bottom:0;left:0;width:20%}.acf-fields.-left>.acf-field[data-width]{float:none;width:auto!important;border-left-width:0!important;border-right-width:0!important}.acf-fields.-left>.acf-field>.acf-label{float:left;width:20%;margin:0;padding:0 12px}.acf-fields.-left>.acf-field>.acf-input{float:left;width:80%;margin:0;padding:0 12px}html[dir=rtl] .acf-fields.-left>.acf-field:before{border-width:0 0 0 1px;left:auto;right:0}html[dir=rtl] .acf-fields.-left>.acf-field>.acf-label{float:right}html[dir=rtl] .acf-fields.-left>.acf-field>.acf-input{float:right}#side-sortables .acf-fields.-left>.acf-field:before{display:none}#side-sortables .acf-fields.-left>.acf-field>.acf-label{width:100%;margin-bottom:10px}#side-sortables .acf-fields.-left>.acf-field>.acf-input{width:100%}@media screen and (max-width:640px){.acf-fields.-left>.acf-field:before{display:none}.acf-fields.-left>.acf-field>.acf-label{width:100%;margin-bottom:10px}.acf-fields.-left>.acf-field>.acf-input{width:100%}}.acf-fields.-clear.-left>.acf-field{padding:0;border:none}.acf-fields.-clear.-left>.acf-field:before{display:none}.acf-fields.-clear.-left>.acf-field>.acf-label{padding:0}.acf-fields.-clear.-left>.acf-field>.acf-input{padding:0}.acf-table tr.acf-field>td.acf-label{padding:15px 12px;margin:0;background:#f9f9f9;width:20%}.acf-table tr.acf-field>td.acf-input{padding:15px 12px;margin:0;border-left-color:#e1e1e1}.acf-sortable-tr-helper{position:relative!important;display:table-row!important}.acf-postbox{position:relative}.acf-postbox>.inside{margin:0!important;padding:0!important}.acf-postbox .acf-hndle-cog{color:#72777c;font-size:16px;line-height:36px;height:36px;width:1.62rem;position:relative;display:none}.acf-postbox .acf-hndle-cog:hover{color:#191e23}.acf-postbox>.hndle:hover .acf-hndle-cog,.acf-postbox>.postbox-header:hover .acf-hndle-cog{display:inline-block}.acf-postbox>.hndle .acf-hndle-cog{height:20px;line-height:20px;float:right;width:auto}.acf-postbox>.hndle .acf-hndle-cog:hover{color:#777}.acf-postbox .acf-replace-with-fields{padding:15px;text-align:center}#post-body-content #acf_after_title-sortables{margin:20px 0 -20px}.acf-postbox.seamless{border:0 none;background:0 0;box-shadow:none}.acf-postbox.seamless>.handlediv,.acf-postbox.seamless>.hndle,.acf-postbox.seamless>.postbox-header{display:none!important}.acf-postbox.seamless>.inside{display:block!important;margin-left:-12px!important;margin-right:-12px!important}.acf-postbox.seamless>.inside>.acf-field{border-color:transparent}.acf-postbox.seamless>.acf-fields.-left>.acf-field:before{display:none}@media screen and (max-width:782px){.acf-postbox.seamless>.acf-fields.-left>.acf-field>.acf-input,.acf-postbox.seamless>.acf-fields.-left>.acf-field>.acf-label{padding:0}}.acf-field input[type=date],.acf-field input[type=datetime-local],.acf-field input[type=datetime],.acf-field input[type=email],.acf-field input[type=month],.acf-field input[type=number],.acf-field input[type=password],.acf-field input[type=search],.acf-field input[type=tel],.acf-field input[type=text],.acf-field input[type=time],.acf-field input[type=url],.acf-field input[type=week],.acf-field select,.acf-field textarea{width:100%;padding:4px 8px;margin:0;box-sizing:border-box;font-size:14px;line-height:1.4}.acf-admin-3-8 .acf-field input[type=date],.acf-admin-3-8 .acf-field input[type=datetime-local],.acf-admin-3-8 .acf-field input[type=datetime],.acf-admin-3-8 .acf-field input[type=email],.acf-admin-3-8 .acf-field input[type=month],.acf-admin-3-8 .acf-field input[type=number],.acf-admin-3-8 .acf-field input[type=password],.acf-admin-3-8 .acf-field input[type=search],.acf-admin-3-8 .acf-field input[type=tel],.acf-admin-3-8 .acf-field input[type=text],.acf-admin-3-8 .acf-field input[type=time],.acf-admin-3-8 .acf-field input[type=url],.acf-admin-3-8 .acf-field input[type=week],.acf-admin-3-8 .acf-field select,.acf-admin-3-8 .acf-field textarea{padding:3px 5px}.acf-field textarea{resize:vertical}body.acf-browser-firefox .acf-field select{padding:4px 5px}.acf-input-append,.acf-input-prepend,.acf-input-wrap{box-sizing:border-box}.acf-input-append,.acf-input-prepend{font-size:14px;line-height:1.4;padding:4px 8px;background:#f5f5f5;border:#7e8993 solid 1px;min-height:30px}.acf-admin-3-8 .acf-input-append,.acf-admin-3-8 .acf-input-prepend{padding:3px 5px;border-color:#ddd;min-height:28px}.acf-input-prepend{float:left;border-right-width:0;border-radius:3px 0 0 3px}.acf-input-append{float:right;border-left-width:0;border-radius:0 3px 3px 0}.acf-input-wrap{position:relative;overflow:hidden}.acf-input-wrap .acf-is-prepended{border-radius:0 3px 3px 0!important}.acf-input-wrap .acf-is-appended{border-radius:3px 0 0 3px!important}.acf-input-wrap .acf-is-prepended.acf-is-appended{border-radius:0!important}html[dir=rtl] .acf-input-prepend{border-left-width:0;border-right-width:1px;border-radius:0 3px 3px 0;float:right}html[dir=rtl] .acf-input-append{border-left-width:1px;border-right-width:0;border-radius:3px 0 0 3px;float:left}html[dir=rtl] input.acf-is-prepended{border-radius:3px 0 0 3px!important}html[dir=rtl] input.acf-is-appended{border-radius:0 3px 3px 0!important}html[dir=rtl] input.acf-is-prepended.acf-is-appended{border-radius:0!important}.acf-color-picker .wp-color-result{border-color:#7e8993}.acf-admin-3-8 .acf-color-picker .wp-color-result{border-color:#ccd0d4}.acf-color-picker .wp-picker-active{position:relative;z-index:1}.acf-url i{position:absolute;top:5px;left:5px;opacity:.5;color:#7e8993}.acf-url input[type=url]{padding-left:27px!important}.acf-url.-valid i{opacity:1}.select2-container.-acf .select2-choices{background:#fff;border-color:#ddd;box-shadow:0 1px 2px rgba(0,0,0,.07) inset;min-height:31px}.select2-container.-acf .select2-choices .select2-search-choice{margin:5px 0 5px 5px;padding:3px 5px 3px 18px;border-color:#bbb;background:#f9f9f9;box-shadow:0 1px 0 rgba(255,255,255,.25) inset}.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-helper{background:#5897fb;border-color:#3f87fa;color:#fff;box-shadow:0 0 3px rgba(0,0,0,.1)}.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-helper a{visibility:hidden}.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-placeholder{background-color:#f7f7f7;border-color:#f7f7f7;visibility:visible!important}.select2-container.-acf .select2-choices .select2-search-choice-focus{border-color:#999}.select2-container.-acf .select2-choices .select2-search-field input{height:31px;line-height:22px;margin:0;padding:5px 5px 5px 7px}.select2-container.-acf .select2-choice{border-color:#bbb}.select2-container.-acf .select2-choice .select2-arrow{background:0 0;border-left-color:#dfdfdf;padding-left:1px}.select2-container.-acf .select2-choice .select2-result-description{display:none}.select2-container.-acf.select2-container-active .select2-choices,.select2-container.-acf.select2-dropdown-open .select2-choices{border-color:#5b9dd9;border-radius:3px 3px 0 0}.select2-container.-acf.select2-dropdown-open .select2-choice{background:#fff;border-color:#5b9dd9}html[dir=rtl] .select2-container.-acf .select2-search-choice-close{left:24px}html[dir=rtl] .select2-container.-acf .select2-choice>.select2-chosen{margin-left:42px}html[dir=rtl] .select2-container.-acf .select2-choice .select2-arrow{padding-left:0;padding-right:1px}.select2-drop .select2-search{padding:4px 4px 0}.select2-drop .select2-result .select2-result-description{color:#999;font-size:12px;margin-left:5px}.select2-drop .select2-result.select2-highlighted .select2-result-description{color:#fff;opacity:.75}.select2-container.-acf li{margin-bottom:0}.select2-container.-acf .select2-selection{border-color:#7e8993}.acf-admin-3-8 .select2-container.-acf .select2-selection{border-color:#aaa}.select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child{float:none}.select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child input{width:100%!important}.select2-container.-acf .select2-selection--multiple .select2-selection__rendered{padding-right:0}.select2-container.-acf .select2-selection--multiple .select2-selection__choice{background-color:#f7f7f7;border-color:#ccc;max-width:100%;overflow:hidden;word-wrap:normal!important;white-space:normal}.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-helper{background:#5897fb;border-color:#3f87fa;color:#fff;box-shadow:0 0 3px rgba(0,0,0,.1)}.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-helper span{visibility:hidden}.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-placeholder{background-color:#f7f7f7;border-color:#f7f7f7;visibility:visible!important}.select2-container.-acf .select2-selection--multiple .select2-search__field{box-shadow:none!important;min-height:0}.acf-row .select2-container.-acf .select2-selection--single{overflow:hidden}.acf-row .select2-container.-acf .select2-selection--single .select2-selection__rendered{white-space:normal}.select2-container .select2-dropdown{z-index:900000}.select2-container .select2-dropdown .select2-search__field{line-height:1.4;min-height:0}.acf-link .link-wrap{display:none;border:#ccd0d4 solid 1px;border-radius:3px;padding:5px;line-height:26px;background:#fff;word-wrap:break-word;word-break:break-all}.acf-link .link-wrap .link-title{padding:0 5px}.acf-link.-value .button{display:none}.acf-link.-value .acf-icon.-link-ext{display:none}.acf-link.-value .link-wrap{display:inline-block}.acf-link.-external .acf-icon.-link-ext{display:inline-block}#wp-link-backdrop{z-index:900000!important}#wp-link-wrap{z-index:900001!important}ul.acf-checkbox-list,ul.acf-radio-list{background:0 0;position:relative;padding:1px;margin:0}ul.acf-checkbox-list li,ul.acf-radio-list li{font-size:13px;line-height:22px;margin:0;position:relative;word-wrap:break-word}ul.acf-checkbox-list li label,ul.acf-radio-list li label{display:inline}ul.acf-checkbox-list li input[type=checkbox],ul.acf-checkbox-list li input[type=radio],ul.acf-radio-list li input[type=checkbox],ul.acf-radio-list li input[type=radio]{margin:-1px 4px 0 0;vertical-align:middle}ul.acf-checkbox-list li input[type=text],ul.acf-radio-list li input[type=text]{width:auto;vertical-align:middle;margin:2px 0}ul.acf-checkbox-list li span,ul.acf-radio-list li span{float:none}ul.acf-checkbox-list li i,ul.acf-radio-list li i{vertical-align:middle}ul.acf-checkbox-list.acf-hl li,ul.acf-radio-list.acf-hl li{margin-right:20px;clear:none}html[dir=rtl] ul.acf-checkbox-list input[type=checkbox],html[dir=rtl] ul.acf-checkbox-list input[type=radio],html[dir=rtl] ul.acf-radio-list input[type=checkbox],html[dir=rtl] ul.acf-radio-list input[type=radio]{margin-left:4px;margin-right:0}.acf-button-group{display:inline-block}.acf-button-group label{display:inline-block;border:#7e8993 solid 1px;position:relative;z-index:1;padding:5px 10px;background:#fff}.acf-button-group label:hover{color:#016087;background:#f3f5f6;border-color:#0071a1;z-index:2}.acf-button-group label.selected{border-color:#007cba;background:#008dd4;color:#fff;z-index:2}.acf-button-group input{display:none!important}.acf-button-group{padding-left:1px;display:inline-flex;flex-direction:row;flex-wrap:nowrap}.acf-button-group label{margin:0 0 0 -1px;flex:1;text-align:center;white-space:nowrap}.acf-button-group label:first-child{border-radius:3px 0 0 3px}html[dir=rtl] .acf-button-group label:first-child{border-radius:0 3px 3px 0}.acf-button-group label:last-child{border-radius:0 3px 3px 0}html[dir=rtl] .acf-button-group label:last-child{border-radius:3px 0 0 3px}.acf-button-group label:only-child{border-radius:3px}.acf-button-group.-vertical{padding-left:0;padding-top:1px;flex-direction:column}.acf-button-group.-vertical label{margin:-1px 0 0 0}.acf-button-group.-vertical label:first-child{border-radius:3px 3px 0 0}.acf-button-group.-vertical label:last-child{border-radius:0 0 3px 3px}.acf-button-group.-vertical label:only-child{border-radius:3px}.acf-admin-3-8 .acf-button-group label{border-color:#ccd0d4}.acf-admin-3-8 .acf-button-group label:hover{border-color:#0071a1}.acf-admin-3-8 .acf-button-group label.selected{border-color:#007cba}.acf-checkbox-list .button{margin:10px 0 0}.acf-switch{display:inline-block;border-radius:5px;cursor:pointer;position:relative;background:#f5f5f5;height:30px;vertical-align:middle;border:#7e8993 solid 1px;-webkit-transition:background .25s ease;-moz-transition:background .25s ease;-o-transition:background .25s ease;transition:background .25s ease}.acf-switch span{display:inline-block;float:left;text-align:center;font-size:13px;line-height:22px;padding:4px 10px;min-width:15px}.acf-switch span i{vertical-align:middle}.acf-switch .acf-switch-on{color:#fff;text-shadow:#007cba 0 1px 0}.acf-switch .acf-switch-slider{position:absolute;top:2px;left:2px;bottom:2px;right:50%;z-index:1;background:#fff;border-radius:3px;border:#7e8993 solid 1px;-webkit-transition:all .25s ease;-moz-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;transition-property:left,right}.acf-switch.-focus,.acf-switch:hover{border-color:#0071a1;background:#f3f5f6;color:#016087}.acf-switch.-focus .acf-switch-slider,.acf-switch:hover .acf-switch-slider{border-color:#0071a1}.acf-switch.-on{background:#0d99d5;border-color:#007cba}.acf-switch.-on .acf-switch-slider{left:50%;right:2px;border-color:#007cba}.acf-switch.-on:hover{border-color:#007cba}.acf-switch+span{margin-left:6px}.acf-admin-3-8 .acf-switch{border-color:#ccd0d4}.acf-admin-3-8 .acf-switch .acf-switch-slider{border-color:#ccd0d4}.acf-admin-3-8 .acf-switch.-focus,.acf-admin-3-8 .acf-switch:hover{border-color:#0071a1}.acf-admin-3-8 .acf-switch.-focus .acf-switch-slider,.acf-admin-3-8 .acf-switch:hover .acf-switch-slider{border-color:#0071a1}.acf-admin-3-8 .acf-switch.-on{border-color:#007cba}.acf-admin-3-8 .acf-switch.-on .acf-switch-slider{border-color:#007cba}.acf-admin-3-8 .acf-switch.-on:hover{border-color:#007cba}.acf-switch-input{opacity:0;position:absolute;margin:0}.compat-item .acf-true-false .message{float:none;padding:0;vertical-align:middle}.acf-google-map{position:relative;border:#ccd0d4 solid 1px;background:#fff}.acf-google-map .title{position:relative;border-bottom:#ccd0d4 solid 1px}.acf-google-map .title .search{margin:0;font-size:14px;line-height:30px;height:40px;padding:5px 10px;border:0 none;box-shadow:none;border-radius:0;font-family:inherit;cursor:text}.acf-google-map .title .acf-loading{position:absolute;top:10px;right:11px;display:none}.acf-google-map .title .acf-icon:active{display:inline-block!important}.acf-google-map .canvas{height:400px}.acf-google-map:hover .title .acf-actions{display:block}.acf-google-map .title .acf-icon.-location{display:inline-block}.acf-google-map .title .acf-icon.-cancel,.acf-google-map .title .acf-icon.-search{display:none}.acf-google-map.-value .title .search{font-weight:700}.acf-google-map.-value .title .acf-icon.-location{display:none}.acf-google-map.-value .title .acf-icon.-cancel{display:inline-block}.acf-google-map.-searching .title .acf-icon.-location{display:none}.acf-google-map.-searching .title .acf-icon.-cancel,.acf-google-map.-searching .title .acf-icon.-search{display:inline-block}.acf-google-map.-searching .title .acf-actions{display:block}.acf-google-map.-searching .title .search{font-weight:400!important}.acf-google-map.-loading .title a{display:none!important}.acf-google-map.-loading .title i{display:inline-block}.pac-container{border-width:1px 0;box-shadow:none}.pac-container:after{display:none}.pac-container .pac-item:first-child{border-top:0 none}.pac-container .pac-item{padding:5px 10px;cursor:pointer}html[dir=rtl] .pac-container .pac-item{text-align:right}.acf-relationship{background:#fff;border:#ccd0d4 solid 1px}.acf-relationship .filters{border-bottom:#ccd0d4 solid 1px;background:#fff}.acf-relationship .filters:after{display:block;clear:both;content:""}.acf-relationship .filters .filter{margin:0;padding:0;float:left;width:100%;box-sizing:border-box;padding:7px 7px 7px 0}.acf-relationship .filters .filter:first-child{padding-left:7px}.acf-relationship .filters .filter input,.acf-relationship .filters .filter select{margin:0;float:none}.acf-relationship .filters .filter input:active,.acf-relationship .filters .filter input:focus,.acf-relationship .filters .filter select:active,.acf-relationship .filters .filter select:focus{outline:0;box-shadow:none}.acf-relationship .filters .filter input{border-color:transparent;box-shadow:none;padding-left:3px;padding-right:3px}.acf-relationship .filters.-f2 .filter{width:50%}.acf-relationship .filters.-f3 .filter{width:25%}.acf-relationship .filters.-f3 .filter.-search{width:50%}.acf-relationship .list{margin:0;padding:5px;height:160px;overflow:auto}.acf-relationship .list .acf-rel-item,.acf-relationship .list .acf-rel-label,.acf-relationship .list p{padding:5px;margin:0;display:block;position:relative;min-height:18px}.acf-relationship .list .acf-rel-label{font-weight:700}.acf-relationship .list .acf-rel-item{cursor:pointer}.acf-relationship .list .acf-rel-item b{text-decoration:underline;font-weight:400}.acf-relationship .list .acf-rel-item .thumbnail{background:#e0e0e0;width:22px;height:22px;float:left;margin:-2px 5px 0 0}.acf-relationship .list .acf-rel-item .thumbnail img{max-width:22px;max-height:22px;margin:0 auto;display:block}.acf-relationship .list .acf-rel-item .thumbnail.-icon{background:#fff}.acf-relationship .list .acf-rel-item .thumbnail.-icon img{max-height:20px;margin-top:1px}.acf-relationship .list .acf-rel-item:hover{background:#3875d7;color:#fff}.acf-relationship .list .acf-rel-item:hover .thumbnail{background:#a2bfec}.acf-relationship .list .acf-rel-item:hover .thumbnail.-icon{background:#fff}.acf-relationship .list .acf-rel-item.disabled{opacity:.5}.acf-relationship .list .acf-rel-item.disabled:hover{background:0 0;color:#333;cursor:default}.acf-relationship .list .acf-rel-item.disabled:hover .thumbnail{background:#e0e0e0}.acf-relationship .list .acf-rel-item.disabled:hover .thumbnail.-icon{background:#fff}.acf-relationship .list ul{padding-bottom:5px}.acf-relationship .list ul .acf-rel-item,.acf-relationship .list ul .acf-rel-label,.acf-relationship .list ul p{padding-left:20px}.acf-relationship .selection{position:relative}.acf-relationship .selection:after{display:block;clear:both;content:""}.acf-relationship .selection .choices,.acf-relationship .selection .values{width:50%;background:#fff;float:left}.acf-relationship .selection .choices{background:#f9f9f9}.acf-relationship .selection .choices .list{border-right:#dfdfdf solid 1px}.acf-relationship .selection .values .acf-icon{position:absolute;top:4px;right:7px;display:none}html[dir=rtl] .acf-relationship .selection .values .acf-icon{right:auto;left:7px}.acf-relationship .selection .values .acf-rel-item:hover .acf-icon{display:block}.acf-relationship .selection .values .acf-rel-item{cursor:move}.acf-relationship .selection .values .acf-rel-item b{text-decoration:none}.menu-item .acf-relationship ul{width:auto}.menu-item .acf-relationship li{display:block}.acf-editor-wrap.delay .acf-editor-toolbar{content:"";display:block;background:#f5f5f5;border-bottom:#ddd solid 1px;color:#555d66;padding:10px}.acf-editor-wrap.delay .wp-editor-area{padding:10px;border:none;color:inherit!important}.acf-editor-wrap iframe{min-height:200px}.acf-editor-wrap .wp-editor-container{border:1px solid #ccd0d4;box-shadow:none!important}.acf-editor-wrap .wp-editor-tabs{box-sizing:content-box}.acf-editor-wrap .wp-switch-editor{border-color:#ccd0d4;border-bottom-color:transparent}#mce_fullscreen_container{z-index:900000!important}.acf-field-tab{display:none!important}.hidden-by-tab{display:none!important}.acf-tab-wrap{clear:both;z-index:1}.acf-tab-group{border-bottom:#ccc solid 1px;padding:10px 10px 0}.acf-tab-group li{margin:0 .5em 0 0}.acf-tab-group li a{padding:5px 10px;display:block;color:#555;font-size:14px;font-weight:600;line-height:24px;border:#ccc solid 1px;border-bottom:0 none;text-decoration:none;background:#e5e5e5;transition:none}.acf-tab-group li a:hover{background:#fff}.acf-tab-group li a:focus{outline:0;box-shadow:none}.acf-tab-group li a:empty{display:none}html[dir=rtl] .acf-tab-group li{margin:0 0 0 .5em}.acf-tab-group li.active a{background:#f1f1f1;color:#000;padding-bottom:6px;margin-bottom:-1px;position:relative;z-index:1}.acf-fields>.acf-tab-wrap{background:#f9f9f9}.acf-fields>.acf-tab-wrap .acf-tab-group{position:relative;border-top:#ccd0d4 solid 1px;border-bottom:#ccd0d4 solid 1px;z-index:2;margin-bottom:-1px}.acf-fields>.acf-tab-wrap .acf-tab-group li a{background:#f1f1f1;border-color:#ccd0d4}.acf-fields>.acf-tab-wrap .acf-tab-group li a:hover{background:#fff}.acf-fields>.acf-tab-wrap .acf-tab-group li.active a{background:#fff}.acf-admin-3-8 .acf-fields>.acf-tab-wrap .acf-tab-group{border-color:#dfdfdf}.acf-fields>.acf-tab-wrap:first-child .acf-tab-group{border-top:none}.acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-left:20%}@media screen and (max-width:640px){.acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-left:10px}}html[dir=rtl] .acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-left:0;padding-right:20%}@media screen and (max-width:850px){html[dir=rtl] .acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-right:10px}}.acf-tab-wrap.-left .acf-tab-group{position:absolute;left:0;width:20%;border:0 none;padding:0!important;margin:1px 0 0}.acf-tab-wrap.-left .acf-tab-group li{float:none;margin:-1px 0 0}.acf-tab-wrap.-left .acf-tab-group li a{border:1px solid #ededed;font-size:13px;line-height:18px;color:#0073aa;padding:10px;margin:0;font-weight:400;border-width:1px 0;border-radius:0;background:0 0}.acf-tab-wrap.-left .acf-tab-group li a:hover{color:#00a0d2}.acf-tab-wrap.-left .acf-tab-group li.active a{border-color:#dfdfdf;color:#000;margin-right:-1px;background:#fff}html[dir=rtl] .acf-tab-wrap.-left .acf-tab-group{left:auto;right:0}html[dir=rtl] .acf-tab-wrap.-left .acf-tab-group li.active a{margin-right:0;margin-left:-1px}.acf-field+.acf-tab-wrap.-left:before{content:"";display:block;position:relative;z-index:1;height:10px;border-top:#dfdfdf solid 1px;border-bottom:#dfdfdf solid 1px;margin-bottom:-1px}.acf-tab-wrap.-left:first-child .acf-tab-group li:first-child a{border-top:none}.acf-fields.-sidebar{padding:0 0 0 20%!important;position:relative}.acf-fields.-sidebar:before{content:"";display:block;position:absolute;top:0;left:0;width:20%;bottom:0;border-right:#dfdfdf solid 1px;background:#f9f9f9;z-index:1}html[dir=rtl] .acf-fields.-sidebar{padding:0 20% 0 0!important}html[dir=rtl] .acf-fields.-sidebar:before{border-left:#dfdfdf solid 1px;border-right-width:0;left:auto;right:0}.acf-fields.-sidebar.-left{padding:0 0 0 180px!important}html[dir=rtl] .acf-fields.-sidebar.-left{padding:0 180px 0 0!important}.acf-fields.-sidebar.-left:before{background:#f1f1f1;border-color:#dfdfdf;width:180px}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group{width:180px}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group li a{border-color:#e4e4e4}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group li.active a{background:#f9f9f9}.acf-fields.-sidebar>.acf-field-tab+.acf-field{border-top:none}.acf-fields.-clear>.acf-tab-wrap{background:0 0}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group{margin-top:0;border-top:none;padding-left:0;padding-right:0}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a{background:#e5e5e5}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a:hover{background:#fff}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group li.active a{background:#f1f1f1}.acf-postbox.seamless>.acf-fields.-sidebar{margin-left:0!important}.acf-postbox.seamless>.acf-fields.-sidebar:before{background:0 0}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap{background:0 0;margin-bottom:10px;padding-left:12px;padding-right:12px}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group{border-top:0 none;border-color:#ccd0d4}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group li a{background:#e5e5e5;border-color:#ccd0d4}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group li a:hover{background:#fff}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group li.active a{background:#f1f1f1}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left:before{border-top:none;height:auto}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left .acf-tab-group{margin-bottom:0}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left .acf-tab-group li a{border-width:1px 0 1px 1px!important;border-color:#ccc;background:#e5e5e5}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left .acf-tab-group li.active a{background:#f1f1f1}.menu-edit .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a,.widget .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a{background:#f1f1f1}.menu-edit .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a:hover,.menu-edit .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li.active a,.widget .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a:hover,.widget .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li.active a{background:#fff}.compat-item .acf-tab-wrap td{display:block}.acf-gallery-side .acf-tab-wrap{border-top:0 none!important}.acf-gallery-side .acf-tab-wrap .acf-tab-group{margin:10px 0!important;padding:0!important}.acf-gallery-side .acf-tab-group li.active a{background:#f9f9f9!important}.widget .acf-tab-group{border-bottom-color:#e8e8e8}.widget .acf-tab-group li a{background:#f1f1f1}.widget .acf-tab-group li.active a{background:#fff}.media-modal.acf-expanded .compat-attachment-fields>tbody>tr.acf-tab-wrap .acf-tab-group{padding-left:23%;border-bottom-color:#ddd}.form-table>tbody>tr.acf-tab-wrap .acf-tab-group{padding:0 5px 0 210px}html[dir=rtl] .form-table>tbody>tr.acf-tab-wrap .acf-tab-group{padding:0 210px 0 5px}.acf-oembed{position:relative;border:#ccd0d4 solid 1px;background:#fff}.acf-oembed .title{position:relative;border-bottom:#ccd0d4 solid 1px;padding:5px 10px}.acf-oembed .title .input-search{margin:0;font-size:14px;line-height:30px;height:30px;padding:0;border:0 none;box-shadow:none;border-radius:0;font-family:inherit;cursor:text}.acf-oembed .title .acf-actions{padding:6px}.acf-oembed .canvas{position:relative;min-height:250px;background:#f9f9f9}.acf-oembed .canvas .canvas-media{position:relative;z-index:1}.acf-oembed .canvas iframe{display:block;margin:0;padding:0;width:100%}.acf-oembed .canvas .acf-icon.-picture{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:0;height:42px;width:42px;font-size:42px;color:#999}.acf-oembed .canvas .acf-loading-overlay{background:rgba(255,255,255,.9)}.acf-oembed .canvas .canvas-error{position:absolute;top:50%;left:0;right:0;margin:-9px 0 0 0;text-align:center;display:none}.acf-oembed .canvas .canvas-error p{padding:8px;margin:0;display:inline}.acf-oembed.has-value .canvas{min-height:50px}.acf-oembed.has-value .input-search{font-weight:700}.acf-oembed.has-value .title:hover .acf-actions{display:block}.acf-image-uploader{position:relative}.acf-image-uploader:after{display:block;clear:both;content:""}.acf-image-uploader p{margin:0}.acf-image-uploader .image-wrap{position:relative;float:left}.acf-image-uploader .image-wrap img{max-width:100%;max-height:100%;width:auto;height:auto;display:block;min-width:30px;min-height:30px;background:#f1f1f1;margin:0;padding:0}.acf-image-uploader .image-wrap img[src$=".svg"]{min-height:100px;min-width:100px}.acf-image-uploader .image-wrap:hover .acf-actions{display:block}.acf-image-uploader input.button{width:auto}html[dir=rtl] .acf-image-uploader .image-wrap{float:right}.acf-file-uploader{position:relative}.acf-file-uploader p{margin:0}.acf-file-uploader .file-wrap{border:#ccd0d4 solid 1px;min-height:84px;position:relative;background:#fff}.acf-file-uploader .file-icon{position:absolute;top:0;left:0;bottom:0;padding:10px;background:#f1f1f1;border-right:#d5d9dd solid 1px}.acf-file-uploader .file-icon img{display:block;padding:0;margin:0;max-width:48px}.acf-file-uploader .file-info{padding:10px;margin-left:69px}.acf-file-uploader .file-info p{margin:0 0 2px;font-size:13px;line-height:1.4em;word-break:break-all}.acf-file-uploader .file-info a{text-decoration:none}.acf-file-uploader:hover .acf-actions{display:block}html[dir=rtl] .acf-file-uploader .file-icon{left:auto;right:0;border-left:#e5e5e5 solid 1px;border-right:none}html[dir=rtl] .acf-file-uploader .file-info{margin-right:69px;margin-left:0}.acf-ui-datepicker .ui-datepicker{z-index:900000!important}.acf-ui-datepicker .ui-datepicker .ui-widget-header a{cursor:pointer;transition:none}.acf-ui-datepicker .ui-state-highlight.ui-state-hover{border:1px solid #98b7e8!important;background:#98b7e8!important;font-weight:400!important;color:#fff!important}.acf-ui-datepicker .ui-state-highlight.ui-state-active{border:1px solid #3875d7!important;background:#3875d7!important;font-weight:400!important;color:#fff!important}.acf-field-separator .acf-label{margin-bottom:0}.acf-field-separator .acf-label label{font-weight:400}.acf-field-separator .acf-input{display:none}.acf-fields>.acf-field-separator{background:#f9f9f9;border-bottom:1px solid #dfdfdf;border-top:1px solid #dfdfdf;margin-bottom:-1px;z-index:2}.acf-taxonomy-field{position:relative}.acf-taxonomy-field .categorychecklist-holder{border:#ccd0d4 solid 1px;border-radius:3px;max-height:200px;overflow:auto}.acf-taxonomy-field .acf-checkbox-list{margin:0;padding:10px}.acf-taxonomy-field .acf-checkbox-list ul.children{padding-left:18px}.acf-taxonomy-field:hover .acf-actions{display:block}.acf-taxonomy-field[data-ftype=select] .acf-actions{padding:0;margin:-9px}.acf-range-wrap .acf-append,.acf-range-wrap .acf-prepend{display:inline-block;vertical-align:middle;line-height:28px;margin:0 7px 0 0}.acf-range-wrap .acf-append{margin:0 0 0 7px}.acf-range-wrap input[type=range]{display:inline-block;padding:0;margin:0;vertical-align:middle;height:28px}.acf-range-wrap input[type=range]:focus{outline:0}.acf-range-wrap input[type=number]{display:inline-block;min-width:3em;margin-left:10px;vertical-align:middle}html[dir=rtl] .acf-range-wrap input[type=number]{margin-right:10px;margin-left:0}html[dir=rtl] .acf-range-wrap .acf-append{margin:0 7px 0 0}html[dir=rtl] .acf-range-wrap .acf-prepend{margin:0 0 0 7px}.acf-accordion{margin:-1px 0;padding:0;background:#fff;border-top:1px solid #d5d9dd;border-bottom:1px solid #d5d9dd;z-index:1}.acf-accordion .acf-accordion-title{margin:0;padding:12px;font-weight:700;cursor:pointer;font-size:inherit;font-size:13px;line-height:1.4em}.acf-accordion .acf-accordion-title:hover{background:#f3f4f5}.acf-accordion .acf-accordion-title label{margin:0;padding:0;font-size:13px;line-height:1.4em}.acf-accordion .acf-accordion-title p{font-weight:400}.acf-accordion .acf-accordion-title .acf-accordion-icon{float:right}.acf-accordion .acf-accordion-title svg.acf-accordion-icon{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#191e23;fill:currentColor}.acf-accordion .acf-accordion-content{margin:0;padding:0 12px 12px;display:none}.acf-accordion.-open>.acf-accordion-content{display:block}.acf-field.acf-accordion{margin:-1px 0;padding:0!important;border-color:#d5d9dd}.acf-field.acf-accordion .acf-label.acf-accordion-title{padding:12px;width:auto;float:none;width:auto}.acf-field.acf-accordion .acf-input.acf-accordion-content{padding:0;float:none;width:auto}.acf-field.acf-accordion .acf-input.acf-accordion-content>.acf-fields{border-top:#eee solid 1px}.acf-field.acf-accordion .acf-input.acf-accordion-content>.acf-fields.-clear{padding:0 12px 15px}.acf-fields.-left>.acf-field.acf-accordion:before{display:none}.acf-fields.-left>.acf-field.acf-accordion .acf-accordion-title{width:auto;margin:0!important;padding:12px;float:none!important}.acf-fields.-left>.acf-field.acf-accordion .acf-accordion-content{padding:0!important}.acf-fields.-clear>.acf-field.acf-accordion{border:#ccc solid 1px;background:0 0}.acf-fields.-clear>.acf-field.acf-accordion+.acf-field.acf-accordion{margin-top:-16px}tr.acf-field.acf-accordion{background:0 0}tr.acf-field.acf-accordion>.acf-input{padding:0!important;border:#ccc solid 1px}tr.acf-field.acf-accordion .acf-accordion-content{padding:0 12px 12px}#addtag div.acf-field.error{border:0 none;padding:8px 0}#addtag>.acf-field.acf-accordion{padding-right:0;margin-right:5%}#addtag>.acf-field.acf-accordion+p.submit{margin-top:0}tr.acf-accordion{margin:15px 0!important}tr.acf-accordion+tr.acf-accordion{margin-top:-16px!important}.acf-postbox.seamless>.acf-fields>.acf-accordion{margin-left:12px;margin-right:12px;border:#ccd0d4 solid 1px}.widget .widget-content>.acf-field.acf-accordion{border:#dfdfdf solid 1px;margin-bottom:10px}.widget .widget-content>.acf-field.acf-accordion .acf-accordion-title{margin-bottom:0}.widget .widget-content>.acf-field.acf-accordion+.acf-field.acf-accordion{margin-top:-11px}.media-modal .compat-attachment-fields .acf-field.acf-accordion+.acf-field.acf-accordion{margin-top:-1px}.media-modal .compat-attachment-fields .acf-field.acf-accordion>.acf-input{width:100%}.media-modal .compat-attachment-fields .acf-field.acf-accordion .compat-attachment-fields>tbody>tr>td{padding-bottom:5px}.block-editor .edit-post-sidebar .acf-postbox>.hndle,.block-editor .edit-post-sidebar .acf-postbox>.postbox-header{border-bottom-width:0!important}.block-editor .edit-post-sidebar .acf-postbox.closed>.hndle,.block-editor .edit-post-sidebar .acf-postbox.closed>.postbox-header{border-bottom-width:1px!important}.block-editor .edit-post-sidebar .acf-fields{min-height:1px;overflow:auto}.block-editor .edit-post-sidebar .acf-fields>.acf-field{border-width:0;border-color:#e2e4e7;margin:16px;padding:0;width:auto!important;min-height:0!important;float:none!important}.block-editor .edit-post-sidebar .acf-fields>.acf-field>.acf-label{margin-bottom:5px}.block-editor .edit-post-sidebar .acf-fields>.acf-field>.acf-label label{font-weight:400}.block-editor .edit-post-sidebar .acf-fields>.acf-field.acf-accordion{padding:0;margin:0;border-top-width:1px}.block-editor .edit-post-sidebar .acf-fields>.acf-field.acf-accordion:first-child{border-top-width:0}.block-editor .edit-post-sidebar .acf-fields>.acf-field.acf-accordion .acf-accordion-title{margin:0;padding:15px}.block-editor .edit-post-sidebar .acf-fields>.acf-field.acf-accordion .acf-accordion-title label{font-weight:700}.block-editor .edit-post-sidebar .acf-fields>.acf-field.acf-accordion .acf-accordion-content>.acf-fields{border-top-width:0}.form-table>tbody>.acf-field>.acf-label{padding:20px 10px 20px 0;width:210px}html[dir=rtl] .form-table>tbody>.acf-field>.acf-label{padding:20px 0 20px 10px}.form-table>tbody>.acf-field>.acf-label label{font-size:14px;color:#23282d}.form-table>tbody>.acf-field>.acf-input{padding:15px 10px}html[dir=rtl] .form-table>tbody>.acf-field>.acf-input{padding:15px 10px 15px 5%}.form-table>tbody>.acf-tab-wrap td{padding:15px 5% 15px 0}html[dir=rtl] .form-table>tbody>.acf-tab-wrap td{padding:15px 0 15px 5%}.form-table>tbody .form-table th.acf-th{width:auto}#createuser .acf-field input[type=email],#createuser .acf-field input[type=number],#createuser .acf-field input[type=password],#createuser .acf-field input[type=search],#createuser .acf-field input[type=text],#createuser .acf-field input[type=url],#createuser .acf-field select,#your-profile .acf-field input[type=email],#your-profile .acf-field input[type=number],#your-profile .acf-field input[type=password],#your-profile .acf-field input[type=search],#your-profile .acf-field input[type=text],#your-profile .acf-field input[type=url],#your-profile .acf-field select{max-width:25em}#createuser .acf-field textarea,#your-profile .acf-field textarea{max-width:500px}#createuser .acf-field .acf-field input[type=email],#createuser .acf-field .acf-field input[type=number],#createuser .acf-field .acf-field input[type=password],#createuser .acf-field .acf-field input[type=search],#createuser .acf-field .acf-field input[type=text],#createuser .acf-field .acf-field input[type=url],#createuser .acf-field .acf-field select,#createuser .acf-field .acf-field textarea,#your-profile .acf-field .acf-field input[type=email],#your-profile .acf-field .acf-field input[type=number],#your-profile .acf-field .acf-field input[type=password],#your-profile .acf-field .acf-field input[type=search],#your-profile .acf-field .acf-field input[type=text],#your-profile .acf-field .acf-field input[type=url],#your-profile .acf-field .acf-field select,#your-profile .acf-field .acf-field textarea{max-width:none}#registerform h2{margin:1em 0}#registerform .acf-field{margin-top:0}#registerform .acf-field .acf-label{margin-bottom:0}#registerform .acf-field .acf-label label{font-weight:400;line-height:1.5}#registerform p.submit{text-align:right}#acf-term-fields{padding-right:5%}#acf-term-fields>.acf-field>.acf-label{margin:0}#acf-term-fields>.acf-field>.acf-label label{font-size:12px;font-weight:400}p.submit .acf-spinner,p.submit .spinner{vertical-align:top;float:none;margin:4px 4px 0}#edittag .acf-fields.-left>.acf-field{padding-left:220px}#edittag .acf-fields.-left>.acf-field:before{width:209px}#edittag .acf-fields.-left>.acf-field>.acf-label{width:220px;margin-left:-220px;padding:0 10px}#edittag .acf-fields.-left>.acf-field>.acf-input{padding:0}#edittag>.acf-fields.-left{width:96%}#edittag>.acf-fields.-left>.acf-field>.acf-label{padding-left:0}.editcomment td:first-child{white-space:nowrap;width:131px}#widgets-right .widget .acf-field .description{padding-left:0;padding-right:0}.acf-widget-fields>.acf-field .acf-label{margin-bottom:5px}.acf-widget-fields>.acf-field .acf-label label{font-weight:400;margin:0}.acf-menu-settings{border-top:1px solid #eee;margin-top:2em}.acf-menu-settings.-seamless{border-top:none;margin-top:15px}.acf-menu-settings.-seamless>h2{display:none}.acf-menu-settings .list li{display:block;margin-bottom:0}.acf-fields.acf-menu-item-fields{clear:both;padding-top:1px}.acf-fields.acf-menu-item-fields>.acf-field{margin:5px 0;padding-right:10px}.acf-fields.acf-menu-item-fields>.acf-field .acf-label{margin-bottom:0}.acf-fields.acf-menu-item-fields>.acf-field .acf-label label{font-style:italic;font-weight:400}#post .compat-attachment-fields .compat-field-acf-form-data{display:none}#post .compat-attachment-fields,#post .compat-attachment-fields>tbody,#post .compat-attachment-fields>tbody>tr,#post .compat-attachment-fields>tbody>tr>td,#post .compat-attachment-fields>tbody>tr>th{display:block}#post .compat-attachment-fields>tbody>.acf-field{margin:15px 0}#post .compat-attachment-fields>tbody>.acf-field>.acf-label{margin:0}#post .compat-attachment-fields>tbody>.acf-field>.acf-label label{margin:0;padding:0}#post .compat-attachment-fields>tbody>.acf-field>.acf-label label p{margin:0 0 3px!important}#post .compat-attachment-fields>tbody>.acf-field>.acf-input{margin:0}.media-modal .compat-attachment-fields td.acf-input table{display:table;table-layout:auto}.media-modal .compat-attachment-fields td.acf-input table tbody{display:table-row-group}.media-modal .compat-attachment-fields td.acf-input table tr{display:table-row}.media-modal .compat-attachment-fields td.acf-input table td,.media-modal .compat-attachment-fields td.acf-input table th{display:table-cell}.media-modal .compat-attachment-fields>tbody>.acf-field{margin:5px 0}.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-label{min-width:30%;margin:0;padding:0;float:left;text-align:right;display:block;float:left}.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-label>label{padding-top:6px;margin:0;color:#666;font-weight:400;line-height:16px}.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-input{width:65%;margin:0;padding:0;float:right;display:block}.media-modal .compat-attachment-fields>tbody>.acf-field p.description{margin:0}.acf-selection-error{background:#ffebe8;border:1px solid #c00;border-radius:3px;padding:8px;margin:20px 0 0}.acf-selection-error .selection-error-label{background:#c00;border-radius:3px;color:#fff;font-weight:700;margin-right:8px;padding:2px 4px}.acf-selection-error .selection-error-message{color:#b44;display:block;padding-top:8px;word-wrap:break-word;white-space:pre-wrap}.media-modal .attachment.acf-disabled .thumbnail{opacity:.25!important}.media-modal .attachment.acf-disabled .attachment-preview:before{background:rgba(0,0,0,.15);z-index:1;position:relative}.media-modal .compat-field-acf-blank,.media-modal .compat-field-acf-form-data{display:none!important}.media-modal .upload-error-message{white-space:pre-wrap}.media-modal .acf-required{padding:0!important;margin:0!important;float:none!important;color:red!important}.media-modal .media-sidebar .compat-item{padding-bottom:20px}@media (max-width:900px){.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-label,.media-modal .setting span{width:98%;float:none;text-align:left;min-height:0;padding:0}.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-input,.media-modal .setting input,.media-modal .setting textarea{float:none;height:auto;max-width:none;width:98%}}.media-modal .acf-expand-details{float:right;padding:8px 10px;margin-right:6px;font-size:13px;height:18px;line-height:18px;color:#666;text-decoration:none}.media-modal .acf-expand-details:active,.media-modal .acf-expand-details:focus{outline:0 none;box-shadow:none;color:#666}.media-modal .acf-expand-details:hover{color:#000}.media-modal .acf-expand-details .is-open{display:none}.media-modal .acf-expand-details .is-closed{display:block}@media (max-width:640px){.media-modal .acf-expand-details{display:none}}.media-modal.acf-expanded .acf-expand-details .is-open{display:block}.media-modal.acf-expanded .acf-expand-details .is-closed{display:none}.media-modal.acf-expanded .attachments-browser .attachments,.media-modal.acf-expanded .attachments-browser .media-toolbar{right:740px}.media-modal.acf-expanded .media-sidebar{width:708px}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail{float:left;max-height:none}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail img{max-width:100%;max-height:200px}.media-modal.acf-expanded .media-sidebar .attachment-info .details{float:right}.media-modal.acf-expanded .media-sidebar .attachment-details .setting .name,.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail,.media-modal.acf-expanded .media-sidebar .compat-attachment-fields>tbody>.acf-field>.acf-label{min-width:20%;margin-right:0}.media-modal.acf-expanded .media-sidebar .attachment-details .setting input,.media-modal.acf-expanded .media-sidebar .attachment-details .setting textarea,.media-modal.acf-expanded .media-sidebar .attachment-details .setting+.description,.media-modal.acf-expanded .media-sidebar .attachment-info .details,.media-modal.acf-expanded .media-sidebar .compat-attachment-fields>tbody>.acf-field>.acf-input{min-width:77%}@media (max-width:900px){.media-modal.acf-expanded .attachments-browser .media-toolbar{display:none}.media-modal.acf-expanded .attachments{display:none}.media-modal.acf-expanded .media-sidebar{width:auto;max-width:none!important;bottom:0!important}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail{min-width:0;max-width:none;width:30%}.media-modal.acf-expanded .media-sidebar .attachment-info .details{min-width:0;max-width:none;width:67%}}@media (max-width:640px){.media-modal.acf-expanded .media-sidebar .attachment-info .details,.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail{width:100%}}.acf-media-modal .media-embed .setting.align,.acf-media-modal .media-embed .setting.link-to{display:none}.acf-media-modal.-edit{left:15%;right:15%;top:100px;bottom:100px}.acf-media-modal.-edit .media-frame-content .attachments,.acf-media-modal.-edit .media-frame-content .media-toolbar,.acf-media-modal.-edit .media-frame-menu,.acf-media-modal.-edit .media-frame-router{display:none}.acf-media-modal.-edit .media-frame-content,.acf-media-modal.-edit .media-frame-title,.acf-media-modal.-edit .media-frame-toolbar,.acf-media-modal.-edit .media-sidebar{width:auto;left:0;right:0}.acf-media-modal.-edit .media-frame-content{top:50px}.acf-media-modal.-edit .media-frame-title{border-bottom:1px solid #dfdfdf;box-shadow:0 4px 4px -4px rgba(0,0,0,.1)}.acf-media-modal.-edit .media-sidebar{padding:0 16px}.acf-media-modal.-edit .media-sidebar .attachment-details{overflow:visible}.acf-media-modal.-edit .media-sidebar .attachment-details>h2,.acf-media-modal.-edit .media-sidebar .attachment-details>h3{display:none}.acf-media-modal.-edit .media-sidebar .attachment-details .attachment-info{background:#fff;border-bottom:#ddd solid 1px;padding:16px;margin:0 -16px 16px}.acf-media-modal.-edit .media-sidebar .attachment-details .thumbnail{margin:0 16px 0 0}.acf-media-modal.-edit .media-sidebar .attachment-details .setting{margin:0 0 5px}.acf-media-modal.-edit .media-sidebar .attachment-details .setting span{margin:0}.acf-media-modal.-edit .media-sidebar .compat-attachment-fields>tbody>.acf-field{margin:0 0 5px}.acf-media-modal.-edit .media-sidebar .compat-attachment-fields>tbody>.acf-field p.description{margin-top:3px}.acf-media-modal.-edit .media-sidebar .media-types-required-info{display:none}@media (max-width:900px){.acf-media-modal.-edit{top:30px;right:30px;bottom:30px;left:30px}}@media (max-width:640px){.acf-media-modal.-edit{top:0;right:0;bottom:0;left:0}}@media (max-width:480px){.acf-media-modal.-edit .media-frame-content{top:40px}}.acf-temp-remove{position:relative;opacity:1;-webkit-transition:all .25s ease;-moz-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;overflow:hidden}.acf-temp-remove:after{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.hidden-by-conditional-logic{display:none!important}.hidden-by-conditional-logic.appear-empty{display:table-cell!important}.hidden-by-conditional-logic.appear-empty .acf-input{display:none!important}.acf-postbox.acf-hidden{display:none!important}.acf-attention{transition:border .25s ease-out}.acf-attention.-focused{border:#23282d solid 1px!important;transition:none}tr.acf-attention{transition:box-shadow .25s ease-out;position:relative}tr.acf-attention.-focused{box-shadow:#23282d 0 0 0 1px!important}#editor .edit-post-layout__metaboxes{padding:0}#editor .edit-post-layout__metaboxes .edit-post-meta-boxes-area{margin:0}#editor .metabox-location-side .postbox-container{float:none}#editor .postbox{color:#444}#editor .postbox>.postbox-header .hndle{border-bottom:none}#editor .postbox>.postbox-header .hndle:hover{background:0 0}#editor .postbox>.postbox-header .handle-actions .handle-order-higher,#editor .postbox>.postbox-header .handle-actions .handle-order-lower{width:1.62rem}#editor .postbox>.postbox-header .handle-actions .acf-hndle-cog{height:44px;line-height:44px}#editor .postbox>.postbox-header:hover{background:#f0f0f0}#editor .postbox:last-child.closed>.postbox-header{border-bottom:none}#editor .postbox:last-child>.inside{border-bottom:none}#editor .block-editor-writing-flow__click-redirect{min-height:50px}body.is-dragging-metaboxes #acf_after_title-sortables{outline:3px dashed #646970;display:flow-root;min-height:60px;margin-bottom:3px!important} \ No newline at end of file diff --git a/assets/build/css/pro/acf-pro-field-group.css b/assets/build/css/pro/acf-pro-field-group.css new file mode 100644 index 0000000..3a4f499 --- /dev/null +++ b/assets/build/css/pro/acf-pro-field-group.css @@ -0,0 +1,67 @@ +/*-------------------------------------------------------------------------------------------- +* +* Vars +* +*--------------------------------------------------------------------------------------------*/ +/* colors */ +/* acf-field */ +/* responsive */ +/*-------------------------------------------------------------------------------------------- +* +* Mixins +* +*--------------------------------------------------------------------------------------------*/ +/*--------------------------------------------------------------------------------------------- +* +* Flexible Content +* +*---------------------------------------------------------------------------------------------*/ +.acf-field-setting-fc_layout .acf-fc-meta { + margin: 0 0 10px; + padding: 0; +} +.acf-field-setting-fc_layout .acf-fc-meta li { + margin: 0 0 10px; + padding: 0; +} +.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display, +.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-min { + float: left; + width: 33%; + padding-right: 10px; +} +.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-label .acf-input-prepend, +.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-name .acf-input-prepend, +.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display .acf-input-prepend { + min-width: 60px; +} +.acf-field-setting-fc_layout .acf-fl-actions { + visibility: hidden; +} +.acf-field-setting-fc_layout .acf-fl-actions .reorder-layout { + cursor: move; +} +.acf-field-setting-fc_layout .acf-fl-actions a { + padding: 1px 0; + font-size: 13px; + line-height: 20px; +} +.acf-field-setting-fc_layout:hover .acf-fl-actions, .acf-field-setting-fc_layout.-hover .acf-fl-actions { + visibility: visible; +} + +/*--------------------------------------------------------------------------------------------- +* +* Clone +* +*---------------------------------------------------------------------------------------------*/ +.acf-field-object-clone { + /* group */ + /* seamless */ +} +.acf-field-object-clone[data-display=seamless] .acf-field-setting-instructions, +.acf-field-object-clone[data-display=seamless] .acf-field-setting-layout, +.acf-field-object-clone[data-display=seamless] .acf-field-setting-wrapper, +.acf-field-object-clone[data-display=seamless] .acf-field-setting-conditional_logic { + display: none; +} \ No newline at end of file diff --git a/assets/build/css/pro/acf-pro-field-group.min.css b/assets/build/css/pro/acf-pro-field-group.min.css new file mode 100644 index 0000000..4835759 --- /dev/null +++ b/assets/build/css/pro/acf-pro-field-group.min.css @@ -0,0 +1 @@ +.acf-field-setting-fc_layout .acf-fc-meta{margin:0 0 10px;padding:0}.acf-field-setting-fc_layout .acf-fc-meta li{margin:0 0 10px;padding:0}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display,.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-min{float:left;width:33%;padding-right:10px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display .acf-input-prepend,.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-label .acf-input-prepend,.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-name .acf-input-prepend{min-width:60px}.acf-field-setting-fc_layout .acf-fl-actions{visibility:hidden}.acf-field-setting-fc_layout .acf-fl-actions .reorder-layout{cursor:move}.acf-field-setting-fc_layout .acf-fl-actions a{padding:1px 0;font-size:13px;line-height:20px}.acf-field-setting-fc_layout.-hover .acf-fl-actions,.acf-field-setting-fc_layout:hover .acf-fl-actions{visibility:visible}.acf-field-object-clone[data-display=seamless] .acf-field-setting-conditional_logic,.acf-field-object-clone[data-display=seamless] .acf-field-setting-instructions,.acf-field-object-clone[data-display=seamless] .acf-field-setting-layout,.acf-field-object-clone[data-display=seamless] .acf-field-setting-wrapper{display:none} \ No newline at end of file diff --git a/assets/build/css/pro/acf-pro-input.css b/assets/build/css/pro/acf-pro-input.css new file mode 100644 index 0000000..5b5893d --- /dev/null +++ b/assets/build/css/pro/acf-pro-input.css @@ -0,0 +1,683 @@ +/*-------------------------------------------------------------------------------------------- +* +* Vars +* +*--------------------------------------------------------------------------------------------*/ +/* colors */ +/* acf-field */ +/* responsive */ +/*-------------------------------------------------------------------------------------------- +* +* Mixins +* +*--------------------------------------------------------------------------------------------*/ +/*--------------------------------------------------------------------------------------------- +* +* Repeater +* +*---------------------------------------------------------------------------------------------*/ +.acf-repeater { + /* table */ + /* row handle (add/remove) */ + /* add in spacer to th (force correct width) */ + /* row */ + /* sortable */ + /* layouts */ + /* + &.-row > table > tbody > tr:before, + &.-block > table > tbody > tr:before { + content: ""; + display: table-row; + height: 2px; + background: #f00; + } + */ + /* empty */ + /* collapsed */ + /* collapsed (block layout) */ + /* collapsed (table layout) */ +} +.acf-repeater > table { + margin: 0 0 8px; + background: #F9F9F9; +} +.acf-repeater .acf-row-handle { + width: 16px; + text-align: center !important; + vertical-align: middle !important; + position: relative; + /* icons */ + /* .order */ + /* remove */ +} +.acf-repeater .acf-row-handle .acf-icon { + display: none; + position: absolute; + top: 0; + margin: -8px 0 0 -2px; + /* minus icon */ +} +.acf-repeater .acf-row-handle .acf-icon.-minus { + top: 50%; + /* ie fix */ +} +body.browser-msie .acf-repeater .acf-row-handle .acf-icon.-minus { + top: 25px; +} +.acf-repeater .acf-row-handle.order { + background: #f4f4f4; + cursor: move; + color: #aaa; + text-shadow: #fff 0 1px 0; +} +.acf-repeater .acf-row-handle.order:hover { + color: #666; +} +.acf-repeater .acf-row-handle.order + td { + border-left-color: #DFDFDF; +} +.acf-repeater .acf-row-handle.remove { + background: #F9F9F9; + border-left-color: #DFDFDF; +} +.acf-repeater th.acf-row-handle:before { + content: ""; + width: 16px; + display: block; + height: 1px; +} +.acf-repeater .acf-row { + /* hide clone */ + /* hover */ +} +.acf-repeater .acf-row.acf-clone { + display: none !important; +} +.acf-repeater .acf-row:hover, .acf-repeater .acf-row.-hover { + /* icons */ +} +.acf-repeater .acf-row:hover > .acf-row-handle .acf-icon, .acf-repeater .acf-row.-hover > .acf-row-handle .acf-icon { + display: block; +} +.acf-repeater .acf-row:hover > .acf-row-handle .acf-icon.show-on-shift, .acf-repeater .acf-row.-hover > .acf-row-handle .acf-icon.show-on-shift { + display: none; +} +body.acf-keydown-shift .acf-repeater .acf-row:hover > .acf-row-handle .acf-icon.show-on-shift, body.acf-keydown-shift .acf-repeater .acf-row.-hover > .acf-row-handle .acf-icon.show-on-shift { + display: block; +} +body.acf-keydown-shift .acf-repeater .acf-row:hover > .acf-row-handle .acf-icon.hide-on-shift, body.acf-keydown-shift .acf-repeater .acf-row.-hover > .acf-row-handle .acf-icon.hide-on-shift { + display: none; +} +.acf-repeater > table > tbody > tr.ui-sortable-helper { + box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2); +} +.acf-repeater > table > tbody > tr.ui-sortable-placeholder { + visibility: visible !important; +} +.acf-repeater > table > tbody > tr.ui-sortable-placeholder td { + background: #F9F9F9; +} +.acf-repeater.-row > table > tbody > tr > td, .acf-repeater.-block > table > tbody > tr > td { + border-top-color: #E1E1E1; +} +.acf-repeater.-empty > table > thead > tr > th { + border-bottom: 0 none; +} +.acf-repeater.-empty.-row > table, .acf-repeater.-empty.-block > table { + display: none; +} +.acf-repeater .acf-row.-collapsed > .acf-field { + display: none !important; +} +.acf-repeater .acf-row.-collapsed > td.acf-field.-collapsed-target { + display: table-cell !important; +} +.acf-repeater .acf-row.-collapsed > .acf-fields > * { + display: none !important; +} +.acf-repeater .acf-row.-collapsed > .acf-fields > .acf-field.-collapsed-target { + display: block !important; +} +.acf-repeater .acf-row.-collapsed > .acf-fields > .acf-field.-collapsed-target[data-width] { + float: none !important; + width: auto !important; +} +.acf-repeater.-table .acf-row.-collapsed .acf-field.-collapsed-target { + border-left-color: #dfdfdf; +} +.acf-repeater.-max .acf-icon[data-event=add-row] { + display: none !important; +} + +/*--------------------------------------------------------------------------------------------- +* +* Flexible Content +* +*---------------------------------------------------------------------------------------------*/ +.acf-flexible-content { + position: relative; +} +.acf-flexible-content > .clones { + display: none; +} +.acf-flexible-content > .values { + margin: 0 0 8px; +} +.acf-flexible-content > .values > .ui-sortable-placeholder { + visibility: visible !important; + border: 1px dashed #b4b9be; + box-shadow: none; + background: transparent; +} +.acf-flexible-content .layout { + position: relative; + margin: 20px 0 0; + background: #fff; + border: 1px solid #ccd0d4; +} +.acf-flexible-content .layout:first-child { + margin-top: 0; +} +.acf-flexible-content .layout .acf-fc-layout-handle { + display: block; + position: relative; + padding: 8px 10px; + cursor: move; + border-bottom: #ccd0d4 solid 1px; + color: #444; + font-size: 14px; + line-height: 1.4em; +} +.acf-flexible-content .layout .acf-fc-layout-order { + display: block; + width: 20px; + height: 20px; + border-radius: 10px; + display: inline-block; + text-align: center; + line-height: 20px; + margin: 0 2px 0 0; + background: #F1F1F1; + font-size: 12px; + color: #444; +} +html[dir=rtl] .acf-flexible-content .layout .acf-fc-layout-order { + float: right; + margin-right: 0; + margin-left: 5px; +} +.acf-flexible-content .layout .acf-fc-layout-controls { + position: absolute; + top: 8px; + right: 8px; +} +.acf-flexible-content .layout .acf-fc-layout-controls .acf-icon { + display: block; + float: left; + margin: 0 0 0 5px; +} +.acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-plus, .acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-minus, .acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-duplicate { + visibility: hidden; +} +html[dir=rtl] .acf-flexible-content .layout .acf-fc-layout-controls { + right: auto; + left: 9px; +} +.acf-flexible-content .layout.is-selected { + border-color: #7e8993; +} +.acf-flexible-content .layout.is-selected .acf-fc-layout-handle { + border-color: #7e8993; +} +.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-plus, .acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-minus, .acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-duplicate, .acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-plus, .acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-minus, .acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-duplicate { + visibility: visible; +} +.acf-flexible-content .layout.-collapsed > .acf-fc-layout-handle { + border-bottom-width: 0; +} +.acf-flexible-content .layout.-collapsed > .acf-fields, +.acf-flexible-content .layout.-collapsed > .acf-table { + display: none; +} +.acf-flexible-content .layout > .acf-table { + border: 0 none; + box-shadow: none; +} +.acf-flexible-content .layout > .acf-table > tbody > tr { + background: #fff; +} +.acf-flexible-content .layout > .acf-table > thead > tr > th { + background: #F9F9F9; +} +.acf-flexible-content .no-value-message { + padding: 19px; + border: #ccc dashed 2px; + text-align: center; + display: none; +} +.acf-flexible-content.-empty > .no-value-message { + display: block; +} + +.acf-fc-popup { + padding: 5px 0; + z-index: 900001; + min-width: 135px; +} +.acf-fc-popup ul, .acf-fc-popup li { + list-style: none; + display: block; + margin: 0; + padding: 0; +} +.acf-fc-popup li { + position: relative; + float: none; + white-space: nowrap; +} +.acf-fc-popup .badge { + display: inline-block; + border-radius: 8px; + font-size: 9px; + line-height: 15px; + padding: 0 5px; + background: #d54e21; + text-align: center; + color: #fff; + vertical-align: top; + margin: 0 0 0 5px; +} +.acf-fc-popup a { + color: #eee; + padding: 5px 10px; + display: block; + text-decoration: none; + position: relative; +} +.acf-fc-popup a:hover { + background: #0073aa; + color: #fff; +} +.acf-fc-popup a.disabled { + color: #888; + background: transparent; +} + +/*--------------------------------------------------------------------------------------------- +* +* Galery +* +*---------------------------------------------------------------------------------------------*/ +.acf-gallery { + border: #ccd0d4 solid 1px; + height: 400px; + position: relative; + /* main */ + /* attachments */ + /* attachment */ + /* toolbar */ + /* sidebar */ + /* side info */ + /* side data */ + /* column widths */ + /* resizable */ +} +.acf-gallery .acf-gallery-main { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: #fff; + z-index: 2; +} +.acf-gallery .acf-gallery-attachments { + position: absolute; + top: 0; + right: 0; + bottom: 48px; + left: 0; + padding: 5px; + overflow: auto; + overflow-x: hidden; +} +.acf-gallery .acf-gallery-attachment { + width: 25%; + float: left; + cursor: pointer; + position: relative; + /* hover */ + /* sortable */ + /* active */ + /* icon */ + /* rtl */ +} +.acf-gallery .acf-gallery-attachment .margin { + margin: 5px; + border: #d5d9dd solid 1px; + position: relative; + overflow: hidden; + background: #eee; +} +.acf-gallery .acf-gallery-attachment .margin:before { + content: ""; + display: block; + padding-top: 100%; +} +.acf-gallery .acf-gallery-attachment .thumbnail { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + transform: translate(50%, 50%); +} +html[dir=rtl] .acf-gallery .acf-gallery-attachment .thumbnail { + transform: translate(-50%, 50%); +} +.acf-gallery .acf-gallery-attachment .thumbnail img { + display: block; + height: auto; + max-height: 100%; + width: auto; + transform: translate(-50%, -50%); +} +html[dir=rtl] .acf-gallery .acf-gallery-attachment .thumbnail img { + transform: translate(50%, -50%); +} +.acf-gallery .acf-gallery-attachment .filename { + position: absolute; + bottom: 0; + left: 0; + right: 0; + padding: 5%; + background: #F4F4F4; + background: rgba(255, 255, 255, 0.8); + border-top: #DFDFDF solid 1px; + font-weight: bold; + text-align: center; + word-wrap: break-word; + max-height: 90%; + overflow: hidden; +} +.acf-gallery .acf-gallery-attachment .actions { + position: absolute; + top: 0; + right: 0; + display: none; +} +.acf-gallery .acf-gallery-attachment:hover .actions { + display: block; +} +.acf-gallery .acf-gallery-attachment.ui-sortable-helper .margin { + border: none; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); +} +.acf-gallery .acf-gallery-attachment.ui-sortable-placeholder .margin { + background: #F1F1F1; + border: none; +} +.acf-gallery .acf-gallery-attachment.ui-sortable-placeholder .margin * { + display: none !important; +} +.acf-gallery .acf-gallery-attachment.active .margin { + box-shadow: 0 0 0 1px #FFFFFF, 0 0 0 5px #0073aa; +} +.acf-gallery .acf-gallery-attachment.-icon .thumbnail img { + transform: translate(-50%, -70%); +} +html[dir=rtl] .acf-gallery .acf-gallery-attachment { + float: right; +} +.acf-gallery.sidebar-open { + /* hide attachment actions when sidebar is open */ + /* allow sidebar to move over main for small widths (widget edit box) */ +} +.acf-gallery.sidebar-open .acf-gallery-attachment .actions { + display: none; +} +.acf-gallery.sidebar-open .acf-gallery-side { + z-index: 2; +} +.acf-gallery .acf-gallery-toolbar { + position: absolute; + right: 0; + bottom: 0; + left: 0; + padding: 10px; + border-top: #d5d9dd solid 1px; + background: #fff; + min-height: 28px; +} +.acf-gallery .acf-gallery-toolbar .acf-hl li { + line-height: 24px; +} +.acf-gallery .acf-gallery-toolbar .bulk-actions-select { + width: auto; + margin: 0 1px 0 0; +} +.acf-gallery .acf-gallery-side { + position: absolute; + top: 0; + right: 0; + bottom: 0; + width: 0; + background: #F9F9F9; + border-left: #ccd0d4 solid 1px; + z-index: 1; + overflow: hidden; +} +.acf-gallery .acf-gallery-side .acf-gallery-side-inner { + position: absolute; + top: 0; + left: 0; + bottom: 0; + width: 349px; +} +.acf-gallery .acf-gallery-side-info { + position: relative; + width: 100%; + padding: 10px; + margin: -10px 0 15px -10px; + background: #F1F1F1; + border-bottom: #DFDFDF solid 1px; +} +.acf-gallery .acf-gallery-side-info:after { + display: block; + clear: both; + content: ""; +} +html[dir=rtl] .acf-gallery .acf-gallery-side-info { + margin-left: 0; + margin-right: -10px; +} +.acf-gallery .acf-gallery-side-info img { + float: left; + width: auto; + max-width: 65px; + max-height: 65px; + margin: 0 10px 1px 0; + background: #FFFFFF; + padding: 3px; + border: #ccd0d4 solid 1px; + border-radius: 1px; + /* rtl */ +} +html[dir=rtl] .acf-gallery .acf-gallery-side-info img { + float: right; + margin: 0 0 0 10px; +} +.acf-gallery .acf-gallery-side-info p { + font-size: 13px; + line-height: 15px; + margin: 3px 0; + word-break: break-all; + color: #666; +} +.acf-gallery .acf-gallery-side-info p strong { + color: #000; +} +.acf-gallery .acf-gallery-side-info a { + text-decoration: none; +} +.acf-gallery .acf-gallery-side-info a.acf-gallery-edit { + color: #21759b; +} +.acf-gallery .acf-gallery-side-info a.acf-gallery-remove { + color: #bc0b0b; +} +.acf-gallery .acf-gallery-side-info a:hover { + text-decoration: underline; +} +.acf-gallery .acf-gallery-side-data { + position: absolute; + top: 0; + right: 0; + bottom: 48px; + left: 0; + overflow: auto; + overflow-x: inherit; + padding: 10px; +} +.acf-gallery .acf-gallery-side-data .acf-label, +.acf-gallery .acf-gallery-side-data th.label { + color: #666666; + font-size: 12px; + line-height: 25px; + padding: 0 4px 8px 0 !important; + width: auto !important; + vertical-align: top; +} +html[dir=rtl] .acf-gallery .acf-gallery-side-data .acf-label, +html[dir=rtl] .acf-gallery .acf-gallery-side-data th.label { + padding: 0 0 8px 4px !important; +} +.acf-gallery .acf-gallery-side-data .acf-label label, +.acf-gallery .acf-gallery-side-data th.label label { + font-weight: normal; +} +.acf-gallery .acf-gallery-side-data .acf-input, +.acf-gallery .acf-gallery-side-data td.field { + padding: 0 0 8px !important; +} +.acf-gallery .acf-gallery-side-data textarea { + min-height: 0; + height: 60px; +} +.acf-gallery .acf-gallery-side-data p.help { + font-size: 12px; +} +.acf-gallery .acf-gallery-side-data p.help:hover { + font-weight: normal; +} +.acf-gallery[data-columns="1"] .acf-gallery-attachment { + width: 100%; +} +.acf-gallery[data-columns="2"] .acf-gallery-attachment { + width: 50%; +} +.acf-gallery[data-columns="3"] .acf-gallery-attachment { + width: 33.333%; +} +.acf-gallery[data-columns="4"] .acf-gallery-attachment { + width: 25%; +} +.acf-gallery[data-columns="5"] .acf-gallery-attachment { + width: 20%; +} +.acf-gallery[data-columns="6"] .acf-gallery-attachment { + width: 16.666%; +} +.acf-gallery[data-columns="7"] .acf-gallery-attachment { + width: 14.285%; +} +.acf-gallery[data-columns="8"] .acf-gallery-attachment { + width: 12.5%; +} +.acf-gallery .ui-resizable-handle { + display: block; + position: absolute; +} +.acf-gallery .ui-resizable-s { + bottom: -5px; + cursor: ns-resize; + height: 7px; + left: 0; + width: 100%; +} + +/* media modal selected */ +.acf-media-modal .attachment.acf-selected { + box-shadow: 0 0 0 3px #fff inset, 0 0 0 7px #0073aa inset !important; +} +.acf-media-modal .attachment.acf-selected .check { + display: none !important; +} +.acf-media-modal .attachment.acf-selected .thumbnail { + opacity: 0.25 !important; +} +.acf-media-modal .attachment.acf-selected .attachment-preview:before { + background: rgba(0, 0, 0, 0.15); + z-index: 1; + position: relative; +} + +/*-------------------------------------------------------------------------------------------- +* +* ACF Blocks +* +*--------------------------------------------------------------------------------------------*/ +.acf-block-component .components-placeholder { + margin: 0; +} + +.acf-block-component .acf-block-fields { + background: #fff; + text-align: left; + font-size: 13px; + line-height: 1.4em; + color: #444; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; +} +html[dir=rtl] .acf-block-component .acf-block-fields { + text-align: right; +} +.acf-block-component .acf-block-fields p { + font-size: 13px; + line-height: 1.5; +} + +.acf-block-body .acf-block-fields { + border: #adb2ad solid 1px; +} +.acf-block-body .acf-block-fields .acf-tab-wrap .acf-tab-group { + margin-left: 0; + padding: 16px 20px 0; +} +.acf-block-body .acf-fields > .acf-field { + padding: 16px 20px; +} +.acf-block-body .acf-fields > .acf-field.acf-accordion { + border-color: #adb2ad; +} +.acf-block-body .acf-fields > .acf-field.acf-accordion .acf-accordion-title { + padding: 16px 20px; +} +.acf-block-body .acf-block-preview { + min-height: 10px; +} + +.acf-block-panel .acf-block-fields { + border-top: #e2e4e7 solid 1px; + min-height: 1px; +} +.acf-block-panel .acf-block-fields:empty { + border-top: none; +} +.acf-block-panel .acf-block-fields .acf-tab-wrap { + background: transparent; +} + +.components-panel__body .acf-block-panel { + margin: 16px -16px -16px; +} \ No newline at end of file diff --git a/assets/build/css/pro/acf-pro-input.min.css b/assets/build/css/pro/acf-pro-input.min.css new file mode 100644 index 0000000..fdedb20 --- /dev/null +++ b/assets/build/css/pro/acf-pro-input.min.css @@ -0,0 +1 @@ +.acf-repeater>table{margin:0 0 8px;background:#f9f9f9}.acf-repeater .acf-row-handle{width:16px;text-align:center!important;vertical-align:middle!important;position:relative}.acf-repeater .acf-row-handle .acf-icon{display:none;position:absolute;top:0;margin:-8px 0 0 -2px}.acf-repeater .acf-row-handle .acf-icon.-minus{top:50%}body.browser-msie .acf-repeater .acf-row-handle .acf-icon.-minus{top:25px}.acf-repeater .acf-row-handle.order{background:#f4f4f4;cursor:move;color:#aaa;text-shadow:#fff 0 1px 0}.acf-repeater .acf-row-handle.order:hover{color:#666}.acf-repeater .acf-row-handle.order+td{border-left-color:#dfdfdf}.acf-repeater .acf-row-handle.remove{background:#f9f9f9;border-left-color:#dfdfdf}.acf-repeater th.acf-row-handle:before{content:"";width:16px;display:block;height:1px}.acf-repeater .acf-row.acf-clone{display:none!important}.acf-repeater .acf-row.-hover>.acf-row-handle .acf-icon,.acf-repeater .acf-row:hover>.acf-row-handle .acf-icon{display:block}.acf-repeater .acf-row.-hover>.acf-row-handle .acf-icon.show-on-shift,.acf-repeater .acf-row:hover>.acf-row-handle .acf-icon.show-on-shift{display:none}body.acf-keydown-shift .acf-repeater .acf-row.-hover>.acf-row-handle .acf-icon.show-on-shift,body.acf-keydown-shift .acf-repeater .acf-row:hover>.acf-row-handle .acf-icon.show-on-shift{display:block}body.acf-keydown-shift .acf-repeater .acf-row.-hover>.acf-row-handle .acf-icon.hide-on-shift,body.acf-keydown-shift .acf-repeater .acf-row:hover>.acf-row-handle .acf-icon.hide-on-shift{display:none}.acf-repeater>table>tbody>tr.ui-sortable-helper{box-shadow:0 1px 5px rgba(0,0,0,.2)}.acf-repeater>table>tbody>tr.ui-sortable-placeholder{visibility:visible!important}.acf-repeater>table>tbody>tr.ui-sortable-placeholder td{background:#f9f9f9}.acf-repeater.-block>table>tbody>tr>td,.acf-repeater.-row>table>tbody>tr>td{border-top-color:#e1e1e1}.acf-repeater.-empty>table>thead>tr>th{border-bottom:0 none}.acf-repeater.-empty.-block>table,.acf-repeater.-empty.-row>table{display:none}.acf-repeater .acf-row.-collapsed>.acf-field{display:none!important}.acf-repeater .acf-row.-collapsed>td.acf-field.-collapsed-target{display:table-cell!important}.acf-repeater .acf-row.-collapsed>.acf-fields>*{display:none!important}.acf-repeater .acf-row.-collapsed>.acf-fields>.acf-field.-collapsed-target{display:block!important}.acf-repeater .acf-row.-collapsed>.acf-fields>.acf-field.-collapsed-target[data-width]{float:none!important;width:auto!important}.acf-repeater.-table .acf-row.-collapsed .acf-field.-collapsed-target{border-left-color:#dfdfdf}.acf-repeater.-max .acf-icon[data-event=add-row]{display:none!important}.acf-flexible-content{position:relative}.acf-flexible-content>.clones{display:none}.acf-flexible-content>.values{margin:0 0 8px}.acf-flexible-content>.values>.ui-sortable-placeholder{visibility:visible!important;border:1px dashed #b4b9be;box-shadow:none;background:0 0}.acf-flexible-content .layout{position:relative;margin:20px 0 0;background:#fff;border:1px solid #ccd0d4}.acf-flexible-content .layout:first-child{margin-top:0}.acf-flexible-content .layout .acf-fc-layout-handle{display:block;position:relative;padding:8px 10px;cursor:move;border-bottom:#ccd0d4 solid 1px;color:#444;font-size:14px;line-height:1.4em}.acf-flexible-content .layout .acf-fc-layout-order{display:block;width:20px;height:20px;border-radius:10px;display:inline-block;text-align:center;line-height:20px;margin:0 2px 0 0;background:#f1f1f1;font-size:12px;color:#444}html[dir=rtl] .acf-flexible-content .layout .acf-fc-layout-order{float:right;margin-right:0;margin-left:5px}.acf-flexible-content .layout .acf-fc-layout-controls{position:absolute;top:8px;right:8px}.acf-flexible-content .layout .acf-fc-layout-controls .acf-icon{display:block;float:left;margin:0 0 0 5px}.acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-duplicate,.acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-minus,.acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-plus{visibility:hidden}html[dir=rtl] .acf-flexible-content .layout .acf-fc-layout-controls{right:auto;left:9px}.acf-flexible-content .layout.is-selected{border-color:#7e8993}.acf-flexible-content .layout.is-selected .acf-fc-layout-handle{border-color:#7e8993}.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-duplicate,.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-minus,.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-plus,.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-duplicate,.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-minus,.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-plus{visibility:visible}.acf-flexible-content .layout.-collapsed>.acf-fc-layout-handle{border-bottom-width:0}.acf-flexible-content .layout.-collapsed>.acf-fields,.acf-flexible-content .layout.-collapsed>.acf-table{display:none}.acf-flexible-content .layout>.acf-table{border:0 none;box-shadow:none}.acf-flexible-content .layout>.acf-table>tbody>tr{background:#fff}.acf-flexible-content .layout>.acf-table>thead>tr>th{background:#f9f9f9}.acf-flexible-content .no-value-message{padding:19px;border:#ccc dashed 2px;text-align:center;display:none}.acf-flexible-content.-empty>.no-value-message{display:block}.acf-fc-popup{padding:5px 0;z-index:900001;min-width:135px}.acf-fc-popup li,.acf-fc-popup ul{list-style:none;display:block;margin:0;padding:0}.acf-fc-popup li{position:relative;float:none;white-space:nowrap}.acf-fc-popup .badge{display:inline-block;border-radius:8px;font-size:9px;line-height:15px;padding:0 5px;background:#d54e21;text-align:center;color:#fff;vertical-align:top;margin:0 0 0 5px}.acf-fc-popup a{color:#eee;padding:5px 10px;display:block;text-decoration:none;position:relative}.acf-fc-popup a:hover{background:#0073aa;color:#fff}.acf-fc-popup a.disabled{color:#888;background:0 0}.acf-gallery{border:#ccd0d4 solid 1px;height:400px;position:relative}.acf-gallery .acf-gallery-main{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;z-index:2}.acf-gallery .acf-gallery-attachments{position:absolute;top:0;right:0;bottom:48px;left:0;padding:5px;overflow:auto;overflow-x:hidden}.acf-gallery .acf-gallery-attachment{width:25%;float:left;cursor:pointer;position:relative}.acf-gallery .acf-gallery-attachment .margin{margin:5px;border:#d5d9dd solid 1px;position:relative;overflow:hidden;background:#eee}.acf-gallery .acf-gallery-attachment .margin:before{content:"";display:block;padding-top:100%}.acf-gallery .acf-gallery-attachment .thumbnail{position:absolute;top:0;left:0;width:100%;height:100%;transform:translate(50%,50%)}html[dir=rtl] .acf-gallery .acf-gallery-attachment .thumbnail{transform:translate(-50%,50%)}.acf-gallery .acf-gallery-attachment .thumbnail img{display:block;height:auto;max-height:100%;width:auto;transform:translate(-50%,-50%)}html[dir=rtl] .acf-gallery .acf-gallery-attachment .thumbnail img{transform:translate(50%,-50%)}.acf-gallery .acf-gallery-attachment .filename{position:absolute;bottom:0;left:0;right:0;padding:5%;background:#f4f4f4;background:rgba(255,255,255,.8);border-top:#dfdfdf solid 1px;font-weight:700;text-align:center;word-wrap:break-word;max-height:90%;overflow:hidden}.acf-gallery .acf-gallery-attachment .actions{position:absolute;top:0;right:0;display:none}.acf-gallery .acf-gallery-attachment:hover .actions{display:block}.acf-gallery .acf-gallery-attachment.ui-sortable-helper .margin{border:none;box-shadow:0 1px 3px rgba(0,0,0,.3)}.acf-gallery .acf-gallery-attachment.ui-sortable-placeholder .margin{background:#f1f1f1;border:none}.acf-gallery .acf-gallery-attachment.ui-sortable-placeholder .margin *{display:none!important}.acf-gallery .acf-gallery-attachment.active .margin{box-shadow:0 0 0 1px #fff,0 0 0 5px #0073aa}.acf-gallery .acf-gallery-attachment.-icon .thumbnail img{transform:translate(-50%,-70%)}html[dir=rtl] .acf-gallery .acf-gallery-attachment{float:right}.acf-gallery.sidebar-open .acf-gallery-attachment .actions{display:none}.acf-gallery.sidebar-open .acf-gallery-side{z-index:2}.acf-gallery .acf-gallery-toolbar{position:absolute;right:0;bottom:0;left:0;padding:10px;border-top:#d5d9dd solid 1px;background:#fff;min-height:28px}.acf-gallery .acf-gallery-toolbar .acf-hl li{line-height:24px}.acf-gallery .acf-gallery-toolbar .bulk-actions-select{width:auto;margin:0 1px 0 0}.acf-gallery .acf-gallery-side{position:absolute;top:0;right:0;bottom:0;width:0;background:#f9f9f9;border-left:#ccd0d4 solid 1px;z-index:1;overflow:hidden}.acf-gallery .acf-gallery-side .acf-gallery-side-inner{position:absolute;top:0;left:0;bottom:0;width:349px}.acf-gallery .acf-gallery-side-info{position:relative;width:100%;padding:10px;margin:-10px 0 15px -10px;background:#f1f1f1;border-bottom:#dfdfdf solid 1px}.acf-gallery .acf-gallery-side-info:after{display:block;clear:both;content:""}html[dir=rtl] .acf-gallery .acf-gallery-side-info{margin-left:0;margin-right:-10px}.acf-gallery .acf-gallery-side-info img{float:left;width:auto;max-width:65px;max-height:65px;margin:0 10px 1px 0;background:#fff;padding:3px;border:#ccd0d4 solid 1px;border-radius:1px}html[dir=rtl] .acf-gallery .acf-gallery-side-info img{float:right;margin:0 0 0 10px}.acf-gallery .acf-gallery-side-info p{font-size:13px;line-height:15px;margin:3px 0;word-break:break-all;color:#666}.acf-gallery .acf-gallery-side-info p strong{color:#000}.acf-gallery .acf-gallery-side-info a{text-decoration:none}.acf-gallery .acf-gallery-side-info a.acf-gallery-edit{color:#21759b}.acf-gallery .acf-gallery-side-info a.acf-gallery-remove{color:#bc0b0b}.acf-gallery .acf-gallery-side-info a:hover{text-decoration:underline}.acf-gallery .acf-gallery-side-data{position:absolute;top:0;right:0;bottom:48px;left:0;overflow:auto;overflow-x:inherit;padding:10px}.acf-gallery .acf-gallery-side-data .acf-label,.acf-gallery .acf-gallery-side-data th.label{color:#666;font-size:12px;line-height:25px;padding:0 4px 8px 0!important;width:auto!important;vertical-align:top}html[dir=rtl] .acf-gallery .acf-gallery-side-data .acf-label,html[dir=rtl] .acf-gallery .acf-gallery-side-data th.label{padding:0 0 8px 4px!important}.acf-gallery .acf-gallery-side-data .acf-label label,.acf-gallery .acf-gallery-side-data th.label label{font-weight:400}.acf-gallery .acf-gallery-side-data .acf-input,.acf-gallery .acf-gallery-side-data td.field{padding:0 0 8px!important}.acf-gallery .acf-gallery-side-data textarea{min-height:0;height:60px}.acf-gallery .acf-gallery-side-data p.help{font-size:12px}.acf-gallery .acf-gallery-side-data p.help:hover{font-weight:400}.acf-gallery[data-columns="1"] .acf-gallery-attachment{width:100%}.acf-gallery[data-columns="2"] .acf-gallery-attachment{width:50%}.acf-gallery[data-columns="3"] .acf-gallery-attachment{width:33.333%}.acf-gallery[data-columns="4"] .acf-gallery-attachment{width:25%}.acf-gallery[data-columns="5"] .acf-gallery-attachment{width:20%}.acf-gallery[data-columns="6"] .acf-gallery-attachment{width:16.666%}.acf-gallery[data-columns="7"] .acf-gallery-attachment{width:14.285%}.acf-gallery[data-columns="8"] .acf-gallery-attachment{width:12.5%}.acf-gallery .ui-resizable-handle{display:block;position:absolute}.acf-gallery .ui-resizable-s{bottom:-5px;cursor:ns-resize;height:7px;left:0;width:100%}.acf-media-modal .attachment.acf-selected{box-shadow:0 0 0 3px #fff inset,0 0 0 7px #0073aa inset!important}.acf-media-modal .attachment.acf-selected .check{display:none!important}.acf-media-modal .attachment.acf-selected .thumbnail{opacity:.25!important}.acf-media-modal .attachment.acf-selected .attachment-preview:before{background:rgba(0,0,0,.15);z-index:1;position:relative}.acf-block-component .components-placeholder{margin:0}.acf-block-component .acf-block-fields{background:#fff;text-align:left;font-size:13px;line-height:1.4em;color:#444;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}html[dir=rtl] .acf-block-component .acf-block-fields{text-align:right}.acf-block-component .acf-block-fields p{font-size:13px;line-height:1.5}.acf-block-body .acf-block-fields{border:#adb2ad solid 1px}.acf-block-body .acf-block-fields .acf-tab-wrap .acf-tab-group{margin-left:0;padding:16px 20px 0}.acf-block-body .acf-fields>.acf-field{padding:16px 20px}.acf-block-body .acf-fields>.acf-field.acf-accordion{border-color:#adb2ad}.acf-block-body .acf-fields>.acf-field.acf-accordion .acf-accordion-title{padding:16px 20px}.acf-block-body .acf-block-preview{min-height:10px}.acf-block-panel .acf-block-fields{border-top:#e2e4e7 solid 1px;min-height:1px}.acf-block-panel .acf-block-fields:empty{border-top:none}.acf-block-panel .acf-block-fields .acf-tab-wrap{background:0 0}.components-panel__body .acf-block-panel{margin:16px -16px -16px} \ No newline at end of file diff --git a/assets/js/acf-field-group.js b/assets/build/js/acf-field-group.js similarity index 97% rename from assets/js/acf-field-group.js rename to assets/build/js/acf-field-group.js index fb2781b..50c0de6 100644 --- a/assets/js/acf-field-group.js +++ b/assets/build/js/acf-field-group.js @@ -44,7 +44,7 @@ alert( acf.__('Field group title is required') ); // focus - $title.focus(); + $title.trigger('focus'); } }, @@ -180,7 +180,6 @@ }); })(jQuery); - (function($, undefined){ acf.FieldObject = acf.Model.extend({ @@ -407,9 +406,35 @@ }, initialize: function(){ - // do nothing + this.addProFields(); }, - + + addProFields: function() { + // Make sure we're only running this on free version. + if (acf.data.fieldTypes.hasOwnProperty('clone')) { + return; + } + + // Make sure we haven't appended these fields before. + var $fieldTypeSelect = $('.field-type').not('.acf-free-field-type'); + + // Append pro fields to "Layout" group. + var $layoutGroup = $fieldTypeSelect.find('optgroup option[value="group"]').parent(); + $layoutGroup.append( + '' + + '' + + '' + ); + + // Add pro fields to "Content" group. + var $contentGroup = $fieldTypeSelect.find('optgroup option[value="image"]').parent(); + $contentGroup.append( + '' + ); + + $fieldTypeSelect.addClass('acf-free-field-type'); + }, + render: function(){ // vars @@ -714,8 +739,8 @@ // focus label var $label = newField.$setting('label input'); setTimeout(function(){ - $label.focus(); - }, 251); + $label.trigger('focus'); + }, 251); // update newField label / name var label = newField.prop('label'); @@ -994,7 +1019,6 @@ }); })(jQuery); - (function($, undefined){ /** @@ -1243,7 +1267,6 @@ acf.registerFieldSetting( TimePickerReturnFormatFieldSetting ); })(jQuery); - (function($, undefined){ /** @@ -1647,7 +1670,6 @@ }, }); })(jQuery); - (function($, undefined){ /** @@ -2100,7 +2122,7 @@ // focus label var $label = newField.$input('label'); setTimeout(function(){ - $label.focus(); + $label.trigger('focus'); }, 251); // open @@ -2116,7 +2138,6 @@ }); })(jQuery); - (function($, undefined){ /** @@ -2221,7 +2242,6 @@ }); })(jQuery); - (function($, undefined){ var _acf = acf.getCompatibility( acf ); @@ -2502,12 +2522,4 @@ } }); -})(jQuery); - -// @codekit-prepend "_field-group.js"; -// @codekit-prepend "_field-group-field.js"; -// @codekit-prepend "_field-group-settings.js"; -// @codekit-prepend "_field-group-conditions.js"; -// @codekit-prepend "_field-group-fields.js"; -// @codekit-prepend "_field-group-locations.js"; -// @codekit-prepend "_field-group-compatibility.js"; \ No newline at end of file +})(jQuery); \ No newline at end of file diff --git a/assets/build/js/acf-field-group.min.js b/assets/build/js/acf-field-group.min.js new file mode 100644 index 0000000..41a03a0 --- /dev/null +++ b/assets/build/js/acf-field-group.min.js @@ -0,0 +1 @@ +!function(n){new acf.Model({id:"fieldGroupManager",events:{"submit #post":"onSubmit",'click a[href="#"]':"onClick","click .submitdelete":"onClickTrash"},filters:{find_fields_args:"filterFindFieldArgs"},onSubmit:function(e,t){var i=n("#titlewrap #title");i.val()||(e.preventDefault(),acf.unlockForm(t),alert(acf.__("Field group title is required")),i.trigger("focus"))},onClick:function(e){e.preventDefault()},onClickTrash:function(e){confirm(acf.__("Move to trash. Are you sure?"))||e.preventDefault()},filterFindFieldArgs:function(e){return e.visible=!0,e}}),new acf.Model({id:"screenOptionsManager",wait:"prepare",events:{change:"onChange"},initialize:function(){var e=n("#adv-settings"),t=n("#acf-append-show-on-screen");e.find(".metabox-prefs").append(t.html()),e.find(".metabox-prefs br").remove(),t.remove(),this.$el=n("#acf-field-key-hide"),this.render()},isChecked:function(){return this.$el.prop("checked")},onChange:function(e,t){var i=this.isChecked()?1:0;acf.updateUserSetting("show_field_keys",i),this.render()},render:function(){this.isChecked()?n("#acf-field-group-fields").addClass("show-field-keys"):n("#acf-field-group-fields").removeClass("show-field-keys")}}),new acf.Model({actions:{new_field:"onNewField"},onNewField:function(e){var t,i;e.has("append")&&(i=e.get("append"),(t=e.$el.siblings('[data-name="'+i+'"]').first()).length&&((t=(i=t.children(".acf-input")).children("ul")).length||(i.wrapInner(''),t=i.children("ul")),i=e.$(".acf-input").html(),i=n("
  • "+i+"
  • "),t.append(i),t.attr("data-cols",t.children().length),e.remove()))}})}(jQuery),function(r){acf.FieldObject=acf.Model.extend({eventScope:".acf-field-object",events:{"click .edit-field":"onClickEdit","click .delete-field":"onClickDelete","click .duplicate-field":"duplicate","click .move-field":"move","change .field-type":"onChangeType","change .field-required":"onChangeRequired","blur .field-label":"onChangeLabel","blur .field-name":"onChangeName",change:"onChange",changed:"onChanged"},data:{id:0,key:"",type:""},setup:function(e){this.$el=e,this.inherit(e),this.prop("ID"),this.prop("parent"),this.prop("menu_order")},$input:function(e){return r("#"+this.getInputId()+"-"+e)},$meta:function(){return this.$(".meta:first")},$handle:function(){return this.$(".handle:first")},$settings:function(){return this.$(".settings:first")},$setting:function(e){return this.$(".acf-field-settings:first > .acf-field-setting-"+e)},getParent:function(){return acf.getFieldObjects({child:this.$el,limit:1}).pop()},getParents:function(){return acf.getFieldObjects({child:this.$el})},getFields:function(){return acf.getFieldObjects({parent:this.$el})},getInputName:function(){return"acf_fields["+this.get("id")+"]"},getInputId:function(){return"acf_fields-"+this.get("id")},newInput:function(e,t){var i=this.getInputId(),n=this.getInputName();e&&(i+="-"+e,n+="["+e+"]");t=r("").attr({id:i,name:n,value:t});return this.$("> .meta").append(t),t},getProp:function(e){if(this.has(e))return this.get(e);var t=this.$input(e),t=t.length?t.val():null;return this.set(e,t,!0),t},setProp:function(e,t){var i=this.$input(e);i.val();return i.length||(i=this.newInput(e,t)),null===t?i.remove():i.val(t),this.has(e)?this.set(e,t):this.set(e,t,!0),this},prop:function(e,t){return void 0!==t?this.setProp(e,t):this.getProp(e)},props:function(t){Object.keys(t).map(function(e){this.setProp(e,t[e])},this)},getLabel:function(){var e=this.prop("label");return e=""===e?acf.__("(no label)"):e},getName:function(){return this.prop("name")},getType:function(){return this.prop("type")},getTypeLabel:function(){var e=this.prop("type"),t=acf.get("fieldTypes");return t[e]?t[e].label:e},getKey:function(){return this.prop("key")},initialize:function(){this.addProFields()},addProFields:function(){var e;acf.data.fieldTypes.hasOwnProperty("clone")||((e=r(".field-type").not(".acf-free-field-type")).find('optgroup option[value="group"]').parent().append('"),e.find('optgroup option[value="image"]').parent().append('"),e.addClass("acf-free-field-type"))},render:function(){var e=this.$(".handle:first"),t=this.prop("menu_order"),i=this.getLabel(),n=this.prop("name"),a=this.getTypeLabel(),l=this.prop("key"),o=this.$input("required").prop("checked");e.find(".acf-icon").html(parseInt(t)+1),o&&(i+=' *'),e.find(".li-field-label strong a").html(i),e.find(".li-field-name").text(n),e.find(".li-field-type").text(a),e.find(".li-field-key").text(l),acf.doAction("render_field_object",this)},refresh:function(){acf.doAction("refresh_field_object",this)},isOpen:function(){return this.$el.hasClass("open")},onClickEdit:function(e){this.isOpen()?this.close():this.open()},open:function(){var e=this.$el.children(".settings");e.slideDown(),this.$el.addClass("open"),acf.doAction("open_field_object",this),this.trigger("openFieldObject"),acf.doAction("show",e)},close:function(){var e=this.$el.children(".settings");e.slideUp(),this.$el.removeClass("open"),acf.doAction("close_field_object",this),this.trigger("closeFieldObject"),acf.doAction("hide",e)},serialize:function(){return acf.serialize(this.$el,this.getInputName())},save:function(e){e=e||"settings","settings"!==this.getProp("save")&&(this.setProp("save",e),this.$el.attr("data-save",e),acf.doAction("save_field_object",this,e))},submit:function(){var e=this.getInputName(),t=this.get("save");this.isOpen()&&this.close(),"settings"==t||("meta"==t?this.$('> .settings [name^="'+e+'"]'):this.$('[name^="'+e+'"]')).remove(),acf.doAction("submit_field_object",this)},onChange:function(e,t){this.save(),acf.doAction("change_field_object",this)},onChanged:function(e,t,i,n){"save"!=i&&(-1<["menu_order","parent"].indexOf(i)?this.save("meta"):this.save(),-1<["menu_order","label","required","name","type","key"].indexOf(i)&&this.render(),acf.doAction("change_field_object_"+i,this,n))},onChangeLabel:function(e,t){t=t.val();this.set("label",t),""==this.prop("name")&&(t=acf.applyFilters("generate_field_object_name",acf.strSanitize(t),this),this.prop("name",t))},onChangeName:function(e,t){t=t.val();this.set("name",t),"field_"===t.substr(0,6)&&alert(acf.__('The string "field_" may not be used at the start of a field name'))},onChangeRequired:function(e,t){t=t.prop("checked")?1:0;this.set("required",t)},delete:function(e){e=acf.parseArgs(e,{animate:!0});var t,i=this.prop("ID");i&&(i=(t=r("#_acf_delete_fields")).val()+"|"+i,t.val(i)),acf.doAction("delete_field_object",this),e.animate?this.removeAnimate():this.remove()},onClickDelete:function(e,t){if(e.shiftKey)return this.delete();this.$el.addClass("-hover");acf.newTooltip({confirmRemove:!0,target:t,context:this,confirm:function(){this.delete()},cancel:function(){this.$el.removeClass("-hover")}})},removeAnimate:function(){var e=this,t=this.$el.parent(),i=acf.findFieldObjects({sibling:this.$el});acf.remove({target:this.$el,endHeight:i.length?0:50,complete:function(){e.remove(),acf.doAction("removed_field_object",e,t)}}),acf.doAction("remove_field_object",e,t)},duplicate:function(){var e=acf.uniqid("field_"),t=acf.duplicate({target:this.$el,search:this.get("id"),replace:e});t.attr("data-key",e);var i=acf.getFieldObject(t);this.isOpen()?this.close():i.open();var n=i.$setting("label input");setTimeout(function(){n.trigger("focus")},251);var a,l=i.prop("label"),o=i.prop("name"),c=o.split("_").pop(),t=acf.__("copy");acf.isNumeric(c)?(l=l.replace(c,a=+c+1),o=o.replace(c,a)):0===c.indexOf(t)?(a=+c.replace(t,""),l=l.replace(c,t+(a=a?a+1:2)),o=o.replace(c,t+a)):(l+=" ("+t+")",o+="_"+t),i.prop("ID",0),i.prop("label",l),i.prop("name",o),i.prop("key",e),acf.doAction("duplicate_field_object",this,i),acf.doAction("append_field_object",i)},wipe:function(){var e=this.get("id"),t=this.get("key"),i=acf.uniqid("field_");acf.rename({target:this.$el,search:e,replace:i}),this.set("id",i),this.set("prevId",e),this.set("prevKey",t),this.prop("key",i),this.prop("ID",0),this.$el.attr("data-key",i),this.$el.attr("data-id",i),acf.doAction("wipe_field_object",this)},move:function(){function t(e){return"settings"==e.get("save")}var i,n,a,l,o,c,d=t(this);d||acf.getFieldObjects({parent:this.$el}).map(function(e){d=t(e)||e.changed}),d?alert(acf.__("This field cannot be moved until its changes have been saved")):(i=this.prop("ID"),n=this,a=!1,l=function(e){a.loading(!1),a.content(e),a.on("submit","form",o)},o=function(e,t){e.preventDefault(),acf.startButtonLoading(a.$(".button"));e={action:"acf/field_group/move_field",field_id:i,field_group_id:a.$("select").val()};r.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"html",success:c})},c=function(e){a.content(e),n.removeAnimate()},function(){a=acf.newPopup({title:acf.__("Move Custom Field"),loading:!0,width:"300px"});var e={action:"acf/field_group/move_field",field_id:i};r.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"html",success:l})}())},onChangeType:function(e,t){this.changeTimeout&&clearTimeout(this.changeTimeout),this.changeTimeout=this.setTimeout(function(){this.changeType(t.val())},300)},changeType:function(e){var t=this.prop("type"),i=acf.strSlugify("acf-field-object-"+t),n=acf.strSlugify("acf-field-object-"+e);this.$el.removeClass(i).addClass(n),this.$el.attr("data-type",e),this.$el.data("type",e),this.has("xhr")&&this.get("xhr").abort();var a=this.$("> .settings > table > tbody"),n=a.children('[data-setting="'+t+'"]');if(this.set("settings-"+t,n),n.detach(),this.has("settings-"+e)){var l=this.get("settings-"+e);return this.$setting("conditional_logic").before(l),void this.set("type",e)}var o=r('
    ');this.$setting("conditional_logic").before(o);l={action:"acf/field_group/render_field_settings",field:this.serialize(),prefix:this.getInputName()},l=r.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(l),type:"post",dataType:"html",context:this,success:function(e){e&&(o.after(e),acf.doAction("append",a))},complete:function(){o.remove(),this.set("type",e)}});this.set("xhr",l)},updateParent:function(){var e=acf.get("post_id"),t=this.getParent();t&&(e=parseInt(t.prop("ID"))||t.prop("key")),this.prop("parent",e)}})}(jQuery),function(i){function n(e){return acf.strPascalCase(e||"")+"FieldSetting"}acf.registerFieldSetting=function(e){var t=e.prototype,t=n(t.type+" "+t.name);this.models[t]=e},acf.newFieldSetting=function(e){var t=e.get("setting")||"",i=e.get("name")||"",i=n(t+" "+i),i=acf.models[i]||null;return null!==i&&new i(e)},acf.getFieldSetting=function(e){return(e=e instanceof jQuery?acf.getField(e):e).setting};new acf.Model({actions:{new_field:"onNewField"},onNewField:function(e){e.setting=acf.newFieldSetting(e)}});acf.FieldSetting=acf.Model.extend({field:!1,type:"",name:"",wait:"ready",eventScope:".acf-field",events:{change:"render"},setup:function(e){var t=e.$el;this.$el=t,this.field=e,this.$fieldObject=t.closest(".acf-field-object"),this.fieldObject=acf.getFieldObject(this.$fieldObject),i.extend(this.data,e.data)},initialize:function(){this.render()},render:function(){}});var e=acf.FieldSetting.extend({type:"",name:"",render:function(){var e=this.$('input[type="radio"]:checked');"other"!=e.val()&&this.$('input[type="text"]').val(e.val())}}),t=e.extend({type:"date_picker",name:"display_format"}),a=e.extend({type:"date_picker",name:"return_format"});acf.registerFieldSetting(t),acf.registerFieldSetting(a);t=e.extend({type:"date_time_picker",name:"display_format"}),a=e.extend({type:"date_time_picker",name:"return_format"});acf.registerFieldSetting(t),acf.registerFieldSetting(a);a=e.extend({type:"time_picker",name:"display_format"}),e=e.extend({name:"return_format"});acf.registerFieldSetting(a),acf.registerFieldSetting(e)}(jQuery),function(l){var e=acf.FieldSetting.extend({type:"",name:"conditional_logic",events:{"change .conditions-toggle":"onChangeToggle","click .add-conditional-group":"onClickAddGroup","focus .condition-rule-field":"onFocusField","change .condition-rule-field":"onChangeField","change .condition-rule-operator":"onChangeOperator","click .add-conditional-rule":"onClickAdd","click .remove-conditional-rule":"onClickRemove"},$rule:!1,scope:function(e){return this.$rule=e,this},ruleData:function(e,t){return this.$rule.data.apply(this.$rule,arguments)},$input:function(e){return this.$rule.find(".condition-rule-"+e)},$td:function(e){return this.$rule.find("td."+e)},$toggle:function(){return this.$(".conditions-toggle")},$control:function(){return this.$(".rule-groups")},$groups:function(){return this.$(".rule-group")},$rules:function(){return this.$(".rule")},open:function(){var e=this.$control();e.show(),acf.enable(e)},close:function(){var e=this.$control();e.hide(),acf.disable(e)},render:function(){this.$toggle().prop("checked")?(this.renderRules(),this.open()):this.close()},renderRules:function(){var e=this;this.$rules().each(function(){e.renderRule(l(this))})},renderRule:function(e){this.scope(e),this.renderField(),this.renderOperator(),this.renderValue()},renderField:function(){var i=[],n=this.fieldObject.cid,e=this.$input("field");acf.getFieldObjects().map(function(e){var t={id:e.getKey(),text:e.getLabel()};e.cid===n&&(t.text+=acf.__("(this field)"),t.disabled=!0),acf.getConditionTypes({fieldType:e.getType()}).length||(t.disabled=!0);e=e.getParents().length;t.text="- ".repeat(e)+t.text,i.push(t)}),i.length||i.push({id:"",text:acf.__("No toggle fields available")}),acf.renderSelect(e,i),this.ruleData("field",e.val())},renderOperator:function(){var e,t,i;this.ruleData("field")&&((e=this.$input("operator")).val(),t=[],null===e.val()&&acf.renderSelect(e,[{id:this.ruleData("operator"),text:""}]),i=acf.findFieldObject(this.ruleData("field")),i=acf.getFieldObject(i),acf.getConditionTypes({fieldType:i.getType()}).map(function(e){t.push({id:e.prototype.operator,text:e.prototype.label})}),acf.renderSelect(e,t),this.ruleData("operator",e.val()))},renderValue:function(){var t,e,i,n,a;this.ruleData("field")&&this.ruleData("operator")&&(t=this.$input("value"),e=this.$td("value"),i=t.val(),n=acf.findFieldObject(this.ruleData("field")),n=acf.getFieldObject(n),(n=acf.getConditionTypes({fieldType:n.getType(),operator:this.ruleData("operator")})[0].prototype.choices(n))instanceof Array?(a=l(""),acf.renderSelect(a,n)):a=l(n),t.detach(),e.html(a),setTimeout(function(){["class","name","id"].map(function(e){a.attr(e,t.attr(e))})},0),a.prop("disabled")||acf.val(a,i,!0),this.ruleData("value",a.val()))},onChangeToggle:function(){this.render()},onClickAddGroup:function(e,t){this.addGroup()},addGroup:function(){var e=this.$(".rule-group:last"),e=acf.duplicate(e);e.find("h4").text(acf.__("or")),e.find("tr").not(":first").remove(),this.fieldObject.save()},onFocusField:function(e,t){this.renderField()},onChangeField:function(e,t){this.scope(t.closest(".rule")),this.ruleData("field",t.val()),this.renderOperator(),this.renderValue()},onChangeOperator:function(e,t){this.scope(t.closest(".rule")),this.ruleData("operator",t.val()),this.renderValue()},onClickAdd:function(e,t){t=acf.duplicate(t.closest(".rule"));this.renderRule(t)},onClickRemove:function(e,t){t=t.closest(".rule");this.fieldObject.save(),0==t.siblings(".rule").length&&t.closest(".rule-group").remove(),t.remove()}});acf.registerFieldSetting(e);new acf.Model({actions:{duplicate_field_objects:"onDuplicateFieldObjects"},onDuplicateFieldObjects:function(e,t,i){var n={},a=l();e.map(function(e){n[e.get("prevKey")]=e.get("key"),a=a.add(e.$(".condition-rule-field"))}),a.each(function(){var e=l(this),t=e.val();t&&n[t]&&(e.find("option:selected").attr("value",n[t]),e.val(n[t]))})}})}(jQuery),function(l){acf.findFieldObject=function(e){return acf.findFieldObjects({key:e,limit:1})},acf.findFieldObjects=function(e){e=e||{};var t=".acf-field-object",i=!1;return(e=acf.parseArgs(e,{id:"",key:"",type:"",limit:!1,list:null,parent:!1,sibling:!1,child:!1})).id&&(t+='[data-id="'+e.id+'"]'),e.key&&(t+='[data-key="'+e.key+'"]'),e.type&&(t+='[data-type="'+e.type+'"]'),i=e.list?e.list.children(t):e.parent?e.parent.find(t):e.sibling?e.sibling.siblings(t):e.child?e.child.parents(t):l(t),i=e.limit?i.slice(0,e.limit):i},acf.getFieldObject=function(e){return(e="string"==typeof e?acf.findFieldObject(e):e).data("acf")||acf.newFieldObject(e)},acf.getFieldObjects=function(e){var e=acf.findFieldObjects(e),t=[];return e.each(function(){var e=acf.getFieldObject(l(this));t.push(e)}),t},acf.newFieldObject=function(e){e=new acf.FieldObject(e);return acf.doAction("new_field_object",e),e};new acf.Model({priority:5,initialize:function(){["prepare","ready","append","remove"].map(function(e){this.addFieldActions(e)},this)},addFieldActions:function(e){var n=e+"_field_objects",a=e+"_field_object",l=e+"FieldObject";acf.addAction(e,function(e){var t,i=acf.getFieldObjects({parent:e});i.length&&((t=acf.arrayArgs(arguments)).splice(0,1,n,i),acf.doAction.apply(null,t))},5),acf.addAction(n,function(e){var t=acf.arrayArgs(arguments);t.unshift(a),e.map(function(e){t[1]=e,acf.doAction.apply(null,t)})},5),acf.addAction(a,function(t){var i=acf.arrayArgs(arguments);i.unshift(a);["type","name","key"].map(function(e){i[0]=a+"/"+e+"="+t.get(e),acf.doAction.apply(null,i)}),i.splice(0,2),t.trigger(l,i)},5)}}),new acf.Model({id:"fieldManager",events:{"submit #post":"onSubmit","mouseenter .acf-field-list":"onHoverSortable","click .add-field":"onClickAdd"},actions:{removed_field_object:"onRemovedField",sortstop_field_object:"onReorderField",delete_field_object:"onDeleteField",change_field_object_type:"onChangeFieldType",duplicate_field_object:"onDuplicateField"},onSubmit:function(e,t){acf.getFieldObjects().map(function(e){e.submit()})},setFieldMenuOrder:function(e){this.renderFields(e.$el.parent())},onHoverSortable:function(e,n){n.hasClass("ui-sortable")||n.sortable({handle:".acf-sortable-handle",connectWith:".acf-field-list",start:function(e,t){var i=acf.getFieldObject(t.item);t.placeholder.height(t.item.height()),acf.doAction("sortstart_field_object",i,n)},update:function(e,t){t=acf.getFieldObject(t.item);acf.doAction("sortstop_field_object",t,n)}})},onRemovedField:function(e,t){this.renderFields(t)},onReorderField:function(e,t){e.updateParent(),this.renderFields(t)},onDeleteField:function(e){e.getFields().map(function(e){e.delete({animate:!1})})},onChangeFieldType:function(e){},onDuplicateField:function(e,t){var i=t.getFields();i.length&&(i.map(function(e){e.wipe(),e.updateParent()}),acf.doAction("duplicate_field_objects",i,t,e)),this.setFieldMenuOrder(t)},renderFields:function(e){var t=acf.getFieldObjects({list:e});t.length?(e.removeClass("-empty"),t.map(function(e,t){e.prop("menu_order",t)})):e.addClass("-empty")},onClickAdd:function(e,t){t=t.closest(".acf-tfoot").siblings(".acf-field-list");this.addField(t)},addField:function(i){var e=l("#tmpl-acf-field").html(),t=l(e),n=t.data("id"),e=acf.uniqid("field_"),t=acf.duplicate({target:t,search:n,replace:e,append:function(e,t){i.append(t)}}),n=acf.getFieldObject(t);n.prop("key",e),n.prop("ID",0),n.prop("label",""),n.prop("name",""),t.attr("data-key",e),t.attr("data-id",e),n.updateParent();var a=n.$input("label");setTimeout(function(){a.trigger("focus")},251),n.open(),this.renderFields(i),acf.doAction("add_field_object",n),acf.doAction("append_field_object",n)}})}(jQuery),function(a){new acf.Model({id:"locationManager",wait:"ready",events:{"click .add-location-rule":"onClickAddRule","click .add-location-group":"onClickAddGroup","click .remove-location-rule":"onClickRemoveRule","change .refresh-location-rule":"onChangeRemoveRule"},initialize:function(){this.$el=a("#acf-field-group-locations")},onClickAddRule:function(e,t){this.addRule(t.closest("tr"))},onClickRemoveRule:function(e,t){this.removeRule(t.closest("tr"))},onChangeRemoveRule:function(e,t){this.changeRule(t.closest("tr"))},onClickAddGroup:function(e,t){this.addGroup()},addRule:function(e){acf.duplicate(e)},removeRule:function(e){(0==e.siblings("tr").length?e.closest(".rule-group"):e).remove()},changeRule:function(t){var e=t.closest(".rule-group"),i=t.find("td.param select").attr("name").replace("[param]",""),n={action:"acf/field_group/render_location_rule"};n.rule=acf.serialize(t,i),n.rule.id=t.data("id"),n.rule.group=e.data("id"),acf.disable(t.find("td.value")),a.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(n),type:"post",dataType:"html",success:function(e){e&&t.replaceWith(e)}})},addGroup:function(){var e=this.$(".rule-group:last");$group2=acf.duplicate(e),$group2.find("h4").text(acf.__("or")),$group2.find("tr").not(":first").remove()}})}(jQuery),function(l){var e=acf.getCompatibility(acf);e.field_group={save_field:function(e,t){t=void 0!==t?t:"settings",acf.getFieldObject(e).save(t)},delete_field:function(e,t){t=void 0===t||t,acf.getFieldObject(e).delete({animate:t})},update_field_meta:function(e,t,i){acf.getFieldObject(e).prop(t,i)},delete_field_meta:function(e,t){acf.getFieldObject(e).prop(t,null)}},e.field_group.field_object=acf.model.extend({type:"",o:{},$field:null,$settings:null,tag:function(e){var t=this.type,i=e.split("_");return i.splice(1,0,"field"),e=i.join("_"),t&&(e+="/type="+t),e},selector:function(){var e=".acf-field-object",t=this.type;return t&&(e+="-"+t,e=acf.str_replace("_","-",e)),e},_add_action:function(e,t){var i=this;acf.add_action(this.tag(e),function(e){i.set("$field",e),i[t].apply(i,arguments)})},_add_filter:function(e,t){var i=this;acf.add_filter(this.tag(e),function(e){i.set("$field",e),i[t].apply(i,arguments)})},_add_event:function(e,t){var i=this,n=e.substr(0,e.indexOf(" ")),a=e.substr(e.indexOf(" ")+1),e=this.selector();l(document).on(n,e+" "+a,function(e){e.$el=l(this),e.$field=e.$el.closest(".acf-field-object"),i.set("$field",e.$field),i[t].apply(i,[e])})},_set_$field:function(){this.o=this.$field.data(),this.$settings=this.$field.find("> .settings > table > tbody"),this.focus()},focus:function(){},setting:function(e){return this.$settings.find("> .acf-field-setting-"+e)}});new acf.Model({actions:{open_field_object:"onOpenFieldObject",close_field_object:"onCloseFieldObject",add_field_object:"onAddFieldObject",duplicate_field_object:"onDuplicateFieldObject",delete_field_object:"onDeleteFieldObject",change_field_object_type:"onChangeFieldObjectType",change_field_object_label:"onChangeFieldObjectLabel",change_field_object_name:"onChangeFieldObjectName",change_field_object_parent:"onChangeFieldObjectParent",sortstop_field_object:"onChangeFieldObjectParent"},onOpenFieldObject:function(e){acf.doAction("open_field",e.$el),acf.doAction("open_field/type="+e.get("type"),e.$el),acf.doAction("render_field_settings",e.$el),acf.doAction("render_field_settings/type="+e.get("type"),e.$el)},onCloseFieldObject:function(e){acf.doAction("close_field",e.$el),acf.doAction("close_field/type="+e.get("type"),e.$el)},onAddFieldObject:function(e){acf.doAction("add_field",e.$el),acf.doAction("add_field/type="+e.get("type"),e.$el)},onDuplicateFieldObject:function(e){acf.doAction("duplicate_field",e.$el),acf.doAction("duplicate_field/type="+e.get("type"),e.$el)},onDeleteFieldObject:function(e){acf.doAction("delete_field",e.$el),acf.doAction("delete_field/type="+e.get("type"),e.$el)},onChangeFieldObjectType:function(e){acf.doAction("change_field_type",e.$el),acf.doAction("change_field_type/type="+e.get("type"),e.$el),acf.doAction("render_field_settings",e.$el),acf.doAction("render_field_settings/type="+e.get("type"),e.$el)},onChangeFieldObjectLabel:function(e){acf.doAction("change_field_label",e.$el),acf.doAction("change_field_label/type="+e.get("type"),e.$el)},onChangeFieldObjectName:function(e){acf.doAction("change_field_name",e.$el),acf.doAction("change_field_name/type="+e.get("type"),e.$el)},onChangeFieldObjectParent:function(e){acf.doAction("update_field_parent",e.$el)}})}(jQuery); \ No newline at end of file diff --git a/assets/js/acf-input.js b/assets/build/js/acf-input.js similarity index 99% rename from assets/js/acf-input.js rename to assets/build/js/acf-input.js index 2b32fc7..37aec7b 100644 --- a/assets/js/acf-input.js +++ b/assets/build/js/acf-input.js @@ -526,7 +526,6 @@ }; })(jQuery); - (function($, undefined){ /** @@ -919,7 +918,6 @@ }); })(jQuery); - (function($, undefined){ var i = 0; @@ -1164,7 +1162,6 @@ }); })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -1210,7 +1207,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -1321,7 +1317,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -1399,7 +1394,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -1562,7 +1556,6 @@ }; })(jQuery); - (function($, undefined){ var Field = acf.models.DatePickerField.extend({ @@ -1662,7 +1655,6 @@ }; })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -2259,7 +2251,6 @@ } })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -2449,7 +2440,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.models.ImageField.extend({ @@ -2570,7 +2560,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -2767,7 +2756,6 @@ }); })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -2931,7 +2919,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -3000,7 +2987,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -3043,7 +3029,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -3422,7 +3407,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -3488,7 +3472,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ // vars @@ -4001,7 +3984,6 @@ }); })(jQuery); - (function($, undefined){ var Field = acf.models.SelectField.extend({ @@ -4011,7 +3993,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.models.SelectField.extend({ @@ -4021,7 +4002,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.models.SelectField.extend({ @@ -4031,7 +4011,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -4150,7 +4129,7 @@ $button = popup.$('.acf-submit-button'); // focus - $name.focus(); + $name.trigger('focus'); // submit form popup.on('submit', 'form', step3); @@ -4165,7 +4144,7 @@ // basic validation if( $name.val() === '' ) { - $name.focus(); + $name.trigger('focus'); return false; } @@ -4231,7 +4210,7 @@ } // focus - $name.focus(); + $name.trigger('focus'); }; // step 5. @@ -4355,7 +4334,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.models.DatePickerField.extend({ @@ -4433,7 +4411,6 @@ }; })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -4529,7 +4506,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -4594,7 +4570,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ var Field = acf.Field.extend({ @@ -4698,7 +4673,6 @@ acf.registerFieldType( Field ); })(jQuery); - (function($, undefined){ // vars @@ -4948,7 +4922,6 @@ }; })(jQuery); - (function($, undefined){ // vars @@ -5255,7 +5228,6 @@ }); })(jQuery); - (function($, undefined){ var __ = acf.__; @@ -5703,7 +5675,6 @@ acf.registerConditionType( SelectionLessThan ); })(jQuery); - (function($, undefined){ acf.unload = new acf.Model({ @@ -5766,7 +5737,6 @@ }); })(jQuery); - (function($, undefined){ /** @@ -5995,7 +5965,6 @@ }); })(jQuery); - (function($, undefined){ /** @@ -6828,7 +6797,6 @@ }); })(jQuery); - (function($, undefined){ acf.screen = new acf.Model({ @@ -7446,7 +7414,6 @@ }); })(jQuery); - (function($, undefined){ /** @@ -8236,7 +8203,6 @@ }); })(jQuery); - (function($, undefined){ acf.tinymce = { @@ -8639,7 +8605,6 @@ }); })(jQuery); - (function($, undefined){ /** @@ -9769,7 +9734,6 @@ }); })(jQuery); - (function($, undefined){ /** @@ -10156,7 +10120,6 @@ }); })(jQuery); - (function($, undefined){ /** @@ -10917,43 +10880,4 @@ }); _acf.ajax = acf.screen; -})(jQuery); - -// @codekit-prepend "_acf-field.js"; -// @codekit-prepend "_acf-fields.js"; -// @codekit-prepend "_acf-field-accordion.js"; -// @codekit-prepend "_acf-field-button-group.js"; -// @codekit-prepend "_acf-field-checkbox.js"; -// @codekit-prepend "_acf-field-color-picker.js"; -// @codekit-prepend "_acf-field-date-picker.js"; -// @codekit-prepend "_acf-field-date-time-picker.js"; -// @codekit-prepend "_acf-field-google-map.js"; -// @codekit-prepend "_acf-field-image.js"; -// @codekit-prepend "_acf-field-file.js"; -// @codekit-prepend "_acf-field-link.js"; -// @codekit-prepend "_acf-field-oembed.js"; -// @codekit-prepend "_acf-field-radio.js"; -// @codekit-prepend "_acf-field-range.js"; -// @codekit-prepend "_acf-field-relationship.js"; -// @codekit-prepend "_acf-field-select.js"; -// @codekit-prepend "_acf-field-tab.js"; -// @codekit-prepend "_acf-field-post-object.js"; -// @codekit-prepend "_acf-field-page-link.js"; -// @codekit-prepend "_acf-field-user.js"; -// @codekit-prepend "_acf-field-taxonomy.js"; -// @codekit-prepend "_acf-field-time-picker.js"; -// @codekit-prepend "_acf-field-true-false.js"; -// @codekit-prepend "_acf-field-url.js"; -// @codekit-prepend "_acf-field-wysiwyg.js"; -// @codekit-prepend "_acf-condition.js"; -// @codekit-prepend "_acf-conditions.js"; -// @codekit-prepend "_acf-condition-types.js"; -// @codekit-prepend "_acf-unload.js"; -// @codekit-prepend "_acf-postbox.js"; -// @codekit-prepend "_acf-media.js"; -// @codekit-prepend "_acf-screen.js"; -// @codekit-prepend "_acf-select2.js"; -// @codekit-prepend "_acf-tinymce.js"; -// @codekit-prepend "_acf-validation.js"; -// @codekit-prepend "_acf-helpers.js"; -// @codekit-prepend "_acf-compatibility"; \ No newline at end of file +})(jQuery); \ No newline at end of file diff --git a/assets/build/js/acf-input.min.js b/assets/build/js/acf-input.min.js new file mode 100644 index 0000000..fd1d9f4 --- /dev/null +++ b/assets/build/js/acf-input.min.js @@ -0,0 +1 @@ +!function(e,i){var a=[];acf.Field=acf.Model.extend({type:"",eventScope:".acf-field",wait:"ready",setup:function(t){this.$el=t,this.inherit(t),this.inherit(this.$control())},val:function(t){return t!==i?this.setValue(t):this.prop("disabled")?null:this.getValue()},getValue:function(){return this.$input().val()},setValue:function(t){return acf.val(this.$input(),t)},__:function(t){return acf._e(this.type,t)},$control:function(){return!1},$input:function(){return this.$("[name]:first")},$inputWrap:function(){return this.$(".acf-input:first")},$labelWrap:function(){return this.$(".acf-label:first")},getInputName:function(){return this.$input().attr("name")||""},parent:function(){var t=this.parents();return!!t.length&&t[0]},parents:function(){var t=this.$el.parents(".acf-field");return acf.getFields(t)},show:function(t,e){t=acf.show(this.$el,t);return t&&(this.prop("hidden",!1),acf.doAction("show_field",this,e)),t},hide:function(t,e){t=acf.hide(this.$el,t);return t&&(this.prop("hidden",!0),acf.doAction("hide_field",this,e)),t},enable:function(t,e){t=acf.enable(this.$el,t);return t&&(this.prop("disabled",!1),acf.doAction("enable_field",this,e)),t},disable:function(t,e){t=acf.disable(this.$el,t);return t&&(this.prop("disabled",!0),acf.doAction("disable_field",this,e)),t},showEnable:function(t,e){return this.enable.apply(this,arguments),this.show.apply(this,arguments)},hideDisable:function(t,e){return this.disable.apply(this,arguments),this.hide.apply(this,arguments)},showNotice:function(t){"object"!=typeof t&&(t={text:t}),this.notice&&this.notice.remove(),t.target=this.$inputWrap(),this.notice=acf.newNotice(t)},removeNotice:function(t){this.notice&&(this.notice.away(t||0),this.notice=!1)},showError:function(t){this.$el.addClass("acf-error"),t!==i&&this.showNotice({text:t,type:"error",dismiss:!1}),acf.doAction("invalid_field",this),this.$el.one("focus change","input, select, textarea",e.proxy(this.removeError,this))},removeError:function(){this.$el.removeClass("acf-error"),this.removeNotice(250),acf.doAction("valid_field",this)},trigger:function(t,e,i){return"invalidField"==t&&(i=!0),acf.Model.prototype.trigger.apply(this,[t,e,i])}}),acf.newField=function(t){var e=t.data("type"),e=n(e),t=new(acf.models[e]||acf.Field)(t);return acf.doAction("new_field",t),t};var n=function(t){return acf.strPascalCase(t||"")+"Field"};acf.registerFieldType=function(t){var e=t.prototype.type,i=n(e);acf.models[i]=t,a.push(e)},acf.getFieldType=function(t){t=n(t);return acf.models[t]||!1},acf.getFieldTypes=function(i){i=acf.parseArgs(i,{category:""});var n=[];return a.map(function(t){var e=acf.getFieldType(t),t=e.prototype;i.category&&t.category!==i.category||n.push(e)}),n}}(jQuery),function(n){acf.findFields=function(t){var e=".acf-field",i=!1;return(t=!(t=acf.parseArgs(t,{key:"",name:"",type:"",is:"",parent:!1,sibling:!1,limit:!1,visible:!1,suppressFilters:!1})).suppressFilters?acf.applyFilters("find_fields_args",t):t).key&&(e+='[data-key="'+t.key+'"]'),t.type&&(e+='[data-type="'+t.type+'"]'),t.name&&(e+='[data-name="'+t.name+'"]'),t.is&&(e+=t.is),t.visible&&(e+=":visible"),i=t.parent?t.parent.find(e):t.sibling?t.sibling.siblings(e):n(e),t.suppressFilters||(i=i.not(".acf-clone .acf-field"),i=acf.applyFilters("find_fields",i)),i=t.limit?i.slice(0,t.limit):i},acf.findField=function(t,e){return acf.findFields({key:t,limit:1,parent:e,suppressFilters:!0})},acf.getField=function(t){return(t=!(t instanceof jQuery)?acf.findField(t):t).data("acf")||acf.newField(t)},acf.getFields=function(t){t instanceof jQuery||(t=acf.findFields(t));var e=[];return t.each(function(){var t=acf.getField(n(this));e.push(t)}),e},acf.findClosestField=function(t){return t.closest(".acf-field")},acf.getClosestField=function(t){t=acf.findClosestField(t);return this.getField(t)};var e=function(t){var a=t+"_field",s=t+"Field";acf.addAction(a,function(e){var i=acf.arrayArgs(arguments),n=i.slice(1);["type","name","key"].map(function(t){t="/"+t+"="+e.get(t);i=[a+t,e].concat(n),acf.doAction.apply(null,i)}),-1'),e=c('
    '),o=c(''),r=c(""),t.append(n.html()),o.append(r),e.append(o),a.append(t),a.append(e),n.remove(),s.remove(),a.attr("colspan",2),n=t,a=e,s=r),i.addClass("acf-accordion"),n.addClass("acf-accordion-title"),a.addClass("acf-accordion-content"),l++,this.get("multi_expand")&&i.attr("multi-expand",1);var r=acf.getPreference("this.accordions")||[];void 0!==r[l-1]&&this.set("open",r[l-1]),this.get("open")&&(i.addClass("-open"),a.css("display","block")),n.prepend(d.iconHtml({open:this.get("open")}));n=i.parent();s.addClass(n.hasClass("-left")?"-left":""),s.addClass(n.hasClass("-clear")?"-clear":""),s.append(i.nextUntil(".acf-field-accordion",".acf-field")),s.removeAttr("data-open data-multi_expand data-endpoint")}}});acf.registerFieldType(t);var d=new acf.Model({actions:{unload:"onUnload"},events:{"click .acf-accordion-title":"onClick","invalidField .acf-accordion":"onInvalidField"},isOpen:function(t){return t.hasClass("-open")},toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},iconHtml:function(t){return acf.isGutenberg()?t.open?'':'':t.open?'':''},open:function(t){var e=acf.isGutenberg()?0:300;t.find(".acf-accordion-content:first").slideDown(e).css("display","block"),t.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!0})),t.addClass("-open"),acf.doAction("show",t),t.attr("multi-expand")||t.siblings(".acf-accordion.-open").each(function(){d.close(c(this))})},close:function(t){var e=acf.isGutenberg()?0:300;t.find(".acf-accordion-content:first").slideUp(e),t.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!1})),t.removeClass("-open"),acf.doAction("hide",t)},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},onInvalidField:function(t,e){this.busy||(this.busy=!0,this.setTimeout(function(){this.busy=!1},1e3),this.open(e))},onUnload:function(t){var e=[];c(".acf-accordion").each(function(){var t=c(this).hasClass("-open")?1:0;e.push(t)}),e.length&&acf.setPreference("this.accordions",e)}})}(jQuery),function(){var t=acf.Field.extend({type:"button_group",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-button-group")},$input:function(){return this.$("input:checked")},setValue:function(t){this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")},onClick:function(t,e){var i=e.parent("label"),n=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(t)}(jQuery),function(e){var t=acf.Field.extend({type:"checkbox",events:{"change input":"onChange","click .acf-add-checkbox":"onClickAdd","click .acf-checkbox-toggle":"onClickToggle","click .acf-checkbox-custom":"onClickCustom"},$control:function(){return this.$(".acf-checkbox-list")},$toggle:function(){return this.$(".acf-checkbox-toggle")},$input:function(){return this.$('input[type="hidden"]')},$inputs:function(){return this.$('input[type="checkbox"]').not(".acf-checkbox-toggle")},getValue:function(){var t=[];return this.$(":checked").each(function(){t.push(e(this).val())}),!!t.length&&t},onChange:function(t,e){var i=e.prop("checked"),n=e.parent("label"),e=this.$toggle();i?n.addClass("selected"):n.removeClass("selected"),e.length&&(0==this.$inputs().not(":checked").length?e.prop("checked",!0):e.prop("checked",!1))},onClickAdd:function(t,e){var i='
  • ';e.parent("li").before(i)},onClickToggle:function(t,e){var i=e.prop("checked"),n=this.$('input[type="checkbox"]'),e=this.$("label");n.prop("checked",i),i?e.addClass("selected"):e.removeClass("selected")},onClickCustom:function(t,e){var i=e.prop("checked"),n=e.next('input[type="text"]');i?n.prop("disabled",!1):(n.prop("disabled",!0),""==n.val()&&e.parent("li").remove())}});acf.registerFieldType(t)}(jQuery),function(){var t=acf.Field.extend({type:"color_picker",wait:"load",events:{duplicateField:"onDuplicate"},$control:function(){return this.$(".acf-color-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},setValue:function(t){acf.val(this.$input(),t),this.$inputText().iris("color",t)},initialize:function(){var e=this.$input(),i=this.$inputText(),t=function(t){setTimeout(function(){acf.val(e,i.val())},1)},t={defaultColor:!1,palettes:!0,hide:!0,change:t,clear:t},t=acf.applyFilters("color_picker_args",t,this);i.wpColorPicker(t)},onDuplicate:function(t,e,i){$colorPicker=i.find(".wp-picker-container"),$inputText=i.find('input[type="text"]'),$colorPicker.replaceWith($inputText)}});acf.registerFieldType(t)}(jQuery),function(n){var t=acf.Field.extend({type:"date_picker",events:{'blur input[type="text"]':"onBlur",duplicateField:"onDuplicate"},$control:function(){return this.$(".acf-date-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},initialize:function(){if(this.has("save_format"))return this.initializeCompatibility();var t=this.$input(),e=this.$inputText(),t={dateFormat:this.get("date_format"),altField:t,altFormat:"yymmdd",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")},t=acf.applyFilters("date_picker_args",t,this);acf.newDatePicker(e,t),acf.doAction("date_picker_init",e,t,this)},initializeCompatibility:function(){var t=this.$input(),e=this.$inputText();e.val(t.val());var i={dateFormat:this.get("date_format"),altField:t,altFormat:this.get("save_format"),changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")},t=(i=acf.applyFilters("date_picker_args",i,this)).dateFormat;i.dateFormat=this.get("save_format"),acf.newDatePicker(e,i),e.datepicker("option","dateFormat",t),acf.doAction("date_picker_init",e,i,this)},onBlur:function(){this.$inputText().val()||acf.val(this.$input(),"")},onDuplicate:function(t,e,i){i.find('input[type="text"]').removeClass("hasDatepicker").removeAttr("id")}});acf.registerFieldType(t);new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("datePickerL10n");return!!i&&(void 0!==n.datepicker&&(i.isRTL=e,n.datepicker.regional[t]=i,void n.datepicker.setDefaults(i)))}});acf.newDatePicker=function(t,e){if(void 0===n.datepicker)return!1;t.datepicker(e=e||{}),n("body > #ui-datepicker-div").exists()&&n("body > #ui-datepicker-div").wrap('
    ')}}(jQuery),function(n){var t=acf.models.DatePickerField.extend({type:"date_time_picker",$control:function(){return this.$(".acf-date-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),t={dateFormat:this.get("date_format"),timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altFormat:"yy-mm-dd",altTimeFormat:"HH:mm:ss",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day"),controlType:"select",oneLine:!0},t=acf.applyFilters("date_time_picker_args",t,this);acf.newDateTimePicker(e,t),acf.doAction("date_time_picker_init",e,t,this)}});acf.registerFieldType(t);new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("dateTimePickerL10n");return!!i&&(void 0!==n.timepicker&&(i.isRTL=e,n.timepicker.regional[t]=i,void n.timepicker.setDefaults(i)))}});acf.newDateTimePicker=function(t,e){if(void 0===n.timepicker)return!1;t.datetimepicker(e=e||{}),n("body > #ui-datepicker-div").exists()&&n("body > #ui-datepicker-div").wrap('
    ')}}(jQuery),function(e){var t=acf.Field.extend({type:"google_map",map:!1,wait:"load",events:{'click a[data-name="clear"]':"onClickClear",'click a[data-name="locate"]':"onClickLocate",'click a[data-name="search"]':"onClickSearch","keydown .search":"onKeydownSearch","keyup .search":"onKeyupSearch","focus .search":"onFocusSearch","blur .search":"onBlurSearch",showField:"onShow"},$control:function(){return this.$(".acf-google-map")},$search:function(){return this.$(".search")},$canvas:function(){return this.$(".canvas")},setState:function(t){this.$control().removeClass("-value -loading -searching"),(t="default"===t?this.val()?"value":"":t)&&this.$control().addClass("-"+t)},getValue:function(){var t=this.$input().val();return!!t&&JSON.parse(t)},setValue:function(t,e){var i="";t&&(i=JSON.stringify(t)),acf.val(this.$input(),i),e||(this.renderVal(t),acf.doAction("google_map_change",t,this.map,this))},renderVal:function(t){t?(this.setState("value"),this.$search().val(t.address),this.setPosition(t.lat,t.lng)):(this.setState(""),this.$search().val(""),this.map.marker.setVisible(!1))},newLatLng:function(t,e){return new google.maps.LatLng(parseFloat(t),parseFloat(e))},setPosition:function(t,e){this.map.marker.setPosition({lat:parseFloat(t),lng:parseFloat(e)}),this.map.marker.setVisible(!0),this.center()},center:function(){var t,e=this.map.marker.getPosition();e=e?(t=e.lat(),e.lng()):(t=this.get("lat"),this.get("lng")),this.map.setCenter({lat:parseFloat(t),lng:parseFloat(e)})},initialize:function(){!function(t){if(a)return t();if(acf.isset(window,"google","maps","Geocoder"))return a=new google.maps.Geocoder,t();acf.addAction("google_map_api_loaded",t),i||(t=acf.get("google_map_api"))&&(i=!0,e.ajax({url:t,dataType:"script",cache:!0,success:function(){a=new google.maps.Geocoder,acf.doAction("google_map_api_loaded")}}))}(this.initializeMap.bind(this))},initializeMap:function(){var t=this.getValue(),e=acf.parseArgs(t,{zoom:this.get("zoom"),lat:this.get("lat"),lng:this.get("lng")}),i={scrollwheel:!1,zoom:parseInt(e.zoom),center:{lat:parseFloat(e.lat),lng:parseFloat(e.lng)},mapTypeId:google.maps.MapTypeId.ROADMAP,marker:{draggable:!0,raiseOnDrag:!0},autocomplete:{}},i=acf.applyFilters("google_map_args",i,this),n=new google.maps.Map(this.$canvas()[0],i),a=acf.parseArgs(i.marker,{draggable:!0,raiseOnDrag:!0,map:n}),a=acf.applyFilters("google_map_marker_args",a,this),e=new google.maps.Marker(a),a=!1;acf.isset(google,"maps","places","Autocomplete")&&(i=i.autocomplete||{},i=acf.applyFilters("google_map_autocomplete_args",i,this),(a=new google.maps.places.Autocomplete(this.$search()[0],i)).bindTo("bounds",n)),this.addMapEvents(this,n,e,a),n.acf=this,n.marker=e,n.autocomplete=a,this.map=n,t&&this.setPosition(t.lat,t.lng),acf.doAction("google_map_init",n,e,this)},addMapEvents:function(i,e,t,n){google.maps.event.addListener(e,"click",function(t){var e=t.latLng.lat(),t=t.latLng.lng();i.searchPosition(e,t)}),google.maps.event.addListener(t,"dragend",function(){var t=this.getPosition().lat(),e=this.getPosition().lng();i.searchPosition(t,e)}),n&&google.maps.event.addListener(n,"place_changed",function(){var t=this.getPlace();i.searchPlace(t)}),google.maps.event.addListener(e,"zoom_changed",function(){var t=i.val();t&&(t.zoom=e.getZoom(),i.setValue(t,!0))})},searchPosition:function(i,n){this.setState("loading"),a.geocode({location:{lat:i,lng:n}},function(t,e){this.setState(""),"OK"!==e?this.showNotice({text:acf.__("Location not found: %s").replace("%s",e),type:"warning"}):((t=this.parseResult(t[0])).lat=i,t.lng=n,this.val(t))}.bind(this))},searchPlace:function(t){var e;t&&(t.geometry?(t.formatted_address=this.$search().val(),e=this.parseResult(t),this.val(e)):t.name&&this.searchAddress(t.name))},searchAddress:function(i){if(i){var t=i.split(",");if(2==t.length){var e=parseFloat(t[0]),t=parseFloat(t[1]);if(e&&t)return this.searchPosition(e,t)}this.setState("loading"),a.geocode({address:i},function(t,e){this.setState(""),"OK"!==e?this.showNotice({text:acf.__("Location not found: %s").replace("%s",e),type:"warning"}):((t=this.parseResult(t[0])).address=i,this.val(t))}.bind(this))}},searchLocation:function(){if(!navigator.geolocation)return alert(acf.__("Sorry, this browser does not support geolocation"));this.setState("loading"),navigator.geolocation.getCurrentPosition(function(t){this.setState("");var e=t.coords.latitude,t=t.coords.longitude;this.searchPosition(e,t)}.bind(this),function(t){this.setState("")}.bind(this))},parseResult:function(t){var e={address:t.formatted_address,lat:t.geometry.location.lat(),lng:t.geometry.location.lng()};e.zoom=this.map.getZoom(),t.place_id&&(e.place_id=t.place_id),t.name&&(e.name=t.name);var i,n={street_number:["street_number"],street_name:["street_address","route"],city:["locality"],state:["administrative_area_level_1","administrative_area_level_2","administrative_area_level_3","administrative_area_level_4","administrative_area_level_5"],post_code:["postal_code"],country:["country"]};for(i in n)for(var a=n[i],s=0;s
    '):this.$el=n('
      '),i.before(this.$el),this.set("index",a,!0),a++},initializeTabs:function(){var t=this.getVisible().shift(),e=(acf.getPreference("this.tabs")||[])[this.get("index")];(t=this.tabs[e]&&this.tabs[e].isVisible()?this.tabs[e]:t)?this.selectTab(t):this.closeTabs(),this.set("initialized",!0)},getVisible:function(){return this.tabs.filter(function(t){return t.isVisible()})},getActive:function(){return this.active},setActive:function(t){return this.active=t},hasActive:function(){return!1!==this.active},isActive:function(t){var e=this.getActive();return e&&e.cid===t.cid},closeActive:function(){this.hasActive()&&this.closeTab(this.getActive())},openTab:function(t){this.closeActive(),t.open(),this.setActive(t)},closeTab:function(t){t.close(),this.setActive(!1)},closeTabs:function(){this.tabs.map(this.closeTab,this)},selectTab:function(e){this.tabs.map(function(t){e.cid!==t.cid&&this.closeTab(t)},this),this.openTab(e)},addTab:function(t,e){t=n("
    • "+t.outerHTML()+"
    • ");this.$("ul").append(t);e=new i({$el:t,field:e,group:this});return this.tabs.push(e),e},reset:function(){return this.closeActive(),this.refresh()},refresh:function(){if(this.hasActive())return!1;var t=this.getVisible().shift();return t&&this.openTab(t),t},onRefresh:function(){var t,e,i;"left"===this.get("placement")&&(t=this.$el.parent(),i=this.$el.children("ul"),e=t.is("td")?"height":"min-height",i=i.position().top+i.outerHeight(!0)-1,t.css(e,i))}}),i=acf.Model.extend({group:!1,field:!1,events:{"click a":"onClick"},index:function(){return this.$el.index()},isVisible:function(){return acf.isVisible(this.$el)},isActive:function(){return this.$el.hasClass("active")},open:function(){this.$el.addClass("active"),this.field.showFields()},close:function(){this.$el.removeClass("active"),this.field.hideFields()},onClick:function(t,e){t.preventDefault(),this.toggle()},toggle:function(){this.isActive()||this.group.openTab(this)}});new acf.Model({priority:50,actions:{prepare:"render",append:"render",unload:"onUnload",invalid_field:"onInvalidField"},findTabs:function(){return n(".acf-tab-wrap")},getTabs:function(){return acf.getInstances(this.findTabs())},render:function(t){this.getTabs().map(function(t){t.get("initialized")||t.initializeTabs()})},onInvalidField:function(t){this.busy||t.hiddenByTab&&(t.hiddenByTab.toggle(),this.busy=!0,this.setTimeout(function(){this.busy=!1},100))},onUnload:function(){var e=[];this.getTabs().map(function(t){t=t.hasActive()?t.getActive().index():0;e.push(t)}),e.length&&acf.setPreference("this.tabs",e)}})}(jQuery),function(){var t=acf.models.SelectField.extend({type:"post_object"});acf.registerFieldType(t)}(jQuery),function(){var t=acf.models.SelectField.extend({type:"page_link"});acf.registerFieldType(t)}(jQuery),function(){var t=acf.models.SelectField.extend({type:"user"});acf.registerFieldType(t)}(jQuery),function(p){var t=acf.Field.extend({type:"taxonomy",data:{ftype:"select"},select2:!1,wait:"load",events:{'click a[data-name="add"]':"onClickAdd",'click input[type="radio"]':"onClickRadio",removeField:"onRemove"},$control:function(){return this.$(".acf-taxonomy-field")},$input:function(){return this.getRelatedPrototype().$input.apply(this,arguments)},getRelatedType:function(){var t=this.get("ftype");return t="multi_select"==t?"select":t},getRelatedPrototype:function(){return acf.getFieldType(this.getRelatedType()).prototype},getValue:function(){return this.getRelatedPrototype().getValue.apply(this,arguments)},setValue:function(){return this.getRelatedPrototype().setValue.apply(this,arguments)},initialize:function(){this.getRelatedPrototype().initialize.apply(this,arguments)},onRemove:function(){var t=this.getRelatedPrototype();t.onRemove&&t.onRemove.apply(this,arguments)},onClickAdd:function(t,e){var i=this,n=!1,a=!1,s=!1,o=!1,r=!1,c=!1,l=function(t){n.loading(!1),n.content(t),a=n.$("form"),s=n.$('input[name="term_name"]'),o=n.$('select[name="term_parent"]'),r=n.$(".acf-submit-button"),s.trigger("focus"),n.on("submit","form",d)},d=function(t,e){if(t.preventDefault(),t.stopImmediatePropagation(),""===s.val())return s.trigger("focus"),!1;acf.startButtonLoading(r);t={action:"acf/fields/taxonomy/add_term",field_key:i.get("key"),term_name:s.val(),term_parent:o.length?o.val():0};p.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"json",success:u})},u=function(t){acf.stopButtonLoading(r),c&&c.remove(),c=acf.isAjaxSuccess(t)?(s.val(""),f(t.data),acf.newNotice({type:"success",text:acf.getAjaxMessage(t),target:a,timeout:2e3,dismiss:!1})):acf.newNotice({type:"error",text:acf.getAjaxError(t),target:a,timeout:2e3,dismiss:!1}),s.trigger("focus")},f=function(e){var t=p('");e.term_parent?o.children('option[value="'+e.term_parent+'"]').after(t):o.append(t),acf.getFields({type:"taxonomy"}).map(function(t){t.get("taxonomy")==i.get("taxonomy")&&t.appendTerm(e)}),i.selectTerm(e.term_id)};!function(){n=acf.newPopup({title:e.attr("title"),loading:!0,width:"300px"});var t={action:"acf/fields/taxonomy/add_term",field_key:i.get("key")};p.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"html",success:l})}()},appendTerm:function(t){"select"==this.getRelatedType()?this.appendTermSelect(t):this.appendTermCheckbox(t)},appendTermSelect:function(t){this.select2.addOption({id:t.term_id,text:t.term_label})},appendTermCheckbox:function(t){var e=this.$("[name]:first").attr("name"),i=this.$("ul:first");"checkbox"==this.getRelatedType()&&(e+="[]");e=p(['
    • ',"","
    • "].join(""));t.term_parent&&((i=(t=i.find('li[data-id="'+t.term_parent+'"]')).children("ul")).exists()||(i=p('
        '),t.append(i))),i.append(e)},selectTerm:function(t){"select"==this.getRelatedType()?this.select2.selectOption(t):this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")},onClickRadio:function(t,e){var i=e.parent("label"),n=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(t)}(jQuery),function(i){var t=acf.models.DatePickerField.extend({type:"time_picker",$control:function(){return this.$(".acf-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),t={timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altTimeFormat:"HH:mm:ss",showButtonPanel:!0,controlType:"select",oneLine:!0,closeText:acf.get("dateTimePickerL10n").selectText,timeOnly:!0,onClose:function(t,e,i){e=e.dpDiv.find(".ui-datepicker-close");!t&&e.is(":hover")&&i._updateDateTime()}},t=acf.applyFilters("time_picker_args",t,this);acf.newTimePicker(e,t),acf.doAction("time_picker_init",e,t,this)}});acf.registerFieldType(t),acf.newTimePicker=function(t,e){if(void 0===i.timepicker)return!1;t.timepicker(e=e||{}),i("body > #ui-datepicker-div").exists()&&i("body > #ui-datepicker-div").wrap('
        ')}}(jQuery),function(){var t=acf.Field.extend({type:"true_false",events:{"change .acf-switch-input":"onChange","focus .acf-switch-input":"onFocus","blur .acf-switch-input":"onBlur","keypress .acf-switch-input":"onKeypress"},$input:function(){return this.$('input[type="checkbox"]')},$switch:function(){return this.$(".acf-switch")},getValue:function(){return this.$input().prop("checked")?1:0},initialize:function(){this.render()},render:function(){var t,e,i=this.$switch();i.length&&(t=i.children(".acf-switch-on"),e=i.children(".acf-switch-off"),(i=Math.max(t.width(),e.width()))&&(t.css("min-width",i),e.css("min-width",i)))},switchOn:function(){this.$input().prop("checked",!0),this.$switch().addClass("-on")},switchOff:function(){this.$input().prop("checked",!1),this.$switch().removeClass("-on")},onChange:function(t,e){e.prop("checked")?this.switchOn():this.switchOff()},onFocus:function(t,e){this.$switch().addClass("-focus")},onBlur:function(t,e){this.$switch().removeClass("-focus")},onKeypress:function(t,e){return 37===t.keyCode?this.switchOff():39===t.keyCode?this.switchOn():void 0}});acf.registerFieldType(t)}(jQuery),function(){var t=acf.Field.extend({type:"url",events:{'keyup input[type="url"]':"onkeyup"},$control:function(){return this.$(".acf-input-wrap")},$input:function(){return this.$('input[type="url"]')},initialize:function(){this.render()},isValid:function(){var t=this.val();return!!t&&(-1!==t.indexOf("://")||0===t.indexOf("//"))},render:function(){this.isValid()?this.$control().addClass("-valid"):this.$control().removeClass("-valid")},onkeyup:function(t,e){this.render()}});acf.registerFieldType(t)}(jQuery),function(){var t=acf.Field.extend({type:"wysiwyg",wait:"load",events:{"mousedown .acf-editor-wrap.delay":"onMousedown",unmountField:"disableEditor",remountField:"enableEditor",removeField:"disableEditor"},$control:function(){return this.$(".acf-editor-wrap")},$input:function(){return this.$("textarea")},getMode:function(){return this.$control().hasClass("tmce-active")?"visual":"text"},initialize:function(){this.$control().hasClass("delay")||this.initializeEditor()},initializeEditor:function(){var t=this.$control(),e=this.$input(),i={tinymce:!0,quicktags:!0,toolbar:this.get("toolbar"),mode:this.getMode(),field:this},n=e.attr("id"),a=acf.uniqueId("acf-editor-"),s=e.data(),e=e.val();acf.rename({target:t,search:n,replace:a,destructive:!0}),this.set("id",a,!0),this.$input().data(s).val(e),acf.tinymce.initialize(a,i)},onMousedown:function(t){t.preventDefault();t=this.$control();t.removeClass("delay"),t.find(".acf-editor-toolbar").remove(),this.initializeEditor()},enableEditor:function(){"visual"==this.getMode()&&acf.tinymce.enable(this.get("id"))},disableEditor:function(){acf.tinymce.destroy(this.get("id"))}});acf.registerFieldType(t)}(jQuery),function(e){var s=[];acf.Condition=acf.Model.extend({type:"",operator:"==",label:"",choiceType:"input",fieldTypes:[],data:{conditions:!1,field:!1,rule:{}},events:{change:"change",keyup:"change",enableField:"change",disableField:"change"},setup:function(t){e.extend(this.data,t)},getEventTarget:function(t,e){return t||this.get("field").$el},change:function(t,e){this.get("conditions").change(t)},match:function(t,e){return!1},calculate:function(){return this.match(this.get("rule"),this.get("field"))},choices:function(t){return''}}),acf.newCondition=function(t,e){var i=e.get("field"),n=i.getField(t.field);if(!i||!n)return!1;e={rule:t,target:i,conditions:e,field:n},n=n.get("type"),t=t.operator;return new(acf.getConditionTypes({fieldType:n,operator:t})[0]||acf.Condition)(e)};function n(t){return acf.strPascalCase(t||"")+"Condition"}acf.registerConditionType=function(t){var e=t.prototype.type,i=n(e);acf.models[i]=t,s.push(e)},acf.getConditionType=function(t){t=n(t);return acf.models[t]||!1},acf.registerConditionForFieldType=function(t,e){t=acf.getConditionType(t);t&&t.prototype.fieldTypes.push(e)},acf.getConditionTypes=function(n){n=acf.parseArgs(n,{fieldType:"",operator:""});var a=[];return s.map(function(t){var e=acf.getConditionType(t),i=e.prototype.fieldTypes,t=e.prototype.operator;n.fieldType&&-1===i.indexOf(n.fieldType)||n.operator&&t!==n.operator||a.push(e)}),a}}(jQuery),function(){function a(t,e){var i=acf.getFields({key:e,sibling:t.$el,suppressFilters:!0});return!!(i=!i.length?acf.getFields({key:e,parent:t.$el.parent(),suppressFilters:!0}):i).length&&i[0]}var t="conditional_logic";new acf.Model({id:"conditionsManager",priority:20,actions:{new_field:"onNewField"},onNewField:function(t){t.has("conditions")&&t.getConditions().render()}});acf.Field.prototype.getField=function(t){var e=a(this,t);if(e)return e;for(var i=this.parents(),n=0;n'}});acf.registerConditionType(i);var t=i.extend({type:"hasNoValue",operator:"==empty",label:s("Has no value"),match:function(t,e){return!i.prototype.match.apply(this,arguments)}});acf.registerConditionType(t);var o=acf.Condition.extend({type:"equalTo",operator:"==",label:s("Value is equal to"),fieldTypes:["text","textarea","number","range","email","url","password"],match:function(t,e){return acf.isNumeric(t.value)?(i=t.value,n=e.val(),parseFloat(i)===parseFloat(n)):a(t.value,e.val());var i,n},choices:function(t){return''}});acf.registerConditionType(o);var e=o.extend({type:"notEqualTo",operator:"!=",label:s("Value is not equal to"),match:function(t,e){return!o.prototype.match.apply(this,arguments)}});acf.registerConditionType(e);t=acf.Condition.extend({type:"patternMatch",operator:"==pattern",label:s("Value matches pattern"),fieldTypes:["text","textarea","email","url","password","wysiwyg"],match:function(t,e){return function(t,e){e=new RegExp(n(e),"gi");return n(t).match(e)}(e.val(),t.value)},choices:function(t){return''}});acf.registerConditionType(t);t=acf.Condition.extend({type:"contains",operator:"==contains",label:s("Value contains"),fieldTypes:["text","textarea","number","email","url","password","wysiwyg","oembed","select"],match:function(t,e){return e=e.val(),t=t.value,-1'}});acf.registerConditionType(t);t=o.extend({type:"trueFalseEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:s("Checked")}]}});acf.registerConditionType(t);t=e.extend({type:"trueFalseNotEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:s("Checked")}]}});acf.registerConditionType(t);var r=acf.Condition.extend({type:"selectEqualTo",operator:"==",label:s("Value is equal to"),fieldTypes:["select","checkbox","radio","button_group"],match:function(t,e){var i=e.val();return i instanceof Array?(e=t.value,-1",label:s("Value is greater than"),fieldTypes:["number","range"],match:function(t,e){e=e.val();return e instanceof Array&&(e=e.length),e=e,t=t.value,parseFloat(e)>parseFloat(t)},choices:function(t){return''}});acf.registerConditionType(t);e=t.extend({type:"lessThan",operator:"<",label:s("Value is less than"),match:function(t,e){e=e.val();return e instanceof Array&&(e=e.length),e=e,t=t.value,parseFloat(e)'}});acf.registerConditionType(e);t=t.extend({type:"selectionGreaterThan",label:s("Selection is greater than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(t);e=e.extend({type:"selectionLessThan",label:s("Selection is less than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(e)}(jQuery),function(t){acf.unload=new acf.Model({wait:"load",active:!0,changed:!1,actions:{validation_failure:"startListening",validation_success:"stopListening"},events:{"change form .acf-field":"startListening","submit form":"stopListening"},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(){this.stopListening()},startListening:function(){!this.changed&&this.active&&(this.changed=!0,t(window).on("beforeunload",this.onUnload))},stopListening:function(){this.changed=!1,t(window).off("beforeunload",this.onUnload)},onUnload:function(){return acf.__("The changes you made will be lost if you navigate away from this page")}})}(jQuery),function(e){new acf.Model({wait:"prepare",priority:1,initialize:function(){(acf.get("postboxes")||[]).map(acf.newPostbox)}});acf.getPostbox=function(t){return"string"==typeof arguments[0]&&(t=e("#"+arguments[0])),acf.getInstance(t)},acf.getPostboxes=function(){return acf.getInstances(e(".acf-postbox"))},acf.newPostbox=function(t){return new acf.models.Postbox(t)},acf.models.Postbox=acf.Model.extend({data:{id:"",key:"",style:"default",label:"top",edit:""},setup:function(t){t.editLink&&(t.edit=t.editLink),e.extend(this.data,t),this.$el=this.$postbox()},$postbox:function(){return e("#"+this.get("id"))},$hide:function(){return e("#"+this.get("id")+"-hide")},$hideLabel:function(){return this.$hide().parent()},$hndle:function(){return this.$("> .hndle")},$handleActions:function(){return this.$("> .postbox-header .handle-actions")},$inside:function(){return this.$("> .inside")},isVisible:function(){return this.$el.hasClass("acf-hidden")},initialize:function(){this.$el.addClass("acf-postbox"),this.$el.removeClass("hide-if-js"),"block"===acf.get("editor")||"default"!==(t=this.get("style"))&&this.$el.addClass(t),this.$inside().addClass("acf-fields").addClass("-"+this.get("label"));var t,e=this.get("edit");e&&(t='',(e=this.$handleActions()).length?e.prepend(t):this.$hndle().append(t)),this.show()},show:function(){this.$hideLabel().show(),this.$hide().prop("checked",!0),this.$el.show().removeClass("acf-hidden"),acf.doAction("show_postbox",this)},enable:function(){acf.enable(this.$el,"postbox")},showEnable:function(){this.enable(),this.show()},hide:function(){this.$hideLabel().hide(),this.$el.hide().addClass("acf-hidden"),acf.doAction("hide_postbox",this)},disable:function(){acf.disable(this.$el,"postbox")},hideDisable:function(){this.disable(),this.hide()},html:function(t){this.$inside().html(t),acf.doAction("append",this.$el)}})}(jQuery),function(a){acf.newMediaPopup=function(t){var e=null,e=new("edit"==(t=acf.parseArgs(t,{mode:"select",title:"",button:"",type:"",field:!1,allowedTypes:"",library:"all",multiple:!1,attachment:0,autoOpen:!0,open:function(){},select:function(){},close:function(){}})).mode?acf.models.EditMediaPopup:acf.models.SelectMediaPopup)(t);return t.autoOpen&&setTimeout(function(){e.open()},1),acf.doAction("new_media_popup",e),e};function e(){var t=acf.get("post_id");return acf.isNumeric(t)?t:0}acf.getMimeTypes=function(){return this.get("mimeTypes")},acf.getMimeType=function(t){var e,i=acf.getMimeTypes();if(void 0!==i[t])return i[t];for(e in i)if(-1!==e.indexOf(t))return i[e];return!1};var n=acf.Model.extend({id:"MediaPopup",data:{},defaults:{},frame:!1,setup:function(t){a.extend(this.data,t)},initialize:function(){var t=this.getFrameOptions();this.addFrameStates(t);var e=wp.media(t);(e.acf=this).addFrameEvents(e,t),this.frame=e},open:function(){this.frame.open()},close:function(){this.frame.close()},remove:function(){this.frame.detach(),this.frame.remove()},getFrameOptions:function(){var t={title:this.get("title"),multiple:this.get("multiple"),library:{},states:[]};return this.get("type")&&(t.library.type=this.get("type")),"uploadedTo"===this.get("library")&&(t.library.uploadedTo=e()),this.get("attachment")&&(t.library.post__in=[this.get("attachment")]),this.get("button")&&(t.button={text:this.get("button")}),t},addFrameStates:function(t){var e=wp.media.query(t.library);this.get("field")&&acf.isset(e,"mirroring","args")&&(e.mirroring.args._acfuploader=this.get("field")),t.states.push(new wp.media.controller.Library({library:e,multiple:this.get("multiple"),title:this.get("title"),priority:20,filterable:"all",editable:!0,allowLocalEdits:!0})),acf.isset(wp,"media","controller","EditImage")&&t.states.push(new wp.media.controller.EditImage)},addFrameEvents:function(i,t){i.on("open",function(){this.$el.closest(".media-modal").addClass("acf-media-modal -"+this.acf.get("mode"))},i),i.on("content:render:edit-image",function(){var t=this.state().get("image"),t=new wp.media.view.EditImage({model:t,controller:this}).render();this.content.set(t),t.loadEditor()},i),i.on("select",function(){var t=i.state().get("selection");t&&t.each(function(t,e){i.acf.get("select").apply(i.acf,[t,e])})}),i.on("close",function(){setTimeout(function(){i.acf.get("close").apply(i.acf),i.acf.remove()},1)})}});acf.models.SelectMediaPopup=n.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Select","verb")),n.prototype.setup.apply(this,arguments)},addFrameEvents:function(e,t){acf.isset(_wpPluploadSettings,"defaults","multipart_params")&&(_wpPluploadSettings.defaults.multipart_params._acfuploader=this.get("field"),e.on("open",function(){delete _wpPluploadSettings.defaults.multipart_params._acfuploader})),e.on("content:activate:browse",function(){var t=!1;try{t=e.content.get().toolbar}catch(t){return void console.log(t)}e.acf.customizeFilters.apply(e.acf,[t])}),n.prototype.addFrameEvents.apply(this,arguments)},customizeFilters:function(t){var i,e=t.get("filters");"image"==this.get("type")&&(e.filters.all.text=acf.__("All images"),delete e.filters.audio,delete e.filters.video,delete e.filters.image,a.each(e.filters,function(t,e){e.props.type=e.props.type||"image"})),this.get("allowedTypes")&&this.get("allowedTypes").split(" ").join("").split(".").join("").split(",").map(function(t){t=acf.getMimeType(t);t&&(e.filters[t]={text:t,props:{status:null,type:t,uploadedTo:null,orderby:"date",order:"DESC"},priority:20})}),"uploadedTo"===this.get("library")&&(i=this.frame.options.library.uploadedTo,delete e.filters.unattached,delete e.filters.uploaded,a.each(e.filters,function(t,e){e.text+=" ("+acf.__("Uploaded to this post")+")",e.props.uploadedTo=i}));var n=this.get("field");a.each(e.filters,function(t,e){e.props._acfuploader=n}),t.get("search").model.attributes._acfuploader=n,e.renderFilters&&e.renderFilters()}}),acf.models.EditMediaPopup=n.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Update","verb")),n.prototype.setup.apply(this,arguments)},addFrameEvents:function(i,t){i.on("open",function(){this.$el.closest(".media-modal").addClass("acf-expanded"),"browse"!=this.content.mode()&&this.content.mode("browse");var t=this.state().get("selection"),e=wp.media.attachment(i.acf.get("attachment"));t.add(e)},i),n.prototype.addFrameEvents.apply(this,arguments)}});new acf.Model({id:"customizePrototypes",wait:"ready",initialize:function(){var t;acf.isset(window,"wp","media","view")&&((t=e())&&acf.isset(wp,"media","view","settings","post")&&(wp.media.view.settings.post.id=t),this.customizeAttachmentsButton(),this.customizeAttachmentsRouter(),this.customizeAttachmentFilters(),this.customizeAttachmentCompat(),this.customizeAttachmentLibrary())},customizeAttachmentsButton:function(){var t;acf.isset(wp,"media","view","Button")&&(t=wp.media.view.Button,wp.media.view.Button=t.extend({initialize:function(){var t=_.defaults(this.options,this.defaults);this.model=new Backbone.Model(t),this.listenTo(this.model,"change",this.render)}}))},customizeAttachmentsRouter:function(){var t;acf.isset(wp,"media","view","Router")&&(t=wp.media.view.Router,wp.media.view.Router=t.extend({addExpand:function(){var t=a(['',''+acf.__("Expand Details")+"",''+acf.__("Collapse Details")+"",""].join(""));t.on("click",function(t){t.preventDefault();t=a(this).closest(".media-modal");t.hasClass("acf-expanded")?t.removeClass("acf-expanded"):t.addClass("acf-expanded")}),this.$el.append(t)},initialize:function(){return t.prototype.initialize.apply(this,arguments),this.addExpand(),this}}))},customizeAttachmentFilters:function(){acf.isset(wp,"media","view","AttachmentFilters","All")&&(wp.media.view.AttachmentFilters.All.prototype.renderFilters=function(){this.$el.html(_.chain(this.filters).map(function(t,e){return{el:a("").val(e).html(t.text)[0],priority:t.priority||50}},this).sortBy("priority").pluck("el").value())})},customizeAttachmentCompat:function(){var t,e;acf.isset(wp,"media","view","AttachmentCompat")&&(t=wp.media.view.AttachmentCompat,e=!1,wp.media.view.AttachmentCompat=t.extend({render:function(){return this.rendered?this:(t.prototype.render.apply(this,arguments),this.$("#acf-form-data").length&&(clearTimeout(e),e=setTimeout(a.proxy(function(){this.rendered=!0,acf.doAction("append",this.$el)},this),50)),this)},save:function(t){var e;t&&t.preventDefault(),e=acf.serializeForAjax(this.$el),this.controller.trigger("attachment:compat:waiting",["waiting"]),this.model.saveCompat(e).always(_.bind(this.postSave,this))}}))},customizeAttachmentLibrary:function(){var o;acf.isset(wp,"media","view","Attachment","Library")&&(o=wp.media.view.Attachment.Library,wp.media.view.Attachment.Library=o.extend({render:function(){var t=acf.isget(this,"controller","acf"),e=acf.isget(this,"model","attributes");return t&&e&&(e.acf_errors&&this.$el.addClass("acf-disabled"),(t=t.get("selected"))&&-1',''+acf.__("Restricted")+"",''+n+"",''+a+"","
        "].join("")),e.reset(),void e.single(i)}return o.prototype.toggleSelection.apply(this,arguments)}}))}})}(jQuery),function(u){acf.screen=new acf.Model({active:!0,xhr:!1,timeout:!1,wait:"load",events:{"change #page_template":"onChange","change #parent_id":"onChange","change #post-formats-select":"onChange","change .categorychecklist":"onChange","change .tagsdiv":"onChange",'change .acf-taxonomy-field[data-save="1"]':"onChange","change #product-type":"onChange"},isPost:function(){return"post"===acf.get("screen")},isUser:function(){return"user"===acf.get("screen")},isTaxonomy:function(){return"taxonomy"===acf.get("screen")},isAttachment:function(){return"attachment"===acf.get("screen")},isNavMenu:function(){return"nav_menu"===acf.get("screen")},isWidget:function(){return"widget"===acf.get("screen")},isComment:function(){return"comment"===acf.get("screen")},getPageTemplate:function(){var t=u("#page_template");return t.length?t.val():null},getPageParent:function(t,e){return(e=u("#parent_id")).length?e.val():null},getPageType:function(t,e){return this.getPageParent()?"child":"parent"},getPostType:function(){return u("#post_type").val()},getPostFormat:function(t,e){if((e=u("#post-formats-select input:checked")).length){e=e.val();return"0"==e?"standard":e}return null},getPostCoreTerms:function(){var t,e={},i=acf.serialize(u(".categorydiv, .tagsdiv"));for(t in i.tax_input&&(e=i.tax_input),i.post_category&&(e.category=i.post_category),e)acf.isArray(e[t])||(e[t]=e[t].split(/,[\s]?/));return e},getPostTerms:function(){var t,i=this.getPostCoreTerms();for(t in acf.getFields({type:"taxonomy"}).map(function(t){var e;t.get("save")&&(e=t.val(),t=t.get("taxonomy"),e&&(i[t]=i[t]||[],e=acf.isArray(e)?e:[e],i[t]=i[t].concat(e)))}),null!==(productType=this.getProductType())&&(i.product_type=[productType]),i)i[t]=acf.uniqueArray(i[t]);return i},getProductType:function(){var t=u("#product-type");return t.length?t.val():null},check:function(){var e;"post"===acf.get("screen")&&(this.xhr&&this.xhr.abort(),e=acf.parseArgs(this.data,{action:"acf/ajax/check_screen",screen:acf.get("screen"),exists:[]}),this.isPost()&&(e.post_id=acf.get("post_id")),null!==(postType=this.getPostType())&&(e.post_type=postType),null!==(pageTemplate=this.getPageTemplate())&&(e.page_template=pageTemplate),null!==(pageParent=this.getPageParent())&&(e.page_parent=pageParent),null!==(pageType=this.getPageType())&&(e.page_type=pageType),null!==(postFormat=this.getPostFormat())&&(e.post_format=postFormat),null!==(postTerms=this.getPostTerms())&&(e.post_terms=postTerms),acf.getPostboxes().map(function(t){e.exists.push(t.get("key"))}),e=acf.applyFilters("check_screen_args",e),this.xhr=u.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:function(t){"post"==acf.get("screen")?this.renderPostScreen(t):"user"==acf.get("screen")&&this.renderUserScreen(t),acf.doAction("check_screen_complete",t,e)}}))},onChange:function(t,e){this.setTimeout(this.check,1)},renderPostScreen:function(c){function l(t,e){var i,n=u._data(t[0]).events;for(i in n)for(var a=0;a','

        ',""+acf.escHtml(e.title)+"","

        ",'
        ','","
        ",""]:['",'

        ',""+acf.escHtml(e.title)+"","

        "]).join("");var n,a,s=u(['
        ',a,'
        ',e.html,"
        ","
        "].join(""));u("#adv-settings").length&&(n=u("#adv-settings .metabox-prefs"),a=u(['"].join("")),l(n.find("input").first(),a.find("input")),n.append(a)),u(".postbox").length&&(l(u(".postbox .handlediv").first(),s.children(".handlediv")),l(u(".postbox .hndle").first(),s.children(".hndle"))),"side"===e.position?u("#"+e.position+"-sortables").append(s):u("#"+e.position+"-sortables").prepend(s);var o=[];if(c.results.map(function(t){e.position===t.position&&u("#"+e.position+"-sortables #"+t.id).length&&o.push(t.id)}),d(e.id,o),c.sorted)for(var r in c.sorted){o=c.sorted[r].split(",");if(d(e.id,o))break}i=acf.newPostbox(e),acf.doAction("append",s),acf.doAction("append_postbox",i)}return i.showEnable(),c.visible.push(e.id),e}),acf.getPostboxes().map(function(t){-1===c.visible.indexOf(t.get("id"))&&(t.hideDisable(),c.hidden.push(t.get("id")))}),u("#acf-style").html(c.style),acf.doAction("refresh_post_screen",c)},renderUserScreen:function(t){}});new acf.Model({postEdits:{},wait:"prepare",initialize:function(){acf.isGutenberg()&&(wp.data.subscribe(acf.debounce(this.onChange).bind(this)),acf.screen.getPageTemplate=this.getPageTemplate,acf.screen.getPageParent=this.getPageParent,acf.screen.getPostType=this.getPostType,acf.screen.getPostFormat=this.getPostFormat,acf.screen.getPostCoreTerms=this.getPostCoreTerms,acf.unload.disable(),5.3<=parseFloat(acf.get("wp_version"))&&this.addAction("refresh_post_screen",this.onRefreshPostScreen),wp.domReady(acf.refresh))},onChange:function(){var e=["template","parent","format"];(wp.data.select("core").getTaxonomies()||[]).map(function(t){e.push(t.rest_base)});var i=wp.data.select("core/editor").getPostEdits(),n={};e.map(function(t){void 0!==i[t]&&(n[t]=i[t])}),JSON.stringify(n)!==JSON.stringify(this.postEdits)&&(this.postEdits=n,acf.screen.check())},getPageTemplate:function(){return wp.data.select("core/editor").getEditedPostAttribute("template")},getPageParent:function(t,e){return wp.data.select("core/editor").getEditedPostAttribute("parent")},getPostType:function(){return wp.data.select("core/editor").getEditedPostAttribute("type")},getPostFormat:function(t,e){return wp.data.select("core/editor").getEditedPostAttribute("format")},getPostCoreTerms:function(){var i={};return(wp.data.select("core").getTaxonomies()||[]).map(function(t){var e=wp.data.select("core/editor").getEditedPostAttribute(t.rest_base);e&&(i[t.slug]=e)}),i},onRefreshPostScreen:function(e){var i=wp.data.select("core/edit-post"),t=wp.data.dispatch("core/edit-post"),n={};i.getActiveMetaBoxLocations().map(function(t){n[t]=i.getMetaBoxesPerLocation(t)});var a,s=[];for(a in n)n[a].map(function(t){s.push(t.id)});for(a in e.results.filter(function(t){return-1===s.indexOf(t.id)}).map(function(t,e){var i=t.position;n[i]=n[i]||[],n[i].push({id:t.id,title:t.title})}),n)n[a]=n[a].filter(function(t){return-1===e.hidden.indexOf(t.id)});t.setAvailableMetaBoxesPerLocation(n)}})}(jQuery),function(l){function n(){return acf.isset(window,"jQuery","fn","select2","amd")?4:!!acf.isset(window,"Select2")&&3}acf.newSelect2=function(t,e){return e=acf.parseArgs(e,{allowNull:!1,placeholder:"",multiple:!1,field:!1,ajax:!1,ajaxAction:"",ajaxData:function(t){return t},ajaxResults:function(t){return t}}),e=new(4==n()?a:s)(t,e),acf.doAction("new_select2",e),e};var i=acf.Model.extend({setup:function(t,e){l.extend(this.data,e),this.$el=t},initialize:function(){},selectOption:function(t){t=this.getOption(t);t.prop("selected")||t.prop("selected",!0).trigger("change")},unselectOption:function(t){t=this.getOption(t);t.prop("selected")&&t.prop("selected",!1).trigger("change")},getOption:function(t){return this.$('option[value="'+t+'"]')},addOption:function(t){t=acf.parseArgs(t,{id:"",text:"",selected:!1});var e=this.getOption(t.id);return e.length||((e=l("")).html(t.text),e.attr("value",t.id),e.prop("selected",t.selected),this.$el.append(e)),e},getValue:function(){var e=[],t=this.$el.find("option:selected");return t.exists()&&(t=t.sort(function(t,e){return+t.getAttribute("data-i")-+e.getAttribute("data-i")})).each(function(){var t=l(this);e.push({$el:t,id:t.attr("value"),text:t.text()})}),e},mergeOptions:function(){},getChoices:function(){var i=function(t){var e=[];return t.children().each(function(){var t=l(this);t.is("optgroup")?e.push({text:t.attr("label"),children:i(t)}):e.push({id:t.attr("value"),text:t.text()})}),e};return i(this.$el)},getAjaxData:function(t){var e={action:this.get("ajaxAction"),s:t.term||"",paged:t.page||1},i=this.get("field");i&&(e.field_key=i.get("key"));var n=this.get("ajaxData");return n&&(e=n.apply(this,[e,t])),e=acf.applyFilters("select2_ajax_data",e,this.data,this.$el,i||!1,this),acf.prepareForAjax(e)},getAjaxResults:function(t,e){t=acf.parseArgs(t,{results:!1,more:!1});var i=this.get("ajaxResults");return i&&(t=i.apply(this,[t,e])),t=acf.applyFilters("select2_ajax_results",t,e,this)},processAjaxResults:function(t,e){return(t=this.getAjaxResults(t,e)).more&&(t.pagination={more:!0}),setTimeout(l.proxy(this.mergeOptions,this),1),t},destroy:function(){this.$el.data("select2")&&this.$el.select2("destroy"),this.$el.siblings(".select2-container").remove()}}),a=i.extend({initialize:function(){var e=this.$el;(n={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),multiple:this.get("multiple"),data:[],escapeMarkup:function(t){return acf.escHtml(t)}}).multiple&&this.getValue().map(function(t){t.$el.detach().appendTo(e)});var t=e.attr("data-ajax");void 0!==t&&(e.removeData("ajax"),e.removeAttr("data-ajax")),this.get("ajax")&&(n.ajax={url:acf.get("ajaxurl"),delay:250,dataType:"json",type:"post",cache:!1,data:l.proxy(this.getAjaxData,this),processResults:l.proxy(this.processAjaxResults,this)});var i=this.get("field"),n=acf.applyFilters("select2_args",n,e,this.data,i||!1,this);e.select2(n);var a,s=e.next(".select2-container");n.multiple&&((a=s.find("ul")).sortable({stop:function(t){a.find(".select2-selection__choice").each(function(){l(l(this).data("data").element).detach().appendTo(e)}),e.trigger("change")}}),e.on("select2:select",this.proxy(function(t){this.getOption(t.params.data.id).detach().appendTo(this.$el)}))),s.addClass("-acf"),void 0!==t&&e.attr("data-ajax",t),acf.doAction("select2_init",e,n,this.data,i||!1,this)},mergeOptions:function(){var i=!1,n=!1;l('.select2-results__option[role="group"]').each(function(){var t=l(this).children("ul"),e=l(this).children("strong");if(n&&n.text()===e.text())return i.append(t.children()),void l(this).remove();i=t,n=e})}}),s=i.extend({initialize:function(){var i=this.$el,n=this.getValue(),a=this.get("multiple"),t={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),separator:"||",multiple:this.get("multiple"),data:this.getChoices(),escapeMarkup:function(t){return acf.escHtml(t)},dropdownCss:{"z-index":"999999999"},initSelection:function(t,e){e(a?n:n.shift())}},e=i.siblings("input");e.length||(e=l(''),i.before(e)),inputValue=n.map(function(t){return t.id}).join("||"),e.val(inputValue),t.multiple&&n.map(function(t){t.$el.detach().appendTo(i)}),t.allowClear&&(t.data=t.data.filter(function(t){return""!==t.id})),i.removeData("ajax"),i.removeAttr("data-ajax"),this.get("ajax")&&(t.ajax={url:acf.get("ajaxurl"),quietMillis:250,dataType:"json",type:"post",cache:!1,data:l.proxy(this.getAjaxData,this),results:l.proxy(this.processAjaxResults,this)});var s=this.get("field"),t=acf.applyFilters("select2_args",t,i,this.data,s||!1,this);e.select2(t);var o,r=e.select2("container"),c=l.proxy(this.getOption,this);t.multiple&&(o=r.find("ul")).sortable({stop:function(){o.find(".select2-search-choice").each(function(){var t=l(this).data("select2Data");c(t.id).detach().appendTo(i)}),i.trigger("change")}}),e.on("select2-selecting",function(t){var e=t.choice,t=c(e.id);(t=!t.length?l('"):t).detach().appendTo(i)}),r.addClass("-acf"),acf.doAction("select2_init",i,t,this.data,s||!1,this),e.on("change",function(){var t=e.val();t.indexOf("||")&&(t=t.split("||")),i.val(t).trigger("change")}),i.hide()},mergeOptions:function(){var i=!1;l("#select2-drop .select2-result-with-children").each(function(){var t=l(this).children("ul"),e=l(this).children(".select2-result-label");if(i&&i.text()===e.text())return i.append(t.children()),void l(this).remove();i=e})},getAjaxData:function(t,e){return i.prototype.getAjaxData.apply(this,[{term:t,page:e}])}});new acf.Model({priority:5,wait:"prepare",actions:{duplicate:"onDuplicate"},initialize:function(){var t=acf.get("locale"),e=(acf.get("rtl"),acf.get("select2L10n")),i=n();return!!e&&(0!==t.indexOf("en")&&void(4==i?this.addTranslations4():3==i&&this.addTranslations3()))},addTranslations4:function(){var e=acf.get("select2L10n"),t=(t=acf.get("locale")).replace("_","-"),i={errorLoading:function(){return e.load_fail},inputTooLong:function(t){t=t.input.length-t.maximum;return 1'),t.addClass("acf-sortable-tr-helper"),t.children().each(function(){c(this).width(c(this).width())}),e.height(t.height()+"px"),t.removeClass("acf-sortable-tr-helper"))}}),new acf.Model({actions:{after_duplicate:"onAfterDuplicate"},onAfterDuplicate:function(t,e){var i=[];t.find("select").each(function(t){i.push(c(this).val())}),e.find("select").each(function(t){c(this).val(i[t])})}}),new acf.Model({id:"tableHelper",priority:20,actions:{refresh:"renderTables"},renderTables:function(t){var e=this;c(".acf-table:visible").each(function(){e.renderTable(c(this))})},renderTable:function(t){var e=t.find("> thead > tr:visible > th[data-key]"),a=t.find("> tbody > tr:visible > td[data-key]");if(!e.length||!a.length)return!1;e.each(function(t){var e=c(this),i=e.data("key"),n=a.filter('[data-key="'+i+'"]'),i=n.filter(".acf-hidden");n.removeClass("acf-empty"),n.length===i.length?acf.hide(e):(acf.show(e),i.addClass("acf-empty"))}),e.css("width","auto");var e=e.not(".acf-hidden"),i=100;e.length;e.filter("[data-width]").each(function(){var t=c(this).data("width");c(this).css("width",t+"%"),i-=t});var n=e.not("[data-width]");n.length&&(t=i/n.length,n.css("width",t+"%"),i=0),0t.length?Array(e-t.length+1).join("0")+t:t}return i=i||Math.floor(123456789*Math.random()),i++,t=t,t+=n(parseInt((new Date).getTime()/1e3,10),8),t+=n(i,5),e&&(t+=(10*Math.random()).toFixed(8).toString()),t},c.strReplace=function(t,e,n){return n.split(t).join(e)},c.strCamelCase=function(t){t=t.match(/([a-zA-Z0-9]+)/g);return t?t.map(function(t,e){var n=t.charAt(0);return(0===e?n.toLowerCase():n.toUpperCase())+t.slice(1)}).join(""):""},c.strPascalCase=function(t){t=c.strCamelCase(t);return t.charAt(0).toUpperCase()+t.slice(1)},c.strSlugify=function(t){return c.strReplace("_","-",t.toLowerCase())},c.strSanitize=function(t){var e={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","ß":"s","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o"," ":"_","'":"","?":"","/":"","\\":"",".":"",",":"","`":"",">":"","<":"",'"':"","[":"","]":"","|":"","{":"","}":"","(":"",")":""};return t=(t=t.replace(/\W/g,function(t){return e[t]!==r?e[t]:t})).toLowerCase()},c.strMatch=function(t,e){for(var n=0,i=Math.min(t.length,e.length),o=0;o":">",'"':""","'":"'"};return(""+t).replace(/[&<>"']/g,function(t){return e[t]})},c.strUnescape=function(t){var e={"&":"&","<":"<",">":">",""":'"',"'":"'"};return(""+t).replace(/&|<|>|"|'/g,function(t){return e[t]})},c.escAttr=c.strEscape,c.escHtml=function(t){return(""+t).replace(/").html(t).text()},c.parseArgs=function(t,e){return s.extend({},e="object"!=typeof e?{}:e,t="object"!=typeof t?{}:t)},window.acfL10n==r&&(acfL10n={}),c.__=function(t){return acfL10n[t]||t},c._x=function(t,e){return acfL10n[t+"."+e]||acfL10n[t]||t},c._n=function(t,e,n){return 1==n?c.__(t):c.__(e)},c.isArray=function(t){return Array.isArray(t)},c.isObject=function(t){return"object"==typeof t};c.serialize=function(t,e){var n={},i=c.serializeArray(t);e!==r&&(i=i.filter(function(t){return 0===t.name.indexOf(e)}).map(function(t){return t.name=t.name.slice(e.length),t}));for(var o=0;o');var s=e.parent();e.css({height:n,width:i,margin:o,position:"absolute"}),setTimeout(function(){s.css({opacity:0,height:t.endHeight})},50),setTimeout(function(){e.attr("style",a),s.remove(),t.complete()},301)},u=function(t){var e=t.target,n=e.height(),i=e.children().length,o=s('
        ');e.addClass("acf-remove-element"),setTimeout(function(){e.html(o)},251),setTimeout(function(){e.removeClass("acf-remove-element"),o.css({height:t.endHeight})},300),setTimeout(function(){e.remove(),t.complete()},451)};c.duplicate=function(t){t instanceof jQuery&&(t={target:t}),(t=c.parseArgs(t,{target:!1,search:"",replace:"",rename:!0,before:function(t){},after:function(t,e){},append:function(t,e){t.after(e)}})).target=t.target||t.$el;var e=t.target;t.search=t.search||e.attr("data-id"),t.replace=t.replace||c.uniqid(),t.before(e),c.doAction("before_duplicate",e);var n=e.clone();return t.rename&&c.rename({target:n,search:t.search,replace:t.replace,replacer:"function"==typeof t.rename?t.rename:null}),n.removeClass("acf-clone"),n.find(".ui-sortable").removeClass("ui-sortable"),t.after(e,n),c.doAction("after_duplicate",e,n),t.append(e,n),c.doAction("duplicate",e,n),c.doAction("append",n),n},c.rename=function(i){i instanceof jQuery&&(i={target:i});var t=(i=c.parseArgs(i,{target:!1,destructive:!1,search:"",replace:"",replacer:null})).target;i.search||(i.search=t.attr("data-id")),i.replace||(i.replace=c.uniqid("acf")),i.replacer||(i.replacer=function(t,e,n,i){return e.replace(n,i)});function e(n){return function(t,e){return i.replacer(n,e,i.search,i.replace)}}var n;return i.destructive?(n=c.strReplace(i.search,i.replace,t.outerHTML()),t.replaceWith(n)):(t.attr("data-id",i.replace),t.find('[id*="'+i.search+'"]').attr("id",e("id")),t.find('[for*="'+i.search+'"]').attr("for",e("for")),t.find('[name*="'+i.search+'"]').attr("name",e("name"))),t},c.prepareForAjax=function(t){return t.nonce=c.get("nonce"),t.post_id=c.get("post_id"),c.has("language")&&(t.lang=c.get("language")),t=c.applyFilters("prepare_for_ajax",t)},c.startButtonLoading=function(t){t.prop("disabled",!0),t.after(' ')},c.stopButtonLoading=function(t){t.prop("disabled",!1),t.next(".acf-loading").remove()},c.showLoading=function(t){t.append('
        ')},c.hideLoading=function(t){t.children(".acf-loading-overlay").remove()},c.updateUserSetting=function(t,e){e={action:"acf/ajax/user_setting",name:t,value:e};s.ajax({url:c.get("ajaxurl"),data:c.prepareForAjax(e),type:"post",dataType:"html"})},c.val=function(t,e,n){var i=t.val();return e!==i&&(t.val(e),t.is("select")&&null===t.val()?(t.val(i),!1):(!0!==n&&t.trigger("change"),!0))},c.show=function(t,e){return e&&c.unlock(t,"hidden",e),!c.isLocked(t,"hidden")&&(!!t.hasClass("acf-hidden")&&(t.removeClass("acf-hidden"),!0))},c.hide=function(t,e){return e&&c.lock(t,"hidden",e),!t.hasClass("acf-hidden")&&(t.addClass("acf-hidden"),!0)},c.isHidden=function(t){return t.hasClass("acf-hidden")},c.isVisible=function(t){return!c.isHidden(t)};function f(t,e){return!t.hasClass("acf-disabled")&&(e&&c.unlock(t,"disabled",e),!c.isLocked(t,"disabled")&&(!!t.prop("disabled")&&(t.prop("disabled",!1),!0)))}c.enable=function(t,e){if(t.attr("name"))return f(t,e);var n=!1;return t.find("[name]").each(function(){f(s(this),e)&&(n=!0)}),n};function d(t,e){return e&&c.lock(t,"disabled",e),!t.prop("disabled")&&(t.prop("disabled",!0),!0)}c.disable=function(t,e){if(t.attr("name"))return d(t,e);var n=!1;return t.find("[name]").each(function(){d(s(this),e)&&(n=!0)}),n},c.isset=function(t){for(var e=1;e'+r(t.children)+"":i+='"}),i};return t.html(r(e)),-1e.priority;)t[n]=t[n-1],--n;t[n]=e}return t}(o)):[i];s[t][e]=o}function i(t,e,n){var i=s[t][e];if(!i)return"filters"===t&&n[0];var o=0,r=i.length;if("filters"===t)for(;o','
        ','

        ','
        ','
        ',"
        ",'
        ',""].join("")},render:function(){var t=this.get("title"),e=this.get("content"),n=this.get("loading"),i=this.get("width"),o=this.get("height");this.title(t),this.content(e),i&&this.$(".acf-popup-box").css("width",i),o&&this.$(".acf-popup-box").css("min-height",o),this.loading(n),acf.doAction("append",this.$el)},update:function(t){this.data=acf.parseArgs(t,this.data),this.render()},title:function(t){this.$(".title:first h3").html(t)},content:function(t){this.$(".inner:first").html(t)},loading:function(t){var e=this.$(".loading:first");t?e.show():e.hide()},open:function(){e("body").append(this.$el)},close:function(){this.remove()},onClickClose:function(t,e){t.preventDefault(),this.close()}}),acf.newPopup=function(t){return new acf.models.Popup(t)}}(jQuery),function(i){acf.models.Modal=acf.Model.extend({data:{title:"",content:"",toolbar:""},events:{"click .acf-modal-close":"onClickClose"},setup:function(t){i.extend(this.data,t),this.$el=i(),this.render()},initialize:function(){this.open()},render:function(){var t=this.get("title"),e=this.get("content"),n=this.get("toolbar"),n=i(["
        ",'
        ','
        ',"

        "+t+"

        ",'',"
        ",'
        '+e+"
        ",'
        '+n+"
        ","
        ",'
        ',"
        "].join(""));this.$el&&this.$el.replaceWith(n),this.$el=n,acf.doAction("append",n)},update:function(t){this.data=acf.parseArgs(t,this.data),this.render()},title:function(t){this.$(".acf-modal-title h2").html(t)},content:function(t){this.$(".acf-modal-content").html(t)},toolbar:function(t){this.$(".acf-modal-toolbar").html(t)},open:function(){i("body").append(this.$el)},close:function(){this.remove()},onClickClose:function(t,e){t.preventDefault(),this.close()}}),acf.newModal=function(t){return new acf.models.Modal(t)}}(jQuery),jQuery,new acf.Model({events:{"click .acf-panel-title":"onClick"},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},isOpen:function(t){return t.hasClass("-open")},toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},open:function(t){t.addClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-down")},close:function(t){t.removeClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-right")}}),function(e){var n=acf.Model.extend({data:{text:"",type:"",timeout:0,dismiss:!0,target:!1,close:function(){}},events:{"click .acf-notice-dismiss":"onClickClose"},tmpl:function(){return'
        '},setup:function(t){e.extend(this.data,t),this.$el=e(this.tmpl())},initialize:function(){this.render(),this.show()},render:function(){this.type(this.get("type")),this.html("

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

        "),this.get("dismiss")&&(this.$el.append(''),this.$el.addClass("-dismiss"));var t=this.get("timeout");t&&this.away(t)},update:function(t){e.extend(this.data,t),this.initialize(),this.removeEvents(),this.addEvents()},show:function(){var t=this.get("target");t&&t.prepend(this.$el)},hide:function(){this.$el.remove()},away:function(t){this.setTimeout(function(){acf.remove(this.$el)},t)},type:function(t){var e=this.get("type");e&&this.$el.removeClass("-"+e),this.$el.addClass("-"+t),"error"==t&&this.$el.addClass("acf-error-message")},html:function(t){this.$el.html(acf.escHtml(t))},text:function(t){this.$("p").html(acf.escHtml(t))},onClickClose:function(t,e){t.preventDefault(),this.get("close").apply(this,arguments),this.remove()}});acf.newNotice=function(t){return new n(t="object"!=typeof t?{text:t}:t)};new acf.Model({wait:"prepare",priority:1,initialize:function(){var t=e(".acf-admin-notice");t.length&&e("h1:first").after(t)}})}(jQuery),function(u){acf.newTooltip=function(t){return void 0!==(t="object"!=typeof t?{text:t}:t).confirmRemove?(t.textConfirm=acf.__("Remove"),t.textCancel=acf.__("Cancel"),new n(t)):new(void 0!==t.confirm?n:e)(t)};var e=acf.Model.extend({data:{text:"",timeout:0,target:null},tmpl:function(){return'
        '},setup:function(t){u.extend(this.data,t),this.$el=u(this.tmpl())},initialize:function(){this.render(),this.show(),this.position();var t=this.get("timeout");t&&setTimeout(u.proxy(this.fade,this),t)},update:function(t){u.extend(this.data,t),this.initialize()},render:function(){this.html(this.get("text"))},show:function(){u("body").append(this.$el)},hide:function(){this.$el.remove()},fade:function(){this.$el.addClass("acf-fade-up"),this.setTimeout(function(){this.remove()},250)},html:function(t){this.$el.html(t)},position:function(){var t,e,n,i,o,r,a,s,c=this.$el,l=this.get("target");l&&(c.removeClass("right left bottom top").css({top:0,left:0}),t=l.outerWidth(),e=l.outerHeight(),n=l.offset().top,i=l.offset().left,o=c.outerWidth(),s=n-(r=c.outerHeight())-(a=c.offset().top),(l=i+t/2-o/2)<10?(c.addClass("right"),l=i+t,s=n+e/2-r/2-a):l+o+10>u(window).width()?(c.addClass("left"),l=i-o,s=n+e/2-r/2-a):s-u(window).scrollTop()<10?(c.addClass("bottom"),s=n+e-a):c.addClass("top"),c.css({top:s,left:l}))}}),n=e.extend({data:{text:"",textConfirm:"",textCancel:"",target:null,targetConfirm:!0,confirm:function(){},cancel:function(){},context:!1},events:{'click [data-event="cancel"]':"onCancel",'click [data-event="confirm"]':"onConfirm"},addEvents:function(){acf.Model.prototype.addEvents.apply(this);var t=u(document),e=this.get("target");this.setTimeout(function(){this.on(t,"click","onCancel")}),this.get("targetConfirm")&&this.on(e,"click","onConfirm")},removeEvents:function(){acf.Model.prototype.removeEvents.apply(this);var t=u(document),e=this.get("target");this.off(t,"click"),this.off(e,"click")},render:function(){var t=[this.get("text")||acf.__("Are you sure?"),''+(this.get("textConfirm")||acf.__("Yes"))+"",''+(this.get("textCancel")||acf.__("No"))+""].join(" ");this.html(t),this.$el.addClass("-confirm")},onCancel:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var n=this.get("cancel"),i=this.get("context")||this;n.apply(i,arguments),this.remove()},onConfirm:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var n=this.get("confirm"),i=this.get("context")||this;n.apply(i,arguments),this.remove()}});acf.models.Tooltip=e,acf.models.TooltipConfirm=n;new acf.Model({tooltip:!1,events:{"mouseenter .acf-js-tooltip":"showTitle","mouseup .acf-js-tooltip":"hideTitle","mouseleave .acf-js-tooltip":"hideTitle"},showTitle:function(t,e){var n=e.attr("title");n&&(e.attr("title",""),this.tooltip?this.tooltip.update({text:n,target:e}):this.tooltip=acf.newTooltip({text:n,target:e}))},hideTitle:function(t,e){this.tooltip.hide(),e.attr("title",this.tooltip.get("text"))}})}(jQuery); \ No newline at end of file diff --git a/assets/build/js/pro/acf-pro-blocks.js b/assets/build/js/pro/acf-pro-blocks.js new file mode 100644 index 0000000..ebf95eb --- /dev/null +++ b/assets/build/js/pro/acf-pro-blocks.js @@ -0,0 +1,1828 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } + +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } + +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } + +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } + +function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } + +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } + +function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } + +function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +(function ($, undefined) { + acf.jsxNameReplacements = { + "accent-height": "accentHeight", + "accentheight": "accentHeight", + "accept-charset": "acceptCharset", + "acceptcharset": "acceptCharset", + "accesskey": "accessKey", + "alignment-baseline": "alignmentBaseline", + "alignmentbaseline": "alignmentBaseline", + "allowedblocks": "allowedBlocks", + "allowfullscreen": "allowFullScreen", + "allowreorder": "allowReorder", + "arabic-form": "arabicForm", + "arabicform": "arabicForm", + "attributename": "attributeName", + "attributetype": "attributeType", + "autocapitalize": "autoCapitalize", + "autocomplete": "autoComplete", + "autocorrect": "autoCorrect", + "autofocus": "autoFocus", + "autoplay": "autoPlay", + "autoreverse": "autoReverse", + "autosave": "autoSave", + "basefrequency": "baseFrequency", + "baseline-shift": "baselineShift", + "baselineshift": "baselineShift", + "baseprofile": "baseProfile", + "calcmode": "calcMode", + "cap-height": "capHeight", + "capheight": "capHeight", + "cellpadding": "cellPadding", + "cellspacing": "cellSpacing", + "charset": "charSet", + "class": "className", + "classid": "classID", + "classname": "className", + "clip-path": "clipPath", + "clip-rule": "clipRule", + "clippath": "clipPath", + "clippathunits": "clipPathUnits", + "cliprule": "clipRule", + "color-interpolation": "colorInterpolation", + "color-interpolation-filters": "colorInterpolationFilters", + "color-profile": "colorProfile", + "color-rendering": "colorRendering", + "colorinterpolation": "colorInterpolation", + "colorinterpolationfilters": "colorInterpolationFilters", + "colorprofile": "colorProfile", + "colorrendering": "colorRendering", + "colspan": "colSpan", + "contenteditable": "contentEditable", + "contentscripttype": "contentScriptType", + "contentstyletype": "contentStyleType", + "contextmenu": "contextMenu", + "controlslist": "controlsList", + "crossorigin": "crossOrigin", + "dangerouslysetinnerhtml": "dangerouslySetInnerHTML", + "datetime": "dateTime", + "defaultchecked": "defaultChecked", + "defaultvalue": "defaultValue", + "diffuseconstant": "diffuseConstant", + "disablepictureinpicture": "disablePictureInPicture", + "disableremoteplayback": "disableRemotePlayback", + "dominant-baseline": "dominantBaseline", + "dominantbaseline": "dominantBaseline", + "edgemode": "edgeMode", + "enable-background": "enableBackground", + "enablebackground": "enableBackground", + "enctype": "encType", + "enterkeyhint": "enterKeyHint", + "externalresourcesrequired": "externalResourcesRequired", + "fill-opacity": "fillOpacity", + "fill-rule": "fillRule", + "fillopacity": "fillOpacity", + "fillrule": "fillRule", + "filterres": "filterRes", + "filterunits": "filterUnits", + "flood-color": "floodColor", + "flood-opacity": "floodOpacity", + "floodcolor": "floodColor", + "floodopacity": "floodOpacity", + "font-family": "fontFamily", + "font-size": "fontSize", + "font-size-adjust": "fontSizeAdjust", + "font-stretch": "fontStretch", + "font-style": "fontStyle", + "font-variant": "fontVariant", + "font-weight": "fontWeight", + "fontfamily": "fontFamily", + "fontsize": "fontSize", + "fontsizeadjust": "fontSizeAdjust", + "fontstretch": "fontStretch", + "fontstyle": "fontStyle", + "fontvariant": "fontVariant", + "fontweight": "fontWeight", + "for": "htmlFor", + "formaction": "formAction", + "formenctype": "formEncType", + "formmethod": "formMethod", + "formnovalidate": "formNoValidate", + "formtarget": "formTarget", + "frameborder": "frameBorder", + "glyph-name": "glyphName", + "glyph-orientation-horizontal": "glyphOrientationHorizontal", + "glyph-orientation-vertical": "glyphOrientationVertical", + "glyphname": "glyphName", + "glyphorientationhorizontal": "glyphOrientationHorizontal", + "glyphorientationvertical": "glyphOrientationVertical", + "glyphref": "glyphRef", + "gradienttransform": "gradientTransform", + "gradientunits": "gradientUnits", + "horiz-adv-x": "horizAdvX", + "horiz-origin-x": "horizOriginX", + "horizadvx": "horizAdvX", + "horizoriginx": "horizOriginX", + "hreflang": "hrefLang", + "htmlfor": "htmlFor", + "http-equiv": "httpEquiv", + "httpequiv": "httpEquiv", + "image-rendering": "imageRendering", + "imagerendering": "imageRendering", + "innerhtml": "innerHTML", + "inputmode": "inputMode", + "itemid": "itemID", + "itemprop": "itemProp", + "itemref": "itemRef", + "itemscope": "itemScope", + "itemtype": "itemType", + "kernelmatrix": "kernelMatrix", + "kernelunitlength": "kernelUnitLength", + "keyparams": "keyParams", + "keypoints": "keyPoints", + "keysplines": "keySplines", + "keytimes": "keyTimes", + "keytype": "keyType", + "lengthadjust": "lengthAdjust", + "letter-spacing": "letterSpacing", + "letterspacing": "letterSpacing", + "lighting-color": "lightingColor", + "lightingcolor": "lightingColor", + "limitingconeangle": "limitingConeAngle", + "marginheight": "marginHeight", + "marginwidth": "marginWidth", + "marker-end": "markerEnd", + "marker-mid": "markerMid", + "marker-start": "markerStart", + "markerend": "markerEnd", + "markerheight": "markerHeight", + "markermid": "markerMid", + "markerstart": "markerStart", + "markerunits": "markerUnits", + "markerwidth": "markerWidth", + "maskcontentunits": "maskContentUnits", + "maskunits": "maskUnits", + "maxlength": "maxLength", + "mediagroup": "mediaGroup", + "minlength": "minLength", + "nomodule": "noModule", + "novalidate": "noValidate", + "numoctaves": "numOctaves", + "overline-position": "overlinePosition", + "overline-thickness": "overlineThickness", + "overlineposition": "overlinePosition", + "overlinethickness": "overlineThickness", + "paint-order": "paintOrder", + "paintorder": "paintOrder", + "panose-1": "panose1", + "pathlength": "pathLength", + "patterncontentunits": "patternContentUnits", + "patterntransform": "patternTransform", + "patternunits": "patternUnits", + "playsinline": "playsInline", + "pointer-events": "pointerEvents", + "pointerevents": "pointerEvents", + "pointsatx": "pointsAtX", + "pointsaty": "pointsAtY", + "pointsatz": "pointsAtZ", + "preservealpha": "preserveAlpha", + "preserveaspectratio": "preserveAspectRatio", + "primitiveunits": "primitiveUnits", + "radiogroup": "radioGroup", + "readonly": "readOnly", + "referrerpolicy": "referrerPolicy", + "refx": "refX", + "refy": "refY", + "rendering-intent": "renderingIntent", + "renderingintent": "renderingIntent", + "repeatcount": "repeatCount", + "repeatdur": "repeatDur", + "requiredextensions": "requiredExtensions", + "requiredfeatures": "requiredFeatures", + "rowspan": "rowSpan", + "shape-rendering": "shapeRendering", + "shaperendering": "shapeRendering", + "specularconstant": "specularConstant", + "specularexponent": "specularExponent", + "spellcheck": "spellCheck", + "spreadmethod": "spreadMethod", + "srcdoc": "srcDoc", + "srclang": "srcLang", + "srcset": "srcSet", + "startoffset": "startOffset", + "stddeviation": "stdDeviation", + "stitchtiles": "stitchTiles", + "stop-color": "stopColor", + "stop-opacity": "stopOpacity", + "stopcolor": "stopColor", + "stopopacity": "stopOpacity", + "strikethrough-position": "strikethroughPosition", + "strikethrough-thickness": "strikethroughThickness", + "strikethroughposition": "strikethroughPosition", + "strikethroughthickness": "strikethroughThickness", + "stroke-dasharray": "strokeDasharray", + "stroke-dashoffset": "strokeDashoffset", + "stroke-linecap": "strokeLinecap", + "stroke-linejoin": "strokeLinejoin", + "stroke-miterlimit": "strokeMiterlimit", + "stroke-opacity": "strokeOpacity", + "stroke-width": "strokeWidth", + "strokedasharray": "strokeDasharray", + "strokedashoffset": "strokeDashoffset", + "strokelinecap": "strokeLinecap", + "strokelinejoin": "strokeLinejoin", + "strokemiterlimit": "strokeMiterlimit", + "strokeopacity": "strokeOpacity", + "strokewidth": "strokeWidth", + "suppresscontenteditablewarning": "suppressContentEditableWarning", + "suppresshydrationwarning": "suppressHydrationWarning", + "surfacescale": "surfaceScale", + "systemlanguage": "systemLanguage", + "tabindex": "tabIndex", + "tablevalues": "tableValues", + "targetx": "targetX", + "targety": "targetY", + "templatelock": "templateLock", + "text-anchor": "textAnchor", + "text-decoration": "textDecoration", + "text-rendering": "textRendering", + "textanchor": "textAnchor", + "textdecoration": "textDecoration", + "textlength": "textLength", + "textrendering": "textRendering", + "underline-position": "underlinePosition", + "underline-thickness": "underlineThickness", + "underlineposition": "underlinePosition", + "underlinethickness": "underlineThickness", + "unicode-bidi": "unicodeBidi", + "unicode-range": "unicodeRange", + "unicodebidi": "unicodeBidi", + "unicoderange": "unicodeRange", + "units-per-em": "unitsPerEm", + "unitsperem": "unitsPerEm", + "usemap": "useMap", + "v-alphabetic": "vAlphabetic", + "v-hanging": "vHanging", + "v-ideographic": "vIdeographic", + "v-mathematical": "vMathematical", + "valphabetic": "vAlphabetic", + "vector-effect": "vectorEffect", + "vectoreffect": "vectorEffect", + "vert-adv-y": "vertAdvY", + "vert-origin-x": "vertOriginX", + "vert-origin-y": "vertOriginY", + "vertadvy": "vertAdvY", + "vertoriginx": "vertOriginX", + "vertoriginy": "vertOriginY", + "vhanging": "vHanging", + "videographic": "vIdeographic", + "viewbox": "viewBox", + "viewtarget": "viewTarget", + "vmathematical": "vMathematical", + "word-spacing": "wordSpacing", + "wordspacing": "wordSpacing", + "writing-mode": "writingMode", + "writingmode": "writingMode", + "x-height": "xHeight", + "xchannelselector": "xChannelSelector", + "xheight": "xHeight", + "xlink:actuate": "xlinkActuate", + "xlink:arcrole": "xlinkArcrole", + "xlink:href": "xlinkHref", + "xlink:role": "xlinkRole", + "xlink:show": "xlinkShow", + "xlink:title": "xlinkTitle", + "xlink:type": "xlinkType", + "xlinkactuate": "xlinkActuate", + "xlinkarcrole": "xlinkArcrole", + "xlinkhref": "xlinkHref", + "xlinkrole": "xlinkRole", + "xlinkshow": "xlinkShow", + "xlinktitle": "xlinkTitle", + "xlinktype": "xlinkType", + "xml:base": "xmlBase", + "xml:lang": "xmlLang", + "xml:space": "xmlSpace", + "xmlbase": "xmlBase", + "xmllang": "xmlLang", + "xmlns:xlink": "xmlnsXlink", + "xmlnsxlink": "xmlnsXlink", + "xmlspace": "xmlSpace", + "ychannelselector": "yChannelSelector", + "zoomandpan": "zoomAndPan" + }; +})(jQuery); + +(function ($, undefined) { + // Dependencies. + var _wp$blockEditor = wp.blockEditor, + BlockControls = _wp$blockEditor.BlockControls, + InspectorControls = _wp$blockEditor.InspectorControls, + InnerBlocks = _wp$blockEditor.InnerBlocks; + var _wp$components = wp.components, + Toolbar = _wp$components.Toolbar, + IconButton = _wp$components.IconButton, + Placeholder = _wp$components.Placeholder, + Spinner = _wp$components.Spinner; + var Fragment = wp.element.Fragment; + var _React = React, + Component = _React.Component; + var withSelect = wp.data.withSelect; + var createHigherOrderComponent = wp.compose.createHigherOrderComponent; + /** + * Storage for registered block types. + * + * @since 5.8.0 + * @var object + */ + + var blockTypes = {}; + /** + * Returns a block type for the given name. + * + * @date 20/2/19 + * @since 5.8.0 + * + * @param string name The block name. + * @return (object|false) + */ + + function getBlockType(name) { + return blockTypes[name] || false; + } + /** + * Returns true if a block exists for the given name. + * + * @date 20/2/19 + * @since 5.8.0 + * + * @param string name The block name. + * @return bool + */ + + + function isBlockType(name) { + return !!blockTypes[name]; + } + /** + * Returns true if the provided block is new. + * + * @date 31/07/2020 + * @since 5.9.0 + * + * @param object props The block props. + * @return bool + */ + + + function isNewBlock(props) { + return !props.attributes.id; + } + /** + * Returns true if the provided block is a duplicate: + * True when there are is another block with the same "id", but a different "clientId". + * + * @date 31/07/2020 + * @since 5.9.0 + * + * @param object props The block props. + * @return bool + */ + + + function isDuplicateBlock(props) { + return getBlocks().filter(function (block) { + return block.attributes.id === props.attributes.id; + }).filter(function (block) { + return block.clientId !== props.clientId; + }).length; + } + /** + * Registers a block type. + * + * @date 19/2/19 + * @since 5.8.0 + * + * @param object blockType The block type settings localized from PHP. + * @return object The result from wp.blocks.registerBlockType(). + */ + + + function registerBlockType(blockType) { + // Bail ealry if is excluded post_type. + var allowedTypes = blockType.post_types || []; + + if (allowedTypes.length) { + // Always allow block to appear on "Edit reusable Block" screen. + allowedTypes.push('wp_block'); // Check post type. + + var postType = acf.get('postType'); + + if (allowedTypes.indexOf(postType) === -1) { + return false; + } + } // Handle svg HTML. + + + if (typeof blockType.icon === 'string' && blockType.icon.substr(0, 4) === 'value pairs used to filter results. + * @return array. + */ + + + function getBlocks(args) { + // Get all blocks (avoid deprecated warning). + var blocks = select('core/block-editor').getBlocks(); // Append innerBlocks. + + var i = 0; + + while (i < blocks.length) { + blocks = blocks.concat(blocks[i].innerBlocks); + i++; + } // Loop over args and filter. + + + for (var k in args) { + blocks = blocks.filter(function (block) { + return block.attributes[k] === args[k]; + }); + } // Return results. + + + return blocks; + } // Data storage for AJAX requests. + + + var ajaxQueue = {}; + /** + * Fetches a JSON result from the AJAX API. + * + * @date 28/2/19 + * @since 5.7.13 + * + * @param object block The block props. + * @query object The query args used in AJAX callback. + * @return object The AJAX promise. + */ + + function fetchBlock(args) { + var _args$attributes = args.attributes, + attributes = _args$attributes === void 0 ? {} : _args$attributes, + _args$query = args.query, + query = _args$query === void 0 ? {} : _args$query, + _args$delay = args.delay, + delay = _args$delay === void 0 ? 0 : _args$delay; // Use storage or default data. + + var id = attributes.id; + var data = ajaxQueue[id] || { + query: {}, + timeout: false, + promise: $.Deferred() + }; // Append query args to storage. + + data.query = _objectSpread(_objectSpread({}, data.query), query); // Set fresh timeout. + + clearTimeout(data.timeout); + data.timeout = setTimeout(function () { + $.ajax({ + url: acf.get('ajaxurl'), + dataType: 'json', + type: 'post', + cache: false, + data: acf.prepareForAjax({ + action: 'acf/ajax/fetch-block', + block: JSON.stringify(attributes), + query: data.query + }) + }).always(function () { + // Clean up queue after AJAX request is complete. + ajaxQueue[id] = null; + }).done(function () { + data.promise.resolve.apply(this, arguments); + }).fail(function () { + data.promise.reject.apply(this, arguments); + }); + }, delay); // Update storage. + + ajaxQueue[id] = data; // Return promise. + + return data.promise; + } + /** + * Returns true if both object are the same. + * + * @date 19/05/2020 + * @since 5.9.0 + * + * @param object obj1 + * @param object obj2 + * @return bool + */ + + + function compareObjects(obj1, obj2) { + return JSON.stringify(obj1) === JSON.stringify(obj2); + } + /** + * Converts HTML into a React element. + * + * @date 19/05/2020 + * @since 5.9.0 + * + * @param string html The HTML to convert. + * @return object Result of React.createElement(). + */ + + + acf.parseJSX = function (html) { + return parseNode($(html)[0]); + }; + /** + * Converts a DOM node into a React element. + * + * @date 19/05/2020 + * @since 5.9.0 + * + * @param DOM node The DOM node. + * @return object Result of React.createElement(). + */ + + + function parseNode(node) { + // Get node name. + var nodeName = parseNodeName(node.nodeName.toLowerCase()); + + if (!nodeName) { + return null; + } // Get node attributes in React friendly format. + + + var nodeAttrs = {}; + acf.arrayArgs(node.attributes).map(parseNodeAttr).forEach(function (attr) { + nodeAttrs[attr.name] = attr.value; + }); // Define args for React.createElement(). + + var args = [nodeName, nodeAttrs]; + acf.arrayArgs(node.childNodes).forEach(function (child) { + if (child instanceof Text) { + var text = child.textContent; + + if (text) { + args.push(text); + } + } else { + args.push(parseNode(child)); + } + }); // Return element. + + return React.createElement.apply(this, args); + } + + ; + /** + * Converts a node or attribute name into it's JSX compliant name + * + * @date 05/07/2021 + * @since 5.9.8 + * + * @param string name The node or attribute name. + * @returns string + */ + + function getJSXName(name) { + var replacement = acf.isget(acf, 'jsxNameReplacements', name); + if (replacement) return replacement; + return name; + } + /** + * Converts the given name into a React friendly name or component. + * + * @date 19/05/2020 + * @since 5.9.0 + * + * @param string name The node name in lowercase. + * @return mixed + */ + + + function parseNodeName(name) { + switch (name) { + case 'innerblocks': + return InnerBlocks; + + case 'script': + return Script; + + case '#comment': + return null; + + default: + // Replace names for JSX counterparts. + name = getJSXName(name); + } + + return name; + } + /** + * Converts the given attribute into a React friendly name and value object. + * + * @date 19/05/2020 + * @since 5.9.0 + * + * @param obj nodeAttr The node attribute. + * @return obj + */ + + + function parseNodeAttr(nodeAttr) { + var name = nodeAttr.name; + var value = nodeAttr.value; + + switch (name) { + // Class. + case 'class': + name = 'className'; + break; + // Style. + + case 'style': + var css = {}; + value.split(';').forEach(function (s) { + var pos = s.indexOf(':'); + + if (pos > 0) { + var ruleName = s.substr(0, pos).trim(); + var ruleValue = s.substr(pos + 1).trim(); // Rename core properties, but not CSS variables. + + if (ruleName.charAt(0) !== '-') { + ruleName = acf.strCamelCase(ruleName); + } + + css[ruleName] = ruleValue; + } + }); + value = css; + break; + // Default. + + default: + // No formatting needed for "data-x" attributes. + if (name.indexOf('data-') === 0) { + break; + } // Replace names for JSX counterparts. + + + name = getJSXName(name); // Convert JSON values. + + var c1 = value.charAt(0); + + if (c1 === '[' || c1 === '{') { + value = JSON.parse(value); + } // Convert bool values. + + + if (value === 'true' || value === 'false') { + value = value === 'true'; + } + + break; + } + + return { + name: name, + value: value + }; + } + /** + * Higher Order Component used to set default block attribute values. + * + * By modifying block attributes directly, instead of defining defaults in registerBlockType(), + * WordPress will include them always within the saved block serialized JSON. + * + * @date 31/07/2020 + * @since 5.9.0 + * + * @param Component BlockListBlock The BlockListBlock Component. + * @return Component + */ + + + var withDefaultAttributes = createHigherOrderComponent(function (BlockListBlock) { + return /*#__PURE__*/function (_Component) { + _inherits(WrappedBlockEdit, _Component); + + var _super = _createSuper(WrappedBlockEdit); + + function WrappedBlockEdit(props) { + var _this; + + _classCallCheck(this, WrappedBlockEdit); + + _this = _super.call(this, props); // Extract vars. + + var _this$props = _this.props, + name = _this$props.name, + attributes = _this$props.attributes; // Only run on ACF Blocks. + + var blockType = getBlockType(name); + + if (!blockType) { + return _possibleConstructorReturn(_this); + } // Set unique ID and default attributes for newly added blocks. + + + if (isNewBlock(props)) { + attributes.id = acf.uniqid('block_'); + + for (var attribute in blockType.attributes) { + if (attributes[attribute] === undefined && blockType[attribute] !== undefined) { + attributes[attribute] = blockType[attribute]; + } + } + + return _possibleConstructorReturn(_this); + } // Generate new ID for duplicated blocks. + + + if (isDuplicateBlock(props)) { + attributes.id = acf.uniqid('block_'); + return _possibleConstructorReturn(_this); + } + + return _this; + } + + _createClass(WrappedBlockEdit, [{ + key: "render", + value: function render() { + return /*#__PURE__*/React.createElement(BlockListBlock, this.props); + } + }]); + + return WrappedBlockEdit; + }(Component); + }, 'withDefaultAttributes'); + wp.hooks.addFilter('editor.BlockListBlock', 'acf/with-default-attributes', withDefaultAttributes); + /** + * The BlockSave functional component. + * + * @date 08/07/2020 + * @since 5.9.0 + */ + + function BlockSave() { + return /*#__PURE__*/React.createElement(InnerBlocks.Content, null); + } + /** + * The BlockEdit component. + * + * @date 19/2/19 + * @since 5.7.12 + */ + + + var BlockEdit = /*#__PURE__*/function (_Component2) { + _inherits(BlockEdit, _Component2); + + var _super2 = _createSuper(BlockEdit); + + function BlockEdit(props) { + var _this2; + + _classCallCheck(this, BlockEdit); + + _this2 = _super2.call(this, props); + + _this2.setup(); + + return _this2; + } + + _createClass(BlockEdit, [{ + key: "setup", + value: function setup() { + var _this$props2 = this.props, + name = _this$props2.name, + attributes = _this$props2.attributes; + var blockType = getBlockType(name); // Restrict current mode. + + function restrictMode(modes) { + if (modes.indexOf(attributes.mode) === -1) { + attributes.mode = modes[0]; + } + } + + switch (blockType.mode) { + case 'edit': + restrictMode(['edit', 'preview']); + break; + + case 'preview': + restrictMode(['preview', 'edit']); + break; + + default: + restrictMode(['auto']); + break; + } + } + }, { + key: "render", + value: function render() { + var _this$props3 = this.props, + name = _this$props3.name, + attributes = _this$props3.attributes, + setAttributes = _this$props3.setAttributes; + var mode = attributes.mode; + var blockType = getBlockType(name); // Show toggle only for edit/preview modes. + + var showToggle = blockType.supports.mode; + + if (mode === 'auto') { + showToggle = false; + } // Configure toggle variables. + + + var toggleText = mode === 'preview' ? acf.__('Switch to Edit') : acf.__('Switch to Preview'); + var toggleIcon = mode === 'preview' ? 'edit' : 'welcome-view-site'; + + function toggleMode() { + setAttributes({ + mode: mode === 'preview' ? 'edit' : 'preview' + }); + } // Return template. + + + return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BlockControls, null, showToggle && /*#__PURE__*/React.createElement(Toolbar, null, /*#__PURE__*/React.createElement(IconButton, { + className: "components-icon-button components-toolbar__control", + label: toggleText, + icon: toggleIcon, + onClick: toggleMode + }))), /*#__PURE__*/React.createElement(InspectorControls, null, mode === 'preview' && /*#__PURE__*/React.createElement("div", { + className: "acf-block-component acf-block-panel" + }, /*#__PURE__*/React.createElement(BlockForm, this.props))), /*#__PURE__*/React.createElement(BlockBody, this.props)); + } + }]); + + return BlockEdit; + }(Component); + /** + * The BlockBody component. + * + * @date 19/2/19 + * @since 5.7.12 + */ + + + var _BlockBody = /*#__PURE__*/function (_Component3) { + _inherits(_BlockBody, _Component3); + + var _super3 = _createSuper(_BlockBody); + + function _BlockBody() { + _classCallCheck(this, _BlockBody); + + return _super3.apply(this, arguments); + } + + _createClass(_BlockBody, [{ + key: "render", + value: function render() { + var _this$props4 = this.props, + attributes = _this$props4.attributes, + isSelected = _this$props4.isSelected; + var mode = attributes.mode; + return /*#__PURE__*/React.createElement("div", { + className: "acf-block-component acf-block-body" + }, mode === 'auto' && isSelected ? /*#__PURE__*/React.createElement(BlockForm, this.props) : mode === 'auto' && !isSelected ? /*#__PURE__*/React.createElement(BlockPreview, this.props) : mode === 'preview' ? /*#__PURE__*/React.createElement(BlockPreview, this.props) : /*#__PURE__*/React.createElement(BlockForm, this.props)); + } + }]); + + return _BlockBody; + }(Component); // Append blockIndex to component props. + + + var BlockBody = withSelect(function (select, ownProps) { + var clientId = ownProps.clientId; // Use optional rootClientId to allow discoverability of child blocks. + + var rootClientId = select('core/block-editor').getBlockRootClientId(clientId); + var index = select('core/block-editor').getBlockIndex(clientId, rootClientId); + return { + index: index + }; + })(_BlockBody); + /** + * A react component to append HTMl. + * + * @date 19/2/19 + * @since 5.7.12 + * + * @param string children The html to insert. + * @return void + */ + + var Div = /*#__PURE__*/function (_Component4) { + _inherits(Div, _Component4); + + var _super4 = _createSuper(Div); + + function Div() { + _classCallCheck(this, Div); + + return _super4.apply(this, arguments); + } + + _createClass(Div, [{ + key: "render", + value: function render() { + return /*#__PURE__*/React.createElement("div", { + dangerouslySetInnerHTML: { + __html: this.props.children + } + }); + } + }]); + + return Div; + }(Component); + /** + * A react Component for inline scripts. + * + * This Component uses a combination of React references and jQuery to append the + * inline ")); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate() { + this.setHTML(this.props.children); + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + this.setHTML(this.props.children); + } + }]); + + return Script; + }(Component); // Data storage for DynamicHTML components. + + + var store = {}; + /** + * DynamicHTML Class. + * + * A react componenet to load and insert dynamic HTML. + * + * @date 19/2/19 + * @since 5.7.12 + * + * @param void + * @return void + */ + + var DynamicHTML = /*#__PURE__*/function (_Component6) { + _inherits(DynamicHTML, _Component6); + + var _super6 = _createSuper(DynamicHTML); + + function DynamicHTML(props) { + var _this4; + + _classCallCheck(this, DynamicHTML); + + _this4 = _super6.call(this, props); // Bind callbacks. + + _this4.setRef = _this4.setRef.bind(_assertThisInitialized(_this4)); // Define default props and call setup(). + + _this4.id = ''; + _this4.el = false; + _this4.subscribed = true; + _this4.renderMethod = 'jQuery'; + + _this4.setup(props); // Load state. + + + _this4.loadState(); + + return _this4; + } + + _createClass(DynamicHTML, [{ + key: "setup", + value: function setup(props) {// Do nothing. + } + }, { + key: "fetch", + value: function fetch() {// Do nothing. + } + }, { + key: "loadState", + value: function loadState() { + this.state = store[this.id] || {}; + } + }, { + key: "setState", + value: function setState(state) { + store[this.id] = _objectSpread(_objectSpread({}, this.state), state); // Update component state if subscribed. + // - Allows AJAX callback to update store without modifying state of an unmounted component. + + if (this.subscribed) { + _get(_getPrototypeOf(DynamicHTML.prototype), "setState", this).call(this, state); + } + } + }, { + key: "setHtml", + value: function setHtml(html) { + html = html ? html.trim() : ''; // Bail early if html has not changed. + + if (html === this.state.html) { + return; + } // Update state. + + + var state = { + html: html + }; + + if (this.renderMethod === 'jsx') { + state.jsx = acf.parseJSX(html); + state.$el = $(this.el); + } else { + state.$el = $(html); + } + + this.setState(state); + } + }, { + key: "setRef", + value: function setRef(el) { + this.el = el; + } + }, { + key: "render", + value: function render() { + // Render JSX. + if (this.state.jsx) { + return /*#__PURE__*/React.createElement("div", { + ref: this.setRef + }, this.state.jsx); + } // Return HTML. + + + return /*#__PURE__*/React.createElement("div", { + ref: this.setRef + }, /*#__PURE__*/React.createElement(Placeholder, null, /*#__PURE__*/React.createElement(Spinner, null))); + } + }, { + key: "shouldComponentUpdate", + value: function shouldComponentUpdate(nextProps, nextState) { + if (nextProps.index !== this.props.index) { + this.componentWillMove(); + } + + return nextState.html !== this.state.html; + } + }, { + key: "display", + value: function display(context) { + // This method is called after setting new HTML and the Component render. + // The jQuery render method simply needs to move $el into place. + if (this.renderMethod === 'jQuery') { + var $el = this.state.$el; + var $prevParent = $el.parent(); + var $thisParent = $(this.el); // Move $el into place. + + $thisParent.html($el); // Special case for reusable blocks. + // Multiple instances of the same reusable block share the same block id. + // This causes all instances to share the same state (cool), which unfortunately + // pulls $el back and forth between the last rendered reusable block. + // This simple fix leaves a "clone" behind :) + + if ($prevParent.length && $prevParent[0] !== $thisParent[0]) { + $prevParent.html($el.clone()); + } + } // Call context specific method. + + + switch (context) { + case 'append': + this.componentDidAppend(); + break; + + case 'remount': + this.componentDidRemount(); + break; + } + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + // Fetch on first load. + if (this.state.html === undefined) { + //console.log('componentDidMount', this.id); + this.fetch(); // Or remount existing HTML. + } else { + this.display('remount'); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps, prevState) { + // HTML has changed. + this.display('append'); + } + }, { + key: "componentDidAppend", + value: function componentDidAppend() { + acf.doAction('append', this.state.$el); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + acf.doAction('unmount', this.state.$el); // Unsubscribe this component from state. + + this.subscribed = false; + } + }, { + key: "componentDidRemount", + value: function componentDidRemount() { + var _this5 = this; + + this.subscribed = true; // Use setTimeout to avoid incorrect timing of events. + // React will unmount and mount components in DOM order. + // This means a new component can be mounted before an old one is unmounted. + // ACF shares $el across new/old components which is un-React-like. + // This timout ensures that unmounting occurs before remounting. + + setTimeout(function () { + acf.doAction('remount', _this5.state.$el); + }); + } + }, { + key: "componentWillMove", + value: function componentWillMove() { + var _this6 = this; + + acf.doAction('unmount', this.state.$el); + setTimeout(function () { + acf.doAction('remount', _this6.state.$el); + }); + } + }]); + + return DynamicHTML; + }(Component); + /** + * BlockForm Class. + * + * A react componenet to handle the block form. + * + * @date 19/2/19 + * @since 5.7.12 + * + * @param string id the block id. + * @return void + */ + + + var BlockForm = /*#__PURE__*/function (_DynamicHTML) { + _inherits(BlockForm, _DynamicHTML); + + var _super7 = _createSuper(BlockForm); + + function BlockForm() { + _classCallCheck(this, BlockForm); + + return _super7.apply(this, arguments); + } + + _createClass(BlockForm, [{ + key: "setup", + value: function setup(props) { + this.id = "BlockForm-".concat(props.attributes.id); + } + }, { + key: "fetch", + value: function fetch() { + var _this7 = this; + + // Extract props. + var attributes = this.props.attributes; // Request AJAX and update HTML on complete. + + fetchBlock({ + attributes: attributes, + query: { + form: true + } + }).done(function (json) { + _this7.setHtml(json.data.form); + }); + } + }, { + key: "componentDidAppend", + value: function componentDidAppend() { + _get(_getPrototypeOf(BlockForm.prototype), "componentDidAppend", this).call(this); // Extract props. + + + var _this$props5 = this.props, + attributes = _this$props5.attributes, + setAttributes = _this$props5.setAttributes; + var $el = this.state.$el; // Callback for updating block data. + + function serializeData() { + var silent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var data = acf.serialize($el, "acf-".concat(attributes.id)); + + if (silent) { + attributes.data = data; + } else { + setAttributes({ + data: data + }); + } + } // Add events. + + + var timeout = false; + $el.on('change keyup', function () { + clearTimeout(timeout); + timeout = setTimeout(serializeData, 300); + }); // Ensure newly added block is saved with data. + // Do it silently to avoid triggering a preview render. + + if (!attributes.data) { + serializeData(true); + } + } + }]); + + return BlockForm; + }(DynamicHTML); + /** + * BlockPreview Class. + * + * A react componenet to handle the block preview. + * + * @date 19/2/19 + * @since 5.7.12 + * + * @param string id the block id. + * @return void + */ + + + var BlockPreview = /*#__PURE__*/function (_DynamicHTML2) { + _inherits(BlockPreview, _DynamicHTML2); + + var _super8 = _createSuper(BlockPreview); + + function BlockPreview() { + _classCallCheck(this, BlockPreview); + + return _super8.apply(this, arguments); + } + + _createClass(BlockPreview, [{ + key: "setup", + value: function setup(props) { + this.id = "BlockPreview-".concat(props.attributes.id); + var blockType = getBlockType(props.name); + + if (blockType.supports.jsx) { + this.renderMethod = 'jsx'; + } //console.log('setup', this.id); + + } + }, { + key: "fetch", + value: function fetch() { + var _this8 = this; + + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var _args$attributes2 = args.attributes, + attributes = _args$attributes2 === void 0 ? this.props.attributes : _args$attributes2, + _args$delay2 = args.delay, + delay = _args$delay2 === void 0 ? 0 : _args$delay2; // Remember attributes used to fetch HTML. + + this.setState({ + prevAttributes: attributes + }); // Try preloaded data first. + + if (this.state.html === undefined) { + var preloadedBlocks = acf.get('preloadedBlocks'); + + if (preloadedBlocks && preloadedBlocks[attributes.id]) { + this.setHtml(preloadedBlocks[attributes.id]); + return; + } + } // Request AJAX and update HTML on complete. + + + fetchBlock({ + attributes: attributes, + query: { + preview: true + }, + delay: delay + }).done(function (json) { + _this8.setHtml(json.data.preview); + }); + } + }, { + key: "componentDidAppend", + value: function componentDidAppend() { + _get(_getPrototypeOf(BlockPreview.prototype), "componentDidAppend", this).call(this); // Extract props. + + + var attributes = this.props.attributes; + var $el = this.state.$el; // Generate action friendly type. + + var type = attributes.name.replace('acf/', ''); // Do action. + + acf.doAction('render_block_preview', $el, attributes); + acf.doAction("render_block_preview/type=".concat(type), $el, attributes); + } + }, { + key: "shouldComponentUpdate", + value: function shouldComponentUpdate(nextProps, nextState) { + var nextAttributes = nextProps.attributes; + var thisAttributes = this.props.attributes; // Update preview if block data has changed. + + if (!compareObjects(nextAttributes, thisAttributes)) { + var delay = 0; // Delay fetch when editing className or anchor to simulate conscistent logic to custom fields. + + if (nextAttributes.className !== thisAttributes.className) { + delay = 300; + } + + if (nextAttributes.anchor !== thisAttributes.anchor) { + delay = 300; + } + + this.fetch({ + attributes: nextAttributes, + delay: delay + }); + } + + return _get(_getPrototypeOf(BlockPreview.prototype), "shouldComponentUpdate", this).call(this, nextProps, nextState); + } + }, { + key: "componentDidRemount", + value: function componentDidRemount() { + _get(_getPrototypeOf(BlockPreview.prototype), "componentDidRemount", this).call(this); // Update preview if data has changed since last render (changing from "edit" to "preview"). + + + if (!compareObjects(this.state.prevAttributes, this.props.attributes)) { + //console.log('componentDidRemount', this.id); + this.fetch(); + } + } + }]); + + return BlockPreview; + }(DynamicHTML); + /** + * Initializes ACF Blocks logic and registration. + * + * @since 5.9.0 + */ + + + function initialize() { + // Add support for WordPress versions before 5.2. + if (!wp.blockEditor) { + wp.blockEditor = wp.editor; + } // Register block types. + + + var blockTypes = acf.get('blockTypes'); + + if (blockTypes) { + blockTypes.map(registerBlockType); + } + } // Run the initialize callback during the "prepare" action. + // This ensures that all localized data is available and that blocks are registered before the WP editor has been instantiated. + + + acf.addAction('prepare', initialize); + /** + * Returns a valid vertical alignment. + * + * @date 07/08/2020 + * @since 5.9.0 + * + * @param string align A vertical alignment. + * @return string + */ + + function validateVerticalAlignment(align) { + var ALIGNMENTS = ['top', 'center', 'bottom']; + var DEFAULT = 'top'; + return ALIGNMENTS.includes(align) ? align : DEFAULT; + } + /** + * Returns a valid horizontal alignment. + * + * @date 07/08/2020 + * @since 5.9.0 + * + * @param string align A horizontal alignment. + * @return string + */ + + + function validateHorizontalAlignment(align) { + var ALIGNMENTS = ['left', 'center', 'right']; + var DEFAULT = acf.get('rtl') ? 'right' : 'left'; + return ALIGNMENTS.includes(align) ? align : DEFAULT; + } + /** + * Returns a valid matrix alignment. + * + * Written for "upgrade-path" compatibility from vertical alignment to matrix alignment. + * + * @date 07/08/2020 + * @since 5.9.0 + * + * @param string align A matrix alignment. + * @return string + */ + + + function validateMatrixAlignment(align) { + var DEFAULT = 'center center'; + + if (align) { + var _align$split = align.split(' '), + _align$split2 = _slicedToArray(_align$split, 2), + y = _align$split2[0], + x = _align$split2[1]; + + return validateVerticalAlignment(y) + ' ' + validateHorizontalAlignment(x); + } + + return DEFAULT; + } // Dependencies. + + + var _wp$blockEditor2 = wp.blockEditor, + AlignmentToolbar = _wp$blockEditor2.AlignmentToolbar, + BlockVerticalAlignmentToolbar = _wp$blockEditor2.BlockVerticalAlignmentToolbar; + var BlockAlignmentMatrixToolbar = wp.blockEditor.__experimentalBlockAlignmentMatrixToolbar || wp.blockEditor.BlockAlignmentMatrixToolbar; // Gutenberg v10.x begins transition from Toolbar components to Control components. + + var BlockAlignmentMatrixControl = wp.blockEditor.__experimentalBlockAlignmentMatrixControl || wp.blockEditor.BlockAlignmentMatrixControl; + /** + * Appends extra attributes for block types that support align_content. + * + * @date 08/07/2020 + * @since 5.9.0 + * + * @param object attributes The block type attributes. + * @return object + */ + + function withAlignContentAttributes(attributes) { + attributes.align_content = { + type: 'string' + }; + return attributes; + } + /** + * A higher order component adding align_content editing functionality. + * + * @date 08/07/2020 + * @since 5.9.0 + * + * @param component OriginalBlockEdit The original BlockEdit component. + * @param object blockType The block type settings. + * @return component + */ + + + function withAlignContentComponent(OriginalBlockEdit, blockType) { + // Determine alignment vars + var type = blockType.supports.align_content; + var AlignmentComponent, validateAlignment; + + switch (type) { + case 'matrix': + AlignmentComponent = BlockAlignmentMatrixControl || BlockAlignmentMatrixToolbar; + validateAlignment = validateMatrixAlignment; + break; + + default: + AlignmentComponent = BlockVerticalAlignmentToolbar; + validateAlignment = validateVerticalAlignment; + break; + } // Ensure alignment component exists. + + + if (AlignmentComponent === undefined) { + console.warn("The \"".concat(type, "\" alignment component was not found.")); + return OriginalBlockEdit; + } // Ensure correct block attribute data is sent in intial preview AJAX request. + + + blockType.align_content = validateAlignment(blockType.align_content); // Return wrapped component. + + return /*#__PURE__*/function (_Component7) { + _inherits(WrappedBlockEdit, _Component7); + + var _super9 = _createSuper(WrappedBlockEdit); + + function WrappedBlockEdit() { + _classCallCheck(this, WrappedBlockEdit); + + return _super9.apply(this, arguments); + } + + _createClass(WrappedBlockEdit, [{ + key: "render", + value: function render() { + var _this$props6 = this.props, + attributes = _this$props6.attributes, + setAttributes = _this$props6.setAttributes; + var align_content = attributes.align_content; + + function onChangeAlignContent(align_content) { + setAttributes({ + align_content: validateAlignment(align_content) + }); + } + + return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BlockControls, { + group: "block" + }, /*#__PURE__*/React.createElement(AlignmentComponent, { + label: acf.__('Change content alignment'), + value: validateAlignment(align_content), + onChange: onChangeAlignContent + })), /*#__PURE__*/React.createElement(OriginalBlockEdit, this.props)); + } + }]); + + return WrappedBlockEdit; + }(Component); + } + /** + * Appends extra attributes for block types that support align_text. + * + * @date 08/07/2020 + * @since 5.9.0 + * + * @param object attributes The block type attributes. + * @return object + */ + + + function withAlignTextAttributes(attributes) { + attributes.align_text = { + type: 'string' + }; + return attributes; + } + /** + * A higher order component adding align_text editing functionality. + * + * @date 08/07/2020 + * @since 5.9.0 + * + * @param component OriginalBlockEdit The original BlockEdit component. + * @param object blockType The block type settings. + * @return component + */ + + + function withAlignTextComponent(OriginalBlockEdit, blockType) { + var validateAlignment = validateHorizontalAlignment; // Ensure correct block attribute data is sent in intial preview AJAX request. + + blockType.align_text = validateAlignment(blockType.align_text); // Return wrapped component. + + return /*#__PURE__*/function (_Component8) { + _inherits(WrappedBlockEdit, _Component8); + + var _super10 = _createSuper(WrappedBlockEdit); + + function WrappedBlockEdit() { + _classCallCheck(this, WrappedBlockEdit); + + return _super10.apply(this, arguments); + } + + _createClass(WrappedBlockEdit, [{ + key: "render", + value: function render() { + var _this$props7 = this.props, + attributes = _this$props7.attributes, + setAttributes = _this$props7.setAttributes; + var align_text = attributes.align_text; + + function onChangeAlignText(align_text) { + setAttributes({ + align_text: validateAlignment(align_text) + }); + } + + return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BlockControls, null, /*#__PURE__*/React.createElement(AlignmentToolbar, { + value: validateAlignment(align_text), + onChange: onChangeAlignText + })), /*#__PURE__*/React.createElement(OriginalBlockEdit, this.props)); + } + }]); + + return WrappedBlockEdit; + }(Component); + } +})(jQuery); \ No newline at end of file diff --git a/assets/build/js/pro/acf-pro-blocks.min.js b/assets/build/js/pro/acf-pro-blocks.min.js new file mode 100644 index 0000000..3320ef5 --- /dev/null +++ b/assets/build/js/pro/acf-pro-blocks.min.js @@ -0,0 +1 @@ +"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r".concat(e,"<\/script>"))}},{key:"componentDidUpdate",value:function(){this.setHTML(this.props.children)}},{key:"componentDidMount",value:function(){this.setHTML(this.props.children)}}]),t}(),A={},E=function(){_inherits(n,h);var r=_createSuper(n);function n(e){var t;return _classCallCheck(this,n),(t=r.call(this,e)).setRef=t.setRef.bind(_assertThisInitialized(t)),t.id="",t.el=!1,t.subscribed=!0,t.renderMethod="jQuery",t.setup(e),t.loadState(),t}return _createClass(n,[{key:"setup",value:function(e){}},{key:"fetch",value:function(){}},{key:"loadState",value:function(){this.state=A[this.id]||{}}},{key:"setState",value:function(e){A[this.id]=_objectSpread(_objectSpread({},this.state),e),this.subscribed&&_get(_getPrototypeOf(n.prototype),"setState",this).call(this,e)}},{key:"setHtml",value:function(e){var t;(e=e?e.trim():"")!==this.state.html&&(t={html:e},"jsx"===this.renderMethod?(t.jsx=acf.parseJSX(e),t.$el=o(this.el)):t.$el=o(e),this.setState(t))}},{key:"setRef",value:function(e){this.el=e}},{key:"render",value:function(){return this.state.jsx?React.createElement("div",{ref:this.setRef},this.state.jsx):React.createElement("div",{ref:this.setRef},React.createElement(i,null,React.createElement(p,null)))}},{key:"shouldComponentUpdate",value:function(e,t){return e.index!==this.props.index&&this.componentWillMove(),t.html!==this.state.html}},{key:"display",value:function(e){var t,r,n;switch("jQuery"===this.renderMethod&&(r=(t=this.state.$el).parent(),(n=o(this.el)).html(t),r.length&&r[0]!==n[0]&&r.html(t.clone())),e){case"append":this.componentDidAppend();break;case"remount":this.componentDidRemount()}}},{key:"componentDidMount",value:function(){this.state.html===s?this.fetch():this.display("remount")}},{key:"componentDidUpdate",value:function(e,t){this.display("append")}},{key:"componentDidAppend",value:function(){acf.doAction("append",this.state.$el)}},{key:"componentWillUnmount",value:function(){acf.doAction("unmount",this.state.$el),this.subscribed=!1}},{key:"componentDidRemount",value:function(){var e=this;this.subscribed=!0,setTimeout(function(){acf.doAction("remount",e.state.$el)})}},{key:"componentWillMove",value:function(){var e=this;acf.doAction("unmount",this.state.$el),setTimeout(function(){acf.doAction("remount",e.state.$el)})}}]),n}(),P=function(){_inherits(a,E);var e=_createSuper(a);function a(){return _classCallCheck(this,a),e.apply(this,arguments)}return _createClass(a,[{key:"setup",value:function(e){this.id="BlockForm-".concat(e.attributes.id)}},{key:"fetch",value:function(){var t=this;k({attributes:this.props.attributes,query:{form:!0}}).done(function(e){t.setHtml(e.data.form)})}},{key:"componentDidAppend",value:function(){_get(_getPrototypeOf(a.prototype),"componentDidAppend",this).call(this);var e=this.props,r=e.attributes,n=e.setAttributes,i=this.state.$el;function t(){var e=0 .acf-field-setting-fc_layout",handle:".reorder-layout",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,stop:this.proxy(function(e,t){this.fieldObject.save()})}),this.updateFieldLayouts()},updateFieldLayouts:function(){this.getChildren().map(this.updateFieldLayout,this)},updateFieldLayout:function(e){e.prop("parent_layout",this.get("id"))},onChangeLabel:function(e,t){var i=t.val(),t=this.$input("name");""==t.val()&&acf.val(t,acf.strSanitize(i))},onClickAdd:function(e,t){var i=this.get("id"),a=acf.uniqid("layout_");$layout=acf.duplicate({$el:this.$el,search:i,replace:a,after:function(e,t){var i=t.find(".acf-field-list:first");i.children(".acf-field-object").remove(),i.addClass("-empty"),t.find(".acf-fc-meta input").val("")}}),acf.getFieldSetting($layout).$input("key").val(a),this.fieldObject.save()},onClickDuplicate:function(e,t){var i=this.get("id"),a=acf.uniqid("layout_");$layout=acf.duplicate({$el:this.$el,search:i,replace:a});i=acf.getFieldObjects({parent:$layout});i.length&&(i.map(function(e){e.wipe(),e.updateParent()}),acf.doAction("duplicate_field_objects",i,this.fieldObject,this.fieldObject)),acf.getFieldSetting($layout).$input("key").val(a),this.fieldObject.save()},onClickDelete:function(e,t){if(e.shiftKey)return this.delete();this.$el.addClass("-hover");acf.newTooltip({confirmRemove:!0,target:t,context:this,confirm:function(){this.delete()},cancel:function(){this.$el.removeClass("-hover")}})},delete:function(){if(!this.$el.siblings(".acf-field-setting-fc_layout").length)return alert(acf.__("Flexible Content requires at least 1 layout")),!1;this.getFields().map(function(e){e.delete({animate:!1})}),acf.remove(this.$el),this.fieldObject.save()}});acf.registerFieldSetting(e);new acf.Model({actions:{sortstop_field_object:"updateParentLayout",change_field_object_parent:"updateParentLayout"},updateParentLayout:function(e){var t=e.getParent();t&&"flexible_content"===t.prop("type")?(t=e.$el.closest(".acf-field-setting-fc_layout"),t=acf.getFieldSetting(t),e.has("parent_layout")||e.prop("parent_layout",0),e.prop("parent_layout",t.get("id"))):e.prop("parent_layout",null)}})}(jQuery),function(e){var t=acf.FieldSetting.extend({type:"clone",name:"display",render:function(){var e=this.field.val();this.$fieldObject.attr("data-display",e)}});acf.registerFieldSetting(t);t=acf.FieldSetting.extend({type:"clone",name:"prefix_label",render:function(){var e="";this.field.val()&&(e=this.fieldObject.prop("label")+" "),this.$("code").html(e+"%field_label%")}});acf.registerFieldSetting(t);t=acf.FieldSetting.extend({type:"clone",name:"prefix_name",render:function(){var e="";this.field.val()&&(e=this.fieldObject.prop("name")+"_"),this.$("code").html(e+"%field_name%")}});acf.registerFieldSetting(t);new acf.Model({filters:{select2_args:"select2Args"},select2Args:function(e,t,i,a,l){return"acf/fields/clone/query"==i.ajaxAction&&(e.closeOnSelect=!1,l.data.ajaxData=this.ajaxData),e},ajaxData:function(t){return t.fields={},acf.getFieldObjects().map(function(e){t.fields[e.prop("key")]={key:e.prop("key"),type:e.prop("type"),label:e.prop("label"),ancestors:e.getParents().length}}),t.title=e("#title").val(),t}})}(jQuery); \ No newline at end of file diff --git a/pro/assets/js/acf-pro-input.js b/assets/build/js/pro/acf-pro-input.js similarity index 99% rename from pro/assets/js/acf-pro-input.js rename to assets/build/js/pro/acf-pro-input.js index 2434986..877d0a4 100644 --- a/pro/assets/js/acf-pro-input.js +++ b/assets/build/js/pro/acf-pro-input.js @@ -529,7 +529,6 @@ }); })(jQuery); - (function($){ var Field = acf.Field.extend({ @@ -1223,7 +1222,6 @@ }); })(jQuery); - (function($){ var Field = acf.Field.extend({ @@ -1849,8 +1847,4 @@ acf.registerConditionForFieldType('selectionLessThan', 'gallery'); acf.registerConditionForFieldType('selectionGreaterThan', 'gallery'); -})(jQuery); - -// @codekit-prepend "_acf-field-repeater.js"; -// @codekit-prepend "_acf-field-flexible-content.js"; -// @codekit-prepend "_acf-field-gallery.js"; \ No newline at end of file +})(jQuery); \ No newline at end of file diff --git a/assets/build/js/pro/acf-pro-input.min.js b/assets/build/js/pro/acf-pro-input.min.js new file mode 100644 index 0000000..43a892c --- /dev/null +++ b/assets/build/js/pro/acf-pro-input.min.js @@ -0,0 +1 @@ +!function(i){var t=acf.Field.extend({type:"repeater",wait:"",events:{'click a[data-event="add-row"]':"onClickAdd",'click a[data-event="duplicate-row"]':"onClickDuplicate",'click a[data-event="remove-row"]':"onClickRemove",'click a[data-event="collapse-row"]':"onClickCollapse",showField:"onShow",unloadField:"onUnload",mouseover:"onHover"},$control:function(){return this.$(".acf-repeater:first")},$table:function(){return this.$("table:first")},$tbody:function(){return this.$("tbody:first")},$rows:function(){return this.$("tbody:first > tr").not(".acf-clone")},$row:function(t){return this.$("tbody:first > tr:eq("+t+")")},$clone:function(){return this.$("tbody:first > tr.acf-clone")},$actions:function(){return this.$(".acf-actions:last")},$button:function(){return this.$(".acf-actions:last .button")},getValue:function(){return this.$rows().length},allowRemove:function(){var t=parseInt(this.get("min"));return!t||tthis.val()},addSortable:function(a){1!=this.get("max")&&this.$tbody().sortable({items:"> tr",handle:"> td.order",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,stop:function(t,e){a.render()},update:function(t,e){a.$input().trigger("change")}})},addCollapsed:function(){var e=a.load(this.get("key"));if(!e)return!1;this.$rows().each(function(t){-1 .order > span").html(t+1)});var t=this.$control(),e=this.$button();0==this.val()?t.addClass("-empty"):t.removeClass("-empty"),this.allowAdd()?(t.removeClass("-max"),e.removeClass("disabled")):(t.addClass("-max"),e.addClass("disabled"))},validateAdd:function(){if(this.allowAdd())return!0;var t=this.get("max"),e=(e=acf.__("Maximum rows reached ({max} rows)")).replace("{max}",t);return this.showNotice({text:e,type:"warning"}),!1},onClickAdd:function(t,e){if(!this.validateAdd())return!1;e.hasClass("acf-icon")?this.add({before:e.closest(".acf-row")}):this.add()},add:function(a){if(!this.allowAdd())return!1;a=acf.parseArgs(a,{before:!1});var t=acf.duplicate({target:this.$clone(),append:this.proxy(function(t,e){(a.before||t).before(e),e.removeClass("acf-clone"),acf.enable(e,this.cid),this.render()})});return this.$input().trigger("change"),t},onClickDuplicate:function(t,e){if(!this.validateAdd())return!1;e=e.closest(".acf-row");this.duplicateRow(e)},duplicateRow:function(t){if(!this.allowAdd())return!1;var n=this.get("key"),t=acf.duplicate({target:t,rename:function(t,e,a,i){return"id"===t?e.replace(n+"-"+a,n+"-"+i):e.replace(n+"]["+a,n+"]["+i)},before:function(t){acf.doAction("unmount",t)},after:function(t,e){acf.doAction("remount",t)}});return this.$input().trigger("change"),this.render(),acf.focusAttention(t),t},validateRemove:function(){if(this.allowRemove())return!0;var t=this.get("min"),e=(e=acf.__("Minimum rows reached ({min} rows)")).replace("{min}",t);return this.showNotice({text:e,type:"warning"}),!1},onClickRemove:function(t,e){var a=e.closest(".acf-row");if(t.shiftKey)return this.remove(a);a.addClass("-hover");acf.newTooltip({confirmRemove:!0,target:e,context:this,confirm:function(){this.remove(a)},cancel:function(){a.removeClass("-hover")}})},remove:function(t){var e=this;acf.remove({target:t,endHeight:0,complete:function(){e.$input().trigger("change"),e.render()}})},isCollapsed:function(t){return t.hasClass("-collapsed")},collapse:function(t){t.addClass("-collapsed"),acf.doAction("hide",t,"collapse")},expand:function(t){t.removeClass("-collapsed"),acf.doAction("show",t,"collapse")},onClickCollapse:function(t,e){var a=e.closest(".acf-row"),e=this.isCollapsed(a);t.shiftKey&&(a=this.$rows()),e?this.expand(a):this.collapse(a)},onShow:function(t,e,a){var i=acf.getFields({is:":visible",parent:this.$el});acf.doAction("show_fields",i)},onUnload:function(){var e=[];this.$rows().each(function(t){i(this).hasClass("-collapsed")&&e.push(t)}),e=e.length?e:null,a.save(this.get("key"),e)},onHover:function(){this.addSortable(this),this.off("mouseover")}});acf.registerFieldType(t),acf.registerConditionForFieldType("hasValue","repeater"),acf.registerConditionForFieldType("hasNoValue","repeater"),acf.registerConditionForFieldType("lessThan","repeater"),acf.registerConditionForFieldType("greaterThan","repeater");var a=new acf.Model({name:"this.collapsedRows",key:function(t,e){var a=this.get(t+e)||0;return this.set(t+e,++a,!0),1 .values")},$layouts:function(){return this.$(".acf-flexible-content:first > .values > .layout")},$layout:function(t){return this.$(".acf-flexible-content:first > .values > .layout:eq("+t+")")},$clonesWrap:function(){return this.$(".acf-flexible-content:first > .clones")},$clones:function(){return this.$(".acf-flexible-content:first > .clones > .layout")},$clone:function(t){return this.$('.acf-flexible-content:first > .clones > .layout[data-layout="'+t+'"]')},$actions:function(){return this.$(".acf-actions:last")},$button:function(){return this.$(".acf-actions:last .button")},$popup:function(){return this.$(".tmpl-popup:last")},getPopupHTML:function(){var t=this.$popup().html(),e=r(t),l=this.$layouts();return e.find("[data-layout]").each(function(){var t,e,a=r(this),i=a.data("min")||0,n=a.data("max")||0,o=a.data("layout")||"",s=(t=o,l.filter(function(){return r(this).data("layout")===t}).length);n&&n<=s?a.addClass("disabled"):i&&s'+e+""))}),e.outerHTML()},getValue:function(){return this.$layouts().length},allowRemove:function(){var t=parseInt(this.get("min"));return!t||tthis.val()},isFull:function(){var t=parseInt(this.get("max"));return t&&this.val()>=t},addSortable:function(a){1!=this.get("max")&&this.$layoutsWrap().sortable({items:"> .layout",handle:"> .acf-fc-layout-handle",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,stop:function(t,e){a.render()},update:function(t,e){a.$input().trigger("change")}})},addCollapsed:function(){var e=a.load(this.get("key"));if(!e)return!1;this.$layouts().each(function(t){-1','','
        ','
        ','',"
        ",'
        ',"
        ",'
        ','',"
        ",""].join(""),a=o(a),this.$collection().append(a),"prepend"!==this.get("insert")||(e=this.$attachments().eq(e)).length&&e.before(a),this.renderAttachment(t),this.render(),this.$input().trigger("change"))},validateAttachment:function(t){var e;return(t=acf.parseArgs(t,{id:"",url:"",alt:"",title:"",filename:"",type:"image"})).attributes&&(t=t.attributes,null!==(e=acf.isget(t,"sizes",this.get("preview_size"),"url"))&&(t.url=e)),t},renderAttachment:function(t){t=this.validateAttachment(t);var e,a=this.$attachment(t.id);"image"==t.type?a.find(".filename").remove():(null!==(e=acf.isget(t,"image","src"))&&(t.url=e),a.find(".filename").text(t.filename)),t.url||(t.url=acf.get("mimeTypeIcon"),a.addClass("-icon")),a.find("img").attr({src:t.url,alt:t.alt,title:t.title}),acf.val(a.find("input"),t.id)},editAttachment:function(t){acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:t,field:this.get("key"),select:o.proxy(function(t,e){this.renderAttachment(t)},this)})},onClickEdit:function(t,e){e=e.data("id");e&&this.editAttachment(e)},removeAttachment:function(t){this.closeSidebar(),this.$attachment(t).remove(),this.render(),this.$input().trigger("change")},onClickRemove:function(t,e){t.preventDefault(),t.stopPropagation();e=e.data("id");e&&this.removeAttachment(e)},selectAttachment:function(e){var t,a,i,n=this.$attachment(e);n.hasClass("active")||(t=this.proxy(function(){this.$side().find(":focus").trigger("blur"),this.$active().removeClass("active"),n.addClass("active"),this.openSidebar(),a()}),a=this.proxy(function(){var t={action:"acf/fields/gallery/get_attachment",field_key:this.get("key"),id:e};this.has("xhr")&&this.get("xhr").abort(),acf.showLoading(this.$sideData());t=o.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"html",cache:!1,success:i});this.set("xhr",t)}),i=this.proxy(function(t){var e;t&&((e=this.$sideData()).html(t),e.find(".compat-field-acf-form-data").remove(),e.find("> table.form-table > tbody").append(e.find("> .compat-attachment-fields > tbody > tr")),acf.doAction("append",e))}),t())},onClickSelect:function(t,e){e=e.data("id");e&&this.selectAttachment(e)},onClickClose:function(t,e){this.closeSidebar()},onChangeSort:function(t,e){var a,i,n;e.hasClass("disabled")||(a=e.val())&&(i=[],this.$attachments().each(function(){i.push(o(this).data("id"))}),e=this.proxy(function(){var t={action:"acf/fields/gallery/get_sort_order",field_key:this.get("key"),ids:i,sort:a};o.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",cache:!1,data:acf.prepareForAjax(t),success:n})}),n=this.proxy(function(t){acf.isAjaxSuccess(t)&&(t.data.reverse(),t.data.map(function(t){this.$collection().prepend(this.$attachment(t))},this))}),e())},onUpdate:function(t,e){var a,i=this.$(".acf-gallery-update");i.hasClass("disabled")||(a=acf.serialize(this.$sideData()),i.addClass("disabled"),i.before(' '),a.action="acf/fields/gallery/update_attachment",o.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",complete:function(){i.removeClass("disabled"),i.prev(".acf-loading").remove()}}))},onHover:function(){this.addSortable(this),this.off("mouseover")}});acf.registerFieldType(t),acf.registerConditionForFieldType("hasValue","gallery"),acf.registerConditionForFieldType("hasNoValue","gallery"),acf.registerConditionForFieldType("selectionLessThan","gallery"),acf.registerConditionForFieldType("selectionGreaterThan","gallery")}(jQuery); \ No newline at end of file diff --git a/assets/css/acf-dark.css b/assets/css/acf-dark.css deleted file mode 100644 index a150c03..0000000 --- a/assets/css/acf-dark.css +++ /dev/null @@ -1 +0,0 @@ -.acf-box{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-box .title,.acf-box .footer{border-color:#23282d}.acf-box h2{color:#bbc8d4}.acf-box table,.acf-box tbody,.acf-box tr{background:transparent !important}.acf-thead{color:#bbc8d4;border-color:#191f25}.acf-tfoot{background-color:#2d3136;border-color:#23282d}.acf-table.-clear,.acf-table.-clear tr{background:transparent !important}.acf-loading-overlay{background:rgba(0,0,0,0.5)}.acf-fields>.acf-field{border-color:#23282d}.acf-fields.-left>.acf-field:before{background:rgba(0,0,0,0.1);border-color:#23282d}.acf-fields.-border{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-field[data-width]+.acf-field[data-width]{border-color:#23282d}.acf-input-prepend,.acf-input-append{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-fields>.acf-tab-wrap{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-fields>.acf-tab-wrap .acf-tab-group{background-color:#2d3136;border-color:#23282d}.acf-fields>.acf-tab-wrap .acf-tab-group li a{background-color:#2d3136;border-color:#23282d}.acf-fields>.acf-tab-wrap .acf-tab-group li a:hover{background-color:#2d3136;border-color:#23282d;color:#bbc8d4}.acf-fields>.acf-tab-wrap .acf-tab-group li.active a{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-fields.-sidebar:before{background-color:#2d3136;border-color:#23282d}.acf-fields.-sidebar.-left:before{background-color:#2d3136;border-color:#23282d;background:#23282d}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group li a{background-color:#2d3136;border-color:#23282d}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group li.active a{background-color:#2d3136;border-color:#23282d}.acf-file-uploader .show-if-value{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-file-uploader .show-if-value .file-icon{background-color:#2d3136;border-color:#23282d}.acf-oembed{background-color:#2d3136;border-color:#23282d}.acf-oembed .title{background-color:#50626f;border-color:#191f25;color:#fff}.acf-gallery{background-color:#2d3136;border-color:#23282d}.acf-gallery .acf-gallery-main{background:#23282d}.acf-gallery .acf-gallery-attachment .margin{background-color:#2d3136;border-color:#23282d}.acf-gallery .acf-gallery-side{background-color:#2d3136;border-color:#23282d}.acf-gallery .acf-gallery-side .acf-gallery-side-info{background-color:#2d3136;border-color:#23282d}.acf-gallery .acf-gallery-toolbar{background-color:#2d3136;border-color:#23282d}.acf-button-group label:not(.selected){background-color:#2d3136;border-color:#23282d}.acf-switch:not(.-on){background-color:#2d3136;border-color:#23282d}.acf-switch:not(.-on) .acf-switch-slider{background-color:#50626f;border-color:#191f25;color:#fff}.acf-link .link-wrap{background-color:#2d3136;border-color:#23282d}.acf-relationship .filters{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-relationship .selection{background-color:#2d3136;border-color:#23282d}.acf-relationship .selection .choices,.acf-relationship .selection .choices-list,.acf-relationship .selection .values{background-color:#2d3136;border-color:#23282d}.acf-taxonomy-field .categorychecklist-holder{background-color:#2d3136;border-color:#23282d}.acf-google-map{background-color:#2d3136;border-color:#23282d}.acf-google-map .title{background-color:#50626f;border-color:#191f25;color:#fff}.acf-accordion{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-field.acf-accordion .acf-accordion-content>.acf-fields{border-color:#191f25}.acf-flexible-content .layout{background-color:#32373c;border-color:#191f25;color:#bbc8d4}.acf-flexible-content .layout .acf-fc-layout-handle{background-color:#2d3136;border-color:#23282d}.acf-flexible-content .layout .acf-fc-layout-handle .acf-fc-layout-order{background-color:#32373c;border-color:#191f25;color:#bbc8d4}#wpbody .acf-table{background-color:#2d3136;border-color:#23282d}#wpbody .acf-table>tbody>tr,#wpbody .acf-table>thead>tr{background:transparent}#wpbody .acf-table>tbody>tr>td,#wpbody .acf-table>tbody>tr>th,#wpbody .acf-table>thead>tr>td,#wpbody .acf-table>thead>tr>th{border-color:#191f25}.acf-field select optgroup,.acf-field select optgroup:nth-child(2n){background:#50626f}#acf-field-group-fields .acf-field-list-wrap{background-color:#32373c;border-color:#191f25;color:#bbc8d4}#acf-field-group-fields .acf-field-list .no-fields-message{background-color:#32373c;border-color:#191f25;color:#bbc8d4}#acf-field-group-fields .acf-field-object{background-color:#32373c;border-color:#191f25;color:#bbc8d4;border-color:#23282d}#acf-field-group-fields .acf-field-object table,#acf-field-group-fields .acf-field-object tbody,#acf-field-group-fields .acf-field-object tr,#acf-field-group-fields .acf-field-object td,#acf-field-group-fields .acf-field-object th{background:transparent;border-color:#23282d}#acf-field-group-fields .acf-field-object .acf-field .acf-label{background-color:#2d3136;border-color:#23282d}#acf-field-group-fields .acf-field-object.ui-sortable-helper{border-color:#191f25;box-shadow:none}#acf-field-group-fields .acf-field-object.ui-sortable-placeholder{background-color:#2d3136;border-color:#23282d;box-shadow:none}#acf-field-group-fields .acf-field-object+.acf-field-object-tab::before,#acf-field-group-fields .acf-field-object+.acf-field-object-accordion::before{background-color:#2d3136;border-color:#23282d}.acf-meta-box-wrap .acf-fields{background-color:#50626f;border-color:#191f25;color:#fff;background:transparent} diff --git a/assets/css/acf-field-group.css b/assets/css/acf-field-group.css deleted file mode 100644 index 903b2ee..0000000 --- a/assets/css/acf-field-group.css +++ /dev/null @@ -1 +0,0 @@ -#acf-field-group-fields>.inside,#acf-field-group-locations>.inside,#acf-field-group-options>.inside{padding:0;margin:0}.postbox .handle-order-higher,.postbox .handle-order-lower{display:none}#minor-publishing-actions,#misc-publishing-actions #visibility,#misc-publishing-actions .edit-timestamp{display:none}#minor-publishing{border-bottom:0 none}#misc-pub-section{border-bottom:0 none}#misc-publishing-actions .misc-pub-section{border-bottom-color:#F5F5F5}#acf-field-group-fields{border:0 none;box-shadow:none}#acf-field-group-fields>.postbox-header,#acf-field-group-fields>.handlediv,#acf-field-group-fields>.hndle{display:none}#acf-field-group-fields a{text-decoration:none}#acf-field-group-fields a:active,#acf-field-group-fields a:focus{outline:none;box-shadow:none}#acf-field-group-fields .li-field-order{width:20%}#acf-field-group-fields .li-field-label{width:30%}#acf-field-group-fields .li-field-name{width:25%}#acf-field-group-fields .li-field-type{width:25%}#acf-field-group-fields .li-field-key{display:none}#acf-field-group-fields.show-field-keys .li-field-label,#acf-field-group-fields.show-field-keys .li-field-name,#acf-field-group-fields.show-field-keys .li-field-type,#acf-field-group-fields.show-field-keys .li-field-key{width:20%}#acf-field-group-fields.show-field-keys .li-field-key{display:block}#acf-field-group-fields .acf-field-list-wrap{border:#ccd0d4 solid 1px}#acf-field-group-fields .acf-field-list{background:#f5f5f5;margin-top:-1px}#acf-field-group-fields .acf-field-list .no-fields-message{padding:15px 15px;background:#fff;display:none}#acf-field-group-fields .acf-field-list.-empty .no-fields-message{display:block}.acf-admin-3-8 #acf-field-group-fields .acf-field-list-wrap{border-color:#dfdfdf}.acf-field-object{border-top:#eee solid 1px;background:#fff}.acf-field-object.ui-sortable-helper{border-top-color:#fff;box-shadow:0 0 0 1px #DFDFDF,0 1px 4px rgba(0,0,0,0.1)}.acf-field-object.ui-sortable-placeholder{box-shadow:0 -1px 0 0 #DFDFDF;visibility:visible !important;background:#F9F9F9;border-top-color:transparent;min-height:54px}.acf-field-object.ui-sortable-placeholder:after,.acf-field-object.ui-sortable-placeholder:before{visibility:hidden}.acf-field-object>.meta{display:none}.acf-field-object>.handle a{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.acf-field-object>.handle li{padding-top:10px;padding-bottom:10px;word-wrap:break-word}.acf-field-object>.handle .acf-icon{margin:1px 0 0;cursor:move;background:transparent;float:left;height:28px;line-height:26px;width:28px;font-size:13px;color:#444;position:relative;z-index:1}.acf-field-object>.handle strong{display:block;padding-bottom:6px;font-size:14px;line-height:14px;min-height:14px}.acf-field-object>.handle .row-options{visibility:hidden}.acf-field-object>.handle .row-options a{margin-right:4px}.acf-field-object>.handle .row-options a.delete-field{color:#a00}.acf-field-object>.handle .row-options a.delete-field:hover{color:#f00}.acf-field-object.open+.acf-field-object{border-top-color:#E1E1E1}.acf-field-object.open>.handle{background:#2a9bd9;border:#2696d3 solid 1px;text-shadow:#268FBB 0 1px 0;color:#fff;position:relative;margin:-1px -1px 0 -1px}.acf-field-object.open>.handle a{color:#fff !important}.acf-field-object.open>.handle a:hover{text-decoration:underline !important}.acf-field-object.open>.handle .acf-icon{border-color:#fff;color:#fff}.acf-field-object.open>.handle .acf-required{color:#fff}.acf-field-object:hover>.handle .row-options,.acf-field-object.-hover>.handle .row-options{visibility:visible}.acf-field-object>.settings{display:none;width:100%}.acf-field-object>.settings>.acf-table{border:none}.acf-field-object .rule-groups{margin-top:20px}.rule-groups h4{margin:3px 0}.rule-groups .rule-group{margin:0 0 5px}.rule-groups .rule-group h4{margin:0 0 3px}.rule-groups .rule-group td.param{width:35%}.rule-groups .rule-group td.operator{width:20%}.rule-groups .rule-group td.add{width:40px}.rule-groups .rule-group td.remove{width:28px;vertical-align:middle}.rule-groups .rule-group td.remove a{visibility:hidden}.rule-groups .rule-group tr:hover td.remove a{visibility:visible}.rule-groups .rule-group:first-child tr:first-child td.remove a{visibility:hidden !important}.rule-groups .rule-group select:empty{background:#f8f8f8}#acf-field-group-options tr[data-name="hide_on_screen"] li{float:left;width:33%}@media (max-width: 1100px){#acf-field-group-options tr[data-name="hide_on_screen"] li{width:50%}}table.conditional-logic-rules{background:transparent;border:0 none;border-radius:0}table.conditional-logic-rules tbody td{background:transparent;border:0 none !important;padding:5px 2px !important}.acf-field-object-tab .acf-field-setting-name,.acf-field-object-accordion .acf-field-setting-name,.acf-field-object-tab .acf-field-setting-instructions,.acf-field-object-accordion .acf-field-setting-instructions,.acf-field-object-tab .acf-field-setting-required,.acf-field-object-accordion .acf-field-setting-required,.acf-field-object-tab .acf-field-setting-warning,.acf-field-object-accordion .acf-field-setting-warning,.acf-field-object-tab .acf-field-setting-wrapper,.acf-field-object-accordion .acf-field-setting-wrapper{display:none}.acf-field-object-tab .li-field-name,.acf-field-object-accordion .li-field-name{visibility:hidden}.acf-field-object+.acf-field-object-tab:before,.acf-field-object+.acf-field-object-accordion:before{display:block;content:"";height:5px;width:100%;background:#f5f5f5;border-top:#e1e1e1 solid 1px;border-bottom:#e1e1e1 solid 1px;margin-top:-1px}.acf-admin-3-8 .acf-field-object+.acf-field-object-tab:before,.acf-admin-3-8 .acf-field-object+.acf-field-object-accordion:before{border-color:#E5E5E5}.acf-field-object-tab p:first-child,.acf-field-object-accordion p:first-child{margin:0.5em 0}.acf-field-object-accordion .acf-field-setting-instructions{display:table-row}.acf-field-object-message tr[data-name="name"],.acf-field-object-message tr[data-name="instructions"],.acf-field-object-message tr[data-name="required"]{display:none !important}.acf-field-object-message .li-field-name{visibility:hidden}.acf-field-object-message textarea{height:175px !important}.acf-field-object-separator tr[data-name="name"],.acf-field-object-separator tr[data-name="instructions"],.acf-field-object-separator tr[data-name="required"]{display:none !important}.acf-field-object-date-picker .acf-radio-list li,.acf-field-object-time-picker .acf-radio-list li,.acf-field-object-date-time-picker .acf-radio-list li{line-height:25px}.acf-field-object-date-picker .acf-radio-list span,.acf-field-object-time-picker .acf-radio-list span,.acf-field-object-date-time-picker .acf-radio-list span{display:inline-block;min-width:10em}.acf-field-object-date-picker .acf-radio-list input[type="text"],.acf-field-object-time-picker .acf-radio-list input[type="text"],.acf-field-object-date-time-picker .acf-radio-list input[type="text"]{width:100px}.acf-field-object-date-time-picker .acf-radio-list span{min-width:15em}.acf-field-object-date-time-picker .acf-radio-list input[type="text"]{width:200px}#slugdiv .inside{padding:12px;margin:0}#slugdiv input[type="text"]{width:100%;height:28px;font-size:14px}html[dir="rtl"] .acf-field-object.open>.handle{margin:-1px -1px 0}html[dir="rtl"] .acf-field-object.open>.handle .acf-icon{float:right}html[dir="rtl"] .acf-field-object.open>.handle .li-field-order{padding-left:0 !important;padding-right:15px !important}@media only screen and (max-width: 850px){tr.acf-field,td.acf-label,td.acf-input{display:block !important;width:auto !important;border:0 none !important}tr.acf-field{border-top:#ededed solid 1px !important;margin-bottom:0 !important}td.acf-label{background:transparent !important;padding-bottom:0 !important}} diff --git a/assets/css/acf-global.css b/assets/css/acf-global.css deleted file mode 100644 index 4d14631..0000000 --- a/assets/css/acf-global.css +++ /dev/null @@ -1 +0,0 @@ -.acf-hl{padding:0;margin:0;list-style:none;display:block;position:relative}.acf-hl>li{float:left;display:block;margin:0;padding:0}.acf-hl>li.acf-fr{float:right}.acf-hl:before,.acf-hl:after,.acf-bl:before,.acf-bl:after,.acf-cf:before,.acf-cf:after{content:"";display:block;line-height:0}.acf-hl:after,.acf-bl:after,.acf-cf:after{clear:both}.acf-bl{padding:0;margin:0;list-style:none;display:block;position:relative}.acf-bl>li{display:block;margin:0;padding:0;float:none}.acf-hidden{display:none !important}.acf-empty{display:table-cell !important}.acf-empty *{display:none !important}.acf-fl{float:left}.acf-fr{float:right}.acf-fn{float:none}.acf-al{text-align:left}.acf-ar{text-align:right}.acf-ac{text-align:center}.acf-loading,.acf-spinner{display:inline-block;height:20px;width:20px;vertical-align:text-top;background:transparent url(../images/spinner.gif) no-repeat 50% 50%}.acf-spinner{display:none}.acf-spinner.is-active{display:inline-block}.spinner.is-active{display:inline-block}.acf-required{color:#f00}.acf-soh .acf-soh-target{-webkit-transition:opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s;-moz-transition:opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s;-o-transition:opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s;transition:opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s;visibility:hidden;opacity:0}.acf-soh:hover .acf-soh-target{-webkit-transition-delay:0s;-moz-transition-delay:0s;-o-transition-delay:0s;transition-delay:0s;visibility:visible;opacity:1}.show-if-value{display:none}.hide-if-value{display:block}.has-value .show-if-value{display:block}.has-value .hide-if-value{display:none}.select2-search-choice-close{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.acf-tooltip{background:#2F353E;border-radius:5px;color:#fff;padding:5px 10px;position:absolute;font-size:12px;line-height:1.4em;z-index:900000}.acf-tooltip:before{border:solid;border-color:transparent;border-width:6px;content:"";position:absolute}.acf-tooltip.top{margin-top:-8px}.acf-tooltip.top:before{top:100%;left:50%;margin-left:-6px;border-top-color:#2F353E;border-bottom-width:0}.acf-tooltip.right{margin-left:8px}.acf-tooltip.right:before{top:50%;margin-top:-6px;right:100%;border-right-color:#2F353E;border-left-width:0}.acf-tooltip.bottom{margin-top:8px}.acf-tooltip.bottom:before{bottom:100%;left:50%;margin-left:-6px;border-bottom-color:#2F353E;border-top-width:0}.acf-tooltip.left{margin-left:-8px}.acf-tooltip.left:before{top:50%;margin-top:-6px;left:100%;border-left-color:#2F353E;border-right-width:0}.acf-tooltip .acf-overlay{z-index:-1}.acf-tooltip.-confirm{z-index:900001}.acf-tooltip.-confirm a{text-decoration:none;color:#9ea3a8}.acf-tooltip.-confirm a:hover{text-decoration:underline}.acf-tooltip.-confirm a[data-event="confirm"]{color:#F55E4F}.acf-overlay{position:fixed;top:0;bottom:0;left:0;right:0;cursor:default}.acf-tooltip-target{position:relative;z-index:900002}.acf-loading-overlay{position:absolute;top:0;bottom:0;left:0;right:0;cursor:default;z-index:99;background:rgba(249,249,249,0.5)}.acf-loading-overlay i{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.acf-icon{display:inline-block;height:28px;width:28px;border:transparent solid 1px;border-radius:100%;font-size:20px;line-height:21px;text-align:center;text-decoration:none;vertical-align:top;box-sizing:border-box}.acf-icon:before{font-family:dashicons;display:inline-block;line-height:1;font-weight:400;font-style:normal;speak:none;text-decoration:inherit;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:1em;height:1em;vertical-align:middle;text-align:center}.acf-icon.-plus:before{content:"\f543"}.acf-icon.-minus:before{content:"\f460"}.acf-icon.-cancel:before{content:"\f335"}.acf-icon.-pencil:before{content:"\f464"}.acf-icon.-location:before{content:"\f230"}.acf-icon.-up:before{content:"\f343";margin-top:-.1em}.acf-icon.-down:before{content:"\f347";margin-top:.1em}.acf-icon.-left:before{content:"\f341";margin-left:-.1em}.acf-icon.-right:before{content:"\f345";margin-left:.1em}.acf-icon.-sync:before{content:"\f463"}.acf-icon.-globe:before{content:"\f319";margin-top:.1em;margin-left:.1em}.acf-icon.-picture:before{content:"\f128"}.acf-icon.-check:before{content:"\f147";margin-left:-.1em}.acf-icon.-dot-3:before{content:"\f533";margin-top:-.1em}.acf-icon.-arrow-combo:before{content:"\f156"}.acf-icon.-arrow-up:before{content:"\f142";margin-left:-.1em}.acf-icon.-arrow-down:before{content:"\f140";margin-left:-.1em}.acf-icon.-search:before{content:"\f179"}.acf-icon.-link-ext:before{content:"\f504"}.acf-icon.-duplicate{position:relative}.acf-icon.-duplicate:before,.acf-icon.-duplicate:after{content:"";display:block;box-sizing:border-box;width:46%;height:46%;position:absolute;top:33%;left:23%}.acf-icon.-duplicate:before{margin:-1px 0 0 1px;box-shadow:2px -2px 0px 0px currentColor}.acf-icon.-duplicate:after{border:solid 2px currentColor}.acf-icon.-collapse:before{content:"\f142";margin-left:-.1em}.-collapsed .acf-icon.-collapse:before{content:"\f140";margin-left:-.1em}span.acf-icon{color:#555d66;border-color:#b5bcc2;background-color:#fff}a.acf-icon{color:#555d66;border-color:#b5bcc2;background-color:#fff;position:relative;transition:none;cursor:pointer}a.acf-icon:hover{background:#f3f5f6;border-color:#0071a1;color:#0071a1}a.acf-icon.-minus:hover,a.acf-icon.-cancel:hover{background:#f7efef;border-color:#a10000;color:#dc3232}a.acf-icon:active,a.acf-icon:focus{outline:none;box-shadow:none}.acf-icon.-clear{border-color:transparent;background:transparent;color:#444}.acf-icon.light{border-color:transparent;background:#F5F5F5;color:#23282d}.acf-icon.dark{border-color:transparent !important;background:#23282D;color:#eee}a.acf-icon.dark:hover{background:#191E23;color:#00b9eb}a.acf-icon.dark.-minus:hover,a.acf-icon.dark.-cancel:hover{color:#D54E21}.acf-icon.grey{border-color:transparent !important;background:#b4b9be;color:#fff !important}.acf-icon.grey:hover{background:#00A0D2;color:#fff}.acf-icon.grey.-minus:hover,.acf-icon.grey.-cancel:hover{background:#32373C}.acf-icon.small,.acf-icon.-small{width:20px;height:20px;line-height:14px;font-size:14px}.acf-icon.small.-duplicate:before,.acf-icon.small.-duplicate:after,.acf-icon.-small.-duplicate:before,.acf-icon.-small.-duplicate:after{opacity:0.8}.acf-box{background:#FFFFFF;border:1px solid #ccd0d4;position:relative;box-shadow:0 1px 1px rgba(0,0,0,0.04)}.acf-box .title{border-bottom:1px solid #ccd0d4;margin:0;padding:15px}.acf-box .title h3{font-size:14px;line-height:1em;margin:0;padding:0}.acf-box .inner{padding:15px}.acf-box h2{color:#333333;font-size:26px;line-height:1.25em;margin:0.25em 0 0.75em;padding:0}.acf-box h3{margin:1.5em 0 0}.acf-box p{margin-top:0.5em}.acf-box a{text-decoration:none}.acf-box i.dashicons-external{margin-top:-1px}.acf-box .footer{border-top:1px solid #ccd0d4;padding:12px;font-size:13px;line-height:1.5}.acf-box .footer p{margin:0}.acf-admin-3-8 .acf-box{border-color:#E5E5E5}.acf-admin-3-8 .acf-box .title,.acf-admin-3-8 .acf-box .footer{border-color:#E5E5E5}.acf-notice{position:relative;display:block;color:#fff;margin:5px 0 15px;padding:3px 12px;background:#2a9bd9;border-left:#1f7db1 solid 3px}.acf-notice p{font-size:13px;line-height:1.5;margin:0.5em 0;text-shadow:none;color:inherit}.acf-notice .acf-notice-dismiss{position:absolute;top:9px;right:12px;background:transparent !important;color:inherit !important;border-color:#fff !important;opacity:0.75}.acf-notice .acf-notice-dismiss:hover{opacity:1}.acf-notice.-dismiss{padding-right:40px}.acf-notice.-error{background:#d94f4f;border-color:#c92c2c}.acf-notice.-success{background:#49ad52;border-color:#3a8941}.acf-notice.-warning{background:#fd8d3b;border-color:#fc7009}.acf-table{border:#ccd0d4 solid 1px;background:#fff;border-spacing:0;border-radius:0;table-layout:auto;padding:0;margin:0;width:100%;clear:both;box-sizing:content-box}.acf-table>tbody>tr>th,.acf-table>tbody>tr>td,.acf-table>thead>tr>th,.acf-table>thead>tr>td{padding:8px;vertical-align:top;background:#fff;text-align:left;border-style:solid;font-weight:normal}.acf-table>tbody>tr>th,.acf-table>thead>tr>th{position:relative;color:#333333}.acf-table>thead>tr>th{border-color:#d5d9dd;border-width:0 0 1px 1px}.acf-table>thead>tr>th:first-child{border-left-width:0}.acf-table>tbody>tr{z-index:1}.acf-table>tbody>tr>td{border-color:#eee;border-width:1px 0 0 1px}.acf-table>tbody>tr>td:first-child{border-left-width:0}.acf-table>tbody>tr:first-child>td{border-top-width:0}.acf-table.-clear{border:0 none}.acf-table.-clear>tbody>tr>td,.acf-table.-clear>tbody>tr>th,.acf-table.-clear>thead>tr>td,.acf-table.-clear>thead>tr>th{border:0 none;padding:4px}.acf-remove-element{-webkit-transition:all 0.25s ease-out;-moz-transition:all 0.25s ease-out;-o-transition:all 0.25s ease-out;transition:all 0.25s ease-out;transform:translate(50px, 0);opacity:0}.acf-fade-up{-webkit-transition:all 0.25s ease-out;-moz-transition:all 0.25s ease-out;-o-transition:all 0.25s ease-out;transition:all 0.25s ease-out;transform:translate(0, -10px);opacity:0}.acf-thead,.acf-tbody,.acf-tfoot{width:100%;padding:0;margin:0}.acf-thead>li,.acf-tbody>li,.acf-tfoot>li{box-sizing:border-box;padding:8px 12px;font-size:12px;line-height:14px}.acf-thead{border-bottom:#ccd0d4 solid 1px;color:#23282d}.acf-thead>li{font-size:14px;line-height:1.4;font-weight:bold}.acf-admin-3-8 .acf-thead{border-color:#dfdfdf}.acf-tfoot{background:#f5f5f5;border-top:#d5d9dd solid 1px}.acf-settings-wrap #poststuff{padding-top:15px}.acf-settings-wrap .acf-box{margin:20px 0}.acf-settings-wrap table{margin:0}.acf-settings-wrap table .button{vertical-align:middle}#acf-popup{position:fixed;z-index:900000;top:0;left:0;right:0;bottom:0;text-align:center}#acf-popup .bg{position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;background:rgba(0,0,0,0.25)}#acf-popup:before{content:'';display:inline-block;height:100%;vertical-align:middle}#acf-popup .acf-popup-box{display:inline-block;vertical-align:middle;z-index:1;min-width:300px;min-height:160px;border-color:#aaaaaa;box-shadow:0 5px 30px -5px rgba(0,0,0,0.25);text-align:left}html[dir="rtl"] #acf-popup .acf-popup-box{text-align:right}#acf-popup .acf-popup-box .title{min-height:15px;line-height:15px}#acf-popup .acf-popup-box .title .acf-icon{position:absolute;top:10px;right:10px}html[dir="rtl"] #acf-popup .acf-popup-box .title .acf-icon{right:auto;left:10px}#acf-popup .acf-popup-box .inner{min-height:50px;padding:0;margin:15px}#acf-popup .acf-popup-box .loading{position:absolute;top:45px;left:0;right:0;bottom:0;z-index:2;background:rgba(0,0,0,0.1);display:none}#acf-popup .acf-popup-box .loading i{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.acf-submit{margin-bottom:0;line-height:28px}.acf-submit span{float:right;color:#999}.acf-submit span.-error{color:#dd4232}.acf-submit .button{margin-right:5px}#acf-upgrade-notice{position:relative;background:#fff;border-left:4px solid #00a0d2;padding:20px}#acf-upgrade-notice:after{display:block;clear:both;content:""}#acf-upgrade-notice .col-content{float:left;width:55%;padding-left:90px}#acf-upgrade-notice .col-actions{float:right;text-align:center;padding:10px}#acf-upgrade-notice img{float:left;width:70px;height:70px;margin:0 0 0 -90px}#acf-upgrade-notice h2{font-size:16px;margin:2px 0 6.5px}#acf-upgrade-notice p{padding:0;margin:0}#acf-upgrade-notice .button:before{margin-top:11px}@media screen and (max-width: 640px){#acf-upgrade-notice .col-content,#acf-upgrade-notice .col-actions{float:none;padding-left:90px;width:auto;text-align:left}}.acf-wrap h1{margin-top:0;padding-top:20px}.acf-wrap .about-text{margin-top:0.5em;min-height:50px}.acf-wrap .about-headline-callout{font-size:2.4em;font-weight:300;line-height:1.3;margin:1.1em 0 0.2em;text-align:center}.acf-wrap .feature-section{padding:40px 0}.acf-wrap .feature-section h2{margin-top:20px}.acf-wrap .changelog{list-style:disc;padding-left:15px}.acf-wrap .changelog li{margin:0 0 0.75em}.acf-wrap .acf-three-col{display:flex;flex-wrap:wrap;justify-content:space-between}.acf-wrap .acf-three-col>div{flex:1;align-self:flex-start;min-width:31%;max-width:31%}@media screen and (max-width: 880px){.acf-wrap .acf-three-col>div{min-width:48%}}@media screen and (max-width: 640px){.acf-wrap .acf-three-col>div{min-width:100%}}.acf-wrap .acf-three-col h3 .badge{display:inline-block;vertical-align:top;border-radius:5px;background:#fc9700;color:#fff;font-weight:normal;font-size:12px;padding:2px 5px}.acf-wrap .acf-three-col img+h3{margin-top:0.5em}.acf-hl[data-cols]{margin-left:-10px;margin-right:-10px}.acf-hl[data-cols]>li{padding:0 10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.acf-hl[data-cols="2"]>li{width:50%}.acf-hl[data-cols="3"]>li{width:33.333%}.acf-hl[data-cols="4"]>li{width:25%}@media screen and (max-width: 640px){.acf-hl[data-cols]{margin-left:0;margin-right:0;margin-top:-10px}.acf-hl[data-cols]>li{width:100% !important;padding:10px 0 0}}.acf-actions{text-align:right;z-index:1}.acf-actions.-hover{position:absolute;display:none;top:0;right:0;padding:5px}html[dir="rtl"] .acf-actions.-hover{right:auto;left:0}ul.acf-actions li{float:right;margin-left:4px}html[dir="rtl"] .acf-fl{float:right}html[dir="rtl"] .acf-fr{float:left}html[dir="rtl"] .acf-hl>li{float:right}html[dir="rtl"] .acf-hl>li.acf-fr{float:left}html[dir="rtl"] .acf-icon.logo{left:0;right:auto}html[dir="rtl"] .acf-table thead th{text-align:right;border-right-width:1px;border-left-width:0px}html[dir="rtl"] .acf-table>tbody>tr>td{text-align:right;border-right-width:1px;border-left-width:0px}html[dir="rtl"] .acf-table>thead>tr>th:first-child,html[dir="rtl"] .acf-table>tbody>tr>td:first-child{border-right-width:0}html[dir="rtl"] .acf-table>tbody>tr>td.order+td{border-right-color:#e1e1e1}.acf-postbox-columns{position:relative;margin-top:-11px;margin-bottom:-12px;margin-left:-12px;margin-right:268px}.acf-postbox-columns:after{display:block;clear:both;content:""}.acf-postbox-columns .acf-postbox-main,.acf-postbox-columns .acf-postbox-side{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0 12px 12px}.acf-postbox-columns .acf-postbox-main{float:left;width:100%}.acf-postbox-columns .acf-postbox-side{float:right;width:280px;margin-right:-280px}.acf-postbox-columns .acf-postbox-side:before{content:"";display:block;position:absolute;width:1px;height:100%;top:0;right:0;background:#d5d9dd}.acf-admin-3-8 .acf-postbox-columns .acf-postbox-side:before{background:#dfdfdf}@media only screen and (max-width: 850px){.acf-postbox-columns{margin:0}.acf-postbox-columns .acf-postbox-main,.acf-postbox-columns .acf-postbox-side{float:none;width:auto;margin:0;padding:0}.acf-postbox-columns .acf-postbox-side{margin-top:1em}.acf-postbox-columns .acf-postbox-side:before{display:none}}.acf-panel{margin-top:-1px;border-top:1px solid #d5d9dd;border-bottom:1px solid #d5d9dd}.acf-panel .acf-panel-title{margin:0;padding:12px;font-weight:bold;cursor:pointer;font-size:inherit}.acf-panel .acf-panel-title i{float:right}.acf-panel .acf-panel-inside{margin:0;padding:0 12px 12px;display:none}.acf-panel.-open .acf-panel-inside{display:block}.postbox .acf-panel{margin-left:-12px;margin-right:-12px}.acf-panel .acf-field{margin:20px 0 0}.acf-panel .acf-field .acf-label label{color:#555d66;font-weight:normal}.acf-panel .acf-field:first-child{margin-top:0}.acf-admin-3-8 .acf-panel{border-color:#dfdfdf}#acf-admin-tools .notice{margin-top:10px}.acf-meta-box-wrap{margin-top:10px}.acf-meta-box-wrap .postbox{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.acf-meta-box-wrap .postbox .inside{margin-bottom:0}.acf-meta-box-wrap .postbox .hndle{font-size:14px;padding:8px 12px;margin:0;line-height:1.4;position:relative;z-index:1;cursor:default}.acf-meta-box-wrap .postbox .handlediv,.acf-meta-box-wrap .postbox .handle-order-higher,.acf-meta-box-wrap .postbox .handle-order-lower{display:none}.acf-meta-box-wrap .acf-fields{border:#ebebeb solid 1px;background:#fafafa;border-radius:3px}.acf-meta-box-wrap.-grid{margin-left:8px;margin-right:8px}.acf-meta-box-wrap.-grid .postbox{float:left;clear:left;width:50%;margin:0 0 16px}.acf-meta-box-wrap.-grid .postbox:nth-child(odd){margin-left:-8px}.acf-meta-box-wrap.-grid .postbox:nth-child(even){float:right;clear:right;margin-right:-8px}@media only screen and (max-width: 850px){.acf-meta-box-wrap.-grid{margin-left:0;margin-right:0}.acf-meta-box-wrap.-grid .postbox{margin-left:0 !important;margin-right:0 !important;width:100%}}#acf-admin-tool-export p{max-width:800px}#acf-admin-tool-export ul{column-width:200px}#acf-admin-tool-export .acf-postbox-side .button{margin:0;width:100%}#acf-admin-tool-export textarea{display:block;width:100%;min-height:500px;background:#fafafa;box-shadow:none;padding:7px;border-radius:3px}#acf-admin-tool-export .acf-panel-selection .acf-label{display:none}.acf-admin-toolbar{background:#fff;border-bottom:1px solid #ccd0d4}.acf-admin-toolbar h2{font-size:14px;line-height:2.57143;display:inline-block;padding:5px 0;margin:0 10px 0 0}.acf-admin-toolbar h2 i{vertical-align:middle;color:#babbbc}.acf-admin-toolbar .acf-tab{display:inline-block;font-size:14px;line-height:2.57143;padding:5px;margin:0 5px;text-decoration:none;color:inherit}.acf-admin-toolbar .acf-tab.is-active{border-bottom:#0071a4 solid 3px;padding-bottom:2px}.acf-admin-toolbar .acf-tab:hover{color:#00a0d2}.acf-admin-toolbar .acf-tab:focus{box-shadow:none}#wpcontent .acf-admin-toolbar{margin-left:-20px;padding-left:20px}@media screen and (max-width: 600px){.acf-admin-toolbar{display:none}}.acf-admin-field-groups .tablenav.top{display:none}.acf-admin-field-groups .subsubsub{margin-bottom:3px}.acf-admin-field-groups .wp-list-table td,.acf-admin-field-groups .wp-list-table th{box-sizing:border-box}.acf-admin-field-groups .wp-list-table tr:hover{background:#f7f7f7}@media screen and (min-width: 782px){.acf-admin-field-groups .wp-list-table .column-acf-count{width:10%}}.acf-admin-field-groups .wp-list-table .row-actions span.file{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.acf-admin-field-groups .acf-secondary-text{color:#a0a5aa}.acf-multi-dashicon{position:relative;z-index:1}.acf-multi-dashicon:before,.acf-multi-dashicon:after{width:18px;height:18px;line-height:18px;font-size:14px;background:#fff;border:#7e8993 solid 1px;border-radius:2px;display:block}.acf-multi-dashicon:after{content:"";position:absolute;top:-3px;left:-3px;z-index:-1;background:#e7e7e7}.acf-css-tooltip{position:relative}.acf-css-tooltip:before{content:attr(aria-label);display:none;position:absolute;z-index:999;bottom:100%;left:50%;transform:translate(-50%, -8px);background:#191e23;border-radius:2px;padding:5px 10px;color:#fff;font-size:12px;line-height:1.4em;white-space:pre}.acf-css-tooltip:after{content:"";display:none;position:absolute;z-index:998;bottom:100%;left:50%;transform:translate(-50%, 4px);border:solid 6px transparent;border-top-color:#191e23}.acf-css-tooltip:hover:before,.acf-css-tooltip:hover:after,.acf-css-tooltip:focus:before,.acf-css-tooltip:focus:after{display:block}.acf-diff .acf-diff-title{position:absolute;top:0;left:0;right:0;height:40px;padding:14px 16px;background:#f3f3f3;border-bottom:#dddddd solid 1px}.acf-diff .acf-diff-title strong{font-size:14px;display:block}.acf-diff .acf-diff-title .acf-diff-title-left,.acf-diff .acf-diff-title .acf-diff-title-right{width:50%;float:left}.acf-diff .acf-diff-content{position:absolute;top:70px;left:0;right:0;bottom:0;overflow:auto}.acf-diff table.diff{border-spacing:0}.acf-diff table.diff col.diffsplit.middle{width:0}.acf-diff table.diff td,.acf-diff table.diff th{padding-top:0.25em;padding-bottom:0.25em}.acf-diff table.diff tr td:nth-child(2){width:auto}.acf-diff table.diff td:nth-child(3){border-left:#dddddd solid 1px}@media screen and (max-width: 600px){.acf-diff .acf-diff-title{height:70px}.acf-diff .acf-diff-content{top:100px}}.acf-modal{position:fixed;top:30px;left:30px;right:30px;bottom:30px;z-index:160000;box-shadow:0 5px 15px rgba(0,0,0,0.7);background:#fcfcfc}.acf-modal .acf-modal-title,.acf-modal .acf-modal-content,.acf-modal .acf-modal-toolbar{box-sizing:border-box;position:absolute;left:0;right:0}.acf-modal .acf-modal-title{height:50px;top:0;border-bottom:1px solid #ddd}.acf-modal .acf-modal-title h2{margin:0;padding:0 16px;line-height:50px}.acf-modal .acf-modal-title .acf-modal-close{position:absolute;top:0;right:0;height:50px;width:50px;border:none;border-left:1px solid #ddd;background:transparent;cursor:pointer;color:#666}.acf-modal .acf-modal-title .acf-modal-close:hover{color:#00a0d2}.acf-modal .acf-modal-content{top:50px;bottom:60px;background:#fff;overflow:auto;padding:16px}.acf-modal .acf-modal-feedback{position:absolute;top:50%;margin:-10px 0;left:0;right:0;text-align:center;opacity:0.75}.acf-modal .acf-modal-feedback.error{opacity:1;color:#b52727}.acf-modal .acf-modal-toolbar{height:60px;bottom:0;padding:15px 16px;border-top:1px solid #ddd}.acf-modal .acf-modal-toolbar .button{float:right}@media only screen and (max-width: 640px){.acf-modal{top:0;left:0;right:0;bottom:0}}.acf-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background:#000;opacity:0.7;z-index:159900}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){.acf-loading,.acf-spinner{background-image:url(../images/spinner@2x.gif);background-size:20px 20px}} diff --git a/assets/css/acf-input.css b/assets/css/acf-input.css deleted file mode 100644 index ef23475..0000000 --- a/assets/css/acf-input.css +++ /dev/null @@ -1 +0,0 @@ -.acf-field,.acf-field .acf-label,.acf-field .acf-input{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative}.acf-field{margin:15px 0;clear:both}.acf-field p.description{display:block;margin:0;padding:0}.acf-field .acf-label{vertical-align:top;margin:0 0 10px}.acf-field .acf-label label{display:block;font-weight:bold;margin:0 0 3px;padding:0}.acf-field .acf-label:empty{margin-bottom:0}.acf-field .acf-input{vertical-align:top}.acf-field .acf-input>p.description{margin-top:5px}.acf-field .acf-notice{margin:0 0 15px;background:#edf2ff;color:#0c6ca0;border-color:#2183b9}.acf-field .acf-notice.-error{background:#ffe6e6;color:#cc2727;border-color:#d12626}.acf-field .acf-notice.-success{background:#eefbe8;color:#0e7b17;border-color:#32a23b}.acf-field .acf-notice.-warning{background:#fff3e6;color:#bd4b0e;border-color:#d16226}td.acf-field,tr.acf-field{margin:0}.acf-field[data-width]{float:left;clear:none}.acf-field[data-width]+.acf-field[data-width]{border-left:1px solid #eeeeee}html[dir="rtl"] .acf-field[data-width]{float:right}html[dir="rtl"] .acf-field[data-width]+.acf-field[data-width]{border-left:none;border-right:1px solid #eeeeee}td.acf-field[data-width],tr.acf-field[data-width]{float:none}.acf-field.-c0{clear:both;border-left-width:0 !important}html[dir="rtl"] .acf-field.-c0{border-left-width:1px !important;border-right-width:0 !important}.acf-field.-r0{border-top-width:0 !important}.acf-fields{position:relative}.acf-fields:after{display:block;clear:both;content:""}.acf-fields.-border{border:#ccd0d4 solid 1px;background:#fff}.acf-fields>.acf-field{position:relative;margin:0;padding:15px 12px;border-top:#EEEEEE solid 1px}.acf-fields>.acf-field:first-child{border-top:none;margin-top:0}td.acf-fields{padding:0 !important}.acf-fields.-clear>.acf-field{border:none;padding:0;margin:15px 0}.acf-fields.-clear>.acf-field[data-width]{border:none !important}.acf-fields.-clear>.acf-field>.acf-label{padding:0}.acf-fields.-clear>.acf-field>.acf-input{padding:0}.acf-fields.-left>.acf-field{padding:15px 0}.acf-fields.-left>.acf-field:after{display:block;clear:both;content:""}.acf-fields.-left>.acf-field:before{content:"";display:block;position:absolute;z-index:0;background:#F9F9F9;border-color:#E1E1E1;border-style:solid;border-width:0 1px 0 0;top:0;bottom:0;left:0;width:20%}.acf-fields.-left>.acf-field[data-width]{float:none;width:auto !important;border-left-width:0 !important;border-right-width:0 !important}.acf-fields.-left>.acf-field>.acf-label{float:left;width:20%;margin:0;padding:0 12px}.acf-fields.-left>.acf-field>.acf-input{float:left;width:80%;margin:0;padding:0 12px}html[dir="rtl"] .acf-fields.-left>.acf-field:before{border-width:0 0 0 1px;left:auto;right:0}html[dir="rtl"] .acf-fields.-left>.acf-field>.acf-label{float:right}html[dir="rtl"] .acf-fields.-left>.acf-field>.acf-input{float:right}#side-sortables .acf-fields.-left>.acf-field:before{display:none}#side-sortables .acf-fields.-left>.acf-field>.acf-label{width:100%;margin-bottom:10px}#side-sortables .acf-fields.-left>.acf-field>.acf-input{width:100%}@media screen and (max-width: 640px){.acf-fields.-left>.acf-field:before{display:none}.acf-fields.-left>.acf-field>.acf-label{width:100%;margin-bottom:10px}.acf-fields.-left>.acf-field>.acf-input{width:100%}}.acf-fields.-clear.-left>.acf-field{padding:0;border:none}.acf-fields.-clear.-left>.acf-field:before{display:none}.acf-fields.-clear.-left>.acf-field>.acf-label{padding:0}.acf-fields.-clear.-left>.acf-field>.acf-input{padding:0}.acf-table tr.acf-field>td.acf-label{padding:15px 12px;margin:0;background:#F9F9F9;width:20%}.acf-table tr.acf-field>td.acf-input{padding:15px 12px;margin:0;border-left-color:#E1E1E1}.acf-sortable-tr-helper{position:relative !important;display:table-row !important}.acf-postbox{position:relative}.acf-postbox>.inside{margin:0 !important;padding:0 !important}.acf-postbox .acf-hndle-cog{color:#72777c;font-size:16px;line-height:36px;height:36px;width:1.62rem;position:relative;display:none}.acf-postbox .acf-hndle-cog:hover{color:#191e23}.acf-postbox>.hndle:hover .acf-hndle-cog,.acf-postbox>.postbox-header:hover .acf-hndle-cog{display:inline-block}.acf-postbox>.hndle .acf-hndle-cog{height:20px;line-height:20px;float:right;width:auto}.acf-postbox>.hndle .acf-hndle-cog:hover{color:#777777}.acf-postbox .acf-replace-with-fields{padding:15px;text-align:center}#post-body-content #acf_after_title-sortables{margin:20px 0 -20px}.acf-postbox.seamless{border:0 none;background:transparent;box-shadow:none}.acf-postbox.seamless>.postbox-header,.acf-postbox.seamless>.hndle,.acf-postbox.seamless>.handlediv{display:none !important}.acf-postbox.seamless>.inside{display:block !important;margin-left:-12px !important;margin-right:-12px !important}.acf-postbox.seamless>.inside>.acf-field{border-color:transparent}.acf-postbox.seamless>.acf-fields.-left>.acf-field:before{display:none}@media screen and (max-width: 782px){.acf-postbox.seamless>.acf-fields.-left>.acf-field>.acf-label,.acf-postbox.seamless>.acf-fields.-left>.acf-field>.acf-input{padding:0}}.acf-field input[type="text"],.acf-field input[type="password"],.acf-field input[type="date"],.acf-field input[type="datetime"],.acf-field input[type="datetime-local"],.acf-field input[type="email"],.acf-field input[type="month"],.acf-field input[type="number"],.acf-field input[type="search"],.acf-field input[type="tel"],.acf-field input[type="time"],.acf-field input[type="url"],.acf-field input[type="week"],.acf-field textarea,.acf-field select{width:100%;padding:4px 8px;margin:0;box-sizing:border-box;font-size:14px;line-height:1.4}.acf-admin-3-8 .acf-field input[type="text"],.acf-admin-3-8 .acf-field input[type="password"],.acf-admin-3-8 .acf-field input[type="date"],.acf-admin-3-8 .acf-field input[type="datetime"],.acf-admin-3-8 .acf-field input[type="datetime-local"],.acf-admin-3-8 .acf-field input[type="email"],.acf-admin-3-8 .acf-field input[type="month"],.acf-admin-3-8 .acf-field input[type="number"],.acf-admin-3-8 .acf-field input[type="search"],.acf-admin-3-8 .acf-field input[type="tel"],.acf-admin-3-8 .acf-field input[type="time"],.acf-admin-3-8 .acf-field input[type="url"],.acf-admin-3-8 .acf-field input[type="week"],.acf-admin-3-8 .acf-field textarea,.acf-admin-3-8 .acf-field select{padding:3px 5px}.acf-field textarea{resize:vertical}body.acf-browser-firefox .acf-field select{padding:4px 5px}.acf-input-prepend,.acf-input-append,.acf-input-wrap{box-sizing:border-box}.acf-input-prepend,.acf-input-append{font-size:14px;line-height:1.4;padding:4px 8px;background:#f5f5f5;border:#7e8993 solid 1px;min-height:30px}.acf-admin-3-8 .acf-input-prepend,.acf-admin-3-8 .acf-input-append{padding:3px 5px;border-color:#ddd;min-height:28px}.acf-input-prepend{float:left;border-right-width:0;border-radius:3px 0 0 3px}.acf-input-append{float:right;border-left-width:0;border-radius:0 3px 3px 0}.acf-input-wrap{position:relative;overflow:hidden}.acf-input-wrap .acf-is-prepended{border-radius:0 3px 3px 0 !important}.acf-input-wrap .acf-is-appended{border-radius:3px 0 0 3px !important}.acf-input-wrap .acf-is-prepended.acf-is-appended{border-radius:0 !important}html[dir="rtl"] .acf-input-prepend{border-left-width:0;border-right-width:1px;border-radius:0 3px 3px 0;float:right}html[dir="rtl"] .acf-input-append{border-left-width:1px;border-right-width:0;border-radius:3px 0 0 3px;float:left}html[dir="rtl"] input.acf-is-prepended{border-radius:3px 0 0 3px !important}html[dir="rtl"] input.acf-is-appended{border-radius:0 3px 3px 0 !important}html[dir="rtl"] input.acf-is-prepended.acf-is-appended{border-radius:0 !important}.acf-color-picker .wp-color-result{border-color:#7e8993}.acf-admin-3-8 .acf-color-picker .wp-color-result{border-color:#ccd0d4}.acf-color-picker .wp-picker-active{position:relative;z-index:1}.acf-url i{position:absolute;top:5px;left:5px;opacity:0.5;color:#7e8993}.acf-url input[type="url"]{padding-left:27px !important}.acf-url.-valid i{opacity:1}.select2-container.-acf .select2-choices{background:#fff;border-color:#ddd;box-shadow:0 1px 2px rgba(0,0,0,0.07) inset;min-height:31px}.select2-container.-acf .select2-choices .select2-search-choice{margin:5px 0 5px 5px;padding:3px 5px 3px 18px;border-color:#bbb;background:#f9f9f9;box-shadow:0 1px 0 rgba(255,255,255,0.25) inset}.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-helper{background:#5897fb;border-color:#3f87fa;color:#fff;box-shadow:0 0 3px rgba(0,0,0,0.1)}.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-helper a{visibility:hidden}.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-placeholder{background-color:#f7f7f7;border-color:#f7f7f7;visibility:visible !important}.select2-container.-acf .select2-choices .select2-search-choice-focus{border-color:#999}.select2-container.-acf .select2-choices .select2-search-field input{height:31px;line-height:22px;margin:0;padding:5px 5px 5px 7px}.select2-container.-acf .select2-choice{border-color:#BBBBBB}.select2-container.-acf .select2-choice .select2-arrow{background:transparent;border-left-color:#DFDFDF;padding-left:1px}.select2-container.-acf .select2-choice .select2-result-description{display:none}.select2-container.-acf.select2-container-active .select2-choices,.select2-container.-acf.select2-dropdown-open .select2-choices{border-color:#5B9DD9;border-radius:3px 3px 0 0}.select2-container.-acf.select2-dropdown-open .select2-choice{background:#fff;border-color:#5B9DD9}html[dir="rtl"] .select2-container.-acf .select2-search-choice-close{left:24px}html[dir="rtl"] .select2-container.-acf .select2-choice>.select2-chosen{margin-left:42px}html[dir="rtl"] .select2-container.-acf .select2-choice .select2-arrow{padding-left:0;padding-right:1px}.select2-drop .select2-search{padding:4px 4px 0}.select2-drop .select2-result .select2-result-description{color:#999;font-size:12px;margin-left:5px}.select2-drop .select2-result.select2-highlighted .select2-result-description{color:#fff;opacity:0.75}.select2-container.-acf li{margin-bottom:0}.select2-container.-acf .select2-selection{border-color:#7e8993}.acf-admin-3-8 .select2-container.-acf .select2-selection{border-color:#aaa}.select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child{float:none}.select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child input{width:100% !important}.select2-container.-acf .select2-selection--multiple .select2-selection__rendered{padding-right:0}.select2-container.-acf .select2-selection--multiple .select2-selection__choice{background-color:#f7f7f7;border-color:#cccccc;max-width:100%;overflow:hidden;word-wrap:normal !important;white-space:normal}.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-helper{background:#5897fb;border-color:#3f87fa;color:#fff;box-shadow:0 0 3px rgba(0,0,0,0.1)}.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-helper span{visibility:hidden}.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-placeholder{background-color:#f7f7f7;border-color:#f7f7f7;visibility:visible !important}.select2-container.-acf .select2-selection--multiple .select2-search__field{box-shadow:none !important;min-height:0}.acf-row .select2-container.-acf .select2-selection--single{overflow:hidden}.acf-row .select2-container.-acf .select2-selection--single .select2-selection__rendered{white-space:normal}.select2-container .select2-dropdown{z-index:900000}.select2-container .select2-dropdown .select2-search__field{line-height:1.4;min-height:0}.acf-link .link-wrap{display:none;border:#ccd0d4 solid 1px;border-radius:3px;padding:5px;line-height:26px;background:#fff;word-wrap:break-word;word-break:break-all}.acf-link .link-wrap .link-title{padding:0 5px}.acf-link.-value .button{display:none}.acf-link.-value .acf-icon.-link-ext{display:none}.acf-link.-value .link-wrap{display:inline-block}.acf-link.-external .acf-icon.-link-ext{display:inline-block}#wp-link-backdrop{z-index:900000 !important}#wp-link-wrap{z-index:900001 !important}ul.acf-radio-list,ul.acf-checkbox-list{background:transparent;position:relative;padding:1px;margin:0}ul.acf-radio-list li,ul.acf-checkbox-list li{font-size:13px;line-height:22px;margin:0;position:relative;word-wrap:break-word}ul.acf-radio-list li label,ul.acf-checkbox-list li label{display:inline}ul.acf-radio-list li input[type="checkbox"],ul.acf-radio-list li input[type="radio"],ul.acf-checkbox-list li input[type="checkbox"],ul.acf-checkbox-list li input[type="radio"]{margin:-1px 4px 0 0;vertical-align:middle}ul.acf-radio-list li input[type="text"],ul.acf-checkbox-list li input[type="text"]{width:auto;vertical-align:middle;margin:2px 0}ul.acf-radio-list li span,ul.acf-checkbox-list li span{float:none}ul.acf-radio-list li i,ul.acf-checkbox-list li i{vertical-align:middle}ul.acf-radio-list.acf-hl li,ul.acf-checkbox-list.acf-hl li{margin-right:20px;clear:none}html[dir="rtl"] ul.acf-radio-list input[type="checkbox"],html[dir="rtl"] ul.acf-radio-list input[type="radio"],html[dir="rtl"] ul.acf-checkbox-list input[type="checkbox"],html[dir="rtl"] ul.acf-checkbox-list input[type="radio"]{margin-left:4px;margin-right:0}.acf-button-group{display:inline-block}.acf-button-group label{display:inline-block;border:#7e8993 solid 1px;position:relative;z-index:1;padding:5px 10px;background:#fff}.acf-button-group label:hover{color:#016087;background:#f3f5f6;border-color:#0071a1;z-index:2}.acf-button-group label.selected{border-color:#007cba;background:#008dd4;color:#fff;z-index:2}.acf-button-group input{display:none !important}.acf-button-group{padding-left:1px;display:inline-flex;flex-direction:row;flex-wrap:nowrap}.acf-button-group label{margin:0 0 0 -1px;flex:1;text-align:center;white-space:nowrap}.acf-button-group label:first-child{border-radius:3px 0 0 3px}html[dir="rtl"] .acf-button-group label:first-child{border-radius:0 3px 3px 0}.acf-button-group label:last-child{border-radius:0 3px 3px 0}html[dir="rtl"] .acf-button-group label:last-child{border-radius:3px 0 0 3px}.acf-button-group label:only-child{border-radius:3px}.acf-button-group.-vertical{padding-left:0;padding-top:1px;flex-direction:column}.acf-button-group.-vertical label{margin:-1px 0 0 0}.acf-button-group.-vertical label:first-child{border-radius:3px 3px 0 0}.acf-button-group.-vertical label:last-child{border-radius:0 0 3px 3px}.acf-button-group.-vertical label:only-child{border-radius:3px}.acf-admin-3-8 .acf-button-group label{border-color:#ccd0d4}.acf-admin-3-8 .acf-button-group label:hover{border-color:#0071a1}.acf-admin-3-8 .acf-button-group label.selected{border-color:#007cba}.acf-checkbox-list .button{margin:10px 0 0}.acf-switch{display:inline-block;border-radius:5px;cursor:pointer;position:relative;background:#f5f5f5;height:30px;vertical-align:middle;border:#7e8993 solid 1px;-webkit-transition:background 0.25s ease;-moz-transition:background 0.25s ease;-o-transition:background 0.25s ease;transition:background 0.25s ease}.acf-switch span{display:inline-block;float:left;text-align:center;font-size:13px;line-height:22px;padding:4px 10px;min-width:15px}.acf-switch span i{vertical-align:middle}.acf-switch .acf-switch-on{color:#fff;text-shadow:#007cba 0 1px 0}.acf-switch .acf-switch-slider{position:absolute;top:2px;left:2px;bottom:2px;right:50%;z-index:1;background:#fff;border-radius:3px;border:#7e8993 solid 1px;-webkit-transition:all 0.25s ease;-moz-transition:all 0.25s ease;-o-transition:all 0.25s ease;transition:all 0.25s ease;transition-property:left, right}.acf-switch:hover,.acf-switch.-focus{border-color:#0071a1;background:#f3f5f6;color:#016087}.acf-switch:hover .acf-switch-slider,.acf-switch.-focus .acf-switch-slider{border-color:#0071a1}.acf-switch.-on{background:#0d99d5;border-color:#007cba}.acf-switch.-on .acf-switch-slider{left:50%;right:2px;border-color:#007cba}.acf-switch.-on:hover{border-color:#007cba}.acf-switch+span{margin-left:6px}.acf-admin-3-8 .acf-switch{border-color:#ccd0d4}.acf-admin-3-8 .acf-switch .acf-switch-slider{border-color:#ccd0d4}.acf-admin-3-8 .acf-switch:hover,.acf-admin-3-8 .acf-switch.-focus{border-color:#0071a1}.acf-admin-3-8 .acf-switch:hover .acf-switch-slider,.acf-admin-3-8 .acf-switch.-focus .acf-switch-slider{border-color:#0071a1}.acf-admin-3-8 .acf-switch.-on{border-color:#007cba}.acf-admin-3-8 .acf-switch.-on .acf-switch-slider{border-color:#007cba}.acf-admin-3-8 .acf-switch.-on:hover{border-color:#007cba}.acf-switch-input{opacity:0;position:absolute;margin:0}.compat-item .acf-true-false .message{float:none;padding:0;vertical-align:middle}.acf-google-map{position:relative;border:#ccd0d4 solid 1px;background:#fff}.acf-google-map .title{position:relative;border-bottom:#ccd0d4 solid 1px}.acf-google-map .title .search{margin:0;font-size:14px;line-height:30px;height:40px;padding:5px 10px;border:0 none;box-shadow:none;border-radius:0;font-family:inherit;cursor:text}.acf-google-map .title .acf-loading{position:absolute;top:10px;right:11px;display:none}.acf-google-map .title .acf-icon:active{display:inline-block !important}.acf-google-map .canvas{height:400px}.acf-google-map:hover .title .acf-actions{display:block}.acf-google-map .title .acf-icon.-location{display:inline-block}.acf-google-map .title .acf-icon.-cancel,.acf-google-map .title .acf-icon.-search{display:none}.acf-google-map.-value .title .search{font-weight:bold}.acf-google-map.-value .title .acf-icon.-location{display:none}.acf-google-map.-value .title .acf-icon.-cancel{display:inline-block}.acf-google-map.-searching .title .acf-icon.-location{display:none}.acf-google-map.-searching .title .acf-icon.-cancel,.acf-google-map.-searching .title .acf-icon.-search{display:inline-block}.acf-google-map.-searching .title .acf-actions{display:block}.acf-google-map.-searching .title .search{font-weight:normal !important}.acf-google-map.-loading .title a{display:none !important}.acf-google-map.-loading .title i{display:inline-block}.pac-container{border-width:1px 0;box-shadow:none}.pac-container:after{display:none}.pac-container .pac-item:first-child{border-top:0 none}.pac-container .pac-item{padding:5px 10px;cursor:pointer}html[dir="rtl"] .pac-container .pac-item{text-align:right}.acf-relationship{background:#fff;border:#ccd0d4 solid 1px}.acf-relationship .filters{border-bottom:#ccd0d4 solid 1px;background:#fff}.acf-relationship .filters:after{display:block;clear:both;content:""}.acf-relationship .filters .filter{margin:0;padding:0;float:left;width:100%;box-sizing:border-box;padding:7px 7px 7px 0}.acf-relationship .filters .filter:first-child{padding-left:7px}.acf-relationship .filters .filter input,.acf-relationship .filters .filter select{margin:0;float:none}.acf-relationship .filters .filter input:focus,.acf-relationship .filters .filter input:active,.acf-relationship .filters .filter select:focus,.acf-relationship .filters .filter select:active{outline:none;box-shadow:none}.acf-relationship .filters .filter input{border-color:transparent;box-shadow:none;padding-left:3px;padding-right:3px}.acf-relationship .filters.-f2 .filter{width:50%}.acf-relationship .filters.-f3 .filter{width:25%}.acf-relationship .filters.-f3 .filter.-search{width:50%}.acf-relationship .list{margin:0;padding:5px;height:160px;overflow:auto}.acf-relationship .list .acf-rel-label,.acf-relationship .list .acf-rel-item,.acf-relationship .list p{padding:5px;margin:0;display:block;position:relative;min-height:18px}.acf-relationship .list .acf-rel-label{font-weight:bold}.acf-relationship .list .acf-rel-item{cursor:pointer}.acf-relationship .list .acf-rel-item b{text-decoration:underline;font-weight:normal}.acf-relationship .list .acf-rel-item .thumbnail{background:#e0e0e0;width:22px;height:22px;float:left;margin:-2px 5px 0 0}.acf-relationship .list .acf-rel-item .thumbnail img{max-width:22px;max-height:22px;margin:0 auto;display:block}.acf-relationship .list .acf-rel-item .thumbnail.-icon{background:#fff}.acf-relationship .list .acf-rel-item .thumbnail.-icon img{max-height:20px;margin-top:1px}.acf-relationship .list .acf-rel-item:hover{background:#3875D7;color:#fff}.acf-relationship .list .acf-rel-item:hover .thumbnail{background:#a2bfec}.acf-relationship .list .acf-rel-item:hover .thumbnail.-icon{background:#fff}.acf-relationship .list .acf-rel-item.disabled{opacity:0.5}.acf-relationship .list .acf-rel-item.disabled:hover{background:transparent;color:#333;cursor:default}.acf-relationship .list .acf-rel-item.disabled:hover .thumbnail{background:#e0e0e0}.acf-relationship .list .acf-rel-item.disabled:hover .thumbnail.-icon{background:#fff}.acf-relationship .list ul{padding-bottom:5px}.acf-relationship .list ul .acf-rel-label,.acf-relationship .list ul .acf-rel-item,.acf-relationship .list ul p{padding-left:20px}.acf-relationship .selection{position:relative}.acf-relationship .selection:after{display:block;clear:both;content:""}.acf-relationship .selection .values,.acf-relationship .selection .choices{width:50%;background:#fff;float:left}.acf-relationship .selection .choices{background:#F9F9F9}.acf-relationship .selection .choices .list{border-right:#DFDFDF solid 1px}.acf-relationship .selection .values .acf-icon{position:absolute;top:4px;right:7px;display:none}html[dir="rtl"] .acf-relationship .selection .values .acf-icon{right:auto;left:7px}.acf-relationship .selection .values .acf-rel-item:hover .acf-icon{display:block}.acf-relationship .selection .values .acf-rel-item{cursor:move}.acf-relationship .selection .values .acf-rel-item b{text-decoration:none}.menu-item .acf-relationship ul{width:auto}.menu-item .acf-relationship li{display:block}.acf-editor-wrap.delay .acf-editor-toolbar{content:"";display:block;background:#f5f5f5;border-bottom:#dddddd solid 1px;color:#555d66;padding:10px}.acf-editor-wrap.delay .wp-editor-area{padding:10px;border:none;color:inherit !important}.acf-editor-wrap iframe{min-height:200px}.acf-editor-wrap .wp-editor-container{border:1px solid #ccd0d4;box-shadow:none !important}.acf-editor-wrap .wp-editor-tabs{box-sizing:content-box}.acf-editor-wrap .wp-switch-editor{border-color:#ccd0d4;border-bottom-color:transparent}#mce_fullscreen_container{z-index:900000 !important}.acf-field-tab{display:none !important}.hidden-by-tab{display:none !important}.acf-tab-wrap{clear:both;z-index:1}.acf-tab-group{border-bottom:#ccc solid 1px;padding:10px 10px 0}.acf-tab-group li{margin:0 0.5em 0 0}.acf-tab-group li a{padding:5px 10px;display:block;color:#555;font-size:14px;font-weight:600;line-height:24px;border:#ccc solid 1px;border-bottom:0 none;text-decoration:none;background:#e5e5e5;transition:none}.acf-tab-group li a:hover{background:#FFF}.acf-tab-group li a:focus{outline:none;box-shadow:none}.acf-tab-group li a:empty{display:none}html[dir="rtl"] .acf-tab-group li{margin:0 0 0 0.5em}.acf-tab-group li.active a{background:#F1F1F1;color:#000;padding-bottom:6px;margin-bottom:-1px;position:relative;z-index:1}.acf-fields>.acf-tab-wrap{background:#F9F9F9}.acf-fields>.acf-tab-wrap .acf-tab-group{position:relative;border-top:#ccd0d4 solid 1px;border-bottom:#ccd0d4 solid 1px;z-index:2;margin-bottom:-1px}.acf-fields>.acf-tab-wrap .acf-tab-group li a{background:#f1f1f1;border-color:#ccd0d4}.acf-fields>.acf-tab-wrap .acf-tab-group li a:hover{background:#FFF}.acf-fields>.acf-tab-wrap .acf-tab-group li.active a{background:#FFFFFF}.acf-admin-3-8 .acf-fields>.acf-tab-wrap .acf-tab-group{border-color:#dfdfdf}.acf-fields>.acf-tab-wrap:first-child .acf-tab-group{border-top:none}.acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-left:20%}@media screen and (max-width: 640px){.acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-left:10px}}html[dir="rtl"] .acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-left:0;padding-right:20%}@media screen and (max-width: 850px){html[dir="rtl"] .acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-right:10px}}.acf-tab-wrap.-left .acf-tab-group{position:absolute;left:0;width:20%;border:0 none;padding:0 !important;margin:1px 0 0}.acf-tab-wrap.-left .acf-tab-group li{float:none;margin:-1px 0 0}.acf-tab-wrap.-left .acf-tab-group li a{border:1px solid #ededed;font-size:13px;line-height:18px;color:#0073aa;padding:10px;margin:0;font-weight:normal;border-width:1px 0;border-radius:0;background:transparent}.acf-tab-wrap.-left .acf-tab-group li a:hover{color:#00a0d2}.acf-tab-wrap.-left .acf-tab-group li.active a{border-color:#DFDFDF;color:#000;margin-right:-1px;background:#fff}html[dir="rtl"] .acf-tab-wrap.-left .acf-tab-group{left:auto;right:0}html[dir="rtl"] .acf-tab-wrap.-left .acf-tab-group li.active a{margin-right:0;margin-left:-1px}.acf-field+.acf-tab-wrap.-left:before{content:"";display:block;position:relative;z-index:1;height:10px;border-top:#DFDFDF solid 1px;border-bottom:#DFDFDF solid 1px;margin-bottom:-1px}.acf-tab-wrap.-left:first-child .acf-tab-group li:first-child a{border-top:none}.acf-fields.-sidebar{padding:0 0 0 20% !important;position:relative}.acf-fields.-sidebar:before{content:"";display:block;position:absolute;top:0;left:0;width:20%;bottom:0;border-right:#DFDFDF solid 1px;background:#F9F9F9;z-index:1}html[dir="rtl"] .acf-fields.-sidebar{padding:0 20% 0 0 !important}html[dir="rtl"] .acf-fields.-sidebar:before{border-left:#DFDFDF solid 1px;border-right-width:0;left:auto;right:0}.acf-fields.-sidebar.-left{padding:0 0 0 180px !important}html[dir="rtl"] .acf-fields.-sidebar.-left{padding:0 180px 0 0 !important}.acf-fields.-sidebar.-left:before{background:#F1F1F1;border-color:#dfdfdf;width:180px}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group{width:180px}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group li a{border-color:#e4e4e4}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group li.active a{background:#F9F9F9}.acf-fields.-sidebar>.acf-field-tab+.acf-field{border-top:none}.acf-fields.-clear>.acf-tab-wrap{background:transparent}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group{margin-top:0;border-top:none;padding-left:0;padding-right:0}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a{background:#e5e5e5}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a:hover{background:#fff}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group li.active a{background:#f1f1f1}.acf-postbox.seamless>.acf-fields.-sidebar{margin-left:0 !important}.acf-postbox.seamless>.acf-fields.-sidebar:before{background:transparent}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap{background:transparent;margin-bottom:10px;padding-left:12px;padding-right:12px}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group{border-top:0 none;border-color:#ccd0d4}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group li a{background:#e5e5e5;border-color:#ccd0d4}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group li a:hover{background:#fff}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group li.active a{background:#f1f1f1}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left:before{border-top:none;height:auto}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left .acf-tab-group{margin-bottom:0}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left .acf-tab-group li a{border-width:1px 0 1px 1px !important;border-color:#cccccc;background:#e5e5e5}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left .acf-tab-group li.active a{background:#f1f1f1}.menu-edit .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a,.widget .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a{background:#f1f1f1}.menu-edit .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a:hover,.menu-edit .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li.active a,.widget .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a:hover,.widget .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li.active a{background:#fff}.compat-item .acf-tab-wrap td{display:block}.acf-gallery-side .acf-tab-wrap{border-top:0 none !important}.acf-gallery-side .acf-tab-wrap .acf-tab-group{margin:10px 0 !important;padding:0 !important}.acf-gallery-side .acf-tab-group li.active a{background:#F9F9F9 !important}.widget .acf-tab-group{border-bottom-color:#e8e8e8}.widget .acf-tab-group li a{background:#F1F1F1}.widget .acf-tab-group li.active a{background:#fff}.media-modal.acf-expanded .compat-attachment-fields>tbody>tr.acf-tab-wrap .acf-tab-group{padding-left:23%;border-bottom-color:#DDDDDD}.form-table>tbody>tr.acf-tab-wrap .acf-tab-group{padding:0 5px 0 210px}html[dir="rtl"] .form-table>tbody>tr.acf-tab-wrap .acf-tab-group{padding:0 210px 0 5px}.acf-oembed{position:relative;border:#ccd0d4 solid 1px;background:#fff}.acf-oembed .title{position:relative;border-bottom:#ccd0d4 solid 1px;padding:5px 10px}.acf-oembed .title .input-search{margin:0;font-size:14px;line-height:30px;height:30px;padding:0;border:0 none;box-shadow:none;border-radius:0;font-family:inherit;cursor:text}.acf-oembed .title .acf-actions{padding:6px}.acf-oembed .canvas{position:relative;min-height:250px;background:#F9F9F9}.acf-oembed .canvas .canvas-media{position:relative;z-index:1}.acf-oembed .canvas iframe{display:block;margin:0;padding:0;width:100%}.acf-oembed .canvas .acf-icon.-picture{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:0;height:42px;width:42px;font-size:42px;color:#999}.acf-oembed .canvas .acf-loading-overlay{background:rgba(255,255,255,0.9)}.acf-oembed .canvas .canvas-error{position:absolute;top:50%;left:0%;right:0%;margin:-9px 0 0 0;text-align:center;display:none}.acf-oembed .canvas .canvas-error p{padding:8px;margin:0;display:inline}.acf-oembed.has-value .canvas{min-height:50px}.acf-oembed.has-value .input-search{font-weight:bold}.acf-oembed.has-value .title:hover .acf-actions{display:block}.acf-image-uploader{position:relative}.acf-image-uploader:after{display:block;clear:both;content:""}.acf-image-uploader p{margin:0}.acf-image-uploader .image-wrap{position:relative;float:left}.acf-image-uploader .image-wrap img{max-width:100%;max-height:100%;width:auto;height:auto;display:block;min-width:30px;min-height:30px;background:#f1f1f1;margin:0;padding:0}.acf-image-uploader .image-wrap img[src$=".svg"]{min-height:100px;min-width:100px}.acf-image-uploader .image-wrap:hover .acf-actions{display:block}.acf-image-uploader input.button{width:auto}html[dir="rtl"] .acf-image-uploader .image-wrap{float:right}.acf-file-uploader{position:relative}.acf-file-uploader p{margin:0}.acf-file-uploader .file-wrap{border:#ccd0d4 solid 1px;min-height:84px;position:relative;background:#fff}.acf-file-uploader .file-icon{position:absolute;top:0;left:0;bottom:0;padding:10px;background:#F1F1F1;border-right:#d5d9dd solid 1px}.acf-file-uploader .file-icon img{display:block;padding:0;margin:0;max-width:48px}.acf-file-uploader .file-info{padding:10px;margin-left:69px}.acf-file-uploader .file-info p{margin:0 0 2px;font-size:13px;line-height:1.4em;word-break:break-all}.acf-file-uploader .file-info a{text-decoration:none}.acf-file-uploader:hover .acf-actions{display:block}html[dir="rtl"] .acf-file-uploader .file-icon{left:auto;right:0;border-left:#E5E5E5 solid 1px;border-right:none}html[dir="rtl"] .acf-file-uploader .file-info{margin-right:69px;margin-left:0}.acf-ui-datepicker .ui-datepicker{z-index:900000 !important}.acf-ui-datepicker .ui-datepicker .ui-widget-header a{cursor:pointer;transition:none}.acf-ui-datepicker .ui-state-highlight.ui-state-hover{border:1px solid #98b7e8 !important;background:#98b7e8 !important;font-weight:normal !important;color:#ffffff !important}.acf-ui-datepicker .ui-state-highlight.ui-state-active{border:1px solid #3875d7 !important;background:#3875d7 !important;font-weight:normal !important;color:#ffffff !important}.acf-field-separator .acf-label{margin-bottom:0}.acf-field-separator .acf-label label{font-weight:normal}.acf-field-separator .acf-input{display:none}.acf-fields>.acf-field-separator{background:#f9f9f9;border-bottom:1px solid #dfdfdf;border-top:1px solid #dfdfdf;margin-bottom:-1px;z-index:2}.acf-taxonomy-field{position:relative}.acf-taxonomy-field .categorychecklist-holder{border:#ccd0d4 solid 1px;border-radius:3px;max-height:200px;overflow:auto}.acf-taxonomy-field .acf-checkbox-list{margin:0;padding:10px}.acf-taxonomy-field .acf-checkbox-list ul.children{padding-left:18px}.acf-taxonomy-field:hover .acf-actions{display:block}.acf-taxonomy-field[data-ftype="select"] .acf-actions{padding:0;margin:-9px}.acf-range-wrap .acf-append,.acf-range-wrap .acf-prepend{display:inline-block;vertical-align:middle;line-height:28px;margin:0 7px 0 0}.acf-range-wrap .acf-append{margin:0 0 0 7px}.acf-range-wrap input[type="range"]{display:inline-block;padding:0;margin:0;vertical-align:middle;height:28px}.acf-range-wrap input[type="range"]:focus{outline:none}.acf-range-wrap input[type="number"]{display:inline-block;min-width:3em;margin-left:10px;vertical-align:middle}html[dir="rtl"] .acf-range-wrap input[type="number"]{margin-right:10px;margin-left:0}html[dir="rtl"] .acf-range-wrap .acf-append{margin:0 7px 0 0}html[dir="rtl"] .acf-range-wrap .acf-prepend{margin:0 0 0 7px}.acf-accordion{margin:-1px 0;padding:0;background:#fff;border-top:1px solid #d5d9dd;border-bottom:1px solid #d5d9dd;z-index:1}.acf-accordion .acf-accordion-title{margin:0;padding:12px;font-weight:bold;cursor:pointer;font-size:inherit;font-size:13px;line-height:1.4em}.acf-accordion .acf-accordion-title:hover{background:#f3f4f5}.acf-accordion .acf-accordion-title label{margin:0;padding:0;font-size:13px;line-height:1.4em}.acf-accordion .acf-accordion-title p{font-weight:normal}.acf-accordion .acf-accordion-title .acf-accordion-icon{float:right}.acf-accordion .acf-accordion-title svg.acf-accordion-icon{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#191e23;fill:currentColor}.acf-accordion .acf-accordion-content{margin:0;padding:0 12px 12px;display:none}.acf-accordion.-open>.acf-accordion-content{display:block}.acf-field.acf-accordion{margin:-1px 0;padding:0 !important;border-color:#d5d9dd}.acf-field.acf-accordion .acf-label.acf-accordion-title{padding:12px;width:auto;float:none;width:auto}.acf-field.acf-accordion .acf-input.acf-accordion-content{padding:0;float:none;width:auto}.acf-field.acf-accordion .acf-input.acf-accordion-content>.acf-fields{border-top:#eee solid 1px}.acf-field.acf-accordion .acf-input.acf-accordion-content>.acf-fields.-clear{padding:0 12px 15px}.acf-fields.-left>.acf-field.acf-accordion:before{display:none}.acf-fields.-left>.acf-field.acf-accordion .acf-accordion-title{width:auto;margin:0 !important;padding:12px;float:none !important}.acf-fields.-left>.acf-field.acf-accordion .acf-accordion-content{padding:0 !important}.acf-fields.-clear>.acf-field.acf-accordion{border:#cccccc solid 1px;background:transparent}.acf-fields.-clear>.acf-field.acf-accordion+.acf-field.acf-accordion{margin-top:-16px}tr.acf-field.acf-accordion{background:transparent}tr.acf-field.acf-accordion>.acf-input{padding:0 !important;border:#cccccc solid 1px}tr.acf-field.acf-accordion .acf-accordion-content{padding:0 12px 12px}#addtag div.acf-field.error{border:0 none;padding:8px 0}#addtag>.acf-field.acf-accordion{padding-right:0;margin-right:5%}#addtag>.acf-field.acf-accordion+p.submit{margin-top:0}tr.acf-accordion{margin:15px 0 !important}tr.acf-accordion+tr.acf-accordion{margin-top:-16px !important}.acf-postbox.seamless>.acf-fields>.acf-accordion{margin-left:12px;margin-right:12px;border:#ccd0d4 solid 1px}.widget .widget-content>.acf-field.acf-accordion{border:#dfdfdf solid 1px;margin-bottom:10px}.widget .widget-content>.acf-field.acf-accordion .acf-accordion-title{margin-bottom:0}.widget .widget-content>.acf-field.acf-accordion+.acf-field.acf-accordion{margin-top:-11px}.media-modal .compat-attachment-fields .acf-field.acf-accordion+.acf-field.acf-accordion{margin-top:-1px}.media-modal .compat-attachment-fields .acf-field.acf-accordion>.acf-input{width:100%}.media-modal .compat-attachment-fields .acf-field.acf-accordion .compat-attachment-fields>tbody>tr>td{padding-bottom:5px}.block-editor .edit-post-sidebar .acf-postbox>.postbox-header,.block-editor .edit-post-sidebar .acf-postbox>.hndle{border-bottom-width:0 !important}.block-editor .edit-post-sidebar .acf-postbox.closed>.postbox-header,.block-editor .edit-post-sidebar .acf-postbox.closed>.hndle{border-bottom-width:1px !important}.block-editor .edit-post-sidebar .acf-fields{min-height:1px;overflow:auto}.block-editor .edit-post-sidebar .acf-fields>.acf-field{border-width:0;border-color:#e2e4e7;margin:16px;padding:0;width:auto !important;min-height:0 !important;float:none !important}.block-editor .edit-post-sidebar .acf-fields>.acf-field>.acf-label{margin-bottom:5px}.block-editor .edit-post-sidebar .acf-fields>.acf-field>.acf-label label{font-weight:normal}.block-editor .edit-post-sidebar .acf-fields>.acf-field.acf-accordion{padding:0;margin:0;border-top-width:1px}.block-editor .edit-post-sidebar .acf-fields>.acf-field.acf-accordion:first-child{border-top-width:0}.block-editor .edit-post-sidebar .acf-fields>.acf-field.acf-accordion .acf-accordion-title{margin:0;padding:15px}.block-editor .edit-post-sidebar .acf-fields>.acf-field.acf-accordion .acf-accordion-title label{font-weight:bold}.block-editor .edit-post-sidebar .acf-fields>.acf-field.acf-accordion .acf-accordion-content>.acf-fields{border-top-width:0}.form-table>tbody>.acf-field>.acf-label{padding:20px 10px 20px 0;width:210px}html[dir="rtl"] .form-table>tbody>.acf-field>.acf-label{padding:20px 0 20px 10px}.form-table>tbody>.acf-field>.acf-label label{font-size:14px;color:#23282d}.form-table>tbody>.acf-field>.acf-input{padding:15px 10px}html[dir="rtl"] .form-table>tbody>.acf-field>.acf-input{padding:15px 10px 15px 5%}.form-table>tbody>.acf-tab-wrap td{padding:15px 5% 15px 0}html[dir="rtl"] .form-table>tbody>.acf-tab-wrap td{padding:15px 0 15px 5%}.form-table>tbody .form-table th.acf-th{width:auto}#your-profile .acf-field input[type="text"],#your-profile .acf-field input[type="password"],#your-profile .acf-field input[type="number"],#your-profile .acf-field input[type="search"],#your-profile .acf-field input[type="email"],#your-profile .acf-field input[type="url"],#your-profile .acf-field select,#createuser .acf-field input[type="text"],#createuser .acf-field input[type="password"],#createuser .acf-field input[type="number"],#createuser .acf-field input[type="search"],#createuser .acf-field input[type="email"],#createuser .acf-field input[type="url"],#createuser .acf-field select{max-width:25em}#your-profile .acf-field textarea,#createuser .acf-field textarea{max-width:500px}#your-profile .acf-field .acf-field input[type="text"],#your-profile .acf-field .acf-field input[type="password"],#your-profile .acf-field .acf-field input[type="number"],#your-profile .acf-field .acf-field input[type="search"],#your-profile .acf-field .acf-field input[type="email"],#your-profile .acf-field .acf-field input[type="url"],#your-profile .acf-field .acf-field textarea,#your-profile .acf-field .acf-field select,#createuser .acf-field .acf-field input[type="text"],#createuser .acf-field .acf-field input[type="password"],#createuser .acf-field .acf-field input[type="number"],#createuser .acf-field .acf-field input[type="search"],#createuser .acf-field .acf-field input[type="email"],#createuser .acf-field .acf-field input[type="url"],#createuser .acf-field .acf-field textarea,#createuser .acf-field .acf-field select{max-width:none}#registerform h2{margin:1em 0}#registerform .acf-field{margin-top:0}#registerform .acf-field .acf-label{margin-bottom:0}#registerform .acf-field .acf-label label{font-weight:normal;line-height:1.5}#registerform p.submit{text-align:right}#acf-term-fields{padding-right:5%}#acf-term-fields>.acf-field>.acf-label{margin:0}#acf-term-fields>.acf-field>.acf-label label{font-size:12px;font-weight:normal}p.submit .spinner,p.submit .acf-spinner{vertical-align:top;float:none;margin:4px 4px 0}#edittag .acf-fields.-left>.acf-field{padding-left:220px}#edittag .acf-fields.-left>.acf-field:before{width:209px}#edittag .acf-fields.-left>.acf-field>.acf-label{width:220px;margin-left:-220px;padding:0 10px}#edittag .acf-fields.-left>.acf-field>.acf-input{padding:0}#edittag>.acf-fields.-left{width:96%}#edittag>.acf-fields.-left>.acf-field>.acf-label{padding-left:0}.editcomment td:first-child{white-space:nowrap;width:131px}#widgets-right .widget .acf-field .description{padding-left:0;padding-right:0}.acf-widget-fields>.acf-field .acf-label{margin-bottom:5px}.acf-widget-fields>.acf-field .acf-label label{font-weight:normal;margin:0}.acf-menu-settings{border-top:1px solid #eee;margin-top:2em}.acf-menu-settings.-seamless{border-top:none;margin-top:15px}.acf-menu-settings.-seamless>h2{display:none}.acf-menu-settings .list li{display:block;margin-bottom:0}.acf-fields.acf-menu-item-fields{clear:both;padding-top:1px}.acf-fields.acf-menu-item-fields>.acf-field{margin:5px 0;padding-right:10px}.acf-fields.acf-menu-item-fields>.acf-field .acf-label{margin-bottom:0}.acf-fields.acf-menu-item-fields>.acf-field .acf-label label{font-style:italic;font-weight:normal}#post .compat-attachment-fields .compat-field-acf-form-data{display:none}#post .compat-attachment-fields,#post .compat-attachment-fields>tbody,#post .compat-attachment-fields>tbody>tr,#post .compat-attachment-fields>tbody>tr>th,#post .compat-attachment-fields>tbody>tr>td{display:block}#post .compat-attachment-fields>tbody>.acf-field{margin:15px 0}#post .compat-attachment-fields>tbody>.acf-field>.acf-label{margin:0}#post .compat-attachment-fields>tbody>.acf-field>.acf-label label{margin:0;padding:0}#post .compat-attachment-fields>tbody>.acf-field>.acf-label label p{margin:0 0 3px !important}#post .compat-attachment-fields>tbody>.acf-field>.acf-input{margin:0}.media-modal .compat-attachment-fields td.acf-input table{display:table;table-layout:auto}.media-modal .compat-attachment-fields td.acf-input table tbody{display:table-row-group}.media-modal .compat-attachment-fields td.acf-input table tr{display:table-row}.media-modal .compat-attachment-fields td.acf-input table td,.media-modal .compat-attachment-fields td.acf-input table th{display:table-cell}.media-modal .compat-attachment-fields>tbody>.acf-field{margin:5px 0}.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-label{min-width:30%;margin:0;padding:0;float:left;text-align:right;display:block;float:left}.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-label>label{padding-top:6px;margin:0;color:#666666;font-weight:400;line-height:16px}.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-input{width:65%;margin:0;padding:0;float:right;display:block}.media-modal .compat-attachment-fields>tbody>.acf-field p.description{margin:0}.acf-selection-error{background:#ffebe8;border:1px solid #c00;border-radius:3px;padding:8px;margin:20px 0 0}.acf-selection-error .selection-error-label{background:#CC0000;border-radius:3px;color:#fff;font-weight:bold;margin-right:8px;padding:2px 4px}.acf-selection-error .selection-error-message{color:#b44;display:block;padding-top:8px;word-wrap:break-word;white-space:pre-wrap}.media-modal .attachment.acf-disabled .thumbnail{opacity:0.25 !important}.media-modal .attachment.acf-disabled .attachment-preview:before{background:rgba(0,0,0,0.15);z-index:1;position:relative}.media-modal .compat-field-acf-form-data,.media-modal .compat-field-acf-blank{display:none !important}.media-modal .upload-error-message{white-space:pre-wrap}.media-modal .acf-required{padding:0 !important;margin:0 !important;float:none !important;color:#f00 !important}.media-modal .media-sidebar .compat-item{padding-bottom:20px}@media (max-width: 900px){.media-modal .setting span,.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-label{width:98%;float:none;text-align:left;min-height:0;padding:0}.media-modal .setting input,.media-modal .setting textarea,.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-input{float:none;height:auto;max-width:none;width:98%}}.media-modal .acf-expand-details{float:right;padding:8px 10px;margin-right:6px;font-size:13px;height:18px;line-height:18px;color:#666;text-decoration:none}.media-modal .acf-expand-details:focus,.media-modal .acf-expand-details:active{outline:0 none;box-shadow:none;color:#666}.media-modal .acf-expand-details:hover{color:#000}.media-modal .acf-expand-details .is-open{display:none}.media-modal .acf-expand-details .is-closed{display:block}@media (max-width: 640px){.media-modal .acf-expand-details{display:none}}.media-modal.acf-expanded .acf-expand-details .is-open{display:block}.media-modal.acf-expanded .acf-expand-details .is-closed{display:none}.media-modal.acf-expanded .attachments-browser .media-toolbar,.media-modal.acf-expanded .attachments-browser .attachments{right:740px}.media-modal.acf-expanded .media-sidebar{width:708px}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail{float:left;max-height:none}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail img{max-width:100%;max-height:200px}.media-modal.acf-expanded .media-sidebar .attachment-info .details{float:right}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail,.media-modal.acf-expanded .media-sidebar .attachment-details .setting .name,.media-modal.acf-expanded .media-sidebar .compat-attachment-fields>tbody>.acf-field>.acf-label{min-width:20%;margin-right:0}.media-modal.acf-expanded .media-sidebar .attachment-info .details,.media-modal.acf-expanded .media-sidebar .attachment-details .setting input,.media-modal.acf-expanded .media-sidebar .attachment-details .setting textarea,.media-modal.acf-expanded .media-sidebar .attachment-details .setting+.description,.media-modal.acf-expanded .media-sidebar .compat-attachment-fields>tbody>.acf-field>.acf-input{min-width:77%}@media (max-width: 900px){.media-modal.acf-expanded .attachments-browser .media-toolbar{display:none}.media-modal.acf-expanded .attachments{display:none}.media-modal.acf-expanded .media-sidebar{width:auto;max-width:none !important;bottom:0 !important}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail{min-width:0;max-width:none;width:30%}.media-modal.acf-expanded .media-sidebar .attachment-info .details{min-width:0;max-width:none;width:67%}}@media (max-width: 640px){.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail,.media-modal.acf-expanded .media-sidebar .attachment-info .details{width:100%}}.acf-media-modal .media-embed .setting.align,.acf-media-modal .media-embed .setting.link-to{display:none}.acf-media-modal.-edit{left:15%;right:15%;top:100px;bottom:100px}.acf-media-modal.-edit .media-frame-menu,.acf-media-modal.-edit .media-frame-router,.acf-media-modal.-edit .media-frame-content .attachments,.acf-media-modal.-edit .media-frame-content .media-toolbar{display:none}.acf-media-modal.-edit .media-frame-title,.acf-media-modal.-edit .media-frame-content,.acf-media-modal.-edit .media-frame-toolbar,.acf-media-modal.-edit .media-sidebar{width:auto;left:0;right:0}.acf-media-modal.-edit .media-frame-content{top:50px}.acf-media-modal.-edit .media-frame-title{border-bottom:1px solid #DFDFDF;box-shadow:0 4px 4px -4px rgba(0,0,0,0.1)}.acf-media-modal.-edit .media-sidebar{padding:0 16px}.acf-media-modal.-edit .media-sidebar .attachment-details{overflow:visible}.acf-media-modal.-edit .media-sidebar .attachment-details>h3,.acf-media-modal.-edit .media-sidebar .attachment-details>h2{display:none}.acf-media-modal.-edit .media-sidebar .attachment-details .attachment-info{background:#fff;border-bottom:#dddddd solid 1px;padding:16px;margin:0 -16px 16px}.acf-media-modal.-edit .media-sidebar .attachment-details .thumbnail{margin:0 16px 0 0}.acf-media-modal.-edit .media-sidebar .attachment-details .setting{margin:0 0 5px}.acf-media-modal.-edit .media-sidebar .attachment-details .setting span{margin:0}.acf-media-modal.-edit .media-sidebar .compat-attachment-fields>tbody>.acf-field{margin:0 0 5px}.acf-media-modal.-edit .media-sidebar .compat-attachment-fields>tbody>.acf-field p.description{margin-top:3px}.acf-media-modal.-edit .media-sidebar .media-types-required-info{display:none}@media (max-width: 900px){.acf-media-modal.-edit{top:30px;right:30px;bottom:30px;left:30px}}@media (max-width: 640px){.acf-media-modal.-edit{top:0;right:0;bottom:0;left:0}}@media (max-width: 480px){.acf-media-modal.-edit .media-frame-content{top:40px}}.acf-temp-remove{position:relative;opacity:1;-webkit-transition:all 0.25s ease;-moz-transition:all 0.25s ease;-o-transition:all 0.25s ease;transition:all 0.25s ease;overflow:hidden}.acf-temp-remove:after{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.hidden-by-conditional-logic{display:none !important}.hidden-by-conditional-logic.appear-empty{display:table-cell !important}.hidden-by-conditional-logic.appear-empty .acf-input{display:none !important}.acf-postbox.acf-hidden{display:none !important}.acf-attention{transition:border 0.250s ease-out}.acf-attention.-focused{border:#23282d solid 1px !important;transition:none}tr.acf-attention{transition:box-shadow 0.250s ease-out;position:relative}tr.acf-attention.-focused{box-shadow:#23282d 0 0 0px 1px !important}#editor .edit-post-layout__metaboxes{padding:0}#editor .edit-post-layout__metaboxes .edit-post-meta-boxes-area{margin:0}#editor .metabox-location-side .postbox-container{float:none}#editor .postbox{color:#444}#editor .postbox>.postbox-header .hndle{border-bottom:none}#editor .postbox>.postbox-header .hndle:hover{background:transparent}#editor .postbox>.postbox-header .handle-actions .handle-order-higher,#editor .postbox>.postbox-header .handle-actions .handle-order-lower{width:1.62rem}#editor .postbox>.postbox-header .handle-actions .acf-hndle-cog{height:44px;line-height:44px}#editor .postbox>.postbox-header:hover{background:#f0f0f0}#editor .postbox.closed:last-child>.postbox-header{border-bottom:none}#editor .postbox:last-child>.inside{border-bottom:none}#editor .block-editor-writing-flow__click-redirect{min-height:50px}body.is-dragging-metaboxes #acf_after_title-sortables{outline:3px dashed #646970;display:flow-root;min-height:60px;margin-bottom:3px !important} diff --git a/assets/images/icon-upgrade-pro.svg b/assets/images/icon-upgrade-pro.svg new file mode 100644 index 0000000..016e8e3 --- /dev/null +++ b/assets/images/icon-upgrade-pro.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/assets/js/acf-field-group.min.js b/assets/js/acf-field-group.min.js deleted file mode 100644 index a164532..0000000 --- a/assets/js/acf-field-group.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,t){var i=new acf.Model({id:"fieldGroupManager",events:{"submit #post":"onSubmit",'click a[href="#"]':"onClick","click .submitdelete":"onClickTrash"},filters:{find_fields_args:"filterFindFieldArgs"},onSubmit:function(t,i){var n=e("#titlewrap #title");n.val()||(t.preventDefault(),acf.unlockForm(i),alert(acf.__("Field group title is required")),n.focus())},onClick:function(e){e.preventDefault()},onClickTrash:function(e){var t;confirm(acf.__("Move to trash. Are you sure?"))||e.preventDefault()},filterFindFieldArgs:function(e){return e.visible=!0,e}}),n=new acf.Model({id:"screenOptionsManager",wait:"prepare",events:{change:"onChange"},initialize:function(){var t=e("#adv-settings"),i=e("#acf-append-show-on-screen");t.find(".metabox-prefs").append(i.html()),t.find(".metabox-prefs br").remove(),i.remove(),this.$el=e("#acf-field-key-hide"),this.render()},isChecked:function(){return this.$el.prop("checked")},onChange:function(e,t){var i=this.isChecked()?1:0;acf.updateUserSetting("show_field_keys",i),this.render()},render:function(){this.isChecked()?e("#acf-field-group-fields").addClass("show-field-keys"):e("#acf-field-group-fields").removeClass("show-field-keys")}}),a=new acf.Model({actions:{new_field:"onNewField"},onNewField:function(t){if(t.has("append")){var i=t.get("append"),n=t.$el.siblings('[data-name="'+i+'"]').first();if(n.length){var a=n.children(".acf-input"),l=a.children("ul");l.length||(a.wrapInner('
        '),l=a.children("ul"));var c=t.$(".acf-input").html(),o=e("
      • "+c+"
      • ");l.append(o),l.attr("data-cols",l.children().length),t.remove()}}}})}(jQuery),function(e,t){acf.FieldObject=acf.Model.extend({eventScope:".acf-field-object",events:{"click .edit-field":"onClickEdit","click .delete-field":"onClickDelete","click .duplicate-field":"duplicate","click .move-field":"move","change .field-type":"onChangeType","change .field-required":"onChangeRequired","blur .field-label":"onChangeLabel","blur .field-name":"onChangeName",change:"onChange",changed:"onChanged"},data:{id:0,key:"",type:""},setup:function(e){this.$el=e,this.inherit(e),this.prop("ID"),this.prop("parent"),this.prop("menu_order")},$input:function(t){return e("#"+this.getInputId()+"-"+t)},$meta:function(){return this.$(".meta:first")},$handle:function(){return this.$(".handle:first")},$settings:function(){return this.$(".settings:first")},$setting:function(e){return this.$(".acf-field-settings:first > .acf-field-setting-"+e)},getParent:function(){return acf.getFieldObjects({child:this.$el,limit:1}).pop()},getParents:function(){return acf.getFieldObjects({child:this.$el})},getFields:function(){return acf.getFieldObjects({parent:this.$el})},getInputName:function(){return"acf_fields["+this.get("id")+"]"},getInputId:function(){return"acf_fields-"+this.get("id")},newInput:function(t,i){var n=this.getInputId(),a=this.getInputName();t&&(n+="-"+t,a+="["+t+"]");var l=e("").attr({id:n,name:a,value:i});return this.$("> .meta").append(l),l},getProp:function(e){if(this.has(e))return this.get(e);var t=this.$input(e),i=t.length?t.val():null;return this.set(e,i,!0),i},setProp:function(e,t){var i=this.$input(e),n=i.val();return i.length||(i=this.newInput(e,t)),null===t?i.remove():i.val(t),this.has(e)?this.set(e,t):this.set(e,t,!0),this},prop:function(e,i){return i!==t?this.setProp(e,i):this.getProp(e)},props:function(e){Object.keys(e).map((function(t){this.setProp(t,e[t])}),this)},getLabel:function(){var e=this.prop("label");return""===e&&(e=acf.__("(no label)")),e},getName:function(){return this.prop("name")},getType:function(){return this.prop("type")},getTypeLabel:function(){var e=this.prop("type"),t=acf.get("fieldTypes");return t[e]?t[e].label:e},getKey:function(){return this.prop("key")},initialize:function(){},render:function(){var e=this.$(".handle:first"),t=this.prop("menu_order"),i=this.getLabel(),n=this.prop("name"),a=this.getTypeLabel(),l=this.prop("key"),c=this.$input("required").prop("checked");e.find(".acf-icon").html(parseInt(t)+1),c&&(i+=' *'),e.find(".li-field-label strong a").html(i),e.find(".li-field-name").text(n),e.find(".li-field-type").text(a),e.find(".li-field-key").text(l),acf.doAction("render_field_object",this)},refresh:function(){acf.doAction("refresh_field_object",this)},isOpen:function(){return this.$el.hasClass("open")},onClickEdit:function(e){this.isOpen()?this.close():this.open()},open:function(){var e=this.$el.children(".settings");e.slideDown(),this.$el.addClass("open"),acf.doAction("open_field_object",this),this.trigger("openFieldObject"),acf.doAction("show",e)},close:function(){var e=this.$el.children(".settings");e.slideUp(),this.$el.removeClass("open"),acf.doAction("close_field_object",this),this.trigger("closeFieldObject"),acf.doAction("hide",e)},serialize:function(){return acf.serialize(this.$el,this.getInputName())},save:function(e){var t;e=e||"settings","settings"!==this.getProp("save")&&(this.setProp("save",e),this.$el.attr("data-save",e),acf.doAction("save_field_object",this,e))},submit:function(){var e=this.getInputName(),t=this.get("save");this.isOpen()&&this.close(),"settings"==t||("meta"==t?this.$('> .settings [name^="'+e+'"]').remove():this.$('[name^="'+e+'"]').remove()),acf.doAction("submit_field_object",this)},onChange:function(e,t){this.save(),acf.doAction("change_field_object",this)},onChanged:function(e,t,i,n){"save"!=i&&(["menu_order","parent"].indexOf(i)>-1?this.save("meta"):this.save(),["menu_order","label","required","name","type","key"].indexOf(i)>-1&&this.render(),acf.doAction("change_field_object_"+i,this,n))},onChangeLabel:function(e,t){var i=t.val();if(this.set("label",i),""==this.prop("name")){var n=acf.applyFilters("generate_field_object_name",acf.strSanitize(i),this);this.prop("name",n)}},onChangeName:function(e,t){var i=t.val();this.set("name",i),"field_"===i.substr(0,6)&&alert(acf.__('The string "field_" may not be used at the start of a field name'))},onChangeRequired:function(e,t){var i=t.prop("checked")?1:0;this.set("required",i)},delete:function(t){t=acf.parseArgs(t,{animate:!0});var i=this.prop("ID");if(i){var n=e("#_acf_delete_fields"),a=n.val()+"|"+i;n.val(a)}acf.doAction("delete_field_object",this),t.animate?this.removeAnimate():this.remove()},onClickDelete:function(e,t){if(e.shiftKey)return this.delete();this.$el.addClass("-hover");var i=acf.newTooltip({confirmRemove:!0,target:t,context:this,confirm:function(){this.delete()},cancel:function(){this.$el.removeClass("-hover")}})},removeAnimate:function(){var e=this,t=this.$el.parent(),i=acf.findFieldObjects({sibling:this.$el});acf.remove({target:this.$el,endHeight:i.length?0:50,complete:function(){e.remove(),acf.doAction("removed_field_object",e,t)}}),acf.doAction("remove_field_object",e,t)},duplicate:function(){var e=acf.uniqid("field_"),t=acf.duplicate({target:this.$el,search:this.get("id"),replace:e});t.attr("data-key",e);var i=acf.getFieldObject(t);this.isOpen()?this.close():i.open();var n=i.$setting("label input");setTimeout((function(){n.focus()}),251);var a=i.prop("label"),l=i.prop("name"),c=l.split("_").pop(),o=acf.__("copy");if(acf.isNumeric(c)){var r=1*c+1;a=a.replace(c,r),l=l.replace(c,r)}else if(0===c.indexOf(o)){var r;r=(r=1*c.replace(o,""))?r+1:2,a=a.replace(c,o+r),l=l.replace(c,o+r)}else a+=" ("+o+")",l+="_"+o;i.prop("ID",0),i.prop("label",a),i.prop("name",l),i.prop("key",e),acf.doAction("duplicate_field_object",this,i),acf.doAction("append_field_object",i)},wipe:function(){var e=this.get("id"),t=this.get("key"),i=acf.uniqid("field_");acf.rename({target:this.$el,search:e,replace:i}),this.set("id",i),this.set("prevId",e),this.set("prevKey",t),this.prop("key",i),this.prop("ID",0),this.$el.attr("data-key",i),this.$el.attr("data-id",i),acf.doAction("wipe_field_object",this)},move:function(){var t=function(e){return"settings"==e.get("save")},i=t(this);if(i||acf.getFieldObjects({parent:this.$el}).map((function(e){i=t(e)||e.changed})),i)alert(acf.__("This field cannot be moved until its changes have been saved"));else{var n=this.prop("ID"),a=this,l=!1,c=function(){l=acf.newPopup({title:acf.__("Move Custom Field"),loading:!0,width:"300px"});var t={action:"acf/field_group/move_field",field_id:n};e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"html",success:o})},o=function(e){l.loading(!1),l.content(e),l.on("submit","form",r)},r=function(t,i){t.preventDefault(),acf.startButtonLoading(l.$(".button"));var a={action:"acf/field_group/move_field",field_id:n,field_group_id:l.$("select").val()};e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"html",success:d})},d=function(e){l.content(e),a.removeAnimate()};c()}},onChangeType:function(e,t){this.changeTimeout&&clearTimeout(this.changeTimeout),this.changeTimeout=this.setTimeout((function(){this.changeType(t.val())}),300)},changeType:function(t){var i=this.prop("type"),n=acf.strSlugify("acf-field-object-"+i),a=acf.strSlugify("acf-field-object-"+t);this.$el.removeClass(n).addClass(a),this.$el.attr("data-type",t),this.$el.data("type",t),this.has("xhr")&&this.get("xhr").abort();var l=this.$("> .settings > table > tbody"),c=l.children('[data-setting="'+i+'"]');if(this.set("settings-"+i,c),c.detach(),this.has("settings-"+t)){var o=this.get("settings-"+t);return this.$setting("conditional_logic").before(o),void this.set("type",t)}var r=e('
        ');this.$setting("conditional_logic").before(r);var d={action:"acf/field_group/render_field_settings",field:this.serialize(),prefix:this.getInputName()},s=e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(d),type:"post",dataType:"html",context:this,success:function(e){e&&(r.after(e),acf.doAction("append",l))},complete:function(){r.remove(),this.set("type",t)}});this.set("xhr",s)},updateParent:function(){var e=acf.get("post_id"),t=this.getParent();t&&(e=parseInt(t.prop("ID"))||t.prop("key")),this.prop("parent",e)}})}(jQuery),function(e,t){var i=function(e){return acf.strPascalCase(e||"")+"FieldSetting"};acf.registerFieldSetting=function(e){var t=e.prototype,n=i(t.type+" "+t.name);this.models[n]=e},acf.newFieldSetting=function(e){var t=e.get("setting")||"",n=e.get("name")||"",a=i(t+" "+n),l=acf.models[a]||null,c;return null!==l&&new l(e)},acf.getFieldSetting=function(e){return e instanceof jQuery&&(e=acf.getField(e)),e.setting};var n=new acf.Model({actions:{new_field:"onNewField"},onNewField:function(e){e.setting=acf.newFieldSetting(e)}});acf.FieldSetting=acf.Model.extend({field:!1,type:"",name:"",wait:"ready",eventScope:".acf-field",events:{change:"render"},setup:function(t){var i=t.$el;this.$el=i,this.field=t,this.$fieldObject=i.closest(".acf-field-object"),this.fieldObject=acf.getFieldObject(this.$fieldObject),e.extend(this.data,t.data)},initialize:function(){this.render()},render:function(){}});var a=acf.FieldSetting.extend({type:"",name:"",render:function(){var e=this.$('input[type="radio"]:checked');"other"!=e.val()&&this.$('input[type="text"]').val(e.val())}}),l=a.extend({type:"date_picker",name:"display_format"}),c=a.extend({type:"date_picker",name:"return_format"});acf.registerFieldSetting(l),acf.registerFieldSetting(c);var o=a.extend({type:"date_time_picker",name:"display_format"}),r=a.extend({type:"date_time_picker",name:"return_format"});acf.registerFieldSetting(o),acf.registerFieldSetting(r);var d=a.extend({type:"time_picker",name:"display_format"}),s=a.extend({name:"time_picker",name:"return_format"});acf.registerFieldSetting(d),acf.registerFieldSetting(s)}(jQuery),function(e,t){var i=acf.FieldSetting.extend({type:"",name:"conditional_logic",events:{"change .conditions-toggle":"onChangeToggle","click .add-conditional-group":"onClickAddGroup","focus .condition-rule-field":"onFocusField","change .condition-rule-field":"onChangeField","change .condition-rule-operator":"onChangeOperator","click .add-conditional-rule":"onClickAdd","click .remove-conditional-rule":"onClickRemove"},$rule:!1,scope:function(e){return this.$rule=e,this},ruleData:function(e,t){return this.$rule.data.apply(this.$rule,arguments)},$input:function(e){return this.$rule.find(".condition-rule-"+e)},$td:function(e){return this.$rule.find("td."+e)},$toggle:function(){return this.$(".conditions-toggle")},$control:function(){return this.$(".rule-groups")},$groups:function(){return this.$(".rule-group")},$rules:function(){return this.$(".rule")},open:function(){var e=this.$control();e.show(),acf.enable(e)},close:function(){var e=this.$control();e.hide(),acf.disable(e)},render:function(){this.$toggle().prop("checked")?(this.renderRules(),this.open()):this.close()},renderRules:function(){var t=this;this.$rules().each((function(){t.renderRule(e(this))}))},renderRule:function(e){this.scope(e),this.renderField(),this.renderOperator(),this.renderValue()},renderField:function(){var e=[],t=[],i=this.fieldObject.cid,n=this.$input("field");acf.getFieldObjects().map((function(t){var n={id:t.getKey(),text:t.getLabel()},a;t.cid===i&&(n.text+=acf.__("(this field)"),n.disabled=!0),acf.getConditionTypes({fieldType:t.getType()}).length||(n.disabled=!0);var l=t.getParents().length;n.text="- ".repeat(l)+n.text,e.push(n)})),e.length||e.push({id:"",text:acf.__("No toggle fields available")}),acf.renderSelect(n,e),this.ruleData("field",n.val())},renderOperator:function(){if(this.ruleData("field")){var e=this.$input("operator"),t=e.val(),i=[];null===e.val()&&acf.renderSelect(e,[{id:this.ruleData("operator"),text:""}]);var n=acf.findFieldObject(this.ruleData("field")),a=acf.getFieldObject(n),l;acf.getConditionTypes({fieldType:a.getType()}).map((function(e){i.push({id:e.prototype.operator,text:e.prototype.label})})),acf.renderSelect(e,i),this.ruleData("operator",e.val())}},renderValue:function(){if(this.ruleData("field")&&this.ruleData("operator")){var t=this.$input("value"),i=this.$td("value"),n=t.val(),a=acf.findFieldObject(this.ruleData("field")),l=acf.getFieldObject(a),c,o,r=acf.getConditionTypes({fieldType:l.getType(),operator:this.ruleData("operator")})[0].prototype.choices(l);if(r instanceof Array){var d=e("");acf.renderSelect(d,r)}else var d=e(r);t.detach(),i.html(d),setTimeout((function(){["class","name","id"].map((function(e){d.attr(e,t.attr(e))}))}),0),d.prop("disabled")||acf.val(d,n,!0),this.ruleData("value",d.val())}},onChangeToggle:function(){this.render()},onClickAddGroup:function(e,t){this.addGroup()},addGroup:function(){var e=this.$(".rule-group:last"),t=acf.duplicate(e);t.find("h4").text(acf.__("or")),t.find("tr").not(":first").remove(),this.fieldObject.save()},onFocusField:function(e,t){this.renderField()},onChangeField:function(e,t){this.scope(t.closest(".rule")),this.ruleData("field",t.val()),this.renderOperator(),this.renderValue()},onChangeOperator:function(e,t){this.scope(t.closest(".rule")),this.ruleData("operator",t.val()),this.renderValue()},onClickAdd:function(e,t){var i=acf.duplicate(t.closest(".rule"));this.renderRule(i)},onClickRemove:function(e,t){var i=t.closest(".rule");this.fieldObject.save(),0==i.siblings(".rule").length&&i.closest(".rule-group").remove(),i.remove()}});acf.registerFieldSetting(i);var n=new acf.Model({actions:{duplicate_field_objects:"onDuplicateFieldObjects"},onDuplicateFieldObjects:function(t,i,n){var a={},l=e();t.map((function(e){a[e.get("prevKey")]=e.get("key"),l=l.add(e.$(".condition-rule-field"))})),l.each((function(){var t=e(this),i=t.val();i&&a[i]&&(t.find("option:selected").attr("value",a[i]),t.val(a[i]))}))}})}(jQuery),function(e,t){acf.findFieldObject=function(e){return acf.findFieldObjects({key:e,limit:1})},acf.findFieldObjects=function(t){t=t||{};var i=".acf-field-object",n=!1;return(t=acf.parseArgs(t,{id:"",key:"",type:"",limit:!1,list:null,parent:!1,sibling:!1,child:!1})).id&&(i+='[data-id="'+t.id+'"]'),t.key&&(i+='[data-key="'+t.key+'"]'),t.type&&(i+='[data-type="'+t.type+'"]'),n=t.list?t.list.children(i):t.parent?t.parent.find(i):t.sibling?t.sibling.siblings(i):t.child?t.child.parents(i):e(i),t.limit&&(n=n.slice(0,t.limit)),n},acf.getFieldObject=function(e){"string"==typeof e&&(e=acf.findFieldObject(e));var t=e.data("acf");return t||(t=acf.newFieldObject(e)),t},acf.getFieldObjects=function(t){var i=acf.findFieldObjects(t),n=[];return i.each((function(){var t=acf.getFieldObject(e(this));n.push(t)})),n},acf.newFieldObject=function(e){var t=new acf.FieldObject(e);return acf.doAction("new_field_object",t),t};var i=new acf.Model({priority:5,initialize:function(){var e;["prepare","ready","append","remove"].map((function(e){this.addFieldActions(e)}),this)},addFieldActions:function(e){var t=e+"_field_objects",i=e+"_field_object",n=e+"FieldObject",a=function(e){var i=acf.getFieldObjects({parent:e});if(i.length){var n=acf.arrayArgs(arguments);n.splice(0,1,t,i),acf.doAction.apply(null,n)}},l=function(e){var t=acf.arrayArgs(arguments);t.unshift(i),e.map((function(e){t[1]=e,acf.doAction.apply(null,t)}))},c=function(e){var t=acf.arrayArgs(arguments);t.unshift(i);var a=["type","name","key"];a.map((function(n){t[0]=i+"/"+n+"="+e.get(n),acf.doAction.apply(null,t)})),t.splice(0,2),e.trigger(n,t)};acf.addAction(e,a,5),acf.addAction(t,l,5),acf.addAction(i,c,5)}}),n=new acf.Model({id:"fieldManager",events:{"submit #post":"onSubmit","mouseenter .acf-field-list":"onHoverSortable","click .add-field":"onClickAdd"},actions:{removed_field_object:"onRemovedField",sortstop_field_object:"onReorderField",delete_field_object:"onDeleteField",change_field_object_type:"onChangeFieldType",duplicate_field_object:"onDuplicateField"},onSubmit:function(e,t){var i;acf.getFieldObjects().map((function(e){e.submit()}))},setFieldMenuOrder:function(e){this.renderFields(e.$el.parent())},onHoverSortable:function(e,t){t.hasClass("ui-sortable")||t.sortable({handle:".acf-sortable-handle",connectWith:".acf-field-list",start:function(e,i){var n=acf.getFieldObject(i.item);i.placeholder.height(i.item.height()),acf.doAction("sortstart_field_object",n,t)},update:function(e,i){var n=acf.getFieldObject(i.item);acf.doAction("sortstop_field_object",n,t)}})},onRemovedField:function(e,t){this.renderFields(t)},onReorderField:function(e,t){e.updateParent(),this.renderFields(t)},onDeleteField:function(e){e.getFields().map((function(e){e.delete({animate:!1})}))},onChangeFieldType:function(e){},onDuplicateField:function(e,t){var i=t.getFields();i.length&&(i.map((function(e){e.wipe(),e.updateParent()})),acf.doAction("duplicate_field_objects",i,t,e)),this.setFieldMenuOrder(t)},renderFields:function(e){var t=acf.getFieldObjects({list:e});t.length?(e.removeClass("-empty"),t.map((function(e,t){e.prop("menu_order",t)}))):e.addClass("-empty")},onClickAdd:function(e,t){var i=t.closest(".acf-tfoot").siblings(".acf-field-list");this.addField(i)},addField:function(t){var i=e("#tmpl-acf-field").html(),n=e(i),a=n.data("id"),l=acf.uniqid("field_"),c=acf.duplicate({target:n,search:a,replace:l,append:function(e,i){t.append(i)}}),o=acf.getFieldObject(c);o.prop("key",l),o.prop("ID",0),o.prop("label",""),o.prop("name",""),c.attr("data-key",l),c.attr("data-id",l),o.updateParent();var r=o.$input("label");setTimeout((function(){r.focus()}),251),o.open(),this.renderFields(t),acf.doAction("add_field_object",o),acf.doAction("append_field_object",o)}})}(jQuery),function(e,t){var i=new acf.Model({id:"locationManager",wait:"ready",events:{"click .add-location-rule":"onClickAddRule","click .add-location-group":"onClickAddGroup","click .remove-location-rule":"onClickRemoveRule","change .refresh-location-rule":"onChangeRemoveRule"},initialize:function(){this.$el=e("#acf-field-group-locations")},onClickAddRule:function(e,t){this.addRule(t.closest("tr"))},onClickRemoveRule:function(e,t){this.removeRule(t.closest("tr"))},onChangeRemoveRule:function(e,t){this.changeRule(t.closest("tr"))},onClickAddGroup:function(e,t){this.addGroup()},addRule:function(e){acf.duplicate(e)},removeRule:function(e){0==e.siblings("tr").length?e.closest(".rule-group").remove():e.remove()},changeRule:function(t){var i=t.closest(".rule-group"),n=t.find("td.param select").attr("name").replace("[param]",""),a={action:"acf/field_group/render_location_rule"};a.rule=acf.serialize(t,n),a.rule.id=t.data("id"),a.rule.group=i.data("id"),acf.disable(t.find("td.value")),e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"html",success:function(e){e&&t.replaceWith(e)}})},addGroup:function(){var e=this.$(".rule-group:last");$group2=acf.duplicate(e),$group2.find("h4").text(acf.__("or")),$group2.find("tr").not(":first").remove()}})}(jQuery),function(e,t){var i=acf.getCompatibility(acf);i.field_group={save_field:function(e,i){i=i!==t?i:"settings",acf.getFieldObject(e).save(i)},delete_field:function(e,i){i=i===t||i,acf.getFieldObject(e).delete({animate:i})},update_field_meta:function(e,t,i){acf.getFieldObject(e).prop(t,i)},delete_field_meta:function(e,t){acf.getFieldObject(e).prop(t,null)}},i.field_group.field_object=acf.model.extend({type:"",o:{},$field:null,$settings:null,tag:function(e){var t=this.type,i=e.split("_");return i.splice(1,0,"field"),e=i.join("_"),t&&(e+="/type="+t),e},selector:function(){var e=".acf-field-object",t=this.type;return t&&(e+="-"+t,e=acf.str_replace("_","-",e)),e},_add_action:function(e,t){var i=this;acf.add_action(this.tag(e),(function(e){i.set("$field",e),i[t].apply(i,arguments)}))},_add_filter:function(e,t){var i=this;acf.add_filter(this.tag(e),(function(e){i.set("$field",e),i[t].apply(i,arguments)}))},_add_event:function(t,i){var n=this,a=t.substr(0,t.indexOf(" ")),l=t.substr(t.indexOf(" ")+1),c=this.selector();e(document).on(a,c+" "+l,(function(t){t.$el=e(this),t.$field=t.$el.closest(".acf-field-object"),n.set("$field",t.$field),n[i].apply(n,[t])}))},_set_$field:function(){this.o=this.$field.data(),this.$settings=this.$field.find("> .settings > table > tbody"),this.focus()},focus:function(){},setting:function(e){return this.$settings.find("> .acf-field-setting-"+e)}});var n=new acf.Model({actions:{open_field_object:"onOpenFieldObject",close_field_object:"onCloseFieldObject",add_field_object:"onAddFieldObject",duplicate_field_object:"onDuplicateFieldObject",delete_field_object:"onDeleteFieldObject",change_field_object_type:"onChangeFieldObjectType",change_field_object_label:"onChangeFieldObjectLabel",change_field_object_name:"onChangeFieldObjectName",change_field_object_parent:"onChangeFieldObjectParent",sortstop_field_object:"onChangeFieldObjectParent"},onOpenFieldObject:function(e){acf.doAction("open_field",e.$el),acf.doAction("open_field/type="+e.get("type"),e.$el),acf.doAction("render_field_settings",e.$el),acf.doAction("render_field_settings/type="+e.get("type"),e.$el)},onCloseFieldObject:function(e){acf.doAction("close_field",e.$el),acf.doAction("close_field/type="+e.get("type"),e.$el)},onAddFieldObject:function(e){acf.doAction("add_field",e.$el),acf.doAction("add_field/type="+e.get("type"),e.$el)},onDuplicateFieldObject:function(e){acf.doAction("duplicate_field",e.$el),acf.doAction("duplicate_field/type="+e.get("type"),e.$el)},onDeleteFieldObject:function(e){acf.doAction("delete_field",e.$el),acf.doAction("delete_field/type="+e.get("type"),e.$el)},onChangeFieldObjectType:function(e){acf.doAction("change_field_type",e.$el),acf.doAction("change_field_type/type="+e.get("type"),e.$el),acf.doAction("render_field_settings",e.$el),acf.doAction("render_field_settings/type="+e.get("type"),e.$el)},onChangeFieldObjectLabel:function(e){acf.doAction("change_field_label",e.$el),acf.doAction("change_field_label/type="+e.get("type"),e.$el)},onChangeFieldObjectName:function(e){acf.doAction("change_field_name",e.$el),acf.doAction("change_field_name/type="+e.get("type"),e.$el)},onChangeFieldObjectParent:function(e){acf.doAction("update_field_parent",e.$el)}})}(jQuery); \ No newline at end of file diff --git a/assets/js/acf-input.min.js b/assets/js/acf-input.min.js deleted file mode 100644 index 2155aeb..0000000 --- a/assets/js/acf-input.min.js +++ /dev/null @@ -1,4 +0,0 @@ -!function(t,e){var i=[];acf.Field=acf.Model.extend({type:"",eventScope:".acf-field",wait:"ready",setup:function(t){this.$el=t,this.inherit(t),this.inherit(this.$control())},val:function(t){return t!==e?this.setValue(t):this.prop("disabled")?null:this.getValue()},getValue:function(){return this.$input().val()},setValue:function(t){return acf.val(this.$input(),t)},__:function(t){return acf._e(this.type,t)},$control:function(){return!1},$input:function(){return this.$("[name]:first")},$inputWrap:function(){return this.$(".acf-input:first")},$labelWrap:function(){return this.$(".acf-label:first")},getInputName:function(){return this.$input().attr("name")||""},parent:function(){var t=this.parents();return!!t.length&&t[0]},parents:function(){var t=this.$el.parents(".acf-field"),e;return acf.getFields(t)},show:function(t,e){var i=acf.show(this.$el,t);return i&&(this.prop("hidden",!1),acf.doAction("show_field",this,e)),i},hide:function(t,e){var i=acf.hide(this.$el,t);return i&&(this.prop("hidden",!0),acf.doAction("hide_field",this,e)),i},enable:function(t,e){var i=acf.enable(this.$el,t);return i&&(this.prop("disabled",!1),acf.doAction("enable_field",this,e)),i},disable:function(t,e){var i=acf.disable(this.$el,t);return i&&(this.prop("disabled",!0),acf.doAction("disable_field",this,e)),i},showEnable:function(t,e){return this.enable.apply(this,arguments),this.show.apply(this,arguments)},hideDisable:function(t,e){return this.disable.apply(this,arguments),this.hide.apply(this,arguments)},showNotice:function(t){"object"!=typeof t&&(t={text:t}),this.notice&&this.notice.remove(),t.target=this.$inputWrap(),this.notice=acf.newNotice(t)},removeNotice:function(t){this.notice&&(this.notice.away(t||0),this.notice=!1)},showError:function(i){this.$el.addClass("acf-error"),i!==e&&this.showNotice({text:i,type:"error",dismiss:!1}),acf.doAction("invalid_field",this),this.$el.one("focus change","input, select, textarea",t.proxy(this.removeError,this))},removeError:function(){this.$el.removeClass("acf-error"),this.removeNotice(250),acf.doAction("valid_field",this)},trigger:function(t,e,i){return"invalidField"==t&&(i=!0),acf.Model.prototype.trigger.apply(this,[t,e,i])}}),acf.newField=function(t){var e=t.data("type"),i=a(e),n,s=new(acf.models[i]||acf.Field)(t);return acf.doAction("new_field",s),s};var a=function(t){return acf.strPascalCase(t||"")+"Field"};acf.registerFieldType=function(t){var e,n=t.prototype.type,s=a(n);acf.models[s]=t,i.push(n)},acf.getFieldType=function(t){var e=a(t);return acf.models[e]||!1},acf.getFieldTypes=function(t){t=acf.parseArgs(t,{category:""});var e=[];return i.map((function(i){var a=acf.getFieldType(i),n=a.prototype;t.category&&n.category!==t.category||e.push(a)})),e}}(jQuery),function(t,e){acf.findFields=function(e){var i=".acf-field",a=!1;return(e=acf.parseArgs(e,{key:"",name:"",type:"",is:"",parent:!1,sibling:!1,limit:!1,visible:!1,suppressFilters:!1})).suppressFilters||(e=acf.applyFilters("find_fields_args",e)),e.key&&(i+='[data-key="'+e.key+'"]'),e.type&&(i+='[data-type="'+e.type+'"]'),e.name&&(i+='[data-name="'+e.name+'"]'),e.is&&(i+=e.is),e.visible&&(i+=":visible"),a=e.parent?e.parent.find(i):e.sibling?e.sibling.siblings(i):t(i),e.suppressFilters||(a=a.not(".acf-clone .acf-field"),a=acf.applyFilters("find_fields",a)),e.limit&&(a=a.slice(0,e.limit)),a},acf.findField=function(t,e){return acf.findFields({key:t,limit:1,parent:e,suppressFilters:!0})},acf.getField=function(t){t instanceof jQuery||(t=acf.findField(t));var e=t.data("acf");return e||(e=acf.newField(t)),e},acf.getFields=function(e){e instanceof jQuery||(e=acf.findFields(e));var i=[];return e.each((function(){var e=acf.getField(t(this));i.push(e)})),i},acf.findClosestField=function(t){return t.closest(".acf-field")},acf.getClosestField=function(t){var e=acf.findClosestField(t);return this.getField(e)};var i=function(t){var e=t,i=t+"_fields",n=t+"_field",s=function(t){var e=acf.arrayArgs(arguments),a=e.slice(1),n=acf.getFields({parent:t});if(n.length){var s=[i,n].concat(a);acf.doAction.apply(null,s)}},r=function(t){var e=acf.arrayArgs(arguments),i=e.slice(1);t.map((function(t,e){var a=[n,t].concat(i);acf.doAction.apply(null,a)}))};acf.addAction(e,s),acf.addAction(i,r),a(t)},a=function(t){var e=t+"_field",i=t+"Field",a=function(a){var n=acf.arrayArgs(arguments),s=n.slice(1),o=["type","name","key"];o.map((function(t){var i="/"+t+"="+a.get(t);n=[e+i,a].concat(s),acf.doAction.apply(null,n)})),r.indexOf(t)>-1&&a.trigger(i,s)};acf.addAction(e,a)},n,s=["valid","invalid","enable","disable","new","duplicate"],r=["remove","unmount","remount","sortstart","sortstop","show","hide","unload","valid","invalid","enable","disable","duplicate"];["prepare","ready","load","append","remove","unmount","remount","sortstart","sortstop","show","hide","unload"].map(i),s.map(a);var o=new acf.Model({id:"fieldsEventManager",events:{'click .acf-field a[href="#"]':"onClick","change .acf-field":"onChange"},onClick:function(t){t.preventDefault()},onChange:function(){t("#_acf_changed").val(1)}}),c=new acf.Model({id:"duplicateFieldsManager",actions:{duplicate:"onDuplicate",duplicate_fields:"onDuplicateFields"},onDuplicate:function(t,e){var i=acf.getFields({parent:t});if(i.length){var a=acf.findFields({parent:e});acf.doAction("duplicate_fields",i,a)}},onDuplicateFields:function(e,i){e.map((function(e,a){acf.doAction("duplicate_field",e,t(i[a]))}))}})}(jQuery),function(t,e){var i=0,a=acf.Field.extend({type:"accordion",wait:"",$control:function(){return this.$(".acf-fields:first")},initialize:function(){if(!this.$el.hasClass("acf-accordion")&&!this.$el.is("td")){if(this.get("endpoint"))return this.remove();var a=this.$el,s=this.$labelWrap(),r=this.$inputWrap(),o=this.$control(),c=r.children(".description");if(c.length&&s.append(c),this.$el.is("tr")){var l=this.$el.closest("table"),d=t('
        '),u=t('
        '),f=t('
          '),p=t("");d.append(s.html()),f.append(p),u.append(f),r.append(d),r.append(u),s.remove(),o.remove(),r.attr("colspan",2),s=d,r=u,o=p}a.addClass("acf-accordion"),s.addClass("acf-accordion-title"),r.addClass("acf-accordion-content"),i++,this.get("multi_expand")&&a.attr("multi-expand",1);var h=acf.getPreference("this.accordions")||[];h[i-1]!==e&&this.set("open",h[i-1]),this.get("open")&&(a.addClass("-open"),r.css("display","block")),s.prepend(n.iconHtml({open:this.get("open")}));var g=a.parent();o.addClass(g.hasClass("-left")?"-left":""),o.addClass(g.hasClass("-clear")?"-clear":""),o.append(a.nextUntil(".acf-field-accordion",".acf-field")),o.removeAttr("data-open data-multi_expand data-endpoint")}}});acf.registerFieldType(a);var n=new acf.Model({actions:{unload:"onUnload"},events:{"click .acf-accordion-title":"onClick","invalidField .acf-accordion":"onInvalidField"},isOpen:function(t){return t.hasClass("-open")},toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},iconHtml:function(t){return acf.isGutenberg()?t.open?'':'':t.open?'':''},open:function(e){var i=acf.isGutenberg()?0:300;e.find(".acf-accordion-content:first").slideDown(i).css("display","block"),e.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!0})),e.addClass("-open"),acf.doAction("show",e),e.attr("multi-expand")||e.siblings(".acf-accordion.-open").each((function(){n.close(t(this))}))},close:function(t){var e=acf.isGutenberg()?0:300;t.find(".acf-accordion-content:first").slideUp(e),t.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!1})),t.removeClass("-open"),acf.doAction("hide",t)},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},onInvalidField:function(t,e){this.busy||(this.busy=!0,this.setTimeout((function(){this.busy=!1}),1e3),this.open(e))},onUnload:function(e){var i=[];t(".acf-accordion").each((function(){var e=t(this).hasClass("-open")?1:0;i.push(e)})),i.length&&acf.setPreference("this.accordions",i)}})}(jQuery),function(t,e){var i=acf.Field.extend({type:"button_group",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-button-group")},$input:function(){return this.$("input:checked")},setValue:function(t){this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")},onClick:function(t,e){var i=e.parent("label"),a=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&a&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"checkbox",events:{"change input":"onChange","click .acf-add-checkbox":"onClickAdd","click .acf-checkbox-toggle":"onClickToggle","click .acf-checkbox-custom":"onClickCustom"},$control:function(){return this.$(".acf-checkbox-list")},$toggle:function(){return this.$(".acf-checkbox-toggle")},$input:function(){return this.$('input[type="hidden"]')},$inputs:function(){return this.$('input[type="checkbox"]').not(".acf-checkbox-toggle")},getValue:function(){var e=[];return this.$(":checked").each((function(){e.push(t(this).val())})),!!e.length&&e},onChange:function(t,e){var i=e.prop("checked"),a=e.parent("label"),n=this.$toggle(),s;(i?a.addClass("selected"):a.removeClass("selected"),n.length)&&(0==this.$inputs().not(":checked").length?n.prop("checked",!0):n.prop("checked",!1))},onClickAdd:function(t,e){var i='
        • ';e.parent("li").before(i)},onClickToggle:function(t,e){var i=e.prop("checked"),a=this.$('input[type="checkbox"]'),n=this.$("label");a.prop("checked",i),i?n.addClass("selected"):n.removeClass("selected")},onClickCustom:function(t,e){var i=e.prop("checked"),a=e.next('input[type="text"]');i?a.prop("disabled",!1):(a.prop("disabled",!0),""==a.val()&&e.parent("li").remove())}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"color_picker",wait:"load",events:{duplicateField:"onDuplicate"},$control:function(){return this.$(".acf-color-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},setValue:function(t){acf.val(this.$input(),t),this.$inputText().iris("color",t)},initialize:function(){var t=this.$input(),e=this.$inputText(),i=function(i){setTimeout((function(){acf.val(t,e.val())}),1)},a={defaultColor:!1,palettes:!0,hide:!0,change:i,clear:i},a=acf.applyFilters("color_picker_args",a,this);e.wpColorPicker(a)},onDuplicate:function(t,e,i){$colorPicker=i.find(".wp-picker-container"),$inputText=i.find('input[type="text"]'),$colorPicker.replaceWith($inputText)}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"date_picker",events:{'blur input[type="text"]':"onBlur",duplicateField:"onDuplicate"},$control:function(){return this.$(".acf-date-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},initialize:function(){if(this.has("save_format"))return this.initializeCompatibility();var t=this.$input(),e=this.$inputText(),i={dateFormat:this.get("date_format"),altField:t,altFormat:"yymmdd",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")};i=acf.applyFilters("date_picker_args",i,this),acf.newDatePicker(e,i),acf.doAction("date_picker_init",e,i,this)},initializeCompatibility:function(){var t=this.$input(),e=this.$inputText();e.val(t.val());var i={dateFormat:this.get("date_format"),altField:t,altFormat:this.get("save_format"),changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")},a=(i=acf.applyFilters("date_picker_args",i,this)).dateFormat;i.dateFormat=this.get("save_format"),acf.newDatePicker(e,i),e.datepicker("option","dateFormat",a),acf.doAction("date_picker_init",e,i,this)},onBlur:function(){this.$inputText().val()||acf.val(this.$input(),"")},onDuplicate:function(t,e,i){i.find('input[type="text"]').removeClass("hasDatepicker").removeAttr("id")}});acf.registerFieldType(i);var a=new acf.Model({priority:5,wait:"ready",initialize:function(){var e=acf.get("locale"),i=acf.get("rtl"),a=acf.get("datePickerL10n");return!!a&&(void 0!==t.datepicker&&(a.isRTL=i,t.datepicker.regional[e]=a,void t.datepicker.setDefaults(a)))}});acf.newDatePicker=function(e,i){if(void 0===t.datepicker)return!1;i=i||{},e.datepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('
          ')}}(jQuery),function(t,e){var i=acf.models.DatePickerField.extend({type:"date_time_picker",$control:function(){return this.$(".acf-date-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),i={dateFormat:this.get("date_format"),timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altFormat:"yy-mm-dd",altTimeFormat:"HH:mm:ss",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day"),controlType:"select",oneLine:!0};i=acf.applyFilters("date_time_picker_args",i,this),acf.newDateTimePicker(e,i),acf.doAction("date_time_picker_init",e,i,this)}});acf.registerFieldType(i);var a=new acf.Model({priority:5,wait:"ready",initialize:function(){var e=acf.get("locale"),i=acf.get("rtl"),a=acf.get("dateTimePickerL10n");return!!a&&(void 0!==t.timepicker&&(a.isRTL=i,t.timepicker.regional[e]=a,void t.timepicker.setDefaults(a)))}});acf.newDateTimePicker=function(e,i){if(void 0===t.timepicker)return!1;i=i||{},e.datetimepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('
          ')}}(jQuery),function(t,e){function i(e){if(s)return e();if(acf.isset(window,"google","maps","Geocoder"))return s=new google.maps.Geocoder,e();if(acf.addAction("google_map_api_loaded",e),!n){var i=acf.get("google_map_api");i&&(n=!0,t.ajax({url:i,dataType:"script",cache:!0,success:function(){s=new google.maps.Geocoder,acf.doAction("google_map_api_loaded")}}))}}var a=acf.Field.extend({type:"google_map",map:!1,wait:"load",events:{'click a[data-name="clear"]':"onClickClear",'click a[data-name="locate"]':"onClickLocate",'click a[data-name="search"]':"onClickSearch","keydown .search":"onKeydownSearch","keyup .search":"onKeyupSearch","focus .search":"onFocusSearch","blur .search":"onBlurSearch",showField:"onShow"},$control:function(){return this.$(".acf-google-map")},$search:function(){return this.$(".search")},$canvas:function(){return this.$(".canvas")},setState:function(t){this.$control().removeClass("-value -loading -searching"),"default"===t&&(t=this.val()?"value":""),t&&this.$control().addClass("-"+t)},getValue:function(){var t=this.$input().val();return!!t&&JSON.parse(t)},setValue:function(t,e){var i="";t&&(i=JSON.stringify(t)),acf.val(this.$input(),i),e||(this.renderVal(t),acf.doAction("google_map_change",t,this.map,this))},renderVal:function(t){t?(this.setState("value"),this.$search().val(t.address),this.setPosition(t.lat,t.lng)):(this.setState(""),this.$search().val(""),this.map.marker.setVisible(!1))},newLatLng:function(t,e){return new google.maps.LatLng(parseFloat(t),parseFloat(e))},setPosition:function(t,e){this.map.marker.setPosition({lat:parseFloat(t),lng:parseFloat(e)}),this.map.marker.setVisible(!0),this.center()},center:function(){var t=this.map.marker.getPosition();if(t)var e=t.lat(),i=t.lng();else var e=this.get("lat"),i=this.get("lng");this.map.setCenter({lat:parseFloat(e),lng:parseFloat(i)})},initialize:function(){i(this.initializeMap.bind(this))},initializeMap:function(){var t=this.getValue(),e=acf.parseArgs(t,{zoom:this.get("zoom"),lat:this.get("lat"),lng:this.get("lng")}),i={scrollwheel:!1,zoom:parseInt(e.zoom),center:{lat:parseFloat(e.lat),lng:parseFloat(e.lng)},mapTypeId:google.maps.MapTypeId.ROADMAP,marker:{draggable:!0,raiseOnDrag:!0},autocomplete:{}};i=acf.applyFilters("google_map_args",i,this);var a=new google.maps.Map(this.$canvas()[0],i),n=acf.parseArgs(i.marker,{draggable:!0,raiseOnDrag:!0,map:a});n=acf.applyFilters("google_map_marker_args",n,this);var s=new google.maps.Marker(n),r=!1;if(acf.isset(google,"maps","places","Autocomplete")){var o=i.autocomplete||{};o=acf.applyFilters("google_map_autocomplete_args",o,this),(r=new google.maps.places.Autocomplete(this.$search()[0],o)).bindTo("bounds",a)}this.addMapEvents(this,a,s,r),a.acf=this,a.marker=s,a.autocomplete=r,this.map=a,t&&this.setPosition(t.lat,t.lng),acf.doAction("google_map_init",a,s,this)},addMapEvents:function(t,e,i,a){google.maps.event.addListener(e,"click",(function(e){var i=e.latLng.lat(),a=e.latLng.lng();t.searchPosition(i,a)})),google.maps.event.addListener(i,"dragend",(function(){var e=this.getPosition().lat(),i=this.getPosition().lng();t.searchPosition(e,i)})),a&&google.maps.event.addListener(a,"place_changed",(function(){var e=this.getPlace();t.searchPlace(e)})),google.maps.event.addListener(e,"zoom_changed",(function(){var i=t.val();i&&(i.zoom=e.getZoom(),t.setValue(i,!0))}))},searchPosition:function(t,e){this.setState("loading");var i={lat:t,lng:e};s.geocode({location:i},function(i,a){if(this.setState(""),"OK"!==a)this.showNotice({text:acf.__("Location not found: %s").replace("%s",a),type:"warning"});else{var n=this.parseResult(i[0]);n.lat=t,n.lng=e,this.val(n)}}.bind(this))},searchPlace:function(t){if(t)if(t.geometry){t.formatted_address=this.$search().val();var e=this.parseResult(t);this.val(e)}else t.name&&this.searchAddress(t.name)},searchAddress:function(t){if(t){var e=t.split(",");if(2==e.length){var i=parseFloat(e[0]),a=parseFloat(e[1]);if(i&&a)return this.searchPosition(i,a)}this.setState("loading"),s.geocode({address:t},function(e,i){if(this.setState(""),"OK"!==i)this.showNotice({text:acf.__("Location not found: %s").replace("%s",i),type:"warning"});else{var a=this.parseResult(e[0]);a.address=t,this.val(a)}}.bind(this))}},searchLocation:function(){if(!navigator.geolocation)return alert(acf.__("Sorry, this browser does not support geolocation"));this.setState("loading"),navigator.geolocation.getCurrentPosition(function(t){this.setState("");var e=t.coords.latitude,i=t.coords.longitude;this.searchPosition(e,i)}.bind(this),function(t){this.setState("")}.bind(this))},parseResult:function(t){var e={address:t.formatted_address,lat:t.geometry.location.lat(),lng:t.geometry.location.lng()};e.zoom=this.map.getZoom(),t.place_id&&(e.place_id=t.place_id),t.name&&(e.name=t.name);var i={street_number:["street_number"],street_name:["street_address","route"],city:["locality"],state:["administrative_area_level_1","administrative_area_level_2","administrative_area_level_3","administrative_area_level_4","administrative_area_level_5"],post_code:["postal_code"],country:["country"]};for(var a in i)for(var n=i[a],s=0;s0?this.append(t,e):this.render(t)}),this)})},editAttachment:function(){var e=this.val();if(e)var i=acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:e,field:this.get("key"),select:t.proxy((function(t,e){this.render(t)}),this)})},removeAttachment:function(){this.render(!1)},onClickAdd:function(t,e){this.selectAttachment()},onClickEdit:function(t,e){this.editAttachment()},onClickRemove:function(t,e){this.removeAttachment()},onChange:function(e,i){var a=this.$input();acf.getFileInputData(i,(function(e){a.val(t.param(e))}))}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.ImageField.extend({type:"file",$control:function(){return this.$(".acf-file-uploader")},$input:function(){return this.$('input[type="hidden"]')},validateAttachment:function(t){return(t=t||{}).id!==e&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",filename:"",filesizeHumanReadable:"",icon:"/wp-includes/images/media/default.png"})},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.icon,alt:t.alt,title:t.title}),this.$('[data-name="title"]').text(t.title),this.$('[data-name="filename"]').text(t.filename).attr("href",t.url),this.$('[data-name="filesize"]').text(t.filesizeHumanReadable);var e=t.id||"";acf.val(this.$input(),e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},selectAttachment:function(){var e=this.parent(),i=e&&"repeater"===e.get("type"),a=acf.newMediaPopup({mode:"select",title:acf.__("Select File"),field:this.get("key"),multiple:i,library:this.get("library"),allowedTypes:this.get("mime_types"),select:t.proxy((function(t,i){i>0?this.append(t,e):this.render(t)}),this)})},editAttachment:function(){var e=this.val();if(!e)return!1;var i=acf.newMediaPopup({mode:"edit",title:acf.__("Edit File"),button:acf.__("Update File"),attachment:e,field:this.get("key"),select:t.proxy((function(t,e){this.render(t)}),this)})}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"link",events:{'click a[data-name="add"]':"onClickEdit",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove","change .link-node":"onChange"},$control:function(){return this.$(".acf-link")},$node:function(){return this.$(".link-node")},getValue:function(){var t=this.$node();return!!t.attr("href")&&{title:t.html(),url:t.attr("href"),target:t.attr("target")}},setValue:function(t){t=acf.parseArgs(t,{title:"",url:"",target:""});var e=this.$control(),i=this.$node();e.removeClass("-value -external"),t.url&&e.addClass("-value"),"_blank"===t.target&&e.addClass("-external"),this.$(".link-title").html(t.title),this.$(".link-url").attr("href",t.url).html(t.url),i.html(t.title),i.attr("href",t.url),i.attr("target",t.target),this.$(".input-title").val(t.title),this.$(".input-target").val(t.target),this.$(".input-url").val(t.url).trigger("change")},onClickEdit:function(t,e){acf.wpLink.open(this.$node())},onClickRemove:function(t,e){this.setValue(!1)},onChange:function(t,e){var i=this.getValue();this.setValue(i)}});acf.registerFieldType(i),acf.wpLink=new acf.Model({getNodeValue:function(){var t=this.get("node");return{title:acf.decode(t.html()),url:t.attr("href"),target:t.attr("target")}},setNodeValue:function(t){var e=this.get("node");e.text(t.title),e.attr("href",t.url),e.attr("target",t.target),e.trigger("change")},getInputValue:function(){return{title:t("#wp-link-text").val(),url:t("#wp-link-url").val(),target:t("#wp-link-target").prop("checked")?"_blank":""}},setInputValue:function(e){t("#wp-link-text").val(e.title),t("#wp-link-url").val(e.url),t("#wp-link-target").prop("checked","_blank"===e.target)},open:function(e){this.on("wplink-open","onOpen"),this.on("wplink-close","onClose"),this.set("node",e);var i=t('');t("body").append(i);var a=this.getNodeValue();wpLink.open("acf-link-textarea",a.url,a.title,null)},onOpen:function(){t("#wp-link-wrap").addClass("has-text-field");var e=this.getNodeValue();this.setInputValue(e),e.url&&wpLinkL10n&&t("#wp-link-submit").val(wpLinkL10n.update)},close:function(){wpLink.close()},onClose:function(){if(!this.has("node"))return!1;var e=t("#wp-link-submit"),i;if(e.is(":hover")||e.is(":focus")){var a=this.getInputValue();this.setNodeValue(a)}this.off("wplink-open"),this.off("wplink-close"),t("#acf-link-textarea").remove(),this.set("node",null)}})}(jQuery),function(t,e){var i=acf.Field.extend({type:"oembed",events:{'click [data-name="clear-button"]':"onClickClear","keypress .input-search":"onKeypressSearch","keyup .input-search":"onKeyupSearch","change .input-search":"onChangeSearch"},$control:function(){return this.$(".acf-oembed")},$input:function(){return this.$(".input-value")},$search:function(){return this.$(".input-search")},getValue:function(){return this.$input().val()},getSearchVal:function(){return this.$search().val()},setValue:function(t){t?this.$control().addClass("has-value"):this.$control().removeClass("has-value"),acf.val(this.$input(),t)},showLoading:function(t){acf.showLoading(this.$(".canvas"))},hideLoading:function(){acf.hideLoading(this.$(".canvas"))},maybeSearch:function(){var e=this.val(),i=this.getSearchVal();if(!i)return this.clear();if("http"!=i.substr(0,4)&&(i="http://"+i),i!==e){var a=this.get("timeout");a&&clearTimeout(a);var n=t.proxy(this.search,this,i);this.set("timeout",setTimeout(n,300))}},search:function(e){var i={action:"acf/fields/oembed/search",s:e,field_key:this.get("key")},a;(a=this.get("xhr"))&&a.abort(),this.showLoading();var a=t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),type:"post",dataType:"json",context:this,success:function(t){t&&t.html||(t={url:!1,html:""}),this.val(t.url),this.$(".canvas-media").html(t.html)},complete:function(){this.hideLoading()}});this.set("xhr",a)},clear:function(){this.val(""),this.$search().val(""),this.$(".canvas-media").html("")},onClickClear:function(t,e){this.clear()},onKeypressSearch:function(t,e){13==t.which&&(t.preventDefault(),this.maybeSearch())},onKeyupSearch:function(t,e){e.val()&&this.maybeSearch()},onChangeSearch:function(t,e){this.maybeSearch()}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"radio",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-radio-list")},$input:function(){return this.$("input:checked")},$inputText:function(){return this.$('input[type="text"]')},getValue:function(){var t=this.$input().val();return"other"===t&&this.get("other_choice")&&(t=this.$inputText().val()),t},onClick:function(t,e){var i=e.parent("label"),a=i.hasClass("selected"),n=e.val();this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&a&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"),n=!1),this.get("other_choice")&&("other"===n?this.$inputText().prop("disabled",!1):this.$inputText().prop("disabled",!0))}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"range",events:{'input input[type="range"]':"onChange","change input":"onChange"},$input:function(){return this.$('input[type="range"]')},$inputAlt:function(){return this.$('input[type="number"]')},setValue:function(t){this.busy=!0,acf.val(this.$input(),t),acf.val(this.$inputAlt(),this.$input().val(),!0),this.busy=!1},onChange:function(t,e){this.busy||this.setValue(e.val())}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"relationship",events:{"keypress [data-filter]":"onKeypressFilter","change [data-filter]":"onChangeFilter","keyup [data-filter]":"onChangeFilter","click .choices-list .acf-rel-item":"onClickAdd",'click [data-name="remove_item"]':"onClickRemove"},$control:function(){return this.$(".acf-relationship")},$list:function(t){return this.$("."+t+"-list")},$listItems:function(t){return this.$list(t).find(".acf-rel-item")},$listItem:function(t,e){return this.$list(t).find('.acf-rel-item[data-id="'+e+'"]')},getValue:function(){var e=[];return this.$listItems("values").each((function(){e.push(t(this).data("id"))})),!!e.length&&e},newChoice:function(t){return["
        • ",''+t.text+"","
        • "].join("")},newValue:function(t){return["
        • ",'',''+t.text,'',"","
        • "].join("")},initialize:function(){var t=this.proxy(acf.once((function(){this.$list("values").sortable({items:"li",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,update:this.proxy((function(){this.$input().trigger("change")}))}),this.$list("choices").scrollTop(0).on("scroll",this.proxy(this.onScrollChoices)),this.fetch()})));this.$el.one("mouseover",t),this.$el.one("focus","input",t),acf.onceInView(this.$el,t)},onScrollChoices:function(t){if(!this.get("loading")&&this.get("more")){var e=this.$list("choices"),i=Math.ceil(e.scrollTop()),a=Math.ceil(e[0].scrollHeight),n=Math.ceil(e.innerHeight()),s=this.get("paged")||1;i+n>=a&&(this.set("paged",s+1),this.fetch())}},onKeypressFilter:function(t,e){13==t.which&&t.preventDefault()},onChangeFilter:function(t,e){var i=e.val(),a=e.data("filter");this.get(a)!==i&&(this.set(a,i),this.set("paged",1),e.is("select")?this.fetch():this.maybeFetch())},onClickAdd:function(t,e){var i=this.val(),a=parseInt(this.get("max"));if(e.hasClass("disabled"))return!1;if(a>0&&i&&i.length>=a)return this.showNotice({text:acf.__("Maximum values reached ( {max} values )").replace("{max}",a),type:"warning"}),!1;e.addClass("disabled");var n=this.newValue({id:e.data("id"),text:e.html()});this.$list("values").append(n),this.$input().trigger("change")},onClickRemove:function(t,e){t.preventDefault();var i=e.parent(),a=i.parent(),n=i.data("id");a.remove(),this.$listItem("choices",n).removeClass("disabled"),this.$input().trigger("change")},maybeFetch:function(){var t=this.get("timeout");t&&clearTimeout(t),t=this.setTimeout(this.fetch,300),this.set("timeout",t)},getAjaxData:function(){var t=this.$control().data();for(var e in t)t[e]=this.get(e);return t.action="acf/fields/relationship/query",t.field_key=this.get("key"), -t=acf.applyFilters("relationship_ajax_data",t,this)},fetch:function(){var e;(e=this.get("xhr"))&&e.abort();var i=this.getAjaxData(),a=this.$list("choices");1==i.paged&&a.html("");var n=t('
        • '+acf.__("Loading")+"
        • ");a.append(n),this.set("loading",!0);var s=function(){this.set("loading",!1),n.remove()},r=function(e){if(!e||!e.results||!e.results.length)return this.set("more",!1),void(1==this.get("paged")&&this.$list("choices").append("
        • "+acf.__("No matches found")+"
        • "));this.set("more",e.more);var i=this.walkChoices(e.results),n=t(i),s=this.val();s&&s.length&&s.map((function(t){n.find('.acf-rel-item[data-id="'+t+'"]').addClass("disabled")})),a.append(n);var r=!1,o=!1;a.find(".acf-rel-label").each((function(){var e=t(this),i=e.siblings("ul");if(r&&r.text()==e.text())return o.append(i.children()),void t(this).parent().remove();r=e,o=i}))},e=t.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",data:acf.prepareForAjax(i),context:this,success:r,complete:s});this.set("xhr",e)},walkChoices:function(i){var a=function(i){var n="";return t.isArray(i)?i.map((function(t){n+=a(t)})):t.isPlainObject(i)&&(i.children!==e?(n+='
        • '+acf.escHtml(i.text)+'
            ',n+=a(i.children),n+="
        • "):n+='
        • '+acf.escHtml(i.text)+"
        • "),n};return a(i)}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"select",select2:!1,wait:"load",events:{removeField:"onRemove",duplicateField:"onDuplicate"},$input:function(){return this.$("select")},initialize:function(){var t=this.$input();if(this.inherit(t),this.get("ui")){var e=this.get("ajax_action");e||(e="acf/fields/"+this.get("type")+"/query"),this.select2=acf.newSelect2(t,{field:this,ajax:this.get("ajax"),multiple:this.get("multiple"),placeholder:this.get("placeholder"),allowNull:this.get("allow_null"),ajaxAction:e})}},onRemove:function(){this.select2&&this.select2.destroy()},onDuplicate:function(t,e,i){this.select2&&(i.find(".select2-container").remove(),i.find("select").removeClass("select2-hidden-accessible"))}});acf.registerFieldType(i)}(jQuery),function(t,e){var i="tab",a=acf.Field.extend({type:"tab",wait:"",tabs:!1,tab:!1,events:{duplicateField:"onDuplicate"},findFields:function(){return this.$el.nextUntil(".acf-field-tab",".acf-field")},getFields:function(){return acf.getFields(this.findFields())},findTabs:function(){return this.$el.prevAll(".acf-tab-wrap:first")},findTab:function(){return this.$(".acf-tab-button")},initialize:function(){if(this.$el.is("td"))return this.events={},!1;var t=this.findTabs(),e=this.findTab(),i=acf.parseArgs(e.data(),{endpoint:!1,placement:"",before:this.$el});!t.length||i.endpoint?this.tabs=new s(i):this.tabs=t.data("acf"),this.tab=this.tabs.addTab(e,this)},isActive:function(){return this.tab.isActive()},showFields:function(){this.getFields().map((function(t){t.show(this.cid,i),t.hiddenByTab=!1}),this)},hideFields:function(){this.getFields().map((function(t){t.hide(this.cid,i),t.hiddenByTab=this.tab}),this)},show:function(t){var e=acf.Field.prototype.show.apply(this,arguments);return e&&(this.tab.show(),this.tabs.refresh()),e},hide:function(t){var e=acf.Field.prototype.hide.apply(this,arguments);return e&&(this.tab.hide(),this.isActive()&&this.tabs.reset()),e},enable:function(t){this.getFields().map((function(t){t.enable(i)}))},disable:function(t){this.getFields().map((function(t){t.disable(i)}))},onDuplicate:function(t,e,i){this.isActive()&&i.prevAll(".acf-tab-wrap:first").remove()}});acf.registerFieldType(a);var n=0,s=acf.Model.extend({tabs:[],active:!1,actions:{refresh:"onRefresh"},data:{before:!1,placement:"top",index:0,initialized:!1},setup:function(e){t.extend(this.data,e),this.tabs=[],this.active=!1;var i=this.get("placement"),a=this.get("before"),s=a.parent();"left"==i&&s.hasClass("acf-fields")&&s.addClass("-sidebar"),a.is("tr")?this.$el=t('
          '):this.$el=t('
            '),a.before(this.$el),this.set("index",n,!0),n++},initializeTabs:function(){var t=this.getVisible().shift(),e,i,a=(acf.getPreference("this.tabs")||[])[this.get("index")];this.tabs[a]&&this.tabs[a].isVisible()&&(t=this.tabs[a]),t?this.selectTab(t):this.closeTabs(),this.set("initialized",!0)},getVisible:function(){return this.tabs.filter((function(t){return t.isVisible()}))},getActive:function(){return this.active},setActive:function(t){return this.active=t},hasActive:function(){return!1!==this.active},isActive:function(t){var e=this.getActive();return e&&e.cid===t.cid},closeActive:function(){this.hasActive()&&this.closeTab(this.getActive())},openTab:function(t){this.closeActive(),t.open(),this.setActive(t)},closeTab:function(t){t.close(),this.setActive(!1)},closeTabs:function(){this.tabs.map(this.closeTab,this)},selectTab:function(t){this.tabs.map((function(e){t.cid!==e.cid&&this.closeTab(e)}),this),this.openTab(t)},addTab:function(e,i){var a=t("
          • "+e.outerHTML()+"
          • ");this.$("ul").append(a);var n=new r({$el:a,field:i,group:this});return this.tabs.push(n),n},reset:function(){return this.closeActive(),this.refresh()},refresh:function(){if(this.hasActive())return!1;var t=this.getVisible().shift();return t&&this.openTab(t),t},onRefresh:function(){if("left"===this.get("placement")){var t=this.$el.parent(),e=this.$el.children("ul"),i=t.is("td")?"height":"min-height",a=e.position().top+e.outerHeight(!0)-1;t.css(i,a)}}}),r=acf.Model.extend({group:!1,field:!1,events:{"click a":"onClick"},index:function(){return this.$el.index()},isVisible:function(){return acf.isVisible(this.$el)},isActive:function(){return this.$el.hasClass("active")},open:function(){this.$el.addClass("active"),this.field.showFields()},close:function(){this.$el.removeClass("active"),this.field.hideFields()},onClick:function(t,e){t.preventDefault(),this.toggle()},toggle:function(){this.isActive()||this.group.openTab(this)}}),o=new acf.Model({priority:50,actions:{prepare:"render",append:"render",unload:"onUnload",invalid_field:"onInvalidField"},findTabs:function(){return t(".acf-tab-wrap")},getTabs:function(){return acf.getInstances(this.findTabs())},render:function(t){this.getTabs().map((function(t){t.get("initialized")||t.initializeTabs()}))},onInvalidField:function(t){this.busy||t.hiddenByTab&&(t.hiddenByTab.toggle(),this.busy=!0,this.setTimeout((function(){this.busy=!1}),100))},onUnload:function(){var t=[];this.getTabs().map((function(e){var i=e.hasActive()?e.getActive().index():0;t.push(i)})),t.length&&acf.setPreference("this.tabs",t)}})}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"post_object"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"page_link"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"user"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"taxonomy",data:{ftype:"select"},select2:!1,wait:"load",events:{'click a[data-name="add"]':"onClickAdd",'click input[type="radio"]':"onClickRadio",removeField:"onRemove"},$control:function(){return this.$(".acf-taxonomy-field")},$input:function(){return this.getRelatedPrototype().$input.apply(this,arguments)},getRelatedType:function(){var t=this.get("ftype");return"multi_select"==t&&(t="select"),t},getRelatedPrototype:function(){return acf.getFieldType(this.getRelatedType()).prototype},getValue:function(){return this.getRelatedPrototype().getValue.apply(this,arguments)},setValue:function(){return this.getRelatedPrototype().setValue.apply(this,arguments)},initialize:function(){this.getRelatedPrototype().initialize.apply(this,arguments)},onRemove:function(){var t=this.getRelatedPrototype();t.onRemove&&t.onRemove.apply(this,arguments)},onClickAdd:function(e,i){var a=this,n=!1,s=!1,r=!1,o=!1,c=!1,l=!1,d=!1,u=function(){n=acf.newPopup({title:i.attr("title"),loading:!0,width:"300px"});var e={action:"acf/fields/taxonomy/add_term",field_key:a.get("key")};t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"html",success:f})},f=function(t){n.loading(!1),n.content(t),s=n.$("form"),r=n.$('input[name="term_name"]'),o=n.$('select[name="term_parent"]'),c=n.$(".acf-submit-button"),r.focus(),n.on("submit","form",p)},p=function(e,i){if(e.preventDefault(),e.stopImmediatePropagation(),""===r.val())return r.focus(),!1;acf.startButtonLoading(c);var n={action:"acf/fields/taxonomy/add_term",field_key:a.get("key"),term_name:r.val(),term_parent:o.length?o.val():0};t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(n),type:"post",dataType:"json",success:h})},h=function(t){acf.stopButtonLoading(c),d&&d.remove(),acf.isAjaxSuccess(t)?(r.val(""),g(t.data),d=acf.newNotice({type:"success",text:acf.getAjaxMessage(t),target:s,timeout:2e3,dismiss:!1})):d=acf.newNotice({type:"error",text:acf.getAjaxError(t),target:s,timeout:2e3,dismiss:!1}),r.focus()},g=function(e){var i=t('"),n;e.term_parent?o.children('option[value="'+e.term_parent+'"]').after(i):o.append(i),acf.getFields({type:"taxonomy"}).map((function(t){t.get("taxonomy")==a.get("taxonomy")&&t.appendTerm(e)})),a.selectTerm(e.term_id)};u()},appendTerm:function(t){"select"==this.getRelatedType()?this.appendTermSelect(t):this.appendTermCheckbox(t)},appendTermSelect:function(t){this.select2.addOption({id:t.term_id,text:t.term_label})},appendTermCheckbox:function(e){var i=this.$("[name]:first").attr("name"),a=this.$("ul:first");"checkbox"==this.getRelatedType()&&(i+="[]");var n=t(['
          • ',"","
          • "].join(""));if(e.term_parent){var s=a.find('li[data-id="'+e.term_parent+'"]');(a=s.children("ul")).exists()||(a=t('
              '),s.append(a))}a.append(n)},selectTerm:function(t){var e;"select"==this.getRelatedType()?this.select2.selectOption(t):this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")},onClickRadio:function(t,e){var i=e.parent("label"),a=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&a&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.DatePickerField.extend({type:"time_picker",$control:function(){return this.$(".acf-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),i={timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altTimeFormat:"HH:mm:ss",showButtonPanel:!0,controlType:"select",oneLine:!0,closeText:acf.get("dateTimePickerL10n").selectText,timeOnly:!0,onClose:function(t,e,i){var a=e.dpDiv.find(".ui-datepicker-close");!t&&a.is(":hover")&&i._updateDateTime()}};i=acf.applyFilters("time_picker_args",i,this),acf.newTimePicker(e,i),acf.doAction("time_picker_init",e,i,this)}});acf.registerFieldType(i),acf.newTimePicker=function(e,i){if(void 0===t.timepicker)return!1;i=i||{},e.timepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('
              ')}}(jQuery),function(t,e){var i=acf.Field.extend({type:"true_false",events:{"change .acf-switch-input":"onChange","focus .acf-switch-input":"onFocus","blur .acf-switch-input":"onBlur","keypress .acf-switch-input":"onKeypress"},$input:function(){return this.$('input[type="checkbox"]')},$switch:function(){return this.$(".acf-switch")},getValue:function(){return this.$input().prop("checked")?1:0},initialize:function(){this.render()},render:function(){var t=this.$switch();if(t.length){var e=t.children(".acf-switch-on"),i=t.children(".acf-switch-off"),a=Math.max(e.width(),i.width());a&&(e.css("min-width",a),i.css("min-width",a))}},switchOn:function(){this.$input().prop("checked",!0),this.$switch().addClass("-on")},switchOff:function(){this.$input().prop("checked",!1),this.$switch().removeClass("-on")},onChange:function(t,e){e.prop("checked")?this.switchOn():this.switchOff()},onFocus:function(t,e){this.$switch().addClass("-focus")},onBlur:function(t,e){this.$switch().removeClass("-focus")},onKeypress:function(t,e){return 37===t.keyCode?this.switchOff():39===t.keyCode?this.switchOn():void 0}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"url",events:{'keyup input[type="url"]':"onkeyup"},$control:function(){return this.$(".acf-input-wrap")},$input:function(){return this.$('input[type="url"]')},initialize:function(){this.render()},isValid:function(){var t=this.val();return!!t&&(-1!==t.indexOf("://")||0===t.indexOf("//"))},render:function(){this.isValid()?this.$control().addClass("-valid"):this.$control().removeClass("-valid")},onkeyup:function(t,e){this.render()}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"wysiwyg",wait:"load",events:{"mousedown .acf-editor-wrap.delay":"onMousedown",unmountField:"disableEditor",remountField:"enableEditor",removeField:"disableEditor"},$control:function(){return this.$(".acf-editor-wrap")},$input:function(){return this.$("textarea")},getMode:function(){return this.$control().hasClass("tmce-active")?"visual":"text"},initialize:function(){this.$control().hasClass("delay")||this.initializeEditor()},initializeEditor:function(){var t=this.$control(),e=this.$input(),i={tinymce:!0,quicktags:!0,toolbar:this.get("toolbar"),mode:this.getMode(),field:this},a=e.attr("id"),n=acf.uniqueId("acf-editor-"),s=e.data(),r=e.val();acf.rename({target:t,search:a,replace:n,destructive:!0}),this.set("id",n,!0),this.$input().data(s).val(r),acf.tinymce.initialize(n,i)},onMousedown:function(t){t.preventDefault();var e=this.$control();e.removeClass("delay"),e.find(".acf-editor-toolbar").remove(),this.initializeEditor()},enableEditor:function(){"visual"==this.getMode()&&acf.tinymce.enable(this.get("id"))},disableEditor:function(){acf.tinymce.destroy(this.get("id"))}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=[];acf.Condition=acf.Model.extend({type:"",operator:"==",label:"",choiceType:"input",fieldTypes:[],data:{conditions:!1,field:!1,rule:{}},events:{change:"change",keyup:"change",enableField:"change",disableField:"change"},setup:function(e){t.extend(this.data,e)},getEventTarget:function(t,e){return t||this.get("field").$el},change:function(t,e){this.get("conditions").change(t)},match:function(t,e){return!1},calculate:function(){return this.match(this.get("rule"),this.get("field"))},choices:function(t){return''}}),acf.newCondition=function(t,e){var i=e.get("field"),a=i.getField(t.field);if(!i||!a)return!1;var n={rule:t,target:i,conditions:e,field:a},s=a.get("type"),r=t.operator,o,c,l;return new(acf.getConditionTypes({fieldType:s,operator:r})[0]||acf.Condition)(n)};var a=function(t){return acf.strPascalCase(t||"")+"Condition"};acf.registerConditionType=function(t){var e,n=t.prototype.type,s=a(n);acf.models[s]=t,i.push(n)},acf.getConditionType=function(t){var e=a(t);return acf.models[e]||!1},acf.registerConditionForFieldType=function(t,e){var i=acf.getConditionType(t);i&&i.prototype.fieldTypes.push(e)},acf.getConditionTypes=function(t){t=acf.parseArgs(t,{fieldType:"",operator:""});var e=[];return i.map((function(i){var a=acf.getConditionType(i),n=a.prototype.fieldTypes,s=a.prototype.operator;t.fieldType&&-1===n.indexOf(t.fieldType)||t.operator&&s!==t.operator||e.push(a)})),e}}(jQuery),function(t,e){var i="conditional_logic",a=new acf.Model({id:"conditionsManager",priority:20,actions:{new_field:"onNewField"},onNewField:function(t){t.has("conditions")&&t.getConditions().render()}}),n=function(t,e){var i=acf.getFields({key:e,sibling:t.$el,suppressFilters:!0});return i.length||(i=acf.getFields({key:e,parent:t.$el.parent(),suppressFilters:!0})),!!i.length&&i[0]};acf.Field.prototype.getField=function(t){var e=n(this,t);if(e)return e;for(var i=this.parents(),a=0;aparseFloat(e)},o=function(t,e){return parseFloat(t)-1},l=function(t,e){return a(t).indexOf(a(e))>-1},d=function(t,e){var i=new RegExp(a(e),"gi");return a(t).match(i)},u=acf.Condition.extend({type:"hasValue",operator:"!=empty",label:i("Has any value"),fieldTypes:["text","textarea","number","range","email","url","password","image","file","wysiwyg","oembed","select","checkbox","radio","button_group","link","post_object","page_link","relationship","taxonomy","user","google_map","date_picker","date_time_picker","time_picker","color_picker"],match:function(t,e){return!!e.val()},choices:function(t){return''}});acf.registerConditionType(u);var f=u.extend({type:"hasNoValue",operator:"==empty",label:i("Has no value"),match:function(t,e){return!u.prototype.match.apply(this,arguments)}});acf.registerConditionType(f);var p=acf.Condition.extend({type:"equalTo",operator:"==",label:i("Value is equal to"),fieldTypes:["text","textarea","number","range","email","url","password"],match:function(t,e){return acf.isNumeric(t.value)?s(t.value,e.val()):n(t.value,e.val())},choices:function(t){return''}});acf.registerConditionType(p);var h=p.extend({type:"notEqualTo",operator:"!=",label:i("Value is not equal to"),match:function(t,e){return!p.prototype.match.apply(this,arguments)}});acf.registerConditionType(h);var g=acf.Condition.extend({type:"patternMatch",operator:"==pattern",label:i("Value matches pattern"),fieldTypes:["text","textarea","email","url","password","wysiwyg"],match:function(t,e){return d(e.val(),t.value)},choices:function(t){return''}});acf.registerConditionType(g);var m=acf.Condition.extend({type:"contains",operator:"==contains",label:i("Value contains"),fieldTypes:["text","textarea","number","email","url","password","wysiwyg","oembed","select"],match:function(t,e){return l(e.val(),t.value)},choices:function(t){return''}});acf.registerConditionType(m);var v=p.extend({type:"trueFalseEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:i("Checked")}]}});acf.registerConditionType(v);var y=h.extend({type:"trueFalseNotEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:i("Checked")}]}});acf.registerConditionType(y);var b=acf.Condition.extend({type:"selectEqualTo",operator:"==",label:i("Value is equal to"),fieldTypes:["select","checkbox","radio","button_group"],match:function(t,e){var i=e.val();return i instanceof Array?c(t.value,i):n(t.value,i)},choices:function(t){var e=[],a=t.$setting("choices textarea").val().split("\n");return t.$input("allow_null").prop("checked")&&e.push({id:"",text:i("Null")}),a.map((function(t){(t=t.split(":"))[1]=t[1]||t[0],e.push({id:t[0].trim(),text:t[1].trim()})})),e}});acf.registerConditionType(b);var _=b.extend({type:"selectNotEqualTo",operator:"!=",label:i("Value is not equal to"),match:function(t,e){return!b.prototype.match.apply(this,arguments)}});acf.registerConditionType(_);var w=acf.Condition.extend({type:"greaterThan",operator:">",label:i("Value is greater than"),fieldTypes:["number","range"],match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),r(i,t.value)},choices:function(t){return''}});acf.registerConditionType(w);var x=w.extend({type:"lessThan",operator:"<",label:i("Value is less than"),match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),o(i,t.value)},choices:function(t){return''}});acf.registerConditionType(x);var $=w.extend({type:"selectionGreaterThan",label:i("Selection is greater than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType($);var k=x.extend({type:"selectionLessThan",label:i("Selection is less than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(k)}(jQuery),function(t,e){acf.unload=new acf.Model({wait:"load",active:!0,changed:!1,actions:{validation_failure:"startListening",validation_success:"stopListening"},events:{"change form .acf-field":"startListening","submit form":"stopListening"},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(){this.stopListening()},startListening:function(){!this.changed&&this.active&&(this.changed=!0,t(window).on("beforeunload",this.onUnload))},stopListening:function(){this.changed=!1,t(window).off("beforeunload",this.onUnload)},onUnload:function(){return acf.__("The changes you made will be lost if you navigate away from this page")}})}(jQuery),function(t,e){var i=new acf.Model({wait:"prepare",priority:1,initialize:function(){(acf.get("postboxes")||[]).map(acf.newPostbox)}});acf.getPostbox=function(e){return"string"==typeof e&&(e=t("#"+e)),acf.getInstance(e)},acf.getPostboxes=function(){return acf.getInstances(t(".acf-postbox"))},acf.newPostbox=function(t){return new acf.models.Postbox(t)},acf.models.Postbox=acf.Model.extend({data:{id:"",key:"",style:"default",label:"top",edit:""},setup:function(e){e.editLink&&(e.edit=e.editLink),t.extend(this.data,e),this.$el=this.$postbox()},$postbox:function(){return t("#"+this.get("id"))},$hide:function(){return t("#"+this.get("id")+"-hide")},$hideLabel:function(){return this.$hide().parent()},$hndle:function(){return this.$("> .hndle")},$handleActions:function(){return this.$("> .postbox-header .handle-actions")},$inside:function(){return this.$("> .inside")},isVisible:function(){return this.$el.hasClass("acf-hidden")},initialize:function(){if(this.$el.addClass("acf-postbox"),this.$el.removeClass("hide-if-js"),"block"!==acf.get("editor")){var t=this.get("style");"default"!==t&&this.$el.addClass(t)}this.$inside().addClass("acf-fields").addClass("-"+this.get("label"));var e=this.get("edit");if(e){var i='',a=this.$handleActions();a.length?a.prepend(i):this.$hndle().append(i)}this.show()},show:function(){this.$hideLabel().show(),this.$hide().prop("checked",!0),this.$el.show().removeClass("acf-hidden"),acf.doAction("show_postbox",this)},enable:function(){acf.enable(this.$el,"postbox")},showEnable:function(){this.enable(),this.show()},hide:function(){this.$hideLabel().hide(),this.$el.hide().addClass("acf-hidden"),acf.doAction("hide_postbox",this)},disable:function(){acf.disable(this.$el,"postbox")},hideDisable:function(){this.disable(),this.hide()},html:function(t){this.$inside().html(t),acf.doAction("append",this.$el)}})}(jQuery),function(t,e){acf.newMediaPopup=function(t){var e=null,t=acf.parseArgs(t,{mode:"select",title:"",button:"",type:"",field:!1,allowedTypes:"",library:"all",multiple:!1,attachment:0,autoOpen:!0,open:function(){},select:function(){},close:function(){}});return e="edit"==t.mode?new acf.models.EditMediaPopup(t):new acf.models.SelectMediaPopup(t),t.autoOpen&&setTimeout((function(){e.open()}),1),acf.doAction("new_media_popup",e),e};var i=function(){var t=acf.get("post_id");return acf.isNumeric(t)?t:0};acf.getMimeTypes=function(){return this.get("mimeTypes")},acf.getMimeType=function(t){var i=acf.getMimeTypes();if(i[t]!==e)return i[t];for(var a in i)if(-1!==a.indexOf(t))return i[a];return!1};var a=acf.Model.extend({id:"MediaPopup",data:{},defaults:{},frame:!1,setup:function(e){t.extend(this.data,e)},initialize:function(){var t=this.getFrameOptions();this.addFrameStates(t);var e=wp.media(t);e.acf=this,this.addFrameEvents(e,t),this.frame=e},open:function(){this.frame.open()},close:function(){this.frame.close()},remove:function(){this.frame.detach(),this.frame.remove()},getFrameOptions:function(){var t={title:this.get("title"),multiple:this.get("multiple"),library:{},states:[]};return this.get("type")&&(t.library.type=this.get("type")),"uploadedTo"===this.get("library")&&(t.library.uploadedTo=i()),this.get("attachment")&&(t.library.post__in=[this.get("attachment")]),this.get("button")&&(t.button={text:this.get("button")}),t},addFrameStates:function(t){var e=wp.media.query(t.library);this.get("field")&&acf.isset(e,"mirroring","args")&&(e.mirroring.args._acfuploader=this.get("field")),t.states.push(new wp.media.controller.Library({library:e,multiple:this.get("multiple"),title:this.get("title"),priority:20,filterable:"all",editable:!0,allowLocalEdits:!0})),acf.isset(wp,"media","controller","EditImage")&&t.states.push(new wp.media.controller.EditImage)},addFrameEvents:function(t,e){t.on("open",(function(){this.$el.closest(".media-modal").addClass("acf-media-modal -"+this.acf.get("mode"))}),t),t.on("content:render:edit-image",(function(){var t=this.state().get("image"),e=new wp.media.view.EditImage({model:t,controller:this}).render();this.content.set(e),e.loadEditor()}),t),t.on("select",(function(){var e=t.state().get("selection");e&&e.each((function(e,i){t.acf.get("select").apply(t.acf,[e,i])}))})),t.on("close",(function(){setTimeout((function(){t.acf.get("close").apply(t.acf),t.acf.remove()}),1)}))}});acf.models.SelectMediaPopup=a.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Select","verb")),a.prototype.setup.apply(this,arguments)},addFrameEvents:function(t,e){acf.isset(_wpPluploadSettings,"defaults","multipart_params")&&(_wpPluploadSettings.defaults.multipart_params._acfuploader=this.get("field"),t.on("open",(function(){delete _wpPluploadSettings.defaults.multipart_params._acfuploader}))),t.on("content:activate:browse",(function(){var e=!1;try{e=t.content.get().toolbar}catch(t){return void console.log(t)}t.acf.customizeFilters.apply(t.acf,[e])})),a.prototype.addFrameEvents.apply(this,arguments)},customizeFilters:function(e){var i=e.get("filters"),a;("image"==this.get("type")&&(i.filters.all.text=acf.__("All images"),delete i.filters.audio,delete i.filters.video,delete i.filters.image,t.each(i.filters,(function(t,e){e.props.type=e.props.type||"image"}))),this.get("allowedTypes"))&&this.get("allowedTypes").split(" ").join("").split(".").join("").split(",").map((function(t){var e=acf.getMimeType(t);if(e){var a={text:e,props:{status:null,type:e,uploadedTo:null,orderby:"date",order:"DESC"},priority:20};i.filters[e]=a}}));if("uploadedTo"===this.get("library")){var n=this.frame.options.library.uploadedTo;delete i.filters.unattached,delete i.filters.uploaded,t.each(i.filters,(function(t,e){e.text+=" ("+acf.__("Uploaded to this post")+")",e.props.uploadedTo=n}))}var s=this.get("field"),r;t.each(i.filters,(function(t,e){e.props._acfuploader=s})),e.get("search").model.attributes._acfuploader=s,i.renderFilters&&i.renderFilters()}}),acf.models.EditMediaPopup=a.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Update","verb")),a.prototype.setup.apply(this,arguments)},addFrameEvents:function(t,e){t.on("open",(function(){this.$el.closest(".media-modal").addClass("acf-expanded"),"browse"!=this.content.mode()&&this.content.mode("browse");var e,i=this.state().get("selection"),a=wp.media.attachment(t.acf.get("attachment"));i.add(a)}),t),a.prototype.addFrameEvents.apply(this,arguments)}});var n=new acf.Model({id:"customizePrototypes",wait:"ready",initialize:function(){if(acf.isset(window,"wp","media","view")){var t=i();t&&acf.isset(wp,"media","view","settings","post")&&(wp.media.view.settings.post.id=t),this.customizeAttachmentsButton(),this.customizeAttachmentsRouter(),this.customizeAttachmentFilters(),this.customizeAttachmentCompat(),this.customizeAttachmentLibrary()}},customizeAttachmentsButton:function(){if(acf.isset(wp,"media","view","Button")){var t=wp.media.view.Button;wp.media.view.Button=t.extend({initialize:function(){var t=_.defaults(this.options,this.defaults);this.model=new Backbone.Model(t),this.listenTo(this.model,"change",this.render)}})}},customizeAttachmentsRouter:function(){if(acf.isset(wp,"media","view","Router")){var e=wp.media.view.Router;wp.media.view.Router=e.extend({addExpand:function(){var e=t(['',''+acf.__("Expand Details")+"",''+acf.__("Collapse Details")+"",""].join(""));e.on("click",(function(e){e.preventDefault();var i=t(this).closest(".media-modal");i.hasClass("acf-expanded")?i.removeClass("acf-expanded"):i.addClass("acf-expanded")})),this.$el.append(e)},initialize:function(){return e.prototype.initialize.apply(this,arguments),this.addExpand(),this}})}},customizeAttachmentFilters:function(){var e;acf.isset(wp,"media","view","AttachmentFilters","All")&&(wp.media.view.AttachmentFilters.All.prototype.renderFilters=function(){this.$el.html(_.chain(this.filters).map((function(e,i){return{el:t("").val(i).html(e.text)[0],priority:e.priority||50}}),this).sortBy("priority").pluck("el").value())})},customizeAttachmentCompat:function(){if(acf.isset(wp,"media","view","AttachmentCompat")){var e=wp.media.view.AttachmentCompat,i=!1;wp.media.view.AttachmentCompat=e.extend({render:function(){return this.rendered?this:(e.prototype.render.apply(this,arguments),this.$("#acf-form-data").length?(clearTimeout(i),i=setTimeout(t.proxy((function(){this.rendered=!0,acf.doAction("append",this.$el)}),this),50),this):this)},save:function(t){var e={};t&&t.preventDefault(),e=acf.serializeForAjax(this.$el),this.controller.trigger("attachment:compat:waiting",["waiting"]),this.model.saveCompat(e).always(_.bind(this.postSave,this))}})}},customizeAttachmentLibrary:function(){if(acf.isset(wp,"media","view","Attachment","Library")){var t=wp.media.view.Attachment.Library;wp.media.view.Attachment.Library=t.extend({render:function(){var e=acf.isget(this,"controller","acf"),i=acf.isget(this,"model","attributes");if(e&&i){i.acf_errors&&this.$el.addClass("acf-disabled");var a=e.get("selected");a&&a.indexOf(i.id)>-1&&this.$el.addClass("acf-selected")}return t.prototype.render.apply(this,arguments)},toggleSelection:function(e){ -var i=this.collection,a=this.options.selection,n=this.model,s=a.single(),r=this.controller,o=acf.isget(this,"model","attributes","acf_errors"),c=r.$el.find(".media-frame-content .media-sidebar");if(c.children(".acf-selection-error").remove(),c.children().removeClass("acf-hidden"),r&&o){var l=acf.isget(this,"model","attributes","filename");return c.children().addClass("acf-hidden"),c.prepend(['
              ',''+acf.__("Restricted")+"",''+l+"",''+o+"","
              "].join("")),a.reset(),void a.single(n)}return t.prototype.toggleSelection.apply(this,arguments)}})}}})}(jQuery),function(t,e){acf.screen=new acf.Model({active:!0,xhr:!1,timeout:!1,wait:"load",events:{"change #page_template":"onChange","change #parent_id":"onChange","change #post-formats-select":"onChange","change .categorychecklist":"onChange","change .tagsdiv":"onChange",'change .acf-taxonomy-field[data-save="1"]':"onChange","change #product-type":"onChange"},isPost:function(){return"post"===acf.get("screen")},isUser:function(){return"user"===acf.get("screen")},isTaxonomy:function(){return"taxonomy"===acf.get("screen")},isAttachment:function(){return"attachment"===acf.get("screen")},isNavMenu:function(){return"nav_menu"===acf.get("screen")},isWidget:function(){return"widget"===acf.get("screen")},isComment:function(){return"comment"===acf.get("screen")},getPageTemplate:function(){var e=t("#page_template");return e.length?e.val():null},getPageParent:function(e,i){var i;return(i=t("#parent_id")).length?i.val():null},getPageType:function(t,e){return this.getPageParent()?"child":"parent"},getPostType:function(){return t("#post_type").val()},getPostFormat:function(e,i){var i;if((i=t("#post-formats-select input:checked")).length){var a=i.val();return"0"==a?"standard":a}return null},getPostCoreTerms:function(){var e={},i=acf.serialize(t(".categorydiv, .tagsdiv"));for(var a in i.tax_input&&(e=i.tax_input),i.post_category&&(e.category=i.post_category),e)acf.isArray(e[a])||(e[a]=e[a].split(/,[\s]?/));return e},getPostTerms:function(){var t=this.getPostCoreTerms();for(var e in acf.getFields({type:"taxonomy"}).map((function(e){if(e.get("save")){var i=e.val(),a=e.get("taxonomy");i&&(t[a]=t[a]||[],i=acf.isArray(i)?i:[i],t[a]=t[a].concat(i))}})),null!==(productType=this.getProductType())&&(t.product_type=[productType]),t)t[e]=acf.uniqueArray(t[e]);return t},getProductType:function(){var e=t("#product-type");return e.length?e.val():null},check:function(){if("post"===acf.get("screen")){this.xhr&&this.xhr.abort();var e=acf.parseArgs(this.data,{action:"acf/ajax/check_screen",screen:acf.get("screen"),exists:[]});this.isPost()&&(e.post_id=acf.get("post_id")),null!==(postType=this.getPostType())&&(e.post_type=postType),null!==(pageTemplate=this.getPageTemplate())&&(e.page_template=pageTemplate),null!==(pageParent=this.getPageParent())&&(e.page_parent=pageParent),null!==(pageType=this.getPageType())&&(e.page_type=pageType),null!==(postFormat=this.getPostFormat())&&(e.post_format=postFormat),null!==(postTerms=this.getPostTerms())&&(e.post_terms=postTerms),acf.getPostboxes().map((function(t){e.exists.push(t.get("key"))})),e=acf.applyFilters("check_screen_args",e);var i=function(t){"post"==acf.get("screen")?this.renderPostScreen(t):"user"==acf.get("screen")&&this.renderUserScreen(t),acf.doAction("check_screen_complete",t,e)};this.xhr=t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:i})}},onChange:function(t,e){this.setTimeout(this.check,1)},renderPostScreen:function(e){var i=function(e,i){var a=t._data(e[0]).events;for(var n in a)for(var s=0;s=0;n--)if(t("#"+i[n]).length)return t("#"+i[n]).after(t("#"+e));for(var n=a+1;n=5.5)var c=['
              ','

              ',""+acf.escHtml(n.title)+"","

              ",'
              ','","
              ","
              "].join("");else var c=['",'

              ',""+acf.escHtml(n.title)+"","

              "].join("");var l=t(['
              ',c,'
              ',n.html,"
              ","
              "].join(""));if(t("#adv-settings").length){var d=t("#adv-settings .metabox-prefs"),u=t(['"].join(""));i(d.find("input").first(),u.find("input")),d.append(u)}t(".postbox").length&&(i(t(".postbox .handlediv").first(),l.children(".handlediv")),i(t(".postbox .hndle").first(),l.children(".hndle"))),"side"===n.position?t("#"+n.position+"-sortables").append(l):t("#"+n.position+"-sortables").prepend(l);var f=[];if(e.results.map((function(e){n.position===e.position&&t("#"+n.position+"-sortables #"+e.id).length&&f.push(e.id)})),a(n.id,f),e.sorted)for(var p in e.sorted){var f=e.sorted[p].split(",");if(a(n.id,f))break}r=acf.newPostbox(n),acf.doAction("append",l),acf.doAction("append_postbox",r)}return r.showEnable(),e.visible.push(n.id),n})),acf.getPostboxes().map((function(t){-1===e.visible.indexOf(t.get("id"))&&(t.hideDisable(),e.hidden.push(t.get("id")))})),t("#acf-style").html(e.style),acf.doAction("refresh_post_screen",e)},renderUserScreen:function(t){}});var i=new acf.Model({postEdits:{},wait:"prepare",initialize:function(){var t;acf.isGutenberg()&&(wp.data.subscribe(acf.debounce(this.onChange).bind(this)),acf.screen.getPageTemplate=this.getPageTemplate,acf.screen.getPageParent=this.getPageParent,acf.screen.getPostType=this.getPostType,acf.screen.getPostFormat=this.getPostFormat,acf.screen.getPostCoreTerms=this.getPostCoreTerms,acf.unload.disable(),parseFloat(acf.get("wp_version"))>=5.3&&this.addAction("refresh_post_screen",this.onRefreshPostScreen),wp.domReady(acf.refresh))},onChange:function(){var t=["template","parent","format"];(wp.data.select("core").getTaxonomies()||[]).map((function(e){t.push(e.rest_base)}));var i=wp.data.select("core/editor").getPostEdits(),a={};t.map((function(t){i[t]!==e&&(a[t]=i[t])})),JSON.stringify(a)!==JSON.stringify(this.postEdits)&&(this.postEdits=a,acf.screen.check())},getPageTemplate:function(){return wp.data.select("core/editor").getEditedPostAttribute("template")},getPageParent:function(t,e){return wp.data.select("core/editor").getEditedPostAttribute("parent")},getPostType:function(){return wp.data.select("core/editor").getEditedPostAttribute("type")},getPostFormat:function(t,e){return wp.data.select("core/editor").getEditedPostAttribute("format")},getPostCoreTerms:function(){var t={},e;return(wp.data.select("core").getTaxonomies()||[]).map((function(e){var i=wp.data.select("core/editor").getEditedPostAttribute(e.rest_base);i&&(t[e.slug]=i)})),t},onRefreshPostScreen:function(t){var e=wp.data.select("core/edit-post"),i=wp.data.dispatch("core/edit-post"),a={};e.getActiveMetaBoxLocations().map((function(t){a[t]=e.getMetaBoxesPerLocation(t)}));var n=[];for(var s in a)a[s].map((function(t){n.push(t.id)}));for(var s in t.results.filter((function(t){return-1===n.indexOf(t.id)})).map((function(t,e){var i=t.position;a[i]=a[i]||[],a[i].push({id:t.id,title:t.title})})),a)a[s]=a[s].filter((function(e){return-1===t.hidden.indexOf(e.id)}));i.setAvailableMetaBoxesPerLocation(a)}})}(jQuery),function(t,e){function i(){return acf.isset(window,"jQuery","fn","select2","amd")?4:!!acf.isset(window,"Select2")&&3}acf.newSelect2=function(t,e){if(e=acf.parseArgs(e,{allowNull:!1,placeholder:"",multiple:!1,field:!1,ajax:!1,ajaxAction:"",ajaxData:function(t){return t},ajaxResults:function(t){return t}}),4==i())var a=new n(t,e);else var a=new s(t,e);return acf.doAction("new_select2",a),a};var a=acf.Model.extend({setup:function(e,i){t.extend(this.data,i),this.$el=e},initialize:function(){},selectOption:function(t){var e=this.getOption(t);e.prop("selected")||e.prop("selected",!0).trigger("change")},unselectOption:function(t){var e=this.getOption(t);e.prop("selected")&&e.prop("selected",!1).trigger("change")},getOption:function(t){return this.$('option[value="'+t+'"]')},addOption:function(e){e=acf.parseArgs(e,{id:"",text:"",selected:!1});var i=this.getOption(e.id);return i.length||((i=t("")).html(e.text),i.attr("value",e.id),i.prop("selected",e.selected),this.$el.append(i)),i},getValue:function(){var e=[],i=this.$el.find("option:selected");return i.exists()?((i=i.sort((function(t,e){return+t.getAttribute("data-i")-+e.getAttribute("data-i")}))).each((function(){var i=t(this);e.push({$el:i,id:i.attr("value"),text:i.text()})})),e):e},mergeOptions:function(){},getChoices:function(){var e=function(i){var a=[];return i.children().each((function(){var i=t(this);i.is("optgroup")?a.push({text:i.attr("label"),children:e(i)}):a.push({id:i.attr("value"),text:i.text()})})),a};return e(this.$el)},getAjaxData:function(t){var e={action:this.get("ajaxAction"),s:t.term||"",paged:t.page||1},i=this.get("field");i&&(e.field_key=i.get("key"));var a=this.get("ajaxData");return a&&(e=a.apply(this,[e,t])),e=acf.applyFilters("select2_ajax_data",e,this.data,this.$el,i||!1,this),acf.prepareForAjax(e)},getAjaxResults:function(t,e){t=acf.parseArgs(t,{results:!1,more:!1});var i=this.get("ajaxResults");return i&&(t=i.apply(this,[t,e])),t=acf.applyFilters("select2_ajax_results",t,e,this)},processAjaxResults:function(e,i){var e;return(e=this.getAjaxResults(e,i)).more&&(e.pagination={more:!0}),setTimeout(t.proxy(this.mergeOptions,this),1),e},destroy:function(){this.$el.data("select2")&&this.$el.select2("destroy"),this.$el.siblings(".select2-container").remove()}}),n=a.extend({initialize:function(){var i=this.$el,a={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),multiple:this.get("multiple"),data:[],escapeMarkup:function(t){return acf.escHtml(t)}};a.multiple&&this.getValue().map((function(t){t.$el.detach().appendTo(i)}));var n=i.attr("data-ajax");n!==e&&(i.removeData("ajax"),i.removeAttr("data-ajax")),this.get("ajax")&&(a.ajax={url:acf.get("ajaxurl"),delay:250,dataType:"json",type:"post",cache:!1,data:t.proxy(this.getAjaxData,this),processResults:t.proxy(this.processAjaxResults,this)});var s=this.get("field");a=acf.applyFilters("select2_args",a,i,this.data,s||!1,this),i.select2(a);var r=i.next(".select2-container");if(a.multiple){var o=r.find("ul");o.sortable({stop:function(e){o.find(".select2-selection__choice").each((function(){var e;t(t(this).data("data").element).detach().appendTo(i)})),i.trigger("change")}}),i.on("select2:select",this.proxy((function(t){this.getOption(t.params.data.id).detach().appendTo(this.$el)})))}r.addClass("-acf"),n!==e&&i.attr("data-ajax",n),acf.doAction("select2_init",i,a,this.data,s||!1,this)},mergeOptions:function(){var e=!1,i=!1;t('.select2-results__option[role="group"]').each((function(){var a=t(this).children("ul"),n=t(this).children("strong");if(i&&i.text()===n.text())return e.append(a.children()),void t(this).remove();e=a,i=n}))}}),s=a.extend({initialize:function(){var e=this.$el,i=this.getValue(),a=this.get("multiple"),n={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),separator:"||",multiple:this.get("multiple"),data:this.getChoices(),escapeMarkup:function(t){return acf.escHtml(t)},dropdownCss:{"z-index":"999999999"},initSelection:function(t,e){e(a?i:i.shift())}},s=e.siblings("input");s.length||(s=t(''),e.before(s)),inputValue=i.map((function(t){return t.id})).join("||"),s.val(inputValue),n.multiple&&i.map((function(t){t.$el.detach().appendTo(e)})),n.allowClear&&(n.data=n.data.filter((function(t){return""!==t.id}))),e.removeData("ajax"),e.removeAttr("data-ajax"),this.get("ajax")&&(n.ajax={url:acf.get("ajaxurl"),quietMillis:250,dataType:"json",type:"post",cache:!1,data:t.proxy(this.getAjaxData,this),results:t.proxy(this.processAjaxResults,this)});var r=this.get("field");n=acf.applyFilters("select2_args",n,e,this.data,r||!1,this),s.select2(n);var o=s.select2("container"),c=t.proxy(this.getOption,this);if(n.multiple){var l=o.find("ul");l.sortable({stop:function(){l.find(".select2-search-choice").each((function(){var i=t(this).data("select2Data"),a;c(i.id).detach().appendTo(e)})),e.trigger("change")}})}s.on("select2-selecting",(function(i){var a=i.choice,n=c(a.id);n.length||(n=t('")),n.detach().appendTo(e)})),o.addClass("-acf"),acf.doAction("select2_init",e,n,this.data,r||!1,this),s.on("change",(function(){var t=s.val();t.indexOf("||")&&(t=t.split("||")),e.val(t).trigger("change")})),e.hide()},mergeOptions:function(){var e=!1,i=!1;t("#select2-drop .select2-result-with-children").each((function(){var a=t(this).children("ul"),n=t(this).children(".select2-result-label");if(i&&i.text()===n.text())return i.append(a.children()),void t(this).remove();e=a,i=n}))},getAjaxData:function(t,e){var i={term:t,page:e};return a.prototype.getAjaxData.apply(this,[i])}}),r=new acf.Model({priority:5,wait:"prepare",actions:{duplicate:"onDuplicate"},initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),a=acf.get("select2L10n"),n=i();return!!a&&(0!==t.indexOf("en")&&void(4==n?this.addTranslations4():3==n&&this.addTranslations3()))},addTranslations4:function(){var t=acf.get("select2L10n"),e=acf.get("locale");e=e.replace("_","-");var i={errorLoading:function(){return t.load_fail},inputTooLong:function(e){var i=e.input.length-e.maximum;return i>1?t.input_too_long_n.replace("%d",i):t.input_too_long_1},inputTooShort:function(e){var i=e.minimum-e.input.length;return i>1?t.input_too_short_n.replace("%d",i):t.input_too_short_1},loadingMore:function(){return t.load_more},maximumSelected:function(e){var i=e.maximum;return i>1?t.selection_too_long_n.replace("%d",i):t.selection_too_long_1},noResults:function(){return t.matches_0},searching:function(){return t.searching}};jQuery.fn.select2.amd.define("select2/i18n/"+e,[],(function(){return i}))},addTranslations3:function(){var e=acf.get("select2L10n"),i=acf.get("locale");i=i.replace("_","-");var a={formatMatches:function(t){return t>1?e.matches_n.replace("%d",t):e.matches_1},formatNoMatches:function(){return e.matches_0},formatAjaxError:function(){return e.load_fail},formatInputTooShort:function(t,i){var a=i-t.length;return a>1?e.input_too_short_n.replace("%d",a):e.input_too_short_1},formatInputTooLong:function(t,i){var a=t.length-i;return a>1?e.input_too_long_n.replace("%d",a):e.input_too_long_1},formatSelectionTooBig:function(t){return t>1?e.selection_too_long_n.replace("%d",t):e.selection_too_long_1},formatLoadMore:function(){return e.load_more},formatSearching:function(){return e.searching}};t.fn.select2.locales=t.fn.select2.locales||{},t.fn.select2.locales[i]=a,t.extend(t.fn.select2.defaults,a)},onDuplicate:function(t,e){e.find(".select2-container").remove()}})}(jQuery),function(t,e){acf.tinymce={defaults:function(){return"undefined"!=typeof tinyMCEPreInit&&{tinymce:tinyMCEPreInit.mceInit.acf_content,quicktags:tinyMCEPreInit.qtInit.acf_content};var t},initialize:function(t,e){(e=acf.parseArgs(e,{tinymce:!0,quicktags:!0,toolbar:"full",mode:"visual",field:!1})).tinymce&&this.initializeTinymce(t,e),e.quicktags&&this.initializeQuicktags(t,e)},initializeTinymce:function(e,i){var a=t("#"+e),n=this.defaults(),s=acf.get("toolbars"),r=i.field||!1,o=r.$el||!1;if("undefined"==typeof tinymce)return!1;if(!n)return!1;if(tinymce.get(e))return this.enable(e);var c=t.extend({},n.tinymce,i.tinymce);c.id=e,c.selector="#"+e;var l=i.toolbar;if(l&&s&&s[l])for(var d=1;d<=4;d++)c["toolbar"+d]=s[l][d]||"";if(c.setup=function(t){t.on("change",(function(e){t.save(),a.trigger("change")})),t.on("mouseup",(function(t){var e=new MouseEvent("mouseup");window.dispatchEvent(e)}))},c.wp_autoresize_on=!1,c.tadv_noautop||(c.wpautop=!0),c=acf.applyFilters("wysiwyg_tinymce_settings",c,e,r),tinyMCEPreInit.mceInit[e]=c,"visual"==i.mode){var u=tinymce.init(c),f=tinymce.get(e);if(!f)return!1;f.acf=i.field,acf.doAction("wysiwyg_tinymce_init",f,f.id,c,r)}},initializeQuicktags:function(e,i){var a=this.defaults();if("undefined"==typeof quicktags)return!1;if(!a)return!1;var n=t.extend({},a.quicktags,i.quicktags);n.id=e;var s=i.field||!1,r=s.$el||!1;n=acf.applyFilters("wysiwyg_quicktags_settings",n,n.id,s),tinyMCEPreInit.qtInit[e]=n;var o=quicktags(n);if(!o)return!1;this.buildQuicktags(o),acf.doAction("wysiwyg_quicktags_init",o,o.id,n,s)},buildQuicktags:function(t){var e,i,a,n,s,t,r,o,c,l,d=",strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,";for(o in e=t.canvas,i=t.name,a=t.settings,s="",n={},c="",l=t.id,a.buttons&&(c=","+a.buttons+","),edButtons)edButtons[o]&&(r=edButtons[o].id,c&&-1!==d.indexOf(","+r+",")&&-1===c.indexOf(","+r+",")||edButtons[o].instance&&edButtons[o].instance!==l||(n[r]=edButtons[o],edButtons[o].html&&(s+=edButtons[o].html(i+"_"))));c&&-1!==c.indexOf(",dfw,")&&(n.dfw=new QTags.DFWButton,s+=n.dfw.html(i+"_")),"rtl"===document.getElementsByTagName("html")[0].dir&&(n.textdirection=new QTags.TextDirectionButton,s+=n.textdirection.html(i+"_")),t.toolbar.innerHTML=s,t.theButtons=n,"undefined"!=typeof jQuery&&jQuery(document).triggerHandler("quicktags-init",[t])},disable:function(t){this.destroyTinymce(t)},remove:function(t){this.destroyTinymce(t)},destroy:function(t){this.destroyTinymce(t)},destroyTinymce:function(t){if("undefined"==typeof tinymce)return!1;var e=tinymce.get(t);return!!e&&(e.save(),e.destroy(),!0)},enable:function(t){this.enableTinymce(t)},enableTinymce:function(e){return"undefined"!=typeof switchEditors&&(void 0!==tinyMCEPreInit.mceInit[e]&&(t("#"+e).show(),switchEditors.go(e,"tmce"),!0))}};var i=new acf.Model({priority:5,actions:{prepare:"onPrepare",ready:"onReady"},onPrepare:function(){var e=t("#acf-hidden-wp-editor");e.exists()&&e.appendTo("body")},onReady:function(){acf.isset(window,"wp","oldEditor")&&(wp.editor.autop=wp.oldEditor.autop,wp.editor.removep=wp.oldEditor.removep),acf.isset(window,"tinymce","on")&&tinymce.on("AddEditor",(function(t){var e=t.editor;"acf"===e.id.substr(0,3)&&(e=tinymce.editors.content||e,tinymce.activeEditor=e,wpActiveEditor=e.id)}))}})}(jQuery),function(t,e){var i=acf.Model.extend({id:"Validator",data:{errors:[],notice:null,status:""},events:{"changed:status":"onChangeStatus"},addErrors:function(t){t.map(this.addError,this)},addError:function(t){this.data.errors.push(t)},hasErrors:function(){return this.data.errors.length},clearErrors:function(){return this.data.errors=[]},getErrors:function(){return this.data.errors},getFieldErrors:function(){var t=[],e=[];return this.getErrors().map((function(i){if(i.input){var a=e.indexOf(i.input);a>-1?t[a]=i:(t.push(i),e.push(i.input))}})),t},getGlobalErrors:function(){return this.getErrors().filter((function(t){return!t.input}))},showErrors:function(){if(this.hasErrors()){var e=this.getFieldErrors(),i=this.getGlobalErrors(),a=0,n=!1;e.map((function(t){var e=this.$('[name="'+t.input+'"]').first();if(e.length||(e=this.$('[name^="'+t.input+'"]').first()),e.length){a++;var i=acf.getClosestField(e);i.showError(t.message),n||(n=i.$el)}}),this);var s=acf.__("Validation failed");if(i.map((function(t){s+=". "+t.message})),1==a?s+=". "+acf.__("1 field requires attention"):a>1&&(s+=". "+acf.__("%d fields require attention").replace("%d",a)),this.has("notice"))this.get("notice").update({type:"error",text:s});else{var r=acf.newNotice({type:"error",text:s,target:this.$el});this.set("notice",r)}n||(n=this.get("notice").$el),setTimeout((function(){t("html, body").animate({scrollTop:n.offset().top-t(window).height()/2},500)}),10)}},onChangeStatus:function(t,e,i,a){this.$el.removeClass("is-"+a).addClass("is-"+i)},validate:function(e){if(e=acf.parseArgs(e,{event:!1,reset:!1,loading:function(){},complete:function(){},failure:function(){},success:function(t){t.submit()}}),"valid"==this.get("status"))return!0;if("validating"==this.get("status"))return!1;if(!this.$(".acf-field").length)return!0;if(e.event){var i=t.Event(null,e.event);e.success=function(){acf.enableSubmit(t(i.target)).trigger(i)}}acf.doAction("validation_begin",this.$el),acf.lockForm(this.$el),e.loading(this.$el,this),this.set("status","validating");var a=function(t){if(acf.isAjaxSuccess(t)){var e=acf.applyFilters("validation_complete",t.data,this.$el,this);e.valid||this.addErrors(e.errors)}},n=function(){acf.unlockForm(this.$el),this.hasErrors()?(this.set("status","invalid"),acf.doAction("validation_failure",this.$el,this),this.showErrors(),e.failure(this.$el,this)):(this.set("status","valid"),this.has("notice")&&this.get("notice").update({type:"success",text:acf.__("Validation successful"),timeout:1e3}),acf.doAction("validation_success",this.$el,this),acf.doAction("submit",this.$el),e.success(this.$el,this),acf.lockForm(this.$el),e.reset&&this.reset()),e.complete(this.$el,this),this.clearErrors()},s=acf.serialize(this.$el);return s.action="acf/validate_save_post",t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(s),type:"post",dataType:"json",context:this,success:a,complete:n}),!1},setup:function(t){this.$el=t},reset:function(){this.set("errors",[]),this.set("notice",null),this.set("status",""),acf.unlockForm(this.$el)}}),a=function(t){var e=t.data("acf");return e||(e=new i(t)),e};acf.validateForm=function(t){return a(t.form).validate(t)},acf.enableSubmit=function(t){return t.removeClass("disabled")},acf.disableSubmit=function(t){return t.addClass("disabled")},acf.showSpinner=function(t){return t.addClass("is-active"),t.css("display","inline-block"),t},acf.hideSpinner=function(t){return t.removeClass("is-active"),t.css("display","none"),t},acf.lockForm=function(t){var e=n(t),i=e.find('.button, [type="submit"]'),a=e.find(".spinner, .acf-spinner");return acf.hideSpinner(a),acf.disableSubmit(i),acf.showSpinner(a.last()),t},acf.unlockForm=function(t){var e=n(t),i=e.find('.button, [type="submit"]'),a=e.find(".spinner, .acf-spinner");return acf.enableSubmit(i),acf.hideSpinner(a),t};var n=function(t){var e,e,e,e;return(e=t.find("#submitdiv")).length||(e=t.find("#submitpost")).length||(e=t.find("p.submit").last()).length||(e=t.find(".acf-form-submit")).length?e:t},s=acf.debounce((function(t){t.submit()}));acf.validation=new acf.Model({id:"validation",active:!0,wait:"prepare",actions:{ready:"addInputEvents",append:"addInputEvents"},events:{'click input[type="submit"]':"onClickSubmit",'click button[type="submit"]':"onClickSubmit","click #save-post":"onClickSave","submit form#post":"onSubmitPost","submit form":"onSubmit"},initialize:function(){acf.get("validation")||(this.active=!1,this.actions={},this.events={})},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(t){a(t).reset()},addInputEvents:function(e){if("safari"!==acf.get("browser")){var i=t(".acf-field [name]",e);i.length&&this.on(i,"invalid","onInvalid")}},onInvalid:function(t,e){t.preventDefault();var i=e.closest("form");i.length&&(a(i).addError({input:e.attr("name"),message:acf.strEscape(t.target.validationMessage)}),s(i))},onClickSubmit:function(t,e){this.set("originalEvent",t)},onClickSave:function(t,e){this.set("ignore",!0)},onClickSubmitGutenberg:function(e,i){var a;acf.validateForm({form:t("#editor"),event:e,reset:!0,failure:function(t,e){var i=e.get("notice").$el;i.appendTo(".components-notice-list"),i.find(".acf-notice-dismiss").removeClass("small")}})||(e.preventDefault(),e.stopImmediatePropagation())},onSubmitPost:function(e,i){"dopreview"===t("input#wp-preview").val()&&(this.set("ignore",!0),acf.unlockForm(i))},onSubmit:function(t,e){if(!this.active||this.get("ignore")||t.isDefaultPrevented())return this.allowSubmit();var i;acf.validateForm({form:e,event:this.get("originalEvent")})||t.preventDefault()},allowSubmit:function(){return this.set("ignore",!1),this.set("originalEvent",!1),!0}});var r=new acf.Model({wait:"prepare",initialize:function(){acf.isGutenberg()&&this.customizeEditor()},customizeEditor:function(){var e=wp.data.dispatch("core/editor"),i=wp.data.select("core/editor"),a=wp.data.dispatch("core/notices"),n=e.savePost,s=!1,r="";wp.data.subscribe((function(){var t=i.getEditedPostAttribute("status");s="publish"===t,r="publish"!==t?t:r})),e.savePost=function(i){i=i||{};var o=this,c=arguments;return new Promise((function(n,o){return i.isAutosave||i.isPreview?n("Validation ignored (autosave)."):s?void(acf.validateForm({form:t("#editor"),reset:!0,complete:function(t,i){e.unlockPostSaving("acf")},failure:function(t,i){var n=i.get("notice");a.createErrorNotice(n.get("text"),{id:"acf-validation",isDismissible:!0}),n.remove(),r&&e.editPost({status:r}),o("Validation failed.")},success:function(){a.removeNotice("acf-validation"),n("Validation success.")}})?n("Validation bypassed."):e.lockPostSaving("acf")):n("Validation ignored (draft).");var c})).then((function(){return n.apply(o,c)}))}}})}(jQuery),function(t,e){var i=new acf.Model({priority:90,actions:{new_field:"refresh",show_field:"refresh",hide_field:"refresh",remove_field:"refresh",unmount_field:"refresh",remount_field:"refresh"},refresh:function(){acf.refresh()}}),a=new acf.Model({priority:1,actions:{sortstart:"onSortstart",sortstop:"onSortstop"},onSortstart:function(t){acf.doAction("unmount",t)},onSortstop:function(t){acf.doAction("remount",t)}}),n=new acf.Model({actions:{sortstart:"onSortstart"},onSortstart:function(e,i){e.is("tr")&&(i.html('
              '),e.addClass("acf-sortable-tr-helper"),e.children().each((function(){t(this).width(t(this).width())})),i.height(e.height()+"px"),e.removeClass("acf-sortable-tr-helper"))}}),s=new acf.Model({actions:{after_duplicate:"onAfterDuplicate"},onAfterDuplicate:function(e,i){var a=[];e.find("select").each((function(e){a.push(t(this).val())})),i.find("select").each((function(e){t(this).val(a[e])}))}}),r=new acf.Model({id:"tableHelper",priority:20,actions:{refresh:"renderTables"},renderTables:function(e){var i=this;t(".acf-table:visible").each((function(){i.renderTable(t(this))}))},renderTable:function(e){var i=e.find("> thead > tr:visible > th[data-key]"),a=e.find("> tbody > tr:visible > td[data-key]");if(!i.length||!a.length)return!1;i.each((function(e){var i=t(this),n=i.data("key"),s=a.filter('[data-key="'+n+'"]'),r=s.filter(".acf-hidden");s.removeClass("acf-empty"),s.length===r.length?acf.hide(i):(acf.show(i),r.addClass("acf-empty"))})),i.css("width","auto"),i=i.not(".acf-hidden");var n=100,s=i.length,r;i.filter("[data-width]").each((function(){var e=t(this).data("width");t(this).css("width",e+"%"),n-=e}));var o=i.not("[data-width]");if(o.length){var c=n/o.length;o.css("width",c+"%"),n=0}n>0&&i.last().css("width","auto"),a.filter(".-collapsed-target").each((function(){var e=t(this);e.parent().hasClass("-collapsed")?e.attr("colspan",i.length):e.removeAttr("colspan")}))}}),o=new acf.Model({id:"fieldsHelper",priority:30,actions:{refresh:"renderGroups"},renderGroups:function(){var e=this;t(".acf-fields:visible").each((function(){e.renderGroup(t(this))}))},renderGroup:function(e){var i=0,a=0,n=t(),s=e.children(".acf-field[data-width]:visible");return!!s.length&&(e.hasClass("-left")?(s.removeAttr("data-width"),s.css("width","auto"),!1):(s.removeClass("-r0 -c0").css({"min-height":0}),s.each((function(e){var s=t(this),r=s.position(),o=Math.ceil(r.top),c=Math.ceil(r.left);n.length&&o>i&&(n.css({"min-height":a+"px"}),r=s.position(),o=Math.ceil(r.top),c=Math.ceil(r.left),i=0,a=0,n=t()),acf.get("rtl")&&(c=Math.ceil(s.parent().width()-(r.left+s.outerWidth()))),0==o?s.addClass("-r0"):0==c&&s.addClass("-c0");var l=Math.ceil(s.outerHeight())+1;a=Math.max(a,l),i=Math.max(i,o),n=n.add(s)})),void(n.length&&n.css({"min-height":a+"px"}))))}}),c=new acf.Model({id:"bodyClassShiftHelper",events:{keydown:"onKeyDown",keyup:"onKeyUp"},isShiftKey:function(t){return 16===t.keyCode},onKeyDown:function(e){this.isShiftKey(e)&&t("body").addClass("acf-keydown-shift")},onKeyUp:function(e){this.isShiftKey(e)&&t("body").removeClass("acf-keydown-shift")}})}(jQuery),function(t,e){acf.newCompatibility=function(t,e){return(e=e||{}).__proto__=t.__proto__,t.__proto__=e,t.compatibility=e,e},acf.getCompatibility=function(t){return t.compatibility||null};var i=acf.newCompatibility(acf,{l10n:{},o:{},fields:{},update:acf.set,add_action:acf.addAction,remove_action:acf.removeAction,do_action:acf.doAction,add_filter:acf.addFilter,remove_filter:acf.removeFilter,apply_filters:acf.applyFilters,parse_args:acf.parseArgs,disable_el:acf.disable,disable_form:acf.disable,enable_el:acf.enable,enable_form:acf.enable,update_user_setting:acf.updateUserSetting,prepare_for_ajax:acf.prepareForAjax,is_ajax_success:acf.isAjaxSuccess,remove_el:acf.remove,remove_tr:acf.remove,str_replace:acf.strReplace,render_select:acf.renderSelect,get_uniqid:acf.uniqid,serialize_form:acf.serialize,esc_html:acf.strEscape,str_sanitize:acf.strSanitize});i._e=function(t,e){t=t||"";var i=(e=e||"")?t+"."+e:t,a={"image.select":"Select Image","image.edit":"Edit Image","image.update":"Update Image"};if(a[i])return acf.__(a[i]);var n=this.l10n[t]||"";return e&&(n=n[e]||""),n},i.get_selector=function(e){var i=".acf-field";if(!e)return i;if(t.isPlainObject(e)){if(t.isEmptyObject(e))return i;for(var a in e){e=e[a];break}}return i+="-"+e,i=acf.strReplace("_","-",i),i=acf.strReplace("field-field-","field-",i)},i.get_fields=function(t,e,i){var a={is:t||"",parent:e||!1,suppressFilters:i||!1};return a.is&&(a.is=this.get_selector(a.is)),acf.findFields(a)},i.get_field=function(t,e){var i=this.get_fields.apply(this,arguments);return!!i.length&&i.first()},i.get_closest_field=function(t,e){return t.closest(this.get_selector(e))},i.get_field_wrap=function(t){return t.closest(this.get_selector())},i.get_field_key=function(t){return t.data("key")},i.get_field_type=function(t){return t.data("type")},i.get_data=function(t,e){return acf.parseArgs(t.data(),e)},i.maybe_get=function(t,i,a){a===e&&(a=null),keys=String(i).split(".");for(var n=0;n1){for(var c=0;c0?e.substr(0,n):e,r=n>0?e.substr(n+1):"",o=function(e){e.$el=t(this),acf.field_group&&(e.$field=e.$el.closest(".acf-field-object")),"function"==typeof a.event&&(e=a.event(e)), -a[i].apply(a,arguments)};r?t(document).on(s,r,o):t(document).on(s,o)},get:function(t,e){return e=e||null,void 0!==this[t]&&(e=this[t]),e},set:function(t,e){return this[t]=e,"function"==typeof this["_set_"+t]&&this["_set_"+t].apply(this),this}},i.field=acf.model.extend({type:"",o:{},$field:null,_add_action:function(t,e){var i=this;t=t+"_field/type="+i.type,acf.add_action(t,(function(t){i.set("$field",t),i[e].apply(i,arguments)}))},_add_filter:function(t,e){var i=this;t=t+"_field/type="+i.type,acf.add_filter(t,(function(t){i.set("$field",t),i[e].apply(i,arguments)}))},_add_event:function(e,i){var a=this,n=e.substr(0,e.indexOf(" ")),s=e.substr(e.indexOf(" ")+1),r=acf.get_selector(a.type);t(document).on(n,r+" "+s,(function(e){var n=t(this),s=acf.get_closest_field(n,a.type);s.length&&(s.is(a.$field)||a.set("$field",s),e.$el=n,e.$field=s,a[i].apply(a,[e]))}))},_set_$field:function(){"function"==typeof this.focus&&this.focus()},doFocus:function(t){return this.set("$field",t)}});var r=acf.newCompatibility(acf.validation,{remove_error:function(t){acf.getField(t).removeError()},add_warning:function(t,e){acf.getField(t).showNotice({text:e,type:"warning",timeout:1e3})},fetch:acf.validateForm,enableSubmit:acf.enableSubmit,disableSubmit:acf.disableSubmit,showSpinner:acf.showSpinner,hideSpinner:acf.hideSpinner,unlockForm:acf.unlockForm,lockForm:acf.lockForm});i.tooltip={tooltip:function(t,e){var i;return acf.newTooltip({text:t,target:e}).$el},temp:function(t,e){var i=acf.newTooltip({text:t,target:e,timeout:250})},confirm:function(t,e,i,a,n){var s=acf.newTooltip({confirm:!0,text:i,target:t,confirm:function(){e(!0)},cancel:function(){e(!1)}})},confirm_remove:function(t,e){var i=acf.newTooltip({confirmRemove:!0,target:t,confirm:function(){e(!0)},cancel:function(){e(!1)}})}},i.media=new acf.Model({activeFrame:!1,actions:{new_media_popup:"onNewMediaPopup"},frame:function(){return this.activeFrame},onNewMediaPopup:function(t){this.activeFrame=t.frame},popup:function(t){var e;return t.mime_types&&(t.allowedTypes=t.mime_types),t.id&&(t.attachment=t.id),acf.newMediaPopup(t).frame}}),i.select2={init:function(t,e,i){return e.allow_null&&(e.allowNull=e.allow_null),e.ajax_action&&(e.ajaxAction=e.ajax_action),i&&(e.field=acf.getField(i)),acf.newSelect2(t,e)},destroy:function(t){return acf.getInstance(t).destroy()}},i.postbox={render:function(t){return t.edit_url&&(t.editLink=t.edit_url),t.edit_title&&(t.editTitle=t.edit_title),acf.newPostbox(t)}},acf.newCompatibility(acf.screen,{update:function(){return this.set.apply(this,arguments)},fetch:acf.screen.check}),i.ajax=acf.screen}(jQuery); \ No newline at end of file diff --git a/assets/js/acf.min.js b/assets/js/acf.min.js deleted file mode 100644 index 765fa68..0000000 --- a/assets/js/acf.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(t,e){var n={};window.acf=n,n.data={},n.get=function(t){return this.data[t]||null},n.has=function(t){return null!==this.get(t)},n.set=function(t,e){return this.data[t]=e,this};var i=0;n.uniqueId=function(t){var e=++i+"";return t?t+e:e},n.uniqueArray=function(t){function e(t,e,n){return n.indexOf(t)===e}return t.filter(e)};var o="";n.uniqid=function(t,e){var n;void 0===t&&(t="");var i=function(t,e){return e<(t=parseInt(t,10).toString(16)).length?t.slice(t.length-e):e>t.length?Array(e-t.length+1).join("0")+t:t};return o||(o=Math.floor(123456789*Math.random())),o++,n=t,n+=i(parseInt((new Date).getTime()/1e3,10),8),n+=i(o,5),e&&(n+=(10*Math.random()).toFixed(8).toString()),n},n.strReplace=function(t,e,n){return n.split(t).join(e)},n.strCamelCase=function(t){var e=t.match(/([a-zA-Z0-9]+)/g);return e?e.map((function(t,e){var n=t.charAt(0);return(0===e?n.toLowerCase():n.toUpperCase())+t.slice(1)})).join(""):""},n.strPascalCase=function(t){var e=n.strCamelCase(t);return e.charAt(0).toUpperCase()+e.slice(1)},n.strSlugify=function(t){return n.strReplace("_","-",t.toLowerCase())},n.strSanitize=function(t){var n={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","ß":"s","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o"," ":"_","'":"","?":"","/":"","\\":"",".":"",",":"","`":"",">":"","<":"",'"':"","[":"","]":"","|":"","{":"","}":"","(":"",")":""},i=/\W/g,o=function(t){return n[t]!==e?n[t]:t};return t=(t=t.replace(i,o)).toLowerCase()},n.strMatch=function(t,e){for(var n=0,i=Math.min(t.length,e.length),o=0;o":">",'"':""","'":"'"};return(""+t).replace(/[&<>"']/g,(function(t){return e[t]}))},n.strUnescape=function(t){var e={"&":"&","<":"<",">":">",""":'"',"'":"'"};return(""+t).replace(/&|<|>|"|'/g,(function(t){return e[t]}))},n.escAttr=n.strEscape,n.escHtml=function(t){return(""+t).replace(/").html(e).text()},n.parseArgs=function(e,n){return"object"!=typeof e&&(e={}),"object"!=typeof n&&(n={}),t.extend({},n,e)},window.acfL10n==e&&(acfL10n={}),n.__=function(t){return acfL10n[t]||t},n._x=function(t,e){return acfL10n[t+"."+e]||acfL10n[t]||t},n._n=function(t,e,i){return 1==i?n.__(t):n.__(e)},n.isArray=function(t){return Array.isArray(t)},n.isObject=function(t){return"object"==typeof t};var r=function(t,e,i){var o=(e=e.replace("[]","[%%index%%]")).match(/([^\[\]])+/g);if(o)for(var r=o.length,a=t,s=0;s');var s=e.parent();e.css({height:n,width:i,margin:o,position:"absolute"}),setTimeout((function(){s.css({opacity:0,height:t.endHeight})}),50),setTimeout((function(){e.attr("style",a),s.remove(),t.complete()}),301)},u=function(e){var n=e.target,i=n.height(),o=n.children().length,r=t('');n.addClass("acf-remove-element"),setTimeout((function(){n.html(r)}),251),setTimeout((function(){n.removeClass("acf-remove-element"),r.css({height:e.endHeight})}),300),setTimeout((function(){n.remove(),e.complete()}),451)};n.duplicate=function(t){t instanceof jQuery&&(t={target:t}),(t=n.parseArgs(t,{target:!1,search:"",replace:"",rename:!0,before:function(t){},after:function(t,e){},append:function(t,e){t.after(e)}})).target=t.target||t.$el;var e=t.target;t.search=t.search||e.attr("data-id"),t.replace=t.replace||n.uniqid(),t.before(e),n.doAction("before_duplicate",e);var i=e.clone();return t.rename&&n.rename({target:i,search:t.search,replace:t.replace,replacer:"function"==typeof t.rename?t.rename:null}),i.removeClass("acf-clone"),i.find(".ui-sortable").removeClass("ui-sortable"),t.after(e,i),n.doAction("after_duplicate",e,i),t.append(e,i),n.doAction("duplicate",e,i),n.doAction("append",i),i},n.rename=function(t){t instanceof jQuery&&(t={target:t});var e=(t=n.parseArgs(t,{target:!1,destructive:!1,search:"",replace:"",replacer:null})).target;t.search||(t.search=e.attr("data-id")),t.replace||(t.replace=n.uniqid("acf")),t.replacer||(t.replacer=function(t,e,n,i){return e.replace(n,i)});var i=function(e){return function(n,i){return t.replacer(e,i,t.search,t.replace)}};if(t.destructive){var o=n.strReplace(t.search,t.replace,e.outerHTML());e.replaceWith(o)}else e.attr("data-id",t.replace),e.find('[id*="'+t.search+'"]').attr("id",i("id")),e.find('[for*="'+t.search+'"]').attr("for",i("for")),e.find('[name*="'+t.search+'"]').attr("name",i("name"));return e},n.prepareForAjax=function(t){return t.nonce=n.get("nonce"),t.post_id=n.get("post_id"),n.has("language")&&(t.lang=n.get("language")),t=n.applyFilters("prepare_for_ajax",t)},n.startButtonLoading=function(t){t.prop("disabled",!0),t.after(' ')},n.stopButtonLoading=function(t){t.prop("disabled",!1),t.next(".acf-loading").remove()},n.showLoading=function(t){t.append('
              ')},n.hideLoading=function(t){t.children(".acf-loading-overlay").remove()},n.updateUserSetting=function(e,i){var o={action:"acf/ajax/user_setting",name:e,value:i};t.ajax({url:n.get("ajaxurl"),data:n.prepareForAjax(o),type:"post",dataType:"html"})},n.val=function(t,e,n){var i=t.val();return e!==i&&(t.val(e),t.is("select")&&null===t.val()?(t.val(i),!1):(!0!==n&&t.trigger("change"),!0))},n.show=function(t,e){return e&&n.unlock(t,"hidden",e),!n.isLocked(t,"hidden")&&(!!t.hasClass("acf-hidden")&&(t.removeClass("acf-hidden"),!0))},n.hide=function(t,e){return e&&n.lock(t,"hidden",e),!t.hasClass("acf-hidden")&&(t.addClass("acf-hidden"),!0)},n.isHidden=function(t){return t.hasClass("acf-hidden")},n.isVisible=function(t){return!n.isHidden(t)};var f=function(t,e){return!t.hasClass("acf-disabled")&&(e&&n.unlock(t,"disabled",e),!n.isLocked(t,"disabled")&&(!!t.prop("disabled")&&(t.prop("disabled",!1),!0)))};n.enable=function(e,n){if(e.attr("name"))return f(e,n);var i=!1;return e.find("[name]").each((function(){var e;f(t(this),n)&&(i=!0)})),i};var d=function(t,e){return e&&n.lock(t,"disabled",e),!t.prop("disabled")&&(t.prop("disabled",!0),!0)};n.disable=function(e,n){if(e.attr("name"))return d(e,n);var i=!1;return e.find("[name]").each((function(){var e;d(t(this),n)&&(i=!0)})),i},n.isset=function(t){for(var e=1;e-1){var a=window.URL||window.webkitURL,s=new Image;s.onload=function(){o.width=this.width,o.height=this.height,e(o)},s.src=a.createObjectURL(r)}else e(o);else e(o)},n.isAjaxSuccess=function(t){return t&&t.success},n.getAjaxMessage=function(t){return n.isget(t,"data","message")},n.getAjaxError=function(t){return n.isget(t,"data","error")},n.getXhrError=function(t){return t.responseJSON&&t.responseJSON.message?t.responseJSON.message:t.statusText?t.statusText:""},n.renderSelect=function(t,e){var i=t.val(),o=[],r=function(t){var e="";return t.map((function(t){var i=t.text||t.label||"",a=t.id||t.value||"";o.push(a),t.children?e+=''+r(t.children)+"":e+='"})),e};return t.html(r(e)),o.indexOf(i)>-1&&t.val(i),t.val()};var h=function(t,e){return t.data("acf-lock-"+e)||[]},p=function(t,e,n){t.data("acf-lock-"+e,n)},v,g,m,y,w,x;n.lock=function(t,e,n){var i=h(t,e),o;i.indexOf(n)<0&&(i.push(n),p(t,e,i))},n.unlock=function(t,e,n){var i=h(t,e),o=i.indexOf(n);return o>-1&&(i.splice(o,1),p(t,e,i)),0===i.length},n.isLocked=function(t,e){return h(t,e).length>0},n.isGutenberg=function(){return!!(window.wp&&wp.data&&wp.data.select&&wp.data.select("core/editor"))},n.objectToArray=function(t){return Object.keys(t).map((function(e){return t[e]}))},n.debounce=function(t,e){var n;return function(){var i=this,o=arguments,r=function(){t.apply(i,o)};clearTimeout(n),n=setTimeout(r,e)}},n.throttle=function(t,e){var n=!1;return function(){n||(n=!0,setTimeout((function(){n=!1}),e),t.apply(this,arguments))}},n.isInView=function(t){t instanceof jQuery&&(t=t[0]);var e=t.getBoundingClientRect();return e.top!==e.bottom&&e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},n.onceInView=(v=[],g=0,m=function(){v.forEach((function(t){n.isInView(t.el)&&(t.callback.apply(this),x(t.id))}))},y=n.debounce(m,300),w=function(e,n){v.length||t(window).on("scroll resize",y).on("acfrefresh orientationchange",m),v.push({id:g++,el:e,callback:n})},x=function(e){(v=v.filter((function(t){return t.id!==e}))).length||t(window).off("scroll resize",y).off("acfrefresh orientationchange",m)},function(t,e){t instanceof jQuery&&(t=t[0]),n.isInView(t)?e.apply(this):w(t,e)}),n.once=function(t){var n=0;return function(){return n++>0?t=e:t.apply(this,arguments)}},n.focusAttention=function(e){var i=1e3;e.addClass("acf-attention -focused");var o=500;n.isInView(e)||(t("body, html").animate({scrollTop:e.offset().top-t(window).height()/2},o),i+=o);var r=250;setTimeout((function(){e.removeClass("-focused"),setTimeout((function(){e.removeClass("acf-attention")}),r)}),i)},n.onFocus=function(e,n){var i=!1,o=!1,r=function(){i=!0,setTimeout((function(){i=!1}),1),l(!0)},a=function(){i||l(!1)},s=function(){t(document).on("click",a),e.on("blur","input, select, textarea",a)},c=function(){t(document).off("click",a),e.off("blur","input, select, textarea",a)},l=function(t){o!==t&&(t?s():c(),o=t,n(t))};e.on("click",r),e.on("focus","input, select, textarea",r)},t.fn.exists=function(){return t(this).length>0},t.fn.outerHTML=function(){return t(this).get(0).outerHTML},Array.prototype.indexOf||(Array.prototype.indexOf=function(e){return t.inArray(e,this)}),n.isNumeric=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},n.refresh=n.debounce((function(){t(window).trigger("acfrefresh"),n.doAction("refresh")}),0),t(document).ready((function(){n.doAction("ready")})),t(window).on("load",(function(){setTimeout((function(){n.doAction("load")}))})),t(window).on("beforeunload",(function(){n.doAction("unload")})),t(window).on("resize",(function(){n.doAction("resize")})),t(document).on("sortstart",(function(t,e){n.doAction("sortstart",e.item,e.placeholder)})),t(document).on("sortstop",(function(t,e){n.doAction("sortstop",e.item,e.placeholder)}))}(jQuery),function(t,e){"use strict";var n=function(){function t(){return d}function e(t,e,n,i){return"string"==typeof t&&"function"==typeof e&&c("actions",t,e,n=parseInt(n||10,10),i),f}function n(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e&&u("actions",e,t),f}function i(t,e){return"string"==typeof t&&s("actions",t,e),f}function o(t,e,n,i){return"string"==typeof t&&"function"==typeof e&&c("filters",t,e,n=parseInt(n||10,10),i),f}function r(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e?u("filters",e,t):f}function a(t,e){return"string"==typeof t&&s("filters",t,e),f}function s(t,e,n,i){if(d[t][e])if(n){var o=d[t][e],r;if(i)for(r=o.length;r--;){var a=o[r];a.callback===n&&a.context===i&&o.splice(r,1)}else for(r=o.length;r--;)o[r].callback===n&&o.splice(r,1)}else d[t][e]=[]}function c(t,e,n,i,o){var r={callback:n,priority:i,context:o},a=d[t][e];a?(a.push(r),a=l(a)):a=[r],d[t][e]=a}function l(t){for(var e,n,i,o=1,r=t.length;oe.priority;)t[n]=t[n-1],--n;t[n]=e}return t}function u(t,e,n){var i=d[t][e];if(!i)return"filters"===t&&n[0];var o=0,r=i.length;if("filters"===t)for(;o','
              ','

              ','
              ','
              ',"
              ",'
              ',""].join("")},render:function(){var t=this.get("title"),e=this.get("content"),n=this.get("loading"),i=this.get("width"),o=this.get("height");this.title(t),this.content(e),i&&this.$(".acf-popup-box").css("width",i),o&&this.$(".acf-popup-box").css("min-height",o),this.loading(n),acf.doAction("append",this.$el)},update:function(t){this.data=acf.parseArgs(t,this.data),this.render()},title:function(t){this.$(".title:first h3").html(t)},content:function(t){this.$(".inner:first").html(t)},loading:function(t){var e=this.$(".loading:first");t?e.show():e.hide()},open:function(){t("body").append(this.$el)},close:function(){this.remove()},onClickClose:function(t,e){t.preventDefault(),this.close()}}),acf.newPopup=function(t){return new acf.models.Popup(t)}}(jQuery),function(t,e){acf.models.Modal=acf.Model.extend({data:{title:"",content:"",toolbar:""},events:{"click .acf-modal-close":"onClickClose"},setup:function(e){t.extend(this.data,e),this.$el=t(),this.render()},initialize:function(){this.open()},render:function(){var e=this.get("title"),n=this.get("content"),i=this.get("toolbar"),o=t(["
              ",'
              ','
              ',"

              "+e+"

              ",'',"
              ",'
              '+n+"
              ",'
              '+i+"
              ","
              ",'
              ',"
              "].join(""));this.$el&&this.$el.replaceWith(o),this.$el=o,acf.doAction("append",o)},update:function(t){this.data=acf.parseArgs(t,this.data),this.render()},title:function(t){this.$(".acf-modal-title h2").html(t)},content:function(t){this.$(".acf-modal-content").html(t)},toolbar:function(t){this.$(".acf-modal-toolbar").html(t)},open:function(){t("body").append(this.$el)},close:function(){this.remove()},onClickClose:function(t,e){t.preventDefault(),this.close()}}),acf.newModal=function(t){return new acf.models.Modal(t)}}(jQuery),function(t,e){var n=new acf.Model({events:{"click .acf-panel-title":"onClick"},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},isOpen:function(t){return t.hasClass("-open")},toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},open:function(t){t.addClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-down")},close:function(t){t.removeClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-right")}})}(jQuery),function(t,e){var n=acf.Model.extend({data:{text:"",type:"",timeout:0,dismiss:!0,target:!1,close:function(){}},events:{"click .acf-notice-dismiss":"onClickClose"},tmpl:function(){return'
              '},setup:function(e){t.extend(this.data,e),this.$el=t(this.tmpl())},initialize:function(){this.render(),this.show()},render:function(){this.type(this.get("type")),this.html("

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

              "),this.get("dismiss")&&(this.$el.append(''),this.$el.addClass("-dismiss"));var t=this.get("timeout");t&&this.away(t)},update:function(e){t.extend(this.data,e),this.initialize(),this.removeEvents(),this.addEvents()},show:function(){var t=this.get("target");t&&t.prepend(this.$el)},hide:function(){this.$el.remove()},away:function(t){this.setTimeout((function(){acf.remove(this.$el)}),t)},type:function(t){var e=this.get("type");e&&this.$el.removeClass("-"+e),this.$el.addClass("-"+t),"error"==t&&this.$el.addClass("acf-error-message")},html:function(t){this.$el.html(acf.escHtml(t))},text:function(t){this.$("p").html(acf.escHtml(t))},onClickClose:function(t,e){t.preventDefault(),this.get("close").apply(this,arguments),this.remove()}});acf.newNotice=function(t){return"object"!=typeof t&&(t={text:t}),new n(t)};var i=new acf.Model({wait:"prepare",priority:1,initialize:function(){var e=t(".acf-admin-notice");e.length&&t("h1:first").after(e)}})}(jQuery),function(t,e){acf.newTooltip=function(t){return"object"!=typeof t&&(t={text:t}),t.confirmRemove!==e?(t.textConfirm=acf.__("Remove"),t.textCancel=acf.__("Cancel"),new i(t)):t.confirm!==e?new i(t):new n(t)};var n=acf.Model.extend({data:{text:"",timeout:0,target:null},tmpl:function(){return'
              '},setup:function(e){t.extend(this.data,e),this.$el=t(this.tmpl())},initialize:function(){this.render(),this.show(),this.position();var e=this.get("timeout");e&&setTimeout(t.proxy(this.fade,this),e)},update:function(e){t.extend(this.data,e),this.initialize()},render:function(){this.html(this.get("text"))},show:function(){t("body").append(this.$el)},hide:function(){this.$el.remove()},fade:function(){this.$el.addClass("acf-fade-up"),this.setTimeout((function(){this.remove()}),250)},html:function(t){this.$el.html(t)},position:function(){var e=this.$el,n=this.get("target");if(n){e.removeClass("right left bottom top").css({top:0,left:0});var i=10,o=n.outerWidth(),r=n.outerHeight(),a=n.offset().top,s=n.offset().left,c=e.outerWidth(),l=e.outerHeight(),u=e.offset().top,f=a-l-u,d=s+o/2-c/2;dt(window).width()?(e.addClass("left"),d=s-c,f=a+r/2-l/2-u):f-t(window).scrollTop()'+(this.get("textConfirm")||acf.__("Yes"))+"",''+(this.get("textCancel")||acf.__("No"))+""].join(" ");this.html(i),this.$el.addClass("-confirm")},onCancel:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var n=this.get("cancel"),i=this.get("context")||this;n.apply(i,arguments),this.remove()},onConfirm:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var n=this.get("confirm"),i=this.get("context")||this;n.apply(i,arguments),this.remove()}});acf.models.Tooltip=n,acf.models.TooltipConfirm=i;var o=new acf.Model({tooltip:!1,events:{"mouseenter .acf-js-tooltip":"showTitle","mouseup .acf-js-tooltip":"hideTitle","mouseleave .acf-js-tooltip":"hideTitle"},showTitle:function(t,e){var n=e.attr("title");n&&(e.attr("title",""),this.tooltip?this.tooltip.update({text:n,target:e}):this.tooltip=acf.newTooltip({text:n,target:e}))},hideTitle:function(t,e){this.tooltip.hide(),e.attr("title",this.tooltip.get("text"))}})}(jQuery); \ No newline at end of file diff --git a/includes/acf-input-functions.php b/includes/acf-input-functions.php index b1291c4..27278a4 100644 --- a/includes/acf-input-functions.php +++ b/includes/acf-input-functions.php @@ -203,7 +203,10 @@ function acf_get_text_input( $attrs = array() ) { $attrs = wp_parse_args($attrs, array( 'type' => 'text' )); - return sprintf( '', acf_esc_attrs($attrs) ); + if ( isset( $attrs['value'] ) && is_string( $attrs['value'] ) ) { + $attrs['value'] = htmlspecialchars( $attrs['value'] ); + } + return sprintf( '', acf_esc_attrs( $attrs ) ); } /** diff --git a/includes/admin/admin-field-group.php b/includes/admin/admin-field-group.php index 073c6c1..ee54b94 100644 --- a/includes/admin/admin-field-group.php +++ b/includes/admin/admin-field-group.php @@ -191,6 +191,12 @@ class acf_admin_field_group { 'Value is less than' => __('Value is less than', 'acf'), 'Selection is greater than' => __('Selection is greater than', 'acf'), 'Selection is less than' => __('Selection is less than', 'acf'), + + // Pro-only fields + 'Repeater (Pro only)' => __('Repeater (Pro only)', 'acf'), + 'Flexibly Content (Pro only)' => __('Flexible Content (Pro only)', 'acf'), + 'Clone (Pro only)' => __('Clone (Pro only)', 'acf'), + 'Gallery (Pro only)' => __('Gallery (Pro only)', 'acf'), )); // localize data diff --git a/includes/admin/admin.php b/includes/admin/admin.php index 252a741..d27d175 100644 --- a/includes/admin/admin.php +++ b/includes/admin/admin.php @@ -45,7 +45,7 @@ class ACF_Admin { $cap = acf_get_setting('capability'); // Add menu items. - add_menu_page( __("Custom Fields",'acf'), __("Custom Fields",'acf'), $cap, $slug, false, 'dashicons-welcome-widgets-menus', '80.025' ); + add_menu_page( __("Custom Fields",'acf'), __("Custom Fields",'acf'), $cap, $slug, false, 'dashicons-welcome-widgets-menus', 80 ); add_submenu_page( $slug, __('Field Groups','acf'), __('Field Groups','acf'), $cap, $slug ); add_submenu_page( $slug, __('Add New','acf'), __('Add New','acf'), $cap, 'post-new.php?post_type=acf-field-group' ); } diff --git a/includes/admin/views/html-admin-navigation.php b/includes/admin/views/html-admin-navigation.php index 863f278..ecf145f 100644 --- a/includes/admin/views/html-admin-navigation.php +++ b/includes/admin/views/html-admin-navigation.php @@ -78,4 +78,12 @@ if( $tabs === false ) { acf_esc_html( $tab['text'] ) ); } ?> + + + + +

              +
              + + \ No newline at end of file diff --git a/includes/api/api-helpers.php b/includes/api/api-helpers.php index 59314a7..1ef5cd8 100644 --- a/includes/api/api-helpers.php +++ b/includes/api/api-helpers.php @@ -3436,13 +3436,13 @@ function acf_get_valid_terms( $terms = false, $taxonomy = 'category' ) { /* * acf_validate_attachment * -* This function will validate an attachment based on a field's resrictions and return an array of errors +* This function will validate an attachment based on a field's restrictions and return an array of errors * * @type function * @date 3/07/2015 * @since 5.2.3 * -* @param $attachment (array) attachment data. Cahnges based on context +* @param $attachment (array) attachment data. Changes based on context * @param $field (array) field settings containing restrictions * @param $context (string) $file is different when uploading / preparing * @return $errors (array) @@ -3478,7 +3478,8 @@ function acf_validate_attachment( $attachment, $field, $context = 'prepare' ) { // prepare } elseif( $context == 'prepare' ) { - $file['type'] = pathinfo($attachment['url'], PATHINFO_EXTENSION); + $use_path = isset($attachment['filename']) ? $attachment['filename'] : $attachment['url']; + $file['type'] = pathinfo($use_path, PATHINFO_EXTENSION); $file['size'] = acf_maybe_get($attachment, 'filesizeInBytes', 0); $file['width'] = acf_maybe_get($attachment, 'width', 0); $file['height'] = acf_maybe_get($attachment, 'height', 0); @@ -3487,7 +3488,8 @@ function acf_validate_attachment( $attachment, $field, $context = 'prepare' ) { } else { $file = array_merge($file, $attachment); - $file['type'] = pathinfo($attachment['url'], PATHINFO_EXTENSION); + $use_path = isset($attachment['filename']) ? $attachment['filename'] : $attachment['url']; + $file['type'] = pathinfo($use_path, PATHINFO_EXTENSION); } diff --git a/includes/api/api-template.php b/includes/api/api-template.php index 7a4dea7..ad99e8a 100644 --- a/includes/api/api-template.php +++ b/includes/api/api-template.php @@ -1041,7 +1041,7 @@ function delete_field( $selector, $post_id = false ) { // delete - return acf_delete_value( $post_id, $field ); + return $field ? acf_delete_value( $post_id, $field ) : false; } diff --git a/includes/assets.php b/includes/assets.php index 065c193..3e28d59 100644 --- a/includes/assets.php +++ b/includes/assets.php @@ -104,20 +104,19 @@ class ACF_Assets { * @return void */ public function register_scripts() { - // Extract vars. $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min'; $version = acf_get_setting('version'); // Register scripts. - wp_register_script( 'acf', acf_get_url( 'assets/js/acf' . $suffix . '.js' ), array( 'jquery' ), $version ); - wp_register_script( 'acf-input', acf_get_url( 'assets/js/acf-input' . $suffix . '.js' ), array( 'jquery', 'jquery-ui-sortable', 'jquery-ui-resizable', 'acf' ), $version ); - wp_register_script( 'acf-field-group', acf_get_url( 'assets/js/acf-field-group' . $suffix . '.js' ), array( 'acf-input' ), $version ); + wp_register_script( 'acf', acf_get_url( 'assets/build/js/acf' . $suffix . '.js' ), array( 'jquery' ), $version ); + wp_register_script( 'acf-input', acf_get_url( 'assets/build/js/acf-input' . $suffix . '.js' ), array( 'jquery', 'jquery-ui-sortable', 'jquery-ui-resizable', 'acf' ), $version ); + wp_register_script( 'acf-field-group', acf_get_url( 'assets/build/js/acf-field-group' . $suffix . '.js' ), array( 'acf-input' ), $version ); // Register styles. - wp_register_style( 'acf-global', acf_get_url( 'assets/css/acf-global.css' ), array( 'dashicons' ), $version ); - wp_register_style( 'acf-input', acf_get_url( 'assets/css/acf-input.css' ), array( 'acf-global' ), $version ); - wp_register_style( 'acf-field-group', acf_get_url( 'assets/css/acf-field-group.css' ), array( 'acf-input' ), $version ); + wp_register_style( 'acf-global', acf_get_url( 'assets/build/css/acf-global.css' ), array( 'dashicons' ), $version ); + wp_register_style( 'acf-input', acf_get_url( 'assets/build/css/acf-input.css' ), array( 'acf-global' ), $version ); + wp_register_style( 'acf-field-group', acf_get_url( 'assets/build/css/acf-field-group.css' ), array( 'acf-input' ), $version ); /** * Fires after core scripts and styles have been registered. diff --git a/includes/fields/class-acf-field-email.php b/includes/fields/class-acf-field-email.php index fca9d43..cce93a0 100644 --- a/includes/fields/class-acf-field-email.php +++ b/includes/fields/class-acf-field-email.php @@ -163,7 +163,9 @@ class acf_field_email extends acf_field { * @return bool|string */ public function validate_value( $valid, $value, $field, $input ) { - if ( $value && filter_var( wp_unslash($value), FILTER_VALIDATE_EMAIL ) === false ) { + $flags = defined( 'FILTER_FLAG_EMAIL_UNICODE' ) ? FILTER_FLAG_EMAIL_UNICODE : 0; + + if ( $value && filter_var( wp_unslash($value), FILTER_VALIDATE_EMAIL, $flags ) === false ) { return sprintf( __( "'%s' is not a valid email address", 'acf' ), esc_html( $value ) ); } diff --git a/includes/fields/class-acf-field-wysiwyg.php b/includes/fields/class-acf-field-wysiwyg.php index 0075171..f97a7ca 100644 --- a/includes/fields/class-acf-field-wysiwyg.php +++ b/includes/fields/class-acf-field-wysiwyg.php @@ -237,7 +237,7 @@ class acf_field_wysiwyg extends acf_field { } - // must be logged in tp upload + // must be logged in to upload if( !current_user_can('upload_files') ) { $field['media_upload'] = 0; @@ -250,6 +250,7 @@ class acf_field_wysiwyg extends acf_field { // filter + add_filter( 'acf_the_editor_content', 'format_for_editor', 10, 2 ); $field['value'] = apply_filters( 'acf_the_editor_content', $field['value'], $default_editor ); diff --git a/includes/media.php b/includes/media.php index bc57bef..dfacca3 100644 --- a/includes/media.php +++ b/includes/media.php @@ -6,49 +6,40 @@ if( ! class_exists('ACF_Media') ) : class ACF_Media { - - /* - * __construct - * - * Initialize filters, action, variables and includes - * - * @type function - * @date 23/06/12 - * @since 5.0.0 - * - * @param N/A - * @return N/A - */ - - function __construct() { + /** + * Constructor. + * + * @date 23/06/12 + * @since 5.0.0 + * + * @param void + * @return void + */ + public function __construct() { - // actions - add_action('acf/enqueue_scripts', array($this, 'enqueue_scripts')); - add_action('acf/save_post', array($this, 'save_files'), 5, 1); + // Localize media strings. + add_action( 'acf/enqueue_scripts', array( $this, 'enqueue_scripts' ) ); + // Save files uploaded from basic `$_FILE` field. + add_action( 'acf/save_post', array( $this, 'save_files' ), 5, 1 ); - // filters - add_filter('wp_handle_upload_prefilter', array($this, 'handle_upload_prefilter'), 10, 1); + // Hook into Media Upload to run additional logic. + add_filter( 'wp_handle_upload_prefilter', array( $this, 'handle_upload_prefilter' ), 10, 1 ); - - // ajax - add_action('wp_ajax_query-attachments', array($this, 'wp_ajax_query_attachments'), -1); + // Hook into Media Modal Query to run additional logic. + add_action( 'wp_ajax_query-attachments', array( $this, 'wp_ajax_query_attachments' ), -1 ); } - /** - * enqueue_scripts - * - * Localizes data - * - * @date 27/4/18 - * @since 5.6.9 - * - * @param void - * @return void - */ - - function enqueue_scripts(){ + * Fires when ACF scrtips are enqueued. + * + * @date 27/4/18 + * @since 5.6.9 + * + * @param void + * @return void + */ + public function enqueue_scripts(){ if( wp_script_is('acf-input') ) { acf_localize_text(array( 'Select.verb' => _x('Select', 'verb', 'acf'), @@ -66,149 +57,163 @@ class ACF_Media { )); } } - - - /* - * handle_upload_prefilter - * - * description - * - * @type function - * @date 16/02/2015 - * @since 5.1.5 - * - * @param $post_id (int) - * @return $post_id (int) - */ - function handle_upload_prefilter( $file ) { - - // bail early if no acf field - if( empty($_POST['_acfuploader']) ) { - return $file; + /** + * Uploads attachments found in the basic `$_FILES` array. + * + * @date 24/10/2014 + * @since 5.0.9 + * + * @param string|int $post_id The post ID being saved. + * @return void + */ + public function save_files( $post_id = 0 ) { + if( isset( $_FILES['acf']['name'] ) ) { + acf_upload_files(); } - - - // load field - $field = acf_get_field( $_POST['_acfuploader'] ); + } + + /** + * Filters data for the current file being uploaded. + * + * @date 16/02/2015 + * @since 5.1.5 + * + * @param array $file An array of data for a single file. + * @return array + */ + public function handle_upload_prefilter( $file ) { + $field = $this->get_source_field(); if( !$field ) { return $file; } - - // get errors + // Validate the attachment and append any errors. $errors = acf_validate_attachment( $file, $field, 'upload' ); - /** - * Filters the errors for a file before it is uploaded to WordPress. - * - * @date 16/02/2015 - * @since 5.1.5 - * - * @param array $errors An array of errors. - * @param array $file An array of data for a single file. - * @param array $field The field array. - */ + * Filters the errors for a file before it is uploaded to WordPress. + * + * @date 16/02/2015 + * @since 5.1.5 + * + * @param array $errors An array of errors. + * @param array $file An array of data for a single file. + * @param array $field The field array. + */ $errors = apply_filters( "acf/upload_prefilter/type={$field['type']}", $errors, $file, $field ); $errors = apply_filters( "acf/upload_prefilter/name={$field['_name']}", $errors, $file, $field ); $errors = apply_filters( "acf/upload_prefilter/key={$field['key']}", $errors, $file, $field ); $errors = apply_filters( "acf/upload_prefilter", $errors, $file, $field ); - - // append error + // Append errors. if( !empty($errors) ) { $file['error'] = implode("\n", $errors); } + // Ensure newly uploaded image contains "preview_size" within the "size" data. + add_filter( 'image_size_names_choose', array( $this, 'image_size_names_choose' ), 10, 1 ); - // return + // Return. return $file; } - /* - * save_files - * - * This function will save the $_FILES data - * - * @type function - * @date 24/10/2014 - * @since 5.0.9 - * - * @param $post_id (int) - * @return $post_id (int) - */ - function save_files( $post_id = 0 ) { + + /** + * Returns the field responsible for the current Media query or upload context. + * + * @date 21/5/21 + * @since 5.9.7 + * + * @param void + * @return array| false. + */ + private function get_source_field() { + $field = false; - // bail early if no $_FILES data - if( empty($_FILES['acf']['name']) ) { - return; + // Search for field key within available data. + // Case 1) Media modal query. + if( isset( $_POST['query']['_acfuploader'] ) ) { + $field_key = (string) $_POST['query']['_acfuploader']; + + // Case 2) Media modal upload. + } elseif( isset( $_POST['_acfuploader'] ) ) { + $field_key = (string) $_POST['_acfuploader']; } - - // upload files - acf_upload_files(); + // Attempt to load field. + // Note the `acf_get_field()` function will return false if not found. + if( isset( $field_key ) ) { + $field = acf_get_field( $field_key ); + } + return $field; } - - /* - * wp_ajax_query_attachments - * - * description - * - * @type function - * @date 26/06/2015 - * @since 5.2.3 - * - * @param $post_id (int) - * @return $post_id (int) - */ - + /** + * Fires during the WP Modal Query AJAX call. + * + * @date 26/06/2015 + * @since 5.2.3 + * + * @param void + * @return void + */ function wp_ajax_query_attachments() { - - add_filter('wp_prepare_attachment_for_js', array($this, 'wp_prepare_attachment_for_js'), 10, 3); - + if( $this->get_source_field() ) { + add_filter( 'wp_prepare_attachment_for_js', array( $this, 'wp_prepare_attachment_for_js' ), 10, 3 ); + add_filter( 'image_size_names_choose', array( $this, 'image_size_names_choose' ), 10, 1 ); + } } + /** + * Filters attachment data as it is being prepared for JS. + * + * @date 21/5/21 + * @since 5.9.7 + * + * @param array $response Array of prepared attachment data. + * @param WP_Post $attachment Attachment object. + * @param array|false $meta Array of attachment meta data, or false if there is none. + * @return array + */ function wp_prepare_attachment_for_js( $response, $attachment, $meta ) { + $field = $this->get_source_field(); - // append attribute - $response['acf_errors'] = false; - - - // bail early if no acf field - if( empty($_POST['query']['_acfuploader']) ) { - return $response; - } - - - // load field - $field = acf_get_field( $_POST['query']['_acfuploader'] ); - if( !$field ) { - return $response; - } - - - // get errors + // Validate the attachment and append any errors. $errors = acf_validate_attachment( $response, $field, 'prepare' ); - - - // append errors + $response['acf_errors'] = false; if( !empty($errors) ) { $response['acf_errors'] = implode('
              ', $errors); } - - // return + // Return. return $response; } + + /** + * Filters the names and labels of the default image sizes. + * + * @date 21/5/21 + * @since 5.9.7 + * + * @param array $size_names Array of image size labels keyed by their name. + * @return array + */ + function image_size_names_choose( $size_names ) { + $field = $this->get_source_field(); + + // Append "preview_size" setting to array of image sizes so WP will include in prepared JS data. + if( isset( $field['preview_size'] ) ) { + $name = (string) $field['preview_size']; + $size_names[ $name ] = $name; // Don't worry about size label, it is never used. + } + return $size_names; + } } -// instantiate -acf_new_instance('ACF_Media'); +// Instantiate. +acf_new_instance( 'ACF_Media' ); -endif; // class_exists check - -?> \ No newline at end of file +endif; // class_exists check \ No newline at end of file diff --git a/pro/acf-pro.php b/pro/acf-pro.php index ab9e5fc..dafd2e4 100644 --- a/pro/acf-pro.php +++ b/pro/acf-pro.php @@ -116,13 +116,13 @@ class acf_pro { // register scripts - wp_register_script( 'acf-pro-input', acf_get_url( "pro/assets/js/acf-pro-input{$min}.js" ), array('acf-input'), $version ); - wp_register_script( 'acf-pro-field-group', acf_get_url( "pro/assets/js/acf-pro-field-group{$min}.js" ), array('acf-field-group'), $version ); + wp_register_script( 'acf-pro-input', acf_get_url( "assets/build/js/pro/acf-pro-input{$min}.js" ), array('acf-input'), $version ); + wp_register_script( 'acf-pro-field-group', acf_get_url( "assets/build/js/pro/acf-pro-field-group{$min}.js" ), array('acf-field-group'), $version ); // register styles - wp_register_style( 'acf-pro-input', acf_get_url( 'pro/assets/css/acf-pro-input.css' ), array('acf-input'), $version ); - wp_register_style( 'acf-pro-field-group', acf_get_url( 'pro/assets/css/acf-pro-field-group.css' ), array('acf-input'), $version ); + wp_register_style( 'acf-pro-input', acf_get_url( 'assets/build/css/pro/acf-pro-input.css' ), array('acf-input'), $version ); + wp_register_style( 'acf-pro-field-group', acf_get_url( 'assets/build/css/pro/acf-pro-field-group.css' ), array('acf-input'), $version ); } diff --git a/pro/admin/views/html-settings-updates.php b/pro/admin/views/html-settings-updates.php index d4c3f21..b71f483 100644 --- a/pro/admin/views/html-settings-updates.php +++ b/pro/admin/views/html-settings-updates.php @@ -16,7 +16,7 @@ $readonly = $active ? 1 : 0;

              -

              details & pricing.','acf'), esc_url('https://www.advancedcustomfields.com/pro')); ?>

              +

              details & pricing.','acf'), esc_url('https://www.advancedcustomfields.com/pro/?utm_source=ACF%2Bpro%2Bplugin&utm_medium=insideplugin&utm_campaign=ACF%2Bupgrade&utm_content=license%2Bactivations')); ?>

                diff --git a/pro/assets/css/acf-pro-field-group.css b/pro/assets/css/acf-pro-field-group.css deleted file mode 100644 index 8aa253d..0000000 --- a/pro/assets/css/acf-pro-field-group.css +++ /dev/null @@ -1 +0,0 @@ -.acf-field-setting-fc_layout .acf-fc-meta{margin:0 0 10px;padding:0}.acf-field-setting-fc_layout .acf-fc-meta li{margin:0 0 10px;padding:0}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display,.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-min{float:left;width:33%;padding-right:10px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-label .acf-input-prepend,.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-name .acf-input-prepend,.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display .acf-input-prepend{min-width:60px}.acf-field-setting-fc_layout .acf-fl-actions{visibility:hidden}.acf-field-setting-fc_layout .acf-fl-actions .reorder-layout{cursor:move}.acf-field-setting-fc_layout .acf-fl-actions a{padding:1px 0;font-size:13px;line-height:20px}.acf-field-setting-fc_layout:hover .acf-fl-actions,.acf-field-setting-fc_layout.-hover .acf-fl-actions{visibility:visible}.acf-field-object-clone[data-display="seamless"] .acf-field-setting-instructions,.acf-field-object-clone[data-display="seamless"] .acf-field-setting-layout,.acf-field-object-clone[data-display="seamless"] .acf-field-setting-wrapper,.acf-field-object-clone[data-display="seamless"] .acf-field-setting-conditional_logic{display:none} diff --git a/pro/assets/css/acf-pro-input.css b/pro/assets/css/acf-pro-input.css deleted file mode 100644 index 7bf66c7..0000000 --- a/pro/assets/css/acf-pro-input.css +++ /dev/null @@ -1 +0,0 @@ -.acf-repeater>table{margin:0 0 8px;background:#F9F9F9}.acf-repeater .acf-row-handle{width:16px;text-align:center !important;vertical-align:middle !important;position:relative}.acf-repeater .acf-row-handle .acf-icon{display:none;position:absolute;top:0;margin:-8px 0 0 -2px}.acf-repeater .acf-row-handle .acf-icon.-minus{top:50%}body.browser-msie .acf-repeater .acf-row-handle .acf-icon.-minus{top:25px}.acf-repeater .acf-row-handle.order{background:#f4f4f4;cursor:move;color:#aaa;text-shadow:#fff 0 1px 0}.acf-repeater .acf-row-handle.order:hover{color:#666}.acf-repeater .acf-row-handle.order+td{border-left-color:#DFDFDF}.acf-repeater .acf-row-handle.remove{background:#F9F9F9;border-left-color:#DFDFDF}.acf-repeater th.acf-row-handle:before{content:"";width:16px;display:block;height:1px}.acf-repeater .acf-row.acf-clone{display:none !important}.acf-repeater .acf-row:hover>.acf-row-handle .acf-icon,.acf-repeater .acf-row.-hover>.acf-row-handle .acf-icon{display:block}.acf-repeater .acf-row:hover>.acf-row-handle .acf-icon.show-on-shift,.acf-repeater .acf-row.-hover>.acf-row-handle .acf-icon.show-on-shift{display:none}body.acf-keydown-shift .acf-repeater .acf-row:hover>.acf-row-handle .acf-icon.show-on-shift,body.acf-keydown-shift .acf-repeater .acf-row.-hover>.acf-row-handle .acf-icon.show-on-shift{display:block}body.acf-keydown-shift .acf-repeater .acf-row:hover>.acf-row-handle .acf-icon.hide-on-shift,body.acf-keydown-shift .acf-repeater .acf-row.-hover>.acf-row-handle .acf-icon.hide-on-shift{display:none}.acf-repeater>table>tbody>tr.ui-sortable-helper{box-shadow:0 1px 5px rgba(0,0,0,0.2)}.acf-repeater>table>tbody>tr.ui-sortable-placeholder{visibility:visible !important}.acf-repeater>table>tbody>tr.ui-sortable-placeholder td{background:#F9F9F9}.acf-repeater.-row>table>tbody>tr>td,.acf-repeater.-block>table>tbody>tr>td{border-top-color:#E1E1E1}.acf-repeater.-empty>table>thead>tr>th{border-bottom:0 none}.acf-repeater.-empty.-row>table,.acf-repeater.-empty.-block>table{display:none}.acf-repeater .acf-row.-collapsed>.acf-field{display:none !important}.acf-repeater .acf-row.-collapsed>td.acf-field.-collapsed-target{display:table-cell !important}.acf-repeater .acf-row.-collapsed>.acf-fields>*{display:none !important}.acf-repeater .acf-row.-collapsed>.acf-fields>.acf-field.-collapsed-target{display:block !important}.acf-repeater .acf-row.-collapsed>.acf-fields>.acf-field.-collapsed-target[data-width]{float:none !important;width:auto !important}.acf-repeater.-table .acf-row.-collapsed .acf-field.-collapsed-target{border-left-color:#dfdfdf}.acf-repeater.-max .acf-icon[data-event="add-row"]{display:none !important}.acf-flexible-content{position:relative}.acf-flexible-content>.clones{display:none}.acf-flexible-content>.values{margin:0 0 8px}.acf-flexible-content>.values>.ui-sortable-placeholder{visibility:visible !important;border:1px dashed #b4b9be;box-shadow:none;background:transparent}.acf-flexible-content .layout{position:relative;margin:20px 0 0;background:#fff;border:1px solid #ccd0d4}.acf-flexible-content .layout:first-child{margin-top:0}.acf-flexible-content .layout .acf-fc-layout-handle{display:block;position:relative;padding:8px 10px;cursor:move;border-bottom:#ccd0d4 solid 1px;color:#444;font-size:14px;line-height:1.4em}.acf-flexible-content .layout .acf-fc-layout-order{display:block;width:20px;height:20px;border-radius:10px;display:inline-block;text-align:center;line-height:20px;margin:0 2px 0 0;background:#F1F1F1;font-size:12px;color:#444}html[dir="rtl"] .acf-flexible-content .layout .acf-fc-layout-order{float:right;margin-right:0;margin-left:5px}.acf-flexible-content .layout .acf-fc-layout-controls{position:absolute;top:8px;right:8px}.acf-flexible-content .layout .acf-fc-layout-controls .acf-icon{display:block;float:left;margin:0 0 0 5px}.acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-plus,.acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-minus,.acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-duplicate{visibility:hidden}html[dir="rtl"] .acf-flexible-content .layout .acf-fc-layout-controls{right:auto;left:9px}.acf-flexible-content .layout.is-selected{border-color:#7e8993}.acf-flexible-content .layout.is-selected .acf-fc-layout-handle{border-color:#7e8993}.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-plus,.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-minus,.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-duplicate,.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-plus,.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-minus,.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-duplicate{visibility:visible}.acf-flexible-content .layout.-collapsed>.acf-fc-layout-handle{border-bottom-width:0}.acf-flexible-content .layout.-collapsed>.acf-fields,.acf-flexible-content .layout.-collapsed>.acf-table{display:none}.acf-flexible-content .layout>.acf-table{border:0 none;box-shadow:none}.acf-flexible-content .layout>.acf-table>tbody>tr{background:#fff}.acf-flexible-content .layout>.acf-table>thead>tr>th{background:#F9F9F9}.acf-flexible-content .no-value-message{padding:19px;border:#ccc dashed 2px;text-align:center;display:none}.acf-flexible-content.-empty>.no-value-message{display:block}.acf-fc-popup{padding:5px 0;z-index:900001;min-width:135px}.acf-fc-popup ul,.acf-fc-popup li{list-style:none;display:block;margin:0;padding:0}.acf-fc-popup li{position:relative;float:none;white-space:nowrap}.acf-fc-popup .badge{display:inline-block;border-radius:8px;font-size:9px;line-height:15px;padding:0 5px;background:#d54e21;text-align:center;color:#fff;vertical-align:top;margin:0 0 0 5px}.acf-fc-popup a{color:#eee;padding:5px 10px;display:block;text-decoration:none;position:relative}.acf-fc-popup a:hover{background:#0073aa;color:#fff}.acf-fc-popup a.disabled{color:#888;background:transparent}.acf-gallery{border:#ccd0d4 solid 1px;height:400px;position:relative}.acf-gallery .acf-gallery-main{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;z-index:2}.acf-gallery .acf-gallery-attachments{position:absolute;top:0;right:0;bottom:48px;left:0;padding:5px;overflow:auto;overflow-x:hidden}.acf-gallery .acf-gallery-attachment{width:25%;float:left;cursor:pointer;position:relative}.acf-gallery .acf-gallery-attachment .margin{margin:5px;border:#d5d9dd solid 1px;position:relative;overflow:hidden;background:#eee}.acf-gallery .acf-gallery-attachment .margin:before{content:"";display:block;padding-top:100%}.acf-gallery .acf-gallery-attachment .thumbnail{position:absolute;top:0;left:0;width:100%;height:100%;transform:translate(50%, 50%)}html[dir="rtl"] .acf-gallery .acf-gallery-attachment .thumbnail{transform:translate(-50%, 50%)}.acf-gallery .acf-gallery-attachment .thumbnail img{display:block;height:auto;max-height:100%;width:auto;transform:translate(-50%, -50%)}html[dir="rtl"] .acf-gallery .acf-gallery-attachment .thumbnail img{transform:translate(50%, -50%)}.acf-gallery .acf-gallery-attachment .filename{position:absolute;bottom:0;left:0;right:0;padding:5%;background:#F4F4F4;background:rgba(255,255,255,0.8);border-top:#DFDFDF solid 1px;font-weight:bold;text-align:center;word-wrap:break-word;max-height:90%;overflow:hidden}.acf-gallery .acf-gallery-attachment .actions{position:absolute;top:0;right:0;display:none}.acf-gallery .acf-gallery-attachment:hover .actions{display:block}.acf-gallery .acf-gallery-attachment.ui-sortable-helper .margin{border:none;box-shadow:0 1px 3px rgba(0,0,0,0.3)}.acf-gallery .acf-gallery-attachment.ui-sortable-placeholder .margin{background:#F1F1F1;border:none}.acf-gallery .acf-gallery-attachment.ui-sortable-placeholder .margin *{display:none !important}.acf-gallery .acf-gallery-attachment.active .margin{box-shadow:0 0 0 1px #FFFFFF, 0 0 0 5px #0073aa}.acf-gallery .acf-gallery-attachment.-icon .thumbnail img{transform:translate(-50%, -70%)}html[dir="rtl"] .acf-gallery .acf-gallery-attachment{float:right}.acf-gallery.sidebar-open .acf-gallery-attachment .actions{display:none}.acf-gallery.sidebar-open .acf-gallery-side{z-index:2}.acf-gallery .acf-gallery-toolbar{position:absolute;right:0;bottom:0;left:0;padding:10px;border-top:#d5d9dd solid 1px;background:#fff;min-height:28px}.acf-gallery .acf-gallery-toolbar .acf-hl li{line-height:24px}.acf-gallery .acf-gallery-toolbar .bulk-actions-select{width:auto;margin:0 1px 0 0}.acf-gallery .acf-gallery-side{position:absolute;top:0;right:0;bottom:0;width:0;background:#F9F9F9;border-left:#ccd0d4 solid 1px;z-index:1;overflow:hidden}.acf-gallery .acf-gallery-side .acf-gallery-side-inner{position:absolute;top:0;left:0;bottom:0;width:349px}.acf-gallery .acf-gallery-side-info{position:relative;width:100%;padding:10px;margin:-10px 0 15px -10px;background:#F1F1F1;border-bottom:#DFDFDF solid 1px}.acf-gallery .acf-gallery-side-info:after{display:block;clear:both;content:""}html[dir="rtl"] .acf-gallery .acf-gallery-side-info{margin-left:0;margin-right:-10px}.acf-gallery .acf-gallery-side-info img{float:left;width:auto;max-width:65px;max-height:65px;margin:0 10px 1px 0;background:#FFFFFF;padding:3px;border:#ccd0d4 solid 1px;border-radius:1px}html[dir="rtl"] .acf-gallery .acf-gallery-side-info img{float:right;margin:0 0 0 10px}.acf-gallery .acf-gallery-side-info p{font-size:13px;line-height:15px;margin:3px 0;word-break:break-all;color:#666}.acf-gallery .acf-gallery-side-info p strong{color:#000}.acf-gallery .acf-gallery-side-info a{text-decoration:none}.acf-gallery .acf-gallery-side-info a.acf-gallery-edit{color:#21759b}.acf-gallery .acf-gallery-side-info a.acf-gallery-remove{color:#bc0b0b}.acf-gallery .acf-gallery-side-info a:hover{text-decoration:underline}.acf-gallery .acf-gallery-side-data{position:absolute;top:0;right:0;bottom:48px;left:0;overflow:auto;overflow-x:inherit;padding:10px}.acf-gallery .acf-gallery-side-data .acf-label,.acf-gallery .acf-gallery-side-data th.label{color:#666666;font-size:12px;line-height:25px;padding:0 4px 8px 0 !important;width:auto !important;vertical-align:top}html[dir="rtl"] .acf-gallery .acf-gallery-side-data .acf-label,html[dir="rtl"] .acf-gallery .acf-gallery-side-data th.label{padding:0 0 8px 4px !important}.acf-gallery .acf-gallery-side-data .acf-label label,.acf-gallery .acf-gallery-side-data th.label label{font-weight:normal}.acf-gallery .acf-gallery-side-data .acf-input,.acf-gallery .acf-gallery-side-data td.field{padding:0 0 8px !important}.acf-gallery .acf-gallery-side-data textarea{min-height:0;height:60px}.acf-gallery .acf-gallery-side-data p.help{font-size:12px}.acf-gallery .acf-gallery-side-data p.help:hover{font-weight:normal}.acf-gallery[data-columns="1"] .acf-gallery-attachment{width:100%}.acf-gallery[data-columns="2"] .acf-gallery-attachment{width:50%}.acf-gallery[data-columns="3"] .acf-gallery-attachment{width:33.333%}.acf-gallery[data-columns="4"] .acf-gallery-attachment{width:25%}.acf-gallery[data-columns="5"] .acf-gallery-attachment{width:20%}.acf-gallery[data-columns="6"] .acf-gallery-attachment{width:16.666%}.acf-gallery[data-columns="7"] .acf-gallery-attachment{width:14.285%}.acf-gallery[data-columns="8"] .acf-gallery-attachment{width:12.5%}.acf-gallery .ui-resizable-handle{display:block;position:absolute}.acf-gallery .ui-resizable-s{bottom:-5px;cursor:ns-resize;height:7px;left:0;width:100%}.acf-media-modal .attachment.acf-selected{box-shadow:0 0 0 3px #fff inset, 0 0 0 7px #0073aa inset !important}.acf-media-modal .attachment.acf-selected .check{display:none !important}.acf-media-modal .attachment.acf-selected .thumbnail{opacity:0.25 !important}.acf-media-modal .attachment.acf-selected .attachment-preview:before{background:rgba(0,0,0,0.15);z-index:1;position:relative}.acf-block-component .components-placeholder{margin:0}.acf-block-component .acf-block-fields{background:#fff;text-align:left;font-size:13px;line-height:1.4em;color:#444;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif}html[dir="rtl"] .acf-block-component .acf-block-fields{text-align:right}.acf-block-component .acf-block-fields p{font-size:13px;line-height:1.5}.acf-block-body .acf-block-fields{border:#adb2ad solid 1px}.acf-block-body .acf-block-fields .acf-tab-wrap .acf-tab-group{margin-left:0;padding:16px 20px 0}.acf-block-body .acf-fields>.acf-field{padding:16px 20px}.acf-block-body .acf-fields>.acf-field.acf-accordion{border-color:#adb2ad}.acf-block-body .acf-fields>.acf-field.acf-accordion .acf-accordion-title{padding:16px 20px}.acf-block-body .acf-block-preview{min-height:10px}.acf-block-panel .acf-block-fields{border-top:#e2e4e7 solid 1px;min-height:1px}.acf-block-panel .acf-block-fields:empty{border-top:none}.acf-block-panel .acf-block-fields .acf-tab-wrap{background:transparent}.components-panel__body .acf-block-panel{margin:16px -16px -16px} diff --git a/pro/assets/js/acf-pro-blocks.min.js b/pro/assets/js/acf-pro-blocks.min.js deleted file mode 100644 index 2d6e926..0000000 --- a/pro/assets/js/acf-pro-blocks.min.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function t(e){return typeof e}:function t(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0){var r=t.substr(0,e).trim(),o=t.substr(e+1).trim();"-"!==r.charAt(0)&&(r=acf.strCamelCase(r)),n[r]=o}})),r=n;break;default:if(0===e.indexOf("data-"))break;var o=acf.get("jsxAttributes");o[e]&&(e=o[e]);var i=r.charAt(0);"["!==i&&"{"!==i||(r=JSON.parse(r)),"true"!==r&&"false"!==r||(r="true"===r);break}return{name:e,value:r}}function y(){return React.createElement(A.Content,null)}function m(){wp.blockEditor||(wp.blockEditor=wp.editor);var t=acf.get("blockTypes");t&&t.map(a)}function b(t){var e,r="top";return["top","center","bottom"].includes(t)?t:r}function v(t){var e=["left","center","right"],r=acf.get("rtl")?"right":"left";return e.includes(t)?t:r}function _(t){var e="center center";if(t){var r,n=_slicedToArray(t.split(" "),2),o=n[0],i=n[1];return b(o)+" "+v(i)}return e}function g(t){return t.align_content={type:"string"},t}function k(t,r){var n=r.supports.align_content,o,i;switch(n){case"matrix":o=tt||Z,i=_;break;default:o=Y,i=b;break}return o===e?(console.warn('The "'.concat(n,'" alignment component was not found.')),t):(r.align_content=i(r.align_content),function(e){function r(){return _classCallCheck(this,r),n.apply(this,arguments)}_inherits(r,e);var n=_createSuper(r);return _createClass(r,[{key:"render",value:function e(){function r(t){c({align_content:i(t)})}var n=this.props,a=n.attributes,c=n.setAttributes,s=a.align_content;return React.createElement(D,null,React.createElement(O,{group:"block"},React.createElement(o,{label:acf.__("Change content alignment"),value:i(s),onChange:r})),React.createElement(t,this.props))}}]),r}(I))}function w(t){return t.align_text={type:"string"},t}function C(t,e){var r=v;return e.align_text=r(e.align_text),function(e){function n(){return _classCallCheck(this,n),o.apply(this,arguments)}_inherits(n,e);var o=_createSuper(n);return _createClass(n,[{key:"render",value:function e(){function n(t){a({align_text:r(t)})}var o=this.props,i=o.attributes,a=o.setAttributes,c=i.align_text;return React.createElement(D,null,React.createElement(O,null,React.createElement(G,{value:r(c),onChange:n})),React.createElement(t,this.props))}}]),n}(I)}var R=wp.blockEditor,O=R.BlockControls,E=R.InspectorControls,A=R.InnerBlocks,S=wp.components,j=S.Toolbar,P=S.IconButton,x=S.Placeholder,T=S.Spinner,D=wp.element.Fragment,B,I=React.Component,M=wp.data.withSelect,N=wp.compose.createHigherOrderComponent,H={},L={};acf.parseJSX=function(e){return f(t(e)[0])};var $=N((function(t){return function(n){function a(t){var n;_classCallCheck(this,a);var s=(n=c.call(this,t)).props,u=s.name,l=s.attributes,p=r(u);if(!p)return _possibleConstructorReturn(n);if(o(t)){for(var f in l.id=acf.uniqid("block_"),p.attributes)l[f]===e&&p[f]!==e&&(l[f]=p[f]);return _possibleConstructorReturn(n)}return i(t)?(l.id=acf.uniqid("block_"),_possibleConstructorReturn(n)):n}_inherits(a,n);var c=_createSuper(a);return _createClass(a,[{key:"render",value:function e(){return React.createElement(t,this.props)}}]),a}(I)}),"withDefaultAttributes");wp.hooks.addFilter("editor.BlockListBlock","acf/with-default-attributes",$);var q=function(t){function e(t){var r;return _classCallCheck(this,e),(r=n.call(this,t)).setup(),r}_inherits(e,t);var n=_createSuper(e);return _createClass(e,[{key:"setup",value:function t(){function e(t){-1===t.indexOf(i.mode)&&(i.mode=t[0])}var n=this.props,o=n.name,i=n.attributes,a;switch(r(o).mode){case"edit":e(["edit","preview"]);break;case"preview":e(["preview","edit"]);break;default:e(["auto"]);break}}},{key:"render",value:function t(){function e(){a({mode:"preview"===c?"edit":"preview"})}var n=this.props,o=n.name,i=n.attributes,a=n.setAttributes,c=i.mode,s,u=r(o).supports.mode;"auto"===c&&(u=!1);var l="preview"===c?acf.__("Switch to Edit"):acf.__("Switch to Preview"),p="preview"===c?"edit":"welcome-view-site";return React.createElement(D,null,React.createElement(O,null,u&&React.createElement(j,null,React.createElement(P,{className:"components-icon-button components-toolbar__control",label:l,icon:p,onClick:e}))),React.createElement(E,null,"preview"===c&&React.createElement("div",{className:"acf-block-component acf-block-panel"},React.createElement(Q,this.props))),React.createElement(J,this.props))}}]),e}(I),U=function(t){function e(){return _classCallCheck(this,e),r.apply(this,arguments)}_inherits(e,t);var r=_createSuper(e);return _createClass(e,[{key:"render",value:function t(){var e=this.props,r=e.attributes,n=e.isSelected,o=r.mode;return React.createElement("div",{className:"acf-block-component acf-block-body"},"auto"===o&&n?React.createElement(Q,this.props):"auto"!==o||n?"preview"===o?React.createElement(X,this.props):React.createElement(Q,this.props):React.createElement(X,this.props))}}]),e}(I),J=M((function(t,e){var r=e.clientId,n=t("core/block-editor").getBlockRootClientId(r),o;return{index:t("core/block-editor").getBlockIndex(r,n)}}))(U),W=function(t){function e(){return _classCallCheck(this,e),r.apply(this,arguments)}_inherits(e,t);var r=_createSuper(e);return _createClass(e,[{key:"render",value:function t(){return React.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.children}})}}]),e}(I),z=function(e){function r(){return _classCallCheck(this,r),n.apply(this,arguments)}_inherits(r,e);var n=_createSuper(r);return _createClass(r,[{key:"render",value:function t(){var e=this;return React.createElement("div",{ref:function t(r){return e.el=r}})}},{key:"setHTML",value:function e(r){t(this.el).html("