From d6be65d5b1a462ce5f484761c28e5d26b53309a1 Mon Sep 17 00:00:00 2001 From: Gavin Allmond Date: Tue, 25 Jun 2024 14:52:22 +0100 Subject: [PATCH] rebuilt assets from current main --- assets/css/gathercontent-importer.css | 883 +++--- assets/css/gathercontent-importer.css.map | 4 +- assets/css/gathercontent-importer.min.css | 2 +- assets/js/gathercontent-database.js | 2 +- assets/js/gathercontent-database.min.js | 2 +- assets/js/gathercontent-general.js | 2995 ++++++++++----------- assets/js/gathercontent-general.min.js | 4 +- assets/js/gathercontent-mapping.js | 1549 ++++++----- assets/js/gathercontent-mapping.min.js | 4 +- assets/js/gathercontent-single.js | 1459 +++++----- assets/js/gathercontent-single.min.js | 4 +- assets/js/gathercontent-sync.js | 1617 ++++++----- assets/js/gathercontent-sync.min.js | 4 +- assets/js/gathercontent.js | 242 +- assets/js/gathercontent.min.js | 4 +- 15 files changed, 4187 insertions(+), 4588 deletions(-) diff --git a/assets/css/gathercontent-importer.css b/assets/css/gathercontent-importer.css index 268adb27..95fd13b4 100644 --- a/assets/css/gathercontent-importer.css +++ b/assets/css/gathercontent-importer.css @@ -6,703 +6,524 @@ * Licensed under the GPL-2.0+ license. */ .gc-avatar { - border-radius: 50px; - display: block; - float: left; - height: 50px; - margin-right: 10px; - vertical-align: middle; - width: 50px; -} + border-radius: 50px; + display: block; + float: left; + height: 50px; + margin-right: 10px; + vertical-align: middle; + width: 50px; } .gc-hello { - margin: 5px 0; -} + margin: 5px 0; } .gc-profile { - padding: 1em; - overflow: hidden; -} + padding: 1em; + overflow: hidden; } .platform-url-wrap { - position: relative; - display: inline-block; -} + position: relative; + display: inline-block; } .platform-url-help { - position: absolute; - top: 0; - right: 6px; - line-height: 2em; -} - -.platform-url-help.gc-domain-prefix { - left: 6px; - right: 0; - width: 35px; -} + position: absolute; + top: 0; + right: 6px; + line-height: 2em; } + .platform-url-help.gc-domain-prefix { + left: 6px; + right: 0; + width: 35px; } #platform_url_slug { - padding-right: 138px; - padding-left: 55px; -} + padding-right: 138px; + padding-left: 55px; } .gc-refresh-connection.button { - width: 2em; - font-size: 2em; - display: inline-block; - vertical-align: bottom; -} + width: 2em; + font-size: 2em; + display: inline-block; + vertical-align: bottom; } .form-table td .gc-submit-top { - margin-bottom: 0.5em; -} + margin-bottom: .5em; } .wp-core-ui p .gc-refresh-connection { - line-height: 1.3; - vertical-align: bottom; -} + line-height: 1.3; + vertical-align: bottom; } .description.gc-radio-desc { - margin-left: 1.5em; - margin-bottom: 1em; -} + margin-left: 1.5em; + margin-bottom: 1em; } .gc-reveal-items { - text-decoration: none; - position: relative; -} - -.gc-reveal-items.description { - display: inline-block; - margin-bottom: 0.5em; -} + text-decoration: none; + position: relative; } + .gc-reveal-items.description { + display: inline-block; + margin-bottom: .5em; } .gc-reveal-items:before { - display: block; - position: absolute; - right: -1em; - top: -0.1em; -} + display: block; + position: absolute; + right: -1em; + top: -.1em; } ul.gc-radio-desc, ul.gc-reveal-items-list { - border-top: 1px solid #999; - margin-top: 0.5em; - padding-top: 1em; - list-style-type: disc; - margin-bottom: 1em; -} + border-top: 1px solid #999; + margin-top: .5em; + padding-top: 1em; + list-style-type: disc; + margin-bottom: 1em; } ul.gc-radio-desc li, ul.gc-reveal-items-list li { - margin-left: 2.8em; -} + margin-left: 2.8em; } .gc-nav-tab-wrapper { - border-bottom: 1px solid #ccc; -} + border-bottom: 1px solid #ccc; } .gc-template-tab { - padding: 1em 0; - /****** COMPONENT TABLE ******/ -} - -.gc-template-tab h4 { - margin-top: 0; -} - -.gc-template-tab table thead > tr > th:first-child, .gc-template-tab table thead > tr > td:first-child, -.gc-template-tab table tbody > tr > th:first-child, -.gc-template-tab table tbody > tr > td:first-child { - width: 40%; -} - -.gc-template-tab table thead > tr > th:last-child, .gc-template-tab table thead > tr > td:last-child, -.gc-template-tab table tbody > tr > th:last-child, -.gc-template-tab table tbody > tr > td:last-child { - width: 60%; -} - -.gc-template-tab td { - border-bottom: 1px solid #ccc; - padding: 0.5em 1em; -} - -.gc-template-tab td:nth-child(2) { - vertical-align: top; -} - -.gc-template-tab td option[value=wp-type-acf] { - display: none; -} - -.gc-template-tab td.gc-component option[value=wp-type-acf], .gc-template-tab td.type-repeater option[value=wp-type-acf] { - display: block; -} - -.gc-template-tab .component-td { - padding-left: 0; - padding-right: 0; - border: none; -} - -.gc-template-tab .component-td-wrapper { - border-bottom: 1px solid #ccc; -} - -.gc-template-tab .component-table-wrapper { - width: 100%; -} - -.gc-template-tab .component-table-wrapper tbody > tr > td { - border: none; -} - -.gc-template-tab .component-table-inner { - border-collapse: collapse; - width: 100%; -} - -.gc-template-tab .component-table-inner td { - border: none; -} - -.gc-template-tab .component-table-inner td:first-child { - padding-left: 2.5em; -} - -.gc-template-tab .component-table-inner tr.text option[data-type=text], -.gc-template-tab .component-table-inner tr.text option[data-type=textarea], -.gc-template-tab .component-table-inner tr.text option[data-type=wysiwyg] { - display: block; -} - -.gc-template-tab .component-table-inner tr.attachment option[data-type=gallery], -.gc-template-tab .component-table-inner tr.attachment option[data-type=image] { - display: block; -} - -.gc-template-tab .component-table-inner tr.choice_checkbox option[data-type=checkbox] { - display: block; -} - -.gc-template-tab .component-table-inner tr.choice_radio option[data-type=radio] { - display: block; -} - -.gc-template-tab .component-table-inner tr.repeater option[data-type=text], -.gc-template-tab .component-table-inner tr.repeater option[data-type=textarea], -.gc-template-tab .component-table-inner tr.repeater option[data-type=wysiwyg] { - display: none; -} - -.gc-template-tab .component-table-inner tr.repeater option[data-type=repeater] { - display: block; -} - -.gc-template-tab .ajax-disabled { - opacity: 0.75; - pointer-events: none; -} + padding: 1em 0; + /****** COMPONENT TABLE ******/ } + .gc-template-tab h4 { + margin-top: 0; } + .gc-template-tab table thead > tr > th:first-child, + .gc-template-tab table thead > tr > td:first-child, + .gc-template-tab table tbody > tr > th:first-child, + .gc-template-tab table tbody > tr > td:first-child { + width: 40%; } + .gc-template-tab table thead > tr > th:last-child, + .gc-template-tab table thead > tr > td:last-child, + .gc-template-tab table tbody > tr > th:last-child, + .gc-template-tab table tbody > tr > td:last-child { + width: 60%; } + .gc-template-tab td { + border-bottom: 1px solid #ccc; + padding: .5em 1em; } + .gc-template-tab td:nth-child(2) { + vertical-align: top; } + .gc-template-tab td option[value="wp-type-acf"] { + display: none; } + .gc-template-tab td.gc-component option[value="wp-type-acf"], .gc-template-tab td.type-repeater option[value="wp-type-acf"] { + display: block; } + .gc-template-tab .component-td { + padding-left: 0; + padding-right: 0; + border: none; } + .gc-template-tab .component-td-wrapper { + border-bottom: 1px solid #ccc; } + .gc-template-tab .component-table-wrapper { + width: 100%; } + .gc-template-tab .component-table-wrapper tbody > tr > td { + border: none; } + .gc-template-tab .component-table-inner { + border-collapse: collapse; + width: 100%; } + .gc-template-tab .component-table-inner td { + border: none; } + .gc-template-tab .component-table-inner td:first-child { + padding-left: 2.5em; } + .gc-template-tab .component-table-inner tr.text option[data-type="text"], + .gc-template-tab .component-table-inner tr.text option[data-type="textarea"], + .gc-template-tab .component-table-inner tr.text option[data-type="wysiwyg"] { + display: block; } + .gc-template-tab .component-table-inner tr.attachment option[data-type="gallery"], + .gc-template-tab .component-table-inner tr.attachment option[data-type="image"] { + display: block; } + .gc-template-tab .component-table-inner tr.choice_checkbox option[data-type="checkbox"] { + display: block; } + .gc-template-tab .component-table-inner tr.choice_radio option[data-type="radio"] { + display: block; } + .gc-template-tab .component-table-inner tr.repeater option[data-type="text"], + .gc-template-tab .component-table-inner tr.repeater option[data-type="textarea"], + .gc-template-tab .component-table-inner tr.repeater option[data-type="wysiwyg"] { + display: none; } + .gc-template-tab .component-table-inner tr.repeater option[data-type="repeater"] { + display: block; } + .gc-template-tab .ajax-disabled { + opacity: 0.75; + pointer-events: none; } .gc-disabled label span, .gc-disabled .description { - opacity: 0.5; -} + opacity: .5; } .nav-tab.alignright { - float: right; -} + float: right; } .mapping-defaults .link-to-mapping-defaults { - display: none; -} + display: none; } .gathercontent-admin .form-table th { - font-weight: normal; - padding: 20px 1em; -} + font-weight: normal; + padding: 20px 1em; } .gathercontent-admin.gc-sync .form-table th { - padding: 10px; -} + padding: 10px; } .gathercontent-admin select, .gathercontent-admin .select2-container { - width: 250px; -} + width: 250px; } .gathercontent-admin .wp-field-th { - width: 60%; -} + width: 60%; } .gathercontent-admin .gc-field-th.gc-check-column { - width: 20px; - padding: 6px 0 6px 6px; - vertical-align: middle; -} + width: 20px; + padding: 6px 0 6px 6px; + vertical-align: middle; } .gc-enabled .gc-status-column { - cursor: pointer; -} + cursor: pointer; } -.gc-disabled input[type=checkbox] { - cursor: default; -} +.gc-disabled input[type="checkbox"] { + cursor: default; } .gathercontent-admin .select2-results__option, .gathercontent-admin-select2 .select2-results__option { - border-bottom: 1px solid #eee; - margin: 0; -} - -.gathercontent-admin .select2-results__option .description, .gathercontent-admin-select2 .select2-results__option .description { - font-style: italic; - opacity: 0.7; - margin-top: 0.2em; -} + border-bottom: 1px solid #eee; + margin: 0; } + .gathercontent-admin .select2-results__option .description, .gathercontent-admin-select2 .select2-results__option .description { + font-style: italic; + opacity: .7; + margin-top: .2em; } .gc-template-tab ul.gc-reveal-items-list li { - margin-left: 1.5em; - text-transform: capitalize; -} + margin-left: 1.5em; + text-transform: capitalize; } .gc-loader { - margin: 0 auto; - display: block; - float: none; -} + margin: 0 auto; + display: block; + float: none; } .gc-sync-items-descriptions .dashicons-randomize { - text-decoration: none; -} + text-decoration: none; } .gc-status-color { - width: 1.1em; - height: 1.1em; - display: inline-block; - border-radius: 100%; - line-height: 1.1em; - margin-bottom: -2px; - float: left; - margin-right: 5px; -} - -.gc-status-color.gc-status-color-white { - border: 1px solid #b1b1b1; -} + width: 1.1em; + height: 1.1em; + display: inline-block; + border-radius: 100%; + line-height: 1.1em; + margin-bottom: -2px; + float: left; + margin-right: 5px; } + .gc-status-color.gc-status-color-white { + border: 1px solid #b1b1b1; } .select2-gc_status .gc-status-color, .select2-post_status_mapping_after .gc-status-color { - float: right; - margin-right: 0; -} + float: right; + margin-right: 0; } .select2-gc_status.select2-container--default .gc-status-color, .select2-post_status_mapping_after.select2-container--default .gc-status-color { - position: relative; - top: 0.4em; -} + position: relative; + top: .4em; } .gc-logo-column { - overflow: hidden; - width: 21px; - height: 20px; - max-width: 100%; - display: inline-block; - vertical-align: top; - margin-right: 1px; -} - -.gc-logo-column img { - width: 100px; - height: auto; -} + overflow: hidden; + width: 21px; + height: 20px; + max-width: 100%; + display: inline-block; + vertical-align: top; + margin-right: 1px; } + .gc-logo-column img { + width: 100px; + height: auto; } .column-gathercontent .gc-status-color { - margin-top: 2px; -} + margin-top: 2px; } .inline-edit-gc-status .gc-status-select2 { - display: inline-block; -} - -.inline-edit-gc-status .gc-status-select2 .spinner { - visibility: visible; -} + display: inline-block; } + .inline-edit-gc-status .gc-status-select2 .spinner { + visibility: visible; } .gc-button-primary, .wp-core-ui .button.gc-button-primary { - background-color: #fff; - border: 1px solid #00ABBD; - color: #00ABBD; - font-weight: bold; -} - -.gc-button-primary:hover, .wp-core-ui .button.gc-button-primary:hover { - background-color: #00ABBD; - border: 1px solid #00ABBD; - color: #fff; -} + background-color: #fff; + border: 1px solid #00ABBD; + color: #00ABBD; + font-weight: bold; } + .gc-button-primary:hover, .wp-core-ui .button.gc-button-primary:hover { + background-color: #00ABBD; + border: 1px solid #00ABBD; + color: #fff; } .gc-button-danger, .wp-core-ui .button.gc-button-danger { - background-color: #fff; - border: 1px solid #fc5c54; - color: #fc5c54; - font-weight: bold; -} - -.gc-button-danger:hover, .wp-core-ui .button.gc-button-danger:hover { - background-color: #fc5c54; - border: 1px solid #fc5c54; - color: #fff; -} + background-color: #fff; + border: 1px solid #fc5c54; + color: #fc5c54; + font-weight: bold; } + .gc-button-danger:hover, .wp-core-ui .button.gc-button-danger:hover { + background-color: #fc5c54; + border: 1px solid #fc5c54; + color: #fff; } .gc-auth-required .gc-section-auth table { - background-color: #f5bfbf; -} - -.gc-component-disabled { - pointer-events: none; - opacity: 0.5; -} - -.gc-component-disabled { - pointer-events: none; - opacity: 0.5; } + background-color: #f5bfbf; } #gc-items-search { - float: left; -} + float: left; } #sync-tabs .tablenav { - clear: none; -} + clear: none; } #sync-tabs { - margin-bottom: 1.5em; -} - -#sync-tabs .gc-check-column { - width: 20px; - padding: 6px 0 6px 6px; - vertical-align: middle; -} - -#sync-tabs #gc-edit { - width: 20px; -} - -#sync-tabs th:nth-child(5), #sync-tabs td:nth-child(5) { - display: none; -} + margin-bottom: 1.5em; } + #sync-tabs .gc-check-column { + width: 20px; + padding: 6px 0 6px 6px; + vertical-align: middle; } + #sync-tabs #gc-edit { + width: 20px; } + #sync-tabs th:nth-child(5), #sync-tabs td:nth-child(5) { + display: none; } .gc-sync-progress #progress { - padding: 0; - border: 1px solid #e5e5e5; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); -} + padding: 0; + border: 1px solid #e5e5e5; + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); } .gc-sync-progress table { - background: none; -} + background: none; } .gc-sync-progress #gc-items-search { - display: none; -} + display: none; } .gc-progress-bar { - position: relative; -} - -.gc-progress-bar:before { - content: ""; - background: #dbf4f6; - height: 38px; - display: block; - width: 100%; -} + position: relative; } + .gc-progress-bar:before { + content: ''; + background: #dbf4f6; + height: 38px; + display: block; + width: 100%; } .gc-progress-bar-partial { - background: #0ab3c4; - height: 38px; - color: #fff; - text-align: center; - line-height: 38px; - font-weight: bold; - margin-top: -38px; - transition: width 400ms ease-in-out; -} - -.gc-progress-bar-partial span { - display: block; - min-width: 3.2em; -} + background: #0ab3c4; + height: 38px; + color: #fff; + text-align: center; + line-height: 38px; + font-weight: bold; + margin-top: -38px; + transition: width 400ms ease-in-out; } + .gc-progress-bar-partial span { + display: block; + min-width: 3.2em; } .gc-sync-table { - border-spacing: 0; - width: 100%; - clear: both; - margin: 0; -} + border-spacing: 0; + width: 100%; + clear: both; + margin: 0; } #gc-reload-spinner .gc-loader { - padding-left: 32px; - width: auto; - line-height: 1.5em; -} + padding-left: 32px; + width: auto; + line-height: 1.5em; } .gc-status-warning { - color: orange; - font-size: 10px; - display: none; -} + color: orange; + font-size: 10px; + display: none; } .gc-status-warning.not-current { - display: block; -} + display: block; } /* The styles below were ripped from the Media Modal in WordPress 3.5 ~~ Thanks for building a beautiful Modal UI ( that I could steal ) */ .gc-modal-open { - overflow: hidden; -} - -.gc-modal-open #gc-items-search { - display: block; - position: absolute; - top: 0; - left: 0; - z-index: 160001; -} - -.gc-modal-open #gc-tablenav { - margin: 0 16px 0 0; -} - -.gc-modal-open #gc-items-search { - margin-left: 16px; -} + overflow: hidden; } + .gc-modal-open #gc-items-search { + display: block; + position: absolute; + top: 0; + left: 0; + z-index: 160001; } + .gc-modal-open #gc-tablenav { + margin: 0 16px 0 0; } + .gc-modal-open #gc-items-search { + margin-left: 16px; } .gc-bb-modal { - position: fixed; - top: 30px; - left: 30px; - right: 30px; - bottom: 30px; - z-index: 160000; - font-family: sans-serif; - font-size: 14px; -} + position: fixed; + top: 30px; + left: 30px; + right: 30px; + bottom: 30px; + z-index: 160000; + font-family: sans-serif; + font-size: 14px; } .gc-bb-modal .gc-bb-modal-close { - position: absolute; - text-decoration: none; - top: 10px; - right: 10px; - width: 30px; - height: 30px; - z-index: 1000; - transition: color 0.1s ease-in-out, background 0.1s ease-in-out; - color: #444; -} + position: absolute; + text-decoration: none; + top: 10px; + right: 10px; + width: 30px; + height: 30px; + z-index: 1000; + transition: color .1s ease-in-out, background .1s ease-in-out; + color: #444; } .gc-bb-modal .gc-bb-modal-close:hover, .gc-bb-modal .gc-bb-modal-close:focus { - color: #2ea2cc; -} + color: #2ea2cc; } .gc-bb-modal .gc-bb-modal-content { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - overflow: hidden; - min-height: 300px; - background: #fff; -} + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + overflow: hidden; + min-height: 300px; + background: #fff; } .gc-bb-modal-backdrop { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - min-height: 360px; - background: #000; - opacity: 0.7; - z-index: 159900; -} + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + min-height: 360px; + background: #000; + opacity: .7; + z-index: 159900; } .gc-bb-modal-title h1 { - padding: 16px; - line-height: 0; -} + padding: 16px; + line-height: 0; } .gc-bb-modal-nav-tabs { - top: 74px; -} + top: 74px; } .gc-bb-modal-main { - top: 105px; - padding: 16px; -} - -.gc-bb-modal-main.has-nav-tabs { - top: 108px; -} + top: 105px; + padding: 16px; } + .gc-bb-modal-main.has-nav-tabs { + top: 108px; } .text-right { - text-align: right; -} + text-align: right; } .ir { - background-color: transparent; - border: 0; - overflow: hidden; - /* IE 6/7 fallback */ - *text-indent: -9999px; -} + background-color: transparent; + border: 0; + overflow: hidden; + /* IE 6/7 fallback */ + *text-indent: -9999px; } .ir:before { - content: ""; - display: block; - width: 0; - height: 150%; -} + content: ""; + display: block; + width: 0; + height: 150%; } .gc-modal-tabs .hidden { - display: none; -} + display: none; } .gc-modal-tabs .gc-disabled td:not(.gc-item-wp-post-title) { - opacity: 0.4; -} + opacity: 0.4; } .gc-set-mapping .gc-cloak { - position: absolute; - top: 84px; - left: 200px; - right: 0; - bottom: 0; - height: auto; - width: auto; - background: #fff; - opacity: 0.5; - z-index: 101; -} + position: absolute; + top: 84px; + left: 200px; + right: 0; + bottom: 0; + height: auto; + width: auto; + background: #fff; + opacity: .5; + z-index: 101; } .gc-set-mapping .gc-mapping-metabox { - position: absolute; - right: 16px; - bottom: 41px; - width: 270px; - z-index: 102; -} - -.gc-set-mapping .gc-mapping-metabox select { - width: 250px; -} + position: absolute; + right: 16px; + bottom: 41px; + width: 270px; + z-index: 102; } + .gc-set-mapping .gc-mapping-metabox select { + width: 250px; } #poststuff #gc-manage .inside { - margin: 0; - padding: 0; -} + margin: 0; + padding: 0; } .gc-major-publishing-actions { - padding: 10px; - clear: both; - border-top: 1px solid #ddd; - background: #f5f5f5; -} + padding: 10px; + clear: both; + border-top: 1px solid #ddd; + background: #f5f5f5; } .gc-publishing-action { - text-align: right; - float: right; - line-height: 23px; -} - -.gc-publishing-action button.button, .gc-publishing-action .button { - margin-left: 0.5em; -} + text-align: right; + float: right; + line-height: 23px; } + .gc-publishing-action button.button, .gc-publishing-action .button { + margin-left: .5em; } #gc-manage .dashicons { - color: #82878c; -} + color: #82878c; } #gc-status-selec2 { - padding: 5px 0; -} + padding: 5px 0; } #gc-related-data { - overflow: hidden; -} - -#gc-related-data.no-js, #gc-related-data.gc-mapping-metabox:not(.gc-mapping-started) { - text-align: center; -} - -#gc-related-data .spinner { - float: none; - margin: 0.2em; -} - -#gc-related-data > p { - text-align: center; -} + overflow: hidden; } + #gc-related-data.no-js, #gc-related-data.gc-mapping-metabox:not(.gc-mapping-started) { + text-align: center; } + #gc-related-data .spinner { + float: none; + margin: .2em; } + #gc-related-data > p { + text-align: center; } .misc-pub-post-status .gc-status-color { - display: block; - margin-top: 2px; - margin-left: 4px; -} + display: block; + margin-top: 2px; + margin-left: 4px; } .misc-pub-post-status .gc-status-name { - font-weight: 600; -} + font-weight: 600; } .gc-status-status.current { - color: #49ab00; -} + color: #49ab00; } .gc-status-status.not-current { - color: #c12c2f; -} + color: #c12c2f; } .gc-no-mapping .spinner { - display: none; -} - -.gc-no-mapping .spinner.is-active { - display: inline-block; -} + display: none; } + .gc-no-mapping .spinner.is-active { + display: inline-block; } .gc-no-mapping .gc-publishing-action { - text-align: center; - float: none; -} - -.gc-no-mapping .gc-publishing-action button.button, .gc-no-mapping .gc-publishing-action .button { - margin-left: 0; -} + text-align: center; + float: none; } + .gc-no-mapping .gc-publishing-action button.button, .gc-no-mapping .gc-publishing-action .button { + margin-left: 0; } .gc-mapping-started label { - margin-bottom: 0.2em; - display: block; -} + margin-bottom: .2em; + display: block; } .gc-metabox-status { - display: inline-block; - position: relative; -} + display: inline-block; + position: relative; } /** * System Info */ #system-info-textarea { - background: none; - font-family: Menlo, Monaco, monospace; - display: block; - overflow: auto; - white-space: pre; - width: 800px; - height: 400px; - min-height: 400px; - margin-bottom: 1.5em; -} + background: none; + font-family: Menlo, Monaco, monospace; + display: block; + overflow: auto; + white-space: pre; + width: 800px; + height: 400px; + min-height: 400px; + margin-bottom: 1.5em; } \ No newline at end of file diff --git a/assets/css/gathercontent-importer.css.map b/assets/css/gathercontent-importer.css.map index ce77297b..8d68086e 100644 --- a/assets/css/gathercontent-importer.css.map +++ b/assets/css/gathercontent-importer.css.map @@ -8,5 +8,5 @@ "sass/_single.scss" ], "names": [], - "mappings": "AAAA;;;;;;GAMG;AAYH,AAAA,UAAU,CAAC;EACV,aAAa,EAAE,IAAI;EACnB,OAAO,EAAE,KAAK;EACd,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,YAAY,EAAE,IAAI;EAClB,cAAc,EAAE,MAAM;EACtB,KAAK,EAAE,IAAI,GACX;;AAED,AAAA,SAAS,CAAC;EACT,MAAM,EAAE,KAAK,GACb;;AAED,AAAA,WAAW,CAAC;EACX,OAAO,EAAE,GAAG;EACZ,QAAQ,EAAE,MAAM,GAChB;;AAED,AAAA,kBAAkB,CAAC;EAClB,QAAQ,EAAE,QAAQ;EAClB,OAAO,EAAE,YAAY,GACrB;;AAED,AAAA,kBAAkB,CAAC;EAClB,QAAQ,EAAE,QAAQ;EAClB,GAAG,EAAE,CAAC;EACN,KAAK,EAAE,GAAG;EACV,WAAW,EAAE,GAAG,GAMhB;EAVD,AAKC,kBALiB,AAKhB,iBAAiB,CAAC;IAClB,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,IAAI,GACX;;AAGF,AAAA,kBAAkB,CAAC;EAClB,aAAa,EAAE,KAAK;EACpB,YAAY,EAAE,IAAI,GAClB;;AAED,AAAA,sBAAsB,AAAA,OAAO,CAAC;EAC7B,KAAK,EAAE,GAAG;EACV,SAAS,EAAE,GAAG;EACd,OAAO,EAAE,YAAY;EACrB,cAAc,EAAE,MAAM,GACtB;;AAED,AAAA,WAAW,CAAC,EAAE,CAAC,cAAc,CAAC;EAC7B,aAAa,EAAE,IAAI,GACnB;;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AO,EAAE,KAAK,GACd;;AAGF,AAAA,kBAAkB,CAAC;EAClB,OAAO,EAAE,YAAY;EACrB,QAAQ,EAAE,QAAQ,GAClB;;AHuUD;;GAEG;AACH,AAAA,qBAAqB,CAAC;EACrB,UAAU,EAAE,IAAI;EAChB,WAAW,EAAE,wBAAwB;EACrC,OAAO,EAAE,KAAK;EACd,QAAQ,EAAE,IAAI;EACd,WAAW,EAAE,GAAG;EAChB,KAAK,EAAE,KAAK;EACZ,MAAM,EAAE,KAAK;EACb,UAAU,EAAE,KAAK;EACjB,aAAa,EAAE,KAAK,GACpB" +} \ No newline at end of file diff --git a/assets/css/gathercontent-importer.min.css b/assets/css/gathercontent-importer.min.css index 49fb510c..290e9108 100644 --- a/assets/css/gathercontent-importer.min.css +++ b/assets/css/gathercontent-importer.min.css @@ -1 +1 @@ -.gc-avatar{border-radius:50px;display:block;float:left;height:50px;margin-right:10px;vertical-align:middle;width:50px}.gc-hello{margin:5px 0}.gc-profile{padding:1em;overflow:hidden}.platform-url-wrap{position:relative;display:inline-block}.platform-url-help{position:absolute;top:0;right:6px;line-height:2em}.platform-url-help.gc-domain-prefix{left:6px;right:0;width:35px}#platform_url_slug{padding-right:138px;padding-left:55px}.gc-refresh-connection.button{width:2em;font-size:2em;display:inline-block;vertical-align:bottom}.form-table td .gc-submit-top{margin-bottom:.5em}.wp-core-ui p .gc-refresh-connection{line-height:1.3;vertical-align:bottom}.description.gc-radio-desc{margin-left:1.5em;margin-bottom:1em}.gc-reveal-items{text-decoration:none;position:relative}.gc-reveal-items.description{display:inline-block;margin-bottom:.5em}.gc-reveal-items:before{display:block;position:absolute;right:-1em;top:-.1em}ul.gc-radio-desc,ul.gc-reveal-items-list{border-top:1px solid #999;margin-top:.5em;padding-top:1em;list-style-type:disc;margin-bottom:1em}ul.gc-radio-desc li,ul.gc-reveal-items-list li{margin-left:2.8em}.gc-nav-tab-wrapper{border-bottom:1px solid #ccc}.gc-template-tab{padding:1em 0}.gc-template-tab h4{margin-top:0}.gc-template-tab table tbody>tr>td:first-child,.gc-template-tab table tbody>tr>th:first-child,.gc-template-tab table thead>tr>td:first-child,.gc-template-tab table thead>tr>th:first-child{width:40%}.gc-template-tab table tbody>tr>td:last-child,.gc-template-tab table tbody>tr>th:last-child,.gc-template-tab table thead>tr>td:last-child,.gc-template-tab table thead>tr>th:last-child{width:60%}.gc-template-tab td{border-bottom:1px solid #ccc;padding:.5em 1em}.gc-template-tab td:nth-child(2){vertical-align:top}.gc-template-tab td option[value=wp-type-acf]{display:none}.gc-template-tab td.gc-component option[value=wp-type-acf],.gc-template-tab td.type-repeater option[value=wp-type-acf]{display:block}.gc-template-tab .component-td{padding-left:0;padding-right:0;border:none}.gc-template-tab .component-td-wrapper{border-bottom:1px solid #ccc}.gc-template-tab .component-table-wrapper{width:100%}.gc-template-tab .component-table-wrapper tbody>tr>td{border:none}.gc-template-tab .component-table-inner{border-collapse:collapse;width:100%}.gc-template-tab .component-table-inner td{border:none}.gc-template-tab .component-table-inner td:first-child{padding-left:2.5em}.gc-template-tab .component-table-inner tr.text option[data-type=text],.gc-template-tab .component-table-inner tr.text option[data-type=textarea],.gc-template-tab .component-table-inner tr.text option[data-type=wysiwyg]{display:block}.gc-template-tab .component-table-inner tr.attachment option[data-type=gallery],.gc-template-tab .component-table-inner tr.attachment option[data-type=image]{display:block}.gc-template-tab .component-table-inner tr.choice_checkbox option[data-type=checkbox]{display:block}.gc-template-tab .component-table-inner tr.choice_radio option[data-type=radio]{display:block}.gc-template-tab .component-table-inner tr.repeater option[data-type=text],.gc-template-tab .component-table-inner tr.repeater option[data-type=textarea],.gc-template-tab .component-table-inner tr.repeater option[data-type=wysiwyg]{display:none}.gc-template-tab .component-table-inner tr.repeater option[data-type=repeater]{display:block}.gc-template-tab .ajax-disabled{opacity:.75;pointer-events:none}.gc-disabled .description,.gc-disabled label span{opacity:.5}.nav-tab.alignright{float:right}.mapping-defaults .link-to-mapping-defaults{display:none}.gathercontent-admin .form-table th{font-weight:400;padding:20px 1em}.gathercontent-admin.gc-sync .form-table th{padding:10px}.gathercontent-admin .select2-container,.gathercontent-admin select{width:250px}.gathercontent-admin .wp-field-th{width:60%}.gathercontent-admin .gc-field-th.gc-check-column{width:20px;padding:6px 0 6px 6px;vertical-align:middle}.gc-enabled .gc-status-column{cursor:pointer}.gc-disabled input[type=checkbox]{cursor:default}.gathercontent-admin .select2-results__option,.gathercontent-admin-select2 .select2-results__option{border-bottom:1px solid #eee;margin:0}.gathercontent-admin .select2-results__option .description,.gathercontent-admin-select2 .select2-results__option .description{font-style:italic;opacity:.7;margin-top:.2em}.gc-template-tab ul.gc-reveal-items-list li{margin-left:1.5em;text-transform:capitalize}.gc-loader{margin:0 auto;display:block;float:none}.gc-sync-items-descriptions .dashicons-randomize{text-decoration:none}.gc-status-color{width:1.1em;height:1.1em;display:inline-block;border-radius:100%;line-height:1.1em;margin-bottom:-2px;float:left;margin-right:5px}.gc-status-color.gc-status-color-white{border:1px solid #b1b1b1}.select2-gc_status .gc-status-color,.select2-post_status_mapping_after .gc-status-color{float:right;margin-right:0}.select2-gc_status.select2-container--default .gc-status-color,.select2-post_status_mapping_after.select2-container--default .gc-status-color{position:relative;top:.4em}.gc-logo-column{overflow:hidden;width:21px;height:20px;max-width:100%;display:inline-block;vertical-align:top;margin-right:1px}.gc-logo-column img{width:100px;height:auto}.column-gathercontent .gc-status-color{margin-top:2px}.inline-edit-gc-status .gc-status-select2{display:inline-block}.inline-edit-gc-status .gc-status-select2 .spinner{visibility:visible}.gc-button-primary,.wp-core-ui .button.gc-button-primary{background-color:#fff;border:1px solid #00abbd;color:#00abbd;font-weight:700}.gc-button-primary:hover,.wp-core-ui .button.gc-button-primary:hover{background-color:#00abbd;border:1px solid #00abbd;color:#fff}.gc-button-danger,.wp-core-ui .button.gc-button-danger{background-color:#fff;border:1px solid #fc5c54;color:#fc5c54;font-weight:700}.gc-button-danger:hover,.wp-core-ui .button.gc-button-danger:hover{background-color:#fc5c54;border:1px solid #fc5c54;color:#fff}.gc-auth-required .gc-section-auth table{background-color:#f5bfbf}.gc-component-disabled{pointer-events:none;opacity:.5}#gc-items-search{float:left}#sync-tabs .tablenav{clear:none}#sync-tabs{margin-bottom:1.5em}#sync-tabs .gc-check-column{width:20px;padding:6px 0 6px 6px;vertical-align:middle}#sync-tabs #gc-edit{width:20px}#sync-tabs td:nth-child(5),#sync-tabs th:nth-child(5){display:none}.gc-sync-progress #progress{padding:0;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04)}.gc-sync-progress table{background:0 0}.gc-sync-progress #gc-items-search{display:none}.gc-progress-bar{position:relative}.gc-progress-bar:before{content:"";background:#dbf4f6;height:38px;display:block;width:100%}.gc-progress-bar-partial{background:#0ab3c4;height:38px;color:#fff;text-align:center;line-height:38px;font-weight:700;margin-top:-38px;transition:width .4s ease-in-out}.gc-progress-bar-partial span{display:block;min-width:3.2em}.gc-sync-table{border-spacing:0;width:100%;clear:both;margin:0}#gc-reload-spinner .gc-loader{padding-left:32px;width:auto;line-height:1.5em}.gc-status-warning{color:orange;font-size:10px;display:none}.gc-status-warning.not-current{display:block}.gc-modal-open{overflow:hidden}.gc-modal-open #gc-items-search{display:block;position:absolute;top:0;left:0;z-index:160001}.gc-modal-open #gc-tablenav{margin:0 16px 0 0}.gc-modal-open #gc-items-search{margin-left:16px}.gc-bb-modal{position:fixed;top:30px;left:30px;right:30px;bottom:30px;z-index:160000;font-family:sans-serif;font-size:14px}.gc-bb-modal .gc-bb-modal-close{position:absolute;text-decoration:none;top:10px;right:10px;width:30px;height:30px;z-index:1000;transition:color .1s ease-in-out,background .1s ease-in-out;color:#444}.gc-bb-modal .gc-bb-modal-close:focus,.gc-bb-modal .gc-bb-modal-close:hover{color:#2ea2cc}.gc-bb-modal .gc-bb-modal-content{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;min-height:300px;background:#fff}.gc-bb-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:159900}.gc-bb-modal-title h1{padding:16px;line-height:0}.gc-bb-modal-nav-tabs{top:74px}.gc-bb-modal-main{top:105px;padding:16px}.gc-bb-modal-main.has-nav-tabs{top:108px}.text-right{text-align:right}.ir{background-color:transparent;border:0;overflow:hidden}.ir:before{content:"";display:block;width:0;height:150%}.gc-modal-tabs .hidden{display:none}.gc-modal-tabs .gc-disabled td:not(.gc-item-wp-post-title){opacity:.4}.gc-set-mapping .gc-cloak{position:absolute;top:84px;left:200px;right:0;bottom:0;height:auto;width:auto;background:#fff;opacity:.5;z-index:101}.gc-set-mapping .gc-mapping-metabox{position:absolute;right:16px;bottom:41px;width:270px;z-index:102}.gc-set-mapping .gc-mapping-metabox select{width:250px}#poststuff #gc-manage .inside{margin:0;padding:0}.gc-major-publishing-actions{padding:10px;clear:both;border-top:1px solid #ddd;background:#f5f5f5}.gc-publishing-action{text-align:right;float:right;line-height:23px}.gc-publishing-action .button,.gc-publishing-action button.button{margin-left:.5em}#gc-manage .dashicons{color:#82878c}#gc-status-selec2{padding:5px 0}#gc-related-data{overflow:hidden}#gc-related-data.gc-mapping-metabox:not(.gc-mapping-started),#gc-related-data.no-js{text-align:center}#gc-related-data .spinner{float:none;margin:.2em}#gc-related-data>p{text-align:center}.misc-pub-post-status .gc-status-color{display:block;margin-top:2px;margin-left:4px}.misc-pub-post-status .gc-status-name{font-weight:600}.gc-status-status.current{color:#49ab00}.gc-status-status.not-current{color:#c12c2f}.gc-no-mapping .spinner{display:none}.gc-no-mapping .spinner.is-active{display:inline-block}.gc-no-mapping .gc-publishing-action{text-align:center;float:none}.gc-no-mapping .gc-publishing-action .button,.gc-no-mapping .gc-publishing-action button.button{margin-left:0}.gc-mapping-started label{margin-bottom:.2em;display:block}.gc-metabox-status{display:inline-block;position:relative}#system-info-textarea{background:0 0;font-family:Menlo,Monaco,monospace;display:block;overflow:auto;white-space:pre;width:800px;height:400px;min-height:400px;margin-bottom:1.5em} +.gc-avatar{border-radius:50px;display:block;float:left;height:50px;margin-right:10px;vertical-align:middle;width:50px}.gc-hello{margin:5px 0}.gc-profile{padding:1em;overflow:hidden}.platform-url-wrap{position:relative;display:inline-block}.platform-url-help{position:absolute;top:0;right:6px;line-height:2em}.platform-url-help.gc-domain-prefix{left:6px;right:0;width:35px}#platform_url_slug{padding-right:138px;padding-left:55px}.gc-refresh-connection.button{width:2em;font-size:2em;display:inline-block;vertical-align:bottom}.form-table td .gc-submit-top{margin-bottom:.5em}.wp-core-ui p .gc-refresh-connection{line-height:1.3;vertical-align:bottom}.description.gc-radio-desc{margin-left:1.5em;margin-bottom:1em}.gc-reveal-items{text-decoration:none;position:relative}.gc-reveal-items.description{display:inline-block;margin-bottom:.5em}.gc-reveal-items:before{display:block;position:absolute;right:-1em;top:-.1em}ul.gc-radio-desc,ul.gc-reveal-items-list{border-top:1px solid #999;margin-top:.5em;padding-top:1em;list-style-type:disc;margin-bottom:1em}ul.gc-radio-desc li,ul.gc-reveal-items-list li{margin-left:2.8em}.gc-nav-tab-wrapper{border-bottom:1px solid #ccc}.gc-template-tab{padding:1em 0}.gc-template-tab h4{margin-top:0}.gc-template-tab table tbody>tr>td:first-child,.gc-template-tab table tbody>tr>th:first-child,.gc-template-tab table thead>tr>td:first-child,.gc-template-tab table thead>tr>th:first-child{width:40%}.gc-template-tab table tbody>tr>td:last-child,.gc-template-tab table tbody>tr>th:last-child,.gc-template-tab table thead>tr>td:last-child,.gc-template-tab table thead>tr>th:last-child{width:60%}.gc-template-tab td{border-bottom:1px solid #ccc;padding:.5em 1em}.gc-template-tab td:nth-child(2){vertical-align:top}.gc-template-tab td option[value=wp-type-acf]{display:none}.gc-template-tab td.gc-component option[value=wp-type-acf],.gc-template-tab td.type-repeater option[value=wp-type-acf]{display:block}.gc-template-tab .component-td{padding-left:0;padding-right:0;border:none}.gc-template-tab .component-td-wrapper{border-bottom:1px solid #ccc}.gc-template-tab .component-table-wrapper{width:100%}.gc-template-tab .component-table-wrapper tbody>tr>td{border:none}.gc-template-tab .component-table-inner{border-collapse:collapse;width:100%}.gc-template-tab .component-table-inner td{border:none}.gc-template-tab .component-table-inner td:first-child{padding-left:2.5em}.gc-template-tab .component-table-inner tr.text option[data-type=text],.gc-template-tab .component-table-inner tr.text option[data-type=textarea],.gc-template-tab .component-table-inner tr.text option[data-type=wysiwyg]{display:block}.gc-template-tab .component-table-inner tr.attachment option[data-type=gallery],.gc-template-tab .component-table-inner tr.attachment option[data-type=image]{display:block}.gc-template-tab .component-table-inner tr.choice_checkbox option[data-type=checkbox]{display:block}.gc-template-tab .component-table-inner tr.choice_radio option[data-type=radio]{display:block}.gc-template-tab .component-table-inner tr.repeater option[data-type=text],.gc-template-tab .component-table-inner tr.repeater option[data-type=textarea],.gc-template-tab .component-table-inner tr.repeater option[data-type=wysiwyg]{display:none}.gc-template-tab .component-table-inner tr.repeater option[data-type=repeater]{display:block}.gc-template-tab .ajax-disabled{opacity:.75;pointer-events:none}.gc-disabled .description,.gc-disabled label span{opacity:.5}.nav-tab.alignright{float:right}.mapping-defaults .link-to-mapping-defaults{display:none}.gathercontent-admin .form-table th{font-weight:400;padding:20px 1em}.gathercontent-admin.gc-sync .form-table th{padding:10px}.gathercontent-admin .select2-container,.gathercontent-admin select{width:250px}.gathercontent-admin .wp-field-th{width:60%}.gathercontent-admin .gc-field-th.gc-check-column{width:20px;padding:6px 0 6px 6px;vertical-align:middle}.gc-enabled .gc-status-column{cursor:pointer}.gc-disabled input[type=checkbox]{cursor:default}.gathercontent-admin .select2-results__option,.gathercontent-admin-select2 .select2-results__option{border-bottom:1px solid #eee;margin:0}.gathercontent-admin .select2-results__option .description,.gathercontent-admin-select2 .select2-results__option .description{font-style:italic;opacity:.7;margin-top:.2em}.gc-template-tab ul.gc-reveal-items-list li{margin-left:1.5em;text-transform:capitalize}.gc-loader{margin:0 auto;display:block;float:none}.gc-sync-items-descriptions .dashicons-randomize{text-decoration:none}.gc-status-color{width:1.1em;height:1.1em;display:inline-block;border-radius:100%;line-height:1.1em;margin-bottom:-2px;float:left;margin-right:5px}.gc-status-color.gc-status-color-white{border:1px solid #b1b1b1}.select2-gc_status .gc-status-color,.select2-post_status_mapping_after .gc-status-color{float:right;margin-right:0}.select2-gc_status.select2-container--default .gc-status-color,.select2-post_status_mapping_after.select2-container--default .gc-status-color{position:relative;top:.4em}.gc-logo-column{overflow:hidden;width:21px;height:20px;max-width:100%;display:inline-block;vertical-align:top;margin-right:1px}.gc-logo-column img{width:100px;height:auto}.column-gathercontent .gc-status-color{margin-top:2px}.inline-edit-gc-status .gc-status-select2{display:inline-block}.inline-edit-gc-status .gc-status-select2 .spinner{visibility:visible}.gc-button-primary,.wp-core-ui .button.gc-button-primary{background-color:#fff;border:1px solid #00abbd;color:#00abbd;font-weight:700}.gc-button-primary:hover,.wp-core-ui .button.gc-button-primary:hover{background-color:#00abbd;border:1px solid #00abbd;color:#fff}.gc-button-danger,.wp-core-ui .button.gc-button-danger{background-color:#fff;border:1px solid #fc5c54;color:#fc5c54;font-weight:700}.gc-button-danger:hover,.wp-core-ui .button.gc-button-danger:hover{background-color:#fc5c54;border:1px solid #fc5c54;color:#fff}.gc-auth-required .gc-section-auth table{background-color:#f5bfbf}#gc-items-search{float:left}#sync-tabs .tablenav{clear:none}#sync-tabs{margin-bottom:1.5em}#sync-tabs .gc-check-column{width:20px;padding:6px 0 6px 6px;vertical-align:middle}#sync-tabs #gc-edit{width:20px}#sync-tabs td:nth-child(5),#sync-tabs th:nth-child(5){display:none}.gc-sync-progress #progress{padding:0;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04)}.gc-sync-progress table{background:0 0}.gc-sync-progress #gc-items-search{display:none}.gc-progress-bar{position:relative}.gc-progress-bar:before{content:'';background:#dbf4f6;height:38px;display:block;width:100%}.gc-progress-bar-partial{background:#0ab3c4;height:38px;color:#fff;text-align:center;line-height:38px;font-weight:700;margin-top:-38px;transition:width .4s ease-in-out}.gc-progress-bar-partial span{display:block;min-width:3.2em}.gc-sync-table{border-spacing:0;width:100%;clear:both;margin:0}#gc-reload-spinner .gc-loader{padding-left:32px;width:auto;line-height:1.5em}.gc-status-warning{color:orange;font-size:10px;display:none}.gc-status-warning.not-current{display:block}.gc-modal-open{overflow:hidden}.gc-modal-open #gc-items-search{display:block;position:absolute;top:0;left:0;z-index:160001}.gc-modal-open #gc-tablenav{margin:0 16px 0 0}.gc-modal-open #gc-items-search{margin-left:16px}.gc-bb-modal{position:fixed;top:30px;left:30px;right:30px;bottom:30px;z-index:160000;font-family:sans-serif;font-size:14px}.gc-bb-modal .gc-bb-modal-close{position:absolute;text-decoration:none;top:10px;right:10px;width:30px;height:30px;z-index:1000;transition:color .1s ease-in-out,background .1s ease-in-out;color:#444}.gc-bb-modal .gc-bb-modal-close:focus,.gc-bb-modal .gc-bb-modal-close:hover{color:#2ea2cc}.gc-bb-modal .gc-bb-modal-content{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;min-height:300px;background:#fff}.gc-bb-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:159900}.gc-bb-modal-title h1{padding:16px;line-height:0}.gc-bb-modal-nav-tabs{top:74px}.gc-bb-modal-main{top:105px;padding:16px}.gc-bb-modal-main.has-nav-tabs{top:108px}.text-right{text-align:right}.ir{background-color:transparent;border:0;overflow:hidden}.ir:before{content:"";display:block;width:0;height:150%}.gc-modal-tabs .hidden{display:none}.gc-modal-tabs .gc-disabled td:not(.gc-item-wp-post-title){opacity:.4}.gc-set-mapping .gc-cloak{position:absolute;top:84px;left:200px;right:0;bottom:0;height:auto;width:auto;background:#fff;opacity:.5;z-index:101}.gc-set-mapping .gc-mapping-metabox{position:absolute;right:16px;bottom:41px;width:270px;z-index:102}.gc-set-mapping .gc-mapping-metabox select{width:250px}#poststuff #gc-manage .inside{margin:0;padding:0}.gc-major-publishing-actions{padding:10px;clear:both;border-top:1px solid #ddd;background:#f5f5f5}.gc-publishing-action{text-align:right;float:right;line-height:23px}.gc-publishing-action .button,.gc-publishing-action button.button{margin-left:.5em}#gc-manage .dashicons{color:#82878c}#gc-status-selec2{padding:5px 0}#gc-related-data{overflow:hidden}#gc-related-data.gc-mapping-metabox:not(.gc-mapping-started),#gc-related-data.no-js{text-align:center}#gc-related-data .spinner{float:none;margin:.2em}#gc-related-data>p{text-align:center}.misc-pub-post-status .gc-status-color{display:block;margin-top:2px;margin-left:4px}.misc-pub-post-status .gc-status-name{font-weight:600}.gc-status-status.current{color:#49ab00}.gc-status-status.not-current{color:#c12c2f}.gc-no-mapping .spinner{display:none}.gc-no-mapping .spinner.is-active{display:inline-block}.gc-no-mapping .gc-publishing-action{text-align:center;float:none}.gc-no-mapping .gc-publishing-action .button,.gc-no-mapping .gc-publishing-action button.button{margin-left:0}.gc-mapping-started label{margin-bottom:.2em;display:block}.gc-metabox-status{display:inline-block;position:relative}#system-info-textarea{background:0 0;font-family:Menlo,Monaco,monospace;display:block;overflow:auto;white-space:pre;width:800px;height:400px;min-height:400px;margin-bottom:1.5em} \ No newline at end of file diff --git a/assets/js/gathercontent-database.js b/assets/js/gathercontent-database.js index ec72858f..6b611e58 100644 --- a/assets/js/gathercontent-database.js +++ b/assets/js/gathercontent-database.js @@ -1,5 +1,5 @@ /** - * Content Workflow (by Bynder) - v1.0.0 - 2024-06-13 + * Content Workflow (by Bynder) - v1.0.0 - 2024-06-25 * * * Copyright (c) 2024 Content Workflow (by Bynder) diff --git a/assets/js/gathercontent-database.min.js b/assets/js/gathercontent-database.min.js index d026df39..a14f288a 100644 --- a/assets/js/gathercontent-database.min.js +++ b/assets/js/gathercontent-database.min.js @@ -1,2 +1,2 @@ -/*! Content Workflow (by Bynder) - v1.0.0 - 2024-06-13 | | Copyright (c) 2024 Content Workflow (by Bynder) | Licensed GPLv2 */ +/*! Content Workflow (by Bynder) - v1.0.0 - 2024-06-25 | | Copyright (c) 2024 Content Workflow (by Bynder) | Licensed GPLv2 */ !function r(o,u,a){function i(n,e){if(!u[n]){if(!o[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(l)return l(n,!0);e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}t=u[n]={exports:{}};o[n][0].call(t.exports,function(e){var t=o[n][1][e];return i(t||e)},t,t.exports,r,o,u,a)}return u[n].exports}for(var l="function"==typeof require&&require,e=0;e 0; + this.allChecked = this.totalChecked >= models.length; + this.sortKey = sortKey; + this.sortDirection = sortDirection; + this.sort(); + }, + + checkChecked: function checkChecked(model) { + if (model.changed.checked) { + this.totalChecked++; + } else { + if (this.totalChecked === this.length) { + this.allChecked = false; + } + this.totalChecked--; + } - }, {}], - 2: [function (require, module, exports) { - 'use strict'; - - module.exports = function (app) { - var sortKey = null; - var sortDirection = 'asc'; - var Collection = app.collections.base.extend({ - model: app.models.item, - totalChecked: 0, - allChecked: false, - syncEnabled: false, - processing: false, - sortKey: sortKey, - sortDirection: sortDirection, - - initialize: function initialize(models, options) { - this.listenTo(this, 'checkAll', this.toggleChecked); - this.listenTo(this, 'checkSome', this.toggleCheckedIf); - this.listenTo(this, 'change:checked', this.checkChecked); - this.listenTo(this, 'sortByColumn', this.sortByColumn); - - this.totalChecked = this.checked().length; - - if (options && options.reinit) { - this.reinit(models); - } - }, - - reinit: function reinit(models) { - this.totalChecked = this.checked(models).length; - this.syncEnabled = this.totalChecked > 0; - this.allChecked = this.totalChecked >= models.length; - this.sortKey = sortKey; - this.sortDirection = sortDirection; - this.sort(); - }, - - checkChecked: function checkChecked(model) { - if (model.changed.checked) { - this.totalChecked++; - } else { - if (this.totalChecked === this.length) { - this.allChecked = false; - } - this.totalChecked--; - } - - this.checkAllStatus(); - }, - - checkAllStatus: function checkAllStatus(checked) { - var syncWasEnabled = this.syncEnabled; - this.syncEnabled = this.totalChecked > 0; + this.checkAllStatus(); + }, - if (syncWasEnabled !== this.syncEnabled) { - this.trigger('enabledChange', this.syncEnabled); - } + checkAllStatus: function checkAllStatus(checked) { + var syncWasEnabled = this.syncEnabled; + this.syncEnabled = this.totalChecked > 0; - if (this.totalChecked < this.length) { - this.trigger('notAllChecked', false); - } - }, + if (syncWasEnabled !== this.syncEnabled) { + this.trigger('enabledChange', this.syncEnabled); + } - toggleCheckedIf: function toggleCheckedIf(checked) { - this.processing = true; + if (this.totalChecked < this.length) { + this.trigger('notAllChecked', false); + } + }, - this.stopListening(this, 'change:checked', this.checkChecked); - this.each(function (model) { - model.set('checked', Boolean('function' === typeof checked ? checked(model) : checked)); - }); - this.listenTo(this, 'change:checked', this.checkChecked); + toggleCheckedIf: function toggleCheckedIf(checked) { + this.processing = true; - this.totalChecked = this.checked().length; - this.allChecked = this.totalChecked >= this.length; - this.checkAllStatus(); + this.stopListening(this, 'change:checked', this.checkChecked); + this.each(function (model) { + model.set('checked', Boolean('function' === typeof checked ? checked(model) : checked)); + }); + this.listenTo(this, 'change:checked', this.checkChecked); - this.processing = false; + this.totalChecked = this.checked().length; + this.allChecked = this.totalChecked >= this.length; + this.checkAllStatus(); - this.trigger('render'); - }, + this.processing = false; - toggleChecked: function toggleChecked(checked) { - this.allChecked = checked; - this.toggleCheckedIf(checked); - }, + this.trigger('render'); + }, - checked: function checked(models) { - models = models || this; - return models.filter(function (model) { - return model.get('checked'); - }); - }, + toggleChecked: function toggleChecked(checked) { + this.allChecked = checked; + this.toggleCheckedIf(checked); + }, - comparator: function comparator(a, b) { - if (!this.sortKey) { - return; - } + checked: function checked(models) { + models = models || this; + return models.filter(function (model) { + return model.get('checked'); + }); + }, - var dataA = a.get(this.sortKey); - var dataB = b.get(this.sortKey); + comparator: function comparator(a, b) { + if (!this.sortKey) { + return; + } - if ('updated_at' === this.sortKey) { - dataA = dataA.date || dataA; - dataB = dataB.date || dataB; - } + var dataA = a.get(this.sortKey); + var dataB = b.get(this.sortKey); - if ('status' === this.sortKey) { - dataA = dataA.name || dataA; - dataB = dataB.name || dataB; - } + if ('updated_at' === this.sortKey) { + dataA = dataA.date || dataA; + dataB = dataB.date || dataB; + } - if ('asc' === this.sortDirection) { - if (dataA > dataB) { - return -1; - } - if (dataB > dataA) { - return 1; - } - return 0; - } else { - - if (dataA < dataB) { - return -1; - } - if (dataB < dataA) { - return 1; - } - - return 0; - } - }, + if ('status' === this.sortKey) { + dataA = dataA.name || dataA; + dataB = dataB.name || dataB; + } - sortByColumn: function sortByColumn(column, direction) { - this.sortKey = sortKey = column; - this.sortDirection = sortDirection = direction; - this.sort(); + if ('asc' === this.sortDirection) { + if (dataA > dataB) { + return -1; } + if (dataB > dataA) { + return 1; + } + return 0; + } else { - }); - - return require('./../collections/search-extension.js')(Collection); - }; + if (dataA < dataB) { + return -1; + } + if (dataB < dataA) { + return 1; + } - }, {"./../collections/search-extension.js": 5}], - 3: [function (require, module, exports) { - 'use strict'; + return 0; + } + }, - module.exports = function (app) { - return app.collections.base.extend({ - model: app.models.navItem, + sortByColumn: function sortByColumn(column, direction) { + this.sortKey = sortKey = column; + this.sortDirection = sortDirection = direction; + this.sort(); + } - initialize: function initialize() { - this.listenTo(this, 'activate', this.activate); - }, + }); - getActive: function getActive() { - return this.find(function (model) { - return !model.get('hidden'); - }); - }, + return require('./../collections/search-extension.js')(Collection); +}; - activate: function activate(id) { - this.each(function (model) { - model.set('hidden', true); - }); - this.getById(id).set('hidden', false); - this.trigger('render'); - } - }); - }; +},{"./../collections/search-extension.js":5}],3:[function(require,module,exports){ +'use strict'; - }, {}], - 4: [function (require, module, exports) { - 'use strict'; - - module.exports = function (app) { - var items = require('./../collections/items.js')(app); - - return require('./../collections/search-extension.js')(items.extend({ - model: app.models.post, - - initialize: function initialize(models, options) { - items.prototype.initialize.call(this, models, options); - - this.listenTo(this, 'updateItems', this.updateItems); - }, - - updateItems: function updateItems(data) { - this.each(function (model) { - var id = model.get('id'); - if (id in data) { - if (data[id].status) { - model.set('status', data[id].status); - } - if (data[id].itemName) { - model.set('itemName', data[id].itemName); - } - if (data[id].updated_at) { - model.set('updated_at', data[id].updated_at); - } - } - }); - }, - - checkedCan: function checkedCan(pushOrPull) { - switch (pushOrPull) { - case 'pull': - pushOrPull = 'canPull'; - break; - case 'assign': - pushOrPull = 'disabled'; - break; - // case 'push': - default: - pushOrPull = 'canPush'; - break; - } +module.exports = function (app) { + return app.collections.base.extend({ + model: app.models.navItem, - var can = this.find(function (model) { - return model.get(pushOrPull) && model.get('checked'); - }); + initialize: function initialize() { + this.listenTo(this, 'activate', this.activate); + }, - return can; - } + getActive: function getActive() { + return this.find(function (model) { + return !model.get('hidden'); + }); + }, - })); - }; + activate: function activate(id) { + this.each(function (model) { + model.set('hidden', true); + }); + this.getById(id).set('hidden', false); + this.trigger('render'); + } + }); +}; - }, {"./../collections/items.js": 2, "./../collections/search-extension.js": 5}], - 5: [function (require, module, exports) { - 'use strict'; +},{}],4:[function(require,module,exports){ +'use strict'; - module.exports = function (Collection) { +module.exports = function (app) { + var items = require('./../collections/items.js')(app); - _.extend(Collection.prototype, { + return require('./../collections/search-extension.js')(items.extend({ + model: app.models.post, - //_Cache - _searchResults: null, + initialize: function initialize(models, options) { + items.prototype.initialize.call(this, models, options); - //@ Search wrapper function - search: function search(keyword, attributes) { - var results = this._doSearch(keyword, attributes); + this.listenTo(this, 'updateItems', this.updateItems); + }, - this.trigger('search', results); + updateItems: function updateItems(data) { + this.each(function (model) { + var id = model.get('id'); + if (id in data) { + if (data[id].status) { + model.set('status', data[id].status); + } + if (data[id].itemName) { + model.set('itemName', data[id].itemName); + } + if (data[id].updated_at) { + model.set('updated_at', data[id].updated_at); + } + } + }); + }, + + checkedCan: function checkedCan(pushOrPull) { + switch (pushOrPull) { + case 'pull': + pushOrPull = 'canPull'; + break; + case 'assign': + pushOrPull = 'disabled'; + break; + // case 'push': + default: + pushOrPull = 'canPush'; + break; + } - // For use of returning un-async - return results; - }, + var can = this.find(function (model) { + return model.get(pushOrPull) && model.get('checked'); + }); - //@ Search function - _doSearch: function _doSearch(keyword, attributes) { - attributes = attributes && attributes.length ? attributes : false; + return can; + } - // If collection empty get out - if (!this.models.length) { - return []; - } + })); +}; - // Filter - var matcher = this.matcher; - var results = !keyword ? this.models : this.filter(function (model) { - attributes = attributes ? attributes : model.searchAttributes || _.keys(model.attributes); - return _.some(attributes, function (attribute) { - return matcher(keyword, model.get(attribute)); - }); - }); +},{"./../collections/items.js":2,"./../collections/search-extension.js":5}],5:[function(require,module,exports){ +'use strict'; - this.trigger('searchResults', results); +module.exports = function (Collection) { - // Instantiate new Collection - var collection = new Collection(results, {reinit: true}); + _.extend(Collection.prototype, { - collection.searching = { - keyword: keyword, - attributes: attributes - }; + //_Cache + _searchResults: null, - collection.getSearchQuery = function () { - return this.searching; - }; + //@ Search wrapper function + search: function search(keyword, attributes) { + var results = this._doSearch(keyword, attributes); - // Cache the recently searched metadata - this._searchResults = collection; + this.trigger('search', results); - this.trigger('search', collection); + // For use of returning un-async + return results; + }, - // For use of returning un-async - return collection; - }, + //@ Search function + _doSearch: function _doSearch(keyword, attributes) { + attributes = attributes && attributes.length ? attributes : false; - //@ Default Matcher - may be overwritten - matcher: function matcher(needle, haystack) { - if (!needle || !haystack) { - return; - } - needle = needle.toString().toLowerCase(); - haystack = haystack.toString().toLowerCase(); - return haystack.indexOf(needle) >= 0; - }, - - //@ Get recent search value - getSearchValue: function getSearchValue() { - return this.getSearchQuery().keyword; - }, - - //@ Get recent search query - getSearchQuery: function getSearchQuery() { - return this._searchResults && this._searchResults.getSearchQuery() || {}; - }, - - //@ Get recent search results - getSearchResults: function getSearchResults() { - return this._searchResults; - }, - - current: function current() { - return this._searchResults || this; - } + // If collection empty get out + if (!this.models.length) { + return []; + } + // Filter + var matcher = this.matcher; + var results = !keyword ? this.models : this.filter(function (model) { + attributes = attributes ? attributes : model.searchAttributes || _.keys(model.attributes); + return _.some(attributes, function (attribute) { + return matcher(keyword, model.get(attribute)); + }); }); - return Collection; - }; + this.trigger('searchResults', results); - }, {}], - 6: [function (require, module, exports) { - 'use strict'; + // Instantiate new Collection + var collection = new Collection(results, { reinit: true }); - window.GatherContent = window.GatherContent || {}; + collection.searching = { + keyword: keyword, + attributes: attributes + }; - (function (window, document, $, gc, undefined) { - 'use strict'; + collection.getSearchQuery = function () { + return this.searching; + }; - gc.general = gc.general || {}; - var app = gc.general; + // Cache the recently searched metadata + this._searchResults = collection; - // Initiate base objects. - require('./initiate-objects.js')(app); + this.trigger('search', collection); - /* - * Posts - */ + // For use of returning un-async + return collection; + }, - app.models.post = require('./models/post.js')(gc); - app.collections.posts = require('./collections/posts.js')(app); - app.views.postRow = require('./views/post-row.js')(app, gc); - app.views.statusSelect2 = require('./views/status-select2.js')(app); - app.views.postRows = require('./views/post-rows.js')(app, gc, $); + //@ Default Matcher - may be overwritten + matcher: function matcher(needle, haystack) { + if (!needle || !haystack) { + return; + } + needle = needle.toString().toLowerCase(); + haystack = haystack.toString().toLowerCase(); + return haystack.indexOf(needle) >= 0; + }, + + //@ Get recent search value + getSearchValue: function getSearchValue() { + return this.getSearchQuery().keyword; + }, + + //@ Get recent search query + getSearchQuery: function getSearchQuery() { + return this._searchResults && this._searchResults.getSearchQuery() || {}; + }, + + //@ Get recent search results + getSearchResults: function getSearchResults() { + return this._searchResults; + }, + + current: function current() { + return this._searchResults || this; + } - /* - * Nav Items - */ - app.models.navItem = require('./models/modal-nav-item.js')(app); - app.collections.navItems = require('./collections/modal-nav-items.js')(app); + }); - app.views.tableBase = require('./views/table-base.js')(app, $, gc); - app.views.modalPostRow = require('./views/modal-post-row.js')(app, gc); - app.views.modal = require('./views/modal.js')(app, gc, $); + return Collection; +}; - app.monkeyPatchQuickEdit = function (cb) { - // we create a copy of the WP inline edit post function - var edit = window.inlineEditPost.edit; +},{}],6:[function(require,module,exports){ +'use strict'; - // and then we overwrite the function with our own code - window.inlineEditPost.edit = function () { - // "call" the original WP edit function - // we don't want to leave WordPress hanging - edit.apply(this, arguments); +window.GatherContent = window.GatherContent || {}; - // now we take care of our business - cb.apply(this, arguments); - }; - }; +(function (window, document, $, gc, undefined) { + 'use strict'; - app.triggerModal = function (evt) { - evt.preventDefault(); + gc.general = gc.general || {}; + var app = gc.general; - var posts = app.getChecked(); - if (!posts.length) { - return; - } + // Initiate base objects. + require('./initiate-objects.js')(app); - if (app.modalView === undefined) { - app.modalView = new app.views.modal({ - collection: app.generalView.collection - }); - app.modalView.checked(posts); - app.generalView.listenTo(app.modalView, 'updateModels', app.generalView.updatePosts); - } - }; + /* + * Posts + */ - app.getChecked = function () { - return $('tbody th.check-column input[type="checkbox"]:checked').map(function () { - return parseInt($(this).val(), 10); - }).get(); - }; + app.models.post = require('./models/post.js')(gc); + app.collections.posts = require('./collections/posts.js')(app); + app.views.postRow = require('./views/post-row.js')(app, gc); + app.views.statusSelect2 = require('./views/status-select2.js')(app); + app.views.postRows = require('./views/post-rows.js')(app, gc, $); - app.init = function () { - $(document.body).addClass('gathercontent-admin-select2').on('click', '#gc-sync-modal', app.triggerModal); + /* + * Nav Items + */ + app.models.navItem = require('./models/modal-nav-item.js')(app); + app.collections.navItems = require('./collections/modal-nav-items.js')(app); - $(document).ajaxSend(function (evt, request, settings) { - if (settings.data && -1 !== settings.data.indexOf('&action=inline-save')) { - app.generalView.trigger('quickEditSend', request, settings); - } - }); + app.views.tableBase = require('./views/table-base.js')(app, $, gc); + app.views.modalPostRow = require('./views/modal-post-row.js')(app, gc); + app.views.modal = require('./views/modal.js')(app, gc, $); - app.generalView = new app.views.postRows({ - collection: new app.collections.posts(gc._posts) - }); + app.monkeyPatchQuickEdit = function (cb) { + // we create a copy of the WP inline edit post function + var edit = window.inlineEditPost.edit; - app.monkeyPatchQuickEdit(function () { - app.generalView.trigger('quickEdit', arguments, this); - }); - }; + // and then we overwrite the function with our own code + window.inlineEditPost.edit = function () { + // "call" the original WP edit function + // we don't want to leave WordPress hanging + edit.apply(this, arguments); - $(app.init); - })(window, document, jQuery, window.GatherContent); - - }, { - "./collections/modal-nav-items.js": 3, - "./collections/posts.js": 4, - "./initiate-objects.js": 7, - "./models/modal-nav-item.js": 10, - "./models/post.js": 12, - "./views/modal-post-row.js": 18, - "./views/modal.js": 19, - "./views/post-row.js": 20, - "./views/post-rows.js": 21, - "./views/status-select2.js": 22, - "./views/table-base.js": 23 - }], - 7: [function (require, module, exports) { - 'use strict'; - - module.exports = function (app) { - app.models = {base: require('./models/base.js')}; - app.collections = {base: require('./collections/base.js')}; - app.views = {base: require('./views/base.js')}; + // now we take care of our business + cb.apply(this, arguments); }; + }; - }, {"./collections/base.js": 1, "./models/base.js": 9, "./views/base.js": 13}], - 8: [function (require, module, exports) { - 'use strict'; - - module.exports = function (app, defaults) { - defaults = jQuery.extend({}, { - action: 'cwby_sync_items', - data: '', - percent: 0, - nonce: '', - id: '', - stopSync: true, - flush_cache: false - }, defaults); - - return app.models.base.extend({ - defaults: defaults, - - initialize: function initialize() { - this.listenTo(this, 'send', this.send); - }, - - reset: function reset() { - this.clear().set(this.defaults); - return this; - }, - - send: function send(formData, cb, percent, failcb) { - if (percent) { - this.set('percent', percent); - } + app.triggerModal = function (evt) { + evt.preventDefault(); - jQuery.post(window.ajaxurl, { - action: this.get('action'), - percent: this.get('percent'), - nonce: this.get('nonce'), - id: this.get('id'), - data: formData, - flush_cache: this.get('flush_cache') - }, (function (response) { - this.trigger('response', response, formData); - - if (response.success) { - return cb(response); - } - - if (failcb) { - return failcb(response); - } - }).bind(this)); - - return this; - } + var posts = app.getChecked(); + if (!posts.length) { + return; + } + if (app.modalView === undefined) { + app.modalView = new app.views.modal({ + collection: app.generalView.collection }); - }; + app.modalView.checked(posts); + app.generalView.listenTo(app.modalView, 'updateModels', app.generalView.updatePosts); + } + }; + + app.getChecked = function () { + return $('tbody th.check-column input[type="checkbox"]:checked').map(function () { + return parseInt($(this).val(), 10); + }).get(); + }; - }, {}], - 9: [function (require, module, exports) { - "use strict"; + app.init = function () { + $(document.body).addClass('gathercontent-admin-select2').on('click', '#gc-sync-modal', app.triggerModal); - module.exports = Backbone.Model.extend({ - sync: function sync() { - return false; + $(document).ajaxSend(function (evt, request, settings) { + if (settings.data && -1 !== settings.data.indexOf('&action=inline-save')) { + app.generalView.trigger('quickEditSend', request, settings); } }); - }, {}], - 10: [function (require, module, exports) { - 'use strict'; - - module.exports = function (app) { - return app.models.base.extend({ - defaults: { - label: '', - id: '', - hidden: true, - rendered: false - } - }); - }; + app.generalView = new app.views.postRows({ + collection: new app.collections.posts(gc._posts) + }); + + app.monkeyPatchQuickEdit(function () { + app.generalView.trigger('quickEdit', arguments, this); + }); + }; + + $(app.init); +})(window, document, jQuery, window.GatherContent); + +},{"./collections/modal-nav-items.js":3,"./collections/posts.js":4,"./initiate-objects.js":7,"./models/modal-nav-item.js":10,"./models/post.js":12,"./views/modal-post-row.js":18,"./views/modal.js":19,"./views/post-row.js":20,"./views/post-rows.js":21,"./views/status-select2.js":22,"./views/table-base.js":23}],7:[function(require,module,exports){ +'use strict'; - }, {}], - 11: [function (require, module, exports) { - 'use strict'; +module.exports = function (app) { + app.models = { base: require('./models/base.js') }; + app.collections = { base: require('./collections/base.js') }; + app.views = { base: require('./views/base.js') }; +}; - module.exports = function (model) { +},{"./collections/base.js":1,"./models/base.js":9,"./views/base.js":13}],8:[function(require,module,exports){ +'use strict'; + +module.exports = function (app, defaults) { + defaults = jQuery.extend({}, { + action: 'cwby_sync_items', + data: '', + percent: 0, + nonce: '', + id: '', + stopSync: true, + flush_cache: false + }, defaults); + + return app.models.base.extend({ + defaults: defaults, + + initialize: function initialize() { + this.listenTo(this, 'send', this.send); + }, + + reset: function reset() { + this.clear().set(this.defaults); + return this; + }, + + send: function send(formData, cb, percent, failcb) { + if (percent) { + this.set('percent', percent); + } - model.prototype._get = function (value, attribute) { - if (this['_get_' + attribute]) { - value = this['_get_' + attribute](value); + jQuery.post(window.ajaxurl, { + action: this.get('action'), + percent: this.get('percent'), + nonce: this.get('nonce'), + id: this.get('id'), + data: formData, + flush_cache: this.get('flush_cache') + }, (function (response) { + this.trigger('response', response, formData); + + if (response.success) { + return cb(response); } - return value; - }; - model.prototype.get = function (attribute) { - return this._get(Backbone.Model.prototype.get.call(this, attribute), attribute); - }; + if (failcb) { + return failcb(response); + } + }).bind(this)); - // hijack the toJSON method and overwrite the data that is sent back to the view. - model.prototype.toJSON = function () { - return _.mapObject(Backbone.Model.prototype.toJSON.call(this), _.bind(this._get, this)); - }; + return this; + } - return model; - }; + }); +}; - }, {}], - 12: [function (require, module, exports) { - 'use strict'; - - module.exports = function (gc) { - return require('./../models/modify-json.js')(Backbone.Model.extend({ - defaults: { - id: 0, - item: 0, - itemName: '', - updated_at: '', - current: true, - editLink: '', - mapping: 0, - mappingName: '', - mappingLink: '', - mappingStatus: '', - mappingStatusId: '', - status: {}, - checked: false, - disabled: false, - canPull: false, - canPush: false, - statuses: [], - statusesChecked: false, - ptLabel: false - }, - - searchAttributes: ['itemName', 'mappingName', 'post_title'], - - url: function url() { - var url = window.ajaxurl + '?action=cwby_fetch_js_post&id=' + this.get('id'); - if (this.get('uncached')) { - this.set('uncached', false); - url += '&flush_cache=force'; - } - return url; - }, +},{}],9:[function(require,module,exports){ +"use strict"; - _get_disabled: function _get_disabled(value) { - return !this.get('mapping'); - }, +module.exports = Backbone.Model.extend({ + sync: function sync() { + return false; + } +}); + +},{}],10:[function(require,module,exports){ +'use strict'; + +module.exports = function (app) { + return app.models.base.extend({ + defaults: { + label: '', + id: '', + hidden: true, + rendered: false + } + }); +}; - _get_canPull: function _get_canPull(value) { - return this.get('item') > 0 && this.get('mapping') > 0; - }, +},{}],11:[function(require,module,exports){ +'use strict'; - _get_canPush: function _get_canPush(value) { - return this.get('mapping') > 0; - }, +module.exports = function (model) { - _get_mappingLink: function _get_mappingLink(value) { - if ('failed' === Backbone.Model.prototype.get.call(this, 'mappingStatus')) { - value += '&sync-items=1'; - } - return value; - }, + model.prototype._get = function (value, attribute) { + if (this['_get_' + attribute]) { + value = this['_get_' + attribute](value); + } + return value; + }; + + model.prototype.get = function (attribute) { + return this._get(Backbone.Model.prototype.get.call(this, attribute), attribute); + }; + + // hijack the toJSON method and overwrite the data that is sent back to the view. + model.prototype.toJSON = function () { + return _.mapObject(Backbone.Model.prototype.toJSON.call(this), _.bind(this._get, this)); + }; + + return model; +}; + +},{}],12:[function(require,module,exports){ +'use strict'; + +module.exports = function (gc) { + return require('./../models/modify-json.js')(Backbone.Model.extend({ + defaults: { + id: 0, + item: 0, + itemName: '', + updated_at: '', + current: true, + editLink: '', + mapping: 0, + mappingName: '', + mappingLink: '', + mappingStatus: '', + mappingStatusId: '', + status: {}, + checked: false, + disabled: false, + canPull: false, + canPush: false, + statuses: [], + statusesChecked: false, + ptLabel: false + }, + + searchAttributes: ['itemName', 'mappingName', 'post_title'], + + url: function url() { + var url = window.ajaxurl + '?action=cwby_fetch_js_post&id=' + this.get('id'); + if (this.get('uncached')) { + this.set('uncached', false); + url += '&flush_cache=force'; + } + return url; + }, - _get_mappingStatus: function _get_mappingStatus(value) { - return gc._statuses[value] ? gc._statuses[value] : ''; - }, + _get_disabled: function _get_disabled(value) { + return !this.get('mapping'); + }, - _get_mappingStatusId: function _get_mappingStatusId(value) { - return Backbone.Model.prototype.get.call(this, 'mappingStatus'); - } - })); - }; + _get_canPull: function _get_canPull(value) { + return this.get('item') > 0 && this.get('mapping') > 0; + }, - }, {"./../models/modify-json.js": 11}], - 13: [function (require, module, exports) { - 'use strict'; + _get_canPush: function _get_canPush(value) { + return this.get('mapping') > 0; + }, - module.exports = Backbone.View.extend({ - toggleExpanded: function toggleExpanded(evt) { - this.model.set('expanded', !this.model.get('expanded')); - }, + _get_mappingLink: function _get_mappingLink(value) { + if ('failed' === Backbone.Model.prototype.get.call(this, 'mappingStatus')) { + value += '&sync-items=1'; + } + return value; + }, - getRenderedModels: function getRenderedModels(View, models) { - models = models || this.collection; - var addedElements = document.createDocumentFragment(); + _get_mappingStatus: function _get_mappingStatus(value) { + return gc._statuses[value] ? gc._statuses[value] : ''; + }, - models.each(function (model) { - var view = new View({model: model}).render(); - addedElements.appendChild(view.el); - }); + _get_mappingStatusId: function _get_mappingStatusId(value) { + return Backbone.Model.prototype.get.call(this, 'mappingStatus'); + } + })); +}; - return addedElements; - }, +},{"./../models/modify-json.js":11}],13:[function(require,module,exports){ +'use strict'; - render: function render() { - this.$el.html(this.template(this.model.toJSON())); - return this; - }, +module.exports = Backbone.View.extend({ + toggleExpanded: function toggleExpanded(evt) { + this.model.set('expanded', !this.model.get('expanded')); + }, - close: function close() { - this.remove(); - this.unbind(); - if (this.onClose) { - this.onClose(); - } - } + getRenderedModels: function getRenderedModels(View, models) { + models = models || this.collection; + var addedElements = document.createDocumentFragment(); + + models.each(function (model) { + var view = new View({ model: model }).render(); + addedElements.appendChild(view.el); }); - }, {}], - 14: [function (require, module, exports) { - 'use strict'; - - module.exports = function (app) { - return app.views.base.extend({ - template: wp.template('gc-item'), - tagName: 'tr', - className: 'gc-item gc-enabled', - id: function id() { - return this.model.get('id'); - }, - - events: { - 'change .gc-check-column input': 'toggleCheck', - 'click .gc-reveal-items': 'toggleExpanded', - 'click .gc-status-column': 'toggleCheckAndRender' - }, - - initialize: function initialize() { - this.listenTo(this.model, 'change:checked', this.render); - }, - - toggleCheck: function toggleCheck() { - this.model.set('checked', !this.model.get('checked')); - }, - - toggleCheckAndRender: function toggleCheckAndRender(evt) { - this.toggleCheck(); - this.render(); - } - }); - }; + return addedElements; + }, - }, {}], - 15: [function (require, module, exports) { - 'use strict'; - - module.exports = function (app, $, gc) { - var thisView; - var base = require('./../views/metabox-base.js')(app, $, gc); - return base.extend({ - template: wp.template('gc-mapping-metabox'), - stepArgs: false, - events: { - 'click #gc-map': 'step', - 'change #select-gc-next-step': 'setProperty', - 'click #gc-map-cancel': 'cancel' - }, - - initialize: function initialize() { - thisView = this; - this.listenTo(this.model, 'change:waiting', this.toggleWaitingRender); - this.listenTo(this.model, 'change', this.maybeEnableAndRender); - this.listenTo(this.model, 'change:step', this.changeStep); - this.listenTo(this, 'cancel', this.resetAndRender); - this.render(); - this.$el.removeClass('no-js').addClass('gc-mapping-metabox'); - }, - - changeStep: function changeStep(model) { - if ('accounts' === model.changed.step) { - this.$el.addClass('gc-mapping-started'); - } + render: function render() { + this.$el.html(this.template(this.model.toJSON())); + return this; + }, - if (model.changed.step) { - this.stepArgs = this['step_' + model.changed.step](); - } - }, + close: function close() { + this.remove(); + this.unbind(); + if (this.onClose) { + this.onClose(); + } + } +}); + +},{}],14:[function(require,module,exports){ +'use strict'; + +module.exports = function (app) { + return app.views.base.extend({ + template: wp.template('gc-item'), + tagName: 'tr', + className: 'gc-item gc-enabled', + id: function id() { + return this.model.get('id'); + }, + + events: { + 'change .gc-check-column input': 'toggleCheck', + 'click .gc-reveal-items': 'toggleExpanded', + 'click .gc-status-column': 'toggleCheckAndRender' + }, + + initialize: function initialize() { + this.listenTo(this.model, 'change:checked', this.render); + }, + + toggleCheck: function toggleCheck() { + this.model.set('checked', !this.model.get('checked')); + }, + + toggleCheckAndRender: function toggleCheckAndRender(evt) { + this.toggleCheck(); + this.render(); + } + }); +}; + +},{}],15:[function(require,module,exports){ +'use strict'; + +module.exports = function (app, $, gc) { + var thisView; + var base = require('./../views/metabox-base.js')(app, $, gc); + return base.extend({ + template: wp.template('gc-mapping-metabox'), + stepArgs: false, + events: { + 'click #gc-map': 'step', + 'change #select-gc-next-step': 'setProperty', + 'click #gc-map-cancel': 'cancel' + }, + + initialize: function initialize() { + thisView = this; + this.listenTo(this.model, 'change:waiting', this.toggleWaitingRender); + this.listenTo(this.model, 'change', this.maybeEnableAndRender); + this.listenTo(this.model, 'change:step', this.changeStep); + this.listenTo(this, 'cancel', this.resetAndRender); + this.render(); + this.$el.removeClass('no-js').addClass('gc-mapping-metabox'); + }, + + changeStep: function changeStep(model) { + if ('accounts' === model.changed.step) { + this.$el.addClass('gc-mapping-started'); + } - setProperty: function setProperty(evt) { - var value = $(evt.target).val(); + if (model.changed.step) { + this.stepArgs = this['step_' + model.changed.step](); + } + }, - this.model.set(this.stepArgs.property, value); + setProperty: function setProperty(evt) { + var value = $(evt.target).val(); - if ('account' === this.stepArgs.property || 'project' === this.stepArgs.property) { - // Autoclick "next" for user. - this.step(); - } - }, + this.model.set(this.stepArgs.property, value); - setMapping: function setMapping() { - var success = function success(data) { - this.model.set('waiting', false); + if ('account' === this.stepArgs.property || 'project' === this.stepArgs.property) { + // Autoclick "next" for user. + this.step(); + } + }, + + setMapping: function setMapping() { + var success = function success(data) { + this.model.set('waiting', false); - // Goodbye - this.trigger('complete', this.model, data); - }; + // Goodbye + this.trigger('complete', this.model, data); + }; - this.ajax({ + this.ajax({ action: 'cwby_save_mapping_id' - }, success, this.failMsg); - }, + }, success, this.failMsg); + }, - maybeEnableAndRender: function maybeEnableAndRender(model) { - if (model.changed.account || model.changed.project || model.changed.mapping) { - this.model.set('btnDisabled', false); - this.render(); - } - }, + maybeEnableAndRender: function maybeEnableAndRender(model) { + if (model.changed.account || model.changed.project || model.changed.mapping) { + this.model.set('btnDisabled', false); + this.render(); + } + }, - toggleWaitingRender: function toggleWaitingRender(model) { - if (model.changed.waiting) { - this.model.set('btnDisabled', true); - } - this.render(); - }, + toggleWaitingRender: function toggleWaitingRender(model) { + if (model.changed.waiting) { + this.model.set('btnDisabled', true); + } + this.render(); + }, - step: function step() { - this.model.set('waiting', true); + step: function step() { + this.model.set('waiting', true); - if ('mapping' === this.stepArgs.property) { - return this.setMapping(); - } + if ('mapping' === this.stepArgs.property) { + return this.setMapping(); + } - this.setStep(); + this.setStep(); - var properties = this.model.get(this.stepArgs.properties); + var properties = this.model.get(this.stepArgs.properties); - if (properties && properties.length) { + if (properties && properties.length) { - this.successHandler(properties); - } else { + this.successHandler(properties); + } else { - this.ajax({ + this.ajax({ action: 'cwby_wp_filter_mappings', - property: this.stepArgs.property - }, this.successHandler, this.failMsg); - } + property: this.stepArgs.property + }, this.successHandler, this.failMsg); + } - return this; - }, + return this; + }, - failMsg: function failMsg(msg) { - msg = 'string' === typeof msg ? msg : gc._errors.unknown; - window.alert(msg); - thisView.model.set('waiting', false); - }, + failMsg: function failMsg(msg) { + msg = 'string' === typeof msg ? msg : gc._errors.unknown; + window.alert(msg); + thisView.model.set('waiting', false); + }, - successHandler: function successHandler(objects) { - this.model.set(this.stepArgs.properties, objects); - if (objects.length < 2) { - this.model.set('btnDisabled', false); - } - this.model.set('waiting', false); - }, + successHandler: function successHandler(objects) { + this.model.set(this.stepArgs.properties, objects); + if (objects.length < 2) { + this.model.set('btnDisabled', false); + } + this.model.set('waiting', false); + }, - setStep: function setStep() { - if (!this.model.get('step')) { - return this.model.set('step', 'accounts'); - } + setStep: function setStep() { + if (!this.model.get('step')) { + return this.model.set('step', 'accounts'); + } - if ('accounts' === this.model.get('step')) { - return this.model.set('step', 'projects'); - } + if ('accounts' === this.model.get('step')) { + return this.model.set('step', 'projects'); + } - if ('projects' === this.model.get('step')) { - return this.model.set('step', 'mappings'); - } - }, - - step_accounts: function step_accounts() { - return { - property: 'account', - properties: 'accounts' - }; - }, - - step_projects: function step_projects() { - return { - property: 'project', - properties: 'projects' - }; - }, - - step_mappings: function step_mappings() { - return { - property: 'mapping', - properties: 'mappings' - }; - }, - - cancel: function cancel(evt) { - this.trigger('cancel', evt); - }, - - resetModel: function resetModel() { - this.stepArgs = false; - this.model.set({ - 'step': false, - 'account': 0, - 'project': 0, - 'mapping': 0 - }); - return this.model; - }, - - resetAndRender: function resetAndRender() { - this.resetModel(); - this.render(); - }, - - render: function render() { - var json = this.model.toJSON(); - if (this.stepArgs) { - json.label = gc._step_labels[json.step]; - json.property = this.stepArgs.property; - } - this.$el.html(this.template(json)); - return this; - } + if ('projects' === this.model.get('step')) { + return this.model.set('step', 'mappings'); + } + }, - }); - }; + step_accounts: function step_accounts() { + return { + property: 'account', + properties: 'accounts' + }; + }, - }, {"./../views/metabox-base.js": 16}], - 16: [function (require, module, exports) { - 'use strict'; - - module.exports = function (app, $, gc) { - return app.views.base.extend({ - el: '#gc-related-data', - - ajax: function ajax(args, successcb, failcb) { - var view = this; - var success = function success(response) { - if (response.success) { - successcb.call(view, response.data); - } else if (failcb) { - failcb.call(view, response.data); - } - }; - - var promise = $.post(window.ajaxurl, $.extend({ - action: '', - post: this.model.toJSON(), - nonce: gc.$id('gc-edit-nonce').val(), - flush_cache: gc.queryargs.flush_cache ? 1 : 0 - }, args), success); - - if (failcb) { - promise.fail(function () { - failcb.call(view); - }); - } + step_projects: function step_projects() { + return { + property: 'project', + properties: 'projects' + }; + }, - return promise; - } + step_mappings: function step_mappings() { + return { + property: 'mapping', + properties: 'mappings' + }; + }, + + cancel: function cancel(evt) { + this.trigger('cancel', evt); + }, + + resetModel: function resetModel() { + this.stepArgs = false; + this.model.set({ + 'step': false, + 'account': 0, + 'project': 0, + 'mapping': 0 }); - }; + return this.model; + }, + + resetAndRender: function resetAndRender() { + this.resetModel(); + this.render(); + }, + + render: function render() { + var json = this.model.toJSON(); + if (this.stepArgs) { + json.label = gc._step_labels[json.step]; + json.property = this.stepArgs.property; + } + this.$el.html(this.template(json)); + return this; + } - }, {}], - 17: [function (require, module, exports) { - 'use strict'; + }); +}; - module.exports = function (app, $, gc) { - var base = require('./../views/mapping-metabox.js')(app, $, gc); +},{"./../views/metabox-base.js":16}],16:[function(require,module,exports){ +'use strict'; - var model = new Backbone.Model({ - id: true, - cancelBtn: true, - accounts: [], - projects: [], - mappings: [] - }); +module.exports = function (app, $, gc) { + return app.views.base.extend({ + el: '#gc-related-data', - var View = base.extend({ - close: function close() { - model = this.resetModel(); - base.prototype.close.call(this); + ajax: function ajax(args, successcb, failcb) { + var view = this; + var success = function success(response) { + if (response.success) { + successcb.call(view, response.data); + } else if (failcb) { + failcb.call(view, response.data); } - }); + }; - return function (postIds) { - model.set('ids', postIds); + var promise = $.post(window.ajaxurl, $.extend({ + action: '', + post: this.model.toJSON(), + nonce: gc.$id('gc-edit-nonce').val(), + flush_cache: gc.queryargs.flush_cache ? 1 : 0 + }, args), success); - var view = new View({ - model: model + if (failcb) { + promise.fail(function () { + failcb.call(view); }); + } - view.$el.addClass('postbox'); + return promise; + } + }); +}; + +},{}],17:[function(require,module,exports){ +'use strict'; + +module.exports = function (app, $, gc) { + var base = require('./../views/mapping-metabox.js')(app, $, gc); + + var model = new Backbone.Model({ + id: true, + cancelBtn: true, + accounts: [], + projects: [], + mappings: [] + }); + + var View = base.extend({ + close: function close() { + model = this.resetModel(); + base.prototype.close.call(this); + } + }); - return view.step(); - }; - }; + return function (postIds) { + model.set('ids', postIds); - }, {"./../views/mapping-metabox.js": 15}], - 18: [function (require, module, exports) { - 'use strict'; - - module.exports = function (app, gc) { - var item = require('./../views/item.js')(app); - return item.extend({ - template: wp.template('gc-item'), - - id: function id() { - return 'gc-modal-post-' + this.model.get('id'); - }, - - className: function className() { - return 'gc-item ' + (this.model.get('disabled') ? 'gc-disabled' : 'gc-enabled'); - }, - - events: { - 'change .gc-check-column input': 'toggleCheck', - 'click .gc-status-column': 'toggleCheckAndRender' - }, - - initialize: function initialize() { - this.listenTo(this.model, 'change:post_title', this.renderTitle); - this.listenTo(this.model, 'change:mappingStatus', this.render); - this.listenTo(this.model, 'render', this.render); - }, - - renderTitle: function renderTitle() { - var title = this.model.get('post_title'); - var id = this.model.get('id'); - gc.$id('post-' + id).find('.column-title .row-title').text(title); - gc.$id('edit-' + id).find('[name="post_title"]').text(title); - gc.$id('inline_' + id).find('.post_title').text(title); - } + var view = new View({ + model: model + }); - }); - }; + view.$el.addClass('postbox'); + + return view.step(); + }; +}; + +},{"./../views/mapping-metabox.js":15}],18:[function(require,module,exports){ +'use strict'; + +module.exports = function (app, gc) { + var item = require('./../views/item.js')(app); + return item.extend({ + template: wp.template('gc-item'), + + id: function id() { + return 'gc-modal-post-' + this.model.get('id'); + }, + + className: function className() { + return 'gc-item ' + (this.model.get('disabled') ? 'gc-disabled' : 'gc-enabled'); + }, + + events: { + 'change .gc-check-column input': 'toggleCheck', + 'click .gc-status-column': 'toggleCheckAndRender' + }, + + initialize: function initialize() { + this.listenTo(this.model, 'change:post_title', this.renderTitle); + this.listenTo(this.model, 'change:mappingStatus', this.render); + this.listenTo(this.model, 'render', this.render); + }, + + renderTitle: function renderTitle() { + var title = this.model.get('post_title'); + var id = this.model.get('id'); + gc.$id('post-' + id).find('.column-title .row-title').text(title); + gc.$id('edit-' + id).find('[name="post_title"]').text(title); + gc.$id('inline_' + id).find('.post_title').text(title); + } - }, {"./../views/item.js": 14}], - 19: [function (require, module, exports) { - 'use strict'; + }); +}; + +},{"./../views/item.js":14}],19:[function(require,module,exports){ +'use strict'; + +module.exports = function (app, gc, $) { + app.modalView = undefined; + + var ESCAPE = 27; + var thisView; + /** + * Taken from https://github.com/aut0poietic/wp-admin-modal-example + */ + return app.views.tableBase.extend({ + id: 'gc-bb-modal-dialog', + template: wp.template('gc-modal-window'), + selected: [], + navItems: null, + btns: {}, + currID: 'select-items', + currNav: false, + metaboxView: null, + modelView: app.views.modalPostRow, + $search: gc.$id('gc-items-search'), + + events: { + 'click .gc-bb-modal-close': 'closeModal', + 'click #btn-cancel': 'closeModal', + 'click .gc-bb-modal-backdrop': 'closeModal', + 'click .gc-bb-modal-nav-tabs a': 'clickSelectTab', + 'change .gc-field-th.gc-check-column input': 'checkAll', + 'click #gc-btn-pull': 'startPull', + 'click #gc-btn-push': 'startPush', + 'click .gc-cloak': 'maybeResetMetaboxView', + 'click #gc-btn-assign-mapping': 'startAssignment', + 'click .gc-field-th.sortable': 'sortRowsByColumn' + }, + + /** + * Instantiates the Template object and triggers load. + */ + initialize: function initialize() { + thisView = this; + + if (!this.$search.length) { + $(document.body).append(''); + this.$search = gc.$id('gc-items-search'); + } - module.exports = function (app, gc, $) { - app.modalView = undefined; + app.views.tableBase.prototype.initialize.call(this); - var ESCAPE = 27; - var thisView; - /** - * Taken from https://github.com/aut0poietic/wp-admin-modal-example - */ - return app.views.tableBase.extend({ - id: 'gc-bb-modal-dialog', - template: wp.template('gc-modal-window'), - selected: [], - navItems: null, - btns: {}, - currID: 'select-items', - currNav: false, - metaboxView: null, - modelView: app.views.modalPostRow, - $search: gc.$id('gc-items-search'), - - events: { - 'click .gc-bb-modal-close': 'closeModal', - 'click #btn-cancel': 'closeModal', - 'click .gc-bb-modal-backdrop': 'closeModal', - 'click .gc-bb-modal-nav-tabs a': 'clickSelectTab', - 'change .gc-field-th.gc-check-column input': 'checkAll', - 'click #gc-btn-pull': 'startPull', - 'click #gc-btn-push': 'startPush', - 'click .gc-cloak': 'maybeResetMetaboxView', - 'click #gc-btn-assign-mapping': 'startAssignment', - 'click .gc-field-th.sortable': 'sortRowsByColumn' - }, - - /** - * Instantiates the Template object and triggers load. - */ - initialize: function initialize() { - thisView = this; - - if (!this.$search.length) { - $(document.body).append(''); - this.$search = gc.$id('gc-items-search'); - } + _.bindAll(this, 'render', 'preserveFocus', 'maybeClose', 'closeModal'); - app.views.tableBase.prototype.initialize.call(this); + if (gc._nav_items) { + this.navItems = new app.collections.navItems(gc._nav_items); + this.currNav = this.navItems.getActive(); + this.listenTo(this.navItems, 'render', this.render); + } - _.bindAll(this, 'render', 'preserveFocus', 'maybeClose', 'closeModal'); + this.btns = new app.collections.base(gc._modal_btns); - if (gc._nav_items) { - this.navItems = new app.collections.navItems(gc._nav_items); - this.currNav = this.navItems.getActive(); - this.listenTo(this.navItems, 'render', this.render); - } + this.listenTo(this.collection, 'updateItems', this.maybeRender); + this.listenTo(this.collection, 'change:checked', this.checkEnableButton); + this.listenTo(this.collection, 'search', this.render); - this.btns = new app.collections.base(gc._modal_btns); + this.initMetaboxView = require('./../views/modal-assign-mapping.js')(app, $, gc); + }, - this.listenTo(this.collection, 'updateItems', this.maybeRender); - this.listenTo(this.collection, 'change:checked', this.checkEnableButton); - this.listenTo(this.collection, 'search', this.render); + checked: function checked(selected) { + this.selected = selected; + if (!selected.length) { + return; + } - this.initMetaboxView = require('./../views/modal-assign-mapping.js')(app, $, gc); - }, + if (selected.length === this.collection.length) { + return this.collection.trigger('checkAll', true); + } - checked: function checked(selected) { - this.selected = selected; - if (!selected.length) { - return; - } + this.collection.trigger('checkSome', function (model) { + return -1 !== _.indexOf(thisView.selected, model.get('id')) && !model.get('disabled'); + }); - if (selected.length === this.collection.length) { - return this.collection.trigger('checkAll', true); - } + return this; + }, - this.collection.trigger('checkSome', function (model) { - return -1 !== _.indexOf(thisView.selected, model.get('id')) && !model.get('disabled'); - }); + setupAjax: function setupAjax() { + var Ajax = require('./../models/ajax.js')(app, { + action: 'cwby_pull_items', + nonce: gc._edit_nonce, + flush_cache: gc.queryargs.flush_cache ? 1 : 0 + }); - return this; - }, + this.ajax = new Ajax(); + }, + + /** + * Assembles the UI from loaded templates. + * @internal Obviously, if the templates fail to load, our modal never launches. + */ + render: function render() { + var collection = this.collection.current(); + + // Build the base window and backdrop, attaching them to the $el. + // Setting the tab index allows us to capture focus and redirect it in Application.preserveFocus + this.$el.removeClass('gc-set-mapping').attr('tabindex', '0').html(this.template({ + btns: this.btns.toJSON(), + navItems: this.navItems ? this.navItems.toJSON() : [], + currID: this.currNav ? this.currNav.get('id') : 'select-items', + checked: collection.allChecked, + sortKey: collection.sortKey, + sortDirection: collection.sortDirection + })).append('
 
