Snapshot: MLS sync fixes, image refresh, plugin/theme updates

MLS plugin fixes from this session:
- Fix silent insert failures: location column NOT NULL was rejecting wpdb->insert calls,
  causing ~18k new properties since Dec 2025 to be lost. Inserts now build raw SQL
  with ST_PointFromText so the spatial column is populated atomically.
- Auto-refresh expired media URLs in MLS_Media_Handler::fetch_and_cache(), guarded by
  a property-level GET_LOCK so concurrent fetches share one API refresh.
- Normalize WP_Error to null in mls_get_property_image() so callers can rely on the
  documented string|null contract.
- Support comma-separated property_type filters in MLS_Query and MLS_Cluster so the
  homepage "View All Commercial" link (?property_type=Commercial+Sale,Land,Farm)
  actually filters correctly.
- Incremental sync now looks back 10 minutes past the latest modification timestamp
  as a safety margin against missed records.
- Smart sync exits silently (info-level, not warning) when a full sync is in progress.

Operational:
- New cron: weekly full sync Sundays at 3 AM (/usr/local/bin/mls-full-sync).
- New cron: hourly 2GB cap on mls-thumbnails/ and cache/transformed-images/
  (/usr/local/bin/mls-image-cache-cap).
- Logrotate config for wp-content/debug.log (2-day retention, daily rotation,
  delaycompress).

Repo policy:
- CLAUDE.md updated with explicit "commit everything except build artifacts" policy.
- .gitignore: untrack runtime image caches and debug.log rotations.