'); + + app.views.tableBase.prototype.render.call(this); + + $(document) + // Handle any attempt to move focus out of the modal. + .on('focusin', this.preserveFocus) + // Close modal on escape key. + .on('keyup', this.maybeClose); + + // set overflow to "hidden" on the body so that it ignores any scroll events + $(document.body).addClass('gc-modal-open'); + + // Add modal before the search input. + this.$search.before(this.$el); + + // Position search input. (After the above line, where we render the modal) + this.$search.css(jQuery('#gc-tablenav').offset()); + + // If we're not focused on the search input... + if (!this.isSearch(document.activeElement)) { + + // Then set focus on the modal to prevent accidental actions in the underlying page. + this.$el.focus(); + } - setupAjax: function setupAjax() { - var Ajax = require('./../models/ajax.js')(app, { - action: 'cwby_pull_items', - nonce: gc._edit_nonce, - flush_cache: gc.queryargs.flush_cache ? 1 : 0 - }); + return this; + }, + + /** + * Ensures that keyboard focus remains within the Modal dialog or search input. + * @param evt {object} A jQuery-normalized event object. + */ + preserveFocus: function preserveFocus(evt) { + var isOk = this.$el[0] === evt.target || this.$el.has(evt.target).length || this.isSearch(evt.target); + if (!isOk) { + this.$el.focus(); + } + }, + + /** + * Closes modal if escape key is hit. + * @param evt {object} A jQuery-normalized event object. + */ + maybeClose: function maybeClose(evt) { + if (ESCAPE === evt.keyCode && !this.isSearch(evt.target)) { + this.closeModal(evt); + } + }, + + isSearch: function isSearch(el) { + return this.$search[0] === el || this.$search.has(el).length; + }, + + /** + * Closes the modal and cleans up after the instance. + * @param evt {object} A jQuery-normalized event object. + */ + closeModal: function closeModal(evt) { + evt.preventDefault(); + this.resetMetaboxView(); + this.undelegateEvents(); + $(document).off('focusin'); + $(document).off('keyup', this.maybeClose); + $(document.body).removeClass('gc-modal-open'); + this.remove(); + + gc.$id('bulk-edit').find('button.cancel').trigger('click'); + app.modalView = undefined; + }, - this.ajax = new Ajax(); - }, - - /** - * Assembles the UI from loaded templates. - * @internal Obviously, if the templates fail to load, our modal never launches. - */ - render: function render() { - var collection = this.collection.current(); - - // Build the base window and backdrop, attaching them to the $el. - // Setting the tab index allows us to capture focus and redirect it in Application.preserveFocus - this.$el.removeClass('gc-set-mapping').attr('tabindex', '0').html(this.template({ - btns: this.btns.toJSON(), - navItems: this.navItems ? this.navItems.toJSON() : [], - currID: this.currNav ? this.currNav.get('id') : 'select-items', - checked: collection.allChecked, - sortKey: collection.sortKey, - sortDirection: collection.sortDirection - })).append('
 
'); - - app.views.tableBase.prototype.render.call(this); - - $(document) - // Handle any attempt to move focus out of the modal. - .on('focusin', this.preserveFocus) - // Close modal on escape key. - .on('keyup', this.maybeClose); - - // set overflow to "hidden" on the body so that it ignores any scroll events - $(document.body).addClass('gc-modal-open'); - - // Add modal before the search input. - this.$search.before(this.$el); - - // Position search input. (After the above line, where we render the modal) - this.$search.css(jQuery('#gc-tablenav').offset()); - - // If we're not focused on the search input... - if (!this.isSearch(document.activeElement)) { - - // Then set focus on the modal to prevent accidental actions in the underlying page. - this.$el.focus(); - } + clickSelectTab: function clickSelectTab(evt) { + evt.preventDefault(); - return this; - }, - - /** - * Ensures that keyboard focus remains within the Modal dialog or search input. - * @param evt {object} A jQuery-normalized event object. - */ - preserveFocus: function preserveFocus(evt) { - var isOk = this.$el[0] === evt.target || this.$el.has(evt.target).length || this.isSearch(evt.target); - if (!isOk) { - this.$el.focus(); - } - }, - - /** - * Closes modal if escape key is hit. - * @param evt {object} A jQuery-normalized event object. - */ - maybeClose: function maybeClose(evt) { - if (ESCAPE === evt.keyCode && !this.isSearch(evt.target)) { - this.closeModal(evt); - } - }, - - isSearch: function isSearch(el) { - return this.$search[0] === el || this.$search.has(el).length; - }, - - /** - * Closes the modal and cleans up after the instance. - * @param evt {object} A jQuery-normalized event object. - */ - closeModal: function closeModal(evt) { - evt.preventDefault(); - this.resetMetaboxView(); - this.undelegateEvents(); - $(document).off('focusin'); - $(document).off('keyup', this.maybeClose); - $(document.body).removeClass('gc-modal-open'); - this.remove(); - - gc.$id('bulk-edit').find('button.cancel').trigger('click'); - app.modalView = undefined; - }, - - clickSelectTab: function clickSelectTab(evt) { - evt.preventDefault(); - - this.selectTab($(evt.target).data('id')); - }, - - selectTab: function selectTab(id) { - this.currID = id; - this.currNav = this.navItems.getById(id); - this.navItems.trigger('activate', id); - }, - - checkEnableButton: function checkEnableButton(btnEnabled) { - this.buttonStatus(btnEnabled); - }, - - buttonStatus: function buttonStatus(enable) { - if (this.collection.processing) { - return; - } - if (!enable) { - this.$('.media-toolbar button').prop('disabled', true); - } else { - this.$('#gc-btn-assign-mapping').prop('disabled', !this.collection.checkedCan('assign')); - this.$('#gc-btn-push').prop('disabled', !this.collection.checkedCan('push')); - this.$('#gc-btn-pull').prop('disabled', !this.collection.checkedCan('pull')); - } - }, + this.selectTab($(evt.target).data('id')); + }, - startPull: function startPull(evt) { - evt.preventDefault(); - this.startSync('pull'); - }, + selectTab: function selectTab(id) { + this.currID = id; + this.currNav = this.navItems.getById(id); + this.navItems.trigger('activate', id); + }, - startPush: function startPush(evt) { - evt.preventDefault(); - this.startSync('push'); - }, + checkEnableButton: function checkEnableButton(btnEnabled) { + this.buttonStatus(btnEnabled); + }, - startSync: function startSync(direction) { - var toCheck = 'push' === direction ? 'canPush' : 'canPull'; - var selected = this.selectiveGet(toCheck); + buttonStatus: function buttonStatus(enable) { + if (this.collection.processing) { + return; + } + if (!enable) { + this.$('.media-toolbar button').prop('disabled', true); + } else { + this.$('#gc-btn-assign-mapping').prop('disabled', !this.collection.checkedCan('assign')); + this.$('#gc-btn-push').prop('disabled', !this.collection.checkedCan('push')); + this.$('#gc-btn-pull').prop('disabled', !this.collection.checkedCan('pull')); + } + }, + + startPull: function startPull(evt) { + evt.preventDefault(); + this.startSync('pull'); + }, + + startPush: function startPush(evt) { + evt.preventDefault(); + this.startSync('push'); + }, + + startSync: function startSync(direction) { + var toCheck = 'push' === direction ? 'canPush' : 'canPull'; + var selected = this.selectiveGet(toCheck); + + if (window.confirm(gc._sure[direction])) { + selected = _.map(selected, function (model) { + model.set('mappingStatus', 'starting'); + return model.toJSON(); + }); - if (window.confirm(gc._sure[direction])) { - selected = _.map(selected, function (model) { - model.set('mappingStatus', 'starting'); - return model.toJSON(); - }); + this.doAjax(selected, direction); + } + }, - this.doAjax(selected, direction); - } - }, + startAssignment: function startAssignment(evt) { + var postIds = _.map(this.selectiveGet('disabled'), function (model) { + return model.get('id'); + }); - startAssignment: function startAssignment(evt) { - var postIds = _.map(this.selectiveGet('disabled'), function (model) { - return model.get('id'); - }); + this.resetMetaboxView(); - this.resetMetaboxView(); + this.$el.addClass('gc-set-mapping'); - this.$el.addClass('gc-set-mapping'); + this.$('#gc-btn-assign-mapping').prop('disabled', true); - this.$('#gc-btn-assign-mapping').prop('disabled', true); + this.metaboxView = this.initMetaboxView(postIds); + this.listenTo(this.metaboxView, 'cancel', this.maybeResetMetaboxView); + this.listenTo(this.metaboxView, 'complete', function (model, data) { + model.set('waiting', true); - this.metaboxView = this.initMetaboxView(postIds); - this.listenTo(this.metaboxView, 'cancel', this.maybeResetMetaboxView); - this.listenTo(this.metaboxView, 'complete', function (model, data) { - model.set('waiting', true); + this.collection.map(function (model) { + if (model.get('id') in data.ids) { + model.set('mapping', data.mapping); + model.set('mappingName', data.mappingName); + model.set('mappingLink', data.mappingLink); + } + }); - this.collection.map(function (model) { - if (model.get('id') in data.ids) { - model.set('mapping', data.mapping); - model.set('mappingName', data.mappingName); - model.set('mappingLink', data.mappingLink); - } - }); + this.render(); + }); + }, - this.render(); - }); - }, + maybeResetMetaboxView: function maybeResetMetaboxView() { + if (this.metaboxView) { + this.resetMetaboxView(); + this.buttonStatus(true); + } + }, - maybeResetMetaboxView: function maybeResetMetaboxView() { - if (this.metaboxView) { - this.resetMetaboxView(); - this.buttonStatus(true); - } - }, + resetMetaboxView: function resetMetaboxView() { + if (this.metaboxView) { + this.stopListening(this.metaboxView); + this.metaboxView.close(); + this.$el.removeClass('gc-set-mapping'); + } + }, - resetMetaboxView: function resetMetaboxView() { - if (this.metaboxView) { - this.stopListening(this.metaboxView); - this.metaboxView.close(); - this.$el.removeClass('gc-set-mapping'); - } - }, + selectiveGet: function selectiveGet(toCheck) { + var selected = []; + var staysChecked; + + this.collection.trigger('checkSome', function (model) { + staysChecked = model.get('checked') && model.get(toCheck); + if (staysChecked) { + selected.push(model); + } - selectiveGet: function selectiveGet(toCheck) { - var selected = []; - var staysChecked; + return staysChecked; + }); - this.collection.trigger('checkSome', function (model) { - staysChecked = model.get('checked') && model.get(toCheck); - if (staysChecked) { - selected.push(model); - } + return selected; + }, - return staysChecked; - }); + getChecked: function getChecked(cb) { + this.collection.filter(function (model) { + var shouldGet = model.get('checked'); + if (shouldGet && cb) { + cb(model); + } + return shouldGet; + }); + }, - return selected; - }, + ajaxSuccess: function ajaxSuccess(response) { + if (!response.data.mappings) { + return this.ajaxFail(); + } - getChecked: function getChecked(cb) { - this.collection.filter(function (model) { - var shouldGet = model.get('checked'); - if (shouldGet && cb) { - cb(model); - } - return shouldGet; - }); - }, + var mappings = []; - ajaxSuccess: function ajaxSuccess(response) { - if (!response.data.mappings) { - return this.ajaxFail(); - } + var toCheck = 'push' === response.data.direction ? 'canPush' : 'canPull'; + var checked = this.getChecked(function (model) { + if (!model.get(toCheck)) { + return; + } - var mappings = []; - - var toCheck = 'push' === response.data.direction ? 'canPush' : 'canPull'; - var checked = this.getChecked(function (model) { - if (!model.get(toCheck)) { - return; - } - - if (response.data.mappings.length && -1 !== _.indexOf(response.data.mappings, model.get('mapping'))) { - model.set('mappingStatus', 'syncing'); - mappings.push(model.get('mapping')); - } else { - model.set('checked', false); - model.set('mappingStatus', 'complete'); - model.fetch().done(function () { - model.trigger('render'); - }); - } + if (response.data.mappings.length && -1 !== _.indexOf(response.data.mappings, model.get('mapping'))) { + model.set('mappingStatus', 'syncing'); + mappings.push(model.get('mapping')); + } else { + model.set('checked', false); + model.set('mappingStatus', 'complete'); + model.fetch().done(function () { + model.trigger('render'); }); + } + }); - if (!mappings.length) { - return this.clearTimeout(); - } + if (!mappings.length) { + return this.clearTimeout(); + } - this.checkStatus(mappings, response.data.direction); - }, + this.checkStatus(mappings, response.data.direction); + }, - ajaxFail: function ajaxFail(response) { - this.setSelectedMappingStatus('failed'); - this.clearTimeout(); - }, + ajaxFail: function ajaxFail(response) { + this.setSelectedMappingStatus('failed'); + this.clearTimeout(); + }, - setSelectedMappingStatus: function setSelectedMappingStatus(status) { - return this.getChecked(function (model) { - model.set('mappingStatus', status); - }); - }, + setSelectedMappingStatus: function setSelectedMappingStatus(status) { + return this.getChecked(function (model) { + model.set('mappingStatus', status); + }); + }, - checkStatus: function checkStatus(mappings, direction) { - this.clearTimeout(); - this.setTimeout(function () { - thisView.doAjax({check: mappings}, direction); - }); - }, + checkStatus: function checkStatus(mappings, direction) { + this.clearTimeout(); + this.setTimeout(function () { + thisView.doAjax({ check: mappings }, direction); + }); + }, - doAjax: function doAjax(formData, direction) { + doAjax: function doAjax(formData, direction) { this.ajax.set('action', 'cwby_' + direction + '_items'); - this.ajax.send(formData, this.ajaxSuccess.bind(this), 0, this.ajaxFail.bind(this)); - }, + this.ajax.send(formData, this.ajaxSuccess.bind(this), 0, this.ajaxFail.bind(this)); + }, - maybeRender: function maybeRender() { - if (!this.metaboxView) { - this.render(); - } - } + maybeRender: function maybeRender() { + if (!this.metaboxView) { + this.render(); + } + } - }); - }; + }); +}; - }, {"./../models/ajax.js": 8, "./../views/modal-assign-mapping.js": 17}], - 20: [function (require, module, exports) { - 'use strict'; +},{"./../models/ajax.js":8,"./../views/modal-assign-mapping.js":17}],20:[function(require,module,exports){ +'use strict'; - module.exports = function (app, gc) { - return app.views.base.extend({ - template: wp.template('gc-post-column-row'), - tagName: 'span', - className: 'gc-status-column', - id: function id() { - return 'gc-status-row-' + this.model.get('id'); - }, +module.exports = function (app, gc) { + return app.views.base.extend({ + template: wp.template('gc-post-column-row'), + tagName: 'span', + className: 'gc-status-column', + id: function id() { + return 'gc-status-row-' + this.model.get('id'); + }, - initialize: function initialize() { - this.listenTo(this.model, 'change:status', this.render); - }, + initialize: function initialize() { + this.listenTo(this.model, 'change:status', this.render); + }, - html: function html() { - return this.template(this.model.toJSON()); - }, + html: function html() { + return this.template(this.model.toJSON()); + }, - render: function render() { - var $td = gc.$id('post-' + this.model.get('id')).find('.column-gathercontent'); - $td.html(this.html()); + render: function render() { + var $td = gc.$id('post-' + this.model.get('id')).find('.column-gathercontent'); + $td.html(this.html()); - return this; - } - }); - }; + return this; + } + }); +}; - }, {}], - 21: [function (require, module, exports) { - 'use strict'; +},{}],21:[function(require,module,exports){ +'use strict'; - module.exports = function (app, gc, $) { - var thisView; - return app.views.statusSelect2.extend({ - template: wp.template('gc-status-select2'), +module.exports = function (app, gc, $) { + var thisView; + return app.views.statusSelect2.extend({ + template: wp.template('gc-status-select2'), - el: '#posts-filter tbody', + el: '#posts-filter tbody', - width: '200px', + width: '200px', - initialize: function initialize() { - thisView = this; - this.listenTo(this, 'quickEdit', this.edit); - this.listenTo(this, 'quickEditSend', this.sending); - this.render(); - this.updatePosts(); - }, + initialize: function initialize() { + thisView = this; + this.listenTo(this, 'quickEdit', this.edit); + this.listenTo(this, 'quickEditSend', this.sending); + this.render(); + this.updatePosts(); + }, - updatePosts: function updatePosts() { - // Trigger an un-cached update for the posts - $.post(window.ajaxurl, { + updatePosts: function updatePosts() { + // Trigger an un-cached update for the posts + $.post(window.ajaxurl, { action: 'cwby_get_posts', - posts: gc._posts, - flush_cache: gc.queryargs.flush_cache ? 1 : 0 - }, function (response) { - if ((response.success, response.data)) { - thisView.collection.trigger('updateItems', response.data); - } - }); - }, + posts: gc._posts, + flush_cache: gc.queryargs.flush_cache ? 1 : 0 + }, function (response) { + if ((response.success, response.data)) { + thisView.collection.trigger('updateItems', response.data); + } + }); + }, - sending: function sending(request, settings) { - var data = this.parseQueryString(settings.data); - if (data.post_ID && data.gc_status) { - var model = this.collection.getById(data.post_ID); + sending: function sending(request, settings) { + var data = this.parseQueryString(settings.data); + if (data.post_ID && data.gc_status) { + var model = this.collection.getById(data.post_ID); - var status = _.find(model.get('statuses'), function (status) { - return parseInt(status.id, 10) === parseInt(data.gc_status, 10); - }); + var status = _.find(model.get('statuses'), function (status) { + return parseInt(status.id, 10) === parseInt(data.gc_status, 10); + }); - model.set('status', status); - } - }, + model.set('status', status); + } + }, - edit: function edit(id, inlineEdit) { - // get the post ID - var postId = 0; - if ('object' === typeof id) { - postId = parseInt(inlineEdit.getId(id), 10); - } + edit: function edit(id, inlineEdit) { + // get the post ID + var postId = 0; + if ('object' === typeof id) { + postId = parseInt(inlineEdit.getId(id), 10); + } - this.waitSpinner(postId); + this.waitSpinner(postId); - if (!postId) { - return; - } + if (!postId) { + return; + } - var model = this.collection.getById(postId); + var model = this.collection.getById(postId); - if (model.get('statusesChecked')) { - return this.renderStatuses(model); - } + if (model.get('statusesChecked')) { + return this.renderStatuses(model); + } - $.post(window.ajaxurl, { + $.post(window.ajaxurl, { action: 'cwby_get_post_statuses', - postId: postId, - flush_cache: gc.queryargs.flush_cache ? 1 : 0 - }, this.ajaxResponse).done(function () { - thisView.renderStatuses(model); + postId: postId, + flush_cache: gc.queryargs.flush_cache ? 1 : 0 + }, this.ajaxResponse).done(function () { + thisView.renderStatuses(model); + }); + }, + + ajaxResponse: function ajaxResponse(response) { + if (!response.data) { + return; + } + + var model = thisView.collection.getById(response.data.postId); + if (!model) { + return; + } + + model.set('statusesChecked', true); + + if (response.success) { + model.set('statuses', response.data.statuses); + + if (model.get('statuses').length) { + thisView.$('.gc-select2').each(function () { + $(this).select2('destroy'); }); - }, - ajaxResponse: function ajaxResponse(response) { - if (!response.data) { - return; - } + thisView.renderStatuses(model); + } + } + }, - var model = thisView.collection.getById(response.data.postId); - if (!model) { - return; - } + renderStatuses: function renderStatuses(model) { + var postId = model.get('id'); + this.editSelect(postId).html(this.template(model.toJSON())); + if (model.get('statuses').length) { + this.renderSelect2(gc.$id('edit-' + postId)); + } + }, - model.set('statusesChecked', true); + waitSpinner: function waitSpinner(postId) { + this.editSelect(postId).html(''); + }, - if (response.success) { - model.set('statuses', response.data.statuses); + editSelect: function editSelect(postId) { + return gc.$id('edit-' + postId).find('.inline-edit-group .gc-status-select2'); + }, - if (model.get('statuses').length) { - thisView.$('.gc-select2').each(function () { - $(this).select2('destroy'); - }); + render: function render() { + this.collection.each(function (model) { + new app.views.postRow({ model: model }).render(); + }); + return this; + }, + + /** + * Parse query string. + * ?a=b&c=d to {a: b, c: d} + * @param {String} (option) queryString + * @return {Object} query params + */ + parseQueryString: function parseQueryString(string) { + if (!string) { + return {}; + } + return _.chain(string.split('&')).map(function (params) { + var p = params.split('='); + return [p[0], decodeURIComponent(p[1])]; + }).object().value(); + } - thisView.renderStatuses(model); - } - } - }, + }); +}; - renderStatuses: function renderStatuses(model) { - var postId = model.get('id'); - this.editSelect(postId).html(this.template(model.toJSON())); - if (model.get('statuses').length) { - this.renderSelect2(gc.$id('edit-' + postId)); - } - }, +},{}],22:[function(require,module,exports){ +'use strict'; - waitSpinner: function waitSpinner(postId) { - this.editSelect(postId).html(''); - }, +module.exports = function (app) { + var thisView; + return app.views.base.extend({ + select2ItemTemplate: wp.template('gc-select2-item'), + width: '250px', - editSelect: function editSelect(postId) { - return gc.$id('edit-' + postId).find('.inline-edit-group .gc-status-select2'); - }, + renderSelect2: function renderSelect2($context) { + var $selector = $context ? $context.find('.gc-select2') : this.$('.gc-select2'); + thisView = this; - render: function render() { - this.collection.each(function (model) { - new app.views.postRow({model: model}).render(); - }); - return this; - }, - - /** - * Parse query string. - * ?a=b&c=d to {a: b, c: d} - * @param {String} (option) queryString - * @return {Object} query params - */ - parseQueryString: function parseQueryString(string) { - if (!string) { - return {}; - } - return _.chain(string.split('&')).map(function (params) { - var p = params.split('='); - return [p[0], decodeURIComponent(p[1])]; - }).object().value(); - } + $selector.each(function () { + var $this = jQuery(this); + var data = $this.data(); + $this.select2(thisView.select2Args(data)); + var s2Data = $this.data('select2'); + // Add classes for styling. + s2Data.$results.addClass('select2-' + data.column); + s2Data.$container.addClass('select2-' + data.column); }); - }; - }, {}], - 22: [function (require, module, exports) { - 'use strict'; - - module.exports = function (app) { - var thisView; - return app.views.base.extend({ - select2ItemTemplate: wp.template('gc-select2-item'), - width: '250px', - - renderSelect2: function renderSelect2($context) { - var $selector = $context ? $context.find('.gc-select2') : this.$('.gc-select2'); - thisView = this; - - $selector.each(function () { - var $this = jQuery(this); - var data = $this.data(); - $this.select2(thisView.select2Args(data)); - var s2Data = $this.data('select2'); - - // Add classes for styling. - s2Data.$results.addClass('select2-' + data.column); - s2Data.$container.addClass('select2-' + data.column); - }); + return this; + }, - return this; - }, + select2Args: function select2Args(data) { + var args = { + width: thisView.width + }; - select2Args: function select2Args(data) { - var args = { - width: thisView.width - }; + args.templateResult = (function (status, showDesc) { + var data = jQuery.extend(status, jQuery(status.element).data()); + data.description = false === showDesc ? false : data.description || ''; + return jQuery(thisView.select2ItemTemplate(status)); + }).bind(thisView); - args.templateResult = (function (status, showDesc) { - var data = jQuery.extend(status, jQuery(status.element).data()); - data.description = false === showDesc ? false : data.description || ''; - return jQuery(thisView.select2ItemTemplate(status)); - }).bind(thisView); + args.templateSelection = function (status) { + return args.templateResult(status, false); + }; - args.templateSelection = function (status) { - return args.templateResult(status, false); - }; + return args; + } - return args; - } + }); +}; - }); - }; +},{}],23:[function(require,module,exports){ +'use strict'; - }, {}], - 23: [function (require, module, exports) { - 'use strict'; - - module.exports = function (app, $, gc) { - app.views.tableSearch = require('./../views/table-search.js')(app, $, gc); - app.views.tableNav = require('./../views/table-nav.js')(app, $, gc); - - return app.views.base.extend({ - timeoutID: null, - ajax: null, - tableNavView: null, - searchView: null, - modelView: null, // Need to override. - timeoutTime: 1000, - - events: { - 'click .gc-field-th.sortable': 'sortRowsByColumn', - 'change .gc-field-th.gc-check-column input': 'checkAll' - }, - - initialize: function initialize() { - this.setupAjax(); - - this.listenTo(this.collection, 'render', this.render); - this.listenTo(this.collection, 'notAllChecked', this.allCheckedStatus); - this.listenTo(this.collection, 'change:checked', this.renderNav); - this.listenTo(this, 'render', this.render); - - this.tableNavView = new app.views.tableNav({ - collection: this.collection - }); +module.exports = function (app, $, gc) { + app.views.tableSearch = require('./../views/table-search.js')(app, $, gc); + app.views.tableNav = require('./../views/table-nav.js')(app, $, gc); - this.searchView = new app.views.tableSearch({ - collection: this.collection - }); - }, + return app.views.base.extend({ + timeoutID: null, + ajax: null, + tableNavView: null, + searchView: null, + modelView: null, // Need to override. + timeoutTime: 1000, - // Need to override. - setupAjax: function setupAjax() { - }, + events: { + 'click .gc-field-th.sortable': 'sortRowsByColumn', + 'change .gc-field-th.gc-check-column input': 'checkAll' + }, - sortRowsByColumn: function sortRowsByColumn(evt) { - evt.preventDefault(); - var collection = this.collection.current(); + initialize: function initialize() { + this.setupAjax(); - var $this = $(evt.currentTarget); - var column = $this.find('a').data('id'); - var direction = false; + this.listenTo(this.collection, 'render', this.render); + this.listenTo(this.collection, 'notAllChecked', this.allCheckedStatus); + this.listenTo(this.collection, 'change:checked', this.renderNav); + this.listenTo(this, 'render', this.render); - if ($this.hasClass('asc')) { - direction = 'desc'; - } + this.tableNavView = new app.views.tableNav({ + collection: this.collection + }); - if ($this.hasClass('desc')) { - direction = 'asc'; - } + this.searchView = new app.views.tableSearch({ + collection: this.collection + }); + }, - if (!direction) { - direction = collection.sortDirection; - } + // Need to override. + setupAjax: function setupAjax() {}, - if ('asc' === direction) { - $this.addClass('desc').removeClass('asc'); - } else { - $this.addClass('asc').removeClass('desc'); - } + sortRowsByColumn: function sortRowsByColumn(evt) { + evt.preventDefault(); + var collection = this.collection.current(); + + var $this = $(evt.currentTarget); + var column = $this.find('a').data('id'); + var direction = false; + + if ($this.hasClass('asc')) { + direction = 'desc'; + } - collection.trigger('sortByColumn', column, direction); - this.sortRender(); - }, + if ($this.hasClass('desc')) { + direction = 'asc'; + } - buttonStatus: function buttonStatus(enable) { - this.$('.button-primary').prop('disabled', !enable); - }, + if (!direction) { + direction = collection.sortDirection; + } - allCheckedStatus: function allCheckedStatus() { - this.$('.gc-field-th.gc-check-column input').prop('checked', this.collection.allChecked); - }, + if ('asc' === direction) { + $this.addClass('desc').removeClass('asc'); + } else { + $this.addClass('asc').removeClass('desc'); + } - checkAll: function checkAll(evt) { - this.collection.trigger('checkAll', $(evt.target).is(':checked')); - }, + collection.trigger('sortByColumn', column, direction); + this.sortRender(); + }, - doSpinner: function doSpinner() { - var html = this.blankRow(''); - this.renderRows(html); - }, + buttonStatus: function buttonStatus(enable) { + this.$('.button-primary').prop('disabled', !enable); + }, - setTimeout: function setTimeout(callback) { - this.timeoutID = window.setTimeout(callback, this.timeoutTime); - }, + allCheckedStatus: function allCheckedStatus() { + this.$('.gc-field-th.gc-check-column input').prop('checked', this.collection.allChecked); + }, - clearTimeout: function clearTimeout() { - window.clearTimeout(this.timeoutID); - this.timeoutID = null; - }, + checkAll: function checkAll(evt) { + this.collection.trigger('checkAll', $(evt.target).is(':checked')); + }, - getRenderedRows: function getRenderedRows() { - var rows; + doSpinner: function doSpinner() { + var html = this.blankRow(''); + this.renderRows(html); + }, - if (this.collection.current().length) { - rows = this.getRenderedModels(this.modelView, this.collection.current()); - } else { - rows = this.blankRow(gc._text.no_items); - } + setTimeout: function setTimeout(callback) { + this.timeoutID = window.setTimeout(callback, this.timeoutTime); + }, - return rows; - }, + clearTimeout: function clearTimeout() { + window.clearTimeout(this.timeoutID); + this.timeoutID = null; + }, - sortRender: function sortRender() { - this.render(); - }, + getRenderedRows: function getRenderedRows() { + var rows; - blankRow: function blankRow(html) { - var cols = this.$('thead tr > *').length; - return '' + html + ''; - }, + if (this.collection.current().length) { + rows = this.getRenderedModels(this.modelView, this.collection.current()); + } else { + rows = this.blankRow(gc._text.no_items); + } - renderRows: function renderRows(html) { - this.$('tbody').html(html || this.getRenderedRows()); - }, + return rows; + }, - renderNav: function renderNav() { - this.$('#gc-tablenav').html(this.tableNavView.render().el); - }, + sortRender: function sortRender() { + this.render(); + }, - render: function render() { - var collection = this.collection.current(); + blankRow: function blankRow(html) { + var cols = this.$('thead tr > *').length; + return '' + html + ''; + }, - // Re-render and replace table rows. - this.renderRows(); + renderRows: function renderRows(html) { + this.$('tbody').html(html || this.getRenderedRows()); + }, - // Re-render table nav - this.renderNav(); + renderNav: function renderNav() { + this.$('#gc-tablenav').html(this.tableNavView.render().el); + }, - // Make sync button enabled/disabled - this.buttonStatus(collection.syncEnabled); + render: function render() { + var collection = this.collection.current(); - // Make check-all inputs checked/unchecked - this.allCheckedStatus(collection.allChecked); + // Re-render and replace table rows. + this.renderRows(); - return this; - } + // Re-render table nav + this.renderNav(); - }); - }; + // Make sync button enabled/disabled + this.buttonStatus(collection.syncEnabled); - }, {"./../views/table-nav.js": 24, "./../views/table-search.js": 25}], - 24: [function (require, module, exports) { - 'use strict'; + // Make check-all inputs checked/unchecked + this.allCheckedStatus(collection.allChecked); - module.exports = function (app, $, gc) { - return app.views.base.extend({ - template: wp.template('gc-table-nav'), + return this; + } - render: function render() { - var collection = this.collection.current(); + }); +}; - this.$el.html(this.template({ - count: collection.length, - selected: collection.checked ? collection.checked().length : 0 - })); +},{"./../views/table-nav.js":24,"./../views/table-search.js":25}],24:[function(require,module,exports){ +'use strict'; - return this; - } - }); - }; +module.exports = function (app, $, gc) { + return app.views.base.extend({ + template: wp.template('gc-table-nav'), - }, {}], - 25: [function (require, module, exports) { - 'use strict'; - - module.exports = function (app) { - return Backbone.View.extend({ - el: '#gc-items-search', - template: wp.template('gc-table-search'), - events: { - 'keyup #gc-search-input': 'filterCollection', - 'search #gc-search-input': 'filterCollection' - }, - - initialize: function initialize() { - this.render(); - }, - - filterCollection: _.debounce(function (evt) { - this.collection.search(evt.target.value); - }, 100), - - render: function render() { - this.$el.html(this.template()); - return this; - } + render: function render() { + var collection = this.collection.current(); - }); - }; + this.$el.html(this.template({ + count: collection.length, + selected: collection.checked ? collection.checked().length : 0 + })); + + return this; + } + }); +}; + +},{}],25:[function(require,module,exports){ +'use strict'; + +module.exports = function (app) { + return Backbone.View.extend({ + el: '#gc-items-search', + template: wp.template('gc-table-search'), + events: { + 'keyup #gc-search-input': 'filterCollection', + 'search #gc-search-input': 'filterCollection' + }, + + initialize: function initialize() { + this.render(); + }, + + filterCollection: _.debounce(function (evt) { + this.collection.search(evt.target.value); + }, 100), + + render: function render() { + this.$el.html(this.template()); + return this; + } + + }); +}; - }, {}] -}, {}, [6]); +},{}]},{},[6]); diff --git a/assets/js/gathercontent-general.min.js b/assets/js/gathercontent-general.min.js index 925bdf1a..a3a18f20 100644 --- a/assets/js/gathercontent-general.min.js +++ b/assets/js/gathercontent-general.min.js @@ -1,2 +1,2 @@ -/*! Content Workflow (by Bynder) - v1.0.0 - 2024-06-13 | | Copyright (c) 2024 Content Workflow (by Bynder) | Licensed GPLv2 */ -!function i(n,c,o){function a(s,t){if(!c[s]){if(!n[s]){var e="function"==typeof require&&require;if(!t&&e)return e(s,!0);if(r)return r(s,!0);t=new Error("Cannot find module '"+s+"'");throw t.code="MODULE_NOT_FOUND",t}e=c[s]={exports:{}};n[s][0].call(e.exports,function(t){var e=n[s][1][t];return a(e||t)},e,e.exports,i,n,c,o)}return c[s].exports}for(var r="function"==typeof require&&require,t=0;t=t.length,this.sortKey=s,this.sortDirection=i,this.sort()},checkChecked:function(t){t.changed.checked?this.totalChecked++:(this.totalChecked===this.length&&(this.allChecked=!1),this.totalChecked--),this.checkAllStatus()},checkAllStatus:function(t){var e=this.syncEnabled;this.syncEnabled=0=this.length,this.checkAllStatus(),this.processing=!1,this.trigger("render")},toggleChecked:function(t){this.allChecked=t,this.toggleCheckedIf(t)},checked:function(t){return(t=t||this).filter(function(t){return t.get("checked")})},comparator:function(t,e){if(this.sortKey)return t=t.get(this.sortKey),e=e.get(this.sortKey),"updated_at"===this.sortKey&&(t=t.date||t,e=e.date||e),"status"===this.sortKey&&(t=t.name||t,e=e.name||e),"asc"===this.sortDirection?e