Other modifications in this snapshot are pre-existing in-flight theme/plugin/db_content_updates work.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
root
2026-04-29 15:32:23 +00:00
parent 57b752f54e
commit b6df4dbb92
5385 changed files with 838580 additions and 2416 deletions
+635
View File
@@ -0,0 +1,635 @@
@media screen and (max-width: 1023px) {
#wpforms-notice-bar {
display: none !important;
}
}
#wpforms-notice-bar {
display: flex;
align-items: center;
justify-content: center;
background-color: #dcdcde;
border-top: 3px solid #e27730;
color: #6a6f76;
text-align: center;
position: relative;
padding: 7px;
margin-bottom: -4px;
opacity: 1;
transition: all .3s ease-in-out;
max-height: 100px;
overflow: hidden;
z-index: 999;
}
#wpforms-notice-bar.out {
opacity: .5;
max-height: 0;
}
#wpforms-notice-bar a {
color: #e27730;
}
#wpforms-notice-bar a:hover {
color: #cd6622;
}
#wpforms-notice-bar .wpforms-dismiss-button {
position: absolute;
top: 0;
right: 0;
border: none;
padding: 5px;
margin-top: 1px;
background: 0 0;
color: #72777c;
cursor: pointer;
margin-right: 10px;
}
#wpforms-notice-bar .wpforms-dismiss-button:before {
background: 0 0;
color: #72777c;
content: "\f335";
display: block;
font: normal 20px/20px dashicons;
speak: none;
height: 20px;
text-align: center;
width: 20px;
-webkit-font-smoothing: antialiased;
}
#wpforms-notice-bar .wpforms-dismiss-button:hover:before {
color: #3c434a;
}
#screen-meta-links .screen-meta-toggle {
position: absolute;
right: 20px;
top: auto;
}
body.wpforms-setting-lite-connect-modal {
overflow: hidden;
height: 100vh;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-bg {
animation: 0.3s ease-out 0s 1 normal wpforms-jconfirm-bg-fade-in;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-cell {
overflow-y: auto;
max-height: 100vh;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-holder {
animation: 0.3s ease-out 0s 1 normal wpforms-jconfirm-scale;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box {
width: 100%;
border-top: none;
border-radius: 6px;
box-shadow: 0 5px 60px rgba(0, 0, 0, 0.25);
padding-top: 30px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane {
margin-bottom: 20px;
height: auto !important;
min-height: fit-content;
max-height: fit-content !important;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content {
margin-bottom: 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content {
font-style: normal;
font-weight: normal;
color: #777777;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content img.wpforms-mascot {
height: 50px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content h2,
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content h4 {
font-weight: 500;
font-size: 24px;
line-height: 22px;
color: #444444;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content h2 {
margin: 10px 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content h4 {
line-height: 24px;
font-size: 16px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content p {
font-size: 15px;
line-height: 20px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features {
margin: 25px 0 15px 0;
padding: 10px 28px 10px 30px;
background: #f8f8f8;
border-radius: 4px;
text-align: left;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section {
display: flex;
justify-content: space-between;
padding: 15px 0;
border-bottom: 1px solid #e4e4e4;
gap: 15px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section:last-child {
border-bottom: none;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section img {
max-height: 24px;
max-width: 24px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section:nth-child(2) img {
margin-left: -4px;
max-width: 30px;
width: 30px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section:nth-child(3) img {
margin-left: -1px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section aside h4 {
margin: 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section aside p {
font-size: 14px;
line-height: 20px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content footer {
font-size: 13px;
line-height: 20px;
max-width: 370px;
margin: 0 auto;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content footer a {
color: inherit;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons {
margin-top: -10px;
padding-bottom: 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button {
font-style: normal;
font-weight: 600;
font-size: 16px;
line-height: 42px;
border-radius: 4px;
padding: 0 17px;
color: #50575e;
border-color: #f6f7f7;
background: #f6f7f7;
text-transform: capitalize;
min-width: 83px;
margin: 10px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button:hover {
background: #e8e9e9;
border-color: #e8e9e9;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button.btn-default {
margin-left: 20px;
font-weight: 400;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-orange .jconfirm-buttons button.btn-confirm {
color: #ffffff;
background: #e27730;
border-color: #e27730;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-orange .jconfirm-buttons button.btn-confirm:hover {
background: #cd6622;
border-color: #cd6622;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box {
padding: 30px;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box .jconfirm-content-pane {
margin-bottom: 25px;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features {
padding: 25px 30px;
margin-bottom: 25px;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section {
justify-content: revert;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section:first-child {
padding-top: 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section:last-child {
padding-bottom: 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section img {
width: 100%;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content h2 {
margin: 15px 0 10px 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-buttons {
display: flex;
gap: 20px;
margin-top: 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-buttons button {
margin: 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-buttons button.btn-default {
margin-left: 0;
}
@keyframes wpforms-jconfirm-scale {
0% {
transform: scale(0.5);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@keyframes wpforms-jconfirm-bg-fade-in {
0% {
opacity: 0;
}
100% {
opacity: .6;
}
}
.wpforms-education-lite-connect-wrapper .wpforms-education-lite-connect-setting,
.wpforms-education-lite-connect-wrapper .wpforms-education-lite-connect-enabled-info {
transition: opacity 0.25s ease-out;
}
.wpforms-education-lite-connect-wrapper .wpforms-education-lite-connect-setting.wpforms-hidden,
.wpforms-education-lite-connect-wrapper .wpforms-education-lite-connect-enabled-info.wpforms-hidden {
display: none;
}
@media screen and (max-width: 782px) {
.wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle .wpforms-toggle-control-label,
.wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle .wpforms-toggle-control-icon {
pointer-events: none;
}
}
.wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle .wpforms-toggle-control-label {
font-size: 14px;
font-weight: 400;
padding-right: 0;
}
.wpforms-admin-settings-form .wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle .wpforms-toggle-control-icon {
background-color: #d63638;
}
.wpforms-admin-settings-form .wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle input[type=checkbox]:focus + label.wpforms-toggle-control-icon {
background-color: #d63638;
box-shadow: 0 0 0 1px #ffffff, 0 0 0 2px #d63638;
}
.wpforms-admin-settings-form .wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle input[type=checkbox]:hover + label.wpforms-toggle-control-icon {
background-color: #b32d2e;
}
.wpforms-admin-settings-form .wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle input[type=checkbox]:checked:focus + label.wpforms-toggle-control-icon {
background-color: #2271b1;
box-shadow: 0 0 0 1px #ffffff, 0 0 0 2px #2271b1;
}
.wpforms-admin-settings-form .wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle input[type=checkbox]:checked:hover + label.wpforms-toggle-control-icon {
background-color: #215d8f;
}
#wpforms-dash-widget-lite-connect-block {
margin: 0;
padding: 10px;
background: #fafafa;
border-bottom: 1px solid #f0f0f1;
}
#wpforms-dash-widget-lite-connect-block .wpforms-toggle-control-status {
color: #3c434a;
}
#wpforms-dash-widget-lite-connect-block .wpforms-education-lite-connect-enabled-info {
display: flex;
justify-content: space-between;
text-align: left;
font-size: 13px;
line-height: 14px;
color: #a7aaad;
}
#wpforms-dash-widget-lite-connect-block .wpforms-education-lite-connect-enabled-info img {
margin-right: 5px;
width: 14px;
height: 14px;
}
#wpforms-dash-widget-lite-connect-block .wpforms-education-lite-connect-enabled-info span {
vertical-align: top;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding-right: 5px;
}
#wpforms-dash-widget-lite-connect-block .wpforms-education-lite-connect-enabled-info a {
margin-left: auto;
white-space: nowrap;
}
#wpforms-builder-lite-connect-top-bar {
background: #f6f7f7;
height: 44px;
padding: 0;
position: fixed;
top: calc(var(--wpforms-admin-bar-height) - 45px);
width: 100%;
z-index: 55;
display: flex;
justify-content: center;
align-items: center;
transition: top 0.25s ease-out;
}
#wpforms-builder-lite-connect-top-bar .wpforms-toggle-control {
white-space: nowrap;
margin-inline-end: 10px;
line-height: 17px;
height: 17px;
}
#wpforms-builder-lite-connect-top-bar .wpforms-toggle-control input:not(:checked) + .wpforms-toggle-control-icon {
background-color: #d63638;
}
#wpforms-builder-lite-connect-top-bar .wpforms-toggle-control:hover input:not(:checked) + .wpforms-toggle-control-icon {
background-color: #b32d2e;
}
#wpforms-builder-lite-connect-top-bar .wpforms-toggle-control-label {
font-weight: 500;
font-size: 14px;
line-height: 17px;
color: #3c434a;
vertical-align: 3px;
}
#wpforms-builder-lite-connect-top-bar p {
font-weight: normal;
font-size: 14px;
line-height: 17px;
color: #50575e;
margin: 0;
padding-inline-start: 10px;
border-inline-start: 1px solid #b0b2b3;
}
#wpforms-builder-lite-connect-top-bar .wpforms-education-lite-connect-enabled-info {
font-weight: 500;
margin: 0 10px 0 0;
}
#wpforms-builder-lite-connect-top-bar .wpforms-education-lite-connect-enabled-info img {
margin: 0 6px 0 0;
vertical-align: bottom;
}
#wpforms-builder-lite-connect-top-bar .wpforms-hidden-element {
margin-right: auto;
visibility: hidden;
width: 0;
}
#wpforms-builder-lite-connect-top-bar .wpforms-dismiss-button {
margin-inline-end: 22px;
margin-inline-start: auto;
color: #a6a6a6;
}
#wpforms-builder-lite-connect-top-bar .wpforms-dismiss-button:hover {
color: #50575e;
}
#wpforms-challenge-popup-lite-connect {
font-style: normal;
font-weight: normal;
font-size: 14px;
line-height: 17px;
color: #3c434a;
}
#wpforms-challenge-popup-lite-connect h3 img {
width: 24px;
height: 24px;
}
#wpforms-challenge-popup-lite-connect hr {
margin: 20px 0;
}
#wpforms-challenge-popup-lite-connect .wpforms-toggle-control .wpforms-toggle-control-label {
font-weight: normal;
font-size: 14px;
line-height: 17px;
color: #3c434a;
}
#wpforms-challenge-popup-lite-connect .wpforms-education-lite-connect-enabled-info img {
margin: 0 6px 0 0;
width: 17px;
height: 17px;
vertical-align: bottom;
}
.wpforms-admin-settings-access {
font-size: 14px;
color: #444444;
}
.wpforms-admin-settings-access .wpforms-setting-row {
padding: 30px 0;
}
.wpforms-admin-settings-access .wpforms-setting-field {
margin: 0;
max-width: none;
}
.wpforms-admin-settings-access .heading h4 {
font-weight: 600;
margin-bottom: 10px;
color: #1d2327;
display: flex;
align-items: center;
gap: 10px;
}
.wpforms-admin-settings-access .heading p {
margin: 0;
line-height: 20px;
letter-spacing: 0;
color: #2c3338;
}
.wpforms-admin-settings-access .screenshots {
padding-bottom: 55px;
}
.wpforms-admin-settings-access .screenshots > * {
vertical-align: middle;
}
.wpforms-admin-settings-access .screenshots .cont {
display: inline-block;
position: relative;
width: 240px;
padding: 5px;
background-color: #ffffff;
-webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05);
-moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05);
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05);
border-radius: 3px;
margin-right: 40px;
}
.wpforms-admin-settings-access .screenshots .cont img {
max-width: 100%;
display: block;
}
.wpforms-admin-settings-access .screenshots .cont .hover {
position: absolute;
opacity: 0;
height: 100%;
width: 100%;
top: 0;
left: 0;
border: 5px solid #ffffff;
background-color: rgba(68, 68, 68, 0.15);
background-image: url("../../../assets/images/zoom.svg");
background-repeat: no-repeat;
background-position: center;
background-size: 50px;
transition: all 0.3s;
}
.wpforms-admin-settings-access .screenshots .cont .hover:focus {
box-shadow: none;
}
.wpforms-admin-settings-access .screenshots .cont:hover .hover {
opacity: 1;
transition: all 0.3s;
}
.wpforms-admin-settings-access .screenshots .cont span {
position: absolute;
bottom: -25px;
left: 50%;
transform: translateX(-50%);
font-size: 14px;
color: #6a6f76;
white-space: nowrap;
}
.wpforms-admin-settings-access .caps {
color: #2c3338;
}
.wpforms-admin-settings-access .caps p {
margin: 0;
}
.wpforms-admin-settings-access .caps ul {
display: inline-block;
width: 240px;
margin: 20px 40px 0 0;
vertical-align: top;
}
.wpforms-admin-settings-access .caps ul li:last-child {
margin-bottom: 0;
}
.wpforms-admin-settings-access .caps li {
line-height: 14px;
margin: 0 0 22px 0;
padding: 0 0 0 30px;
background-image: url("../../../assets/images/check-solid.svg");
background-position: left center;
background-repeat: no-repeat;
background-size: 16px 12px;
}
.wpforms-admin-settings-access .upgrade {
border-bottom: none;
}
@media (max-width: 917px) {
#wpforms-settings-access .screenshots .cont {
margin-bottom: 40px;
}
#wpforms-settings-access .screenshots .cont:last-child {
margin-bottom: 0;
}
#wpforms-settings-access .caps ul {
margin-bottom: 20px;
}
#wpforms-settings-access .caps ul:last-child {
margin-bottom: 0;
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,505 @@
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice {
display: none;
}
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification {
display: flex;
padding: 20px;
flex-direction: column;
align-items: flex-start;
gap: 10px;
border-radius: 6px;
background: #ffffff;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.07);
position: relative;
}
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification h2 {
color: #1d2327;
font-size: 20px;
font-style: normal;
font-weight: 500;
line-height: 18px;
margin: 0;
}
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification .notice-buttons {
margin: 0;
}
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification .notice-buttons .wpforms-btn {
min-height: auto;
}
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification .wpforms-sample-notification-content {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 5px;
}
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification .wpforms-sample-notification-content p {
color: #2c3338;
font-size: 15px;
font-style: normal;
font-weight: 400;
line-height: 22px;
opacity: 0.8;
margin: 0;
}
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification .wpforms-sample-notification-content p a {
font-size: 15px;
font-style: normal;
font-weight: 500;
line-height: 22px;
text-decoration-line: underline;
}
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification #wpforms-hide-sample-data {
position: absolute;
top: 15px;
right: 20px;
font-size: 13px;
color: #a7aaad;
font-weight: 400;
cursor: pointer;
text-decoration: none;
transition: color 0.05s ease-in-out;
}
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification #wpforms-hide-sample-data:hover, .wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification #wpforms-hide-sample-data:focus {
color: #50575e;
box-shadow: none;
}
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification #wpforms-hide-sample-data .dashicons {
transition: none;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap {
position: relative;
display: grid;
grid-template-columns: 1fr;
margin-top: 20px;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal {
grid-row: 1;
grid-column: 1;
justify-self: center;
align-self: start;
margin: 5px 0 0 0;
height: fit-content;
width: 90%;
max-width: 730px;
text-align: center;
box-shadow: 0 5px 60px rgba(0, 0, 0, 0.2);
border-radius: 6px;
overflow: hidden;
opacity: 1;
z-index: 999;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal *,
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal *::before,
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal *::after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal h2 {
font-size: 22px;
line-height: 24px;
margin: 0 0 16px 0;
padding: 0;
color: #2c3338;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal p {
font-size: 16px;
line-height: 24px;
color: #50575e;
margin: 0 0 30px 0;
padding: 0;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal ul {
float: left;
width: 50%;
margin: 0;
padding: 0 0 0 30px;
text-align: left;
}
@media screen and (max-width: 500px) {
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal ul {
padding: 0;
float: none;
width: 100%;
}
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal ul li {
color: #50575e;
font-size: 16px;
line-height: 19px;
padding: 6px 0;
display: flex;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal ul .fa {
color: #008a20;
margin: 1px 12px 0 0;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal .entries-modal-content {
background-color: #ffffff;
padding: 40px;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal .entries-modal-button a {
white-space: unset !important;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal .entries-modal-button p {
margin: 20px 0 0 0;
font-size: 15px;
line-height: 18px;
text-align: center;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal .entries-modal-button p span {
display: inline-block;
margin-left: 20px;
vertical-align: bottom;
font-size: 14px;
line-height: 17px;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal .entries-modal-button p .wpforms-toggle-control .wpforms-toggle-control-label {
max-width: none;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal .entries-modal-button {
border-radius: 0 0 3px 3px;
padding: 30px;
background: #f5f5f5;
text-align: center;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal .entries-modal-button .entries-modal-button-before {
line-height: 24px;
margin: 0 0 20px 0;
color: #444444;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal .entries-modal-button .wpforms-entries-sample {
display: none !important;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal .entries-modal-button .wpforms-entries-sample a {
font-size: 15px;
font-weight: 600;
line-height: 18px;
text-align: center;
color: #50575e;
text-decoration: underline;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal .entries-modal-button .wpforms-entries-sample a:hover {
color: #056aab;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal .entries-modal-content-top-notice {
padding: 10px;
text-align: center;
font-style: normal;
font-weight: normal;
font-size: 15px;
line-height: 24px;
color: #2c3338;
background: #fcf9e8;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-sample-entries-modal .entries-modal-content-top-notice .wpforms-icon {
width: 18px;
height: 16px;
background-image: url("../../../../images/exclamation-triangle-orange.svg");
background-repeat: no-repeat;
background-size: 18px 16px;
display: inline-block;
margin-right: 10px;
vertical-align: -2px;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-admin-content {
filter: blur(1.5px);
user-select: none;
grid-row: 1;
grid-column: 1;
position: relative;
pointer-events: none;
transition: all 0.25s linear;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-admin-content.show-sample-entires {
filter: none;
user-select: auto;
margin-top: 20px;
pointer-events: unset;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-admin-content a, .wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-admin-content input, .wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-admin-content button:not(.toggle-row), .wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-admin-content select {
pointer-events: none;
}
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-admin-content .pagination-links .disabled,
.wpforms-entries-list-upgrade .wpforms-admin-content-wrap .wpforms-admin-content .bulkactions .disabled {
cursor: inherit;
}
.wpforms-entries-list-upgrade.wpforms-entires-sample-view .wpforms-admin-content {
filter: none;
user-select: auto;
pointer-events: unset;
}
.wpforms-entries-list-upgrade.wpforms-entires-sample-view .wpforms-sample-entry-notice {
display: block;
width: 100%;
}
#wpforms-entries-table .column-indicators > span {
pointer-events: none;
}
#wpforms-entries-table thead a,
#wpforms-entries-table tfoot a {
color: initial;
}
#wpforms-entries-table thead tr th #wpforms-list-table-ext-edit-columns-cog,
#wpforms-entries-table tfoot tr th #wpforms-list-table-ext-edit-columns-cog {
outline: none;
box-shadow: none;
font-size: 19px;
color: #8b8f95;
position: absolute;
inset-inline-end: 12px;
background-color: #ffffff;
top: 9px;
right: 10px;
padding: 0;
pointer-events: unset;
cursor: pointer;
}
#wpforms-entries-table thead tr th .wpforms-entries-settings-menu,
#wpforms-entries-table tfoot tr th .wpforms-entries-settings-menu {
width: 240px;
background: #fff;
border-radius: 6px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
color: #50575e;
inset-inline-start: 0;
margin-top: 6px;
padding-block: 5px;
position: absolute;
text-align: start;
right: 8px;
font-size: 14px;
left: auto;
cursor: not-allowed;
z-index: -99;
display: none;
}
#wpforms-entries-table thead tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap,
#wpforms-entries-table tfoot tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap {
display: flex;
flex-direction: column;
max-height: 350px;
overflow-y: auto;
padding-inline: 0;
border-bottom: 1px solid #dcdcde;
padding-bottom: 10px;
margin-bottom: 10px;
pointer-events: none;
}
#wpforms-entries-table thead tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap .wpforms-settings-title,
#wpforms-entries-table tfoot tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap .wpforms-settings-title {
color: #8C8F94;
font-weight: 500;
font-size: 12px;
line-height: 19px;
padding-left: 15px;
margin: 9px 0;
border-top: 1px solid #dcdcde;
padding-top: 10px;
}
#wpforms-entries-table thead tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap .wpforms-settings-title.first,
#wpforms-entries-table tfoot tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap .wpforms-settings-title.first {
border-top: none;
padding-top: 0;
}
#wpforms-entries-table thead tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap label,
#wpforms-entries-table tfoot tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap label {
align-items: flex-start;
display: flex;
gap: 10px;
padding-block: 5px;
margin: 0 15px;
opacity: .5;
}
#wpforms-entries-table thead tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap label input[type=checkbox],
#wpforms-entries-table tfoot tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap label input[type=checkbox] {
height: 16px;
margin: 0;
position: relative;
width: 16px;
}
#wpforms-entries-table thead tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap label input[type=checkbox]:checked,
#wpforms-entries-table tfoot tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap label input[type=checkbox]:checked {
background-color: #056aab;
border-color: #056aab !important;
box-shadow: none !important;
}
#wpforms-entries-table thead tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap label input[type=checkbox]:checked:before,
#wpforms-entries-table tfoot tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap label input[type=checkbox]:checked:before {
-webkit-mask-image: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%233582c4%27%2F%3E%3C%2Fsvg%3E);
background-color: #fff;
content: "";
height: 18px;
left: -2.5px;
margin: 0;
mask-image: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%233582c4%27%2F%3E%3C%2Fsvg%3E);
position: absolute;
top: -1.5px;
width: 18px;
}
#wpforms-entries-table thead tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap label span,
#wpforms-entries-table tfoot tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap label span {
width: 180px;
display: block;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
#wpforms-entries-table thead tr th .wpforms-entries-settings-menu button,
#wpforms-entries-table tfoot tr th .wpforms-entries-settings-menu button {
margin: 5px 15px 10px 15px;
height: 31px;
display: inline-block;
text-decoration: none;
font-size: 13px;
line-height: 2.15384615;
min-height: 30px;
padding: 0 10px;
border-width: 1px;
border-style: solid;
-webkit-appearance: none;
border-radius: 3px;
white-space: nowrap;
box-sizing: border-box;
opacity: .5;
pointer-events: none;
}
#wpforms-entries-table thead tr th.is_active #wpforms-list-table-ext-edit-columns-cog,
#wpforms-entries-table tfoot tr th.is_active #wpforms-list-table-ext-edit-columns-cog {
color: #046bab;
}
#wpforms-entries-table thead tr th.is_active .wpforms-entries-settings-menu,
#wpforms-entries-table tfoot tr th.is_active .wpforms-entries-settings-menu {
display: block;
z-index: 99;
}
#wpforms-entries-table .check-column {
width: 35px;
min-width: 35px;
max-width: 35px;
padding: 10px 8px 0 3px;
vertical-align: top;
}
#wpforms-entries-table .check-column input {
margin-top: -2px;
}
#wpforms-entries-table .check-column:hover input[type="checkbox"] {
box-shadow: none !important;
}
#wpforms-entries-table tbody .view {
cursor: pointer;
pointer-events: unset;
}
#wpforms-entries-table tbody tr.is-expanded td:not(.wpforms_field_1) {
padding-left: 35%;
}
#wpforms-entries-table th, #wpforms-entries-table td {
box-sizing: border-box;
}
.wpforms-input-disabled {
cursor: not-allowed;
}
.rtl .wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification #wpforms-hide-sample-data {
left: 20px;
right: auto;
}
.rtl #wpforms-entries-list .wp-list-table #wpforms-list-table-ext-edit-columns-cog {
inset-inline-start: 12px;
inset-inline-end: unset;
right: unset;
left: 10px;
}
.rtl #wpforms-entries-table thead tr th .wpforms-entries-settings-menu {
left: 8px;
right: auto;
}
.rtl #wpforms-entries-table thead tr th .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap .wpforms-settings-title {
padding-right: 15px;
padding-left: 0;
}
@media screen and (max-width: 782px) {
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification {
display: block;
}
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification .wpforms-sample-notification-content {
margin-bottom: 10px;
}
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification .notice-buttons {
margin-right: 20px;
}
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification .notice-buttons, .wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification #wpforms-hide-sample-data {
position: revert;
display: inline-block;
vertical-align: middle;
}
}
@media screen and (max-width: 340px) {
.wpforms-entries-list-upgrade .wpforms-sample-entry-notice .wpforms-sample-notification .notice-buttons {
margin-right: 0;
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,392 @@
.wpforms_page_wpforms-entries {
overflow-x: hidden;
}
#wpforms-entries-single .page-title {
padding-top: 14px;
padding-bottom: 14px;
}
#wpforms-entries-single .page-title .page-title-action svg {
fill: #50575e;
}
#wpforms-entries-single .page-title .page-title-action:hover svg, #wpforms-entries-single .page-title .page-title-action:focus svg {
fill: #2c3338;
}
#wpforms-entries-single.wpforms-entries-single-sample .postbox-header h2 {
display: flex;
align-items: center;
gap: 10px;
color: #32373c;
font-style: normal;
font-size: 16px;
font-weight: 500;
line-height: 20px;
padding: 10px 12px;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-fields .inside p {
padding: 0;
margin: 0;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-fields .inside .wpforms-entry-field-name {
font-weight: 600;
background: #f6f6f6;
padding: 8px 12px;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-fields .inside .wpforms-field-email .wpforms-entry-field-value {
color: #056aab;
text-decoration: underline;
cursor: not-allowed;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-fields .inside .wpforms-field-file-upload .file-name {
color: #056aab;
text-decoration: underline;
cursor: not-allowed;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-fields .inside .wpforms-entry-field-value {
padding: 8px 12px;
border-radius: 4px;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-notes {
color: #2c3338;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-notes .wpforms-entry-sample-notes-new {
padding: 10px;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-notes .wpforms-entry-notes-single {
padding: 10px;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-notes .wpforms-entry-notes-single.odd {
background-color: #f6f6f6;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-notes .wpforms-entry-notes-single .note-user {
color: #056aab;
text-decoration: underline;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-notes .wpforms-entry-notes-byline {
color: #888;
margin-bottom: 10px;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-notes .wpforms-entry-notes-byline .sample-note-delete {
color: #a00;
text-decoration: none;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey .inside {
padding: 0;
margin: 0;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table {
width: 100%;
border-spacing: 0;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr td, #wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr th {
vertical-align: top;
border-bottom: 1px solid #eee;
padding: 10px;
text-align: start;
color: #2c3338;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr td:first-of-type, #wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr th:first-of-type {
padding-left: 12px;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr td:last-of-type, #wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr th:last-of-type {
padding-right: 12px;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr td.date, #wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr th.date {
background: #f5f5f5;
font-weight: 600;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr td.time, #wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr th.time {
width: 65px;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr td .fa-circle, #wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr th .fa-circle {
font-size: 4px;
vertical-align: middle;
margin: 0 4px;
color: #ccc;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr td.title-area .path, #wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr th.title-area .path {
font-weight: 400;
color: #a6a6a6;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr td.title-area a, #wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr th.title-area a {
text-decoration: none;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr td.title-area .go, #wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr th.title-area .go {
color: #a6a6a6;
margin: 0 4px;
font-size: 12px;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr td .fa-check, #wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr th .fa-check {
color: #009933;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-user-journey table tr:last-child td {
border-bottom: 0;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-details .inside, #wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-actions .inside {
margin: 0;
padding: 0;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-entry-details-meta, #wpforms-entries-single.wpforms-entries-single-sample .wpforms-entry-actions-meta {
padding: 5px 0;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-entry-details-meta p, #wpforms-entries-single.wpforms-entries-single-sample .wpforms-entry-actions-meta p {
color: #32373c;
display: flex;
flex-wrap: wrap;
gap: 5px;
margin: 0;
padding: 6px 12px 6.5px 42px;
position: relative;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-entry-details-meta p .dashicons, #wpforms-entries-single.wpforms-entries-single-sample .wpforms-entry-actions-meta p .dashicons {
color: #8c8f94;
font-size: 22px;
height: 22px;
inset-inline-start: 12px;
position: absolute;
text-decoration: none;
top: 5px;
width: 22px;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-entry-details-meta p strong, #wpforms-entries-single.wpforms-entries-single-sample .wpforms-entry-actions-meta p strong {
font-weight: 600;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-details .trash-sample {
color: #a00;
text-decoration: none;
padding: 1px 2px;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-entry-actions-meta a {
text-decoration: none;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-entry-actions-meta p {
color: #056aab;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-entry-actions-meta p > span {
cursor: not-allowed;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-geolocation ul {
margin: 0;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-geolocation ul li {
border-bottom: 1px solid #eee;
margin: 0;
overflow: auto;
color: #2c3338;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-geolocation ul li:last-child {
border-bottom: 0;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-geolocation ul li .wpforms-geolocation-meta {
width: 65px;
float: left;
padding: 10px 0 10px 12px;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-geolocation ul li .wpforms-geolocation-value {
display: flex;
align-items: center;
gap: 5px;
padding: 10px 12px 10px 20px;
}
#wpforms-entries-single.wpforms-entries-single-sample #wpforms-entry-geolocation ul li .wpforms-geolocation-value .wpforms-geolocation-flag {
width: 16px;
height: 11px;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-entries-settings-container .button {
background: #ffffff;
border-color: #8c8f94;
color: #50575e;
padding: 5px;
height: auto;
width: 34px;
min-height: 32px;
box-shadow: none;
line-height: 17px;
margin-bottom: 0;
pointer-events: inherit;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-entries-settings-container .dashicons {
font-size: 19px;
line-height: 17px;
height: 17px;
width: 17px;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-entries-settings-container .wpforms-entries-settings-menu {
background: #ffffff;
border-radius: 6px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
display: none;
width: 240px;
position: absolute;
z-index: 30;
right: 10px;
top: 55px;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-entries-settings-container .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap .wpforms-settings-title {
display: block;
width: 100%;
font-size: 11px;
line-height: 13px;
text-transform: uppercase;
padding: 14px 15px;
border-top: 1px solid #dcdcde;
border-bottom: 1px solid #dcdcde;
margin: 7.5px 0;
font-weight: 600;
color: #50575e;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-entries-settings-container .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap .wpforms-settings-title:first-child {
border-top: 0;
margin-top: 0;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-entries-settings-container .wpforms-entries-settings-menu .wpforms-entries-settings-menu-wrap .wpforms-toggle-control {
padding: 8px 14px;
font-weight: 400;
opacity: .5;
pointer-events: none;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-sample-notification {
display: flex;
padding: 20px;
flex-direction: column;
align-items: flex-start;
gap: 10px;
border-radius: 6px;
background: #fff;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.07);
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-sample-notification h2 {
color: #1d2327;
font-size: 20px;
font-weight: 500;
line-height: 18px;
margin: 0;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-sample-notification .notice-buttons {
margin: 0;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-sample-notification .notice-buttons .wpforms-btn {
box-sizing: border-box;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-sample-notification .wpforms-sample-notification-content {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 5px;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-sample-notification .wpforms-sample-notification-content p {
color: #2c3338;
font-size: 15px;
font-style: normal;
font-weight: 400;
line-height: 22px;
opacity: 0.8;
margin: 0;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-sample-notification .wpforms-sample-notification-content p a {
font-size: 15px;
font-style: normal;
font-weight: 500;
line-height: 22px;
text-decoration-line: underline;
}
#wpforms-entries-single.wpforms-entries-single-sample .wpforms-sample-notification #wpforms-hide-sample-data {
display: none;
}
#wpforms-entries-single.wpforms-entries-single-sample #poststuff {
padding-top: 20px;
}
.rtl #wpforms-entries-single .wpforms-entry-details-meta p, .rtl #wpforms-entries-single .wpforms-entry-actions-meta p, .rtl #wpforms-entries-single .wpforms-entry-payment-meta p {
padding: 6px 42px 6.5px 12px;
}
.rtl #wpforms-entries-single .wpforms-entries-settings-container .wpforms-entries-settings-menu {
left: 10px;
right: auto;
}
@media (max-width: 600px) {
#wpforms-entries-single.wpforms-admin-wrap .page-title a.page-title-action {
display: none !important;
}
#wpforms-entries-single .wpforms-admin-single-navigation {
display: flex;
}
#wpforms-entries-single .wpforms-admin-single-navigation .wpforms-admin-single-navigation-text {
display: none;
}
}
#publishing-action .button,
.wpforms-input-disabled {
cursor: not-allowed;
}
#wpforms-entries-single .button:hover {
background-color: #056aab;
border-color: #056aab;
color: #ffffff;
}
#wpforms-admin-single-navigation-next-link:hover {
background-color: #f0f0f1;
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,423 @@
body.wpforms-setting-lite-connect-modal {
overflow: hidden;
height: 100vh;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-bg {
animation: 0.3s ease-out 0s 1 normal wpforms-jconfirm-bg-fade-in;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-cell {
overflow-y: auto;
max-height: 100vh;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-holder {
animation: 0.3s ease-out 0s 1 normal wpforms-jconfirm-scale;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box {
width: 100%;
border-top: none;
border-radius: 6px;
box-shadow: 0 5px 60px rgba(0, 0, 0, 0.25);
padding-top: 30px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane {
margin-bottom: 20px;
height: auto !important;
min-height: fit-content;
max-height: fit-content !important;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content {
margin-bottom: 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content {
font-style: normal;
font-weight: normal;
color: #777777;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content img.wpforms-mascot {
height: 50px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content h2,
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content h4 {
font-weight: 500;
font-size: 24px;
line-height: 22px;
color: #444444;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content h2 {
margin: 10px 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content h4 {
line-height: 24px;
font-size: 16px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content p {
font-size: 15px;
line-height: 20px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features {
margin: 25px 0 15px 0;
padding: 10px 28px 10px 30px;
background: #f8f8f8;
border-radius: 4px;
text-align: left;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section {
display: flex;
justify-content: space-between;
padding: 15px 0;
border-bottom: 1px solid #e4e4e4;
gap: 15px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section:last-child {
border-bottom: none;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section img {
max-height: 24px;
max-width: 24px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section:nth-child(2) img {
margin-left: -4px;
max-width: 30px;
width: 30px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section:nth-child(3) img {
margin-left: -1px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section aside h4 {
margin: 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section aside p {
font-size: 14px;
line-height: 20px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content footer {
font-size: 13px;
line-height: 20px;
max-width: 370px;
margin: 0 auto;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content footer a {
color: inherit;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons {
margin-top: -10px;
padding-bottom: 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button {
font-style: normal;
font-weight: 600;
font-size: 16px;
line-height: 42px;
border-radius: 4px;
padding: 0 17px;
color: #50575e;
border-color: #f6f7f7;
background: #f6f7f7;
text-transform: capitalize;
min-width: 83px;
margin: 10px;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button:hover {
background: #e8e9e9;
border-color: #e8e9e9;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button.btn-default {
margin-left: 20px;
font-weight: 400;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-orange .jconfirm-buttons button.btn-confirm {
color: #ffffff;
background: #e27730;
border-color: #e27730;
}
body.wpforms-setting-lite-connect-modal .jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-orange .jconfirm-buttons button.btn-confirm:hover {
background: #cd6622;
border-color: #cd6622;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box {
padding: 30px;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box .jconfirm-content-pane {
margin-bottom: 25px;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features {
padding: 25px 30px;
margin-bottom: 25px;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section {
justify-content: revert;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section:first-child {
padding-top: 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section:last-child {
padding-bottom: 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content .wpforms-features section img {
width: 100%;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-box .jconfirm-content .wpforms-settings-lite-connect-modal-content h2 {
margin: 15px 0 10px 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-buttons {
display: flex;
gap: 20px;
margin-top: 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-buttons button {
margin: 0;
}
body.wpforms-setting-lite-connect-modal .jconfirm.jconfirm-ai-modal .jconfirm-box-container .jconfirm-buttons button.btn-default {
margin-left: 0;
}
@keyframes wpforms-jconfirm-scale {
0% {
transform: scale(0.5);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@keyframes wpforms-jconfirm-bg-fade-in {
0% {
opacity: 0;
}
100% {
opacity: .6;
}
}
.wpforms-education-lite-connect-wrapper .wpforms-education-lite-connect-setting,
.wpforms-education-lite-connect-wrapper .wpforms-education-lite-connect-enabled-info {
transition: opacity 0.25s ease-out;
}
.wpforms-education-lite-connect-wrapper .wpforms-education-lite-connect-setting.wpforms-hidden,
.wpforms-education-lite-connect-wrapper .wpforms-education-lite-connect-enabled-info.wpforms-hidden {
display: none;
}
@media screen and (max-width: 782px) {
.wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle .wpforms-toggle-control-label,
.wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle .wpforms-toggle-control-icon {
pointer-events: none;
}
}
.wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle .wpforms-toggle-control-label {
font-size: 14px;
font-weight: 400;
padding-right: 0;
}
.wpforms-admin-settings-form .wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle .wpforms-toggle-control-icon {
background-color: #d63638;
}
.wpforms-admin-settings-form .wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle input[type=checkbox]:focus + label.wpforms-toggle-control-icon {
background-color: #d63638;
box-shadow: 0 0 0 1px #ffffff, 0 0 0 2px #d63638;
}
.wpforms-admin-settings-form .wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle input[type=checkbox]:hover + label.wpforms-toggle-control-icon {
background-color: #b32d2e;
}
.wpforms-admin-settings-form .wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle input[type=checkbox]:checked:focus + label.wpforms-toggle-control-icon {
background-color: #2271b1;
box-shadow: 0 0 0 1px #ffffff, 0 0 0 2px #2271b1;
}
.wpforms-admin-settings-form .wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle input[type=checkbox]:checked:hover + label.wpforms-toggle-control-icon {
background-color: #215d8f;
}
#wpforms-dash-widget-lite-connect-block {
margin: 0;
padding: 10px;
background: #fafafa;
border-bottom: 1px solid #f0f0f1;
}
#wpforms-dash-widget-lite-connect-block .wpforms-toggle-control-status {
color: #3c434a;
}
#wpforms-dash-widget-lite-connect-block .wpforms-education-lite-connect-enabled-info {
display: flex;
justify-content: space-between;
text-align: left;
font-size: 13px;
line-height: 14px;
color: #a7aaad;
}
#wpforms-dash-widget-lite-connect-block .wpforms-education-lite-connect-enabled-info img {
margin-right: 5px;
width: 14px;
height: 14px;
}
#wpforms-dash-widget-lite-connect-block .wpforms-education-lite-connect-enabled-info span {
vertical-align: top;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding-right: 5px;
}
#wpforms-dash-widget-lite-connect-block .wpforms-education-lite-connect-enabled-info a {
margin-left: auto;
white-space: nowrap;
}
#wpforms-builder-lite-connect-top-bar {
background: #f6f7f7;
height: 44px;
padding: 0;
position: fixed;
top: calc(var(--wpforms-admin-bar-height) - 45px);
width: 100%;
z-index: 55;
display: flex;
justify-content: center;
align-items: center;
transition: top 0.25s ease-out;
}
#wpforms-builder-lite-connect-top-bar .wpforms-toggle-control {
white-space: nowrap;
margin-inline-end: 10px;
line-height: 17px;
height: 17px;
}
#wpforms-builder-lite-connect-top-bar .wpforms-toggle-control input:not(:checked) + .wpforms-toggle-control-icon {
background-color: #d63638;
}
#wpforms-builder-lite-connect-top-bar .wpforms-toggle-control:hover input:not(:checked) + .wpforms-toggle-control-icon {
background-color: #b32d2e;
}
#wpforms-builder-lite-connect-top-bar .wpforms-toggle-control-label {
font-weight: 500;
font-size: 14px;
line-height: 17px;
color: #3c434a;
vertical-align: 3px;
}
#wpforms-builder-lite-connect-top-bar p {
font-weight: normal;
font-size: 14px;
line-height: 17px;
color: #50575e;
margin: 0;
padding-inline-start: 10px;
border-inline-start: 1px solid #b0b2b3;
}
#wpforms-builder-lite-connect-top-bar .wpforms-education-lite-connect-enabled-info {
font-weight: 500;
margin: 0 10px 0 0;
}
#wpforms-builder-lite-connect-top-bar .wpforms-education-lite-connect-enabled-info img {
margin: 0 6px 0 0;
vertical-align: bottom;
}
#wpforms-builder-lite-connect-top-bar .wpforms-hidden-element {
margin-right: auto;
visibility: hidden;
width: 0;
}
#wpforms-builder-lite-connect-top-bar .wpforms-dismiss-button {
margin-inline-end: 22px;
margin-inline-start: auto;
color: #a6a6a6;
}
#wpforms-builder-lite-connect-top-bar .wpforms-dismiss-button:hover {
color: #50575e;
}
#wpforms-challenge-popup-lite-connect {
font-style: normal;
font-weight: normal;
font-size: 14px;
line-height: 17px;
color: #3c434a;
}
#wpforms-challenge-popup-lite-connect h3 img {
width: 24px;
height: 24px;
}
#wpforms-challenge-popup-lite-connect hr {
margin: 20px 0;
}
#wpforms-challenge-popup-lite-connect .wpforms-toggle-control .wpforms-toggle-control-label {
font-weight: normal;
font-size: 14px;
line-height: 17px;
color: #3c434a;
}
#wpforms-challenge-popup-lite-connect .wpforms-education-lite-connect-enabled-info img {
margin: 0 6px 0 0;
width: 17px;
height: 17px;
vertical-align: bottom;
}
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

@@ -0,0 +1,110 @@
/* global wpforms_builder_lite, wpforms_builder, Choices, wpf */
// noinspection ES6ConvertVarToLetConst
/**
* @param wpforms_builder_lite.disable_notifications
*/
var WPFormsBuilderLite = window.WPFormsBuilderLite || ( function( document, window, $ ) { // eslint-disable-line no-var
/**
* Public functions and properties.
*
* @since 1.0.0
*
* @type {Object}
*/
const app = {
/**
* Start the engine.
*
* @since 1.0.0
*/
init() {
// Document ready
$( app.ready );
},
/**
* Document ready.
*
* @since 1.0.0
*/
ready() {
app.bindUIActions();
},
/**
* Element bindings.
*
* @since 1.0.0
*/
bindUIActions() {
// Warn users if they disable email notifications.
$( document ).on( 'change', '#wpforms-panel-field-settings-notification_enable', function() {
app.formBuilderNotificationAlert( $( this ).is( ':checked' ) );
} );
},
/**
* Warn users if they disable email notifications.
*
* @since 1.5.0
*
* @param {boolean} value Whether notifications enabled or not. 0 is disabled, 1 is enabled.
*/
formBuilderNotificationAlert( value ) {
if ( value !== false ) {
return;
}
$.alert( {
title: wpforms_builder.heads_up,
content: wpforms_builder_lite.disable_notifications,
icon: 'fa fa-exclamation-circle',
type: 'orange',
buttons: {
confirm: {
text: wpforms_builder.ok,
btnClass: 'btn-confirm',
keys: [ 'enter' ],
},
},
} );
},
/**
* Initialize Choices.js for the Coupon field.
*
* @since 1.9.4
*/
initCouponsChoicesJS() {
if ( typeof window.Choices !== 'function' ) {
return;
}
$( '.wpforms-field-option-row-allowed_coupons select:not(.choices__input)' ).each( function() {
const $select = $( this );
const choicesInstance = new Choices(
$select.get( 0 ),
{
shouldSort: false,
removeItemButton: true,
renderChoicesLimit: 5,
callbackOnInit() {
wpf.showMoreButtonForChoices( this.containerOuter.element );
},
} );
// Save Choices.js instance for future access.
$select.data( 'choicesjs', choicesInstance );
} );
},
};
// Provide access to public functions/properties.
return app;
}( document, window, jQuery ) );
WPFormsBuilderLite.init();
@@ -0,0 +1 @@
var WPFormsBuilderLite=window.WPFormsBuilderLite||((e,i,t)=>{let o={init(){t(o.ready)},ready(){o.bindUIActions()},bindUIActions(){t(e).on("change","#wpforms-panel-field-settings-notification_enable",function(){o.formBuilderNotificationAlert(t(this).is(":checked"))})},formBuilderNotificationAlert(e){!1===e&&t.alert({title:wpforms_builder.heads_up,content:wpforms_builder_lite.disable_notifications,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},initCouponsChoicesJS(){"function"==typeof i.Choices&&t(".wpforms-field-option-row-allowed_coupons select:not(.choices__input)").each(function(){var e=t(this),i=new Choices(e.get(0),{shouldSort:!1,removeItemButton:!0,renderChoicesLimit:5,callbackOnInit(){wpf.showMoreButtonForChoices(this.containerOuter.element)}});e.data("choicesjs",i)})}};return o})(document,window,jQuery);WPFormsBuilderLite.init();
@@ -0,0 +1,181 @@
/* global wpforms_admin */
/**
* Connect functionality.
*
* @since 1.5.4
*/
'use strict';
var WPFormsConnect = window.WPFormsConnect || ( function( document, window, $ ) {
/**
* Elements reference.
*
* @since 1.5.5
*
* @type {object}
*/
var el = {
$connectBtn: $( '#wpforms-settings-connect-btn' ),
$connectKey: $( '#wpforms-settings-upgrade-license-key' ),
};
/**
* Public functions and properties.
*
* @since 1.5.5
*
* @type {object}
*/
var app = {
/**
* Start the engine.
*
* @since 1.5.5
*/
init: function() {
$( app.ready );
},
/**
* Document ready.
*
* @since 1.5.5
*/
ready: function() {
app.events();
},
/**
* Register JS events.
*
* @since 1.5.5
*/
events: function() {
app.connectBtnClick();
},
/**
* Register connect button event.
*
* @since 1.5.5
*/
connectBtnClick: function() {
el.$connectBtn.on( 'click', function( event ) {
event.preventDefault();
app.gotoUpgradeUrl();
} );
},
/**
* Get the alert arguments in case of Pro already installed.
*
* @since 1.5.5
*
* @param {object} res Ajax query result object.
*
* @returns {object} Alert arguments.
*/
proAlreadyInstalled: function( res ) {
var buttons = {
confirm: {
text: wpforms_admin.plugin_activate_btn,
btnClass: 'btn-confirm',
keys: [ 'enter' ],
action: function() {
window.location.reload();
},
},
};
return {
title: wpforms_admin.almost_done,
content: res.data.message,
icon: 'fa fa-check-circle',
type: 'green',
buttons: buttons,
};
},
/**
* Go to upgrade url.
*
* @since 1.5.5
*/
gotoUpgradeUrl: function() {
var data = {
action: 'wpforms_connect_url',
key: el.$connectKey.val(),
nonce: wpforms_admin.nonce,
};
$.post( wpforms_admin.ajax_url, data )
.done( function( res ) {
if ( res.success ) {
if ( res.data.reload ) {
$.alert( app.proAlreadyInstalled( res ) );
return;
}
window.location.href = res.data.url;
return;
}
$.alert( {
title: wpforms_admin.oops,
content: res.data.message,
icon: 'fa fa-exclamation-circle',
type: 'orange',
buttons: {
confirm: {
text: wpforms_admin.ok,
btnClass: 'btn-confirm',
keys: [ 'enter' ],
},
},
} );
} )
.fail( function( xhr ) {
app.failAlert( xhr );
} );
},
/**
* Alert in case of server error.
*
* @since 1.5.5
*
* @param {object} xhr XHR object.
*/
failAlert: function( xhr ) {
$.alert( {
title: wpforms_admin.oops,
content: wpforms_admin.server_error + '<br>' + xhr.status + ' ' + xhr.statusText + ' ' + xhr.responseText,
icon: 'fa fa-exclamation-circle',
type: 'orange',
buttons: {
confirm: {
text: wpforms_admin.ok,
btnClass: 'btn-confirm',
keys: [ 'enter' ],
},
},
} );
},
};
// Provide access to public functions/properties.
return app;
}( document, window, jQuery ) );
// Initialize.
WPFormsConnect.init();
+1
View File
@@ -0,0 +1 @@
var WPFormsConnect=window.WPFormsConnect||((e,t)=>{var o={$connectBtn:t("#wpforms-settings-connect-btn"),$connectKey:t("#wpforms-settings-upgrade-license-key")},r={init:function(){t(r.ready)},ready:function(){r.events()},events:function(){r.connectBtnClick()},connectBtnClick:function(){o.$connectBtn.on("click",function(n){n.preventDefault(),r.gotoUpgradeUrl()})},proAlreadyInstalled:function(n){var t={confirm:{text:wpforms_admin.plugin_activate_btn,btnClass:"btn-confirm",keys:["enter"],action:function(){e.location.reload()}}};return{title:wpforms_admin.almost_done,content:n.data.message,icon:"fa fa-check-circle",type:"green",buttons:t}},gotoUpgradeUrl:function(){var n={action:"wpforms_connect_url",key:o.$connectKey.val(),nonce:wpforms_admin.nonce};t.post(wpforms_admin.ajax_url,n).done(function(n){if(n.success)return n.data.reload?void t.alert(r.proAlreadyInstalled(n)):void(e.location.href=n.data.url);t.alert({title:wpforms_admin.oops,content:n.data.message,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_admin.ok,btnClass:"btn-confirm",keys:["enter"]}}})}).fail(function(n){r.failAlert(n)})},failAlert:function(n){t.alert({title:wpforms_admin.oops,content:wpforms_admin.server_error+"<br>"+n.status+" "+n.statusText+" "+n.responseText,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_admin.ok,btnClass:"btn-confirm",keys:["enter"]}}})}};return r})((document,window),jQuery);WPFormsConnect.init();
@@ -0,0 +1,382 @@
/* global wpforms_dashboard_widget, moment, Chart, ajaxurl */
/**
* WPForms Dashboard Widget function.
*
* @since 1.5.0
*/
const WPFormsDashboardWidget = window.WPFormsDashboardWidget || ( function( document, window, $ ) {
/**
* Elements reference.
*
* @since 1.5.0
*
* @type {Object}
*/
const el = {
$widget: $( '#wpforms_reports_widget_lite' ),
$settingsBtn: $( '#wpforms-dash-widget-settings-button' ),
$canvas: $( '#wpforms-dash-widget-chart' ),
$chartDismissButton: $( '.wpforms-dash-widget-dismiss-chart-upgrade' ),
$dismissButton: $( '.wpforms-dash-widget-dismiss-icon' ),
$recommendedBlockDismissButton: $( '#wpforms-dash-widget-dismiss-recommended-plugin-block' ),
};
/**
* Check if the site is RTL.
*
* @since 1.9.1
*/
const isRTL = $( 'body' ).hasClass( 'rtl' );
/**
* Chart.js functions and properties.
*
* @since 1.5.0
*
* @type {Object}
*/
// eslint-disable-next-line no-var
var chart = {
/**
* Chart.js instance.
*
* @since 1.5.0
*/
instance: null,
/**
* Chart.js settings.
*
* @since 1.5.0
*/
settings: {
type : 'line',
data : {
labels : [],
datasets: [ {
label : wpforms_dashboard_widget.i18n.entries,
data : [],
backgroundColor : 'rgba(255, 129, 0, 0.135)',
borderColor : 'rgba(211, 126, 71, 1)',
borderWidth : 2,
pointRadius : 4,
pointBorderWidth : 1,
pointBackgroundColor: 'rgba(255, 255, 255, 1)',
} ],
},
options: {
maintainAspectRatio: false,
scales : {
x: {
type : 'timeseries',
reverse: isRTL,
ticks : {
source : 'labels',
padding : 10,
minRotation: 25,
maxRotation: 25,
callback( value, index, values ) {
// Distribute the ticks equally starting from a right side of xAxis.
const gap = Math.floor( values.length / 7 );
if ( gap < 1 ) {
return moment( value ).format( 'MMM D' );
}
if ( ( values.length - index - 1 ) % gap === 0 ) {
return moment( value ).format( 'MMM D' );
}
},
},
},
y: {
beginAtZero : true,
ticks: {
maxTicksLimit: 6,
padding : 20,
callback( value ) {
// Make sure the tick value has no decimals.
if ( Math.floor( value ) === value ) {
return value;
}
},
},
},
},
elements: {
line: {
tension: 0,
fill: true,
},
},
animation: false,
plugins: {
legend: {
display: false,
},
tooltip: {
displayColors: false,
rtl: isRTL,
},
},
},
},
/**
* Init Chart.js.
*
* @since 1.5.0
*/
init() {
if ( ! el.$canvas.length ) {
return;
}
chart.injectChartScript();
},
/**
* Inject the Chart.js script into the page and trigger initialization.
*
* @since 1.9.7.3
*/
injectChartScript() {
if ( ! wpforms_dashboard_widget.adapter_path ) {
return;
}
const script = document.createElement( 'script' );
script.src = wpforms_dashboard_widget.adapter_path;
script.onload = chart.initializeChart;
script.onerror = function( err ) {
// eslint-disable-next-line no-console
console.log( 'Script injection failed:', err );
};
document.body.appendChild( script );
},
/**
* Initialize Chart.js with the provided settings.
*
* @since 1.9.7.3
*/
initializeChart() {
const ctx = el.$canvas[ 0 ].getContext( '2d' );
chart.instance = new Chart( ctx, chart.settings );
chart.updateUI();
},
/**
* Update Chart.js canvas.
*
* @since 1.5.0
*/
updateUI() {
chart.updateWithDummyData();
chart.instance.data.labels = chart.settings.data.labels;
chart.instance.data.datasets[ 0 ].data = chart.settings.data.datasets[ 0 ].data;
chart.instance.update();
},
/**
* Update Chart.js settings with dummy data.
*
* @since 1.5.0
*/
updateWithDummyData() {
const end = moment().endOf( 'day' );
let date;
const minY = 5;
const maxY = 20;
let i;
for ( i = 1; i <= 7; i++ ) {
date = end.clone().subtract( i, 'days' );
chart.settings.data.labels.push( date );
chart.settings.data.datasets[ 0 ].data.push( {
x: date,
y: Math.floor( Math.random() * ( maxY - minY + 1 ) ) + minY,
} );
}
},
};
/**
* Public functions and properties.
*
* @since 1.5.0
*
* @type {Object}
*/
// eslint-disable-next-line no-var
var app = {
/**
* Start the engine.
*
* @since 1.5.0
*/
init() {
$( app.ready );
},
/**
* Document ready.
*
* @since 1.5.0
*/
ready() {
chart.init();
app.events();
app.graphSettings();
},
/**
* Graph settings related events.
*
* @since 1.7.4
*/
graphSettings() {
el.$settingsBtn.on( 'click', function() {
$( this ).siblings( '.wpforms-dash-widget-settings-menu' ).toggle();
} );
},
/**
* Register JS events.
*
* @since 1.5.0
*/
events() {
app.formsListEvents();
app.handleChartClose();
app.handleRecommendedPluginsClose();
app.handleWidgetBlockClose();
},
/**
* Register forms list area JS events.
*
* @since 1.5.0
*/
formsListEvents() {
el.$widget.on( 'click', '#wpforms-dash-widget-forms-more', function() {
app.toggleCompleteFormsList();
} );
},
/**
* Handle chart close.
*
* @since 1.7.4
*/
handleChartClose() {
el.$chartDismissButton.on( 'click', function( event ) {
event.preventDefault();
app.saveWidgetMeta( 'hide_graph', 1 );
$( '.wpforms-dash-widget.wpforms-lite' ).addClass( 'wpforms-dash-widget-no-graph' );
$( this ).closest( '.wpforms-dash-widget-chart-block-container' ).remove();
} );
},
/**
* Handle recommended plugins block close.
*
* @since 1.7.4
* @since 1.8.7 Deprecated.
*
* @deprecated Use WPFormsDashboardWidget.handleWidgetBlockClose() instead.
*/
handleRecommendedPluginsClose() {
// eslint-disable-next-line no-console
console.warn( 'WARNING! WPFormsDashboardWidget.handleRecommendedPluginsClose() has been deprecated, please use WPFormsDashboardWidget.handleWidgetBlockClose() instead.' );
el.$recommendedBlockDismissButton.on( 'click', function() {
app.dismissRecommendedBlock();
} );
},
/**
* Handle widget block close.
*
* @since 1.8.7
*/
handleWidgetBlockClose() {
el.$dismissButton.on( 'click', function() {
app.dismissWidgetBlock( $( this ) );
} );
},
/**
* Save dashboard widget meta on a backend.
*
* @since 1.7.4
*
* @param {string} meta Meta name to save.
* @param {number} value Value to save.
*/
saveWidgetMeta( meta, value ) {
const data = {
_wpnonce: wpforms_dashboard_widget.nonce,
action : 'wpforms_' + wpforms_dashboard_widget.slug + '_save_widget_meta',
meta,
value,
};
$.post( ajaxurl, data );
},
/**
* Toggle forms list hidden entries.
*
* @since 1.5.0.4
*/
toggleCompleteFormsList() {
$( '#wpforms-dash-widget-forms-list-table .wpforms-dash-widget-forms-list-hidden-el' ).toggle();
$( '#wpforms-dash-widget-forms-more' ).html( function( i, html ) {
return html === wpforms_dashboard_widget.show_less_html ? wpforms_dashboard_widget.show_more_html : wpforms_dashboard_widget.show_less_html;
} );
},
/**
* Dismiss widget block.
*
* @since 1.8.7
*
* @param {Object} $clickedButton jQuery object of the clicked button.
*/
dismissWidgetBlock( $clickedButton ) {
$clickedButton.closest( '.wpforms-dash-widget-block' ).remove();
app.saveWidgetMeta( $clickedButton.data( 'field' ), 1 );
},
/**
* Dismiss recommended plugin block.
*
* @since 1.7.4
* @since 1.8.7 Deprecated.
*
* @deprecated Use WPFormsDashboardWidget.dismissWidgetBlock() instead.
*/
dismissRecommendedBlock() {
// eslint-disable-next-line no-console
console.warn( 'WARNING! WPFormsDashboardWidget.dismissRecommendedBlock() has been deprecated, please use WPFormsDashboardWidget.dismissWidgetBlock() instead.' );
$( '.wpforms-dash-widget-recommended-plugin-block' ).remove();
app.saveWidgetMeta( 'hide_recommended_block', 1 );
},
};
// Provide access to public functions/properties.
return app;
}( document, window, jQuery ) );
// Initialize.
WPFormsDashboardWidget.init();
@@ -0,0 +1 @@
let WPFormsDashboardWidget=window.WPFormsDashboardWidget||((t,s)=>{let a={$widget:s("#wpforms_reports_widget_lite"),$settingsBtn:s("#wpforms-dash-widget-settings-button"),$canvas:s("#wpforms-dash-widget-chart"),$chartDismissButton:s(".wpforms-dash-widget-dismiss-chart-upgrade"),$dismissButton:s(".wpforms-dash-widget-dismiss-icon"),$recommendedBlockDismissButton:s("#wpforms-dash-widget-dismiss-recommended-plugin-block")};var e=s("body").hasClass("rtl"),i={instance:null,settings:{type:"line",data:{labels:[],datasets:[{label:wpforms_dashboard_widget.i18n.entries,data:[],backgroundColor:"rgba(255, 129, 0, 0.135)",borderColor:"rgba(211, 126, 71, 1)",borderWidth:2,pointRadius:4,pointBorderWidth:1,pointBackgroundColor:"rgba(255, 255, 255, 1)"}]},options:{maintainAspectRatio:!1,scales:{x:{type:"timeseries",reverse:e,ticks:{source:"labels",padding:10,minRotation:25,maxRotation:25,callback(e,t,s){var a=Math.floor(s.length/7);return a<1||(s.length-t-1)%a==0?moment(e).format("MMM D"):void 0}}},y:{beginAtZero:!0,ticks:{maxTicksLimit:6,padding:20,callback(e){if(Math.floor(e)===e)return e}}}},elements:{line:{tension:0,fill:!0}},animation:!1,plugins:{legend:{display:!1},tooltip:{displayColors:!1,rtl:e}}}},init(){a.$canvas.length&&i.injectChartScript()},injectChartScript(){var e;wpforms_dashboard_widget.adapter_path&&((e=t.createElement("script")).src=wpforms_dashboard_widget.adapter_path,e.onload=i.initializeChart,e.onerror=function(e){console.log("Script injection failed:",e)},t.body.appendChild(e))},initializeChart(){var e=a.$canvas[0].getContext("2d");i.instance=new Chart(e,i.settings),i.updateUI()},updateUI(){i.updateWithDummyData(),i.instance.data.labels=i.settings.data.labels,i.instance.data.datasets[0].data=i.settings.data.datasets[0].data,i.instance.update()},updateWithDummyData(){var e,t=moment().endOf("day");let s;for(s=1;s<=7;s++)e=t.clone().subtract(s,"days"),i.settings.data.labels.push(e),i.settings.data.datasets[0].data.push({x:e,y:Math.floor(16*Math.random())+5})}},o={init(){s(o.ready)},ready(){i.init(),o.events(),o.graphSettings()},graphSettings(){a.$settingsBtn.on("click",function(){s(this).siblings(".wpforms-dash-widget-settings-menu").toggle()})},events(){o.formsListEvents(),o.handleChartClose(),o.handleRecommendedPluginsClose(),o.handleWidgetBlockClose()},formsListEvents(){a.$widget.on("click","#wpforms-dash-widget-forms-more",function(){o.toggleCompleteFormsList()})},handleChartClose(){a.$chartDismissButton.on("click",function(e){e.preventDefault(),o.saveWidgetMeta("hide_graph",1),s(".wpforms-dash-widget.wpforms-lite").addClass("wpforms-dash-widget-no-graph"),s(this).closest(".wpforms-dash-widget-chart-block-container").remove()})},handleRecommendedPluginsClose(){console.warn("WARNING! WPFormsDashboardWidget.handleRecommendedPluginsClose() has been deprecated, please use WPFormsDashboardWidget.handleWidgetBlockClose() instead."),a.$recommendedBlockDismissButton.on("click",function(){o.dismissRecommendedBlock()})},handleWidgetBlockClose(){a.$dismissButton.on("click",function(){o.dismissWidgetBlock(s(this))})},saveWidgetMeta(e,t){e={_wpnonce:wpforms_dashboard_widget.nonce,action:"wpforms_"+wpforms_dashboard_widget.slug+"_save_widget_meta",meta:e,value:t};s.post(ajaxurl,e)},toggleCompleteFormsList(){s("#wpforms-dash-widget-forms-list-table .wpforms-dash-widget-forms-list-hidden-el").toggle(),s("#wpforms-dash-widget-forms-more").html(function(e,t){return t===wpforms_dashboard_widget.show_less_html?wpforms_dashboard_widget.show_more_html:wpforms_dashboard_widget.show_less_html})},dismissWidgetBlock(e){e.closest(".wpforms-dash-widget-block").remove(),o.saveWidgetMeta(e.data("field"),1)},dismissRecommendedBlock(){console.warn("WARNING! WPFormsDashboardWidget.dismissRecommendedBlock() has been deprecated, please use WPFormsDashboardWidget.dismissWidgetBlock() instead."),s(".wpforms-dash-widget-recommended-plugin-block").remove(),o.saveWidgetMeta("hide_recommended_block",1)}};return o})(document,(window,jQuery));WPFormsDashboardWidget.init();
@@ -0,0 +1,176 @@
/* global wpforms_builder, wpforms_education */
/**
* WPForms Education core for Lite.
*
* @since 1.6.6
*/
// noinspection ES6ConvertVarToLetConst
/**
* @param wpforms_education.upgrade
* @param wpforms_education.upgrade.button
* @param wpforms_education.upgrade.doc
* @param wpforms_education.upgrade.message
* @param wpforms_education.upgrade.title
* @param wpforms_education.upgrade.title_plural
* @param wpforms_education.upgrade_bonus
*/
var WPFormsEducation = window.WPFormsEducation || {}; // eslint-disable-line no-var
WPFormsEducation.liteCore = window.WPFormsEducation.liteCore || ( function( document, window, $ ) {
/**
* Public functions and properties.
*
* @since 1.6.6
*
* @type {Object}
*/
const app = {
/**
* Start the engine.
*
* @since 1.6.6
*/
init() {
$( app.ready );
},
/**
* Document ready.
*
* @since 1.6.6
*/
ready() {
app.events();
},
/**
* Register JS events.
*
* @since 1.6.6
*/
events() {
app.openModalButtonClick();
},
/**
* Registers click events that should open upgrade modal.
*
* @since 1.6.6
*/
openModalButtonClick() {
$( document )
.on( 'click', '.education-modal:not(.wpforms-add-fields-button)', app.openModalButtonHandler )
.on( 'mousedown', '.education-modal.wpforms-add-fields-button', app.openModalButtonHandler );
},
/**
* Open education modal handler.
*
* @since 1.8.0
*
* @param {Event} event Event.
*/
openModalButtonHandler( event ) {
const $this = $( this );
if ( $this.data( 'action' ) && [ 'activate', 'install' ].includes( $this.data( 'action' ) ) ) {
return;
}
event.preventDefault();
event.stopImmediatePropagation();
let name = $this.data( 'name' );
if ( $this.hasClass( 'wpforms-add-fields-button' ) ) {
name = $this.text();
name += name.indexOf( wpforms_builder.field ) < 0 ? ' ' + wpforms_builder.field : '';
}
const utmContent = WPFormsEducation.core.getUTMContentValue( $this );
app.upgradeModal( name, utmContent, $this.data( 'license' ), $this.data( 'video' ), $this.data( 'plural' ) );
},
/**
* Upgrade modal.
*
* @since 1.6.6
*
* @param {string} feature Feature name.
* @param {string} utmContent UTM content.
* @param {string} type Feature license type: pro or elite.
* @param {string} video Feature video URL.
* @param {boolean} isPlural Is feature name plural.
*/
upgradeModal( feature, utmContent, type, video, isPlural ) {
// Provide a default value.
if ( typeof type === 'undefined' || type.length === 0 ) {
type = 'pro';
}
// Make sure we received only a supported type.
if ( $.inArray( type, [ 'pro', 'elite' ] ) < 0 ) {
return;
}
const message = wpforms_education.upgrade[ type ].message.replace( /%name%/g, feature );
const isVideoModal = Boolean( video );
const titleMessage = isPlural ? wpforms_education.upgrade[ type ].title_plural : wpforms_education.upgrade[ type ].title;
let modalWidth = WPFormsEducation.core.getUpgradeModalWidth( isVideoModal );
const modal = $.alert( {
backgroundDismiss: true,
title: feature + ' ' + titleMessage,
icon: 'fa fa-lock',
content: message,
boxWidth: modalWidth,
theme: 'modern,wpforms-education',
closeIcon: true,
onOpenBefore() {
if ( isVideoModal ) {
this.$el.addClass( 'has-video' );
}
const videoHtml = isVideoModal ? '<iframe src="' + video + '" class="feature-video" allowfullscreen="" width="475" height="267"></iframe>' : '';
this.$btnc.after( '<div class="discount-note">' + wpforms_education.upgrade_bonus + '</div>' );
this.$btnc.after( wpforms_education.upgrade[ type ].doc.replace( /%25name%25/g, feature ) );
this.$btnc.after( videoHtml );
this.$body.find( '.jconfirm-content' ).addClass( 'lite-upgrade' );
},
buttons: {
confirm: {
text: wpforms_education.upgrade[ type ].button,
btnClass: 'btn-confirm',
keys: [ 'enter' ],
action: () => {
window.open( WPFormsEducation.core.getUpgradeURL( utmContent, type ), '_blank' );
WPFormsEducation.core.upgradeModalThankYou( type );
},
},
},
} );
$( window ).on( 'resize', function() {
modalWidth = WPFormsEducation.core.getUpgradeModalWidth( isVideoModal );
if ( modal.isOpen() ) {
modal.setBoxWidth( modalWidth );
}
} );
},
};
// Provide access to public functions/properties.
return app;
}( document, window, jQuery ) );
// Initialize.
WPFormsEducation.liteCore.init();
@@ -0,0 +1 @@
var WPFormsEducation=window.WPFormsEducation||{};WPFormsEducation.liteCore=window.WPFormsEducation.liteCore||((e,l,c)=>{let a={init(){c(a.ready)},ready(){a.events()},events(){a.openModalButtonClick()},openModalButtonClick(){c(e).on("click",".education-modal:not(.wpforms-add-fields-button)",a.openModalButtonHandler).on("mousedown",".education-modal.wpforms-add-fields-button",a.openModalButtonHandler)},openModalButtonHandler(o){var t=c(this);if(!t.data("action")||!["activate","install"].includes(t.data("action"))){o.preventDefault(),o.stopImmediatePropagation();let e=t.data("name");t.hasClass("wpforms-add-fields-button")&&(e=t.text(),e+=e.indexOf(wpforms_builder.field)<0?" "+wpforms_builder.field:"");o=WPFormsEducation.core.getUTMContentValue(t);a.upgradeModal(e,o,t.data("license"),t.data("video"),t.data("plural"))}},upgradeModal(a,n,d,i,r){if(void 0!==d&&0!==d.length||(d="pro"),!(c.inArray(d,["pro","elite"])<0)){var s=wpforms_education.upgrade[d].message.replace(/%name%/g,a);let o=Boolean(i);r=r?wpforms_education.upgrade[d].title_plural:wpforms_education.upgrade[d].title;let e=WPFormsEducation.core.getUpgradeModalWidth(o),t=c.alert({backgroundDismiss:!0,title:a+" "+r,icon:"fa fa-lock",content:s,boxWidth:e,theme:"modern,wpforms-education",closeIcon:!0,onOpenBefore(){o&&this.$el.addClass("has-video");var e=o?'<iframe src="'+i+'" class="feature-video" allowfullscreen="" width="475" height="267"></iframe>':"";this.$btnc.after('<div class="discount-note">'+wpforms_education.upgrade_bonus+"</div>"),this.$btnc.after(wpforms_education.upgrade[d].doc.replace(/%25name%25/g,a)),this.$btnc.after(e),this.$body.find(".jconfirm-content").addClass("lite-upgrade")},buttons:{confirm:{text:wpforms_education.upgrade[d].button,btnClass:"btn-confirm",keys:["enter"],action:()=>{l.open(WPFormsEducation.core.getUpgradeURL(n,d),"_blank"),WPFormsEducation.core.upgradeModalThankYou(d)}}}});c(l).on("resize",function(){e=WPFormsEducation.core.getUpgradeModalWidth(o),t.isOpen()&&t.setBoxWidth(e)})}}};return a})(document,window,jQuery),WPFormsEducation.liteCore.init();
@@ -0,0 +1,565 @@
/* global wpforms_education_lite_connect, WPFormsChallenge */
/**
* WPForms Education for Lite.
*
* Lite Connect feature.
*
* @since 1.7.4
*/
// eslint-disable-next-line no-var
var WPFormsEducation = window.WPFormsEducation || {};
WPFormsEducation.liteConnect = window.WPFormsEducation.liteConnect || ( function( document, window, $ ) {
/**
* Public functions and properties.
*
* @since 1.7.4
*
* @type {Object}
*/
const app = {
/**
* Start the engine.
*
* @since 1.7.4
*/
init() {
$( app.ready );
// Page load.
$( window ).on( 'load', function() {
// In the case of jQuery 3.+, we need to wait for a ready event first.
if ( typeof $.ready.then === 'function' ) {
$.ready.then( app.load );
} else {
app.load();
}
} );
},
/**
* Document ready.
*
* @since 1.7.4
*/
ready() {
},
/**
* Page load.
*
* @since 1.7.4
*/
load() {
app.events();
app.initLiteConnectToggle();
app.maybeRevealBuilderTopBar();
},
/**
* Register JS events.
*
* @since 1.7.4
*/
events() {
app.enableLiteConnectToggleClick();
app.enableLiteConnectButtonClick();
app.dismissBuilderTopBarClick();
app.autoSaveToggleChange();
app.enableLiteConnectAIButtonClick();
},
/**
* Init Lite Connect toggle.
*
* @since 1.7.5
*/
initLiteConnectToggle() {
$( '.wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle input' ).prop( 'disabled', false );
},
/**
* Enable Lite Connect toggle mousedown handler.
*
* @since 1.7.4
*/
enableLiteConnectToggleClick() {
$( document ).on(
'mousedown touchstart',
'#wpforms-setting-row-lite-connect-enabled label, .wpforms-setting-lite-connect-auto-save-toggle label',
function( event ) {
const isTouchDevice = 'ontouchstart' in document.documentElement;
if ( ! isTouchDevice ) {
event.preventDefault();
}
const wrapper = $( this ).closest( '#wpforms-setting-row-lite-connect-enabled, .wpforms-setting-lite-connect-auto-save-toggle' );
const $input = wrapper.find( '#wpforms-setting-lite-connect-enabled' );
if ( $input.prop( 'disabled' ) ) {
return;
}
const isEnabled = $input.is( ':checked' );
app.openSettingsLiteConnectModal( isEnabled, function() {
$input
.trigger( 'click' )
.prop( 'disabled', true );
} );
}
);
},
/**
* Enable Lite Connect button click handler.
*
* @since 1.7.4
*/
enableLiteConnectButtonClick() {
$( document ).on(
'click',
'.wpforms-dyk-lite-connect .button-primary',
function( event ) {
event.preventDefault();
const $button = $( this );
if ( $button.hasClass( 'wpforms-is-enabled' ) ) {
window.open( $button.attr( 'href' ) );
return;
}
app.openSettingsLiteConnectModal(
false,
app.enableLiteConnectButtonModalConfirm
);
}
);
},
/**
* Enable Lite Connect button click handler.
*
* @since 1.9.1
*/
enableLiteConnectAIButtonClick() {
$( document ).on(
'click',
'.enable-lite-connect-modal',
app.handleLiteConnectModalClick,
);
},
/**
* Finalize the Lite Connect keys setup.
*
* @since 1.9.1
*
* @return {jQuery} AJAX request deferred object.
*/
finalizeLiteConnectSetup() {
return $.get( wpforms_education_lite_connect.ajax_url, {
action: 'wpforms_lite_connect_finalize',
nonce: wpforms_education_lite_connect.nonce,
} );
},
/**
* Handle Lite Connect modal click.
*
* @since 1.9.1
*
* @param {Event} event Event object.
*/
handleLiteConnectModalClick( event ) {
event.preventDefault();
app.openAILiteConnectEnableModal(
function() {
app.saveSettingAjaxPost( true, $(), function() {
app.switchSettingView( true, $( '#wpforms-builder-lite-connect-top-bar .wpforms-toggle-control' ) );
// Finalize the Lite Connect keys setup.
app.finalizeLiteConnectSetup()
.done( () => {
app.removeLiteConnectModalOnAIButtons();
} );
} );
}
);
},
/**
* Remove Lite Connect modal on AI buttons.
*
* @since 1.9.1
*/
removeLiteConnectModalOnAIButtons() {
$( '.enable-lite-connect-modal.wpforms-prevent-default' ).each( function() {
const $button = $( this );
// Update button class.
$button.removeClass( 'enable-lite-connect-modal wpforms-prevent-default' );
// Open AI Form Generator.
if ( $button.hasClass( 'wpforms-template-generate' ) ) {
$button.trigger( 'click' );
}
// Close the top bar in the form builder.
if ( $( '#wpforms-builder-lite-connect-top-bar' ).length ) {
app.toggleBuilderTopBar( false );
}
} );
},
/**
* Enable Lite Connect button modal confirm Callback.
*
* @since 1.7.4
*/
enableLiteConnectButtonModalConfirm() {
const $toggle = $( '.wpforms-dyk-lite-connect .button-primary' );
app.saveSettingAjaxPost( true, $toggle, function() {
app.switchSettingView( true, $toggle );
} );
},
/**
* Form Entry Backups information modal.
*
* @since 1.7.4
*
* @param {boolean} isEnabled Current setting state.
* @param {Function} confirmCallback Confirm button action.
*/
openSettingsLiteConnectModal( isEnabled, confirmCallback ) {
if ( isEnabled ) {
app.openSettingsLiteConnectDisableModal( confirmCallback );
} else {
app.openSettingsLiteConnectEnableModal( confirmCallback );
}
},
/**
* Form Entry Backups enable information modal.
*
* @since 1.7.4
*
* @param {Function} confirmCallback Confirm button action.
*/
openSettingsLiteConnectEnableModal( confirmCallback ) {
const $args = {
content: wp.template( 'wpforms-settings-lite-connect-modal-content' )(),
confirm: {
text: wpforms_education_lite_connect.enable_modal.confirm,
callback: confirmCallback,
},
};
app.enableModal( $args );
},
/**
* AI features enable information modal.
*
* @since 1.9.1
*
* @param {Function} confirmCallback Confirm button action.
*/
openAILiteConnectEnableModal( confirmCallback ) {
const $args = {
content: wp.template( 'wpforms-builder-ai-lite-connect-modal-content' )(),
confirm: {
text: wpforms_education_lite_connect.enable_ai.confirm,
callback: confirmCallback,
},
theme: 'modern, ai-modal',
};
// eslint-disable-next-line camelcase
wpforms_education_lite_connect.update_result.enabled_title = wpforms_education_lite_connect.enable_ai.enabled_title;
app.enableModal( $args );
},
/**
* Render Enable modal.
*
* @param {Object} $args Modal arguments.
*/
enableModal( $args ) {
$.alert( {
title: false,
content: $args.content,
icon: false,
type: 'orange',
boxWidth: 550,
theme: $args.theme || 'modern',
useBootstrap: false,
scrollToPreviousElement: false,
buttons: {
confirm: {
text: $args.confirm.text,
btnClass: 'btn-confirm',
keys: [ 'enter' ],
action() {
if ( typeof $args.confirm.callback === 'function' ) {
$args.confirm.callback();
}
// Maybe close Challenge popup.
if ( window.WPFormsChallenge ) {
// eslint-disable-next-line no-var
var completeChallenge = WPFormsChallenge.embed && WPFormsChallenge.embed.completeChallenge;
}
if ( typeof completeChallenge === 'function' ) {
completeChallenge();
}
},
},
cancel: {
text: wpforms_education_lite_connect.enable_modal.cancel,
action() {
$( '.wpforms-challenge-popup-container' ).removeClass( 'wpforms-invisible' );
},
},
},
onOpenBefore() {
$( 'body' ).addClass( 'wpforms-setting-lite-connect-modal' );
$( '.wpforms-challenge-popup-container' ).addClass( 'wpforms-invisible' );
},
onDestroy() {
$( 'body' ).removeClass( 'wpforms-setting-lite-connect-modal' );
},
} );
},
/**
* Form Entry Backups disable information modal.
*
* @since 1.7.4
*
* @param {Function} confirmCallback Confirm button action.
*/
openSettingsLiteConnectDisableModal( confirmCallback ) {
$.alert( {
title: wpforms_education_lite_connect.disable_modal.title,
content: wpforms_education_lite_connect.disable_modal.content,
icon: 'fa fa-exclamation-circle',
type: 'red',
boxWidth: '400px',
theme: 'modern',
useBootstrap: false,
animateFromElement: false,
scrollToPreviousElement: false,
buttons: {
cancel: {
text: wpforms_education_lite_connect.disable_modal.cancel,
keys: [ 'enter' ],
btnClass: 'btn-confirm',
},
confirm: {
text: wpforms_education_lite_connect.disable_modal.confirm,
action() {
if ( typeof confirmCallback === 'function' ) {
confirmCallback();
}
},
},
},
} );
},
/**
* Save Lite Connect Enabled setting AJAX post call.
*
* @since 1.7.4
*
* @param {boolean} isEnabled Lite Connect setting flag.
* @param {jQuery|undefined} $toggle Toggle control outer element.
* @param {Function} successCallback Success result callback.
*/
saveSettingAjaxPost( isEnabled, $toggle, successCallback ) {
$toggle = $toggle || $();
const $input = $toggle.find( 'input' );
// Perform AJAX request.
$.post(
wpforms_education_lite_connect.ajax_url,
{
action: 'wpforms_update_lite_connect_enabled_setting',
value: isEnabled ? 1 : 0,
nonce: wpforms_education_lite_connect.nonce,
}
).done( function( res ) {
if ( ! res.success ) {
$input.prop( 'checked', ! isEnabled );
app.updateResultModal( 'error' );
return;
}
app.updateResultModal( isEnabled ? 'enabled' : 'disabled' );
if ( typeof successCallback === 'function' ) {
successCallback();
}
} ).fail( function() {
$input.prop( 'checked', ! isEnabled );
app.updateResultModal( 'error' );
} ).always( function() {
$input.prop( 'disabled', false );
} );
},
/**
* Lite Connect toggle `change` event handler with "auto save" feature.
*
* @since 1.7.4
*/
autoSaveToggleChange() {
$( document ).on(
'change',
'.wpforms-toggle-control.wpforms-setting-lite-connect-auto-save-toggle input',
function() {
const $input = $( this ),
$toggle = $input.closest( '.wpforms-toggle-control' ),
isEnabled = $input.is( ':checked' );
app.saveSettingAjaxPost( isEnabled, $toggle, function() {
app.switchSettingView( isEnabled, $toggle );
app.removeLiteConnectModalOnAIButtons();
// Finalize the Lite Connect keys setup.
app.finalizeLiteConnectSetup();
} );
}
);
},
/**
* After updating setting via AJAX we should hide toggle container and show info container.
*
* @since 1.7.4
*
* @param {boolean} isEnabled Toggle state.
* @param {jQuery} $toggle Toggle control.
*/
switchSettingView( isEnabled, $toggle ) {
const $wrapper = $toggle.closest( '.wpforms-education-lite-connect-wrapper' ),
$setting = $wrapper.find( '.wpforms-education-lite-connect-setting' ),
$enabledInfo = $wrapper.find( '.wpforms-education-lite-connect-enabled-info' );
$setting.toggleClass( 'wpforms-hidden', isEnabled );
$enabledInfo.toggleClass( 'wpforms-hidden', ! isEnabled );
},
/**
* Update result message modal.
*
* @since 1.7.4
*
* @param {string} msg Message slug.
*/
updateResultModal( msg ) {
if ( ! wpforms_education_lite_connect.update_result[ msg ] ) {
return;
}
$.alert( {
title: wpforms_education_lite_connect.update_result[ msg + '_title' ],
content: wpforms_education_lite_connect.update_result[ msg ],
icon: 'fa fa-check-circle',
type: msg === 'error' ? 'red' : 'green',
theme: 'modern',
boxWidth: '400px',
useBootstrap: false,
animation: 'scale',
closeAnimation: 'scale',
animateFromElement: false,
scrollToPreviousElement: false,
buttons: {
confirm: {
text : wpforms_education_lite_connect.update_result.close,
btnClass: 'btn-confirm',
keys : [ 'enter' ],
},
},
} );
},
/**
* Reveal top bar in the Form Builder.
*
* @since 1.7.4
*/
maybeRevealBuilderTopBar() {
// Skip it is not Form Builder or Entry Backups is already enabled or top bar is dismissed.
if (
! window.wpforms_builder ||
wpforms_education_lite_connect.is_enabled === '1' ||
$( '#wpforms-builder-lite-connect-top-bar' ).length === 0
) {
return;
}
setTimeout( function() {
app.toggleBuilderTopBar( true );
}, 3000 );
},
/**
* Toggle top bar in the Form Builder.
*
* @since 1.7.4
*
* @param {boolean} open True for open, false for close.
*/
toggleBuilderTopBar( open ) {
const cssVar = '--wpforms-admin-bar-height';
const root = document.documentElement;
const topBarHeight = 45;
let adminBarHeight = parseInt( getComputedStyle( root ).getPropertyValue( cssVar ), 10 );
adminBarHeight += open ? topBarHeight : -topBarHeight;
root.setAttribute(
'style',
cssVar + ': ' + ( adminBarHeight ) + 'px!important;'
);
},
/**
* Dismiss top bar in the Form Builder.
*
* @since 1.7.4
*/
dismissBuilderTopBarClick() {
$( document ).on(
'click',
'#wpforms-builder-lite-connect-top-bar .wpforms-dismiss-button',
function() {
app.toggleBuilderTopBar( false );
}
);
},
};
// Provide access to public functions/properties.
return app;
}( document, window, jQuery ) );
// Initialize.
WPFormsEducation.liteConnect.init();
File diff suppressed because one or more lines are too long
@@ -0,0 +1,120 @@
/* global wpCookies */
/**
* Entries list page.
*/
const WPFormsEntryList = window.WPFormsEntryList || ( function( document, window, $ ) {
/**
* Public functions and properties.
*
* @since 1.8.9
*
* @type {Object}
*/
const app = {
/**
* Initialize the engine.
*
* @since 1.8.9
*/
init() {
$( app.ready );
},
/**
* Ready.
*
* @since 1.8.9
*/
ready() {
app.events();
},
/**
* Events.
*
* @since 1.8.9
*/
events() {
// Show sample data for entries when the Explore Entries is clicked.
$( '#wpforms-entries-explore' ).on( 'click', app.showEntries );
// Hide sample data for entries when the Hide Sample Data is clicked.
$( '#wpforms-hide-sample-data' ).on( 'click', app.hideEntries );
// Toggle the action dropdown.
$( '#wpforms-list-table-ext-edit-columns-cog' ).on( 'click', app.toggleActionDropdown );
$( '#wpcontent' ).on( 'click', app.hideActionDropdown );
},
/**
* Show entries.
*
* @since 1.8.9
*
* @param {Object} e Event object.
*/
showEntries( e ) {
e.preventDefault();
$( '.entries-modal' ).fadeOut( 500, function() {
$( '#wpforms-sample-entry-main-notice' ).slideDown( 250 );
$( '#wpforms-entries-list' ).addClass( 'wpforms-entires-sample-view' );
} );
wpCookies.set( 'wpforms_sample_entries', 'true', 2592000 ); // 1 month
},
/**
* Hide entries.
*
* @since 1.8.9
*
* @param {Object} e Event object.
*/
hideEntries( e ) {
e.preventDefault();
// Bypass animation as this is causing fade in/out issues.
$( '#wpforms-sample-entry-main-notice' ).fadeOut( 250, function() {
$( '#wpforms-entries-list' ).removeClass( 'wpforms-entires-sample-view' );
$( '.wpforms-sample-entry-notice' ).removeClass( 'wpf-no-animate' );
$( '.entries-modal' ).fadeIn( 500 );
} );
wpCookies.remove( 'wpforms_sample_entries' );
},
/**
* Toggle the action dropdown.
*
* @since 1.8.9
*
* @param {Object} e Event object.
*/
toggleActionDropdown( e ) {
e.preventDefault();
e.stopPropagation();
$( this ).parent().toggleClass( 'is_active' );
},
/**
* Hide the action dropdown.
*
* @since 1.8.9
*/
hideActionDropdown() {
const actionColumn = $( '#wpforms-list-table-ext-edit-columns-cog' ).parent();
if ( actionColumn.hasClass( 'is_active' ) ) {
actionColumn.removeClass( 'is_active' );
}
},
};
return app;
}( document, window, jQuery ) );
// Initialize the engine.
WPFormsEntryList.init();
@@ -0,0 +1 @@
let WPFormsEntryList=window.WPFormsEntryList||(t=>{let e={init(){t(e.ready)},ready(){e.events()},events(){t("#wpforms-entries-explore").on("click",e.showEntries),t("#wpforms-hide-sample-data").on("click",e.hideEntries),t("#wpforms-list-table-ext-edit-columns-cog").on("click",e.toggleActionDropdown),t("#wpcontent").on("click",e.hideActionDropdown)},showEntries(e){e.preventDefault(),t(".entries-modal").fadeOut(500,function(){t("#wpforms-sample-entry-main-notice").slideDown(250),t("#wpforms-entries-list").addClass("wpforms-entires-sample-view")}),wpCookies.set("wpforms_sample_entries","true",2592e3)},hideEntries(e){e.preventDefault(),t("#wpforms-sample-entry-main-notice").fadeOut(250,function(){t("#wpforms-entries-list").removeClass("wpforms-entires-sample-view"),t(".wpforms-sample-entry-notice").removeClass("wpf-no-animate"),t(".entries-modal").fadeIn(500)}),wpCookies.remove("wpforms_sample_entries")},toggleActionDropdown(e){e.preventDefault(),e.stopPropagation(),t(this).parent().toggleClass("is_active")},hideActionDropdown(){var e=t("#wpforms-list-table-ext-edit-columns-cog").parent();e.hasClass("is_active")&&e.removeClass("is_active")}};return e})((document,window,jQuery));WPFormsEntryList.init();
@@ -0,0 +1,105 @@
/**
* View single entry page.
*
* @since 1.8.9
*/
const WPFormsViewEntry = window.WPFormsViewEntry || ( function( document, window, $ ) {
/**
* Elements holder.
*
* @since 1.8.9
*
* @type {Object}
*/
let el = {};
/**
* Public functions and properties.
*
* @since 1.8.9
*
* @type {Object}
*/
const app = {
/**
* Initialize the engine.
*
* @since 1.8.9
*/
init() {
$( app.ready );
},
/**
* Document ready.
*
* @since 1.8.9
*/
ready() {
app.setup();
app.events();
},
/**
* Setup. Prepare some variables.
*
* @since 1.8.9
*/
setup() {
// Cache DOM elements.
el = {
menuClass: '.wpforms-entries-settings-menu',
};
},
/**
* Events.
*
* @since 1.8.9
*/
events() {
$( '#wpforms-entries-settings-button' ).on( 'click', app.menuToggle );
$( '#wpcontent' ).on( 'click', app.menuHide );
},
/**
* Handler for the menu toggle behavior.
*
* @since 1.8.9
*
* @param {Object} event Event object.
*/
menuToggle( event ) {
event.preventDefault();
event.stopPropagation();
// Toggle the visibility of the matched element.
$( el.menuClass ).toggle( 0, function() {
const $menu = $( this );
// When the menu is open, aria-expended="true".
$menu.attr( 'aria-expanded', $menu.is( ':visible' ) );
} );
},
/**
* Handler for hiding the menu when a click is outside of it.
*
* @since 1.8.9
*
* @param {Object} event Event object.
*/
menuHide( event ) {
// Check if the clicked element is not the menu container or a child of it.
if ( ! $( event.target ).closest( `${ el.menuClass }:visible` ).length ) {
$( el.menuClass ).attr( 'aria-expanded', 'false' ).hide();
}
},
};
return app;
}( document, window, jQuery ) );
// Initialize the engine.
WPFormsViewEntry.init();
@@ -0,0 +1 @@
let WPFormsViewEntry=window.WPFormsViewEntry||(t=>{let n={},e={init(){t(e.ready)},ready(){e.setup(),e.events()},setup(){n={menuClass:".wpforms-entries-settings-menu"}},events(){t("#wpforms-entries-settings-button").on("click",e.menuToggle),t("#wpcontent").on("click",e.menuHide)},menuToggle(e){e.preventDefault(),e.stopPropagation(),t(n.menuClass).toggle(0,function(){var e=t(this);e.attr("aria-expanded",e.is(":visible"))})},menuHide(e){t(e.target).closest(n.menuClass+":visible").length||t(n.menuClass).attr("aria-expanded","false").hide()}};return e})((document,window,jQuery));WPFormsViewEntry.init();
@@ -0,0 +1,452 @@
{
"classic": {
"name": "Classic",
"settings": {
"fieldSize": "medium",
"fieldBorderRadius": "0px",
"fieldBorderStyle": "solid",
"fieldBorderSize": "1px",
"fieldBackgroundColor": "#ffffff",
"fieldBorderColor": "#cccccc",
"fieldTextColor": "#444444",
"fieldMenuColor": "#ffffff",
"labelSize": "small",
"labelColor": "#262626",
"labelSublabelColor": "#7f7f7f",
"labelErrorColor": "#ff0000",
"buttonSize": "medium",
"buttonBorderStyle": "solid",
"buttonBorderSize": "1px",
"buttonBorderRadius": "0px",
"buttonBorderColor": "#cccccc",
"buttonBackgroundColor": "#dddddd",
"buttonTextColor": "#666666",
"pageBreakColor": "#dddddd"
}
},
"default": {
"name": "Default",
"settings": {
"fieldSize": "medium",
"fieldBorderRadius": "3px",
"fieldBorderStyle": "solid",
"fieldBorderSize": "1px",
"fieldBackgroundColor": "#ffffff",
"fieldBorderColor": "rgba( 0, 0, 0, 0.25 )",
"fieldTextColor": "rgba( 0, 0, 0, 0.7 )",
"fieldMenuColor": "#ffffff",
"labelSize": "medium",
"labelColor": "rgba( 0, 0, 0, 0.85 )",
"labelSublabelColor": "rgba( 0, 0, 0, 0.55 )",
"labelErrorColor": "#d63637",
"buttonSize": "medium",
"buttonBorderStyle": "none",
"buttonBorderSize": "1px",
"buttonBorderRadius": "3px",
"buttonBorderColor": "#066aab",
"buttonBackgroundColor": "#066aab",
"buttonTextColor": "#ffffff",
"pageBreakColor": "#066aab"
}
},
"cerulean": {
"name": "Cerulean",
"settings": {
"buttonBackgroundColor": "#0090bf",
"buttonTextColor": "#e5f4f9",
"labelColor": "#262c2e",
"labelSublabelColor": "#4c585d",
"fieldBorderColor": "#afb6b9"
}
},
"ocean": {
"name": "Ocean",
"settings": {
"buttonBackgroundColor": "#348180",
"buttonTextColor": "#ebf2f2",
"labelColor": "#181c1c",
"labelSublabelColor": "#636c6c",
"fieldBorderColor": "#9ea3a3"
}
},
"fern": {
"name": "Fern",
"settings": {
"buttonBackgroundColor": "#58bb5d",
"buttonTextColor": "#eef8ef",
"labelColor": "#383c39",
"labelSublabelColor": "#707971",
"fieldBorderColor": "#c6cbc6"
}
},
"lilac": {
"name": "Lilac",
"settings": {
"buttonBackgroundColor": "#9864c0",
"buttonTextColor": "#f5eff9",
"labelColor": "#333135",
"labelSublabelColor": "#807b84",
"fieldBorderColor": "#bfbdc1"
}
},
"taffy": {
"name": "Taffy",
"settings": {
"buttonBackgroundColor": "#f785c0",
"buttonTextColor": "#fef3f9",
"labelColor": "#484446",
"labelSublabelColor": "#b5aab0",
"fieldBorderColor": "#dad4d7"
}
},
"tangerine": {
"name": "Tangerine",
"settings": {
"buttonBackgroundColor": "#e27730",
"buttonTextColor": "#fcf1ea",
"labelColor": "#3d3835",
"labelSublabelColor": "#79716b",
"fieldBorderColor": "#cbc6c2"
}
},
"slate": {
"name": "Slate",
"settings": {
"buttonBackgroundColor": "#67687d",
"buttonTextColor": "#f0f0f2",
"labelColor": "#3a3a41",
"labelSublabelColor": "#686974",
"fieldBorderColor": "#c3c3c7"
}
},
"iron": {
"name": "Iron",
"settings": {
"buttonBackgroundColor": "#2e2c2f",
"buttonTextColor": "#eaeaea",
"labelColor": "#2e2c2e",
"labelSublabelColor": "#969596",
"fieldBorderColor": "#cbcacb"
}
},
"aero": {
"name": "Aero",
"settings": {
"buttonBackgroundColor": "#3961FF",
"buttonTextColor": "#FFFFFF",
"labelColor": "#000000",
"labelSublabelColor": "#6A6A6A",
"fieldBorderColor": "#D2D2D2"
}
},
"blossom": {
"name": "Blossom",
"settings": {
"buttonBackgroundColor": "#d75e42",
"buttonTextColor": "#ffffff",
"labelColor": "#32261b",
"labelSublabelColor": "#634d36",
"fieldBorderColor": "rgba( 51, 26, 0, 0.15 )"
}
},
"bokeh": {
"name": "Bokeh",
"settings": {
"buttonBackgroundColor": "#272633",
"buttonTextColor": "#FFFFFF",
"labelColor": "#272633",
"labelSublabelColor": "#625E53",
"fieldBorderColor": "#FCF5F3"
}
},
"concrete": {
"name": "Concrete",
"settings": {
"buttonBackgroundColor": "#f04970",
"buttonTextColor": "#ffffff",
"labelColor": "#ffffff",
"labelSublabelColor": "rgba(255, 255, 255, 0.50)",
"fieldBorderColor": "rgba(255, 255, 255, 0.25)"
}
},
"cottoncandy": {
"name": "Cotton Candy",
"settings": {
"buttonBackgroundColor": "#952653",
"buttonTextColor": "#ffffff",
"labelColor": "#ffffff",
"labelSublabelColor": "rgba(255, 255, 255, 0.75)",
"fieldBorderColor": "rgba(255, 255, 255, 0.5)"
}
},
"craft": {
"name": "Craft",
"settings": {
"buttonBackgroundColor": "rgba(0 ,0 ,0 ,0)",
"buttonTextColor": "#ffffff",
"labelColor": "#ffffff",
"labelSublabelColor": "#e0c5c5",
"fieldBorderColor": "rgba(255, 255, 255, 0.50)"
}
},
"elegance": {
"name": "Elegance",
"settings": {
"buttonBackgroundColor": "#7d7d7d",
"buttonTextColor": "#ffffff",
"labelColor": "#7d7d7d",
"labelSublabelColor": "#7d7d7d",
"fieldBorderColor": "#e6e6e4"
}
},
"feathered": {
"name": "Feathered",
"settings": {
"buttonBackgroundColor": "#46443a",
"buttonTextColor": "#ffffff",
"labelColor": "#46443a",
"labelSublabelColor": "#625e53",
"fieldBorderColor": "rgba(0, 0, 0, 0.15)"
}
},
"flynn": {
"name": "Flynn",
"settings": {
"buttonBackgroundColor": "f0f0ff",
"buttonTextColor": "#4b49e0",
"labelColor": "#4b49e0",
"labelSublabelColor": "#4b49e0",
"fieldBorderColor": "#4b49e0"
}
},
"fresh": {
"name": "Fresh",
"settings": {
"buttonBackgroundColor": "#2da314",
"buttonTextColor": "#ffffff",
"labelColor": "#000000",
"labelSublabelColor": "#404040",
"fieldBorderColor": "rgba(0, 0, 0, 0.30)"
}
},
"frost": {
"name": "Frost",
"settings": {
"buttonBackgroundColor": "#e03f79",
"buttonTextColor": "#ffffff",
"labelColor": "#09598d",
"labelSublabelColor": "#578bad",
"fieldBorderColor": "#6e9fbe"
}
},
"gloom": {
"name": "Gloom",
"settings": {
"buttonBackgroundColor": "#258c60",
"buttonTextColor": "#ffffff",
"labelColor": "#a9abad",
"labelSublabelColor": "rgba(255, 255, 255, .7)",
"fieldBorderColor": "#4a4b4f"
}
},
"greenery": {
"name": "Greenery",
"settings": {
"buttonBackgroundColor": "#1e1f19",
"buttonTextColor": "#ffffff",
"labelColor": "#262c1e",
"labelSublabelColor": "rgba(38, 44, 30, 0.5)",
"fieldBorderColor": "rgba(0, 0, 0, 0.10)"
}
},
"hallway": {
"name": "Hallway",
"settings": {
"buttonBackgroundColor": "#000000",
"buttonTextColor": "#ffffff",
"labelColor": "#000000",
"labelSublabelColor": "#000000",
"fieldBorderColor": "#cbcbcb"
}
},
"harvest": {
"name": "Harvest",
"settings": {
"buttonBackgroundColor": "#984628",
"buttonTextColor": "#ffffff",
"labelColor": "#481f10",
"labelSublabelColor": "#984628",
"fieldBorderColor": "rgba( 0, 0, 0, 0.25 )"
}
},
"jungle": {
"name": "Jungle",
"settings": {
"buttonBackgroundColor": "rgba(14, 143, 28, 0.5)",
"buttonTextColor": "#ffffff",
"labelColor": "rgba(255, 255, 255, 0.7)",
"labelSublabelColor": "rgba(255, 255, 255, 0.6)",
"fieldBorderColor": "rgba( 0, 0, 0, 0.25 )"
}
},
"lush": {
"name": "Lush",
"settings": {
"buttonBackgroundColor": "#962d3c",
"buttonTextColor": "#ffffff",
"labelColor": "#312425",
"labelSublabelColor": "rgba(49, 36, 37, 0.5)",
"fieldBorderColor": "rgba(0, 0, 0, 0.10)"
}
},
"manhattan": {
"name": "Manhattan",
"settings": {
"buttonBackgroundColor": "rgba(0, 0, 0, 0.32)",
"buttonTextColor": "#ffffff",
"labelColor": "#ffffff",
"labelSublabelColor": "rgba(255, 255, 255, 0.75)",
"fieldBorderColor": "rgba(255, 255, 255, 0.15)"
}
},
"matrix": {
"name": "Matrix",
"settings": {
"buttonBackgroundColor": "#8ee8d6",
"buttonTextColor": "#111a12",
"labelColor": "#d8fff7",
"labelSublabelColor": "#d8fff7",
"fieldBorderColor": "#8ee8d6"
}
},
"monstera": {
"name": "Monstera",
"settings": {
"buttonBackgroundColor": "#2f590f",
"buttonTextColor": "#ffffff",
"labelColor": "#000000",
"labelSublabelColor": "#6a6a6a",
"fieldBorderColor": "#a3a9c2"
}
},
"negative": {
"name": "Negative",
"settings": {
"buttonBackgroundColor": "#ff4d24",
"buttonTextColor": "#ffffff",
"labelColor": "#ffffff",
"labelSublabelColor": "#999999",
"fieldBorderColor": "#616265"
}
},
"palm": {
"name": "Palm",
"settings": {
"buttonBackgroundColor": "#000000",
"buttonTextColor": "#ffffff",
"labelColor": "#000000",
"labelSublabelColor": "#6a6a6a",
"fieldBorderColor": "#636363"
}
},
"plaster": {
"name": "Plaster",
"settings": {
"buttonBackgroundColor": "#494848",
"buttonTextColor": "#ffffff",
"labelColor": "#494848",
"labelSublabelColor": "#afafaf",
"fieldBorderColor": "#afafaf"
}
},
"range": {
"name": "Range",
"settings": {
"buttonBackgroundColor": "#ae0120",
"buttonTextColor": "#ffffff",
"labelColor": "#000000",
"labelSublabelColor": "#6a6a6a",
"fieldBorderColor": "rgba(61, 0, 0, 0.15)"
}
},
"rustic": {
"name": "Rustic",
"settings": {
"buttonBackgroundColor": "rgba(0, 0, 0, 0.5)",
"buttonTextColor": "#ffffff",
"labelColor": "#ffffff",
"labelSublabelColor": "rgba(255, 255, 255, 0.75)",
"fieldBorderColor": "rgba( 0, 0, 0, 0.25 )"
}
},
"scrap": {
"name": "Scrap",
"settings": {
"buttonBackgroundColor": "#2f3133",
"buttonTextColor": "#ffffff",
"labelColor": "#2f3133",
"labelSublabelColor": "#2f3133",
"fieldBorderColor": "rgba( 0, 0, 0, 0.25 )"
}
},
"solitude": {
"name": "Solitude",
"settings": {
"buttonBackgroundColor": "#0e0f32",
"buttonTextColor": "#ffffff",
"labelColor": "#0e0f32",
"labelSublabelColor": "#64647f",
"fieldBorderColor": "rgba( 0, 0, 0, 0.25 )"
}
},
"sonic": {
"name": "Sonic",
"settings": {
"buttonBackgroundColor": "#073eff",
"buttonTextColor": "#ffffff",
"labelColor": "#666666",
"labelSublabelColor": "#666666",
"fieldBorderColor": "#073eff"
}
},
"tidal": {
"name": "Tidal",
"settings": {
"buttonBackgroundColor": "#474e54",
"buttonTextColor": "#ffffff",
"labelColor": "#ffffff",
"labelSublabelColor": "#a7b3be",
"fieldBorderColor": "#474e54"
}
},
"tranquil": {
"name": "Tranquil",
"settings": {
"buttonBackgroundColor": "#366ce3",
"buttonTextColor": "#ffffff",
"labelColor": "#373d4a",
"labelSublabelColor": "#606775",
"fieldBorderColor": "rgba( 0, 0, 0, 0.25 )"
}
},
"vintage": {
"name": "Vintage",
"settings": {
"buttonBackgroundColor": "#f2cd52",
"buttonTextColor": "#1a1a1a",
"labelColor": "#1a1a1a",
"labelSublabelColor": "#4d4d4d",
"fieldBorderColor": "#bababa"
}
},
"western": {
"name": "Western",
"settings": {
"buttonBackgroundColor": "rgba(255, 255, 255, 0.05)",
"buttonTextColor": "#e0b495",
"labelColor": "#ffffff",
"labelSublabelColor": "#e0b495",
"fieldBorderColor": "#e0b495"
}
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,121 @@
/* jshint es3: false, esversion: 6 */
import education from '../../../../js/integrations/gutenberg/modules/education.js';
import common from '../../../../js/integrations/gutenberg/modules/common.js';
import themesPanel from '../../../../js/integrations/gutenberg/modules/themes-panel.js';
import containerStyles from '../../../../js/integrations/gutenberg/modules/container-styles.js';
import backgroundStyles from '../../../../js/integrations/gutenberg/modules/background-styles.js';
import buttonStyles from '../../../../js/integrations/gutenberg/modules/button-styles.js';
import advancedSettings from '../../../../js/integrations/gutenberg/modules/advanced-settings.js';
import fieldStyles from '../../../../js/integrations/gutenberg/modules/field-styles.js';
/**
* Gutenberg editor block for Lite.
*
* @since 1.8.8
*/
const WPForms = window.WPForms || {};
WPForms.FormSelector = WPForms.FormSelector || ( function() {
/**
* Public functions and properties.
*
* @since 1.8.8
*
* @type {Object}
*/
const app = {
/**
* Common module object.
*
* @since 1.8.8
*
* @type {Object}
*/
common: {},
/**
* Panel modules objects.
*
* @since 1.8.8
*
* @type {Object}
*/
panels: {},
/**
* Start the engine.
*
* @since 1.8.8
*/
init() {
app.education = education;
app.common = common;
app.panels.themes = themesPanel;
app.panels.container = containerStyles;
app.panels.background = backgroundStyles;
app.panels.button = buttonStyles;
app.panels.advanced = advancedSettings;
app.panels.field = fieldStyles;
const blockOptions = {
panels: app.panels,
getThemesPanel: app.panels.themes.getThemesPanel,
getFieldStyles: app.panels.field.getFieldStyles,
getContainerStyles: app.panels.container.getContainerStyles,
getBackgroundStyles: app.panels.background.getBackgroundStyles,
getButtonStyles: app.panels.button.getButtonStyles,
getCommonAttributes: app.getCommonAttributes,
setStylesHandlers: app.getStyleHandlers(),
education: app.education,
};
// Initialize Advanced Settings module.
app.panels.advanced.init( app.common );
// Initialize block.
app.common.init( blockOptions );
},
/**
* Get style handlers.
*
* @since 1.8.8
*
* @return {Object} Style handlers.
*/
getCommonAttributes() {
return {
...app.panels.field.getBlockAttributes(),
...app.panels.container.getBlockAttributes(),
...app.panels.background.getBlockAttributes(),
...app.panels.button.getBlockAttributes(),
};
},
/**
* Get style handlers.
*
* @since 1.8.8
*
* @return {Object} Style handlers.
*/
getStyleHandlers() {
return {
'background-image': app.panels.background.setContainerBackgroundImage,
'background-position': app.panels.background.setContainerBackgroundPosition,
'background-repeat': app.panels.background.setContainerBackgroundRepeat,
'background-width': app.panels.background.setContainerBackgroundWidth,
'background-height': app.panels.background.setContainerBackgroundHeight,
'background-color': app.panels.background.setBackgroundColor,
'background-url': app.panels.background.setBackgroundUrl,
};
},
};
// Provide access to public functions/properties.
return app;
}() );
// Initialize.
WPForms.FormSelector.init();
@@ -0,0 +1,452 @@
{
"classic": {
"name": "Classic",
"settings": {
"fieldSize": "medium",
"fieldBorderRadius": "0px",
"fieldBorderStyle": "solid",
"fieldBorderSize": "1px",
"fieldBackgroundColor": "#ffffff",
"fieldBorderColor": "#cccccc",
"fieldTextColor": "#444444",
"fieldMenuColor": "#ffffff",
"labelSize": "small",
"labelColor": "#262626",
"labelSublabelColor": "#7f7f7f",
"labelErrorColor": "#ff0000",
"buttonSize": "medium",
"buttonBorderStyle": "solid",
"buttonBorderSize": "1px",
"buttonBorderRadius": "0px",
"buttonBorderColor": "#cccccc",
"buttonBackgroundColor": "#dddddd",
"buttonTextColor": "#666666",
"pageBreakColor": "#dddddd"
}
},
"default": {
"name": "Default",
"settings": {
"fieldSize": "medium",
"fieldBorderRadius": "3px",
"fieldBorderStyle": "solid",
"fieldBorderSize": "1px",
"fieldBackgroundColor": "#ffffff",
"fieldBorderColor": "rgba( 0, 0, 0, 0.25 )",
"fieldTextColor": "rgba( 0, 0, 0, 0.7 )",
"fieldMenuColor": "#ffffff",
"labelSize": "medium",
"labelColor": "rgba( 0, 0, 0, 0.85 )",
"labelSublabelColor": "rgba( 0, 0, 0, 0.55 )",
"labelErrorColor": "#d63637",
"buttonSize": "medium",
"buttonBorderStyle": "none",
"buttonBorderSize": "1px",
"buttonBorderRadius": "3px",
"buttonBorderColor": "#066aab",
"buttonBackgroundColor": "#066aab",
"buttonTextColor": "#ffffff",
"pageBreakColor": "#066aab"
}
},
"cerulean": {
"name": "Cerulean",
"settings": {
"buttonBackgroundColor": "#0090bf",
"buttonTextColor": "#e5f4f9",
"labelColor": "#262c2e",
"labelSublabelColor": "#4c585d",
"fieldBorderColor": "#afb6b9"
}
},
"ocean": {
"name": "Ocean",
"settings": {
"buttonBackgroundColor": "#348180",
"buttonTextColor": "#ebf2f2",
"labelColor": "#181c1c",
"labelSublabelColor": "#636c6c",
"fieldBorderColor": "#9ea3a3"
}
},
"fern": {
"name": "Fern",
"settings": {
"buttonBackgroundColor": "#58bb5d",
"buttonTextColor": "#eef8ef",
"labelColor": "#383c39",
"labelSublabelColor": "#707971",
"fieldBorderColor": "#c6cbc6"
}
},
"lilac": {
"name": "Lilac",
"settings": {
"buttonBackgroundColor": "#9864c0",
"buttonTextColor": "#f5eff9",
"labelColor": "#333135",
"labelSublabelColor": "#807b84",
"fieldBorderColor": "#bfbdc1"
}
},
"taffy": {
"name": "Taffy",
"settings": {
"buttonBackgroundColor": "#f785c0",
"buttonTextColor": "#fef3f9",
"labelColor": "#484446",
"labelSublabelColor": "#b5aab0",
"fieldBorderColor": "#dad4d7"
}
},
"tangerine": {
"name": "Tangerine",
"settings": {
"buttonBackgroundColor": "#e27730",
"buttonTextColor": "#fcf1ea",
"labelColor": "#3d3835",
"labelSublabelColor": "#79716b",
"fieldBorderColor": "#cbc6c2"
}
},
"slate": {
"name": "Slate",
"settings": {
"buttonBackgroundColor": "#67687d",
"buttonTextColor": "#f0f0f2",
"labelColor": "#3a3a41",
"labelSublabelColor": "#686974",
"fieldBorderColor": "#c3c3c7"
}
},
"iron": {
"name": "Iron",
"settings": {
"buttonBackgroundColor": "#2e2c2f",
"buttonTextColor": "#eaeaea",
"labelColor": "#2e2c2e",
"labelSublabelColor": "#969596",
"fieldBorderColor": "#cbcacb"
}
},
"aero": {
"name": "Aero",
"settings": {
"buttonBackgroundColor": "#3961FF",
"buttonTextColor": "#FFFFFF",
"labelColor": "#000000",
"labelSublabelColor": "#6A6A6A",
"fieldBorderColor": "#D2D2D2"
}
},
"blossom": {
"name": "Blossom",
"settings": {
"buttonBackgroundColor": "#d75e42",
"buttonTextColor": "#ffffff",
"labelColor": "#32261b",
"labelSublabelColor": "#634d36",
"fieldBorderColor": "rgba( 51, 26, 0, 0.15 )"
}
},
"bokeh": {
"name": "Bokeh",
"settings": {
"buttonBackgroundColor": "#272633",
"buttonTextColor": "#FFFFFF",
"labelColor": "#272633",
"labelSublabelColor": "#625E53",
"fieldBorderColor": "#FCF5F3"
}
},
"concrete": {
"name": "Concrete",
"settings": {
"buttonBackgroundColor": "#f04970",
"buttonTextColor": "#ffffff",
"labelColor": "#ffffff",
"labelSublabelColor": "rgba(255, 255, 255, 0.50)",
"fieldBorderColor": "rgba(255, 255, 255, 0.25)"
}
},
"cottoncandy": {
"name": "Cotton Candy",
"settings": {
"buttonBackgroundColor": "#952653",
"buttonTextColor": "#ffffff",
"labelColor": "#ffffff",
"labelSublabelColor": "rgba(255, 255, 255, 0.75)",
"fieldBorderColor": "rgba(255, 255, 255, 0.5)"
}
},
"craft": {
"name": "Craft",
"settings": {
"buttonBackgroundColor": "rgba(0 ,0 ,0 ,0)",
"buttonTextColor": "#ffffff",
"labelColor": "#ffffff",
"labelSublabelColor": "#e0c5c5",
"fieldBorderColor": "rgba(255, 255, 255, 0.50)"
}
},
"elegance": {
"name": "Elegance",
"settings": {
"buttonBackgroundColor": "#7d7d7d",
"buttonTextColor": "#ffffff",
"labelColor": "#7d7d7d",
"labelSublabelColor": "#7d7d7d",
"fieldBorderColor": "#e6e6e4"
}
},
"feathered": {
"name": "Feathered",
"settings": {
"buttonBackgroundColor": "#46443a",
"buttonTextColor": "#ffffff",
"labelColor": "#46443a",
"labelSublabelColor": "#625e53",
"fieldBorderColor": "rgba(0, 0, 0, 0.15)"
}
},
"flynn": {
"name": "Flynn",
"settings": {
"buttonBackgroundColor": "f0f0ff",
"buttonTextColor": "#4b49e0",
"labelColor": "#4b49e0",
"labelSublabelColor": "#4b49e0",
"fieldBorderColor": "#4b49e0"
}
},
"fresh": {
"name": "Fresh",
"settings": {
"buttonBackgroundColor": "#2da314",
"buttonTextColor": "#ffffff",
"labelColor": "#000000",
"labelSublabelColor": "#404040",
"fieldBorderColor": "rgba(0, 0, 0, 0.30)"
}
},
"frost": {
"name": "Frost",
"settings": {
"buttonBackgroundColor": "#e03f79",
"buttonTextColor": "#ffffff",
"labelColor": "#09598d",
"labelSublabelColor": "#578bad",
"fieldBorderColor": "#6e9fbe"
}
},
"gloom": {
"name": "Gloom",
"settings": {
"buttonBackgroundColor": "#258c60",
"buttonTextColor": "#ffffff",
"labelColor": "#a9abad",
"labelSublabelColor": "rgba(255, 255, 255, .7)",
"fieldBorderColor": "#4a4b4f"
}
},
"greenery": {
"name": "Greenery",
"settings": {
"buttonBackgroundColor": "#1e1f19",
"buttonTextColor": "#ffffff",
"labelColor": "#262c1e",
"labelSublabelColor": "rgba(38, 44, 30, 0.5)",
"fieldBorderColor": "rgba(0, 0, 0, 0.10)"
}
},
"hallway": {
"name": "Hallway",
"settings": {
"buttonBackgroundColor": "#000000",
"buttonTextColor": "#ffffff",
"labelColor": "#000000",
"labelSublabelColor": "#000000",
"fieldBorderColor": "#cbcbcb"
}
},
"harvest": {
"name": "Harvest",
"settings": {
"buttonBackgroundColor": "#984628",
"buttonTextColor": "#ffffff",
"labelColor": "#481f10",
"labelSublabelColor": "#984628",
"fieldBorderColor": "rgba( 0, 0, 0, 0.25 )"
}
},
"jungle": {
"name": "Jungle",
"settings": {
"buttonBackgroundColor": "rgba(14, 143, 28, 0.5)",
"buttonTextColor": "#ffffff",
"labelColor": "rgba(255, 255, 255, 0.7)",
"labelSublabelColor": "rgba(255, 255, 255, 0.6)",
"fieldBorderColor": "rgba( 0, 0, 0, 0.25 )"
}
},
"lush": {
"name": "Lush",
"settings": {
"buttonBackgroundColor": "#962d3c",
"buttonTextColor": "#ffffff",
"labelColor": "#312425",
"labelSublabelColor": "rgba(49, 36, 37, 0.5)",
"fieldBorderColor": "rgba(0, 0, 0, 0.10)"
}
},
"manhattan": {
"name": "Manhattan",
"settings": {
"buttonBackgroundColor": "rgba(0, 0, 0, 0.32)",
"buttonTextColor": "#ffffff",
"labelColor": "#ffffff",
"labelSublabelColor": "rgba(255, 255, 255, 0.75)",
"fieldBorderColor": "rgba(255, 255, 255, 0.15)"
}
},
"matrix": {
"name": "Matrix",
"settings": {
"buttonBackgroundColor": "#8ee8d6",
"buttonTextColor": "#111a12",
"labelColor": "#d8fff7",
"labelSublabelColor": "#d8fff7",
"fieldBorderColor": "#8ee8d6"
}
},
"monstera": {
"name": "Monstera",
"settings": {
"buttonBackgroundColor": "#2f590f",
"buttonTextColor": "#ffffff",
"labelColor": "#000000",
"labelSublabelColor": "#6a6a6a",
"fieldBorderColor": "#a3a9c2"
}
},
"negative": {
"name": "Negative",
"settings": {
"buttonBackgroundColor": "#ff4d24",
"buttonTextColor": "#ffffff",
"labelColor": "#ffffff",
"labelSublabelColor": "#999999",
"fieldBorderColor": "#616265"
}
},
"palm": {
"name": "Palm",
"settings": {
"buttonBackgroundColor": "#000000",
"buttonTextColor": "#ffffff",
"labelColor": "#000000",
"labelSublabelColor": "#6a6a6a",
"fieldBorderColor": "#636363"
}
},
"plaster": {
"name": "Plaster",
"settings": {
"buttonBackgroundColor": "#494848",
"buttonTextColor": "#ffffff",
"labelColor": "#494848",
"labelSublabelColor": "#afafaf",
"fieldBorderColor": "#afafaf"
}
},
"range": {
"name": "Range",
"settings": {
"buttonBackgroundColor": "#ae0120",
"buttonTextColor": "#ffffff",
"labelColor": "#000000",
"labelSublabelColor": "#6a6a6a",
"fieldBorderColor": "rgba(61, 0, 0, 0.15)"
}
},
"rustic": {
"name": "Rustic",
"settings": {
"buttonBackgroundColor": "rgba(0, 0, 0, 0.5)",
"buttonTextColor": "#ffffff",
"labelColor": "#ffffff",
"labelSublabelColor": "rgba(255, 255, 255, 0.75)",
"fieldBorderColor": "rgba( 0, 0, 0, 0.25 )"
}
},
"scrap": {
"name": "Scrap",
"settings": {
"buttonBackgroundColor": "#2f3133",
"buttonTextColor": "#ffffff",
"labelColor": "#2f3133",
"labelSublabelColor": "#2f3133",
"fieldBorderColor": "rgba( 0, 0, 0, 0.25 )"
}
},
"solitude": {
"name": "Solitude",
"settings": {
"buttonBackgroundColor": "#0e0f32",
"buttonTextColor": "#ffffff",
"labelColor": "#0e0f32",
"labelSublabelColor": "#64647f",
"fieldBorderColor": "rgba( 0, 0, 0, 0.25 )"
}
},
"sonic": {
"name": "Sonic",
"settings": {
"buttonBackgroundColor": "#073eff",
"buttonTextColor": "#ffffff",
"labelColor": "#666666",
"labelSublabelColor": "#666666",
"fieldBorderColor": "#073eff"
}
},
"tidal": {
"name": "Tidal",
"settings": {
"buttonBackgroundColor": "#474e54",
"buttonTextColor": "#ffffff",
"labelColor": "#ffffff",
"labelSublabelColor": "#a7b3be",
"fieldBorderColor": "#474e54"
}
},
"tranquil": {
"name": "Tranquil",
"settings": {
"buttonBackgroundColor": "#366ce3",
"buttonTextColor": "#ffffff",
"labelColor": "#373d4a",
"labelSublabelColor": "#606775",
"fieldBorderColor": "rgba( 0, 0, 0, 0.25 )"
}
},
"vintage": {
"name": "Vintage",
"settings": {
"buttonBackgroundColor": "#f2cd52",
"buttonTextColor": "#1a1a1a",
"labelColor": "#1a1a1a",
"labelSublabelColor": "#4d4d4d",
"fieldBorderColor": "#bababa"
}
},
"western": {
"name": "Western",
"settings": {
"buttonBackgroundColor": "rgba(255, 255, 255, 0.05)",
"buttonTextColor": "#e0b495",
"labelColor": "#ffffff",
"labelSublabelColor": "#e0b495",
"fieldBorderColor": "#e0b495"
}
}
}